@opentap/runner-client 1.0.0-alpha.37.12 → 1.0.0-alpha.72

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.
@@ -1,4 +1,5 @@
1
- import { RequestOptions } from 'nats.ws';
1
+ import { ConnectionOptions, RequestOptions } from 'nats.ws/cjs/nats.js';
2
+ import { ComponentSettingsBase, ComponentSettingsIdentifier, ComponentSettingsListItem, DataGridControl, ErrorResponse, FileParameter, FileResponse, ListItemType, ProfileGroup, RepositoryPackageReference, RepositorySettingsPackageDefinition, SettingsTapPackage } from './DTOs';
2
3
  export declare class BaseClient {
3
4
  private _accessToken;
4
5
  /** Get access token */
@@ -10,15 +11,15 @@ export declare class BaseClient {
10
11
  get timeout(): number;
11
12
  /** Set timeout */
12
13
  set timeout(value: number);
13
- private _natsServer;
14
- /** Get nats server */
15
- get natsServer(): string;
16
14
  private _baseSubject;
17
15
  /** Get subject */
18
16
  get baseSubject(): string;
17
+ private _connectionOptions;
18
+ /** Get connection options */
19
+ get connectionOptions(): ConnectionOptions;
19
20
  private domainAccess;
20
21
  private natsConnection;
21
- constructor(baseSubject: string, natsServer?: string);
22
+ constructor(baseSubject: string, options: ConnectionOptions);
22
23
  /**
23
24
  * Send a request to the nats server.
24
25
  * @param subject The subject to request
@@ -34,11 +35,165 @@ export declare class BaseClient {
34
35
  /**
35
36
  * Close the connection.
36
37
  */
37
- private close;
38
+ close(): Promise<void>;
38
39
  /**
39
40
  * Add a domain specific access token to the dictionary.
40
41
  * @param domain
41
42
  * @param accessToken
42
43
  */
43
44
  protected setDomainAccessToken(domain: string, accessToken: string): void;
45
+ /**
46
+ * Generic error callback function.
47
+ * @returns
48
+ */
49
+ protected error(): ((reason: any) => PromiseLike<never>) | null | undefined;
50
+ /**
51
+ * Generic success callback function.
52
+ * @returns
53
+ */
54
+ protected success<T>(): ((value: T) => T | PromiseLike<T>) | null | undefined;
55
+ /**
56
+ * Retrieve component settings overview
57
+ * @returns {{Promise<ComponentSettingsIdentifier[]>}}
58
+ */
59
+ getComponentSettingsOverview(): Promise<ComponentSettingsIdentifier[]>;
60
+ /**
61
+ * Change componentsettings
62
+ * @param groupName
63
+ * @param name
64
+ * @param returnedSettings
65
+ * @returns {{Promise<ComponentSettingsBase>}}
66
+ */
67
+ setComponentSettings(groupName: string, name: string, returnedSettings: ComponentSettingsBase): Promise<ComponentSettingsBase>;
68
+ /**
69
+ * Retrieve componentsettings
70
+ * @param groupName
71
+ * @param name
72
+ * @returns {{Promise<ComponentSettingsBase>}}
73
+ */
74
+ getComponentSettings(groupName: string, name: string): Promise<ComponentSettingsBase>;
75
+ /**
76
+ * Retrieve componentsettings list item
77
+ * @param groupName
78
+ * @param name
79
+ * @param index
80
+ * @returns {{Promise<ComponentSettingsListItem>}}
81
+ */
82
+ getComponentSettingsListItem(groupName: string, name: string, index: number): Promise<ComponentSettingsListItem>;
83
+ /**
84
+ * Set componentsettings list item settings
85
+ * @param {string} groupName
86
+ * @param {string} name
87
+ * @param {number} index
88
+ * @param {ComponentSettingsListItem} item
89
+ * @returns {Promise<ComponentSettingsListItem>}
90
+ */
91
+ setComponentSettingsListItem(groupName: string, name: string, index: number, item: ComponentSettingsListItem): Promise<ComponentSettingsListItem>;
92
+ /**
93
+ * Get component setting data grid
94
+ * @param {string} groupName
95
+ * @param {string} name
96
+ * @param {number} index
97
+ * @param {string} propertyName
98
+ * @returns {Promise<DataGridControl>}
99
+ */
100
+ getComponentSettingDataGrid(groupName: string, name: string, index: number, propertyName: string): Promise<DataGridControl>;
101
+ /**
102
+ * Set component setting data grid
103
+ * @param {string} groupName
104
+ * @param {string} name
105
+ * @param {number} index
106
+ * @param {string} propertyName
107
+ * @param {DataGridControl} dataGridControl
108
+ * @returns {{Promise<DataGridControl>}}
109
+ */
110
+ setComponentSettingDataGrid(groupName: string, name: string, index: number, propertyName: string, dataGridControl: DataGridControl): Promise<DataGridControl>;
111
+ /**
112
+ * Add component setting item type to data grid
113
+ * @param {string} groupName
114
+ * @param {string} name
115
+ * @param {number} index
116
+ * @param {string} propertyName
117
+ * @param {string} typeName
118
+ * @returns {Promise<DataGridControl>}
119
+ */
120
+ addComponentSettingDataGridItemType(groupName: string, name: string, index: number, propertyName: string, typeName: string): Promise<DataGridControl>;
121
+ /**
122
+ * Add component setting item to data grid
123
+ * @param {string} groupName
124
+ * @param {string} name
125
+ * @param {number} index
126
+ * @param {string} propertyName
127
+ * @returns {Promise<DataGridControl>}
128
+ */
129
+ addComponentSettingDataGridItem(groupName: string, name: string, index: number, propertyName: string): Promise<DataGridControl>;
130
+ /**
131
+ * Get item types available in the component setting data grid
132
+ * @param groupName
133
+ * @param name
134
+ * @param index
135
+ * @param propertyName
136
+ * @returns {Promise<ListItemType[]>}
137
+ */
138
+ getComponentSettingDataGridTypes(groupName: string, name: string, index: number, propertyName: string): Promise<ListItemType[]>;
139
+ /**
140
+ * Change componentsettings profiles
141
+ * @param {ProfileGroup[]} returnedSettings
142
+ * @returns {Promise<ProfileGroup[]>}
143
+ */
144
+ setComponentSettingsProfiles(returnedSettings: ProfileGroup[]): Promise<ProfileGroup[]>;
145
+ /**
146
+ * Get componentsettings profiles
147
+ * @returns {Promise<ProfileGroup[]>}
148
+ */
149
+ getComponentSettingsProfiles(): Promise<ProfileGroup[]>;
150
+ /**
151
+ * Upload exported OpenTAP Settings files
152
+ * @param {FileParameter} file
153
+ * @returns {Promise<void>}
154
+ */
155
+ uploadComponentSettings(file: FileParameter): Promise<void>;
156
+ /**
157
+ * Load a component settings TapPackage by referencing a package in a package repository
158
+ * @param {RepositoryPackageReference} packageReference
159
+ * @returns {Promise<ErrorResponse[]>}
160
+ */
161
+ loadComponentSettingsFromRepository(packageReference: RepositoryPackageReference): Promise<ErrorResponse[]>;
162
+ /**
163
+ * Save a TapPackage containing component settings in a package repository
164
+ * @param {RepositorySettingsPackageDefinition} repositoryPackageDefinition
165
+ * @returns {Promise<void>}
166
+ */
167
+ saveComponentSettingsToRepository(repositoryPackageDefinition: RepositorySettingsPackageDefinition): Promise<void>;
168
+ /**
169
+ * Retrieve types available to be added to specified component settings list
170
+ * @param {string} groupName
171
+ * @param {string} name
172
+ * @returns {Promise<ListItemType[]>}
173
+ */
174
+ getComponentSettingsListAvailableTypes(groupName: string, name: string): Promise<ListItemType[]>;
175
+ /**
176
+ * Adds a new item to a component settings list
177
+ * @param {string} groupName
178
+ * @param {string} name
179
+ * @param {string} typeName
180
+ * @returns {Promise<ListItemType[]>}
181
+ */
182
+ addComponentSettingsListItem(groupName: string, name: string, typeName: string): Promise<ListItemType[]>;
183
+ /**
184
+ * Get settings package files
185
+ * @returns {Promise<string[]>}
186
+ */
187
+ getSettingsPackageFiles(): Promise<string[]>;
188
+ /**
189
+ * Get settings package types
190
+ * @returns {Promise<string[]>}
191
+ */
192
+ settingsPackageTypes(): Promise<string[]>;
193
+ /**
194
+ * Download a TapPackage containing settings files
195
+ * @param {SettingsPackage} settingsTapPackage
196
+ * @returns {Promise<FileResponse>}
197
+ */
198
+ downloadSettingsPackage(settingsTapPackage: SettingsTapPackage): Promise<FileResponse>;
44
199
  }
package/lib/BaseClient.js CHANGED
@@ -34,15 +34,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
- import { connect, Empty, JSONCodec, StringCodec } from 'nats.ws';
37
+ // ! import { connect, ConnectionOptions, Empty, JSONCodec, NatsConnection, RequestOptions, StringCodec } from 'nats.ws' if consuming this library in angular >= 13.
38
+ import { connect, Empty, JSONCodec, StringCodec } from 'nats.ws/cjs/nats.js';
38
39
  var BaseClient = /** @class */ (function () {
39
- function BaseClient(baseSubject, natsServer) {
40
- if (natsServer === void 0) { natsServer = 'ws://localhost:443'; }
40
+ function BaseClient(baseSubject, options) {
41
41
  this.domainAccess = new Map();
42
42
  this._baseSubject = baseSubject;
43
- this._natsServer = natsServer;
44
- if (baseSubject && natsServer)
45
- this.connect();
43
+ this._connectionOptions = options || { servers: 'ws://localhost:443' };
44
+ var undefinedSubject = function () {
45
+ throw new Error('A base subject must be specified');
46
+ };
47
+ baseSubject ? this.connect(this._connectionOptions) : undefinedSubject();
46
48
  }
47
49
  Object.defineProperty(BaseClient.prototype, "accessToken", {
48
50
  /** Get access token */
@@ -68,18 +70,18 @@ var BaseClient = /** @class */ (function () {
68
70
  enumerable: false,
69
71
  configurable: true
70
72
  });
71
- Object.defineProperty(BaseClient.prototype, "natsServer", {
72
- /** Get nats server */
73
+ Object.defineProperty(BaseClient.prototype, "baseSubject", {
74
+ /** Get subject */
73
75
  get: function () {
74
- return this._natsServer;
76
+ return this._baseSubject;
75
77
  },
76
78
  enumerable: false,
77
79
  configurable: true
78
80
  });
79
- Object.defineProperty(BaseClient.prototype, "baseSubject", {
80
- /** Get subject */
81
+ Object.defineProperty(BaseClient.prototype, "connectionOptions", {
82
+ /** Get connection options */
81
83
  get: function () {
82
- return this._baseSubject;
84
+ return this._connectionOptions;
83
85
  },
84
86
  enumerable: false,
85
87
  configurable: true
@@ -122,15 +124,14 @@ var BaseClient = /** @class */ (function () {
122
124
  /**
123
125
  * Create a connection to the nats server.
124
126
  */
125
- BaseClient.prototype.connect = function () {
127
+ BaseClient.prototype.connect = function (options) {
126
128
  return __awaiter(this, void 0, void 0, function () {
127
- var options, error_1;
129
+ var error_1;
128
130
  var _this = this;
129
131
  return __generator(this, function (_a) {
130
132
  switch (_a.label) {
131
133
  case 0:
132
134
  _a.trys.push([0, 2, , 3]);
133
- options = { servers: this._natsServer };
134
135
  return [4 /*yield*/, connect(options).then(function (connection) {
135
136
  _this.natsConnection = connection;
136
137
  })];
@@ -139,7 +140,7 @@ var BaseClient = /** @class */ (function () {
139
140
  return [3 /*break*/, 3];
140
141
  case 2:
141
142
  error_1 = _a.sent();
142
- throw new Error("error connecting to ".concat(this.natsServer));
143
+ throw new Error("connection to ".concat(options.servers, " failed due to ").concat(error_1));
143
144
  case 3: return [2 /*return*/];
144
145
  }
145
146
  });
@@ -176,6 +177,301 @@ var BaseClient = /** @class */ (function () {
176
177
  return;
177
178
  this.domainAccess.set(domain, accessToken);
178
179
  };
180
+ /**
181
+ * Generic error callback function.
182
+ * @returns
183
+ */
184
+ BaseClient.prototype.error = function () {
185
+ return function (error) {
186
+ throw new Error(error);
187
+ };
188
+ };
189
+ /**
190
+ * Generic success callback function.
191
+ * @returns
192
+ */
193
+ BaseClient.prototype.success = function () {
194
+ return function (response) { return response; };
195
+ };
196
+ /**
197
+ * Retrieve component settings overview
198
+ * @returns {{Promise<ComponentSettingsIdentifier[]>}}
199
+ */
200
+ BaseClient.prototype.getComponentSettingsOverview = function () {
201
+ return this.request('GetComponentSettingsOverview').then(this.success()).catch(this.error());
202
+ };
203
+ /**
204
+ * Change componentsettings
205
+ * @param groupName
206
+ * @param name
207
+ * @param returnedSettings
208
+ * @returns {{Promise<ComponentSettingsBase>}}
209
+ */
210
+ BaseClient.prototype.setComponentSettings = function (groupName, name, returnedSettings) {
211
+ var setComponentSettingsRequest = { groupName: groupName, name: name, returnedSettings: returnedSettings };
212
+ return groupName && name && returnedSettings
213
+ ? this.request('SetComponentSettings', setComponentSettingsRequest)
214
+ .then(this.success())
215
+ .catch(this.error())
216
+ : Promise.reject('all parameters must be defined');
217
+ };
218
+ /**
219
+ * Retrieve componentsettings
220
+ * @param groupName
221
+ * @param name
222
+ * @returns {{Promise<ComponentSettingsBase>}}
223
+ */
224
+ BaseClient.prototype.getComponentSettings = function (groupName, name) {
225
+ var getComponentSettingsRequest = { groupName: groupName, name: name };
226
+ return groupName && name
227
+ ? this.request('GetComponentSettings', getComponentSettingsRequest)
228
+ .then(this.success())
229
+ .catch(this.error())
230
+ : Promise.reject('all parameters must be defined');
231
+ };
232
+ /**
233
+ * Retrieve componentsettings list item
234
+ * @param groupName
235
+ * @param name
236
+ * @param index
237
+ * @returns {{Promise<ComponentSettingsListItem>}}
238
+ */
239
+ BaseClient.prototype.getComponentSettingsListItem = function (groupName, name, index) {
240
+ var getComponentSettingsListItemRequest = { groupName: groupName, name: name, index: index };
241
+ return groupName && name
242
+ ? this.request('GetComponentSettingsListItem', getComponentSettingsListItemRequest)
243
+ .then(this.success())
244
+ .catch(this.error())
245
+ : Promise.reject('all parameters must be defined');
246
+ };
247
+ /**
248
+ * Set componentsettings list item settings
249
+ * @param {string} groupName
250
+ * @param {string} name
251
+ * @param {number} index
252
+ * @param {ComponentSettingsListItem} item
253
+ * @returns {Promise<ComponentSettingsListItem>}
254
+ */
255
+ BaseClient.prototype.setComponentSettingsListItem = function (groupName, name, index, item) {
256
+ var setComponentSettingsListItemRequest = { groupName: groupName, name: name, index: index, item: item };
257
+ return groupName && name && item
258
+ ? this.request('SetComponentSettingsListItem', setComponentSettingsListItemRequest)
259
+ .then(this.success())
260
+ .catch(this.error())
261
+ : Promise.reject('all parameters must be defined');
262
+ };
263
+ /**
264
+ * Get component setting data grid
265
+ * @param {string} groupName
266
+ * @param {string} name
267
+ * @param {number} index
268
+ * @param {string} propertyName
269
+ * @returns {Promise<DataGridControl>}
270
+ */
271
+ BaseClient.prototype.getComponentSettingDataGrid = function (groupName, name, index, propertyName) {
272
+ var getComponentSettingDataGridRequest = {
273
+ groupName: groupName,
274
+ name: name,
275
+ index: index,
276
+ propertyName: propertyName,
277
+ };
278
+ return groupName && name && propertyName
279
+ ? this.request('GetComponentSettingDataGrid', getComponentSettingDataGridRequest)
280
+ .then(this.success())
281
+ .catch(this.error())
282
+ : Promise.reject('all parameters must be defined');
283
+ };
284
+ /**
285
+ * Set component setting data grid
286
+ * @param {string} groupName
287
+ * @param {string} name
288
+ * @param {number} index
289
+ * @param {string} propertyName
290
+ * @param {DataGridControl} dataGridControl
291
+ * @returns {{Promise<DataGridControl>}}
292
+ */
293
+ BaseClient.prototype.setComponentSettingDataGrid = function (groupName, name, index, propertyName, dataGridControl) {
294
+ var setComponentSettingDataGridRequest = {
295
+ groupName: groupName,
296
+ name: name,
297
+ index: index,
298
+ propertyName: propertyName,
299
+ dataGridControl: dataGridControl,
300
+ };
301
+ return groupName && name && propertyName && dataGridControl
302
+ ? this.request('SetComponentSettingDataGrid', setComponentSettingDataGridRequest)
303
+ .then(this.success())
304
+ .catch(this.error())
305
+ : Promise.reject('all parameters must be defined');
306
+ };
307
+ /**
308
+ * Add component setting item type to data grid
309
+ * @param {string} groupName
310
+ * @param {string} name
311
+ * @param {number} index
312
+ * @param {string} propertyName
313
+ * @param {string} typeName
314
+ * @returns {Promise<DataGridControl>}
315
+ */
316
+ BaseClient.prototype.addComponentSettingDataGridItemType = function (groupName, name, index, propertyName, typeName) {
317
+ var addComponentSettingDataGridItemTypeRequest = {
318
+ groupName: groupName,
319
+ name: name,
320
+ index: index,
321
+ propertyName: propertyName,
322
+ typeName: typeName,
323
+ };
324
+ return groupName && name && propertyName && typeName
325
+ ? this.request('AddComponentSettingDataGridItemType', addComponentSettingDataGridItemTypeRequest)
326
+ .then(this.success())
327
+ .catch(this.error())
328
+ : Promise.reject('all parameters must be defined');
329
+ };
330
+ /**
331
+ * Add component setting item to data grid
332
+ * @param {string} groupName
333
+ * @param {string} name
334
+ * @param {number} index
335
+ * @param {string} propertyName
336
+ * @returns {Promise<DataGridControl>}
337
+ */
338
+ BaseClient.prototype.addComponentSettingDataGridItem = function (groupName, name, index, propertyName) {
339
+ var getComponentSettingDataGridRequest = {
340
+ groupName: groupName,
341
+ name: name,
342
+ index: index,
343
+ propertyName: propertyName,
344
+ };
345
+ return groupName && name && propertyName
346
+ ? this.request('AddComponentSettingDataGridItem', getComponentSettingDataGridRequest)
347
+ .then(this.success())
348
+ .catch(this.error())
349
+ : Promise.reject('all parameters must be defined');
350
+ };
351
+ /**
352
+ * Get item types available in the component setting data grid
353
+ * @param groupName
354
+ * @param name
355
+ * @param index
356
+ * @param propertyName
357
+ * @returns {Promise<ListItemType[]>}
358
+ */
359
+ BaseClient.prototype.getComponentSettingDataGridTypes = function (groupName, name, index, propertyName) {
360
+ var getComponentSettingDataGridRequest = {
361
+ groupName: groupName,
362
+ name: name,
363
+ index: index,
364
+ propertyName: propertyName,
365
+ };
366
+ return groupName && name && propertyName
367
+ ? this.request('GetComponentSettingDataGridTypes', getComponentSettingDataGridRequest)
368
+ .then(this.success())
369
+ .catch(this.error())
370
+ : Promise.reject('all parameters must be defined');
371
+ };
372
+ /**
373
+ * Change componentsettings profiles
374
+ * @param {ProfileGroup[]} returnedSettings
375
+ * @returns {Promise<ProfileGroup[]>}
376
+ */
377
+ BaseClient.prototype.setComponentSettingsProfiles = function (returnedSettings) {
378
+ return returnedSettings
379
+ ? this.request('SetComponentSettingsProfiles', returnedSettings).then(this.success()).catch(this.error())
380
+ : Promise.reject('returnedSettings must be defined');
381
+ };
382
+ /**
383
+ * Get componentsettings profiles
384
+ * @returns {Promise<ProfileGroup[]>}
385
+ */
386
+ BaseClient.prototype.getComponentSettingsProfiles = function () {
387
+ return this.request('GetComponentSettingsProfiles').then(this.success()).catch(this.error());
388
+ };
389
+ /**
390
+ * Upload exported OpenTAP Settings files
391
+ * @param {FileParameter} file
392
+ * @returns {Promise<void>}
393
+ */
394
+ BaseClient.prototype.uploadComponentSettings = function (file) {
395
+ var uploadFileRequest = { file: file, fileName: file === null || file === void 0 ? void 0 : file.fileName };
396
+ return file
397
+ ? this.request('UploadComponentSettings', uploadFileRequest).then(this.success()).catch(this.error())
398
+ : Promise.reject('file must be defined');
399
+ };
400
+ /**
401
+ * Load a component settings TapPackage by referencing a package in a package repository
402
+ * @param {RepositoryPackageReference} packageReference
403
+ * @returns {Promise<ErrorResponse[]>}
404
+ */
405
+ BaseClient.prototype.loadComponentSettingsFromRepository = function (packageReference) {
406
+ return packageReference
407
+ ? this.request('LoadComponentSettingsFromRepository', packageReference)
408
+ .then(this.success())
409
+ .catch(this.error())
410
+ : Promise.reject('packageReference must be defined');
411
+ };
412
+ /**
413
+ * Save a TapPackage containing component settings in a package repository
414
+ * @param {RepositorySettingsPackageDefinition} repositoryPackageDefinition
415
+ * @returns {Promise<void>}
416
+ */
417
+ BaseClient.prototype.saveComponentSettingsToRepository = function (repositoryPackageDefinition) {
418
+ return repositoryPackageDefinition
419
+ ? this.request('SaveComponentSettingsToRepository', repositoryPackageDefinition).then(this.success()).catch(this.error())
420
+ : Promise.reject('repositoryPackageDefinition must be defined');
421
+ };
422
+ /**
423
+ * Retrieve types available to be added to specified component settings list
424
+ * @param {string} groupName
425
+ * @param {string} name
426
+ * @returns {Promise<ListItemType[]>}
427
+ */
428
+ BaseClient.prototype.getComponentSettingsListAvailableTypes = function (groupName, name) {
429
+ var getComponentSettingsRequest = { groupName: groupName, name: name };
430
+ return groupName && name
431
+ ? this.request('GetComponentSettingsListAvailableTypes', getComponentSettingsRequest)
432
+ .then(this.success())
433
+ .catch(this.error())
434
+ : Promise.reject('all parameters must be defined');
435
+ };
436
+ /**
437
+ * Adds a new item to a component settings list
438
+ * @param {string} groupName
439
+ * @param {string} name
440
+ * @param {string} typeName
441
+ * @returns {Promise<ListItemType[]>}
442
+ */
443
+ BaseClient.prototype.addComponentSettingsListItem = function (groupName, name, typeName) {
444
+ var addComponentSettingsListItemRequest = { groupName: groupName, name: name, typeName: typeName };
445
+ return groupName && name && typeName
446
+ ? this.request('AddComponentSettingsListItem', addComponentSettingsListItemRequest)
447
+ .then(this.success())
448
+ .catch(this.error())
449
+ : Promise.reject('all parameters must be defined');
450
+ };
451
+ /**
452
+ * Get settings package files
453
+ * @returns {Promise<string[]>}
454
+ */
455
+ BaseClient.prototype.getSettingsPackageFiles = function () {
456
+ return this.request('GetSettingsPackageFiles').then(this.success()).catch(this.error());
457
+ };
458
+ /**
459
+ * Get settings package types
460
+ * @returns {Promise<string[]>}
461
+ */
462
+ BaseClient.prototype.settingsPackageTypes = function () {
463
+ return this.request('SettingsPackageTypes').then(this.success()).catch(this.error());
464
+ };
465
+ /**
466
+ * Download a TapPackage containing settings files
467
+ * @param {SettingsPackage} settingsTapPackage
468
+ * @returns {Promise<FileResponse>}
469
+ */
470
+ BaseClient.prototype.downloadSettingsPackage = function (settingsTapPackage) {
471
+ return settingsTapPackage
472
+ ? this.request('DownloadSettingsPackage', settingsTapPackage).then(this.success()).catch(this.error())
473
+ : Promise.reject('settingsTapPackage must be defined');
474
+ };
179
475
  return BaseClient;
180
476
  }());
181
477
  export { BaseClient };