@wix/auto_sdk_stores_customizations-v-3 1.0.35 → 1.0.37
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.js +33 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +33 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +440 -1
- package/build/cjs/meta.js +86 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +33 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +33 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +440 -1
- package/build/es/meta.mjs +80 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +33 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +33 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +440 -1
- package/build/internal/cjs/meta.js +86 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +33 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +33 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +440 -1
- package/build/internal/es/meta.mjs +80 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -203,6 +203,164 @@ declare enum ChoiceType {
|
|
|
203
203
|
}
|
|
204
204
|
/** @enumType */
|
|
205
205
|
type ChoiceTypeWithLiterals = ChoiceType | 'UNKNOWN_CHOICE_TYPE' | 'CHOICE_TEXT' | 'ONE_COLOR' | 'MULTIPLE_COLORS' | 'IMAGE';
|
|
206
|
+
interface MultipleColors {
|
|
207
|
+
/**
|
|
208
|
+
* A list of color codes.
|
|
209
|
+
* @minLength 3
|
|
210
|
+
* @maxLength 20
|
|
211
|
+
* @minSize 2
|
|
212
|
+
* @maxSize 2
|
|
213
|
+
*/
|
|
214
|
+
colorCodes?: string[];
|
|
215
|
+
}
|
|
216
|
+
interface Image {
|
|
217
|
+
/** WixMedia image ID. */
|
|
218
|
+
id?: string;
|
|
219
|
+
/** Image URL. */
|
|
220
|
+
url?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Original image height.
|
|
223
|
+
* @readonly
|
|
224
|
+
*/
|
|
225
|
+
height?: number;
|
|
226
|
+
/**
|
|
227
|
+
* Original image width.
|
|
228
|
+
* @readonly
|
|
229
|
+
*/
|
|
230
|
+
width?: number;
|
|
231
|
+
/** Image alt text. */
|
|
232
|
+
altText?: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* Image filename.
|
|
235
|
+
* @readonly
|
|
236
|
+
*/
|
|
237
|
+
filename?: string | null;
|
|
238
|
+
}
|
|
239
|
+
interface FocalPoint {
|
|
240
|
+
/** X-coordinate of the focal point. */
|
|
241
|
+
x?: number;
|
|
242
|
+
/** Y-coordinate of the focal point. */
|
|
243
|
+
y?: number;
|
|
244
|
+
/** crop by height */
|
|
245
|
+
height?: number | null;
|
|
246
|
+
/** crop by width */
|
|
247
|
+
width?: number | null;
|
|
248
|
+
}
|
|
249
|
+
interface InvalidateCache extends InvalidateCacheGetByOneOf {
|
|
250
|
+
/**
|
|
251
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
252
|
+
* @format GUID
|
|
253
|
+
*/
|
|
254
|
+
metaSiteId?: string;
|
|
255
|
+
/**
|
|
256
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
257
|
+
* @format GUID
|
|
258
|
+
*/
|
|
259
|
+
siteId?: string;
|
|
260
|
+
/** Invalidate by App */
|
|
261
|
+
app?: App;
|
|
262
|
+
/** Invalidate by page id */
|
|
263
|
+
page?: Page;
|
|
264
|
+
/** Invalidate by URI path */
|
|
265
|
+
uri?: URI;
|
|
266
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
267
|
+
file?: File;
|
|
268
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
269
|
+
customTag?: CustomTag;
|
|
270
|
+
/**
|
|
271
|
+
* tell us why you're invalidating the cache. You don't need to add your app name
|
|
272
|
+
* @maxLength 256
|
|
273
|
+
*/
|
|
274
|
+
reason?: string | null;
|
|
275
|
+
/** Is local DS */
|
|
276
|
+
localDc?: boolean;
|
|
277
|
+
hardPurge?: boolean;
|
|
278
|
+
}
|
|
279
|
+
/** @oneof */
|
|
280
|
+
interface InvalidateCacheGetByOneOf {
|
|
281
|
+
/**
|
|
282
|
+
* Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
|
|
283
|
+
* @format GUID
|
|
284
|
+
*/
|
|
285
|
+
metaSiteId?: string;
|
|
286
|
+
/**
|
|
287
|
+
* Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!
|
|
288
|
+
* @format GUID
|
|
289
|
+
*/
|
|
290
|
+
siteId?: string;
|
|
291
|
+
/** Invalidate by App */
|
|
292
|
+
app?: App;
|
|
293
|
+
/** Invalidate by page id */
|
|
294
|
+
page?: Page;
|
|
295
|
+
/** Invalidate by URI path */
|
|
296
|
+
uri?: URI;
|
|
297
|
+
/** Invalidate by file (for media files such as PDFs) */
|
|
298
|
+
file?: File;
|
|
299
|
+
/** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */
|
|
300
|
+
customTag?: CustomTag;
|
|
301
|
+
}
|
|
302
|
+
interface App {
|
|
303
|
+
/**
|
|
304
|
+
* The AppDefId
|
|
305
|
+
* @minLength 1
|
|
306
|
+
*/
|
|
307
|
+
appDefId?: string;
|
|
308
|
+
/**
|
|
309
|
+
* The instance Id
|
|
310
|
+
* @format GUID
|
|
311
|
+
*/
|
|
312
|
+
instanceId?: string;
|
|
313
|
+
}
|
|
314
|
+
interface Page {
|
|
315
|
+
/**
|
|
316
|
+
* the msid the page is on
|
|
317
|
+
* @format GUID
|
|
318
|
+
*/
|
|
319
|
+
metaSiteId?: string;
|
|
320
|
+
/**
|
|
321
|
+
* Invalidate by Page ID
|
|
322
|
+
* @minLength 1
|
|
323
|
+
*/
|
|
324
|
+
pageId?: string;
|
|
325
|
+
}
|
|
326
|
+
interface URI {
|
|
327
|
+
/**
|
|
328
|
+
* the msid the URI is on
|
|
329
|
+
* @format GUID
|
|
330
|
+
*/
|
|
331
|
+
metaSiteId?: string;
|
|
332
|
+
/**
|
|
333
|
+
* URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes
|
|
334
|
+
* @minLength 1
|
|
335
|
+
*/
|
|
336
|
+
uriPath?: string;
|
|
337
|
+
}
|
|
338
|
+
interface File {
|
|
339
|
+
/**
|
|
340
|
+
* the msid the file is related to
|
|
341
|
+
* @format GUID
|
|
342
|
+
*/
|
|
343
|
+
metaSiteId?: string;
|
|
344
|
+
/**
|
|
345
|
+
* Invalidate by filename (for media files such as PDFs)
|
|
346
|
+
* @minLength 1
|
|
347
|
+
* @maxLength 256
|
|
348
|
+
*/
|
|
349
|
+
fileName?: string;
|
|
350
|
+
}
|
|
351
|
+
interface CustomTag {
|
|
352
|
+
/**
|
|
353
|
+
* the msid the tag is related to
|
|
354
|
+
* @format GUID
|
|
355
|
+
*/
|
|
356
|
+
metaSiteId?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Tag to invalidate by
|
|
359
|
+
* @minLength 1
|
|
360
|
+
* @maxLength 256
|
|
361
|
+
*/
|
|
362
|
+
tag?: string;
|
|
363
|
+
}
|
|
206
364
|
interface CreateCustomizationRequest {
|
|
207
365
|
/** Customization to create. */
|
|
208
366
|
customization: Customization;
|
|
@@ -427,6 +585,17 @@ interface BulkActionMetadata {
|
|
|
427
585
|
/** Number of failures without details because detailed failure threshold was exceeded. */
|
|
428
586
|
undetailedFailures?: number;
|
|
429
587
|
}
|
|
588
|
+
interface CustomizationIdsWrapper {
|
|
589
|
+
/**
|
|
590
|
+
* list of all the customization ids that are invalid
|
|
591
|
+
* e.g list of failed choices ids
|
|
592
|
+
* @minSize 1
|
|
593
|
+
* @maxSize 100
|
|
594
|
+
* @minLength 1
|
|
595
|
+
* @maxLength 36
|
|
596
|
+
*/
|
|
597
|
+
customizationIds?: string[];
|
|
598
|
+
}
|
|
430
599
|
interface AddCustomizationChoicesRequest {
|
|
431
600
|
/**
|
|
432
601
|
* Customization ID.
|
|
@@ -582,6 +751,276 @@ interface BulkUpdateCustomizationsResponse {
|
|
|
582
751
|
/** Bulk action metadata. */
|
|
583
752
|
bulkActionMetadata?: BulkActionMetadata;
|
|
584
753
|
}
|
|
754
|
+
interface DomainEvent extends DomainEventBodyOneOf {
|
|
755
|
+
createdEvent?: EntityCreatedEvent;
|
|
756
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
757
|
+
deletedEvent?: EntityDeletedEvent;
|
|
758
|
+
actionEvent?: ActionEvent;
|
|
759
|
+
/** Event ID. With this ID you can easily spot duplicated events and ignore them. */
|
|
760
|
+
id?: string;
|
|
761
|
+
/**
|
|
762
|
+
* Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
|
|
763
|
+
* For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
|
|
764
|
+
*/
|
|
765
|
+
entityFqdn?: string;
|
|
766
|
+
/**
|
|
767
|
+
* Event action name, placed at the top level to make it easier for users to dispatch messages.
|
|
768
|
+
* For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
|
|
769
|
+
*/
|
|
770
|
+
slug?: string;
|
|
771
|
+
/** ID of the entity associated with the event. */
|
|
772
|
+
entityId?: string;
|
|
773
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
|
|
774
|
+
eventTime?: Date | null;
|
|
775
|
+
/**
|
|
776
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
777
|
+
* (for example, GDPR).
|
|
778
|
+
*/
|
|
779
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
780
|
+
/** If present, indicates the action that triggered the event. */
|
|
781
|
+
originatedFrom?: string | null;
|
|
782
|
+
/**
|
|
783
|
+
* A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
|
|
784
|
+
* You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
|
|
785
|
+
*/
|
|
786
|
+
entityEventSequence?: string | null;
|
|
787
|
+
}
|
|
788
|
+
/** @oneof */
|
|
789
|
+
interface DomainEventBodyOneOf {
|
|
790
|
+
createdEvent?: EntityCreatedEvent;
|
|
791
|
+
updatedEvent?: EntityUpdatedEvent;
|
|
792
|
+
deletedEvent?: EntityDeletedEvent;
|
|
793
|
+
actionEvent?: ActionEvent;
|
|
794
|
+
}
|
|
795
|
+
interface EntityCreatedEvent {
|
|
796
|
+
entityAsJson?: string;
|
|
797
|
+
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
798
|
+
restoreInfo?: RestoreInfo;
|
|
799
|
+
}
|
|
800
|
+
interface RestoreInfo {
|
|
801
|
+
deletedDate?: Date | null;
|
|
802
|
+
}
|
|
803
|
+
interface EntityUpdatedEvent {
|
|
804
|
+
/**
|
|
805
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
806
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
807
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
808
|
+
*/
|
|
809
|
+
currentEntityAsJson?: string;
|
|
810
|
+
}
|
|
811
|
+
interface EntityDeletedEvent {
|
|
812
|
+
/** Entity that was deleted. */
|
|
813
|
+
deletedEntityAsJson?: string | null;
|
|
814
|
+
}
|
|
815
|
+
interface ActionEvent {
|
|
816
|
+
bodyAsJson?: string;
|
|
817
|
+
}
|
|
818
|
+
interface Empty {
|
|
819
|
+
}
|
|
820
|
+
interface MessageEnvelope {
|
|
821
|
+
/**
|
|
822
|
+
* App instance ID.
|
|
823
|
+
* @format GUID
|
|
824
|
+
*/
|
|
825
|
+
instanceId?: string | null;
|
|
826
|
+
/**
|
|
827
|
+
* Event type.
|
|
828
|
+
* @maxLength 150
|
|
829
|
+
*/
|
|
830
|
+
eventType?: string;
|
|
831
|
+
/** The identification type and identity data. */
|
|
832
|
+
identity?: IdentificationData;
|
|
833
|
+
/** Stringify payload. */
|
|
834
|
+
data?: string;
|
|
835
|
+
}
|
|
836
|
+
interface IdentificationData extends IdentificationDataIdOneOf {
|
|
837
|
+
/**
|
|
838
|
+
* ID of a site visitor that has not logged in to the site.
|
|
839
|
+
* @format GUID
|
|
840
|
+
*/
|
|
841
|
+
anonymousVisitorId?: string;
|
|
842
|
+
/**
|
|
843
|
+
* ID of a site visitor that has logged in to the site.
|
|
844
|
+
* @format GUID
|
|
845
|
+
*/
|
|
846
|
+
memberId?: string;
|
|
847
|
+
/**
|
|
848
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
849
|
+
* @format GUID
|
|
850
|
+
*/
|
|
851
|
+
wixUserId?: string;
|
|
852
|
+
/**
|
|
853
|
+
* ID of an app.
|
|
854
|
+
* @format GUID
|
|
855
|
+
*/
|
|
856
|
+
appId?: string;
|
|
857
|
+
/** @readonly */
|
|
858
|
+
identityType?: WebhookIdentityTypeWithLiterals;
|
|
859
|
+
}
|
|
860
|
+
/** @oneof */
|
|
861
|
+
interface IdentificationDataIdOneOf {
|
|
862
|
+
/**
|
|
863
|
+
* ID of a site visitor that has not logged in to the site.
|
|
864
|
+
* @format GUID
|
|
865
|
+
*/
|
|
866
|
+
anonymousVisitorId?: string;
|
|
867
|
+
/**
|
|
868
|
+
* ID of a site visitor that has logged in to the site.
|
|
869
|
+
* @format GUID
|
|
870
|
+
*/
|
|
871
|
+
memberId?: string;
|
|
872
|
+
/**
|
|
873
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
874
|
+
* @format GUID
|
|
875
|
+
*/
|
|
876
|
+
wixUserId?: string;
|
|
877
|
+
/**
|
|
878
|
+
* ID of an app.
|
|
879
|
+
* @format GUID
|
|
880
|
+
*/
|
|
881
|
+
appId?: string;
|
|
882
|
+
}
|
|
883
|
+
declare enum WebhookIdentityType {
|
|
884
|
+
UNKNOWN = "UNKNOWN",
|
|
885
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
886
|
+
MEMBER = "MEMBER",
|
|
887
|
+
WIX_USER = "WIX_USER",
|
|
888
|
+
APP = "APP"
|
|
889
|
+
}
|
|
890
|
+
/** @enumType */
|
|
891
|
+
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
892
|
+
/** @docsIgnore */
|
|
893
|
+
type CreateCustomizationApplicationErrors = {
|
|
894
|
+
code?: 'OPTIONS_LIMIT_EXCEEDED';
|
|
895
|
+
description?: string;
|
|
896
|
+
data?: Record<string, any>;
|
|
897
|
+
} | {
|
|
898
|
+
code?: 'MODIFIERS_LIMIT_EXCEEDED';
|
|
899
|
+
description?: string;
|
|
900
|
+
data?: Record<string, any>;
|
|
901
|
+
} | {
|
|
902
|
+
code?: 'INVALID_CUSTOMIZATION_RENDER_TYPE';
|
|
903
|
+
description?: string;
|
|
904
|
+
data?: Record<string, any>;
|
|
905
|
+
} | {
|
|
906
|
+
code?: 'INVALID_FREE_TEXT_SETTINGS';
|
|
907
|
+
description?: string;
|
|
908
|
+
data?: Record<string, any>;
|
|
909
|
+
};
|
|
910
|
+
/** @docsIgnore */
|
|
911
|
+
type CreateCustomizationValidationErrors = {
|
|
912
|
+
ruleName?: 'ONLY_SPACES_STRING_ERROR';
|
|
913
|
+
} | {
|
|
914
|
+
ruleName?: 'DUPLICATE_CHOICE_NAME';
|
|
915
|
+
} | {
|
|
916
|
+
ruleName?: 'CUSTOMIZATION_WITH_ONLY_ID_OR_CHOICE_IDS';
|
|
917
|
+
} | {
|
|
918
|
+
ruleName?: 'MIXED_CHOICE_IDS_CONSISTENCY';
|
|
919
|
+
} | {
|
|
920
|
+
ruleName?: 'ID_NOT_ALLOWED_IN_REQUEST';
|
|
921
|
+
};
|
|
922
|
+
/** @docsIgnore */
|
|
923
|
+
type DeleteCustomizationValidationErrors = {
|
|
924
|
+
ruleName?: 'NOT_ALLOWED_DELETE_CUSTOMIZATION_ASSIGNED_TO_PRODUCT';
|
|
925
|
+
};
|
|
926
|
+
/** @docsIgnore */
|
|
927
|
+
type BulkCreateCustomizationsApplicationErrors = {
|
|
928
|
+
code?: 'OPTIONS_LIMIT_EXCEEDED';
|
|
929
|
+
description?: string;
|
|
930
|
+
data?: Record<string, any>;
|
|
931
|
+
} | {
|
|
932
|
+
code?: 'MODIFIERS_LIMIT_EXCEEDED';
|
|
933
|
+
description?: string;
|
|
934
|
+
data?: Record<string, any>;
|
|
935
|
+
} | {
|
|
936
|
+
code?: 'DOESNT_SUPPORT_CHOICES';
|
|
937
|
+
description?: string;
|
|
938
|
+
data?: Record<string, any>;
|
|
939
|
+
} | {
|
|
940
|
+
code?: 'CHOICES_LIMIT_EXCEEDED';
|
|
941
|
+
description?: string;
|
|
942
|
+
data?: CustomizationIdsWrapper;
|
|
943
|
+
};
|
|
944
|
+
/** @docsIgnore */
|
|
945
|
+
type BulkCreateCustomizationsValidationErrors = {
|
|
946
|
+
ruleName?: 'ONLY_SPACES_STRING_ERROR';
|
|
947
|
+
} | {
|
|
948
|
+
ruleName?: 'INVALID_CHOICE_TYPE';
|
|
949
|
+
} | {
|
|
950
|
+
ruleName?: 'DUPLICATE_CHOICE_NAME';
|
|
951
|
+
} | {
|
|
952
|
+
ruleName?: 'INVALID_CHOICE_VALUE';
|
|
953
|
+
} | {
|
|
954
|
+
ruleName?: 'CUSTOMIZATION_WITH_ONLY_ID_OR_CHOICE_IDS';
|
|
955
|
+
} | {
|
|
956
|
+
ruleName?: 'MIXED_CHOICE_IDS_CONSISTENCY';
|
|
957
|
+
} | {
|
|
958
|
+
ruleName?: 'ID_NOT_ALLOWED_IN_REQUEST';
|
|
959
|
+
};
|
|
960
|
+
/** @docsIgnore */
|
|
961
|
+
type AddCustomizationChoicesApplicationErrors = {
|
|
962
|
+
code?: 'CHOICES_LIMIT_EXCEEDED';
|
|
963
|
+
description?: string;
|
|
964
|
+
data?: Record<string, any>;
|
|
965
|
+
} | {
|
|
966
|
+
code?: 'DOESNT_SUPPORT_CHOICES';
|
|
967
|
+
description?: string;
|
|
968
|
+
data?: Record<string, any>;
|
|
969
|
+
};
|
|
970
|
+
/** @docsIgnore */
|
|
971
|
+
type AddCustomizationChoicesValidationErrors = {
|
|
972
|
+
ruleName?: 'INVALID_CHOICE_TYPE';
|
|
973
|
+
} | {
|
|
974
|
+
ruleName?: 'INVALID_CHOICE_VALUE';
|
|
975
|
+
} | {
|
|
976
|
+
ruleName?: 'DUPLICATE_CHOICE_NAME';
|
|
977
|
+
};
|
|
978
|
+
/** @docsIgnore */
|
|
979
|
+
type SetCustomizationChoicesApplicationErrors = {
|
|
980
|
+
code?: 'DOESNT_SUPPORT_CHOICES';
|
|
981
|
+
description?: string;
|
|
982
|
+
data?: Record<string, any>;
|
|
983
|
+
} | {
|
|
984
|
+
code?: 'CHOICES_LIMIT_EXCEEDED';
|
|
985
|
+
description?: string;
|
|
986
|
+
data?: CustomizationIdsWrapper;
|
|
987
|
+
};
|
|
988
|
+
/** @docsIgnore */
|
|
989
|
+
type SetCustomizationChoicesValidationErrors = {
|
|
990
|
+
ruleName?: 'INVALID_CHOICE_TYPE';
|
|
991
|
+
} | {
|
|
992
|
+
ruleName?: 'INVALID_CHOICE_VALUE';
|
|
993
|
+
} | {
|
|
994
|
+
ruleName?: 'NOT_ALLOWED_DELETE_CHOICE_ASSIGNED_TO_PRODUCT';
|
|
995
|
+
} | {
|
|
996
|
+
ruleName?: 'DUPLICATE_CHOICE_NAME';
|
|
997
|
+
};
|
|
998
|
+
/** @docsIgnore */
|
|
999
|
+
type RemoveCustomizationChoicesApplicationErrors = {
|
|
1000
|
+
code?: 'CHOICE_ASSIGNED_TO_PRODUCT';
|
|
1001
|
+
description?: string;
|
|
1002
|
+
data?: Record<string, any>;
|
|
1003
|
+
};
|
|
1004
|
+
/** @docsIgnore */
|
|
1005
|
+
type RemoveCustomizationChoicesValidationErrors = {
|
|
1006
|
+
ruleName?: 'NOT_ALLOWED_CUSTOMIZATION_WITHOUT_CHOICES';
|
|
1007
|
+
};
|
|
1008
|
+
/** @docsIgnore */
|
|
1009
|
+
type BulkAddCustomizationChoicesApplicationErrors = {
|
|
1010
|
+
code?: 'CHOICES_LIMIT_EXCEEDED';
|
|
1011
|
+
description?: string;
|
|
1012
|
+
data?: CustomizationIdsWrapper;
|
|
1013
|
+
} | {
|
|
1014
|
+
code?: 'DOESNT_SUPPORT_CHOICES';
|
|
1015
|
+
description?: string;
|
|
1016
|
+
data?: Record<string, any>;
|
|
1017
|
+
};
|
|
1018
|
+
/** @docsIgnore */
|
|
1019
|
+
type BulkAddCustomizationChoicesValidationErrors = {
|
|
1020
|
+
ruleName?: 'INVALID_CHOICE_TYPE';
|
|
1021
|
+
} | {
|
|
1022
|
+
ruleName?: 'INVALID_CHOICE_VALUE';
|
|
1023
|
+
};
|
|
585
1024
|
|
|
586
1025
|
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
587
1026
|
getUrl: (context: any) => string;
|
|
@@ -617,4 +1056,4 @@ declare function removeCustomizationChoices(): __PublicMethodMetaInfo<'POST', {
|
|
|
617
1056
|
declare function bulkAddCustomizationChoices(): __PublicMethodMetaInfo<'POST', {}, BulkAddCustomizationChoicesRequest$1, BulkAddCustomizationChoicesRequest, BulkAddCustomizationChoicesResponse$1, BulkAddCustomizationChoicesResponse>;
|
|
618
1057
|
declare function bulkUpdateCustomizations(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateCustomizationsRequest$1, BulkUpdateCustomizationsRequest, BulkUpdateCustomizationsResponse$1, BulkUpdateCustomizationsResponse>;
|
|
619
1058
|
|
|
620
|
-
export { type __PublicMethodMetaInfo, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, updateCustomization };
|
|
1059
|
+
export { type ActionEvent as ActionEventOriginal, type AddCustomizationChoicesApplicationErrors as AddCustomizationChoicesApplicationErrorsOriginal, type AddCustomizationChoicesRequest as AddCustomizationChoicesRequestOriginal, type AddCustomizationChoicesResponse as AddCustomizationChoicesResponseOriginal, type AddCustomizationChoicesValidationErrors as AddCustomizationChoicesValidationErrorsOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkAddCustomizationChoicesApplicationErrors as BulkAddCustomizationChoicesApplicationErrorsOriginal, type BulkAddCustomizationChoicesRequest as BulkAddCustomizationChoicesRequestOriginal, type BulkAddCustomizationChoicesResponse as BulkAddCustomizationChoicesResponseOriginal, type BulkAddCustomizationChoicesValidationErrors as BulkAddCustomizationChoicesValidationErrorsOriginal, type BulkCreateCustomizationsApplicationErrors as BulkCreateCustomizationsApplicationErrorsOriginal, type BulkCreateCustomizationsRequest as BulkCreateCustomizationsRequestOriginal, type BulkCreateCustomizationsResponse as BulkCreateCustomizationsResponseOriginal, type BulkCreateCustomizationsValidationErrors as BulkCreateCustomizationsValidationErrorsOriginal, type BulkCustomizationResult as BulkCustomizationResultOriginal, type BulkUpdateCustomizationsRequest as BulkUpdateCustomizationsRequestOriginal, type BulkUpdateCustomizationsResponse as BulkUpdateCustomizationsResponseOriginal, type Choice as ChoiceOriginal, ChoiceType as ChoiceTypeOriginal, type ChoiceTypeWithLiterals as ChoiceTypeWithLiteralsOriginal, type ChoiceValueOneOf as ChoiceValueOneOfOriginal, type ChoicesSettings as ChoicesSettingsOriginal, type CreateCustomizationApplicationErrors as CreateCustomizationApplicationErrorsOriginal, type CreateCustomizationRequest as CreateCustomizationRequestOriginal, type CreateCustomizationResponse as CreateCustomizationResponseOriginal, type CreateCustomizationValidationErrors as CreateCustomizationValidationErrorsOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type CustomizationChoices as CustomizationChoicesOriginal, type CustomizationCustomizationSettingsOneOf as CustomizationCustomizationSettingsOneOfOriginal, type CustomizationIdsWrapper as CustomizationIdsWrapperOriginal, type Customization as CustomizationOriginal, CustomizationRenderType as CustomizationRenderTypeOriginal, type CustomizationRenderTypeWithLiterals as CustomizationRenderTypeWithLiteralsOriginal, CustomizationType as CustomizationTypeOriginal, type CustomizationTypeWithLiterals as CustomizationTypeWithLiteralsOriginal, type DeleteCustomizationRequest as DeleteCustomizationRequestOriginal, type DeleteCustomizationResponse as DeleteCustomizationResponseOriginal, type DeleteCustomizationValidationErrors as DeleteCustomizationValidationErrorsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type File as FileOriginal, type FocalPoint as FocalPointOriginal, type FreeTextSettings as FreeTextSettingsOriginal, type GetCustomizationRequest as GetCustomizationRequestOriginal, type GetCustomizationResponse as GetCustomizationResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type MaskedCustomization as MaskedCustomizationOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type MultipleColors as MultipleColorsOriginal, type Page as PageOriginal, type QueryCustomizationsRequest as QueryCustomizationsRequestOriginal, type QueryCustomizationsResponse as QueryCustomizationsResponseOriginal, type RemoveCustomizationChoicesApplicationErrors as RemoveCustomizationChoicesApplicationErrorsOriginal, type RemoveCustomizationChoicesRequest as RemoveCustomizationChoicesRequestOriginal, type RemoveCustomizationChoicesResponse as RemoveCustomizationChoicesResponseOriginal, type RemoveCustomizationChoicesValidationErrors as RemoveCustomizationChoicesValidationErrorsOriginal, RequestedFields as RequestedFieldsOriginal, type RequestedFieldsWithLiterals as RequestedFieldsWithLiteralsOriginal, type RestoreInfo as RestoreInfoOriginal, type SetCustomizationChoicesApplicationErrors as SetCustomizationChoicesApplicationErrorsOriginal, type SetCustomizationChoicesRequest as SetCustomizationChoicesRequestOriginal, type SetCustomizationChoicesResponse as SetCustomizationChoicesResponseOriginal, type SetCustomizationChoicesValidationErrors as SetCustomizationChoicesValidationErrorsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type URI as URIOriginal, type UpdateCustomizationRequest as UpdateCustomizationRequestOriginal, type UpdateCustomizationResponse as UpdateCustomizationResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, updateCustomization };
|
|
@@ -85,6 +85,9 @@ function createCustomization(payload) {
|
|
|
85
85
|
method: "POST",
|
|
86
86
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization",
|
|
87
87
|
packageName: PACKAGE_NAME,
|
|
88
|
+
migrationOptions: {
|
|
89
|
+
optInTransformResponse: true
|
|
90
|
+
},
|
|
88
91
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
89
92
|
protoPath: "/v3/customizations",
|
|
90
93
|
data: serializedData,
|
|
@@ -126,6 +129,9 @@ function getCustomization(payload) {
|
|
|
126
129
|
method: "GET",
|
|
127
130
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.GetCustomization",
|
|
128
131
|
packageName: PACKAGE_NAME,
|
|
132
|
+
migrationOptions: {
|
|
133
|
+
optInTransformResponse: true
|
|
134
|
+
},
|
|
129
135
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
130
136
|
protoPath: "/v3/customizations/{customizationId}",
|
|
131
137
|
data: payload,
|
|
@@ -190,6 +196,9 @@ function updateCustomization(payload) {
|
|
|
190
196
|
method: "PATCH",
|
|
191
197
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization",
|
|
192
198
|
packageName: PACKAGE_NAME,
|
|
199
|
+
migrationOptions: {
|
|
200
|
+
optInTransformResponse: true
|
|
201
|
+
},
|
|
193
202
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
194
203
|
protoPath: "/v3/customizations/{customization.id}",
|
|
195
204
|
data: serializedData,
|
|
@@ -231,6 +240,9 @@ function deleteCustomization(payload) {
|
|
|
231
240
|
method: "DELETE",
|
|
232
241
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.DeleteCustomization",
|
|
233
242
|
packageName: PACKAGE_NAME,
|
|
243
|
+
migrationOptions: {
|
|
244
|
+
optInTransformResponse: true
|
|
245
|
+
},
|
|
234
246
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
235
247
|
protoPath: "/v3/customizations/{customizationId}",
|
|
236
248
|
data: payload,
|
|
@@ -249,6 +261,9 @@ function queryCustomizations(payload) {
|
|
|
249
261
|
method: "GET",
|
|
250
262
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations",
|
|
251
263
|
packageName: PACKAGE_NAME,
|
|
264
|
+
migrationOptions: {
|
|
265
|
+
optInTransformResponse: true
|
|
266
|
+
},
|
|
252
267
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
253
268
|
protoPath: "/v3/customizations/query",
|
|
254
269
|
data: payload,
|
|
@@ -320,6 +335,9 @@ function bulkCreateCustomizations(payload) {
|
|
|
320
335
|
method: "POST",
|
|
321
336
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations",
|
|
322
337
|
packageName: PACKAGE_NAME,
|
|
338
|
+
migrationOptions: {
|
|
339
|
+
optInTransformResponse: true
|
|
340
|
+
},
|
|
323
341
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
324
342
|
protoPath: "/v3/bulk/customizations/create",
|
|
325
343
|
data: serializedData,
|
|
@@ -374,6 +392,9 @@ function addCustomizationChoices(payload) {
|
|
|
374
392
|
method: "POST",
|
|
375
393
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices",
|
|
376
394
|
packageName: PACKAGE_NAME,
|
|
395
|
+
migrationOptions: {
|
|
396
|
+
optInTransformResponse: true
|
|
397
|
+
},
|
|
377
398
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
378
399
|
protoPath: "/v3/customizations/{customizationId}/add-choices",
|
|
379
400
|
data: serializedData,
|
|
@@ -428,6 +449,9 @@ function setCustomizationChoices(payload) {
|
|
|
428
449
|
method: "POST",
|
|
429
450
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices",
|
|
430
451
|
packageName: PACKAGE_NAME,
|
|
452
|
+
migrationOptions: {
|
|
453
|
+
optInTransformResponse: true
|
|
454
|
+
},
|
|
431
455
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
432
456
|
protoPath: "/v3/customizations/{customizationId}/set-choices",
|
|
433
457
|
data: serializedData,
|
|
@@ -469,6 +493,9 @@ function removeCustomizationChoices(payload) {
|
|
|
469
493
|
method: "POST",
|
|
470
494
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices",
|
|
471
495
|
packageName: PACKAGE_NAME,
|
|
496
|
+
migrationOptions: {
|
|
497
|
+
optInTransformResponse: true
|
|
498
|
+
},
|
|
472
499
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
473
500
|
protoPath: "/v3/customizations/{customizationId}/remove-choices",
|
|
474
501
|
data: payload,
|
|
@@ -525,6 +552,9 @@ function bulkAddCustomizationChoices(payload) {
|
|
|
525
552
|
method: "POST",
|
|
526
553
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices",
|
|
527
554
|
packageName: PACKAGE_NAME,
|
|
555
|
+
migrationOptions: {
|
|
556
|
+
optInTransformResponse: true
|
|
557
|
+
},
|
|
528
558
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
529
559
|
protoPath: "/v3/bulk/customizations/add-choices",
|
|
530
560
|
data: serializedData,
|
|
@@ -593,6 +623,9 @@ function bulkUpdateCustomizations(payload) {
|
|
|
593
623
|
method: "POST",
|
|
594
624
|
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations",
|
|
595
625
|
packageName: PACKAGE_NAME,
|
|
626
|
+
migrationOptions: {
|
|
627
|
+
optInTransformResponse: true
|
|
628
|
+
},
|
|
596
629
|
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
597
630
|
protoPath: "/v3/bulk/customizations/update",
|
|
598
631
|
data: serializedData,
|
|
@@ -628,6 +661,47 @@ function bulkUpdateCustomizations(payload) {
|
|
|
628
661
|
return __bulkUpdateCustomizations;
|
|
629
662
|
}
|
|
630
663
|
|
|
664
|
+
// src/stores-catalog-v3-customization-customizations-v-3.types.ts
|
|
665
|
+
var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
|
|
666
|
+
CustomizationType2["UNKNOWN_CUSTOMIZATION_TYPE"] = "UNKNOWN_CUSTOMIZATION_TYPE";
|
|
667
|
+
CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
|
|
668
|
+
CustomizationType2["MODIFIER"] = "MODIFIER";
|
|
669
|
+
return CustomizationType2;
|
|
670
|
+
})(CustomizationType || {});
|
|
671
|
+
var CustomizationRenderType = /* @__PURE__ */ ((CustomizationRenderType2) => {
|
|
672
|
+
CustomizationRenderType2["UNKNOWN_CUSTOMIZATION_RENDER_TYPE"] = "UNKNOWN_CUSTOMIZATION_RENDER_TYPE";
|
|
673
|
+
CustomizationRenderType2["FREE_TEXT"] = "FREE_TEXT";
|
|
674
|
+
CustomizationRenderType2["TEXT_CHOICES"] = "TEXT_CHOICES";
|
|
675
|
+
CustomizationRenderType2["SWATCH_CHOICES"] = "SWATCH_CHOICES";
|
|
676
|
+
return CustomizationRenderType2;
|
|
677
|
+
})(CustomizationRenderType || {});
|
|
678
|
+
var ChoiceType = /* @__PURE__ */ ((ChoiceType2) => {
|
|
679
|
+
ChoiceType2["UNKNOWN_CHOICE_TYPE"] = "UNKNOWN_CHOICE_TYPE";
|
|
680
|
+
ChoiceType2["CHOICE_TEXT"] = "CHOICE_TEXT";
|
|
681
|
+
ChoiceType2["ONE_COLOR"] = "ONE_COLOR";
|
|
682
|
+
ChoiceType2["MULTIPLE_COLORS"] = "MULTIPLE_COLORS";
|
|
683
|
+
ChoiceType2["IMAGE"] = "IMAGE";
|
|
684
|
+
return ChoiceType2;
|
|
685
|
+
})(ChoiceType || {});
|
|
686
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
687
|
+
RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
688
|
+
RequestedFields2["ASSIGNED_PRODUCTS_COUNT"] = "ASSIGNED_PRODUCTS_COUNT";
|
|
689
|
+
return RequestedFields2;
|
|
690
|
+
})(RequestedFields || {});
|
|
691
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
692
|
+
SortOrder2["ASC"] = "ASC";
|
|
693
|
+
SortOrder2["DESC"] = "DESC";
|
|
694
|
+
return SortOrder2;
|
|
695
|
+
})(SortOrder || {});
|
|
696
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
697
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
698
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
699
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
700
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
701
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
702
|
+
return WebhookIdentityType2;
|
|
703
|
+
})(WebhookIdentityType || {});
|
|
704
|
+
|
|
631
705
|
// src/stores-catalog-v3-customization-customizations-v-3.meta.ts
|
|
632
706
|
function createCustomization2() {
|
|
633
707
|
const payload = {};
|
|
@@ -832,6 +906,12 @@ function bulkUpdateCustomizations2() {
|
|
|
832
906
|
};
|
|
833
907
|
}
|
|
834
908
|
export {
|
|
909
|
+
ChoiceType as ChoiceTypeOriginal,
|
|
910
|
+
CustomizationRenderType as CustomizationRenderTypeOriginal,
|
|
911
|
+
CustomizationType as CustomizationTypeOriginal,
|
|
912
|
+
RequestedFields as RequestedFieldsOriginal,
|
|
913
|
+
SortOrder as SortOrderOriginal,
|
|
914
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
835
915
|
addCustomizationChoices2 as addCustomizationChoices,
|
|
836
916
|
bulkAddCustomizationChoices2 as bulkAddCustomizationChoices,
|
|
837
917
|
bulkCreateCustomizations2 as bulkCreateCustomizations,
|