@wix/auto_sdk_blog_categories 1.0.13 → 1.0.15

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 (117) hide show
  1. package/build/{internal/cjs/src/blog-v3-category-categories.universal.d.ts → cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
  2. package/build/cjs/index.d.ts +119 -1
  3. package/build/cjs/index.js +935 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +461 -1
  6. package/build/cjs/meta.js +539 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{cjs/src/blog-v3-category-categories.universal.d.ts → es/blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
  9. package/build/{internal/es/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
  10. package/build/es/index.mjs +902 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/{internal/es/src/blog-v3-category-categories.types.d.ts → es/meta.d.mts} +65 -320
  13. package/build/es/meta.mjs +509 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/{es/src/blog-v3-category-categories.universal.d.ts → internal/cjs/blog-v3-category-categories.universal-CZqdXr9y.d.ts} +81 -291
  16. package/build/internal/cjs/index.d.ts +119 -1
  17. package/build/internal/cjs/index.js +935 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +461 -1
  20. package/build/internal/cjs/meta.js +539 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/internal/es/{src/blog-v3-category-categories.universal.d.ts → blog-v3-category-categories.universal-CZqdXr9y.d.mts} +81 -291
  23. package/build/internal/{cjs/src/blog-v3-category-categories.public.d.ts → es/index.d.mts} +36 -16
  24. package/build/internal/es/index.mjs +902 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/{cjs/src/blog-v3-category-categories.types.d.ts → internal/es/meta.d.mts} +65 -320
  27. package/build/internal/es/meta.mjs +509 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
  34. package/build/cjs/src/blog-v3-category-categories.context.js +0 -33
  35. package/build/cjs/src/blog-v3-category-categories.context.js.map +0 -1
  36. package/build/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
  37. package/build/cjs/src/blog-v3-category-categories.http.js +0 -408
  38. package/build/cjs/src/blog-v3-category-categories.http.js.map +0 -1
  39. package/build/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
  40. package/build/cjs/src/blog-v3-category-categories.meta.js +0 -161
  41. package/build/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
  42. package/build/cjs/src/blog-v3-category-categories.public.d.ts +0 -99
  43. package/build/cjs/src/blog-v3-category-categories.public.js +0 -112
  44. package/build/cjs/src/blog-v3-category-categories.public.js.map +0 -1
  45. package/build/cjs/src/blog-v3-category-categories.types.js +0 -25
  46. package/build/cjs/src/blog-v3-category-categories.types.js.map +0 -1
  47. package/build/cjs/src/blog-v3-category-categories.universal.js +0 -513
  48. package/build/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
  49. package/build/es/index.d.ts +0 -1
  50. package/build/es/index.js +0 -2
  51. package/build/es/index.js.map +0 -1
  52. package/build/es/index.typings.d.ts +0 -1
  53. package/build/es/index.typings.js +0 -2
  54. package/build/es/index.typings.js.map +0 -1
  55. package/build/es/meta.d.ts +0 -1
  56. package/build/es/meta.js +0 -2
  57. package/build/es/meta.js.map +0 -1
  58. package/build/es/src/blog-v3-category-categories.context.d.ts +0 -27
  59. package/build/es/src/blog-v3-category-categories.context.js +0 -27
  60. package/build/es/src/blog-v3-category-categories.context.js.map +0 -1
  61. package/build/es/src/blog-v3-category-categories.http.d.ts +0 -49
  62. package/build/es/src/blog-v3-category-categories.http.js +0 -398
  63. package/build/es/src/blog-v3-category-categories.http.js.map +0 -1
  64. package/build/es/src/blog-v3-category-categories.meta.d.ts +0 -27
  65. package/build/es/src/blog-v3-category-categories.meta.js +0 -128
  66. package/build/es/src/blog-v3-category-categories.meta.js.map +0 -1
  67. package/build/es/src/blog-v3-category-categories.public.d.ts +0 -99
  68. package/build/es/src/blog-v3-category-categories.public.js +0 -99
  69. package/build/es/src/blog-v3-category-categories.public.js.map +0 -1
  70. package/build/es/src/blog-v3-category-categories.types.d.ts +0 -716
  71. package/build/es/src/blog-v3-category-categories.types.js +0 -22
  72. package/build/es/src/blog-v3-category-categories.types.js.map +0 -1
  73. package/build/es/src/blog-v3-category-categories.universal.js +0 -480
  74. package/build/es/src/blog-v3-category-categories.universal.js.map +0 -1
  75. package/build/internal/cjs/index.typings.d.ts +0 -1
  76. package/build/internal/cjs/index.typings.js +0 -18
  77. package/build/internal/cjs/index.typings.js.map +0 -1
  78. package/build/internal/cjs/src/blog-v3-category-categories.context.d.ts +0 -27
  79. package/build/internal/cjs/src/blog-v3-category-categories.context.js +0 -33
  80. package/build/internal/cjs/src/blog-v3-category-categories.context.js.map +0 -1
  81. package/build/internal/cjs/src/blog-v3-category-categories.http.d.ts +0 -49
  82. package/build/internal/cjs/src/blog-v3-category-categories.http.js +0 -408
  83. package/build/internal/cjs/src/blog-v3-category-categories.http.js.map +0 -1
  84. package/build/internal/cjs/src/blog-v3-category-categories.meta.d.ts +0 -27
  85. package/build/internal/cjs/src/blog-v3-category-categories.meta.js +0 -161
  86. package/build/internal/cjs/src/blog-v3-category-categories.meta.js.map +0 -1
  87. package/build/internal/cjs/src/blog-v3-category-categories.public.js +0 -112
  88. package/build/internal/cjs/src/blog-v3-category-categories.public.js.map +0 -1
  89. package/build/internal/cjs/src/blog-v3-category-categories.types.d.ts +0 -716
  90. package/build/internal/cjs/src/blog-v3-category-categories.types.js +0 -25
  91. package/build/internal/cjs/src/blog-v3-category-categories.types.js.map +0 -1
  92. package/build/internal/cjs/src/blog-v3-category-categories.universal.js +0 -513
  93. package/build/internal/cjs/src/blog-v3-category-categories.universal.js.map +0 -1
  94. package/build/internal/es/index.d.ts +0 -1
  95. package/build/internal/es/index.js +0 -2
  96. package/build/internal/es/index.js.map +0 -1
  97. package/build/internal/es/index.typings.d.ts +0 -1
  98. package/build/internal/es/index.typings.js +0 -2
  99. package/build/internal/es/index.typings.js.map +0 -1
  100. package/build/internal/es/meta.d.ts +0 -1
  101. package/build/internal/es/meta.js +0 -2
  102. package/build/internal/es/meta.js.map +0 -1
  103. package/build/internal/es/src/blog-v3-category-categories.context.d.ts +0 -27
  104. package/build/internal/es/src/blog-v3-category-categories.context.js +0 -27
  105. package/build/internal/es/src/blog-v3-category-categories.context.js.map +0 -1
  106. package/build/internal/es/src/blog-v3-category-categories.http.d.ts +0 -49
  107. package/build/internal/es/src/blog-v3-category-categories.http.js +0 -398
  108. package/build/internal/es/src/blog-v3-category-categories.http.js.map +0 -1
  109. package/build/internal/es/src/blog-v3-category-categories.meta.d.ts +0 -27
  110. package/build/internal/es/src/blog-v3-category-categories.meta.js +0 -128
  111. package/build/internal/es/src/blog-v3-category-categories.meta.js.map +0 -1
  112. package/build/internal/es/src/blog-v3-category-categories.public.js +0 -99
  113. package/build/internal/es/src/blog-v3-category-categories.public.js.map +0 -1
  114. package/build/internal/es/src/blog-v3-category-categories.types.js +0 -22
  115. package/build/internal/es/src/blog-v3-category-categories.types.js.map +0 -1
  116. package/build/internal/es/src/blog-v3-category-categories.universal.js +0 -480
  117. package/build/internal/es/src/blog-v3-category-categories.universal.js.map +0 -1
@@ -1,22 +0,0 @@
1
- export var Field;
2
- (function (Field) {
3
- Field["UNKNOWN"] = "UNKNOWN";
4
- /** Includes category URL. */
5
- Field["URL"] = "URL";
6
- /** Includes SEO data. */
7
- Field["SEO"] = "SEO";
8
- })(Field || (Field = {}));
9
- export var SortOrder;
10
- (function (SortOrder) {
11
- SortOrder["ASC"] = "ASC";
12
- SortOrder["DESC"] = "DESC";
13
- })(SortOrder || (SortOrder = {}));
14
- export var WebhookIdentityType;
15
- (function (WebhookIdentityType) {
16
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
17
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
18
- WebhookIdentityType["MEMBER"] = "MEMBER";
19
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
20
- WebhookIdentityType["APP"] = "APP";
21
- })(WebhookIdentityType || (WebhookIdentityType = {}));
22
- //# sourceMappingURL=blog-v3-category-categories.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blog-v3-category-categories.types.js","sourceRoot":"","sources":["../../../src/blog-v3-category-categories.types.ts"],"names":[],"mappings":"AAoNA,MAAM,CAAN,IAAY,KAMX;AAND,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EANW,KAAK,KAAL,KAAK,QAMhB;AA6TD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAmOD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -1,480 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
- import * as ambassadorWixBlogV3Category from './blog-v3-category-categories.http.js';
5
- // @ts-ignore
6
- import { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';
7
- import { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';
8
- import { transformSDKPageURLToRESTPageURL } from '@wix/sdk-runtime/transformations/page-url';
9
- import { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';
10
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
11
- export var Field;
12
- (function (Field) {
13
- Field["UNKNOWN"] = "UNKNOWN";
14
- /** Includes category URL. */
15
- Field["URL"] = "URL";
16
- /** Includes SEO data. */
17
- Field["SEO"] = "SEO";
18
- })(Field || (Field = {}));
19
- export var SortOrder;
20
- (function (SortOrder) {
21
- SortOrder["ASC"] = "ASC";
22
- SortOrder["DESC"] = "DESC";
23
- })(SortOrder || (SortOrder = {}));
24
- export var WebhookIdentityType;
25
- (function (WebhookIdentityType) {
26
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
27
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
28
- WebhookIdentityType["MEMBER"] = "MEMBER";
29
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
30
- WebhookIdentityType["APP"] = "APP";
31
- })(WebhookIdentityType || (WebhookIdentityType = {}));
32
- /**
33
- * Creates a category.
34
- * @param category - Category info.
35
- * @public
36
- * @requiredField category
37
- * @requiredField category.label
38
- * @permissionId BLOG.CREATE-CATEGORY
39
- * @permissionScope Manage Blog
40
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
41
- * @permissionScope Manage Blog
42
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
43
- * @applicableIdentity APP
44
- * @returns Category info.
45
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.CreateCategory
46
- */
47
- export async function createCategory(category, options) {
48
- // @ts-ignore
49
- const { httpClient, sideEffects } = arguments[2];
50
- const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
51
- category: category,
52
- fieldsets: options?.fieldsets,
53
- }), [
54
- {
55
- transformFn: transformSDKPageURLToRESTPageURL,
56
- paths: [
57
- { path: 'category.url' },
58
- { path: 'category.translations.url' },
59
- ],
60
- },
61
- {
62
- transformFn: transformSDKImageToRESTImage,
63
- paths: [{ path: 'category.coverImage' }],
64
- },
65
- ]);
66
- const reqOpts = ambassadorWixBlogV3Category.createCategory(payload);
67
- sideEffects?.onSiteCall?.();
68
- try {
69
- const result = await httpClient.request(reqOpts);
70
- sideEffects?.onSuccess?.(result);
71
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
72
- {
73
- transformFn: transformRESTPageURLToSDKPageURL,
74
- paths: [
75
- { path: 'category.url' },
76
- { path: 'category.translations.url' },
77
- ],
78
- },
79
- {
80
- transformFn: transformRESTImageToSDKImage,
81
- paths: [{ path: 'category.coverImage' }],
82
- },
83
- ]))?.category;
84
- }
85
- catch (err) {
86
- const transformedError = sdkTransformError(err, {
87
- spreadPathsToArguments: {},
88
- explicitPathsToArguments: {
89
- category: '$[0]',
90
- fieldsets: '$[1].fieldsets',
91
- },
92
- singleArgumentUnchanged: false,
93
- }, ['category', 'options']);
94
- sideEffects?.onError?.(err);
95
- throw transformedError;
96
- }
97
- }
98
- /**
99
- * Updates a category.
100
- * @param _id - Category ID.
101
- * @public
102
- * @requiredField _id
103
- * @requiredField category
104
- * @permissionId BLOG.EDIT-CATEGORY
105
- * @permissionScope Manage Blog
106
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
107
- * @permissionScope Manage Blog
108
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
109
- * @applicableIdentity APP
110
- * @returns Category info.
111
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.UpdateCategory
112
- */
113
- export async function updateCategory(_id, category, options) {
114
- // @ts-ignore
115
- const { httpClient, sideEffects } = arguments[3];
116
- const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
117
- category: { ...category, id: _id },
118
- fieldsets: options?.fieldsets,
119
- }), [
120
- {
121
- transformFn: transformSDKPageURLToRESTPageURL,
122
- paths: [
123
- { path: 'category.url' },
124
- { path: 'category.translations.url' },
125
- ],
126
- },
127
- {
128
- transformFn: transformSDKImageToRESTImage,
129
- paths: [{ path: 'category.coverImage' }],
130
- },
131
- ]);
132
- const reqOpts = ambassadorWixBlogV3Category.updateCategory(payload);
133
- sideEffects?.onSiteCall?.();
134
- try {
135
- const result = await httpClient.request(reqOpts);
136
- sideEffects?.onSuccess?.(result);
137
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
138
- {
139
- transformFn: transformRESTPageURLToSDKPageURL,
140
- paths: [
141
- { path: 'category.url' },
142
- { path: 'category.translations.url' },
143
- ],
144
- },
145
- {
146
- transformFn: transformRESTImageToSDKImage,
147
- paths: [{ path: 'category.coverImage' }],
148
- },
149
- ]))?.category;
150
- }
151
- catch (err) {
152
- const transformedError = sdkTransformError(err, {
153
- spreadPathsToArguments: { category: '$[1]' },
154
- explicitPathsToArguments: {
155
- 'category.id': '$[0]',
156
- fieldsets: '$[2].fieldsets',
157
- },
158
- singleArgumentUnchanged: false,
159
- }, ['_id', 'category', 'options']);
160
- sideEffects?.onError?.(err);
161
- throw transformedError;
162
- }
163
- }
164
- /**
165
- * Gets a category with the specified ID.
166
- * @param categoryId - Category ID.
167
- * @public
168
- * @requiredField categoryId
169
- * @param options - Options specifying which fields to return.
170
- * @permissionId BLOG.READ-CATEGORY
171
- * @permissionScope Read Blog
172
- * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
173
- * @permissionScope Manage Blog
174
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
175
- * @permissionScope Manage Blog
176
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
177
- * @permissionScope Read Draft Blog Posts
178
- * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
179
- * @applicableIdentity APP
180
- * @applicableIdentity VISITOR
181
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategory
182
- */
183
- export async function getCategory(categoryId, options) {
184
- // @ts-ignore
185
- const { httpClient, sideEffects } = arguments[2];
186
- const payload = renameKeysFromSDKRequestToRESTRequest({
187
- categoryId: categoryId,
188
- fieldsets: options?.fieldsets,
189
- });
190
- const reqOpts = ambassadorWixBlogV3Category.getCategory(payload);
191
- sideEffects?.onSiteCall?.();
192
- try {
193
- const result = await httpClient.request(reqOpts);
194
- sideEffects?.onSuccess?.(result);
195
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
196
- {
197
- transformFn: transformRESTPageURLToSDKPageURL,
198
- paths: [
199
- { path: 'category.url' },
200
- { path: 'category.translations.url' },
201
- ],
202
- },
203
- {
204
- transformFn: transformRESTImageToSDKImage,
205
- paths: [{ path: 'category.coverImage' }],
206
- },
207
- ]));
208
- }
209
- catch (err) {
210
- const transformedError = sdkTransformError(err, {
211
- spreadPathsToArguments: {},
212
- explicitPathsToArguments: {
213
- categoryId: '$[0]',
214
- fieldsets: '$[1].fieldsets',
215
- },
216
- singleArgumentUnchanged: false,
217
- }, ['categoryId', 'options']);
218
- sideEffects?.onError?.(err);
219
- throw transformedError;
220
- }
221
- }
222
- /**
223
- * Gets a category with the specified slug.
224
- *
225
- * The slug is at the end of the URL of a specific category.
226
- * For example, if a category's URL is `https://example.com/blog/categories/famous-cats`, the slug is `famous-cats`.
227
- * The slug is a case-sensitive string that is derived from the category's label, unless specified otherwise.
228
- * @public
229
- * @requiredField slug
230
- * @param slug - Slug of the category to retrieve.
231
- *
232
- * The end of a category's URL. For example, `'https:/example.com/blog/category/{my-category-slug}'`. Case sensitive and generally based on the category `label` if not specified.
233
- * @param options - Options specifying which fields to return.
234
- * @permissionId BLOG.READ-CATEGORY
235
- * @permissionScope Read Blog
236
- * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
237
- * @permissionScope Manage Blog
238
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
239
- * @permissionScope Manage Blog
240
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
241
- * @permissionScope Read Draft Blog Posts
242
- * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
243
- * @applicableIdentity APP
244
- * @applicableIdentity VISITOR
245
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.GetCategoryBySlug
246
- */
247
- export async function getCategoryBySlug(slug, options) {
248
- // @ts-ignore
249
- const { httpClient, sideEffects } = arguments[2];
250
- const payload = renameKeysFromSDKRequestToRESTRequest({
251
- slug: slug,
252
- fieldsets: options?.fieldsets,
253
- language: options?.language,
254
- });
255
- const reqOpts = ambassadorWixBlogV3Category.getCategoryBySlug(payload);
256
- sideEffects?.onSiteCall?.();
257
- try {
258
- const result = await httpClient.request(reqOpts);
259
- sideEffects?.onSuccess?.(result);
260
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
261
- {
262
- transformFn: transformRESTPageURLToSDKPageURL,
263
- paths: [
264
- { path: 'category.url' },
265
- { path: 'category.translations.url' },
266
- ],
267
- },
268
- {
269
- transformFn: transformRESTImageToSDKImage,
270
- paths: [{ path: 'category.coverImage' }],
271
- },
272
- ]));
273
- }
274
- catch (err) {
275
- const transformedError = sdkTransformError(err, {
276
- spreadPathsToArguments: {},
277
- explicitPathsToArguments: {
278
- slug: '$[0]',
279
- fieldsets: '$[1].fieldsets',
280
- language: '$[1].language',
281
- },
282
- singleArgumentUnchanged: false,
283
- }, ['slug', 'options']);
284
- sideEffects?.onError?.(err);
285
- throw transformedError;
286
- }
287
- }
288
- /**
289
- * Retrieves a list of up to 100 categories per request.
290
- *
291
- * If you pass a language filter to the method, it returns a list of up to 100 categories in the requested language.
292
- *
293
- * The categoies are displayed in order of their `displayPosition`, starting with `0`. The `displayPosition` is the position in which the categories
294
- * are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu page with a `displayPosition` of `-1`.
295
- *
296
- * List Categories runs with these defaults, which you can override:
297
- * - `paging.limit` is `50`.
298
- * - `paging.offset` is `0`.
299
- *
300
- * List Categories is sorted by `displayPosition` in descending order. This cannot be overridden.
301
- * @public
302
- * @param options - Filter and paging options.
303
- * @permissionId BLOG.READ-CATEGORY
304
- * @permissionScope Read Blog
305
- * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
306
- * @permissionScope Manage Blog
307
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
308
- * @permissionScope Manage Blog
309
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
310
- * @permissionScope Read Draft Blog Posts
311
- * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
312
- * @applicableIdentity APP
313
- * @applicableIdentity VISITOR
314
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.ListCategories
315
- */
316
- export async function listCategories(options) {
317
- // @ts-ignore
318
- const { httpClient, sideEffects } = arguments[1];
319
- const payload = renameKeysFromSDKRequestToRESTRequest({
320
- paging: options?.paging,
321
- fieldsets: options?.fieldsets,
322
- language: options?.language,
323
- });
324
- const reqOpts = ambassadorWixBlogV3Category.listCategories(payload);
325
- sideEffects?.onSiteCall?.();
326
- try {
327
- const result = await httpClient.request(reqOpts);
328
- sideEffects?.onSuccess?.(result);
329
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
330
- {
331
- transformFn: transformRESTPageURLToSDKPageURL,
332
- paths: [
333
- { path: 'categories.url' },
334
- { path: 'categories.translations.url' },
335
- ],
336
- },
337
- {
338
- transformFn: transformRESTImageToSDKImage,
339
- paths: [{ path: 'categories.coverImage' }],
340
- },
341
- ]));
342
- }
343
- catch (err) {
344
- const transformedError = sdkTransformError(err, {
345
- spreadPathsToArguments: {},
346
- explicitPathsToArguments: {
347
- paging: '$[0].paging',
348
- fieldsets: '$[0].fieldsets',
349
- language: '$[0].language',
350
- },
351
- singleArgumentUnchanged: false,
352
- }, ['options']);
353
- sideEffects?.onError?.(err);
354
- throw transformedError;
355
- }
356
- }
357
- /**
358
- * Creates a query to retrieve a list of categories.
359
- *
360
- *
361
- * The Query Categories method builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending) object.
362
- *
363
- * The response contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/find) method.
364
- *
365
- * You can refine the query by chaining `CategoriesQueryBuilder` methods to the query. `CategoriesQueryBuilder` methods enable you to sort, filter, and control the results that Query Categories returns. Any methods chained to the Query Categories method are applied in the order that they are called.
366
- *
367
- * Query Categories runs with these `CategoriesQueryBuilder` defaults, which you can override.
368
- * - [`limit(100)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/limit)
369
- * - [`ascending(displayPosition)`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-builder/ascending)
370
- *
371
- * The following `CategoriesQueryBuilder` methods are supported for Query Categories. For a full description of the `Categories` object, see the response for the [`items`](https://dev.wix.com/docs/sdk/backend-modules/blog/categories/categories-query-result/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
372
- * @public
373
- * @param options - Options specifying which fields to return.
374
- * @permissionScope Read Blog
375
- * @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
376
- * @permissionScope Manage Blog
377
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
378
- * @permissionScope Manage Blog
379
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
380
- * @permissionScope Read Draft Blog Posts
381
- * @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
382
- * @permissionId BLOG.READ-CATEGORY
383
- * @applicableIdentity APP
384
- * @applicableIdentity VISITOR
385
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.QueryCategories
386
- */
387
- export function queryCategories(options) {
388
- // @ts-ignore
389
- const { httpClient, sideEffects } = arguments[1];
390
- return queryBuilder({
391
- func: async (payload) => {
392
- const reqOpts = ambassadorWixBlogV3Category.queryCategories({
393
- ...payload,
394
- ...(options ?? {}),
395
- });
396
- sideEffects?.onSiteCall?.();
397
- try {
398
- const result = await httpClient.request(reqOpts);
399
- sideEffects?.onSuccess?.(result);
400
- return result;
401
- }
402
- catch (err) {
403
- sideEffects?.onError?.(err);
404
- throw err;
405
- }
406
- },
407
- requestTransformer: (query) => {
408
- const args = [query, options];
409
- return renameKeysFromSDKRequestToRESTRequest({
410
- ...args?.[1],
411
- query: args?.[0],
412
- });
413
- },
414
- responseTransformer: ({ data }) => {
415
- const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
416
- {
417
- transformFn: transformRESTPageURLToSDKPageURL,
418
- paths: [
419
- { path: 'categories.url' },
420
- { path: 'categories.translations.url' },
421
- ],
422
- },
423
- {
424
- transformFn: transformRESTImageToSDKImage,
425
- paths: [{ path: 'categories.coverImage' }],
426
- },
427
- ]));
428
- return {
429
- items: transformedData?.categories,
430
- pagingMetadata: transformedData?.pagingMetadata,
431
- };
432
- },
433
- errorTransformer: (err) => {
434
- const transformedError = sdkTransformError(err, {
435
- spreadPathsToArguments: {},
436
- explicitPathsToArguments: { query: '$[0]' },
437
- singleArgumentUnchanged: false,
438
- });
439
- throw transformedError;
440
- },
441
- pagingMethod: 'OFFSET',
442
- transformationPaths: {},
443
- });
444
- }
445
- /**
446
- * Deletes a category.
447
- * @param categoryId - Category ID.
448
- * @public
449
- * @requiredField categoryId
450
- * @permissionId BLOG.DELETE-CATEGORY
451
- * @permissionScope Manage Blog
452
- * @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
453
- * @permissionScope Manage Blog
454
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
455
- * @applicableIdentity APP
456
- * @fqn com.wixpress.npm.communities.platformized.blog.v3.CategoryService.DeleteCategory
457
- */
458
- export async function deleteCategory(categoryId) {
459
- // @ts-ignore
460
- const { httpClient, sideEffects } = arguments[1];
461
- const payload = renameKeysFromSDKRequestToRESTRequest({
462
- categoryId: categoryId,
463
- });
464
- const reqOpts = ambassadorWixBlogV3Category.deleteCategory(payload);
465
- sideEffects?.onSiteCall?.();
466
- try {
467
- const result = await httpClient.request(reqOpts);
468
- sideEffects?.onSuccess?.(result);
469
- }
470
- catch (err) {
471
- const transformedError = sdkTransformError(err, {
472
- spreadPathsToArguments: {},
473
- explicitPathsToArguments: { categoryId: '$[0]' },
474
- singleArgumentUnchanged: false,
475
- }, ['categoryId']);
476
- sideEffects?.onError?.(err);
477
- throw transformedError;
478
- }
479
- }
480
- //# sourceMappingURL=blog-v3-category-categories.universal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blog-v3-category-categories.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category-categories.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,2BAA2B,MAAM,uCAAuC,CAAC;AACrF,aAAa;AACb,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAuLlF,MAAM,CAAN,IAAY,KAMX;AAND,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX,yBAAyB;IACzB,oBAAW,CAAA;AACb,CAAC,EANW,KAAK,KAAL,KAAK,QAMhB;AA8TD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0B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,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;YAChD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,YAAY,CAAC,CACf,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -1 +0,0 @@
1
- export * from './src/blog-v3-category-categories.universal.js';
@@ -1,18 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/blog-v3-category-categories.universal.js"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iFAA+D"}
@@ -1,27 +0,0 @@
1
- import { createCategory as publicCreateCategory, updateCategory as publicUpdateCategory, getCategory as publicGetCategory, getCategoryBySlug as publicGetCategoryBySlug, listCategories as publicListCategories, queryCategories as publicQueryCategories, deleteCategory as publicDeleteCategory } from './blog-v3-category-categories.public.js';
2
- import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
- import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
- import { onCategoryCreated as publicOnCategoryCreated } from './blog-v3-category-categories.public.js';
5
- import { onCategoryDeleted as publicOnCategoryDeleted } from './blog-v3-category-categories.public.js';
6
- import { onCategoryUpdated as publicOnCategoryUpdated } from './blog-v3-category-categories.public.js';
7
- export declare const createCategory: MaybeContext<BuildRESTFunction<typeof publicCreateCategory> & typeof publicCreateCategory>;
8
- export declare const updateCategory: MaybeContext<BuildRESTFunction<typeof publicUpdateCategory> & typeof publicUpdateCategory>;
9
- export declare const getCategory: MaybeContext<BuildRESTFunction<typeof publicGetCategory> & typeof publicGetCategory>;
10
- export declare const getCategoryBySlug: MaybeContext<BuildRESTFunction<typeof publicGetCategoryBySlug> & typeof publicGetCategoryBySlug>;
11
- export declare const listCategories: MaybeContext<BuildRESTFunction<typeof publicListCategories> & typeof publicListCategories>;
12
- export declare const queryCategories: MaybeContext<BuildRESTFunction<typeof publicQueryCategories> & typeof publicQueryCategories>;
13
- export declare const deleteCategory: MaybeContext<BuildRESTFunction<typeof publicDeleteCategory> & typeof publicDeleteCategory>;
14
- /**
15
- * Triggered when a category is created.
16
- */
17
- export declare const onCategoryCreated: ReturnType<typeof createEventModule<typeof publicOnCategoryCreated>>;
18
- /**
19
- * Triggered when a category is deleted.
20
- */
21
- export declare const onCategoryDeleted: ReturnType<typeof createEventModule<typeof publicOnCategoryDeleted>>;
22
- /**
23
- * Triggered when a category is updated.
24
- */
25
- export declare const onCategoryUpdated: ReturnType<typeof createEventModule<typeof publicOnCategoryUpdated>>;
26
- export { Field, SortOrder, WebhookIdentityType, } from './blog-v3-category-categories.universal.js';
27
- export { Category, SeoSchema, Keyword, Tag, Settings, FocalPoint, CategoryTranslation, InitialCategoriesCopied, CreateCategoryRequest, CreateCategoryResponse, BulkCreateCategoriesRequest, BulkCreateCategoriesResponse, BulkCategoryResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkUpdateCategoriesRequest, MaskedCategory, BulkUpdateCategoriesResponse, UpdateCategoryRequest, UpdateCategoryResponse, GetCategoriesCountByLanguageRequest, GetCategoriesCountByLanguageResponse, CategoryLanguageCount, GetCategoryRequest, GetCategoryResponse, GetCategoryBySlugRequest, GetCategoryBySlugResponse, ListCategoriesRequest, BlogPaging, ListCategoriesResponse, MetaData, QueryCategoriesRequest, PlatformQuery, PlatformQueryPagingMethodOneOf, Sorting, Paging, CursorPaging, QueryCategoriesResponse, PagingMetadataV2, Cursors, BulkDeleteCategoryRequest, BulkDeleteCategoryResponse, DeleteCategoryRequest, DeleteCategoryResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, CategoryCreatedEnvelope, CategoryDeletedEnvelope, CategoryUpdatedEnvelope, CreateCategoryOptions, UpdateCategory, UpdateCategoryOptions, GetCategoryOptions, GetCategoryBySlugOptions, ListCategoriesOptions, QueryCategoriesOptions, CategoriesQueryResult, CategoriesQueryBuilder, } from './blog-v3-category-categories.universal.js';
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WebhookIdentityType = exports.SortOrder = exports.Field = exports.onCategoryUpdated = exports.onCategoryDeleted = exports.onCategoryCreated = exports.deleteCategory = exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.updateCategory = exports.createCategory = void 0;
4
- const blog_v3_category_categories_public_js_1 = require("./blog-v3-category-categories.public.js");
5
- const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
- const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
7
- const blog_v3_category_categories_public_js_2 = require("./blog-v3-category-categories.public.js");
8
- const blog_v3_category_categories_public_js_3 = require("./blog-v3-category-categories.public.js");
9
- const blog_v3_category_categories_public_js_4 = require("./blog-v3-category-categories.public.js");
10
- exports.createCategory = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.createCategory);
11
- exports.updateCategory = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.updateCategory);
12
- exports.getCategory = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.getCategory);
13
- exports.getCategoryBySlug = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.getCategoryBySlug);
14
- exports.listCategories = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.listCategories);
15
- exports.queryCategories = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.queryCategories);
16
- exports.deleteCategory = (0, rest_modules_1.createRESTModule)(blog_v3_category_categories_public_js_1.deleteCategory);
17
- /**
18
- * Triggered when a category is created.
19
- */
20
- exports.onCategoryCreated = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_js_2.onCategoryCreated);
21
- /**
22
- * Triggered when a category is deleted.
23
- */
24
- exports.onCategoryDeleted = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_js_3.onCategoryDeleted);
25
- /**
26
- * Triggered when a category is updated.
27
- */
28
- exports.onCategoryUpdated = (0, event_definition_modules_1.createEventModule)(blog_v3_category_categories_public_js_4.onCategoryUpdated);
29
- var blog_v3_category_categories_universal_js_1 = require("./blog-v3-category-categories.universal.js");
30
- Object.defineProperty(exports, "Field", { enumerable: true, get: function () { return blog_v3_category_categories_universal_js_1.Field; } });
31
- Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return blog_v3_category_categories_universal_js_1.SortOrder; } });
32
- Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return blog_v3_category_categories_universal_js_1.WebhookIdentityType; } });
33
- //# sourceMappingURL=blog-v3-category-categories.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blog-v3-category-categories.context.js","sourceRoot":"","sources":["../../../../src/blog-v3-category-categories.context.ts"],"names":[],"mappings":";;;AAAA,mGAQiD;AACjD,gEAAiE;AACjE,wFAA8E;AAE9E,mGAAuG;AACvG,mGAAuG;AACvG,mGAAuG;AAE1F,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,sDAAoB,CAAC,CAAC;AAC5C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,sDAAoB,CAAC,CAAC;AAC5C,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,mDAAiB,CAAC,CAAC;AACzC,QAAA,iBAAiB,GAGZ,IAAA,+BAAgB,EAAC,yDAAuB,CAAC,CAAC;AAC/C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,sDAAoB,CAAC,CAAC;AAC5C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,uDAAqB,CAAC,CAAC;AAC7C,QAAA,cAAc,GAET,IAAA,+BAAgB,EAAC,sDAAoB,CAAC,CAAC;AACzD;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,yDAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,yDAAuB,CAAC,CAAC;AAC/C;;GAEG;AACU,QAAA,iBAAiB,GAE1B,IAAA,4CAAiB,EAAC,yDAAuB,CAAC,CAAC;AAE/C,uGAIoD;AAHlD,iIAAA,KAAK,OAAA;AACL,qIAAA,SAAS,OAAA;AACT,+IAAA,mBAAmB,OAAA"}