@wix/auto_sdk_stores_customizations-v-3 1.0.69 → 1.0.71

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 +1 -1
  2. package/build/cjs/index.js +98 -5
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +70 -16
  5. package/build/cjs/index.typings.js +88 -5
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +58 -17
  8. package/build/cjs/meta.js +66 -5
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +97 -5
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +70 -16
  14. package/build/es/index.typings.mjs +87 -5
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +58 -17
  17. package/build/es/meta.mjs +65 -5
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +19 -3
  20. package/build/internal/cjs/index.js +98 -5
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +89 -17
  23. package/build/internal/cjs/index.typings.js +88 -5
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +58 -17
  26. package/build/internal/cjs/meta.js +66 -5
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +19 -3
  29. package/build/internal/es/index.mjs +97 -5
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +89 -17
  32. package/build/internal/es/index.typings.mjs +87 -5
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +58 -17
  35. package/build/internal/es/meta.mjs +65 -5
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateCustomizationRequest as CreateCustomizationRequest$1, CreateCustomizationResponse as CreateCustomizationResponse$1, GetCustomizationRequest as GetCustomizationRequest$1, GetCustomizationResponse as GetCustomizationResponse$1, UpdateCustomizationRequest as UpdateCustomizationRequest$1, UpdateCustomizationResponse as UpdateCustomizationResponse$1, DeleteCustomizationRequest as DeleteCustomizationRequest$1, DeleteCustomizationResponse as DeleteCustomizationResponse$1, QueryCustomizationsRequest as QueryCustomizationsRequest$1, QueryCustomizationsResponse as QueryCustomizationsResponse$1, BulkCreateCustomizationsRequest as BulkCreateCustomizationsRequest$1, BulkCreateCustomizationsResponse as BulkCreateCustomizationsResponse$1, AddCustomizationChoicesRequest as AddCustomizationChoicesRequest$1, AddCustomizationChoicesResponse as AddCustomizationChoicesResponse$1, SetCustomizationChoicesRequest as SetCustomizationChoicesRequest$1, SetCustomizationChoicesResponse as SetCustomizationChoicesResponse$1, RemoveCustomizationChoicesRequest as RemoveCustomizationChoicesRequest$1, RemoveCustomizationChoicesResponse as RemoveCustomizationChoicesResponse$1, UpdateCustomizationChoicesRequest as UpdateCustomizationChoicesRequest$1, UpdateCustomizationChoicesResponse as UpdateCustomizationChoicesResponse$1, BulkAddCustomizationChoicesRequest as BulkAddCustomizationChoicesRequest$1, BulkAddCustomizationChoicesResponse as BulkAddCustomizationChoicesResponse$1, BulkUpdateCustomizationsRequest as BulkUpdateCustomizationsRequest$1, BulkUpdateCustomizationsResponse as BulkUpdateCustomizationsResponse$1 } from './index.typings.js';
1
+ import { CreateCustomizationRequest as CreateCustomizationRequest$1, CreateCustomizationResponse as CreateCustomizationResponse$1, GetCustomizationRequest as GetCustomizationRequest$1, GetCustomizationResponse as GetCustomizationResponse$1, UpdateCustomizationRequest as UpdateCustomizationRequest$1, UpdateCustomizationResponse as UpdateCustomizationResponse$1, DeleteCustomizationRequest as DeleteCustomizationRequest$1, DeleteCustomizationResponse as DeleteCustomizationResponse$1, QueryCustomizationsRequest as QueryCustomizationsRequest$1, QueryCustomizationsResponse as QueryCustomizationsResponse$1, BulkCreateCustomizationsRequest as BulkCreateCustomizationsRequest$1, BulkCreateCustomizationsResponse as BulkCreateCustomizationsResponse$1, AddCustomizationChoicesRequest as AddCustomizationChoicesRequest$1, AddCustomizationChoicesResponse as AddCustomizationChoicesResponse$1, SetCustomizationChoicesRequest as SetCustomizationChoicesRequest$1, SetCustomizationChoicesResponse as SetCustomizationChoicesResponse$1, RemoveCustomizationChoicesRequest as RemoveCustomizationChoicesRequest$1, RemoveCustomizationChoicesResponse as RemoveCustomizationChoicesResponse$1, UpdateCustomizationChoicesRequest as UpdateCustomizationChoicesRequest$1, UpdateCustomizationChoicesResponse as UpdateCustomizationChoicesResponse$1, ReorderCustomizationChoicesRequest as ReorderCustomizationChoicesRequest$1, ReorderCustomizationChoicesResponse as ReorderCustomizationChoicesResponse$1, BulkAddCustomizationChoicesRequest as BulkAddCustomizationChoicesRequest$1, BulkAddCustomizationChoicesResponse as BulkAddCustomizationChoicesResponse$1, BulkUpdateCustomizationsRequest as BulkUpdateCustomizationsRequest$1, BulkUpdateCustomizationsResponse as BulkUpdateCustomizationsResponse$1 } from './index.typings.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /**
@@ -96,14 +96,12 @@ interface CustomizationCustomizationSettingsOneOf {
96
96
  choicesSettings?: ChoicesSettings;
97
97
  }
98
98
  declare enum CustomizationType {
99
- UNKNOWN_CUSTOMIZATION_TYPE = "UNKNOWN_CUSTOMIZATION_TYPE",
100
99
  PRODUCT_OPTION = "PRODUCT_OPTION",
101
100
  MODIFIER = "MODIFIER"
102
101
  }
103
102
  /** @enumType */
104
- type CustomizationTypeWithLiterals = CustomizationType | 'UNKNOWN_CUSTOMIZATION_TYPE' | 'PRODUCT_OPTION' | 'MODIFIER';
103
+ type CustomizationTypeWithLiterals = CustomizationType | 'PRODUCT_OPTION' | 'MODIFIER';
105
104
  declare enum CustomizationRenderType {
106
- UNKNOWN_CUSTOMIZATION_RENDER_TYPE = "UNKNOWN_CUSTOMIZATION_RENDER_TYPE",
107
105
  /** Customization by free text input. */
108
106
  FREE_TEXT = "FREE_TEXT",
109
107
  /** Customization by selection of text choices. */
@@ -112,7 +110,7 @@ declare enum CustomizationRenderType {
112
110
  SWATCH_CHOICES = "SWATCH_CHOICES"
113
111
  }
114
112
  /** @enumType */
115
- type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'UNKNOWN_CUSTOMIZATION_RENDER_TYPE' | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
113
+ type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
116
114
  interface FreeTextSettings {
117
115
  /** Minimum text character length. */
118
116
  minCharCount?: number;
@@ -207,14 +205,13 @@ interface ChoiceValueOneOf {
207
205
  colorCode?: string;
208
206
  }
209
207
  declare enum ChoiceType {
210
- UNKNOWN_CHOICE_TYPE = "UNKNOWN_CHOICE_TYPE",
211
208
  /** For a `customizationRenderType` of `TEXT_CHOICES`. */
212
209
  CHOICE_TEXT = "CHOICE_TEXT",
213
210
  /** For `customizationRenderType: SWATCH_CHOICES`. */
214
211
  ONE_COLOR = "ONE_COLOR"
215
212
  }
216
213
  /** @enumType */
217
- type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR';
214
+ type ChoiceTypeWithLiterals = ChoiceType | 'CHOICE_TEXT' | 'ONE_COLOR';
218
215
  interface MultipleColors {
219
216
  /**
220
217
  * A list of color codes.
@@ -259,18 +256,17 @@ interface FocalPoint {
259
256
  width?: number | null;
260
257
  }
261
258
  declare enum ChoiceSortStrategy {
262
- UNKNOWN_CHOICE_SORT_STRATEGY = "UNKNOWN_CHOICE_SORT_STRATEGY",
263
- /** Text choices are sorted by name, and swatch choices are sorted by the number of matching products. */
259
+ /** Default. Text choices are sorted by name, swatch choices are sorted by product count. */
264
260
  DEFAULT = "DEFAULT",
265
- /** Sort choices alphabetically by name, case-insensitive, with numeric values first. */
261
+ /** Alphabetically by name, case-insensitive. Numeric values are sorted first. */
266
262
  BY_NAME = "BY_NAME",
267
- /** Sort choices by the number of products assigned to each choice, in descending order. */
263
+ /** By the number of products assigned to each choice, in descending order. */
268
264
  BY_PRODUCT_COUNT = "BY_PRODUCT_COUNT",
269
- /** Sort choices by their order in the choices list. */
265
+ /** By the order of the choices list. Use [Reorder Customization Choices](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/customizations-v3/reorder-customization-choices) to set the order. */
270
266
  MANUAL = "MANUAL"
271
267
  }
272
268
  /** @enumType */
273
- type ChoiceSortStrategyWithLiterals = ChoiceSortStrategy | 'UNKNOWN_CHOICE_SORT_STRATEGY' | 'DEFAULT' | 'BY_NAME' | 'BY_PRODUCT_COUNT' | 'MANUAL';
269
+ type ChoiceSortStrategyWithLiterals = ChoiceSortStrategy | 'DEFAULT' | 'BY_NAME' | 'BY_PRODUCT_COUNT' | 'MANUAL';
274
270
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
275
271
  /**
276
272
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -451,13 +447,11 @@ interface GetCustomizationRequest {
451
447
  fields?: RequestedFieldsWithLiterals[];
452
448
  }
453
449
  declare enum RequestedFields {
454
- /** Unknown requested field. */
455
- UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
456
450
  /** Assigned products count. */
457
451
  ASSIGNED_PRODUCTS_COUNT = "ASSIGNED_PRODUCTS_COUNT"
458
452
  }
459
453
  /** @enumType */
460
- type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELD' | 'ASSIGNED_PRODUCTS_COUNT';
454
+ type RequestedFieldsWithLiterals = RequestedFields | 'ASSIGNED_PRODUCTS_COUNT';
461
455
  interface GetCustomizationResponse {
462
456
  /** Customization. */
463
457
  customization?: Customization;
@@ -803,6 +797,40 @@ interface UpdateCustomizationChoicesResponse {
803
797
  /** Updated customization. */
804
798
  customization?: Customization;
805
799
  }
800
+ interface ReorderCustomizationChoicesRequest {
801
+ /**
802
+ * Customization ID.
803
+ * @format GUID
804
+ */
805
+ customizationId: string;
806
+ /** Revision number, which increments by 1 each time the customization is updated. To prevent conflicting changes, the current revision must be passed when updating the customization. */
807
+ revision: string;
808
+ /**
809
+ * Choice IDs in the desired display order. Must contain exactly the same set of IDs as the customization's current choices — no additions or removals.
810
+ * @format GUID
811
+ * @minSize 1
812
+ * @maxSize 200
813
+ */
814
+ choiceIds: string[];
815
+ /**
816
+ * Fields to include in the response.
817
+ *
818
+ * Supported values: `ASSIGNED_PRODUCTS_COUNT`
819
+ * @maxSize 100
820
+ */
821
+ fields?: RequestedFieldsWithLiterals[];
822
+ }
823
+ interface ReorderCustomizationChoicesResponse {
824
+ /** Updated customization. */
825
+ customization?: Customization;
826
+ }
827
+ /** Additional error details returned with the `CHOICE_IDS_MISMATCH` error. */
828
+ interface ChoiceIdsMismatchData {
829
+ /** Choice IDs that exist in the customization but are missing from the request. */
830
+ missingIds?: string[];
831
+ /** Choice IDs included in the request that don't exist in the customization. */
832
+ extraIds?: string[];
833
+ }
806
834
  interface BulkAddCustomizationChoicesRequest {
807
835
  /**
808
836
  * List of customization IDs and choices.
@@ -1205,6 +1233,16 @@ type UpdateCustomizationChoicesValidationErrors = {
1205
1233
  ruleName?: 'PARENT_CHOICE_HIERARCHY_VIOLATION';
1206
1234
  };
1207
1235
  /** @docsIgnore */
1236
+ type ReorderCustomizationChoicesApplicationErrors = {
1237
+ code?: 'DOESNT_SUPPORT_CHOICES';
1238
+ description?: string;
1239
+ data?: Record<string, any>;
1240
+ } | {
1241
+ code?: 'CHOICE_IDS_MISMATCH';
1242
+ description?: string;
1243
+ data?: ChoiceIdsMismatchData;
1244
+ };
1245
+ /** @docsIgnore */
1208
1246
  type BulkAddCustomizationChoicesApplicationErrors = {
1209
1247
  code?: 'CHOICES_LIMIT_EXCEEDED';
1210
1248
  description?: string;
@@ -1261,7 +1299,10 @@ declare function removeCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
1261
1299
  declare function updateCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
1262
1300
  customizationId: string;
1263
1301
  }, UpdateCustomizationChoicesRequest$1, UpdateCustomizationChoicesRequest, UpdateCustomizationChoicesResponse$1, UpdateCustomizationChoicesResponse>;
1302
+ declare function reorderCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
1303
+ customizationId: string;
1304
+ }, ReorderCustomizationChoicesRequest$1, ReorderCustomizationChoicesRequest, ReorderCustomizationChoicesResponse$1, ReorderCustomizationChoicesResponse>;
1264
1305
  declare function bulkAddCustomizationChoices(): __PublicMethodMetaInfo<'POST', {}, BulkAddCustomizationChoicesRequest$1, BulkAddCustomizationChoicesRequest, BulkAddCustomizationChoicesResponse$1, BulkAddCustomizationChoicesResponse>;
1265
1306
  declare function bulkUpdateCustomizations(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCustomizationsRequest$1, BulkUpdateCustomizationsRequest, BulkUpdateCustomizationsResponse$1, BulkUpdateCustomizationsResponse>;
1266
1307
 
1267
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddCustomizationChoicesApplicationErrors as AddCustomizationChoicesApplicationErrorsOriginal, type AddCustomizationChoicesRequest as AddCustomizationChoicesRequestOriginal, type AddCustomizationChoicesResponse as AddCustomizationChoicesResponseOriginal, type AddCustomizationChoicesValidationErrors as AddCustomizationChoicesValidationErrorsOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddCustomizationChoicesApplicationErrors as BulkAddCustomizationChoicesApplicationErrorsOriginal, type BulkAddCustomizationChoicesRequest as BulkAddCustomizationChoicesRequestOriginal, type BulkAddCustomizationChoicesResponse as BulkAddCustomizationChoicesResponseOriginal, type BulkAddCustomizationChoicesValidationErrors as BulkAddCustomizationChoicesValidationErrorsOriginal, type BulkCreateCustomizationsApplicationErrors as BulkCreateCustomizationsApplicationErrorsOriginal, type BulkCreateCustomizationsForMigrationRequest as BulkCreateCustomizationsForMigrationRequestOriginal, type BulkCreateCustomizationsForMigrationResponse as BulkCreateCustomizationsForMigrationResponseOriginal, type BulkCreateCustomizationsRequest as BulkCreateCustomizationsRequestOriginal, type BulkCreateCustomizationsResponse as BulkCreateCustomizationsResponseOriginal, type BulkCreateCustomizationsValidationErrors as BulkCreateCustomizationsValidationErrorsOriginal, type BulkCustomizationResult as BulkCustomizationResultOriginal, type BulkUpdateCustomizationsRequest as BulkUpdateCustomizationsRequestOriginal, type BulkUpdateCustomizationsResponse as BulkUpdateCustomizationsResponseOriginal, type Choice as ChoiceOriginal, ChoiceSortStrategy as ChoiceSortStrategyOriginal, type ChoiceSortStrategyWithLiterals as ChoiceSortStrategyWithLiteralsOriginal, ChoiceType as ChoiceTypeOriginal, type ChoiceTypeWithLiterals as ChoiceTypeWithLiteralsOriginal, type ChoiceValueOneOf as ChoiceValueOneOfOriginal, type ChoicesSettings as ChoicesSettingsOriginal, type CreateCustomizationApplicationErrors as CreateCustomizationApplicationErrorsOriginal, type CreateCustomizationRequest as CreateCustomizationRequestOriginal, type CreateCustomizationResponse as CreateCustomizationResponseOriginal, type CreateCustomizationValidationErrors as CreateCustomizationValidationErrorsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type CustomizationChoices as CustomizationChoicesOriginal, type CustomizationCustomizationSettingsOneOf as CustomizationCustomizationSettingsOneOfOriginal, type CustomizationIdsWrapper as CustomizationIdsWrapperOriginal, type Customization as CustomizationOriginal, CustomizationRenderType as CustomizationRenderTypeOriginal, type CustomizationRenderTypeWithLiterals as CustomizationRenderTypeWithLiteralsOriginal, CustomizationType as CustomizationTypeOriginal, type CustomizationTypeWithLiterals as CustomizationTypeWithLiteralsOriginal, type DeleteCustomizationRequest as DeleteCustomizationRequestOriginal, type DeleteCustomizationResponse as DeleteCustomizationResponseOriginal, type DeleteCustomizationValidationErrors as DeleteCustomizationValidationErrorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type FreeTextSettings as FreeTextSettingsOriginal, type GetCustomizationRequest as GetCustomizationRequestOriginal, type GetCustomizationResponse as GetCustomizationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type MaskedChoice as MaskedChoiceOriginal, type MaskedCustomization as MaskedCustomizationOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultipleColors as MultipleColorsOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryCustomizationsRequest as QueryCustomizationsRequestOriginal, type QueryCustomizationsResponse as QueryCustomizationsResponseOriginal, type RecloneSiteRequest as RecloneSiteRequestOriginal, type RecloneSiteResponse as RecloneSiteResponseOriginal, type RemoveCustomizationChoicesApplicationErrors as RemoveCustomizationChoicesApplicationErrorsOriginal, type RemoveCustomizationChoicesRequest as RemoveCustomizationChoicesRequestOriginal, type RemoveCustomizationChoicesResponse as RemoveCustomizationChoicesResponseOriginal, type RemoveCustomizationChoicesValidationErrors as RemoveCustomizationChoicesValidationErrorsOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type SetCustomizationChoicesApplicationErrors as SetCustomizationChoicesApplicationErrorsOriginal, type SetCustomizationChoicesRequest as SetCustomizationChoicesRequestOriginal, type SetCustomizationChoicesResponse as SetCustomizationChoicesResponseOriginal, type SetCustomizationChoicesValidationErrors as SetCustomizationChoicesValidationErrorsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateCustomizationChoicesApplicationErrors as UpdateCustomizationChoicesApplicationErrorsOriginal, type UpdateCustomizationChoicesRequest as UpdateCustomizationChoicesRequestOriginal, type UpdateCustomizationChoicesResponse as UpdateCustomizationChoicesResponseOriginal, type UpdateCustomizationChoicesValidationErrors as UpdateCustomizationChoicesValidationErrorsOriginal, type UpdateCustomizationRequest as UpdateCustomizationRequestOriginal, type UpdateCustomizationResponse as UpdateCustomizationResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, updateCustomization, updateCustomizationChoices };
1308
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddCustomizationChoicesApplicationErrors as AddCustomizationChoicesApplicationErrorsOriginal, type AddCustomizationChoicesRequest as AddCustomizationChoicesRequestOriginal, type AddCustomizationChoicesResponse as AddCustomizationChoicesResponseOriginal, type AddCustomizationChoicesValidationErrors as AddCustomizationChoicesValidationErrorsOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddCustomizationChoicesApplicationErrors as BulkAddCustomizationChoicesApplicationErrorsOriginal, type BulkAddCustomizationChoicesRequest as BulkAddCustomizationChoicesRequestOriginal, type BulkAddCustomizationChoicesResponse as BulkAddCustomizationChoicesResponseOriginal, type BulkAddCustomizationChoicesValidationErrors as BulkAddCustomizationChoicesValidationErrorsOriginal, type BulkCreateCustomizationsApplicationErrors as BulkCreateCustomizationsApplicationErrorsOriginal, type BulkCreateCustomizationsForMigrationRequest as BulkCreateCustomizationsForMigrationRequestOriginal, type BulkCreateCustomizationsForMigrationResponse as BulkCreateCustomizationsForMigrationResponseOriginal, type BulkCreateCustomizationsRequest as BulkCreateCustomizationsRequestOriginal, type BulkCreateCustomizationsResponse as BulkCreateCustomizationsResponseOriginal, type BulkCreateCustomizationsValidationErrors as BulkCreateCustomizationsValidationErrorsOriginal, type BulkCustomizationResult as BulkCustomizationResultOriginal, type BulkUpdateCustomizationsRequest as BulkUpdateCustomizationsRequestOriginal, type BulkUpdateCustomizationsResponse as BulkUpdateCustomizationsResponseOriginal, type ChoiceIdsMismatchData as ChoiceIdsMismatchDataOriginal, type Choice as ChoiceOriginal, ChoiceSortStrategy as ChoiceSortStrategyOriginal, type ChoiceSortStrategyWithLiterals as ChoiceSortStrategyWithLiteralsOriginal, ChoiceType as ChoiceTypeOriginal, type ChoiceTypeWithLiterals as ChoiceTypeWithLiteralsOriginal, type ChoiceValueOneOf as ChoiceValueOneOfOriginal, type ChoicesSettings as ChoicesSettingsOriginal, type CreateCustomizationApplicationErrors as CreateCustomizationApplicationErrorsOriginal, type CreateCustomizationRequest as CreateCustomizationRequestOriginal, type CreateCustomizationResponse as CreateCustomizationResponseOriginal, type CreateCustomizationValidationErrors as CreateCustomizationValidationErrorsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type CustomizationChoices as CustomizationChoicesOriginal, type CustomizationCustomizationSettingsOneOf as CustomizationCustomizationSettingsOneOfOriginal, type CustomizationIdsWrapper as CustomizationIdsWrapperOriginal, type Customization as CustomizationOriginal, CustomizationRenderType as CustomizationRenderTypeOriginal, type CustomizationRenderTypeWithLiterals as CustomizationRenderTypeWithLiteralsOriginal, CustomizationType as CustomizationTypeOriginal, type CustomizationTypeWithLiterals as CustomizationTypeWithLiteralsOriginal, type DeleteCustomizationRequest as DeleteCustomizationRequestOriginal, type DeleteCustomizationResponse as DeleteCustomizationResponseOriginal, type DeleteCustomizationValidationErrors as DeleteCustomizationValidationErrorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type FreeTextSettings as FreeTextSettingsOriginal, type GetCustomizationRequest as GetCustomizationRequestOriginal, type GetCustomizationResponse as GetCustomizationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type MaskedChoice as MaskedChoiceOriginal, type MaskedCustomization as MaskedCustomizationOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultipleColors as MultipleColorsOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryCustomizationsRequest as QueryCustomizationsRequestOriginal, type QueryCustomizationsResponse as QueryCustomizationsResponseOriginal, type RecloneSiteRequest as RecloneSiteRequestOriginal, type RecloneSiteResponse as RecloneSiteResponseOriginal, type RemoveCustomizationChoicesApplicationErrors as RemoveCustomizationChoicesApplicationErrorsOriginal, type RemoveCustomizationChoicesRequest as RemoveCustomizationChoicesRequestOriginal, type RemoveCustomizationChoicesResponse as RemoveCustomizationChoicesResponseOriginal, type RemoveCustomizationChoicesValidationErrors as RemoveCustomizationChoicesValidationErrorsOriginal, type ReorderCustomizationChoicesApplicationErrors as ReorderCustomizationChoicesApplicationErrorsOriginal, type ReorderCustomizationChoicesRequest as ReorderCustomizationChoicesRequestOriginal, type ReorderCustomizationChoicesResponse as ReorderCustomizationChoicesResponseOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type SetCustomizationChoicesApplicationErrors as SetCustomizationChoicesApplicationErrorsOriginal, type SetCustomizationChoicesRequest as SetCustomizationChoicesRequestOriginal, type SetCustomizationChoicesResponse as SetCustomizationChoicesResponseOriginal, type SetCustomizationChoicesValidationErrors as SetCustomizationChoicesValidationErrorsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateCustomizationChoicesApplicationErrors as UpdateCustomizationChoicesApplicationErrorsOriginal, type UpdateCustomizationChoicesRequest as UpdateCustomizationChoicesRequestOriginal, type UpdateCustomizationChoicesResponse as UpdateCustomizationChoicesResponseOriginal, type UpdateCustomizationChoicesValidationErrors as UpdateCustomizationChoicesValidationErrorsOriginal, type UpdateCustomizationRequest as UpdateCustomizationRequestOriginal, type UpdateCustomizationResponse as UpdateCustomizationResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, updateCustomization, updateCustomizationChoices };
package/build/cjs/meta.js CHANGED
@@ -36,6 +36,7 @@ __export(meta_exports, {
36
36
  getCustomization: () => getCustomization2,
37
37
  queryCustomizations: () => queryCustomizations2,
38
38
  removeCustomizationChoices: () => removeCustomizationChoices2,
39
+ reorderCustomizationChoices: () => reorderCustomizationChoices2,
39
40
  setCustomizationChoices: () => setCustomizationChoices2,
40
41
  updateCustomization: () => updateCustomization2,
41
42
  updateCustomizationChoices: () => updateCustomizationChoices2
@@ -635,6 +636,50 @@ function updateCustomizationChoices(payload) {
635
636
  }
636
637
  return __updateCustomizationChoices;
637
638
  }
639
+ function reorderCustomizationChoices(payload) {
640
+ function __reorderCustomizationChoices({ host }) {
641
+ const metadata = {
642
+ entityFqdn: "wix.stores.catalog.v3.customization",
643
+ method: "POST",
644
+ methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.ReorderCustomizationChoices",
645
+ packageName: PACKAGE_NAME,
646
+ migrationOptions: {
647
+ optInTransformResponse: true
648
+ },
649
+ url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
650
+ protoPath: "/v3/customizations/{customizationId}/reorder-choices",
651
+ data: payload,
652
+ host
653
+ }),
654
+ data: payload,
655
+ transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
656
+ {
657
+ transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
658
+ paths: [
659
+ { path: "customization.createdDate" },
660
+ { path: "customization.updatedDate" },
661
+ {
662
+ path: "customization.choicesSettings.choices.image.urlExpirationDate"
663
+ }
664
+ ]
665
+ },
666
+ {
667
+ transformFn: import_float2.transformRESTFloatToSDKFloat,
668
+ paths: [
669
+ {
670
+ path: "customization.choicesSettings.choices.image.focalPoint.x"
671
+ },
672
+ {
673
+ path: "customization.choicesSettings.choices.image.focalPoint.y"
674
+ }
675
+ ]
676
+ }
677
+ ])
678
+ };
679
+ return metadata;
680
+ }
681
+ return __reorderCustomizationChoices;
682
+ }
638
683
  function bulkAddCustomizationChoices(payload) {
639
684
  function __bulkAddCustomizationChoices({ host }) {
640
685
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -768,26 +813,22 @@ function bulkUpdateCustomizations(payload) {
768
813
 
769
814
  // src/stores-catalog-v3-customization-customizations-v-3.types.ts
770
815
  var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
771
- CustomizationType2["UNKNOWN_CUSTOMIZATION_TYPE"] = "UNKNOWN_CUSTOMIZATION_TYPE";
772
816
  CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
773
817
  CustomizationType2["MODIFIER"] = "MODIFIER";
774
818
  return CustomizationType2;
775
819
  })(CustomizationType || {});
776
820
  var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
777
- CustomizationRenderType2["UNKNOWN_CUSTOMIZATION_RENDER_TYPE"] = "UNKNOWN_CUSTOMIZATION_RENDER_TYPE";
778
821
  CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
779
822
  CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
780
823
  CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
781
824
  return CustomizationRenderType2;
782
825
  })(CustomizationRenderType || {});
783
826
  var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
784
- ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
785
827
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
786
828
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
787
829
  return ChoiceType2;
788
830
  })(ChoiceType || {});
789
831
  var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
790
- ChoiceSortStrategy2["UNKNOWN_CHOICE_SORT_STRATEGY"] = "UNKNOWN_CHOICE_SORT_STRATEGY";
791
832
  ChoiceSortStrategy2["DEFAULT"] = "DEFAULT";
792
833
  ChoiceSortStrategy2["BY_NAME"] = "BY_NAME";
793
834
  ChoiceSortStrategy2["BY_PRODUCT_COUNT"] = "BY_PRODUCT_COUNT";
@@ -795,7 +836,6 @@ var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
795
836
  return ChoiceSortStrategy2;
796
837
  })(ChoiceSortStrategy || {});
797
838
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
798
- RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
799
839
  RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
800
840
  return RequestedFields2;
801
841
  })(RequestedFields || {});
@@ -998,6 +1038,26 @@ function updateCustomizationChoices2() {
998
1038
  __originalResponseType: null
999
1039
  };
1000
1040
  }
1041
+ function reorderCustomizationChoices2() {
1042
+ const payload = { customizationId: ":customizationId" };
1043
+ const getRequestOptions = reorderCustomizationChoices(
1044
+ payload
1045
+ );
1046
+ const getUrl = (context) => {
1047
+ const { url } = getRequestOptions(context);
1048
+ return url;
1049
+ };
1050
+ return {
1051
+ getUrl,
1052
+ httpMethod: "POST",
1053
+ path: "/v3/customizations/{customizationId}/reorder-choices",
1054
+ pathParams: { customizationId: "customizationId" },
1055
+ __requestType: null,
1056
+ __originalRequestType: null,
1057
+ __responseType: null,
1058
+ __originalResponseType: null
1059
+ };
1060
+ }
1001
1061
  function bulkAddCustomizationChoices2() {
1002
1062
  const payload = {};
1003
1063
  const getRequestOptions = bulkAddCustomizationChoices(
@@ -1054,6 +1114,7 @@ function bulkUpdateCustomizations2() {
1054
1114
  getCustomization,
1055
1115
  queryCustomizations,
1056
1116
  removeCustomizationChoices,
1117
+ reorderCustomizationChoices,
1057
1118
  setCustomizationChoices,
1058
1119
  updateCustomization,
1059
1120
  updateCustomizationChoices