@wix/auto_sdk_papyrus_documents 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 +115 -0
- package/build/cjs/index.js +1101 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1465 -0
- package/build/cjs/index.typings.js +863 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1030 -0
- package/build/cjs/meta.js +705 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +411 -0
- package/build/cjs/schemas.js +658 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +115 -0
- package/build/es/index.mjs +1050 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1465 -0
- package/build/es/index.typings.mjs +817 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1030 -0
- package/build/es/meta.mjs +658 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +411 -0
- package/build/es/schemas.mjs +602 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +115 -0
- package/build/internal/cjs/index.js +1101 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1465 -0
- package/build/internal/cjs/index.typings.js +863 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1030 -0
- package/build/internal/cjs/meta.js +705 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +411 -0
- package/build/internal/cjs/schemas.js +658 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +115 -0
- package/build/internal/es/index.mjs +1050 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1465 -0
- package/build/internal/es/index.typings.mjs +817 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1030 -0
- package/build/internal/es/meta.mjs +658 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +411 -0
- package/build/internal/es/schemas.mjs +602 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
// src/papyrus-v1-document-documents.http.ts
|
|
2
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
4
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
6
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
7
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
8
|
+
function resolveWixPapyrusV1DocumentServiceUrl(opts) {
|
|
9
|
+
const domainToMappings = {
|
|
10
|
+
"api._base_domain_": [
|
|
11
|
+
{
|
|
12
|
+
srcPath: "/papyrus-document",
|
|
13
|
+
destPath: ""
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"www.wixapis.com": [
|
|
17
|
+
{
|
|
18
|
+
srcPath: "/papyrus-document/v1/documents",
|
|
19
|
+
destPath: "/v1/documents"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"papyrus.wixapps.net": [
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/download",
|
|
25
|
+
destPath: "/download"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
srcPath: "/papyrus-document",
|
|
29
|
+
destPath: ""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
srcPath: "/view",
|
|
33
|
+
destPath: "/view"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"manage._base_domain_": [
|
|
37
|
+
{
|
|
38
|
+
srcPath: "/papyrus-document",
|
|
39
|
+
destPath: ""
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"api._api_base_domain_": [
|
|
43
|
+
{
|
|
44
|
+
srcPath: "/papyrus-document",
|
|
45
|
+
destPath: ""
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
};
|
|
49
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
50
|
+
}
|
|
51
|
+
function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
|
|
52
|
+
const domainToMappings = {
|
|
53
|
+
"api._base_domain_": [
|
|
54
|
+
{
|
|
55
|
+
srcPath: "/papyrus-document",
|
|
56
|
+
destPath: ""
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"www.wixapis.com": [
|
|
60
|
+
{
|
|
61
|
+
srcPath: "/papyrus-document/v1/documents",
|
|
62
|
+
destPath: "/v1/documents"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"papyrus.wixapps.net": [
|
|
66
|
+
{
|
|
67
|
+
srcPath: "/download",
|
|
68
|
+
destPath: "/download"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
srcPath: "/papyrus-document",
|
|
72
|
+
destPath: ""
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
srcPath: "/view",
|
|
76
|
+
destPath: "/view"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"manage._base_domain_": [
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/papyrus-document",
|
|
82
|
+
destPath: ""
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"api._api_base_domain_": [
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/papyrus-document",
|
|
88
|
+
destPath: ""
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
};
|
|
92
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
93
|
+
}
|
|
94
|
+
var PACKAGE_NAME = "@wix/auto_sdk_papyrus_documents";
|
|
95
|
+
function getDownloadPage(payload) {
|
|
96
|
+
function __getDownloadPage({ host }) {
|
|
97
|
+
const metadata = {
|
|
98
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
99
|
+
method: "GET",
|
|
100
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.GetDownloadPage",
|
|
101
|
+
packageName: PACKAGE_NAME,
|
|
102
|
+
migrationOptions: {
|
|
103
|
+
optInTransformResponse: true
|
|
104
|
+
},
|
|
105
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
106
|
+
protoPath: "/download",
|
|
107
|
+
data: payload,
|
|
108
|
+
host
|
|
109
|
+
}),
|
|
110
|
+
params: toURLSearchParams(payload),
|
|
111
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
112
|
+
{
|
|
113
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
114
|
+
paths: [{ path: "body" }]
|
|
115
|
+
}
|
|
116
|
+
])
|
|
117
|
+
};
|
|
118
|
+
return metadata;
|
|
119
|
+
}
|
|
120
|
+
return __getDownloadPage;
|
|
121
|
+
}
|
|
122
|
+
function redirectToDocument(payload) {
|
|
123
|
+
function __redirectToDocument({ host }) {
|
|
124
|
+
const metadata = {
|
|
125
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
126
|
+
method: "GET",
|
|
127
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.RedirectToDocument",
|
|
128
|
+
packageName: PACKAGE_NAME,
|
|
129
|
+
migrationOptions: {
|
|
130
|
+
optInTransformResponse: true
|
|
131
|
+
},
|
|
132
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
133
|
+
protoPath: "/view",
|
|
134
|
+
data: payload,
|
|
135
|
+
host
|
|
136
|
+
}),
|
|
137
|
+
params: toURLSearchParams(payload),
|
|
138
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
139
|
+
{
|
|
140
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
141
|
+
paths: [{ path: "body" }]
|
|
142
|
+
}
|
|
143
|
+
])
|
|
144
|
+
};
|
|
145
|
+
return metadata;
|
|
146
|
+
}
|
|
147
|
+
return __redirectToDocument;
|
|
148
|
+
}
|
|
149
|
+
function createDocument(payload) {
|
|
150
|
+
function __createDocument({ host }) {
|
|
151
|
+
const serializedData = transformPaths(payload, [
|
|
152
|
+
{
|
|
153
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
154
|
+
paths: [
|
|
155
|
+
{ path: "document.createdDate" },
|
|
156
|
+
{ path: "document.updatedDate" },
|
|
157
|
+
{ path: "document.expirationDate" }
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
]);
|
|
161
|
+
const metadata = {
|
|
162
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
163
|
+
method: "POST",
|
|
164
|
+
methodFqn: "wix.papyrus.v1.DocumentService.CreateDocument",
|
|
165
|
+
packageName: PACKAGE_NAME,
|
|
166
|
+
migrationOptions: {
|
|
167
|
+
optInTransformResponse: true
|
|
168
|
+
},
|
|
169
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
170
|
+
protoPath: "/v1/documents",
|
|
171
|
+
data: serializedData,
|
|
172
|
+
host
|
|
173
|
+
}),
|
|
174
|
+
data: serializedData,
|
|
175
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
176
|
+
{
|
|
177
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
178
|
+
paths: [
|
|
179
|
+
{ path: "document.createdDate" },
|
|
180
|
+
{ path: "document.updatedDate" },
|
|
181
|
+
{ path: "document.expirationDate" }
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
])
|
|
185
|
+
};
|
|
186
|
+
return metadata;
|
|
187
|
+
}
|
|
188
|
+
return __createDocument;
|
|
189
|
+
}
|
|
190
|
+
function getDocument(payload) {
|
|
191
|
+
function __getDocument({ host }) {
|
|
192
|
+
const metadata = {
|
|
193
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
194
|
+
method: "GET",
|
|
195
|
+
methodFqn: "wix.papyrus.v1.DocumentService.GetDocument",
|
|
196
|
+
packageName: PACKAGE_NAME,
|
|
197
|
+
migrationOptions: {
|
|
198
|
+
optInTransformResponse: true
|
|
199
|
+
},
|
|
200
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
201
|
+
protoPath: "/v1/documents/{documentId}",
|
|
202
|
+
data: payload,
|
|
203
|
+
host
|
|
204
|
+
}),
|
|
205
|
+
params: toURLSearchParams(payload),
|
|
206
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
207
|
+
{
|
|
208
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
209
|
+
paths: [
|
|
210
|
+
{ path: "document.createdDate" },
|
|
211
|
+
{ path: "document.updatedDate" },
|
|
212
|
+
{ path: "document.expirationDate" }
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
])
|
|
216
|
+
};
|
|
217
|
+
return metadata;
|
|
218
|
+
}
|
|
219
|
+
return __getDocument;
|
|
220
|
+
}
|
|
221
|
+
function deleteDocument(payload) {
|
|
222
|
+
function __deleteDocument({ host }) {
|
|
223
|
+
const metadata = {
|
|
224
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
225
|
+
method: "DELETE",
|
|
226
|
+
methodFqn: "wix.papyrus.v1.DocumentService.DeleteDocument",
|
|
227
|
+
packageName: PACKAGE_NAME,
|
|
228
|
+
migrationOptions: {
|
|
229
|
+
optInTransformResponse: true
|
|
230
|
+
},
|
|
231
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
232
|
+
protoPath: "/v1/documents/{documentId}",
|
|
233
|
+
data: payload,
|
|
234
|
+
host
|
|
235
|
+
}),
|
|
236
|
+
params: toURLSearchParams(payload),
|
|
237
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
238
|
+
{
|
|
239
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
240
|
+
paths: [
|
|
241
|
+
{ path: "document.createdDate" },
|
|
242
|
+
{ path: "document.updatedDate" },
|
|
243
|
+
{ path: "document.expirationDate" }
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
])
|
|
247
|
+
};
|
|
248
|
+
return metadata;
|
|
249
|
+
}
|
|
250
|
+
return __deleteDocument;
|
|
251
|
+
}
|
|
252
|
+
function queryDocument(payload) {
|
|
253
|
+
function __queryDocument({ host }) {
|
|
254
|
+
const metadata = {
|
|
255
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
256
|
+
method: "POST",
|
|
257
|
+
methodFqn: "wix.papyrus.v1.DocumentService.QueryDocument",
|
|
258
|
+
packageName: PACKAGE_NAME,
|
|
259
|
+
migrationOptions: {
|
|
260
|
+
optInTransformResponse: true
|
|
261
|
+
},
|
|
262
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
263
|
+
protoPath: "/v1/documents/query",
|
|
264
|
+
data: payload,
|
|
265
|
+
host
|
|
266
|
+
}),
|
|
267
|
+
data: payload,
|
|
268
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
269
|
+
{
|
|
270
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
271
|
+
paths: [
|
|
272
|
+
{ path: "documents.createdDate" },
|
|
273
|
+
{ path: "documents.updatedDate" },
|
|
274
|
+
{ path: "documents.expirationDate" }
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
])
|
|
278
|
+
};
|
|
279
|
+
return metadata;
|
|
280
|
+
}
|
|
281
|
+
return __queryDocument;
|
|
282
|
+
}
|
|
283
|
+
function updateDocument(payload) {
|
|
284
|
+
function __updateDocument({ host }) {
|
|
285
|
+
const metadata = {
|
|
286
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
287
|
+
method: "PATCH",
|
|
288
|
+
methodFqn: "wix.papyrus.v1.DocumentService.UpdateDocument",
|
|
289
|
+
packageName: PACKAGE_NAME,
|
|
290
|
+
migrationOptions: {
|
|
291
|
+
optInTransformResponse: true
|
|
292
|
+
},
|
|
293
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
294
|
+
protoPath: "/v1/documents/{id}",
|
|
295
|
+
data: payload,
|
|
296
|
+
host
|
|
297
|
+
}),
|
|
298
|
+
data: payload,
|
|
299
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
300
|
+
{
|
|
301
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
302
|
+
paths: [
|
|
303
|
+
{ path: "document.createdDate" },
|
|
304
|
+
{ path: "document.updatedDate" },
|
|
305
|
+
{ path: "document.expirationDate" }
|
|
306
|
+
]
|
|
307
|
+
}
|
|
308
|
+
])
|
|
309
|
+
};
|
|
310
|
+
return metadata;
|
|
311
|
+
}
|
|
312
|
+
return __updateDocument;
|
|
313
|
+
}
|
|
314
|
+
function downloadDocument(payload) {
|
|
315
|
+
function __downloadDocument({ host }) {
|
|
316
|
+
const metadata = {
|
|
317
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
318
|
+
method: "GET",
|
|
319
|
+
methodFqn: "wix.papyrus.v1.DocumentService.DownloadDocument",
|
|
320
|
+
packageName: PACKAGE_NAME,
|
|
321
|
+
migrationOptions: {
|
|
322
|
+
optInTransformResponse: true
|
|
323
|
+
},
|
|
324
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
325
|
+
protoPath: "/v1/documents/download/{documentId}",
|
|
326
|
+
data: payload,
|
|
327
|
+
host
|
|
328
|
+
}),
|
|
329
|
+
params: toURLSearchParams(payload),
|
|
330
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
331
|
+
{
|
|
332
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
333
|
+
paths: [{ path: "expirationDate" }]
|
|
334
|
+
}
|
|
335
|
+
])
|
|
336
|
+
};
|
|
337
|
+
return metadata;
|
|
338
|
+
}
|
|
339
|
+
return __downloadDocument;
|
|
340
|
+
}
|
|
341
|
+
function getDownloadUrl(payload) {
|
|
342
|
+
function __getDownloadUrl({ host }) {
|
|
343
|
+
const metadata = {
|
|
344
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
345
|
+
method: "GET",
|
|
346
|
+
methodFqn: "wix.papyrus.v1.DocumentService.GetDownloadUrl",
|
|
347
|
+
packageName: PACKAGE_NAME,
|
|
348
|
+
migrationOptions: {
|
|
349
|
+
optInTransformResponse: true
|
|
350
|
+
},
|
|
351
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
352
|
+
protoPath: "/v1/documents/download-url",
|
|
353
|
+
data: payload,
|
|
354
|
+
host
|
|
355
|
+
}),
|
|
356
|
+
params: toURLSearchParams(payload),
|
|
357
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
358
|
+
{
|
|
359
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
360
|
+
paths: [{ path: "expirationDate" }]
|
|
361
|
+
}
|
|
362
|
+
])
|
|
363
|
+
};
|
|
364
|
+
return metadata;
|
|
365
|
+
}
|
|
366
|
+
return __getDownloadUrl;
|
|
367
|
+
}
|
|
368
|
+
function downloadDocumentSource(payload) {
|
|
369
|
+
function __downloadDocumentSource({ host }) {
|
|
370
|
+
const metadata = {
|
|
371
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
372
|
+
method: "GET",
|
|
373
|
+
methodFqn: "wix.papyrus.v1.DocumentService.DownloadDocumentSource",
|
|
374
|
+
packageName: PACKAGE_NAME,
|
|
375
|
+
migrationOptions: {
|
|
376
|
+
optInTransformResponse: true
|
|
377
|
+
},
|
|
378
|
+
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
379
|
+
protoPath: "/v1/documents/download/{documentId}/source",
|
|
380
|
+
data: payload,
|
|
381
|
+
host
|
|
382
|
+
}),
|
|
383
|
+
params: toURLSearchParams(payload)
|
|
384
|
+
};
|
|
385
|
+
return metadata;
|
|
386
|
+
}
|
|
387
|
+
return __downloadDocumentSource;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// src/papyrus-v1-document-documents.types.ts
|
|
391
|
+
var RenderStatus = /* @__PURE__ */ ((RenderStatus2) => {
|
|
392
|
+
RenderStatus2["UNKNOWN"] = "UNKNOWN";
|
|
393
|
+
RenderStatus2["ACCEPTED"] = "ACCEPTED";
|
|
394
|
+
RenderStatus2["RENDERING"] = "RENDERING";
|
|
395
|
+
RenderStatus2["READY"] = "READY";
|
|
396
|
+
RenderStatus2["FAILED"] = "FAILED";
|
|
397
|
+
RenderStatus2["EXPIRED"] = "EXPIRED";
|
|
398
|
+
return RenderStatus2;
|
|
399
|
+
})(RenderStatus || {});
|
|
400
|
+
var Format = /* @__PURE__ */ ((Format2) => {
|
|
401
|
+
Format2["UNKNOWN"] = "UNKNOWN";
|
|
402
|
+
Format2["PDF"] = "PDF";
|
|
403
|
+
return Format2;
|
|
404
|
+
})(Format || {});
|
|
405
|
+
var WixMpClientVersion = /* @__PURE__ */ ((WixMpClientVersion2) => {
|
|
406
|
+
WixMpClientVersion2["UNKNOWN"] = "UNKNOWN";
|
|
407
|
+
WixMpClientVersion2["MP_V1"] = "MP_V1";
|
|
408
|
+
WixMpClientVersion2["MP_V2"] = "MP_V2";
|
|
409
|
+
return WixMpClientVersion2;
|
|
410
|
+
})(WixMpClientVersion || {});
|
|
411
|
+
var ResizeOption = /* @__PURE__ */ ((ResizeOption2) => {
|
|
412
|
+
ResizeOption2["FIT"] = "FIT";
|
|
413
|
+
ResizeOption2["CROP"] = "CROP";
|
|
414
|
+
return ResizeOption2;
|
|
415
|
+
})(ResizeOption || {});
|
|
416
|
+
var PaperSize = /* @__PURE__ */ ((PaperSize2) => {
|
|
417
|
+
PaperSize2["A4_PORTRAIT"] = "A4_PORTRAIT";
|
|
418
|
+
PaperSize2["A4_LANDSCAPE"] = "A4_LANDSCAPE";
|
|
419
|
+
return PaperSize2;
|
|
420
|
+
})(PaperSize || {});
|
|
421
|
+
var PageOverflow = /* @__PURE__ */ ((PageOverflow2) => {
|
|
422
|
+
PageOverflow2["CONTENT_HIDDEN"] = "CONTENT_HIDDEN";
|
|
423
|
+
PageOverflow2["CONTENT_BREAK"] = "CONTENT_BREAK";
|
|
424
|
+
return PageOverflow2;
|
|
425
|
+
})(PageOverflow || {});
|
|
426
|
+
var RenderFormat = /* @__PURE__ */ ((RenderFormat2) => {
|
|
427
|
+
RenderFormat2["PDF"] = "PDF";
|
|
428
|
+
RenderFormat2["HTML"] = "HTML";
|
|
429
|
+
return RenderFormat2;
|
|
430
|
+
})(RenderFormat || {});
|
|
431
|
+
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
432
|
+
RequestedFields2["DOCUMENT_CONTENT"] = "DOCUMENT_CONTENT";
|
|
433
|
+
return RequestedFields2;
|
|
434
|
+
})(RequestedFields || {});
|
|
435
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
436
|
+
SortOrder2["ASC"] = "ASC";
|
|
437
|
+
SortOrder2["DESC"] = "DESC";
|
|
438
|
+
return SortOrder2;
|
|
439
|
+
})(SortOrder || {});
|
|
440
|
+
var ContentDisposition = /* @__PURE__ */ ((ContentDisposition2) => {
|
|
441
|
+
ContentDisposition2["ATTACHMENT"] = "ATTACHMENT";
|
|
442
|
+
ContentDisposition2["INLINE"] = "INLINE";
|
|
443
|
+
return ContentDisposition2;
|
|
444
|
+
})(ContentDisposition || {});
|
|
445
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
446
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
447
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
448
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
449
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
450
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
451
|
+
return WebhookIdentityType2;
|
|
452
|
+
})(WebhookIdentityType || {});
|
|
453
|
+
|
|
454
|
+
// src/papyrus-v1-document-documents.meta.ts
|
|
455
|
+
function getDownloadPage2() {
|
|
456
|
+
const payload = {};
|
|
457
|
+
const getRequestOptions = getDownloadPage(payload);
|
|
458
|
+
const getUrl = (context) => {
|
|
459
|
+
const { url } = getRequestOptions(context);
|
|
460
|
+
return url;
|
|
461
|
+
};
|
|
462
|
+
return {
|
|
463
|
+
getUrl,
|
|
464
|
+
httpMethod: "GET",
|
|
465
|
+
path: "/download",
|
|
466
|
+
pathParams: {},
|
|
467
|
+
__requestType: null,
|
|
468
|
+
__originalRequestType: null,
|
|
469
|
+
__responseType: null,
|
|
470
|
+
__originalResponseType: null
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
function redirectToDocument2() {
|
|
474
|
+
const payload = {};
|
|
475
|
+
const getRequestOptions = redirectToDocument(payload);
|
|
476
|
+
const getUrl = (context) => {
|
|
477
|
+
const { url } = getRequestOptions(context);
|
|
478
|
+
return url;
|
|
479
|
+
};
|
|
480
|
+
return {
|
|
481
|
+
getUrl,
|
|
482
|
+
httpMethod: "GET",
|
|
483
|
+
path: "/view",
|
|
484
|
+
pathParams: {},
|
|
485
|
+
__requestType: null,
|
|
486
|
+
__originalRequestType: null,
|
|
487
|
+
__responseType: null,
|
|
488
|
+
__originalResponseType: null
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
function createDocument2() {
|
|
492
|
+
const payload = {};
|
|
493
|
+
const getRequestOptions = createDocument(payload);
|
|
494
|
+
const getUrl = (context) => {
|
|
495
|
+
const { url } = getRequestOptions(context);
|
|
496
|
+
return url;
|
|
497
|
+
};
|
|
498
|
+
return {
|
|
499
|
+
getUrl,
|
|
500
|
+
httpMethod: "POST",
|
|
501
|
+
path: "/v1/documents",
|
|
502
|
+
pathParams: {},
|
|
503
|
+
__requestType: null,
|
|
504
|
+
__originalRequestType: null,
|
|
505
|
+
__responseType: null,
|
|
506
|
+
__originalResponseType: null
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
function getDocument2() {
|
|
510
|
+
const payload = { documentId: ":documentId" };
|
|
511
|
+
const getRequestOptions = getDocument(payload);
|
|
512
|
+
const getUrl = (context) => {
|
|
513
|
+
const { url } = getRequestOptions(context);
|
|
514
|
+
return url;
|
|
515
|
+
};
|
|
516
|
+
return {
|
|
517
|
+
getUrl,
|
|
518
|
+
httpMethod: "GET",
|
|
519
|
+
path: "/v1/documents/{documentId}",
|
|
520
|
+
pathParams: { documentId: "documentId" },
|
|
521
|
+
__requestType: null,
|
|
522
|
+
__originalRequestType: null,
|
|
523
|
+
__responseType: null,
|
|
524
|
+
__originalResponseType: null
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
function deleteDocument2() {
|
|
528
|
+
const payload = { documentId: ":documentId" };
|
|
529
|
+
const getRequestOptions = deleteDocument(payload);
|
|
530
|
+
const getUrl = (context) => {
|
|
531
|
+
const { url } = getRequestOptions(context);
|
|
532
|
+
return url;
|
|
533
|
+
};
|
|
534
|
+
return {
|
|
535
|
+
getUrl,
|
|
536
|
+
httpMethod: "DELETE",
|
|
537
|
+
path: "/v1/documents/{documentId}",
|
|
538
|
+
pathParams: { documentId: "documentId" },
|
|
539
|
+
__requestType: null,
|
|
540
|
+
__originalRequestType: null,
|
|
541
|
+
__responseType: null,
|
|
542
|
+
__originalResponseType: null
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
function queryDocument2() {
|
|
546
|
+
const payload = {};
|
|
547
|
+
const getRequestOptions = queryDocument(payload);
|
|
548
|
+
const getUrl = (context) => {
|
|
549
|
+
const { url } = getRequestOptions(context);
|
|
550
|
+
return url;
|
|
551
|
+
};
|
|
552
|
+
return {
|
|
553
|
+
getUrl,
|
|
554
|
+
httpMethod: "POST",
|
|
555
|
+
path: "/v1/documents/query",
|
|
556
|
+
pathParams: {},
|
|
557
|
+
__requestType: null,
|
|
558
|
+
__originalRequestType: null,
|
|
559
|
+
__responseType: null,
|
|
560
|
+
__originalResponseType: null
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function updateDocument2() {
|
|
564
|
+
const payload = { id: ":id" };
|
|
565
|
+
const getRequestOptions = updateDocument(payload);
|
|
566
|
+
const getUrl = (context) => {
|
|
567
|
+
const { url } = getRequestOptions(context);
|
|
568
|
+
return url;
|
|
569
|
+
};
|
|
570
|
+
return {
|
|
571
|
+
getUrl,
|
|
572
|
+
httpMethod: "PATCH",
|
|
573
|
+
path: "/v1/documents/{id}",
|
|
574
|
+
pathParams: { id: "id" },
|
|
575
|
+
__requestType: null,
|
|
576
|
+
__originalRequestType: null,
|
|
577
|
+
__responseType: null,
|
|
578
|
+
__originalResponseType: null
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
function downloadDocument2() {
|
|
582
|
+
const payload = { documentId: ":documentId" };
|
|
583
|
+
const getRequestOptions = downloadDocument(payload);
|
|
584
|
+
const getUrl = (context) => {
|
|
585
|
+
const { url } = getRequestOptions(context);
|
|
586
|
+
return url;
|
|
587
|
+
};
|
|
588
|
+
return {
|
|
589
|
+
getUrl,
|
|
590
|
+
httpMethod: "GET",
|
|
591
|
+
path: "/v1/documents/download/{documentId}",
|
|
592
|
+
pathParams: { documentId: "documentId" },
|
|
593
|
+
__requestType: null,
|
|
594
|
+
__originalRequestType: null,
|
|
595
|
+
__responseType: null,
|
|
596
|
+
__originalResponseType: null
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
function getDownloadUrl2() {
|
|
600
|
+
const payload = {};
|
|
601
|
+
const getRequestOptions = getDownloadUrl(payload);
|
|
602
|
+
const getUrl = (context) => {
|
|
603
|
+
const { url } = getRequestOptions(context);
|
|
604
|
+
return url;
|
|
605
|
+
};
|
|
606
|
+
return {
|
|
607
|
+
getUrl,
|
|
608
|
+
httpMethod: "GET",
|
|
609
|
+
path: "/v1/documents/download-url",
|
|
610
|
+
pathParams: {},
|
|
611
|
+
__requestType: null,
|
|
612
|
+
__originalRequestType: null,
|
|
613
|
+
__responseType: null,
|
|
614
|
+
__originalResponseType: null
|
|
615
|
+
};
|
|
616
|
+
}
|
|
617
|
+
function downloadDocumentSource2() {
|
|
618
|
+
const payload = { documentId: ":documentId" };
|
|
619
|
+
const getRequestOptions = downloadDocumentSource(payload);
|
|
620
|
+
const getUrl = (context) => {
|
|
621
|
+
const { url } = getRequestOptions(context);
|
|
622
|
+
return url;
|
|
623
|
+
};
|
|
624
|
+
return {
|
|
625
|
+
getUrl,
|
|
626
|
+
httpMethod: "GET",
|
|
627
|
+
path: "/v1/documents/download/{documentId}/source",
|
|
628
|
+
pathParams: { documentId: "documentId" },
|
|
629
|
+
__requestType: null,
|
|
630
|
+
__originalRequestType: null,
|
|
631
|
+
__responseType: null,
|
|
632
|
+
__originalResponseType: null
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
export {
|
|
636
|
+
ContentDisposition as ContentDispositionOriginal,
|
|
637
|
+
Format as FormatOriginal,
|
|
638
|
+
PageOverflow as PageOverflowOriginal,
|
|
639
|
+
PaperSize as PaperSizeOriginal,
|
|
640
|
+
RenderFormat as RenderFormatOriginal,
|
|
641
|
+
RenderStatus as RenderStatusOriginal,
|
|
642
|
+
RequestedFields as RequestedFieldsOriginal,
|
|
643
|
+
ResizeOption as ResizeOptionOriginal,
|
|
644
|
+
SortOrder as SortOrderOriginal,
|
|
645
|
+
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
646
|
+
WixMpClientVersion as WixMpClientVersionOriginal,
|
|
647
|
+
createDocument2 as createDocument,
|
|
648
|
+
deleteDocument2 as deleteDocument,
|
|
649
|
+
downloadDocument2 as downloadDocument,
|
|
650
|
+
downloadDocumentSource2 as downloadDocumentSource,
|
|
651
|
+
getDocument2 as getDocument,
|
|
652
|
+
getDownloadPage2 as getDownloadPage,
|
|
653
|
+
getDownloadUrl2 as getDownloadUrl,
|
|
654
|
+
queryDocument2 as queryDocument,
|
|
655
|
+
redirectToDocument2 as redirectToDocument,
|
|
656
|
+
updateDocument2 as updateDocument
|
|
657
|
+
};
|
|
658
|
+
//# sourceMappingURL=meta.mjs.map
|