@wix/auto_sdk_stores_catalog-imports-v-3 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +42 -1
  2. package/build/cjs/index.js +10 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +10 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +41 -0
  8. package/build/cjs/meta.js +9 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +42 -1
  11. package/build/es/index.mjs +10 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +10 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +41 -0
  17. package/build/es/meta.mjs +9 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +4 -4
  20. package/build/internal/cjs/index.js +10 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +43 -2
  23. package/build/internal/cjs/index.typings.js +10 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +41 -0
  26. package/build/internal/cjs/meta.js +9 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +4 -4
  29. package/build/internal/es/index.mjs +10 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +43 -2
  32. package/build/internal/es/index.typings.mjs +10 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +41 -0
  35. package/build/internal/es/meta.mjs +9 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -3021,6 +3021,47 @@ interface ProductCategoryIdsInfo {
3021
3021
  categoryIds?: string[];
3022
3022
  }
3023
3023
  interface AddProductsToImportResponse {
3024
+ /**
3025
+ * Action results.
3026
+ * @minSize 1
3027
+ * @maxSize 100
3028
+ */
3029
+ results?: AddProductResult[];
3030
+ /** Bulk action metadata. */
3031
+ bulkActionMetadata?: BulkActionMetadata;
3032
+ }
3033
+ interface AddProductResult {
3034
+ /** Item metadata. */
3035
+ itemMetadata?: ItemMetadata;
3036
+ }
3037
+ interface ItemMetadata {
3038
+ /**
3039
+ * The product `handle` as passed in the `AddProductsToImport` request.
3040
+ * @format GUID
3041
+ */
3042
+ id?: string | null;
3043
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
3044
+ originalIndex?: number;
3045
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
3046
+ success?: boolean;
3047
+ /** Details about the error in case of failure. */
3048
+ error?: ApplicationError;
3049
+ }
3050
+ interface ApplicationError {
3051
+ /** Error code. */
3052
+ code?: string;
3053
+ /** Description of the error. */
3054
+ description?: string;
3055
+ /** Data related to the error. */
3056
+ data?: Record<string, any> | null;
3057
+ }
3058
+ interface BulkActionMetadata {
3059
+ /** Number of items that were successfully processed. */
3060
+ totalSuccesses?: number;
3061
+ /** Number of items that couldn't be processed. */
3062
+ totalFailures?: number;
3063
+ /** Number of failures without details because detailed failure threshold was exceeded. */
3064
+ undetailedFailures?: number;
3024
3065
  }
3025
3066
  interface SubmitCatalogImportRequest {
3026
3067
  /**
@@ -58,6 +58,9 @@ function createCatalogImport(payload) {
58
58
  method: "POST",
59
59
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
60
60
  packageName: PACKAGE_NAME,
61
+ migrationOptions: {
62
+ optInTransformResponse: true
63
+ },
61
64
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
62
65
  protoPath: "/v3/catalog-imports",
63
66
  data: serializedData,
@@ -277,6 +280,9 @@ function addProductsToImport(payload) {
277
280
  method: "POST",
278
281
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
279
282
  packageName: PACKAGE_NAME,
283
+ migrationOptions: {
284
+ optInTransformResponse: true
285
+ },
280
286
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
281
287
  protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
282
288
  data: serializedData,
@@ -295,6 +301,9 @@ function submitCatalogImport(payload) {
295
301
  method: "POST",
296
302
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
297
303
  packageName: PACKAGE_NAME,
304
+ migrationOptions: {
305
+ optInTransformResponse: true
306
+ },
298
307
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
299
308
  protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
300
309
  data: payload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.http.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.ts"],"sourcesContent":["export * from './src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.js';\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/stores/v3/catalog-imports',\n destPath: '/v3/catalog-imports',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_stores_catalog-imports-v-3';\n\n/**\n * Creates a CatalogImport for upsert product operations.\n *\n * Returns `catalogImport.id` that can be used in subsequent AddProductsToImport and SubmitCatalogImport calls.\n */\nexport function createCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCatalogImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCatalogImport;\n}\n\n/**\n * Add products in bulk to an existing catalog import session.\n *\n * Products are stored in temporary storage until SubmitCatalogImport is called.\n * Can be called multiple times for the same import session.\n *\n * > **Notes:**\n * > + Products are upserted based on the `handle` field\n * > + Updates don't require passing the current revision number and overwrites existing fields which are specified in `product`\n * > + Pass `category_ids` to update categories assignments, overwrites existing assignments\n */\nexport function addProductsToImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __addProductsToImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'products.fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.product.physicalProperties.pricePerUnit.quantity' },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.minValue',\n },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.maxValue',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity',\n },\n {\n path: 'products.product.variantsInfo.variants.revenueDetails.profitMargin',\n },\n {\n path: 'products.product.subscriptionDetails.subscriptions.discount.percentOff',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.infoSections.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.weight',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.product.description.metadata.createdTimestamp' },\n { path: 'products.product.description.metadata.updatedTimestamp' },\n { path: 'products.product.media.main.image.urlExpirationDate' },\n { path: 'products.product.media.main.video.urlExpirationDate' },\n {\n path: 'products.product.media.main.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.image.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.infoSections.description.metadata.createdTimestamp',\n },\n {\n path: 'products.product.infoSections.description.metadata.updatedTimestamp',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/add-products',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __addProductsToImport;\n}\n\n/**\n * Submits all products in the catalog import for processing.\n * Once called, no more items can be added to this import session.\n */\nexport function submitCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __submitCatalogImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport',\n packageName: PACKAGE_NAME,\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/submit',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __submitCatalogImport;\n}\n","import * as ambassadorWixStoresCatalogV3CatalogImport from './stores-catalog-v3-catalog-import-catalog-imports-v-3.http.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.types.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportUniversalTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.createCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addProductsToImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.addProductsToImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/add-products',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function submitCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.submitCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/submit',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,wDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,C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M;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addProductsToImport","createCatalogImport","submitCatalogImport","import_timestamp","payload","createCatalogImport","addProductsToImport","submitCatalogImport"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.http.ts","../../../src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.ts"],"sourcesContent":["export * from './src/stores-catalog-v3-catalog-import-catalog-imports-v-3.meta.js';\n","import { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/stores/v3/catalog-imports',\n destPath: '/v3/catalog-imports',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_stores_catalog-imports-v-3';\n\n/**\n * Creates a CatalogImport for upsert product operations.\n *\n * Returns `catalogImport.id` that can be used in subsequent AddProductsToImport and SubmitCatalogImport calls.\n */\nexport function createCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __createCatalogImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'catalogImport.createdDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCatalogImport;\n}\n\n/**\n * Add products in bulk to an existing catalog import session.\n *\n * Products are stored in temporary storage until SubmitCatalogImport is called.\n * Can be called multiple times for the same import session.\n *\n * > **Notes:**\n * > + Products are upserted based on the `handle` field\n * > + Updates don't require passing the current revision number and overwrites existing fields which are specified in `product`\n * > + Pass `category_ids` to update categories assignments, overwrites existing assignments\n */\nexport function addProductsToImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __addProductsToImport({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'products.fieldMask' }],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'products.product.physicalProperties.pricePerUnit.quantity' },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.minValue',\n },\n {\n path: 'products.product.physicalProperties.shippingWeightRange.maxValue',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity',\n },\n {\n path: 'products.product.variantsInfo.variants.revenueDetails.profitMargin',\n },\n {\n path: 'products.product.subscriptionDetails.subscriptions.discount.percentOff',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.image.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.media.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.galleryData.options.item.ratio',\n },\n {\n path: 'products.product.infoSections.description.nodes.imageData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lat',\n },\n {\n path: 'products.product.infoSections.description.nodes.mapData.mapSettings.lng',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.poll.options.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.pollData.design.poll.background.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.appEmbedData.image.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.video.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.videoData.thumbnail.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.audio.duration',\n },\n {\n path: 'products.product.infoSections.description.nodes.audioData.coverImage.duration',\n },\n {\n path: 'products.product.variantsInfo.variants.physicalProperties.weight',\n },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'products.product.description.metadata.createdTimestamp' },\n { path: 'products.product.description.metadata.updatedTimestamp' },\n { path: 'products.product.media.main.image.urlExpirationDate' },\n { path: 'products.product.media.main.video.urlExpirationDate' },\n {\n path: 'products.product.media.main.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.main.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.image.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.media.itemsInfo.items.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate',\n },\n {\n path: 'products.product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate',\n },\n {\n path: 'products.product.infoSections.description.metadata.createdTimestamp',\n },\n {\n path: 'products.product.infoSections.description.metadata.updatedTimestamp',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/add-products',\n data: serializedData,\n host,\n }),\n data: serializedData,\n };\n\n return metadata;\n }\n\n return __addProductsToImport;\n}\n\n/**\n * Submits all products in the catalog import for processing.\n * Once called, no more items can be added to this import session.\n */\nexport function submitCatalogImport(\n payload: object\n): RequestOptionsFactory<any> {\n function __submitCatalogImport({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.stores.catalog.v3.catalog_import',\n method: 'POST' as any,\n methodFqn:\n 'wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({\n protoPath: '/v3/catalog-imports/{catalogImportId}/submit',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __submitCatalogImport;\n}\n","import * as ambassadorWixStoresCatalogV3CatalogImport from './stores-catalog-v3-catalog-import-catalog-imports-v-3.http.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.types.js';\nimport * as ambassadorWixStoresCatalogV3CatalogImportUniversalTypes from './stores-catalog-v3-catalog-import-catalog-imports-v-3.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.CreateCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.CreateCatalogImportResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.createCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addProductsToImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.AddProductsToImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.AddProductsToImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.addProductsToImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/add-products',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function submitCatalogImport(): __PublicMethodMetaInfo<\n 'POST',\n { catalogImportId: string },\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportRequest,\n ambassadorWixStoresCatalogV3CatalogImportUniversalTypes.SubmitCatalogImportResponse,\n ambassadorWixStoresCatalogV3CatalogImportTypes.SubmitCatalogImportResponse\n> {\n const payload = { catalogImportId: ':catalogImportId' } as any;\n\n const getRequestOptions =\n ambassadorWixStoresCatalogV3CatalogImport.submitCatalogImport(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v3/catalog-imports/{catalogImportId}/submit',\n pathParams: { catalogImportId: 'catalogImportId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,0BAA2B;AAI3B,SAAS,wDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,gCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,oBACd,SAC4B;AAC5B,WAAS,sBAAsB,EAAE,KAAK,GAAQ;AAC5C,UAAM,qBAAiB,uCAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,4BAA4B,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D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addProductsToImport","createCatalogImport","submitCatalogImport","import_timestamp","payload","createCatalogImport","addProductsToImport","submitCatalogImport"]}
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
- import { CatalogImport, ProductItem, SubmitCatalogImportResponse, SubmitCatalogImportApplicationErrors } from './index.typings.mjs';
3
- export { ActionEvent, AddProductsToImportRequest, AddProductsToImportResponse, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BlockquoteData, BookingData, Border, BorderColors, Brand, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CatalogImportAlreadySubmittedErrorData, CellStyle, ChoiceType, ChoiceTypeWithLiterals, ChoicesSettings, CodeBlockData, CollapsibleListData, ColorData, Colors, ConnectedModifier, ConnectedModifierChoice, ConnectedModifierChoiceValueOneOf, ConnectedModifierModifierSettingsOneOf, ConnectedOption, ConnectedOptionChoice, ConnectedOptionChoiceValueOneOf, ConnectedOptionOptionSettingsOneOf, CreateCatalogImportRequest, CreateCatalogImportResponse, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DiscountType, DiscountTypeWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FileType, FileTypeWithLiterals, FixedMonetaryAmount, FontSizeData, FontType, FontTypeWithLiterals, FreeTextSettings, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InfoSection, InitialExpandedItems, InitialExpandedItemsWithLiterals, InventoryItemComposite, InventoryItemCompositeTrackingMethodOneOf, Item, ItemDataOneOf, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MeasurementUnit, MeasurementUnitWithLiterals, Media, MediaItemsInfo, MediaType, MediaTypeWithLiterals, MentionData, MessageEnvelope, Metadata, ModifierChoicesSettings, ModifierRenderType, ModifierRenderTypeWithLiterals, MultipleColors, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionChoiceIds, OptionChoiceNames, OptionChoiceReferences, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, PhysicalProperties, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PreorderInfo, PriceInfo, PricePerUnit, PricePerUnitRange, PricePerUnitRangePricePerUnit, PricePerUnitSettings, PricingData, ProductCategoryIdsInfo, ProductMedia, ProductMediaMediaOneOf, ProductMediaSetByOneOf, ProductOptionRenderType, ProductOptionRenderTypeWithLiterals, ProductType, ProductTypeWithLiterals, ProductWithInventory, ProductWithInventoryTypedPropertiesOneOf, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RevenueDetails, Ribbon, RibbonStyles, RichContent, SecuredMedia, SeoSchema, Settings, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, SubmitCatalogImportRequest, Subscription, SubscriptionCyclesOneOf, SubscriptionDetails, SubscriptionDiscount, SubscriptionDiscountDiscountOneOf, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnail, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, V1Media, VariantDigitalProperties, VariantPhysicalProperties, VariantWithInventory, VariantWithInventoryTypedPropertiesOneOf, VariantsInfo, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightMeasurementUnitInfo, WeightRange, WeightUnit, WeightUnitWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
2
+ import { CatalogImport, ProductItem, AddProductsToImportResponse, SubmitCatalogImportResponse, SubmitCatalogImportApplicationErrors } from './index.typings.mjs';
3
+ export { ActionEvent, AddProductResult, AddProductsToImportRequest, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, ApplicationError, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, BackgroundTypeWithLiterals, BlockquoteData, BookingData, Border, BorderColors, Brand, BulkActionMetadata, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CaptionData, CardStyles, CatalogImportAlreadySubmittedErrorData, CellStyle, ChoiceType, ChoiceTypeWithLiterals, ChoicesSettings, CodeBlockData, CollapsibleListData, ColorData, Colors, ConnectedModifier, ConnectedModifierChoice, ConnectedModifierChoiceValueOneOf, ConnectedModifierModifierSettingsOneOf, ConnectedOption, ConnectedOptionChoice, ConnectedOptionChoiceValueOneOf, ConnectedOptionOptionSettingsOneOf, CreateCatalogImportRequest, CreateCatalogImportResponse, Crop, CropWithLiterals, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, Design, Dimensions, Direction, DirectionWithLiterals, DiscountType, DiscountTypeWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventData, ExtendedFields, FileData, FileSource, FileSourceDataOneOf, FileType, FileTypeWithLiterals, FixedMonetaryAmount, FontSizeData, FontType, FontTypeWithLiterals, FreeTextSettings, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, Gradient, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InfoSection, InitialExpandedItems, InitialExpandedItemsWithLiterals, InventoryItemComposite, InventoryItemCompositeTrackingMethodOneOf, Item, ItemDataOneOf, ItemMetadata, ItemStyle, Keyword, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, MapData, MapSettings, MapType, MapTypeWithLiterals, MeasurementUnit, MeasurementUnitWithLiterals, Media, MediaItemsInfo, MediaType, MediaTypeWithLiterals, MentionData, MessageEnvelope, Metadata, ModifierChoicesSettings, ModifierRenderType, ModifierRenderTypeWithLiterals, MultipleColors, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Oembed, Option, OptionChoiceIds, OptionChoiceNames, OptionChoiceReferences, OptionDesign, OptionLayout, OrderedListData, Orientation, OrientationWithLiterals, PDFSettings, ParagraphData, Permissions, PhysicalProperties, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, PreorderInfo, PriceInfo, PricePerUnit, PricePerUnitRange, PricePerUnitRangePricePerUnit, PricePerUnitSettings, PricingData, ProductCategoryIdsInfo, ProductMedia, ProductMediaMediaOneOf, ProductMediaSetByOneOf, ProductOptionRenderType, ProductOptionRenderTypeWithLiterals, ProductType, ProductTypeWithLiterals, ProductWithInventory, ProductWithInventoryTypedPropertiesOneOf, Rel, Resizing, ResizingWithLiterals, RestoreInfo, RevenueDetails, Ribbon, RibbonStyles, RichContent, SecuredMedia, SeoSchema, Settings, Source, SourceWithLiterals, Spoiler, SpoilerData, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, SubmitCatalogImportRequest, Subscription, SubscriptionCyclesOneOf, SubscriptionDetails, SubscriptionDiscount, SubscriptionDiscountDiscountOneOf, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, TableCellData, TableData, Tag, Target, TargetWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnail, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Type, TypeWithLiterals, V1Media, VariantDigitalProperties, VariantPhysicalProperties, VariantWithInventory, VariantWithInventoryTypedPropertiesOneOf, VariantsInfo, VerticalAlignment, VerticalAlignmentWithLiterals, Video, VideoData, VideoResolution, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightMeasurementUnitInfo, WeightRange, WeightUnit, WeightUnitWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  /** @internal */
6
6
  declare function createCatalogImport$1(httpClient: HttpClient): CreateCatalogImportSignature;
@@ -30,7 +30,7 @@ interface AddProductsToImportSignature {
30
30
  * @param - Catalog Import ID.
31
31
  * @param - List of product items to add to the import session.
32
32
  */
33
- (catalogImportId: string, products: NonNullablePaths<ProductItem, `product.handle`, 3>[]): Promise<void>;
33
+ (catalogImportId: string, products: NonNullablePaths<ProductItem, `product.handle`, 3>[]): Promise<NonNullablePaths<AddProductsToImportResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
34
34
  }
35
35
  /** @internal */
36
36
  declare function submitCatalogImport$1(httpClient: HttpClient): SubmitCatalogImportSignature;
@@ -52,4 +52,4 @@ declare const addProductsToImport: MaybeContext<BuildRESTFunction<typeof addProd
52
52
  /** @internal */
53
53
  declare const submitCatalogImport: MaybeContext<BuildRESTFunction<typeof submitCatalogImport$1> & typeof submitCatalogImport$1>;
54
54
 
55
- export { CatalogImport, ProductItem, SubmitCatalogImportApplicationErrors, SubmitCatalogImportResponse, addProductsToImport, createCatalogImport, submitCatalogImport };
55
+ export { AddProductsToImportResponse, CatalogImport, ProductItem, SubmitCatalogImportApplicationErrors, SubmitCatalogImportResponse, addProductsToImport, createCatalogImport, submitCatalogImport };
@@ -37,6 +37,9 @@ function createCatalogImport(payload) {
37
37
  method: "POST",
38
38
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
39
39
  packageName: PACKAGE_NAME,
40
+ migrationOptions: {
41
+ optInTransformResponse: true
42
+ },
40
43
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
41
44
  protoPath: "/v3/catalog-imports",
42
45
  data: serializedData,
@@ -256,6 +259,9 @@ function addProductsToImport(payload) {
256
259
  method: "POST",
257
260
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
258
261
  packageName: PACKAGE_NAME,
262
+ migrationOptions: {
263
+ optInTransformResponse: true
264
+ },
259
265
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
260
266
  protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
261
267
  data: serializedData,
@@ -274,6 +280,9 @@ function submitCatalogImport(payload) {
274
280
  method: "POST",
275
281
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
276
282
  packageName: PACKAGE_NAME,
283
+ migrationOptions: {
284
+ optInTransformResponse: true
285
+ },
277
286
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
278
287
  protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
279
288
  data: payload,
@@ -714,6 +723,7 @@ async function addProductsToImport2(catalogImportId, products) {
714
723
  try {
715
724
  const result = await httpClient.request(reqOpts);
716
725
  sideEffects?.onSuccess?.(result);
726
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
717
727
  } catch (err) {
718
728
  const transformedError = sdkTransformError(
719
729
  err,