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