@taqueria/protocol 0.16.0 → 0.18.0
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/Alias.d.ts +48 -0
- package/Alias.js +70 -0
- package/Alias.js.map +1 -0
- package/Alias.mjs +34 -0
- package/Alias.mjs.map +1 -0
- package/Base.d.ts +50 -0
- package/Base.js +83 -0
- package/Base.js.map +1 -0
- package/Base.mjs +57 -0
- package/Base.mjs.map +1 -0
- package/Command.d.ts +30 -0
- package/Command.js +61 -0
- package/Command.js.map +1 -0
- package/Command.mjs +25 -0
- package/Command.mjs.map +1 -0
- package/Config.d.ts +2062 -0
- package/Config.js +175 -0
- package/Config.js.map +1 -0
- package/Config.mjs +135 -0
- package/Config.mjs.map +1 -0
- package/Contract.d.ts +88 -0
- package/Contract.js +68 -0
- package/Contract.js.map +1 -0
- package/Contract.mjs +32 -0
- package/Contract.mjs.map +1 -0
- package/Crypto.d.ts +5 -0
- package/Crypto.js +35 -0
- package/Crypto.js.map +1 -0
- package/Crypto.mjs +10 -0
- package/Crypto.mjs.map +1 -0
- package/EconomicalProtocolHash.d.ts +48 -0
- package/EconomicalProtocolHash.js +64 -0
- package/EconomicalProtocolHash.js.map +1 -0
- package/EconomicalProtocolHash.mjs +27 -0
- package/EconomicalProtocolHash.mjs.map +1 -0
- package/Environment.d.ts +142 -0
- package/Environment.js +78 -0
- package/Environment.js.map +1 -0
- package/Environment.mjs +40 -0
- package/Environment.mjs.map +1 -0
- package/EphemeralState.d.ts +4561 -0
- package/EphemeralState.js +268 -0
- package/EphemeralState.js.map +1 -0
- package/EphemeralState.mjs +228 -0
- package/EphemeralState.mjs.map +1 -0
- package/Faucet.d.ts +210 -0
- package/Faucet.js +84 -0
- package/Faucet.js.map +1 -0
- package/Faucet.mjs +47 -0
- package/Faucet.mjs.map +1 -0
- package/HumanReadableIdentifier.d.ts +30 -0
- package/HumanReadableIdentifier.js +61 -0
- package/HumanReadableIdentifier.js.map +1 -0
- package/HumanReadableIdentifier.mjs +25 -0
- package/HumanReadableIdentifier.mjs.map +1 -0
- package/InstalledPlugin.d.ts +99 -0
- package/InstalledPlugin.js +67 -0
- package/InstalledPlugin.js.map +1 -0
- package/InstalledPlugin.mjs +30 -0
- package/InstalledPlugin.mjs.map +1 -0
- package/LoadedConfig.d.ts +2325 -0
- package/LoadedConfig.js +80 -0
- package/LoadedConfig.js.map +1 -0
- package/LoadedConfig.mjs +41 -0
- package/LoadedConfig.mjs.map +1 -0
- package/MetadataConfig.d.ts +162 -0
- package/MetadataConfig.js +75 -0
- package/MetadataConfig.js.map +1 -0
- package/MetadataConfig.mjs +38 -0
- package/MetadataConfig.mjs.map +1 -0
- package/NetworkConfig.d.ts +431 -0
- package/NetworkConfig.js +77 -0
- package/NetworkConfig.js.map +1 -0
- package/NetworkConfig.mjs +40 -0
- package/NetworkConfig.mjs.map +1 -0
- package/Operation.d.ts +1476 -0
- package/Operation.js +98 -0
- package/Operation.js.map +1 -0
- package/Operation.mjs +60 -0
- package/Operation.mjs.map +1 -0
- package/Option.d.ts +316 -0
- package/Option.js +103 -0
- package/Option.js.map +1 -0
- package/Option.mjs +65 -0
- package/Option.mjs.map +1 -0
- package/ParsedOperation.d.ts +888 -0
- package/ParsedOperation.js +63 -0
- package/ParsedOperation.js.map +1 -0
- package/ParsedOperation.mjs +26 -0
- package/ParsedOperation.mjs.map +1 -0
- package/ParsedTemplate.d.ts +1032 -0
- package/ParsedTemplate.js +71 -0
- package/ParsedTemplate.js.map +1 -0
- package/ParsedTemplate.mjs +34 -0
- package/ParsedTemplate.mjs.map +1 -0
- package/PersistentState.d.ts +581 -0
- package/PersistentState.js +98 -0
- package/PersistentState.js.map +1 -0
- package/PersistentState.mjs +60 -0
- package/PersistentState.mjs.map +1 -0
- package/PluginActionName.d.ts +23 -0
- package/PluginActionName.js +48 -0
- package/PluginActionName.js.map +1 -0
- package/PluginActionName.mjs +23 -0
- package/PluginActionName.mjs.map +1 -0
- package/PluginDependenciesResponse.d.ts +158 -0
- package/PluginDependenciesResponse.js +63 -0
- package/PluginDependenciesResponse.js.map +1 -0
- package/PluginDependenciesResponse.mjs +28 -0
- package/PluginDependenciesResponse.mjs.map +1 -0
- package/PluginInfo.d.ts +3425 -0
- package/PluginInfo.js +113 -0
- package/PluginInfo.js.map +1 -0
- package/PluginInfo.mjs +76 -0
- package/PluginInfo.mjs.map +1 -0
- package/PluginJsonResponse.d.ts +104 -0
- package/PluginJsonResponse.js +59 -0
- package/PluginJsonResponse.js.map +1 -0
- package/PluginJsonResponse.mjs +25 -0
- package/PluginJsonResponse.mjs.map +1 -0
- package/PluginProxyResponse.d.ts +23 -0
- package/PluginProxyResponse.js +61 -0
- package/PluginProxyResponse.js.map +1 -0
- package/PluginProxyResponse.mjs +25 -0
- package/PluginProxyResponse.mjs.map +1 -0
- package/PluginResponseEncoding.d.ts +39 -0
- package/PluginResponseEncoding.js +63 -0
- package/PluginResponseEncoding.js.map +1 -0
- package/PluginResponseEncoding.mjs +27 -0
- package/PluginResponseEncoding.mjs.map +1 -0
- package/PluginSchema.d.ts +7332 -0
- package/PluginSchema.js +107 -0
- package/PluginSchema.js.map +1 -0
- package/PluginSchema.mjs +70 -0
- package/PluginSchema.mjs.map +1 -0
- package/PositionalArg.d.ts +190 -0
- package/PositionalArg.js +78 -0
- package/PositionalArg.js.map +1 -0
- package/PositionalArg.mjs +41 -0
- package/PositionalArg.mjs.map +1 -0
- package/Provisioner.d.ts +276 -0
- package/Provisioner.js +86 -0
- package/Provisioner.js.map +1 -0
- package/Provisioner.mjs +48 -0
- package/Provisioner.mjs.map +1 -0
- package/ProvisionerID.d.ts +48 -0
- package/ProvisionerID.js +61 -0
- package/ProvisionerID.js.map +1 -0
- package/ProvisionerID.mjs +24 -0
- package/ProvisionerID.mjs.map +1 -0
- package/Provisions.d.ts +244 -0
- package/Provisions.js +93 -0
- package/Provisions.js.map +1 -0
- package/Provisions.mjs +57 -0
- package/Provisions.mjs.map +1 -0
- package/PublicKeyHash.d.ts +49 -0
- package/PublicKeyHash.js +65 -0
- package/PublicKeyHash.js.map +1 -0
- package/PublicKeyHash.mjs +28 -0
- package/PublicKeyHash.mjs.map +1 -0
- package/RequestArgs.d.ts +5557 -0
- package/RequestArgs.js +136 -0
- package/RequestArgs.js.map +1 -0
- package/RequestArgs.mjs +89 -0
- package/RequestArgs.mjs.map +1 -0
- package/SHA256.d.ts +33 -0
- package/SHA256.js +79 -0
- package/SHA256.js.map +1 -0
- package/SHA256.mjs +42 -0
- package/SHA256.mjs.map +1 -0
- package/SandboxAccountConfig.d.ts +152 -0
- package/SandboxAccountConfig.js +72 -0
- package/SandboxAccountConfig.js.map +1 -0
- package/SandboxAccountConfig.mjs +35 -0
- package/SandboxAccountConfig.mjs.map +1 -0
- package/SandboxConfig.d.ts +550 -0
- package/SandboxConfig.js +103 -0
- package/SandboxConfig.js.map +1 -0
- package/SandboxConfig.mjs +66 -0
- package/SandboxConfig.mjs.map +1 -0
- package/SanitizedAbsPath.d.ts +48 -0
- package/SanitizedAbsPath.js +64 -0
- package/SanitizedAbsPath.js.map +1 -0
- package/SanitizedAbsPath.mjs +27 -0
- package/SanitizedAbsPath.mjs.map +1 -0
- package/SanitizedArgs.d.ts +2907 -0
- package/SanitizedArgs.js +269 -0
- package/SanitizedArgs.js.map +1 -0
- package/SanitizedArgs.mjs +197 -0
- package/SanitizedArgs.mjs.map +1 -0
- package/SanitizedPath.d.ts +30 -0
- package/SanitizedPath.js +64 -0
- package/SanitizedPath.js.map +1 -0
- package/SanitizedPath.mjs +28 -0
- package/SanitizedPath.mjs.map +1 -0
- package/ScaffoldConfig.d.ts +6 -0
- package/ScaffoldConfig.js +19 -0
- package/ScaffoldConfig.js.map +1 -0
- package/ScaffoldConfig.mjs +1 -0
- package/ScaffoldConfig.mjs.map +1 -0
- package/Settings.d.ts +82 -0
- package/Settings.js +66 -0
- package/Settings.js.map +1 -0
- package/Settings.mjs +29 -0
- package/Settings.mjs.map +1 -0
- package/SingleChar.d.ts +48 -0
- package/SingleChar.js +62 -0
- package/SingleChar.js.map +1 -0
- package/SingleChar.mjs +25 -0
- package/SingleChar.mjs.map +1 -0
- package/TaqError.d.ts +24 -0
- package/TaqError.js +65 -0
- package/TaqError.js.map +1 -0
- package/TaqError.mjs +35 -0
- package/TaqError.mjs.map +1 -0
- package/Task.d.ts +825 -0
- package/Task.js +95 -0
- package/Task.js.map +1 -0
- package/Task.mjs +58 -0
- package/Task.mjs.map +1 -0
- package/Template.d.ts +1746 -0
- package/Template.js +117 -0
- package/Template.js.map +1 -0
- package/Template.mjs +79 -0
- package/Template.mjs.map +1 -0
- package/Timestamp.d.ts +51 -0
- package/Timestamp.js +65 -0
- package/Timestamp.js.map +1 -0
- package/Timestamp.mjs +27 -0
- package/Timestamp.mjs.map +1 -0
- package/Tz.d.ts +47 -0
- package/Tz.js +62 -0
- package/Tz.js.map +1 -0
- package/Tz.mjs +25 -0
- package/Tz.mjs.map +1 -0
- package/Url.d.ts +49 -0
- package/Url.js +68 -0
- package/Url.js.map +1 -0
- package/Url.mjs +30 -0
- package/Url.mjs.map +1 -0
- package/Verb.d.ts +48 -0
- package/Verb.js +62 -0
- package/Verb.js.map +1 -0
- package/Verb.mjs +25 -0
- package/Verb.mjs.map +1 -0
- package/VersionNumber.d.ts +30 -0
- package/VersionNumber.js +61 -0
- package/VersionNumber.js.map +1 -0
- package/VersionNumber.mjs +25 -0
- package/VersionNumber.mjs.map +1 -0
- package/i18n.d.ts +7 -0
- package/i18n.js +96 -0
- package/i18n.js.map +1 -0
- package/i18n.mjs +67 -0
- package/i18n.mjs.map +1 -0
- package/package.json +31 -3
- package/taqueria-protocol-types.d.ts +72 -0
- package/taqueria-protocol-types.js +142 -0
- package/taqueria-protocol-types.js.map +1 -0
- package/taqueria-protocol-types.mjs +76 -0
- package/taqueria-protocol-types.mjs.map +1 -0
- package/tzkt-config.d.ts +116 -0
- package/tzkt-config.js +65 -0
- package/tzkt-config.js.map +1 -0
- package/tzkt-config.mjs +28 -0
- package/tzkt-config.mjs.map +1 -0
- package/Alias.ts +0 -38
- package/Base.ts +0 -105
- package/Command.ts +0 -26
- package/Config.ts +0 -163
- package/Contract.ts +0 -35
- package/Crypto.ts +0 -3
- package/EconomicalProtocolHash.ts +0 -26
- package/Environment.ts +0 -40
- package/EphemeralState.ts +0 -282
- package/Faucet.ts +0 -46
- package/HumanReadableIdentifier.ts +0 -26
- package/InstalledPlugin.ts +0 -28
- package/LoadedConfig.ts +0 -45
- package/MetadataConfig.ts +0 -37
- package/NetworkConfig.ts +0 -39
- package/Operation.ts +0 -70
- package/Option.ts +0 -64
- package/ParsedOperation.ts +0 -33
- package/ParsedTemplate.ts +0 -40
- package/PersistentState.ts +0 -69
- package/PluginActionName.ts +0 -28
- package/PluginDependenciesResponse.ts +0 -33
- package/PluginInfo.ts +0 -76
- package/PluginJsonResponse.ts +0 -26
- package/PluginProxyResponse.ts +0 -24
- package/PluginResponseEncoding.ts +0 -27
- package/PluginSchema.ts +0 -81
- package/PositionalArg.ts +0 -41
- package/Provisioner.ts +0 -61
- package/ProvisionerID.ts +0 -25
- package/Provisions.ts +0 -70
- package/PublicKeyHash.ts +0 -28
- package/RequestArgs.ts +0 -97
- package/SHA256.ts +0 -42
- package/SandboxAccountConfig.ts +0 -35
- package/SandboxConfig.ts +0 -66
- package/SanitizedAbsPath.ts +0 -23
- package/SanitizedArgs.ts +0 -213
- package/SanitizedPath.ts +0 -28
- package/ScaffoldConfig.ts +0 -6
- package/Settings.ts +0 -27
- package/SingleChar.ts +0 -23
- package/TaqError.ts +0 -78
- package/Task.ts +0 -57
- package/Template.ts +0 -77
- package/Timestamp.ts +0 -25
- package/Tz.ts +0 -22
- package/Url.ts +0 -28
- package/Verb.ts +0 -23
- package/VersionNumber.ts +0 -25
- package/i18n.ts +0 -74
- package/taqueria-protocol-types.ts +0 -36
- package/tzkt-config.ts +0 -27
package/PluginInfo.js
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// PluginInfo.ts
|
|
27
|
+
var PluginInfo_exports = {};
|
|
28
|
+
__export(PluginInfo_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
internalSchema: () => internalSchema,
|
|
32
|
+
make: () => make,
|
|
33
|
+
of: () => of,
|
|
34
|
+
rawSchema: () => rawSchema3,
|
|
35
|
+
schemas: () => schemas6
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(PluginInfo_exports);
|
|
38
|
+
var Alias = __toESM(require("@taqueria/protocol/Alias"));
|
|
39
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
40
|
+
var ParsedOperation = __toESM(require("@taqueria/protocol/ParsedOperation"));
|
|
41
|
+
var ParsedTemplate = __toESM(require("@taqueria/protocol/ParsedTemplate"));
|
|
42
|
+
var Task = __toESM(require("@taqueria/protocol/Task"));
|
|
43
|
+
var VersionNumber = __toESM(require("@taqueria/protocol/VersionNumber"));
|
|
44
|
+
var import_zod = require("zod");
|
|
45
|
+
var rawSchema3 = import_zod.z.object({
|
|
46
|
+
name: import_zod.z.string({ description: "Plugin Name" }).min(1),
|
|
47
|
+
version: VersionNumber.rawSchema.describe("Plugin Version #"),
|
|
48
|
+
schema: VersionNumber.rawSchema.describe("Plugin Schema Version #"),
|
|
49
|
+
alias: Alias.rawSchema.describe("Plugin Alias"),
|
|
50
|
+
tasks: import_zod.z.preprocess(
|
|
51
|
+
(val) => val ?? [],
|
|
52
|
+
import_zod.z.array(
|
|
53
|
+
Task.schemas.schema.describe("Plugin Task"),
|
|
54
|
+
{ description: "Plugin Tasks" }
|
|
55
|
+
)
|
|
56
|
+
).optional(),
|
|
57
|
+
operations: import_zod.z.preprocess(
|
|
58
|
+
(val) => val ?? [],
|
|
59
|
+
import_zod.z.array(
|
|
60
|
+
ParsedOperation.schemas.schema.describe("Plugin Operation"),
|
|
61
|
+
{ description: "Plugin Operations" }
|
|
62
|
+
)
|
|
63
|
+
).optional(),
|
|
64
|
+
templates: import_zod.z.preprocess(
|
|
65
|
+
(val) => val ?? [],
|
|
66
|
+
import_zod.z.array(
|
|
67
|
+
ParsedTemplate.schemas.schema.describe("Plugin Template")
|
|
68
|
+
)
|
|
69
|
+
).optional()
|
|
70
|
+
});
|
|
71
|
+
var internalSchema = rawSchema3.extend({
|
|
72
|
+
version: VersionNumber.schemas.schema.describe("Plugin Version #"),
|
|
73
|
+
schema: VersionNumber.schemas.schema.describe("Plugin Schema Version #"),
|
|
74
|
+
alias: Alias.schemas.schema.describe("Plugin Alias"),
|
|
75
|
+
tasks: import_zod.z.preprocess(
|
|
76
|
+
(val) => val ?? [],
|
|
77
|
+
import_zod.z.array(
|
|
78
|
+
Task.schemas.schema.describe("Plugin Task"),
|
|
79
|
+
{ description: "Plugin Tasks" }
|
|
80
|
+
)
|
|
81
|
+
).optional(),
|
|
82
|
+
operations: import_zod.z.preprocess(
|
|
83
|
+
(val) => val ?? [],
|
|
84
|
+
import_zod.z.array(
|
|
85
|
+
ParsedOperation.schemas.schema.describe("Plugin Operation"),
|
|
86
|
+
{ description: "Plugin Operations" }
|
|
87
|
+
)
|
|
88
|
+
).optional(),
|
|
89
|
+
templates: import_zod.z.preprocess(
|
|
90
|
+
(val) => val ?? [],
|
|
91
|
+
import_zod.z.array(
|
|
92
|
+
ParsedTemplate.schemas.schema.describe("Plugin Template")
|
|
93
|
+
)
|
|
94
|
+
).optional()
|
|
95
|
+
}).describe("Plugin Schema");
|
|
96
|
+
var { schemas: schemas6, factory } = (0, import_Base.default)({
|
|
97
|
+
rawSchema: rawSchema3,
|
|
98
|
+
internalSchema,
|
|
99
|
+
parseErrMsg: "The schema returned from the plugin is invalid",
|
|
100
|
+
unknownErrMsg: "Something went wrong parsing the schema from a plugin"
|
|
101
|
+
});
|
|
102
|
+
var { create, of, make } = factory;
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
create,
|
|
106
|
+
factory,
|
|
107
|
+
internalSchema,
|
|
108
|
+
make,
|
|
109
|
+
of,
|
|
110
|
+
rawSchema,
|
|
111
|
+
schemas
|
|
112
|
+
});
|
|
113
|
+
//# sourceMappingURL=PluginInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginInfo.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nimport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nimport * as Task from '@taqueria/protocol/Task';\nimport * as VersionNumber from '@taqueria/protocol/VersionNumber';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tname: z.string({ description: 'Plugin Name' }).min(1),\n\tversion: VersionNumber.rawSchema.describe('Plugin Version #'),\n\tschema: VersionNumber.rawSchema.describe('Plugin Schema Version #'),\n\talias: Alias.rawSchema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n});\n\nexport const internalSchema = rawSchema.extend({\n\tversion: VersionNumber.schemas.schema.describe('Plugin Version #'),\n\tschema: VersionNumber.schemas.schema.describe('Plugin Schema Version #'),\n\talias: Alias.schemas.schema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n}).describe('Plugin Schema');\n\n// export const rawSchema = internalSchema;\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = Flatten<z.infer<typeof internalSchema>>;\n\nexport const { schemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The schema returned from the plugin is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the schema from a plugin',\n});\n\nexport type PluginInfo = Flatten<z.infer<typeof schemas.schema>>;\nexport type t = PluginInfo;\nexport const { create, of, make } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,YAAuB;AACvB,kBAAoC;AACpC,sBAAiC;AACjC,qBAAgC;AAChC,WAAsB;AACtB,oBAA+B;AAC/B,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,MAAM,aAAE,OAAO,EAAE,aAAa,cAAc,CAAC,EAAE,IAAI,CAAC;AAAA,EACpD,SAAuB,wBAAU,SAAS,kBAAkB;AAAA,EAC5D,QAAsB,wBAAU,SAAS,yBAAyB;AAAA,EAClE,OAAa,gBAAU,SAAS,cAAc;AAAA,EAC9C,OAAO,aAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,aAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,aAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC;AAEM,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,SAAuB,sBAAQ,OAAO,SAAS,kBAAkB;AAAA,EACjE,QAAsB,sBAAQ,OAAO,SAAS,yBAAyB;AAAA,EACvE,OAAa,cAAQ,OAAO,SAAS,cAAc;AAAA,EACnD,OAAO,aAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,aAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,aAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,aAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC,EAAE,SAAS,eAAe;AAOpB,IAAM,EAAE,SAAAC,UAAS,QAAQ,QAAI,YAAAC,SAA4B;AAAA,EAC/D,WAAAF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["rawSchema","schemas","createType"]}
|
package/PluginInfo.mjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// PluginInfo.ts
|
|
2
|
+
import * as Alias from "@taqueria/protocol/Alias";
|
|
3
|
+
import createType from "@taqueria/protocol/Base";
|
|
4
|
+
import * as ParsedOperation from "@taqueria/protocol/ParsedOperation";
|
|
5
|
+
import * as ParsedTemplate from "@taqueria/protocol/ParsedTemplate";
|
|
6
|
+
import * as Task from "@taqueria/protocol/Task";
|
|
7
|
+
import * as VersionNumber from "@taqueria/protocol/VersionNumber";
|
|
8
|
+
import { z } from "zod";
|
|
9
|
+
var rawSchema3 = z.object({
|
|
10
|
+
name: z.string({ description: "Plugin Name" }).min(1),
|
|
11
|
+
version: VersionNumber.rawSchema.describe("Plugin Version #"),
|
|
12
|
+
schema: VersionNumber.rawSchema.describe("Plugin Schema Version #"),
|
|
13
|
+
alias: Alias.rawSchema.describe("Plugin Alias"),
|
|
14
|
+
tasks: z.preprocess(
|
|
15
|
+
(val) => val ?? [],
|
|
16
|
+
z.array(
|
|
17
|
+
Task.schemas.schema.describe("Plugin Task"),
|
|
18
|
+
{ description: "Plugin Tasks" }
|
|
19
|
+
)
|
|
20
|
+
).optional(),
|
|
21
|
+
operations: z.preprocess(
|
|
22
|
+
(val) => val ?? [],
|
|
23
|
+
z.array(
|
|
24
|
+
ParsedOperation.schemas.schema.describe("Plugin Operation"),
|
|
25
|
+
{ description: "Plugin Operations" }
|
|
26
|
+
)
|
|
27
|
+
).optional(),
|
|
28
|
+
templates: z.preprocess(
|
|
29
|
+
(val) => val ?? [],
|
|
30
|
+
z.array(
|
|
31
|
+
ParsedTemplate.schemas.schema.describe("Plugin Template")
|
|
32
|
+
)
|
|
33
|
+
).optional()
|
|
34
|
+
});
|
|
35
|
+
var internalSchema = rawSchema3.extend({
|
|
36
|
+
version: VersionNumber.schemas.schema.describe("Plugin Version #"),
|
|
37
|
+
schema: VersionNumber.schemas.schema.describe("Plugin Schema Version #"),
|
|
38
|
+
alias: Alias.schemas.schema.describe("Plugin Alias"),
|
|
39
|
+
tasks: z.preprocess(
|
|
40
|
+
(val) => val ?? [],
|
|
41
|
+
z.array(
|
|
42
|
+
Task.schemas.schema.describe("Plugin Task"),
|
|
43
|
+
{ description: "Plugin Tasks" }
|
|
44
|
+
)
|
|
45
|
+
).optional(),
|
|
46
|
+
operations: z.preprocess(
|
|
47
|
+
(val) => val ?? [],
|
|
48
|
+
z.array(
|
|
49
|
+
ParsedOperation.schemas.schema.describe("Plugin Operation"),
|
|
50
|
+
{ description: "Plugin Operations" }
|
|
51
|
+
)
|
|
52
|
+
).optional(),
|
|
53
|
+
templates: z.preprocess(
|
|
54
|
+
(val) => val ?? [],
|
|
55
|
+
z.array(
|
|
56
|
+
ParsedTemplate.schemas.schema.describe("Plugin Template")
|
|
57
|
+
)
|
|
58
|
+
).optional()
|
|
59
|
+
}).describe("Plugin Schema");
|
|
60
|
+
var { schemas: schemas6, factory } = createType({
|
|
61
|
+
rawSchema: rawSchema3,
|
|
62
|
+
internalSchema,
|
|
63
|
+
parseErrMsg: "The schema returned from the plugin is invalid",
|
|
64
|
+
unknownErrMsg: "Something went wrong parsing the schema from a plugin"
|
|
65
|
+
});
|
|
66
|
+
var { create, of, make } = factory;
|
|
67
|
+
export {
|
|
68
|
+
create,
|
|
69
|
+
factory,
|
|
70
|
+
internalSchema,
|
|
71
|
+
make,
|
|
72
|
+
of,
|
|
73
|
+
rawSchema3 as rawSchema,
|
|
74
|
+
schemas6 as schemas
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=PluginInfo.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginInfo.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType, { Flatten } from '@taqueria/protocol/Base';\nimport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nimport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nimport * as Task from '@taqueria/protocol/Task';\nimport * as VersionNumber from '@taqueria/protocol/VersionNumber';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tname: z.string({ description: 'Plugin Name' }).min(1),\n\tversion: VersionNumber.rawSchema.describe('Plugin Version #'),\n\tschema: VersionNumber.rawSchema.describe('Plugin Schema Version #'),\n\talias: Alias.rawSchema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n});\n\nexport const internalSchema = rawSchema.extend({\n\tversion: VersionNumber.schemas.schema.describe('Plugin Version #'),\n\tschema: VersionNumber.schemas.schema.describe('Plugin Schema Version #'),\n\talias: Alias.schemas.schema.describe('Plugin Alias'),\n\ttasks: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTask.schemas.schema.describe('Plugin Task'),\n\t\t\t{ description: 'Plugin Tasks' },\n\t\t),\n\t).optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedOperation.schemas.schema.describe('Plugin Operation'),\n\t\t\t{ description: 'Plugin Operations' },\n\t\t),\n\t).optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tParsedTemplate.schemas.schema.describe('Plugin Template'),\n\t\t),\n\t).optional(),\n}).describe('Plugin Schema');\n\n// export const rawSchema = internalSchema;\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = Flatten<z.infer<typeof internalSchema>>;\n\nexport const { schemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The schema returned from the plugin is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the schema from a plugin',\n});\n\nexport type PluginInfo = Flatten<z.infer<typeof schemas.schema>>;\nexport type t = PluginInfo;\nexport const { create, of, make } = factory;\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,OAAO,gBAA6B;AACpC,YAAY,qBAAqB;AACjC,YAAY,oBAAoB;AAChC,YAAY,UAAU;AACtB,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,MAAM,EAAE,OAAO,EAAE,aAAa,cAAc,CAAC,EAAE,IAAI,CAAC;AAAA,EACpD,SAAuB,wBAAU,SAAS,kBAAkB;AAAA,EAC5D,QAAsB,wBAAU,SAAS,yBAAyB;AAAA,EAClE,OAAa,gBAAU,SAAS,cAAc;AAAA,EAC9C,OAAO,EAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC;AAEM,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,SAAuB,sBAAQ,OAAO,SAAS,kBAAkB;AAAA,EACjE,QAAsB,sBAAQ,OAAO,SAAS,yBAAyB;AAAA,EACvE,OAAa,cAAQ,OAAO,SAAS,cAAc;AAAA,EACnD,OAAO,EAAE;AAAA,IACR,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACI,aAAQ,OAAO,SAAS,aAAa;AAAA,MAC1C,EAAE,aAAa,eAAe;AAAA,IAC/B;AAAA,EACD,EAAE,SAAS;AAAA,EACX,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACe,wBAAQ,OAAO,SAAS,kBAAkB;AAAA,MAC1D,EAAE,aAAa,oBAAoB;AAAA,IACpC;AAAA,EACD,EAAE,SAAS;AAAA,EACX,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACc,uBAAQ,OAAO,SAAS,iBAAiB;AAAA,IACzD;AAAA,EACD,EAAE,SAAS;AACZ,CAAC,EAAE,SAAS,eAAe;AAOpB,IAAM,EAAE,SAAAC,UAAS,QAAQ,IAAI,WAA4B;AAAA,EAC/D,WAAAD;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["rawSchema","schemas"]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as fluture from 'fluture';
|
|
2
|
+
import { TaqError } from './TaqError.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare const rawSchema: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
7
|
+
render: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"table">, z.ZodLiteral<"string">]>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
data?: unknown;
|
|
10
|
+
render?: "string" | "none" | "table" | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
data?: unknown;
|
|
13
|
+
render?: "string" | "none" | "table" | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const pluginJsonResponse: {
|
|
16
|
+
schemas: {
|
|
17
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
18
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
19
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
20
|
+
data?: unknown;
|
|
21
|
+
render?: "string" | "none" | "table" | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
readonly __kind: any;
|
|
24
|
+
}, any>;
|
|
25
|
+
};
|
|
26
|
+
factory: {
|
|
27
|
+
make: (input: {
|
|
28
|
+
data?: unknown;
|
|
29
|
+
render?: "string" | "none" | "table" | undefined;
|
|
30
|
+
}) => fluture.FutureInstance<TaqError, {
|
|
31
|
+
data?: unknown;
|
|
32
|
+
render?: "string" | "none" | "table" | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
readonly __kind: any;
|
|
35
|
+
}>;
|
|
36
|
+
of: (input: unknown) => fluture.FutureInstance<TaqError, {
|
|
37
|
+
data?: unknown;
|
|
38
|
+
render?: "string" | "none" | "table" | undefined;
|
|
39
|
+
} & {
|
|
40
|
+
readonly __kind: any;
|
|
41
|
+
}>;
|
|
42
|
+
create: (input: {
|
|
43
|
+
data?: unknown;
|
|
44
|
+
render?: "string" | "none" | "table" | undefined;
|
|
45
|
+
}) => {
|
|
46
|
+
data?: unknown;
|
|
47
|
+
render?: "string" | "none" | "table" | undefined;
|
|
48
|
+
} & {
|
|
49
|
+
readonly __kind: any;
|
|
50
|
+
};
|
|
51
|
+
from: (input: unknown) => {
|
|
52
|
+
data?: unknown;
|
|
53
|
+
render?: "string" | "none" | "table" | undefined;
|
|
54
|
+
} & {
|
|
55
|
+
readonly __kind: any;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
declare type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;
|
|
60
|
+
declare type t = PluginJsonResponse;
|
|
61
|
+
declare const schemas: {
|
|
62
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
63
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
64
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
65
|
+
data?: unknown;
|
|
66
|
+
render?: "string" | "none" | "table" | undefined;
|
|
67
|
+
} & {
|
|
68
|
+
readonly __kind: any;
|
|
69
|
+
}, any>;
|
|
70
|
+
};
|
|
71
|
+
declare const factory: {
|
|
72
|
+
make: (input: {
|
|
73
|
+
data?: unknown;
|
|
74
|
+
render?: "string" | "none" | "table" | undefined;
|
|
75
|
+
}) => fluture.FutureInstance<TaqError, {
|
|
76
|
+
data?: unknown;
|
|
77
|
+
render?: "string" | "none" | "table" | undefined;
|
|
78
|
+
} & {
|
|
79
|
+
readonly __kind: any;
|
|
80
|
+
}>;
|
|
81
|
+
of: (input: unknown) => fluture.FutureInstance<TaqError, {
|
|
82
|
+
data?: unknown;
|
|
83
|
+
render?: "string" | "none" | "table" | undefined;
|
|
84
|
+
} & {
|
|
85
|
+
readonly __kind: any;
|
|
86
|
+
}>;
|
|
87
|
+
create: (input: {
|
|
88
|
+
data?: unknown;
|
|
89
|
+
render?: "string" | "none" | "table" | undefined;
|
|
90
|
+
}) => {
|
|
91
|
+
data?: unknown;
|
|
92
|
+
render?: "string" | "none" | "table" | undefined;
|
|
93
|
+
} & {
|
|
94
|
+
readonly __kind: any;
|
|
95
|
+
};
|
|
96
|
+
from: (input: unknown) => {
|
|
97
|
+
data?: unknown;
|
|
98
|
+
render?: "string" | "none" | "table" | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
readonly __kind: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { PluginJsonResponse, factory, pluginJsonResponse, rawSchema, schemas, t };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// PluginJsonResponse.ts
|
|
27
|
+
var PluginJsonResponse_exports = {};
|
|
28
|
+
__export(PluginJsonResponse_exports, {
|
|
29
|
+
factory: () => factory,
|
|
30
|
+
pluginJsonResponse: () => pluginJsonResponse,
|
|
31
|
+
rawSchema: () => rawSchema,
|
|
32
|
+
schemas: () => schemas
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(PluginJsonResponse_exports);
|
|
35
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
36
|
+
var import_zod = require("zod");
|
|
37
|
+
var rawSchema = import_zod.z.object({
|
|
38
|
+
data: import_zod.z.unknown().optional(),
|
|
39
|
+
render: import_zod.z.union([
|
|
40
|
+
import_zod.z.literal("none"),
|
|
41
|
+
import_zod.z.literal("table"),
|
|
42
|
+
import_zod.z.literal("string")
|
|
43
|
+
]).optional()
|
|
44
|
+
});
|
|
45
|
+
var pluginJsonResponse = (0, import_Base.default)({
|
|
46
|
+
rawSchema,
|
|
47
|
+
internalSchema: rawSchema,
|
|
48
|
+
parseErrMsg: (value) => `The following JSON response is invalid: ${value}`,
|
|
49
|
+
unknownErrMsg: "Something went wrong trying to parse the template"
|
|
50
|
+
});
|
|
51
|
+
var { schemas, factory } = pluginJsonResponse;
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
factory,
|
|
55
|
+
pluginJsonResponse,
|
|
56
|
+
rawSchema,
|
|
57
|
+
schemas
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=PluginJsonResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginJsonResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdata: z.unknown().optional(),\n\trender: z.union([\n\t\tz.literal('none'),\n\t\tz.literal('table'),\n\t\tz.literal('string'),\n\t]).optional(),\n});\n\ntype RawPluginJsonResponseInput = z.infer<typeof rawSchema>;\n\nexport const pluginJsonResponse = createType<RawPluginJsonResponseInput, RawPluginJsonResponseInput>({\n\trawSchema: rawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following JSON response is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the template',\n});\n\nexport type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;\n\nexport type t = PluginJsonResponse;\n\nexport const { schemas, factory } = pluginJsonResponse;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE,OAAO;AAAA,EACjC,MAAM,aAAE,QAAQ,EAAE,SAAS;AAAA,EAC3B,QAAQ,aAAE,MAAM;AAAA,IACf,aAAE,QAAQ,MAAM;AAAA,IAChB,aAAE,QAAQ,OAAO;AAAA,IACjB,aAAE,QAAQ,QAAQ;AAAA,EACnB,CAAC,EAAE,SAAS;AACb,CAAC;AAIM,IAAM,yBAAqB,YAAAA,SAAmE;AAAA,EACpG;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,2CAA2C;AAAA,EAC5E,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,SAAS,QAAQ,IAAI;","names":["createType"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// PluginJsonResponse.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
var rawSchema = z.object({
|
|
5
|
+
data: z.unknown().optional(),
|
|
6
|
+
render: z.union([
|
|
7
|
+
z.literal("none"),
|
|
8
|
+
z.literal("table"),
|
|
9
|
+
z.literal("string")
|
|
10
|
+
]).optional()
|
|
11
|
+
});
|
|
12
|
+
var pluginJsonResponse = createType({
|
|
13
|
+
rawSchema,
|
|
14
|
+
internalSchema: rawSchema,
|
|
15
|
+
parseErrMsg: (value) => `The following JSON response is invalid: ${value}`,
|
|
16
|
+
unknownErrMsg: "Something went wrong trying to parse the template"
|
|
17
|
+
});
|
|
18
|
+
var { schemas, factory } = pluginJsonResponse;
|
|
19
|
+
export {
|
|
20
|
+
factory,
|
|
21
|
+
pluginJsonResponse,
|
|
22
|
+
rawSchema,
|
|
23
|
+
schemas
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=PluginJsonResponse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginJsonResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdata: z.unknown().optional(),\n\trender: z.union([\n\t\tz.literal('none'),\n\t\tz.literal('table'),\n\t\tz.literal('string'),\n\t]).optional(),\n});\n\ntype RawPluginJsonResponseInput = z.infer<typeof rawSchema>;\n\nexport const pluginJsonResponse = createType<RawPluginJsonResponseInput, RawPluginJsonResponseInput>({\n\trawSchema: rawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following JSON response is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the template',\n});\n\nexport type PluginJsonResponse = z.infer<typeof pluginJsonResponse.schemas.schema>;\n\nexport type t = PluginJsonResponse;\n\nexport const { schemas, factory } = pluginJsonResponse;\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EAAE,OAAO;AAAA,EACjC,MAAM,EAAE,QAAQ,EAAE,SAAS;AAAA,EAC3B,QAAQ,EAAE,MAAM;AAAA,IACf,EAAE,QAAQ,MAAM;AAAA,IAChB,EAAE,QAAQ,OAAO;AAAA,IACjB,EAAE,QAAQ,QAAQ;AAAA,EACnB,CAAC,EAAE,SAAS;AACb,CAAC;AAIM,IAAM,qBAAqB,WAAmE;AAAA,EACpG;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,2CAA2C;AAAA,EAC5E,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,SAAS,QAAQ,IAAI;","names":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as fluture from 'fluture';
|
|
2
|
+
import { TaqError } from './TaqError.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare const rawSchema: z.ZodUnion<[z.ZodType<any, z.ZodTypeDef, any>, z.ZodVoid]>;
|
|
6
|
+
declare const schemas: {
|
|
7
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
8
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
9
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, any, any>;
|
|
10
|
+
};
|
|
11
|
+
declare const factory: {
|
|
12
|
+
make: (input: any) => fluture.FutureInstance<TaqError, any>;
|
|
13
|
+
of: (input: unknown) => fluture.FutureInstance<TaqError, any>;
|
|
14
|
+
create: (input: any) => any;
|
|
15
|
+
from: (input: unknown) => any;
|
|
16
|
+
};
|
|
17
|
+
declare type PluginProxyResponse = z.infer<typeof schemas.schema>;
|
|
18
|
+
declare type t = PluginProxyResponse;
|
|
19
|
+
declare const of: (input: unknown) => fluture.FutureInstance<TaqError, any>;
|
|
20
|
+
declare const make: (input: any) => fluture.FutureInstance<TaqError, any>;
|
|
21
|
+
declare const create: (input: any) => any;
|
|
22
|
+
|
|
23
|
+
export { PluginProxyResponse, create, factory, make, of, rawSchema, schemas, t };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// PluginProxyResponse.ts
|
|
27
|
+
var PluginProxyResponse_exports = {};
|
|
28
|
+
__export(PluginProxyResponse_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
make: () => make,
|
|
32
|
+
of: () => of,
|
|
33
|
+
rawSchema: () => rawSchema,
|
|
34
|
+
schemas: () => schemas2
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(PluginProxyResponse_exports);
|
|
37
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
38
|
+
var PluginJsonResponse = __toESM(require("@taqueria/protocol/PluginJsonResponse"));
|
|
39
|
+
var import_zod = require("zod");
|
|
40
|
+
var internalSchema = import_zod.z.union([
|
|
41
|
+
PluginJsonResponse.schemas.internalSchema,
|
|
42
|
+
import_zod.z.void()
|
|
43
|
+
]);
|
|
44
|
+
var rawSchema = internalSchema;
|
|
45
|
+
var { schemas: schemas2, factory } = (0, import_Base.default)({
|
|
46
|
+
rawSchema,
|
|
47
|
+
internalSchema,
|
|
48
|
+
parseErrMsg: "The response from the proxy request is invalid",
|
|
49
|
+
unknownErrMsg: "Something went wrong parsing the proxy response from the plugin"
|
|
50
|
+
});
|
|
51
|
+
var { of, make, create } = factory;
|
|
52
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
53
|
+
0 && (module.exports = {
|
|
54
|
+
create,
|
|
55
|
+
factory,
|
|
56
|
+
make,
|
|
57
|
+
of,
|
|
58
|
+
rawSchema,
|
|
59
|
+
schemas
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=PluginProxyResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginProxyResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nimport { z } from 'zod';\n\nconst internalSchema = z.union([\n\tPluginJsonResponse.schemas.internalSchema,\n\tz.void(),\n]);\n\nexport const rawSchema = internalSchema;\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The response from the proxy request is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the proxy response from the plugin',\n});\n\nexport type PluginProxyResponse = z.infer<typeof schemas.schema>;\nexport type t = PluginProxyResponse;\n\nexport const { of, make, create } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,yBAAoC;AACpC,iBAAkB;AAElB,IAAM,iBAAiB,aAAE,MAAM;AAAA,EACX,2BAAQ;AAAA,EAC3B,aAAE,KAAK;AACR,CAAC;AAEM,IAAM,YAAY;AAIlB,IAAM,EAAE,SAAAA,UAAS,QAAQ,QAAI,YAAAC,SAAyB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,IAAI,MAAM,OAAO,IAAI;","names":["schemas","createType"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// PluginProxyResponse.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import * as PluginJsonResponse from "@taqueria/protocol/PluginJsonResponse";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var internalSchema = z.union([
|
|
6
|
+
PluginJsonResponse.schemas.internalSchema,
|
|
7
|
+
z.void()
|
|
8
|
+
]);
|
|
9
|
+
var rawSchema = internalSchema;
|
|
10
|
+
var { schemas: schemas2, factory } = createType({
|
|
11
|
+
rawSchema,
|
|
12
|
+
internalSchema,
|
|
13
|
+
parseErrMsg: "The response from the proxy request is invalid",
|
|
14
|
+
unknownErrMsg: "Something went wrong parsing the proxy response from the plugin"
|
|
15
|
+
});
|
|
16
|
+
var { of, make, create } = factory;
|
|
17
|
+
export {
|
|
18
|
+
create,
|
|
19
|
+
factory,
|
|
20
|
+
make,
|
|
21
|
+
of,
|
|
22
|
+
rawSchema,
|
|
23
|
+
schemas2 as schemas
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=PluginProxyResponse.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginProxyResponse.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nimport { z } from 'zod';\n\nconst internalSchema = z.union([\n\tPluginJsonResponse.schemas.internalSchema,\n\tz.void(),\n]);\n\nexport const rawSchema = internalSchema;\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The response from the proxy request is invalid',\n\tunknownErrMsg: 'Something went wrong parsing the proxy response from the plugin',\n});\n\nexport type PluginProxyResponse = z.infer<typeof schemas.schema>;\nexport type t = PluginProxyResponse;\n\nexport const { of, make, create } = factory;\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,wBAAwB;AACpC,SAAS,SAAS;AAElB,IAAM,iBAAiB,EAAE,MAAM;AAAA,EACX,2BAAQ;AAAA,EAC3B,EAAE,KAAK;AACR,CAAC;AAEM,IAAM,YAAY;AAIlB,IAAM,EAAE,SAAAA,UAAS,QAAQ,IAAI,WAAyB;AAAA,EAC5D;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,IAAI,MAAM,OAAO,IAAI;","names":["schemas"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as fluture from 'fluture';
|
|
2
|
+
import { TaqError } from './TaqError.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
declare const rawSchema: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"json">, z.ZodLiteral<"application/json">, z.ZodLiteral<"none">]>>>, "none" | "json" | "application/json" | undefined, unknown>;
|
|
6
|
+
declare const schemas: {
|
|
7
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
8
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
9
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, ("none" | "json" | "application/json" | undefined) & {
|
|
10
|
+
readonly __kind: any;
|
|
11
|
+
}, any>;
|
|
12
|
+
};
|
|
13
|
+
declare const factory: {
|
|
14
|
+
make: (input: "none" | "json" | "application/json" | undefined) => fluture.FutureInstance<TaqError, ("none" | "json" | "application/json" | undefined) & {
|
|
15
|
+
readonly __kind: any;
|
|
16
|
+
}>;
|
|
17
|
+
of: (input: unknown) => fluture.FutureInstance<TaqError, ("none" | "json" | "application/json" | undefined) & {
|
|
18
|
+
readonly __kind: any;
|
|
19
|
+
}>;
|
|
20
|
+
create: (input: "none" | "json" | "application/json" | undefined) => ("none" | "json" | "application/json" | undefined) & {
|
|
21
|
+
readonly __kind: any;
|
|
22
|
+
};
|
|
23
|
+
from: (input: unknown) => ("none" | "json" | "application/json" | undefined) & {
|
|
24
|
+
readonly __kind: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare type PluginResponseEncoding = z.infer<typeof schemas.schema>;
|
|
28
|
+
declare type t = PluginResponseEncoding;
|
|
29
|
+
declare const create: (input: "none" | "json" | "application/json" | undefined) => ("none" | "json" | "application/json" | undefined) & {
|
|
30
|
+
readonly __kind: any;
|
|
31
|
+
};
|
|
32
|
+
declare const of: (input: unknown) => fluture.FutureInstance<TaqError, ("none" | "json" | "application/json" | undefined) & {
|
|
33
|
+
readonly __kind: any;
|
|
34
|
+
}>;
|
|
35
|
+
declare const make: (input: "none" | "json" | "application/json" | undefined) => fluture.FutureInstance<TaqError, ("none" | "json" | "application/json" | undefined) & {
|
|
36
|
+
readonly __kind: any;
|
|
37
|
+
}>;
|
|
38
|
+
|
|
39
|
+
export { PluginResponseEncoding, create, factory, make, of, rawSchema, schemas, t };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// PluginResponseEncoding.ts
|
|
27
|
+
var PluginResponseEncoding_exports = {};
|
|
28
|
+
__export(PluginResponseEncoding_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
make: () => make,
|
|
32
|
+
of: () => of,
|
|
33
|
+
rawSchema: () => rawSchema,
|
|
34
|
+
schemas: () => schemas
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(PluginResponseEncoding_exports);
|
|
37
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
38
|
+
var import_zod = require("zod");
|
|
39
|
+
var rawSchema = import_zod.z.preprocess(
|
|
40
|
+
(val) => val ?? "none",
|
|
41
|
+
import_zod.z.union([
|
|
42
|
+
import_zod.z.literal("json"),
|
|
43
|
+
import_zod.z.literal("application/json"),
|
|
44
|
+
import_zod.z.literal("none")
|
|
45
|
+
]).default("none").optional()
|
|
46
|
+
);
|
|
47
|
+
var { schemas, factory } = (0, import_Base.default)({
|
|
48
|
+
rawSchema,
|
|
49
|
+
internalSchema: rawSchema,
|
|
50
|
+
parseErrMsg: (value) => `The following encoding is invalid: ${value}`,
|
|
51
|
+
unknownErrMsg: "Something went wrong trying to parse the encoding"
|
|
52
|
+
});
|
|
53
|
+
var { create, of, make } = factory;
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
create,
|
|
57
|
+
factory,
|
|
58
|
+
make,
|
|
59
|
+
of,
|
|
60
|
+
rawSchema,
|
|
61
|
+
schemas
|
|
62
|
+
});
|
|
63
|
+
//# sourceMappingURL=PluginResponseEncoding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginResponseEncoding.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.preprocess(\n\t(val: unknown) => val ?? 'none',\n\tz.union([\n\t\tz.literal('json'),\n\t\tz.literal('application/json'),\n\t\tz.literal('none'),\n\t])\n\t\t.default('none')\n\t\t.optional(),\n);\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tinternalSchema: rawSchema,\n\tparseErrMsg: (value: unknown) => `The following encoding is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the encoding',\n});\n\nexport type PluginResponseEncoding = z.infer<typeof schemas.schema>;\nexport type t = PluginResponseEncoding;\n\nexport const { create, of, make } = factory;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE;AAAA,EAC1B,CAAC,QAAiB,OAAO;AAAA,EACzB,aAAE,MAAM;AAAA,IACP,aAAE,QAAQ,MAAM;AAAA,IAChB,aAAE,QAAQ,kBAAkB;AAAA,IAC5B,aAAE,QAAQ,MAAM;AAAA,EACjB,CAAC,EACC,QAAQ,MAAM,EACd,SAAS;AACZ;AAIO,IAAM,EAAE,SAAS,QAAQ,QAAI,YAAAA,SAA+B;AAAA,EAClE;AAAA,EACA,gBAAgB;AAAA,EAChB,aAAa,CAAC,UAAmB,sCAAsC;AAAA,EACvE,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;","names":["createType"]}
|