import type { Entity } from "~/toolbox.js"; import type { GenericRecord } from "@webiny/api/types.js"; export type IPutParamsItem = { PK: string; SK: string; [key: string]: any; } & T; export interface IPutParams { entity: Entity; item: IPutParamsItem; } export const put = async (params: IPutParams) => { const { entity, item } = params; return await entity.put(item, { execute: true, strictSchemaCheck: false }); };