@checksum-ai/runtime 1.1.3 → 1.1.4
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/checksumlib.js +3 -3
- package/cli.js +36 -36
- package/index.d.ts +24 -22
- package/index.js +69 -69
- package/package.json +1 -1
- package/repl.js +60 -0
- package/scripts/patch.js +11 -3
- package/test-run-monitor.js +10 -10
- package/.DS_Store +0 -0
package/index.d.ts
CHANGED
|
@@ -113,21 +113,6 @@ export type RuntimeOptions = {
|
|
|
113
113
|
autoHealPRs?: boolean;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
|
-
type ChecksumConfigEnvironment = {
|
|
117
|
-
name: string;
|
|
118
|
-
users?: EnvironmentUser[];
|
|
119
|
-
baseURL: string;
|
|
120
|
-
loginURL?: string;
|
|
121
|
-
default?: boolean;
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
type EnvironmentUser = {
|
|
125
|
-
role: string;
|
|
126
|
-
username?: string;
|
|
127
|
-
password?: string;
|
|
128
|
-
default?: boolean;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
116
|
export type ChecksumConfig = {
|
|
132
117
|
/**
|
|
133
118
|
* Checksum runtime running mode -
|
|
@@ -145,6 +130,8 @@ export type ChecksumConfig = {
|
|
|
145
130
|
*/
|
|
146
131
|
baseURL: string;
|
|
147
132
|
|
|
133
|
+
environments?: ChecksumConfigEnvironment[];
|
|
134
|
+
|
|
148
135
|
/**
|
|
149
136
|
* The username/email that will be used
|
|
150
137
|
* to login into your testing environment
|
|
@@ -159,12 +146,12 @@ export type ChecksumConfig = {
|
|
|
159
146
|
/**
|
|
160
147
|
* The credentials of the users that will be used to login into your testing environment
|
|
161
148
|
*/
|
|
162
|
-
users?:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
149
|
+
users?: {
|
|
150
|
+
role: string;
|
|
151
|
+
username?: string;
|
|
152
|
+
password?: string;
|
|
153
|
+
default?: boolean;
|
|
154
|
+
}[];
|
|
168
155
|
|
|
169
156
|
/**
|
|
170
157
|
* Checksum runtime options
|
|
@@ -172,9 +159,24 @@ export type ChecksumConfig = {
|
|
|
172
159
|
options?: Partial<RuntimeOptions>;
|
|
173
160
|
};
|
|
174
161
|
|
|
162
|
+
export type ChecksumConfigEnvironment = {
|
|
163
|
+
name: string;
|
|
164
|
+
users?: EnvironmentUser[];
|
|
165
|
+
baseURL: string;
|
|
166
|
+
loginURL?: string;
|
|
167
|
+
default?: boolean;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
export type EnvironmentUser = {
|
|
171
|
+
role: string;
|
|
172
|
+
username?: string;
|
|
173
|
+
password?: string;
|
|
174
|
+
default?: boolean;
|
|
175
|
+
};
|
|
176
|
+
|
|
175
177
|
export function getLogin(): (
|
|
176
178
|
page: Page,
|
|
177
|
-
{ role
|
|
179
|
+
{ role }: { role?: string } = {}
|
|
178
180
|
) => Promise<void>;
|
|
179
181
|
|
|
180
182
|
export function getChecksumConfig(
|