@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
package/Provisioner.d.ts
ADDED
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rawSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
5
|
+
operation: z.ZodUnion<[z.ZodString, z.ZodLiteral<"custom">]>;
|
|
6
|
+
command: z.ZodOptional<z.ZodString>;
|
|
7
|
+
label: z.ZodOptional<z.ZodString>;
|
|
8
|
+
depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
+
}, "passthrough", z.ZodTypeAny, {
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
plugin?: string | undefined;
|
|
12
|
+
command?: string | undefined;
|
|
13
|
+
depends_on?: string[] | undefined;
|
|
14
|
+
operation: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}, {
|
|
17
|
+
label?: string | undefined;
|
|
18
|
+
plugin?: string | undefined;
|
|
19
|
+
command?: string | undefined;
|
|
20
|
+
depends_on?: string[] | undefined;
|
|
21
|
+
operation: string;
|
|
22
|
+
id: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const internalSchema: z.ZodObject<z.extendShape<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
27
|
+
operation: z.ZodUnion<[z.ZodString, z.ZodLiteral<"custom">]>;
|
|
28
|
+
command: z.ZodOptional<z.ZodString>;
|
|
29
|
+
label: z.ZodOptional<z.ZodString>;
|
|
30
|
+
depends_on: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, {
|
|
32
|
+
id: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
33
|
+
readonly __kind: any;
|
|
34
|
+
}, any>, string & {
|
|
35
|
+
readonly __kind: any;
|
|
36
|
+
}, any>;
|
|
37
|
+
depends_on: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
38
|
+
readonly __kind: any;
|
|
39
|
+
}, any>, string & {
|
|
40
|
+
readonly __kind: any;
|
|
41
|
+
}, any>, "many">>;
|
|
42
|
+
}>, "passthrough", z.ZodTypeAny, {
|
|
43
|
+
label?: string | undefined;
|
|
44
|
+
plugin?: string | undefined;
|
|
45
|
+
command?: string | undefined;
|
|
46
|
+
depends_on?: (string & {
|
|
47
|
+
readonly __kind: any;
|
|
48
|
+
})[] | undefined;
|
|
49
|
+
operation: string;
|
|
50
|
+
id: string & {
|
|
51
|
+
readonly __kind: any;
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
label?: string | undefined;
|
|
55
|
+
plugin?: string | undefined;
|
|
56
|
+
command?: string | undefined;
|
|
57
|
+
id?: any;
|
|
58
|
+
depends_on?: any[] | undefined;
|
|
59
|
+
operation: string;
|
|
60
|
+
}>;
|
|
61
|
+
export declare type RawInput = z.infer<typeof rawSchema>;
|
|
62
|
+
export declare type Input = z.infer<typeof internalSchema>;
|
|
63
|
+
export declare const generatedSchemas: {
|
|
64
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
65
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
66
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
67
|
+
label?: string | undefined;
|
|
68
|
+
plugin?: string | undefined;
|
|
69
|
+
command?: string | undefined;
|
|
70
|
+
depends_on?: (string & {
|
|
71
|
+
readonly __kind: any;
|
|
72
|
+
})[] | undefined;
|
|
73
|
+
operation: string;
|
|
74
|
+
id: string & {
|
|
75
|
+
readonly __kind: any;
|
|
76
|
+
};
|
|
77
|
+
} & {
|
|
78
|
+
readonly __kind: any;
|
|
79
|
+
}, any>;
|
|
80
|
+
}, factory: {
|
|
81
|
+
make: (input: {
|
|
82
|
+
label?: string | undefined;
|
|
83
|
+
plugin?: string | undefined;
|
|
84
|
+
command?: string | undefined;
|
|
85
|
+
depends_on?: (string & {
|
|
86
|
+
readonly __kind: any;
|
|
87
|
+
})[] | undefined;
|
|
88
|
+
operation: string;
|
|
89
|
+
id: string & {
|
|
90
|
+
readonly __kind: any;
|
|
91
|
+
};
|
|
92
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
93
|
+
label?: string | undefined;
|
|
94
|
+
plugin?: string | undefined;
|
|
95
|
+
command?: string | undefined;
|
|
96
|
+
depends_on?: (string & {
|
|
97
|
+
readonly __kind: any;
|
|
98
|
+
})[] | undefined;
|
|
99
|
+
operation: string;
|
|
100
|
+
id: string & {
|
|
101
|
+
readonly __kind: any;
|
|
102
|
+
};
|
|
103
|
+
} & {
|
|
104
|
+
readonly __kind: any;
|
|
105
|
+
}>;
|
|
106
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
107
|
+
label?: string | undefined;
|
|
108
|
+
plugin?: string | undefined;
|
|
109
|
+
command?: string | undefined;
|
|
110
|
+
depends_on?: (string & {
|
|
111
|
+
readonly __kind: any;
|
|
112
|
+
})[] | undefined;
|
|
113
|
+
operation: string;
|
|
114
|
+
id: string & {
|
|
115
|
+
readonly __kind: any;
|
|
116
|
+
};
|
|
117
|
+
} & {
|
|
118
|
+
readonly __kind: any;
|
|
119
|
+
}>;
|
|
120
|
+
create: (input: {
|
|
121
|
+
label?: string | undefined;
|
|
122
|
+
plugin?: string | undefined;
|
|
123
|
+
command?: string | undefined;
|
|
124
|
+
depends_on?: string[] | undefined;
|
|
125
|
+
operation: string;
|
|
126
|
+
id: string;
|
|
127
|
+
} | {
|
|
128
|
+
label?: string | undefined;
|
|
129
|
+
plugin?: string | undefined;
|
|
130
|
+
command?: string | undefined;
|
|
131
|
+
depends_on?: (string & {
|
|
132
|
+
readonly __kind: any;
|
|
133
|
+
})[] | undefined;
|
|
134
|
+
operation: string;
|
|
135
|
+
id: string & {
|
|
136
|
+
readonly __kind: any;
|
|
137
|
+
};
|
|
138
|
+
}) => {
|
|
139
|
+
label?: string | undefined;
|
|
140
|
+
plugin?: string | undefined;
|
|
141
|
+
command?: string | undefined;
|
|
142
|
+
depends_on?: (string & {
|
|
143
|
+
readonly __kind: any;
|
|
144
|
+
})[] | undefined;
|
|
145
|
+
operation: string;
|
|
146
|
+
id: string & {
|
|
147
|
+
readonly __kind: any;
|
|
148
|
+
};
|
|
149
|
+
} & {
|
|
150
|
+
readonly __kind: any;
|
|
151
|
+
};
|
|
152
|
+
from: (input: unknown) => {
|
|
153
|
+
label?: string | undefined;
|
|
154
|
+
plugin?: string | undefined;
|
|
155
|
+
command?: string | undefined;
|
|
156
|
+
depends_on?: (string & {
|
|
157
|
+
readonly __kind: any;
|
|
158
|
+
})[] | undefined;
|
|
159
|
+
operation: string;
|
|
160
|
+
id: string & {
|
|
161
|
+
readonly __kind: any;
|
|
162
|
+
};
|
|
163
|
+
} & {
|
|
164
|
+
readonly __kind: any;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare type Provisioner = z.infer<typeof generatedSchemas.schema>;
|
|
168
|
+
export declare type t = Provisioner;
|
|
169
|
+
export declare const create: (input: {
|
|
170
|
+
label?: string | undefined;
|
|
171
|
+
plugin?: string | undefined;
|
|
172
|
+
command?: string | undefined;
|
|
173
|
+
depends_on?: string[] | undefined;
|
|
174
|
+
operation: string;
|
|
175
|
+
id: string;
|
|
176
|
+
} | {
|
|
177
|
+
label?: string | undefined;
|
|
178
|
+
plugin?: string | undefined;
|
|
179
|
+
command?: string | undefined;
|
|
180
|
+
depends_on?: (string & {
|
|
181
|
+
readonly __kind: any;
|
|
182
|
+
})[] | undefined;
|
|
183
|
+
operation: string;
|
|
184
|
+
id: string & {
|
|
185
|
+
readonly __kind: any;
|
|
186
|
+
};
|
|
187
|
+
}) => {
|
|
188
|
+
label?: string | undefined;
|
|
189
|
+
plugin?: string | undefined;
|
|
190
|
+
command?: string | undefined;
|
|
191
|
+
depends_on?: (string & {
|
|
192
|
+
readonly __kind: any;
|
|
193
|
+
})[] | undefined;
|
|
194
|
+
operation: string;
|
|
195
|
+
id: string & {
|
|
196
|
+
readonly __kind: any;
|
|
197
|
+
};
|
|
198
|
+
} & {
|
|
199
|
+
readonly __kind: any;
|
|
200
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
201
|
+
label?: string | undefined;
|
|
202
|
+
plugin?: string | undefined;
|
|
203
|
+
command?: string | undefined;
|
|
204
|
+
depends_on?: (string & {
|
|
205
|
+
readonly __kind: any;
|
|
206
|
+
})[] | undefined;
|
|
207
|
+
operation: string;
|
|
208
|
+
id: string & {
|
|
209
|
+
readonly __kind: any;
|
|
210
|
+
};
|
|
211
|
+
} & {
|
|
212
|
+
readonly __kind: any;
|
|
213
|
+
}>, make: (input: {
|
|
214
|
+
label?: string | undefined;
|
|
215
|
+
plugin?: string | undefined;
|
|
216
|
+
command?: string | undefined;
|
|
217
|
+
depends_on?: (string & {
|
|
218
|
+
readonly __kind: any;
|
|
219
|
+
})[] | undefined;
|
|
220
|
+
operation: string;
|
|
221
|
+
id: string & {
|
|
222
|
+
readonly __kind: any;
|
|
223
|
+
};
|
|
224
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
225
|
+
label?: string | undefined;
|
|
226
|
+
plugin?: string | undefined;
|
|
227
|
+
command?: string | undefined;
|
|
228
|
+
depends_on?: (string & {
|
|
229
|
+
readonly __kind: any;
|
|
230
|
+
})[] | undefined;
|
|
231
|
+
operation: string;
|
|
232
|
+
id: string & {
|
|
233
|
+
readonly __kind: any;
|
|
234
|
+
};
|
|
235
|
+
} & {
|
|
236
|
+
readonly __kind: any;
|
|
237
|
+
}>;
|
|
238
|
+
export declare const schemas: {
|
|
239
|
+
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
240
|
+
label?: string | undefined;
|
|
241
|
+
plugin?: string | undefined;
|
|
242
|
+
command?: string | undefined;
|
|
243
|
+
depends_on?: (string & {
|
|
244
|
+
readonly __kind: any;
|
|
245
|
+
})[] | undefined;
|
|
246
|
+
operation: string;
|
|
247
|
+
id: string & {
|
|
248
|
+
readonly __kind: any;
|
|
249
|
+
};
|
|
250
|
+
} & {
|
|
251
|
+
readonly __kind: any;
|
|
252
|
+
}, any>, {
|
|
253
|
+
label?: string | undefined;
|
|
254
|
+
plugin?: string | undefined;
|
|
255
|
+
command?: string | undefined;
|
|
256
|
+
depends_on?: (string & {
|
|
257
|
+
readonly __kind: any;
|
|
258
|
+
})[] | undefined;
|
|
259
|
+
operation: string;
|
|
260
|
+
id: string & {
|
|
261
|
+
readonly __kind: any;
|
|
262
|
+
};
|
|
263
|
+
} & {
|
|
264
|
+
readonly __kind: any;
|
|
265
|
+
}, any>;
|
|
266
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
267
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
268
|
+
};
|
|
269
|
+
//# sourceMappingURL=Provisioner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provisioner.d.ts","sourceRoot":"","sources":["Provisioner.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;EAgCP,CAAC;AAEhB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAC;AAEH,oBAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AACjD,oBAAY,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEnD,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAClE,oBAAY,CAAC,GAAG,WAAW,CAAC;AAC5B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/Provisioner.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
// Provisioner.ts
|
|
27
|
+
var Provisioner_exports = {};
|
|
28
|
+
__export(Provisioner_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
generatedSchemas: () => generatedSchemas,
|
|
32
|
+
internalSchema: () => internalSchema,
|
|
33
|
+
make: () => make,
|
|
34
|
+
of: () => of,
|
|
35
|
+
rawSchema: () => rawSchema2,
|
|
36
|
+
schemas: () => schemas2
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(Provisioner_exports);
|
|
39
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
40
|
+
var ProvisionerID = __toESM(require("@taqueria/protocol/ProvisionerID"));
|
|
41
|
+
var import_zod = require("zod");
|
|
42
|
+
var rawSchema2 = import_zod.z.object(
|
|
43
|
+
{
|
|
44
|
+
id: ProvisionerID.rawSchema,
|
|
45
|
+
plugin: import_zod.z.string().min(1).describe("Provisioner Plugin").optional(),
|
|
46
|
+
operation: import_zod.z.union([
|
|
47
|
+
import_zod.z.string().min(1),
|
|
48
|
+
import_zod.z.literal("custom")
|
|
49
|
+
]).describe("Provisioner Operation"),
|
|
50
|
+
command: import_zod.z.string().describe("Provisioner Custom Command").optional(),
|
|
51
|
+
label: import_zod.z.string().describe("Provisioner Label").optional(),
|
|
52
|
+
depends_on: import_zod.z.array(
|
|
53
|
+
ProvisionerID.rawSchema
|
|
54
|
+
).optional()
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
description: "Provisioner"
|
|
58
|
+
}
|
|
59
|
+
).passthrough();
|
|
60
|
+
var internalSchema = rawSchema2.extend({
|
|
61
|
+
id: ProvisionerID.schemas.schema,
|
|
62
|
+
depends_on: import_zod.z.array(ProvisionerID.schemas.schema).optional()
|
|
63
|
+
});
|
|
64
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
65
|
+
rawSchema: rawSchema2,
|
|
66
|
+
internalSchema,
|
|
67
|
+
parseErrMsg: "There was a problem trying to parse the provisioner",
|
|
68
|
+
unknownErrMsg: "Something went wrong trying to parse the provisioner"
|
|
69
|
+
});
|
|
70
|
+
var { create, of, make } = factory;
|
|
71
|
+
var schemas2 = {
|
|
72
|
+
...generatedSchemas,
|
|
73
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
74
|
+
};
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
create,
|
|
78
|
+
factory,
|
|
79
|
+
generatedSchemas,
|
|
80
|
+
internalSchema,
|
|
81
|
+
make,
|
|
82
|
+
of,
|
|
83
|
+
rawSchema,
|
|
84
|
+
schemas
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=Provisioner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Provisioner.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as ProvisionerID from '@taqueria/protocol/ProvisionerID';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object(\n\t{\n\t\tid: ProvisionerID.rawSchema,\n\t\tplugin: z\n\t\t\t.string()\n\t\t\t.min(1)\n\t\t\t.describe('Provisioner Plugin')\n\t\t\t.optional(),\n\t\toperation: z\n\t\t\t.union([\n\t\t\t\tz.string().min(1),\n\t\t\t\tz.literal('custom'),\n\t\t\t])\n\t\t\t.describe('Provisioner Operation'),\n\t\tcommand: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Custom Command')\n\t\t\t.optional(),\n\t\tlabel: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Label')\n\t\t\t.optional(),\n\t\tdepends_on: z\n\t\t\t.array(\n\t\t\t\tProvisionerID.rawSchema,\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\t{\n\t\tdescription: 'Provisioner',\n\t},\n)\n\t.passthrough();\n\nexport const internalSchema = rawSchema.extend({\n\tid: ProvisionerID.schemas.schema,\n\tdepends_on: z.array(ProvisionerID.schemas.schema).optional(),\n});\n\nexport type RawInput = z.infer<typeof rawSchema>;\nexport type Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'There was a problem trying to parse the provisioner',\n\tunknownErrMsg: 'Something went wrong trying to parse the provisioner',\n});\n\nexport type Provisioner = z.infer<typeof generatedSchemas.schema>;\nexport type t = Provisioner;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as Provisioner),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAAA;AAAA,EAAA,eAAAC;AAAA;AAAA;AAAA,kBAAuB;AACvB,oBAA+B;AAC/B,iBAAkB;AAEX,IAAMD,aAAY,aAAE;AAAA,EAC1B;AAAA,IACC,IAAkB;AAAA,IAClB,QAAQ,aACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,oBAAoB,EAC7B,SAAS;AAAA,IACX,WAAW,aACT,MAAM;AAAA,MACN,aAAE,OAAO,EAAE,IAAI,CAAC;AAAA,MAChB,aAAE,QAAQ,QAAQ;AAAA,IACnB,CAAC,EACA,SAAS,uBAAuB;AAAA,IAClC,SAAS,aACP,OAAO,EACP,SAAS,4BAA4B,EACrC,SAAS;AAAA,IACX,OAAO,aACL,OAAO,EACP,SAAS,mBAAmB,EAC5B,SAAS;AAAA,IACX,YAAY,aACV;AAAA,MACc;AAAA,IACf,EACC,SAAS;AAAA,EACZ;AAAA,EACA;AAAA,IACC,aAAa;AAAA,EACd;AACD,EACE,YAAY;AAEP,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,IAAkB,sBAAQ;AAAA,EAC1B,YAAY,aAAE,MAAoB,sBAAQ,MAAM,EAAE,SAAS;AAC5D,CAAC;AAKM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAE,SAA4B;AAAA,EACjF,WAAAF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA6B;AAC/E;","names":["rawSchema","schemas","createType"]}
|
package/Provisioner.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Provisioner.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import * as ProvisionerID from "@taqueria/protocol/ProvisionerID";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var rawSchema2 = z.object(
|
|
6
|
+
{
|
|
7
|
+
id: ProvisionerID.rawSchema,
|
|
8
|
+
plugin: z.string().min(1).describe("Provisioner Plugin").optional(),
|
|
9
|
+
operation: z.union([
|
|
10
|
+
z.string().min(1),
|
|
11
|
+
z.literal("custom")
|
|
12
|
+
]).describe("Provisioner Operation"),
|
|
13
|
+
command: z.string().describe("Provisioner Custom Command").optional(),
|
|
14
|
+
label: z.string().describe("Provisioner Label").optional(),
|
|
15
|
+
depends_on: z.array(
|
|
16
|
+
ProvisionerID.rawSchema
|
|
17
|
+
).optional()
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
description: "Provisioner"
|
|
21
|
+
}
|
|
22
|
+
).passthrough();
|
|
23
|
+
var internalSchema = rawSchema2.extend({
|
|
24
|
+
id: ProvisionerID.schemas.schema,
|
|
25
|
+
depends_on: z.array(ProvisionerID.schemas.schema).optional()
|
|
26
|
+
});
|
|
27
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
28
|
+
rawSchema: rawSchema2,
|
|
29
|
+
internalSchema,
|
|
30
|
+
parseErrMsg: "There was a problem trying to parse the provisioner",
|
|
31
|
+
unknownErrMsg: "Something went wrong trying to parse the provisioner"
|
|
32
|
+
});
|
|
33
|
+
var { create, of, make } = factory;
|
|
34
|
+
var schemas2 = {
|
|
35
|
+
...generatedSchemas,
|
|
36
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
create,
|
|
40
|
+
factory,
|
|
41
|
+
generatedSchemas,
|
|
42
|
+
internalSchema,
|
|
43
|
+
make,
|
|
44
|
+
of,
|
|
45
|
+
rawSchema2 as rawSchema,
|
|
46
|
+
schemas2 as schemas
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=Provisioner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Provisioner.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as ProvisionerID from '@taqueria/protocol/ProvisionerID';\nimport { z } from 'zod';\n\nexport const rawSchema = z.object(\n\t{\n\t\tid: ProvisionerID.rawSchema,\n\t\tplugin: z\n\t\t\t.string()\n\t\t\t.min(1)\n\t\t\t.describe('Provisioner Plugin')\n\t\t\t.optional(),\n\t\toperation: z\n\t\t\t.union([\n\t\t\t\tz.string().min(1),\n\t\t\t\tz.literal('custom'),\n\t\t\t])\n\t\t\t.describe('Provisioner Operation'),\n\t\tcommand: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Custom Command')\n\t\t\t.optional(),\n\t\tlabel: z\n\t\t\t.string()\n\t\t\t.describe('Provisioner Label')\n\t\t\t.optional(),\n\t\tdepends_on: z\n\t\t\t.array(\n\t\t\t\tProvisionerID.rawSchema,\n\t\t\t)\n\t\t\t.optional(),\n\t},\n\t{\n\t\tdescription: 'Provisioner',\n\t},\n)\n\t.passthrough();\n\nexport const internalSchema = rawSchema.extend({\n\tid: ProvisionerID.schemas.schema,\n\tdepends_on: z.array(ProvisionerID.schemas.schema).optional(),\n});\n\nexport type RawInput = z.infer<typeof rawSchema>;\nexport type Input = z.infer<typeof internalSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'There was a problem trying to parse the provisioner',\n\tunknownErrMsg: 'Something went wrong trying to parse the provisioner',\n});\n\nexport type Provisioner = z.infer<typeof generatedSchemas.schema>;\nexport type t = Provisioner;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as unknown as Provisioner),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAEX,IAAMA,aAAY,EAAE;AAAA,EAC1B;AAAA,IACC,IAAkB;AAAA,IAClB,QAAQ,EACN,OAAO,EACP,IAAI,CAAC,EACL,SAAS,oBAAoB,EAC7B,SAAS;AAAA,IACX,WAAW,EACT,MAAM;AAAA,MACN,EAAE,OAAO,EAAE,IAAI,CAAC;AAAA,MAChB,EAAE,QAAQ,QAAQ;AAAA,IACnB,CAAC,EACA,SAAS,uBAAuB;AAAA,IAClC,SAAS,EACP,OAAO,EACP,SAAS,4BAA4B,EACrC,SAAS;AAAA,IACX,OAAO,EACL,OAAO,EACP,SAAS,mBAAmB,EAC5B,SAAS;AAAA,IACX,YAAY,EACV;AAAA,MACc;AAAA,IACf,EACC,SAAS;AAAA,EACZ;AAAA,EACA;AAAA,IACC,aAAa;AAAA,EACd;AACD,EACE,YAAY;AAEP,IAAM,iBAAiBA,WAAU,OAAO;AAAA,EAC9C,IAAkB,sBAAQ;AAAA,EAC1B,YAAY,EAAE,MAAoB,sBAAQ,MAAM,EAAE,SAAS;AAC5D,CAAC;AAKM,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF,WAAAA;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMC,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA6B;AAC/E;","names":["rawSchema","schemas"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rawSchema: z.ZodString;
|
|
3
|
+
export declare const generatedSchemas: {
|
|
4
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
5
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
6
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
7
|
+
readonly __kind: any;
|
|
8
|
+
}, any>;
|
|
9
|
+
}, factory: {
|
|
10
|
+
make: (input: string) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
11
|
+
readonly __kind: any;
|
|
12
|
+
}>;
|
|
13
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
14
|
+
readonly __kind: any;
|
|
15
|
+
}>;
|
|
16
|
+
create: (input: string) => string & {
|
|
17
|
+
readonly __kind: any;
|
|
18
|
+
};
|
|
19
|
+
from: (input: unknown) => string & {
|
|
20
|
+
readonly __kind: any;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare type ProvisionerID = z.infer<typeof generatedSchemas.schema>;
|
|
24
|
+
export declare type t = ProvisionerID;
|
|
25
|
+
export declare const create: (input: string) => string & {
|
|
26
|
+
readonly __kind: any;
|
|
27
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
28
|
+
readonly __kind: any;
|
|
29
|
+
}>, make: (input: string) => import("fluture").FutureInstance<import("./TaqError").TaqError, string & {
|
|
30
|
+
readonly __kind: any;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const schemas: {
|
|
33
|
+
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, string & {
|
|
34
|
+
readonly __kind: any;
|
|
35
|
+
}, any>, string & {
|
|
36
|
+
readonly __kind: any;
|
|
37
|
+
}, any>;
|
|
38
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
39
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=ProvisionerID.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProvisionerID.d.ts","sourceRoot":"","sources":["ProvisionerID.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS,aAIM,CAAC;AAI7B,eAAO,MAAiB,gBAAgB;;;;;;GAAE,OAAO;;;;;;;;;;;;;CAI/C,CAAC;AAEH,oBAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACpE,oBAAY,CAAC,GAAG,aAAa,CAAC;AAC9B,eAAO,MAAQ,MAAM;;GAAE,EAAE;;IAAE,IAAI;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;CAGnB,CAAC"}
|
package/ProvisionerID.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// ProvisionerID.ts
|
|
27
|
+
var ProvisionerID_exports = {};
|
|
28
|
+
__export(ProvisionerID_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(ProvisionerID_exports);
|
|
38
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
39
|
+
var import_zod = require("zod");
|
|
40
|
+
var rawSchema = import_zod.z.string().min(1).regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/).describe("Provisioner ID");
|
|
41
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
42
|
+
rawSchema,
|
|
43
|
+
parseErrMsg: (value) => `${value} is not a valid provisioner ID`,
|
|
44
|
+
unknownErrMsg: "Something went wrong trying to parse the provision ID"
|
|
45
|
+
});
|
|
46
|
+
var { create, of, make } = factory;
|
|
47
|
+
var schemas = {
|
|
48
|
+
...generatedSchemas,
|
|
49
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
50
|
+
};
|
|
51
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
52
|
+
0 && (module.exports = {
|
|
53
|
+
create,
|
|
54
|
+
factory,
|
|
55
|
+
generatedSchemas,
|
|
56
|
+
make,
|
|
57
|
+
of,
|
|
58
|
+
rawSchema,
|
|
59
|
+
schemas
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=ProvisionerID.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["ProvisionerID.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string()\n\t.min(1)\n\t.regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/)\n\t.describe('Provisioner ID');\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid provisioner ID`,\n\tunknownErrMsg: 'Something went wrong trying to parse the provision ID',\n});\n\nexport type ProvisionerID = z.infer<typeof generatedSchemas.schema>;\nexport type t = ProvisionerID;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ProvisionerID),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,iBAAkB;AAEX,IAAM,YAAY,aACvB,OAAO,EACP,IAAI,CAAC,EACL,MAAM,sFAAsF,EAC5F,SAAS,gBAAgB;AAIpB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAA,SAA+B;AAAA,EACpF;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":["createType"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ProvisionerID.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
var rawSchema = z.string().min(1).regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/).describe("Provisioner ID");
|
|
5
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
6
|
+
rawSchema,
|
|
7
|
+
parseErrMsg: (value) => `${value} is not a valid provisioner ID`,
|
|
8
|
+
unknownErrMsg: "Something went wrong trying to parse the provision ID"
|
|
9
|
+
});
|
|
10
|
+
var { create, of, make } = factory;
|
|
11
|
+
var schemas = {
|
|
12
|
+
...generatedSchemas,
|
|
13
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
create,
|
|
17
|
+
factory,
|
|
18
|
+
generatedSchemas,
|
|
19
|
+
make,
|
|
20
|
+
of,
|
|
21
|
+
rawSchema,
|
|
22
|
+
schemas
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=ProvisionerID.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["ProvisionerID.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport { z } from 'zod';\n\nexport const rawSchema = z\n\t.string()\n\t.min(1)\n\t.regex(/^[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+\\.[A-Za-z0-9]+[A-Za-z0-9-_]+$/)\n\t.describe('Provisioner ID');\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, RawInput>({\n\trawSchema,\n\tparseErrMsg: (value: unknown) => `${value} is not a valid provisioner ID`,\n\tunknownErrMsg: 'Something went wrong trying to parse the provision ID',\n});\n\nexport type ProvisionerID = z.infer<typeof generatedSchemas.schema>;\nexport type t = ProvisionerID;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as ProvisionerID),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,SAAS,SAAS;AAEX,IAAM,YAAY,EACvB,OAAO,EACP,IAAI,CAAC,EACL,MAAM,sFAAsF,EAC5F,SAAS,gBAAgB;AAIpB,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA+B;AAAA,EACpF;AAAA,EACA,aAAa,CAAC,UAAmB,GAAG;AAAA,EACpC,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAM,UAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAAoB;AACtE;","names":[]}
|