@wix/auto_sdk_papyrus_documents 1.0.0 → 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.
- package/build/cjs/index.d.ts +18 -18
- package/build/cjs/index.js +173 -156
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +552 -528
- package/build/cjs/index.typings.js +136 -127
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +536 -525
- package/build/cjs/meta.js +125 -114
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +26 -22
- package/build/cjs/schemas.js +317 -271
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +18 -18
- package/build/es/index.mjs +173 -156
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +552 -528
- package/build/es/index.typings.mjs +136 -127
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +536 -525
- package/build/es/meta.mjs +125 -114
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +26 -22
- package/build/es/schemas.mjs +317 -271
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +18 -18
- package/build/internal/cjs/index.typings.d.ts +616 -523
- package/build/internal/cjs/meta.d.ts +642 -516
- package/build/internal/cjs/schemas.d.ts +26 -22
- package/build/internal/es/index.d.mts +18 -18
- package/build/internal/es/index.typings.d.mts +616 -523
- package/build/internal/es/meta.d.mts +642 -516
- package/build/internal/es/schemas.d.mts +26 -22
- package/package.json +4 -4
- package/build/internal/cjs/index.js +0 -1101
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -863
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -705
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -658
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1050
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -817
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -658
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -602
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/es/index.mjs
CHANGED
|
@@ -14,12 +14,13 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// src/papyrus-v1-document-documents.http.ts
|
|
16
16
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
17
18
|
import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
|
|
18
19
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
19
20
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
20
21
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
21
22
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
22
|
-
function
|
|
23
|
+
function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
|
|
23
24
|
const domainToMappings = {
|
|
24
25
|
"api._base_domain_": [
|
|
25
26
|
{
|
|
@@ -62,7 +63,7 @@ function resolveWixPapyrusV1DocumentServiceUrl(opts) {
|
|
|
62
63
|
};
|
|
63
64
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function resolveWixPapyrusV1DocumentServiceUrl(opts) {
|
|
66
67
|
const domainToMappings = {
|
|
67
68
|
"api._base_domain_": [
|
|
68
69
|
{
|
|
@@ -106,60 +107,6 @@ function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
|
|
|
106
107
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
107
108
|
}
|
|
108
109
|
var PACKAGE_NAME = "@wix/auto_sdk_papyrus_documents";
|
|
109
|
-
function getDownloadPage(payload) {
|
|
110
|
-
function __getDownloadPage({ host }) {
|
|
111
|
-
const metadata = {
|
|
112
|
-
entityFqdn: "wix.papyrus.v1.document",
|
|
113
|
-
method: "GET",
|
|
114
|
-
methodFqn: "wix.papyrus.v1.DownloadPageController.GetDownloadPage",
|
|
115
|
-
packageName: PACKAGE_NAME,
|
|
116
|
-
migrationOptions: {
|
|
117
|
-
optInTransformResponse: true
|
|
118
|
-
},
|
|
119
|
-
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
120
|
-
protoPath: "/download",
|
|
121
|
-
data: payload,
|
|
122
|
-
host
|
|
123
|
-
}),
|
|
124
|
-
params: toURLSearchParams(payload),
|
|
125
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
126
|
-
{
|
|
127
|
-
transformFn: transformRESTBytesToSDKBytes,
|
|
128
|
-
paths: [{ path: "body" }]
|
|
129
|
-
}
|
|
130
|
-
])
|
|
131
|
-
};
|
|
132
|
-
return metadata;
|
|
133
|
-
}
|
|
134
|
-
return __getDownloadPage;
|
|
135
|
-
}
|
|
136
|
-
function redirectToDocument(payload) {
|
|
137
|
-
function __redirectToDocument({ host }) {
|
|
138
|
-
const metadata = {
|
|
139
|
-
entityFqdn: "wix.papyrus.v1.document",
|
|
140
|
-
method: "GET",
|
|
141
|
-
methodFqn: "wix.papyrus.v1.DownloadPageController.RedirectToDocument",
|
|
142
|
-
packageName: PACKAGE_NAME,
|
|
143
|
-
migrationOptions: {
|
|
144
|
-
optInTransformResponse: true
|
|
145
|
-
},
|
|
146
|
-
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
147
|
-
protoPath: "/view",
|
|
148
|
-
data: payload,
|
|
149
|
-
host
|
|
150
|
-
}),
|
|
151
|
-
params: toURLSearchParams(payload),
|
|
152
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
153
|
-
{
|
|
154
|
-
transformFn: transformRESTBytesToSDKBytes,
|
|
155
|
-
paths: [{ path: "body" }]
|
|
156
|
-
}
|
|
157
|
-
])
|
|
158
|
-
};
|
|
159
|
-
return metadata;
|
|
160
|
-
}
|
|
161
|
-
return __redirectToDocument;
|
|
162
|
-
}
|
|
163
110
|
function createDocument(payload) {
|
|
164
111
|
function __createDocument({ host }) {
|
|
165
112
|
const serializedData = transformPaths(payload, [
|
|
@@ -265,6 +212,15 @@ function deleteDocument(payload) {
|
|
|
265
212
|
}
|
|
266
213
|
function queryDocument(payload) {
|
|
267
214
|
function __queryDocument({ host }) {
|
|
215
|
+
const serializedData = transformPaths(payload, [
|
|
216
|
+
{
|
|
217
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
218
|
+
paths: [
|
|
219
|
+
{ path: "query.sort.origin.latitude" },
|
|
220
|
+
{ path: "query.sort.origin.longitude" }
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
]);
|
|
268
224
|
const metadata = {
|
|
269
225
|
entityFqdn: "wix.papyrus.v1.document",
|
|
270
226
|
method: "POST",
|
|
@@ -275,10 +231,10 @@ function queryDocument(payload) {
|
|
|
275
231
|
},
|
|
276
232
|
url: resolveWixPapyrusV1DocumentServiceUrl({
|
|
277
233
|
protoPath: "/v1/documents/query",
|
|
278
|
-
data:
|
|
234
|
+
data: serializedData,
|
|
279
235
|
host
|
|
280
236
|
}),
|
|
281
|
-
data:
|
|
237
|
+
data: serializedData,
|
|
282
238
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
283
239
|
{
|
|
284
240
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -400,6 +356,60 @@ function downloadDocumentSource(payload) {
|
|
|
400
356
|
}
|
|
401
357
|
return __downloadDocumentSource;
|
|
402
358
|
}
|
|
359
|
+
function getDownloadPage(payload) {
|
|
360
|
+
function __getDownloadPage({ host }) {
|
|
361
|
+
const metadata = {
|
|
362
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
363
|
+
method: "GET",
|
|
364
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.GetDownloadPage",
|
|
365
|
+
packageName: PACKAGE_NAME,
|
|
366
|
+
migrationOptions: {
|
|
367
|
+
optInTransformResponse: true
|
|
368
|
+
},
|
|
369
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
370
|
+
protoPath: "/download",
|
|
371
|
+
data: payload,
|
|
372
|
+
host
|
|
373
|
+
}),
|
|
374
|
+
params: toURLSearchParams(payload),
|
|
375
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
376
|
+
{
|
|
377
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
378
|
+
paths: [{ path: "body" }]
|
|
379
|
+
}
|
|
380
|
+
])
|
|
381
|
+
};
|
|
382
|
+
return metadata;
|
|
383
|
+
}
|
|
384
|
+
return __getDownloadPage;
|
|
385
|
+
}
|
|
386
|
+
function redirectToDocument(payload) {
|
|
387
|
+
function __redirectToDocument({ host }) {
|
|
388
|
+
const metadata = {
|
|
389
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
390
|
+
method: "GET",
|
|
391
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.RedirectToDocument",
|
|
392
|
+
packageName: PACKAGE_NAME,
|
|
393
|
+
migrationOptions: {
|
|
394
|
+
optInTransformResponse: true
|
|
395
|
+
},
|
|
396
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
397
|
+
protoPath: "/view",
|
|
398
|
+
data: payload,
|
|
399
|
+
host
|
|
400
|
+
}),
|
|
401
|
+
params: toURLSearchParams(payload),
|
|
402
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
403
|
+
{
|
|
404
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
405
|
+
paths: [{ path: "body" }]
|
|
406
|
+
}
|
|
407
|
+
])
|
|
408
|
+
};
|
|
409
|
+
return metadata;
|
|
410
|
+
}
|
|
411
|
+
return __redirectToDocument;
|
|
412
|
+
}
|
|
403
413
|
|
|
404
414
|
// src/papyrus-v1-document-documents.universal.ts
|
|
405
415
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -424,26 +434,6 @@ var WixMpClientVersion = /* @__PURE__ */ ((WixMpClientVersion2) => {
|
|
|
424
434
|
WixMpClientVersion2["MP_V2"] = "MP_V2";
|
|
425
435
|
return WixMpClientVersion2;
|
|
426
436
|
})(WixMpClientVersion || {});
|
|
427
|
-
var ResizeOption = /* @__PURE__ */ ((ResizeOption2) => {
|
|
428
|
-
ResizeOption2["FIT"] = "FIT";
|
|
429
|
-
ResizeOption2["CROP"] = "CROP";
|
|
430
|
-
return ResizeOption2;
|
|
431
|
-
})(ResizeOption || {});
|
|
432
|
-
var PaperSize = /* @__PURE__ */ ((PaperSize2) => {
|
|
433
|
-
PaperSize2["A4_PORTRAIT"] = "A4_PORTRAIT";
|
|
434
|
-
PaperSize2["A4_LANDSCAPE"] = "A4_LANDSCAPE";
|
|
435
|
-
return PaperSize2;
|
|
436
|
-
})(PaperSize || {});
|
|
437
|
-
var PageOverflow = /* @__PURE__ */ ((PageOverflow2) => {
|
|
438
|
-
PageOverflow2["CONTENT_HIDDEN"] = "CONTENT_HIDDEN";
|
|
439
|
-
PageOverflow2["CONTENT_BREAK"] = "CONTENT_BREAK";
|
|
440
|
-
return PageOverflow2;
|
|
441
|
-
})(PageOverflow || {});
|
|
442
|
-
var RenderFormat = /* @__PURE__ */ ((RenderFormat2) => {
|
|
443
|
-
RenderFormat2["PDF"] = "PDF";
|
|
444
|
-
RenderFormat2["HTML"] = "HTML";
|
|
445
|
-
return RenderFormat2;
|
|
446
|
-
})(RenderFormat || {});
|
|
447
437
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
448
438
|
RequestedFields2["DOCUMENT_CONTENT"] = "DOCUMENT_CONTENT";
|
|
449
439
|
return RequestedFields2;
|
|
@@ -454,6 +444,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
454
444
|
return SortOrder2;
|
|
455
445
|
})(SortOrder || {});
|
|
456
446
|
var ContentDisposition = /* @__PURE__ */ ((ContentDisposition2) => {
|
|
447
|
+
ContentDisposition2["UNKNOWN_CONTENT_DISPOSITION"] = "UNKNOWN_CONTENT_DISPOSITION";
|
|
457
448
|
ContentDisposition2["ATTACHMENT"] = "ATTACHMENT";
|
|
458
449
|
ContentDisposition2["INLINE"] = "INLINE";
|
|
459
450
|
return ContentDisposition2;
|
|
@@ -466,52 +457,26 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
466
457
|
WebhookIdentityType2["APP"] = "APP";
|
|
467
458
|
return WebhookIdentityType2;
|
|
468
459
|
})(WebhookIdentityType || {});
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
throw transformedError;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
async function redirectToDocument2(file) {
|
|
493
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
494
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ file });
|
|
495
|
-
const reqOpts = redirectToDocument(payload);
|
|
496
|
-
sideEffects?.onSiteCall?.();
|
|
497
|
-
try {
|
|
498
|
-
const result = await httpClient.request(reqOpts);
|
|
499
|
-
sideEffects?.onSuccess?.(result);
|
|
500
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
501
|
-
} catch (err) {
|
|
502
|
-
const transformedError = sdkTransformError(
|
|
503
|
-
err,
|
|
504
|
-
{
|
|
505
|
-
spreadPathsToArguments: {},
|
|
506
|
-
explicitPathsToArguments: { file: "$[0]" },
|
|
507
|
-
singleArgumentUnchanged: false
|
|
508
|
-
},
|
|
509
|
-
["file"]
|
|
510
|
-
);
|
|
511
|
-
sideEffects?.onError?.(err);
|
|
512
|
-
throw transformedError;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
460
|
+
var ResizeOption = /* @__PURE__ */ ((ResizeOption2) => {
|
|
461
|
+
ResizeOption2["FIT"] = "FIT";
|
|
462
|
+
ResizeOption2["CROP"] = "CROP";
|
|
463
|
+
return ResizeOption2;
|
|
464
|
+
})(ResizeOption || {});
|
|
465
|
+
var PaperSize = /* @__PURE__ */ ((PaperSize2) => {
|
|
466
|
+
PaperSize2["A4_PORTRAIT"] = "A4_PORTRAIT";
|
|
467
|
+
PaperSize2["A4_LANDSCAPE"] = "A4_LANDSCAPE";
|
|
468
|
+
return PaperSize2;
|
|
469
|
+
})(PaperSize || {});
|
|
470
|
+
var PageOverflow = /* @__PURE__ */ ((PageOverflow2) => {
|
|
471
|
+
PageOverflow2["CONTENT_HIDDEN"] = "CONTENT_HIDDEN";
|
|
472
|
+
PageOverflow2["CONTENT_BREAK"] = "CONTENT_BREAK";
|
|
473
|
+
return PageOverflow2;
|
|
474
|
+
})(PageOverflow || {});
|
|
475
|
+
var RenderFormat = /* @__PURE__ */ ((RenderFormat2) => {
|
|
476
|
+
RenderFormat2["PDF"] = "PDF";
|
|
477
|
+
RenderFormat2["HTML"] = "HTML";
|
|
478
|
+
return RenderFormat2;
|
|
479
|
+
})(RenderFormat || {});
|
|
515
480
|
async function createDocument2(options) {
|
|
516
481
|
const { httpClient, sideEffects } = arguments[1];
|
|
517
482
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -661,9 +626,7 @@ async function typedQueryDocument(query, options) {
|
|
|
661
626
|
}
|
|
662
627
|
}
|
|
663
628
|
var utils = {
|
|
664
|
-
query:
|
|
665
|
-
...createQueryUtils()
|
|
666
|
-
}
|
|
629
|
+
query: /* @__PURE__ */ createQueryUtils()
|
|
667
630
|
};
|
|
668
631
|
async function updateDocument2(_id, options) {
|
|
669
632
|
const { httpClient, sideEffects } = arguments[2];
|
|
@@ -795,22 +758,54 @@ async function downloadDocumentSource2(documentId, options) {
|
|
|
795
758
|
throw transformedError;
|
|
796
759
|
}
|
|
797
760
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
761
|
+
async function getDownloadPage2(file) {
|
|
762
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
763
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ file });
|
|
764
|
+
const reqOpts = getDownloadPage(payload);
|
|
765
|
+
sideEffects?.onSiteCall?.();
|
|
766
|
+
try {
|
|
767
|
+
const result = await httpClient.request(reqOpts);
|
|
768
|
+
sideEffects?.onSuccess?.(result);
|
|
769
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
770
|
+
} catch (err) {
|
|
771
|
+
const transformedError = sdkTransformError(
|
|
772
|
+
err,
|
|
773
|
+
{
|
|
774
|
+
spreadPathsToArguments: {},
|
|
775
|
+
explicitPathsToArguments: { file: "$[0]" },
|
|
776
|
+
singleArgumentUnchanged: false
|
|
777
|
+
},
|
|
778
|
+
["file"]
|
|
779
|
+
);
|
|
780
|
+
sideEffects?.onError?.(err);
|
|
781
|
+
throw transformedError;
|
|
782
|
+
}
|
|
806
783
|
}
|
|
807
|
-
function
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
784
|
+
async function redirectToDocument2(file) {
|
|
785
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
786
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ file });
|
|
787
|
+
const reqOpts = redirectToDocument(payload);
|
|
788
|
+
sideEffects?.onSiteCall?.();
|
|
789
|
+
try {
|
|
790
|
+
const result = await httpClient.request(reqOpts);
|
|
791
|
+
sideEffects?.onSuccess?.(result);
|
|
792
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
793
|
+
} catch (err) {
|
|
794
|
+
const transformedError = sdkTransformError(
|
|
795
|
+
err,
|
|
796
|
+
{
|
|
797
|
+
spreadPathsToArguments: {},
|
|
798
|
+
explicitPathsToArguments: { file: "$[0]" },
|
|
799
|
+
singleArgumentUnchanged: false
|
|
800
|
+
},
|
|
801
|
+
["file"]
|
|
802
|
+
);
|
|
803
|
+
sideEffects?.onError?.(err);
|
|
804
|
+
throw transformedError;
|
|
805
|
+
}
|
|
813
806
|
}
|
|
807
|
+
|
|
808
|
+
// src/papyrus-v1-document-documents.public.ts
|
|
814
809
|
function createDocument3(httpClient) {
|
|
815
810
|
return (options) => createDocument2(
|
|
816
811
|
options,
|
|
@@ -879,7 +874,21 @@ function downloadDocumentSource3(httpClient) {
|
|
|
879
874
|
{ httpClient }
|
|
880
875
|
);
|
|
881
876
|
}
|
|
882
|
-
|
|
877
|
+
function getDownloadPage3(httpClient) {
|
|
878
|
+
return (file) => getDownloadPage2(
|
|
879
|
+
file,
|
|
880
|
+
// @ts-ignore
|
|
881
|
+
{ httpClient }
|
|
882
|
+
);
|
|
883
|
+
}
|
|
884
|
+
function redirectToDocument3(httpClient) {
|
|
885
|
+
return (file) => redirectToDocument2(
|
|
886
|
+
file,
|
|
887
|
+
// @ts-ignore
|
|
888
|
+
{ httpClient }
|
|
889
|
+
);
|
|
890
|
+
}
|
|
891
|
+
var onDocumentCreated = /* @__PURE__ */ EventDefinition(
|
|
883
892
|
"wix.papyrus.v1.document_created",
|
|
884
893
|
true,
|
|
885
894
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -896,7 +905,7 @@ var onDocumentCreated = EventDefinition(
|
|
|
896
905
|
])
|
|
897
906
|
)
|
|
898
907
|
)();
|
|
899
|
-
var onDocumentDeleted = EventDefinition(
|
|
908
|
+
var onDocumentDeleted = /* @__PURE__ */ EventDefinition(
|
|
900
909
|
"wix.papyrus.v1.document_deleted",
|
|
901
910
|
true,
|
|
902
911
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -913,7 +922,7 @@ var onDocumentDeleted = EventDefinition(
|
|
|
913
922
|
])
|
|
914
923
|
)
|
|
915
924
|
)();
|
|
916
|
-
var onDocumentRenderDelayed = EventDefinition(
|
|
925
|
+
var onDocumentRenderDelayed = /* @__PURE__ */ EventDefinition(
|
|
917
926
|
"wix.papyrus.v1.document_document_render_delayed",
|
|
918
927
|
true,
|
|
919
928
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -930,7 +939,7 @@ var onDocumentRenderDelayed = EventDefinition(
|
|
|
930
939
|
])
|
|
931
940
|
)
|
|
932
941
|
)();
|
|
933
|
-
var onDocumentRenderFailed = EventDefinition(
|
|
942
|
+
var onDocumentRenderFailed = /* @__PURE__ */ EventDefinition(
|
|
934
943
|
"wix.papyrus.v1.document_document_render_failed",
|
|
935
944
|
true,
|
|
936
945
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -947,7 +956,7 @@ var onDocumentRenderFailed = EventDefinition(
|
|
|
947
956
|
])
|
|
948
957
|
)
|
|
949
958
|
)();
|
|
950
|
-
var onDocumentRendered = EventDefinition(
|
|
959
|
+
var onDocumentRendered = /* @__PURE__ */ EventDefinition(
|
|
951
960
|
"wix.papyrus.v1.document_document_rendered",
|
|
952
961
|
true,
|
|
953
962
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -964,7 +973,7 @@ var onDocumentRendered = EventDefinition(
|
|
|
964
973
|
])
|
|
965
974
|
)
|
|
966
975
|
)();
|
|
967
|
-
var onDocumentUpdated = EventDefinition(
|
|
976
|
+
var onDocumentUpdated = /* @__PURE__ */ EventDefinition(
|
|
968
977
|
"wix.papyrus.v1.document_updated",
|
|
969
978
|
true,
|
|
970
979
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -987,7 +996,7 @@ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
|
987
996
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
988
997
|
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
989
998
|
function customQueryDocument(httpClient) {
|
|
990
|
-
const router = createQueryOverloadRouter({
|
|
999
|
+
const router = /* @__PURE__ */ createQueryOverloadRouter({
|
|
991
1000
|
builderQueryFunction: (options) => queryDocument3(httpClient)(options),
|
|
992
1001
|
typedQueryFunction: (query, options) => typedQueryDocument2(httpClient)(query, options),
|
|
993
1002
|
hasOptionsParameter: true
|
|
@@ -997,8 +1006,6 @@ function customQueryDocument(httpClient) {
|
|
|
997
1006
|
}
|
|
998
1007
|
return overloadedQuery;
|
|
999
1008
|
}
|
|
1000
|
-
var getDownloadPage4 = /* @__PURE__ */ createRESTModule(getDownloadPage3);
|
|
1001
|
-
var redirectToDocument4 = /* @__PURE__ */ createRESTModule(redirectToDocument3);
|
|
1002
1009
|
var createDocument4 = /* @__PURE__ */ createRESTModule(createDocument3);
|
|
1003
1010
|
var getDocument4 = /* @__PURE__ */ createRESTModule(getDocument3);
|
|
1004
1011
|
var deleteDocument4 = /* @__PURE__ */ createRESTModule(deleteDocument3);
|
|
@@ -1006,17 +1013,27 @@ var updateDocument4 = /* @__PURE__ */ createRESTModule(updateDocument3);
|
|
|
1006
1013
|
var downloadDocument4 = /* @__PURE__ */ createRESTModule(downloadDocument3);
|
|
1007
1014
|
var getDownloadUrl4 = /* @__PURE__ */ createRESTModule(getDownloadUrl3);
|
|
1008
1015
|
var downloadDocumentSource4 = /* @__PURE__ */ createRESTModule(downloadDocumentSource3);
|
|
1016
|
+
var getDownloadPage4 = /* @__PURE__ */ createRESTModule(getDownloadPage3);
|
|
1017
|
+
var redirectToDocument4 = /* @__PURE__ */ createRESTModule(redirectToDocument3);
|
|
1009
1018
|
var queryDocument4 = /* @__PURE__ */ createRESTModule(customQueryDocument);
|
|
1010
|
-
var onDocumentCreated2 = createEventModule(
|
|
1011
|
-
|
|
1012
|
-
|
|
1019
|
+
var onDocumentCreated2 = /* @__PURE__ */ createEventModule(
|
|
1020
|
+
onDocumentCreated
|
|
1021
|
+
);
|
|
1022
|
+
var onDocumentDeleted2 = /* @__PURE__ */ createEventModule(
|
|
1023
|
+
onDocumentDeleted
|
|
1024
|
+
);
|
|
1025
|
+
var onDocumentRenderDelayed2 = /* @__PURE__ */ createEventModule(
|
|
1013
1026
|
onDocumentRenderDelayed
|
|
1014
1027
|
);
|
|
1015
|
-
var onDocumentRenderFailed2 = createEventModule(
|
|
1028
|
+
var onDocumentRenderFailed2 = /* @__PURE__ */ createEventModule(
|
|
1016
1029
|
onDocumentRenderFailed
|
|
1017
1030
|
);
|
|
1018
|
-
var onDocumentRendered2 = createEventModule(
|
|
1019
|
-
|
|
1031
|
+
var onDocumentRendered2 = /* @__PURE__ */ createEventModule(
|
|
1032
|
+
onDocumentRendered
|
|
1033
|
+
);
|
|
1034
|
+
var onDocumentUpdated2 = /* @__PURE__ */ createEventModule(
|
|
1035
|
+
onDocumentUpdated
|
|
1036
|
+
);
|
|
1020
1037
|
export {
|
|
1021
1038
|
ContentDisposition,
|
|
1022
1039
|
Format,
|