@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +98 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +70 -16
- package/build/cjs/index.typings.js +88 -5
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +58 -17
- package/build/cjs/meta.js +66 -5
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +97 -5
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +70 -16
- package/build/es/index.typings.mjs +87 -5
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +58 -17
- package/build/es/meta.mjs +65 -5
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +19 -3
- package/build/internal/cjs/index.js +98 -5
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +89 -17
- package/build/internal/cjs/index.typings.js +88 -5
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +58 -17
- package/build/internal/cjs/meta.js +66 -5
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +19 -3
- package/build/internal/es/index.mjs +97 -5
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +89 -17
- package/build/internal/es/index.typings.mjs +87 -5
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +58 -17
- package/build/internal/es/meta.mjs +65 -5
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -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.mjs';
|
|
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.mjs';
|
|
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 | '
|
|
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 | '
|
|
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 | '
|
|
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
|
-
|
|
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
|
-
/**
|
|
261
|
+
/** Alphabetically by name, case-insensitive. Numeric values are sorted first. */
|
|
266
262
|
BY_NAME = "BY_NAME",
|
|
267
|
-
/**
|
|
263
|
+
/** By the number of products assigned to each choice, in descending order. */
|
|
268
264
|
BY_PRODUCT_COUNT = "BY_PRODUCT_COUNT",
|
|
269
|
-
/**
|
|
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 | '
|
|
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 | '
|
|
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/es/meta.mjs
CHANGED
|
@@ -591,6 +591,50 @@ function updateCustomizationChoices(payload) {
|
|
|
591
591
|
}
|
|
592
592
|
return __updateCustomizationChoices;
|
|
593
593
|
}
|
|
594
|
+
function reorderCustomizationChoices(payload) {
|
|
595
|
+
function __reorderCustomizationChoices({ host }) {
|
|
596
|
+
const metadata = {
|
|
597
|
+
entityFqdn: "wix.stores.catalog.v3.customization",
|
|
598
|
+
method: "POST",
|
|
599
|
+
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.ReorderCustomizationChoices",
|
|
600
|
+
packageName: PACKAGE_NAME,
|
|
601
|
+
migrationOptions: {
|
|
602
|
+
optInTransformResponse: true
|
|
603
|
+
},
|
|
604
|
+
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
605
|
+
protoPath: "/v3/customizations/{customizationId}/reorder-choices",
|
|
606
|
+
data: payload,
|
|
607
|
+
host
|
|
608
|
+
}),
|
|
609
|
+
data: payload,
|
|
610
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
611
|
+
{
|
|
612
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
613
|
+
paths: [
|
|
614
|
+
{ path: "customization.createdDate" },
|
|
615
|
+
{ path: "customization.updatedDate" },
|
|
616
|
+
{
|
|
617
|
+
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
618
|
+
}
|
|
619
|
+
]
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
623
|
+
paths: [
|
|
624
|
+
{
|
|
625
|
+
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
629
|
+
}
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
])
|
|
633
|
+
};
|
|
634
|
+
return metadata;
|
|
635
|
+
}
|
|
636
|
+
return __reorderCustomizationChoices;
|
|
637
|
+
}
|
|
594
638
|
function bulkAddCustomizationChoices(payload) {
|
|
595
639
|
function __bulkAddCustomizationChoices({ host }) {
|
|
596
640
|
const serializedData = transformPaths(payload, [
|
|
@@ -724,26 +768,22 @@ function bulkUpdateCustomizations(payload) {
|
|
|
724
768
|
|
|
725
769
|
// src/stores-catalog-v3-customization-customizations-v-3.types.ts
|
|
726
770
|
var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
|
|
727
|
-
CustomizationType2["UNKNOWN_CUSTOMIZATION_TYPE"] = "UNKNOWN_CUSTOMIZATION_TYPE";
|
|
728
771
|
CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
|
|
729
772
|
CustomizationType2["MODIFIER"] = "MODIFIER";
|
|
730
773
|
return CustomizationType2;
|
|
731
774
|
})(CustomizationType || {});
|
|
732
775
|
var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
|
|
733
|
-
CustomizationRenderType2["UNKNOWN_CUSTOMIZATION_RENDER_TYPE"] = "UNKNOWN_CUSTOMIZATION_RENDER_TYPE";
|
|
734
776
|
CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
|
|
735
777
|
CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
|
|
736
778
|
CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
|
|
737
779
|
return CustomizationRenderType2;
|
|
738
780
|
})(CustomizationRenderType || {});
|
|
739
781
|
var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
|
|
740
|
-
ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
|
|
741
782
|
ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
|
|
742
783
|
ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
|
|
743
784
|
return ChoiceType2;
|
|
744
785
|
})(ChoiceType || {});
|
|
745
786
|
var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
|
|
746
|
-
ChoiceSortStrategy2["UNKNOWN_CHOICE_SORT_STRATEGY"] = "UNKNOWN_CHOICE_SORT_STRATEGY";
|
|
747
787
|
ChoiceSortStrategy2["DEFAULT"] = "DEFAULT";
|
|
748
788
|
ChoiceSortStrategy2["BY_NAME"] = "BY_NAME";
|
|
749
789
|
ChoiceSortStrategy2["BY_PRODUCT_COUNT"] = "BY_PRODUCT_COUNT";
|
|
@@ -751,7 +791,6 @@ var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
|
|
|
751
791
|
return ChoiceSortStrategy2;
|
|
752
792
|
})(ChoiceSortStrategy || {});
|
|
753
793
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
754
|
-
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
755
794
|
RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
|
|
756
795
|
return RequestedFields2;
|
|
757
796
|
})(RequestedFields || {});
|
|
@@ -954,6 +993,26 @@ function updateCustomizationChoices2() {
|
|
|
954
993
|
__originalResponseType: null
|
|
955
994
|
};
|
|
956
995
|
}
|
|
996
|
+
function reorderCustomizationChoices2() {
|
|
997
|
+
const payload = { customizationId: ":customizationId" };
|
|
998
|
+
const getRequestOptions = reorderCustomizationChoices(
|
|
999
|
+
payload
|
|
1000
|
+
);
|
|
1001
|
+
const getUrl = (context) => {
|
|
1002
|
+
const { url } = getRequestOptions(context);
|
|
1003
|
+
return url;
|
|
1004
|
+
};
|
|
1005
|
+
return {
|
|
1006
|
+
getUrl,
|
|
1007
|
+
httpMethod: "POST",
|
|
1008
|
+
path: "/v3/customizations/{customizationId}/reorder-choices",
|
|
1009
|
+
pathParams: { customizationId: "customizationId" },
|
|
1010
|
+
__requestType: null,
|
|
1011
|
+
__originalRequestType: null,
|
|
1012
|
+
__responseType: null,
|
|
1013
|
+
__originalResponseType: null
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
957
1016
|
function bulkAddCustomizationChoices2() {
|
|
958
1017
|
const payload = {};
|
|
959
1018
|
const getRequestOptions = bulkAddCustomizationChoices(
|
|
@@ -1009,6 +1068,7 @@ export {
|
|
|
1009
1068
|
getCustomization2 as getCustomization,
|
|
1010
1069
|
queryCustomizations2 as queryCustomizations,
|
|
1011
1070
|
removeCustomizationChoices2 as removeCustomizationChoices,
|
|
1071
|
+
reorderCustomizationChoices2 as reorderCustomizationChoices,
|
|
1012
1072
|
setCustomizationChoices2 as setCustomizationChoices,
|
|
1013
1073
|
updateCustomization2 as updateCustomization,
|
|
1014
1074
|
updateCustomizationChoices2 as updateCustomizationChoices
|