@wix/auto_sdk_stores_customizations-v-3 1.0.109 → 1.0.111
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 +12 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +51 -1
- package/build/cjs/index.typings.js +12 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +51 -1
- package/build/cjs/meta.js +12 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +11 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +51 -1
- package/build/es/index.typings.mjs +11 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +51 -1
- package/build/es/meta.mjs +11 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +85 -2
- package/build/internal/cjs/meta.d.ts +78 -2
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +85 -2
- package/build/internal/es/meta.d.mts +78 -2
- package/package.json +2 -2
|
@@ -296,6 +296,36 @@ declare enum ChoiceSortStrategy {
|
|
|
296
296
|
}
|
|
297
297
|
/** @enumType */
|
|
298
298
|
type ChoiceSortStrategyWithLiterals = ChoiceSortStrategy | 'DEFAULT' | 'BY_NAME' | 'BY_PRODUCT_COUNT' | 'MANUAL';
|
|
299
|
+
/** Settings for FILE customizations. Used for buyer file uploads. */
|
|
300
|
+
interface FileSettings {
|
|
301
|
+
/**
|
|
302
|
+
* Title to display to customer for their file upload.
|
|
303
|
+
* @minLength 1
|
|
304
|
+
* @maxLength 100
|
|
305
|
+
*/
|
|
306
|
+
title?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Accepted file types. An empty list means all types are accepted.
|
|
309
|
+
* @maxSize 6
|
|
310
|
+
*/
|
|
311
|
+
acceptedFileTypes?: AcceptedFileTypeWithLiterals[];
|
|
312
|
+
}
|
|
313
|
+
declare enum AcceptedFileType {
|
|
314
|
+
/** For example, JPG or PNG. */
|
|
315
|
+
IMAGE = "IMAGE",
|
|
316
|
+
/** For example, MP4. */
|
|
317
|
+
VIDEO = "VIDEO",
|
|
318
|
+
/** For example, MP3. */
|
|
319
|
+
AUDIO = "AUDIO",
|
|
320
|
+
/** For example, PDF. */
|
|
321
|
+
DOCUMENT = "DOCUMENT",
|
|
322
|
+
/** For example, SVG. */
|
|
323
|
+
VECTOR = "VECTOR",
|
|
324
|
+
/** For example, ZIP. */
|
|
325
|
+
ARCHIVE = "ARCHIVE"
|
|
326
|
+
}
|
|
327
|
+
/** @enumType */
|
|
328
|
+
type AcceptedFileTypeWithLiterals = AcceptedFileType | 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'VECTOR' | 'ARCHIVE';
|
|
299
329
|
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
300
330
|
/**
|
|
301
331
|
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
@@ -1159,6 +1189,18 @@ type CreateCustomizationApplicationErrors = {
|
|
|
1159
1189
|
code?: 'MODIFIER_SETTINGS_NOT_SUPPORTED_FOR_PRODUCT_OPTION';
|
|
1160
1190
|
description?: string;
|
|
1161
1191
|
data?: Record<string, any>;
|
|
1192
|
+
} | {
|
|
1193
|
+
code?: 'DOESNT_SUPPORT_FILE';
|
|
1194
|
+
description?: string;
|
|
1195
|
+
data?: Record<string, any>;
|
|
1196
|
+
} | {
|
|
1197
|
+
code?: 'DOESNT_SUPPORT_FREE_TEXT';
|
|
1198
|
+
description?: string;
|
|
1199
|
+
data?: Record<string, any>;
|
|
1200
|
+
} | {
|
|
1201
|
+
code?: 'DOESNT_SUPPORT_CHOICES';
|
|
1202
|
+
description?: string;
|
|
1203
|
+
data?: Record<string, any>;
|
|
1162
1204
|
};
|
|
1163
1205
|
/** @docsIgnore */
|
|
1164
1206
|
type CreateCustomizationValidationErrors = {
|
|
@@ -1221,6 +1263,14 @@ type BulkCreateCustomizationsApplicationErrors = {
|
|
|
1221
1263
|
code?: 'INVALID_CUSTOMIZATION_RENDER_TYPE';
|
|
1222
1264
|
description?: string;
|
|
1223
1265
|
data?: Record<string, any>;
|
|
1266
|
+
} | {
|
|
1267
|
+
code?: 'DOESNT_SUPPORT_FILE';
|
|
1268
|
+
description?: string;
|
|
1269
|
+
data?: Record<string, any>;
|
|
1270
|
+
} | {
|
|
1271
|
+
code?: 'DOESNT_SUPPORT_FREE_TEXT';
|
|
1272
|
+
description?: string;
|
|
1273
|
+
data?: Record<string, any>;
|
|
1224
1274
|
};
|
|
1225
1275
|
/** @docsIgnore */
|
|
1226
1276
|
type BulkCreateCustomizationsValidationErrors = {
|
|
@@ -2140,4 +2190,4 @@ interface BulkUpdateCustomizationsOptions {
|
|
|
2140
2190
|
fields?: RequestedFieldsWithLiterals[];
|
|
2141
2191
|
}
|
|
2142
2192
|
|
|
2143
|
-
export { type AccountInfo, type AccountInfoMetadata, 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 BulkCreateCustomizationsForMigrationRequest, type BulkCreateCustomizationsForMigrationResponse, type BulkCreateCustomizationsOptions, type BulkCreateCustomizationsRequest, type BulkCreateCustomizationsResponse, type BulkCreateCustomizationsValidationErrors, type BulkCustomizationResult, type BulkUpdateCustomizationsApplicationErrors, type BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type CatalogRollbackRequested, type Choice, type ChoiceIdsMismatchData, ChoiceSortStrategy, type ChoiceSortStrategyWithLiterals, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, type CountCustomizationsOptions, type CountCustomizationsRequest, type CountCustomizationsResponse, type CreateCustomizationApplicationErrors, type CreateCustomizationOptions, 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 CustomizationTypeSpecificSettingsOneOf, 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 MaskedChoice, type MaskedCustomization, type MessageEnvelope, type ModifierSettings, type MultipleColors, type Page, type Pages, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, type ReorderCustomizationChoicesApplicationErrors, type ReorderCustomizationChoicesOptions, type ReorderCustomizationChoicesRequest, type ReorderCustomizationChoicesResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type URIs, type UpdateCustomization, type UpdateCustomizationApplicationErrors, type UpdateCustomizationChoicesApplicationErrors, type UpdateCustomizationChoicesOptions, type UpdateCustomizationChoicesRequest, type UpdateCustomizationChoicesResponse, type UpdateCustomizationChoicesValidationErrors, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, countCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization, updateCustomizationChoices, utils };
|
|
2193
|
+
export { AcceptedFileType, type AcceptedFileTypeWithLiterals, type AccountInfo, type AccountInfoMetadata, 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 BulkCreateCustomizationsForMigrationRequest, type BulkCreateCustomizationsForMigrationResponse, type BulkCreateCustomizationsOptions, type BulkCreateCustomizationsRequest, type BulkCreateCustomizationsResponse, type BulkCreateCustomizationsValidationErrors, type BulkCustomizationResult, type BulkUpdateCustomizationsApplicationErrors, type BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type CatalogRollbackRequested, type Choice, type ChoiceIdsMismatchData, ChoiceSortStrategy, type ChoiceSortStrategyWithLiterals, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, type CountCustomizationsOptions, type CountCustomizationsRequest, type CountCustomizationsResponse, type CreateCustomizationApplicationErrors, type CreateCustomizationOptions, 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 CustomizationTypeSpecificSettingsOneOf, 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 FileSettings, type FocalPoint, type FreeTextSettings, type GetCustomizationOptions, type GetCustomizationRequest, type GetCustomizationResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type MaskedChoice, type MaskedCustomization, type MessageEnvelope, type ModifierSettings, type MultipleColors, type Page, type Pages, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, type ReorderCustomizationChoicesApplicationErrors, type ReorderCustomizationChoicesOptions, type ReorderCustomizationChoicesRequest, type ReorderCustomizationChoicesResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type URIs, type UpdateCustomization, type UpdateCustomizationApplicationErrors, type UpdateCustomizationChoicesApplicationErrors, type UpdateCustomizationChoicesOptions, type UpdateCustomizationChoicesRequest, type UpdateCustomizationChoicesResponse, type UpdateCustomizationChoicesValidationErrors, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, countCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization, updateCustomizationChoices, utils };
|
|
@@ -710,6 +710,7 @@ var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
|
|
|
710
710
|
CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
|
|
711
711
|
CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
|
|
712
712
|
CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
|
|
713
|
+
CustomizationRenderType2["FILE"] = "FILE";
|
|
713
714
|
return CustomizationRenderType2;
|
|
714
715
|
})(CustomizationRenderType || {});
|
|
715
716
|
var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
|
|
@@ -726,6 +727,15 @@ var ChoiceSortStrategy = /* @__PURE__ */ ((ChoiceSortStrategy2) => {
|
|
|
726
727
|
ChoiceSortStrategy2["MANUAL"] = "MANUAL";
|
|
727
728
|
return ChoiceSortStrategy2;
|
|
728
729
|
})(ChoiceSortStrategy || {});
|
|
730
|
+
var AcceptedFileType = /* @__PURE__ */ ((AcceptedFileType2) => {
|
|
731
|
+
AcceptedFileType2["IMAGE"] = "IMAGE";
|
|
732
|
+
AcceptedFileType2["VIDEO"] = "VIDEO";
|
|
733
|
+
AcceptedFileType2["AUDIO"] = "AUDIO";
|
|
734
|
+
AcceptedFileType2["DOCUMENT"] = "DOCUMENT";
|
|
735
|
+
AcceptedFileType2["VECTOR"] = "VECTOR";
|
|
736
|
+
AcceptedFileType2["ARCHIVE"] = "ARCHIVE";
|
|
737
|
+
return AcceptedFileType2;
|
|
738
|
+
})(AcceptedFileType || {});
|
|
729
739
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
730
740
|
RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
|
|
731
741
|
RequestedFields2["CHOICE_DISPLAY_IMAGE"] = "CHOICE_DISPLAY_IMAGE";
|
|
@@ -1374,6 +1384,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
|
|
|
1374
1384
|
}
|
|
1375
1385
|
}
|
|
1376
1386
|
export {
|
|
1387
|
+
AcceptedFileType,
|
|
1377
1388
|
ChoiceSortStrategy,
|
|
1378
1389
|
ChoiceType,
|
|
1379
1390
|
CustomizationRenderType,
|