@power-plant/core 0.0.15 → 0.0.17
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/README.md +1 -1
- package/dist/{config-D3-0eTEI.d.cts → config-BpNybJZY.d.cts} +56 -244
- package/dist/config-BpNybJZY.d.cts.map +1 -0
- package/dist/{config-D3-0eTEI.d.mts → config-C9Hp8wTC.d.mts} +58 -246
- package/dist/config-C9Hp8wTC.d.mts.map +1 -0
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/context-BU2q1sN5.d.cts +105 -0
- package/dist/context-BU2q1sN5.d.cts.map +1 -0
- package/dist/context-BUNCX0E-.d.mts +105 -0
- package/dist/context-BUNCX0E-.d.mts.map +1 -0
- package/dist/context.cjs +1 -1
- package/dist/context.d.cts +34 -2
- package/dist/context.d.cts.map +1 -1
- package/dist/context.d.mts +34 -2
- package/dist/context.mjs +1 -1
- package/dist/define.cjs +1 -1
- package/dist/define.d.cts +2 -2
- package/dist/define.d.cts.map +1 -1
- package/dist/define.d.mts +2 -2
- package/dist/define.mjs +1 -1
- package/dist/execute-8tWWCCpu.mjs +2 -0
- package/dist/execute-8tWWCCpu.mjs.map +1 -0
- package/dist/execute-D7rill1C.cjs +1 -0
- package/dist/execute.cjs +1 -0
- package/dist/execute.d.cts +87 -0
- package/dist/execute.d.cts.map +1 -0
- package/dist/execute.d.mts +87 -0
- package/dist/execute.d.mts.map +1 -0
- package/dist/execute.mjs +1 -0
- package/dist/execution-BAm3omij.d.cts +61 -0
- package/dist/execution-BAm3omij.d.cts.map +1 -0
- package/dist/execution-d10Z7Dih.d.mts +61 -0
- package/dist/execution-d10Z7Dih.d.mts.map +1 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +3 -0
- package/dist/helpers/index.d.mts +3 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/helpers/meta.cjs +1 -0
- package/dist/helpers/meta.d.cts +2 -0
- package/dist/helpers/meta.d.cts.map +1 -0
- package/dist/helpers/meta.d.mts +77 -0
- package/dist/helpers/meta.d.mts.map +1 -0
- package/dist/helpers/meta.mjs +2 -0
- package/dist/helpers/meta.mjs.map +1 -0
- package/dist/{type-checks-DBObymgE.d.cts → helpers/type-checks.d.cts} +6 -6
- package/dist/helpers/type-checks.d.cts.map +1 -0
- package/dist/{type-checks-DX_sqZhk.d.mts → helpers/type-checks.d.mts} +6 -6
- package/dist/helpers/type-checks.d.mts.map +1 -0
- package/dist/index-DY4xQ_iJ.d.mts +3 -0
- package/dist/index-it9jCi4L.d.cts +3 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -5
- package/dist/index.d.mts +7 -5
- package/dist/index.mjs +1 -1
- package/dist/meta-CiPl-8rq.d.cts +82 -0
- package/dist/meta-CiPl-8rq.d.cts.map +1 -0
- package/package.json +60 -21
- package/dist/config-D3-0eTEI.d.cts.map +0 -1
- package/dist/config-D3-0eTEI.d.mts.map +0 -1
- package/dist/context-B4h787Dd.d.mts +0 -185
- package/dist/context-B4h787Dd.d.mts.map +0 -1
- package/dist/context-DYvyeLgC.d.cts +0 -185
- package/dist/context-DYvyeLgC.d.cts.map +0 -1
- package/dist/type-checks-DBObymgE.d.cts.map +0 -1
- package/dist/type-checks-DX_sqZhk.d.mts.map +0 -1
- package/dist/type-checks.d.cts +0 -2
- package/dist/type-checks.d.mts +0 -2
- package/dist/types/__internal.cjs +0 -0
- package/dist/types/__internal.d.cts +0 -13
- package/dist/types/__internal.d.cts.map +0 -1
- package/dist/types/__internal.d.mts +0 -13
- package/dist/types/__internal.d.mts.map +0 -1
- package/dist/types/__internal.mjs +0 -1
- /package/dist/{type-checks.cjs → helpers/type-checks.cjs} +0 -0
- /package/dist/{type-checks.mjs → helpers/type-checks.mjs} +0 -0
- /package/dist/{type-checks.mjs.map → helpers/type-checks.mjs.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-D3-0eTEI.d.cts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/execution.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":";;;;;;KAoBY,UAAU,OAAO,yBAAyB,gBACpD,WAAW,MAAM,OAAO,SAAS,aAAa,aAAa;KAEjD;EACQ;EAAkB;EAAgB;;KAE1C;EAAsB;EAAc;;;;;KAKpC;;;;KAKA,eAAe,OAAO,2BAA2B,eAE3D,UAAU,OAAO,UAAU,oBAAoB;;;;KAMrC,SAAS,OAAO,2BAA2B,eAErD,UACE,OACA,UACA,oBAAoB,sBAAsB,eAAe,OAAO;UAInD,SAAS,OAAO;;;;EAI/B,OAAO,SAAS,OAAO;;UAGR,WAAW,OAAO,iCAAiC,SAClE,OACA;;;;;;;EAQA;;;;;;;;;EAUA,mBAAmB;;;;EAKnB;;;;;;;EAQA,QAAQ,UAAU,OAAO;;;;EAKzB,QAAQ,UAAU,OAAO;;;;;;;EAQzB,aAAa,UAAU,OAAO,UAAU;;;;;;;EAQxC,OAAO,UAAU,OAAO;;;;EAKxB,QAAQ,UAAU,OAAO,UAAU;;UAGpB,KAAK,OAAO,iCAAiC,SAC5D,OACA;;;;;;;EAQA,OAAO,UAAU,OAAO;;;;;;;;;EAUxB,UAAU,UAAU,OAAO,mBAAmB;;;;EAK9C,cAAc,UAAU,OAAO;;;;;;;EAQ/B,QAAQ,UAAU,OAAO;;;;EAKzB,QAAQ,UAAU,OAAO;;;;;;;EAQzB,aAAa,UAAU,OAAO,UAAU;;;;;;;EAQxC,OAAO,UAAU,OAAO;;;;EAKxB,QAAQ,UAAU,OAAO,UAAU;;KAGzB,6BACV,mBAAmB,+BAElB,WAAW,aAAa,WAAW,WAAW,0BAA0B,KACrE,UAAU,2BACR,6BAA6B,KAC7B,IACF,WAAW;KAGL,mBAAmB,cAAc,qBAC1C,WAAW,QAAQ,MAAM,WAAW,0BAA0B,KAC3D,UAAU,2BACR,6BAA6B,KAC7B,IAC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;;;;EAKV,SAAS,QAAQ;;;;EAKjB,QAAQ,YAAY,OAAO;;;;EAK3B,SAAS,aAAa,OAAO,UAAU;;UAGxB;EACf;EACA;;KAGU,mBACV,aACA,+BACA,mBAEA,QAAQ,WAAW,OAAO,UAAU,cACjC,WAAW,OAAO,UAAU;KACrB,oBACV,aACA,+BACA,mBAEA,QAAQ,qBACL,QACD,WAAW,OAAO,UAAU,YAC5B,WAAW,OAAO,UAAU;KAEpB,aACV,aACA,+BACA,mBAEA,QAAQ,qBAEN,WAAW,OAAO,UAAU,YAC5B,WAAW,OAAO,UAAU,cAC5B,QACI,WAAW,OAAO,UAAU,YAC5B,WAAW,OAAO,UAAU;KAExB,iBACV,aACA,+BACA,kBAEE,WAAW,OAAO,UAAU,YAC5B,WAAW,OAAO,UAAU,cAC5B,QACI,WAAW,OAAO,UAAU,YAC5B,WAAW,OAAO,UAAU,eAEhC,mBAAmB,OAAO,UAAU,YACpC,oBAAoB,OAAO,UAAU,YACrC,aAAa,OAAO,UAAU"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-D3-0eTEI.d.mts","names":[],"sources":["../src/types/meta.ts","../src/types/schema.ts","../src/types/input.ts","../src/types/execution.ts","../src/types/generator.ts","../src/types/output.ts","../src/types/settings.ts","../src/types/config.ts"],"mappings":""}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-D3-0eTEI.mjs";
|
|
2
|
-
import { Storage } from "unstorage";
|
|
3
|
-
//#region src/types/base.d.ts
|
|
4
|
-
interface Base {
|
|
5
|
-
/**
|
|
6
|
-
* A unique identifier for the model.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* The timestamp when the model was created.
|
|
11
|
-
*/
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
/**
|
|
14
|
-
* The timestamp when the model was last updated.
|
|
15
|
-
*/
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
/**
|
|
18
|
-
* The description of the model.
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/types/device.d.ts
|
|
24
|
-
interface DeviceOperatingSystem {
|
|
25
|
-
/**
|
|
26
|
-
* The type of the operating system.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is the type of the operating system as returned by `os.type()`.
|
|
30
|
-
*
|
|
31
|
-
* @see https://nodejs.org/api/os.html#ostype
|
|
32
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
33
|
-
*/
|
|
34
|
-
type: string;
|
|
35
|
-
/**
|
|
36
|
-
* The release of the operating system.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* This is the release of the operating system as returned by `os.release()`.
|
|
40
|
-
*
|
|
41
|
-
* @see https://nodejs.org/api/os.html#osrelease
|
|
42
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
43
|
-
*/
|
|
44
|
-
release: string;
|
|
45
|
-
}
|
|
46
|
-
interface Device extends Base {
|
|
47
|
-
/**
|
|
48
|
-
* The name of the device.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* This is the name of the device as returned by `os.hostname()`.
|
|
52
|
-
*
|
|
53
|
-
* @see https://nodejs.org/api/os.html#oshostname
|
|
54
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
55
|
-
*/
|
|
56
|
-
name: string;
|
|
57
|
-
/**
|
|
58
|
-
* The IP address of the device.
|
|
59
|
-
*/
|
|
60
|
-
ip?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The architecture of the device.
|
|
63
|
-
*
|
|
64
|
-
* @see https://nodejs.org/api/os.html#osarch
|
|
65
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
66
|
-
*/
|
|
67
|
-
arch: NodeJS.Architecture;
|
|
68
|
-
/**
|
|
69
|
-
* The platform of the device.
|
|
70
|
-
*
|
|
71
|
-
* @see https://nodejs.org/api/os.html#osplatform
|
|
72
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
73
|
-
*/
|
|
74
|
-
platform: NodeJS.Platform;
|
|
75
|
-
/**
|
|
76
|
-
* The operating system of the device.
|
|
77
|
-
*
|
|
78
|
-
* @see https://nodejs.org/api/os.html#osrelease
|
|
79
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
80
|
-
*/
|
|
81
|
-
os: DeviceOperatingSystem;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/types/user.d.ts
|
|
85
|
-
interface User extends Base {
|
|
86
|
-
/**
|
|
87
|
-
* The username of the user.
|
|
88
|
-
*/
|
|
89
|
-
username: string;
|
|
90
|
-
/**
|
|
91
|
-
* The email of the user.
|
|
92
|
-
*/
|
|
93
|
-
email?: string;
|
|
94
|
-
/**
|
|
95
|
-
* The default language of the tenant.
|
|
96
|
-
*
|
|
97
|
-
* @defaultValue "en-US"
|
|
98
|
-
*/
|
|
99
|
-
language: string;
|
|
100
|
-
/**
|
|
101
|
-
* The default timezone of the tenant.
|
|
102
|
-
*
|
|
103
|
-
* @defaultValue "UTC"
|
|
104
|
-
*/
|
|
105
|
-
timezone: string;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/types/session.d.ts
|
|
109
|
-
interface Session extends Base {
|
|
110
|
-
/**
|
|
111
|
-
* The device that started the session.
|
|
112
|
-
*/
|
|
113
|
-
device: Device;
|
|
114
|
-
/**
|
|
115
|
-
* The user who started the session.
|
|
116
|
-
*/
|
|
117
|
-
user: User;
|
|
118
|
-
/**
|
|
119
|
-
* The executions of the session.
|
|
120
|
-
*/
|
|
121
|
-
executions: Execution<any, any>[];
|
|
122
|
-
}
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region src/types/context.d.ts
|
|
125
|
-
interface SessionContext {
|
|
126
|
-
/**
|
|
127
|
-
* The current working directory.
|
|
128
|
-
*/
|
|
129
|
-
cwd: string;
|
|
130
|
-
/**
|
|
131
|
-
* The settings for the context.
|
|
132
|
-
*/
|
|
133
|
-
settings: Settings;
|
|
134
|
-
/**
|
|
135
|
-
* The Unstorage storage for the context.
|
|
136
|
-
*
|
|
137
|
-
* @remarks
|
|
138
|
-
* This storage can be used to store the input and output of the execution.
|
|
139
|
-
*/
|
|
140
|
-
storage: Storage;
|
|
141
|
-
/**
|
|
142
|
-
* The logger for the context.
|
|
143
|
-
*/
|
|
144
|
-
logger: Logger;
|
|
145
|
-
/**
|
|
146
|
-
* The session for the context.
|
|
147
|
-
*/
|
|
148
|
-
session: Session;
|
|
149
|
-
}
|
|
150
|
-
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
151
|
-
/**
|
|
152
|
-
* The options for the execution.
|
|
153
|
-
*/
|
|
154
|
-
options: TOptions;
|
|
155
|
-
/**
|
|
156
|
-
* The specification for the execution.
|
|
157
|
-
*/
|
|
158
|
-
get spec(): TSpec;
|
|
159
|
-
/**
|
|
160
|
-
* The schema for the execution.
|
|
161
|
-
*/
|
|
162
|
-
get schema(): SchemaOf<TSpec, TOptions>;
|
|
163
|
-
/**
|
|
164
|
-
* The input for the execution.
|
|
165
|
-
*/
|
|
166
|
-
get input(): Input<TSpec, TOptions>;
|
|
167
|
-
/**
|
|
168
|
-
* The output for the execution.
|
|
169
|
-
*/
|
|
170
|
-
get output(): Output<TSpec, TOptions, TReturns>;
|
|
171
|
-
/**
|
|
172
|
-
* The documents that are currently being processed, indexed by the document path.
|
|
173
|
-
*/
|
|
174
|
-
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
175
|
-
/**
|
|
176
|
-
* Adds a document to the currently processing documents.
|
|
177
|
-
*
|
|
178
|
-
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
179
|
-
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
180
|
-
*/
|
|
181
|
-
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
182
|
-
}
|
|
183
|
-
//#endregion
|
|
184
|
-
export { Device as a, User as i, SessionContext as n, DeviceOperatingSystem as o, Session as r, Base as s, ExecutionContext as t };
|
|
185
|
-
//# sourceMappingURL=context-B4h787Dd.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-B4h787Dd.d.mts","names":[],"sources":["../src/types/base.ts","../src/types/device.ts","../src/types/user.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":""}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, T as Execution, c as Settings, s as Logger, u as Output } from "./config-D3-0eTEI.cjs";
|
|
2
|
-
import { Storage } from "unstorage";
|
|
3
|
-
//#region src/types/base.d.ts
|
|
4
|
-
interface Base {
|
|
5
|
-
/**
|
|
6
|
-
* A unique identifier for the model.
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
/**
|
|
10
|
-
* The timestamp when the model was created.
|
|
11
|
-
*/
|
|
12
|
-
createdAt: Date;
|
|
13
|
-
/**
|
|
14
|
-
* The timestamp when the model was last updated.
|
|
15
|
-
*/
|
|
16
|
-
updatedAt: Date;
|
|
17
|
-
/**
|
|
18
|
-
* The description of the model.
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/types/device.d.ts
|
|
24
|
-
interface DeviceOperatingSystem {
|
|
25
|
-
/**
|
|
26
|
-
* The type of the operating system.
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* This is the type of the operating system as returned by `os.type()`.
|
|
30
|
-
*
|
|
31
|
-
* @see https://nodejs.org/api/os.html#ostype
|
|
32
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
33
|
-
*/
|
|
34
|
-
type: string;
|
|
35
|
-
/**
|
|
36
|
-
* The release of the operating system.
|
|
37
|
-
*
|
|
38
|
-
* @remarks
|
|
39
|
-
* This is the release of the operating system as returned by `os.release()`.
|
|
40
|
-
*
|
|
41
|
-
* @see https://nodejs.org/api/os.html#osrelease
|
|
42
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
43
|
-
*/
|
|
44
|
-
release: string;
|
|
45
|
-
}
|
|
46
|
-
interface Device extends Base {
|
|
47
|
-
/**
|
|
48
|
-
* The name of the device.
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
* This is the name of the device as returned by `os.hostname()`.
|
|
52
|
-
*
|
|
53
|
-
* @see https://nodejs.org/api/os.html#oshostname
|
|
54
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
55
|
-
*/
|
|
56
|
-
name: string;
|
|
57
|
-
/**
|
|
58
|
-
* The IP address of the device.
|
|
59
|
-
*/
|
|
60
|
-
ip?: string;
|
|
61
|
-
/**
|
|
62
|
-
* The architecture of the device.
|
|
63
|
-
*
|
|
64
|
-
* @see https://nodejs.org/api/os.html#osarch
|
|
65
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
66
|
-
*/
|
|
67
|
-
arch: NodeJS.Architecture;
|
|
68
|
-
/**
|
|
69
|
-
* The platform of the device.
|
|
70
|
-
*
|
|
71
|
-
* @see https://nodejs.org/api/os.html#osplatform
|
|
72
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
73
|
-
*/
|
|
74
|
-
platform: NodeJS.Platform;
|
|
75
|
-
/**
|
|
76
|
-
* The operating system of the device.
|
|
77
|
-
*
|
|
78
|
-
* @see https://nodejs.org/api/os.html#osrelease
|
|
79
|
-
* @see https://en.wikipedia.org/wiki/Uname#Examples
|
|
80
|
-
*/
|
|
81
|
-
os: DeviceOperatingSystem;
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/types/user.d.ts
|
|
85
|
-
interface User extends Base {
|
|
86
|
-
/**
|
|
87
|
-
* The username of the user.
|
|
88
|
-
*/
|
|
89
|
-
username: string;
|
|
90
|
-
/**
|
|
91
|
-
* The email of the user.
|
|
92
|
-
*/
|
|
93
|
-
email?: string;
|
|
94
|
-
/**
|
|
95
|
-
* The default language of the tenant.
|
|
96
|
-
*
|
|
97
|
-
* @defaultValue "en-US"
|
|
98
|
-
*/
|
|
99
|
-
language: string;
|
|
100
|
-
/**
|
|
101
|
-
* The default timezone of the tenant.
|
|
102
|
-
*
|
|
103
|
-
* @defaultValue "UTC"
|
|
104
|
-
*/
|
|
105
|
-
timezone: string;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/types/session.d.ts
|
|
109
|
-
interface Session extends Base {
|
|
110
|
-
/**
|
|
111
|
-
* The device that started the session.
|
|
112
|
-
*/
|
|
113
|
-
device: Device;
|
|
114
|
-
/**
|
|
115
|
-
* The user who started the session.
|
|
116
|
-
*/
|
|
117
|
-
user: User;
|
|
118
|
-
/**
|
|
119
|
-
* The executions of the session.
|
|
120
|
-
*/
|
|
121
|
-
executions: Execution<any, any>[];
|
|
122
|
-
}
|
|
123
|
-
//#endregion
|
|
124
|
-
//#region src/types/context.d.ts
|
|
125
|
-
interface SessionContext {
|
|
126
|
-
/**
|
|
127
|
-
* The current working directory.
|
|
128
|
-
*/
|
|
129
|
-
cwd: string;
|
|
130
|
-
/**
|
|
131
|
-
* The settings for the context.
|
|
132
|
-
*/
|
|
133
|
-
settings: Settings;
|
|
134
|
-
/**
|
|
135
|
-
* The Unstorage storage for the context.
|
|
136
|
-
*
|
|
137
|
-
* @remarks
|
|
138
|
-
* This storage can be used to store the input and output of the execution.
|
|
139
|
-
*/
|
|
140
|
-
storage: Storage;
|
|
141
|
-
/**
|
|
142
|
-
* The logger for the context.
|
|
143
|
-
*/
|
|
144
|
-
logger: Logger;
|
|
145
|
-
/**
|
|
146
|
-
* The session for the context.
|
|
147
|
-
*/
|
|
148
|
-
session: Session;
|
|
149
|
-
}
|
|
150
|
-
interface ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends SessionContext, Execution<TSpec, TOptions> {
|
|
151
|
-
/**
|
|
152
|
-
* The options for the execution.
|
|
153
|
-
*/
|
|
154
|
-
options: TOptions;
|
|
155
|
-
/**
|
|
156
|
-
* The specification for the execution.
|
|
157
|
-
*/
|
|
158
|
-
get spec(): TSpec;
|
|
159
|
-
/**
|
|
160
|
-
* The schema for the execution.
|
|
161
|
-
*/
|
|
162
|
-
get schema(): SchemaOf<TSpec, TOptions>;
|
|
163
|
-
/**
|
|
164
|
-
* The input for the execution.
|
|
165
|
-
*/
|
|
166
|
-
get input(): Input<TSpec, TOptions>;
|
|
167
|
-
/**
|
|
168
|
-
* The output for the execution.
|
|
169
|
-
*/
|
|
170
|
-
get output(): Output<TSpec, TOptions, TReturns>;
|
|
171
|
-
/**
|
|
172
|
-
* The documents that are currently being processed, indexed by the document path.
|
|
173
|
-
*/
|
|
174
|
-
get documents(): Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
175
|
-
/**
|
|
176
|
-
* Adds a document to the currently processing documents.
|
|
177
|
-
*
|
|
178
|
-
* @param pathOrDocument - A string representing the path of the document to add, or the document to add.
|
|
179
|
-
* @param document - The document to add (without the path), if {@link pathOrDocument} is a string representing the document path.
|
|
180
|
-
*/
|
|
181
|
-
addDocument: (pathOrDocument: string | ExecutionDocument<TSpec, TOptions>, document?: Omit<ExecutionDocument<TSpec, TOptions>, "path">) => void;
|
|
182
|
-
}
|
|
183
|
-
//#endregion
|
|
184
|
-
export { Device as a, User as i, SessionContext as n, DeviceOperatingSystem as o, Session as r, Base as s, ExecutionContext as t };
|
|
185
|
-
//# sourceMappingURL=context-DYvyeLgC.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-DYvyeLgC.d.cts","names":[],"sources":["../src/types/base.ts","../src/types/device.ts","../src/types/user.ts","../src/types/session.ts","../src/types/context.ts"],"mappings":";;;UAkBiB;;;;EAIf;;;;EAKA,WAAW;;;;EAKX,WAAW;;;;EAKX;;;;UCjBe;;;;;;;;;;EAUf;;;;;;;;;;EAWA;;UAGe,eAAe;;;;;;;;;;EAU9B;;;;EAKA;;;;;;;EAQA,MAAM,OAAO;;;;;;;EAQb,UAAU,OAAO;;;;;;;EAQjB,IAAI;;;;UC/DW,aAAa;;;;EAI5B;;;;EAKA;;;;;;EAOA;;;;;;EAOA;;;;UCpBe,gBAAgB;;;;EAI/B,QAAQ;;;;EAKR,MAAM;;;;EAKN,YAAY;;;;UCXG;;;;EAIf;;;;EAKA,UAAU;;;;;;;EAQV,SAAS;;;;EAKT,QAAQ;;;;EAKR,SAAS;;UAGM,iBACf,OACA,yBACA,yBAEQ,gBAAgB,UAAU,OAAO;;;;EAIzC,SAAS;;;;MAKL,QAAQ;;;;MAKR,UAAU,SAAS,OAAO;;;;MAK1B,SAAS,MAAM,OAAO;;;;MAKtB,UAAU,OAAO,OAAO,UAAU;;;;MAKlC,aAAa,eAAe,kBAAkB,OAAO;;;;;;;EAQzD,cACE,yBAAyB,kBAAkB,OAAO,WAClD,WAAW,KAAK,kBAAkB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-DBObymgE.d.cts","names":[],"sources":["../src/type-checks.ts"],"mappings":";;;;;;;;;iBAgCgB,wBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,sBAAsB,OAAO,UAAU;;;;;;;iBAcrD,oBAAoB,OAAO,yBACzC,iBACC,SAAS,kBAAkB,OAAO;;;;;;;iBAUrB,qBACd,OACA,yBACA,iBACA,kBAAkB,UAAU,mBAAmB,OAAO,UAAU;;;;;;;iBAYlD,qBAAqB,OAAO,yBAC1C,kBACC,UAAU,mBAAmB,OAAO"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-checks-DX_sqZhk.d.mts","names":[],"sources":["../src/type-checks.ts"],"mappings":""}
|
package/dist/type-checks.d.cts
DELETED
package/dist/type-checks.d.mts
DELETED
|
File without changes
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-D3-0eTEI.cjs";
|
|
2
|
-
import { t as ExecutionContext } from "../context-DYvyeLgC.cjs";
|
|
3
|
-
//#region src/types/__internal.d.ts
|
|
4
|
-
interface Unstable_ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends ExecutionContext<TSpec, TOptions, TReturns> {
|
|
5
|
-
"~spec": TSpec;
|
|
6
|
-
schema: SchemaOf<TSpec, TOptions>;
|
|
7
|
-
input: Input<TSpec, TOptions>;
|
|
8
|
-
output: Output<TSpec, TOptions, TReturns>;
|
|
9
|
-
documents: Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Unstable_ExecutionContext };
|
|
13
|
-
//# sourceMappingURL=__internal.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__internal.d.cts","names":[],"sources":["../../src/types/__internal.ts"],"mappings":";;;UAyBiB,0BACf,OACA,yBACA,yBACQ,iBAAiB,OAAO,UAAU;EAC1C,SAAS;EACT,QAAQ,SAAS,OAAO;EACxB,OAAO,MAAM,OAAO;EACpB,QAAQ,OAAO,OAAO,UAAU;EAChC,WAAW,eAAe,kBAAkB,OAAO"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { E as ExecutionDocument, K as SchemaOf, P as Input, u as Output } from "../config-D3-0eTEI.mjs";
|
|
2
|
-
import { t as ExecutionContext } from "../context-B4h787Dd.mjs";
|
|
3
|
-
//#region src/types/__internal.d.ts
|
|
4
|
-
interface Unstable_ExecutionContext<TSpec, TOptions extends object, TReturns = void> extends ExecutionContext<TSpec, TOptions, TReturns> {
|
|
5
|
-
"~spec": TSpec;
|
|
6
|
-
schema: SchemaOf<TSpec, TOptions>;
|
|
7
|
-
input: Input<TSpec, TOptions>;
|
|
8
|
-
output: Output<TSpec, TOptions, TReturns>;
|
|
9
|
-
documents: Record<string, ExecutionDocument<TSpec, TOptions>>;
|
|
10
|
-
}
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Unstable_ExecutionContext };
|
|
13
|
-
//# sourceMappingURL=__internal.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"__internal.d.mts","names":[],"sources":["../../src/types/__internal.ts"],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|