@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
@@ -3020,6 +3020,47 @@ interface ProductCategoryIdsInfo {
3020
3020
  categoryIds?: string[];
3021
3021
  }
3022
3022
  interface AddProductsToImportResponse {
3023
+ /**
3024
+ * Action results.
3025
+ * @minSize 1
3026
+ * @maxSize 100
3027
+ */
3028
+ results?: AddProductResult[];
3029
+ /** Bulk action metadata. */
3030
+ bulkActionMetadata?: BulkActionMetadata;
3031
+ }
3032
+ interface AddProductResult {
3033
+ /** Item metadata. */
3034
+ itemMetadata?: ItemMetadata;
3035
+ }
3036
+ interface ItemMetadata {
3037
+ /**
3038
+ * The product `handle` as passed in the `AddProductsToImport` request.
3039
+ * @format GUID
3040
+ */
3041
+ id?: string | null;
3042
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
3043
+ originalIndex?: number;
3044
+ /** Whether the requested action for this item was successful. When `false`, the `error` field is returned. */
3045
+ success?: boolean;
3046
+ /** Details about the error in case of failure. */
3047
+ error?: ApplicationError;
3048
+ }
3049
+ interface ApplicationError {
3050
+ /** Error code. */
3051
+ code?: string;
3052
+ /** Description of the error. */
3053
+ description?: string;
3054
+ /** Data related to the error. */
3055
+ data?: Record<string, any> | null;
3056
+ }
3057
+ interface BulkActionMetadata {
3058
+ /** Number of items that were successfully processed. */
3059
+ totalSuccesses?: number;
3060
+ /** Number of items that couldn't be processed. */
3061
+ totalFailures?: number;
3062
+ /** Number of failures without details because detailed failure threshold was exceeded. */
3063
+ undetailedFailures?: number;
3023
3064
  }
3024
3065
  interface SubmitCatalogImportRequest {
3025
3066
  /**
package/build/es/meta.mjs CHANGED
@@ -30,6 +30,9 @@ function createCatalogImport(payload) {
30
30
  method: "POST",
31
31
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
32
32
  packageName: PACKAGE_NAME,
33
+ migrationOptions: {
34
+ optInTransformResponse: true
35
+ },
33
36
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
34
37
  protoPath: "/v3/catalog-imports",
35
38
  data: serializedData,
@@ -249,6 +252,9 @@ function addProductsToImport(payload) {
249
252
  method: "POST",
250
253
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
251
254
  packageName: PACKAGE_NAME,
255
+ migrationOptions: {
256
+ optInTransformResponse: true
257
+ },
252
258
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
253
259
  protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
254
260
  data: serializedData,
@@ -267,6 +273,9 @@ function submitCatalogImport(payload) {
267
273
  method: "POST",
268
274
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
269
275
  packageName: PACKAGE_NAME,
276
+ migrationOptions: {
277
+ optInTransformResponse: true
278
+ },
270
279
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
271
280
  protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
272
281
  data: payload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../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":["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,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,oBACd,SAC4B;AAC5B,WAAS,sBAAsB,EAAE,KAAK,GAAQ;AAC5C,UAAM,iB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AA,EAC1B;AACF;","names":["payload","createCatalogImport","addProductsToImport","submitCatalogImport"]}
1
+ {"version":3,"sources":["../../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":["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,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;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,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAOd,SAAS,oBACd,SAC4B;AAC5B,WAAS,sBAAsB,EAAE,KAAK,GAAQ;AAC5C,UAAM,iBAAiB,eAAe,SAAS;AAAA,MAC7C;AAAA,QACE,aAAa;AAAA,QACb,OAAO,CAAC,EAAE,MAAM,4BAA4B,CAAC;AAAA,MAC/C;AAAA,IACF,CAAC;AACD,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;AAAA,MACR,WACE;AAAA,MACF,aAAa;AAAA,MACb,kBAAkB;AAAA,QAChB,wBAAwB;AAAA,MAC1B;AAAA,MACA,KAAK,wDAAwD;AAAA,QAC3D,WAAW;AAAA,QACX,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,MACD,MAAM;AAAA,MACN,mBAAmB,CA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,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,iBAAiB,mBAAmB;AAEtD,QAAM,oBACsC,oBAAoB,OAAO;AAEvE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,iBAAiB,mBAAmB;AAEtD,QAAM,oBACsC,oBAAoB,OAAO;AAEvE,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,iBAAiB,kBAAkB;AAAA,IACjD,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["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.js';
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.js';
2
+ import { CatalogImport, ProductItem, AddProductsToImportResponse, SubmitCatalogImportResponse, SubmitCatalogImportApplicationErrors } from './index.typings.js';
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.js';
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 };
@@ -110,6 +110,9 @@ function createCatalogImport(payload) {
110
110
  method: "POST",
111
111
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.CreateCatalogImport",
112
112
  packageName: PACKAGE_NAME,
113
+ migrationOptions: {
114
+ optInTransformResponse: true
115
+ },
113
116
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
114
117
  protoPath: "/v3/catalog-imports",
115
118
  data: serializedData,
@@ -329,6 +332,9 @@ function addProductsToImport(payload) {
329
332
  method: "POST",
330
333
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.AddProductsToImport",
331
334
  packageName: PACKAGE_NAME,
335
+ migrationOptions: {
336
+ optInTransformResponse: true
337
+ },
332
338
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
333
339
  protoPath: "/v3/catalog-imports/{catalogImportId}/add-products",
334
340
  data: serializedData,
@@ -347,6 +353,9 @@ function submitCatalogImport(payload) {
347
353
  method: "POST",
348
354
  methodFqn: "wix.stores.catalog.catalog_import.v3.CatalogImports.SubmitCatalogImport",
349
355
  packageName: PACKAGE_NAME,
356
+ migrationOptions: {
357
+ optInTransformResponse: true
358
+ },
350
359
  url: resolveWixStoresCatalogCatalogImportV3CatalogImportsUrl({
351
360
  protoPath: "/v3/catalog-imports/{catalogImportId}/submit",
352
361
  data: payload,
@@ -787,6 +796,7 @@ async function addProductsToImport2(catalogImportId, products) {
787
796
  try {
788
797
  const result = await httpClient.request(reqOpts);
789
798
  sideEffects?.onSuccess?.(result);
799
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
790
800
  } catch (err) {
791
801
  const transformedError = (0, import_transform_error.transformError)(
792
802
  err,