@wix/auto_sdk_stores_customizations-v-3 1.0.91 → 1.0.93
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 +56 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +21 -1
- package/build/cjs/index.typings.js +48 -0
- 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 +973 -871
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +11 -3
- package/build/es/index.mjs +55 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +21 -1
- package/build/es/index.typings.mjs +47 -0
- 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 +971 -871
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +11 -3
- package/build/internal/cjs/index.typings.d.ts +21 -1
- package/build/internal/cjs/meta.d.ts +11 -2
- package/build/internal/cjs/schemas.d.ts +9 -1
- package/build/internal/es/index.d.mts +11 -3
- package/build/internal/es/index.typings.d.mts +21 -1
- package/build/internal/es/meta.d.mts +11 -2
- package/build/internal/es/schemas.d.mts +9 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -1856
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1617
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1185
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -1908
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1809
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1572
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1139
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -1846
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { Customization, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, GetCustomizationOptions, UpdateCustomization, UpdateCustomizationOptions, DeleteCustomizationValidationErrors, 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, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationUpdatedEnvelope, CustomizationQuery, QueryCustomizationsOptions, typedQueryCustomizations, CustomizationsQueryBuilder } from './index.typings.mjs';
|
|
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, CreateCustomizationRequest, CreateCustomizationResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, CustomTag, CustomizationCustomizationSettingsOneOf, CustomizationIdsWrapper, CustomizationQuerySpec, CustomizationRenderType, CustomizationRenderTypeWithLiterals, CustomizationType, CustomizationTypeWithLiterals, CustomizationsQueryResult, DeleteCustomizationRequest, DeleteCustomizationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, FocalPoint, FreeTextSettings, GetCustomizationRequest, GetCustomizationResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, MaskedChoice, MessageEnvelope, 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';
|
|
2
|
+
import { Customization, CreateCustomizationApplicationErrors, CreateCustomizationValidationErrors, GetCustomizationOptions, UpdateCustomization, UpdateCustomizationOptions, 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, CustomizationCreatedEnvelope, CustomizationDeletedEnvelope, CustomizationUpdatedEnvelope, CustomizationQuery, QueryCustomizationsOptions, typedQueryCustomizations, CustomizationsQueryBuilder } from './index.typings.mjs';
|
|
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, CustomizationTypeWithLiterals, CustomizationsQueryResult, DeleteCustomizationRequest, DeleteCustomizationResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, File, FocalPoint, FreeTextSettings, GetCustomizationRequest, GetCustomizationResponse, IdentificationData, IdentificationDataIdOneOf, InvalidateCache, InvalidateCacheGetByOneOf, ItemMetadata, MaskedChoice, MessageEnvelope, 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;
|
|
6
6
|
interface CreateCustomizationSignature {
|
|
@@ -50,6 +50,13 @@ interface DeleteCustomizationSignature {
|
|
|
50
50
|
__validationErrorsType?: DeleteCustomizationValidationErrors;
|
|
51
51
|
}>;
|
|
52
52
|
}
|
|
53
|
+
declare function countCustomizations$1(httpClient: HttpClient): CountCustomizationsSignature;
|
|
54
|
+
interface CountCustomizationsSignature {
|
|
55
|
+
/**
|
|
56
|
+
* Counts the customizations that match the provided filter.
|
|
57
|
+
*/
|
|
58
|
+
(options?: CountCustomizationsOptions): Promise<NonNullablePaths<CountCustomizationsResponse, `count`, 2>>;
|
|
59
|
+
}
|
|
53
60
|
declare function bulkCreateCustomizations$1(httpClient: HttpClient): BulkCreateCustomizationsSignature;
|
|
54
61
|
interface BulkCreateCustomizationsSignature {
|
|
55
62
|
/**
|
|
@@ -170,6 +177,7 @@ declare const createCustomization: MaybeContext<BuildRESTFunction<typeof createC
|
|
|
170
177
|
declare const getCustomization: MaybeContext<BuildRESTFunction<typeof getCustomization$1> & typeof getCustomization$1>;
|
|
171
178
|
declare const updateCustomization: MaybeContext<BuildRESTFunction<typeof updateCustomization$1> & typeof updateCustomization$1>;
|
|
172
179
|
declare const deleteCustomization: MaybeContext<BuildRESTFunction<typeof deleteCustomization$1> & typeof deleteCustomization$1>;
|
|
180
|
+
declare const countCustomizations: MaybeContext<BuildRESTFunction<typeof countCustomizations$1> & typeof countCustomizations$1>;
|
|
173
181
|
declare const bulkCreateCustomizations: MaybeContext<BuildRESTFunction<typeof bulkCreateCustomizations$1> & typeof bulkCreateCustomizations$1>;
|
|
174
182
|
declare const addCustomizationChoices: MaybeContext<BuildRESTFunction<typeof addCustomizationChoices$1> & typeof addCustomizationChoices$1>;
|
|
175
183
|
declare const setCustomizationChoices: MaybeContext<BuildRESTFunction<typeof setCustomizationChoices$1> & typeof setCustomizationChoices$1>;
|
|
@@ -192,4 +200,4 @@ declare const onCustomizationDeleted: BuildEventDefinition<typeof onCustomizatio
|
|
|
192
200
|
*/
|
|
193
201
|
declare const onCustomizationUpdated: BuildEventDefinition<typeof onCustomizationUpdated$1> & typeof onCustomizationUpdated$1;
|
|
194
202
|
|
|
195
|
-
export { AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesValidationErrors, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesValidationErrors, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsValidationErrors, BulkUpdateCustomizationsOptions, BulkUpdateCustomizationsResponse, Choice, 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, UpdateCustomizationChoicesApplicationErrors, UpdateCustomizationChoicesOptions, UpdateCustomizationChoicesResponse, UpdateCustomizationChoicesValidationErrors, UpdateCustomizationOptions, addCustomizationChoices, bulkAddCustomizationChoices, bulkCreateCustomizations, bulkUpdateCustomizations, createCustomization, deleteCustomization, getCustomization, onCustomizationCreated, onCustomizationDeleted, onCustomizationUpdated, queryCustomizations, removeCustomizationChoices, reorderCustomizationChoices, setCustomizationChoices, updateCustomization, updateCustomizationChoices };
|
|
203
|
+
export { AddCustomizationChoicesApplicationErrors, AddCustomizationChoicesOptions, AddCustomizationChoicesResponse, AddCustomizationChoicesValidationErrors, BulkAddCustomizationChoicesApplicationErrors, BulkAddCustomizationChoicesOptions, BulkAddCustomizationChoicesResponse, BulkAddCustomizationChoicesValidationErrors, BulkCreateCustomizationsApplicationErrors, BulkCreateCustomizationsOptions, BulkCreateCustomizationsResponse, BulkCreateCustomizationsValidationErrors, 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, 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
|
@@ -342,6 +342,27 @@ function queryCustomizations(payload) {
|
|
|
342
342
|
}
|
|
343
343
|
return __queryCustomizations;
|
|
344
344
|
}
|
|
345
|
+
function countCustomizations(payload) {
|
|
346
|
+
function __countCustomizations({ host }) {
|
|
347
|
+
const metadata = {
|
|
348
|
+
entityFqdn: "wix.stores.catalog.v3.customization",
|
|
349
|
+
method: "POST",
|
|
350
|
+
methodFqn: "wix.stores.catalog.customization.v3.CustomizationService.CountCustomizations",
|
|
351
|
+
packageName: PACKAGE_NAME,
|
|
352
|
+
migrationOptions: {
|
|
353
|
+
optInTransformResponse: true
|
|
354
|
+
},
|
|
355
|
+
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
356
|
+
protoPath: "/v3/customizations/count",
|
|
357
|
+
data: payload,
|
|
358
|
+
host
|
|
359
|
+
}),
|
|
360
|
+
data: payload
|
|
361
|
+
};
|
|
362
|
+
return metadata;
|
|
363
|
+
}
|
|
364
|
+
return __countCustomizations;
|
|
365
|
+
}
|
|
345
366
|
function bulkCreateCustomizations(payload) {
|
|
346
367
|
function __bulkCreateCustomizations({ host }) {
|
|
347
368
|
const serializedData = transformPaths(payload, [
|
|
@@ -1142,6 +1163,31 @@ async function typedQueryCustomizations(query, options) {
|
|
|
1142
1163
|
var utils = {
|
|
1143
1164
|
query: /* @__PURE__ */ createQueryUtils()
|
|
1144
1165
|
};
|
|
1166
|
+
async function countCustomizations2(options) {
|
|
1167
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1168
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1169
|
+
filter: options?.filter
|
|
1170
|
+
});
|
|
1171
|
+
const reqOpts = countCustomizations(payload);
|
|
1172
|
+
sideEffects?.onSiteCall?.();
|
|
1173
|
+
try {
|
|
1174
|
+
const result = await httpClient.request(reqOpts);
|
|
1175
|
+
sideEffects?.onSuccess?.(result);
|
|
1176
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1177
|
+
} catch (err) {
|
|
1178
|
+
const transformedError = sdkTransformError(
|
|
1179
|
+
err,
|
|
1180
|
+
{
|
|
1181
|
+
spreadPathsToArguments: {},
|
|
1182
|
+
explicitPathsToArguments: { filter: "$[0].filter" },
|
|
1183
|
+
singleArgumentUnchanged: false
|
|
1184
|
+
},
|
|
1185
|
+
["options"]
|
|
1186
|
+
);
|
|
1187
|
+
sideEffects?.onError?.(err);
|
|
1188
|
+
throw transformedError;
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1145
1191
|
async function bulkCreateCustomizations2(customizations, options) {
|
|
1146
1192
|
const { httpClient, sideEffects } = arguments[2];
|
|
1147
1193
|
const payload = transformPaths2(
|
|
@@ -1600,6 +1646,13 @@ function typedQueryCustomizations2(httpClient) {
|
|
|
1600
1646
|
{ httpClient }
|
|
1601
1647
|
);
|
|
1602
1648
|
}
|
|
1649
|
+
function countCustomizations3(httpClient) {
|
|
1650
|
+
return (options) => countCustomizations2(
|
|
1651
|
+
options,
|
|
1652
|
+
// @ts-ignore
|
|
1653
|
+
{ httpClient }
|
|
1654
|
+
);
|
|
1655
|
+
}
|
|
1603
1656
|
function bulkCreateCustomizations3(httpClient) {
|
|
1604
1657
|
return (customizations, options) => bulkCreateCustomizations2(
|
|
1605
1658
|
customizations,
|
|
@@ -1762,6 +1815,7 @@ var createCustomization4 = /* @__PURE__ */ createRESTModule(createCustomization3
|
|
|
1762
1815
|
var getCustomization4 = /* @__PURE__ */ createRESTModule(getCustomization3);
|
|
1763
1816
|
var updateCustomization4 = /* @__PURE__ */ createRESTModule(updateCustomization3);
|
|
1764
1817
|
var deleteCustomization4 = /* @__PURE__ */ createRESTModule(deleteCustomization3);
|
|
1818
|
+
var countCustomizations4 = /* @__PURE__ */ createRESTModule(countCustomizations3);
|
|
1765
1819
|
var bulkCreateCustomizations4 = /* @__PURE__ */ createRESTModule(bulkCreateCustomizations3);
|
|
1766
1820
|
var addCustomizationChoices4 = /* @__PURE__ */ createRESTModule(addCustomizationChoices3);
|
|
1767
1821
|
var setCustomizationChoices4 = /* @__PURE__ */ createRESTModule(setCustomizationChoices3);
|
|
@@ -1792,6 +1846,7 @@ export {
|
|
|
1792
1846
|
bulkAddCustomizationChoices4 as bulkAddCustomizationChoices,
|
|
1793
1847
|
bulkCreateCustomizations4 as bulkCreateCustomizations,
|
|
1794
1848
|
bulkUpdateCustomizations4 as bulkUpdateCustomizations,
|
|
1849
|
+
countCustomizations4 as countCustomizations,
|
|
1795
1850
|
createCustomization4 as createCustomization,
|
|
1796
1851
|
deleteCustomization4 as deleteCustomization,
|
|
1797
1852
|
getCustomization4 as getCustomization,
|