@wix/auto_sdk_stores_customizations-v-3 1.0.96 → 1.0.98
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 +13 -13
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +36 -15
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +23 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +13 -13
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +36 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +23 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.typings.d.ts +56 -15
- package/build/internal/cjs/meta.d.ts +38 -2
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.typings.d.mts +56 -15
- package/build/internal/es/meta.d.mts +38 -2
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
|
5
5
|
* Customizations include options and modifiers which can later be applied to products.
|
|
6
6
|
* Options are designed to add variations to a product, where modifiers add a customizable change to the product but without creating another variant.
|
|
7
7
|
*/
|
|
8
|
-
interface Customization extends CustomizationCustomizationSettingsOneOf {
|
|
8
|
+
interface Customization extends CustomizationTypeSpecificSettingsOneOf, CustomizationCustomizationSettingsOneOf {
|
|
9
9
|
/**
|
|
10
10
|
* Free text input settings.
|
|
11
11
|
*
|
|
@@ -79,6 +79,9 @@ interface Customization extends CustomizationCustomizationSettingsOneOf {
|
|
|
79
79
|
assignedProductsCount?: number | null;
|
|
80
80
|
}
|
|
81
81
|
/** @oneof */
|
|
82
|
+
interface CustomizationTypeSpecificSettingsOneOf {
|
|
83
|
+
}
|
|
84
|
+
/** @oneof */
|
|
82
85
|
interface CustomizationCustomizationSettingsOneOf {
|
|
83
86
|
/**
|
|
84
87
|
* Free text input settings.
|
|
@@ -109,6 +112,8 @@ declare enum CustomizationRenderType {
|
|
|
109
112
|
}
|
|
110
113
|
/** @enumType */
|
|
111
114
|
type CustomizationRenderTypeWithLiterals = CustomizationRenderType | 'FREE_TEXT' | 'TEXT_CHOICES' | 'SWATCH_CHOICES';
|
|
115
|
+
interface ModifierSettings {
|
|
116
|
+
}
|
|
112
117
|
interface FreeTextSettings {
|
|
113
118
|
/** Minimum text character length. */
|
|
114
119
|
minCharCount?: number;
|
|
@@ -1104,6 +1109,10 @@ type CreateCustomizationApplicationErrors = {
|
|
|
1104
1109
|
code?: 'INVALID_FREE_TEXT_SETTINGS';
|
|
1105
1110
|
description?: string;
|
|
1106
1111
|
data?: Record<string, any>;
|
|
1112
|
+
} | {
|
|
1113
|
+
code?: 'MODIFIER_SETTINGS_NOT_SUPPORTED_FOR_PRODUCT_OPTION';
|
|
1114
|
+
description?: string;
|
|
1115
|
+
data?: Record<string, any>;
|
|
1107
1116
|
};
|
|
1108
1117
|
/** @docsIgnore */
|
|
1109
1118
|
type CreateCustomizationValidationErrors = {
|
|
@@ -1132,6 +1141,10 @@ type UpdateCustomizationApplicationErrors = {
|
|
|
1132
1141
|
code?: 'DOESNT_SUPPORT_FREE_TEXT';
|
|
1133
1142
|
description?: string;
|
|
1134
1143
|
data?: Record<string, any>;
|
|
1144
|
+
} | {
|
|
1145
|
+
code?: 'MODIFIER_SETTINGS_NOT_SUPPORTED_FOR_PRODUCT_OPTION';
|
|
1146
|
+
description?: string;
|
|
1147
|
+
data?: Record<string, any>;
|
|
1135
1148
|
};
|
|
1136
1149
|
/** @docsIgnore */
|
|
1137
1150
|
type DeleteCustomizationValidationErrors = {
|
|
@@ -1139,6 +1152,10 @@ type DeleteCustomizationValidationErrors = {
|
|
|
1139
1152
|
};
|
|
1140
1153
|
/** @docsIgnore */
|
|
1141
1154
|
type BulkCreateCustomizationsApplicationErrors = {
|
|
1155
|
+
code?: 'MODIFIER_SETTINGS_NOT_SUPPORTED_FOR_PRODUCT_OPTION';
|
|
1156
|
+
description?: string;
|
|
1157
|
+
data?: Record<string, any>;
|
|
1158
|
+
} | {
|
|
1142
1159
|
code?: 'OPTIONS_LIMIT_EXCEEDED';
|
|
1143
1160
|
description?: string;
|
|
1144
1161
|
data?: Record<string, any>;
|
|
@@ -1300,6 +1317,10 @@ type BulkUpdateCustomizationsApplicationErrors = {
|
|
|
1300
1317
|
code?: 'DOESNT_SUPPORT_FREE_TEXT';
|
|
1301
1318
|
description?: string;
|
|
1302
1319
|
data?: Record<string, any>;
|
|
1320
|
+
} | {
|
|
1321
|
+
code?: 'MODIFIER_SETTINGS_NOT_SUPPORTED_FOR_PRODUCT_OPTION';
|
|
1322
|
+
description?: string;
|
|
1323
|
+
data?: Record<string, any>;
|
|
1303
1324
|
};
|
|
1304
1325
|
interface BaseEventMetadata {
|
|
1305
1326
|
/**
|
|
@@ -1496,7 +1517,7 @@ declare function onCustomizationUpdated(handler: (event: CustomizationUpdatedEnv
|
|
|
1496
1517
|
* @returns Created customization.
|
|
1497
1518
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization
|
|
1498
1519
|
*/
|
|
1499
|
-
declare function createCustomization(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`,
|
|
1520
|
+
declare function createCustomization(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`, 1>): 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` | `name` | `customizationType` | `customizationRenderType`, 3> & {
|
|
1500
1521
|
__applicationErrorsType?: CreateCustomizationApplicationErrors;
|
|
1501
1522
|
__validationErrorsType?: CreateCustomizationValidationErrors;
|
|
1502
1523
|
}>;
|
|
@@ -1510,7 +1531,7 @@ declare function createCustomization(customization: NonNullablePaths<Customizati
|
|
|
1510
1531
|
* @returns Customization.
|
|
1511
1532
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.GetCustomization
|
|
1512
1533
|
*/
|
|
1513
|
-
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` | `name` | `customizationType` | `customizationRenderType`,
|
|
1534
|
+
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` | `name` | `customizationType` | `customizationRenderType`, 3>>;
|
|
1514
1535
|
interface GetCustomizationOptions {
|
|
1515
1536
|
/**
|
|
1516
1537
|
* Fields to include in the response.
|
|
@@ -1536,7 +1557,7 @@ interface GetCustomizationOptions {
|
|
|
1536
1557
|
* @returns Updated customization.
|
|
1537
1558
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization
|
|
1538
1559
|
*/
|
|
1539
|
-
declare function updateCustomization(_id: string, customization: NonNullablePaths<UpdateCustomization, `revision`,
|
|
1560
|
+
declare function updateCustomization(_id: string, customization: NonNullablePaths<UpdateCustomization, `revision`, 0>, 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` | `name` | `customizationType` | `customizationRenderType`, 3> & {
|
|
1540
1561
|
__applicationErrorsType?: UpdateCustomizationApplicationErrors;
|
|
1541
1562
|
}>;
|
|
1542
1563
|
interface UpdateCustomization {
|
|
@@ -1724,7 +1745,7 @@ interface CustomizationsQueryBuilder {
|
|
|
1724
1745
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations
|
|
1725
1746
|
* @requiredField query
|
|
1726
1747
|
*/
|
|
1727
|
-
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`,
|
|
1748
|
+
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`, 3>>;
|
|
1728
1749
|
interface CustomizationQuerySpec extends QuerySpec {
|
|
1729
1750
|
paging: 'cursor';
|
|
1730
1751
|
wql: [
|
|
@@ -1796,7 +1817,7 @@ declare const utils: {
|
|
|
1796
1817
|
* @applicableIdentity APP
|
|
1797
1818
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.CountCustomizations
|
|
1798
1819
|
*/
|
|
1799
|
-
declare function countCustomizations(options?: CountCustomizationsOptions): Promise<NonNullablePaths<CountCustomizationsResponse, `count`,
|
|
1820
|
+
declare function countCustomizations(options?: CountCustomizationsOptions): Promise<NonNullablePaths<CountCustomizationsResponse, `count`, 0>>;
|
|
1800
1821
|
interface CountCustomizationsOptions {
|
|
1801
1822
|
/** Filter object. See API Query Language for more information. */
|
|
1802
1823
|
filter?: Record<string, any> | null;
|
|
@@ -1810,7 +1831,7 @@ interface CountCustomizationsOptions {
|
|
|
1810
1831
|
* @applicableIdentity APP
|
|
1811
1832
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations
|
|
1812
1833
|
*/
|
|
1813
|
-
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`,
|
|
1834
|
+
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`, 4> & {
|
|
1814
1835
|
__applicationErrorsType?: BulkCreateCustomizationsApplicationErrors;
|
|
1815
1836
|
__validationErrorsType?: BulkCreateCustomizationsValidationErrors;
|
|
1816
1837
|
}>;
|
|
@@ -1833,7 +1854,7 @@ interface BulkCreateCustomizationsOptions {
|
|
|
1833
1854
|
* @applicableIdentity APP
|
|
1834
1855
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices
|
|
1835
1856
|
*/
|
|
1836
|
-
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.name` | `customization.customizationType` | `customization.customizationRenderType`,
|
|
1857
|
+
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.name` | `customization.customizationType` | `customization.customizationRenderType`, 4> & {
|
|
1837
1858
|
__applicationErrorsType?: AddCustomizationChoicesApplicationErrors;
|
|
1838
1859
|
__validationErrorsType?: AddCustomizationChoicesValidationErrors;
|
|
1839
1860
|
}>;
|
|
@@ -1859,7 +1880,7 @@ interface AddCustomizationChoicesOptions {
|
|
|
1859
1880
|
* @applicableIdentity APP
|
|
1860
1881
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices
|
|
1861
1882
|
*/
|
|
1862
|
-
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.name` | `customization.customizationType` | `customization.customizationRenderType`,
|
|
1883
|
+
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.name` | `customization.customizationType` | `customization.customizationRenderType`, 4> & {
|
|
1863
1884
|
__applicationErrorsType?: SetCustomizationChoicesApplicationErrors;
|
|
1864
1885
|
__validationErrorsType?: SetCustomizationChoicesValidationErrors;
|
|
1865
1886
|
}>;
|
|
@@ -1885,7 +1906,7 @@ interface SetCustomizationChoicesOptions {
|
|
|
1885
1906
|
* @applicableIdentity APP
|
|
1886
1907
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices
|
|
1887
1908
|
*/
|
|
1888
|
-
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.name` | `customization.customizationType` | `customization.customizationRenderType`,
|
|
1909
|
+
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.name` | `customization.customizationType` | `customization.customizationRenderType`, 4> & {
|
|
1889
1910
|
__applicationErrorsType?: RemoveCustomizationChoicesApplicationErrors;
|
|
1890
1911
|
__validationErrorsType?: RemoveCustomizationChoicesValidationErrors;
|
|
1891
1912
|
}>;
|
|
@@ -1919,7 +1940,7 @@ interface RemoveCustomizationChoicesOptions {
|
|
|
1919
1940
|
* @applicableIdentity APP
|
|
1920
1941
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomizationChoices
|
|
1921
1942
|
*/
|
|
1922
|
-
declare function updateCustomizationChoices(customizationId: string, revision: string, options?: NonNullablePaths<UpdateCustomizationChoicesOptions, `choices` | `choices.${number}.choice`,
|
|
1943
|
+
declare function updateCustomizationChoices(customizationId: string, revision: string, options?: NonNullablePaths<UpdateCustomizationChoicesOptions, `choices` | `choices.${number}.choice`, 2>): Promise<NonNullablePaths<UpdateCustomizationChoicesResponse, `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.name` | `customization.customizationType` | `customization.customizationRenderType`, 4> & {
|
|
1923
1944
|
__applicationErrorsType?: UpdateCustomizationChoicesApplicationErrors;
|
|
1924
1945
|
__validationErrorsType?: UpdateCustomizationChoicesValidationErrors;
|
|
1925
1946
|
}>;
|
|
@@ -1957,7 +1978,7 @@ interface UpdateCustomizationChoicesOptions {
|
|
|
1957
1978
|
* @applicableIdentity APP
|
|
1958
1979
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.ReorderCustomizationChoices
|
|
1959
1980
|
*/
|
|
1960
|
-
declare function reorderCustomizationChoices(customizationId: string, revision: string, options?: NonNullablePaths<ReorderCustomizationChoicesOptions, `choiceIds`,
|
|
1981
|
+
declare function reorderCustomizationChoices(customizationId: string, revision: string, options?: NonNullablePaths<ReorderCustomizationChoicesOptions, `choiceIds`, 0>): Promise<NonNullablePaths<ReorderCustomizationChoicesResponse, `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.name` | `customization.customizationType` | `customization.customizationRenderType`, 4> & {
|
|
1961
1982
|
__applicationErrorsType?: ReorderCustomizationChoicesApplicationErrors;
|
|
1962
1983
|
}>;
|
|
1963
1984
|
interface ReorderCustomizationChoicesOptions {
|
|
@@ -1987,7 +2008,7 @@ interface ReorderCustomizationChoicesOptions {
|
|
|
1987
2008
|
* @applicableIdentity APP
|
|
1988
2009
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices
|
|
1989
2010
|
*/
|
|
1990
|
-
declare function bulkAddCustomizationChoices(customizationsChoices: NonNullablePaths<CustomizationChoices, `choices` | `customizationId`,
|
|
2011
|
+
declare function bulkAddCustomizationChoices(customizationsChoices: NonNullablePaths<CustomizationChoices, `choices` | `customizationId`, 0>[], 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`, 4> & {
|
|
1991
2012
|
__applicationErrorsType?: BulkAddCustomizationChoicesApplicationErrors;
|
|
1992
2013
|
__validationErrorsType?: BulkAddCustomizationChoicesValidationErrors;
|
|
1993
2014
|
}>;
|
|
@@ -2022,7 +2043,7 @@ interface BulkAddCustomizationChoicesOptions {
|
|
|
2022
2043
|
* @applicableIdentity APP
|
|
2023
2044
|
* @fqn wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations
|
|
2024
2045
|
*/
|
|
2025
|
-
declare function bulkUpdateCustomizations(customizations: NonNullablePaths<MaskedCustomization, `customization._id` | `customization.name` | `customization.revision`,
|
|
2046
|
+
declare function bulkUpdateCustomizations(customizations: NonNullablePaths<MaskedCustomization, `customization._id` | `customization.name` | `customization.revision`, 1>[], 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`, 4> & {
|
|
2026
2047
|
__applicationErrorsType?: BulkUpdateCustomizationsApplicationErrors;
|
|
2027
2048
|
}>;
|
|
2028
2049
|
interface BulkUpdateCustomizationsOptions {
|
|
@@ -2041,4 +2062,4 @@ interface BulkUpdateCustomizationsOptions {
|
|
|
2041
2062
|
fields?: RequestedFieldsWithLiterals[];
|
|
2042
2063
|
}
|
|
2043
2064
|
|
|
2044
|
-
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 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 MaskedChoice, type MaskedCustomization, type MessageEnvelope, 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 };
|
|
2065
|
+
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 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 };
|