@wix/blog 1.0.238 → 1.0.240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/context.d.ts +4 -4
- package/build/cjs/context.js +4 -4
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +4 -4
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -4
- package/build/cjs/meta.js +4 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +4 -4
- package/build/es/context.js +4 -4
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +4 -4
- package/build/es/index.js +4 -4
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +4 -4
- package/build/es/meta.js +4 -4
- package/build/es/meta.js.map +1 -1
- package/package.json +14 -9
- package/build/cjs/index.typings.d.ts +0 -4
- package/build/cjs/index.typings.js +0 -31
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/blog-v3-category.context.d.ts +0 -6
- package/build/cjs/src/blog-v3-category.context.js +0 -53
- package/build/cjs/src/blog-v3-category.context.js.map +0 -1
- package/build/cjs/src/blog-v3-category.http.d.ts +0 -43
- package/build/cjs/src/blog-v3-category.http.js +0 -355
- package/build/cjs/src/blog-v3-category.http.js.map +0 -1
- package/build/cjs/src/blog-v3-category.meta.d.ts +0 -20
- package/build/cjs/src/blog-v3-category.meta.js +0 -104
- package/build/cjs/src/blog-v3-category.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-category.public.d.ts +0 -43
- package/build/cjs/src/blog-v3-category.public.js +0 -37
- package/build/cjs/src/blog-v3-category.public.js.map +0 -1
- package/build/cjs/src/blog-v3-category.types.d.ts +0 -910
- package/build/cjs/src/blog-v3-category.types.js +0 -24
- package/build/cjs/src/blog-v3-category.types.js.map +0 -1
- package/build/cjs/src/blog-v3-category.universal.d.ts +0 -956
- package/build/cjs/src/blog-v3-category.universal.js +0 -383
- package/build/cjs/src/blog-v3-category.universal.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.context.d.ts +0 -16
- package/build/cjs/src/blog-v3-draft.context.js +0 -173
- package/build/cjs/src/blog-v3-draft.context.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.http.d.ts +0 -79
- package/build/cjs/src/blog-v3-draft.http.js +0 -1498
- package/build/cjs/src/blog-v3-draft.http.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.meta.d.ts +0 -40
- package/build/cjs/src/blog-v3-draft.meta.js +0 -294
- package/build/cjs/src/blog-v3-draft.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.public.d.ts +0 -22
- package/build/cjs/src/blog-v3-draft.public.js +0 -133
- package/build/cjs/src/blog-v3-draft.public.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.types.d.ts +0 -9171
- package/build/cjs/src/blog-v3-draft.types.js +0 -456
- package/build/cjs/src/blog-v3-draft.types.js.map +0 -1
- package/build/cjs/src/blog-v3-draft.universal.d.ts +0 -8816
- package/build/cjs/src/blog-v3-draft.universal.js +0 -1585
- package/build/cjs/src/blog-v3-draft.universal.js.map +0 -1
- package/build/cjs/src/blog-v3-post.context.d.ts +0 -9
- package/build/cjs/src/blog-v3-post.context.js +0 -89
- package/build/cjs/src/blog-v3-post.context.js.map +0 -1
- package/build/cjs/src/blog-v3-post.http.d.ts +0 -80
- package/build/cjs/src/blog-v3-post.http.js +0 -893
- package/build/cjs/src/blog-v3-post.http.js.map +0 -1
- package/build/cjs/src/blog-v3-post.meta.d.ts +0 -25
- package/build/cjs/src/blog-v3-post.meta.js +0 -161
- package/build/cjs/src/blog-v3-post.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-post.public.d.ts +0 -548
- package/build/cjs/src/blog-v3-post.public.js +0 -94
- package/build/cjs/src/blog-v3-post.public.js.map +0 -1
- package/build/cjs/src/blog-v3-post.types.d.ts +0 -5238
- package/build/cjs/src/blog-v3-post.types.js +0 -478
- package/build/cjs/src/blog-v3-post.types.js.map +0 -1
- package/build/cjs/src/blog-v3-post.universal.d.ts +0 -5216
- package/build/cjs/src/blog-v3-post.universal.js +0 -1112
- package/build/cjs/src/blog-v3-post.universal.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.context.d.ts +0 -6
- package/build/cjs/src/blog-v3-tag.context.js +0 -53
- package/build/cjs/src/blog-v3-tag.context.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.http.d.ts +0 -40
- package/build/cjs/src/blog-v3-tag.http.js +0 -348
- package/build/cjs/src/blog-v3-tag.http.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.meta.d.ts +0 -22
- package/build/cjs/src/blog-v3-tag.meta.js +0 -104
- package/build/cjs/src/blog-v3-tag.meta.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.public.d.ts +0 -20
- package/build/cjs/src/blog-v3-tag.public.js +0 -37
- package/build/cjs/src/blog-v3-tag.public.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.types.d.ts +0 -675
- package/build/cjs/src/blog-v3-tag.types.js +0 -17
- package/build/cjs/src/blog-v3-tag.types.js.map +0 -1
- package/build/cjs/src/blog-v3-tag.universal.d.ts +0 -819
- package/build/cjs/src/blog-v3-tag.universal.js +0 -364
- package/build/cjs/src/blog-v3-tag.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -4
- package/build/es/index.typings.js +0 -5
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/blog-v3-category.context.d.ts +0 -6
- package/build/es/src/blog-v3-category.context.js +0 -46
- package/build/es/src/blog-v3-category.context.js.map +0 -1
- package/build/es/src/blog-v3-category.http.d.ts +0 -43
- package/build/es/src/blog-v3-category.http.js +0 -348
- package/build/es/src/blog-v3-category.http.js.map +0 -1
- package/build/es/src/blog-v3-category.meta.d.ts +0 -20
- package/build/es/src/blog-v3-category.meta.js +0 -74
- package/build/es/src/blog-v3-category.meta.js.map +0 -1
- package/build/es/src/blog-v3-category.public.d.ts +0 -43
- package/build/es/src/blog-v3-category.public.js +0 -25
- package/build/es/src/blog-v3-category.public.js.map +0 -1
- package/build/es/src/blog-v3-category.types.d.ts +0 -910
- package/build/es/src/blog-v3-category.types.js +0 -21
- package/build/es/src/blog-v3-category.types.js.map +0 -1
- package/build/es/src/blog-v3-category.universal.d.ts +0 -956
- package/build/es/src/blog-v3-category.universal.js +0 -353
- package/build/es/src/blog-v3-category.universal.js.map +0 -1
- package/build/es/src/blog-v3-draft.context.d.ts +0 -16
- package/build/es/src/blog-v3-draft.context.js +0 -156
- package/build/es/src/blog-v3-draft.context.js.map +0 -1
- package/build/es/src/blog-v3-draft.http.d.ts +0 -79
- package/build/es/src/blog-v3-draft.http.js +0 -1481
- package/build/es/src/blog-v3-draft.http.js.map +0 -1
- package/build/es/src/blog-v3-draft.meta.d.ts +0 -40
- package/build/es/src/blog-v3-draft.meta.js +0 -254
- package/build/es/src/blog-v3-draft.meta.js.map +0 -1
- package/build/es/src/blog-v3-draft.public.d.ts +0 -22
- package/build/es/src/blog-v3-draft.public.js +0 -75
- package/build/es/src/blog-v3-draft.public.js.map +0 -1
- package/build/es/src/blog-v3-draft.types.d.ts +0 -9171
- package/build/es/src/blog-v3-draft.types.js +0 -453
- package/build/es/src/blog-v3-draft.types.js.map +0 -1
- package/build/es/src/blog-v3-draft.universal.d.ts +0 -8816
- package/build/es/src/blog-v3-draft.universal.js +0 -1544
- package/build/es/src/blog-v3-draft.universal.js.map +0 -1
- package/build/es/src/blog-v3-post.context.d.ts +0 -9
- package/build/es/src/blog-v3-post.context.js +0 -79
- package/build/es/src/blog-v3-post.context.js.map +0 -1
- package/build/es/src/blog-v3-post.http.d.ts +0 -80
- package/build/es/src/blog-v3-post.http.js +0 -883
- package/build/es/src/blog-v3-post.http.js.map +0 -1
- package/build/es/src/blog-v3-post.meta.d.ts +0 -25
- package/build/es/src/blog-v3-post.meta.js +0 -128
- package/build/es/src/blog-v3-post.meta.js.map +0 -1
- package/build/es/src/blog-v3-post.public.d.ts +0 -548
- package/build/es/src/blog-v3-post.public.js +0 -40
- package/build/es/src/blog-v3-post.public.js.map +0 -1
- package/build/es/src/blog-v3-post.types.d.ts +0 -5238
- package/build/es/src/blog-v3-post.types.js +0 -475
- package/build/es/src/blog-v3-post.types.js.map +0 -1
- package/build/es/src/blog-v3-post.universal.d.ts +0 -5216
- package/build/es/src/blog-v3-post.universal.js +0 -1079
- package/build/es/src/blog-v3-post.universal.js.map +0 -1
- package/build/es/src/blog-v3-tag.context.d.ts +0 -6
- package/build/es/src/blog-v3-tag.context.js +0 -46
- package/build/es/src/blog-v3-tag.context.js.map +0 -1
- package/build/es/src/blog-v3-tag.http.d.ts +0 -40
- package/build/es/src/blog-v3-tag.http.js +0 -341
- package/build/es/src/blog-v3-tag.http.js.map +0 -1
- package/build/es/src/blog-v3-tag.meta.d.ts +0 -22
- package/build/es/src/blog-v3-tag.meta.js +0 -74
- package/build/es/src/blog-v3-tag.meta.js.map +0 -1
- package/build/es/src/blog-v3-tag.public.d.ts +0 -20
- package/build/es/src/blog-v3-tag.public.js +0 -25
- package/build/es/src/blog-v3-tag.public.js.map +0 -1
- package/build/es/src/blog-v3-tag.types.d.ts +0 -675
- package/build/es/src/blog-v3-tag.types.js +0 -14
- package/build/es/src/blog-v3-tag.types.js.map +0 -1
- package/build/es/src/blog-v3-tag.universal.d.ts +0 -819
- package/build/es/src/blog-v3-tag.universal.js +0 -334
- package/build/es/src/blog-v3-tag.universal.js.map +0 -1
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { serializer, transformError, resolveQueryFieldsTransformationPaths, } from '@wix/metro-runtime/velo';
|
|
11
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
13
|
-
import * as ambassadorWixBlogV3Category from './blog-v3-category.http';
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
import { wrapWithQueryBuilder } from '@wix/motion-edm-autogen-query-wrapper';
|
|
16
|
-
const _toVeloEntity = '$';
|
|
17
|
-
const _fromVeloEntity = '$';
|
|
18
|
-
export var Field;
|
|
19
|
-
(function (Field) {
|
|
20
|
-
Field["UNKNOWN"] = "UNKNOWN";
|
|
21
|
-
/** Includes Category url. */
|
|
22
|
-
Field["URL"] = "URL";
|
|
23
|
-
/**
|
|
24
|
-
* Includes internal id field.
|
|
25
|
-
* Reserved for internal use
|
|
26
|
-
*/
|
|
27
|
-
Field["INTERNAL_ID"] = "INTERNAL_ID";
|
|
28
|
-
/** Includes SEO data. */
|
|
29
|
-
Field["SEO"] = "SEO";
|
|
30
|
-
/** Includes translations. */
|
|
31
|
-
Field["TRANSLATIONS"] = "TRANSLATIONS";
|
|
32
|
-
})(Field || (Field = {}));
|
|
33
|
-
export var SortOrder;
|
|
34
|
-
(function (SortOrder) {
|
|
35
|
-
SortOrder["ASC"] = "ASC";
|
|
36
|
-
SortOrder["DESC"] = "DESC";
|
|
37
|
-
})(SortOrder || (SortOrder = {}));
|
|
38
|
-
const _category = {
|
|
39
|
-
url: 'wix.common.PageUrl',
|
|
40
|
-
coverImage: 'wix.common.Image',
|
|
41
|
-
coverMedia: '_coverMedia',
|
|
42
|
-
translations: '_categoryTranslation',
|
|
43
|
-
};
|
|
44
|
-
const _categoryTranslation = { url: 'wix.common.PageUrl' };
|
|
45
|
-
const _coverMedia = { image: 'wix.common.Image', video: 'wix.common.Video' };
|
|
46
|
-
const _getCategoryBySlugRequest = {};
|
|
47
|
-
const _getCategoryBySlugResponse = { category: '_category' };
|
|
48
|
-
const _getCategoryRequest = {};
|
|
49
|
-
const _getCategoryResponse = { category: '_category' };
|
|
50
|
-
const _listCategoriesRequest = {};
|
|
51
|
-
const _listCategoriesResponse = { categories: '_category' };
|
|
52
|
-
const _queryCategoriesRequest = {};
|
|
53
|
-
const _queryCategoriesResponse = { categories: '_category' };
|
|
54
|
-
export const onCategoryCreated = EventDefinition('wix.blog.category_created')();
|
|
55
|
-
export const onCategoryUpdated = EventDefinition('wix.blog.category_updated')();
|
|
56
|
-
export const onCategoryDeleted = EventDefinition('wix.blog.category_deleted')();
|
|
57
|
-
/**
|
|
58
|
-
* Gets a category by the specified ID.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* The `getCategory()` function returns a Promise that resolves to a category whose ID matches the specified ID.
|
|
62
|
-
*
|
|
63
|
-
* @param categoryId - Category ID.
|
|
64
|
-
* @public
|
|
65
|
-
* @requiredField categoryId
|
|
66
|
-
* @param options - Options specifying which fields to return.
|
|
67
|
-
* @permissionScope Read Blog
|
|
68
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
69
|
-
* @permissionScope Manage Blog
|
|
70
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
71
|
-
* @permissionScope Read Draft Blog Posts
|
|
72
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
73
|
-
* @applicableIdentity APP
|
|
74
|
-
* @applicableIdentity VISITOR
|
|
75
|
-
* @returns Category info.
|
|
76
|
-
*/
|
|
77
|
-
export function getCategory(categoryId, options) {
|
|
78
|
-
var _a, _b, _c;
|
|
79
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
80
|
-
const requestTransformation = {
|
|
81
|
-
categoryId: '$[0]',
|
|
82
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
83
|
-
fieldsets: '$[1].fieldsets',
|
|
84
|
-
};
|
|
85
|
-
const responseTransformation = '$.category';
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
88
|
-
const { toAmbassadorRequest } = serializer({
|
|
89
|
-
rootSchema: _getCategoryRequest,
|
|
90
|
-
depSchemas: {},
|
|
91
|
-
fqdnTransformation: {
|
|
92
|
-
paths: [],
|
|
93
|
-
transformation: _fromVeloEntity,
|
|
94
|
-
},
|
|
95
|
-
customTransformation: requestTransformation,
|
|
96
|
-
});
|
|
97
|
-
const { fromJSON } = serializer({
|
|
98
|
-
rootSchema: _getCategoryResponse,
|
|
99
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
100
|
-
fqdnTransformation: {
|
|
101
|
-
paths: [...['category']],
|
|
102
|
-
transformation: _toVeloEntity,
|
|
103
|
-
},
|
|
104
|
-
customTransformation: responseTransformation,
|
|
105
|
-
});
|
|
106
|
-
const payload = toAmbassadorRequest([categoryId, options]);
|
|
107
|
-
const reqOpts = ambassadorWixBlogV3Category.getCategory(payload);
|
|
108
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
109
|
-
try {
|
|
110
|
-
const result = yield httpClient.request(reqOpts);
|
|
111
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
112
|
-
return fromJSON(result.data);
|
|
113
|
-
}
|
|
114
|
-
catch (err) {
|
|
115
|
-
const transformedError = sdkTransformError(err, {
|
|
116
|
-
spreadPathsToArguments: {},
|
|
117
|
-
explicitPathsToArguments: {
|
|
118
|
-
categoryId: '$[0]',
|
|
119
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
120
|
-
fieldsets: '$[1].fieldsets',
|
|
121
|
-
},
|
|
122
|
-
singleArgumentUnchanged: false,
|
|
123
|
-
}, ['categoryId', 'options']);
|
|
124
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
125
|
-
throw transformedError;
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Gets a category by the specified slug.
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
* The `getCategoryBySlug()` function returns a Promise that resolves to a category whose slug matches the specified slug.
|
|
134
|
-
*
|
|
135
|
-
* The `slug` is the end of a category's URL that refers to a specific category. For example, if a category's URL is `https://example.com/blog/category/{my-category-slug}`, the slug is `my-post-slug`. The slug is case-sensitive string that is generally derived from the category's `label`, unless specified otherwise.
|
|
136
|
-
*
|
|
137
|
-
* @public
|
|
138
|
-
* @requiredField slug
|
|
139
|
-
* @param slug - Slug of the category to retrieve.
|
|
140
|
-
*
|
|
141
|
-
* 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.
|
|
142
|
-
* @param options - Options specifying which fields to return.
|
|
143
|
-
* @permissionScope Read Blog
|
|
144
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
145
|
-
* @permissionScope Manage Blog
|
|
146
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
147
|
-
* @permissionScope Read Draft Blog Posts
|
|
148
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
149
|
-
* @applicableIdentity APP
|
|
150
|
-
* @applicableIdentity VISITOR
|
|
151
|
-
*/
|
|
152
|
-
export function getCategoryBySlug(slug, options) {
|
|
153
|
-
var _a, _b, _c;
|
|
154
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
155
|
-
const requestTransformation = {
|
|
156
|
-
slug: '$[0]',
|
|
157
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
158
|
-
fieldsets: '$[1].fieldsets',
|
|
159
|
-
language: '$[1].language',
|
|
160
|
-
};
|
|
161
|
-
const responseTransformation = '$';
|
|
162
|
-
// @ts-ignore
|
|
163
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
164
|
-
const { toAmbassadorRequest } = serializer({
|
|
165
|
-
rootSchema: _getCategoryBySlugRequest,
|
|
166
|
-
depSchemas: {},
|
|
167
|
-
fqdnTransformation: {
|
|
168
|
-
paths: [],
|
|
169
|
-
transformation: _fromVeloEntity,
|
|
170
|
-
},
|
|
171
|
-
customTransformation: requestTransformation,
|
|
172
|
-
});
|
|
173
|
-
const { fromJSON } = serializer({
|
|
174
|
-
rootSchema: _getCategoryBySlugResponse,
|
|
175
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
176
|
-
fqdnTransformation: {
|
|
177
|
-
paths: [...['category']],
|
|
178
|
-
transformation: _toVeloEntity,
|
|
179
|
-
},
|
|
180
|
-
customTransformation: responseTransformation,
|
|
181
|
-
});
|
|
182
|
-
const payload = toAmbassadorRequest([slug, options]);
|
|
183
|
-
const reqOpts = ambassadorWixBlogV3Category.getCategoryBySlug(payload);
|
|
184
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
185
|
-
try {
|
|
186
|
-
const result = yield httpClient.request(reqOpts);
|
|
187
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
188
|
-
return fromJSON(result.data);
|
|
189
|
-
}
|
|
190
|
-
catch (err) {
|
|
191
|
-
const transformedError = sdkTransformError(err, {
|
|
192
|
-
spreadPathsToArguments: {},
|
|
193
|
-
explicitPathsToArguments: {
|
|
194
|
-
slug: '$[0]',
|
|
195
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
196
|
-
fieldsets: '$[1].fieldsets',
|
|
197
|
-
language: '$[1].language',
|
|
198
|
-
},
|
|
199
|
-
singleArgumentUnchanged: false,
|
|
200
|
-
}, ['slug', 'options']);
|
|
201
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
202
|
-
throw transformedError;
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Retrieves a list of categories.
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
* The `listCategories()` function returns a Promise that resolves to a list of up to 100 categories per language in order of their `displayPosition` starting with `0`. The `displayPosition` is the position in which the categories are displayed in the Category Menu page. By default, categories get added to the bottom of the Category Menu with a `displayPosition` of `-1`.
|
|
211
|
-
* @public
|
|
212
|
-
* @param options - Filter and paging options.
|
|
213
|
-
* @permissionScope Read Blog
|
|
214
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
215
|
-
* @permissionScope Manage Blog
|
|
216
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
217
|
-
* @permissionScope Read Draft Blog Posts
|
|
218
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
219
|
-
* @applicableIdentity APP
|
|
220
|
-
* @applicableIdentity VISITOR
|
|
221
|
-
*/
|
|
222
|
-
export function listCategories(options) {
|
|
223
|
-
var _a, _b, _c;
|
|
224
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
225
|
-
const requestTransformation = {
|
|
226
|
-
paging: '$[0].paging',
|
|
227
|
-
fieldsToInclude: '$[0].fieldsToInclude',
|
|
228
|
-
fieldsets: '$[0].fieldsets',
|
|
229
|
-
language: '$[0].language',
|
|
230
|
-
};
|
|
231
|
-
const responseTransformation = '$';
|
|
232
|
-
// @ts-ignore
|
|
233
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
234
|
-
const { toAmbassadorRequest } = serializer({
|
|
235
|
-
rootSchema: _listCategoriesRequest,
|
|
236
|
-
depSchemas: {},
|
|
237
|
-
fqdnTransformation: {
|
|
238
|
-
paths: [],
|
|
239
|
-
transformation: _fromVeloEntity,
|
|
240
|
-
},
|
|
241
|
-
customTransformation: requestTransformation,
|
|
242
|
-
});
|
|
243
|
-
const { fromJSON } = serializer({
|
|
244
|
-
rootSchema: _listCategoriesResponse,
|
|
245
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
246
|
-
fqdnTransformation: {
|
|
247
|
-
paths: [...['Array#categories']],
|
|
248
|
-
transformation: _toVeloEntity,
|
|
249
|
-
},
|
|
250
|
-
customTransformation: responseTransformation,
|
|
251
|
-
});
|
|
252
|
-
const payload = toAmbassadorRequest([options]);
|
|
253
|
-
const reqOpts = ambassadorWixBlogV3Category.listCategories(payload);
|
|
254
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
255
|
-
try {
|
|
256
|
-
const result = yield httpClient.request(reqOpts);
|
|
257
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
258
|
-
return fromJSON(result.data);
|
|
259
|
-
}
|
|
260
|
-
catch (err) {
|
|
261
|
-
const transformedError = sdkTransformError(err, {
|
|
262
|
-
spreadPathsToArguments: {},
|
|
263
|
-
explicitPathsToArguments: {
|
|
264
|
-
paging: '$[0].paging',
|
|
265
|
-
fieldsToInclude: '$[0].fieldsToInclude',
|
|
266
|
-
fieldsets: '$[0].fieldsets',
|
|
267
|
-
language: '$[0].language',
|
|
268
|
-
},
|
|
269
|
-
singleArgumentUnchanged: false,
|
|
270
|
-
}, ['options']);
|
|
271
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
272
|
-
throw transformedError;
|
|
273
|
-
}
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Creates a query to retrieve a list of categories.
|
|
278
|
-
*
|
|
279
|
-
*
|
|
280
|
-
* The `queryCategories()` function builds a query to retrieve a list of up to 100 categories per language, and returns a [`CategoriesQueryBuilder`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder) object.
|
|
281
|
-
*
|
|
282
|
-
* The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/find) function.
|
|
283
|
-
*
|
|
284
|
-
* You can refine the query by chaining `CategoriesQueryBuilder` functions to the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results that `queryCategories` returns. Any functions chained to the `queryCategories()` function are applied in the order that they are called.
|
|
285
|
-
*
|
|
286
|
-
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
287
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
288
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
289
|
-
*
|
|
290
|
-
* The following `CategoriesQueryBuilder` functions are supported for `queryCategories()`. For a full description of the `Categories` object, see the object returned for the [`items`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult/items) property in [`CategoriesQueryResult`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesqueryresult).
|
|
291
|
-
* @public
|
|
292
|
-
* @param options - Options specifying which fields to return.
|
|
293
|
-
* @permissionScope Read Blog
|
|
294
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
295
|
-
* @permissionScope Manage Blog
|
|
296
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
297
|
-
* @permissionScope Read Draft Blog Posts
|
|
298
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
299
|
-
* @applicableIdentity APP
|
|
300
|
-
* @applicableIdentity VISITOR
|
|
301
|
-
*/
|
|
302
|
-
export function queryCategories(options) {
|
|
303
|
-
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
304
|
-
const responseTransformation = {
|
|
305
|
-
items: '$.categories',
|
|
306
|
-
pagingMetadata: '$.pagingMetadata',
|
|
307
|
-
};
|
|
308
|
-
// @ts-ignore
|
|
309
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
310
|
-
const { toAmbassadorRequest } = serializer({
|
|
311
|
-
rootSchema: _queryCategoriesRequest,
|
|
312
|
-
depSchemas: {},
|
|
313
|
-
fqdnTransformation: {
|
|
314
|
-
paths: [],
|
|
315
|
-
transformation: _fromVeloEntity,
|
|
316
|
-
},
|
|
317
|
-
customTransformation: requestTransformation,
|
|
318
|
-
});
|
|
319
|
-
const { fromJSON } = serializer({
|
|
320
|
-
rootSchema: _queryCategoriesResponse,
|
|
321
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
322
|
-
fqdnTransformation: {
|
|
323
|
-
paths: [...['Array#categories']],
|
|
324
|
-
transformation: _toVeloEntity,
|
|
325
|
-
},
|
|
326
|
-
customTransformation: responseTransformation,
|
|
327
|
-
});
|
|
328
|
-
return wrapWithQueryBuilder({
|
|
329
|
-
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
330
|
-
var _a, _b, _c;
|
|
331
|
-
const reqOpts = ambassadorWixBlogV3Category.queryCategories(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
|
|
332
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
333
|
-
try {
|
|
334
|
-
const result = yield httpClient.request(reqOpts);
|
|
335
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
336
|
-
return result;
|
|
337
|
-
}
|
|
338
|
-
catch (err) {
|
|
339
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
340
|
-
throw err;
|
|
341
|
-
}
|
|
342
|
-
}),
|
|
343
|
-
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
344
|
-
responseTransformer: ({ data }) => fromJSON(data),
|
|
345
|
-
errorTransformer: (err) => {
|
|
346
|
-
const transformedError = transformError(err, requestTransformation);
|
|
347
|
-
throw transformedError;
|
|
348
|
-
},
|
|
349
|
-
pagingMethod: 'OFFSET',
|
|
350
|
-
transformationPaths: resolveQueryFieldsTransformationPaths(_toVeloEntity),
|
|
351
|
-
})({ cursorWithEmptyFilterAndSort: true });
|
|
352
|
-
}
|
|
353
|
-
//# sourceMappingURL=blog-v3-category.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-category.universal.js","sourceRoot":"","sources":["../../../src/blog-v3-category.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,qCAAqC,GACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAc,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,2BAA2B,MAAM,yBAAyB,CAAC;AACvE,aAAa;AACb,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6K5B,MAAM,CAAN,IAAY,KAaX;AAbD,WAAY,KAAK;IACf,4BAAmB,CAAA;IACnB,6BAA6B;IAC7B,oBAAW,CAAA;IACX;;;OAGG;IACH,oCAA2B,CAAA;IAC3B,yBAAyB;IACzB,oBAAW,CAAA;IACX,6BAA6B;IAC7B,sCAA6B,CAAA;AAC/B,CAAC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iCACtD,OAAO,GACP,CAAC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC,EAClB,CAAC;YAEH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,2DAAI,CAAC;YAC5B,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;gBACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,4DAAG,MAAM,CAAC,CAAC;gBACjC,OAAO,MAAM,CAAC;YAChB,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,4DAAG,GAAG,CAAC,CAAC;gBAC5B,MAAM,GAAG,CAAC;YACZ,CAAC;QACH,CAAC,CAAA;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,qCAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost } from './blog-v3-draft.public';
|
|
2
|
-
import { BuildRESTFunction } from '@wix/sdk-types';
|
|
3
|
-
export declare const createDraftPost: BuildRESTFunction<typeof publicCreateDraftPost>;
|
|
4
|
-
export declare const bulkCreateDraftPosts: BuildRESTFunction<typeof publicBulkCreateDraftPosts>;
|
|
5
|
-
export declare const bulkUpdateDraftPosts: BuildRESTFunction<typeof publicBulkUpdateDraftPosts>;
|
|
6
|
-
export declare const listDeletedDraftPosts: BuildRESTFunction<typeof publicListDeletedDraftPosts>;
|
|
7
|
-
export declare const getDraftPost: BuildRESTFunction<typeof publicGetDraftPost>;
|
|
8
|
-
export declare const updateDraftPost: BuildRESTFunction<typeof publicUpdateDraftPost>;
|
|
9
|
-
export declare const deleteDraftPost: BuildRESTFunction<typeof publicDeleteDraftPost>;
|
|
10
|
-
export declare const removeFromTrashBin: BuildRESTFunction<typeof publicRemoveFromTrashBin>;
|
|
11
|
-
export declare const bulkDeleteDraftPosts: BuildRESTFunction<typeof publicBulkDeleteDraftPosts>;
|
|
12
|
-
export declare const listDraftPosts: BuildRESTFunction<typeof publicListDraftPosts>;
|
|
13
|
-
export declare const getDeletedDraftPost: BuildRESTFunction<typeof publicGetDeletedDraftPost>;
|
|
14
|
-
export declare const restoreFromTrashBin: BuildRESTFunction<typeof publicRestoreFromTrashBin>;
|
|
15
|
-
export declare const queryDraftPosts: BuildRESTFunction<typeof publicQueryDraftPosts>;
|
|
16
|
-
export declare const publishDraftPost: BuildRESTFunction<typeof publicPublishDraftPost>;
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { createDraftPost as publicCreateDraftPost, bulkCreateDraftPosts as publicBulkCreateDraftPosts, bulkUpdateDraftPosts as publicBulkUpdateDraftPosts, listDeletedDraftPosts as publicListDeletedDraftPosts, getDraftPost as publicGetDraftPost, updateDraftPost as publicUpdateDraftPost, deleteDraftPost as publicDeleteDraftPost, removeFromTrashBin as publicRemoveFromTrashBin, bulkDeleteDraftPosts as publicBulkDeleteDraftPosts, listDraftPosts as publicListDraftPosts, getDeletedDraftPost as publicGetDeletedDraftPost, restoreFromTrashBin as publicRestoreFromTrashBin, queryDraftPosts as publicQueryDraftPosts, publishDraftPost as publicPublishDraftPost, } from './blog-v3-draft.public';
|
|
2
|
-
export const createDraftPost = (...args) => {
|
|
3
|
-
var _a;
|
|
4
|
-
// @ts-expect-error
|
|
5
|
-
if (!globalThis.__wix_context__) {
|
|
6
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
7
|
-
}
|
|
8
|
-
// @ts-expect-error
|
|
9
|
-
return globalThis.__wix_context__
|
|
10
|
-
.initWixModules(publicCreateDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
11
|
-
.apply(undefined, args);
|
|
12
|
-
};
|
|
13
|
-
export const bulkCreateDraftPosts = (...args) => {
|
|
14
|
-
var _a;
|
|
15
|
-
// @ts-expect-error
|
|
16
|
-
if (!globalThis.__wix_context__) {
|
|
17
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
18
|
-
}
|
|
19
|
-
// @ts-expect-error
|
|
20
|
-
return globalThis.__wix_context__
|
|
21
|
-
.initWixModules(publicBulkCreateDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
22
|
-
.apply(undefined, args);
|
|
23
|
-
};
|
|
24
|
-
export const bulkUpdateDraftPosts = (...args) => {
|
|
25
|
-
var _a;
|
|
26
|
-
// @ts-expect-error
|
|
27
|
-
if (!globalThis.__wix_context__) {
|
|
28
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
29
|
-
}
|
|
30
|
-
// @ts-expect-error
|
|
31
|
-
return globalThis.__wix_context__
|
|
32
|
-
.initWixModules(publicBulkUpdateDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
33
|
-
.apply(undefined, args);
|
|
34
|
-
};
|
|
35
|
-
export const listDeletedDraftPosts = (...args) => {
|
|
36
|
-
var _a;
|
|
37
|
-
// @ts-expect-error
|
|
38
|
-
if (!globalThis.__wix_context__) {
|
|
39
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
40
|
-
}
|
|
41
|
-
// @ts-expect-error
|
|
42
|
-
return globalThis.__wix_context__
|
|
43
|
-
.initWixModules(publicListDeletedDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
44
|
-
.apply(undefined, args);
|
|
45
|
-
};
|
|
46
|
-
export const getDraftPost = (...args) => {
|
|
47
|
-
var _a;
|
|
48
|
-
// @ts-expect-error
|
|
49
|
-
if (!globalThis.__wix_context__) {
|
|
50
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
51
|
-
}
|
|
52
|
-
// @ts-expect-error
|
|
53
|
-
return globalThis.__wix_context__
|
|
54
|
-
.initWixModules(publicGetDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
55
|
-
.apply(undefined, args);
|
|
56
|
-
};
|
|
57
|
-
export const updateDraftPost = (...args) => {
|
|
58
|
-
var _a;
|
|
59
|
-
// @ts-expect-error
|
|
60
|
-
if (!globalThis.__wix_context__) {
|
|
61
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
62
|
-
}
|
|
63
|
-
// @ts-expect-error
|
|
64
|
-
return globalThis.__wix_context__
|
|
65
|
-
.initWixModules(publicUpdateDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
66
|
-
.apply(undefined, args);
|
|
67
|
-
};
|
|
68
|
-
export const deleteDraftPost = (...args) => {
|
|
69
|
-
var _a;
|
|
70
|
-
// @ts-expect-error
|
|
71
|
-
if (!globalThis.__wix_context__) {
|
|
72
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
73
|
-
}
|
|
74
|
-
// @ts-expect-error
|
|
75
|
-
return globalThis.__wix_context__
|
|
76
|
-
.initWixModules(publicDeleteDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
77
|
-
.apply(undefined, args);
|
|
78
|
-
};
|
|
79
|
-
export const removeFromTrashBin = (...args) => {
|
|
80
|
-
var _a;
|
|
81
|
-
// @ts-expect-error
|
|
82
|
-
if (!globalThis.__wix_context__) {
|
|
83
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
84
|
-
}
|
|
85
|
-
// @ts-expect-error
|
|
86
|
-
return globalThis.__wix_context__
|
|
87
|
-
.initWixModules(publicRemoveFromTrashBin, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
88
|
-
.apply(undefined, args);
|
|
89
|
-
};
|
|
90
|
-
export const bulkDeleteDraftPosts = (...args) => {
|
|
91
|
-
var _a;
|
|
92
|
-
// @ts-expect-error
|
|
93
|
-
if (!globalThis.__wix_context__) {
|
|
94
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
95
|
-
}
|
|
96
|
-
// @ts-expect-error
|
|
97
|
-
return globalThis.__wix_context__
|
|
98
|
-
.initWixModules(publicBulkDeleteDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
99
|
-
.apply(undefined, args);
|
|
100
|
-
};
|
|
101
|
-
export const listDraftPosts = (...args) => {
|
|
102
|
-
var _a;
|
|
103
|
-
// @ts-expect-error
|
|
104
|
-
if (!globalThis.__wix_context__) {
|
|
105
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
106
|
-
}
|
|
107
|
-
// @ts-expect-error
|
|
108
|
-
return globalThis.__wix_context__
|
|
109
|
-
.initWixModules(publicListDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
110
|
-
.apply(undefined, args);
|
|
111
|
-
};
|
|
112
|
-
export const getDeletedDraftPost = (...args) => {
|
|
113
|
-
var _a;
|
|
114
|
-
// @ts-expect-error
|
|
115
|
-
if (!globalThis.__wix_context__) {
|
|
116
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
117
|
-
}
|
|
118
|
-
// @ts-expect-error
|
|
119
|
-
return globalThis.__wix_context__
|
|
120
|
-
.initWixModules(publicGetDeletedDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
121
|
-
.apply(undefined, args);
|
|
122
|
-
};
|
|
123
|
-
export const restoreFromTrashBin = (...args) => {
|
|
124
|
-
var _a;
|
|
125
|
-
// @ts-expect-error
|
|
126
|
-
if (!globalThis.__wix_context__) {
|
|
127
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
128
|
-
}
|
|
129
|
-
// @ts-expect-error
|
|
130
|
-
return globalThis.__wix_context__
|
|
131
|
-
.initWixModules(publicRestoreFromTrashBin, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
132
|
-
.apply(undefined, args);
|
|
133
|
-
};
|
|
134
|
-
export const queryDraftPosts = (...args) => {
|
|
135
|
-
var _a;
|
|
136
|
-
// @ts-expect-error
|
|
137
|
-
if (!globalThis.__wix_context__) {
|
|
138
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
139
|
-
}
|
|
140
|
-
// @ts-expect-error
|
|
141
|
-
return globalThis.__wix_context__
|
|
142
|
-
.initWixModules(publicQueryDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
143
|
-
.apply(undefined, args);
|
|
144
|
-
};
|
|
145
|
-
export const publishDraftPost = (...args) => {
|
|
146
|
-
var _a;
|
|
147
|
-
// @ts-expect-error
|
|
148
|
-
if (!globalThis.__wix_context__) {
|
|
149
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
150
|
-
}
|
|
151
|
-
// @ts-expect-error
|
|
152
|
-
return globalThis.__wix_context__
|
|
153
|
-
.initWixModules(publicPublishDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
154
|
-
.apply(undefined, args);
|
|
155
|
-
};
|
|
156
|
-
//# sourceMappingURL=blog-v3-draft.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"blog-v3-draft.context.js","sourceRoot":"","sources":["../../../src/blog-v3-draft.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,IAAI,qBAAqB,EACxC,oBAAoB,IAAI,0BAA0B,EAClD,oBAAoB,IAAI,0BAA0B,EAClD,qBAAqB,IAAI,2BAA2B,EACpD,YAAY,IAAI,kBAAkB,EAClC,eAAe,IAAI,qBAAqB,EACxC,eAAe,IAAI,qBAAqB,EACxC,kBAAkB,IAAI,wBAAwB,EAC9C,oBAAoB,IAAI,0BAA0B,EAClD,cAAc,IAAI,oBAAoB,EACtC,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,IAAI,yBAAyB,EAChD,eAAe,IAAI,qBAAqB,EACxC,gBAAgB,IAAI,sBAAsB,GAC3C,MAAM,wBAAwB,CAAC;AAGhC,MAAM,CAAC,MAAM,eAAe,GAExB,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,m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AC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CACpC;SACA,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,eAAe,GAExB,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,qBAAqB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC1E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC;AACF,MAAM,CAAC,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,sBAAsB,EAAE,CAAA,MAAA,IAAI,CAAC,CAAC,CAAC,0CAAE,WAAW,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;SAC3E,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAC5B,CAAC,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a draft post.
|
|
4
|
-
*
|
|
5
|
-
* The draft post's `memberId` is required for third-party apps.
|
|
6
|
-
*/
|
|
7
|
-
export declare function createDraftPost(payload: object): RequestOptionsFactory<any>;
|
|
8
|
-
/** Creates multiple draft posts. */
|
|
9
|
-
export declare function bulkCreateDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
10
|
-
/** Updates multiple draft posts. */
|
|
11
|
-
export declare function bulkUpdateDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Retrieves a list of up to 100 deleted draft posts.
|
|
14
|
-
*
|
|
15
|
-
* List Deleted Draft Posts runs with these defaults, which you can override:
|
|
16
|
-
* - `editedDate` is sorted in descending order. In this case,`editedDate` implies the date the post was deleted.
|
|
17
|
-
* - `paging.limit` is `50`.
|
|
18
|
-
* - `paging.offset` is `0`.
|
|
19
|
-
*/
|
|
20
|
-
export declare function listDeletedDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
21
|
-
/**
|
|
22
|
-
* Gets a draft post by the provided ID.
|
|
23
|
-
*
|
|
24
|
-
* Uses the provided `draftPostId` to retrieve a draft post.
|
|
25
|
-
*/
|
|
26
|
-
export declare function getDraftPost(payload: object): RequestOptionsFactory<any>;
|
|
27
|
-
/** Updates a specified draft post. */
|
|
28
|
-
export declare function updateDraftPost(payload: object): RequestOptionsFactory<any>;
|
|
29
|
-
/**
|
|
30
|
-
* Moves a draft post with the provided ID to the trash bin.
|
|
31
|
-
* A published post can also be deleted by its provided `draftPostId`.
|
|
32
|
-
*
|
|
33
|
-
* The optional `permanent` field enables you to delete a post permanently, bypassing the trash bin. When a draft post is deleted this way, it can't be restored.
|
|
34
|
-
*/
|
|
35
|
-
export declare function deleteDraftPost(payload: object): RequestOptionsFactory<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Permanently deletes a draft post by the provided ID from the trash bin.
|
|
38
|
-
*
|
|
39
|
-
* Uses the provided `draftPostId` to permanently delete a draft post from the trash bin. This action is permanent and cannot be reversed.
|
|
40
|
-
*/
|
|
41
|
-
export declare function removeFromTrashBin(payload: object): RequestOptionsFactory<any>;
|
|
42
|
-
/** Bulk Deletes draft posts with the provided IDs. */
|
|
43
|
-
export declare function bulkDeleteDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
44
|
-
/**
|
|
45
|
-
* Retrieves a list of up to 100 draft posts per request.
|
|
46
|
-
*
|
|
47
|
-
* List Draft Posts runs with these defaults, which you can override:
|
|
48
|
-
* - `editedDate` is sorted in descending order.
|
|
49
|
-
* - `paging.limit` is `50`.
|
|
50
|
-
* - `paging.offset` is `0`.
|
|
51
|
-
*/
|
|
52
|
-
export declare function listDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
53
|
-
/**
|
|
54
|
-
* Gets a deleted draft post from the trash bin by the provided ID.
|
|
55
|
-
*
|
|
56
|
-
* Uses the provided `draftPostId` to retrieve a previously deleted draft post from the trash bin.
|
|
57
|
-
*/
|
|
58
|
-
export declare function getDeletedDraftPost(payload: object): RequestOptionsFactory<any>;
|
|
59
|
-
/**
|
|
60
|
-
* Restores a deleted draft post from the trash bin by the provided ID.
|
|
61
|
-
*
|
|
62
|
-
* Uses the `draftPostId` to restore a deleted draft post from the trash bin.
|
|
63
|
-
*/
|
|
64
|
-
export declare function restoreFromTrashBin(payload: object): RequestOptionsFactory<any>;
|
|
65
|
-
/**
|
|
66
|
-
* Retrieves a list of up to 100 draft posts, given the provided paging, filtering, and sorting.
|
|
67
|
-
*
|
|
68
|
-
* Query Draft Posts runs with these defaults, which you can override:
|
|
69
|
-
* - `editedDate` is sorted in `DESC` order.
|
|
70
|
-
* - `paging.limit` is `50`.
|
|
71
|
-
* - `paging.offset` is `0`.
|
|
72
|
-
*/
|
|
73
|
-
export declare function queryDraftPosts(payload: object): RequestOptionsFactory<any>;
|
|
74
|
-
/**
|
|
75
|
-
* Publishes a specified draft post by ID. This creates a new post entity with the data from the draft post.
|
|
76
|
-
*
|
|
77
|
-
* If the specified draft post was already published, the published post will be updated with the latest values from the draft post entity.
|
|
78
|
-
*/
|
|
79
|
-
export declare function publishDraftPost(payload: object): RequestOptionsFactory<any>;
|