@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,142 @@
|
|
|
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
|
+
// taqueria-protocol-types.ts
|
|
27
|
+
var taqueria_protocol_types_exports = {};
|
|
28
|
+
__export(taqueria_protocol_types_exports, {
|
|
29
|
+
Alias: () => Alias,
|
|
30
|
+
Config: () => Config,
|
|
31
|
+
EconomicalProtocolHash: () => EconomicalProtocolHash,
|
|
32
|
+
Environment: () => Environment,
|
|
33
|
+
EphemeralState: () => EphemeralState,
|
|
34
|
+
HumanReadableIdentifier: () => HumanReadableIdentifier,
|
|
35
|
+
InstalledPlugin: () => InstalledPlugin,
|
|
36
|
+
LoadedConfig: () => LoadedConfig,
|
|
37
|
+
MetadataConfig: () => MetadataConfig,
|
|
38
|
+
NetworkConfig: () => NetworkConfig,
|
|
39
|
+
Operation: () => Operation,
|
|
40
|
+
Option: () => Option,
|
|
41
|
+
ParsedOperation: () => ParsedOperation,
|
|
42
|
+
ParsedTemplate: () => ParsedTemplate,
|
|
43
|
+
PersistentState: () => PersistentState,
|
|
44
|
+
PluginActionName: () => PluginActionName,
|
|
45
|
+
PluginInfo: () => PluginInfo,
|
|
46
|
+
PluginJsonResponse: () => PluginJsonResponse,
|
|
47
|
+
PluginResponseEncoding: () => PluginResponseEncoding,
|
|
48
|
+
PluginSchema: () => PluginSchema,
|
|
49
|
+
PositionalArg: () => PositionalArg,
|
|
50
|
+
RequestArgs: () => RequestArgs,
|
|
51
|
+
SHA256: () => SHA256,
|
|
52
|
+
SandboxAccountConfig: () => SandboxAccountConfig,
|
|
53
|
+
SandboxConfig: () => SandboxConfig,
|
|
54
|
+
SanitizedAbsPath: () => SanitizedAbsPath,
|
|
55
|
+
SanitizedArgs: () => SanitizedArgs,
|
|
56
|
+
SanitizedPath: () => SanitizedPath,
|
|
57
|
+
ScaffoldConfig: () => ScaffoldConfig,
|
|
58
|
+
TaqError: () => TaqError,
|
|
59
|
+
Task: () => Task,
|
|
60
|
+
Template: () => Template,
|
|
61
|
+
Url: () => Url,
|
|
62
|
+
Verb: () => Verb,
|
|
63
|
+
VersionNumber: () => VersionNumber,
|
|
64
|
+
i18n: () => i18n
|
|
65
|
+
});
|
|
66
|
+
module.exports = __toCommonJS(taqueria_protocol_types_exports);
|
|
67
|
+
var Alias = __toESM(require("@taqueria/protocol/Alias"));
|
|
68
|
+
var Config = __toESM(require("@taqueria/protocol/Config"));
|
|
69
|
+
var EconomicalProtocolHash = __toESM(require("@taqueria/protocol/EconomicalProtocolHash"));
|
|
70
|
+
var Environment = __toESM(require("@taqueria/protocol/Environment"));
|
|
71
|
+
var EphemeralState = __toESM(require("@taqueria/protocol/EphemeralState"));
|
|
72
|
+
var HumanReadableIdentifier = __toESM(require("@taqueria/protocol/HumanReadableIdentifier"));
|
|
73
|
+
var i18n = __toESM(require("@taqueria/protocol/i18n"));
|
|
74
|
+
var InstalledPlugin = __toESM(require("@taqueria/protocol/InstalledPlugin"));
|
|
75
|
+
var LoadedConfig = __toESM(require("@taqueria/protocol/LoadedConfig"));
|
|
76
|
+
var MetadataConfig = __toESM(require("@taqueria/protocol/MetadataConfig"));
|
|
77
|
+
var NetworkConfig = __toESM(require("@taqueria/protocol/NetworkConfig"));
|
|
78
|
+
var Operation = __toESM(require("@taqueria/protocol/Operation"));
|
|
79
|
+
var Option = __toESM(require("@taqueria/protocol/Option"));
|
|
80
|
+
var ParsedOperation = __toESM(require("@taqueria/protocol/ParsedOperation"));
|
|
81
|
+
var ParsedTemplate = __toESM(require("@taqueria/protocol/ParsedTemplate"));
|
|
82
|
+
var PersistentState = __toESM(require("@taqueria/protocol/PersistentState"));
|
|
83
|
+
var PluginActionName = __toESM(require("@taqueria/protocol/PluginActionName"));
|
|
84
|
+
var PluginInfo = __toESM(require("@taqueria/protocol/PluginInfo"));
|
|
85
|
+
var PluginJsonResponse = __toESM(require("@taqueria/protocol/PluginJsonResponse"));
|
|
86
|
+
var PluginResponseEncoding = __toESM(require("@taqueria/protocol/PluginResponseEncoding"));
|
|
87
|
+
var PluginSchema = __toESM(require("@taqueria/protocol/PluginSchema"));
|
|
88
|
+
var PositionalArg = __toESM(require("@taqueria/protocol/PositionalArg"));
|
|
89
|
+
var RequestArgs = __toESM(require("@taqueria/protocol/RequestArgs"));
|
|
90
|
+
var SandboxAccountConfig = __toESM(require("@taqueria/protocol/SandboxAccountConfig"));
|
|
91
|
+
var SandboxConfig = __toESM(require("@taqueria/protocol/SandboxConfig"));
|
|
92
|
+
var SanitizedAbsPath = __toESM(require("@taqueria/protocol/SanitizedAbsPath"));
|
|
93
|
+
var SanitizedArgs = __toESM(require("@taqueria/protocol/SanitizedArgs"));
|
|
94
|
+
var SanitizedPath = __toESM(require("@taqueria/protocol/SanitizedPath"));
|
|
95
|
+
var ScaffoldConfig = __toESM(require("@taqueria/protocol/ScaffoldConfig"));
|
|
96
|
+
var SHA256 = __toESM(require("@taqueria/protocol/SHA256"));
|
|
97
|
+
var TaqError = __toESM(require("@taqueria/protocol/TaqError"));
|
|
98
|
+
var Task = __toESM(require("@taqueria/protocol/Task"));
|
|
99
|
+
var Template = __toESM(require("@taqueria/protocol/Template"));
|
|
100
|
+
var Url = __toESM(require("@taqueria/protocol/Url"));
|
|
101
|
+
var Verb = __toESM(require("@taqueria/protocol/Verb"));
|
|
102
|
+
var VersionNumber = __toESM(require("@taqueria/protocol/VersionNumber"));
|
|
103
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
104
|
+
0 && (module.exports = {
|
|
105
|
+
Alias,
|
|
106
|
+
Config,
|
|
107
|
+
EconomicalProtocolHash,
|
|
108
|
+
Environment,
|
|
109
|
+
EphemeralState,
|
|
110
|
+
HumanReadableIdentifier,
|
|
111
|
+
InstalledPlugin,
|
|
112
|
+
LoadedConfig,
|
|
113
|
+
MetadataConfig,
|
|
114
|
+
NetworkConfig,
|
|
115
|
+
Operation,
|
|
116
|
+
Option,
|
|
117
|
+
ParsedOperation,
|
|
118
|
+
ParsedTemplate,
|
|
119
|
+
PersistentState,
|
|
120
|
+
PluginActionName,
|
|
121
|
+
PluginInfo,
|
|
122
|
+
PluginJsonResponse,
|
|
123
|
+
PluginResponseEncoding,
|
|
124
|
+
PluginSchema,
|
|
125
|
+
PositionalArg,
|
|
126
|
+
RequestArgs,
|
|
127
|
+
SHA256,
|
|
128
|
+
SandboxAccountConfig,
|
|
129
|
+
SandboxConfig,
|
|
130
|
+
SanitizedAbsPath,
|
|
131
|
+
SanitizedArgs,
|
|
132
|
+
SanitizedPath,
|
|
133
|
+
ScaffoldConfig,
|
|
134
|
+
TaqError,
|
|
135
|
+
Task,
|
|
136
|
+
Template,
|
|
137
|
+
Url,
|
|
138
|
+
Verb,
|
|
139
|
+
VersionNumber,
|
|
140
|
+
i18n
|
|
141
|
+
});
|
|
142
|
+
//# sourceMappingURL=taqueria-protocol-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["taqueria-protocol-types.ts"],"sourcesContent":["export * as Alias from '@taqueria/protocol/Alias';\nexport * as Config from '@taqueria/protocol/Config';\nexport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nexport * as Environment from '@taqueria/protocol/Environment';\nexport * as EphemeralState from '@taqueria/protocol/EphemeralState';\nexport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nexport * as i18n from '@taqueria/protocol/i18n';\nexport * as InstalledPlugin from '@taqueria/protocol/InstalledPlugin';\nexport * as LoadedConfig from '@taqueria/protocol/LoadedConfig';\nexport * as MetadataConfig from '@taqueria/protocol/MetadataConfig';\nexport * as NetworkConfig from '@taqueria/protocol/NetworkConfig';\nexport * as Operation from '@taqueria/protocol/Operation';\nexport * as Option from '@taqueria/protocol/Option';\nexport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nexport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nexport * as PersistentState from '@taqueria/protocol/PersistentState';\nexport * as PluginActionName from '@taqueria/protocol/PluginActionName';\nexport * as PluginInfo from '@taqueria/protocol/PluginInfo';\nexport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nexport * as PluginResponseEncoding from '@taqueria/protocol/PluginResponseEncoding';\nexport * as PluginSchema from '@taqueria/protocol/PluginSchema';\nexport * as PositionalArg from '@taqueria/protocol/PositionalArg';\nexport * as RequestArgs from '@taqueria/protocol/RequestArgs';\nexport * as SandboxAccountConfig from '@taqueria/protocol/SandboxAccountConfig';\nexport * as SandboxConfig from '@taqueria/protocol/SandboxConfig';\nexport * as SanitizedAbsPath from '@taqueria/protocol/SanitizedAbsPath';\nexport * as SanitizedArgs from '@taqueria/protocol/SanitizedArgs';\nexport * as SanitizedPath from '@taqueria/protocol/SanitizedPath';\nexport * as ScaffoldConfig from '@taqueria/protocol/ScaffoldConfig';\nexport * as SHA256 from '@taqueria/protocol/SHA256';\nexport * as TaqError from '@taqueria/protocol/TaqError';\nexport * as Task from '@taqueria/protocol/Task';\nexport * as Template from '@taqueria/protocol/Template';\nexport * as Url from '@taqueria/protocol/Url';\nexport * as Verb from '@taqueria/protocol/Verb';\nexport * as VersionNumber from '@taqueria/protocol/VersionNumber';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,aAAwB;AACxB,6BAAwC;AACxC,kBAA6B;AAC7B,qBAAgC;AAChC,8BAAyC;AACzC,WAAsB;AACtB,sBAAiC;AACjC,mBAA8B;AAC9B,qBAAgC;AAChC,oBAA+B;AAC/B,gBAA2B;AAC3B,aAAwB;AACxB,sBAAiC;AACjC,qBAAgC;AAChC,sBAAiC;AACjC,uBAAkC;AAClC,iBAA4B;AAC5B,yBAAoC;AACpC,6BAAwC;AACxC,mBAA8B;AAC9B,oBAA+B;AAC/B,kBAA6B;AAC7B,2BAAsC;AACtC,oBAA+B;AAC/B,uBAAkC;AAClC,oBAA+B;AAC/B,oBAA+B;AAC/B,qBAAgC;AAChC,aAAwB;AACxB,eAA0B;AAC1B,WAAsB;AACtB,eAA0B;AAC1B,UAAqB;AACrB,WAAsB;AACtB,oBAA+B;","names":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// taqueria-protocol-types.ts
|
|
2
|
+
import * as Alias from "@taqueria/protocol/Alias";
|
|
3
|
+
import * as Config from "@taqueria/protocol/Config";
|
|
4
|
+
import * as EconomicalProtocolHash from "@taqueria/protocol/EconomicalProtocolHash";
|
|
5
|
+
import * as Environment from "@taqueria/protocol/Environment";
|
|
6
|
+
import * as EphemeralState from "@taqueria/protocol/EphemeralState";
|
|
7
|
+
import * as HumanReadableIdentifier from "@taqueria/protocol/HumanReadableIdentifier";
|
|
8
|
+
import * as i18n from "@taqueria/protocol/i18n";
|
|
9
|
+
import * as InstalledPlugin from "@taqueria/protocol/InstalledPlugin";
|
|
10
|
+
import * as LoadedConfig from "@taqueria/protocol/LoadedConfig";
|
|
11
|
+
import * as MetadataConfig from "@taqueria/protocol/MetadataConfig";
|
|
12
|
+
import * as NetworkConfig from "@taqueria/protocol/NetworkConfig";
|
|
13
|
+
import * as Operation from "@taqueria/protocol/Operation";
|
|
14
|
+
import * as Option from "@taqueria/protocol/Option";
|
|
15
|
+
import * as ParsedOperation from "@taqueria/protocol/ParsedOperation";
|
|
16
|
+
import * as ParsedTemplate from "@taqueria/protocol/ParsedTemplate";
|
|
17
|
+
import * as PersistentState from "@taqueria/protocol/PersistentState";
|
|
18
|
+
import * as PluginActionName from "@taqueria/protocol/PluginActionName";
|
|
19
|
+
import * as PluginInfo from "@taqueria/protocol/PluginInfo";
|
|
20
|
+
import * as PluginJsonResponse from "@taqueria/protocol/PluginJsonResponse";
|
|
21
|
+
import * as PluginResponseEncoding from "@taqueria/protocol/PluginResponseEncoding";
|
|
22
|
+
import * as PluginSchema from "@taqueria/protocol/PluginSchema";
|
|
23
|
+
import * as PositionalArg from "@taqueria/protocol/PositionalArg";
|
|
24
|
+
import * as RequestArgs from "@taqueria/protocol/RequestArgs";
|
|
25
|
+
import * as SandboxAccountConfig from "@taqueria/protocol/SandboxAccountConfig";
|
|
26
|
+
import * as SandboxConfig from "@taqueria/protocol/SandboxConfig";
|
|
27
|
+
import * as SanitizedAbsPath from "@taqueria/protocol/SanitizedAbsPath";
|
|
28
|
+
import * as SanitizedArgs from "@taqueria/protocol/SanitizedArgs";
|
|
29
|
+
import * as SanitizedPath from "@taqueria/protocol/SanitizedPath";
|
|
30
|
+
import * as ScaffoldConfig from "@taqueria/protocol/ScaffoldConfig";
|
|
31
|
+
import * as SHA256 from "@taqueria/protocol/SHA256";
|
|
32
|
+
import * as TaqError from "@taqueria/protocol/TaqError";
|
|
33
|
+
import * as Task from "@taqueria/protocol/Task";
|
|
34
|
+
import * as Template from "@taqueria/protocol/Template";
|
|
35
|
+
import * as Url from "@taqueria/protocol/Url";
|
|
36
|
+
import * as Verb from "@taqueria/protocol/Verb";
|
|
37
|
+
import * as VersionNumber from "@taqueria/protocol/VersionNumber";
|
|
38
|
+
export {
|
|
39
|
+
Alias,
|
|
40
|
+
Config,
|
|
41
|
+
EconomicalProtocolHash,
|
|
42
|
+
Environment,
|
|
43
|
+
EphemeralState,
|
|
44
|
+
HumanReadableIdentifier,
|
|
45
|
+
InstalledPlugin,
|
|
46
|
+
LoadedConfig,
|
|
47
|
+
MetadataConfig,
|
|
48
|
+
NetworkConfig,
|
|
49
|
+
Operation,
|
|
50
|
+
Option,
|
|
51
|
+
ParsedOperation,
|
|
52
|
+
ParsedTemplate,
|
|
53
|
+
PersistentState,
|
|
54
|
+
PluginActionName,
|
|
55
|
+
PluginInfo,
|
|
56
|
+
PluginJsonResponse,
|
|
57
|
+
PluginResponseEncoding,
|
|
58
|
+
PluginSchema,
|
|
59
|
+
PositionalArg,
|
|
60
|
+
RequestArgs,
|
|
61
|
+
SHA256,
|
|
62
|
+
SandboxAccountConfig,
|
|
63
|
+
SandboxConfig,
|
|
64
|
+
SanitizedAbsPath,
|
|
65
|
+
SanitizedArgs,
|
|
66
|
+
SanitizedPath,
|
|
67
|
+
ScaffoldConfig,
|
|
68
|
+
TaqError,
|
|
69
|
+
Task,
|
|
70
|
+
Template,
|
|
71
|
+
Url,
|
|
72
|
+
Verb,
|
|
73
|
+
VersionNumber,
|
|
74
|
+
i18n
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=taqueria-protocol-types.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["taqueria-protocol-types.ts"],"sourcesContent":["export * as Alias from '@taqueria/protocol/Alias';\nexport * as Config from '@taqueria/protocol/Config';\nexport * as EconomicalProtocolHash from '@taqueria/protocol/EconomicalProtocolHash';\nexport * as Environment from '@taqueria/protocol/Environment';\nexport * as EphemeralState from '@taqueria/protocol/EphemeralState';\nexport * as HumanReadableIdentifier from '@taqueria/protocol/HumanReadableIdentifier';\nexport * as i18n from '@taqueria/protocol/i18n';\nexport * as InstalledPlugin from '@taqueria/protocol/InstalledPlugin';\nexport * as LoadedConfig from '@taqueria/protocol/LoadedConfig';\nexport * as MetadataConfig from '@taqueria/protocol/MetadataConfig';\nexport * as NetworkConfig from '@taqueria/protocol/NetworkConfig';\nexport * as Operation from '@taqueria/protocol/Operation';\nexport * as Option from '@taqueria/protocol/Option';\nexport * as ParsedOperation from '@taqueria/protocol/ParsedOperation';\nexport * as ParsedTemplate from '@taqueria/protocol/ParsedTemplate';\nexport * as PersistentState from '@taqueria/protocol/PersistentState';\nexport * as PluginActionName from '@taqueria/protocol/PluginActionName';\nexport * as PluginInfo from '@taqueria/protocol/PluginInfo';\nexport * as PluginJsonResponse from '@taqueria/protocol/PluginJsonResponse';\nexport * as PluginResponseEncoding from '@taqueria/protocol/PluginResponseEncoding';\nexport * as PluginSchema from '@taqueria/protocol/PluginSchema';\nexport * as PositionalArg from '@taqueria/protocol/PositionalArg';\nexport * as RequestArgs from '@taqueria/protocol/RequestArgs';\nexport * as SandboxAccountConfig from '@taqueria/protocol/SandboxAccountConfig';\nexport * as SandboxConfig from '@taqueria/protocol/SandboxConfig';\nexport * as SanitizedAbsPath from '@taqueria/protocol/SanitizedAbsPath';\nexport * as SanitizedArgs from '@taqueria/protocol/SanitizedArgs';\nexport * as SanitizedPath from '@taqueria/protocol/SanitizedPath';\nexport * as ScaffoldConfig from '@taqueria/protocol/ScaffoldConfig';\nexport * as SHA256 from '@taqueria/protocol/SHA256';\nexport * as TaqError from '@taqueria/protocol/TaqError';\nexport * as Task from '@taqueria/protocol/Task';\nexport * as Template from '@taqueria/protocol/Template';\nexport * as Url from '@taqueria/protocol/Url';\nexport * as Verb from '@taqueria/protocol/Verb';\nexport * as VersionNumber from '@taqueria/protocol/VersionNumber';\n"],"mappings":";AAAA,YAAY,WAAW;AACvB,YAAY,YAAY;AACxB,YAAY,4BAA4B;AACxC,YAAY,iBAAiB;AAC7B,YAAY,oBAAoB;AAChC,YAAY,6BAA6B;AACzC,YAAY,UAAU;AACtB,YAAY,qBAAqB;AACjC,YAAY,kBAAkB;AAC9B,YAAY,oBAAoB;AAChC,YAAY,mBAAmB;AAC/B,YAAY,eAAe;AAC3B,YAAY,YAAY;AACxB,YAAY,qBAAqB;AACjC,YAAY,oBAAoB;AAChC,YAAY,qBAAqB;AACjC,YAAY,sBAAsB;AAClC,YAAY,gBAAgB;AAC5B,YAAY,wBAAwB;AACpC,YAAY,4BAA4B;AACxC,YAAY,kBAAkB;AAC9B,YAAY,mBAAmB;AAC/B,YAAY,iBAAiB;AAC7B,YAAY,0BAA0B;AACtC,YAAY,mBAAmB;AAC/B,YAAY,sBAAsB;AAClC,YAAY,mBAAmB;AAC/B,YAAY,mBAAmB;AAC/B,YAAY,oBAAoB;AAChC,YAAY,YAAY;AACxB,YAAY,cAAc;AAC1B,YAAY,UAAU;AACtB,YAAY,cAAc;AAC1B,YAAY,SAAS;AACrB,YAAY,UAAU;AACtB,YAAY,mBAAmB;","names":[]}
|
package/tzkt-config.d.ts
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rawSchema: z.ZodObject<{
|
|
3
|
+
disableAutostartWithSandbox: z.ZodDefault<z.ZodBoolean>;
|
|
4
|
+
postgresqlPort: z.ZodDefault<z.ZodNumber>;
|
|
5
|
+
apiPort: z.ZodDefault<z.ZodNumber>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
disableAutostartWithSandbox: boolean;
|
|
8
|
+
postgresqlPort: number;
|
|
9
|
+
apiPort: number;
|
|
10
|
+
}, {
|
|
11
|
+
disableAutostartWithSandbox?: boolean | undefined;
|
|
12
|
+
postgresqlPort?: number | undefined;
|
|
13
|
+
apiPort?: number | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const generatedSchemas: {
|
|
16
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
17
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
18
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
19
|
+
disableAutostartWithSandbox: boolean;
|
|
20
|
+
postgresqlPort: number;
|
|
21
|
+
apiPort: number;
|
|
22
|
+
} & {
|
|
23
|
+
readonly __kind: any;
|
|
24
|
+
}, any>;
|
|
25
|
+
}, factory: {
|
|
26
|
+
make: (input: {
|
|
27
|
+
disableAutostartWithSandbox: boolean;
|
|
28
|
+
postgresqlPort: number;
|
|
29
|
+
apiPort: number;
|
|
30
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
31
|
+
disableAutostartWithSandbox: boolean;
|
|
32
|
+
postgresqlPort: number;
|
|
33
|
+
apiPort: number;
|
|
34
|
+
} & {
|
|
35
|
+
readonly __kind: any;
|
|
36
|
+
}>;
|
|
37
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
38
|
+
disableAutostartWithSandbox: boolean;
|
|
39
|
+
postgresqlPort: number;
|
|
40
|
+
apiPort: number;
|
|
41
|
+
} & {
|
|
42
|
+
readonly __kind: any;
|
|
43
|
+
}>;
|
|
44
|
+
create: (input: {
|
|
45
|
+
disableAutostartWithSandbox: boolean;
|
|
46
|
+
postgresqlPort: number;
|
|
47
|
+
apiPort: number;
|
|
48
|
+
}) => {
|
|
49
|
+
disableAutostartWithSandbox: boolean;
|
|
50
|
+
postgresqlPort: number;
|
|
51
|
+
apiPort: number;
|
|
52
|
+
} & {
|
|
53
|
+
readonly __kind: any;
|
|
54
|
+
};
|
|
55
|
+
from: (input: unknown) => {
|
|
56
|
+
disableAutostartWithSandbox: boolean;
|
|
57
|
+
postgresqlPort: number;
|
|
58
|
+
apiPort: number;
|
|
59
|
+
} & {
|
|
60
|
+
readonly __kind: any;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare type TzKtConfig = z.infer<typeof generatedSchemas.schema>;
|
|
64
|
+
export declare type t = TzKtConfig;
|
|
65
|
+
export declare const create: (input: {
|
|
66
|
+
disableAutostartWithSandbox: boolean;
|
|
67
|
+
postgresqlPort: number;
|
|
68
|
+
apiPort: number;
|
|
69
|
+
}) => {
|
|
70
|
+
disableAutostartWithSandbox: boolean;
|
|
71
|
+
postgresqlPort: number;
|
|
72
|
+
apiPort: number;
|
|
73
|
+
} & {
|
|
74
|
+
readonly __kind: any;
|
|
75
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
76
|
+
disableAutostartWithSandbox: boolean;
|
|
77
|
+
postgresqlPort: number;
|
|
78
|
+
apiPort: number;
|
|
79
|
+
} & {
|
|
80
|
+
readonly __kind: any;
|
|
81
|
+
}>, make: (input: {
|
|
82
|
+
disableAutostartWithSandbox: boolean;
|
|
83
|
+
postgresqlPort: number;
|
|
84
|
+
apiPort: number;
|
|
85
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
86
|
+
disableAutostartWithSandbox: boolean;
|
|
87
|
+
postgresqlPort: number;
|
|
88
|
+
apiPort: number;
|
|
89
|
+
} & {
|
|
90
|
+
readonly __kind: any;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const schemas: {
|
|
93
|
+
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
94
|
+
disableAutostartWithSandbox: boolean;
|
|
95
|
+
postgresqlPort: number;
|
|
96
|
+
apiPort: number;
|
|
97
|
+
} & {
|
|
98
|
+
readonly __kind: any;
|
|
99
|
+
}, any>, {
|
|
100
|
+
disableAutostartWithSandbox: boolean;
|
|
101
|
+
postgresqlPort: number;
|
|
102
|
+
apiPort: number;
|
|
103
|
+
} & {
|
|
104
|
+
readonly __kind: any;
|
|
105
|
+
}, any>;
|
|
106
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
107
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=tzkt-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tzkt-config.d.ts","sourceRoot":"","sources":["tzkt-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;EAIpB,CAAC;AAIH,eAAO,MAAiB,gBAAgB;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/C,CAAC;AAEH,oBAAY,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEjE,oBAAY,CAAC,GAAG,UAAU,CAAC;AAE3B,eAAO,MAAQ,MAAM;;;;;;;;;;GAAE,EAAE;;;;;;IAAE,IAAI;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/tzkt-config.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
// tzkt-config.ts
|
|
27
|
+
var tzkt_config_exports = {};
|
|
28
|
+
__export(tzkt_config_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
generatedSchemas: () => generatedSchemas,
|
|
32
|
+
make: () => make,
|
|
33
|
+
of: () => of,
|
|
34
|
+
rawSchema: () => rawSchema,
|
|
35
|
+
schemas: () => schemas
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(tzkt_config_exports);
|
|
38
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
39
|
+
var import_zod = require("zod");
|
|
40
|
+
var rawSchema = import_zod.z.object({
|
|
41
|
+
disableAutostartWithSandbox: import_zod.z.boolean({ description: "Do not start TzKt when sandbox starts" }).default(false),
|
|
42
|
+
postgresqlPort: import_zod.z.number({ description: "Port number for postgresql container" }).default(5432),
|
|
43
|
+
apiPort: import_zod.z.number({ description: "Port number for TzKt API" }).default(5e3)
|
|
44
|
+
});
|
|
45
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
46
|
+
rawSchema,
|
|
47
|
+
parseErrMsg: (value) => `${value} is not a valid TzKt configuration `,
|
|
48
|
+
unknownErrMsg: "Something went wrong trying to parse the TzKt configuration"
|
|
49
|
+
});
|
|
50
|
+
var { create, of, make } = factory;
|
|
51
|
+
var schemas = {
|
|
52
|
+
...generatedSchemas,
|
|
53
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
54
|
+
};
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
create,
|
|
58
|
+
factory,
|
|
59
|
+
generatedSchemas,
|
|
60
|
+
make,
|
|
61
|
+
of,
|
|
62
|
+
rawSchema,
|
|
63
|
+
schemas
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=tzkt-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tzkt-config.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdisableAutostartWithSandbox: z.boolean({ description: 'Do not start TzKt when sandbox starts' }).default(false),\n\tpostgresqlPort: z.number({ description: 'Port number for postgresql container' }).default(5432),\n\tapiPort: z.number({ description: 'Port number for TzKt API' }).default(5000),\n});\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid TzKt configuration `,\n\tunknownErrMsg: 'Something went wrong trying to parse the TzKt configuration',\n});\n\nexport type TzKtConfig = z.infer<typeof generatedSchemas.schema>;\n\nexport type t = TzKtConfig;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as TzKtConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aAAE,OAAO;AAAA,EACjC,6BAA6B,aAAE,QAAQ,EAAE,aAAa,wCAAwC,CAAC,EAAE,QAAQ,KAAK;AAAA,EAC9G,gBAAgB,aAAE,OAAO,EAAE,aAAa,uCAAuC,CAAC,EAAE,QAAQ,IAAI;AAAA,EAC9F,SAAS,aAAE,OAAO,EAAE,aAAa,2BAA2B,CAAC,EAAE,QAAQ,GAAI;AAC5E,CAAC;AAIM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAA,SAAyB;AAAA,EAC9E;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAiB;AACnE;","names":["createType"]}
|
package/tzkt-config.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// tzkt-config.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
var rawSchema = z.object({
|
|
5
|
+
disableAutostartWithSandbox: z.boolean({ description: "Do not start TzKt when sandbox starts" }).default(false),
|
|
6
|
+
postgresqlPort: z.number({ description: "Port number for postgresql container" }).default(5432),
|
|
7
|
+
apiPort: z.number({ description: "Port number for TzKt API" }).default(5e3)
|
|
8
|
+
});
|
|
9
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
10
|
+
rawSchema,
|
|
11
|
+
parseErrMsg: (value) => `${value} is not a valid TzKt configuration `,
|
|
12
|
+
unknownErrMsg: "Something went wrong trying to parse the TzKt configuration"
|
|
13
|
+
});
|
|
14
|
+
var { create, of, make } = factory;
|
|
15
|
+
var schemas = {
|
|
16
|
+
...generatedSchemas,
|
|
17
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
create,
|
|
21
|
+
factory,
|
|
22
|
+
generatedSchemas,
|
|
23
|
+
make,
|
|
24
|
+
of,
|
|
25
|
+
rawSchema,
|
|
26
|
+
schemas
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=tzkt-config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["tzkt-config.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object({\n\tdisableAutostartWithSandbox: z.boolean({ description: 'Do not start TzKt when sandbox starts' }).default(false),\n\tpostgresqlPort: z.number({ description: 'Port number for postgresql container' }).default(5432),\n\tapiPort: z.number({ description: 'Port number for TzKt API' }).default(5000),\n});\n\ntype Input = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<Input, Input>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid TzKt configuration `,\n\tunknownErrMsg: 'Something went wrong trying to parse the TzKt configuration',\n});\n\nexport type TzKtConfig = z.infer<typeof generatedSchemas.schema>;\n\nexport type t = TzKtConfig;\n\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as TzKtConfig),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EAAE,OAAO;AAAA,EACjC,6BAA6B,EAAE,QAAQ,EAAE,aAAa,wCAAwC,CAAC,EAAE,QAAQ,KAAK;AAAA,EAC9G,gBAAgB,EAAE,OAAO,EAAE,aAAa,uCAAuC,CAAC,EAAE,QAAQ,IAAI;AAAA,EAC9F,SAAS,EAAE,OAAO,EAAE,aAAa,2BAA2B,CAAC,EAAE,QAAQ,GAAI;AAC5E,CAAC;AAIM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAAyB;AAAA,EAC9E;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAMM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAiB;AACnE;","names":[]}
|
package/Alias.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import createType from '@taqueria/protocol/Base';
|
|
2
|
-
import * as SingleChar from '@taqueria/protocol/SingleChar';
|
|
3
|
-
import * as Verb from '@taqueria/protocol/Verb';
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
|
|
6
|
-
export const rawSchema = z
|
|
7
|
-
.union([
|
|
8
|
-
Verb.rawSchema,
|
|
9
|
-
SingleChar.rawSchema,
|
|
10
|
-
], { description: 'Alias' });
|
|
11
|
-
|
|
12
|
-
export const internalSchema = z
|
|
13
|
-
.union([
|
|
14
|
-
Verb.schemas.schema,
|
|
15
|
-
SingleChar.schemas.schema,
|
|
16
|
-
], { description: 'Alias' });
|
|
17
|
-
|
|
18
|
-
type RawInput = z.infer<typeof rawSchema>;
|
|
19
|
-
type Input = z.infer<typeof internalSchema>;
|
|
20
|
-
|
|
21
|
-
const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({
|
|
22
|
-
isStringLike: true,
|
|
23
|
-
rawSchema,
|
|
24
|
-
internalSchema,
|
|
25
|
-
parseErrMsg: (value: unknown) => `${value} is not a valid alias`,
|
|
26
|
-
unknownErrMsg: 'Something went wrong trying to parse an alias',
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export type Alias = z.infer<typeof internalSchema>;
|
|
30
|
-
|
|
31
|
-
export type t = Alias;
|
|
32
|
-
|
|
33
|
-
export const { create, of, make } = factory;
|
|
34
|
-
|
|
35
|
-
export const schemas = {
|
|
36
|
-
...generatedSchemas,
|
|
37
|
-
schema: generatedSchemas.schema.transform(val => val as Alias),
|
|
38
|
-
};
|
package/Base.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { toFutureParseErr, toFutureParseUnknownErr } from '@taqueria/protocol/TaqError';
|
|
2
|
-
import { FutureInstance, resolve } from 'fluture';
|
|
3
|
-
import { z, ZodError, ZodSchema } from 'zod';
|
|
4
|
-
|
|
5
|
-
type Future<L, R> = FutureInstance<L, R>;
|
|
6
|
-
|
|
7
|
-
type ErrMsg = string | ((value: unknown) => string);
|
|
8
|
-
|
|
9
|
-
interface CreateSchemaParams {
|
|
10
|
-
rawSchema: ZodSchema;
|
|
11
|
-
internalSchema?: ZodSchema;
|
|
12
|
-
transformer?: (value: unknown) => unknown;
|
|
13
|
-
isStringLike?: boolean;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface CreateTypeParams extends CreateSchemaParams {
|
|
17
|
-
parseErrMsg: ErrMsg;
|
|
18
|
-
unknownErrMsg: ErrMsg;
|
|
19
|
-
}
|
|
20
|
-
export type Flatten<T> = { [k in keyof T]: T[k] };
|
|
21
|
-
|
|
22
|
-
export const createSchema = <I>(params: CreateSchemaParams) => {
|
|
23
|
-
const { rawSchema, isStringLike } = params;
|
|
24
|
-
const internalSchema = params.internalSchema ?? params.rawSchema;
|
|
25
|
-
const noop = (val: unknown) => val;
|
|
26
|
-
const transformer = params.transformer ?? noop;
|
|
27
|
-
|
|
28
|
-
const schema = isStringLike
|
|
29
|
-
? internalSchema
|
|
30
|
-
.transform((val: unknown) =>
|
|
31
|
-
transformer(val) as I & {
|
|
32
|
-
readonly __kind: 'generated' & z.infer<typeof internalSchema>;
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
: internalSchema
|
|
36
|
-
.transform((val: unknown) =>
|
|
37
|
-
transformer(val) as Flatten<
|
|
38
|
-
I & {
|
|
39
|
-
readonly __kind: 'generated' & z.infer<typeof internalSchema>;
|
|
40
|
-
}
|
|
41
|
-
>
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
type GeneratedSchema = typeof schema;
|
|
45
|
-
|
|
46
|
-
return {
|
|
47
|
-
rawSchema,
|
|
48
|
-
internalSchema,
|
|
49
|
-
schema,
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
// TODO:
|
|
54
|
-
// TypeScript appears to have a bug with default generic values
|
|
55
|
-
// For instance, I'd like to use this:
|
|
56
|
-
// export const createType = <R, I = R>(params: CreateTypeParams) => {
|
|
57
|
-
//
|
|
58
|
-
// However, I == unknown when having I default to R if no I was given.
|
|
59
|
-
// So, we need to require R and I explicitly
|
|
60
|
-
export const createType = <R, I>(params: CreateTypeParams) => {
|
|
61
|
-
const schemas = createSchema<I>(params);
|
|
62
|
-
const { parseErrMsg, unknownErrMsg } = params;
|
|
63
|
-
|
|
64
|
-
type T = z.infer<typeof schemas.schema>;
|
|
65
|
-
|
|
66
|
-
const internalOf = (input: unknown) => {
|
|
67
|
-
try {
|
|
68
|
-
return resolve<T>(schemas.schema.parse(input));
|
|
69
|
-
} catch (previous) {
|
|
70
|
-
const parseMsg = typeof parseErrMsg === 'string'
|
|
71
|
-
? parseErrMsg
|
|
72
|
-
: parseErrMsg(input);
|
|
73
|
-
|
|
74
|
-
const unknownMsg = typeof unknownErrMsg === 'string'
|
|
75
|
-
? unknownErrMsg
|
|
76
|
-
: unknownErrMsg(input);
|
|
77
|
-
|
|
78
|
-
if (previous instanceof ZodError) {
|
|
79
|
-
return toFutureParseErr<T>(previous, parseMsg, input);
|
|
80
|
-
}
|
|
81
|
-
return toFutureParseUnknownErr<T>(previous, unknownMsg, input);
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
const of = internalOf;
|
|
85
|
-
|
|
86
|
-
const make = (input: I) => internalOf(input);
|
|
87
|
-
|
|
88
|
-
const create = (input: R | I) => schemas.schema.parse(input) as T;
|
|
89
|
-
|
|
90
|
-
const from = (input: unknown) => schemas.schema.parse(input) as T;
|
|
91
|
-
|
|
92
|
-
const factory = {
|
|
93
|
-
make,
|
|
94
|
-
of,
|
|
95
|
-
create,
|
|
96
|
-
from,
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
return {
|
|
100
|
-
schemas,
|
|
101
|
-
factory,
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export default createType;
|
package/Command.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import createType from '@taqueria/protocol/Base';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export const rawSchema = z
|
|
5
|
-
.string({ description: 'Command' })
|
|
6
|
-
.min(1)
|
|
7
|
-
.regex(/^([A-Za-z-_ ]+ ?)((\[.+\] ?)|(\<.+\>) ?)*$/, 'Must be a command that can be interpreted using yargs');
|
|
8
|
-
|
|
9
|
-
type RawInput = z.infer<typeof rawSchema>;
|
|
10
|
-
|
|
11
|
-
const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({
|
|
12
|
-
isStringLike: true,
|
|
13
|
-
rawSchema,
|
|
14
|
-
parseErrMsg: (value: unknown) => `${value} is an invalid command. Expected format is: taskName [optional] <required>`,
|
|
15
|
-
unknownErrMsg: 'Something went wrong when parsing the command',
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export const internalSchema = generatedSchemas.schema;
|
|
19
|
-
|
|
20
|
-
export type Command = z.infer<typeof internalSchema>;
|
|
21
|
-
export type t = Command;
|
|
22
|
-
export const { create, make, of } = factory;
|
|
23
|
-
export const schemas = {
|
|
24
|
-
...generatedSchemas,
|
|
25
|
-
schema: generatedSchemas.schema.transform(val => val as Command),
|
|
26
|
-
};
|