@wix/stores 1.0.93 → 1.0.95

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.
Files changed (54) hide show
  1. package/build/cjs/meta.d.ts +6 -0
  2. package/build/cjs/meta.js +29 -0
  3. package/build/cjs/meta.js.map +1 -0
  4. package/build/cjs/src/platform-v1-wishlist.meta.d.ts +13 -0
  5. package/build/cjs/src/platform-v1-wishlist.meta.js +43 -0
  6. package/build/cjs/src/platform-v1-wishlist.meta.js.map +1 -0
  7. package/build/cjs/src/stores-catalog-v1-collection.meta.d.ts +19 -0
  8. package/build/cjs/src/stores-catalog-v1-collection.meta.js +81 -0
  9. package/build/cjs/src/stores-catalog-v1-collection.meta.js.map +1 -0
  10. package/build/cjs/src/stores-catalog-v1-product.meta.d.ts +78 -0
  11. package/build/cjs/src/stores-catalog-v1-product.meta.js +518 -0
  12. package/build/cjs/src/stores-catalog-v1-product.meta.js.map +1 -0
  13. package/build/cjs/src/stores-catalog-v1-product.public.d.ts +1 -1
  14. package/build/cjs/src/stores-catalog-v1-product.types.d.ts +29 -0
  15. package/build/cjs/src/stores-catalog-v1-product.types.js.map +1 -1
  16. package/build/cjs/src/stores-catalog-v1-product.universal.d.ts +29 -0
  17. package/build/cjs/src/stores-catalog-v1-product.universal.js.map +1 -1
  18. package/build/cjs/src/stores-v1-abandoned-cart.meta.d.ts +16 -0
  19. package/build/cjs/src/stores-v1-abandoned-cart.meta.js +62 -0
  20. package/build/cjs/src/stores-v1-abandoned-cart.meta.js.map +1 -0
  21. package/build/cjs/src/stores-v1-subscription-option.meta.d.ts +40 -0
  22. package/build/cjs/src/stores-v1-subscription-option.meta.js +254 -0
  23. package/build/cjs/src/stores-v1-subscription-option.meta.js.map +1 -0
  24. package/build/cjs/src/stores-v2-inventory.meta.d.ts +21 -0
  25. package/build/cjs/src/stores-v2-inventory.meta.js +121 -0
  26. package/build/cjs/src/stores-v2-inventory.meta.js.map +1 -0
  27. package/build/es/meta.d.ts +6 -0
  28. package/build/es/meta.js +7 -0
  29. package/build/es/meta.js.map +1 -0
  30. package/build/es/src/platform-v1-wishlist.meta.d.ts +13 -0
  31. package/build/es/src/platform-v1-wishlist.meta.js +20 -0
  32. package/build/es/src/platform-v1-wishlist.meta.js.map +1 -0
  33. package/build/es/src/stores-catalog-v1-collection.meta.d.ts +19 -0
  34. package/build/es/src/stores-catalog-v1-collection.meta.js +56 -0
  35. package/build/es/src/stores-catalog-v1-collection.meta.js.map +1 -0
  36. package/build/es/src/stores-catalog-v1-product.meta.d.ts +78 -0
  37. package/build/es/src/stores-catalog-v1-product.meta.js +470 -0
  38. package/build/es/src/stores-catalog-v1-product.meta.js.map +1 -0
  39. package/build/es/src/stores-catalog-v1-product.public.d.ts +1 -1
  40. package/build/es/src/stores-catalog-v1-product.types.d.ts +29 -0
  41. package/build/es/src/stores-catalog-v1-product.types.js.map +1 -1
  42. package/build/es/src/stores-catalog-v1-product.universal.d.ts +29 -0
  43. package/build/es/src/stores-catalog-v1-product.universal.js.map +1 -1
  44. package/build/es/src/stores-v1-abandoned-cart.meta.d.ts +16 -0
  45. package/build/es/src/stores-v1-abandoned-cart.meta.js +38 -0
  46. package/build/es/src/stores-v1-abandoned-cart.meta.js.map +1 -0
  47. package/build/es/src/stores-v1-subscription-option.meta.d.ts +40 -0
  48. package/build/es/src/stores-v1-subscription-option.meta.js +220 -0
  49. package/build/es/src/stores-v1-subscription-option.meta.js.map +1 -0
  50. package/build/es/src/stores-v2-inventory.meta.d.ts +21 -0
  51. package/build/es/src/stores-v2-inventory.meta.js +94 -0
  52. package/build/es/src/stores-v2-inventory.meta.js.map +1 -0
  53. package/meta/package.json +6 -0
  54. package/package.json +7 -6
@@ -0,0 +1,21 @@
1
+ import * as ambassadorWixStoresV2InventoryTypes from './stores-v2-inventory.types';
2
+ import * as ambassadorWixStoresV2InventoryUniversalTypes from './stores-v2-inventory.universal';
3
+ export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function getInventoryVariants(): __PublicMethodMetaInfo<'POST', {
14
+ inventoryId: string;
15
+ }, ambassadorWixStoresV2InventoryUniversalTypes.GetInventoryVariantsRequest, ambassadorWixStoresV2InventoryTypes.GetInventoryVariantsRequest, ambassadorWixStoresV2InventoryUniversalTypes.GetInventoryVariantsResponse & ambassadorWixStoresV2InventoryUniversalTypes.GetInventoryVariantsResponseNonNullableFields, ambassadorWixStoresV2InventoryTypes.GetInventoryVariantsResponse & ambassadorWixStoresV2InventoryTypes.GetInventoryVariantsResponseNonNullableFields>;
16
+ export declare function queryInventory(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresV2InventoryUniversalTypes.QueryInventoryRequest, ambassadorWixStoresV2InventoryTypes.QueryInventoryRequest, ambassadorWixStoresV2InventoryUniversalTypes.QueryInventoryResponse & ambassadorWixStoresV2InventoryUniversalTypes.QueryInventoryResponseNonNullableFields, ambassadorWixStoresV2InventoryTypes.QueryInventoryResponse & ambassadorWixStoresV2InventoryTypes.QueryInventoryResponseNonNullableFields>;
17
+ export declare function updateInventoryVariants(): __PublicMethodMetaInfo<'PATCH', {
18
+ inventoryItemProductId: string;
19
+ }, ambassadorWixStoresV2InventoryUniversalTypes.UpdateInventoryVariantsRequest, ambassadorWixStoresV2InventoryTypes.UpdateInventoryVariantsRequest, ambassadorWixStoresV2InventoryUniversalTypes.UpdateInventoryVariantsResponse, ambassadorWixStoresV2InventoryTypes.UpdateInventoryVariantsResponse>;
20
+ export declare function decrementInventory(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresV2InventoryUniversalTypes.DecrementInventoryRequest, ambassadorWixStoresV2InventoryTypes.DecrementInventoryRequest, ambassadorWixStoresV2InventoryUniversalTypes.DecrementInventoryResponse, ambassadorWixStoresV2InventoryTypes.DecrementInventoryResponse>;
21
+ export declare function incrementInventory(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresV2InventoryUniversalTypes.IncrementInventoryRequest, ambassadorWixStoresV2InventoryTypes.IncrementInventoryRequest, ambassadorWixStoresV2InventoryUniversalTypes.IncrementInventoryResponse, ambassadorWixStoresV2InventoryTypes.IncrementInventoryResponse>;
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.incrementInventory = exports.decrementInventory = exports.updateInventoryVariants = exports.queryInventory = exports.getInventoryVariants = void 0;
23
+ const ambassadorWixStoresV2Inventory = __importStar(require("./stores-v2-inventory.http"));
24
+ function getInventoryVariants() {
25
+ const payload = { inventoryId: ':inventoryId' };
26
+ const getRequestOptions = ambassadorWixStoresV2Inventory.getInventoryVariants(payload);
27
+ const getUrl = (context) => {
28
+ const { url } = getRequestOptions(context);
29
+ return url;
30
+ };
31
+ return {
32
+ getUrl,
33
+ httpMethod: 'POST',
34
+ path: '/v2/inventoryItems/{inventoryId}/getVariants',
35
+ pathParams: { inventoryId: 'inventoryId' },
36
+ __requestType: null,
37
+ __originalRequestType: null,
38
+ __responseType: null,
39
+ __originalResponseType: null,
40
+ };
41
+ }
42
+ exports.getInventoryVariants = getInventoryVariants;
43
+ function queryInventory() {
44
+ const payload = {};
45
+ const getRequestOptions = ambassadorWixStoresV2Inventory.queryInventory(payload);
46
+ const getUrl = (context) => {
47
+ const { url } = getRequestOptions(context);
48
+ return url;
49
+ };
50
+ return {
51
+ getUrl,
52
+ httpMethod: 'POST',
53
+ path: '/v2/inventoryItems/query',
54
+ pathParams: {},
55
+ __requestType: null,
56
+ __originalRequestType: null,
57
+ __responseType: null,
58
+ __originalResponseType: null,
59
+ };
60
+ }
61
+ exports.queryInventory = queryInventory;
62
+ function updateInventoryVariants() {
63
+ const payload = {
64
+ inventoryItem: { productId: ':inventoryItemProductId' },
65
+ };
66
+ const getRequestOptions = ambassadorWixStoresV2Inventory.updateInventoryVariants(payload);
67
+ const getUrl = (context) => {
68
+ const { url } = getRequestOptions(context);
69
+ return url;
70
+ };
71
+ return {
72
+ getUrl,
73
+ httpMethod: 'PATCH',
74
+ path: '/v2/inventoryItems/product/{inventoryItem.productId}',
75
+ pathParams: { inventoryItemProductId: 'inventoryItemProductId' },
76
+ __requestType: null,
77
+ __originalRequestType: null,
78
+ __responseType: null,
79
+ __originalResponseType: null,
80
+ };
81
+ }
82
+ exports.updateInventoryVariants = updateInventoryVariants;
83
+ function decrementInventory() {
84
+ const payload = {};
85
+ const getRequestOptions = ambassadorWixStoresV2Inventory.decrementInventory(payload);
86
+ const getUrl = (context) => {
87
+ const { url } = getRequestOptions(context);
88
+ return url;
89
+ };
90
+ return {
91
+ getUrl,
92
+ httpMethod: 'POST',
93
+ path: '/v2/inventoryItems/decrement',
94
+ pathParams: {},
95
+ __requestType: null,
96
+ __originalRequestType: null,
97
+ __responseType: null,
98
+ __originalResponseType: null,
99
+ };
100
+ }
101
+ exports.decrementInventory = decrementInventory;
102
+ function incrementInventory() {
103
+ const payload = {};
104
+ const getRequestOptions = ambassadorWixStoresV2Inventory.incrementInventory(payload);
105
+ const getUrl = (context) => {
106
+ const { url } = getRequestOptions(context);
107
+ return url;
108
+ };
109
+ return {
110
+ getUrl,
111
+ httpMethod: 'POST',
112
+ path: '/v2/inventoryItems/increment',
113
+ pathParams: {},
114
+ __requestType: null,
115
+ __originalRequestType: null,
116
+ __responseType: null,
117
+ __originalResponseType: null,
118
+ };
119
+ }
120
+ exports.incrementInventory = incrementInventory;
121
+ //# sourceMappingURL=stores-v2-inventory.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-v2-inventory.meta.js","sourceRoot":"","sources":["../../../src/stores-v2-inventory.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,2FAA6E;AAsB7E,SAAgB,oBAAoB;IAUlC,MAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAE/D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,8CAA8C;QACpD,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,oDA8BC;AAED,SAAgB,cAAc;IAU5B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IAEzD,MAAM,MAAM,GAAG,CAAC,OAAY,E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AAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,8BAA8B;QACpC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,gDA4BC;AAED,SAAgB,kBAAkB;IAQhC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,8BAA8B,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAE7D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,8BAA8B;QACpC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,gDA4BC"}
@@ -0,0 +1,6 @@
1
+ export * as wishlist from './src/platform-v1-wishlist.meta';
2
+ export * as collections from './src/stores-catalog-v1-collection.meta';
3
+ export * as products from './src/stores-catalog-v1-product.meta';
4
+ export * as abandonedCarts from './src/stores-v1-abandoned-cart.meta';
5
+ export * as subscriptionOptions from './src/stores-v1-subscription-option.meta';
6
+ export * as inventory from './src/stores-v2-inventory.meta';
@@ -0,0 +1,7 @@
1
+ export * as wishlist from './src/platform-v1-wishlist.meta';
2
+ export * as collections from './src/stores-catalog-v1-collection.meta';
3
+ export * as products from './src/stores-catalog-v1-product.meta';
4
+ export * as abandonedCarts from './src/stores-v1-abandoned-cart.meta';
5
+ export * as subscriptionOptions from './src/stores-v1-subscription-option.meta';
6
+ export * as inventory from './src/stores-v2-inventory.meta';
7
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,WAAW,MAAM,yCAAyC,CAAC;AACvE,OAAO,KAAK,QAAQ,MAAM,sCAAsC,CAAC;AACjE,OAAO,KAAK,cAAc,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,mBAAmB,MAAM,0CAA0C,CAAC;AAChF,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as ambassadorWixPlatformV1WishlistTypes from './platform-v1-wishlist.types';
2
+ import * as ambassadorWixPlatformV1WishlistUniversalTypes from './platform-v1-wishlist.universal';
3
+ export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function getWishlistById(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixPlatformV1WishlistUniversalTypes.GetWishlistByIdRequest, ambassadorWixPlatformV1WishlistTypes.GetWishlistByIdRequest, ambassadorWixPlatformV1WishlistUniversalTypes.GetWishlistByIdResponse & ambassadorWixPlatformV1WishlistUniversalTypes.GetWishlistByIdResponseNonNullableFields, ambassadorWixPlatformV1WishlistTypes.GetWishlistByIdResponse & ambassadorWixPlatformV1WishlistTypes.GetWishlistByIdResponseNonNullableFields>;
@@ -0,0 +1,20 @@
1
+ import * as ambassadorWixPlatformV1Wishlist from './platform-v1-wishlist.http';
2
+ export function getWishlistById() {
3
+ const payload = {};
4
+ const getRequestOptions = ambassadorWixPlatformV1Wishlist.getWishlistById(payload);
5
+ const getUrl = (context) => {
6
+ const { url } = getRequestOptions(context);
7
+ return url;
8
+ };
9
+ return {
10
+ getUrl,
11
+ httpMethod: 'POST',
12
+ path: '/v1/wishlists/get',
13
+ pathParams: {},
14
+ __requestType: null,
15
+ __originalRequestType: null,
16
+ __responseType: null,
17
+ __originalResponseType: null,
18
+ };
19
+ }
20
+ //# sourceMappingURL=platform-v1-wishlist.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platform-v1-wishlist.meta.js","sourceRoot":"","sources":["../../../src/platform-v1-wishlist.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,+BAA+B,MAAM,6BAA6B,CAAC;AAsB/E,MAAM,UAAU,eAAe;IAU7B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,+BAA+B,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;IAE3D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,19 @@
1
+ import * as ambassadorWixStoresCatalogV1CollectionTypes from './stores-catalog-v1-collection.types';
2
+ import * as ambassadorWixStoresCatalogV1CollectionUniversalTypes from './stores-catalog-v1-collection.universal';
3
+ export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function queryCollections(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.QueryCollectionsResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsResponse & ambassadorWixStoresCatalogV1CollectionTypes.QueryCollectionsResponseNonNullableFields>;
14
+ export declare function getCollection(): __PublicMethodMetaInfo<'GET', {
15
+ id: string;
16
+ }, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionResponse & ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionResponseNonNullableFields>;
17
+ export declare function getCollectionBySlug(): __PublicMethodMetaInfo<'GET', {
18
+ slug: string;
19
+ }, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1CollectionUniversalTypes.GetCollectionBySlugResponseNonNullableFields, ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1CollectionTypes.GetCollectionBySlugResponseNonNullableFields>;
@@ -0,0 +1,56 @@
1
+ import * as ambassadorWixStoresCatalogV1Collection from './stores-catalog-v1-collection.http';
2
+ export function queryCollections() {
3
+ const payload = {};
4
+ const getRequestOptions = ambassadorWixStoresCatalogV1Collection.queryCollections(payload);
5
+ const getUrl = (context) => {
6
+ const { url } = getRequestOptions(context);
7
+ return url;
8
+ };
9
+ return {
10
+ getUrl,
11
+ httpMethod: 'POST',
12
+ path: '/v2/collections/query',
13
+ pathParams: {},
14
+ __requestType: null,
15
+ __originalRequestType: null,
16
+ __responseType: null,
17
+ __originalResponseType: null,
18
+ };
19
+ }
20
+ export function getCollection() {
21
+ const payload = { id: ':id' };
22
+ const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollection(payload);
23
+ const getUrl = (context) => {
24
+ const { url } = getRequestOptions(context);
25
+ return url;
26
+ };
27
+ return {
28
+ getUrl,
29
+ httpMethod: 'GET',
30
+ path: '/v2/collections/{id}',
31
+ pathParams: { id: 'id' },
32
+ __requestType: null,
33
+ __originalRequestType: null,
34
+ __responseType: null,
35
+ __originalResponseType: null,
36
+ };
37
+ }
38
+ export function getCollectionBySlug() {
39
+ const payload = { slug: ':slug' };
40
+ const getRequestOptions = ambassadorWixStoresCatalogV1Collection.getCollectionBySlug(payload);
41
+ const getUrl = (context) => {
42
+ const { url } = getRequestOptions(context);
43
+ return url;
44
+ };
45
+ return {
46
+ getUrl,
47
+ httpMethod: 'GET',
48
+ path: '/v2/collections/slug/{slug}',
49
+ pathParams: { slug: 'slug' },
50
+ __requestType: null,
51
+ __originalRequestType: null,
52
+ __responseType: null,
53
+ __originalResponseType: null,
54
+ };
55
+ }
56
+ //# sourceMappingURL=stores-catalog-v1-collection.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stores-catalog-v1-collection.meta.js","sourceRoot":"","sources":["../../../src/stores-catalog-v1-collection.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sCAAsC,MAAM,qCAAqC,CAAC;AAsB9F,MAAM,UAAU,gBAAgB;IAU9B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,gBAAgB,CAAC,OAAO,CAAC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C;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,6BAA6B;QACnC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QAC5B,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,78 @@
1
+ import * as ambassadorWixStoresCatalogV1ProductTypes from './stores-catalog-v1-product.types';
2
+ import * as ambassadorWixStoresCatalogV1ProductUniversalTypes from './stores-catalog-v1-product.universal';
3
+ export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function createProduct(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateProductRequest, ambassadorWixStoresCatalogV1ProductTypes.CreateProductRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateProductResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateProductResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.CreateProductResponse & ambassadorWixStoresCatalogV1ProductTypes.CreateProductResponseNonNullableFields>;
14
+ export declare function updateProduct(): __PublicMethodMetaInfo<'PATCH', {
15
+ productId: string;
16
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateProductRequest, ambassadorWixStoresCatalogV1ProductTypes.UpdateProductRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateProductResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateProductResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.UpdateProductResponse & ambassadorWixStoresCatalogV1ProductTypes.UpdateProductResponseNonNullableFields>;
17
+ export declare function deleteProduct(): __PublicMethodMetaInfo<'DELETE', {
18
+ id: string;
19
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteProductRequest, ambassadorWixStoresCatalogV1ProductTypes.DeleteProductRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteProductResponse, ambassadorWixStoresCatalogV1ProductTypes.DeleteProductResponse>;
20
+ export declare function updateProductVariants(): __PublicMethodMetaInfo<'PATCH', {
21
+ id: string;
22
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateVariantsRequest, ambassadorWixStoresCatalogV1ProductTypes.UpdateVariantsRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateVariantsResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateVariantsResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.UpdateVariantsResponse & ambassadorWixStoresCatalogV1ProductTypes.UpdateVariantsResponseNonNullableFields>;
23
+ export declare function resetAllProductVariantData(): __PublicMethodMetaInfo<'POST', {
24
+ id: string;
25
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.ResetAllVariantDataRequest, ambassadorWixStoresCatalogV1ProductTypes.ResetAllVariantDataRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.ResetAllVariantDataResponse, ambassadorWixStoresCatalogV1ProductTypes.ResetAllVariantDataResponse>;
26
+ export declare function addProductsToCollection(): __PublicMethodMetaInfo<'POST', {
27
+ id: string;
28
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductsToCollectionRequest, ambassadorWixStoresCatalogV1ProductTypes.AddProductsToCollectionRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductsToCollectionResponse, ambassadorWixStoresCatalogV1ProductTypes.AddProductsToCollectionResponse>;
29
+ export declare function removeProductsFromCollection(): __PublicMethodMetaInfo<'POST', {
30
+ id: string;
31
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductsFromCollectionRequest, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductsFromCollectionRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductsFromCollectionResponse, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductsFromCollectionResponse>;
32
+ export declare function addProductMedia(): __PublicMethodMetaInfo<'POST', {
33
+ id: string;
34
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductMediaRequest, ambassadorWixStoresCatalogV1ProductTypes.AddProductMediaRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductMediaResponse, ambassadorWixStoresCatalogV1ProductTypes.AddProductMediaResponse>;
35
+ export declare function removeProductMedia(): __PublicMethodMetaInfo<'POST', {
36
+ id: string;
37
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductMediaRequest, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductMediaRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductMediaResponse, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductMediaResponse>;
38
+ export declare function addProductMediaToChoices(): __PublicMethodMetaInfo<'PATCH', {
39
+ id: string;
40
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductMediaToChoicesRequest, ambassadorWixStoresCatalogV1ProductTypes.AddProductMediaToChoicesRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.AddProductMediaToChoicesResponse, ambassadorWixStoresCatalogV1ProductTypes.AddProductMediaToChoicesResponse>;
41
+ export declare function removeProductMediaFromChoices(): __PublicMethodMetaInfo<'POST', {
42
+ id: string;
43
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductMediaFromChoicesRequest, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductMediaFromChoicesRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductMediaFromChoicesResponse, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductMediaFromChoicesResponse>;
44
+ export declare function deleteProductOptions(): __PublicMethodMetaInfo<'DELETE', {
45
+ id: string;
46
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteProductOptionsRequest, ambassadorWixStoresCatalogV1ProductTypes.DeleteProductOptionsRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteProductOptionsResponse, ambassadorWixStoresCatalogV1ProductTypes.DeleteProductOptionsResponse>;
47
+ export declare function removeBrand(): __PublicMethodMetaInfo<'POST', {
48
+ id: string;
49
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductBrandRequest, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductBrandRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductBrandResponse, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductBrandResponse>;
50
+ export declare function createCollection(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateCollectionRequest, ambassadorWixStoresCatalogV1ProductTypes.CreateCollectionRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateCollectionResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.CreateCollectionResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.CreateCollectionResponse & ambassadorWixStoresCatalogV1ProductTypes.CreateCollectionResponseNonNullableFields>;
51
+ export declare function updateCollection(): __PublicMethodMetaInfo<'PATCH', {
52
+ collectionId: string;
53
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateCollectionRequest, ambassadorWixStoresCatalogV1ProductTypes.UpdateCollectionRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateCollectionResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.UpdateCollectionResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.UpdateCollectionResponse & ambassadorWixStoresCatalogV1ProductTypes.UpdateCollectionResponseNonNullableFields>;
54
+ export declare function deleteCollection(): __PublicMethodMetaInfo<'DELETE', {
55
+ id: string;
56
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteCollectionRequest, ambassadorWixStoresCatalogV1ProductTypes.DeleteCollectionRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.DeleteCollectionResponse, ambassadorWixStoresCatalogV1ProductTypes.DeleteCollectionResponse>;
57
+ export declare function removeRibbon(): __PublicMethodMetaInfo<'POST', {
58
+ id: string;
59
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductRibbonRequest, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductRibbonRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.RemoveProductRibbonResponse, ambassadorWixStoresCatalogV1ProductTypes.RemoveProductRibbonResponse>;
60
+ export declare function bulkUpdateProductsProperty(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkUpdateProductsRequest, ambassadorWixStoresCatalogV1ProductTypes.BulkUpdateProductsRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkUpdateProductsResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkUpdateProductsResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.BulkUpdateProductsResponse & ambassadorWixStoresCatalogV1ProductTypes.BulkUpdateProductsResponseNonNullableFields>;
61
+ export declare function bulkAdjustProductProperty(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkAdjustProductPropertiesRequest, ambassadorWixStoresCatalogV1ProductTypes.BulkAdjustProductPropertiesRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkAdjustProductPropertiesResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.BulkAdjustProductPropertiesResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.BulkAdjustProductPropertiesResponse & ambassadorWixStoresCatalogV1ProductTypes.BulkAdjustProductPropertiesResponseNonNullableFields>;
62
+ export declare function queryProducts(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductsPlatformizedRequest, ambassadorWixStoresCatalogV1ProductTypes.QueryProductsPlatformizedRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductsPlatformizedResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductsPlatformizedResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.QueryProductsPlatformizedResponse & ambassadorWixStoresCatalogV1ProductTypes.QueryProductsPlatformizedResponseNonNullableFields>;
63
+ export declare function getProduct(): __PublicMethodMetaInfo<'GET', {
64
+ id: string;
65
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetProductRequest, ambassadorWixStoresCatalogV1ProductTypes.GetProductRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetProductResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.GetProductResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.GetProductResponse & ambassadorWixStoresCatalogV1ProductTypes.GetProductResponseNonNullableFields>;
66
+ export declare function getCollectionBySlug(): __PublicMethodMetaInfo<'GET', {
67
+ slug: string;
68
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1ProductTypes.GetCollectionBySlugRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.GetCollectionBySlugResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.GetCollectionBySlugResponse & ambassadorWixStoresCatalogV1ProductTypes.GetCollectionBySlugResponseNonNullableFields>;
69
+ export declare function getProductOptionsAvailability(): __PublicMethodMetaInfo<'POST', {
70
+ id: string;
71
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.ProductOptionsAvailabilityRequest, ambassadorWixStoresCatalogV1ProductTypes.ProductOptionsAvailabilityRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.ProductOptionsAvailabilityResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.ProductOptionsAvailabilityResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.ProductOptionsAvailabilityResponse & ambassadorWixStoresCatalogV1ProductTypes.ProductOptionsAvailabilityResponseNonNullableFields>;
72
+ export declare function queryProductVariants(): __PublicMethodMetaInfo<'POST', {
73
+ id: string;
74
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductVariantsRequest, ambassadorWixStoresCatalogV1ProductTypes.QueryProductVariantsRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductVariantsResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryProductVariantsResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.QueryProductVariantsResponse & ambassadorWixStoresCatalogV1ProductTypes.QueryProductVariantsResponseNonNullableFields>;
75
+ export declare function queryStoreVariants(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryStoreVariantsRequest, ambassadorWixStoresCatalogV1ProductTypes.QueryStoreVariantsRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryStoreVariantsResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.QueryStoreVariantsResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.QueryStoreVariantsResponse & ambassadorWixStoresCatalogV1ProductTypes.QueryStoreVariantsResponseNonNullableFields>;
76
+ export declare function getStoreVariant(): __PublicMethodMetaInfo<'GET', {
77
+ id: string;
78
+ }, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetStoreVariantRequest, ambassadorWixStoresCatalogV1ProductTypes.GetStoreVariantRequest, ambassadorWixStoresCatalogV1ProductUniversalTypes.GetStoreVariantResponse & ambassadorWixStoresCatalogV1ProductUniversalTypes.GetStoreVariantResponseNonNullableFields, ambassadorWixStoresCatalogV1ProductTypes.GetStoreVariantResponse & ambassadorWixStoresCatalogV1ProductTypes.GetStoreVariantResponseNonNullableFields>;