@wix/auto_sdk_stores_customizations-v-3 1.0.43 → 1.0.45

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 +4 -4
  2. package/build/cjs/index.js +7 -4
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +76 -12
  5. package/build/cjs/index.typings.js +0 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +12 -10
  8. package/build/cjs/meta.js +0 -2
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +4 -4
  11. package/build/es/index.mjs +7 -4
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +76 -12
  14. package/build/es/index.typings.mjs +0 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +12 -10
  17. package/build/es/meta.mjs +0 -2
  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 +7 -4
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +76 -12
  23. package/build/internal/cjs/index.typings.js +0 -2
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +12 -10
  26. package/build/internal/cjs/meta.js +0 -2
  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 +7 -4
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +76 -12
  32. package/build/internal/es/index.typings.mjs +0 -2
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +12 -10
  35. package/build/internal/es/meta.mjs +0 -2
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
1
+ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
2
2
 
3
3
  /**
4
4
  * Customizations include options and modifiers which can later be applied to products.
@@ -150,8 +150,8 @@ interface Choice extends ChoiceValueOneOf {
150
150
  * Choice type.
151
151
  *
152
152
  * > **Notes:**
153
- * > + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` values are: `ONE_COLOR`, `MULTIPLE_COLORS`, or `IMAGE`.
154
- * > + For a `customizationRenderType` of `TEXT_CHOICES` and `FREE_TEXT`, the supported `choiceType` value is: `CHOICE_TEXT`.
153
+ * > + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.
154
+ * > + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`.
155
155
  * @immutable
156
156
  */
157
157
  choiceType?: ChoiceTypeWithLiterals;
@@ -191,17 +191,13 @@ interface ChoiceValueOneOf {
191
191
  }
192
192
  declare enum ChoiceType {
193
193
  UNKNOWN_CHOICE_TYPE = "UNKNOWN_CHOICE_TYPE",
194
- /** For a `customizationRenderType` of `TEXT_CHOICES` and `FREE_TEXT`. */
194
+ /** For a `customizationRenderType` of `TEXT_CHOICES`. */
195
195
  CHOICE_TEXT = "CHOICE_TEXT",
196
196
  /** For `customizationRenderType: SWATCH_CHOICES`. */
197
- ONE_COLOR = "ONE_COLOR",
198
- /** For `customizationRenderType: SWATCH_CHOICES`. */
199
- MULTIPLE_COLORS = "MULTIPLE_COLORS",
200
- /** For `customizationRenderType: SWATCH_CHOICES`. */
201
- IMAGE = "IMAGE"
197
+ ONE_COLOR = "ONE_COLOR"
202
198
  }
203
199
  /** @enumType */
204
- type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
200
+ type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR';
205
201
  interface MultipleColors {
206
202
  /**
207
203
  * A list of color codes.
@@ -791,6 +787,12 @@ interface ActionEvent {
791
787
  }
792
788
  interface Empty {
793
789
  }
790
+ interface RecloneSiteRequest {
791
+ /** @format GUID */
792
+ cloneFrom?: string;
793
+ }
794
+ interface RecloneSiteResponse {
795
+ }
794
796
  interface MessageEnvelope {
795
797
  /**
796
798
  * App instance ID.
@@ -1112,6 +1114,7 @@ declare function onCustomizationDeleted(handler: (event: CustomizationDeletedEnv
1112
1114
  interface CustomizationUpdatedEnvelope {
1113
1115
  entity: Customization;
1114
1116
  metadata: EventMetadata;
1117
+ modifiedFields: Record<string, any>;
1115
1118
  }
1116
1119
  /**
1117
1120
  * Triggered when a customization is updated.
@@ -1382,7 +1385,68 @@ interface CustomizationsQueryBuilder {
1382
1385
  * @fqn wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations
1383
1386
  * @requiredField query
1384
1387
  */
1385
- declare function typedQueryCustomizations(query: CursorQuery, options?: QueryCustomizationsOptions): Promise<NonNullablePaths<QueryCustomizationsResponse, `customizations` | `customizations.${number}.freeTextInput.minCharCount` | `customizations.${number}.freeTextInput.maxCharCount` | `customizations.${number}.freeTextInput.title` | `customizations.${number}.name` | `customizations.${number}.customizationType` | `customizations.${number}.customizationRenderType`, 5>>;
1388
+ declare function typedQueryCustomizations(query: CustomizationQuery, options?: QueryCustomizationsOptions): Promise<NonNullablePaths<QueryCustomizationsResponse, `customizations` | `customizations.${number}.freeTextInput.minCharCount` | `customizations.${number}.freeTextInput.maxCharCount` | `customizations.${number}.freeTextInput.title` | `customizations.${number}.name` | `customizations.${number}.customizationType` | `customizations.${number}.customizationRenderType`, 5>>;
1389
+ interface CustomizationQuerySpec extends QuerySpec {
1390
+ paging: 'cursor';
1391
+ wql: [
1392
+ {
1393
+ fields: ['_createdDate', '_id', '_updatedDate', 'name'];
1394
+ operators: '*';
1395
+ sort: 'BOTH';
1396
+ },
1397
+ {
1398
+ fields: ['customizationRenderType', 'customizationType'];
1399
+ operators: '*';
1400
+ sort: 'NONE';
1401
+ }
1402
+ ];
1403
+ }
1404
+ type CommonQueryWithEntityContext = Query<Customization, CustomizationQuerySpec>;
1405
+ type CustomizationQuery = {
1406
+ /**
1407
+ Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`.
1408
+ */
1409
+ cursorPaging?: {
1410
+ /**
1411
+ Maximum number of items to return in the results.
1412
+ @max: 100
1413
+ */
1414
+ limit?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['limit'] | null;
1415
+ /**
1416
+ Pointer to the next or previous page in the list of results.
1417
+
1418
+ Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
1419
+ Not relevant for the first request.
1420
+ @maxLength: 16000
1421
+ */
1422
+ cursor?: NonNullable<CommonQueryWithEntityContext['cursorPaging']>['cursor'] | null;
1423
+ };
1424
+ /**
1425
+ Filter object in the following format:
1426
+ `"filter" : {
1427
+ "fieldName1": "value1",
1428
+ "fieldName2":{"$operator":"value2"}
1429
+ }`
1430
+ Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
1431
+ */
1432
+ filter?: CommonQueryWithEntityContext['filter'] | null;
1433
+ /**
1434
+ Sort object in the following format:
1435
+ `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
1436
+ @maxSize: 5
1437
+ */
1438
+ sort?: {
1439
+ /**
1440
+ Name of the field to sort by.
1441
+ @maxLength: 512
1442
+ */
1443
+ fieldName?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['fieldName'];
1444
+ /**
1445
+ Sort order.
1446
+ */
1447
+ order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
1448
+ }[];
1449
+ };
1386
1450
  /**
1387
1451
  * Creates multiple brands.
1388
1452
  * @param customizations - Customizations to create.
@@ -1545,4 +1609,4 @@ interface BulkUpdateCustomizationsOptions {
1545
1609
  fields?: RequestedFieldsWithLiterals[];
1546
1610
  }
1547
1611
 
1548
- export { type ActionEvent, type AddCustomizationChoicesApplicationErrors, type AddCustomizationChoicesOptions, type AddCustomizationChoicesRequest, type AddCustomizationChoicesResponse, type AddCustomizationChoicesValidationErrors, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkAddCustomizationChoicesApplicationErrors, type BulkAddCustomizationChoicesOptions, type BulkAddCustomizationChoicesRequest, type BulkAddCustomizationChoicesResponse, type BulkAddCustomizationChoicesValidationErrors, type BulkCreateCustomizationsApplicationErrors, type BulkCreateCustomizationsOptions, type BulkCreateCustomizationsRequest, type BulkCreateCustomizationsResponse, type BulkCreateCustomizationsValidationErrors, type BulkCustomizationResult, type BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type Choice, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CreateCustomizationApplicationErrors, type CreateCustomizationRequest, type CreateCustomizationResponse, type CreateCustomizationValidationErrors, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Customization, type CustomizationChoices, type CustomizationCreatedEnvelope, type CustomizationCustomizationSettingsOneOf, type CustomizationDeletedEnvelope, type CustomizationIdsWrapper, CustomizationRenderType, type CustomizationRenderTypeWithLiterals, CustomizationType, type CustomizationTypeWithLiterals, type CustomizationUpdatedEnvelope, type CustomizationsQueryBuilder, type CustomizationsQueryResult, type DeleteCustomizationRequest, type DeleteCustomizationResponse, type DeleteCustomizationValidationErrors, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type FocalPoint, type FreeTextSettings, type GetCustomizationOptions, type GetCustomizationRequest, type GetCustomizationResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type UpdateCustomization, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization };
1612
+ export { type ActionEvent, type AddCustomizationChoicesApplicationErrors, type AddCustomizationChoicesOptions, type AddCustomizationChoicesRequest, type AddCustomizationChoicesResponse, type AddCustomizationChoicesValidationErrors, type App, type ApplicationError, type BaseEventMetadata, type BulkActionMetadata, type BulkAddCustomizationChoicesApplicationErrors, type BulkAddCustomizationChoicesOptions, type BulkAddCustomizationChoicesRequest, type BulkAddCustomizationChoicesResponse, type BulkAddCustomizationChoicesValidationErrors, type BulkCreateCustomizationsApplicationErrors, type BulkCreateCustomizationsOptions, type BulkCreateCustomizationsRequest, type BulkCreateCustomizationsResponse, type BulkCreateCustomizationsValidationErrors, type BulkCustomizationResult, type BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type Choice, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, type CreateCustomizationApplicationErrors, type CreateCustomizationRequest, type CreateCustomizationResponse, type CreateCustomizationValidationErrors, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomTag, type Customization, type CustomizationChoices, type CustomizationCreatedEnvelope, type CustomizationCustomizationSettingsOneOf, type CustomizationDeletedEnvelope, type CustomizationIdsWrapper, type CustomizationQuery, type CustomizationQuerySpec, CustomizationRenderType, type CustomizationRenderTypeWithLiterals, CustomizationType, type CustomizationTypeWithLiterals, type CustomizationUpdatedEnvelope, type CustomizationsQueryBuilder, type CustomizationsQueryResult, type DeleteCustomizationRequest, type DeleteCustomizationResponse, type DeleteCustomizationValidationErrors, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type File, type FocalPoint, type FreeTextSettings, type GetCustomizationOptions, type GetCustomizationRequest, type GetCustomizationResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type UpdateCustomization, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization };
@@ -690,8 +690,6 @@ var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
690
690
  ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
691
691
  ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
692
692
  ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
693
- ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
694
- ChoiceType2["IMAGE"] = "IMAGE";
695
693
  return ChoiceType2;
696
694
  })(ChoiceType || {});
697
695
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {