@wix/auto_sdk_papyrus_documents 1.0.11 → 1.0.13
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 +17 -17
- package/build/cjs/index.js +187 -210
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +524 -524
- package/build/cjs/index.typings.js +147 -158
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +529 -529
- package/build/cjs/meta.js +137 -148
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +17 -17
- package/build/es/index.mjs +187 -210
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +524 -524
- package/build/es/index.typings.mjs +147 -158
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +529 -529
- package/build/es/meta.mjs +137 -148
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -17
- package/build/internal/cjs/index.typings.d.ts +550 -550
- package/build/internal/cjs/meta.d.ts +560 -560
- package/build/internal/es/index.d.mts +17 -17
- package/build/internal/es/index.typings.d.mts +550 -550
- package/build/internal/es/meta.d.mts +560 -560
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -6,7 +6,23 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
6
6
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
7
7
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
8
8
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
9
|
-
|
|
9
|
+
var TRANSFORM_PATHS_0 = [{ path: "body" }];
|
|
10
|
+
var TRANSFORM_PATHS_1 = [
|
|
11
|
+
{ path: "document.createdDate" },
|
|
12
|
+
{ path: "document.updatedDate" },
|
|
13
|
+
{ path: "document.expirationDate" }
|
|
14
|
+
];
|
|
15
|
+
var TRANSFORM_PATHS_2 = [
|
|
16
|
+
{ path: "query.sort.origin.latitude" },
|
|
17
|
+
{ path: "query.sort.origin.longitude" }
|
|
18
|
+
];
|
|
19
|
+
var TRANSFORM_PATHS_3 = [
|
|
20
|
+
{ path: "documents.createdDate" },
|
|
21
|
+
{ path: "documents.updatedDate" },
|
|
22
|
+
{ path: "documents.expirationDate" }
|
|
23
|
+
];
|
|
24
|
+
var TRANSFORM_PATHS_4 = [{ path: "expirationDate" }];
|
|
25
|
+
function resolveWixPapyrusV1DocumentServiceUrl(opts) {
|
|
10
26
|
const domainToMappings = {
|
|
11
27
|
"api._base_domain_": [
|
|
12
28
|
{
|
|
@@ -49,7 +65,7 @@ function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
|
|
|
49
65
|
};
|
|
50
66
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
51
67
|
}
|
|
52
|
-
function
|
|
68
|
+
function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
|
|
53
69
|
const domainToMappings = {
|
|
54
70
|
"api._base_domain_": [
|
|
55
71
|
{
|
|
@@ -93,16 +109,66 @@ function resolveWixPapyrusV1DocumentServiceUrl(opts) {
|
|
|
93
109
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
94
110
|
}
|
|
95
111
|
var PACKAGE_NAME = "@wix/auto_sdk_papyrus_documents";
|
|
112
|
+
function getDownloadPage(payload) {
|
|
113
|
+
function __getDownloadPage({ host }) {
|
|
114
|
+
const metadata = {
|
|
115
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
116
|
+
method: "GET",
|
|
117
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.GetDownloadPage",
|
|
118
|
+
packageName: PACKAGE_NAME,
|
|
119
|
+
migrationOptions: {
|
|
120
|
+
optInTransformResponse: true
|
|
121
|
+
},
|
|
122
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
123
|
+
protoPath: "/download",
|
|
124
|
+
data: payload,
|
|
125
|
+
host
|
|
126
|
+
}),
|
|
127
|
+
params: toURLSearchParams(payload),
|
|
128
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
129
|
+
{
|
|
130
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
131
|
+
paths: TRANSFORM_PATHS_0
|
|
132
|
+
}
|
|
133
|
+
])
|
|
134
|
+
};
|
|
135
|
+
return metadata;
|
|
136
|
+
}
|
|
137
|
+
return __getDownloadPage;
|
|
138
|
+
}
|
|
139
|
+
function redirectToDocument(payload) {
|
|
140
|
+
function __redirectToDocument({ host }) {
|
|
141
|
+
const metadata = {
|
|
142
|
+
entityFqdn: "wix.papyrus.v1.document",
|
|
143
|
+
method: "GET",
|
|
144
|
+
methodFqn: "wix.papyrus.v1.DownloadPageController.RedirectToDocument",
|
|
145
|
+
packageName: PACKAGE_NAME,
|
|
146
|
+
migrationOptions: {
|
|
147
|
+
optInTransformResponse: true
|
|
148
|
+
},
|
|
149
|
+
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
150
|
+
protoPath: "/view",
|
|
151
|
+
data: payload,
|
|
152
|
+
host
|
|
153
|
+
}),
|
|
154
|
+
params: toURLSearchParams(payload),
|
|
155
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
156
|
+
{
|
|
157
|
+
transformFn: transformRESTBytesToSDKBytes,
|
|
158
|
+
paths: TRANSFORM_PATHS_0
|
|
159
|
+
}
|
|
160
|
+
])
|
|
161
|
+
};
|
|
162
|
+
return metadata;
|
|
163
|
+
}
|
|
164
|
+
return __redirectToDocument;
|
|
165
|
+
}
|
|
96
166
|
function createDocument(payload) {
|
|
97
167
|
function __createDocument({ host }) {
|
|
98
168
|
const serializedData = transformPaths(payload, [
|
|
99
169
|
{
|
|
100
170
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
101
|
-
paths:
|
|
102
|
-
{ path: "document.createdDate" },
|
|
103
|
-
{ path: "document.updatedDate" },
|
|
104
|
-
{ path: "document.expirationDate" }
|
|
105
|
-
]
|
|
171
|
+
paths: TRANSFORM_PATHS_1
|
|
106
172
|
}
|
|
107
173
|
]);
|
|
108
174
|
const metadata = {
|
|
@@ -122,11 +188,7 @@ function createDocument(payload) {
|
|
|
122
188
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
123
189
|
{
|
|
124
190
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
125
|
-
paths:
|
|
126
|
-
{ path: "document.createdDate" },
|
|
127
|
-
{ path: "document.updatedDate" },
|
|
128
|
-
{ path: "document.expirationDate" }
|
|
129
|
-
]
|
|
191
|
+
paths: TRANSFORM_PATHS_1
|
|
130
192
|
}
|
|
131
193
|
])
|
|
132
194
|
};
|
|
@@ -153,11 +215,7 @@ function getDocument(payload) {
|
|
|
153
215
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
154
216
|
{
|
|
155
217
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
156
|
-
paths:
|
|
157
|
-
{ path: "document.createdDate" },
|
|
158
|
-
{ path: "document.updatedDate" },
|
|
159
|
-
{ path: "document.expirationDate" }
|
|
160
|
-
]
|
|
218
|
+
paths: TRANSFORM_PATHS_1
|
|
161
219
|
}
|
|
162
220
|
])
|
|
163
221
|
};
|
|
@@ -184,11 +242,7 @@ function deleteDocument(payload) {
|
|
|
184
242
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
185
243
|
{
|
|
186
244
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
187
|
-
paths:
|
|
188
|
-
{ path: "document.createdDate" },
|
|
189
|
-
{ path: "document.updatedDate" },
|
|
190
|
-
{ path: "document.expirationDate" }
|
|
191
|
-
]
|
|
245
|
+
paths: TRANSFORM_PATHS_1
|
|
192
246
|
}
|
|
193
247
|
])
|
|
194
248
|
};
|
|
@@ -201,10 +255,7 @@ function queryDocument(payload) {
|
|
|
201
255
|
const serializedData = transformPaths(payload, [
|
|
202
256
|
{
|
|
203
257
|
transformFn: transformSDKFloatToRESTFloat,
|
|
204
|
-
paths:
|
|
205
|
-
{ path: "query.sort.origin.latitude" },
|
|
206
|
-
{ path: "query.sort.origin.longitude" }
|
|
207
|
-
]
|
|
258
|
+
paths: TRANSFORM_PATHS_2
|
|
208
259
|
}
|
|
209
260
|
]);
|
|
210
261
|
const metadata = {
|
|
@@ -224,11 +275,7 @@ function queryDocument(payload) {
|
|
|
224
275
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
225
276
|
{
|
|
226
277
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
227
|
-
paths:
|
|
228
|
-
{ path: "documents.createdDate" },
|
|
229
|
-
{ path: "documents.updatedDate" },
|
|
230
|
-
{ path: "documents.expirationDate" }
|
|
231
|
-
]
|
|
278
|
+
paths: TRANSFORM_PATHS_3
|
|
232
279
|
}
|
|
233
280
|
])
|
|
234
281
|
};
|
|
@@ -255,11 +302,7 @@ function updateDocument(payload) {
|
|
|
255
302
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
256
303
|
{
|
|
257
304
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
258
|
-
paths:
|
|
259
|
-
{ path: "document.createdDate" },
|
|
260
|
-
{ path: "document.updatedDate" },
|
|
261
|
-
{ path: "document.expirationDate" }
|
|
262
|
-
]
|
|
305
|
+
paths: TRANSFORM_PATHS_1
|
|
263
306
|
}
|
|
264
307
|
])
|
|
265
308
|
};
|
|
@@ -286,7 +329,7 @@ function downloadDocument(payload) {
|
|
|
286
329
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
287
330
|
{
|
|
288
331
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
289
|
-
paths:
|
|
332
|
+
paths: TRANSFORM_PATHS_4
|
|
290
333
|
}
|
|
291
334
|
])
|
|
292
335
|
};
|
|
@@ -313,7 +356,7 @@ function getDownloadUrl(payload) {
|
|
|
313
356
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
314
357
|
{
|
|
315
358
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
316
|
-
paths:
|
|
359
|
+
paths: TRANSFORM_PATHS_4
|
|
317
360
|
}
|
|
318
361
|
])
|
|
319
362
|
};
|
|
@@ -342,60 +385,6 @@ function downloadDocumentSource(payload) {
|
|
|
342
385
|
}
|
|
343
386
|
return __downloadDocumentSource;
|
|
344
387
|
}
|
|
345
|
-
function getDownloadPage(payload) {
|
|
346
|
-
function __getDownloadPage({ host }) {
|
|
347
|
-
const metadata = {
|
|
348
|
-
entityFqdn: "wix.papyrus.v1.document",
|
|
349
|
-
method: "GET",
|
|
350
|
-
methodFqn: "wix.papyrus.v1.DownloadPageController.GetDownloadPage",
|
|
351
|
-
packageName: PACKAGE_NAME,
|
|
352
|
-
migrationOptions: {
|
|
353
|
-
optInTransformResponse: true
|
|
354
|
-
},
|
|
355
|
-
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
356
|
-
protoPath: "/download",
|
|
357
|
-
data: payload,
|
|
358
|
-
host
|
|
359
|
-
}),
|
|
360
|
-
params: toURLSearchParams(payload),
|
|
361
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
362
|
-
{
|
|
363
|
-
transformFn: transformRESTBytesToSDKBytes,
|
|
364
|
-
paths: [{ path: "body" }]
|
|
365
|
-
}
|
|
366
|
-
])
|
|
367
|
-
};
|
|
368
|
-
return metadata;
|
|
369
|
-
}
|
|
370
|
-
return __getDownloadPage;
|
|
371
|
-
}
|
|
372
|
-
function redirectToDocument(payload) {
|
|
373
|
-
function __redirectToDocument({ host }) {
|
|
374
|
-
const metadata = {
|
|
375
|
-
entityFqdn: "wix.papyrus.v1.document",
|
|
376
|
-
method: "GET",
|
|
377
|
-
methodFqn: "wix.papyrus.v1.DownloadPageController.RedirectToDocument",
|
|
378
|
-
packageName: PACKAGE_NAME,
|
|
379
|
-
migrationOptions: {
|
|
380
|
-
optInTransformResponse: true
|
|
381
|
-
},
|
|
382
|
-
url: resolveWixPapyrusV1DownloadPageControllerUrl({
|
|
383
|
-
protoPath: "/view",
|
|
384
|
-
data: payload,
|
|
385
|
-
host
|
|
386
|
-
}),
|
|
387
|
-
params: toURLSearchParams(payload),
|
|
388
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
389
|
-
{
|
|
390
|
-
transformFn: transformRESTBytesToSDKBytes,
|
|
391
|
-
paths: [{ path: "body" }]
|
|
392
|
-
}
|
|
393
|
-
])
|
|
394
|
-
};
|
|
395
|
-
return metadata;
|
|
396
|
-
}
|
|
397
|
-
return __redirectToDocument;
|
|
398
|
-
}
|
|
399
388
|
|
|
400
389
|
// src/papyrus-v1-document-documents.types.ts
|
|
401
390
|
var RenderStatus = /* @__PURE__ */ ((RenderStatus2) => {
|
|
@@ -418,6 +407,26 @@ var WixMpClientVersion = /* @__PURE__ */ ((WixMpClientVersion2) => {
|
|
|
418
407
|
WixMpClientVersion2["MP_V2"] = "MP_V2";
|
|
419
408
|
return WixMpClientVersion2;
|
|
420
409
|
})(WixMpClientVersion || {});
|
|
410
|
+
var ResizeOption = /* @__PURE__ */ ((ResizeOption2) => {
|
|
411
|
+
ResizeOption2["FIT"] = "FIT";
|
|
412
|
+
ResizeOption2["CROP"] = "CROP";
|
|
413
|
+
return ResizeOption2;
|
|
414
|
+
})(ResizeOption || {});
|
|
415
|
+
var PaperSize = /* @__PURE__ */ ((PaperSize2) => {
|
|
416
|
+
PaperSize2["A4_PORTRAIT"] = "A4_PORTRAIT";
|
|
417
|
+
PaperSize2["A4_LANDSCAPE"] = "A4_LANDSCAPE";
|
|
418
|
+
return PaperSize2;
|
|
419
|
+
})(PaperSize || {});
|
|
420
|
+
var PageOverflow = /* @__PURE__ */ ((PageOverflow2) => {
|
|
421
|
+
PageOverflow2["CONTENT_HIDDEN"] = "CONTENT_HIDDEN";
|
|
422
|
+
PageOverflow2["CONTENT_BREAK"] = "CONTENT_BREAK";
|
|
423
|
+
return PageOverflow2;
|
|
424
|
+
})(PageOverflow || {});
|
|
425
|
+
var RenderFormat = /* @__PURE__ */ ((RenderFormat2) => {
|
|
426
|
+
RenderFormat2["PDF"] = "PDF";
|
|
427
|
+
RenderFormat2["HTML"] = "HTML";
|
|
428
|
+
return RenderFormat2;
|
|
429
|
+
})(RenderFormat || {});
|
|
421
430
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
422
431
|
RequestedFields2["DOCUMENT_CONTENT"] = "DOCUMENT_CONTENT";
|
|
423
432
|
return RequestedFields2;
|
|
@@ -441,28 +450,44 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
441
450
|
WebhookIdentityType2["APP"] = "APP";
|
|
442
451
|
return WebhookIdentityType2;
|
|
443
452
|
})(WebhookIdentityType || {});
|
|
444
|
-
var ResizeOption = /* @__PURE__ */ ((ResizeOption2) => {
|
|
445
|
-
ResizeOption2["FIT"] = "FIT";
|
|
446
|
-
ResizeOption2["CROP"] = "CROP";
|
|
447
|
-
return ResizeOption2;
|
|
448
|
-
})(ResizeOption || {});
|
|
449
|
-
var PaperSize = /* @__PURE__ */ ((PaperSize2) => {
|
|
450
|
-
PaperSize2["A4_PORTRAIT"] = "A4_PORTRAIT";
|
|
451
|
-
PaperSize2["A4_LANDSCAPE"] = "A4_LANDSCAPE";
|
|
452
|
-
return PaperSize2;
|
|
453
|
-
})(PaperSize || {});
|
|
454
|
-
var PageOverflow = /* @__PURE__ */ ((PageOverflow2) => {
|
|
455
|
-
PageOverflow2["CONTENT_HIDDEN"] = "CONTENT_HIDDEN";
|
|
456
|
-
PageOverflow2["CONTENT_BREAK"] = "CONTENT_BREAK";
|
|
457
|
-
return PageOverflow2;
|
|
458
|
-
})(PageOverflow || {});
|
|
459
|
-
var RenderFormat = /* @__PURE__ */ ((RenderFormat2) => {
|
|
460
|
-
RenderFormat2["PDF"] = "PDF";
|
|
461
|
-
RenderFormat2["HTML"] = "HTML";
|
|
462
|
-
return RenderFormat2;
|
|
463
|
-
})(RenderFormat || {});
|
|
464
453
|
|
|
465
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
|
+
}
|
|
466
491
|
function createDocument2() {
|
|
467
492
|
const payload = {};
|
|
468
493
|
const getRequestOptions = createDocument(payload);
|
|
@@ -607,42 +632,6 @@ function downloadDocumentSource2() {
|
|
|
607
632
|
__originalResponseType: null
|
|
608
633
|
};
|
|
609
634
|
}
|
|
610
|
-
function getDownloadPage2() {
|
|
611
|
-
const payload = {};
|
|
612
|
-
const getRequestOptions = getDownloadPage(payload);
|
|
613
|
-
const getUrl = (context) => {
|
|
614
|
-
const { url } = getRequestOptions(context);
|
|
615
|
-
return url;
|
|
616
|
-
};
|
|
617
|
-
return {
|
|
618
|
-
getUrl,
|
|
619
|
-
httpMethod: "GET",
|
|
620
|
-
path: "/download",
|
|
621
|
-
pathParams: {},
|
|
622
|
-
__requestType: null,
|
|
623
|
-
__originalRequestType: null,
|
|
624
|
-
__responseType: null,
|
|
625
|
-
__originalResponseType: null
|
|
626
|
-
};
|
|
627
|
-
}
|
|
628
|
-
function redirectToDocument2() {
|
|
629
|
-
const payload = {};
|
|
630
|
-
const getRequestOptions = redirectToDocument(payload);
|
|
631
|
-
const getUrl = (context) => {
|
|
632
|
-
const { url } = getRequestOptions(context);
|
|
633
|
-
return url;
|
|
634
|
-
};
|
|
635
|
-
return {
|
|
636
|
-
getUrl,
|
|
637
|
-
httpMethod: "GET",
|
|
638
|
-
path: "/view",
|
|
639
|
-
pathParams: {},
|
|
640
|
-
__requestType: null,
|
|
641
|
-
__originalRequestType: null,
|
|
642
|
-
__responseType: null,
|
|
643
|
-
__originalResponseType: null
|
|
644
|
-
};
|
|
645
|
-
}
|
|
646
635
|
export {
|
|
647
636
|
ContentDisposition as ContentDispositionOriginal,
|
|
648
637
|
Format as FormatOriginal,
|