@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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +18 -18
  2. package/build/cjs/index.js +173 -156
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +552 -528
  5. package/build/cjs/index.typings.js +136 -127
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +536 -525
  8. package/build/cjs/meta.js +125 -114
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +26 -22
  11. package/build/cjs/schemas.js +317 -271
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +18 -18
  14. package/build/es/index.mjs +173 -156
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +552 -528
  17. package/build/es/index.typings.mjs +136 -127
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +536 -525
  20. package/build/es/meta.mjs +125 -114
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +26 -22
  23. package/build/es/schemas.mjs +317 -271
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +18 -18
  26. package/build/internal/cjs/index.typings.d.ts +616 -523
  27. package/build/internal/cjs/meta.d.ts +642 -516
  28. package/build/internal/cjs/schemas.d.ts +26 -22
  29. package/build/internal/es/index.d.mts +18 -18
  30. package/build/internal/es/index.typings.d.mts +616 -523
  31. package/build/internal/es/meta.d.mts +642 -516
  32. package/build/internal/es/schemas.d.mts +26 -22
  33. package/package.json +4 -4
  34. package/build/internal/cjs/index.js +0 -1101
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -863
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -705
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -658
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -1050
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -817
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -658
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -602
  49. package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/meta.js CHANGED
@@ -46,12 +46,13 @@ module.exports = __toCommonJS(meta_exports);
46
46
 
47
47
  // src/papyrus-v1-document-documents.http.ts
48
48
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
49
+ var import_float = require("@wix/sdk-runtime/transformations/float");
49
50
  var import_bytes = require("@wix/sdk-runtime/transformations/bytes");
50
51
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
51
52
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
52
53
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
53
54
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
54
- function resolveWixPapyrusV1DocumentServiceUrl(opts) {
55
+ function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
55
56
  const domainToMappings = {
56
57
  "api._base_domain_": [
57
58
  {
@@ -94,7 +95,7 @@ function resolveWixPapyrusV1DocumentServiceUrl(opts) {
94
95
  };
95
96
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
96
97
  }
97
- function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
98
+ function resolveWixPapyrusV1DocumentServiceUrl(opts) {
98
99
  const domainToMappings = {
99
100
  "api._base_domain_": [
100
101
  {
@@ -138,60 +139,6 @@ function resolveWixPapyrusV1DownloadPageControllerUrl(opts) {
138
139
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
139
140
  }
140
141
  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
142
  function createDocument(payload) {
196
143
  function __createDocument({ host }) {
197
144
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -297,6 +244,15 @@ function deleteDocument(payload) {
297
244
  }
298
245
  function queryDocument(payload) {
299
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
+ ]);
300
256
  const metadata = {
301
257
  entityFqdn: "wix.papyrus.v1.document",
302
258
  method: "POST",
@@ -307,10 +263,10 @@ function queryDocument(payload) {
307
263
  },
308
264
  url: resolveWixPapyrusV1DocumentServiceUrl({
309
265
  protoPath: "/v1/documents/query",
310
- data: payload,
266
+ data: serializedData,
311
267
  host
312
268
  }),
313
- data: payload,
269
+ data: serializedData,
314
270
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
315
271
  {
316
272
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -432,6 +388,60 @@ function downloadDocumentSource(payload) {
432
388
  }
433
389
  return __downloadDocumentSource;
434
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
+ }
435
445
 
436
446
  // src/papyrus-v1-document-documents.types.ts
437
447
  var RenderStatus = /* @__PURE__ */ ((RenderStatus2) => {
@@ -454,26 +464,6 @@ var WixMpClientVersion = /* @__PURE__ */ ((WixMpClientVersion2) => {
454
464
  WixMpClientVersion2["MP_V2"] = "MP_V2";
455
465
  return WixMpClientVersion2;
456
466
  })(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
467
  var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
478
468
  RequestedFields2["DOCUMENT_CONTENT"] = "DOCUMENT_CONTENT";
479
469
  return RequestedFields2;
@@ -484,6 +474,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
484
474
  return SortOrder2;
485
475
  })(SortOrder || {});
486
476
  var ContentDisposition = /* @__PURE__ */ ((ContentDisposition2) => {
477
+ ContentDisposition2["UNKNOWN_CONTENT_DISPOSITION"] = "UNKNOWN_CONTENT_DISPOSITION";
487
478
  ContentDisposition2["ATTACHMENT"] = "ATTACHMENT";
488
479
  ContentDisposition2["INLINE"] = "INLINE";
489
480
  return ContentDisposition2;
@@ -496,44 +487,28 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
496
487
  WebhookIdentityType2["APP"] = "APP";
497
488
  return WebhookIdentityType2;
498
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 || {});
499
510
 
500
511
  // 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
512
  function createDocument2() {
538
513
  const payload = {};
539
514
  const getRequestOptions = createDocument(payload);
@@ -678,6 +653,42 @@ function downloadDocumentSource2() {
678
653
  __originalResponseType: null
679
654
  };
680
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
+ }
681
692
  // Annotate the CommonJS export names for ESM import in node:
682
693
  0 && (module.exports = {
683
694
  ContentDispositionOriginal,