@monorise/react 7.1.0 → 7.1.1

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 (67) hide show
  1. package/dist/helpers/transactional.d.ts +40 -0
  2. package/dist/helpers/transactional.d.ts.map +1 -0
  3. package/dist/index.d.ts +4 -17
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +168 -8677
  6. package/dist/index.js.map +1 -1
  7. package/dist/services/core.service.d.ts +2 -8
  8. package/dist/services/core.service.d.ts.map +1 -1
  9. package/package.json +1 -1
  10. package/dist/chunk-5XIRNUBL.js +0 -43
  11. package/dist/chunk-5XIRNUBL.js.map +0 -1
  12. package/dist/chunk-7JDOKZGQ.js +0 -172
  13. package/dist/chunk-7JDOKZGQ.js.map +0 -1
  14. package/dist/chunk-A5TI2FW3.js +0 -13
  15. package/dist/chunk-A5TI2FW3.js.map +0 -1
  16. package/dist/chunk-AYQDOLYF.js +0 -628
  17. package/dist/chunk-AYQDOLYF.js.map +0 -1
  18. package/dist/chunk-BUTF5RJU.js +0 -29
  19. package/dist/chunk-BUTF5RJU.js.map +0 -1
  20. package/dist/chunk-EYG2DL3D.js +0 -893
  21. package/dist/chunk-EYG2DL3D.js.map +0 -1
  22. package/dist/chunk-GEN4TSCQ.js +0 -5179
  23. package/dist/chunk-GEN4TSCQ.js.map +0 -1
  24. package/dist/chunk-GFVCNWVT.js +0 -54
  25. package/dist/chunk-GFVCNWVT.js.map +0 -1
  26. package/dist/chunk-KJX5LOMN.js +0 -43
  27. package/dist/chunk-KJX5LOMN.js.map +0 -1
  28. package/dist/chunk-KLXK4V6G.js +0 -65
  29. package/dist/chunk-KLXK4V6G.js.map +0 -1
  30. package/dist/chunk-L6MAS3AX.js +0 -482
  31. package/dist/chunk-L6MAS3AX.js.map +0 -1
  32. package/dist/chunk-LPXR5V4J.js +0 -582
  33. package/dist/chunk-LPXR5V4J.js.map +0 -1
  34. package/dist/chunk-MIXAYX55.js +0 -147
  35. package/dist/chunk-MIXAYX55.js.map +0 -1
  36. package/dist/chunk-OEHQ546W.js +0 -182
  37. package/dist/chunk-OEHQ546W.js.map +0 -1
  38. package/dist/chunk-RPNCWADG.js +0 -248
  39. package/dist/chunk-RPNCWADG.js.map +0 -1
  40. package/dist/chunk-S6RDMHHH.js +0 -47
  41. package/dist/chunk-S6RDMHHH.js.map +0 -1
  42. package/dist/chunk-VVCM7N22.js +0 -101
  43. package/dist/chunk-VVCM7N22.js.map +0 -1
  44. package/dist/dist-es-5WYA7CWK.js +0 -379
  45. package/dist/dist-es-5WYA7CWK.js.map +0 -1
  46. package/dist/dist-es-DLWQXBOR.js +0 -333
  47. package/dist/dist-es-DLWQXBOR.js.map +0 -1
  48. package/dist/dist-es-EMJCB37T.js +0 -71
  49. package/dist/dist-es-EMJCB37T.js.map +0 -1
  50. package/dist/dist-es-Q7IAXWRB.js +0 -494
  51. package/dist/dist-es-Q7IAXWRB.js.map +0 -1
  52. package/dist/dist-es-QF65HH5Y.js +0 -169
  53. package/dist/dist-es-QF65HH5Y.js.map +0 -1
  54. package/dist/dist-es-R4TRTT45.js +0 -22
  55. package/dist/dist-es-R4TRTT45.js.map +0 -1
  56. package/dist/dist-es-XNAC47MK.js +0 -90
  57. package/dist/dist-es-XNAC47MK.js.map +0 -1
  58. package/dist/event-streams-6APKUBMC.js +0 -270
  59. package/dist/event-streams-6APKUBMC.js.map +0 -1
  60. package/dist/loadSso-WMS367NT.js +0 -595
  61. package/dist/loadSso-WMS367NT.js.map +0 -1
  62. package/dist/signin-2I7AG6XI.js +0 -707
  63. package/dist/signin-2I7AG6XI.js.map +0 -1
  64. package/dist/sso-oidc-OAJ7SALL.js +0 -825
  65. package/dist/sso-oidc-OAJ7SALL.js.map +0 -1
  66. package/dist/sts-LKM23TRV.js +0 -3866
  67. package/dist/sts-LKM23TRV.js.map +0 -1
@@ -1,54 +0,0 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "./chunk-MIXAYX55.js";
5
-
6
- // ../../node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js
7
- var createAggregatedClient = (commands, Client, options) => {
8
- for (const [command, CommandCtor] of Object.entries(commands)) {
9
- const methodImpl = async function(args, optionsOrCb, cb) {
10
- const command2 = new CommandCtor(args);
11
- if (typeof optionsOrCb === "function") {
12
- this.send(command2, optionsOrCb);
13
- } else if (typeof cb === "function") {
14
- if (typeof optionsOrCb !== "object")
15
- throw new Error(`Expected http options but got ${typeof optionsOrCb}`);
16
- this.send(command2, optionsOrCb || {}, cb);
17
- } else {
18
- return this.send(command2, optionsOrCb);
19
- }
20
- };
21
- const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
22
- Client.prototype[methodName] = methodImpl;
23
- }
24
- const { paginators = {}, waiters = {} } = options != null ? options : {};
25
- for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
26
- if (Client.prototype[paginatorName] === void 0) {
27
- Client.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
28
- return paginatorFn(__spreadProps(__spreadValues({}, paginationConfiguration), {
29
- client: this
30
- }), commandInput, ...rest);
31
- };
32
- }
33
- }
34
- for (const [waiterName, waiterFn] of Object.entries(waiters)) {
35
- if (Client.prototype[waiterName] === void 0) {
36
- Client.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
37
- let config = waiterConfiguration;
38
- if (typeof waiterConfiguration === "number") {
39
- config = {
40
- maxWaitTime: waiterConfiguration
41
- };
42
- }
43
- return waiterFn(__spreadProps(__spreadValues({}, config), {
44
- client: this
45
- }), commandInput, ...rest);
46
- };
47
- }
48
- }
49
- };
50
-
51
- export {
52
- createAggregatedClient
53
- };
54
- //# sourceMappingURL=chunk-GFVCNWVT.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js"],"sourcesContent":["export const createAggregatedClient = (commands, Client, options) => {\n for (const [command, CommandCtor] of Object.entries(commands)) {\n const methodImpl = async function (args, optionsOrCb, cb) {\n const command = new CommandCtor(args);\n if (typeof optionsOrCb === \"function\") {\n this.send(command, optionsOrCb);\n }\n else if (typeof cb === \"function\") {\n if (typeof optionsOrCb !== \"object\")\n throw new Error(`Expected http options but got ${typeof optionsOrCb}`);\n this.send(command, optionsOrCb || {}, cb);\n }\n else {\n return this.send(command, optionsOrCb);\n }\n };\n const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, \"\");\n Client.prototype[methodName] = methodImpl;\n }\n const { paginators = {}, waiters = {} } = options ?? {};\n for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {\n if (Client.prototype[paginatorName] === void 0) {\n Client.prototype[paginatorName] = function (commandInput = {}, paginationConfiguration, ...rest) {\n return paginatorFn({\n ...paginationConfiguration,\n client: this,\n }, commandInput, ...rest);\n };\n }\n }\n for (const [waiterName, waiterFn] of Object.entries(waiters)) {\n if (Client.prototype[waiterName] === void 0) {\n Client.prototype[waiterName] = async function (commandInput = {}, waiterConfiguration, ...rest) {\n let config = waiterConfiguration;\n if (typeof waiterConfiguration === \"number\") {\n config = {\n maxWaitTime: waiterConfiguration,\n };\n }\n return waiterFn({\n ...config,\n client: this,\n }, commandInput, ...rest);\n };\n }\n }\n};\n"],"mappings":";;;;;;AAAO,IAAM,yBAAyB,CAAC,UAAU,QAAQ,YAAY;AACjE,aAAW,CAAC,SAAS,WAAW,KAAK,OAAO,QAAQ,QAAQ,GAAG;AAC3D,UAAM,aAAa,eAAgB,MAAM,aAAa,IAAI;AACtD,YAAMA,WAAU,IAAI,YAAY,IAAI;AACpC,UAAI,OAAO,gBAAgB,YAAY;AACnC,aAAK,KAAKA,UAAS,WAAW;AAAA,MAClC,WACS,OAAO,OAAO,YAAY;AAC/B,YAAI,OAAO,gBAAgB;AACvB,gBAAM,IAAI,MAAM,iCAAiC,OAAO,WAAW,EAAE;AACzE,aAAK,KAAKA,UAAS,eAAe,CAAC,GAAG,EAAE;AAAA,MAC5C,OACK;AACD,eAAO,KAAK,KAAKA,UAAS,WAAW;AAAA,MACzC;AAAA,IACJ;AACA,UAAM,cAAc,QAAQ,CAAC,EAAE,YAAY,IAAI,QAAQ,MAAM,CAAC,GAAG,QAAQ,YAAY,EAAE;AACvF,WAAO,UAAU,UAAU,IAAI;AAAA,EACnC;AACA,QAAM,EAAE,aAAa,CAAC,GAAG,UAAU,CAAC,EAAE,IAAI,4BAAW,CAAC;AACtD,aAAW,CAAC,eAAe,WAAW,KAAK,OAAO,QAAQ,UAAU,GAAG;AACnE,QAAI,OAAO,UAAU,aAAa,MAAM,QAAQ;AAC5C,aAAO,UAAU,aAAa,IAAI,SAAU,eAAe,CAAC,GAAG,4BAA4B,MAAM;AAC7F,eAAO,YAAY,iCACZ,0BADY;AAAA,UAEf,QAAQ;AAAA,QACZ,IAAG,cAAc,GAAG,IAAI;AAAA,MAC5B;AAAA,IACJ;AAAA,EACJ;AACA,aAAW,CAAC,YAAY,QAAQ,KAAK,OAAO,QAAQ,OAAO,GAAG;AAC1D,QAAI,OAAO,UAAU,UAAU,MAAM,QAAQ;AACzC,aAAO,UAAU,UAAU,IAAI,eAAgB,eAAe,CAAC,GAAG,wBAAwB,MAAM;AAC5F,YAAI,SAAS;AACb,YAAI,OAAO,wBAAwB,UAAU;AACzC,mBAAS;AAAA,YACL,aAAa;AAAA,UACjB;AAAA,QACJ;AACA,eAAO,SAAS,iCACT,SADS;AAAA,UAEZ,QAAQ;AAAA,QACZ,IAAG,cAAc,GAAG,IAAI;AAAA,MAC5B;AAAA,IACJ;AAAA,EACJ;AACJ;","names":["command"]}
@@ -1,43 +0,0 @@
1
- // ../../node_modules/@smithy/is-array-buffer/dist-es/index.js
2
- var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
3
-
4
- // ../../node_modules/@smithy/util-buffer-from/dist-es/index.js
5
- import { Buffer } from "buffer";
6
- var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
7
- if (!isArrayBuffer(input)) {
8
- throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
9
- }
10
- return Buffer.from(input, offset, length);
11
- };
12
- var fromString = (input, encoding) => {
13
- if (typeof input !== "string") {
14
- throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
15
- }
16
- return encoding ? Buffer.from(input, encoding) : Buffer.from(input);
17
- };
18
-
19
- // ../../node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
20
- var fromUtf8 = (input) => {
21
- const buf = fromString(input, "utf8");
22
- return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
23
- };
24
-
25
- // ../../node_modules/@smithy/util-utf8/dist-es/toUtf8.js
26
- var toUtf8 = (input) => {
27
- if (typeof input === "string") {
28
- return input;
29
- }
30
- if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
31
- throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
32
- }
33
- return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
34
- };
35
-
36
- export {
37
- isArrayBuffer,
38
- fromArrayBuffer,
39
- fromString,
40
- fromUtf8,
41
- toUtf8
42
- };
43
- //# sourceMappingURL=chunk-KJX5LOMN.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/@smithy/is-array-buffer/dist-es/index.js","../../../node_modules/@smithy/util-buffer-from/dist-es/index.js","../../../node_modules/@smithy/util-utf8/dist-es/fromUtf8.js","../../../node_modules/@smithy/util-utf8/dist-es/toUtf8.js"],"sourcesContent":["export const isArrayBuffer = (arg) => (typeof ArrayBuffer === \"function\" && arg instanceof ArrayBuffer) ||\n Object.prototype.toString.call(arg) === \"[object ArrayBuffer]\";\n","import { isArrayBuffer } from \"@smithy/is-array-buffer\";\nimport { Buffer } from \"buffer\";\nexport const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {\n if (!isArrayBuffer(input)) {\n throw new TypeError(`The \"input\" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);\n }\n return Buffer.from(input, offset, length);\n};\nexport const fromString = (input, encoding) => {\n if (typeof input !== \"string\") {\n throw new TypeError(`The \"input\" argument must be of type string. Received type ${typeof input} (${input})`);\n }\n return encoding ? Buffer.from(input, encoding) : Buffer.from(input);\n};\n","import { fromString } from \"@smithy/util-buffer-from\";\nexport const fromUtf8 = (input) => {\n const buf = fromString(input, \"utf8\");\n return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);\n};\n","import { fromArrayBuffer } from \"@smithy/util-buffer-from\";\nexport const toUtf8 = (input) => {\n if (typeof input === \"string\") {\n return input;\n }\n if (typeof input !== \"object\" || typeof input.byteOffset !== \"number\" || typeof input.byteLength !== \"number\") {\n throw new Error(\"@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.\");\n }\n return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString(\"utf8\");\n};\n"],"mappings":";AAAO,IAAM,gBAAgB,CAAC,QAAS,OAAO,gBAAgB,cAAc,eAAe,eACvF,OAAO,UAAU,SAAS,KAAK,GAAG,MAAM;;;ACA5C,SAAS,cAAc;AAChB,IAAM,kBAAkB,CAAC,OAAO,SAAS,GAAG,SAAS,MAAM,aAAa,WAAW;AACtF,MAAI,CAAC,cAAc,KAAK,GAAG;AACvB,UAAM,IAAI,UAAU,2DAA2D,OAAO,KAAK,KAAK,KAAK,GAAG;AAAA,EAC5G;AACA,SAAO,OAAO,KAAK,OAAO,QAAQ,MAAM;AAC5C;AACO,IAAM,aAAa,CAAC,OAAO,aAAa;AAC3C,MAAI,OAAO,UAAU,UAAU;AAC3B,UAAM,IAAI,UAAU,8DAA8D,OAAO,KAAK,KAAK,KAAK,GAAG;AAAA,EAC/G;AACA,SAAO,WAAW,OAAO,KAAK,OAAO,QAAQ,IAAI,OAAO,KAAK,KAAK;AACtE;;;ACZO,IAAM,WAAW,CAAC,UAAU;AAC/B,QAAM,MAAM,WAAW,OAAO,MAAM;AACpC,SAAO,IAAI,WAAW,IAAI,QAAQ,IAAI,YAAY,IAAI,aAAa,WAAW,iBAAiB;AACnG;;;ACHO,IAAM,SAAS,CAAC,UAAU;AAC7B,MAAI,OAAO,UAAU,UAAU;AAC3B,WAAO;AAAA,EACX;AACA,MAAI,OAAO,UAAU,YAAY,OAAO,MAAM,eAAe,YAAY,OAAO,MAAM,eAAe,UAAU;AAC3G,UAAM,IAAI,MAAM,8EAA8E;AAAA,EAClG;AACA,SAAO,gBAAgB,MAAM,QAAQ,MAAM,YAAY,MAAM,UAAU,EAAE,SAAS,MAAM;AAC5F;","names":[]}
@@ -1,65 +0,0 @@
1
- import {
2
- __publicField,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-MIXAYX55.js";
6
-
7
- // ../../node_modules/@smithy/protocol-http/dist-es/httpRequest.js
8
- var HttpRequest = class _HttpRequest {
9
- constructor(options) {
10
- __publicField(this, "method");
11
- __publicField(this, "protocol");
12
- __publicField(this, "hostname");
13
- __publicField(this, "port");
14
- __publicField(this, "path");
15
- __publicField(this, "query");
16
- __publicField(this, "headers");
17
- __publicField(this, "username");
18
- __publicField(this, "password");
19
- __publicField(this, "fragment");
20
- __publicField(this, "body");
21
- this.method = options.method || "GET";
22
- this.hostname = options.hostname || "localhost";
23
- this.port = options.port;
24
- this.query = options.query || {};
25
- this.headers = options.headers || {};
26
- this.body = options.body;
27
- this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
28
- this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
29
- this.username = options.username;
30
- this.password = options.password;
31
- this.fragment = options.fragment;
32
- }
33
- static clone(request) {
34
- const cloned = new _HttpRequest(__spreadProps(__spreadValues({}, request), {
35
- headers: __spreadValues({}, request.headers)
36
- }));
37
- if (cloned.query) {
38
- cloned.query = cloneQuery(cloned.query);
39
- }
40
- return cloned;
41
- }
42
- static isInstance(request) {
43
- if (!request) {
44
- return false;
45
- }
46
- const req = request;
47
- return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
48
- }
49
- clone() {
50
- return _HttpRequest.clone(this);
51
- }
52
- };
53
- function cloneQuery(query) {
54
- return Object.keys(query).reduce((carry, paramName) => {
55
- const param = query[paramName];
56
- return __spreadProps(__spreadValues({}, carry), {
57
- [paramName]: Array.isArray(param) ? [...param] : param
58
- });
59
- }, {});
60
- }
61
-
62
- export {
63
- HttpRequest
64
- };
65
- //# sourceMappingURL=chunk-KLXK4V6G.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/@smithy/protocol-http/dist-es/httpRequest.js"],"sourcesContent":["export class HttpRequest {\n method;\n protocol;\n hostname;\n port;\n path;\n query;\n headers;\n username;\n password;\n fragment;\n body;\n constructor(options) {\n this.method = options.method || \"GET\";\n this.hostname = options.hostname || \"localhost\";\n this.port = options.port;\n this.query = options.query || {};\n this.headers = options.headers || {};\n this.body = options.body;\n this.protocol = options.protocol\n ? options.protocol.slice(-1) !== \":\"\n ? `${options.protocol}:`\n : options.protocol\n : \"https:\";\n this.path = options.path ? (options.path.charAt(0) !== \"/\" ? `/${options.path}` : options.path) : \"/\";\n this.username = options.username;\n this.password = options.password;\n this.fragment = options.fragment;\n }\n static clone(request) {\n const cloned = new HttpRequest({\n ...request,\n headers: { ...request.headers },\n });\n if (cloned.query) {\n cloned.query = cloneQuery(cloned.query);\n }\n return cloned;\n }\n static isInstance(request) {\n if (!request) {\n return false;\n }\n const req = request;\n return (\"method\" in req &&\n \"protocol\" in req &&\n \"hostname\" in req &&\n \"path\" in req &&\n typeof req[\"query\"] === \"object\" &&\n typeof req[\"headers\"] === \"object\");\n }\n clone() {\n return HttpRequest.clone(this);\n }\n}\nfunction cloneQuery(query) {\n return Object.keys(query).reduce((carry, paramName) => {\n const param = query[paramName];\n return {\n ...carry,\n [paramName]: Array.isArray(param) ? [...param] : param,\n };\n }, {});\n}\n"],"mappings":";;;;;;;AAAO,IAAM,cAAN,MAAM,aAAY;AAAA,EAYrB,YAAY,SAAS;AAXrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEI,SAAK,SAAS,QAAQ,UAAU;AAChC,SAAK,WAAW,QAAQ,YAAY;AACpC,SAAK,OAAO,QAAQ;AACpB,SAAK,QAAQ,QAAQ,SAAS,CAAC;AAC/B,SAAK,UAAU,QAAQ,WAAW,CAAC;AACnC,SAAK,OAAO,QAAQ;AACpB,SAAK,WAAW,QAAQ,WAClB,QAAQ,SAAS,MAAM,EAAE,MAAM,MAC3B,GAAG,QAAQ,QAAQ,MACnB,QAAQ,WACZ;AACN,SAAK,OAAO,QAAQ,OAAQ,QAAQ,KAAK,OAAO,CAAC,MAAM,MAAM,IAAI,QAAQ,IAAI,KAAK,QAAQ,OAAQ;AAClG,SAAK,WAAW,QAAQ;AACxB,SAAK,WAAW,QAAQ;AACxB,SAAK,WAAW,QAAQ;AAAA,EAC5B;AAAA,EACA,OAAO,MAAM,SAAS;AAClB,UAAM,SAAS,IAAI,aAAY,iCACxB,UADwB;AAAA,MAE3B,SAAS,mBAAK,QAAQ;AAAA,IAC1B,EAAC;AACD,QAAI,OAAO,OAAO;AACd,aAAO,QAAQ,WAAW,OAAO,KAAK;AAAA,IAC1C;AACA,WAAO;AAAA,EACX;AAAA,EACA,OAAO,WAAW,SAAS;AACvB,QAAI,CAAC,SAAS;AACV,aAAO;AAAA,IACX;AACA,UAAM,MAAM;AACZ,WAAQ,YAAY,OAChB,cAAc,OACd,cAAc,OACd,UAAU,OACV,OAAO,IAAI,OAAO,MAAM,YACxB,OAAO,IAAI,SAAS,MAAM;AAAA,EAClC;AAAA,EACA,QAAQ;AACJ,WAAO,aAAY,MAAM,IAAI;AAAA,EACjC;AACJ;AACA,SAAS,WAAW,OAAO;AACvB,SAAO,OAAO,KAAK,KAAK,EAAE,OAAO,CAAC,OAAO,cAAc;AACnD,UAAM,QAAQ,MAAM,SAAS;AAC7B,WAAO,iCACA,QADA;AAAA,MAEH,CAAC,SAAS,GAAG,MAAM,QAAQ,KAAK,IAAI,CAAC,GAAG,KAAK,IAAI;AAAA,IACrD;AAAA,EACJ,GAAG,CAAC,CAAC;AACT;","names":[]}
@@ -1,482 +0,0 @@
1
- import {
2
- LazyJsonString,
3
- NormalizedSchema,
4
- NumericValue,
5
- SerdeContextConfig,
6
- UnionSerde,
7
- collectBody,
8
- determineTimestampFormat,
9
- v4
10
- } from "./chunk-GEN4TSCQ.js";
11
- import {
12
- dateToUtcString,
13
- fromBase64,
14
- parseEpochTimestamp,
15
- parseRfc3339DateTimeWithOffset,
16
- parseRfc7231DateTime,
17
- toBase64
18
- } from "./chunk-EYG2DL3D.js";
19
- import {
20
- toUtf8
21
- } from "./chunk-KJX5LOMN.js";
22
- import {
23
- __publicField
24
- } from "./chunk-MIXAYX55.js";
25
-
26
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/common.js
27
- var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => {
28
- var _a;
29
- return ((_a = context == null ? void 0 : context.utf8Encoder) != null ? _a : toUtf8)(body);
30
- });
31
-
32
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js
33
- var parseJsonBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
34
- if (encoded.length) {
35
- try {
36
- return JSON.parse(encoded);
37
- } catch (e) {
38
- if ((e == null ? void 0 : e.name) === "SyntaxError") {
39
- Object.defineProperty(e, "$responseBodyText", {
40
- value: encoded
41
- });
42
- }
43
- throw e;
44
- }
45
- }
46
- return {};
47
- });
48
- var loadRestJsonErrorCode = (output, data) => {
49
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
50
- const sanitizeErrorCode = (rawValue) => {
51
- let cleanValue = rawValue;
52
- if (typeof cleanValue === "number") {
53
- cleanValue = cleanValue.toString();
54
- }
55
- if (cleanValue.indexOf(",") >= 0) {
56
- cleanValue = cleanValue.split(",")[0];
57
- }
58
- if (cleanValue.indexOf(":") >= 0) {
59
- cleanValue = cleanValue.split(":")[0];
60
- }
61
- if (cleanValue.indexOf("#") >= 0) {
62
- cleanValue = cleanValue.split("#")[1];
63
- }
64
- return cleanValue;
65
- };
66
- const headerKey = findKey(output.headers, "x-amzn-errortype");
67
- if (headerKey !== void 0) {
68
- return sanitizeErrorCode(output.headers[headerKey]);
69
- }
70
- if (data && typeof data === "object") {
71
- const codeKey = findKey(data, "code");
72
- if (codeKey && data[codeKey] !== void 0) {
73
- return sanitizeErrorCode(data[codeKey]);
74
- }
75
- if (data["__type"] !== void 0) {
76
- return sanitizeErrorCode(data["__type"]);
77
- }
78
- }
79
- };
80
-
81
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReviver.js
82
- function jsonReviver(key, value, context) {
83
- if (context == null ? void 0 : context.source) {
84
- const numericString = context.source;
85
- if (typeof value === "number") {
86
- if (value > Number.MAX_SAFE_INTEGER || value < Number.MIN_SAFE_INTEGER || numericString !== String(value)) {
87
- const isFractional = numericString.includes(".");
88
- if (isFractional) {
89
- return new NumericValue(numericString, "bigDecimal");
90
- } else {
91
- return BigInt(numericString);
92
- }
93
- }
94
- }
95
- }
96
- return value;
97
- }
98
-
99
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeDeserializer.js
100
- var JsonShapeDeserializer = class extends SerdeContextConfig {
101
- constructor(settings) {
102
- super();
103
- __publicField(this, "settings");
104
- this.settings = settings;
105
- }
106
- async read(schema, data) {
107
- return this._read(schema, typeof data === "string" ? JSON.parse(data, jsonReviver) : await parseJsonBody(data, this.serdeContext));
108
- }
109
- readObject(schema, data) {
110
- return this._read(schema, data);
111
- }
112
- _read(schema, value) {
113
- var _a, _b;
114
- const isObject = value !== null && typeof value === "object";
115
- const ns = NormalizedSchema.of(schema);
116
- if (isObject) {
117
- if (ns.isStructSchema()) {
118
- const record = value;
119
- const union = ns.isUnionSchema();
120
- const out = {};
121
- let nameMap = void 0;
122
- const { jsonName } = this.settings;
123
- if (jsonName) {
124
- nameMap = {};
125
- }
126
- let unionSerde;
127
- if (union) {
128
- unionSerde = new UnionSerde(record, out);
129
- }
130
- for (const [memberName, memberSchema] of ns.structIterator()) {
131
- let fromKey = memberName;
132
- if (jsonName) {
133
- fromKey = (_a = memberSchema.getMergedTraits().jsonName) != null ? _a : fromKey;
134
- nameMap[fromKey] = memberName;
135
- }
136
- if (union) {
137
- unionSerde.mark(fromKey);
138
- }
139
- if (record[fromKey] != null) {
140
- out[memberName] = this._read(memberSchema, record[fromKey]);
141
- }
142
- }
143
- if (union) {
144
- unionSerde.writeUnknown();
145
- } else if (typeof record.__type === "string") {
146
- for (const [k, v] of Object.entries(record)) {
147
- const t = jsonName ? (_b = nameMap[k]) != null ? _b : k : k;
148
- if (!(t in out)) {
149
- out[t] = v;
150
- }
151
- }
152
- }
153
- return out;
154
- }
155
- if (Array.isArray(value) && ns.isListSchema()) {
156
- const listMember = ns.getValueSchema();
157
- const out = [];
158
- for (const item of value) {
159
- out.push(this._read(listMember, item));
160
- }
161
- return out;
162
- }
163
- if (ns.isMapSchema()) {
164
- const mapMember = ns.getValueSchema();
165
- const out = {};
166
- for (const [_k, _v] of Object.entries(value)) {
167
- out[_k] = this._read(mapMember, _v);
168
- }
169
- return out;
170
- }
171
- }
172
- if (ns.isBlobSchema() && typeof value === "string") {
173
- return fromBase64(value);
174
- }
175
- const mediaType = ns.getMergedTraits().mediaType;
176
- if (ns.isStringSchema() && typeof value === "string" && mediaType) {
177
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
178
- if (isJson) {
179
- return LazyJsonString.from(value);
180
- }
181
- return value;
182
- }
183
- if (ns.isTimestampSchema() && value != null) {
184
- const format = determineTimestampFormat(ns, this.settings);
185
- switch (format) {
186
- case 5:
187
- return parseRfc3339DateTimeWithOffset(value);
188
- case 6:
189
- return parseRfc7231DateTime(value);
190
- case 7:
191
- return parseEpochTimestamp(value);
192
- default:
193
- console.warn("Missing timestamp format, parsing value with Date constructor:", value);
194
- return new Date(value);
195
- }
196
- }
197
- if (ns.isBigIntegerSchema() && (typeof value === "number" || typeof value === "string")) {
198
- return BigInt(value);
199
- }
200
- if (ns.isBigDecimalSchema() && value != void 0) {
201
- if (value instanceof NumericValue) {
202
- return value;
203
- }
204
- const untyped = value;
205
- if (untyped.type === "bigDecimal" && "string" in untyped) {
206
- return new NumericValue(untyped.string, untyped.type);
207
- }
208
- return new NumericValue(String(value), "bigDecimal");
209
- }
210
- if (ns.isNumericSchema() && typeof value === "string") {
211
- switch (value) {
212
- case "Infinity":
213
- return Infinity;
214
- case "-Infinity":
215
- return -Infinity;
216
- case "NaN":
217
- return NaN;
218
- }
219
- return value;
220
- }
221
- if (ns.isDocumentSchema()) {
222
- if (isObject) {
223
- const out = Array.isArray(value) ? [] : {};
224
- for (const [k, v] of Object.entries(value)) {
225
- if (v instanceof NumericValue) {
226
- out[k] = v;
227
- } else {
228
- out[k] = this._read(ns, v);
229
- }
230
- }
231
- return out;
232
- } else {
233
- return structuredClone(value);
234
- }
235
- }
236
- return value;
237
- }
238
- };
239
-
240
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/jsonReplacer.js
241
- var NUMERIC_CONTROL_CHAR = String.fromCharCode(925);
242
- var JsonReplacer = class {
243
- constructor() {
244
- __publicField(this, "values", /* @__PURE__ */ new Map());
245
- __publicField(this, "counter", 0);
246
- __publicField(this, "stage", 0);
247
- }
248
- createReplacer() {
249
- if (this.stage === 1) {
250
- throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");
251
- }
252
- if (this.stage === 2) {
253
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
254
- }
255
- this.stage = 1;
256
- return (key, value) => {
257
- if (value instanceof NumericValue) {
258
- const v = `${NUMERIC_CONTROL_CHAR + "nv" + this.counter++}_` + value.string;
259
- this.values.set(`"${v}"`, value.string);
260
- return v;
261
- }
262
- if (typeof value === "bigint") {
263
- const s = value.toString();
264
- const v = `${NUMERIC_CONTROL_CHAR + "b" + this.counter++}_` + s;
265
- this.values.set(`"${v}"`, s);
266
- return v;
267
- }
268
- return value;
269
- };
270
- }
271
- replaceInJson(json) {
272
- if (this.stage === 0) {
273
- throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");
274
- }
275
- if (this.stage === 2) {
276
- throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");
277
- }
278
- this.stage = 2;
279
- if (this.counter === 0) {
280
- return json;
281
- }
282
- for (const [key, value] of this.values) {
283
- json = json.replace(key, value);
284
- }
285
- return json;
286
- }
287
- };
288
-
289
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js
290
- var JsonShapeSerializer = class extends SerdeContextConfig {
291
- constructor(settings) {
292
- super();
293
- __publicField(this, "settings");
294
- __publicField(this, "buffer");
295
- __publicField(this, "useReplacer", false);
296
- __publicField(this, "rootSchema");
297
- this.settings = settings;
298
- }
299
- write(schema, value) {
300
- this.rootSchema = NormalizedSchema.of(schema);
301
- this.buffer = this._write(this.rootSchema, value);
302
- }
303
- writeDiscriminatedDocument(schema, value) {
304
- this.write(schema, value);
305
- if (typeof this.buffer === "object") {
306
- this.buffer.__type = NormalizedSchema.of(schema).getName(true);
307
- }
308
- }
309
- flush() {
310
- const { rootSchema, useReplacer } = this;
311
- this.rootSchema = void 0;
312
- this.useReplacer = false;
313
- if ((rootSchema == null ? void 0 : rootSchema.isStructSchema()) || (rootSchema == null ? void 0 : rootSchema.isDocumentSchema())) {
314
- if (!useReplacer) {
315
- return JSON.stringify(this.buffer);
316
- }
317
- const replacer = new JsonReplacer();
318
- return replacer.replaceInJson(JSON.stringify(this.buffer, replacer.createReplacer(), 0));
319
- }
320
- return this.buffer;
321
- }
322
- _write(schema, value, container) {
323
- var _a, _b, _c, _d, _e, _f;
324
- const isObject = value !== null && typeof value === "object";
325
- const ns = NormalizedSchema.of(schema);
326
- if (isObject) {
327
- if (ns.isStructSchema()) {
328
- const record = value;
329
- const out = {};
330
- const { jsonName } = this.settings;
331
- let nameMap = void 0;
332
- if (jsonName) {
333
- nameMap = {};
334
- }
335
- for (const [memberName, memberSchema] of ns.structIterator()) {
336
- const serializableValue = this._write(memberSchema, record[memberName], ns);
337
- if (serializableValue !== void 0) {
338
- let targetKey = memberName;
339
- if (jsonName) {
340
- targetKey = (_a = memberSchema.getMergedTraits().jsonName) != null ? _a : memberName;
341
- nameMap[memberName] = targetKey;
342
- }
343
- out[targetKey] = serializableValue;
344
- }
345
- }
346
- if (ns.isUnionSchema() && Object.keys(out).length === 0) {
347
- const { $unknown } = record;
348
- if (Array.isArray($unknown)) {
349
- const [k, v] = $unknown;
350
- out[k] = this._write(15, v);
351
- }
352
- } else if (typeof record.__type === "string") {
353
- for (const [k, v] of Object.entries(record)) {
354
- const targetKey = jsonName ? (_b = nameMap[k]) != null ? _b : k : k;
355
- if (!(targetKey in out)) {
356
- out[targetKey] = this._write(15, v);
357
- }
358
- }
359
- }
360
- return out;
361
- }
362
- if (Array.isArray(value) && ns.isListSchema()) {
363
- const listMember = ns.getValueSchema();
364
- const out = [];
365
- const sparse = !!ns.getMergedTraits().sparse;
366
- for (const item of value) {
367
- if (sparse || item != null) {
368
- out.push(this._write(listMember, item));
369
- }
370
- }
371
- return out;
372
- }
373
- if (ns.isMapSchema()) {
374
- const mapMember = ns.getValueSchema();
375
- const out = {};
376
- const sparse = !!ns.getMergedTraits().sparse;
377
- for (const [_k, _v] of Object.entries(value)) {
378
- if (sparse || _v != null) {
379
- out[_k] = this._write(mapMember, _v);
380
- }
381
- }
382
- return out;
383
- }
384
- if (value instanceof Uint8Array && (ns.isBlobSchema() || ns.isDocumentSchema())) {
385
- if (ns === this.rootSchema) {
386
- return value;
387
- }
388
- return ((_d = (_c = this.serdeContext) == null ? void 0 : _c.base64Encoder) != null ? _d : toBase64)(value);
389
- }
390
- if (value instanceof Date && (ns.isTimestampSchema() || ns.isDocumentSchema())) {
391
- const format = determineTimestampFormat(ns, this.settings);
392
- switch (format) {
393
- case 5:
394
- return value.toISOString().replace(".000Z", "Z");
395
- case 6:
396
- return dateToUtcString(value);
397
- case 7:
398
- return value.getTime() / 1e3;
399
- default:
400
- console.warn("Missing timestamp format, using epoch seconds", value);
401
- return value.getTime() / 1e3;
402
- }
403
- }
404
- if (value instanceof NumericValue) {
405
- this.useReplacer = true;
406
- }
407
- }
408
- if (value === null && (container == null ? void 0 : container.isStructSchema())) {
409
- return void 0;
410
- }
411
- if (ns.isStringSchema()) {
412
- if (typeof value === "undefined" && ns.isIdempotencyToken()) {
413
- return v4();
414
- }
415
- const mediaType = ns.getMergedTraits().mediaType;
416
- if (value != null && mediaType) {
417
- const isJson = mediaType === "application/json" || mediaType.endsWith("+json");
418
- if (isJson) {
419
- return LazyJsonString.from(value);
420
- }
421
- }
422
- return value;
423
- }
424
- if (typeof value === "number" && ns.isNumericSchema()) {
425
- if (Math.abs(value) === Infinity || isNaN(value)) {
426
- return String(value);
427
- }
428
- return value;
429
- }
430
- if (typeof value === "string" && ns.isBlobSchema()) {
431
- if (ns === this.rootSchema) {
432
- return value;
433
- }
434
- return ((_f = (_e = this.serdeContext) == null ? void 0 : _e.base64Encoder) != null ? _f : toBase64)(value);
435
- }
436
- if (typeof value === "bigint") {
437
- this.useReplacer = true;
438
- }
439
- if (ns.isDocumentSchema()) {
440
- if (isObject) {
441
- const out = Array.isArray(value) ? [] : {};
442
- for (const [k, v] of Object.entries(value)) {
443
- if (v instanceof NumericValue) {
444
- this.useReplacer = true;
445
- out[k] = v;
446
- } else {
447
- out[k] = this._write(ns, v);
448
- }
449
- }
450
- return out;
451
- } else {
452
- return structuredClone(value);
453
- }
454
- }
455
- return value;
456
- }
457
- };
458
-
459
- // ../../node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonCodec.js
460
- var JsonCodec = class extends SerdeContextConfig {
461
- constructor(settings) {
462
- super();
463
- __publicField(this, "settings");
464
- this.settings = settings;
465
- }
466
- createSerializer() {
467
- const serializer = new JsonShapeSerializer(this.settings);
468
- serializer.setSerdeContext(this.serdeContext);
469
- return serializer;
470
- }
471
- createDeserializer() {
472
- const deserializer = new JsonShapeDeserializer(this.settings);
473
- deserializer.setSerdeContext(this.serdeContext);
474
- return deserializer;
475
- }
476
- };
477
-
478
- export {
479
- loadRestJsonErrorCode,
480
- JsonCodec
481
- };
482
- //# sourceMappingURL=chunk-L6MAS3AX.js.map