@wix/auto_sdk_papyrus_documents 1.0.1 → 1.0.2

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