{"version":3,"file":"import.cjs","names":[],"sources":["../../../../src/rest/commands/utils/import.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * Import multiple records from a JSON or CSV file into a collection.\n * @returns Nothing\n */\nexport const utilsImport =\n\t<Schema>(collection: keyof Schema, data: FormData): RestCommand<void, Schema> =>\n\t() => ({\n\t\tpath: `/utils/import/${collection as string}`,\n\t\tmethod: 'POST',\n\t\tbody: data,\n\t\theaders: { 'Content-Type': 'multipart/form-data' },\n\t});\n"],"mappings":"AAMA,MAAa,GACH,EAA0B,SAC5B,CACN,KAAM,iBAAiB,IACvB,OAAQ,OACR,KAAM,EACN,QAAS,CAAE,eAAgB,sBAAuB,CAClD"}