@wix/auto_sdk_stores_customizations-v-3 1.0.22 → 1.0.24
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 +29 -9
- package/build/cjs/index.js +1 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts → index.typings.d.ts} +409 -1
- package/build/cjs/index.typings.js +1208 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +29 -9
- package/build/es/index.mjs +1 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts → index.typings.d.mts} +409 -1
- package/build/es/index.typings.mjs +1168 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +29 -9
- package/build/internal/cjs/index.js +1 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts → index.typings.d.ts} +409 -1
- package/build/internal/cjs/index.typings.js +1208 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +29 -9
- package/build/internal/es/index.mjs +1 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts → index.typings.d.mts} +409 -1
- package/build/internal/es/index.typings.mjs +1168 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { Customization, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, GetCustomizationOptions, UpdateCustomization, UpdateCustomizationOptions, DeleteCustomizationValidationErrors, QueryCustomizationsOptions, CustomizationsQueryBuilder, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsValidationErrors, Choice, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesValidationErrors, SetCustomizationChoicesOptions, SetCustomizationChoicesResponse, SetCustomizationChoicesApplicationErrors, SetCustomizationChoicesValidationErrors, RemoveCustomizationChoicesOptions, RemoveCustomizationChoicesResponse, RemoveCustomizationChoicesApplicationErrors, RemoveCustomizationChoicesValidationErrors, CustomizationChoices, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesValidationErrors, MaskedCustomization, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationUpdatedEnvelope } from './index.typings.js';
|
|
3
|
+
export { ActionEvent, AddCustomizationChoicesRequest, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkAddCustomizationChoicesRequest, BulkCreateCustomizationsRequest, BulkCustomizationResult, BulkUpdateCustomizationsRequest, ChoiceType, ChoiceValueOneOf, ChoicesSettings, CreateCustomizationRequest, CreateCustomizationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, CustomizationCustomizationSettingsOneOf, CustomizationIdsWrapper, CustomizationRenderType, CustomizationType, CustomizationsQueryResult, DeleteCustomizationRequest, DeleteCustomizationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, FocalPoint, FreeTextSettings, GetCustomizationRequest, GetCustomizationResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, MessageEnvelope, MultipleColors, Page, QueryCustomizationsRequest, QueryCustomizationsResponse, RemoveCustomizationChoicesRequest, RequestedFields, RestoreInfo, SetCustomizationChoicesRequest, SortOrder, Sorting, URI, UpdateCustomizationRequest, UpdateCustomizationResponse, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function createCustomization$1(httpClient: HttpClient): CreateCustomizationSignature;
|
|
6
6
|
interface CreateCustomizationSignature {
|
|
@@ -9,7 +9,10 @@ interface CreateCustomizationSignature {
|
|
|
9
9
|
* @param - Customization to create.
|
|
10
10
|
* @returns Created customization.
|
|
11
11
|
*/
|
|
12
|
-
(customization: Customization): Promise<Customization
|
|
12
|
+
(customization: Customization): Promise<Customization & {
|
|
13
|
+
__applicationErrorsType?: CreateCustomizationApplicationErrors | undefined;
|
|
14
|
+
__validationErrorsType?: CreateCustomizationValidationErrors | undefined;
|
|
15
|
+
}>;
|
|
13
16
|
}
|
|
14
17
|
declare function getCustomization$1(httpClient: HttpClient): GetCustomizationSignature;
|
|
15
18
|
interface GetCustomizationSignature {
|
|
@@ -41,7 +44,9 @@ interface DeleteCustomizationSignature {
|
|
|
41
44
|
* > **Note:** A customization cannot be deleted if it is assigned to one or more products.
|
|
42
45
|
* @param - Customization ID.
|
|
43
46
|
*/
|
|
44
|
-
(customizationId: string): Promise<void
|
|
47
|
+
(customizationId: string): Promise<void & {
|
|
48
|
+
__validationErrorsType?: DeleteCustomizationValidationErrors | undefined;
|
|
49
|
+
}>;
|
|
45
50
|
}
|
|
46
51
|
declare function queryCustomizations$1(httpClient: HttpClient): QueryCustomizationsSignature;
|
|
47
52
|
interface QueryCustomizationsSignature {
|
|
@@ -70,7 +75,10 @@ interface BulkCreateCustomizationsSignature {
|
|
|
70
75
|
* Creates multiple brands.
|
|
71
76
|
* @param - Customizations to create.
|
|
72
77
|
*/
|
|
73
|
-
(customizations: Customization[], options?: BulkCreateCustomizationsOptions | undefined): Promise<BulkCreateCustomizationsResponse
|
|
78
|
+
(customizations: Customization[], options?: BulkCreateCustomizationsOptions | undefined): Promise<BulkCreateCustomizationsResponse & {
|
|
79
|
+
__applicationErrorsType?: BulkCreateCustomizationsApplicationErrors | undefined;
|
|
80
|
+
__validationErrorsType?: BulkCreateCustomizationsValidationErrors | undefined;
|
|
81
|
+
}>;
|
|
74
82
|
}
|
|
75
83
|
declare function addCustomizationChoices$1(httpClient: HttpClient): AddCustomizationChoicesSignature;
|
|
76
84
|
interface AddCustomizationChoicesSignature {
|
|
@@ -79,7 +87,10 @@ interface AddCustomizationChoicesSignature {
|
|
|
79
87
|
* @param - Customization ID.
|
|
80
88
|
* @param - Choices to add.
|
|
81
89
|
*/
|
|
82
|
-
(customizationId: string, choices: Choice[], options?: AddCustomizationChoicesOptions | undefined): Promise<AddCustomizationChoicesResponse
|
|
90
|
+
(customizationId: string, choices: Choice[], options?: AddCustomizationChoicesOptions | undefined): Promise<AddCustomizationChoicesResponse & {
|
|
91
|
+
__applicationErrorsType?: AddCustomizationChoicesApplicationErrors | undefined;
|
|
92
|
+
__validationErrorsType?: AddCustomizationChoicesValidationErrors | undefined;
|
|
93
|
+
}>;
|
|
83
94
|
}
|
|
84
95
|
declare function setCustomizationChoices$1(httpClient: HttpClient): SetCustomizationChoicesSignature;
|
|
85
96
|
interface SetCustomizationChoicesSignature {
|
|
@@ -90,7 +101,10 @@ interface SetCustomizationChoicesSignature {
|
|
|
90
101
|
* @param - Customization ID.
|
|
91
102
|
* @param - Choices to set.
|
|
92
103
|
*/
|
|
93
|
-
(customizationId: string, choices: Choice[], options?: SetCustomizationChoicesOptions | undefined): Promise<SetCustomizationChoicesResponse
|
|
104
|
+
(customizationId: string, choices: Choice[], options?: SetCustomizationChoicesOptions | undefined): Promise<SetCustomizationChoicesResponse & {
|
|
105
|
+
__applicationErrorsType?: SetCustomizationChoicesApplicationErrors | undefined;
|
|
106
|
+
__validationErrorsType?: SetCustomizationChoicesValidationErrors | undefined;
|
|
107
|
+
}>;
|
|
94
108
|
}
|
|
95
109
|
declare function removeCustomizationChoices$1(httpClient: HttpClient): RemoveCustomizationChoicesSignature;
|
|
96
110
|
interface RemoveCustomizationChoicesSignature {
|
|
@@ -101,7 +115,10 @@ interface RemoveCustomizationChoicesSignature {
|
|
|
101
115
|
* @param - Customization ID.
|
|
102
116
|
* @param - IDs of choices to remove.
|
|
103
117
|
*/
|
|
104
|
-
(customizationId: string, choiceIds: string[], options?: RemoveCustomizationChoicesOptions | undefined): Promise<RemoveCustomizationChoicesResponse
|
|
118
|
+
(customizationId: string, choiceIds: string[], options?: RemoveCustomizationChoicesOptions | undefined): Promise<RemoveCustomizationChoicesResponse & {
|
|
119
|
+
__applicationErrorsType?: RemoveCustomizationChoicesApplicationErrors | undefined;
|
|
120
|
+
__validationErrorsType?: RemoveCustomizationChoicesValidationErrors | undefined;
|
|
121
|
+
}>;
|
|
105
122
|
}
|
|
106
123
|
declare function bulkAddCustomizationChoices$1(httpClient: HttpClient): BulkAddCustomizationChoicesSignature;
|
|
107
124
|
interface BulkAddCustomizationChoicesSignature {
|
|
@@ -109,7 +126,10 @@ interface BulkAddCustomizationChoicesSignature {
|
|
|
109
126
|
* Adds choices to multiple customizations.
|
|
110
127
|
* @param - List of customization IDs and choices.
|
|
111
128
|
*/
|
|
112
|
-
(customizationsChoices: CustomizationChoices[], options?: BulkAddCustomizationChoicesOptions | undefined): Promise<BulkAddCustomizationChoicesResponse
|
|
129
|
+
(customizationsChoices: CustomizationChoices[], options?: BulkAddCustomizationChoicesOptions | undefined): Promise<BulkAddCustomizationChoicesResponse & {
|
|
130
|
+
__applicationErrorsType?: BulkAddCustomizationChoicesApplicationErrors | undefined;
|
|
131
|
+
__validationErrorsType?: BulkAddCustomizationChoicesValidationErrors | undefined;
|
|
132
|
+
}>;
|
|
113
133
|
}
|
|
114
134
|
declare function bulkUpdateCustomizations$1(httpClient: HttpClient): BulkUpdateCustomizationsSignature;
|
|
115
135
|
interface BulkUpdateCustomizationsSignature {
|
package/build/cjs/index.js
CHANGED
|
@@ -845,6 +845,7 @@ async function deleteCustomization2(customizationId) {
|
|
|
845
845
|
try {
|
|
846
846
|
const result = await httpClient.request(reqOpts);
|
|
847
847
|
sideEffects?.onSuccess?.(result);
|
|
848
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
848
849
|
} catch (err) {
|
|
849
850
|
const transformedError = (0, import_transform_error.transformError)(
|
|
850
851
|
err,
|