@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/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?: EnvironmentUser[];
163
-
164
- /**
165
- * The environments that are available to be used within your testing suite
166
- */
167
- environments?: ChecksumConfigEnvironment[];
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, environment }?: { role?: string; environment?: string }
179
+ { role }: { role?: string } = {}
178
180
  ) => Promise<void>;
179
181
 
180
182
  export function getChecksumConfig(