@wix/auto_sdk_stores_customizations-v-3 1.0.108 → 1.0.109
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 +3 -3
- package/build/cjs/index.js +17 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +40 -10
- package/build/cjs/index.typings.js +15 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +22 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -3
- package/build/es/index.mjs +17 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +40 -10
- package/build/es/index.typings.mjs +15 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +22 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -3
- package/build/internal/cjs/index.typings.d.ts +40 -10
- package/build/internal/cjs/meta.d.ts +22 -8
- package/build/internal/es/index.d.mts +3 -3
- package/build/internal/es/index.typings.d.mts +40 -10
- package/build/internal/es/meta.d.mts +22 -8
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Customization, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, GetCustomizationOptions, UpdateCustomization, UpdateCustomizationOptions, UpdateCustomizationApplicationErrors, DeleteCustomizationValidationErrors, CountCustomizationsOptions, CountCustomizationsResponse, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsValidationErrors, Choice, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesValidationErrors, SetCustomizationChoicesOptions, SetCustomizationChoicesResponse, SetCustomizationChoicesApplicationErrors, SetCustomizationChoicesValidationErrors, RemoveCustomizationChoicesOptions, RemoveCustomizationChoicesResponse, RemoveCustomizationChoicesApplicationErrors, RemoveCustomizationChoicesValidationErrors, UpdateCustomizationChoicesOptions, UpdateCustomizationChoicesResponse, UpdateCustomizationChoicesApplicationErrors, UpdateCustomizationChoicesValidationErrors, ReorderCustomizationChoicesOptions, ReorderCustomizationChoicesResponse, ReorderCustomizationChoicesApplicationErrors, CustomizationChoices, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesValidationErrors, MaskedCustomization, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, BulkUpdateCustomizationsApplicationErrors, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationUpdatedEnvelope, CustomizationQuery, QueryCustomizationsOptions, typedQueryCustomizations, CustomizationsQueryBuilder } from './index.typings.mjs';
|
|
2
|
+
import { Customization, CreateCustomizationOptions, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, GetCustomizationOptions, UpdateCustomization, UpdateCustomizationOptions, UpdateCustomizationApplicationErrors, DeleteCustomizationValidationErrors, CountCustomizationsOptions, CountCustomizationsResponse, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsValidationErrors, Choice, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesValidationErrors, SetCustomizationChoicesOptions, SetCustomizationChoicesResponse, SetCustomizationChoicesApplicationErrors, SetCustomizationChoicesValidationErrors, RemoveCustomizationChoicesOptions, RemoveCustomizationChoicesResponse, RemoveCustomizationChoicesApplicationErrors, RemoveCustomizationChoicesValidationErrors, UpdateCustomizationChoicesOptions, UpdateCustomizationChoicesResponse, UpdateCustomizationChoicesApplicationErrors, UpdateCustomizationChoicesValidationErrors, ReorderCustomizationChoicesOptions, ReorderCustomizationChoicesResponse, ReorderCustomizationChoicesApplicationErrors, CustomizationChoices, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesValidationErrors, MaskedCustomization, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, BulkUpdateCustomizationsApplicationErrors, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationUpdatedEnvelope, CustomizationQuery, QueryCustomizationsOptions, typedQueryCustomizations, CustomizationsQueryBuilder } from './index.typings.mjs';
|
|
3
3
|
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddCustomizationChoicesRequest, App, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkAddCustomizationChoicesRequest, BulkCreateCustomizationsForMigrationRequest, BulkCreateCustomizationsForMigrationResponse, BulkCreateCustomizationsRequest, BulkCustomizationResult, BulkUpdateCustomizationsRequest, CatalogRollbackRequested, ChoiceIdsMismatchData, ChoiceSortStrategy, ChoiceSortStrategyWithLiterals, ChoiceType, ChoiceTypeWithLiterals, ChoiceValueOneOf, ChoicesSettings, CommonQueryWithEntityContext, CountCustomizationsRequest, CreateCustomizationRequest, CreateCustomizationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, CustomizationCustomizationSettingsOneOf, CustomizationIdsWrapper, CustomizationQuerySpec, CustomizationRenderType, CustomizationRenderTypeWithLiterals, CustomizationType, CustomizationTypeSpecificSettingsOneOf, CustomizationTypeWithLiterals, CustomizationsQueryResult, DeleteCustomizationRequest, DeleteCustomizationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, FocalPoint, FreeTextSettings, GetCustomizationRequest, GetCustomizationResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, MaskedChoice, MessageEnvelope, ModifierSettings, MultipleColors, Page, Pages, QueryCustomizationsRequest, QueryCustomizationsResponse, RecloneSiteRequest, RecloneSiteResponse, RemoveCustomizationChoicesRequest, ReorderCustomizationChoicesRequest, RequestedFields, RequestedFieldsWithLiterals, RestoreInfo, SetCustomizationChoicesRequest, SortOrder, SortOrderWithLiterals, Sorting, URI, URIs, UpdateCustomizationChoicesRequest, UpdateCustomizationRequest, UpdateCustomizationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createCustomization$1(httpClient: HttpClient): CreateCustomizationSignature;
|
|
@@ -9,7 +9,7 @@ interface CreateCustomizationSignature {
|
|
|
9
9
|
* @param - Customization to create.
|
|
10
10
|
* @returns Created customization.
|
|
11
11
|
*/
|
|
12
|
-
(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`, 1
|
|
12
|
+
(customization: NonNullablePaths<Customization, `choicesSettings.choices` | `customizationRenderType` | `customizationType` | `freeTextInput.title` | `name`, 1>, options?: CreateCustomizationOptions): 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> & {
|
|
13
13
|
__applicationErrorsType?: CreateCustomizationApplicationErrors;
|
|
14
14
|
__validationErrorsType?: CreateCustomizationValidationErrors;
|
|
15
15
|
}>;
|
|
@@ -208,4 +208,4 @@ declare const onCustomizationDeleted: BuildEventDefinition<typeof onCustomizatio
|
|
|
208
208
|
*/
|
|
209
209
|
declare const onCustomizationUpdated: BuildEventDefinition<typeof onCustomizationUpdated$1> & typeof onCustomizationUpdated$1;
|
|
210
210
|
|
|
211
|
-
export { AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesValidationErrors, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesValidationErrors, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsValidationErrors, BulkUpdateCustomizationsApplicationErrors, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, Choice, CountCustomizationsOptions, CountCustomizationsResponse, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, Customization, CustomizationChoices, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationQuery, CustomizationUpdatedEnvelope, CustomizationsQueryBuilder, DeleteCustomizationValidationErrors, GetCustomizationOptions, MaskedCustomization, QueryCustomizationsOptions, RemoveCustomizationChoicesApplicationErrors, RemoveCustomizationChoicesOptions, RemoveCustomizationChoicesResponse, RemoveCustomizationChoicesValidationErrors, ReorderCustomizationChoicesApplicationErrors, ReorderCustomizationChoicesOptions, ReorderCustomizationChoicesResponse, SetCustomizationChoicesApplicationErrors, SetCustomizationChoicesOptions, SetCustomizationChoicesResponse, SetCustomizationChoicesValidationErrors, UpdateCustomization, UpdateCustomizationApplicationErrors, UpdateCustomizationChoicesApplicationErrors, UpdateCustomizationChoicesOptions, UpdateCustomizationChoicesResponse, UpdateCustomizationChoicesValidationErrors, UpdateCustomizationOptions, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, countCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, updateCustomization, updateCustomizationChoices };
|
|
211
|
+
export { AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesValidationErrors, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesValidationErrors, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsValidationErrors, BulkUpdateCustomizationsApplicationErrors, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, Choice, CountCustomizationsOptions, CountCustomizationsResponse, CreateCustomizationApplicationErrors, CreateCustomizationOptions, CreateCustomizationValidationErrors, Customization, CustomizationChoices, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationQuery, CustomizationUpdatedEnvelope, CustomizationsQueryBuilder, DeleteCustomizationValidationErrors, GetCustomizationOptions, MaskedCustomization, QueryCustomizationsOptions, RemoveCustomizationChoicesApplicationErrors, RemoveCustomizationChoicesOptions, RemoveCustomizationChoicesResponse, RemoveCustomizationChoicesValidationErrors, ReorderCustomizationChoicesApplicationErrors, ReorderCustomizationChoicesOptions, ReorderCustomizationChoicesResponse, SetCustomizationChoicesApplicationErrors, SetCustomizationChoicesOptions, SetCustomizationChoicesResponse, SetCustomizationChoicesValidationErrors, UpdateCustomization, UpdateCustomizationApplicationErrors, UpdateCustomizationChoicesApplicationErrors, UpdateCustomizationChoicesOptions, UpdateCustomizationChoicesResponse, UpdateCustomizationChoicesValidationErrors, UpdateCustomizationOptions, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, countCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, updateCustomization, updateCustomizationChoices };
|
package/build/es/index.mjs
CHANGED
|
@@ -751,10 +751,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
751
751
|
WebhookIdentityType2["APP"] = "APP";
|
|
752
752
|
return WebhookIdentityType2;
|
|
753
753
|
})(WebhookIdentityType || {});
|
|
754
|
-
async function createCustomization2(customization) {
|
|
755
|
-
const { httpClient, sideEffects } = arguments[
|
|
754
|
+
async function createCustomization2(customization, options) {
|
|
755
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
756
756
|
const payload = transformPaths2(
|
|
757
|
-
renameKeysFromSDKRequestToRESTRequest({
|
|
757
|
+
renameKeysFromSDKRequestToRESTRequest({
|
|
758
|
+
customization,
|
|
759
|
+
fields: options?.fields
|
|
760
|
+
}),
|
|
758
761
|
[
|
|
759
762
|
{
|
|
760
763
|
transformFn: transformSDKImageToRESTImage,
|
|
@@ -780,10 +783,13 @@ async function createCustomization2(customization) {
|
|
|
780
783
|
err,
|
|
781
784
|
{
|
|
782
785
|
spreadPathsToArguments: {},
|
|
783
|
-
explicitPathsToArguments: {
|
|
786
|
+
explicitPathsToArguments: {
|
|
787
|
+
customization: "$[0]",
|
|
788
|
+
fields: "$[1].fields"
|
|
789
|
+
},
|
|
784
790
|
singleArgumentUnchanged: false
|
|
785
791
|
},
|
|
786
|
-
["customization"]
|
|
792
|
+
["customization", "options"]
|
|
787
793
|
);
|
|
788
794
|
sideEffects?.onError?.(err);
|
|
789
795
|
throw transformedError;
|
|
@@ -1013,7 +1019,8 @@ async function bulkCreateCustomizations2(customizations, options) {
|
|
|
1013
1019
|
const payload = transformPaths2(
|
|
1014
1020
|
renameKeysFromSDKRequestToRESTRequest({
|
|
1015
1021
|
customizations,
|
|
1016
|
-
returnEntity: options?.returnEntity
|
|
1022
|
+
returnEntity: options?.returnEntity,
|
|
1023
|
+
fields: options?.fields
|
|
1017
1024
|
}),
|
|
1018
1025
|
[
|
|
1019
1026
|
{
|
|
@@ -1042,7 +1049,8 @@ async function bulkCreateCustomizations2(customizations, options) {
|
|
|
1042
1049
|
spreadPathsToArguments: {},
|
|
1043
1050
|
explicitPathsToArguments: {
|
|
1044
1051
|
customizations: "$[0]",
|
|
1045
|
-
returnEntity: "$[1].returnEntity"
|
|
1052
|
+
returnEntity: "$[1].returnEntity",
|
|
1053
|
+
fields: "$[1].fields"
|
|
1046
1054
|
},
|
|
1047
1055
|
singleArgumentUnchanged: false
|
|
1048
1056
|
},
|
|
@@ -1397,8 +1405,9 @@ var TRANSFORM_PATHS_33 = [
|
|
|
1397
1405
|
{ path: "modifiedFields.choicesSettings.choices.displayImage" }
|
|
1398
1406
|
];
|
|
1399
1407
|
function createCustomization3(httpClient) {
|
|
1400
|
-
return (customization) => createCustomization2(
|
|
1408
|
+
return (customization, options) => createCustomization2(
|
|
1401
1409
|
customization,
|
|
1410
|
+
options,
|
|
1402
1411
|
// @ts-ignore
|
|
1403
1412
|
{ httpClient }
|
|
1404
1413
|
);
|