@taqueria/protocol 0.16.0 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alias.d.ts +42 -0
- package/Alias.d.ts.map +1 -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 +48 -0
- package/Base.d.ts.map +1 -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 +24 -0
- package/Command.d.ts.map +1 -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 +2055 -0
- package/Config.d.ts.map +1 -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 +82 -0
- package/Contract.d.ts.map +1 -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 +4 -0
- package/Crypto.d.ts.map +1 -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 +41 -0
- package/EconomicalProtocolHash.d.ts.map +1 -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 +134 -0
- package/Environment.d.ts.map +1 -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 +4556 -0
- package/EphemeralState.d.ts.map +1 -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 +203 -0
- package/Faucet.d.ts.map +1 -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 +24 -0
- package/HumanReadableIdentifier.d.ts.map +1 -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 +92 -0
- package/InstalledPlugin.d.ts.map +1 -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 +2318 -0
- package/LoadedConfig.d.ts.map +1 -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 +155 -0
- package/MetadataConfig.d.ts.map +1 -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 +424 -0
- package/NetworkConfig.d.ts.map +1 -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 +1470 -0
- package/Operation.d.ts.map +1 -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 +309 -0
- package/Option.d.ts.map +1 -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 +880 -0
- package/ParsedOperation.d.ts.map +1 -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 +1024 -0
- package/ParsedTemplate.d.ts.map +1 -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 +575 -0
- package/PersistentState.d.ts.map +1 -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 +22 -0
- package/PluginActionName.d.ts.map +1 -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 +152 -0
- package/PluginDependenciesResponse.d.ts.map +1 -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 +3418 -0
- package/PluginInfo.d.ts.map +1 -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 +99 -0
- package/PluginJsonResponse.d.ts.map +1 -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 +16 -0
- package/PluginProxyResponse.d.ts.map +1 -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 +32 -0
- package/PluginResponseEncoding.d.ts.map +1 -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 +7324 -0
- package/PluginSchema.d.ts.map +1 -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 +183 -0
- package/PositionalArg.d.ts.map +1 -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 +269 -0
- package/Provisioner.d.ts.map +1 -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 +41 -0
- package/ProvisionerID.d.ts.map +1 -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 +237 -0
- package/Provisions.d.ts.map +1 -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 +42 -0
- package/PublicKeyHash.d.ts.map +1 -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 +5548 -0
- package/RequestArgs.d.ts.map +1 -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 +29 -0
- package/SHA256.d.ts.map +1 -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 +145 -0
- package/SandboxAccountConfig.d.ts.map +1 -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 +543 -0
- package/SandboxConfig.d.ts.map +1 -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 +41 -0
- package/SanitizedAbsPath.d.ts.map +1 -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 +2900 -0
- package/SanitizedArgs.d.ts.map +1 -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 +24 -0
- package/SanitizedPath.d.ts.map +1 -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 +5 -0
- package/ScaffoldConfig.d.ts.map +1 -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 +75 -0
- package/Settings.d.ts.map +1 -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 +41 -0
- package/SingleChar.d.ts.map +1 -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 +21 -0
- package/TaqError.d.ts.map +1 -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 +818 -0
- package/Task.d.ts.map +1 -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 +1738 -0
- package/Template.d.ts.map +1 -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 +44 -0
- package/Timestamp.d.ts.map +1 -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 +40 -0
- package/Tz.d.ts.map +1 -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 +42 -0
- package/Url.d.ts.map +1 -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 +41 -0
- package/Verb.d.ts.map +1 -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 +24 -0
- package/VersionNumber.d.ts.map +1 -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.d.ts.map +1 -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.ts → taqueria-protocol-types.d.ts} +1 -0
- package/taqueria-protocol-types.d.ts.map +1 -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 +109 -0
- package/tzkt-config.d.ts.map +1 -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/tzkt-config.ts +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginSchema.d.ts","sourceRoot":"","sources":["PluginSchema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/PluginSchema.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
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
|
+
// PluginSchema.ts
|
|
27
|
+
var PluginSchema_exports = {};
|
|
28
|
+
__export(PluginSchema_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
generatedSchemas: () => generatedSchemas,
|
|
32
|
+
make: () => make,
|
|
33
|
+
of: () => of,
|
|
34
|
+
rawSchema: () => rawSchema4,
|
|
35
|
+
schemas: () => schemas6
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(PluginSchema_exports);
|
|
38
|
+
var Alias = __toESM(require("@taqueria/protocol/Alias"));
|
|
39
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
40
|
+
var Operation = __toESM(require("@taqueria/protocol/Operation"));
|
|
41
|
+
var PluginDependenciesResponse = __toESM(require("@taqueria/protocol/PluginDependenciesResponse"));
|
|
42
|
+
var PluginInfo = __toESM(require("@taqueria/protocol/PluginInfo"));
|
|
43
|
+
var PluginProxyResponse = __toESM(require("@taqueria/protocol/PluginProxyResponse"));
|
|
44
|
+
var RequestArgs = __toESM(require("@taqueria/protocol/RequestArgs"));
|
|
45
|
+
var Template = __toESM(require("@taqueria/protocol/Template"));
|
|
46
|
+
var import_zod = require("zod");
|
|
47
|
+
var proxyFnSchema = import_zod.z.function().args(RequestArgs.proxySchemas.schema).returns(import_zod.z.promise(PluginProxyResponse.schemas.schema));
|
|
48
|
+
var runtimeDependenciesFn = import_zod.z.function().args(RequestArgs.schemas.schema).returns(import_zod.z.promise(PluginDependenciesResponse.schemas.schema));
|
|
49
|
+
var internalSchema2 = PluginInfo.internalSchema.extend({
|
|
50
|
+
operations: import_zod.z.preprocess(
|
|
51
|
+
(val) => val ?? [],
|
|
52
|
+
import_zod.z.array(
|
|
53
|
+
Operation.schemas.schema,
|
|
54
|
+
{ description: "ParsedOperations" }
|
|
55
|
+
).optional()
|
|
56
|
+
),
|
|
57
|
+
templates: import_zod.z.preprocess(
|
|
58
|
+
(val) => val ?? [],
|
|
59
|
+
import_zod.z.array(
|
|
60
|
+
Template.schemas.schema
|
|
61
|
+
).optional()
|
|
62
|
+
),
|
|
63
|
+
proxy: proxyFnSchema.optional(),
|
|
64
|
+
checkRuntimeDependencies: runtimeDependenciesFn.optional(),
|
|
65
|
+
installRuntimeDependencies: runtimeDependenciesFn.optional()
|
|
66
|
+
}).describe("ParsedPluginInfo");
|
|
67
|
+
var rawSchema4 = PluginInfo.rawSchema.extend({
|
|
68
|
+
name: Alias.rawSchema.optional(),
|
|
69
|
+
operations: import_zod.z.preprocess(
|
|
70
|
+
(val) => val ?? [],
|
|
71
|
+
import_zod.z.array(
|
|
72
|
+
Operation.rawSchema,
|
|
73
|
+
{ description: "ParsedOperation" }
|
|
74
|
+
)
|
|
75
|
+
).optional(),
|
|
76
|
+
templates: import_zod.z.preprocess(
|
|
77
|
+
(val) => val ?? [],
|
|
78
|
+
import_zod.z.array(
|
|
79
|
+
Template.schemas.schema
|
|
80
|
+
).optional()
|
|
81
|
+
),
|
|
82
|
+
proxy: proxyFnSchema.optional(),
|
|
83
|
+
checkRuntimeDependencies: runtimeDependenciesFn.optional(),
|
|
84
|
+
installRuntimeDependencies: runtimeDependenciesFn.optional()
|
|
85
|
+
}).describe("ParsedPluginInfo");
|
|
86
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
87
|
+
rawSchema: rawSchema4,
|
|
88
|
+
internalSchema: internalSchema2,
|
|
89
|
+
parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
|
|
90
|
+
unknownErrMsg: "Something went wrong trying to parse the plugin information"
|
|
91
|
+
});
|
|
92
|
+
var { create, of, make } = factory;
|
|
93
|
+
var schemas6 = {
|
|
94
|
+
...generatedSchemas,
|
|
95
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
96
|
+
};
|
|
97
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
98
|
+
0 && (module.exports = {
|
|
99
|
+
create,
|
|
100
|
+
factory,
|
|
101
|
+
generatedSchemas,
|
|
102
|
+
make,
|
|
103
|
+
of,
|
|
104
|
+
rawSchema,
|
|
105
|
+
schemas
|
|
106
|
+
});
|
|
107
|
+
//# sourceMappingURL=PluginSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginSchema.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType from '@taqueria/protocol/Base';\nimport * as Operation from '@taqueria/protocol/Operation';\nimport * as PluginDependenciesResponse from '@taqueria/protocol/PluginDependenciesResponse';\nimport * as PluginInfo from '@taqueria/protocol/PluginInfo';\nimport * as PluginProxyResponse from '@taqueria/protocol/PluginProxyResponse';\nimport * as RequestArgs from '@taqueria/protocol/RequestArgs';\nimport * as Template from '@taqueria/protocol/Template';\nimport { z } from 'zod';\n\nconst proxyFnSchema = z\n\t.function()\n\t.args(RequestArgs.proxySchemas.schema)\n\t.returns(z.promise(PluginProxyResponse.schemas.schema));\n\nconst runtimeDependenciesFn = z\n\t.function()\n\t.args(RequestArgs.schemas.schema)\n\t.returns(z.promise(PluginDependenciesResponse.schemas.schema));\n\nconst internalSchema = PluginInfo.internalSchema.extend({\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tOperation.schemas.schema,\n\t\t\t{ description: 'ParsedOperations' },\n\t\t)\n\t\t\t.optional(),\n\t),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTemplate.schemas.schema,\n\t\t).optional(),\n\t),\n\tproxy: proxyFnSchema.optional(),\n\tcheckRuntimeDependencies: runtimeDependenciesFn.optional(),\n\tinstallRuntimeDependencies: runtimeDependenciesFn.optional(),\n}).describe('ParsedPluginInfo');\n\nexport const rawSchema = PluginInfo.rawSchema.extend({\n\tname: Alias.rawSchema.optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tOperation.rawSchema,\n\t\t\t{ description: 'ParsedOperation' },\n\t\t),\n\t)\n\t\t.optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTemplate.schemas.schema,\n\t\t).optional(),\n\t),\n\tproxy: proxyFnSchema.optional(),\n\tcheckRuntimeDependencies: runtimeDependenciesFn.optional(),\n\tinstallRuntimeDependencies: runtimeDependenciesFn.optional(),\n}).describe('ParsedPluginInfo');\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport type RawPluginSchema = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawPluginSchema, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) =>\n\t\t`The following plugin info gave us trouble when parsing the following plugin information: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the plugin information',\n});\n\nexport type ParsedPluginInfo = z.infer<typeof generatedSchemas.schema>;\nexport type t = ParsedPluginInfo;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ParsedPluginInfo),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,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AAsB,SAAS;AAAA,EACzD,4BAA4B,sBAAsB,SAAS;AAC5D,CAAC,EAAE,SAAS,kBAAkB;AAMvB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAG,SAAmC;AAAA,EACxF,WAAAH;AAAA,EACA,gBAAAE;AAAA,EACA,aAAa,CAAC,UACb,4FAA4F;AAAA,EAC7F,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMD,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAuB;AACzE;","names":["rawSchema","schemas","internalSchema","createType"]}
|
package/PluginSchema.mjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// PluginSchema.ts
|
|
2
|
+
import * as Alias from "@taqueria/protocol/Alias";
|
|
3
|
+
import createType from "@taqueria/protocol/Base";
|
|
4
|
+
import * as Operation from "@taqueria/protocol/Operation";
|
|
5
|
+
import * as PluginDependenciesResponse from "@taqueria/protocol/PluginDependenciesResponse";
|
|
6
|
+
import * as PluginInfo from "@taqueria/protocol/PluginInfo";
|
|
7
|
+
import * as PluginProxyResponse from "@taqueria/protocol/PluginProxyResponse";
|
|
8
|
+
import * as RequestArgs from "@taqueria/protocol/RequestArgs";
|
|
9
|
+
import * as Template from "@taqueria/protocol/Template";
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
var proxyFnSchema = z.function().args(RequestArgs.proxySchemas.schema).returns(z.promise(PluginProxyResponse.schemas.schema));
|
|
12
|
+
var runtimeDependenciesFn = z.function().args(RequestArgs.schemas.schema).returns(z.promise(PluginDependenciesResponse.schemas.schema));
|
|
13
|
+
var internalSchema2 = PluginInfo.internalSchema.extend({
|
|
14
|
+
operations: z.preprocess(
|
|
15
|
+
(val) => val ?? [],
|
|
16
|
+
z.array(
|
|
17
|
+
Operation.schemas.schema,
|
|
18
|
+
{ description: "ParsedOperations" }
|
|
19
|
+
).optional()
|
|
20
|
+
),
|
|
21
|
+
templates: z.preprocess(
|
|
22
|
+
(val) => val ?? [],
|
|
23
|
+
z.array(
|
|
24
|
+
Template.schemas.schema
|
|
25
|
+
).optional()
|
|
26
|
+
),
|
|
27
|
+
proxy: proxyFnSchema.optional(),
|
|
28
|
+
checkRuntimeDependencies: runtimeDependenciesFn.optional(),
|
|
29
|
+
installRuntimeDependencies: runtimeDependenciesFn.optional()
|
|
30
|
+
}).describe("ParsedPluginInfo");
|
|
31
|
+
var rawSchema4 = PluginInfo.rawSchema.extend({
|
|
32
|
+
name: Alias.rawSchema.optional(),
|
|
33
|
+
operations: z.preprocess(
|
|
34
|
+
(val) => val ?? [],
|
|
35
|
+
z.array(
|
|
36
|
+
Operation.rawSchema,
|
|
37
|
+
{ description: "ParsedOperation" }
|
|
38
|
+
)
|
|
39
|
+
).optional(),
|
|
40
|
+
templates: z.preprocess(
|
|
41
|
+
(val) => val ?? [],
|
|
42
|
+
z.array(
|
|
43
|
+
Template.schemas.schema
|
|
44
|
+
).optional()
|
|
45
|
+
),
|
|
46
|
+
proxy: proxyFnSchema.optional(),
|
|
47
|
+
checkRuntimeDependencies: runtimeDependenciesFn.optional(),
|
|
48
|
+
installRuntimeDependencies: runtimeDependenciesFn.optional()
|
|
49
|
+
}).describe("ParsedPluginInfo");
|
|
50
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
51
|
+
rawSchema: rawSchema4,
|
|
52
|
+
internalSchema: internalSchema2,
|
|
53
|
+
parseErrMsg: (value) => `The following plugin info gave us trouble when parsing the following plugin information: ${value}`,
|
|
54
|
+
unknownErrMsg: "Something went wrong trying to parse the plugin information"
|
|
55
|
+
});
|
|
56
|
+
var { create, of, make } = factory;
|
|
57
|
+
var schemas6 = {
|
|
58
|
+
...generatedSchemas,
|
|
59
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
create,
|
|
63
|
+
factory,
|
|
64
|
+
generatedSchemas,
|
|
65
|
+
make,
|
|
66
|
+
of,
|
|
67
|
+
rawSchema4 as rawSchema,
|
|
68
|
+
schemas6 as schemas
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=PluginSchema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PluginSchema.ts"],"sourcesContent":["import * as Alias from '@taqueria/protocol/Alias';\nimport createType from '@taqueria/protocol/Base';\nimport * as Operation from '@taqueria/protocol/Operation';\nimport * as PluginDependenciesResponse from '@taqueria/protocol/PluginDependenciesResponse';\nimport * as PluginInfo from '@taqueria/protocol/PluginInfo';\nimport * as PluginProxyResponse from '@taqueria/protocol/PluginProxyResponse';\nimport * as RequestArgs from '@taqueria/protocol/RequestArgs';\nimport * as Template from '@taqueria/protocol/Template';\nimport { z } from 'zod';\n\nconst proxyFnSchema = z\n\t.function()\n\t.args(RequestArgs.proxySchemas.schema)\n\t.returns(z.promise(PluginProxyResponse.schemas.schema));\n\nconst runtimeDependenciesFn = z\n\t.function()\n\t.args(RequestArgs.schemas.schema)\n\t.returns(z.promise(PluginDependenciesResponse.schemas.schema));\n\nconst internalSchema = PluginInfo.internalSchema.extend({\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tOperation.schemas.schema,\n\t\t\t{ description: 'ParsedOperations' },\n\t\t)\n\t\t\t.optional(),\n\t),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTemplate.schemas.schema,\n\t\t).optional(),\n\t),\n\tproxy: proxyFnSchema.optional(),\n\tcheckRuntimeDependencies: runtimeDependenciesFn.optional(),\n\tinstallRuntimeDependencies: runtimeDependenciesFn.optional(),\n}).describe('ParsedPluginInfo');\n\nexport const rawSchema = PluginInfo.rawSchema.extend({\n\tname: Alias.rawSchema.optional(),\n\toperations: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tOperation.rawSchema,\n\t\t\t{ description: 'ParsedOperation' },\n\t\t),\n\t)\n\t\t.optional(),\n\ttemplates: z.preprocess(\n\t\tval => val ?? [],\n\t\tz.array(\n\t\t\tTemplate.schemas.schema,\n\t\t).optional(),\n\t),\n\tproxy: proxyFnSchema.optional(),\n\tcheckRuntimeDependencies: runtimeDependenciesFn.optional(),\n\tinstallRuntimeDependencies: runtimeDependenciesFn.optional(),\n}).describe('ParsedPluginInfo');\n\ntype Input = z.infer<typeof internalSchema>;\n\nexport type RawPluginSchema = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawPluginSchema, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) =>\n\t\t`The following plugin info gave us trouble when parsing the following plugin information: ${value}`,\n\tunknownErrMsg: 'Something went wrong trying to parse the plugin information',\n});\n\nexport type ParsedPluginInfo = z.infer<typeof generatedSchemas.schema>;\nexport type t = ParsedPluginInfo;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ParsedPluginInfo),\n};\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,YAAY,eAAe;AAC3B,YAAY,gCAAgC;AAC5C,YAAY,gBAAgB;AAC5B,YAAY,yBAAyB;AACrC,YAAY,iBAAiB;AAC7B,YAAY,cAAc;AAC1B,SAAS,SAAS;AAElB,IAAM,gBAAgB,EACpB,SAAS,EACT,KAAiB,yBAAa,MAAM,EACpC,QAAQ,EAAE,QAA4B,4BAAQ,MAAM,CAAC;AAEvD,IAAM,wBAAwB,EAC5B,SAAS,EACT,KAAiB,oBAAQ,MAAM,EAC/B,QAAQ,EAAE,QAAmC,mCAAQ,MAAM,CAAC;AAE9D,IAAMA,kBAA4B,0BAAe,OAAO;AAAA,EACvD,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACS,kBAAQ;AAAA,MAClB,EAAE,aAAa,mBAAmB;AAAA,IACnC,EACE,SAAS;AAAA,EACZ;AAAA,EACA,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACQ,iBAAQ;AAAA,IAClB,EAAE,SAAS;AAAA,EACZ;AAAA,EACA,OAAO,cAAc,SAAS;AAAA,EAC9B,0BAA0B,sBAAsB,SAAS;AAAA,EACzD,4BAA4B,sBAAsB,SAAS;AAC5D,CAAC,EAAE,SAAS,kBAAkB;AAEvB,IAAMC,aAAuB,qBAAU,OAAO;AAAA,EACpD,MAAY,gBAAU,SAAS;AAAA,EAC/B,YAAY,EAAE;AAAA,IACb,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACS;AAAA,MACV,EAAE,aAAa,kBAAkB;AAAA,IAClC;AAAA,EACD,EACE,SAAS;AAAA,EACX,WAAW,EAAE;AAAA,IACZ,SAAO,OAAO,CAAC;AAAA,IACf,EAAE;AAAA,MACQ,iBAAQ;AAAA,IAClB,EAAE,SAAS;AAAA,EACZ;AAAA,EACA,OAAO,cAAc,SAAS;AAAA,EAC9B,0BAA0B,sBAAsB,SAAS;AAAA,EACzD,4BAA4B,sBAAsB,SAAS;AAC5D,CAAC,EAAE,SAAS,kBAAkB;AAMvB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAAmC;AAAA,EACxF,WAAAA;AAAA,EACA,gBAAAD;AAAA,EACA,aAAa,CAAC,UACb,4FAA4F;AAAA,EAC7F,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAME,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAuB;AACzE;","names":["internalSchema","rawSchema","schemas"]}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rawSchema: z.ZodObject<{
|
|
3
|
+
placeholder: z.ZodString;
|
|
4
|
+
description: z.ZodString;
|
|
5
|
+
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
6
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"boolean">]>>;
|
|
7
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
10
|
+
defaultValue?: string | number | boolean | undefined;
|
|
11
|
+
required?: boolean | undefined;
|
|
12
|
+
description: string;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
}, {
|
|
15
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
16
|
+
defaultValue?: string | number | boolean | undefined;
|
|
17
|
+
required?: boolean | undefined;
|
|
18
|
+
description: string;
|
|
19
|
+
placeholder: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const generatedSchemas: {
|
|
22
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
23
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
24
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
25
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
26
|
+
defaultValue?: string | number | boolean | undefined;
|
|
27
|
+
required?: boolean | undefined;
|
|
28
|
+
description: string;
|
|
29
|
+
placeholder: string & {
|
|
30
|
+
readonly __kind: any;
|
|
31
|
+
};
|
|
32
|
+
} & {
|
|
33
|
+
readonly __kind: any;
|
|
34
|
+
}, any>;
|
|
35
|
+
}, factory: {
|
|
36
|
+
make: (input: {
|
|
37
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
38
|
+
defaultValue?: string | number | boolean | undefined;
|
|
39
|
+
required?: boolean | undefined;
|
|
40
|
+
description: string;
|
|
41
|
+
placeholder: string & {
|
|
42
|
+
readonly __kind: any;
|
|
43
|
+
};
|
|
44
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
45
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
46
|
+
defaultValue?: string | number | boolean | undefined;
|
|
47
|
+
required?: boolean | undefined;
|
|
48
|
+
description: string;
|
|
49
|
+
placeholder: string & {
|
|
50
|
+
readonly __kind: any;
|
|
51
|
+
};
|
|
52
|
+
} & {
|
|
53
|
+
readonly __kind: any;
|
|
54
|
+
}>;
|
|
55
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
56
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
57
|
+
defaultValue?: string | number | boolean | undefined;
|
|
58
|
+
required?: boolean | undefined;
|
|
59
|
+
description: string;
|
|
60
|
+
placeholder: string & {
|
|
61
|
+
readonly __kind: any;
|
|
62
|
+
};
|
|
63
|
+
} & {
|
|
64
|
+
readonly __kind: any;
|
|
65
|
+
}>;
|
|
66
|
+
create: (input: {
|
|
67
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
68
|
+
defaultValue?: string | number | boolean | undefined;
|
|
69
|
+
required?: boolean | undefined;
|
|
70
|
+
description: string;
|
|
71
|
+
placeholder: string;
|
|
72
|
+
} | {
|
|
73
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
74
|
+
defaultValue?: string | number | boolean | undefined;
|
|
75
|
+
required?: boolean | undefined;
|
|
76
|
+
description: string;
|
|
77
|
+
placeholder: string & {
|
|
78
|
+
readonly __kind: any;
|
|
79
|
+
};
|
|
80
|
+
}) => {
|
|
81
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
82
|
+
defaultValue?: string | number | boolean | undefined;
|
|
83
|
+
required?: boolean | undefined;
|
|
84
|
+
description: string;
|
|
85
|
+
placeholder: string & {
|
|
86
|
+
readonly __kind: any;
|
|
87
|
+
};
|
|
88
|
+
} & {
|
|
89
|
+
readonly __kind: any;
|
|
90
|
+
};
|
|
91
|
+
from: (input: unknown) => {
|
|
92
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
93
|
+
defaultValue?: string | number | boolean | undefined;
|
|
94
|
+
required?: boolean | undefined;
|
|
95
|
+
description: string;
|
|
96
|
+
placeholder: string & {
|
|
97
|
+
readonly __kind: any;
|
|
98
|
+
};
|
|
99
|
+
} & {
|
|
100
|
+
readonly __kind: any;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare type PositionalArg = z.infer<typeof generatedSchemas.schema>;
|
|
104
|
+
export declare type t = PositionalArg;
|
|
105
|
+
export declare const create: (input: {
|
|
106
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
107
|
+
defaultValue?: string | number | boolean | undefined;
|
|
108
|
+
required?: boolean | undefined;
|
|
109
|
+
description: string;
|
|
110
|
+
placeholder: string;
|
|
111
|
+
} | {
|
|
112
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
113
|
+
defaultValue?: string | number | boolean | undefined;
|
|
114
|
+
required?: boolean | undefined;
|
|
115
|
+
description: string;
|
|
116
|
+
placeholder: string & {
|
|
117
|
+
readonly __kind: any;
|
|
118
|
+
};
|
|
119
|
+
}) => {
|
|
120
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
121
|
+
defaultValue?: string | number | boolean | undefined;
|
|
122
|
+
required?: boolean | undefined;
|
|
123
|
+
description: string;
|
|
124
|
+
placeholder: string & {
|
|
125
|
+
readonly __kind: any;
|
|
126
|
+
};
|
|
127
|
+
} & {
|
|
128
|
+
readonly __kind: any;
|
|
129
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
130
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
131
|
+
defaultValue?: string | number | boolean | undefined;
|
|
132
|
+
required?: boolean | undefined;
|
|
133
|
+
description: string;
|
|
134
|
+
placeholder: string & {
|
|
135
|
+
readonly __kind: any;
|
|
136
|
+
};
|
|
137
|
+
} & {
|
|
138
|
+
readonly __kind: any;
|
|
139
|
+
}>, make: (input: {
|
|
140
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
141
|
+
defaultValue?: string | number | boolean | undefined;
|
|
142
|
+
required?: boolean | undefined;
|
|
143
|
+
description: string;
|
|
144
|
+
placeholder: string & {
|
|
145
|
+
readonly __kind: any;
|
|
146
|
+
};
|
|
147
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
148
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
149
|
+
defaultValue?: string | number | boolean | undefined;
|
|
150
|
+
required?: boolean | undefined;
|
|
151
|
+
description: string;
|
|
152
|
+
placeholder: string & {
|
|
153
|
+
readonly __kind: any;
|
|
154
|
+
};
|
|
155
|
+
} & {
|
|
156
|
+
readonly __kind: any;
|
|
157
|
+
}>;
|
|
158
|
+
export declare const schemas: {
|
|
159
|
+
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
160
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
161
|
+
defaultValue?: string | number | boolean | undefined;
|
|
162
|
+
required?: boolean | undefined;
|
|
163
|
+
description: string;
|
|
164
|
+
placeholder: string & {
|
|
165
|
+
readonly __kind: any;
|
|
166
|
+
};
|
|
167
|
+
} & {
|
|
168
|
+
readonly __kind: any;
|
|
169
|
+
}, any>, {
|
|
170
|
+
type?: "string" | "number" | "boolean" | undefined;
|
|
171
|
+
defaultValue?: string | number | boolean | undefined;
|
|
172
|
+
required?: boolean | undefined;
|
|
173
|
+
description: string;
|
|
174
|
+
placeholder: string & {
|
|
175
|
+
readonly __kind: any;
|
|
176
|
+
};
|
|
177
|
+
} & {
|
|
178
|
+
readonly __kind: any;
|
|
179
|
+
}, any>;
|
|
180
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
181
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=PositionalArg.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PositionalArg.d.ts","sourceRoot":"","sources":["PositionalArg.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;EAYO,CAAC;AAS9B,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACpE,oBAAY,CAAC,GAAG,aAAa,CAAC;AAE9B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/PositionalArg.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
// PositionalArg.ts
|
|
27
|
+
var PositionalArg_exports = {};
|
|
28
|
+
__export(PositionalArg_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
generatedSchemas: () => generatedSchemas,
|
|
32
|
+
make: () => make,
|
|
33
|
+
of: () => of,
|
|
34
|
+
rawSchema: () => rawSchema2,
|
|
35
|
+
schemas: () => schemas2
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(PositionalArg_exports);
|
|
38
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
39
|
+
var HumanReadableIdentifier = __toESM(require("@taqueria/protocol/HumanReadableIdentifier"));
|
|
40
|
+
var import_zod = require("zod");
|
|
41
|
+
var rawSchema2 = import_zod.z.object({
|
|
42
|
+
placeholder: HumanReadableIdentifier.rawSchema.describe("Positional Arg Placeholder"),
|
|
43
|
+
description: import_zod.z.string({ description: "Positional Arg Description" }).min(1),
|
|
44
|
+
defaultValue: import_zod.z.union(
|
|
45
|
+
[import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean()],
|
|
46
|
+
{ description: "Positional Arg Default Value" }
|
|
47
|
+
).optional(),
|
|
48
|
+
type: import_zod.z.union(
|
|
49
|
+
[import_zod.z.literal("string"), import_zod.z.literal("number"), import_zod.z.literal("boolean")],
|
|
50
|
+
{ description: "Positional Arg Datatype" }
|
|
51
|
+
).optional(),
|
|
52
|
+
required: import_zod.z.boolean().optional()
|
|
53
|
+
}).describe("Positional Arg");
|
|
54
|
+
var internalSchema = rawSchema2.extend({
|
|
55
|
+
placeholder: HumanReadableIdentifier.schemas.schema.describe("Positional Arg Placeholder")
|
|
56
|
+
}).describe("Positional Arg");
|
|
57
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
58
|
+
rawSchema: rawSchema2,
|
|
59
|
+
internalSchema,
|
|
60
|
+
parseErrMsg: (value) => `The following positional argument is invalid: ${value}`,
|
|
61
|
+
unknownErrMsg: "Something went wrong parsing the positional argument"
|
|
62
|
+
});
|
|
63
|
+
var { create, of, make } = factory;
|
|
64
|
+
var schemas2 = {
|
|
65
|
+
...generatedSchemas,
|
|
66
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
67
|
+
};
|
|
68
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
+
0 && (module.exports = {
|
|
70
|
+
create,
|
|
71
|
+
factory,
|
|
72
|
+
generatedSchemas,
|
|
73
|
+
make,
|
|
74
|
+
of,
|
|
75
|
+
rawSchema,
|
|
76
|
+
schemas
|
|
77
|
+
});
|
|
78
|
+
//# sourceMappingURL=PositionalArg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PositionalArg.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tplaceholder: HumanReadableIdentifier.rawSchema.describe('Positional Arg Placeholder'),\n\tdescription: z.string({ description: 'Positional Arg Description' }).min(1),\n\tdefaultValue: z.union(\n\t\t[z.string(), z.number(), z.boolean()],\n\t\t{ description: 'Positional Arg Default Value' },\n\t).optional(),\n\ttype: z.union(\n\t\t[z.literal('string'), z.literal('number'), z.literal('boolean')],\n\t\t{ description: 'Positional Arg Datatype' },\n\t).optional(),\n\trequired: z.boolean().optional(),\n}).describe('Positional Arg');\n\nconst internalSchema = rawSchema.extend({\n\tplaceholder: HumanReadableIdentifier.schemas.schema.describe('Positional Arg Placeholder'),\n}).describe('Positional Arg');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `The following positional argument is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong parsing the positional argument',\n});\n\nexport type PositionalArg = z.infer<typeof generatedSchemas.schema>;\nexport type t = PositionalArg;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as PositionalArg),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAuB;AACvB,8BAAyC;AACzC,iBAAkB;AAEX,IAAMD,aAAY,aAAE,OAAO;AAAA,EACjC,aAAqC,kCAAU,SAAS,4BAA4B;AAAA,EACpF,aAAa,aAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AAAA,EAC1E,cAAc,aAAE;AAAA,IACf,CAAC,aAAE,OAAO,GAAG,aAAE,OAAO,GAAG,aAAE,QAAQ,CAAC;AAAA,IACpC,EAAE,aAAa,+BAA+B;AAAA,EAC/C,EAAE,SAAS;AAAA,EACX,MAAM,aAAE;AAAA,IACP,CAAC,aAAE,QAAQ,QAAQ,GAAG,aAAE,QAAQ,QAAQ,GAAG,aAAE,QAAQ,SAAS,CAAC;AAAA,IAC/D,EAAE,aAAa,0BAA0B;AAAA,EAC1C,EAAE,SAAS;AAAA,EACX,UAAU,aAAE,QAAQ,EAAE,SAAS;AAChC,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EACvC,aAAqC,gCAAQ,OAAO,SAAS,4BAA4B;AAC1F,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,iDAAiD;AAAA,EAClF,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA+B;AACjF;","names":["rawSchema","schemas","createType"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// PositionalArg.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import * as HumanReadableIdentifier from "@taqueria/protocol/HumanReadableIdentifier";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var rawSchema2 = z.object({
|
|
6
|
+
placeholder: HumanReadableIdentifier.rawSchema.describe("Positional Arg Placeholder"),
|
|
7
|
+
description: z.string({ description: "Positional Arg Description" }).min(1),
|
|
8
|
+
defaultValue: z.union(
|
|
9
|
+
[z.string(), z.number(), z.boolean()],
|
|
10
|
+
{ description: "Positional Arg Default Value" }
|
|
11
|
+
).optional(),
|
|
12
|
+
type: z.union(
|
|
13
|
+
[z.literal("string"), z.literal("number"), z.literal("boolean")],
|
|
14
|
+
{ description: "Positional Arg Datatype" }
|
|
15
|
+
).optional(),
|
|
16
|
+
required: z.boolean().optional()
|
|
17
|
+
}).describe("Positional Arg");
|
|
18
|
+
var internalSchema = rawSchema2.extend({
|
|
19
|
+
placeholder: HumanReadableIdentifier.schemas.schema.describe("Positional Arg Placeholder")
|
|
20
|
+
}).describe("Positional Arg");
|
|
21
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
22
|
+
rawSchema: rawSchema2,
|
|
23
|
+
internalSchema,
|
|
24
|
+
parseErrMsg: (value) => `The following positional argument is invalid: ${value}`,
|
|
25
|
+
unknownErrMsg: "Something went wrong parsing the positional argument"
|
|
26
|
+
});
|
|
27
|
+
var { create, of, make } = factory;
|
|
28
|
+
var schemas2 = {
|
|
29
|
+
...generatedSchemas,
|
|
30
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
create,
|
|
34
|
+
factory,
|
|
35
|
+
generatedSchemas,
|
|
36
|
+
make,
|
|
37
|
+
of,
|
|
38
|
+
rawSchema2 as rawSchema,
|
|
39
|
+
schemas2 as schemas
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=PositionalArg.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["PositionalArg.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tplaceholder: HumanReadableIdentifier.rawSchema.describe('Positional Arg Placeholder'),\n\tdescription: z.string({ description: 'Positional Arg Description' }).min(1),\n\tdefaultValue: z.union(\n\t\t[z.string(), z.number(), z.boolean()],\n\t\t{ description: 'Positional Arg Default Value' },\n\t).optional(),\n\ttype: z.union(\n\t\t[z.literal('string'), z.literal('number'), z.literal('boolean')],\n\t\t{ description: 'Positional Arg Datatype' },\n\t).optional(),\n\trequired: z.boolean().optional(),\n}).describe('Positional Arg');\n\nconst internalSchema = rawSchema.extend({\n\tplaceholder: HumanReadableIdentifier.schemas.schema.describe('Positional Arg Placeholder'),\n}).describe('Positional Arg');\n\ntype RawInput = z.infer<typeof rawSchema>;\ntype Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: (value: unknown) => `The following positional argument is invalid: ${value}`,\n\tunknownErrMsg: 'Something went wrong parsing the positional argument',\n});\n\nexport type PositionalArg = z.infer<typeof generatedSchemas.schema>;\nexport type t = PositionalArg;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as PositionalArg),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,6BAA6B;AACzC,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE,OAAO;AAAA,EACjC,aAAqC,kCAAU,SAAS,4BAA4B;AAAA,EACpF,aAAa,EAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AAAA,EAC1E,cAAc,EAAE;AAAA,IACf,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;AAAA,IACpC,EAAE,aAAa,+BAA+B;AAAA,EAC/C,EAAE,SAAS;AAAA,EACX,MAAM,EAAE;AAAA,IACP,CAAC,EAAE,QAAQ,QAAQ,GAAG,EAAE,QAAQ,QAAQ,GAAG,EAAE,QAAQ,SAAS,CAAC;AAAA,IAC/D,EAAE,aAAa,0BAA0B;AAAA,EAC1C,EAAE,SAAS;AAAA,EACX,UAAU,EAAE,QAAQ,EAAE,SAAS;AAChC,CAAC,EAAE,SAAS,gBAAgB;AAE5B,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EACvC,aAAqC,gCAAQ,OAAO,SAAS,4BAA4B;AAC1F,CAAC,EAAE,SAAS,gBAAgB;AAKrB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa,CAAC,UAAmB,iDAAiD;AAAA,EAClF,eAAe;AAChB,CAAC;AAKM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA+B;AACjF;","names":["rawSchema","schemas"]}
|