@wix/auto_sdk_stores_customizations-v-3 1.0.26 → 1.0.28
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 +11 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -59
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +11 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -59
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -24
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +13 -59
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -24
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +13 -59
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1047,7 +1047,6 @@ interface CustomizationCreatedEnvelope {
|
|
|
1047
1047
|
* @eventType wix.stores.catalog.v3.customization_created
|
|
1048
1048
|
* @serviceIdentifier wix.stores.catalog.customization.v3.CustomizationService
|
|
1049
1049
|
* @slug created
|
|
1050
|
-
* @documentationMaturity preview
|
|
1051
1050
|
*/
|
|
1052
1051
|
declare function onCustomizationCreated(handler: (event: CustomizationCreatedEnvelope) => void | Promise<void>): void;
|
|
1053
1052
|
interface CustomizationDeletedEnvelope {
|
|
@@ -1083,7 +1082,6 @@ interface CustomizationDeletedEnvelope {
|
|
|
1083
1082
|
* @eventType wix.stores.catalog.v3.customization_deleted
|
|
1084
1083
|
* @serviceIdentifier wix.stores.catalog.customization.v3.CustomizationService
|
|
1085
1084
|
* @slug deleted
|
|
1086
|
-
* @documentationMaturity preview
|
|
1087
1085
|
*/
|
|
1088
1086
|
declare function onCustomizationDeleted(handler: (event: CustomizationDeletedEnvelope) => void | Promise<void>): void;
|
|
1089
1087
|
interface CustomizationUpdatedEnvelope {
|
|
@@ -1119,15 +1117,12 @@ interface CustomizationUpdatedEnvelope {
|
|
|
1119
1117
|
* @eventType wix.stores.catalog.v3.customization_updated
|
|
1120
1118
|
* @serviceIdentifier wix.stores.catalog.customization.v3.CustomizationService
|
|
1121
1119
|
* @slug updated
|
|
1122
|
-
* @documentationMaturity preview
|
|
1123
1120
|
*/
|
|
1124
1121
|
declare function onCustomizationUpdated(handler: (event: CustomizationUpdatedEnvelope) => void | Promise<void>): void;
|
|
1125
|
-
type CustomizationNonNullablePaths = `freeTextInput.minCharCount` | `freeTextInput.maxCharCount` | `freeTextInput.title` | `choicesSettings.choices` | `choicesSettings.choices.${number}.colorCode` | `choicesSettings.choices.${number}._id` | `choicesSettings.choices.${number}.choiceType` | `choicesSettings.choices.${number}.name` | `choicesSettings.choices.${number}.assignedProductsCount` | `name` | `customizationType` | `customizationRenderType`;
|
|
1126
1122
|
/**
|
|
1127
1123
|
* Creates a customization.
|
|
1128
1124
|
* @param customization - Customization to create.
|
|
1129
1125
|
* @public
|
|
1130
|
-
* @documentationMaturity preview
|
|
1131
1126
|
* @requiredField customization
|
|
1132
1127
|
* @requiredField customization.choicesSettings.choices
|
|
1133
1128
|
* @requiredField customization.customizationRenderType
|
|
@@ -1139,7 +1134,7 @@ type CustomizationNonNullablePaths = `freeTextInput.minCharCount` | `freeTextInp
|
|
|
1139
1134
|
* @returns Created customization.
|
|
1140
1135
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization
|
|
1141
1136
|
*/
|
|
1142
|
-
declare function createCustomization(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`>): Promise<NonNullablePaths<Customization,
|
|
1137
|
+
declare function createCustomization(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`>): Promise<NonNullablePaths<Customization, `freeTextInput.minCharCount` | `freeTextInput.maxCharCount` | `freeTextInput.title` | `choicesSettings.choices` | `choicesSettings.choices.${number}.colorCode` | `choicesSettings.choices.${number}._id` | `choicesSettings.choices.${number}.choiceType` | `choicesSettings.choices.${number}.name` | `choicesSettings.choices.${number}.assignedProductsCount` | `name` | `customizationType` | `customizationRenderType`> & {
|
|
1143
1138
|
__applicationErrorsType?: CreateCustomizationApplicationErrors;
|
|
1144
1139
|
__validationErrorsType?: CreateCustomizationValidationErrors;
|
|
1145
1140
|
}>;
|
|
@@ -1147,7 +1142,6 @@ declare function createCustomization(customization: NonNullablePaths<Customizati
|
|
|
1147
1142
|
* Retrieves a customization.
|
|
1148
1143
|
* @param customizationId - Customization ID.
|
|
1149
1144
|
* @public
|
|
1150
|
-
* @documentationMaturity preview
|
|
1151
1145
|
* @requiredField customizationId
|
|
1152
1146
|
* @permissionId WIX_STORES.CUSTOMIZATION_READ
|
|
1153
1147
|
* @applicableIdentity APP
|
|
@@ -1155,7 +1149,7 @@ declare function createCustomization(customization: NonNullablePaths<Customizati
|
|
|
1155
1149
|
* @returns Customization.
|
|
1156
1150
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.GetCustomization
|
|
1157
1151
|
*/
|
|
1158
|
-
declare function getCustomization(customizationId: string, options?: GetCustomizationOptions): Promise<NonNullablePaths<Customization,
|
|
1152
|
+
declare function getCustomization(customizationId: string, options?: GetCustomizationOptions): Promise<NonNullablePaths<Customization, `freeTextInput.minCharCount` | `freeTextInput.maxCharCount` | `freeTextInput.title` | `choicesSettings.choices` | `choicesSettings.choices.${number}.colorCode` | `choicesSettings.choices.${number}._id` | `choicesSettings.choices.${number}.choiceType` | `choicesSettings.choices.${number}.name` | `choicesSettings.choices.${number}.assignedProductsCount` | `name` | `customizationType` | `customizationRenderType`>>;
|
|
1159
1153
|
interface GetCustomizationOptions {
|
|
1160
1154
|
/**
|
|
1161
1155
|
* Fields to include in the response.
|
|
@@ -1173,7 +1167,6 @@ interface GetCustomizationOptions {
|
|
|
1173
1167
|
* This ensures you're working with the latest customization and prevents unintended overwrites.
|
|
1174
1168
|
* @param _id - Customization ID.
|
|
1175
1169
|
* @public
|
|
1176
|
-
* @documentationMaturity preview
|
|
1177
1170
|
* @requiredField _id
|
|
1178
1171
|
* @requiredField customization
|
|
1179
1172
|
* @requiredField customization.revision
|
|
@@ -1182,7 +1175,7 @@ interface GetCustomizationOptions {
|
|
|
1182
1175
|
* @returns Updated customization.
|
|
1183
1176
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization
|
|
1184
1177
|
*/
|
|
1185
|
-
declare function updateCustomization(_id: string, customization: NonNullablePaths<UpdateCustomization, `revision`>, options?: UpdateCustomizationOptions): Promise<NonNullablePaths<Customization,
|
|
1178
|
+
declare function updateCustomization(_id: string, customization: NonNullablePaths<UpdateCustomization, `revision`>, options?: UpdateCustomizationOptions): Promise<NonNullablePaths<Customization, `freeTextInput.minCharCount` | `freeTextInput.maxCharCount` | `freeTextInput.title` | `choicesSettings.choices` | `choicesSettings.choices.${number}.colorCode` | `choicesSettings.choices.${number}._id` | `choicesSettings.choices.${number}.choiceType` | `choicesSettings.choices.${number}.name` | `choicesSettings.choices.${number}.assignedProductsCount` | `name` | `customizationType` | `customizationRenderType`>>;
|
|
1186
1179
|
interface UpdateCustomization {
|
|
1187
1180
|
/**
|
|
1188
1181
|
* Free text input settings.
|
|
@@ -1263,7 +1256,6 @@ interface UpdateCustomizationOptions {
|
|
|
1263
1256
|
* > **Note:** A customization cannot be deleted if it is assigned to one or more products.
|
|
1264
1257
|
* @param customizationId - Customization ID.
|
|
1265
1258
|
* @public
|
|
1266
|
-
* @documentationMaturity preview
|
|
1267
1259
|
* @requiredField customizationId
|
|
1268
1260
|
* @permissionId WIX_STORES.CUSTOMIZATION_DELETE
|
|
1269
1261
|
* @applicableIdentity APP
|
|
@@ -1289,7 +1281,6 @@ declare function deleteCustomization(customizationId: string): Promise<void & {
|
|
|
1289
1281
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
1290
1282
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
1291
1283
|
* @public
|
|
1292
|
-
* @documentationMaturity preview
|
|
1293
1284
|
* @permissionId WIX_STORES.CUSTOMIZATION_READ
|
|
1294
1285
|
* @applicableIdentity APP
|
|
1295
1286
|
* @applicableIdentity VISITOR
|
|
@@ -1321,80 +1312,58 @@ interface CustomizationsQueryResult extends QueryCursorResult {
|
|
|
1321
1312
|
interface CustomizationsQueryBuilder {
|
|
1322
1313
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1323
1314
|
* @param value - Value to compare against.
|
|
1324
|
-
* @documentationMaturity preview
|
|
1325
1315
|
*/
|
|
1326
1316
|
eq: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any) => CustomizationsQueryBuilder;
|
|
1327
1317
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1328
1318
|
* @param value - Value to compare against.
|
|
1329
|
-
* @documentationMaturity preview
|
|
1330
1319
|
*/
|
|
1331
1320
|
ne: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any) => CustomizationsQueryBuilder;
|
|
1332
1321
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1333
1322
|
* @param value - Value to compare against.
|
|
1334
|
-
* @documentationMaturity preview
|
|
1335
1323
|
*/
|
|
1336
1324
|
ge: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => CustomizationsQueryBuilder;
|
|
1337
1325
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1338
1326
|
* @param value - Value to compare against.
|
|
1339
|
-
* @documentationMaturity preview
|
|
1340
1327
|
*/
|
|
1341
1328
|
gt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => CustomizationsQueryBuilder;
|
|
1342
1329
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1343
1330
|
* @param value - Value to compare against.
|
|
1344
|
-
* @documentationMaturity preview
|
|
1345
1331
|
*/
|
|
1346
1332
|
le: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => CustomizationsQueryBuilder;
|
|
1347
1333
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1348
1334
|
* @param value - Value to compare against.
|
|
1349
|
-
* @documentationMaturity preview
|
|
1350
1335
|
*/
|
|
1351
1336
|
lt: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name', value: any) => CustomizationsQueryBuilder;
|
|
1352
1337
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
1353
1338
|
* @param string - String to compare against. Case-insensitive.
|
|
1354
|
-
* @documentationMaturity preview
|
|
1355
1339
|
*/
|
|
1356
1340
|
startsWith: (propertyName: '_id' | 'name', value: string) => CustomizationsQueryBuilder;
|
|
1357
1341
|
/** @param propertyName - Property whose value is compared with `values`.
|
|
1358
1342
|
* @param values - List of values to compare against.
|
|
1359
|
-
* @documentationMaturity preview
|
|
1360
1343
|
*/
|
|
1361
1344
|
hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any[]) => CustomizationsQueryBuilder;
|
|
1362
|
-
/** @documentationMaturity preview */
|
|
1363
1345
|
in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any) => CustomizationsQueryBuilder;
|
|
1364
|
-
/** @documentationMaturity preview */
|
|
1365
1346
|
exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: boolean) => CustomizationsQueryBuilder;
|
|
1366
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1367
|
-
* @documentationMaturity preview
|
|
1368
|
-
*/
|
|
1347
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1369
1348
|
ascending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'name'>) => CustomizationsQueryBuilder;
|
|
1370
|
-
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
|
|
1371
|
-
* @documentationMaturity preview
|
|
1372
|
-
*/
|
|
1349
|
+
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1373
1350
|
descending: (...propertyNames: Array<'_id' | '_createdDate' | '_updatedDate' | 'name'>) => CustomizationsQueryBuilder;
|
|
1374
|
-
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
1375
|
-
* @documentationMaturity preview
|
|
1376
|
-
*/
|
|
1351
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1377
1352
|
limit: (limit: number) => CustomizationsQueryBuilder;
|
|
1378
|
-
/** @param cursor - A pointer to specific record
|
|
1379
|
-
* @documentationMaturity preview
|
|
1380
|
-
*/
|
|
1353
|
+
/** @param cursor - A pointer to specific record */
|
|
1381
1354
|
skipTo: (cursor: string) => CustomizationsQueryBuilder;
|
|
1382
|
-
/** @documentationMaturity preview */
|
|
1383
1355
|
find: () => Promise<CustomizationsQueryResult>;
|
|
1384
1356
|
}
|
|
1385
1357
|
/**
|
|
1386
1358
|
* Creates multiple brands.
|
|
1387
1359
|
* @param customizations - Customizations to create.
|
|
1388
1360
|
* @public
|
|
1389
|
-
* @documentationMaturity preview
|
|
1390
1361
|
* @requiredField customizations
|
|
1391
1362
|
* @permissionId WIX_STORES.CUSTOMIZATION_CREATE
|
|
1392
1363
|
* @applicableIdentity APP
|
|
1393
1364
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations
|
|
1394
1365
|
*/
|
|
1395
|
-
declare function bulkCreateCustomizations(customizations: Customization[], options?: BulkCreateCustomizationsOptions): Promise<NonNullablePaths<BulkCreateCustomizationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
1396
|
-
[P in CustomizationNonNullablePaths]: `results.${number}.customization.${P}`;
|
|
1397
|
-
}[CustomizationNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
1366
|
+
declare function bulkCreateCustomizations(customizations: Customization[], options?: BulkCreateCustomizationsOptions): Promise<NonNullablePaths<BulkCreateCustomizationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.customization.freeTextInput.minCharCount` | `results.${number}.customization.freeTextInput.maxCharCount` | `results.${number}.customization.freeTextInput.title` | `results.${number}.customization.name` | `results.${number}.customization.customizationType` | `results.${number}.customization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
1398
1367
|
__applicationErrorsType?: BulkCreateCustomizationsApplicationErrors;
|
|
1399
1368
|
__validationErrorsType?: BulkCreateCustomizationsValidationErrors;
|
|
1400
1369
|
}>;
|
|
@@ -1411,16 +1380,13 @@ interface BulkCreateCustomizationsOptions {
|
|
|
1411
1380
|
* @param customizationId - Customization ID.
|
|
1412
1381
|
* @param choices - Choices to add.
|
|
1413
1382
|
* @public
|
|
1414
|
-
* @documentationMaturity preview
|
|
1415
1383
|
* @requiredField choices
|
|
1416
1384
|
* @requiredField customizationId
|
|
1417
1385
|
* @permissionId WIX_STORES.CUSTOMIZATION_UPDATE
|
|
1418
1386
|
* @applicableIdentity APP
|
|
1419
1387
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices
|
|
1420
1388
|
*/
|
|
1421
|
-
declare function addCustomizationChoices(customizationId: string, choices: Choice[], options?: AddCustomizationChoicesOptions): Promise<NonNullablePaths<AddCustomizationChoicesResponse, {
|
|
1422
|
-
[P in CustomizationNonNullablePaths]: `customization.${P}`;
|
|
1423
|
-
}[CustomizationNonNullablePaths]> & {
|
|
1389
|
+
declare function addCustomizationChoices(customizationId: string, choices: Choice[], options?: AddCustomizationChoicesOptions): Promise<NonNullablePaths<AddCustomizationChoicesResponse, `customization.freeTextInput.minCharCount` | `customization.freeTextInput.maxCharCount` | `customization.freeTextInput.title` | `customization.choicesSettings.choices` | `customization.choicesSettings.choices.${number}.colorCode` | `customization.choicesSettings.choices.${number}._id` | `customization.choicesSettings.choices.${number}.choiceType` | `customization.choicesSettings.choices.${number}.name` | `customization.choicesSettings.choices.${number}.assignedProductsCount` | `customization.name` | `customization.customizationType` | `customization.customizationRenderType`> & {
|
|
1424
1390
|
__applicationErrorsType?: AddCustomizationChoicesApplicationErrors;
|
|
1425
1391
|
__validationErrorsType?: AddCustomizationChoicesValidationErrors;
|
|
1426
1392
|
}>;
|
|
@@ -1440,16 +1406,13 @@ interface AddCustomizationChoicesOptions {
|
|
|
1440
1406
|
* @param customizationId - Customization ID.
|
|
1441
1407
|
* @param choices - Choices to set.
|
|
1442
1408
|
* @public
|
|
1443
|
-
* @documentationMaturity preview
|
|
1444
1409
|
* @requiredField choices
|
|
1445
1410
|
* @requiredField customizationId
|
|
1446
1411
|
* @permissionId WIX_STORES.CUSTOMIZATION_UPDATE
|
|
1447
1412
|
* @applicableIdentity APP
|
|
1448
1413
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices
|
|
1449
1414
|
*/
|
|
1450
|
-
declare function setCustomizationChoices(customizationId: string, choices: Choice[], options?: SetCustomizationChoicesOptions): Promise<NonNullablePaths<SetCustomizationChoicesResponse, {
|
|
1451
|
-
[P in CustomizationNonNullablePaths]: `customization.${P}`;
|
|
1452
|
-
}[CustomizationNonNullablePaths]> & {
|
|
1415
|
+
declare function setCustomizationChoices(customizationId: string, choices: Choice[], options?: SetCustomizationChoicesOptions): Promise<NonNullablePaths<SetCustomizationChoicesResponse, `customization.freeTextInput.minCharCount` | `customization.freeTextInput.maxCharCount` | `customization.freeTextInput.title` | `customization.choicesSettings.choices` | `customization.choicesSettings.choices.${number}.colorCode` | `customization.choicesSettings.choices.${number}._id` | `customization.choicesSettings.choices.${number}.choiceType` | `customization.choicesSettings.choices.${number}.name` | `customization.choicesSettings.choices.${number}.assignedProductsCount` | `customization.name` | `customization.customizationType` | `customization.customizationRenderType`> & {
|
|
1453
1416
|
__applicationErrorsType?: SetCustomizationChoicesApplicationErrors;
|
|
1454
1417
|
__validationErrorsType?: SetCustomizationChoicesValidationErrors;
|
|
1455
1418
|
}>;
|
|
@@ -1469,16 +1432,13 @@ interface SetCustomizationChoicesOptions {
|
|
|
1469
1432
|
* @param customizationId - Customization ID.
|
|
1470
1433
|
* @param choiceIds - IDs of choices to remove.
|
|
1471
1434
|
* @public
|
|
1472
|
-
* @documentationMaturity preview
|
|
1473
1435
|
* @requiredField choiceIds
|
|
1474
1436
|
* @requiredField customizationId
|
|
1475
1437
|
* @permissionId WIX_STORES.CUSTOMIZATION_UPDATE
|
|
1476
1438
|
* @applicableIdentity APP
|
|
1477
1439
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices
|
|
1478
1440
|
*/
|
|
1479
|
-
declare function removeCustomizationChoices(customizationId: string, choiceIds: string[], options?: RemoveCustomizationChoicesOptions): Promise<NonNullablePaths<RemoveCustomizationChoicesResponse, {
|
|
1480
|
-
[P in CustomizationNonNullablePaths]: `customization.${P}`;
|
|
1481
|
-
}[CustomizationNonNullablePaths]> & {
|
|
1441
|
+
declare function removeCustomizationChoices(customizationId: string, choiceIds: string[], options?: RemoveCustomizationChoicesOptions): Promise<NonNullablePaths<RemoveCustomizationChoicesResponse, `customization.freeTextInput.minCharCount` | `customization.freeTextInput.maxCharCount` | `customization.freeTextInput.title` | `customization.choicesSettings.choices` | `customization.choicesSettings.choices.${number}.colorCode` | `customization.choicesSettings.choices.${number}._id` | `customization.choicesSettings.choices.${number}.choiceType` | `customization.choicesSettings.choices.${number}.name` | `customization.choicesSettings.choices.${number}.assignedProductsCount` | `customization.name` | `customization.customizationType` | `customization.customizationRenderType`> & {
|
|
1482
1442
|
__applicationErrorsType?: RemoveCustomizationChoicesApplicationErrors;
|
|
1483
1443
|
__validationErrorsType?: RemoveCustomizationChoicesValidationErrors;
|
|
1484
1444
|
}>;
|
|
@@ -1497,7 +1457,6 @@ interface RemoveCustomizationChoicesOptions {
|
|
|
1497
1457
|
* Adds choices to multiple customizations.
|
|
1498
1458
|
* @param customizationsChoices - List of customization IDs and choices.
|
|
1499
1459
|
* @public
|
|
1500
|
-
* @documentationMaturity preview
|
|
1501
1460
|
* @requiredField customizationsChoices
|
|
1502
1461
|
* @requiredField customizationsChoices.choices
|
|
1503
1462
|
* @requiredField customizationsChoices.customizationId
|
|
@@ -1505,9 +1464,7 @@ interface RemoveCustomizationChoicesOptions {
|
|
|
1505
1464
|
* @applicableIdentity APP
|
|
1506
1465
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices
|
|
1507
1466
|
*/
|
|
1508
|
-
declare function bulkAddCustomizationChoices(customizationsChoices: NonNullablePaths<CustomizationChoices, `choices` | `customizationId`>[], options?: BulkAddCustomizationChoicesOptions): Promise<NonNullablePaths<BulkAddCustomizationChoicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
1509
|
-
[P in CustomizationNonNullablePaths]: `results.${number}.customization.${P}`;
|
|
1510
|
-
}[CustomizationNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
1467
|
+
declare function bulkAddCustomizationChoices(customizationsChoices: NonNullablePaths<CustomizationChoices, `choices` | `customizationId`>[], options?: BulkAddCustomizationChoicesOptions): Promise<NonNullablePaths<BulkAddCustomizationChoicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.customization.freeTextInput.minCharCount` | `results.${number}.customization.freeTextInput.maxCharCount` | `results.${number}.customization.freeTextInput.title` | `results.${number}.customization.name` | `results.${number}.customization.customizationType` | `results.${number}.customization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`> & {
|
|
1511
1468
|
__applicationErrorsType?: BulkAddCustomizationChoicesApplicationErrors;
|
|
1512
1469
|
__validationErrorsType?: BulkAddCustomizationChoicesValidationErrors;
|
|
1513
1470
|
}>;
|
|
@@ -1534,7 +1491,6 @@ interface BulkAddCustomizationChoicesOptions {
|
|
|
1534
1491
|
* This ensures you're working with the latest customization and prevents unintended overwrites.
|
|
1535
1492
|
* @param customizations - List of customizations to update.
|
|
1536
1493
|
* @public
|
|
1537
|
-
* @documentationMaturity preview
|
|
1538
1494
|
* @requiredField customizations
|
|
1539
1495
|
* @requiredField customizations.customization._id
|
|
1540
1496
|
* @requiredField customizations.customization.name
|
|
@@ -1543,9 +1499,7 @@ interface BulkAddCustomizationChoicesOptions {
|
|
|
1543
1499
|
* @applicableIdentity APP
|
|
1544
1500
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations
|
|
1545
1501
|
*/
|
|
1546
|
-
declare function bulkUpdateCustomizations(customizations: NonNullablePaths<MaskedCustomization, `customization._id` | `customization.name` | `customization.revision`>[], options?: BulkUpdateCustomizationsOptions): Promise<NonNullablePaths<BulkUpdateCustomizationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
1547
|
-
[P in CustomizationNonNullablePaths]: `results.${number}.customization.${P}`;
|
|
1548
|
-
}[CustomizationNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
1502
|
+
declare function bulkUpdateCustomizations(customizations: NonNullablePaths<MaskedCustomization, `customization._id` | `customization.name` | `customization.revision`>[], options?: BulkUpdateCustomizationsOptions): Promise<NonNullablePaths<BulkUpdateCustomizationsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.customization.freeTextInput.minCharCount` | `results.${number}.customization.freeTextInput.maxCharCount` | `results.${number}.customization.freeTextInput.title` | `results.${number}.customization.name` | `results.${number}.customization.customizationType` | `results.${number}.customization.customizationRenderType` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
1549
1503
|
interface BulkUpdateCustomizationsOptions {
|
|
1550
1504
|
/**
|
|
1551
1505
|
* Whether to return the full customization entities in the response.
|