@wix/auto_sdk_stores_customizations-v-3 1.0.21 → 1.0.23

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { C as Customization, G as GetCustomizationOptions, U as UpdateCustomization, a as UpdateCustomizationOptions, Q as QueryCustomizationsOptions, b as CustomizationsQueryBuilder, B as BulkCreateCustomizationsOptions, c as BulkCreateCustomizationsResponse, d as Choice, A as AddCustomizationChoicesOptions, e as AddCustomizationChoicesResponse, S as SetCustomizationChoicesOptions, f as SetCustomizationChoicesResponse, R as RemoveCustomizationChoicesOptions, g as RemoveCustomizationChoicesResponse, h as CustomizationChoices, i as BulkAddCustomizationChoicesOptions, j as BulkAddCustomizationChoicesResponse, M as MaskedCustomization, k as BulkUpdateCustomizationsOptions, l as BulkUpdateCustomizationsResponse, m as CustomizationCreatedEnvelope, n as CustomizationDeletedEnvelope, o as CustomizationUpdatedEnvelope } from './stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.js';
3
- export { am as ActionEvent, ab as AddCustomizationChoicesRequest, D as App, a8 as ApplicationError, ar as BaseEventMetadata, a9 as BulkActionMetadata, ae as BulkAddCustomizationChoicesRequest, a5 as BulkCreateCustomizationsRequest, a6 as BulkCustomizationResult, af as BulkUpdateCustomizationsRequest, r as ChoiceType, w as ChoiceValueOneOf, v as ChoicesSettings, K as CreateCustomizationRequest, L as CreateCustomizationResponse, a1 as CursorPaging, a3 as CursorPagingMetadata, _ as CursorQuery, $ as CursorQueryPagingMethodOneOf, a4 as Cursors, J as CustomTag, u as CustomizationCustomizationSettingsOneOf, aa as CustomizationIdsWrapper, q as CustomizationRenderType, p as CustomizationType, at as CustomizationsQueryResult, X as DeleteCustomizationRequest, Y as DeleteCustomizationResponse, ag as DomainEvent, ah as DomainEventBodyOneOf, an as Empty, ai as EntityCreatedEvent, al as EntityDeletedEvent, ak as EntityUpdatedEvent, as as EventMetadata, H as File, y as FocalPoint, F as FreeTextSettings, N as GetCustomizationRequest, O as GetCustomizationResponse, ap as IdentificationData, aq as IdentificationDataIdOneOf, I as InvalidateCache, z as InvalidateCacheGetByOneOf, a7 as ItemMetadata, ao as MessageEnvelope, x as MultipleColors, P as Page, Z as QueryCustomizationsRequest, a2 as QueryCustomizationsResponse, ad as RemoveCustomizationChoicesRequest, s as RequestedFields, aj as RestoreInfo, ac as SetCustomizationChoicesRequest, t as SortOrder, a0 as Sorting, E as URI, T as UpdateCustomizationRequest, V as UpdateCustomizationResponse, W as WebhookIdentityType } from './stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.js';
2
+ import { C as Customization, a as CreateCustomizationApplicationErrors, b as CreateCustomizationValidationErrors, G as GetCustomizationOptions, U as UpdateCustomization, c as UpdateCustomizationOptions, D as DeleteCustomizationValidationErrors, Q as QueryCustomizationsOptions, d as CustomizationsQueryBuilder, B as BulkCreateCustomizationsOptions, e as BulkCreateCustomizationsResponse, f as BulkCreateCustomizationsApplicationErrors, g as BulkCreateCustomizationsValidationErrors, h as Choice, A as AddCustomizationChoicesOptions, i as AddCustomizationChoicesResponse, j as AddCustomizationChoicesApplicationErrors, k as AddCustomizationChoicesValidationErrors, S as SetCustomizationChoicesOptions, l as SetCustomizationChoicesResponse, m as SetCustomizationChoicesApplicationErrors, n as SetCustomizationChoicesValidationErrors, R as RemoveCustomizationChoicesOptions, o as RemoveCustomizationChoicesResponse, p as RemoveCustomizationChoicesApplicationErrors, q as RemoveCustomizationChoicesValidationErrors, r as CustomizationChoices, s as BulkAddCustomizationChoicesOptions, t as BulkAddCustomizationChoicesResponse, u as BulkAddCustomizationChoicesApplicationErrors, v as BulkAddCustomizationChoicesValidationErrors, M as MaskedCustomization, w as BulkUpdateCustomizationsOptions, x as BulkUpdateCustomizationsResponse, y as CustomizationCreatedEnvelope, z as CustomizationDeletedEnvelope, E as CustomizationUpdatedEnvelope } from './stores-catalog-v3-customization-customizations-v-3.universal-DHhFp3oV.js';
3
+ export { az as ActionEvent, ao as AddCustomizationChoicesRequest, Z as App, al as ApplicationError, aE as BaseEventMetadata, am as BulkActionMetadata, ar as BulkAddCustomizationChoicesRequest, ai as BulkCreateCustomizationsRequest, aj as BulkCustomizationResult, as as BulkUpdateCustomizationsRequest, I as ChoiceType, P as ChoiceValueOneOf, O as ChoicesSettings, a2 as CreateCustomizationRequest, a3 as CreateCustomizationResponse, ae as CursorPaging, ag as CursorPagingMetadata, ab as CursorQuery, ac as CursorQueryPagingMethodOneOf, ah as Cursors, a1 as CustomTag, L as CustomizationCustomizationSettingsOneOf, an as CustomizationIdsWrapper, H as CustomizationRenderType, F as CustomizationType, aG as CustomizationsQueryResult, a8 as DeleteCustomizationRequest, a9 as DeleteCustomizationResponse, at as DomainEvent, au as DomainEventBodyOneOf, aA as Empty, av as EntityCreatedEvent, ay as EntityDeletedEvent, ax as EntityUpdatedEvent, aF as EventMetadata, a0 as File, V as FocalPoint, N as FreeTextSettings, a4 as GetCustomizationRequest, a5 as GetCustomizationResponse, aC as IdentificationData, aD as IdentificationDataIdOneOf, X as InvalidateCache, Y as InvalidateCacheGetByOneOf, ak as ItemMetadata, aB as MessageEnvelope, T as MultipleColors, _ as Page, aa as QueryCustomizationsRequest, af as QueryCustomizationsResponse, aq as RemoveCustomizationChoicesRequest, J as RequestedFields, aw as RestoreInfo, ap as SetCustomizationChoicesRequest, K as SortOrder, ad as Sorting, $ as URI, a6 as UpdateCustomizationRequest, a7 as UpdateCustomizationResponse, W as WebhookIdentityType } from './stores-catalog-v3-customization-customizations-v-3.universal-DHhFp3oV.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 {
@@ -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,