@wix/auto_sdk_quick-pages_published-pages 1.0.0
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/index.d.ts +384 -0
- package/build/cjs/index.js +356 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +320 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +194 -0
- package/build/cjs/meta.js +253 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +384 -0
- package/build/es/index.mjs +327 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +291 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +194 -0
- package/build/es/meta.mjs +223 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +63 -0
- package/build/internal/cjs/index.js +356 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +437 -0
- package/build/internal/cjs/index.typings.js +320 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +195 -0
- package/build/internal/cjs/meta.js +253 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +63 -0
- package/build/internal/es/index.mjs +327 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +437 -0
- package/build/internal/es/index.typings.mjs +291 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +195 -0
- package/build/internal/es/meta.mjs +223 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.typings.ts
|
|
21
|
+
var index_typings_exports = {};
|
|
22
|
+
__export(index_typings_exports, {
|
|
23
|
+
SortOrder: () => SortOrder,
|
|
24
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
25
|
+
getPublishedPage: () => getPublishedPage2,
|
|
26
|
+
getPublishedPageByPageId: () => getPublishedPageByPageId2,
|
|
27
|
+
getPublishedPageBySlug: () => getPublishedPageBySlug2,
|
|
28
|
+
queryPublishedPages: () => queryPublishedPages2
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(index_typings_exports);
|
|
31
|
+
|
|
32
|
+
// src/quickpages-v1-published-page-published-pages.universal.ts
|
|
33
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
34
|
+
var import_query_builder = require("@wix/sdk-runtime/query-builder");
|
|
35
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
36
|
+
|
|
37
|
+
// src/quickpages-v1-published-page-published-pages.http.ts
|
|
38
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
39
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
40
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
41
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
42
|
+
function resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(opts) {
|
|
43
|
+
const domainToMappings = {
|
|
44
|
+
_: [
|
|
45
|
+
{
|
|
46
|
+
srcPath: "/_api/quick-pages/v1/published-pages",
|
|
47
|
+
destPath: "/v1/published-pages"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"www.wixapis.com": [
|
|
51
|
+
{
|
|
52
|
+
srcPath: "/quick-pages/v1/published-pages",
|
|
53
|
+
destPath: "/v1/published-pages"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
};
|
|
57
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
58
|
+
}
|
|
59
|
+
var PACKAGE_NAME = "@wix/auto_sdk_quick-pages_published-pages";
|
|
60
|
+
function getPublishedPage(payload) {
|
|
61
|
+
function __getPublishedPage({ host }) {
|
|
62
|
+
const metadata = {
|
|
63
|
+
entityFqdn: "wix.quickpages.v1.published_page",
|
|
64
|
+
method: "GET",
|
|
65
|
+
methodFqn: "wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage",
|
|
66
|
+
packageName: PACKAGE_NAME,
|
|
67
|
+
url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({
|
|
68
|
+
protoPath: "/v1/published-pages/{publishedPageId}",
|
|
69
|
+
data: payload,
|
|
70
|
+
host
|
|
71
|
+
}),
|
|
72
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
73
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
74
|
+
{
|
|
75
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
76
|
+
paths: [
|
|
77
|
+
{ path: "publishedPage.createdDate" },
|
|
78
|
+
{ path: "publishedPage.updatedDate" }
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
])
|
|
82
|
+
};
|
|
83
|
+
return metadata;
|
|
84
|
+
}
|
|
85
|
+
return __getPublishedPage;
|
|
86
|
+
}
|
|
87
|
+
function getPublishedPageBySlug(payload) {
|
|
88
|
+
function __getPublishedPageBySlug({ host }) {
|
|
89
|
+
const metadata = {
|
|
90
|
+
entityFqdn: "wix.quickpages.v1.published_page",
|
|
91
|
+
method: "GET",
|
|
92
|
+
methodFqn: "wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug",
|
|
93
|
+
packageName: PACKAGE_NAME,
|
|
94
|
+
url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({
|
|
95
|
+
protoPath: "/v1/published-pages/{slug}/slug",
|
|
96
|
+
data: payload,
|
|
97
|
+
host
|
|
98
|
+
}),
|
|
99
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
100
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
101
|
+
{
|
|
102
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
103
|
+
paths: [
|
|
104
|
+
{ path: "publishedPage.createdDate" },
|
|
105
|
+
{ path: "publishedPage.updatedDate" }
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
])
|
|
109
|
+
};
|
|
110
|
+
return metadata;
|
|
111
|
+
}
|
|
112
|
+
return __getPublishedPageBySlug;
|
|
113
|
+
}
|
|
114
|
+
function getPublishedPageByPageId(payload) {
|
|
115
|
+
function __getPublishedPageByPageId({ host }) {
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: "wix.quickpages.v1.published_page",
|
|
118
|
+
method: "GET",
|
|
119
|
+
methodFqn: "wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId",
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({
|
|
122
|
+
protoPath: "/v1/published-pages/{pageId}/page-id",
|
|
123
|
+
data: payload,
|
|
124
|
+
host
|
|
125
|
+
}),
|
|
126
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
127
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
128
|
+
{
|
|
129
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
130
|
+
paths: [
|
|
131
|
+
{ path: "publishedPage.createdDate" },
|
|
132
|
+
{ path: "publishedPage.updatedDate" }
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
])
|
|
136
|
+
};
|
|
137
|
+
return metadata;
|
|
138
|
+
}
|
|
139
|
+
return __getPublishedPageByPageId;
|
|
140
|
+
}
|
|
141
|
+
function queryPublishedPages(payload) {
|
|
142
|
+
function __queryPublishedPages({ host }) {
|
|
143
|
+
const metadata = {
|
|
144
|
+
entityFqdn: "wix.quickpages.v1.published_page",
|
|
145
|
+
method: "POST",
|
|
146
|
+
methodFqn: "wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages",
|
|
147
|
+
packageName: PACKAGE_NAME,
|
|
148
|
+
url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({
|
|
149
|
+
protoPath: "/v1/published-pages/query",
|
|
150
|
+
data: payload,
|
|
151
|
+
host
|
|
152
|
+
}),
|
|
153
|
+
data: payload,
|
|
154
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
155
|
+
{
|
|
156
|
+
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
157
|
+
paths: [
|
|
158
|
+
{ path: "publishedPages.createdDate" },
|
|
159
|
+
{ path: "publishedPages.updatedDate" }
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
]),
|
|
163
|
+
fallback: [
|
|
164
|
+
{
|
|
165
|
+
method: "POST",
|
|
166
|
+
url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({
|
|
167
|
+
protoPath: "/v1/published-pages/query",
|
|
168
|
+
data: payload,
|
|
169
|
+
host
|
|
170
|
+
}),
|
|
171
|
+
data: payload
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
};
|
|
175
|
+
return metadata;
|
|
176
|
+
}
|
|
177
|
+
return __queryPublishedPages;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// src/quickpages-v1-published-page-published-pages.universal.ts
|
|
181
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
182
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
183
|
+
SortOrder2["ASC"] = "ASC";
|
|
184
|
+
SortOrder2["DESC"] = "DESC";
|
|
185
|
+
return SortOrder2;
|
|
186
|
+
})(SortOrder || {});
|
|
187
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
188
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
189
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
190
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
191
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
192
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
193
|
+
return WebhookIdentityType2;
|
|
194
|
+
})(WebhookIdentityType || {});
|
|
195
|
+
async function getPublishedPage2(publishedPageId) {
|
|
196
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
197
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
198
|
+
publishedPageId
|
|
199
|
+
});
|
|
200
|
+
const reqOpts = getPublishedPage(payload);
|
|
201
|
+
sideEffects?.onSiteCall?.();
|
|
202
|
+
try {
|
|
203
|
+
const result = await httpClient.request(reqOpts);
|
|
204
|
+
sideEffects?.onSuccess?.(result);
|
|
205
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.publishedPage;
|
|
206
|
+
} catch (err) {
|
|
207
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
208
|
+
err,
|
|
209
|
+
{
|
|
210
|
+
spreadPathsToArguments: {},
|
|
211
|
+
explicitPathsToArguments: { publishedPageId: "$[0]" },
|
|
212
|
+
singleArgumentUnchanged: false
|
|
213
|
+
},
|
|
214
|
+
["publishedPageId"]
|
|
215
|
+
);
|
|
216
|
+
sideEffects?.onError?.(err);
|
|
217
|
+
throw transformedError;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
async function getPublishedPageBySlug2(slug) {
|
|
221
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
222
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ slug });
|
|
223
|
+
const reqOpts = getPublishedPageBySlug(payload);
|
|
224
|
+
sideEffects?.onSiteCall?.();
|
|
225
|
+
try {
|
|
226
|
+
const result = await httpClient.request(reqOpts);
|
|
227
|
+
sideEffects?.onSuccess?.(result);
|
|
228
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
229
|
+
} catch (err) {
|
|
230
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
231
|
+
err,
|
|
232
|
+
{
|
|
233
|
+
spreadPathsToArguments: {},
|
|
234
|
+
explicitPathsToArguments: { slug: "$[0]" },
|
|
235
|
+
singleArgumentUnchanged: false
|
|
236
|
+
},
|
|
237
|
+
["slug"]
|
|
238
|
+
);
|
|
239
|
+
sideEffects?.onError?.(err);
|
|
240
|
+
throw transformedError;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async function getPublishedPageByPageId2(pageId) {
|
|
244
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
245
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ pageId });
|
|
246
|
+
const reqOpts = getPublishedPageByPageId(payload);
|
|
247
|
+
sideEffects?.onSiteCall?.();
|
|
248
|
+
try {
|
|
249
|
+
const result = await httpClient.request(reqOpts);
|
|
250
|
+
sideEffects?.onSuccess?.(result);
|
|
251
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
252
|
+
} catch (err) {
|
|
253
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
254
|
+
err,
|
|
255
|
+
{
|
|
256
|
+
spreadPathsToArguments: {},
|
|
257
|
+
explicitPathsToArguments: { pageId: "$[0]" },
|
|
258
|
+
singleArgumentUnchanged: false
|
|
259
|
+
},
|
|
260
|
+
["pageId"]
|
|
261
|
+
);
|
|
262
|
+
sideEffects?.onError?.(err);
|
|
263
|
+
throw transformedError;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
function queryPublishedPages2() {
|
|
267
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
268
|
+
return (0, import_query_builder.queryBuilder)({
|
|
269
|
+
func: async (payload) => {
|
|
270
|
+
const reqOpts = queryPublishedPages(payload);
|
|
271
|
+
sideEffects?.onSiteCall?.();
|
|
272
|
+
try {
|
|
273
|
+
const result = await httpClient.request(reqOpts);
|
|
274
|
+
sideEffects?.onSuccess?.(result);
|
|
275
|
+
return result;
|
|
276
|
+
} catch (err) {
|
|
277
|
+
sideEffects?.onError?.(err);
|
|
278
|
+
throw err;
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
requestTransformer: (query) => {
|
|
282
|
+
const args = [query, {}];
|
|
283
|
+
return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
284
|
+
...args?.[1],
|
|
285
|
+
query: args?.[0]
|
|
286
|
+
});
|
|
287
|
+
},
|
|
288
|
+
responseTransformer: ({
|
|
289
|
+
data
|
|
290
|
+
}) => {
|
|
291
|
+
const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
292
|
+
(0, import_transform_paths2.transformPaths)(data, [])
|
|
293
|
+
);
|
|
294
|
+
return {
|
|
295
|
+
items: transformedData?.publishedPages,
|
|
296
|
+
pagingMetadata: transformedData?.pagingMetadata
|
|
297
|
+
};
|
|
298
|
+
},
|
|
299
|
+
errorTransformer: (err) => {
|
|
300
|
+
const transformedError = (0, import_transform_error.transformError)(err, {
|
|
301
|
+
spreadPathsToArguments: {},
|
|
302
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
303
|
+
singleArgumentUnchanged: false
|
|
304
|
+
});
|
|
305
|
+
throw transformedError;
|
|
306
|
+
},
|
|
307
|
+
pagingMethod: "CURSOR",
|
|
308
|
+
transformationPaths: {}
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
312
|
+
0 && (module.exports = {
|
|
313
|
+
SortOrder,
|
|
314
|
+
WebhookIdentityType,
|
|
315
|
+
getPublishedPage,
|
|
316
|
+
getPublishedPageByPageId,
|
|
317
|
+
getPublishedPageBySlug,
|
|
318
|
+
queryPublishedPages
|
|
319
|
+
});
|
|
320
|
+
//# sourceMappingURL=index.typings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../index.typings.ts","../../src/quickpages-v1-published-page-published-pages.universal.ts","../../src/quickpages-v1-published-page-published-pages.http.ts"],"sourcesContent":["export * from './src/quickpages-v1-published-page-published-pages.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixQuickpagesV1PublishedPage from './quickpages-v1-published-page-published-pages.http.js';\n// @ts-ignore\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** A PublishedPage of QuickPages */\nexport interface PublishedPage {\n /**\n * PublishedPage ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Revision number, which increments by 1 each time the PublishedPage is updated.\n * To prevent conflicting changes,\n * the current revision must be passed when updating the PublishedPage.\n *\n * Ignored when creating a PublishedPage.\n * @readonly\n */\n revision?: string | null;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n pageId?: string;\n /**\n * QuickPage page ID.\n * @format GUID\n * @immutable\n */\n contentId?: string;\n /**\n * Page slug used in the URL.\n * @minLength 3\n * @maxLength 100\n */\n slug?: string;\n /**\n * Date and time the PublishedPage was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the PublishedPage was last updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n}\n\nexport interface GetPublishedPageRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n publishedPageId: string;\n}\n\nexport interface GetPublishedPageResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageBySlugRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @minLength 3\n * @maxLength 100\n */\n slug: string;\n}\n\nexport interface GetPublishedPageBySlugResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface GetPublishedPageByPageIdRequest {\n /**\n * ID of the PublishedPage to retrieve.\n * @format GUID\n */\n pageId: string;\n}\n\nexport interface GetPublishedPageByPageIdResponse {\n /** The requested PublishedPage. */\n publishedPage?: PublishedPage;\n}\n\nexport interface QueryPublishedPagesRequest {\n /** WQL expression. */\n query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n /**\n * Filter object in the following format:\n * `\"filter\" : {\n * \"fieldName1\": \"value1\",\n * \"fieldName2\":{\"$operator\":\"value2\"}\n * }`\n * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object in the following format:\n * `[{\"fieldName\":\"sortField1\",\"order\":\"ASC\"},{\"fieldName\":\"sortField2\",\"order\":\"DESC\"}]`\n * @maxSize 5\n */\n sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n /**\n * Name of the field to sort by.\n * @maxLength 512\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface CursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface QueryPublishedPagesResponse {\n /** List of PublishedPages. */\n publishedPages?: PublishedPage[];\n /** Paging metadata */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in the response. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\ntype PublishedPageNonNullablePaths = `pageId` | `contentId` | `slug`;\n\n/**\n * Retrieves a PublishedPage.\n * @param publishedPageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField publishedPageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @returns The requested PublishedPage.\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage\n */\nexport async function getPublishedPage(\n publishedPageId: string\n): Promise<NonNullablePaths<PublishedPage, PublishedPageNonNullablePaths>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n publishedPageId: publishedPageId,\n });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPage(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)?.publishedPage!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { publishedPageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['publishedPageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param slug - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField slug\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug\n */\nexport async function getPublishedPageBySlug(\n slug: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageBySlugResponse,\n {\n [P in PublishedPageNonNullablePaths]: `publishedPage.${P}`;\n }[PublishedPageNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ slug: slug });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageBySlug(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { slug: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['slug']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a PublishedPage by slug.\n * @param pageId - ID of the PublishedPage to retrieve.\n * @internal\n * @documentationMaturity preview\n * @requiredField pageId\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId\n */\nexport async function getPublishedPageByPageId(\n pageId: string\n): Promise<\n NonNullablePaths<\n GetPublishedPageByPageIdResponse,\n {\n [P in PublishedPageNonNullablePaths]: `publishedPage.${P}`;\n }[PublishedPageNonNullablePaths]\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ pageId: pageId });\n\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.getPublishedPageByPageId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { pageId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['pageId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n * @internal\n * @documentationMaturity preview\n * @permissionId QUICK_PAGES.PUBLISHED_PAGE_READ\n * @fqn wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages\n */\nexport function queryPublishedPages(): PublishedPagesQueryBuilder {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[0] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n return queryBuilder<\n PublishedPage,\n 'CURSOR',\n QueryPublishedPagesRequest,\n QueryPublishedPagesResponse\n >({\n func: async (payload: QueryPublishedPagesRequest) => {\n const reqOpts =\n ambassadorWixQuickpagesV1PublishedPage.queryPublishedPages(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n return result;\n } catch (err) {\n sideEffects?.onError?.(err);\n throw err;\n }\n },\n requestTransformer: (query: QueryPublishedPagesRequest['query']) => {\n const args = [query, {}] as [QueryPublishedPagesRequest['query'], {}];\n return renameKeysFromSDKRequestToRESTRequest({\n ...args?.[1],\n query: args?.[0],\n });\n },\n responseTransformer: ({\n data,\n }: HttpResponse<QueryPublishedPagesResponse>) => {\n const transformedData = renameKeysFromRESTResponseToSDKResponse(\n transformPaths(data, [])\n );\n\n return {\n items: transformedData?.publishedPages,\n pagingMetadata: transformedData?.pagingMetadata,\n };\n },\n errorTransformer: (err: unknown) => {\n const transformedError = sdkTransformError(err, {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { query: '$[0]' },\n singleArgumentUnchanged: false,\n });\n\n throw transformedError;\n },\n pagingMethod: 'CURSOR',\n transformationPaths: {},\n });\n}\n\ninterface QueryCursorResult {\n cursors: Cursors;\n hasNext: () => boolean;\n hasPrev: () => boolean;\n length: number;\n pageSize: number;\n}\n\nexport interface PublishedPagesQueryResult extends QueryCursorResult {\n items: PublishedPage[];\n query: PublishedPagesQueryBuilder;\n next: () => Promise<PublishedPagesQueryResult>;\n prev: () => Promise<PublishedPagesQueryResult>;\n}\n\nexport interface PublishedPagesQueryBuilder {\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n eq: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ne: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n ge: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n gt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n le: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `value`.\n * @param value - Value to compare against.\n * @documentationMaturity preview\n */\n lt: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `string`.\n * @param string - String to compare against. Case-insensitive.\n * @documentationMaturity preview\n */\n startsWith: (\n propertyName: '_id',\n value: string\n ) => PublishedPagesQueryBuilder;\n /** @param propertyName - Property whose value is compared with `values`.\n * @param values - List of values to compare against.\n * @documentationMaturity preview\n */\n hasSome: (propertyName: '_id', value: any[]) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n in: (propertyName: '_id', value: any) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n exists: (propertyName: '_id', value: boolean) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n ascending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n * @documentationMaturity preview\n */\n descending: (...propertyNames: Array<'_id'>) => PublishedPagesQueryBuilder;\n /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n * @documentationMaturity preview\n */\n limit: (limit: number) => PublishedPagesQueryBuilder;\n /** @param cursor - A pointer to specific record\n * @documentationMaturity preview\n */\n skipTo: (cursor: string) => PublishedPagesQueryBuilder;\n /** @documentationMaturity preview */\n find: () => Promise<PublishedPagesQueryResult>;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n _: [\n {\n srcPath: '/_api/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/quick-pages/v1/published-pages',\n destPath: '/v1/published-pages',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_quick-pages_published-pages';\n\n/** Retrieves a PublishedPage. */\nexport function getPublishedPage(payload: object): RequestOptionsFactory<any> {\n function __getPublishedPage({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPage',\n packageName: PACKAGE_NAME,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{publishedPageId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPage;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageBySlug(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageBySlug({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageBySlug',\n packageName: PACKAGE_NAME,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{slug}/slug',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageBySlug;\n}\n\n/** Retrieves a PublishedPage by slug. */\nexport function getPublishedPageByPageId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getPublishedPageByPageId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'GET' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.GetPublishedPageByPageId',\n packageName: PACKAGE_NAME,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/{pageId}/page-id',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPage.createdDate' },\n { path: 'publishedPage.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getPublishedPageByPageId;\n}\n\n/**\n * Retrieves a list of PublishedPages, given the provided [paging, filtering, and sorting][1].\n *\n * Up to 1,000 PublishedPages can be returned per request.\n *\n * To learn how to query PublishedPages, see [API Query Language][2].\n *\n * [1]: https://dev.wix.com/api/rest/getting-started/sorting-and-paging\n * [2]: https://dev.wix.com/api/rest/getting-started/api-query-language\n */\nexport function queryPublishedPages(\n payload: object\n): RequestOptionsFactory<any> {\n function __queryPublishedPages({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.quickpages.v1.published_page',\n method: 'POST' as any,\n methodFqn:\n 'wix.quickpages.publishedpages.v1.PublishedPages.QueryPublishedPages',\n packageName: PACKAGE_NAME,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'publishedPages.createdDate' },\n { path: 'publishedPages.updatedDate' },\n ],\n },\n ]),\n fallback: [\n {\n method: 'POST' as any,\n url: resolveWixQuickpagesPublishedpagesV1PublishedPagesUrl({\n protoPath: '/v1/published-pages/query',\n data: payload,\n host,\n }),\n data: payload,\n },\n ],\n };\n\n return metadata;\n }\n\n return __queryPublishedPages;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,8BAAAC;AAAA,EAAA,2BAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,2BAA6B;AAC7B,oCAGO;;;ACLP,0BAAkC;AAClC,uBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,sDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,aAAO,iCAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;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A,MACzB;AAEA,aAAO;AAAA,QACL,OAAO,iBAAiB;AAAA,QACxB,gBAAgB,iBAAiB;AAAA,MACnC;AAAA,IACF;AAAA,IACA,kBAAkB,CAAC,QAAiB;AAClC,YAAM,uBAAmB,uBAAAH,gBAAkB,KAAK;AAAA,QAC9C,wBAAwB,CAAC;AAAA,QACzB,0BAA0B,EAAE,OAAO,OAAO;AAAA,QAC1C,yBAAyB;AAAA,MAC3B,CAAC;AAED,YAAM;AAAA,IACR;AAAA,IACA,cAAc;AAAA,IACd,qBAAqB,CAAC;AAAA,EACxB,CAAC;AACH;","names":["getPublishedPage","getPublishedPageByPageId","getPublishedPageBySlug","queryPublishedPages","import_rest_modules","payload","import_transform_paths","SortOrder","WebhookIdentityType","getPublishedPage","sdkTransformError","getPublishedPageBySlug","getPublishedPageByPageId","queryPublishedPages"]}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { GetPublishedPageRequest as GetPublishedPageRequest$1, GetPublishedPageResponse as GetPublishedPageResponse$1, GetPublishedPageBySlugRequest as GetPublishedPageBySlugRequest$1, GetPublishedPageBySlugResponse as GetPublishedPageBySlugResponse$1, GetPublishedPageByPageIdRequest as GetPublishedPageByPageIdRequest$1, GetPublishedPageByPageIdResponse as GetPublishedPageByPageIdResponse$1, QueryPublishedPagesRequest as QueryPublishedPagesRequest$1, QueryPublishedPagesResponse as QueryPublishedPagesResponse$1 } from './index.js';
|
|
2
|
+
|
|
3
|
+
/** A PublishedPage of QuickPages */
|
|
4
|
+
interface PublishedPage {
|
|
5
|
+
/**
|
|
6
|
+
* PublishedPage ID.
|
|
7
|
+
* @format GUID
|
|
8
|
+
* @readonly
|
|
9
|
+
*/
|
|
10
|
+
id?: string | null;
|
|
11
|
+
/**
|
|
12
|
+
* Revision number, which increments by 1 each time the PublishedPage is updated.
|
|
13
|
+
* To prevent conflicting changes,
|
|
14
|
+
* the current revision must be passed when updating the PublishedPage.
|
|
15
|
+
*
|
|
16
|
+
* Ignored when creating a PublishedPage.
|
|
17
|
+
* @readonly
|
|
18
|
+
*/
|
|
19
|
+
revision?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* QuickPage page ID.
|
|
22
|
+
* @format GUID
|
|
23
|
+
* @immutable
|
|
24
|
+
*/
|
|
25
|
+
pageId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* QuickPage page ID.
|
|
28
|
+
* @format GUID
|
|
29
|
+
* @immutable
|
|
30
|
+
*/
|
|
31
|
+
contentId?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Page slug used in the URL.
|
|
34
|
+
* @minLength 3
|
|
35
|
+
* @maxLength 100
|
|
36
|
+
*/
|
|
37
|
+
slug?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Date and time the PublishedPage was created.
|
|
40
|
+
* @readonly
|
|
41
|
+
*/
|
|
42
|
+
createdDate?: Date | null;
|
|
43
|
+
/**
|
|
44
|
+
* Date and time the PublishedPage was last updated.
|
|
45
|
+
* @readonly
|
|
46
|
+
*/
|
|
47
|
+
updatedDate?: Date | null;
|
|
48
|
+
}
|
|
49
|
+
interface GetPublishedPageRequest {
|
|
50
|
+
/**
|
|
51
|
+
* ID of the PublishedPage to retrieve.
|
|
52
|
+
* @format GUID
|
|
53
|
+
*/
|
|
54
|
+
publishedPageId: string;
|
|
55
|
+
}
|
|
56
|
+
interface GetPublishedPageResponse {
|
|
57
|
+
/** The requested PublishedPage. */
|
|
58
|
+
publishedPage?: PublishedPage;
|
|
59
|
+
}
|
|
60
|
+
interface GetPublishedPageBySlugRequest {
|
|
61
|
+
/**
|
|
62
|
+
* ID of the PublishedPage to retrieve.
|
|
63
|
+
* @minLength 3
|
|
64
|
+
* @maxLength 100
|
|
65
|
+
*/
|
|
66
|
+
slug: string;
|
|
67
|
+
}
|
|
68
|
+
interface GetPublishedPageBySlugResponse {
|
|
69
|
+
/** The requested PublishedPage. */
|
|
70
|
+
publishedPage?: PublishedPage;
|
|
71
|
+
}
|
|
72
|
+
interface GetPublishedPageByPageIdRequest {
|
|
73
|
+
/**
|
|
74
|
+
* ID of the PublishedPage to retrieve.
|
|
75
|
+
* @format GUID
|
|
76
|
+
*/
|
|
77
|
+
pageId: string;
|
|
78
|
+
}
|
|
79
|
+
interface GetPublishedPageByPageIdResponse {
|
|
80
|
+
/** The requested PublishedPage. */
|
|
81
|
+
publishedPage?: PublishedPage;
|
|
82
|
+
}
|
|
83
|
+
interface QueryPublishedPagesRequest {
|
|
84
|
+
/** WQL expression. */
|
|
85
|
+
query?: CursorQuery;
|
|
86
|
+
}
|
|
87
|
+
interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
88
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
89
|
+
cursorPaging?: CursorPaging;
|
|
90
|
+
/**
|
|
91
|
+
* Filter object in the following format:
|
|
92
|
+
* `"filter" : {
|
|
93
|
+
* "fieldName1": "value1",
|
|
94
|
+
* "fieldName2":{"$operator":"value2"}
|
|
95
|
+
* }`
|
|
96
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
97
|
+
*/
|
|
98
|
+
filter?: Record<string, any> | null;
|
|
99
|
+
/**
|
|
100
|
+
* Sort object in the following format:
|
|
101
|
+
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
102
|
+
* @maxSize 5
|
|
103
|
+
*/
|
|
104
|
+
sort?: Sorting[];
|
|
105
|
+
}
|
|
106
|
+
/** @oneof */
|
|
107
|
+
interface CursorQueryPagingMethodOneOf {
|
|
108
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
109
|
+
cursorPaging?: CursorPaging;
|
|
110
|
+
}
|
|
111
|
+
interface Sorting {
|
|
112
|
+
/**
|
|
113
|
+
* Name of the field to sort by.
|
|
114
|
+
* @maxLength 512
|
|
115
|
+
*/
|
|
116
|
+
fieldName?: string;
|
|
117
|
+
/** Sort order. */
|
|
118
|
+
order?: SortOrderWithLiterals;
|
|
119
|
+
}
|
|
120
|
+
declare enum SortOrder {
|
|
121
|
+
ASC = "ASC",
|
|
122
|
+
DESC = "DESC"
|
|
123
|
+
}
|
|
124
|
+
/** @enumType */
|
|
125
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
126
|
+
interface CursorPaging {
|
|
127
|
+
/**
|
|
128
|
+
* Maximum number of items to return in the results.
|
|
129
|
+
* @max 100
|
|
130
|
+
*/
|
|
131
|
+
limit?: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* Pointer to the next or previous page in the list of results.
|
|
134
|
+
*
|
|
135
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
136
|
+
* Not relevant for the first request.
|
|
137
|
+
* @maxLength 16000
|
|
138
|
+
*/
|
|
139
|
+
cursor?: string | null;
|
|
140
|
+
}
|
|
141
|
+
interface QueryPublishedPagesResponse {
|
|
142
|
+
/** List of PublishedPages. */
|
|
143
|
+
publishedPages?: PublishedPage[];
|
|
144
|
+
/** Paging metadata */
|
|
145
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
146
|
+
}
|
|
147
|
+
interface CursorPagingMetadata {
|
|
148
|
+
/** Number of items returned in the response. */
|
|
149
|
+
count?: number | null;
|
|
150
|
+
/** Cursor strings that point to the next page, previous page, or both. */
|
|
151
|
+
cursors?: Cursors;
|
|
152
|
+
/**
|
|
153
|
+
* Whether there are more pages to retrieve following the current page.
|
|
154
|
+
*
|
|
155
|
+
* + `true`: Another page of results can be retrieved.
|
|
156
|
+
* + `false`: This is the last page.
|
|
157
|
+
*/
|
|
158
|
+
hasNext?: boolean | null;
|
|
159
|
+
}
|
|
160
|
+
interface Cursors {
|
|
161
|
+
/**
|
|
162
|
+
* Cursor string pointing to the next page in the list of results.
|
|
163
|
+
* @maxLength 16000
|
|
164
|
+
*/
|
|
165
|
+
next?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Cursor pointing to the previous page in the list of results.
|
|
168
|
+
* @maxLength 16000
|
|
169
|
+
*/
|
|
170
|
+
prev?: string | null;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
174
|
+
getUrl: (context: any) => string;
|
|
175
|
+
httpMethod: K;
|
|
176
|
+
path: string;
|
|
177
|
+
pathParams: M;
|
|
178
|
+
__requestType: T;
|
|
179
|
+
__originalRequestType: S;
|
|
180
|
+
__responseType: Q;
|
|
181
|
+
__originalResponseType: R;
|
|
182
|
+
};
|
|
183
|
+
declare function getPublishedPage(): __PublicMethodMetaInfo<'GET', {
|
|
184
|
+
publishedPageId: string;
|
|
185
|
+
}, GetPublishedPageRequest$1, GetPublishedPageRequest, GetPublishedPageResponse$1, GetPublishedPageResponse>;
|
|
186
|
+
declare function getPublishedPageBySlug(): __PublicMethodMetaInfo<'GET', {
|
|
187
|
+
slug: string;
|
|
188
|
+
}, GetPublishedPageBySlugRequest$1, GetPublishedPageBySlugRequest, GetPublishedPageBySlugResponse$1, GetPublishedPageBySlugResponse>;
|
|
189
|
+
declare function getPublishedPageByPageId(): __PublicMethodMetaInfo<'GET', {
|
|
190
|
+
pageId: string;
|
|
191
|
+
}, GetPublishedPageByPageIdRequest$1, GetPublishedPageByPageIdRequest, GetPublishedPageByPageIdResponse$1, GetPublishedPageByPageIdResponse>;
|
|
192
|
+
declare function queryPublishedPages(): __PublicMethodMetaInfo<'GET', {}, QueryPublishedPagesRequest$1, QueryPublishedPagesRequest, QueryPublishedPagesResponse$1, QueryPublishedPagesResponse>;
|
|
193
|
+
|
|
194
|
+
export { type __PublicMethodMetaInfo, getPublishedPage, getPublishedPageByPageId, getPublishedPageBySlug, queryPublishedPages };
|