@wix/auto_sdk_stores_customizations-v-3 1.0.61 → 1.0.63
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 +1 -1
- package/build/cjs/index.js +8 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +36 -1
- package/build/cjs/index.typings.js +8 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +32 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +5 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +36 -1
- package/build/es/index.typings.mjs +5 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +32 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +8 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +36 -1
- package/build/internal/cjs/index.typings.js +8 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +32 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +5 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +36 -1
- package/build/internal/es/index.typings.mjs +5 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +32 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _wix_sdk_types from '@wix/sdk-types';
|
|
1
2
|
import { QuerySpec, Query, NonNullablePaths } from '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -588,6 +589,37 @@ interface CustomizationIdsWrapper {
|
|
|
588
589
|
*/
|
|
589
590
|
customizationIds?: string[];
|
|
590
591
|
}
|
|
592
|
+
interface BulkCreateCustomizationsForMigrationRequest {
|
|
593
|
+
/**
|
|
594
|
+
* Customizations to create.
|
|
595
|
+
* @minSize 1
|
|
596
|
+
* @maxSize 100
|
|
597
|
+
*/
|
|
598
|
+
customizations?: Customization[];
|
|
599
|
+
/**
|
|
600
|
+
* Whether to return the full customization entities in the response.
|
|
601
|
+
*
|
|
602
|
+
* Default: `false`
|
|
603
|
+
*/
|
|
604
|
+
returnEntity?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Fields to include in the response.
|
|
607
|
+
*
|
|
608
|
+
* Supported values: `ASSIGNED_PRODUCTS_COUNT`
|
|
609
|
+
* @maxSize 100
|
|
610
|
+
*/
|
|
611
|
+
fields?: RequestedFieldsWithLiterals[];
|
|
612
|
+
}
|
|
613
|
+
interface BulkCreateCustomizationsForMigrationResponse {
|
|
614
|
+
/**
|
|
615
|
+
* Customizations created by bulk action.
|
|
616
|
+
* @minSize 1
|
|
617
|
+
* @maxSize 100
|
|
618
|
+
*/
|
|
619
|
+
results?: BulkCustomizationResult[];
|
|
620
|
+
/** Bulk action metadata. */
|
|
621
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
622
|
+
}
|
|
591
623
|
interface AddCustomizationChoicesRequest {
|
|
592
624
|
/**
|
|
593
625
|
* Customization ID.
|
|
@@ -1518,6 +1550,9 @@ type CustomizationQuery = {
|
|
|
1518
1550
|
order?: NonNullable<CommonQueryWithEntityContext['sort']>[number]['order'];
|
|
1519
1551
|
}[];
|
|
1520
1552
|
};
|
|
1553
|
+
declare const QueryBuilder: () => _wix_sdk_types.QueryBuilder<Customization, CustomizationQuerySpec, CustomizationQuery>;
|
|
1554
|
+
declare const Filter: _wix_sdk_types.FilterFactory<Customization, CustomizationQuerySpec>;
|
|
1555
|
+
declare const Sort: _wix_sdk_types.SortFactory<CustomizationQuerySpec>;
|
|
1521
1556
|
/**
|
|
1522
1557
|
* Creates multiple customizations.
|
|
1523
1558
|
* @param customizations - Customizations to create.
|
|
@@ -1680,4 +1715,4 @@ interface BulkUpdateCustomizationsOptions {
|
|
|
1680
1715
|
fields?: RequestedFieldsWithLiterals[];
|
|
1681
1716
|
}
|
|
1682
1717
|
|
|
1683
|
-
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 BulkCreateCustomizationsOptions, type BulkCreateCustomizationsRequest, type BulkCreateCustomizationsResponse, type BulkCreateCustomizationsValidationErrors, type BulkCustomizationResult, type BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type Choice, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, 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 MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type UpdateCustomization, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization };
|
|
1718
|
+
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 BulkUpdateCustomizationsOptions, type BulkUpdateCustomizationsRequest, type BulkUpdateCustomizationsResponse, type Choice, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, 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, Filter, type FocalPoint, type FreeTextSettings, type GetCustomizationOptions, type GetCustomizationRequest, type GetCustomizationResponse, type IdentificationData, type IdentificationDataIdOneOf, type InvalidateCache, type InvalidateCacheGetByOneOf, type ItemMetadata, type MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, QueryBuilder, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, Sort, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type UpdateCustomization, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization };
|
|
@@ -673,6 +673,7 @@ function bulkUpdateCustomizations(payload) {
|
|
|
673
673
|
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
674
674
|
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
675
675
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
676
|
+
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
676
677
|
var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
|
|
677
678
|
CustomizationType2["UNKNOWN_CUSTOMIZATION_TYPE"] = "UNKNOWN_CUSTOMIZATION_TYPE";
|
|
678
679
|
CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
|
|
@@ -939,6 +940,7 @@ async function typedQueryCustomizations(query, options) {
|
|
|
939
940
|
throw transformedError;
|
|
940
941
|
}
|
|
941
942
|
}
|
|
943
|
+
var { QueryBuilder, Filter, Sort } = createQueryUtils();
|
|
942
944
|
async function bulkCreateCustomizations2(customizations, options) {
|
|
943
945
|
const { httpClient, sideEffects } = arguments[2];
|
|
944
946
|
const payload = transformPaths2(
|
|
@@ -1225,7 +1227,10 @@ export {
|
|
|
1225
1227
|
ChoiceType,
|
|
1226
1228
|
CustomizationRenderType,
|
|
1227
1229
|
CustomizationType,
|
|
1230
|
+
Filter,
|
|
1231
|
+
QueryBuilder,
|
|
1228
1232
|
RequestedFields,
|
|
1233
|
+
Sort,
|
|
1229
1234
|
SortOrder,
|
|
1230
1235
|
WebhookIdentityType,
|
|
1231
1236
|
addCustomizationChoices2 as addCustomizationChoices,
|