@wix/auto_sdk_stores_customizations-v-3 1.0.90 → 1.0.92
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 +11 -3
- package/build/cjs/index.js +64 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +22 -10
- package/build/cjs/index.typings.js +49 -3
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +11 -2
- package/build/cjs/meta.js +41 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +9 -1
- package/build/cjs/schemas.js +38 -26
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -3
- package/build/es/index.mjs +63 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +22 -10
- package/build/es/index.typings.mjs +48 -3
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +11 -2
- package/build/es/meta.mjs +40 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +9 -1
- package/build/es/schemas.mjs +36 -26
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -3
- package/build/internal/cjs/index.js +64 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +22 -10
- package/build/internal/cjs/index.typings.js +49 -3
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +11 -2
- package/build/internal/cjs/meta.js +41 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +9 -1
- package/build/internal/cjs/schemas.js +38 -26
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +11 -3
- package/build/internal/es/index.mjs +63 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +22 -10
- package/build/internal/es/index.typings.mjs +48 -3
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +11 -2
- package/build/internal/es/meta.mjs +40 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +9 -1
- package/build/internal/es/schemas.mjs +36 -26
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -578,6 +578,14 @@ interface Cursors {
|
|
|
578
578
|
*/
|
|
579
579
|
prev?: string | null;
|
|
580
580
|
}
|
|
581
|
+
interface CountCustomizationsRequest {
|
|
582
|
+
/** Filter object. See API Query Language for more information. */
|
|
583
|
+
filter?: Record<string, any> | null;
|
|
584
|
+
}
|
|
585
|
+
interface CountCustomizationsResponse {
|
|
586
|
+
/** Number of customizations that match the filter. */
|
|
587
|
+
count?: number;
|
|
588
|
+
}
|
|
581
589
|
interface BulkCreateCustomizationsRequest {
|
|
582
590
|
/**
|
|
583
591
|
* Customizations to create.
|
|
@@ -1676,10 +1684,6 @@ interface CustomizationsQueryBuilder {
|
|
|
1676
1684
|
* @param string - String to compare against. Case-insensitive.
|
|
1677
1685
|
*/
|
|
1678
1686
|
startsWith: (propertyName: '_id' | 'name', value: string) => CustomizationsQueryBuilder;
|
|
1679
|
-
/** @param propertyName - Property whose value is compared with `values`.
|
|
1680
|
-
* @param values - List of values to compare against.
|
|
1681
|
-
*/
|
|
1682
|
-
hasSome: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any[]) => CustomizationsQueryBuilder;
|
|
1683
1687
|
in: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: any) => CustomizationsQueryBuilder;
|
|
1684
1688
|
exists: (propertyName: '_id' | '_createdDate' | '_updatedDate' | 'name' | 'customizationType' | 'customizationRenderType', value: boolean) => CustomizationsQueryBuilder;
|
|
1685
1689
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
@@ -1760,12 +1764,20 @@ type CustomizationQuery = {
|
|
|
1760
1764
|
}[];
|
|
1761
1765
|
};
|
|
1762
1766
|
declare const utils: {
|
|
1763
|
-
query:
|
|
1764
|
-
QueryBuilder: () => _wix_sdk_types.QueryBuilder<Customization, CustomizationQuerySpec, CustomizationQuery>;
|
|
1765
|
-
Filter: _wix_sdk_types.FilterFactory<Customization, CustomizationQuerySpec>;
|
|
1766
|
-
Sort: _wix_sdk_types.SortFactory<CustomizationQuerySpec>;
|
|
1767
|
-
};
|
|
1767
|
+
query: _wix_sdk_types.QueryHelpers<Customization, CustomizationQuerySpec, CustomizationQuery>;
|
|
1768
1768
|
};
|
|
1769
|
+
/**
|
|
1770
|
+
* Counts the customizations that match the provided filter.
|
|
1771
|
+
* @public
|
|
1772
|
+
* @permissionId WIX_STORES.CUSTOMIZATION_READ
|
|
1773
|
+
* @applicableIdentity APP
|
|
1774
|
+
* @fqn wix.stores.catalog.customization.v3.CustomizationService.CountCustomizations
|
|
1775
|
+
*/
|
|
1776
|
+
declare function countCustomizations(options?: CountCustomizationsOptions): Promise<NonNullablePaths<CountCustomizationsResponse, `count`, 2>>;
|
|
1777
|
+
interface CountCustomizationsOptions {
|
|
1778
|
+
/** Filter object. See API Query Language for more information. */
|
|
1779
|
+
filter?: Record<string, any> | null;
|
|
1780
|
+
}
|
|
1769
1781
|
/**
|
|
1770
1782
|
* Creates multiple customizations.
|
|
1771
1783
|
* @param customizations - Customizations to create.
|
|
@@ -2004,4 +2016,4 @@ interface BulkUpdateCustomizationsOptions {
|
|
|
2004
2016
|
fields?: RequestedFieldsWithLiterals[];
|
|
2005
2017
|
}
|
|
2006
2018
|
|
|
2007
|
-
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 CatalogRollbackRequested, type Choice, type ChoiceIdsMismatchData, ChoiceSortStrategy, type ChoiceSortStrategyWithLiterals, 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 MaskedChoice, type MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, type Pages, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, type ReorderCustomizationChoicesApplicationErrors, type ReorderCustomizationChoicesOptions, type ReorderCustomizationChoicesRequest, type ReorderCustomizationChoicesResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type URIs, type UpdateCustomization, type UpdateCustomizationChoicesApplicationErrors, type UpdateCustomizationChoicesOptions, type UpdateCustomizationChoicesRequest, type UpdateCustomizationChoicesResponse, type UpdateCustomizationChoicesValidationErrors, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization, updateCustomizationChoices, utils };
|
|
2019
|
+
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 CatalogRollbackRequested, type Choice, type ChoiceIdsMismatchData, ChoiceSortStrategy, type ChoiceSortStrategyWithLiterals, ChoiceType, type ChoiceTypeWithLiterals, type ChoiceValueOneOf, type ChoicesSettings, type CommonQueryWithEntityContext, type CountCustomizationsOptions, type CountCustomizationsRequest, type CountCustomizationsResponse, 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 MaskedChoice, type MaskedCustomization, type MessageEnvelope, type MultipleColors, type Page, type Pages, type QueryCustomizationsOptions, type QueryCustomizationsRequest, type QueryCustomizationsResponse, type RecloneSiteRequest, type RecloneSiteResponse, type RemoveCustomizationChoicesApplicationErrors, type RemoveCustomizationChoicesOptions, type RemoveCustomizationChoicesRequest, type RemoveCustomizationChoicesResponse, type RemoveCustomizationChoicesValidationErrors, type ReorderCustomizationChoicesApplicationErrors, type ReorderCustomizationChoicesOptions, type ReorderCustomizationChoicesRequest, type ReorderCustomizationChoicesResponse, RequestedFields, type RequestedFieldsWithLiterals, type RestoreInfo, type SetCustomizationChoicesApplicationErrors, type SetCustomizationChoicesOptions, type SetCustomizationChoicesRequest, type SetCustomizationChoicesResponse, type SetCustomizationChoicesValidationErrors, SortOrder, type SortOrderWithLiterals, type Sorting, type URI, type URIs, type UpdateCustomization, type UpdateCustomizationChoicesApplicationErrors, type UpdateCustomizationChoicesOptions, type UpdateCustomizationChoicesRequest, type UpdateCustomizationChoicesResponse, type UpdateCustomizationChoicesValidationErrors, type UpdateCustomizationOptions, type UpdateCustomizationRequest, type UpdateCustomizationResponse, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, countCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, typedQueryCustomizations, updateCustomization, updateCustomizationChoices, utils };
|
|
@@ -335,6 +335,27 @@ function queryCustomizations(payload) {
|
|
|
335
335
|
}
|
|
336
336
|
return __queryCustomizations;
|
|
337
337
|
}
|
|
338
|
+
function countCustomizations(payload) {
|
|
339
|
+
function __countCustomizations({ host }) {
|
|
340
|
+
const metadata = {
|
|
341
|
+
entityFqdn: "wix.stores.catalog.v3.customization",
|
|
342
|
+
method: "POST",
|
|
343
|
+
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CountCustomizations",
|
|
344
|
+
packageName: PACKAGE_NAME,
|
|
345
|
+
migrationOptions: {
|
|
346
|
+
optInTransformResponse: true
|
|
347
|
+
},
|
|
348
|
+
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
349
|
+
protoPath: "/v3/customizations/count",
|
|
350
|
+
data: payload,
|
|
351
|
+
host
|
|
352
|
+
}),
|
|
353
|
+
data: payload
|
|
354
|
+
};
|
|
355
|
+
return metadata;
|
|
356
|
+
}
|
|
357
|
+
return __countCustomizations;
|
|
358
|
+
}
|
|
338
359
|
function bulkCreateCustomizations(payload) {
|
|
339
360
|
function __bulkCreateCustomizations({ host }) {
|
|
340
361
|
const serializedData = transformPaths(payload, [
|
|
@@ -1133,10 +1154,33 @@ async function typedQueryCustomizations(query, options) {
|
|
|
1133
1154
|
}
|
|
1134
1155
|
}
|
|
1135
1156
|
var utils = {
|
|
1136
|
-
query:
|
|
1137
|
-
...createQueryUtils()
|
|
1138
|
-
}
|
|
1157
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
1139
1158
|
};
|
|
1159
|
+
async function countCustomizations2(options) {
|
|
1160
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1161
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1162
|
+
filter: options?.filter
|
|
1163
|
+
});
|
|
1164
|
+
const reqOpts = countCustomizations(payload);
|
|
1165
|
+
sideEffects?.onSiteCall?.();
|
|
1166
|
+
try {
|
|
1167
|
+
const result = await httpClient.request(reqOpts);
|
|
1168
|
+
sideEffects?.onSuccess?.(result);
|
|
1169
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1170
|
+
} catch (err) {
|
|
1171
|
+
const transformedError = sdkTransformError(
|
|
1172
|
+
err,
|
|
1173
|
+
{
|
|
1174
|
+
spreadPathsToArguments: {},
|
|
1175
|
+
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
1176
|
+
singleArgumentUnchanged: false
|
|
1177
|
+
},
|
|
1178
|
+
["options"]
|
|
1179
|
+
);
|
|
1180
|
+
sideEffects?.onError?.(err);
|
|
1181
|
+
throw transformedError;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1140
1184
|
async function bulkCreateCustomizations2(customizations, options) {
|
|
1141
1185
|
const { httpClient, sideEffects } = arguments[2];
|
|
1142
1186
|
const payload = transformPaths2(
|
|
@@ -1559,6 +1603,7 @@ export {
|
|
|
1559
1603
|
bulkAddCustomizationChoices2 as bulkAddCustomizationChoices,
|
|
1560
1604
|
bulkCreateCustomizations2 as bulkCreateCustomizations,
|
|
1561
1605
|
bulkUpdateCustomizations2 as bulkUpdateCustomizations,
|
|
1606
|
+
countCustomizations2 as countCustomizations,
|
|
1562
1607
|
createCustomization2 as createCustomization,
|
|
1563
1608
|
deleteCustomization2 as deleteCustomization,
|
|
1564
1609
|
getCustomization2 as getCustomization,
|