@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,383 +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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.queryCategories = exports.listCategories = exports.getCategoryBySlug = exports.getCategory = exports.onCategoryDeleted = exports.onCategoryUpdated = exports.onCategoryCreated = exports.SortOrder = exports.Field = void 0;
|
|
36
|
-
const velo_1 = require("@wix/metro-runtime/velo");
|
|
37
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
const sdk_types_1 = require("@wix/sdk-types");
|
|
39
|
-
const ambassadorWixBlogV3Category = __importStar(require("./blog-v3-category.http"));
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
42
|
-
const _toVeloEntity = '$';
|
|
43
|
-
const _fromVeloEntity = '$';
|
|
44
|
-
var Field;
|
|
45
|
-
(function (Field) {
|
|
46
|
-
Field["UNKNOWN"] = "UNKNOWN";
|
|
47
|
-
/** Includes Category url. */
|
|
48
|
-
Field["URL"] = "URL";
|
|
49
|
-
/**
|
|
50
|
-
* Includes internal id field.
|
|
51
|
-
* Reserved for internal use
|
|
52
|
-
*/
|
|
53
|
-
Field["INTERNAL_ID"] = "INTERNAL_ID";
|
|
54
|
-
/** Includes SEO data. */
|
|
55
|
-
Field["SEO"] = "SEO";
|
|
56
|
-
/** Includes translations. */
|
|
57
|
-
Field["TRANSLATIONS"] = "TRANSLATIONS";
|
|
58
|
-
})(Field || (exports.Field = Field = {}));
|
|
59
|
-
var SortOrder;
|
|
60
|
-
(function (SortOrder) {
|
|
61
|
-
SortOrder["ASC"] = "ASC";
|
|
62
|
-
SortOrder["DESC"] = "DESC";
|
|
63
|
-
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
64
|
-
const _category = {
|
|
65
|
-
url: 'wix.common.PageUrl',
|
|
66
|
-
coverImage: 'wix.common.Image',
|
|
67
|
-
coverMedia: '_coverMedia',
|
|
68
|
-
translations: '_categoryTranslation',
|
|
69
|
-
};
|
|
70
|
-
const _categoryTranslation = { url: 'wix.common.PageUrl' };
|
|
71
|
-
const _coverMedia = { image: 'wix.common.Image', video: 'wix.common.Video' };
|
|
72
|
-
const _getCategoryBySlugRequest = {};
|
|
73
|
-
const _getCategoryBySlugResponse = { category: '_category' };
|
|
74
|
-
const _getCategoryRequest = {};
|
|
75
|
-
const _getCategoryResponse = { category: '_category' };
|
|
76
|
-
const _listCategoriesRequest = {};
|
|
77
|
-
const _listCategoriesResponse = { categories: '_category' };
|
|
78
|
-
const _queryCategoriesRequest = {};
|
|
79
|
-
const _queryCategoriesResponse = { categories: '_category' };
|
|
80
|
-
exports.onCategoryCreated = (0, sdk_types_1.EventDefinition)('wix.blog.category_created')();
|
|
81
|
-
exports.onCategoryUpdated = (0, sdk_types_1.EventDefinition)('wix.blog.category_updated')();
|
|
82
|
-
exports.onCategoryDeleted = (0, sdk_types_1.EventDefinition)('wix.blog.category_deleted')();
|
|
83
|
-
/**
|
|
84
|
-
* Gets a category by the specified ID.
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* The `getCategory()` function returns a Promise that resolves to a category whose ID matches the specified ID.
|
|
88
|
-
*
|
|
89
|
-
* @param categoryId - Category ID.
|
|
90
|
-
* @public
|
|
91
|
-
* @requiredField categoryId
|
|
92
|
-
* @param options - Options specifying which fields to return.
|
|
93
|
-
* @permissionScope Read Blog
|
|
94
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
95
|
-
* @permissionScope Manage Blog
|
|
96
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
97
|
-
* @permissionScope Read Draft Blog Posts
|
|
98
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
99
|
-
* @applicableIdentity APP
|
|
100
|
-
* @applicableIdentity VISITOR
|
|
101
|
-
* @returns Category info.
|
|
102
|
-
*/
|
|
103
|
-
function getCategory(categoryId, options) {
|
|
104
|
-
var _a, _b, _c;
|
|
105
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
106
|
-
const requestTransformation = {
|
|
107
|
-
categoryId: '$[0]',
|
|
108
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
109
|
-
fieldsets: '$[1].fieldsets',
|
|
110
|
-
};
|
|
111
|
-
const responseTransformation = '$.category';
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
114
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
115
|
-
rootSchema: _getCategoryRequest,
|
|
116
|
-
depSchemas: {},
|
|
117
|
-
fqdnTransformation: {
|
|
118
|
-
paths: [],
|
|
119
|
-
transformation: _fromVeloEntity,
|
|
120
|
-
},
|
|
121
|
-
customTransformation: requestTransformation,
|
|
122
|
-
});
|
|
123
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
124
|
-
rootSchema: _getCategoryResponse,
|
|
125
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
126
|
-
fqdnTransformation: {
|
|
127
|
-
paths: [...['category']],
|
|
128
|
-
transformation: _toVeloEntity,
|
|
129
|
-
},
|
|
130
|
-
customTransformation: responseTransformation,
|
|
131
|
-
});
|
|
132
|
-
const payload = toAmbassadorRequest([categoryId, options]);
|
|
133
|
-
const reqOpts = ambassadorWixBlogV3Category.getCategory(payload);
|
|
134
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
135
|
-
try {
|
|
136
|
-
const result = yield httpClient.request(reqOpts);
|
|
137
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
138
|
-
return fromJSON(result.data);
|
|
139
|
-
}
|
|
140
|
-
catch (err) {
|
|
141
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
142
|
-
spreadPathsToArguments: {},
|
|
143
|
-
explicitPathsToArguments: {
|
|
144
|
-
categoryId: '$[0]',
|
|
145
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
146
|
-
fieldsets: '$[1].fieldsets',
|
|
147
|
-
},
|
|
148
|
-
singleArgumentUnchanged: false,
|
|
149
|
-
}, ['categoryId', 'options']);
|
|
150
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
151
|
-
throw transformedError;
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
exports.getCategory = getCategory;
|
|
156
|
-
/**
|
|
157
|
-
* Gets a category by the specified slug.
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* The `getCategoryBySlug()` function returns a Promise that resolves to a category whose slug matches the specified slug.
|
|
161
|
-
*
|
|
162
|
-
* 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.
|
|
163
|
-
*
|
|
164
|
-
* @public
|
|
165
|
-
* @requiredField slug
|
|
166
|
-
* @param slug - Slug of the category to retrieve.
|
|
167
|
-
*
|
|
168
|
-
* 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.
|
|
169
|
-
* @param options - Options specifying which fields to return.
|
|
170
|
-
* @permissionScope Read Blog
|
|
171
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
172
|
-
* @permissionScope Manage Blog
|
|
173
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
174
|
-
* @permissionScope Read Draft Blog Posts
|
|
175
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
176
|
-
* @applicableIdentity APP
|
|
177
|
-
* @applicableIdentity VISITOR
|
|
178
|
-
*/
|
|
179
|
-
function getCategoryBySlug(slug, options) {
|
|
180
|
-
var _a, _b, _c;
|
|
181
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
182
|
-
const requestTransformation = {
|
|
183
|
-
slug: '$[0]',
|
|
184
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
185
|
-
fieldsets: '$[1].fieldsets',
|
|
186
|
-
language: '$[1].language',
|
|
187
|
-
};
|
|
188
|
-
const responseTransformation = '$';
|
|
189
|
-
// @ts-ignore
|
|
190
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
191
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
192
|
-
rootSchema: _getCategoryBySlugRequest,
|
|
193
|
-
depSchemas: {},
|
|
194
|
-
fqdnTransformation: {
|
|
195
|
-
paths: [],
|
|
196
|
-
transformation: _fromVeloEntity,
|
|
197
|
-
},
|
|
198
|
-
customTransformation: requestTransformation,
|
|
199
|
-
});
|
|
200
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
201
|
-
rootSchema: _getCategoryBySlugResponse,
|
|
202
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
203
|
-
fqdnTransformation: {
|
|
204
|
-
paths: [...['category']],
|
|
205
|
-
transformation: _toVeloEntity,
|
|
206
|
-
},
|
|
207
|
-
customTransformation: responseTransformation,
|
|
208
|
-
});
|
|
209
|
-
const payload = toAmbassadorRequest([slug, options]);
|
|
210
|
-
const reqOpts = ambassadorWixBlogV3Category.getCategoryBySlug(payload);
|
|
211
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
212
|
-
try {
|
|
213
|
-
const result = yield httpClient.request(reqOpts);
|
|
214
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
215
|
-
return fromJSON(result.data);
|
|
216
|
-
}
|
|
217
|
-
catch (err) {
|
|
218
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
219
|
-
spreadPathsToArguments: {},
|
|
220
|
-
explicitPathsToArguments: {
|
|
221
|
-
slug: '$[0]',
|
|
222
|
-
fieldsToInclude: '$[1].fieldsToInclude',
|
|
223
|
-
fieldsets: '$[1].fieldsets',
|
|
224
|
-
language: '$[1].language',
|
|
225
|
-
},
|
|
226
|
-
singleArgumentUnchanged: false,
|
|
227
|
-
}, ['slug', 'options']);
|
|
228
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
229
|
-
throw transformedError;
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
exports.getCategoryBySlug = getCategoryBySlug;
|
|
234
|
-
/**
|
|
235
|
-
* Retrieves a list of categories.
|
|
236
|
-
*
|
|
237
|
-
*
|
|
238
|
-
* 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`.
|
|
239
|
-
* @public
|
|
240
|
-
* @param options - Filter and paging options.
|
|
241
|
-
* @permissionScope Read Blog
|
|
242
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
243
|
-
* @permissionScope Manage Blog
|
|
244
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
245
|
-
* @permissionScope Read Draft Blog Posts
|
|
246
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
247
|
-
* @applicableIdentity APP
|
|
248
|
-
* @applicableIdentity VISITOR
|
|
249
|
-
*/
|
|
250
|
-
function listCategories(options) {
|
|
251
|
-
var _a, _b, _c;
|
|
252
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
253
|
-
const requestTransformation = {
|
|
254
|
-
paging: '$[0].paging',
|
|
255
|
-
fieldsToInclude: '$[0].fieldsToInclude',
|
|
256
|
-
fieldsets: '$[0].fieldsets',
|
|
257
|
-
language: '$[0].language',
|
|
258
|
-
};
|
|
259
|
-
const responseTransformation = '$';
|
|
260
|
-
// @ts-ignore
|
|
261
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
262
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
263
|
-
rootSchema: _listCategoriesRequest,
|
|
264
|
-
depSchemas: {},
|
|
265
|
-
fqdnTransformation: {
|
|
266
|
-
paths: [],
|
|
267
|
-
transformation: _fromVeloEntity,
|
|
268
|
-
},
|
|
269
|
-
customTransformation: requestTransformation,
|
|
270
|
-
});
|
|
271
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
272
|
-
rootSchema: _listCategoriesResponse,
|
|
273
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
274
|
-
fqdnTransformation: {
|
|
275
|
-
paths: [...['Array#categories']],
|
|
276
|
-
transformation: _toVeloEntity,
|
|
277
|
-
},
|
|
278
|
-
customTransformation: responseTransformation,
|
|
279
|
-
});
|
|
280
|
-
const payload = toAmbassadorRequest([options]);
|
|
281
|
-
const reqOpts = ambassadorWixBlogV3Category.listCategories(payload);
|
|
282
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
283
|
-
try {
|
|
284
|
-
const result = yield httpClient.request(reqOpts);
|
|
285
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
286
|
-
return fromJSON(result.data);
|
|
287
|
-
}
|
|
288
|
-
catch (err) {
|
|
289
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
290
|
-
spreadPathsToArguments: {},
|
|
291
|
-
explicitPathsToArguments: {
|
|
292
|
-
paging: '$[0].paging',
|
|
293
|
-
fieldsToInclude: '$[0].fieldsToInclude',
|
|
294
|
-
fieldsets: '$[0].fieldsets',
|
|
295
|
-
language: '$[0].language',
|
|
296
|
-
},
|
|
297
|
-
singleArgumentUnchanged: false,
|
|
298
|
-
}, ['options']);
|
|
299
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
300
|
-
throw transformedError;
|
|
301
|
-
}
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
exports.listCategories = listCategories;
|
|
305
|
-
/**
|
|
306
|
-
* Creates a query to retrieve a list of categories.
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
* 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.
|
|
310
|
-
*
|
|
311
|
-
* 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.
|
|
312
|
-
*
|
|
313
|
-
* 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.
|
|
314
|
-
*
|
|
315
|
-
* `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override.
|
|
316
|
-
* - [`limit(100)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/limit)
|
|
317
|
-
* - [`ascending(displayPosition)`](https://www.wix.com/velo/reference/wix-blog-backend/categories/categoriesquerybuilder/ascending)
|
|
318
|
-
*
|
|
319
|
-
* 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).
|
|
320
|
-
* @public
|
|
321
|
-
* @param options - Options specifying which fields to return.
|
|
322
|
-
* @permissionScope Read Blog
|
|
323
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-BLOGS
|
|
324
|
-
* @permissionScope Manage Blog
|
|
325
|
-
* @permissionScopeId SCOPE.DC-BLOG.MANAGE-BLOG
|
|
326
|
-
* @permissionScope Read Draft Blog Posts
|
|
327
|
-
* @permissionScopeId SCOPE.DC-BLOG.READ-DRAFT-POSTS
|
|
328
|
-
* @applicableIdentity APP
|
|
329
|
-
* @applicableIdentity VISITOR
|
|
330
|
-
*/
|
|
331
|
-
function queryCategories(options) {
|
|
332
|
-
const requestTransformation = { '*': '$[1]', query: '$[0]' };
|
|
333
|
-
const responseTransformation = {
|
|
334
|
-
items: '$.categories',
|
|
335
|
-
pagingMetadata: '$.pagingMetadata',
|
|
336
|
-
};
|
|
337
|
-
// @ts-ignore
|
|
338
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
339
|
-
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
340
|
-
rootSchema: _queryCategoriesRequest,
|
|
341
|
-
depSchemas: {},
|
|
342
|
-
fqdnTransformation: {
|
|
343
|
-
paths: [],
|
|
344
|
-
transformation: _fromVeloEntity,
|
|
345
|
-
},
|
|
346
|
-
customTransformation: requestTransformation,
|
|
347
|
-
});
|
|
348
|
-
const { fromJSON } = (0, velo_1.serializer)({
|
|
349
|
-
rootSchema: _queryCategoriesResponse,
|
|
350
|
-
depSchemas: { _category, _categoryTranslation, _coverMedia },
|
|
351
|
-
fqdnTransformation: {
|
|
352
|
-
paths: [...['Array#categories']],
|
|
353
|
-
transformation: _toVeloEntity,
|
|
354
|
-
},
|
|
355
|
-
customTransformation: responseTransformation,
|
|
356
|
-
});
|
|
357
|
-
return (0, motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder)({
|
|
358
|
-
func: (payload) => __awaiter(this, void 0, void 0, function* () {
|
|
359
|
-
var _a, _b, _c;
|
|
360
|
-
const reqOpts = ambassadorWixBlogV3Category.queryCategories(Object.assign(Object.assign({}, payload), (options !== null && options !== void 0 ? options : {})));
|
|
361
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
362
|
-
try {
|
|
363
|
-
const result = yield httpClient.request(reqOpts);
|
|
364
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
365
|
-
return result;
|
|
366
|
-
}
|
|
367
|
-
catch (err) {
|
|
368
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
369
|
-
throw err;
|
|
370
|
-
}
|
|
371
|
-
}),
|
|
372
|
-
requestTransformer: (...args) => toAmbassadorRequest(args),
|
|
373
|
-
responseTransformer: ({ data }) => fromJSON(data),
|
|
374
|
-
errorTransformer: (err) => {
|
|
375
|
-
const transformedError = (0, velo_1.transformError)(err, requestTransformation);
|
|
376
|
-
throw transformedError;
|
|
377
|
-
},
|
|
378
|
-
pagingMethod: 'OFFSET',
|
|
379
|
-
transformationPaths: (0, velo_1.resolveQueryFieldsTransformationPaths)(_toVeloEntity),
|
|
380
|
-
})({ cursorWithEmptyFilterAndSort: true });
|
|
381
|
-
}
|
|
382
|
-
exports.queryCategories = queryCategories;
|
|
383
|
-
//# 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,kDAIiC;AACjC,sEAAuF;AACvF,8CAA6D;AAC7D,qFAAuE;AACvE,aAAa;AACb,4FAA6E;AAE7E,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6K5B,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,EAbW,KAAK,qBAAL,KAAK,QAahB;AAmRD,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;A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,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,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,IAAA,4CAAqC,EAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA9DD,0CA8DC"}
|
|
@@ -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,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.publishDraftPost = exports.queryDraftPosts = exports.restoreFromTrashBin = exports.getDeletedDraftPost = exports.listDraftPosts = exports.bulkDeleteDraftPosts = exports.removeFromTrashBin = exports.deleteDraftPost = exports.updateDraftPost = exports.getDraftPost = exports.listDeletedDraftPosts = exports.bulkUpdateDraftPosts = exports.bulkCreateDraftPosts = exports.createDraftPost = void 0;
|
|
4
|
-
const blog_v3_draft_public_1 = require("./blog-v3-draft.public");
|
|
5
|
-
const createDraftPost = (...args) => {
|
|
6
|
-
var _a;
|
|
7
|
-
// @ts-expect-error
|
|
8
|
-
if (!globalThis.__wix_context__) {
|
|
9
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
10
|
-
}
|
|
11
|
-
// @ts-expect-error
|
|
12
|
-
return globalThis.__wix_context__
|
|
13
|
-
.initWixModules(blog_v3_draft_public_1.createDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
14
|
-
.apply(undefined, args);
|
|
15
|
-
};
|
|
16
|
-
exports.createDraftPost = createDraftPost;
|
|
17
|
-
const bulkCreateDraftPosts = (...args) => {
|
|
18
|
-
var _a;
|
|
19
|
-
// @ts-expect-error
|
|
20
|
-
if (!globalThis.__wix_context__) {
|
|
21
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
22
|
-
}
|
|
23
|
-
// @ts-expect-error
|
|
24
|
-
return globalThis.__wix_context__
|
|
25
|
-
.initWixModules(blog_v3_draft_public_1.bulkCreateDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
26
|
-
.apply(undefined, args);
|
|
27
|
-
};
|
|
28
|
-
exports.bulkCreateDraftPosts = bulkCreateDraftPosts;
|
|
29
|
-
const bulkUpdateDraftPosts = (...args) => {
|
|
30
|
-
var _a;
|
|
31
|
-
// @ts-expect-error
|
|
32
|
-
if (!globalThis.__wix_context__) {
|
|
33
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
34
|
-
}
|
|
35
|
-
// @ts-expect-error
|
|
36
|
-
return globalThis.__wix_context__
|
|
37
|
-
.initWixModules(blog_v3_draft_public_1.bulkUpdateDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
38
|
-
.apply(undefined, args);
|
|
39
|
-
};
|
|
40
|
-
exports.bulkUpdateDraftPosts = bulkUpdateDraftPosts;
|
|
41
|
-
const listDeletedDraftPosts = (...args) => {
|
|
42
|
-
var _a;
|
|
43
|
-
// @ts-expect-error
|
|
44
|
-
if (!globalThis.__wix_context__) {
|
|
45
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
46
|
-
}
|
|
47
|
-
// @ts-expect-error
|
|
48
|
-
return globalThis.__wix_context__
|
|
49
|
-
.initWixModules(blog_v3_draft_public_1.listDeletedDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
50
|
-
.apply(undefined, args);
|
|
51
|
-
};
|
|
52
|
-
exports.listDeletedDraftPosts = listDeletedDraftPosts;
|
|
53
|
-
const getDraftPost = (...args) => {
|
|
54
|
-
var _a;
|
|
55
|
-
// @ts-expect-error
|
|
56
|
-
if (!globalThis.__wix_context__) {
|
|
57
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
58
|
-
}
|
|
59
|
-
// @ts-expect-error
|
|
60
|
-
return globalThis.__wix_context__
|
|
61
|
-
.initWixModules(blog_v3_draft_public_1.getDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
62
|
-
.apply(undefined, args);
|
|
63
|
-
};
|
|
64
|
-
exports.getDraftPost = getDraftPost;
|
|
65
|
-
const updateDraftPost = (...args) => {
|
|
66
|
-
var _a;
|
|
67
|
-
// @ts-expect-error
|
|
68
|
-
if (!globalThis.__wix_context__) {
|
|
69
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
70
|
-
}
|
|
71
|
-
// @ts-expect-error
|
|
72
|
-
return globalThis.__wix_context__
|
|
73
|
-
.initWixModules(blog_v3_draft_public_1.updateDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
74
|
-
.apply(undefined, args);
|
|
75
|
-
};
|
|
76
|
-
exports.updateDraftPost = updateDraftPost;
|
|
77
|
-
const deleteDraftPost = (...args) => {
|
|
78
|
-
var _a;
|
|
79
|
-
// @ts-expect-error
|
|
80
|
-
if (!globalThis.__wix_context__) {
|
|
81
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
82
|
-
}
|
|
83
|
-
// @ts-expect-error
|
|
84
|
-
return globalThis.__wix_context__
|
|
85
|
-
.initWixModules(blog_v3_draft_public_1.deleteDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
86
|
-
.apply(undefined, args);
|
|
87
|
-
};
|
|
88
|
-
exports.deleteDraftPost = deleteDraftPost;
|
|
89
|
-
const removeFromTrashBin = (...args) => {
|
|
90
|
-
var _a;
|
|
91
|
-
// @ts-expect-error
|
|
92
|
-
if (!globalThis.__wix_context__) {
|
|
93
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
94
|
-
}
|
|
95
|
-
// @ts-expect-error
|
|
96
|
-
return globalThis.__wix_context__
|
|
97
|
-
.initWixModules(blog_v3_draft_public_1.removeFromTrashBin, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
98
|
-
.apply(undefined, args);
|
|
99
|
-
};
|
|
100
|
-
exports.removeFromTrashBin = removeFromTrashBin;
|
|
101
|
-
const bulkDeleteDraftPosts = (...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(blog_v3_draft_public_1.bulkDeleteDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
110
|
-
.apply(undefined, args);
|
|
111
|
-
};
|
|
112
|
-
exports.bulkDeleteDraftPosts = bulkDeleteDraftPosts;
|
|
113
|
-
const listDraftPosts = (...args) => {
|
|
114
|
-
var _a;
|
|
115
|
-
// @ts-expect-error
|
|
116
|
-
if (!globalThis.__wix_context__) {
|
|
117
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
118
|
-
}
|
|
119
|
-
// @ts-expect-error
|
|
120
|
-
return globalThis.__wix_context__
|
|
121
|
-
.initWixModules(blog_v3_draft_public_1.listDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
122
|
-
.apply(undefined, args);
|
|
123
|
-
};
|
|
124
|
-
exports.listDraftPosts = listDraftPosts;
|
|
125
|
-
const getDeletedDraftPost = (...args) => {
|
|
126
|
-
var _a;
|
|
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(blog_v3_draft_public_1.getDeletedDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
134
|
-
.apply(undefined, args);
|
|
135
|
-
};
|
|
136
|
-
exports.getDeletedDraftPost = getDeletedDraftPost;
|
|
137
|
-
const restoreFromTrashBin = (...args) => {
|
|
138
|
-
var _a;
|
|
139
|
-
// @ts-expect-error
|
|
140
|
-
if (!globalThis.__wix_context__) {
|
|
141
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
142
|
-
}
|
|
143
|
-
// @ts-expect-error
|
|
144
|
-
return globalThis.__wix_context__
|
|
145
|
-
.initWixModules(blog_v3_draft_public_1.restoreFromTrashBin, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
146
|
-
.apply(undefined, args);
|
|
147
|
-
};
|
|
148
|
-
exports.restoreFromTrashBin = restoreFromTrashBin;
|
|
149
|
-
const queryDraftPosts = (...args) => {
|
|
150
|
-
var _a;
|
|
151
|
-
// @ts-expect-error
|
|
152
|
-
if (!globalThis.__wix_context__) {
|
|
153
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
154
|
-
}
|
|
155
|
-
// @ts-expect-error
|
|
156
|
-
return globalThis.__wix_context__
|
|
157
|
-
.initWixModules(blog_v3_draft_public_1.queryDraftPosts, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
158
|
-
.apply(undefined, args);
|
|
159
|
-
};
|
|
160
|
-
exports.queryDraftPosts = queryDraftPosts;
|
|
161
|
-
const publishDraftPost = (...args) => {
|
|
162
|
-
var _a;
|
|
163
|
-
// @ts-expect-error
|
|
164
|
-
if (!globalThis.__wix_context__) {
|
|
165
|
-
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
|
|
166
|
-
}
|
|
167
|
-
// @ts-expect-error
|
|
168
|
-
return globalThis.__wix_context__
|
|
169
|
-
.initWixModules(blog_v3_draft_public_1.publishDraftPost, ((_a = args[1]) === null || _a === void 0 ? void 0 : _a.supressAuth) ? true : false)
|
|
170
|
-
.apply(undefined, args);
|
|
171
|
-
};
|
|
172
|
-
exports.publishDraftPost = publishDraftPost;
|
|
173
|
-
//# 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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