@wix/categories 1.0.24 → 1.0.26

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 (61) hide show
  1. package/build/cjs/context.d.ts +1 -1
  2. package/build/cjs/context.js +1 -1
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +1 -1
  5. package/build/cjs/index.js +1 -1
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -1
  8. package/build/cjs/meta.js +1 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/context.d.ts +1 -1
  11. package/build/es/context.js +1 -1
  12. package/build/es/context.js.map +1 -1
  13. package/build/es/index.d.ts +1 -1
  14. package/build/es/index.js +1 -1
  15. package/build/es/index.js.map +1 -1
  16. package/build/es/meta.d.ts +1 -1
  17. package/build/es/meta.js +1 -1
  18. package/build/es/meta.js.map +1 -1
  19. package/package.json +11 -9
  20. package/build/cjs/index.typings.d.ts +0 -1
  21. package/build/cjs/index.typings.js +0 -28
  22. package/build/cjs/index.typings.js.map +0 -1
  23. package/build/cjs/src/categories-v1-category.context.d.ts +0 -20
  24. package/build/cjs/src/categories-v1-category.context.js +0 -203
  25. package/build/cjs/src/categories-v1-category.context.js.map +0 -1
  26. package/build/cjs/src/categories-v1-category.http.d.ts +0 -56
  27. package/build/cjs/src/categories-v1-category.http.js +0 -1029
  28. package/build/cjs/src/categories-v1-category.http.js.map +0 -1
  29. package/build/cjs/src/categories-v1-category.meta.d.ts +0 -50
  30. package/build/cjs/src/categories-v1-category.meta.js +0 -370
  31. package/build/cjs/src/categories-v1-category.meta.js.map +0 -1
  32. package/build/cjs/src/categories-v1-category.public.d.ts +0 -1454
  33. package/build/cjs/src/categories-v1-category.public.js +0 -164
  34. package/build/cjs/src/categories-v1-category.public.js.map +0 -1
  35. package/build/cjs/src/categories-v1-category.types.d.ts +0 -5763
  36. package/build/cjs/src/categories-v1-category.types.js +0 -402
  37. package/build/cjs/src/categories-v1-category.types.js.map +0 -1
  38. package/build/cjs/src/categories-v1-category.universal.d.ts +0 -6181
  39. package/build/cjs/src/categories-v1-category.universal.js +0 -1794
  40. package/build/cjs/src/categories-v1-category.universal.js.map +0 -1
  41. package/build/es/index.typings.d.ts +0 -1
  42. package/build/es/index.typings.js +0 -2
  43. package/build/es/index.typings.js.map +0 -1
  44. package/build/es/src/categories-v1-category.context.d.ts +0 -20
  45. package/build/es/src/categories-v1-category.context.js +0 -182
  46. package/build/es/src/categories-v1-category.context.js.map +0 -1
  47. package/build/es/src/categories-v1-category.http.d.ts +0 -56
  48. package/build/es/src/categories-v1-category.http.js +0 -1008
  49. package/build/es/src/categories-v1-category.http.js.map +0 -1
  50. package/build/es/src/categories-v1-category.meta.d.ts +0 -50
  51. package/build/es/src/categories-v1-category.meta.js +0 -326
  52. package/build/es/src/categories-v1-category.meta.js.map +0 -1
  53. package/build/es/src/categories-v1-category.public.d.ts +0 -1454
  54. package/build/es/src/categories-v1-category.public.js +0 -95
  55. package/build/es/src/categories-v1-category.public.js.map +0 -1
  56. package/build/es/src/categories-v1-category.types.d.ts +0 -5763
  57. package/build/es/src/categories-v1-category.types.js +0 -399
  58. package/build/es/src/categories-v1-category.types.js.map +0 -1
  59. package/build/es/src/categories-v1-category.universal.d.ts +0 -6181
  60. package/build/es/src/categories-v1-category.universal.js +0 -1749
  61. package/build/es/src/categories-v1-category.universal.js.map +0 -1
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.context';
1
+ export * as categories from '@wix/categories_categories/context';
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.categories = void 0;
27
- exports.categories = __importStar(require("./src/categories-v1-category.context"));
27
+ exports.categories = __importStar(require("@wix/categories_categories/context"));
28
28
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mFAAmE"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iFAAiE"}
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.public';
1
+ export * as categories from '@wix/categories_categories';
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.categories = void 0;
27
- exports.categories = __importStar(require("./src/categories-v1-category.public"));
27
+ exports.categories = __importStar(require("@wix/categories_categories"));
28
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yEAAyD"}
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.meta';
1
+ export * as categories from '@wix/categories_categories/meta';
package/build/cjs/meta.js CHANGED
@@ -24,5 +24,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.categories = void 0;
27
- exports.categories = __importStar(require("./src/categories-v1-category.meta"));
27
+ exports.categories = __importStar(require("@wix/categories_categories/meta"));
28
28
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gFAAgE"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8EAA8D"}
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.context';
1
+ export * as categories from '@wix/categories_categories/context';
@@ -1,2 +1,2 @@
1
- export * as categories from './src/categories-v1-category.context';
1
+ export * as categories from '@wix/categories_categories/context';
2
2
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oCAAoC,CAAC"}
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.public';
1
+ export * as categories from '@wix/categories_categories';
package/build/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * as categories from './src/categories-v1-category.public';
1
+ export * as categories from '@wix/categories_categories';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,4BAA4B,CAAC"}
@@ -1 +1 @@
1
- export * as categories from './src/categories-v1-category.meta';
1
+ export * as categories from '@wix/categories_categories/meta';
package/build/es/meta.js CHANGED
@@ -1,2 +1,2 @@
1
- export * as categories from './src/categories-v1-category.meta';
1
+ export * as categories from '@wix/categories_categories/meta';
2
2
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,iCAAiC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/categories",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -16,14 +16,11 @@
16
16
  "context"
17
17
  ],
18
18
  "dependencies": {
19
- "@wix/metro-runtime": "^1.1528.0",
20
- "@wix/sdk-types": "^1.5.9",
21
- "@wix/sdk-runtime": "^0.2.7",
22
- "@wix/motion-edm-autogen-query-wrapper": "^1.0.37"
19
+ "@wix/categories_categories": "1.0.3"
23
20
  },
24
21
  "devDependencies": {
25
- "typescript": "^5.3.2",
26
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz"
22
+ "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
23
+ "typescript": "^5.3.2"
27
24
  },
28
25
  "scripts": {
29
26
  "build": "tsc -b tsconfig.json tsconfig.esm.json",
@@ -31,9 +28,14 @@
31
28
  },
32
29
  "wix": {
33
30
  "artifact": {
31
+ "groupId": "com.wixpress.public-sdk-autogen",
34
32
  "artifactId": "categories-public-sdk-autogen",
35
- "groupId": "com.wixpress.public-sdk-autogen"
33
+ "isRootPublicSdk": true
34
+ },
35
+ "sdkDependency": {
36
+ "fqdnNamespace": "",
37
+ "fqdn": ""
36
38
  }
37
39
  },
38
- "falconPackageHash": "8db49ab952f8f9d9b18fabd7be52ba48479dc829c6401f9ac54061ce"
40
+ "falconPackageHash": "6f0e1192234b5924d284dfd434ee925a58102bee14b3b56593dfafdd"
39
41
  }
@@ -1 +0,0 @@
1
- export * as categories from './src/categories-v1-category.universal';
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.categories = void 0;
27
- exports.categories = __importStar(require("./src/categories-v1-category.universal"));
28
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE"}
@@ -1,20 +0,0 @@
1
- import { createCategory as publicCreateCategory, getCategory as publicGetCategory, updateCategory as publicUpdateCategory, deleteCategory as publicDeleteCategory, searchCategories as publicSearchCategories, countCategories as publicCountCategories, moveCategory as publicMoveCategory, bulkUpdateCategories as publicBulkUpdateCategories, updateCategoryVisibility as publicUpdateCategoryVisibility, bulkAddItemsToCategory as publicBulkAddItemsToCategory, bulkAddItemToCategories as publicBulkAddItemToCategories, bulkRemoveItemsFromCategory as publicBulkRemoveItemsFromCategory, bulkRemoveItemFromCategories as publicBulkRemoveItemFromCategories, listItemsInCategory as publicListItemsInCategory, listCategoriesForItem as publicListCategoriesForItem, moveItemInCategory as publicMoveItemInCategory, setArrangedItems as publicSetArrangedItems, getArrangedItems as publicGetArrangedItems } from './categories-v1-category.public';
2
- import { BuildRESTFunction } from '@wix/sdk-types';
3
- export declare const createCategory: BuildRESTFunction<typeof publicCreateCategory>;
4
- export declare const getCategory: BuildRESTFunction<typeof publicGetCategory>;
5
- export declare const updateCategory: BuildRESTFunction<typeof publicUpdateCategory>;
6
- export declare const deleteCategory: BuildRESTFunction<typeof publicDeleteCategory>;
7
- export declare const searchCategories: BuildRESTFunction<typeof publicSearchCategories>;
8
- export declare const countCategories: BuildRESTFunction<typeof publicCountCategories>;
9
- export declare const moveCategory: BuildRESTFunction<typeof publicMoveCategory>;
10
- export declare const bulkUpdateCategories: BuildRESTFunction<typeof publicBulkUpdateCategories>;
11
- export declare const updateCategoryVisibility: BuildRESTFunction<typeof publicUpdateCategoryVisibility>;
12
- export declare const bulkAddItemsToCategory: BuildRESTFunction<typeof publicBulkAddItemsToCategory>;
13
- export declare const bulkAddItemToCategories: BuildRESTFunction<typeof publicBulkAddItemToCategories>;
14
- export declare const bulkRemoveItemsFromCategory: BuildRESTFunction<typeof publicBulkRemoveItemsFromCategory>;
15
- export declare const bulkRemoveItemFromCategories: BuildRESTFunction<typeof publicBulkRemoveItemFromCategories>;
16
- export declare const listItemsInCategory: BuildRESTFunction<typeof publicListItemsInCategory>;
17
- export declare const listCategoriesForItem: BuildRESTFunction<typeof publicListCategoriesForItem>;
18
- export declare const moveItemInCategory: BuildRESTFunction<typeof publicMoveItemInCategory>;
19
- export declare const setArrangedItems: BuildRESTFunction<typeof publicSetArrangedItems>;
20
- export declare const getArrangedItems: BuildRESTFunction<typeof publicGetArrangedItems>;
@@ -1,203 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getArrangedItems = exports.setArrangedItems = exports.moveItemInCategory = exports.listCategoriesForItem = exports.listItemsInCategory = exports.bulkRemoveItemFromCategories = exports.bulkRemoveItemsFromCategory = exports.bulkAddItemToCategories = exports.bulkAddItemsToCategory = exports.updateCategoryVisibility = exports.bulkUpdateCategories = exports.moveCategory = exports.countCategories = exports.searchCategories = exports.deleteCategory = exports.updateCategory = exports.getCategory = exports.createCategory = void 0;
4
- const categories_v1_category_public_1 = require("./categories-v1-category.public");
5
- const createCategory = (...args) => {
6
- // @ts-expect-error
7
- if (!globalThis.__wix_context__) {
8
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
9
- }
10
- // @ts-expect-error
11
- return globalThis.__wix_context__
12
- .initWixModules(categories_v1_category_public_1.createCategory)
13
- .apply(undefined, args);
14
- };
15
- exports.createCategory = createCategory;
16
- const getCategory = (...args) => {
17
- // @ts-expect-error
18
- if (!globalThis.__wix_context__) {
19
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
20
- }
21
- // @ts-expect-error
22
- return globalThis.__wix_context__
23
- .initWixModules(categories_v1_category_public_1.getCategory)
24
- .apply(undefined, args);
25
- };
26
- exports.getCategory = getCategory;
27
- const updateCategory = (...args) => {
28
- // @ts-expect-error
29
- if (!globalThis.__wix_context__) {
30
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
31
- }
32
- // @ts-expect-error
33
- return globalThis.__wix_context__
34
- .initWixModules(categories_v1_category_public_1.updateCategory)
35
- .apply(undefined, args);
36
- };
37
- exports.updateCategory = updateCategory;
38
- const deleteCategory = (...args) => {
39
- // @ts-expect-error
40
- if (!globalThis.__wix_context__) {
41
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
42
- }
43
- // @ts-expect-error
44
- return globalThis.__wix_context__
45
- .initWixModules(categories_v1_category_public_1.deleteCategory)
46
- .apply(undefined, args);
47
- };
48
- exports.deleteCategory = deleteCategory;
49
- const searchCategories = (...args) => {
50
- // @ts-expect-error
51
- if (!globalThis.__wix_context__) {
52
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
53
- }
54
- // @ts-expect-error
55
- return globalThis.__wix_context__
56
- .initWixModules(categories_v1_category_public_1.searchCategories)
57
- .apply(undefined, args);
58
- };
59
- exports.searchCategories = searchCategories;
60
- const countCategories = (...args) => {
61
- // @ts-expect-error
62
- if (!globalThis.__wix_context__) {
63
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
64
- }
65
- // @ts-expect-error
66
- return globalThis.__wix_context__
67
- .initWixModules(categories_v1_category_public_1.countCategories)
68
- .apply(undefined, args);
69
- };
70
- exports.countCategories = countCategories;
71
- const moveCategory = (...args) => {
72
- // @ts-expect-error
73
- if (!globalThis.__wix_context__) {
74
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
75
- }
76
- // @ts-expect-error
77
- return globalThis.__wix_context__
78
- .initWixModules(categories_v1_category_public_1.moveCategory)
79
- .apply(undefined, args);
80
- };
81
- exports.moveCategory = moveCategory;
82
- const bulkUpdateCategories = (...args) => {
83
- // @ts-expect-error
84
- if (!globalThis.__wix_context__) {
85
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
86
- }
87
- // @ts-expect-error
88
- return globalThis.__wix_context__
89
- .initWixModules(categories_v1_category_public_1.bulkUpdateCategories)
90
- .apply(undefined, args);
91
- };
92
- exports.bulkUpdateCategories = bulkUpdateCategories;
93
- const updateCategoryVisibility = (...args) => {
94
- // @ts-expect-error
95
- if (!globalThis.__wix_context__) {
96
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
97
- }
98
- // @ts-expect-error
99
- return globalThis.__wix_context__
100
- .initWixModules(categories_v1_category_public_1.updateCategoryVisibility)
101
- .apply(undefined, args);
102
- };
103
- exports.updateCategoryVisibility = updateCategoryVisibility;
104
- const bulkAddItemsToCategory = (...args) => {
105
- // @ts-expect-error
106
- if (!globalThis.__wix_context__) {
107
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
108
- }
109
- // @ts-expect-error
110
- return globalThis.__wix_context__
111
- .initWixModules(categories_v1_category_public_1.bulkAddItemsToCategory)
112
- .apply(undefined, args);
113
- };
114
- exports.bulkAddItemsToCategory = bulkAddItemsToCategory;
115
- const bulkAddItemToCategories = (...args) => {
116
- // @ts-expect-error
117
- if (!globalThis.__wix_context__) {
118
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
119
- }
120
- // @ts-expect-error
121
- return globalThis.__wix_context__
122
- .initWixModules(categories_v1_category_public_1.bulkAddItemToCategories)
123
- .apply(undefined, args);
124
- };
125
- exports.bulkAddItemToCategories = bulkAddItemToCategories;
126
- const bulkRemoveItemsFromCategory = (...args) => {
127
- // @ts-expect-error
128
- if (!globalThis.__wix_context__) {
129
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
130
- }
131
- // @ts-expect-error
132
- return globalThis.__wix_context__
133
- .initWixModules(categories_v1_category_public_1.bulkRemoveItemsFromCategory)
134
- .apply(undefined, args);
135
- };
136
- exports.bulkRemoveItemsFromCategory = bulkRemoveItemsFromCategory;
137
- const bulkRemoveItemFromCategories = (...args) => {
138
- // @ts-expect-error
139
- if (!globalThis.__wix_context__) {
140
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
141
- }
142
- // @ts-expect-error
143
- return globalThis.__wix_context__
144
- .initWixModules(categories_v1_category_public_1.bulkRemoveItemFromCategories)
145
- .apply(undefined, args);
146
- };
147
- exports.bulkRemoveItemFromCategories = bulkRemoveItemFromCategories;
148
- const listItemsInCategory = (...args) => {
149
- // @ts-expect-error
150
- if (!globalThis.__wix_context__) {
151
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
152
- }
153
- // @ts-expect-error
154
- return globalThis.__wix_context__
155
- .initWixModules(categories_v1_category_public_1.listItemsInCategory)
156
- .apply(undefined, args);
157
- };
158
- exports.listItemsInCategory = listItemsInCategory;
159
- const listCategoriesForItem = (...args) => {
160
- // @ts-expect-error
161
- if (!globalThis.__wix_context__) {
162
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
163
- }
164
- // @ts-expect-error
165
- return globalThis.__wix_context__
166
- .initWixModules(categories_v1_category_public_1.listCategoriesForItem)
167
- .apply(undefined, args);
168
- };
169
- exports.listCategoriesForItem = listCategoriesForItem;
170
- const moveItemInCategory = (...args) => {
171
- // @ts-expect-error
172
- if (!globalThis.__wix_context__) {
173
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
174
- }
175
- // @ts-expect-error
176
- return globalThis.__wix_context__
177
- .initWixModules(categories_v1_category_public_1.moveItemInCategory)
178
- .apply(undefined, args);
179
- };
180
- exports.moveItemInCategory = moveItemInCategory;
181
- const setArrangedItems = (...args) => {
182
- // @ts-expect-error
183
- if (!globalThis.__wix_context__) {
184
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
185
- }
186
- // @ts-expect-error
187
- return globalThis.__wix_context__
188
- .initWixModules(categories_v1_category_public_1.setArrangedItems)
189
- .apply(undefined, args);
190
- };
191
- exports.setArrangedItems = setArrangedItems;
192
- const getArrangedItems = (...args) => {
193
- // @ts-expect-error
194
- if (!globalThis.__wix_context__) {
195
- throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
196
- }
197
- // @ts-expect-error
198
- return globalThis.__wix_context__
199
- .initWixModules(categories_v1_category_public_1.getArrangedItems)
200
- .apply(undefined, args);
201
- };
202
- exports.getArrangedItems = getArrangedItems;
203
- //# sourceMappingURL=categories-v1-category.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"categories-v1-category.context.js","sourceRoot":"","sources":["../../../src/categories-v1-category.context.ts"],"names":[],"mappings":";;;AAAA,mFAmByC;AAGlC,MAAM,cAAc,GAAmD,CAC5E,GAAG,IAAS,EACZ,EAAE;IACF,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,8CAAoB,CAAC;SACpC,KAAK,CAAC,SAA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CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC;AACK,MAAM,kBAAkB,GAE3B,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,kDAAwB,CAAC;SACxC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,kBAAkB,sBAa7B;AACK,MAAM,gBAAgB,GAEzB,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,gDAAsB,CAAC;SACtC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B;AACK,MAAM,gBAAgB,GAEzB,CAAC,GAAG,IAAS,EAAE,EAAE;IACnB,mBAAmB;IACnB,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,CAAC;IACD,mBAAmB;IACnB,OAAO,UAAU,CAAC,eAAe;SAC9B,cAAc,CAAC,gDAAsB,CAAC;SACtC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AAbW,QAAA,gBAAgB,oBAa3B"}
@@ -1,56 +0,0 @@
1
- import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { BulkUpdateCategoriesRequest, BulkUpdateCategoriesResponse, CreateCategoryRequest, CreateCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, GetArrangedItemsRequest, GetArrangedItemsResponse, GetCategoryRequest, GetCategoryResponse, ListCategoriesForItemRequest, ListCategoriesForItemResponse, ListItemsInCategoryRequest, ListItemsInCategoryResponse, MoveItemInCategoryRequest, MoveItemInCategoryResponse, SetArrangedItemsRequest, SetArrangedItemsResponse, UpdateCategoryRequest, UpdateCategoryResponse, UpdateCategoryVisibilityRequest, UpdateCategoryVisibilityResponse, BulkAddItemsToCategoryRequest, BulkAddItemsToCategoryResponse, BulkAddItemToCategoriesRequest, BulkAddItemToCategoriesResponse, BulkRemoveItemFromCategoriesRequest, BulkRemoveItemFromCategoriesResponse, BulkRemoveItemsFromCategoryRequest, BulkRemoveItemsFromCategoryResponse, MoveCategoryRequest, MoveCategoryResponse, CreateCategoryResponseNonNullableFields, GetCategoryResponseNonNullableFields, UpdateCategoryResponseNonNullableFields, MoveCategoryResponseNonNullableFields, BulkUpdateCategoriesResponseNonNullableFields, UpdateCategoryVisibilityResponseNonNullableFields, BulkAddItemsToCategoryResponseNonNullableFields, BulkAddItemToCategoriesResponseNonNullableFields, BulkRemoveItemsFromCategoryResponseNonNullableFields, BulkRemoveItemFromCategoriesResponseNonNullableFields, ListItemsInCategoryResponseNonNullableFields, ListCategoriesForItemResponseNonNullableFields, MoveItemInCategoryResponseNonNullableFields, SetArrangedItemsResponseNonNullableFields, GetArrangedItemsResponseNonNullableFields, SearchCategoriesRequest, SearchCategoriesResponse, SearchCategoriesResponseNonNullableFields, CountCategoriesRequest, CountCategoriesResponse, CountCategoriesResponseNonNullableFields } from './categories-v1-category.types';
3
- /** Creates a new Category. */
4
- export declare function createCategory(payload: CreateCategoryRequest): RequestOptionsFactory<CreateCategoryResponse & CreateCategoryResponseNonNullableFields>;
5
- /** Retrieves a category with the provided ID. */
6
- export declare function getCategory(payload: GetCategoryRequest): RequestOptionsFactory<GetCategoryResponse & GetCategoryResponseNonNullableFields>;
7
- /**
8
- * Update a Category, supports partial update.
9
- * Pass the latest `revision` for a successful update.
10
- * Each time the category is updated, `revision` increments by 1.
11
- */
12
- export declare function updateCategory(payload: UpdateCategoryRequest): RequestOptionsFactory<UpdateCategoryResponse & UpdateCategoryResponseNonNullableFields>;
13
- /** Deletes a Category. */
14
- export declare function deleteCategory(payload: DeleteCategoryRequest): RequestOptionsFactory<DeleteCategoryResponse>;
15
- /** Search Categories using [WQL - Wix Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) */
16
- export declare function searchCategories(payload: SearchCategoriesRequest): RequestOptionsFactory<SearchCategoriesResponse & SearchCategoriesResponseNonNullableFields>;
17
- /** Returns total count of categories satisfying filter and/or search */
18
- export declare function countCategories(payload: CountCategoriesRequest): RequestOptionsFactory<CountCategoriesResponse & CountCategoriesResponseNonNullableFields>;
19
- /**
20
- * Moves a category.
21
- * This operation updates `parentCategory` (`id` and `index`) for category with `categoryId`.
22
- * This endpoint can be used to move category to different parent in the same tree or to change it's position in current parent.
23
- */
24
- export declare function moveCategory(payload: MoveCategoryRequest): RequestOptionsFactory<MoveCategoryResponse & MoveCategoryResponseNonNullableFields>;
25
- /**
26
- * Update multiple Categories, supports partial update.
27
- * Pass the latest `revision` for a successful update.
28
- * To update visibility, call the BulkUpdateCategoryVisibility endpoint.
29
- */
30
- export declare function bulkUpdateCategories(payload: BulkUpdateCategoriesRequest): RequestOptionsFactory<BulkUpdateCategoriesResponse & BulkUpdateCategoriesResponseNonNullableFields>;
31
- /** Update `visible` field. If visible is set to false, all subcategories will be set to `visible=false` */
32
- export declare function updateCategoryVisibility(payload: UpdateCategoryVisibilityRequest): RequestOptionsFactory<UpdateCategoryVisibilityResponse & UpdateCategoryVisibilityResponseNonNullableFields>;
33
- /** Adds multiple items to single category, fires as many domain events as many items successfully added. */
34
- export declare function bulkAddItemsToCategory(payload: BulkAddItemsToCategoryRequest): RequestOptionsFactory<BulkAddItemsToCategoryResponse & BulkAddItemsToCategoryResponseNonNullableFields>;
35
- /** Adds single item to multiple categories, fires as many domain events as many categories were successfully added. */
36
- export declare function bulkAddItemToCategories(payload: BulkAddItemToCategoriesRequest): RequestOptionsFactory<BulkAddItemToCategoriesResponse & BulkAddItemToCategoriesResponseNonNullableFields>;
37
- /** Removed multiple items from single category, fires as many domain events as many items successfully removed. */
38
- export declare function bulkRemoveItemsFromCategory(payload: BulkRemoveItemsFromCategoryRequest): RequestOptionsFactory<BulkRemoveItemsFromCategoryResponse & BulkRemoveItemsFromCategoryResponseNonNullableFields>;
39
- /** Removes single item from multiple categories, fires as many domain events as many categories were successfully removed. */
40
- export declare function bulkRemoveItemFromCategories(payload: BulkRemoveItemFromCategoriesRequest): RequestOptionsFactory<BulkRemoveItemFromCategoriesResponse & BulkRemoveItemFromCategoriesResponseNonNullableFields>;
41
- /**
42
- * Returns up to 100 items related to requested `category_id` sorted by time when item added to category, descending.
43
- * When items added to category in bulk they considered as added at exactly same time so order will be random but always the same.
44
- */
45
- export declare function listItemsInCategory(payload: ListItemsInCategoryRequest): RequestOptionsFactory<ListItemsInCategoryResponse & ListItemsInCategoryResponseNonNullableFields>;
46
- /** Returns all category IDs that contain the item and their parent category IDs. */
47
- export declare function listCategoriesForItem(payload: ListCategoriesForItemRequest): RequestOptionsFactory<ListCategoriesForItemResponse & ListCategoriesForItemResponseNonNullableFields>;
48
- /** Changes position of `item` in category. Will be used when sort items by manual arrangement */
49
- export declare function moveItemInCategory(payload: MoveItemInCategoryRequest): RequestOptionsFactory<MoveItemInCategoryResponse & MoveItemInCategoryResponseNonNullableFields>;
50
- /**
51
- * Set arranged items in category. Will be used when sort items by manual arrangement.
52
- * Calling this endpoint overrides existing list of arranged items in category.
53
- */
54
- export declare function setArrangedItems(payload: SetArrangedItemsRequest): RequestOptionsFactory<SetArrangedItemsResponse & SetArrangedItemsResponseNonNullableFields>;
55
- /** Returns arranged items in category */
56
- export declare function getArrangedItems(payload: GetArrangedItemsRequest): RequestOptionsFactory<GetArrangedItemsResponse & GetArrangedItemsResponseNonNullableFields>;