testit-js-commons 3.7.9 → 4.0.0

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.
Files changed (45) hide show
  1. package/lib/common/types/config.type.d.ts +8 -0
  2. package/lib/common/utils/index.d.ts +1 -0
  3. package/lib/common/utils/index.js +1 -0
  4. package/lib/common/utils/tms-load-test-run-debug.d.ts +3 -0
  5. package/lib/common/utils/tms-load-test-run-debug.js +20 -0
  6. package/lib/helpers/config/config.helper.js +14 -6
  7. package/lib/helpers/config/config.helper.test.d.ts +1 -0
  8. package/lib/helpers/config/config.helper.test.js +40 -0
  9. package/lib/services/attachments/attachments.service.js +89 -22
  10. package/lib/services/index.d.ts +1 -0
  11. package/lib/services/index.js +1 -0
  12. package/lib/services/syncstorage/index.d.ts +2 -0
  13. package/lib/services/syncstorage/index.js +18 -0
  14. package/lib/services/syncstorage/syncstorage.runner.d.ts +49 -0
  15. package/lib/services/syncstorage/syncstorage.runner.js +350 -0
  16. package/lib/services/syncstorage/syncstorage.runner.test.d.ts +1 -0
  17. package/lib/services/syncstorage/syncstorage.runner.test.js +78 -0
  18. package/lib/services/syncstorage/syncstorage.type.d.ts +21 -0
  19. package/lib/services/syncstorage/syncstorage.type.js +19 -0
  20. package/lib/services/testruns/testruns.converter.d.ts +2 -0
  21. package/lib/services/testruns/testruns.converter.js +3 -0
  22. package/lib/services/testruns/testruns.service.d.ts +2 -0
  23. package/lib/services/testruns/testruns.service.js +62 -1
  24. package/lib/services/testruns/testruns.type.d.ts +2 -0
  25. package/lib/strategy/base.strategy.d.ts +4 -0
  26. package/lib/strategy/base.strategy.js +97 -2
  27. package/lib/sync-storage/dist/ApiClient.js +655 -0
  28. package/lib/sync-storage/dist/api/CompletionApi.js +114 -0
  29. package/lib/sync-storage/dist/api/HealthApi.js +69 -0
  30. package/lib/sync-storage/dist/api/SystemApi.js +69 -0
  31. package/lib/sync-storage/dist/api/TestResultsApi.js +122 -0
  32. package/lib/sync-storage/dist/api/WorkersApi.js +113 -0
  33. package/lib/sync-storage/dist/index.js +118 -0
  34. package/lib/sync-storage/dist/model/CompletionResponse.js +86 -0
  35. package/lib/sync-storage/dist/model/HealthStatusResponse.js +86 -0
  36. package/lib/sync-storage/dist/model/InProgressPublishedResponse.js +74 -0
  37. package/lib/sync-storage/dist/model/RegisterRequest.js +114 -0
  38. package/lib/sync-storage/dist/model/RegisterResponse.js +122 -0
  39. package/lib/sync-storage/dist/model/SetWorkerStatusRequest.js +102 -0
  40. package/lib/sync-storage/dist/model/SetWorkerStatusResponse.js +90 -0
  41. package/lib/sync-storage/dist/model/ShutdownResponse.js +90 -0
  42. package/lib/sync-storage/dist/model/TestResultCutApiModel.js +122 -0
  43. package/lib/sync-storage/dist/model/TestResultSaveResponse.js +90 -0
  44. package/lib/sync-storage/index.d.ts +772 -0
  45. package/package.json +7 -4
@@ -0,0 +1,772 @@
1
+ declare module 'sync-storage-client/api/CompletionApi' {
2
+ /**
3
+ * Completion service.
4
+ * @module api/CompletionApi
5
+ * @version 0.1.0
6
+ */
7
+ export default class CompletionApi {
8
+ /**
9
+ * Constructs a new CompletionApi.
10
+ * @alias module:api/CompletionApi
11
+ * @class
12
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
13
+ * default to {@link module:ApiClient#instance} if unspecified.
14
+ */
15
+ constructor(apiClient?: any);
16
+ apiClient: any;
17
+ /**
18
+ * Force completion of a test run
19
+ * Force processing completion for a specific test run.
20
+ * @param {String} testRunId Test Run ID
21
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CompletionResponse} and HTTP response
22
+ */
23
+ forceCompletionGetWithHttpInfo(testRunId: string): Promise<any>;
24
+ /**
25
+ * Force completion of a test run
26
+ * Force processing completion for a specific test run.
27
+ * @param {String} testRunId Test Run ID
28
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CompletionResponse}
29
+ */
30
+ forceCompletionGet(testRunId: string): Promise<any>;
31
+ /**
32
+ * Wait for completion
33
+ * Wait until processing is completed for a test run.
34
+ * @param {String} testRunId Test Run ID
35
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CompletionResponse} and HTTP response
36
+ */
37
+ waitCompletionGetWithHttpInfo(testRunId: string): Promise<any>;
38
+ /**
39
+ * Wait for completion
40
+ * Wait until processing is completed for a test run.
41
+ * @param {String} testRunId Test Run ID
42
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CompletionResponse}
43
+ */
44
+ waitCompletionGet(testRunId: string): Promise<any>;
45
+ }
46
+
47
+ }
48
+ declare module 'sync-storage-client/api/HealthApi' {
49
+ /**
50
+ * Health service.
51
+ * @module api/HealthApi
52
+ * @version 0.1.0
53
+ */
54
+ export default class HealthApi {
55
+ /**
56
+ * Constructs a new HealthApi.
57
+ * @alias module:api/HealthApi
58
+ * @class
59
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
60
+ * default to {@link module:ApiClient#instance} if unspecified.
61
+ */
62
+ constructor(apiClient?: any);
63
+ apiClient: any;
64
+ /**
65
+ * Health check
66
+ * Get the current health status of the service.
67
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/HealthStatusResponse} and HTTP response
68
+ */
69
+ healthGetWithHttpInfo(): Promise<any>;
70
+ /**
71
+ * Health check
72
+ * Get the current health status of the service.
73
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/HealthStatusResponse}
74
+ */
75
+ healthGet(): Promise<any>;
76
+ }
77
+
78
+ }
79
+ declare module 'sync-storage-client/api/SystemApi' {
80
+ /**
81
+ * System service.
82
+ * @module api/SystemApi
83
+ * @version 0.1.0
84
+ */
85
+ export default class SystemApi {
86
+ /**
87
+ * Constructs a new SystemApi.
88
+ * @alias module:api/SystemApi
89
+ * @class
90
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
91
+ * default to {@link module:ApiClient#instance} if unspecified.
92
+ */
93
+ constructor(apiClient?: any);
94
+ apiClient: any;
95
+ /**
96
+ * Shutdown service
97
+ * Initiate shutdown of the service.
98
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ShutdownResponse} and HTTP response
99
+ */
100
+ shutdownPostWithHttpInfo(): Promise<any>;
101
+ /**
102
+ * Shutdown service
103
+ * Initiate shutdown of the service.
104
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ShutdownResponse}
105
+ */
106
+ shutdownPost(): Promise<any>;
107
+ }
108
+
109
+ }
110
+ declare module 'sync-storage-client/api/TestResultsApi' {
111
+ /**
112
+ * TestResults service.
113
+ * @module api/TestResultsApi
114
+ * @version 0.1.0
115
+ */
116
+ export default class TestResultsApi {
117
+ /**
118
+ * Constructs a new TestResultsApi.
119
+ * @alias module:api/TestResultsApi
120
+ * @class
121
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
122
+ * default to {@link module:ApiClient#instance} if unspecified.
123
+ */
124
+ constructor(apiClient?: any);
125
+ apiClient: any;
126
+ /**
127
+ * Get in-progress published state
128
+ * Get whether in-progress status has already been published by master node.
129
+ * @param {String} testRunId Test Run ID
130
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InProgressPublishedResponse} and HTTP response
131
+ */
132
+ inProgressPublishedGetWithHttpInfo(testRunId: string): Promise<any>;
133
+ /**
134
+ * Get in-progress published state
135
+ * Get whether in-progress status has already been published by master node.
136
+ * @param {String} testRunId Test Run ID
137
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InProgressPublishedResponse}
138
+ */
139
+ inProgressPublishedGet(testRunId: string): Promise<any>;
140
+ /**
141
+ * Save in-progress test result
142
+ * Save a test result with InProgress status.
143
+ * @param {String} testRunId Test Run ID
144
+ * @param {module:model/TestResultCutApiModel} testResultCutApiModel
145
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TestResultSaveResponse} and HTTP response
146
+ */
147
+ inProgressTestResultPostWithHttpInfo(testRunId: string, testResultCutApiModel: any): Promise<any>;
148
+ /**
149
+ * Save in-progress test result
150
+ * Save a test result with InProgress status.
151
+ * @param {String} testRunId Test Run ID
152
+ * @param {module:model/TestResultCutApiModel} testResultCutApiModel
153
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TestResultSaveResponse}
154
+ */
155
+ inProgressTestResultPost(testRunId: string, testResultCutApiModel: any): Promise<any>;
156
+ }
157
+
158
+ }
159
+ declare module 'sync-storage-client/api/WorkersApi' {
160
+ /**
161
+ * Workers service.
162
+ * @module api/WorkersApi
163
+ * @version 0.1.0
164
+ */
165
+ export default class WorkersApi {
166
+ /**
167
+ * Constructs a new WorkersApi.
168
+ * @alias module:api/WorkersApi
169
+ * @class
170
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
171
+ * default to {@link module:ApiClient#instance} if unspecified.
172
+ */
173
+ constructor(apiClient?: any);
174
+ apiClient: any;
175
+ /**
176
+ * Register a new worker
177
+ * Register a new worker with the sync storage service.
178
+ * @param {module:model/RegisterRequest} registerRequest
179
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegisterResponse} and HTTP response
180
+ */
181
+ registerPostWithHttpInfo(registerRequest: any): Promise<any>;
182
+ /**
183
+ * Register a new worker
184
+ * Register a new worker with the sync storage service.
185
+ * @param {module:model/RegisterRequest} registerRequest
186
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegisterResponse}
187
+ */
188
+ registerPost(registerRequest: any): Promise<any>;
189
+ /**
190
+ * Set worker status
191
+ * Set the status of a worker by its PID.
192
+ * @param {module:model/SetWorkerStatusRequest} setWorkerStatusRequest
193
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SetWorkerStatusResponse} and HTTP response
194
+ */
195
+ setWorkerStatusPostWithHttpInfo(setWorkerStatusRequest: any): Promise<any>;
196
+ /**
197
+ * Set worker status
198
+ * Set the status of a worker by its PID.
199
+ * @param {module:model/SetWorkerStatusRequest} setWorkerStatusRequest
200
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SetWorkerStatusResponse}
201
+ */
202
+ setWorkerStatusPost(setWorkerStatusRequest: any): Promise<any>;
203
+ }
204
+
205
+ }
206
+ declare module 'sync-storage-client/ApiClient' {
207
+ export default ApiClient;
208
+ /**
209
+ * @module ApiClient
210
+ * @version 0.1.0
211
+ */
212
+ /**
213
+ * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
214
+ * application to use this class directly - the *Api and model classes provide the public API for the service. The
215
+ * contents of this file should be regarded as internal but are documented for completeness.
216
+ * @alias module:ApiClient
217
+ * @class
218
+ */
219
+ class ApiClient {
220
+ /**
221
+ * Returns a boolean indicating if the parameter could be JSON.stringified
222
+ * @param param The actual parameter
223
+ * @returns {Boolean} Flag indicating if <code>param</code> can be JSON.stringified
224
+ */
225
+ static canBeJsonified(str: any): boolean;
226
+ /**
227
+ * Parses an ISO-8601 string representation or epoch representation of a date value.
228
+ * @param {String} str The date value as a string.
229
+ * @returns {Date} The parsed date object.
230
+ */
231
+ static parseDate(str: string): Date;
232
+ /**
233
+ * Converts a value to the specified type.
234
+ * @param {(String|Object)} data The data to convert, as a string or object.
235
+ * @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
236
+ * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
237
+ * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
238
+ * all properties on <code>data<code> will be converted to this type.
239
+ * @returns An instance of the specified type or null or undefined if data is null or undefined.
240
+ */
241
+ static convertToType(data: (string | any), type: (string | Array<string> | any | Function)): any;
242
+ /**
243
+ * Constructs a new map or array model from REST data.
244
+ * @param data {Object|Array} The REST data.
245
+ * @param obj {Object|Array} The target object or array.
246
+ */
247
+ static constructFromObject(data: any | any[], obj: any | any[], itemType: any): void;
248
+ /**
249
+ * The base URL against which to resolve every API call's (relative) path.
250
+ * Overrides the default value set in spec file if present
251
+ * @param {String} basePath
252
+ */
253
+ constructor(basePath?: string);
254
+ /**
255
+ * The base URL against which to resolve every API call's (relative) path.
256
+ * @type {String}
257
+ * @default http://localhost
258
+ */
259
+ basePath: string;
260
+ /**
261
+ * The authentication methods to be included for all API calls.
262
+ * @type {Array.<String>}
263
+ */
264
+ authentications: Array<string>;
265
+ /**
266
+ * The default HTTP headers to be included for all API calls.
267
+ * @type {Array.<String>}
268
+ * @default {}
269
+ */
270
+ defaultHeaders: Array<string>;
271
+ /**
272
+ * The default HTTP timeout for all API calls.
273
+ * @type {Number}
274
+ * @default 60000
275
+ */
276
+ timeout: number;
277
+ /**
278
+ * If set to false an additional timestamp parameter is added to all API GET calls to
279
+ * prevent browser caching
280
+ * @type {Boolean}
281
+ * @default true
282
+ */
283
+ cache: boolean;
284
+ /**
285
+ * If set to true, the client will save the cookies from each server
286
+ * response, and return them in the next request.
287
+ * @default false
288
+ */
289
+ enableCookies: boolean;
290
+ agent: any;
291
+ requestAgent: any;
292
+ plugins: any;
293
+ /**
294
+ * Returns a string representation for an actual parameter.
295
+ * @param param The actual parameter.
296
+ * @returns {String} The string representation of <code>param</code>.
297
+ */
298
+ paramToString(param: any): string;
299
+ /**
300
+ * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
301
+ * NOTE: query parameters are not handled here.
302
+ * @param {String} path The path to append to the base URL.
303
+ * @param {Object} pathParams The parameter values to append.
304
+ * @param {String} apiBasePath Base path defined in the path, operation level to override the default one
305
+ * @returns {String} The encoded path with parameter values substituted.
306
+ */
307
+ buildUrl(path: string, pathParams: any, apiBasePath: string): string;
308
+ /**
309
+ * Checks whether the given content type represents JSON.<br>
310
+ * JSON content type examples:<br>
311
+ * <ul>
312
+ * <li>application/json</li>
313
+ * <li>application/json; charset=UTF8</li>
314
+ * <li>APPLICATION/JSON</li>
315
+ * </ul>
316
+ * @param {String} contentType The MIME content type to check.
317
+ * @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
318
+ */
319
+ isJsonMime(contentType: string): boolean;
320
+ /**
321
+ * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
322
+ * @param {Array.<String>} contentTypes
323
+ * @returns {String} The chosen content type, preferring JSON.
324
+ */
325
+ jsonPreferredMime(contentTypes: Array<string>): string;
326
+ /**
327
+ * Checks whether the given parameter value represents file-like content.
328
+ * @param param The parameter to check.
329
+ * @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
330
+ */
331
+ isFileParam(param: any): boolean;
332
+ /**
333
+ * Normalizes parameter values:
334
+ * <ul>
335
+ * <li>remove nils</li>
336
+ * <li>keep files and arrays</li>
337
+ * <li>format to string with `paramToString` for other cases</li>
338
+ * </ul>
339
+ * @param {Object.<String, Object>} params The parameters as object properties.
340
+ * @returns {Object.<String, Object>} normalized parameters.
341
+ */
342
+ normalizeParams(params: any): any;
343
+ /**
344
+ * Builds a string representation of an array-type actual parameter, according to the given collection format.
345
+ * @param {Array} param An array parameter.
346
+ * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
347
+ * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
348
+ * <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
349
+ */
350
+ buildCollectionParam(param: any[], collectionFormat: any): string | any[];
351
+ /**
352
+ * Applies authentication headers to the request.
353
+ * @param {Object} request The request object created by a <code>superagent()</code> call.
354
+ * @param {Array.<String>} authNames An array of authentication method names.
355
+ */
356
+ applyAuthToRequest(request: any, authNames: Array<string>): void;
357
+ /**
358
+ * Deserializes an HTTP response body into a value of the specified type.
359
+ * @param {Object} response A SuperAgent response object.
360
+ * @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types
361
+ * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
362
+ * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
363
+ * all properties on <code>data<code> will be converted to this type.
364
+ * @returns A value of the specified type.
365
+ */
366
+ deserialize(response: any, returnType: (string | Array<string> | any | Function)): any;
367
+ /**
368
+ * Invokes the REST service using the supplied settings and parameters.
369
+ * @param {String} path The base URL to invoke.
370
+ * @param {String} httpMethod The HTTP method to use.
371
+ * @param {Object.<String, String>} pathParams A map of path parameters and their values.
372
+ * @param {Object.<String, Object>} queryParams A map of query parameters and their values.
373
+ * @param {Object.<String, Object>} headerParams A map of header parameters and their values.
374
+ * @param {Object.<String, Object>} formParams A map of form parameters and their values.
375
+ * @param {Object} bodyParam The value to pass as the request body.
376
+ * @param {Array.<String>} authNames An array of authentication type names.
377
+ * @param {Array.<String>} contentTypes An array of request MIME types.
378
+ * @param {Array.<String>} accepts An array of acceptable response MIME types.
379
+ * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
380
+ * constructor for a complex type.
381
+ * @param {String} apiBasePath base path defined in the operation/path level to override the default one
382
+ * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
383
+ */
384
+ callApi(path: string, httpMethod: string, pathParams: any, queryParams: any, headerParams: any, formParams: any, bodyParam: any, authNames: Array<string>, contentTypes: Array<string>, accepts: Array<string>, returnType: (string | any[] ), apiBasePath: string): Promise<any>;
385
+ /**
386
+ * Gets an array of host settings
387
+ * @returns An array of host settings
388
+ */
389
+ hostSettings(): {
390
+ url: string;
391
+ description: string;
392
+ }[];
393
+ getBasePathFromSettings(index: any, variables?: {}): string;
394
+ }
395
+ namespace ApiClient {
396
+ namespace CollectionFormatEnum {
397
+ let CSV: string;
398
+ let SSV: string;
399
+ let TSV: string;
400
+ let PIPES: string;
401
+ let MULTI: string;
402
+ }
403
+ /**
404
+ * *
405
+ */
406
+ type CollectionFormatEnum = string;
407
+ let instance: any;
408
+ }
409
+
410
+ }
411
+ declare module 'sync-storage-client/index' {
412
+ import ApiClient from 'sync-storage-client/ApiClient';
413
+ import CompletionResponse from 'sync-storage-client/model/CompletionResponse';
414
+ import HealthStatusResponse from 'sync-storage-client/model/HealthStatusResponse';
415
+ import InProgressPublishedResponse from 'sync-storage-client/model/InProgressPublishedResponse';
416
+ import RegisterRequest from 'sync-storage-client/model/RegisterRequest';
417
+ import RegisterResponse from 'sync-storage-client/model/RegisterResponse';
418
+ import SetWorkerStatusRequest from 'sync-storage-client/model/SetWorkerStatusRequest';
419
+ import SetWorkerStatusResponse from 'sync-storage-client/model/SetWorkerStatusResponse';
420
+ import ShutdownResponse from 'sync-storage-client/model/ShutdownResponse';
421
+ import TestResultCutApiModel from 'sync-storage-client/model/TestResultCutApiModel';
422
+ import TestResultSaveResponse from 'sync-storage-client/model/TestResultSaveResponse';
423
+ import CompletionApi from 'sync-storage-client/api/CompletionApi';
424
+ import HealthApi from 'sync-storage-client/api/HealthApi';
425
+ import SystemApi from 'sync-storage-client/api/SystemApi';
426
+ import TestResultsApi from 'sync-storage-client/api/TestResultsApi';
427
+ import WorkersApi from 'sync-storage-client/api/WorkersApi';
428
+ export { ApiClient, CompletionResponse, HealthStatusResponse, InProgressPublishedResponse, RegisterRequest, RegisterResponse, SetWorkerStatusRequest, SetWorkerStatusResponse, ShutdownResponse, TestResultCutApiModel, TestResultSaveResponse, CompletionApi, HealthApi, SystemApi, TestResultsApi, WorkersApi };
429
+
430
+ }
431
+ declare module 'sync-storage-client/model/CompletionResponse' {
432
+ export default CompletionResponse;
433
+ /**
434
+ * The CompletionResponse model module.
435
+ * @module model/CompletionResponse
436
+ * @version 0.1.0
437
+ */
438
+ class CompletionResponse {
439
+ /**
440
+ * Initializes the fields of this object.
441
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
442
+ * Only for internal use.
443
+ */
444
+ static initialize(obj: any): void;
445
+ /**
446
+ * Constructs a <code>CompletionResponse</code> from a plain JavaScript object, optionally creating a new instance.
447
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
448
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
449
+ * @param {module:model/CompletionResponse} obj Optional instance to populate.
450
+ * @return {module:model/CompletionResponse} The populated <code>CompletionResponse</code> instance.
451
+ */
452
+ static constructFromObject(data: any, obj: any): any;
453
+ /**
454
+ * Validates the JSON data with respect to <code>CompletionResponse</code>.
455
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
456
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CompletionResponse</code>.
457
+ */
458
+ static validateJSON(data: any): boolean;
459
+ completed: any;
460
+ message: any;
461
+ }
462
+
463
+ }
464
+ declare module 'sync-storage-client/model/HealthStatusResponse' {
465
+ export default HealthStatusResponse;
466
+ /**
467
+ * The HealthStatusResponse model module.
468
+ * @module model/HealthStatusResponse
469
+ * @version 0.1.0
470
+ */
471
+ class HealthStatusResponse {
472
+ /**
473
+ * Initializes the fields of this object.
474
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
475
+ * Only for internal use.
476
+ */
477
+ static initialize(obj: any): void;
478
+ /**
479
+ * Constructs a <code>HealthStatusResponse</code> from a plain JavaScript object, optionally creating a new instance.
480
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
481
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
482
+ * @param {module:model/HealthStatusResponse} obj Optional instance to populate.
483
+ * @return {module:model/HealthStatusResponse} The populated <code>HealthStatusResponse</code> instance.
484
+ */
485
+ static constructFromObject(data: any, obj: any): any;
486
+ /**
487
+ * Validates the JSON data with respect to <code>HealthStatusResponse</code>.
488
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
489
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>HealthStatusResponse</code>.
490
+ */
491
+ static validateJSON(data: any): boolean;
492
+ status: any;
493
+ last_update: any;
494
+ }
495
+
496
+ }
497
+ declare module 'sync-storage-client/model/InProgressPublishedResponse' {
498
+ export default InProgressPublishedResponse;
499
+ /**
500
+ * The InProgressPublishedResponse model module.
501
+ * @module model/InProgressPublishedResponse
502
+ * @version 0.1.0
503
+ */
504
+ class InProgressPublishedResponse {
505
+ /**
506
+ * Initializes the fields of this object.
507
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
508
+ * Only for internal use.
509
+ */
510
+ static initialize(obj: any): void;
511
+ /**
512
+ * Constructs a <code>InProgressPublishedResponse</code> from a plain JavaScript object, optionally creating a new instance.
513
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
514
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
515
+ * @param {module:model/InProgressPublishedResponse} obj Optional instance to populate.
516
+ * @return {module:model/InProgressPublishedResponse} The populated <code>InProgressPublishedResponse</code> instance.
517
+ */
518
+ static constructFromObject(data: any, obj: any): any;
519
+ /**
520
+ * Validates the JSON data with respect to <code>InProgressPublishedResponse</code>.
521
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
522
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>InProgressPublishedResponse</code>.
523
+ */
524
+ static validateJSON(data: any): boolean;
525
+ published: any;
526
+ }
527
+
528
+ }
529
+ declare module 'sync-storage-client/model/RegisterRequest' {
530
+ export default RegisterRequest;
531
+ /**
532
+ * The RegisterRequest model module.
533
+ * @module model/RegisterRequest
534
+ * @version 0.1.0
535
+ */
536
+ class RegisterRequest {
537
+ /**
538
+ * Initializes the fields of this object.
539
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
540
+ * Only for internal use.
541
+ */
542
+ static initialize(obj: any): void;
543
+ /**
544
+ * Constructs a <code>RegisterRequest</code> from a plain JavaScript object, optionally creating a new instance.
545
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
546
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
547
+ * @param {module:model/RegisterRequest} obj Optional instance to populate.
548
+ * @return {module:model/RegisterRequest} The populated <code>RegisterRequest</code> instance.
549
+ */
550
+ static constructFromObject(data: any, obj: any): any;
551
+ /**
552
+ * Validates the JSON data with respect to <code>RegisterRequest</code>.
553
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
554
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RegisterRequest</code>.
555
+ */
556
+ static validateJSON(data: any): boolean;
557
+ pid: any;
558
+ testRunId: any;
559
+ baseUrl: any;
560
+ privateToken: any;
561
+ }
562
+
563
+ }
564
+ declare module 'sync-storage-client/model/RegisterResponse' {
565
+ export default RegisterResponse;
566
+ /**
567
+ * The RegisterResponse model module.
568
+ * @module model/RegisterResponse
569
+ * @version 0.1.0
570
+ */
571
+ class RegisterResponse {
572
+ /**
573
+ * Initializes the fields of this object.
574
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
575
+ * Only for internal use.
576
+ */
577
+ static initialize(obj: any): void;
578
+ /**
579
+ * Constructs a <code>RegisterResponse</code> from a plain JavaScript object, optionally creating a new instance.
580
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
581
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
582
+ * @param {module:model/RegisterResponse} obj Optional instance to populate.
583
+ * @return {module:model/RegisterResponse} The populated <code>RegisterResponse</code> instance.
584
+ */
585
+ static constructFromObject(data: any, obj: any): any;
586
+ /**
587
+ * Validates the JSON data with respect to <code>RegisterResponse</code>.
588
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
589
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>RegisterResponse</code>.
590
+ */
591
+ static validateJSON(data: any): boolean;
592
+ status: any;
593
+ message: any;
594
+ pid: any;
595
+ testRunId: any;
596
+ is_master: any;
597
+ }
598
+
599
+ }
600
+ declare module 'sync-storage-client/model/SetWorkerStatusRequest' {
601
+ export default SetWorkerStatusRequest;
602
+ /**
603
+ * The SetWorkerStatusRequest model module.
604
+ * @module model/SetWorkerStatusRequest
605
+ * @version 0.1.0
606
+ */
607
+ class SetWorkerStatusRequest {
608
+ /**
609
+ * Initializes the fields of this object.
610
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
611
+ * Only for internal use.
612
+ */
613
+ static initialize(obj: any): void;
614
+ /**
615
+ * Constructs a <code>SetWorkerStatusRequest</code> from a plain JavaScript object, optionally creating a new instance.
616
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
617
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
618
+ * @param {module:model/SetWorkerStatusRequest} obj Optional instance to populate.
619
+ * @return {module:model/SetWorkerStatusRequest} The populated <code>SetWorkerStatusRequest</code> instance.
620
+ */
621
+ static constructFromObject(data: any, obj: any): any;
622
+ /**
623
+ * Validates the JSON data with respect to <code>SetWorkerStatusRequest</code>.
624
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
625
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SetWorkerStatusRequest</code>.
626
+ */
627
+ static validateJSON(data: any): boolean;
628
+ pid: any;
629
+ status: any;
630
+ testRunId: any;
631
+ }
632
+
633
+ }
634
+ declare module 'sync-storage-client/model/SetWorkerStatusResponse' {
635
+ export default SetWorkerStatusResponse;
636
+ /**
637
+ * The SetWorkerStatusResponse model module.
638
+ * @module model/SetWorkerStatusResponse
639
+ * @version 0.1.0
640
+ */
641
+ class SetWorkerStatusResponse {
642
+ /**
643
+ * Initializes the fields of this object.
644
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
645
+ * Only for internal use.
646
+ */
647
+ static initialize(obj: any): void;
648
+ /**
649
+ * Constructs a <code>SetWorkerStatusResponse</code> from a plain JavaScript object, optionally creating a new instance.
650
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
651
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
652
+ * @param {module:model/SetWorkerStatusResponse} obj Optional instance to populate.
653
+ * @return {module:model/SetWorkerStatusResponse} The populated <code>SetWorkerStatusResponse</code> instance.
654
+ */
655
+ static constructFromObject(data: any, obj: any): any;
656
+ /**
657
+ * Validates the JSON data with respect to <code>SetWorkerStatusResponse</code>.
658
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
659
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SetWorkerStatusResponse</code>.
660
+ */
661
+ static validateJSON(data: any): boolean;
662
+ status: any;
663
+ message: any;
664
+ }
665
+
666
+ }
667
+ declare module 'sync-storage-client/model/ShutdownResponse' {
668
+ export default ShutdownResponse;
669
+ /**
670
+ * The ShutdownResponse model module.
671
+ * @module model/ShutdownResponse
672
+ * @version 0.1.0
673
+ */
674
+ class ShutdownResponse {
675
+ /**
676
+ * Initializes the fields of this object.
677
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
678
+ * Only for internal use.
679
+ */
680
+ static initialize(obj: any): void;
681
+ /**
682
+ * Constructs a <code>ShutdownResponse</code> from a plain JavaScript object, optionally creating a new instance.
683
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
684
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
685
+ * @param {module:model/ShutdownResponse} obj Optional instance to populate.
686
+ * @return {module:model/ShutdownResponse} The populated <code>ShutdownResponse</code> instance.
687
+ */
688
+ static constructFromObject(data: any, obj: any): any;
689
+ /**
690
+ * Validates the JSON data with respect to <code>ShutdownResponse</code>.
691
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
692
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ShutdownResponse</code>.
693
+ */
694
+ static validateJSON(data: any): boolean;
695
+ status: any;
696
+ message: any;
697
+ }
698
+
699
+ }
700
+ declare module 'sync-storage-client/model/TestResultCutApiModel' {
701
+ export default TestResultCutApiModel;
702
+ /**
703
+ * The TestResultCutApiModel model module.
704
+ * @module model/TestResultCutApiModel
705
+ * @version 0.1.0
706
+ */
707
+ class TestResultCutApiModel {
708
+ /**
709
+ * Initializes the fields of this object.
710
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
711
+ * Only for internal use.
712
+ */
713
+ static initialize(obj: any): void;
714
+ /**
715
+ * Constructs a <code>TestResultCutApiModel</code> from a plain JavaScript object, optionally creating a new instance.
716
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
717
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
718
+ * @param {module:model/TestResultCutApiModel} obj Optional instance to populate.
719
+ * @return {module:model/TestResultCutApiModel} The populated <code>TestResultCutApiModel</code> instance.
720
+ */
721
+ static constructFromObject(data: any, obj: any): any;
722
+ /**
723
+ * Validates the JSON data with respect to <code>TestResultCutApiModel</code>.
724
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
725
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TestResultCutApiModel</code>.
726
+ */
727
+ static validateJSON(data: any): boolean;
728
+ projectId: any;
729
+ autoTestExternalId: any;
730
+ statusCode: any;
731
+ statusType: any;
732
+ startedOn: any;
733
+ }
734
+
735
+ }
736
+ declare module 'sync-storage-client/model/TestResultSaveResponse' {
737
+ export default TestResultSaveResponse;
738
+ /**
739
+ * The TestResultSaveResponse model module.
740
+ * @module model/TestResultSaveResponse
741
+ * @version 0.1.0
742
+ */
743
+ class TestResultSaveResponse {
744
+ /**
745
+ * Initializes the fields of this object.
746
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
747
+ * Only for internal use.
748
+ */
749
+ static initialize(obj: any): void;
750
+ /**
751
+ * Constructs a <code>TestResultSaveResponse</code> from a plain JavaScript object, optionally creating a new instance.
752
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
753
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
754
+ * @param {module:model/TestResultSaveResponse} obj Optional instance to populate.
755
+ * @return {module:model/TestResultSaveResponse} The populated <code>TestResultSaveResponse</code> instance.
756
+ */
757
+ static constructFromObject(data: any, obj: any): any;
758
+ /**
759
+ * Validates the JSON data with respect to <code>TestResultSaveResponse</code>.
760
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
761
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>TestResultSaveResponse</code>.
762
+ */
763
+ static validateJSON(data: any): boolean;
764
+ status: any;
765
+ message: any;
766
+ }
767
+
768
+ }
769
+ declare module 'sync-storage-client' {
770
+ import main = require('sync-storage-client/index');
771
+ export = main;
772
+ }