@api-client/core 0.18.37 → 0.18.39
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/build/src/browser.d.ts +1 -1
- package/build/src/browser.d.ts.map +1 -1
- package/build/src/browser.js.map +1 -1
- package/build/src/mocking/ModelingMock.d.ts +19 -0
- package/build/src/mocking/ModelingMock.d.ts.map +1 -0
- package/build/src/mocking/ModelingMock.js +19 -0
- package/build/src/mocking/ModelingMock.js.map +1 -0
- package/build/src/mocking/ProjectMock.js +1 -1
- package/build/src/mocking/ProjectMock.js.map +1 -1
- package/build/src/mocking/lib/File.d.ts +34 -0
- package/build/src/mocking/lib/File.d.ts.map +1 -0
- package/build/src/mocking/lib/File.js +64 -0
- package/build/src/mocking/lib/File.js.map +1 -0
- package/build/src/mocking/lib/Group.d.ts +16 -0
- package/build/src/mocking/lib/Group.d.ts.map +1 -0
- package/build/src/mocking/lib/Group.js +39 -0
- package/build/src/mocking/lib/Group.js.map +1 -0
- package/build/src/mocking/lib/Invitation.d.ts +16 -0
- package/build/src/mocking/lib/Invitation.d.ts.map +1 -0
- package/build/src/mocking/lib/Invitation.js +42 -0
- package/build/src/mocking/lib/Invitation.js.map +1 -0
- package/build/src/mocking/lib/Organization.d.ts +16 -0
- package/build/src/mocking/lib/Organization.d.ts.map +1 -0
- package/build/src/mocking/lib/Organization.js +34 -0
- package/build/src/mocking/lib/Organization.js.map +1 -0
- package/build/src/mocking/lib/Patch.d.ts +29 -0
- package/build/src/mocking/lib/Patch.d.ts.map +1 -0
- package/build/src/mocking/lib/Patch.js +102 -0
- package/build/src/mocking/lib/Patch.js.map +1 -0
- package/build/src/mocking/lib/Trash.d.ts +16 -0
- package/build/src/mocking/lib/Trash.d.ts.map +1 -0
- package/build/src/mocking/lib/Trash.js +39 -0
- package/build/src/mocking/lib/Trash.js.map +1 -0
- package/build/src/mocking/lib/User.d.ts +12 -12
- package/build/src/mocking/lib/User.d.ts.map +1 -1
- package/build/src/mocking/lib/User.js +29 -26
- package/build/src/mocking/lib/User.js.map +1 -1
- package/build/src/sdk/SdkMock.d.ts +125 -175
- package/build/src/sdk/SdkMock.d.ts.map +1 -1
- package/build/src/sdk/SdkMock.js +774 -627
- package/build/src/sdk/SdkMock.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/data/models/example-generator-api.json +9 -9
- package/package.json +5 -3
- package/src/mocking/ModelingMock.ts +19 -0
- package/src/mocking/ProjectMock.ts +1 -1
- package/src/mocking/lib/File.ts +72 -0
- package/src/mocking/lib/Group.ts +52 -0
- package/src/mocking/lib/Invitation.ts +58 -0
- package/src/mocking/lib/Organization.ts +42 -0
- package/src/mocking/lib/Patch.ts +128 -0
- package/src/mocking/lib/Trash.ts +47 -0
- package/src/mocking/lib/User.ts +30 -29
- package/src/sdk/SdkMock.ts +966 -689
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
export interface MockResponseOptions {
|
|
1
|
+
import { type ResponseGenerator, type MockHandler, type SetupWorkerOptions } from '@jarrodek/amw';
|
|
2
|
+
import { ModelingMock } from '../mocking/ModelingMock.js';
|
|
3
|
+
export interface MockResult {
|
|
6
4
|
/**
|
|
7
|
-
* Custom response
|
|
5
|
+
* Custom response generator for the mock intercept.
|
|
8
6
|
*/
|
|
9
|
-
|
|
7
|
+
response?: ResponseGenerator;
|
|
10
8
|
/**
|
|
11
|
-
*
|
|
9
|
+
* If true, the request body will be generated using the body generator.
|
|
10
|
+
* It is useful when only setting up response headers or status code, but
|
|
11
|
+
* the request body should still be generated, even when missing in the `response` option.
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
forceBody?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface MockListResult extends MockResult {
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
17
|
+
* Number of items to generate in the list response.
|
|
16
18
|
*/
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A stub reference that can be used to restore the original behavior.
|
|
21
|
-
*/
|
|
22
|
-
export interface StubReference {
|
|
19
|
+
size?: number;
|
|
23
20
|
/**
|
|
24
|
-
*
|
|
21
|
+
* If true, the response will include a cursor for pagination.
|
|
22
|
+
* If false, the response will not include a cursor.
|
|
23
|
+
* If not set, a random choice will be made.
|
|
25
24
|
*/
|
|
26
|
-
|
|
25
|
+
cursor?: boolean;
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
|
-
* SDK mocking utility for testing.
|
|
30
|
-
*
|
|
28
|
+
* SDK mocking utility for testing. Uses Service Workers to intercept HTTP requests
|
|
29
|
+
* and provide mock responses for API calls.
|
|
30
|
+
*
|
|
31
|
+
* This class uses the `@jarrodek/amw` library to set up a Service Worker that intercepts
|
|
32
|
+
* fetch requests matching the configured routes. Each method adds an intercept for a specific
|
|
33
|
+
* API endpoint, returning either random generated data or custom responses.
|
|
31
34
|
*
|
|
32
35
|
* @example
|
|
33
36
|
* ```typescript
|
|
@@ -35,62 +38,99 @@ export interface StubReference {
|
|
|
35
38
|
* import { StoreSdk } from '@api-client/core/sdk/StoreSdkWeb.js';
|
|
36
39
|
*
|
|
37
40
|
* const sdk = new StoreSdk('http://localhost:8080');
|
|
38
|
-
* const mocker = new SdkMock(
|
|
41
|
+
* const mocker = new SdkMock({
|
|
42
|
+
* swPath: '/mockServiceWorker.js', // Path to the Service Worker script
|
|
43
|
+
* base: 'http://localhost:8080' // Base URL matching the SDK
|
|
44
|
+
* });
|
|
39
45
|
*
|
|
40
|
-
* //
|
|
41
|
-
*
|
|
46
|
+
* // Initialize the Service Worker
|
|
47
|
+
* await mocker.setup();
|
|
42
48
|
*
|
|
43
|
-
* //
|
|
44
|
-
*
|
|
45
|
-
*
|
|
49
|
+
* // Add intercept - returns random organizations
|
|
50
|
+
* await mocker.organizations.list();
|
|
51
|
+
*
|
|
52
|
+
* // Custom response with specific data
|
|
53
|
+
* await mocker.organizations.create({
|
|
54
|
+
* response: {
|
|
55
|
+
* status: 201,
|
|
56
|
+
* headers: { 'Content-Type': 'application/json', 'X-Custom-Header': 'value' },
|
|
57
|
+
* body: JSON.stringify({ key: 'custom-id', name: 'Custom Org' })
|
|
58
|
+
* }
|
|
59
|
+
* });
|
|
60
|
+
*
|
|
61
|
+
* // Control pagination in list responses
|
|
62
|
+
* await mocker.groups.list({
|
|
63
|
+
* size: 10, // Number of items to generate
|
|
64
|
+
* cursor: true // Include pagination cursor
|
|
46
65
|
* });
|
|
47
66
|
*
|
|
48
|
-
* //
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
67
|
+
* // Error simulation
|
|
68
|
+
* await mocker.users.me({
|
|
69
|
+
* response: {
|
|
70
|
+
* status: 404,
|
|
71
|
+
* headers: { 'Content-Type': 'application/json' },
|
|
72
|
+
* body: JSON.stringify({ error: 'Not found' })
|
|
73
|
+
* }
|
|
52
74
|
* });
|
|
53
75
|
*
|
|
54
|
-
* //
|
|
55
|
-
* mocker.
|
|
76
|
+
* // Remove all intercepts (keep Service Worker active)
|
|
77
|
+
* await mocker.reset();
|
|
78
|
+
*
|
|
79
|
+
* // Stop and remove the Service Worker
|
|
80
|
+
* await mocker.teardown();
|
|
56
81
|
* ```
|
|
57
82
|
*/
|
|
58
83
|
export declare class SdkMock {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
84
|
+
options?: SetupWorkerOptions | undefined;
|
|
85
|
+
handler?: MockHandler;
|
|
86
|
+
gen: ModelingMock;
|
|
87
|
+
constructor(options?: SetupWorkerOptions | undefined);
|
|
88
|
+
/**
|
|
89
|
+
* Initializes the mock handler. It uses options provided in the constructor.
|
|
90
|
+
* It has to be called before using any of the mock methods.
|
|
91
|
+
*/
|
|
92
|
+
setup(): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Removes the mock worker and all intercepts.
|
|
95
|
+
*/
|
|
96
|
+
teardown(): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Removes all added intercepts.
|
|
99
|
+
*/
|
|
100
|
+
reset(): Promise<void>;
|
|
101
|
+
get mock(): MockHandler;
|
|
102
|
+
protected createCursorOption(init?: MockListResult): string | undefined;
|
|
103
|
+
protected createDefaultResponse(status: number, headers?: Record<string, string>, body?: () => string, userConfig?: MockResult): ResponseGenerator;
|
|
62
104
|
/**
|
|
63
105
|
* Organization API mocks.
|
|
64
106
|
*/
|
|
65
107
|
organizations: {
|
|
66
108
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @param options Optional response
|
|
69
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
109
|
+
* Adds an intercept to mock the `organizations.list()` method.
|
|
110
|
+
* @param options Optional response configuration
|
|
70
111
|
*/
|
|
71
|
-
list: (
|
|
112
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
72
113
|
/**
|
|
73
|
-
*
|
|
74
|
-
* @param options Optional response
|
|
75
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
114
|
+
* Adds an intercept to mock the `organizations.create()` method.
|
|
115
|
+
* @param options Optional response configuration
|
|
76
116
|
*/
|
|
77
|
-
create: (
|
|
117
|
+
create: (init?: MockResult) => Promise<void>;
|
|
78
118
|
invitations: {
|
|
79
|
-
list: (
|
|
80
|
-
create: (
|
|
81
|
-
findByToken: (
|
|
82
|
-
decline: (
|
|
83
|
-
delete: (
|
|
84
|
-
patch: (
|
|
85
|
-
resend: (
|
|
119
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
120
|
+
create: (init?: MockResult) => Promise<void>;
|
|
121
|
+
findByToken: (init?: MockResult) => Promise<void>;
|
|
122
|
+
decline: (init?: MockResult) => Promise<void>;
|
|
123
|
+
delete: (init?: MockResult) => Promise<void>;
|
|
124
|
+
patch: (init?: MockResult) => Promise<void>;
|
|
125
|
+
resend: (init?: MockResult) => Promise<void>;
|
|
86
126
|
};
|
|
87
127
|
users: {
|
|
88
|
-
list: (
|
|
89
|
-
read: (
|
|
90
|
-
readBatch: (
|
|
91
|
-
activate: (
|
|
92
|
-
deactivate: (
|
|
93
|
-
delete: (
|
|
128
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
129
|
+
read: (init?: MockResult) => Promise<void>;
|
|
130
|
+
readBatch: (init?: MockListResult) => Promise<void>;
|
|
131
|
+
activate: (init?: MockResult) => Promise<void>;
|
|
132
|
+
deactivate: (init?: MockResult) => Promise<void>;
|
|
133
|
+
delete: (init?: MockResult) => Promise<void>;
|
|
94
134
|
};
|
|
95
135
|
};
|
|
96
136
|
/**
|
|
@@ -100,41 +140,31 @@ export declare class SdkMock {
|
|
|
100
140
|
/**
|
|
101
141
|
* Mocks the `groups.list()` method.
|
|
102
142
|
* @param options Optional response customization.
|
|
103
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
104
143
|
*/
|
|
105
|
-
list: (
|
|
144
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
106
145
|
/**
|
|
107
146
|
* Mocks the `groups.create()` method.
|
|
108
147
|
* @param options Optional response customization.
|
|
109
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
110
|
-
*/
|
|
111
|
-
create: (options?: MockResponseOptions) => StubReference;
|
|
112
|
-
/**
|
|
113
|
-
* Mocks the `groups.read()` method.
|
|
114
|
-
* @param options Optional response customization.
|
|
115
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
116
148
|
*/
|
|
117
|
-
|
|
149
|
+
create: (init?: MockResult) => Promise<void>;
|
|
118
150
|
/**
|
|
119
151
|
* Mocks the `groups.update()` method.
|
|
120
152
|
* @param options Optional response customization.
|
|
121
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
122
153
|
*/
|
|
123
|
-
update: (
|
|
154
|
+
update: (init?: MockResult) => Promise<void>;
|
|
124
155
|
/**
|
|
125
156
|
* Mocks the `groups.delete()` method.
|
|
126
157
|
* @param options Optional response customization.
|
|
127
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
128
158
|
*/
|
|
129
|
-
delete: (
|
|
159
|
+
delete: (init?: MockResult) => Promise<void>;
|
|
130
160
|
/**
|
|
131
161
|
* Mocks the `groups.addUsers()` method.
|
|
132
162
|
*/
|
|
133
|
-
addUsers: (
|
|
163
|
+
addUsers: (init?: MockResult) => Promise<void>;
|
|
134
164
|
/**
|
|
135
165
|
* Mocks the `groups.removeUsers()` method.
|
|
136
166
|
*/
|
|
137
|
-
removeUsers: (
|
|
167
|
+
removeUsers: (init?: MockResult) => Promise<void>;
|
|
138
168
|
};
|
|
139
169
|
/**
|
|
140
170
|
* User API mocks.
|
|
@@ -143,21 +173,8 @@ export declare class SdkMock {
|
|
|
143
173
|
/**
|
|
144
174
|
* Mocks the `user.me()` method.
|
|
145
175
|
* @param options Optional response customization.
|
|
146
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
147
176
|
*/
|
|
148
|
-
me: (
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Auth API mocks.
|
|
152
|
-
*/
|
|
153
|
-
auth: {
|
|
154
|
-
/**
|
|
155
|
-
* Mocks the `auth.oauthRedirect()` method.
|
|
156
|
-
* This method returns `null` by default as it performs window navigation.
|
|
157
|
-
* @param options Optional response customization.
|
|
158
|
-
* @returns A stub reference that can be used to restore the original behavior.
|
|
159
|
-
*/
|
|
160
|
-
oauthRedirect: (options?: MockResponseOptions) => StubReference;
|
|
177
|
+
me: (init?: MockResult) => Promise<void>;
|
|
161
178
|
};
|
|
162
179
|
/**
|
|
163
180
|
* Files API mocks.
|
|
@@ -166,153 +183,86 @@ export declare class SdkMock {
|
|
|
166
183
|
/**
|
|
167
184
|
* Mocks the `file.list()` method.
|
|
168
185
|
*/
|
|
169
|
-
list: (
|
|
186
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
170
187
|
/**
|
|
171
188
|
* Mocks the `file.createMeta()` method.
|
|
172
189
|
*/
|
|
173
|
-
createMeta: (
|
|
190
|
+
createMeta: (init?: MockResult) => Promise<void>;
|
|
174
191
|
/**
|
|
175
192
|
* Mocks the `file.createMedia()` method.
|
|
176
193
|
*/
|
|
177
|
-
createMedia: (
|
|
194
|
+
createMedia: (init?: MockResult) => Promise<void>;
|
|
178
195
|
/**
|
|
179
196
|
* Mocks the `file.create()` method.
|
|
180
197
|
*/
|
|
181
|
-
create: (
|
|
198
|
+
create: (init?: MockResult) => Promise<void>;
|
|
182
199
|
/**
|
|
183
200
|
* Mocks the `file.createFolder()` method.
|
|
184
201
|
*/
|
|
185
|
-
createFolder: (
|
|
202
|
+
createFolder: (init?: MockResult) => Promise<void>;
|
|
186
203
|
/**
|
|
187
204
|
* Mocks the `file.read()` method.
|
|
188
205
|
*/
|
|
189
|
-
read: (
|
|
206
|
+
read: (init?: MockResult) => Promise<void>;
|
|
190
207
|
/**
|
|
191
208
|
* Mocks the `file.readMedia()` method.
|
|
192
209
|
*/
|
|
193
|
-
readMedia: (
|
|
210
|
+
readMedia: (init?: MockResult) => Promise<void>;
|
|
194
211
|
/**
|
|
195
212
|
* Mocks the `file.readBulk()` method.
|
|
196
213
|
*/
|
|
197
|
-
readBulk: (
|
|
214
|
+
readBulk: (init?: MockListResult) => Promise<void>;
|
|
198
215
|
/**
|
|
199
216
|
* Mocks the `file.patch()` method.
|
|
200
217
|
*/
|
|
201
|
-
patch: (
|
|
218
|
+
patch: (init?: MockResult) => Promise<void>;
|
|
202
219
|
/**
|
|
203
220
|
* Mocks the `file.patchMedia()` method.
|
|
204
221
|
*/
|
|
205
|
-
patchMedia: (
|
|
222
|
+
patchMedia: (init?: MockResult) => Promise<void>;
|
|
206
223
|
/**
|
|
207
224
|
* Mocks the `file.delete()` method.
|
|
208
225
|
*/
|
|
209
|
-
delete: (
|
|
226
|
+
delete: (init?: MockResult) => Promise<void>;
|
|
210
227
|
/**
|
|
211
228
|
* Mocks the `file.deleteBulk()` method.
|
|
212
229
|
*/
|
|
213
|
-
deleteBulk: (
|
|
230
|
+
deleteBulk: (init?: MockResult) => Promise<void>;
|
|
214
231
|
/**
|
|
215
232
|
* Mocks the `file.patchUsers()` method.
|
|
216
233
|
*/
|
|
217
|
-
patchUsers: (
|
|
234
|
+
patchUsers: (init?: MockResult) => Promise<void>;
|
|
218
235
|
/**
|
|
219
236
|
* Mocks the `file.addUser()` method.
|
|
220
237
|
*/
|
|
221
|
-
addUser: (
|
|
238
|
+
addUser: (init?: MockResult) => Promise<void>;
|
|
222
239
|
/**
|
|
223
240
|
* Mocks the `file.removeUser()` method.
|
|
224
241
|
*/
|
|
225
|
-
removeUser: (
|
|
242
|
+
removeUser: (init?: MockResult) => Promise<void>;
|
|
226
243
|
/**
|
|
227
244
|
* Mocks the `file.listUsers()` method.
|
|
228
245
|
*/
|
|
229
|
-
listUsers: (
|
|
246
|
+
listUsers: (init?: MockListResult) => Promise<void>;
|
|
230
247
|
/**
|
|
231
248
|
* Mocks the `file.breadcrumbs()` method.
|
|
232
249
|
*/
|
|
233
|
-
breadcrumbs: (
|
|
250
|
+
breadcrumbs: (init?: MockListResult) => Promise<void>;
|
|
234
251
|
};
|
|
235
252
|
/**
|
|
236
253
|
* Shared API mocks.
|
|
237
254
|
*/
|
|
238
255
|
shared: {
|
|
239
|
-
list: (
|
|
256
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
240
257
|
};
|
|
241
258
|
/**
|
|
242
259
|
* Trash API mocks.
|
|
243
260
|
*/
|
|
244
261
|
trash: {
|
|
245
|
-
list: (
|
|
246
|
-
delete: (
|
|
247
|
-
restore: (
|
|
248
|
-
empty: (
|
|
262
|
+
list: (init?: MockListResult) => Promise<void>;
|
|
263
|
+
delete: (init?: MockResult) => Promise<void>;
|
|
264
|
+
restore: (init?: MockResult) => Promise<void>;
|
|
265
|
+
empty: (init?: MockResult) => Promise<void>;
|
|
249
266
|
};
|
|
250
|
-
/**
|
|
251
|
-
* Restores all stubs created by this mocker.
|
|
252
|
-
*/
|
|
253
|
-
restore(): void;
|
|
254
|
-
/**
|
|
255
|
-
* Creates a stub for a specific SDK method.
|
|
256
|
-
* @param api The API name (e.g., 'organizations', 'groups', 'user', 'auth').
|
|
257
|
-
* @param method The method name to stub.
|
|
258
|
-
* @param implementation The stub implementation that returns the mocked data.
|
|
259
|
-
* @returns A stub reference.
|
|
260
|
-
*/
|
|
261
|
-
private createStub;
|
|
262
|
-
/**
|
|
263
|
-
* Creates a response object from data and options.
|
|
264
|
-
* @param defaultData Default data to return if not overridden.
|
|
265
|
-
* @param options Response options.
|
|
266
|
-
* @returns The final data to return (for non-HTTP responses) or IStoreResponse (for HTTP responses).
|
|
267
|
-
*/
|
|
268
|
-
private createResponse;
|
|
269
|
-
/**
|
|
270
|
-
* Generates a random organization object.
|
|
271
|
-
*/
|
|
272
|
-
private generateOrganization;
|
|
273
|
-
/**
|
|
274
|
-
* Generates a random group object.
|
|
275
|
-
*/
|
|
276
|
-
private generateGroup;
|
|
277
|
-
/**
|
|
278
|
-
* Generates a random user object.
|
|
279
|
-
*/
|
|
280
|
-
private generateUser;
|
|
281
|
-
/**
|
|
282
|
-
* Generates a random file meta object.
|
|
283
|
-
*/
|
|
284
|
-
private generateFile;
|
|
285
|
-
/**
|
|
286
|
-
* Generates a random folder meta object.
|
|
287
|
-
*/
|
|
288
|
-
private generateFolder;
|
|
289
|
-
/**
|
|
290
|
-
* Generates a random media patch revision object.
|
|
291
|
-
*/
|
|
292
|
-
private generateMediaPatchRevision;
|
|
293
|
-
/**
|
|
294
|
-
* Generates a random breadcrumbs list.
|
|
295
|
-
*/
|
|
296
|
-
private generateBreadcrumbs;
|
|
297
|
-
/**
|
|
298
|
-
* Generates a random invitation object.
|
|
299
|
-
*/
|
|
300
|
-
private generateInvitation;
|
|
301
|
-
/**
|
|
302
|
-
* Generates a random trash entry.
|
|
303
|
-
*/
|
|
304
|
-
private generateTrashEntry;
|
|
305
|
-
/**
|
|
306
|
-
* Generates a random string.
|
|
307
|
-
*/
|
|
308
|
-
private randomString;
|
|
309
|
-
/**
|
|
310
|
-
* Returns a random choice from an array.
|
|
311
|
-
*/
|
|
312
|
-
private randomChoice;
|
|
313
|
-
/**
|
|
314
|
-
* Generates a random hex color.
|
|
315
|
-
*/
|
|
316
|
-
private randomColor;
|
|
317
267
|
}
|
|
318
268
|
//# sourceMappingURL=SdkMock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkMock.d.ts","sourceRoot":"","sources":["../../../src/sdk/SdkMock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SdkMock.d.ts","sourceRoot":"","sources":["../../../src/sdk/SdkMock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAe,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAS9G,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAEzD,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,UAAU;IAChD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,qBAAa,OAAO;IAIC,OAAO,CAAC,EAAE,kBAAkB;IAH/C,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,GAAG,eAAqB;gBAEL,OAAO,CAAC,EAAE,kBAAkB,YAAA;IAE/C;;;OAGG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,IAAI,IAAI,IAAI,WAAW,CAKtB;IAED,SAAS,CAAC,kBAAkB,CAAC,IAAI,GAAE,cAAmB,GAAG,MAA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