@taqueria/protocol 0.25.21-rc → 0.25.22-rc

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 (96) hide show
  1. package/EphemeralState.d.ts +208 -208
  2. package/ParsedPluginInfo.d.ts +542 -542
  3. package/PluginInfo.d.ts +661 -661
  4. package/PluginSchema.d.ts +1314 -1314
  5. package/TaqError.d.ts +1 -1
  6. package/TaqError.d.ts.map +1 -1
  7. package/TaqError.js.map +1 -1
  8. package/TaqError.mjs.map +1 -1
  9. package/i18n.js +1 -1
  10. package/i18n.js.map +1 -1
  11. package/i18n.mjs +1 -1
  12. package/i18n.mjs.map +1 -1
  13. package/out/types/Config.d.ts +318 -318
  14. package/out/types/ConfigAccount.d.js +19 -0
  15. package/out/types/ConfigAccount.d.js.map +1 -0
  16. package/out/types/ConfigAccount.d.mjs +1 -0
  17. package/out/types/ConfigAccount.d.mjs.map +1 -0
  18. package/out/types/ConfigAccount.d.ts +106 -0
  19. package/out/types/ConfigAccount.d.ts.map +1 -0
  20. package/out/types/ConfigAccount.js +80 -0
  21. package/out/types/ConfigAccount.js.map +1 -0
  22. package/out/types/ConfigAccount.mjs +49 -0
  23. package/out/types/ConfigAccount.mjs.map +1 -0
  24. package/out/types/ConfigEnvironmentFileV2.d.js +19 -0
  25. package/out/types/ConfigEnvironmentFileV2.d.js.map +1 -0
  26. package/out/types/ConfigEnvironmentFileV2.d.mjs +1 -0
  27. package/out/types/ConfigEnvironmentFileV2.d.mjs.map +1 -0
  28. package/out/types/ConfigEnvironmentFileV2.d.ts +153 -0
  29. package/out/types/ConfigEnvironmentFileV2.d.ts.map +1 -0
  30. package/out/types/ConfigEnvironmentFileV2.js +80 -0
  31. package/out/types/ConfigEnvironmentFileV2.js.map +1 -0
  32. package/out/types/ConfigEnvironmentFileV2.mjs +49 -0
  33. package/out/types/ConfigEnvironmentFileV2.mjs.map +1 -0
  34. package/out/types/ConfigFileV1.d.js +19 -0
  35. package/out/types/ConfigFileV1.d.js.map +1 -0
  36. package/out/types/ConfigFileV1.d.mjs +1 -0
  37. package/out/types/ConfigFileV1.d.mjs.map +1 -0
  38. package/out/types/ConfigFileV1.d.ts +1370 -0
  39. package/out/types/ConfigFileV1.d.ts.map +1 -0
  40. package/out/types/ConfigFileV1.js +80 -0
  41. package/out/types/ConfigFileV1.js.map +1 -0
  42. package/out/types/ConfigFileV1.mjs +49 -0
  43. package/out/types/ConfigFileV1.mjs.map +1 -0
  44. package/out/types/ConfigFileV2.d.js +19 -0
  45. package/out/types/ConfigFileV2.d.js.map +1 -0
  46. package/out/types/ConfigFileV2.d.mjs +1 -0
  47. package/out/types/ConfigFileV2.d.mjs.map +1 -0
  48. package/out/types/ConfigFileV2.d.ts +741 -0
  49. package/out/types/ConfigFileV2.d.ts.map +1 -0
  50. package/out/types/ConfigFileV2.js +80 -0
  51. package/out/types/ConfigFileV2.js.map +1 -0
  52. package/out/types/ConfigFileV2.mjs +49 -0
  53. package/out/types/ConfigFileV2.mjs.map +1 -0
  54. package/out/types/CurrencyAmountV2.d.js +19 -0
  55. package/out/types/CurrencyAmountV2.d.js.map +1 -0
  56. package/out/types/CurrencyAmountV2.d.mjs +1 -0
  57. package/out/types/CurrencyAmountV2.d.mjs.map +1 -0
  58. package/out/types/CurrencyAmountV2.d.ts +56 -0
  59. package/out/types/CurrencyAmountV2.d.ts.map +1 -0
  60. package/out/types/CurrencyAmountV2.js +80 -0
  61. package/out/types/CurrencyAmountV2.js.map +1 -0
  62. package/out/types/CurrencyAmountV2.mjs +49 -0
  63. package/out/types/CurrencyAmountV2.mjs.map +1 -0
  64. package/out/types/EphemeralState.d.ts +1743 -1743
  65. package/out/types/LoadedConfig.d.ts +318 -318
  66. package/out/types/Operation.d.ts +575 -575
  67. package/out/types/ParsedConfig.d.ts +318 -318
  68. package/out/types/ParsedOperation.d.ts +420 -420
  69. package/out/types/ParsedTemplate.d.ts +420 -420
  70. package/out/types/PluginInfo.d.ts +869 -869
  71. package/out/types/PluginSchema.d.ts +2985 -2985
  72. package/out/types/ProxyTaskArgs.d.ts +434 -434
  73. package/out/types/ProxyTemplateArgs.d.ts +434 -434
  74. package/out/types/RequestArgs.d.ts +434 -434
  75. package/out/types/Template.d.ts +575 -575
  76. package/out/types-strict.d.js.map +1 -1
  77. package/out/types-strict.d.ts +97 -9
  78. package/out/types-strict.d.ts.map +1 -1
  79. package/out/types-strict.js.map +1 -1
  80. package/out/types-zod.d.js.map +1 -1
  81. package/out/types-zod.d.ts +3119 -2557
  82. package/out/types-zod.d.ts.map +1 -1
  83. package/out/types-zod.js +62 -7
  84. package/out/types-zod.js.map +1 -1
  85. package/out/types-zod.mjs +57 -7
  86. package/out/types-zod.mjs.map +1 -1
  87. package/package.json +2 -2
  88. package/types-config-files.d.ts +12 -0
  89. package/types-config-files.d.ts.map +1 -0
  90. package/types-config-files.js +267 -0
  91. package/types-config-files.js.map +1 -0
  92. package/types-config-files.mjs +239 -0
  93. package/types-config-files.mjs.map +1 -0
  94. package/types.d.ts +85 -7
  95. package/types.d.ts.map +1 -1
  96. package/types.js.map +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigFileV2.d.ts","sourceRoot":"","sources":["ConfigFileV2.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAA4E,MAAM,6BAA6B,CAAC;AACjI,OAAO,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,YAAY,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAGzF,YAAY,EAAE,kBAAkB,IAAI,YAAY,EAAE,CAAC;AAEnD,eAAO,MAAM,IAAI,UAAW,OAAO,KAAG,kBAoBrC,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,YAAY,KAAG,kBAAiC,CAAC;AAE/E,eAAO,MAAM,EAAE,UAAW,OAAO,KAAG,eAAe,QAAQ,EAAE,kBAAkB,CAO9E,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,KAAK,kBAAkB,EAAE,QAAQ,CAAC,KAAG,eAAe,QAAQ,EAAE,kBAAkB,CAAc,CAAC;AAG3H,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AACF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAoB,CAAC;AAC3C,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAqB,CAAC;AAEjD,MAAM,MAAM,CAAC,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,80 @@
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, from2, except, desc) => {
11
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
12
+ for (let key of __getOwnPropNames(from2))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // out/types/ConfigFileV2.ts
21
+ var ConfigFileV2_exports = {};
22
+ __export(ConfigFileV2_exports, {
23
+ create: () => create,
24
+ from: () => from,
25
+ internalSchema: () => internalSchema,
26
+ make: () => make,
27
+ of: () => of,
28
+ rawSchema: () => rawSchema,
29
+ schemas: () => schemas
30
+ });
31
+ module.exports = __toCommonJS(ConfigFileV2_exports);
32
+ var import_TaqError = require("@taqueria/protocol/TaqError");
33
+ var import_fluture = require("fluture");
34
+ var import_zod = require("zod");
35
+ var import_types_zod = require("@taqueria/protocol/out/types-zod");
36
+ var from = (input) => {
37
+ try {
38
+ return import_types_zod.configFileV2Schema.parse(input);
39
+ } catch (previous) {
40
+ if (previous instanceof import_zod.ZodError) {
41
+ const msgs = previous.errors.reduce(
42
+ (retval, issue) => {
43
+ const path = issue.path.join(" \u2192 ");
44
+ const msg = path + ": " + issue.message;
45
+ return [...retval, msg];
46
+ },
47
+ ["ConfigFileV2 is invalid:"]
48
+ );
49
+ const validationErr = msgs.join("\n") + "\n";
50
+ throw (0, import_TaqError.toParseErr)(previous, validationErr);
51
+ }
52
+ throw (0, import_TaqError.toParseUnknownErr)(previous, "There was a problem trying to parse a ConfigFileV2.");
53
+ }
54
+ };
55
+ var create = (input) => from(input);
56
+ var of = (input) => {
57
+ try {
58
+ return (0, import_fluture.resolve)(from(input));
59
+ } catch (err) {
60
+ return (0, import_fluture.reject)(err);
61
+ }
62
+ };
63
+ var make = (input) => of(input);
64
+ var schemas = {
65
+ rawSchema: import_types_zod.configFileV2Schema,
66
+ schema: import_types_zod.configFileV2Schema.transform((val) => val)
67
+ };
68
+ var rawSchema = schemas.rawSchema;
69
+ var internalSchema = import_types_zod.configFileV2Schema;
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ create,
73
+ from,
74
+ internalSchema,
75
+ make,
76
+ of,
77
+ rawSchema,
78
+ schemas
79
+ });
80
+ //# sourceMappingURL=ConfigFileV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["ConfigFileV2.ts"],"sourcesContent":["// Generated file: Do not edit \n// generated from @taqueria-protocol-types\n \nimport { TaqError, toFutureParseErr, toFutureParseUnknownErr, toParseErr, toParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve, reject } from 'fluture';\nimport { ZodError } from 'zod';\nimport { ConfigFileV2 } from '@taqueria/protocol/types';\nimport { ConfigFileV2 as ConfigFileV2Strict } from '@taqueria/protocol/out/types-strict';\nimport { configFileV2Schema } from '@taqueria/protocol/out/types-zod';\n\nexport type { ConfigFileV2Strict as ConfigFileV2 };\n\nexport const from = (input: unknown): ConfigFileV2Strict => {\n\ttry {\n\t\treturn configFileV2Schema.parse(input) as ConfigFileV2Strict;\n\t}\n\tcatch (previous: unknown) {\n\t\tif (previous instanceof ZodError) {\n\t\t\tconst msgs: string[] = previous.errors.reduce(\n\t\t\t\t(retval, issue) => {\n\t\t\t\t\tconst path = issue.path.join(' → ');\n\t\t\t\t\tconst msg = path + ': ' + issue.message;\n\t\t\t\t\treturn [...retval, msg];\n\t\t\t\t},\n\t\t\t\t[\"ConfigFileV2 is invalid:\"],\n\t\t\t);\n\t\t\tconst validationErr = msgs.join('\\n') + '\\n';\n\t\t\tthrow toParseErr(previous, validationErr);\n\t\t}\n\t\tthrow toParseUnknownErr(previous, \"There was a problem trying to parse a ConfigFileV2.\")\n\t}\n \n};\n\nexport const create = (input: ConfigFileV2): ConfigFileV2Strict => from(input);\n\nexport const of = (input: unknown): FutureInstance<TaqError, ConfigFileV2Strict> => {\n\ttry {\n\t\treturn resolve(from(input))\n\t}\n\tcatch (err){\n\t\treturn reject(err) as FutureInstance<TaqError, never>\n\t}\n};\n\nexport const make = (input: Omit<ConfigFileV2Strict, '__type'>): FutureInstance<TaqError, ConfigFileV2Strict> => of(input);\n\n// TEMP: for interoperation with old protocol types during transition\nexport const schemas = {\n\trawSchema: configFileV2Schema,\n\tschema: configFileV2Schema.transform(val => val as ConfigFileV2Strict),\n};\nexport const rawSchema = schemas.rawSchema;\nexport const internalSchema = configFileV2Schema;\n\nexport type t = ConfigFileV2Strict;\n "],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,sBAAmG;AACnG,qBAAgD;AAChD,iBAAyB;AAGzB,uBAAmC;AAI5B,IAAM,OAAO,CAAC,UAAuC;AAC3D,MAAI;AACH,WAAO,oCAAmB,MAAM,KAAK;AAAA,EACtC,SACO,UAAP;AACC,QAAI,oBAAoB,qBAAU;AACjC,YAAM,OAAiB,SAAS,OAAO;AAAA,QACtC,CAAC,QAAQ,UAAU;AAClB,gBAAM,OAAO,MAAM,KAAK,KAAK,UAAK;AAClC,gBAAM,MAAM,OAAO,OAAO,MAAM;AAChC,iBAAO,CAAC,GAAG,QAAQ,GAAG;AAAA,QACvB;AAAA,QACA,CAAC,0BAA0B;AAAA,MAC5B;AACA,YAAM,gBAAgB,KAAK,KAAK,IAAI,IAAI;AACxC,gBAAM,4BAAW,UAAU,aAAa;AAAA,IACzC;AACA,cAAM,mCAAkB,UAAU,qDAAqD;AAAA,EACxF;AAED;AAEO,IAAM,SAAS,CAAC,UAA4C,KAAK,KAAK;AAEtE,IAAM,KAAK,CAAC,UAAiE;AACnF,MAAI;AACH,eAAO,wBAAQ,KAAK,KAAK,CAAC;AAAA,EAC3B,SACO,KAAP;AACC,eAAO,uBAAO,GAAG;AAAA,EAClB;AACD;AAEO,IAAM,OAAO,CAAC,UAA4F,GAAG,KAAK;AAGlH,IAAM,UAAU;AAAA,EACtB,WAAW;AAAA,EACX,QAAQ,oCAAmB,UAAU,SAAO,GAAyB;AACtE;AACO,IAAM,YAAY,QAAQ;AAC1B,IAAM,iBAAiB;","names":[]}
@@ -0,0 +1,49 @@
1
+ // out/types/ConfigFileV2.ts
2
+ import { toParseErr, toParseUnknownErr } from "@taqueria/protocol/TaqError";
3
+ import { resolve, reject } from "fluture";
4
+ import { ZodError } from "zod";
5
+ import { configFileV2Schema } from "@taqueria/protocol/out/types-zod";
6
+ var from = (input) => {
7
+ try {
8
+ return configFileV2Schema.parse(input);
9
+ } catch (previous) {
10
+ if (previous instanceof ZodError) {
11
+ const msgs = previous.errors.reduce(
12
+ (retval, issue) => {
13
+ const path = issue.path.join(" \u2192 ");
14
+ const msg = path + ": " + issue.message;
15
+ return [...retval, msg];
16
+ },
17
+ ["ConfigFileV2 is invalid:"]
18
+ );
19
+ const validationErr = msgs.join("\n") + "\n";
20
+ throw toParseErr(previous, validationErr);
21
+ }
22
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a ConfigFileV2.");
23
+ }
24
+ };
25
+ var create = (input) => from(input);
26
+ var of = (input) => {
27
+ try {
28
+ return resolve(from(input));
29
+ } catch (err) {
30
+ return reject(err);
31
+ }
32
+ };
33
+ var make = (input) => of(input);
34
+ var schemas = {
35
+ rawSchema: configFileV2Schema,
36
+ schema: configFileV2Schema.transform((val) => val)
37
+ };
38
+ var rawSchema = schemas.rawSchema;
39
+ var internalSchema = configFileV2Schema;
40
+ export {
41
+ create,
42
+ from,
43
+ internalSchema,
44
+ make,
45
+ of,
46
+ rawSchema,
47
+ schemas
48
+ };
49
+ //# sourceMappingURL=ConfigFileV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["ConfigFileV2.ts"],"sourcesContent":["// Generated file: Do not edit \n// generated from @taqueria-protocol-types\n \nimport { TaqError, toFutureParseErr, toFutureParseUnknownErr, toParseErr, toParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve, reject } from 'fluture';\nimport { ZodError } from 'zod';\nimport { ConfigFileV2 } from '@taqueria/protocol/types';\nimport { ConfigFileV2 as ConfigFileV2Strict } from '@taqueria/protocol/out/types-strict';\nimport { configFileV2Schema } from '@taqueria/protocol/out/types-zod';\n\nexport type { ConfigFileV2Strict as ConfigFileV2 };\n\nexport const from = (input: unknown): ConfigFileV2Strict => {\n\ttry {\n\t\treturn configFileV2Schema.parse(input) as ConfigFileV2Strict;\n\t}\n\tcatch (previous: unknown) {\n\t\tif (previous instanceof ZodError) {\n\t\t\tconst msgs: string[] = previous.errors.reduce(\n\t\t\t\t(retval, issue) => {\n\t\t\t\t\tconst path = issue.path.join(' → ');\n\t\t\t\t\tconst msg = path + ': ' + issue.message;\n\t\t\t\t\treturn [...retval, msg];\n\t\t\t\t},\n\t\t\t\t[\"ConfigFileV2 is invalid:\"],\n\t\t\t);\n\t\t\tconst validationErr = msgs.join('\\n') + '\\n';\n\t\t\tthrow toParseErr(previous, validationErr);\n\t\t}\n\t\tthrow toParseUnknownErr(previous, \"There was a problem trying to parse a ConfigFileV2.\")\n\t}\n \n};\n\nexport const create = (input: ConfigFileV2): ConfigFileV2Strict => from(input);\n\nexport const of = (input: unknown): FutureInstance<TaqError, ConfigFileV2Strict> => {\n\ttry {\n\t\treturn resolve(from(input))\n\t}\n\tcatch (err){\n\t\treturn reject(err) as FutureInstance<TaqError, never>\n\t}\n};\n\nexport const make = (input: Omit<ConfigFileV2Strict, '__type'>): FutureInstance<TaqError, ConfigFileV2Strict> => of(input);\n\n// TEMP: for interoperation with old protocol types during transition\nexport const schemas = {\n\trawSchema: configFileV2Schema,\n\tschema: configFileV2Schema.transform(val => val as ConfigFileV2Strict),\n};\nexport const rawSchema = schemas.rawSchema;\nexport const internalSchema = configFileV2Schema;\n\nexport type t = ConfigFileV2Strict;\n "],"mappings":";AAGA,SAA8D,YAAY,yBAAyB;AACnG,SAAyB,SAAS,cAAc;AAChD,SAAS,gBAAgB;AAGzB,SAAS,0BAA0B;AAI5B,IAAM,OAAO,CAAC,UAAuC;AAC3D,MAAI;AACH,WAAO,mBAAmB,MAAM,KAAK;AAAA,EACtC,SACO,UAAP;AACC,QAAI,oBAAoB,UAAU;AACjC,YAAM,OAAiB,SAAS,OAAO;AAAA,QACtC,CAAC,QAAQ,UAAU;AAClB,gBAAM,OAAO,MAAM,KAAK,KAAK,UAAK;AAClC,gBAAM,MAAM,OAAO,OAAO,MAAM;AAChC,iBAAO,CAAC,GAAG,QAAQ,GAAG;AAAA,QACvB;AAAA,QACA,CAAC,0BAA0B;AAAA,MAC5B;AACA,YAAM,gBAAgB,KAAK,KAAK,IAAI,IAAI;AACxC,YAAM,WAAW,UAAU,aAAa;AAAA,IACzC;AACA,UAAM,kBAAkB,UAAU,qDAAqD;AAAA,EACxF;AAED;AAEO,IAAM,SAAS,CAAC,UAA4C,KAAK,KAAK;AAEtE,IAAM,KAAK,CAAC,UAAiE;AACnF,MAAI;AACH,WAAO,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC3B,SACO,KAAP;AACC,WAAO,OAAO,GAAG;AAAA,EAClB;AACD;AAEO,IAAM,OAAO,CAAC,UAA4F,GAAG,KAAK;AAGlH,IAAM,UAAU;AAAA,EACtB,WAAW;AAAA,EACX,QAAQ,mBAAmB,UAAU,SAAO,GAAyB;AACtE;AACO,IAAM,YAAY,QAAQ;AAC1B,IAAM,iBAAiB;","names":[]}
@@ -0,0 +1,19 @@
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 __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // out/types/CurrencyAmountV2.d.ts
17
+ var CurrencyAmountV2_d_exports = {};
18
+ module.exports = __toCommonJS(CurrencyAmountV2_d_exports);
19
+ //# sourceMappingURL=CurrencyAmountV2.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["CurrencyAmountV2.ts"],"sourcesContent":["// Generated file: Do not edit \n// generated from @taqueria-protocol-types\n \nimport { TaqError, toFutureParseErr, toFutureParseUnknownErr, toParseErr, toParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve, reject } from 'fluture';\nimport { ZodError } from 'zod';\nimport { CurrencyAmountV2 } from '@taqueria/protocol/types';\nimport { CurrencyAmountV2 as CurrencyAmountV2Strict } from '@taqueria/protocol/out/types-strict';\nimport { currencyAmountV2Schema } from '@taqueria/protocol/out/types-zod';\n\nexport type { CurrencyAmountV2Strict as CurrencyAmountV2 };\n\nexport const from = (input: unknown): CurrencyAmountV2Strict => {\n\ttry {\n\t\treturn currencyAmountV2Schema.parse(input) as CurrencyAmountV2Strict;\n\t}\n\tcatch (previous: unknown) {\n\t\tif (previous instanceof ZodError) {\n\t\t\tconst msgs: string[] = previous.errors.reduce(\n\t\t\t\t(retval, issue) => {\n\t\t\t\t\tconst path = issue.path.join(' → ');\n\t\t\t\t\tconst msg = path + ': ' + issue.message;\n\t\t\t\t\treturn [...retval, msg];\n\t\t\t\t},\n\t\t\t\t[\"CurrencyAmountV2 is invalid:\"],\n\t\t\t);\n\t\t\tconst validationErr = msgs.join('\\n') + '\\n';\n\t\t\tthrow toParseErr(previous, validationErr);\n\t\t}\n\t\tthrow toParseUnknownErr(previous, \"There was a problem trying to parse a CurrencyAmountV2.\")\n\t}\n \n};\n\nexport const create = (input: CurrencyAmountV2): CurrencyAmountV2Strict => from(input);\n\nexport const of = (input: unknown): FutureInstance<TaqError, CurrencyAmountV2Strict> => {\n\ttry {\n\t\treturn resolve(from(input))\n\t}\n\tcatch (err){\n\t\treturn reject(err) as FutureInstance<TaqError, never>\n\t}\n};\n\nexport const make = (input: Omit<CurrencyAmountV2Strict, '__type'>): FutureInstance<TaqError, CurrencyAmountV2Strict> => of(input);\n\n// TEMP: for interoperation with old protocol types during transition\nexport const schemas = {\n\trawSchema: currencyAmountV2Schema,\n\tschema: currencyAmountV2Schema.transform(val => val as CurrencyAmountV2Strict),\n};\nexport const rawSchema = schemas.rawSchema;\nexport const internalSchema = currencyAmountV2Schema;\n\nexport type t = CurrencyAmountV2Strict;\n "],"mappings":";;;;;;;;;;;;;;;;AAGA;;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=CurrencyAmountV2.d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,56 @@
1
+ import { TaqError } from '@taqueria/protocol/TaqError';
2
+ import { FutureInstance } from 'fluture';
3
+ import { CurrencyAmountV2 } from '@taqueria/protocol/types';
4
+ import { CurrencyAmountV2 as CurrencyAmountV2Strict } from '@taqueria/protocol/out/types-strict';
5
+ export type { CurrencyAmountV2Strict as CurrencyAmountV2 };
6
+ export declare const from: (input: unknown) => CurrencyAmountV2Strict;
7
+ export declare const create: (input: CurrencyAmountV2) => CurrencyAmountV2Strict;
8
+ export declare const of: (input: unknown) => FutureInstance<TaqError, CurrencyAmountV2Strict>;
9
+ export declare const make: (input: Omit<CurrencyAmountV2Strict, '__type'>) => FutureInstance<TaqError, CurrencyAmountV2Strict>;
10
+ export declare const schemas: {
11
+ rawSchema: import("zod").ZodObject<{
12
+ amount: import("zod").ZodString;
13
+ units: import("zod").ZodString;
14
+ }, "strip", import("zod").ZodTypeAny, {
15
+ amount: string;
16
+ units: string;
17
+ }, {
18
+ amount: string;
19
+ units: string;
20
+ }>;
21
+ schema: import("zod").ZodEffects<import("zod").ZodObject<{
22
+ amount: import("zod").ZodString;
23
+ units: import("zod").ZodString;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ amount: string;
26
+ units: string;
27
+ }, {
28
+ amount: string;
29
+ units: string;
30
+ }>, CurrencyAmountV2Strict, {
31
+ amount: string;
32
+ units: string;
33
+ }>;
34
+ };
35
+ export declare const rawSchema: import("zod").ZodObject<{
36
+ amount: import("zod").ZodString;
37
+ units: import("zod").ZodString;
38
+ }, "strip", import("zod").ZodTypeAny, {
39
+ amount: string;
40
+ units: string;
41
+ }, {
42
+ amount: string;
43
+ units: string;
44
+ }>;
45
+ export declare const internalSchema: import("zod").ZodObject<{
46
+ amount: import("zod").ZodString;
47
+ units: import("zod").ZodString;
48
+ }, "strip", import("zod").ZodTypeAny, {
49
+ amount: string;
50
+ units: string;
51
+ }, {
52
+ amount: string;
53
+ units: string;
54
+ }>;
55
+ export type t = CurrencyAmountV2Strict;
56
+ //# sourceMappingURL=CurrencyAmountV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurrencyAmountV2.d.ts","sourceRoot":"","sources":["CurrencyAmountV2.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAA4E,MAAM,6BAA6B,CAAC;AACjI,OAAO,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAE1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,IAAI,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAGjG,YAAY,EAAE,sBAAsB,IAAI,gBAAgB,EAAE,CAAC;AAE3D,eAAO,MAAM,IAAI,UAAW,OAAO,KAAG,sBAoBrC,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,gBAAgB,KAAG,sBAAqC,CAAC;AAEvF,eAAO,MAAM,EAAE,UAAW,OAAO,KAAG,eAAe,QAAQ,EAAE,sBAAsB,CAOlF,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,KAAK,sBAAsB,EAAE,QAAQ,CAAC,KAAG,eAAe,QAAQ,EAAE,sBAAsB,CAAc,CAAC;AAGnI,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC;AACF,eAAO,MAAM,SAAS;;;;;;;;;EAAoB,CAAC;AAC3C,eAAO,MAAM,cAAc;;;;;;;;;EAAyB,CAAC;AAErD,MAAM,MAAM,CAAC,GAAG,sBAAsB,CAAC"}
@@ -0,0 +1,80 @@
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, from2, except, desc) => {
11
+ if (from2 && typeof from2 === "object" || typeof from2 === "function") {
12
+ for (let key of __getOwnPropNames(from2))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // out/types/CurrencyAmountV2.ts
21
+ var CurrencyAmountV2_exports = {};
22
+ __export(CurrencyAmountV2_exports, {
23
+ create: () => create,
24
+ from: () => from,
25
+ internalSchema: () => internalSchema,
26
+ make: () => make,
27
+ of: () => of,
28
+ rawSchema: () => rawSchema,
29
+ schemas: () => schemas
30
+ });
31
+ module.exports = __toCommonJS(CurrencyAmountV2_exports);
32
+ var import_TaqError = require("@taqueria/protocol/TaqError");
33
+ var import_fluture = require("fluture");
34
+ var import_zod = require("zod");
35
+ var import_types_zod = require("@taqueria/protocol/out/types-zod");
36
+ var from = (input) => {
37
+ try {
38
+ return import_types_zod.currencyAmountV2Schema.parse(input);
39
+ } catch (previous) {
40
+ if (previous instanceof import_zod.ZodError) {
41
+ const msgs = previous.errors.reduce(
42
+ (retval, issue) => {
43
+ const path = issue.path.join(" \u2192 ");
44
+ const msg = path + ": " + issue.message;
45
+ return [...retval, msg];
46
+ },
47
+ ["CurrencyAmountV2 is invalid:"]
48
+ );
49
+ const validationErr = msgs.join("\n") + "\n";
50
+ throw (0, import_TaqError.toParseErr)(previous, validationErr);
51
+ }
52
+ throw (0, import_TaqError.toParseUnknownErr)(previous, "There was a problem trying to parse a CurrencyAmountV2.");
53
+ }
54
+ };
55
+ var create = (input) => from(input);
56
+ var of = (input) => {
57
+ try {
58
+ return (0, import_fluture.resolve)(from(input));
59
+ } catch (err) {
60
+ return (0, import_fluture.reject)(err);
61
+ }
62
+ };
63
+ var make = (input) => of(input);
64
+ var schemas = {
65
+ rawSchema: import_types_zod.currencyAmountV2Schema,
66
+ schema: import_types_zod.currencyAmountV2Schema.transform((val) => val)
67
+ };
68
+ var rawSchema = schemas.rawSchema;
69
+ var internalSchema = import_types_zod.currencyAmountV2Schema;
70
+ // Annotate the CommonJS export names for ESM import in node:
71
+ 0 && (module.exports = {
72
+ create,
73
+ from,
74
+ internalSchema,
75
+ make,
76
+ of,
77
+ rawSchema,
78
+ schemas
79
+ });
80
+ //# sourceMappingURL=CurrencyAmountV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["CurrencyAmountV2.ts"],"sourcesContent":["// Generated file: Do not edit \n// generated from @taqueria-protocol-types\n \nimport { TaqError, toFutureParseErr, toFutureParseUnknownErr, toParseErr, toParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve, reject } from 'fluture';\nimport { ZodError } from 'zod';\nimport { CurrencyAmountV2 } from '@taqueria/protocol/types';\nimport { CurrencyAmountV2 as CurrencyAmountV2Strict } from '@taqueria/protocol/out/types-strict';\nimport { currencyAmountV2Schema } from '@taqueria/protocol/out/types-zod';\n\nexport type { CurrencyAmountV2Strict as CurrencyAmountV2 };\n\nexport const from = (input: unknown): CurrencyAmountV2Strict => {\n\ttry {\n\t\treturn currencyAmountV2Schema.parse(input) as CurrencyAmountV2Strict;\n\t}\n\tcatch (previous: unknown) {\n\t\tif (previous instanceof ZodError) {\n\t\t\tconst msgs: string[] = previous.errors.reduce(\n\t\t\t\t(retval, issue) => {\n\t\t\t\t\tconst path = issue.path.join(' → ');\n\t\t\t\t\tconst msg = path + ': ' + issue.message;\n\t\t\t\t\treturn [...retval, msg];\n\t\t\t\t},\n\t\t\t\t[\"CurrencyAmountV2 is invalid:\"],\n\t\t\t);\n\t\t\tconst validationErr = msgs.join('\\n') + '\\n';\n\t\t\tthrow toParseErr(previous, validationErr);\n\t\t}\n\t\tthrow toParseUnknownErr(previous, \"There was a problem trying to parse a CurrencyAmountV2.\")\n\t}\n \n};\n\nexport const create = (input: CurrencyAmountV2): CurrencyAmountV2Strict => from(input);\n\nexport const of = (input: unknown): FutureInstance<TaqError, CurrencyAmountV2Strict> => {\n\ttry {\n\t\treturn resolve(from(input))\n\t}\n\tcatch (err){\n\t\treturn reject(err) as FutureInstance<TaqError, never>\n\t}\n};\n\nexport const make = (input: Omit<CurrencyAmountV2Strict, '__type'>): FutureInstance<TaqError, CurrencyAmountV2Strict> => of(input);\n\n// TEMP: for interoperation with old protocol types during transition\nexport const schemas = {\n\trawSchema: currencyAmountV2Schema,\n\tschema: currencyAmountV2Schema.transform(val => val as CurrencyAmountV2Strict),\n};\nexport const rawSchema = schemas.rawSchema;\nexport const internalSchema = currencyAmountV2Schema;\n\nexport type t = CurrencyAmountV2Strict;\n "],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,sBAAmG;AACnG,qBAAgD;AAChD,iBAAyB;AAGzB,uBAAuC;AAIhC,IAAM,OAAO,CAAC,UAA2C;AAC/D,MAAI;AACH,WAAO,wCAAuB,MAAM,KAAK;AAAA,EAC1C,SACO,UAAP;AACC,QAAI,oBAAoB,qBAAU;AACjC,YAAM,OAAiB,SAAS,OAAO;AAAA,QACtC,CAAC,QAAQ,UAAU;AAClB,gBAAM,OAAO,MAAM,KAAK,KAAK,UAAK;AAClC,gBAAM,MAAM,OAAO,OAAO,MAAM;AAChC,iBAAO,CAAC,GAAG,QAAQ,GAAG;AAAA,QACvB;AAAA,QACA,CAAC,8BAA8B;AAAA,MAChC;AACA,YAAM,gBAAgB,KAAK,KAAK,IAAI,IAAI;AACxC,gBAAM,4BAAW,UAAU,aAAa;AAAA,IACzC;AACA,cAAM,mCAAkB,UAAU,yDAAyD;AAAA,EAC5F;AAED;AAEO,IAAM,SAAS,CAAC,UAAoD,KAAK,KAAK;AAE9E,IAAM,KAAK,CAAC,UAAqE;AACvF,MAAI;AACH,eAAO,wBAAQ,KAAK,KAAK,CAAC;AAAA,EAC3B,SACO,KAAP;AACC,eAAO,uBAAO,GAAG;AAAA,EAClB;AACD;AAEO,IAAM,OAAO,CAAC,UAAoG,GAAG,KAAK;AAG1H,IAAM,UAAU;AAAA,EACtB,WAAW;AAAA,EACX,QAAQ,wCAAuB,UAAU,SAAO,GAA6B;AAC9E;AACO,IAAM,YAAY,QAAQ;AAC1B,IAAM,iBAAiB;","names":[]}
@@ -0,0 +1,49 @@
1
+ // out/types/CurrencyAmountV2.ts
2
+ import { toParseErr, toParseUnknownErr } from "@taqueria/protocol/TaqError";
3
+ import { resolve, reject } from "fluture";
4
+ import { ZodError } from "zod";
5
+ import { currencyAmountV2Schema } from "@taqueria/protocol/out/types-zod";
6
+ var from = (input) => {
7
+ try {
8
+ return currencyAmountV2Schema.parse(input);
9
+ } catch (previous) {
10
+ if (previous instanceof ZodError) {
11
+ const msgs = previous.errors.reduce(
12
+ (retval, issue) => {
13
+ const path = issue.path.join(" \u2192 ");
14
+ const msg = path + ": " + issue.message;
15
+ return [...retval, msg];
16
+ },
17
+ ["CurrencyAmountV2 is invalid:"]
18
+ );
19
+ const validationErr = msgs.join("\n") + "\n";
20
+ throw toParseErr(previous, validationErr);
21
+ }
22
+ throw toParseUnknownErr(previous, "There was a problem trying to parse a CurrencyAmountV2.");
23
+ }
24
+ };
25
+ var create = (input) => from(input);
26
+ var of = (input) => {
27
+ try {
28
+ return resolve(from(input));
29
+ } catch (err) {
30
+ return reject(err);
31
+ }
32
+ };
33
+ var make = (input) => of(input);
34
+ var schemas = {
35
+ rawSchema: currencyAmountV2Schema,
36
+ schema: currencyAmountV2Schema.transform((val) => val)
37
+ };
38
+ var rawSchema = schemas.rawSchema;
39
+ var internalSchema = currencyAmountV2Schema;
40
+ export {
41
+ create,
42
+ from,
43
+ internalSchema,
44
+ make,
45
+ of,
46
+ rawSchema,
47
+ schemas
48
+ };
49
+ //# sourceMappingURL=CurrencyAmountV2.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["CurrencyAmountV2.ts"],"sourcesContent":["// Generated file: Do not edit \n// generated from @taqueria-protocol-types\n \nimport { TaqError, toFutureParseErr, toFutureParseUnknownErr, toParseErr, toParseUnknownErr } from '@taqueria/protocol/TaqError';\nimport { FutureInstance, resolve, reject } from 'fluture';\nimport { ZodError } from 'zod';\nimport { CurrencyAmountV2 } from '@taqueria/protocol/types';\nimport { CurrencyAmountV2 as CurrencyAmountV2Strict } from '@taqueria/protocol/out/types-strict';\nimport { currencyAmountV2Schema } from '@taqueria/protocol/out/types-zod';\n\nexport type { CurrencyAmountV2Strict as CurrencyAmountV2 };\n\nexport const from = (input: unknown): CurrencyAmountV2Strict => {\n\ttry {\n\t\treturn currencyAmountV2Schema.parse(input) as CurrencyAmountV2Strict;\n\t}\n\tcatch (previous: unknown) {\n\t\tif (previous instanceof ZodError) {\n\t\t\tconst msgs: string[] = previous.errors.reduce(\n\t\t\t\t(retval, issue) => {\n\t\t\t\t\tconst path = issue.path.join(' → ');\n\t\t\t\t\tconst msg = path + ': ' + issue.message;\n\t\t\t\t\treturn [...retval, msg];\n\t\t\t\t},\n\t\t\t\t[\"CurrencyAmountV2 is invalid:\"],\n\t\t\t);\n\t\t\tconst validationErr = msgs.join('\\n') + '\\n';\n\t\t\tthrow toParseErr(previous, validationErr);\n\t\t}\n\t\tthrow toParseUnknownErr(previous, \"There was a problem trying to parse a CurrencyAmountV2.\")\n\t}\n \n};\n\nexport const create = (input: CurrencyAmountV2): CurrencyAmountV2Strict => from(input);\n\nexport const of = (input: unknown): FutureInstance<TaqError, CurrencyAmountV2Strict> => {\n\ttry {\n\t\treturn resolve(from(input))\n\t}\n\tcatch (err){\n\t\treturn reject(err) as FutureInstance<TaqError, never>\n\t}\n};\n\nexport const make = (input: Omit<CurrencyAmountV2Strict, '__type'>): FutureInstance<TaqError, CurrencyAmountV2Strict> => of(input);\n\n// TEMP: for interoperation with old protocol types during transition\nexport const schemas = {\n\trawSchema: currencyAmountV2Schema,\n\tschema: currencyAmountV2Schema.transform(val => val as CurrencyAmountV2Strict),\n};\nexport const rawSchema = schemas.rawSchema;\nexport const internalSchema = currencyAmountV2Schema;\n\nexport type t = CurrencyAmountV2Strict;\n "],"mappings":";AAGA,SAA8D,YAAY,yBAAyB;AACnG,SAAyB,SAAS,cAAc;AAChD,SAAS,gBAAgB;AAGzB,SAAS,8BAA8B;AAIhC,IAAM,OAAO,CAAC,UAA2C;AAC/D,MAAI;AACH,WAAO,uBAAuB,MAAM,KAAK;AAAA,EAC1C,SACO,UAAP;AACC,QAAI,oBAAoB,UAAU;AACjC,YAAM,OAAiB,SAAS,OAAO;AAAA,QACtC,CAAC,QAAQ,UAAU;AAClB,gBAAM,OAAO,MAAM,KAAK,KAAK,UAAK;AAClC,gBAAM,MAAM,OAAO,OAAO,MAAM;AAChC,iBAAO,CAAC,GAAG,QAAQ,GAAG;AAAA,QACvB;AAAA,QACA,CAAC,8BAA8B;AAAA,MAChC;AACA,YAAM,gBAAgB,KAAK,KAAK,IAAI,IAAI;AACxC,YAAM,WAAW,UAAU,aAAa;AAAA,IACzC;AACA,UAAM,kBAAkB,UAAU,yDAAyD;AAAA,EAC5F;AAED;AAEO,IAAM,SAAS,CAAC,UAAoD,KAAK,KAAK;AAE9E,IAAM,KAAK,CAAC,UAAqE;AACvF,MAAI;AACH,WAAO,QAAQ,KAAK,KAAK,CAAC;AAAA,EAC3B,SACO,KAAP;AACC,WAAO,OAAO,GAAG;AAAA,EAClB;AACD;AAEO,IAAM,OAAO,CAAC,UAAoG,GAAG,KAAK;AAG1H,IAAM,UAAU;AAAA,EACtB,WAAW;AAAA,EACX,QAAQ,uBAAuB,UAAU,SAAO,GAA6B;AAC9E;AACO,IAAM,YAAY,QAAQ;AAC1B,IAAM,iBAAiB;","names":[]}