@orbis-systems/orbis-api-clients 0.6.7 → 0.6.9

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 (41) hide show
  1. package/dist/aesmidas/index.d.ts +1114 -1105
  2. package/dist/aesmidas/index.d.ts.map +1 -1
  3. package/dist/aesmidas/index.esm.js +1 -2806
  4. package/dist/aesmidas/index.esm.js.map +1 -1
  5. package/dist/aesmidas/index.js +1 -2811
  6. package/dist/aesmidas/index.js.map +1 -1
  7. package/dist/bridgewise/index.d.ts +94 -93
  8. package/dist/bridgewise/index.d.ts.map +1 -1
  9. package/dist/bridgewise/index.esm.js +1 -1888
  10. package/dist/bridgewise/index.esm.js.map +1 -1
  11. package/dist/bridgewise/index.js +1 -1893
  12. package/dist/bridgewise/index.js.map +1 -1
  13. package/dist/index.esm.js +1 -257
  14. package/dist/index.esm.js.map +1 -1
  15. package/dist/index.js +1 -280
  16. package/dist/index.js.map +1 -1
  17. package/dist/insight/index.d.ts +326 -325
  18. package/dist/insight/index.d.ts.map +1 -1
  19. package/dist/insight/index.esm.js +1 -3753
  20. package/dist/insight/index.esm.js.map +1 -1
  21. package/dist/insight/index.js +1 -3758
  22. package/dist/insight/index.js.map +1 -1
  23. package/dist/middleware/index.d.ts +34 -34
  24. package/dist/middleware/index.d.ts.map +1 -1
  25. package/dist/middleware/index.esm.js +1 -1066
  26. package/dist/middleware/index.esm.js.map +1 -1
  27. package/dist/middleware/index.js +1 -1071
  28. package/dist/middleware/index.js.map +1 -1
  29. package/dist/orbis/index.d.ts +1236 -1236
  30. package/dist/orbis/index.d.ts.map +1 -1
  31. package/dist/orbis/index.esm.js +1 -7009
  32. package/dist/orbis/index.esm.js.map +1 -1
  33. package/dist/orbis/index.js +1 -7014
  34. package/dist/orbis/index.js.map +1 -1
  35. package/dist/uma/index.d.ts +290 -290
  36. package/dist/uma/index.d.ts.map +1 -1
  37. package/dist/uma/index.esm.js +1 -3993
  38. package/dist/uma/index.esm.js.map +1 -1
  39. package/dist/uma/index.js +1 -3998
  40. package/dist/uma/index.js.map +1 -1
  41. package/package.json +9 -1
@@ -1,2807 +1,2 @@
1
- import $5CwE8$autobind from "auto-bind";
2
- import {Mutex as $5CwE8$Mutex, E_CANCELED as $5CwE8$E_CANCELED} from "async-mutex";
3
- import {consola as $5CwE8$consola} from "consola";
4
- import {isBefore as $5CwE8$isBefore, subMinutes as $5CwE8$subMinutes} from "date-fns";
5
- import {jwtDecode as $5CwE8$jwtDecode} from "jwt-decode";
6
- import $5CwE8$axios, {isAxiosError as $5CwE8$isAxiosError} from "axios";
7
- import $5CwE8$axiosbetterstacktrace from "axios-better-stacktrace";
8
- import {isNil as $5CwE8$isNil, merge as $5CwE8$merge} from "lodash";
9
-
10
-
11
- function $parcel$export(e, n, v, s) {
12
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
13
- }
14
-
15
- function $parcel$exportWildcard(dest, source) {
16
- Object.keys(source).forEach(function(key) {
17
- if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
18
- return;
19
- }
20
-
21
- Object.defineProperty(dest, key, {
22
- enumerable: true,
23
- get: function get() {
24
- return source[key];
25
- }
26
- });
27
- });
28
-
29
- return dest;
30
- }
31
- var $e27b116a6f94964e$exports = {};
32
-
33
- $parcel$export($e27b116a6f94964e$exports, "AesMidasApi", () => $e27b116a6f94964e$export$fdc699bad85078d9);
34
-
35
- class $001a7a5b1ca54b2d$export$3ad201792064a82b {
36
- // request: ApiClient['request'];
37
- // get: ApiClient['get'];
38
- // delete: ApiClient['delete'];
39
- // head: ApiClient['head'];
40
- // options: ApiClient['options'];
41
- // post: ApiClient['post'];
42
- // put: ApiClient['put'];
43
- // patch: ApiClient['patch'];
44
- constructor(apiClient){
45
- this.apiClient = apiClient;
46
- (0, $5CwE8$autobind)(this);
47
- // this.request = this.client.request;
48
- // this.get = this.client.get;
49
- // this.delete = this.client.delete;
50
- // this.head = this.client.head;
51
- // this.options = this.client.options;
52
- // this.post = this.client.post;
53
- // this.put = this.client.put;
54
- // this.patch = this.client.patch;
55
- // this.get = this.client.get;
56
- }
57
- getApiClient() {
58
- return this.apiClient;
59
- }
60
- }
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
-
70
-
71
- var $e176194f300187e4$export$e2e108cbe2e4f865 = /*#__PURE__*/ function(ContentType) {
72
- ContentType["Json"] = "application/json";
73
- ContentType["FormData"] = "multipart/form-data";
74
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
75
- ContentType["Text"] = "text/plain";
76
- return ContentType;
77
- }({});
78
- class $e176194f300187e4$export$4f22f74eddb7716a {
79
- constructor(config){
80
- this.config = config;
81
- (0, $5CwE8$autobind)(this);
82
- this.storage = config.storage ?? sessionStorage;
83
- this.axiosInstance = (0, $5CwE8$axios).create({
84
- baseURL: config.baseUrl,
85
- withCredentials: config.withCredentials,
86
- headers: {
87
- 'Content-Type': 'application/json',
88
- ...config.defaultHeaders
89
- }
90
- });
91
- (0, $5CwE8$axiosbetterstacktrace)(this.axiosInstance);
92
- }
93
- stringifyFormItem(formItem) {
94
- if (typeof formItem === 'object' && formItem !== null) return JSON.stringify(formItem);
95
- else return `${formItem}`;
96
- }
97
- createFormData(input) {
98
- if (input instanceof FormData) return input;
99
- return Object.keys(input).reduce((formData, key)=>{
100
- const property = input[key];
101
- const propertyContent = property instanceof Array ? property : [
102
- property
103
- ];
104
- for (const formItem of propertyContent){
105
- const isFileType = formItem instanceof Blob || formItem instanceof File;
106
- formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
107
- }
108
- return formData;
109
- }, new FormData());
110
- }
111
- async request(requestConfig) {
112
- const { contentType: contentType, data: data } = requestConfig;
113
- if (!(0, $5CwE8$isNil)(data)) {
114
- if (contentType === "multipart/form-data" && typeof data === 'object') requestConfig.data = this.createFormData(data);
115
- if (contentType === "text/plain" && typeof data !== 'string') requestConfig.data = JSON.stringify(data);
116
- }
117
- const mergedConfig = (0, $5CwE8$merge)(requestConfig.secure ?? this.config.defaultSecure ?? true ? await this.prepareAuthRequestConfig() : {}, contentType ? {
118
- headers: {
119
- 'Content-Type': contentType
120
- }
121
- } : {}, requestConfig);
122
- try {
123
- const { data: data, status: status, statusText: statusText } = await this.axiosInstance.request(mergedConfig);
124
- return {
125
- success: true,
126
- data: data,
127
- status: status,
128
- statusText: statusText
129
- };
130
- } catch (error) {
131
- if (!this.config.handleError && !requestConfig.handleError) throw error;
132
- const result = {
133
- success: false,
134
- status: -1,
135
- statusText: String(error),
136
- error: error
137
- };
138
- if ((0, $5CwE8$isAxiosError)(error)) {
139
- this.config.onAxiosError?.(error);
140
- result.data = error.response?.data;
141
- result.status = error.response?.status ?? result.status;
142
- result.statusText = error.response?.statusText ?? result.statusText;
143
- }
144
- this.config.onError?.(error);
145
- return result;
146
- }
147
- }
148
- get(url, config) {
149
- return this.request({
150
- ...config,
151
- method: 'GET',
152
- url: url
153
- });
154
- }
155
- delete(url, config) {
156
- return this.request({
157
- ...config,
158
- method: 'DELETE',
159
- url: url
160
- });
161
- }
162
- head(url, config) {
163
- return this.request({
164
- ...config,
165
- method: 'HEAD',
166
- url: url
167
- });
168
- }
169
- options(url, config) {
170
- return this.request({
171
- ...config,
172
- method: 'OPTIONS',
173
- url: url
174
- });
175
- }
176
- post(url, data, config) {
177
- return this.request({
178
- ...config,
179
- method: 'POST',
180
- url: url,
181
- data: data
182
- });
183
- }
184
- put(url, data, config) {
185
- return this.request({
186
- ...config,
187
- method: 'PUT',
188
- url: url,
189
- data: data
190
- });
191
- }
192
- patch(url, data, config) {
193
- return this.request({
194
- ...config,
195
- method: 'PATCH',
196
- url: url,
197
- data: data
198
- });
199
- }
200
- getAxios() {
201
- return this.axiosInstance;
202
- }
203
- setAuthData(data) {
204
- this.storage.setItem(this.config.authDataStorageKey || 'auth', JSON.stringify(data));
205
- }
206
- getAuthData() {
207
- const data = this.storage.getItem(this.config.authDataStorageKey || 'auth');
208
- return data ? JSON.parse(data) : null;
209
- }
210
- getConfig() {
211
- return this.config;
212
- }
213
- }
214
-
215
-
216
- class $584c124673bb843e$export$f280b732bbc5934b extends (0, $e176194f300187e4$export$4f22f74eddb7716a) {
217
- constructor(config){
218
- super(config), this.config = config, this.lock = new (0, $5CwE8$Mutex)();
219
- }
220
- getConfig() {
221
- return super.getConfig();
222
- }
223
- setRenewTokenCallback(renewTokenCallback) {
224
- this.renewTokenCallback = renewTokenCallback;
225
- }
226
- async prepareAuthRequestConfig() {
227
- if (this.config.withCredentials) return {};
228
- let { accessToken: accessToken } = this.getAuthData() || {};
229
- if (!accessToken) {
230
- (0, $5CwE8$consola).warn('No access token found. Please set auth data after authorization.');
231
- return {};
232
- }
233
- if (this.config.autoRenewToken !== false && this.isTokenExpired(accessToken)) try {
234
- await this.lock.runExclusive(async ()=>{
235
- if (this.config.debug) (0, $5CwE8$consola).debug("Token expired. Renewing\u2026");
236
- accessToken = (await this.renewToken()).accessToken;
237
- this.lock.cancel();
238
- });
239
- } catch (error) {
240
- if (error === (0, $5CwE8$E_CANCELED)) accessToken = this.getAuthData()?.accessToken;
241
- else throw error;
242
- }
243
- return {
244
- headers: {
245
- Authorization: `${this.config.authSchema ?? 'Bearer'} ${accessToken}`
246
- }
247
- };
248
- }
249
- isTokenExpired(token) {
250
- const payload = (0, $5CwE8$jwtDecode)(token);
251
- if (!payload.exp) return true;
252
- return (0, $5CwE8$isBefore)((0, $5CwE8$subMinutes)(payload.exp * 1000, 1), Date.now());
253
- }
254
- async renewToken() {
255
- const callback = this.config.onRenewToken ?? this.renewTokenCallback;
256
- if (!callback) throw new Error('No renew token callback provided');
257
- const authData = await callback();
258
- this.setAuthData(authData);
259
- return authData;
260
- }
261
- }
262
-
263
-
264
- var $40adcf017c67f573$exports = {};
265
- var $b8ece52855abc819$exports = {};
266
- /* eslint-disable */ /* tslint:disable */ /*
267
- * ---------------------------------------------------------------
268
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
269
- * ## ##
270
- * ## AUTHOR: acacode ##
271
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
272
- * ---------------------------------------------------------------
273
- */
274
-
275
- var $22a5bbde33c0a998$exports = {};
276
-
277
- $parcel$export($22a5bbde33c0a998$exports, "DataSource", () => $22a5bbde33c0a998$export$accd73d198d77d2f);
278
- /* eslint-disable */ /* tslint:disable */ /*
279
- * ---------------------------------------------------------------
280
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
281
- * ## ##
282
- * ## AUTHOR: acacode ##
283
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
284
- * ---------------------------------------------------------------
285
- */
286
- /* eslint-disable */ /* tslint:disable */ /*
287
- * ---------------------------------------------------------------
288
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
289
- * ## ##
290
- * ## AUTHOR: acacode ##
291
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
292
- * ---------------------------------------------------------------
293
- */
294
-
295
-
296
- class $22a5bbde33c0a998$export$accd73d198d77d2f {
297
- constructor(apiClient){
298
- this.apiClient = apiClient;
299
- (0, $5CwE8$autobind)(this);
300
- }
301
- /**
302
- * @description All parameters are optional
303
- * @tags DataSource
304
- * @name GetDataSourceList
305
- * @summary Query all DataSources in the whole system with optional filters - All users - available in Microservice, POST with pagination and sort
306
- * @request GET:/api/datasource/data-source-list
307
- * @secure
308
- */ getDataSourceList(query, config) {
309
- return this.apiClient.request({
310
- ...config,
311
- url: `/datasource/data-source-list`,
312
- method: 'GET',
313
- params: query,
314
- secure: true,
315
- responseType: 'json'
316
- });
317
- }
318
- /**
319
- * @tags DataSource
320
- * @name GetDataSource
321
- * @summary Query a specific DataSource by unique DataSource Name - All users - available in Microservice
322
- * @request GET:/api/datasource/data-source
323
- * @secure
324
- */ getDataSource(query, config) {
325
- return this.apiClient.request({
326
- ...config,
327
- url: `/datasource/data-source`,
328
- method: 'GET',
329
- params: query,
330
- secure: true,
331
- responseType: 'json'
332
- });
333
- }
334
- /**
335
- * @description Create a new DataSource with/without an existing Entitlement
336
- * @tags DataSource
337
- * @name PostDataSource
338
- * @summary Create a new DataSource - Super admin - available in Microservice
339
- * @request POST:/api/datasource/data-source
340
- * @secure
341
- */ postDataSource(data, config) {
342
- return this.apiClient.request({
343
- ...config,
344
- url: `/datasource/data-source`,
345
- method: 'POST',
346
- data: data,
347
- secure: true,
348
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
349
- responseType: 'json'
350
- });
351
- }
352
- /**
353
- * @description If modification is Entitlement related, server will unsign old entitlement in firms and users
354
- * @tags DataSource
355
- * @name PutDataSource
356
- * @summary Update an existing DataSource - Super admin - available in Microservice
357
- * @request PUT:/api/datasource/data-source
358
- * @secure
359
- */ putDataSource(data, query, config) {
360
- return this.apiClient.request({
361
- ...config,
362
- url: `/datasource/data-source`,
363
- method: 'PUT',
364
- params: query,
365
- data: data,
366
- secure: true,
367
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
368
- });
369
- }
370
- /**
371
- * @description !Caution! It will remove all related data setting and unsign all related entitlement in firms and users
372
- * @tags DataSource
373
- * @name DeleteDataSource
374
- * @summary Delete an existing DataSource - Super admin - available in Microservice
375
- * @request DELETE:/api/datasource/data-source
376
- * @secure
377
- */ deleteDataSource(query, config) {
378
- return this.apiClient.request({
379
- ...config,
380
- url: `/datasource/data-source`,
381
- method: 'DELETE',
382
- params: query,
383
- secure: true
384
- });
385
- }
386
- /**
387
- * @tags DataSource
388
- * @name GetDataSourceBitMapping
389
- * @summary Get All DataSource Bit Mappings - All users - available in Microservice
390
- * @request GET:/api/datasource/data-source-bit-mapping
391
- * @secure
392
- */ getDataSourceBitMapping(config) {
393
- return this.apiClient.request({
394
- ...config,
395
- url: `/datasource/data-source-bit-mapping`,
396
- method: 'GET',
397
- secure: true
398
- });
399
- }
400
- /**
401
- * @tags DataSource
402
- * @name GetDataSourceTallyCount
403
- * @summary For ViewTrade admin to generate data source tally report - Super admin - available in Microservice
404
- * @request GET:/api/datasource/data-source-tally-count
405
- * @secure
406
- */ getDataSourceTallyCount(config) {
407
- return this.apiClient.request({
408
- ...config,
409
- url: `/datasource/data-source-tally-count`,
410
- method: 'GET',
411
- secure: true,
412
- responseType: 'json'
413
- });
414
- }
415
- /**
416
- * @tags DataSource
417
- * @name PostDataSourceTallyReport
418
- * @summary For ViewTrade admin to generate data source tally report with Pagination and Sort - Super admin - available in Microservice
419
- * @request POST:/api/datasource/data-source-tally-report
420
- * @secure
421
- */ postDataSourceTallyReport(data, query, config) {
422
- return this.apiClient.request({
423
- ...config,
424
- url: `/datasource/data-source-tally-report`,
425
- method: 'POST',
426
- params: query,
427
- data: data,
428
- secure: true,
429
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
430
- responseType: 'json'
431
- });
432
- }
433
- }
434
-
435
-
436
- var $78eb44ae01cb99e8$exports = {};
437
-
438
- $parcel$export($78eb44ae01cb99e8$exports, "Entitlement", () => $78eb44ae01cb99e8$export$7b20d168ba04011b);
439
- /* eslint-disable */ /* tslint:disable */ /*
440
- * ---------------------------------------------------------------
441
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
442
- * ## ##
443
- * ## AUTHOR: acacode ##
444
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
445
- * ---------------------------------------------------------------
446
- */
447
-
448
- class $78eb44ae01cb99e8$export$7b20d168ba04011b {
449
- constructor(apiClient){
450
- this.apiClient = apiClient;
451
- (0, $5CwE8$autobind)(this);
452
- }
453
- /**
454
- * @description bitwise in Datasource: 1 UTP, 2 CTA, 3 CBOE1, 4 OPRA, 5 DJI, 6 SP500, 7 CAN, 8 SNAPSHOT
455
- * @tags Entitlement
456
- * @name GetEntitlementList
457
- * @summary Query all available Entitlements(agreements) in the system - All users - available in Microservice, POST with pagination and sort
458
- * @request GET:/api/entitlement/entitlement-list
459
- * @secure
460
- */ getEntitlementList(query, config) {
461
- return this.apiClient.request({
462
- ...config,
463
- url: `/entitlement/entitlement-list`,
464
- method: 'GET',
465
- params: query,
466
- secure: true,
467
- responseType: 'json'
468
- });
469
- }
470
- /**
471
- * @tags Entitlement
472
- * @name GetEntitlement
473
- * @summary Query a specific Entitlement by unique EntitlementName - All users - available in Microservice
474
- * @request GET:/api/entitlement/entitlement
475
- * @secure
476
- */ getEntitlement(query, config) {
477
- return this.apiClient.request({
478
- ...config,
479
- url: `/entitlement/entitlement`,
480
- method: 'GET',
481
- params: query,
482
- secure: true,
483
- responseType: 'json'
484
- });
485
- }
486
- /**
487
- * @description Files can be uploaded along with entitlement. File ids can be left blank, server will generate and update file ids to the entitlement.
488
- * @tags Entitlement
489
- * @name PostEntitlement
490
- * @summary Create a new Entitlement(Agreement) - Super admin - available in Microservice
491
- * @request POST:/api/entitlement/entitlement
492
- * @secure
493
- */ postEntitlement(data, config) {
494
- return this.apiClient.request({
495
- ...config,
496
- url: `/entitlement/entitlement`,
497
- method: 'POST',
498
- data: data,
499
- secure: true,
500
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
501
- responseType: 'json'
502
- });
503
- }
504
- /**
505
- * @tags Entitlement
506
- * @name PutEntitlement
507
- * @summary Update an existing Entitlement - Super admin - available in Microservice
508
- * @request PUT:/api/entitlement/entitlement
509
- * @secure
510
- */ putEntitlement(data, query, config) {
511
- return this.apiClient.request({
512
- ...config,
513
- url: `/entitlement/entitlement`,
514
- method: 'PUT',
515
- params: query,
516
- data: data,
517
- secure: true,
518
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
519
- });
520
- }
521
- /**
522
- * @description If an entitlement is being used in a datasource, it cannot be deleted.
523
- * @tags Entitlement
524
- * @name DeleteEntitlement
525
- * @summary Delete an existing Entitlement - Super admin - available in Microservice
526
- * @request DELETE:/api/entitlement/entitlement
527
- * @secure
528
- */ deleteEntitlement(query, config) {
529
- return this.apiClient.request({
530
- ...config,
531
- url: `/entitlement/entitlement`,
532
- method: 'DELETE',
533
- params: query,
534
- secure: true
535
- });
536
- }
537
- /**
538
- * @tags Entitlement
539
- * @name GetUserEntitlement
540
- * @summary Query a specific UserEntitlement by userid and eneitlement name - End user itself, or firm manager, or super admin - available in Microservice
541
- * @request GET:/api/entitlement/user-entitlement
542
- * @secure
543
- */ getUserEntitlement(query, config) {
544
- return this.apiClient.request({
545
- ...config,
546
- url: `/entitlement/user-entitlement`,
547
- method: 'GET',
548
- params: query,
549
- secure: true,
550
- responseType: 'json'
551
- });
552
- }
553
- /**
554
- * @tags Entitlement
555
- * @name GetUserEntitlementList
556
- * @summary Query all UserEntitlements for a specific user - End user itself, or firm manager, or super admin - available in Microservice, POST with pagination and sort
557
- * @request GET:/api/entitlement/user-entitlement-list
558
- * @secure
559
- */ getUserEntitlementList(query, config) {
560
- return this.apiClient.request({
561
- ...config,
562
- url: `/entitlement/user-entitlement-list`,
563
- method: 'GET',
564
- params: query,
565
- secure: true,
566
- responseType: 'json'
567
- });
568
- }
569
- /**
570
- * @tags Entitlement
571
- * @name GetEntitlementUserList
572
- * @summary Query all UserEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
573
- * @request GET:/api/entitlement/entitlement-user-list
574
- * @secure
575
- */ getEntitlementUserList(query, config) {
576
- return this.apiClient.request({
577
- ...config,
578
- url: `/entitlement/entitlement-user-list`,
579
- method: 'GET',
580
- params: query,
581
- secure: true,
582
- responseType: 'json'
583
- });
584
- }
585
- /**
586
- * @tags Entitlement
587
- * @name GetUserEntitlementHistory
588
- * @summary Query history for a UserEntitlement - Super admin - available in Microservice, POST with pagination and sort
589
- * @request GET:/api/entitlement/user-entitlement-history
590
- * @secure
591
- */ getUserEntitlementHistory(query, config) {
592
- return this.apiClient.request({
593
- ...config,
594
- url: `/entitlement/user-entitlement-history`,
595
- method: 'GET',
596
- params: query,
597
- secure: true,
598
- responseType: 'json'
599
- });
600
- }
601
- /**
602
- * @description Create a new UserEntitlement if not existing previously. Update UserEntitlement if already exists.
603
- * @tags Entitlement
604
- * @name PutSignEntitlement
605
- * @summary Sign a UserEntitlement - All users - available in Microservice
606
- * @request PUT:/api/entitlement/sign-entitlement
607
- * @secure
608
- */ putSignEntitlement(data, config) {
609
- return this.apiClient.request({
610
- ...config,
611
- url: `/entitlement/sign-entitlement`,
612
- method: 'PUT',
613
- data: data,
614
- secure: true,
615
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
616
- });
617
- }
618
- /**
619
- * @tags Entitlement
620
- * @name PutUnsignEntitlement
621
- * @summary Unsign a UserEntitlement - End user itself, or firm manager, or super admin - available in Microservice
622
- * @request PUT:/api/entitlement/unsign-entitlement
623
- * @secure
624
- */ putUnsignEntitlement(query, config) {
625
- return this.apiClient.request({
626
- ...config,
627
- url: `/entitlement/unsign-entitlement`,
628
- method: 'PUT',
629
- params: query,
630
- secure: true
631
- });
632
- }
633
- /**
634
- * @tags Entitlement
635
- * @name GetContractsCount
636
- * @summary For ViewTrade admin to Get contract counts for a specific firm and entitlement - Super admin - available in Microservice
637
- * @request GET:/api/entitlement/contracts-count
638
- * @secure
639
- */ getContractsCount(query, config) {
640
- return this.apiClient.request({
641
- ...config,
642
- url: `/entitlement/contracts-count`,
643
- method: 'GET',
644
- params: query,
645
- secure: true,
646
- responseType: 'json'
647
- });
648
- }
649
- /**
650
- * @tags Entitlement
651
- * @name PostContractsReport
652
- * @summary For ViewTrade admin to generate contract counts report for a specific firm and entitlement with paginition and sort - Super admin - available in Microservice
653
- * @request POST:/api/entitlement/contracts-report
654
- * @secure
655
- */ postContractsReport(data, query, config) {
656
- return this.apiClient.request({
657
- ...config,
658
- url: `/entitlement/contracts-report`,
659
- method: 'POST',
660
- params: query,
661
- data: data,
662
- secure: true,
663
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
664
- responseType: 'json'
665
- });
666
- }
667
- /**
668
- * @tags Entitlement
669
- * @name GetFirmEntitlement
670
- * @summary Query a specific FirmEntitlement - Firm manager, or super admin - available in Microservice
671
- * @request GET:/api/entitlement/firm-entitlement
672
- * @secure
673
- */ getFirmEntitlement(query, config) {
674
- return this.apiClient.request({
675
- ...config,
676
- url: `/entitlement/firm-entitlement`,
677
- method: 'GET',
678
- params: query,
679
- secure: true,
680
- responseType: 'json'
681
- });
682
- }
683
- /**
684
- * @tags Entitlement
685
- * @name PostFirmEntitlement
686
- * @summary Create a new FirmEntitlement - Super admin - available in Microservice
687
- * @request POST:/api/entitlement/firm-entitlement
688
- * @secure
689
- */ postFirmEntitlement(data, config) {
690
- return this.apiClient.request({
691
- ...config,
692
- url: `/entitlement/firm-entitlement`,
693
- method: 'POST',
694
- data: data,
695
- secure: true,
696
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
697
- responseType: 'json'
698
- });
699
- }
700
- /**
701
- * @description Firm must have relevant data setting if need to active a FirmEntitlement./n!Caution! If de-active a FirmEntitlement, it will unsign all UserEntitlements in this firm for the relevant entitlement.
702
- * @tags Entitlement
703
- * @name PutFirmEntitlement
704
- * @summary Upadte an existing FirmEntitlement - Super admin - available in Microservice
705
- * @request PUT:/api/entitlement/firm-entitlement
706
- * @secure
707
- */ putFirmEntitlement(data, query, config) {
708
- return this.apiClient.request({
709
- ...config,
710
- url: `/entitlement/firm-entitlement`,
711
- method: 'PUT',
712
- params: query,
713
- data: data,
714
- secure: true,
715
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
716
- });
717
- }
718
- /**
719
- * @description !Caution! This action will unsign all UserEntitlements in this firm for the relevant entitlement.
720
- * @tags Entitlement
721
- * @name DeleteFirmEntitlement
722
- * @summary Delete an existing FirmEntitlement - Super admin - available in Microservice
723
- * @request DELETE:/api/entitlement/firm-entitlement
724
- * @secure
725
- */ deleteFirmEntitlement(query, config) {
726
- return this.apiClient.request({
727
- ...config,
728
- url: `/entitlement/firm-entitlement`,
729
- method: 'DELETE',
730
- params: query,
731
- secure: true
732
- });
733
- }
734
- /**
735
- * @tags Entitlement
736
- * @name GetFirmEntitlementList
737
- * @summary Query all FirmEntitlements for a specific firm - Firm manager, or super admin - available in Microservice, POST with pagination and sort
738
- * @request GET:/api/entitlement/firm-entitlement-list
739
- * @secure
740
- */ getFirmEntitlementList(query, config) {
741
- return this.apiClient.request({
742
- ...config,
743
- url: `/entitlement/firm-entitlement-list`,
744
- method: 'GET',
745
- params: query,
746
- secure: true,
747
- responseType: 'json'
748
- });
749
- }
750
- /**
751
- * @tags Entitlement
752
- * @name GetEntitlementFirmList
753
- * @summary Query all FirmEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
754
- * @request GET:/api/entitlement/entitlement-firm-list
755
- * @secure
756
- */ getEntitlementFirmList(query, config) {
757
- return this.apiClient.request({
758
- ...config,
759
- url: `/entitlement/entitlement-firm-list`,
760
- method: 'GET',
761
- params: query,
762
- secure: true,
763
- responseType: 'json'
764
- });
765
- }
766
- /**
767
- * @tags Entitlement
768
- * @name GetFirmEntitlementHistory
769
- * @summary Query history of a specific FirmEntitlement - Super admin - available in Microservice, POST with pagination and sort
770
- * @request GET:/api/entitlement/firm-entitlement-history
771
- * @secure
772
- */ getFirmEntitlementHistory(query, config) {
773
- return this.apiClient.request({
774
- ...config,
775
- url: `/entitlement/firm-entitlement-history`,
776
- method: 'GET',
777
- params: query,
778
- secure: true,
779
- responseType: 'json'
780
- });
781
- }
782
- }
783
-
784
-
785
- var $2b62f356558f69db$exports = {};
786
-
787
- $parcel$export($2b62f356558f69db$exports, "File", () => $2b62f356558f69db$export$b6afa8811b7e644e);
788
- /* eslint-disable */ /* tslint:disable */ /*
789
- * ---------------------------------------------------------------
790
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
791
- * ## ##
792
- * ## AUTHOR: acacode ##
793
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
794
- * ---------------------------------------------------------------
795
- */
796
-
797
- class $2b62f356558f69db$export$b6afa8811b7e644e {
798
- constructor(apiClient){
799
- this.apiClient = apiClient;
800
- (0, $5CwE8$autobind)(this);
801
- }
802
- /**
803
- * @tags File
804
- * @name PostUpload
805
- * @summary upload file - All users - available in Microservice
806
- * @request POST:/api/file/upload
807
- * @secure
808
- */ postUpload(data, config) {
809
- return this.apiClient.request({
810
- ...config,
811
- url: `/file/upload`,
812
- method: 'POST',
813
- data: data,
814
- secure: true,
815
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
816
- responseType: 'json'
817
- });
818
- }
819
- /**
820
- * @tags File
821
- * @name GetDownload
822
- * @summary download file by file id - All users - available in Microservice
823
- * @request GET:/api/file/download
824
- * @secure
825
- */ getDownload(query, config) {
826
- return this.apiClient.request({
827
- ...config,
828
- url: `/file/download`,
829
- method: 'GET',
830
- params: query,
831
- secure: true,
832
- responseType: 'json'
833
- });
834
- }
835
- }
836
-
837
-
838
- var $2b871481ea506907$exports = {};
839
-
840
- $parcel$export($2b871481ea506907$exports, "Firm", () => $2b871481ea506907$export$b82695c11be95fff);
841
- /* eslint-disable */ /* tslint:disable */ /*
842
- * ---------------------------------------------------------------
843
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
844
- * ## ##
845
- * ## AUTHOR: acacode ##
846
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
847
- * ---------------------------------------------------------------
848
- */
849
-
850
- class $2b871481ea506907$export$b82695c11be95fff {
851
- constructor(apiClient){
852
- this.apiClient = apiClient;
853
- (0, $5CwE8$autobind)(this);
854
- }
855
- /**
856
- * @description USEquity bitwise: 1 UTP(Nasdaq), 2 CBOE1, 3 BATS, 4 NYBQT, 5 UTP OTC, 6 CTA-A, 7 CTA-B
857
- * @tags Firm
858
- * @name GetFirmList
859
- * @summary Query all Firms in the system - All users - available in Microservice, POST with pagination and sort
860
- For Microservice: only return 'UMA' source firms
861
- * @request GET:/api/firm/firm-list
862
- * @secure
863
- */ getFirmList(query, config) {
864
- return this.apiClient.request({
865
- ...config,
866
- url: `/firm/firm-list`,
867
- method: 'GET',
868
- params: query,
869
- secure: true,
870
- responseType: 'json'
871
- });
872
- }
873
- /**
874
- * @tags Firm
875
- * @name GetFirm
876
- * @summary Query a specific Firm by firmid(short name) - All users - available in Microservice
877
- * @request GET:/api/firm/firm
878
- * @secure
879
- */ getFirm(query, config) {
880
- return this.apiClient.request({
881
- ...config,
882
- url: `/firm/firm`,
883
- method: 'GET',
884
- params: query,
885
- secure: true,
886
- responseType: 'json'
887
- });
888
- }
889
- /**
890
- * @tags Firm
891
- * @name PostFirm
892
- * @summary Create a new Firm - Super admin - available in Microservice
893
- * @request POST:/api/firm/firm
894
- * @secure
895
- */ postFirm(data, config) {
896
- return this.apiClient.request({
897
- ...config,
898
- url: `/firm/firm`,
899
- method: 'POST',
900
- data: data,
901
- secure: true,
902
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
903
- responseType: 'json'
904
- });
905
- }
906
- /**
907
- * @description !Caution! If remove any previous data source related settings, it will de-active relevant FirmEntitlement and unsign relevant UserEntitlements.
908
- * @tags Firm
909
- * @name PutFirm
910
- * @summary Update an existing Firm setting - Super admin - available in Microservice
911
- * @request PUT:/api/firm/firm
912
- * @secure
913
- */ putFirm(data, query, config) {
914
- return this.apiClient.request({
915
- ...config,
916
- url: `/firm/firm`,
917
- method: 'PUT',
918
- params: query,
919
- data: data,
920
- secure: true,
921
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
922
- });
923
- }
924
- /**
925
- * @description Note: Return a Firm Entity, which has data sources that this firm can access combining FirmEntitlements information. Not the original Firm settings.
926
- * @tags Firm
927
- * @name GetFirmDataAccess
928
- * @summary Get which data sources that a firm can access - All users - available in Microservice
929
- * @request GET:/api/firm/firm-data-access
930
- * @secure
931
- */ getFirmDataAccess(query, config) {
932
- return this.apiClient.request({
933
- ...config,
934
- url: `/firm/firm-data-access`,
935
- method: 'GET',
936
- params: query,
937
- secure: true,
938
- responseType: 'json'
939
- });
940
- }
941
- /**
942
- * @tags Firm
943
- * @name GetUmaFirmList
944
- * @summary Get all firms from UMA - Super admin - available in Microservice, POST with pagination and sort
945
- * @request GET:/api/firm/uma-firm-list
946
- * @secure
947
- */ getUmaFirmList(config) {
948
- return this.apiClient.request({
949
- ...config,
950
- url: `/firm/uma-firm-list`,
951
- method: 'GET',
952
- secure: true,
953
- responseType: 'json'
954
- });
955
- }
956
- /**
957
- * @tags Firm
958
- * @name GetSystemFirmDefaultData
959
- * @summary Query system Firm Default Data Setting, which will be assigned to firm if not specified otherwise - All users - available in Microservice
960
- * @request GET:/api/firm/system-firm-default-data
961
- * @secure
962
- */ getSystemFirmDefaultData(config) {
963
- return this.apiClient.request({
964
- ...config,
965
- url: `/firm/system-firm-default-data`,
966
- method: 'GET',
967
- secure: true,
968
- responseType: 'json'
969
- });
970
- }
971
- /**
972
- * @tags Firm
973
- * @name PutSystemFirmDefaultData
974
- * @summary Query system Firm Default Data Setting, which will be assigned to firm if not specified otherwise - Super admin - available in Microservice
975
- * @request PUT:/api/firm/system-firm-default-data
976
- * @secure
977
- */ putSystemFirmDefaultData(data, config) {
978
- return this.apiClient.request({
979
- ...config,
980
- url: `/firm/system-firm-default-data`,
981
- method: 'PUT',
982
- data: data,
983
- secure: true,
984
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
985
- });
986
- }
987
- /**
988
- * @tags Firm
989
- * @name GetFirmDefaultData
990
- * @summary Query a specific Firm Default Data Setting by firmid(short name) - All users - available in Microservice
991
- * @request GET:/api/firm/firm-default-data
992
- * @secure
993
- */ getFirmDefaultData(query, config) {
994
- return this.apiClient.request({
995
- ...config,
996
- url: `/firm/firm-default-data`,
997
- method: 'GET',
998
- params: query,
999
- secure: true,
1000
- responseType: 'json'
1001
- });
1002
- }
1003
- /**
1004
- * @description New default data must within firm data access availability
1005
- * @tags Firm
1006
- * @name PostFirmDefaultData
1007
- * @summary Create Firm Default Data setting for a specific firm - Firm manager, or super admin - available in Microservice
1008
- * @request POST:/api/firm/firm-default-data
1009
- * @secure
1010
- */ postFirmDefaultData(data, query, config) {
1011
- return this.apiClient.request({
1012
- ...config,
1013
- url: `/firm/firm-default-data`,
1014
- method: 'POST',
1015
- params: query,
1016
- data: data,
1017
- secure: true,
1018
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1019
- });
1020
- }
1021
- /**
1022
- * @description New default data must within firm data access availability
1023
- * @tags Firm
1024
- * @name PutFirmDefaultData
1025
- * @summary Update an existing Firm Default Data setting - Firm manager, or super admin - available in Microservice
1026
- * @request PUT:/api/firm/firm-default-data
1027
- * @secure
1028
- */ putFirmDefaultData(data, query, config) {
1029
- return this.apiClient.request({
1030
- ...config,
1031
- url: `/firm/firm-default-data`,
1032
- method: 'PUT',
1033
- params: query,
1034
- data: data,
1035
- secure: true,
1036
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1037
- });
1038
- }
1039
- }
1040
-
1041
-
1042
- var $6136999aea159e3b$exports = {};
1043
-
1044
- $parcel$export($6136999aea159e3b$exports, "FundWebQuote", () => $6136999aea159e3b$export$3ddc46c765704011);
1045
- /* eslint-disable */ /* tslint:disable */ /*
1046
- * ---------------------------------------------------------------
1047
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1048
- * ## ##
1049
- * ## AUTHOR: acacode ##
1050
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1051
- * ---------------------------------------------------------------
1052
- */
1053
- class $6136999aea159e3b$export$3ddc46c765704011 {
1054
- constructor(apiClient){
1055
- this.apiClient = apiClient;
1056
- (0, $5CwE8$autobind)(this);
1057
- }
1058
- /**
1059
- * @tags FundWebQuote
1060
- * @name GetFund
1061
- * @summary Get a specific fund data - Internal use only - available in Microservice
1062
- * @request GET:/api/fund/fund
1063
- * @secure
1064
- */ getFund(query, config) {
1065
- return this.apiClient.request({
1066
- ...config,
1067
- url: `/fund/fund`,
1068
- method: 'GET',
1069
- params: query,
1070
- secure: true,
1071
- responseType: 'json'
1072
- });
1073
- }
1074
- /**
1075
- * @tags FundWebQuote
1076
- * @name GetFundList
1077
- * @summary Get all availabe fund data - Internal use only - available in Microservice
1078
- * @request GET:/api/fund/fund-list
1079
- * @secure
1080
- */ getFundList(config) {
1081
- return this.apiClient.request({
1082
- ...config,
1083
- url: `/fund/fund-list`,
1084
- method: 'GET',
1085
- secure: true,
1086
- responseType: 'json'
1087
- });
1088
- }
1089
- }
1090
-
1091
-
1092
- var $4941f64eb306d756$exports = {};
1093
-
1094
- $parcel$export($4941f64eb306d756$exports, "Log", () => $4941f64eb306d756$export$ce30dbb46644d06c);
1095
- /* eslint-disable */ /* tslint:disable */ /*
1096
- * ---------------------------------------------------------------
1097
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1098
- * ## ##
1099
- * ## AUTHOR: acacode ##
1100
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1101
- * ---------------------------------------------------------------
1102
- */
1103
-
1104
- class $4941f64eb306d756$export$ce30dbb46644d06c {
1105
- constructor(apiClient){
1106
- this.apiClient = apiClient;
1107
- (0, $5CwE8$autobind)(this);
1108
- }
1109
- /**
1110
- * @tags Log
1111
- * @name GetDataQueryActionList
1112
- * @summary Query all data query action list in the system - Super admin - available in Microservice
1113
- * @request GET:/api/log/data-query-action-list
1114
- * @secure
1115
- */ getDataQueryActionList(config) {
1116
- return this.apiClient.request({
1117
- ...config,
1118
- url: `/log/data-query-action-list`,
1119
- method: 'GET',
1120
- secure: true,
1121
- responseType: 'json'
1122
- });
1123
- }
1124
- /**
1125
- * @tags Log
1126
- * @name GetDataQueryLogByAction
1127
- * @summary Query data query logs by a specific query and date range - Super admin - available in Microservice, POST with pagination and sort
1128
- * @request GET:/api/log/data-query-log-by-action
1129
- * @secure
1130
- */ getDataQueryLogByAction(query, config) {
1131
- return this.apiClient.request({
1132
- ...config,
1133
- url: `/log/data-query-log-by-action`,
1134
- method: 'GET',
1135
- params: query,
1136
- secure: true,
1137
- responseType: 'json'
1138
- });
1139
- }
1140
- /**
1141
- * @tags Log
1142
- * @name GetDataQueryLogByDataSource
1143
- * @summary Query data query logs by a specific data source and date range and return for report - Super admin - available in Microservice, POST with pagination and sort
1144
- * @request GET:/api/log/data-query-log-by-data-source
1145
- * @secure
1146
- */ getDataQueryLogByDataSource(query, config) {
1147
- return this.apiClient.request({
1148
- ...config,
1149
- url: `/log/data-query-log-by-data-source`,
1150
- method: 'GET',
1151
- params: query,
1152
- secure: true,
1153
- responseType: 'json'
1154
- });
1155
- }
1156
- /**
1157
- * @tags Log
1158
- * @name GetSnapshotCount
1159
- * @summary Query snapshot report counts - Super admin - available in Microservice
1160
- * @request GET:/api/log/snapshot-count
1161
- * @secure
1162
- */ getSnapshotCount(query, config) {
1163
- return this.apiClient.request({
1164
- ...config,
1165
- url: `/log/snapshot-count`,
1166
- method: 'GET',
1167
- params: query,
1168
- secure: true,
1169
- responseType: 'json'
1170
- });
1171
- }
1172
- /**
1173
- * @tags Log
1174
- * @name PostSnapshotReport
1175
- * @summary Query snapshot report for a specific firm and a sepcific exchange with Pagination and Sort - Super admin - available in Microservice
1176
- * @request POST:/api/log/snapshot-report
1177
- * @secure
1178
- */ postSnapshotReport(data, query, config) {
1179
- return this.apiClient.request({
1180
- ...config,
1181
- url: `/log/snapshot-report`,
1182
- method: 'POST',
1183
- params: query,
1184
- data: data,
1185
- secure: true,
1186
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1187
- responseType: 'json'
1188
- });
1189
- }
1190
- /**
1191
- * @tags Log
1192
- * @name GetModificationActionList
1193
- * @summary Query all modification actions list in the system - Super admin - available in Microservice
1194
- * @request GET:/api/log/modification-action-list
1195
- * @secure
1196
- */ getModificationActionList(config) {
1197
- return this.apiClient.request({
1198
- ...config,
1199
- url: `/log/modification-action-list`,
1200
- method: 'GET',
1201
- secure: true,
1202
- responseType: 'json'
1203
- });
1204
- }
1205
- /**
1206
- * @tags Log
1207
- * @name GetModificationLogByAction
1208
- * @summary Query login/out and modification actions logs by a specific action and date range - Super admin - available in Microservice, POST with pagination and sort
1209
- * @request GET:/api/log/modification-log-by-action
1210
- * @secure
1211
- */ getModificationLogByAction(query, config) {
1212
- return this.apiClient.request({
1213
- ...config,
1214
- url: `/log/modification-log-by-action`,
1215
- method: 'GET',
1216
- params: query,
1217
- secure: true,
1218
- responseType: 'json'
1219
- });
1220
- }
1221
- }
1222
-
1223
-
1224
- var $f10477b1ab7c510c$exports = {};
1225
-
1226
- $parcel$export($f10477b1ab7c510c$exports, "Permission", () => $f10477b1ab7c510c$export$a461eaf23bef603e);
1227
- /* eslint-disable */ /* tslint:disable */ /*
1228
- * ---------------------------------------------------------------
1229
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1230
- * ## ##
1231
- * ## AUTHOR: acacode ##
1232
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1233
- * ---------------------------------------------------------------
1234
- */
1235
-
1236
- class $f10477b1ab7c510c$export$a461eaf23bef603e {
1237
- constructor(apiClient){
1238
- this.apiClient = apiClient;
1239
- (0, $5CwE8$autobind)(this);
1240
- }
1241
- /**
1242
- * @tags Permission
1243
- * @name PostPermission
1244
- * @summary Create permission for a user - Internal use only - Super admin - available in Microservice
1245
- * @request POST:/api/permission/permission
1246
- * @secure
1247
- */ postPermission(data, config) {
1248
- return this.apiClient.request({
1249
- ...config,
1250
- url: `/permission/permission`,
1251
- method: 'POST',
1252
- data: data,
1253
- secure: true,
1254
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1255
- });
1256
- }
1257
- /**
1258
- * @tags Permission
1259
- * @name GetPermission
1260
- * @summary Get permission for a user - Internal use only - Super admin - available in Microservice
1261
- * @request GET:/api/permission/permission
1262
- * @secure
1263
- */ getPermission(query, config) {
1264
- return this.apiClient.request({
1265
- ...config,
1266
- url: `/permission/permission`,
1267
- method: 'GET',
1268
- params: query,
1269
- secure: true,
1270
- responseType: 'json'
1271
- });
1272
- }
1273
- /**
1274
- * @tags Permission
1275
- * @name DeletePermission
1276
- * @summary Delete permission for a user - Internal use only - Super admin - available in Microservice
1277
- * @request DELETE:/api/permission/permission
1278
- * @secure
1279
- */ deletePermission(query, config) {
1280
- return this.apiClient.request({
1281
- ...config,
1282
- url: `/permission/permission`,
1283
- method: 'DELETE',
1284
- params: query,
1285
- secure: true
1286
- });
1287
- }
1288
- }
1289
-
1290
-
1291
- var $28fda0d8c4e23a26$exports = {};
1292
-
1293
- $parcel$export($28fda0d8c4e23a26$exports, "UmaTest", () => $28fda0d8c4e23a26$export$51933dbbacfe440f);
1294
- /* eslint-disable */ /* tslint:disable */ /*
1295
- * ---------------------------------------------------------------
1296
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1297
- * ## ##
1298
- * ## AUTHOR: acacode ##
1299
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1300
- * ---------------------------------------------------------------
1301
- */
1302
- class $28fda0d8c4e23a26$export$51933dbbacfe440f {
1303
- constructor(apiClient){
1304
- this.apiClient = apiClient;
1305
- (0, $5CwE8$autobind)(this);
1306
- }
1307
- /**
1308
- * @tags UMATest
1309
- * @name GetRevokeUmaUser
1310
- * @summary Test to revoke uma user - internal use only - Super admin - available in Microservice
1311
- * @request GET:/api/uma-test/revoke-uma-user
1312
- * @secure
1313
- */ getRevokeUmaUser(query, config) {
1314
- return this.apiClient.request({
1315
- ...config,
1316
- url: `/uma-test/revoke-uma-user`,
1317
- method: 'GET',
1318
- params: query,
1319
- secure: true
1320
- });
1321
- }
1322
- /**
1323
- * @tags UMATest
1324
- * @name GetFirmList
1325
- * @summary Test to get all uma firms - internal use only - Super admin - available in Microservice
1326
- * @request GET:/api/uma-test/firm-list
1327
- * @secure
1328
- */ getFirmList(config) {
1329
- return this.apiClient.request({
1330
- ...config,
1331
- url: `/uma-test/firm-list`,
1332
- method: 'GET',
1333
- secure: true,
1334
- responseType: 'json'
1335
- });
1336
- }
1337
- /**
1338
- * @tags UMATest
1339
- * @name GetFirmListToLocal
1340
- * @summary Import all uma firms to AES - internal use only - Super admin - available in Microservice
1341
- * @request GET:/api/uma-test/firm-list-to-local
1342
- * @secure
1343
- */ getFirmListToLocal(config) {
1344
- return this.apiClient.request({
1345
- ...config,
1346
- url: `/uma-test/firm-list-to-local`,
1347
- method: 'GET',
1348
- secure: true
1349
- });
1350
- }
1351
- /**
1352
- * @tags UMATest
1353
- * @name GetB2BUserById
1354
- * @summary Test to get uma b2b user by user_id - internal use only - Super admin - available in Microservice
1355
- * @request GET:/api/uma-test/b2b-user-by-id
1356
- * @secure
1357
- */ getB2BUserById(query, config) {
1358
- return this.apiClient.request({
1359
- ...config,
1360
- url: `/uma-test/b2b-user-by-id`,
1361
- method: 'GET',
1362
- params: query,
1363
- secure: true,
1364
- responseType: 'json'
1365
- });
1366
- }
1367
- /**
1368
- * @tags UMATest
1369
- * @name GetB2BUserList
1370
- * @summary Test to get all uma b2b users - internal use only - Super admin - available in Microservice
1371
- * @request GET:/api/uma-test/b2b-user-list
1372
- * @secure
1373
- */ getB2BUserList(config) {
1374
- return this.apiClient.request({
1375
- ...config,
1376
- url: `/uma-test/b2b-user-list`,
1377
- method: 'GET',
1378
- secure: true,
1379
- responseType: 'json'
1380
- });
1381
- }
1382
- /**
1383
- * @tags UMATest
1384
- * @name GetB2BUserListToLocal
1385
- * @summary Import all uma b2b users to AES - internal use only - Super admin - available in Microservice
1386
- * @request GET:/api/uma-test/b2b-user-list-to-local
1387
- * @secure
1388
- */ getB2BUserListToLocal(config) {
1389
- return this.apiClient.request({
1390
- ...config,
1391
- url: `/uma-test/b2b-user-list-to-local`,
1392
- method: 'GET',
1393
- secure: true
1394
- });
1395
- }
1396
- /**
1397
- * @tags UMATest
1398
- * @name GetB2CUserById
1399
- * @summary Test to get uma b2c user by user_id - internal use only - Super admin - available in Microservice
1400
- * @request GET:/api/uma-test/b2c-user-by-id
1401
- * @secure
1402
- */ getB2CUserById(query, config) {
1403
- return this.apiClient.request({
1404
- ...config,
1405
- url: `/uma-test/b2c-user-by-id`,
1406
- method: 'GET',
1407
- params: query,
1408
- secure: true,
1409
- responseType: 'json'
1410
- });
1411
- }
1412
- /**
1413
- * @tags UMATest
1414
- * @name GetB2CUserList
1415
- * @summary Test to get all uma b2c users - internal use only - Super admin - available in Microservice
1416
- * @request GET:/api/uma-test/b2c-user-list
1417
- * @secure
1418
- */ getB2CUserList(config) {
1419
- return this.apiClient.request({
1420
- ...config,
1421
- url: `/uma-test/b2c-user-list`,
1422
- method: 'GET',
1423
- secure: true,
1424
- responseType: 'json'
1425
- });
1426
- }
1427
- /**
1428
- * @tags UMATest
1429
- * @name GetB2CUserListToLocal
1430
- * @summary Import all uma b2c users to AES - internal use only - Super admin - available in Microservice
1431
- * @request GET:/api/uma-test/b2c-user-list-to-local
1432
- * @secure
1433
- */ getB2CUserListToLocal(config) {
1434
- return this.apiClient.request({
1435
- ...config,
1436
- url: `/uma-test/b2c-user-list-to-local`,
1437
- method: 'GET',
1438
- secure: true
1439
- });
1440
- }
1441
- }
1442
-
1443
-
1444
- var $75957c5651a48db2$exports = {};
1445
-
1446
- $parcel$export($75957c5651a48db2$exports, "QuotesReformat", () => $75957c5651a48db2$export$304305f55794ea0e);
1447
- /* eslint-disable */ /* tslint:disable */ /*
1448
- * ---------------------------------------------------------------
1449
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1450
- * ## ##
1451
- * ## AUTHOR: acacode ##
1452
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1453
- * ---------------------------------------------------------------
1454
- */
1455
- class $75957c5651a48db2$export$304305f55794ea0e {
1456
- constructor(apiClient){
1457
- this.apiClient = apiClient;
1458
- (0, $5CwE8$autobind)(this);
1459
- }
1460
- /**
1461
- * @tags QuotesReformat
1462
- * @name GetEquity
1463
- * @summary Query full Level 1 data - All users - available in Microservice
1464
- * @request GET:/api/quotes/equity
1465
- * @secure
1466
- */ getEquity(query, config) {
1467
- return this.apiClient.request({
1468
- ...config,
1469
- url: `/quotes/equity`,
1470
- method: 'GET',
1471
- params: query,
1472
- secure: true,
1473
- responseType: 'json'
1474
- });
1475
- }
1476
- /**
1477
- * @tags QuotesReformat
1478
- * @name GetEquityIntraday
1479
- * @summary Query intra-day and historical Minute Chart. If no days range provided, it return intraday chart. rsiSpan is no supported. All Volume is raw Volume. - All users - available in Microservice
1480
- * @request GET:/api/quotes/equity/intraday
1481
- * @secure
1482
- */ getEquityIntraday(query, config) {
1483
- return this.apiClient.request({
1484
- ...config,
1485
- url: `/quotes/equity/intraday`,
1486
- method: 'GET',
1487
- params: query,
1488
- secure: true,
1489
- responseType: 'json'
1490
- });
1491
- }
1492
- /**
1493
- * @tags QuotesReformat
1494
- * @name GetOptionHistorical
1495
- * @summary Query option Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1496
- * @request GET:/api/quotes/option/historical
1497
- * @secure
1498
- */ getOptionHistorical(query, config) {
1499
- return this.apiClient.request({
1500
- ...config,
1501
- url: `/quotes/option/historical`,
1502
- method: 'GET',
1503
- params: query,
1504
- secure: true,
1505
- responseType: 'json'
1506
- });
1507
- }
1508
- /**
1509
- * @tags QuotesReformat
1510
- * @name GetSearch
1511
- * @summary To search for a company and the exact ticker symbol is not known, use this endpoint for a string search. - All users - available in Microservice version
1512
- * @request GET:/api/quotes/search
1513
- * @secure
1514
- */ getSearch(query, config) {
1515
- return this.apiClient.request({
1516
- ...config,
1517
- url: `/quotes/search`,
1518
- method: 'GET',
1519
- params: query,
1520
- secure: true
1521
- });
1522
- }
1523
- /**
1524
- * @tags QuotesReformat
1525
- * @name GetOption
1526
- * @summary Query Option Level 1 data - All users - available in Microservice
1527
- * @request GET:/api/quotes/option
1528
- * @secure
1529
- */ getOption(query, config) {
1530
- return this.apiClient.request({
1531
- ...config,
1532
- url: `/quotes/option`,
1533
- method: 'GET',
1534
- params: query,
1535
- secure: true,
1536
- responseType: 'json'
1537
- });
1538
- }
1539
- /**
1540
- * @tags QuotesReformat
1541
- * @name GetOptionChainDates
1542
- * @summary Query Option Chain dates - All users - available in Microservice
1543
- * @request GET:/api/quotes/option/chain/dates/{symbol}
1544
- * @secure
1545
- */ getOptionChainDates(symbol, query, config) {
1546
- return this.apiClient.request({
1547
- ...config,
1548
- url: `/quotes/option/chain/dates/${symbol}`,
1549
- method: 'GET',
1550
- params: query,
1551
- secure: true,
1552
- responseType: 'json'
1553
- });
1554
- }
1555
- /**
1556
- * @tags QuotesReformat
1557
- * @name GetOptionChain
1558
- * @summary Query Option Chain data - All users - available in Microservice
1559
- * @request GET:/api/quotes/option/chain/{symbol}/{date}
1560
- * @secure
1561
- */ getOptionChain(symbol, date, query, config) {
1562
- return this.apiClient.request({
1563
- ...config,
1564
- url: `/quotes/option/chain/${symbol}/${date}`,
1565
- method: 'GET',
1566
- params: query,
1567
- secure: true,
1568
- responseType: 'json'
1569
- });
1570
- }
1571
- /**
1572
- * @tags QuotesReformat
1573
- * @name GetEquityHistorical
1574
- * @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1575
- * @request GET:/api/quotes/equity/historical
1576
- * @secure
1577
- */ getEquityHistorical(query, config) {
1578
- return this.apiClient.request({
1579
- ...config,
1580
- url: `/quotes/equity/historical`,
1581
- method: 'GET',
1582
- params: query,
1583
- secure: true,
1584
- responseType: 'json'
1585
- });
1586
- }
1587
- /**
1588
- * @tags QuotesReformat
1589
- * @name GetBonds
1590
- * @summary Query Bonds data - All users - available in Microservice
1591
- * @request GET:/api/quotes/bonds
1592
- * @secure
1593
- */ getBonds(query, config) {
1594
- return this.apiClient.request({
1595
- ...config,
1596
- url: `/quotes/bonds`,
1597
- method: 'GET',
1598
- params: query,
1599
- secure: true,
1600
- responseType: 'json'
1601
- });
1602
- }
1603
- /**
1604
- * @tags QuotesReformat
1605
- * @name GetBondsSearch
1606
- * @summary Search bonds - All users - available in Microservice
1607
- * @request GET:/api/quotes/bonds/search
1608
- * @secure
1609
- */ getBondsSearch(query, config) {
1610
- return this.apiClient.request({
1611
- ...config,
1612
- url: `/quotes/bonds/search`,
1613
- method: 'GET',
1614
- params: query,
1615
- secure: true
1616
- });
1617
- }
1618
- /**
1619
- * @tags QuotesReformat
1620
- * @name GetQuotesReformat
1621
- * @summary Query Forex rate - All users - available in Microservice
1622
- * @request GET:/api/quotes/fx
1623
- * @secure
1624
- */ getQuotesReformat(query, config) {
1625
- return this.apiClient.request({
1626
- ...config,
1627
- url: `/quotes/fx`,
1628
- method: 'GET',
1629
- params: query,
1630
- secure: true,
1631
- responseType: 'json'
1632
- });
1633
- }
1634
- }
1635
-
1636
-
1637
- var $d014cbaaab9ee483$exports = {};
1638
-
1639
- $parcel$export($d014cbaaab9ee483$exports, "User", () => $d014cbaaab9ee483$export$1f44aaf2ec115b54);
1640
- /* eslint-disable */ /* tslint:disable */ /*
1641
- * ---------------------------------------------------------------
1642
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1643
- * ## ##
1644
- * ## AUTHOR: acacode ##
1645
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1646
- * ---------------------------------------------------------------
1647
- */
1648
-
1649
- class $d014cbaaab9ee483$export$1f44aaf2ec115b54 {
1650
- constructor(apiClient){
1651
- this.apiClient = apiClient;
1652
- (0, $5CwE8$autobind)(this);
1653
- }
1654
- /**
1655
- * @tags User
1656
- * @name PostRegisterRegular
1657
- * @summary Create a new regular user - Firm manager, or super admin - Not available in Microservice
1658
- * @request POST:/api/user/register-regular
1659
- * @secure
1660
- */ postRegisterRegular(data, config) {
1661
- return this.apiClient.request({
1662
- ...config,
1663
- url: `/user/register-regular`,
1664
- method: 'POST',
1665
- data: data,
1666
- secure: true,
1667
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1668
- });
1669
- }
1670
- /**
1671
- * @tags User
1672
- * @name PostRegisterAdmin
1673
- * @summary Create a new admin user - Super admin - Not available in Microservice
1674
- * @request POST:/api/user/register-admin
1675
- * @secure
1676
- */ postRegisterAdmin(data, config) {
1677
- return this.apiClient.request({
1678
- ...config,
1679
- url: `/user/register-admin`,
1680
- method: 'POST',
1681
- data: data,
1682
- secure: true,
1683
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1684
- });
1685
- }
1686
- /**
1687
- * @tags User
1688
- * @name PostRegisterManager
1689
- * @summary Create a new firm manager user - Firm manager, or super admin - Not available in Microservice
1690
- * @request POST:/api/user/register-manager
1691
- * @secure
1692
- */ postRegisterManager(data, config) {
1693
- return this.apiClient.request({
1694
- ...config,
1695
- url: `/user/register-manager`,
1696
- method: 'POST',
1697
- data: data,
1698
- secure: true,
1699
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1700
- });
1701
- }
1702
- /**
1703
- * @tags User
1704
- * @name PostRegisterUmaB2BUser
1705
- * @summary Create a new b2b user from UMA - Firm manager, or super admin - available in Microservice
1706
- * @request POST:/api/user/register-uma-b2b-user
1707
- * @secure
1708
- */ postRegisterUmaB2BUser(data, config) {
1709
- return this.apiClient.request({
1710
- ...config,
1711
- url: `/user/register-uma-b2b-user`,
1712
- method: 'POST',
1713
- data: data,
1714
- secure: true,
1715
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1716
- });
1717
- }
1718
- /**
1719
- * @tags User
1720
- * @name PostRegisterUmaB2CUser
1721
- * @summary Create a new b2c user from UMA - Firm manager, or super admin - available in Microservice
1722
- * @request POST:/api/user/register-uma-b2c-user
1723
- * @secure
1724
- */ postRegisterUmaB2CUser(data, config) {
1725
- return this.apiClient.request({
1726
- ...config,
1727
- url: `/user/register-uma-b2c-user`,
1728
- method: 'POST',
1729
- data: data,
1730
- secure: true,
1731
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1732
- });
1733
- }
1734
- /**
1735
- * @tags User
1736
- * @name GetUmaB2BUserList
1737
- * @summary Get UMA b2b users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
1738
- * @request GET:/api/user/uma-b2b-user-list
1739
- * @secure
1740
- */ getUmaB2BUserList(query, config) {
1741
- return this.apiClient.request({
1742
- ...config,
1743
- url: `/user/uma-b2b-user-list`,
1744
- method: 'GET',
1745
- params: query,
1746
- secure: true,
1747
- responseType: 'json'
1748
- });
1749
- }
1750
- /**
1751
- * @tags User
1752
- * @name GetUmaB2CUserList
1753
- * @summary Get UMA b2c users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
1754
- * @request GET:/api/user/uma-b2c-user-list
1755
- * @secure
1756
- */ getUmaB2CUserList(query, config) {
1757
- return this.apiClient.request({
1758
- ...config,
1759
- url: `/user/uma-b2c-user-list`,
1760
- method: 'GET',
1761
- params: query,
1762
- secure: true,
1763
- responseType: 'json'
1764
- });
1765
- }
1766
- /**
1767
- * @tags User
1768
- * @name PostLogin
1769
- * @summary all user login - All users - Not available in Microservice
1770
- * @request POST:/api/user/login
1771
- * @secure
1772
- */ postLogin(data, config) {
1773
- return this.apiClient.request({
1774
- ...config,
1775
- url: `/user/login`,
1776
- method: 'POST',
1777
- data: data,
1778
- secure: true,
1779
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1780
- });
1781
- }
1782
- /**
1783
- * @description token will be revoked even not expired
1784
- * @tags User
1785
- * @name GetLogout
1786
- * @summary logout with user id - All users - Not available in Microservice
1787
- * @request GET:/api/user/logout
1788
- * @secure
1789
- */ getLogout(query, config) {
1790
- return this.apiClient.request({
1791
- ...config,
1792
- url: `/user/logout`,
1793
- method: 'GET',
1794
- params: query,
1795
- secure: true
1796
- });
1797
- }
1798
- /**
1799
- * @tags User
1800
- * @name PutPhoneNumber
1801
- * @summary update a user registered phone number - All users - Not available in Microservice
1802
- * @request PUT:/api/user/phone-number
1803
- * @secure
1804
- */ putPhoneNumber(data, config) {
1805
- return this.apiClient.request({
1806
- ...config,
1807
- url: `/user/phone-number`,
1808
- method: 'PUT',
1809
- data: data,
1810
- secure: true,
1811
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1812
- });
1813
- }
1814
- /**
1815
- * @tags User
1816
- * @name PutEmail
1817
- * @summary update a user registered email - All users - Not available in Microservice
1818
- * @request PUT:/api/user/email
1819
- * @secure
1820
- */ putEmail(data, config) {
1821
- return this.apiClient.request({
1822
- ...config,
1823
- url: `/user/email`,
1824
- method: 'PUT',
1825
- data: data,
1826
- secure: true,
1827
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1828
- });
1829
- }
1830
- /**
1831
- * @description It will check old passoword.
1832
- * @tags User
1833
- * @name PutChangePassword
1834
- * @summary User change its own password - All users - Not available in Microservice
1835
- * @request PUT:/api/user/change-password
1836
- * @secure
1837
- */ putChangePassword(data, config) {
1838
- return this.apiClient.request({
1839
- ...config,
1840
- url: `/user/change-password`,
1841
- method: 'PUT',
1842
- data: data,
1843
- secure: true,
1844
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
1845
- });
1846
- }
1847
- /**
1848
- * @description For manager/admin user, it does not require old password.
1849
- * @tags User
1850
- * @name GetResetUserPassword
1851
- * @summary Reset a user password - Firm manager, or super admin - Not available in Microservice
1852
- * @request GET:/api/user/reset-user-password
1853
- * @secure
1854
- */ getResetUserPassword(query, config) {
1855
- return this.apiClient.request({
1856
- ...config,
1857
- url: `/user/reset-user-password`,
1858
- method: 'GET',
1859
- params: query,
1860
- secure: true
1861
- });
1862
- }
1863
- /**
1864
- * @tags User
1865
- * @name GetUserNameById
1866
- * @summary Get a user Name by a specific user Id - All users - Not available in Microservice
1867
- * @request GET:/api/user/user-name-by-id
1868
- * @secure
1869
- */ getUserNameById(query, config) {
1870
- return this.apiClient.request({
1871
- ...config,
1872
- url: `/user/user-name-by-id`,
1873
- method: 'GET',
1874
- params: query,
1875
- secure: true,
1876
- responseType: 'json'
1877
- });
1878
- }
1879
- /**
1880
- * @description User Name is unique in the system.
1881
- * @tags User
1882
- * @name GetUserIdByName
1883
- * @summary Get a user Id by a specific user Name - All users - Not available in Microservice
1884
- * @request GET:/api/user/user-id-by-name
1885
- * @secure
1886
- */ getUserIdByName(query, config) {
1887
- return this.apiClient.request({
1888
- ...config,
1889
- url: `/user/user-id-by-name`,
1890
- method: 'GET',
1891
- params: query,
1892
- secure: true,
1893
- responseType: 'json'
1894
- });
1895
- }
1896
- /**
1897
- * @tags User
1898
- * @name GetUserByName
1899
- * @summary Search a user by an exactly user name - All users - Not available in Microservice
1900
- * @request GET:/api/user/user-by-name
1901
- * @secure
1902
- */ getUserByName(query, config) {
1903
- return this.apiClient.request({
1904
- ...config,
1905
- url: `/user/user-by-name`,
1906
- method: 'GET',
1907
- params: query,
1908
- secure: true,
1909
- responseType: 'json'
1910
- });
1911
- }
1912
- /**
1913
- * @tags User
1914
- * @name GetUsersById
1915
- * @summary Search users by exactly userids - All users - Not available in Microservice
1916
- * @request GET:/api/user/users-by-id
1917
- * @secure
1918
- */ getUsersById(query, config) {
1919
- return this.apiClient.request({
1920
- ...config,
1921
- url: `/user/users-by-id`,
1922
- method: 'GET',
1923
- params: query,
1924
- secure: true,
1925
- responseType: 'json'
1926
- });
1927
- }
1928
- /**
1929
- * @description It will return all users that user name contains the query string, no matter case.
1930
- * @tags User
1931
- * @name PostUsersFuzzy
1932
- * @summary Search users which include a specific string with Pagination and Sort - All users - Not available in Microservice
1933
- * @request POST:/api/user/users-fuzzy
1934
- * @secure
1935
- */ postUsersFuzzy(data, query, config) {
1936
- return this.apiClient.request({
1937
- ...config,
1938
- url: `/user/users-fuzzy`,
1939
- method: 'POST',
1940
- params: query,
1941
- data: data,
1942
- secure: true,
1943
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1944
- responseType: 'json'
1945
- });
1946
- }
1947
- /**
1948
- * @tags User
1949
- * @name GetUsersByFirm
1950
- * @summary Query all users in a specific firm - Firm manager, or super admin - Not available in Microservice
1951
- * @request GET:/api/user/users-by-firm
1952
- * @secure
1953
- */ getUsersByFirm(query, config) {
1954
- return this.apiClient.request({
1955
- ...config,
1956
- url: `/user/users-by-firm`,
1957
- method: 'GET',
1958
- params: query,
1959
- secure: true,
1960
- responseType: 'json'
1961
- });
1962
- }
1963
- /**
1964
- * @description All conditions are optional
1965
- * @tags User
1966
- * @name PostUsersByMultipleConditions
1967
- * @summary Search Users by multiple conditions with Pagination and Sort - Firm manager, or super admin - available in Microservice
1968
- For Microservice API:
1969
- 1. No parameter 'user_name' and 'email'. Instead, it has parameter 'user_search', which will do fuzzy search on both user_name and email.
1970
- 2. Only return 'UMA' source users
1971
- * @request POST:/api/user/users-by-multiple-conditions
1972
- * @secure
1973
- */ postUsersByMultipleConditions(data, query, config) {
1974
- return this.apiClient.request({
1975
- ...config,
1976
- url: `/user/users-by-multiple-conditions`,
1977
- method: 'POST',
1978
- params: query,
1979
- data: data,
1980
- secure: true,
1981
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1982
- responseType: 'json'
1983
- });
1984
- }
1985
- /**
1986
- * @description Super admin is admin users in ViewTrade
1987
- * @tags User
1988
- * @name PostSuperAdmins
1989
- * @summary Query all super admin users - Super admin - Not available in Microservice
1990
- * @request POST:/api/user/super-admins
1991
- * @secure
1992
- */ postSuperAdmins(data, config) {
1993
- return this.apiClient.request({
1994
- ...config,
1995
- url: `/user/super-admins`,
1996
- method: 'POST',
1997
- data: data,
1998
- secure: true,
1999
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2000
- responseType: 'json'
2001
- });
2002
- }
2003
- /**
2004
- * @description !Caution! It will delete the relevant user information, data configuration and unsign all UserEntitlements for this user.
2005
- * @tags User
2006
- * @name DeleteUser
2007
- * @summary Delete an existing user - Super admin - Not available in Microservice
2008
- * @request DELETE:/api/user/user
2009
- * @secure
2010
- */ deleteUser(query, config) {
2011
- return this.apiClient.request({
2012
- ...config,
2013
- url: `/user/user`,
2014
- method: 'DELETE',
2015
- params: query,
2016
- secure: true
2017
- });
2018
- }
2019
- /**
2020
- * @tags User
2021
- * @name GetUserRole
2022
- * @summary Search a user role by user Id - All users - Not available in Microservice
2023
- * @request GET:/api/user/user-role
2024
- * @secure
2025
- */ getUserRole(query, config) {
2026
- return this.apiClient.request({
2027
- ...config,
2028
- url: `/user/user-role`,
2029
- method: 'GET',
2030
- params: query,
2031
- secure: true
2032
- });
2033
- }
2034
- /**
2035
- * @description When manager/admin create user information, it will not validate user information. When end user create user information, it will validate user information: - "FirstName is required and length is 1~255" - "LastName is required and length is 1~255" - "Street1 is required" - "City is required" - "State is required" - "ZipCode is required" - "Country is required" - "EmployStatus is required" - "LicenseNumber is required and length is 1~255 for professional user"
2036
- * @tags User
2037
- * @name PostUserInformation
2038
- * @summary Create new user information - All users - available in Microservice
2039
- * @request POST:/api/user/user-information
2040
- * @secure
2041
- */ postUserInformation(data, config) {
2042
- return this.apiClient.request({
2043
- ...config,
2044
- url: `/user/user-information`,
2045
- method: 'POST',
2046
- data: data,
2047
- secure: true,
2048
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2049
- responseType: 'json'
2050
- });
2051
- }
2052
- /**
2053
- * @description When manager/admin create user information, it will not validate user information. When end user create user information, it will validate user information: - "FirstName is required and length is 1~255" - "LastName is required and length is 1~255" - "Street1 is required" - "City is required" - "State is required" - "ZipCode is required" - "Country is required" - "EmployStatus is required" - "LicenseNumber is required and length is 1~255 for professional user"
2054
- * @tags User
2055
- * @name PutUserInformation
2056
- * @summary Update existing user information - All users - available in Microservice
2057
- * @request PUT:/api/user/user-information
2058
- * @secure
2059
- */ putUserInformation(data, query, config) {
2060
- return this.apiClient.request({
2061
- ...config,
2062
- url: `/user/user-information`,
2063
- method: 'PUT',
2064
- params: query,
2065
- data: data,
2066
- secure: true,
2067
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2068
- });
2069
- }
2070
- /**
2071
- * @tags User
2072
- * @name GetUserInformationById
2073
- * @summary Query a specific user information - All users - available in Microservice
2074
- * @request GET:/api/user/user-information-by-id
2075
- * @secure
2076
- */ getUserInformationById(query, config) {
2077
- return this.apiClient.request({
2078
- ...config,
2079
- url: `/user/user-information-by-id`,
2080
- method: 'GET',
2081
- params: query,
2082
- secure: true,
2083
- responseType: 'json'
2084
- });
2085
- }
2086
- /**
2087
- * @tags User
2088
- * @name GetOccupationList
2089
- * @summary Query occupation list that can be used in user information EmploymentFunction - All users - available in Microservice
2090
- * @request GET:/api/user/occupation-list
2091
- * @secure
2092
- */ getOccupationList(config) {
2093
- return this.apiClient.request({
2094
- ...config,
2095
- url: `/user/occupation-list`,
2096
- method: 'GET',
2097
- secure: true,
2098
- responseType: 'json'
2099
- });
2100
- }
2101
- /**
2102
- * @description It will check if user firm has relevant data acess.
2103
- * @tags User
2104
- * @name PostUserDataConfig
2105
- * @summary Create new user data configuration - Firm manager, or super admin - available in Microservice
2106
- * @request POST:/api/user/user-data-config
2107
- * @secure
2108
- */ postUserDataConfig(data, config) {
2109
- return this.apiClient.request({
2110
- ...config,
2111
- url: `/user/user-data-config`,
2112
- method: 'POST',
2113
- data: data,
2114
- secure: true,
2115
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2116
- responseType: 'json'
2117
- });
2118
- }
2119
- /**
2120
- * @description It will check if user firm has relevant data acess.
2121
- * @tags User
2122
- * @name PutUserDataConfig
2123
- * @summary Update existing user data configuration - Firm manager, or super admin - available in Microservice
2124
- * @request PUT:/api/user/user-data-config
2125
- * @secure
2126
- */ putUserDataConfig(data, query, config) {
2127
- return this.apiClient.request({
2128
- ...config,
2129
- url: `/user/user-data-config`,
2130
- method: 'PUT',
2131
- params: query,
2132
- data: data,
2133
- secure: true,
2134
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2135
- });
2136
- }
2137
- /**
2138
- * @description USEquity bitwise: 1 UTP(Nasdaq), 2 CBOE1, 3 BATS, 4 NYBQT, 5 UTP OTC, 6 CTA-A, 7 CTA-B
2139
- * @tags User
2140
- * @name GetUserDataConfigById
2141
- * @summary Query a user data configuration by user Id - All users - available in Microservice
2142
- * @request GET:/api/user/user-data-config-by-id
2143
- * @secure
2144
- */ getUserDataConfigById(query, config) {
2145
- return this.apiClient.request({
2146
- ...config,
2147
- url: `/user/user-data-config-by-id`,
2148
- method: 'GET',
2149
- params: query,
2150
- secure: true,
2151
- responseType: 'json'
2152
- });
2153
- }
2154
- /**
2155
- * @tags User
2156
- * @name GetUserDataConfigByIdExtraInfo
2157
- * @summary Query a user data configuration by user Id - All users - available in Microservice
2158
- * @request GET:/api/user/user-data-config-by-id-extra-info
2159
- * @secure
2160
- */ getUserDataConfigByIdExtraInfo(query, config) {
2161
- return this.apiClient.request({
2162
- ...config,
2163
- url: `/user/user-data-config-by-id-extra-info`,
2164
- method: 'GET',
2165
- params: query,
2166
- secure: true,
2167
- responseType: 'json'
2168
- });
2169
- }
2170
- /**
2171
- * @tags User
2172
- * @name GetUserDataConfigs
2173
- * @summary Query user data configurations by user Ids - Firm manager or super admin - available in Microservice
2174
- * @request GET:/api/user/user-data-configs
2175
- * @secure
2176
- */ getUserDataConfigs(query, config) {
2177
- return this.apiClient.request({
2178
- ...config,
2179
- url: `/user/user-data-configs`,
2180
- method: 'GET',
2181
- params: query,
2182
- secure: true,
2183
- responseType: 'json'
2184
- });
2185
- }
2186
- /**
2187
- * @tags User
2188
- * @name GetUserNeedSignAgreements
2189
- * @summary Query which entitlements(agreements) a user need to sign(but not signed yet) by user name - All users - available in Microservice
2190
- * @request GET:/api/user/user-need-sign-agreements
2191
- * @secure
2192
- */ getUserNeedSignAgreements(query, config) {
2193
- return this.apiClient.request({
2194
- ...config,
2195
- url: `/user/user-need-sign-agreements`,
2196
- method: 'GET',
2197
- params: query,
2198
- secure: true,
2199
- responseType: 'json'
2200
- });
2201
- }
2202
- /**
2203
- * @tags User
2204
- * @name GetSessionAlive
2205
- * @summary Query if current user session is alive - All users - Not available in Microservice
2206
- * @request GET:/api/user/session-alive
2207
- * @secure
2208
- */ getSessionAlive(config) {
2209
- return this.apiClient.request({
2210
- ...config,
2211
- url: `/user/session-alive`,
2212
- method: 'GET',
2213
- secure: true,
2214
- responseType: 'json'
2215
- });
2216
- }
2217
- /**
2218
- * @tags User
2219
- * @name GetTest
2220
- * @summary For system deployment user only - All users - available in Microservice
2221
- * @request GET:/api/user/Test
2222
- * @secure
2223
- */ getTest(config) {
2224
- return this.apiClient.request({
2225
- ...config,
2226
- url: `/user/Test`,
2227
- method: 'GET',
2228
- secure: true,
2229
- responseType: 'json'
2230
- });
2231
- }
2232
- }
2233
-
2234
-
2235
- var $e3362299f3dca2a2$exports = {};
2236
-
2237
- $parcel$export($e3362299f3dca2a2$exports, "Quote", () => $e3362299f3dca2a2$export$82b8d343c504672);
2238
- /* eslint-disable */ /* tslint:disable */ /*
2239
- * ---------------------------------------------------------------
2240
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2241
- * ## ##
2242
- * ## AUTHOR: acacode ##
2243
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2244
- * ---------------------------------------------------------------
2245
- */
2246
-
2247
- class $e3362299f3dca2a2$export$82b8d343c504672 {
2248
- constructor(apiClient){
2249
- this.apiClient = apiClient;
2250
- (0, $5CwE8$autobind)(this);
2251
- }
2252
- /**
2253
- * @tags Quote
2254
- * @name PostSymbolSearch
2255
- * @summary Symbol screener - All users - available in Microservice version
2256
- * @request POST:/api/quote/symbol-search
2257
- * @secure
2258
- */ postSymbolSearch(data, query, config) {
2259
- return this.apiClient.request({
2260
- ...config,
2261
- url: `/quote/symbol-search`,
2262
- method: 'POST',
2263
- params: query,
2264
- data: data,
2265
- secure: true,
2266
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2267
- responseType: 'json'
2268
- });
2269
- }
2270
- /**
2271
- * @tags Quote
2272
- * @name GetBestQuote
2273
- * @summary Query Best Quote(Level 1 data) - All users - available in Microservice
2274
- * @request GET:/api/quote/best-quote
2275
- * @secure
2276
- */ getBestQuote(query, config) {
2277
- return this.apiClient.request({
2278
- ...config,
2279
- url: `/quote/best-quote`,
2280
- method: 'GET',
2281
- params: query,
2282
- secure: true,
2283
- responseType: 'json'
2284
- });
2285
- }
2286
- /**
2287
- * @tags Quote
2288
- * @name GetNbboSnapshot
2289
- * @summary Query NBBO Snapshot - All users - available in Microservice
2290
- * @request GET:/api/quote/nbbo-snapshot
2291
- * @secure
2292
- */ getNbboSnapshot(query, config) {
2293
- return this.apiClient.request({
2294
- ...config,
2295
- url: `/quote/nbbo-snapshot`,
2296
- method: 'GET',
2297
- params: query,
2298
- secure: true,
2299
- responseType: 'json'
2300
- });
2301
- }
2302
- /**
2303
- * @tags Quote
2304
- * @name GetLevel1
2305
- * @summary Query full Level 1 data - All users - available in Microservice
2306
- * @request GET:/api/quote/level1
2307
- * @secure
2308
- */ getLevel1(query, config) {
2309
- return this.apiClient.request({
2310
- ...config,
2311
- url: `/quote/level1`,
2312
- method: 'GET',
2313
- params: query,
2314
- secure: true,
2315
- responseType: 'json'
2316
- });
2317
- }
2318
- /**
2319
- * @tags Quote
2320
- * @name GetRegionQuotes
2321
- * @summary Query Region Quotes from Tick data - All users - available in Microservice
2322
- * @request GET:/api/quote/region-quotes
2323
- * @secure
2324
- */ getRegionQuotes(query, config) {
2325
- return this.apiClient.request({
2326
- ...config,
2327
- url: `/quote/region-quotes`,
2328
- method: 'GET',
2329
- params: query,
2330
- secure: true,
2331
- responseType: 'json'
2332
- });
2333
- }
2334
- /**
2335
- * @tags Quote
2336
- * @name GetTimeSale
2337
- * @summary Query TimeSale from Tick data - All users - available in Microservice
2338
- * @request GET:/api/quote/time-sale
2339
- * @secure
2340
- */ getTimeSale(query, config) {
2341
- return this.apiClient.request({
2342
- ...config,
2343
- url: `/quote/time-sale`,
2344
- method: 'GET',
2345
- params: query,
2346
- secure: true,
2347
- responseType: 'json'
2348
- });
2349
- }
2350
- /**
2351
- * @tags Quote
2352
- * @name GetLastTrade
2353
- * @summary Query Last Trade(Level 2 data) - All users - available in Microservice
2354
- * @request GET:/api/quote/last-trade
2355
- * @secure
2356
- */ getLastTrade(query, config) {
2357
- return this.apiClient.request({
2358
- ...config,
2359
- url: `/quote/last-trade`,
2360
- method: 'GET',
2361
- params: query,
2362
- secure: true,
2363
- responseType: 'json'
2364
- });
2365
- }
2366
- /**
2367
- * @tags Quote
2368
- * @name GetIntradayChart
2369
- * @summary Query intra-day Day Chart and Minute Chart - All users - available in Microservice
2370
- * @request GET:/api/quote/intraday-chart
2371
- * @secure
2372
- */ getIntradayChart(query, config) {
2373
- return this.apiClient.request({
2374
- ...config,
2375
- url: `/quote/intraday-chart`,
2376
- method: 'GET',
2377
- params: query,
2378
- secure: true,
2379
- responseType: 'json'
2380
- });
2381
- }
2382
- /**
2383
- * @tags Quote
2384
- * @name GetHistoricalDayChart
2385
- * @summary Query Historical Day Chart - All users - available in Microservice
2386
- * @request GET:/api/quote/historical-day-chart
2387
- * @secure
2388
- */ getHistoricalDayChart(query, config) {
2389
- return this.apiClient.request({
2390
- ...config,
2391
- url: `/quote/historical-day-chart`,
2392
- method: 'GET',
2393
- params: query,
2394
- secure: true,
2395
- responseType: 'json'
2396
- });
2397
- }
2398
- /**
2399
- * @tags Quote
2400
- * @name GetHistoricalMinuteChart
2401
- * @summary Query Historical Minute Chart - All users - available in Microservice
2402
- * @request GET:/api/quote/historical-minute-chart
2403
- * @secure
2404
- */ getHistoricalMinuteChart(query, config) {
2405
- return this.apiClient.request({
2406
- ...config,
2407
- url: `/quote/historical-minute-chart`,
2408
- method: 'GET',
2409
- params: query,
2410
- secure: true,
2411
- responseType: 'json'
2412
- });
2413
- }
2414
- /**
2415
- * @tags Quote
2416
- * @name GetTop20
2417
- * @summary Query Top20 data - All users - available in Microservice
2418
- * @request GET:/api/quote/top-20
2419
- * @secure
2420
- */ getTop20(query, config) {
2421
- return this.apiClient.request({
2422
- ...config,
2423
- url: `/quote/top-20`,
2424
- method: 'GET',
2425
- params: query,
2426
- secure: true,
2427
- responseType: 'json'
2428
- });
2429
- }
2430
- /**
2431
- * @tags Quote
2432
- * @name GetOptionChainDates
2433
- * @summary Query Option Chain dates - All users - available in Microservice
2434
- * @request GET:/api/quote/option-chain-dates
2435
- * @secure
2436
- */ getOptionChainDates(query, config) {
2437
- return this.apiClient.request({
2438
- ...config,
2439
- url: `/quote/option-chain-dates`,
2440
- method: 'GET',
2441
- params: query,
2442
- secure: true,
2443
- responseType: 'json'
2444
- });
2445
- }
2446
- /**
2447
- * @tags Quote
2448
- * @name GetOptionChain
2449
- * @summary Query Option Chain data - All users - available in Microservice
2450
- * @request GET:/api/quote/option-chain
2451
- * @secure
2452
- */ getOptionChain(query, config) {
2453
- return this.apiClient.request({
2454
- ...config,
2455
- url: `/quote/option-chain`,
2456
- method: 'GET',
2457
- params: query,
2458
- secure: true,
2459
- responseType: 'json'
2460
- });
2461
- }
2462
- /**
2463
- * @tags Quote
2464
- * @name GetOptionLevel1
2465
- * @summary Query Option Level 1 data - All users - available in Microservice
2466
- * @request GET:/api/quote/option-level1
2467
- * @secure
2468
- */ getOptionLevel1(query, config) {
2469
- return this.apiClient.request({
2470
- ...config,
2471
- url: `/quote/option-level1`,
2472
- method: 'GET',
2473
- params: query,
2474
- secure: true,
2475
- responseType: 'json'
2476
- });
2477
- }
2478
- /**
2479
- * @tags Quote
2480
- * @name GetOptionLevel1WithGreek
2481
- * @summary Query Option Level 1 data - All users - available in Microservice
2482
- * @request GET:/api/quote/option-level1-with-greek
2483
- * @secure
2484
- */ getOptionLevel1WithGreek(query, config) {
2485
- return this.apiClient.request({
2486
- ...config,
2487
- url: `/quote/option-level1-with-greek`,
2488
- method: 'GET',
2489
- params: query,
2490
- secure: true,
2491
- responseType: 'json'
2492
- });
2493
- }
2494
- /**
2495
- * @tags Quote
2496
- * @name GetOptionDayChart
2497
- * @summary Query Option Day Chart - All users - available in Microservice
2498
- * @request GET:/api/quote/option-day-chart
2499
- * @secure
2500
- */ getOptionDayChart(query, config) {
2501
- return this.apiClient.request({
2502
- ...config,
2503
- url: `/quote/option-day-chart`,
2504
- method: 'GET',
2505
- params: query,
2506
- secure: true,
2507
- responseType: 'json'
2508
- });
2509
- }
2510
- /**
2511
- * @tags Quote
2512
- * @name GetEquiductLevel1
2513
- * @summary Query Equiduct Level 1 data - All users - available in Microservice
2514
- * @request GET:/api/quote/equiduct-level1
2515
- * @secure
2516
- */ getEquiductLevel1(query, config) {
2517
- return this.apiClient.request({
2518
- ...config,
2519
- url: `/quote/equiduct-level1`,
2520
- method: 'GET',
2521
- params: query,
2522
- secure: true,
2523
- responseType: 'json'
2524
- });
2525
- }
2526
- /**
2527
- * @tags Quote
2528
- * @name GetBonds
2529
- * @summary Query Bonds data - All users - available in Microservice
2530
- * @request GET:/api/quote/bonds
2531
- * @secure
2532
- */ getBonds(query, config) {
2533
- return this.apiClient.request({
2534
- ...config,
2535
- url: `/quote/bonds`,
2536
- method: 'GET',
2537
- params: query,
2538
- secure: true,
2539
- responseType: 'json'
2540
- });
2541
- }
2542
- /**
2543
- * @tags Quote
2544
- * @name GetBondsSearch
2545
- * @summary Search bonds - All users - available in Microservice
2546
- * @request GET:/api/quote/bonds-search
2547
- * @secure
2548
- */ getBondsSearch(query, config) {
2549
- return this.apiClient.request({
2550
- ...config,
2551
- url: `/quote/bonds-search`,
2552
- method: 'GET',
2553
- params: query,
2554
- secure: true
2555
- });
2556
- }
2557
- /**
2558
- * @tags Quote
2559
- * @name GetBondsChart
2560
- * @summary Query Bonds historical chart data - All users - available in Microservice
2561
- * @request GET:/api/quote/bonds-chart
2562
- * @secure
2563
- */ getBondsChart(query, config) {
2564
- return this.apiClient.request({
2565
- ...config,
2566
- url: `/quote/bonds-chart`,
2567
- method: 'GET',
2568
- params: query,
2569
- secure: true,
2570
- responseType: 'json'
2571
- });
2572
- }
2573
- /**
2574
- * @tags Quote
2575
- * @name GetMutualFunds
2576
- * @summary Query Mutual Funds data - All users - available in Microservice
2577
- * @request GET:/api/quote/mutual-funds
2578
- * @secure
2579
- */ getMutualFunds(query, config) {
2580
- return this.apiClient.request({
2581
- ...config,
2582
- url: `/quote/mutual-funds`,
2583
- method: 'GET',
2584
- params: query,
2585
- secure: true,
2586
- responseType: 'json'
2587
- });
2588
- }
2589
- /**
2590
- * @tags Quote
2591
- * @name GetQuoddEod
2592
- * @summary Query QUODD EOD data - All users - available in Microservice
2593
- * @request GET:/api/quote/quodd-eod
2594
- * @secure
2595
- */ getQuoddEod(query, config) {
2596
- return this.apiClient.request({
2597
- ...config,
2598
- url: `/quote/quodd-eod`,
2599
- method: 'GET',
2600
- params: query,
2601
- secure: true,
2602
- responseType: 'json'
2603
- });
2604
- }
2605
- /**
2606
- * @tags Quote
2607
- * @name GetQuoddDelay
2608
- * @summary Query QUODD Delay data - All users - available in Microservice
2609
- * @request GET:/api/quote/quodd-delay
2610
- * @secure
2611
- */ getQuoddDelay(query, config) {
2612
- return this.apiClient.request({
2613
- ...config,
2614
- url: `/quote/quodd-delay`,
2615
- method: 'GET',
2616
- params: query,
2617
- secure: true,
2618
- responseType: 'json'
2619
- });
2620
- }
2621
- /**
2622
- * @tags Quote
2623
- * @name GetIceIsin
2624
- * @summary Query ICE ISIN data - All users - available in Microservice
2625
- * @request GET:/api/quote/ice-isin
2626
- * @secure
2627
- */ getIceIsin(query, config) {
2628
- return this.apiClient.request({
2629
- ...config,
2630
- url: `/quote/ice-isin`,
2631
- method: 'GET',
2632
- params: query,
2633
- secure: true,
2634
- responseType: 'json'
2635
- });
2636
- }
2637
- /**
2638
- * @tags Quote
2639
- * @name GetIceEod
2640
- * @summary Query ICE EOD data - All users - available in Microservice
2641
- * @request GET:/api/quote/ice-eod
2642
- * @secure
2643
- */ getIceEod(query, config) {
2644
- return this.apiClient.request({
2645
- ...config,
2646
- url: `/quote/ice-eod`,
2647
- method: 'GET',
2648
- params: query,
2649
- secure: true,
2650
- responseType: 'json'
2651
- });
2652
- }
2653
- /**
2654
- * @tags Quote
2655
- * @name GetFxRate
2656
- * @summary Query Forex data with symbols - All users - available in Microservice
2657
- * @request GET:/api/quote/fx-rate
2658
- * @secure
2659
- */ getFxRate(query, config) {
2660
- return this.apiClient.request({
2661
- ...config,
2662
- url: `/quote/fx-rate`,
2663
- method: 'GET',
2664
- params: query,
2665
- secure: true,
2666
- responseType: 'json'
2667
- });
2668
- }
2669
- /**
2670
- * @tags Quote
2671
- * @name GetFxTable
2672
- * @summary Query Forex table for one currency - All users - available in Microservice
2673
- * @request GET:/api/quote/fx-table
2674
- * @secure
2675
- */ getFxTable(query, config) {
2676
- return this.apiClient.request({
2677
- ...config,
2678
- url: `/quote/fx-table`,
2679
- method: 'GET',
2680
- params: query,
2681
- secure: true,
2682
- responseType: 'json'
2683
- });
2684
- }
2685
- }
2686
-
2687
-
2688
- var $f6830e801aca4170$exports = {};
2689
-
2690
- $parcel$export($f6830e801aca4170$exports, "WebSocket", () => $f6830e801aca4170$export$3909fb301d3dc8c9);
2691
- /* eslint-disable */ /* tslint:disable */ /*
2692
- * ---------------------------------------------------------------
2693
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2694
- * ## ##
2695
- * ## AUTHOR: acacode ##
2696
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2697
- * ---------------------------------------------------------------
2698
- */
2699
- class $f6830e801aca4170$export$3909fb301d3dc8c9 {
2700
- constructor(apiClient){
2701
- this.apiClient = apiClient;
2702
- (0, $5CwE8$autobind)(this);
2703
- }
2704
- /**
2705
- * @tags WebSocket
2706
- * @name GetWebSocket
2707
- * @summary WebSocket endpoint - All users - available in Microservice
2708
- * @request GET:/ws
2709
- * @secure
2710
- */ getWebSocket(config) {
2711
- return this.apiClient.request({
2712
- ...config,
2713
- url: `/ws`,
2714
- method: 'GET',
2715
- secure: true
2716
- });
2717
- }
2718
- /**
2719
- * @tags WebSocket
2720
- * @name GetWssub
2721
- * @summary WebSocket endpoint - All users - available in Microservice
2722
- * @request GET:/wssub
2723
- * @secure
2724
- */ getWssub(config) {
2725
- return this.apiClient.request({
2726
- ...config,
2727
- url: `/wssub`,
2728
- method: 'GET',
2729
- secure: true
2730
- });
2731
- }
2732
- }
2733
-
2734
-
2735
- var $96dd70b953ac50aa$exports = {};
2736
-
2737
- $parcel$export($96dd70b953ac50aa$exports, "WsStream", () => $96dd70b953ac50aa$export$4bc722fa18a49af3);
2738
- /* eslint-disable */ /* tslint:disable */ /*
2739
- * ---------------------------------------------------------------
2740
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2741
- * ## ##
2742
- * ## AUTHOR: acacode ##
2743
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2744
- * ---------------------------------------------------------------
2745
- */
2746
- class $96dd70b953ac50aa$export$4bc722fa18a49af3 {
2747
- constructor(apiClient){
2748
- this.apiClient = apiClient;
2749
- (0, $5CwE8$autobind)(this);
2750
- }
2751
- /**
2752
- * @tags WsStream
2753
- * @name GetStream
2754
- * @summary ws stream endpoint - All users - available in Microservice
2755
- * @request GET:/stream
2756
- * @secure
2757
- */ getStream(config) {
2758
- return this.apiClient.request({
2759
- ...config,
2760
- url: `/stream`,
2761
- method: 'GET',
2762
- secure: true
2763
- });
2764
- }
2765
- }
2766
-
2767
-
2768
- $parcel$exportWildcard($40adcf017c67f573$exports, $b8ece52855abc819$exports);
2769
- $parcel$exportWildcard($40adcf017c67f573$exports, $22a5bbde33c0a998$exports);
2770
- $parcel$exportWildcard($40adcf017c67f573$exports, $78eb44ae01cb99e8$exports);
2771
- $parcel$exportWildcard($40adcf017c67f573$exports, $2b62f356558f69db$exports);
2772
- $parcel$exportWildcard($40adcf017c67f573$exports, $2b871481ea506907$exports);
2773
- $parcel$exportWildcard($40adcf017c67f573$exports, $6136999aea159e3b$exports);
2774
- $parcel$exportWildcard($40adcf017c67f573$exports, $4941f64eb306d756$exports);
2775
- $parcel$exportWildcard($40adcf017c67f573$exports, $f10477b1ab7c510c$exports);
2776
- $parcel$exportWildcard($40adcf017c67f573$exports, $28fda0d8c4e23a26$exports);
2777
- $parcel$exportWildcard($40adcf017c67f573$exports, $75957c5651a48db2$exports);
2778
- $parcel$exportWildcard($40adcf017c67f573$exports, $d014cbaaab9ee483$exports);
2779
- $parcel$exportWildcard($40adcf017c67f573$exports, $e3362299f3dca2a2$exports);
2780
- $parcel$exportWildcard($40adcf017c67f573$exports, $f6830e801aca4170$exports);
2781
- $parcel$exportWildcard($40adcf017c67f573$exports, $96dd70b953ac50aa$exports);
2782
-
2783
-
2784
- class $e27b116a6f94964e$export$fdc699bad85078d9 extends (0, $001a7a5b1ca54b2d$export$3ad201792064a82b) {
2785
- constructor(config){
2786
- super(new (0, $584c124673bb843e$export$f280b732bbc5934b)(config)), this.config = config;
2787
- this.dataSource = new (0, $22a5bbde33c0a998$export$accd73d198d77d2f)(this.apiClient);
2788
- this.entitlement = new (0, $78eb44ae01cb99e8$export$7b20d168ba04011b)(this.apiClient);
2789
- this.file = new (0, $2b62f356558f69db$export$b6afa8811b7e644e)(this.apiClient);
2790
- this.firm = new (0, $2b871481ea506907$export$b82695c11be95fff)(this.apiClient);
2791
- this.fundWebQuote = new (0, $6136999aea159e3b$export$3ddc46c765704011)(this.apiClient);
2792
- this.log = new (0, $4941f64eb306d756$export$ce30dbb46644d06c)(this.apiClient);
2793
- this.permission = new (0, $f10477b1ab7c510c$export$a461eaf23bef603e)(this.apiClient);
2794
- this.quote = new (0, $e3362299f3dca2a2$export$82b8d343c504672)(this.apiClient);
2795
- this.quotesReformat = new (0, $75957c5651a48db2$export$304305f55794ea0e)(this.apiClient);
2796
- this.user = new (0, $d014cbaaab9ee483$export$1f44aaf2ec115b54)(this.apiClient);
2797
- this.webSocket = new (0, $f6830e801aca4170$export$3909fb301d3dc8c9)(this.apiClient);
2798
- this.wsStream = new (0, $96dd70b953ac50aa$export$4bc722fa18a49af3)(this.apiClient);
2799
- }
2800
- }
2801
-
2802
-
2803
-
2804
-
2805
-
2806
- export {$e27b116a6f94964e$export$fdc699bad85078d9 as AesMidasApi, $22a5bbde33c0a998$export$accd73d198d77d2f as DataSource, $78eb44ae01cb99e8$export$7b20d168ba04011b as Entitlement, $2b62f356558f69db$export$b6afa8811b7e644e as File, $2b871481ea506907$export$b82695c11be95fff as Firm, $6136999aea159e3b$export$3ddc46c765704011 as FundWebQuote, $4941f64eb306d756$export$ce30dbb46644d06c as Log, $f10477b1ab7c510c$export$a461eaf23bef603e as Permission, $28fda0d8c4e23a26$export$51933dbbacfe440f as UmaTest, $75957c5651a48db2$export$304305f55794ea0e as QuotesReformat, $d014cbaaab9ee483$export$1f44aaf2ec115b54 as User, $e3362299f3dca2a2$export$82b8d343c504672 as Quote, $f6830e801aca4170$export$3909fb301d3dc8c9 as WebSocket, $96dd70b953ac50aa$export$4bc722fa18a49af3 as WsStream};
1
+ import e from"auto-bind";import{Mutex as t,E_CANCELED as s}from"async-mutex";import{consola as r}from"consola";import{isBefore as n,subMinutes as i}from"date-fns";import{jwtDecode as a}from"jwt-decode";import u,{isAxiosError as o}from"axios";import p from"axios-better-stacktrace";import{isNil as l,merge as m}from"lodash";function h(e,t,s,r){Object.defineProperty(e,t,{get:s,set:r,enumerable:!0,configurable:!0})}function c(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}h({},"AesMidasApi",()=>H);class d{constructor(t){this.apiClient=t,e(this)}getApiClient(){return this.apiClient}}var T,y=((T={}).Json="application/json",T.FormData="multipart/form-data",T.UrlEncoded="application/x-www-form-urlencoded",T.Text="text/plain",T);class g{constructor(t){this.config=t,e(this),this.storage=t.storage??sessionStorage,this.axiosInstance=u.create({baseURL:t.baseUrl,withCredentials:t.withCredentials,headers:{"Content-Type":"application/json",...t.defaultHeaders}}),p(this.axiosInstance)}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e).reduce((t,s)=>{let r=e[s];for(let e of r instanceof Array?r:[r]){let r=e instanceof Blob||e instanceof File;t.append(s,r?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;l(s)||("multipart/form-data"===t&&"object"==typeof s&&(e.data=this.createFormData(s)),"text/plain"===t&&"string"!=typeof s&&(e.data=JSON.stringify(s)));let r=m(e.secure??this.config.defaultSecure??!0?await this.prepareAuthRequestConfig():{},t?{headers:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(r);return{success:!0,data:e,status:t,statusText:s}}catch(s){if(!this.config.handleError&&!e.handleError)throw s;let t={success:!1,status:-1,statusText:String(s),error:s};return o(s)&&(this.config.onAxiosError?.(s),t.data=s.response?.data,t.status=s.response?.status??t.status,t.statusText=s.response?.statusText??t.statusText),this.config.onError?.(s),t}}get(e,t){return this.request({...t,method:"GET",url:e})}delete(e,t){return this.request({...t,method:"DELETE",url:e})}head(e,t){return this.request({...t,method:"HEAD",url:e})}options(e,t){return this.request({...t,method:"OPTIONS",url:e})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}patch(e,t,s){return this.request({...s,method:"PATCH",url:e,data:t})}getAxios(){return this.axiosInstance}setAuthData(e){this.storage.setItem(this.config.authDataStorageKey||"auth",JSON.stringify(e))}getAuthData(){let e=this.storage.getItem(this.config.authDataStorageKey||"auth");return e?JSON.parse(e):null}getConfig(){return this.config}}class C extends g{constructor(e){super(e),this.config=e,this.lock=new t}getConfig(){return super.getConfig()}setRenewTokenCallback(e){this.renewTokenCallback=e}async prepareAuthRequestConfig(){if(this.config.withCredentials)return{};let{accessToken:e}=this.getAuthData()||{};if(!e)return r.warn("No access token found. Please set auth data after authorization."),{};if(!1!==this.config.autoRenewToken&&this.isTokenExpired(e))try{await this.lock.runExclusive(async()=>{this.config.debug&&r.debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===s)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=a(e);return!t.exp||n(i(1e3*t.exp,1),Date.now())}async renewToken(){let e=this.config.onRenewToken??this.renewTokenCallback;if(!e)throw Error("No renew token callback provided");let t=await e();return this.setAuthData(t),t}}var q={},f={};h(f,"Entitlement",()=>E);class E{constructor(t){this.apiClient=t,e(this)}getEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}postEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putEntitlement(e,t,s){return this.apiClient.request({...s,url:"/entitlement/entitlement",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}deleteEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement",method:"DELETE",params:e,secure:!0})}getUserEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}getUserEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlementUserList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}getUserEntitlementHistory(e,t){return this.apiClient.request({...t,url:"/entitlement/user-entitlement-history",method:"GET",params:e,secure:!0,responseType:"json"})}putSignEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/sign-entitlement",method:"PUT",data:e,secure:!0,contentType:y.Json})}putUnsignEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/unsign-entitlement",method:"PUT",params:e,secure:!0})}getContractsCount(e,t){return this.apiClient.request({...t,url:"/entitlement/contracts-count",method:"GET",params:e,secure:!0,responseType:"json"})}postContractsReport(e,t,s){return this.apiClient.request({...s,url:"/entitlement/contracts-report",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}getFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"GET",params:e,secure:!0,responseType:"json"})}postFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putFirmEntitlement(e,t,s){return this.apiClient.request({...s,url:"/entitlement/firm-entitlement",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}deleteFirmEntitlement(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement",method:"DELETE",params:e,secure:!0})}getFirmEntitlementList(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement-list",method:"GET",params:e,secure:!0,responseType:"json"})}getEntitlementFirmList(e,t){return this.apiClient.request({...t,url:"/entitlement/entitlement-firm-list",method:"GET",params:e,secure:!0,responseType:"json"})}getFirmEntitlementHistory(e,t){return this.apiClient.request({...t,url:"/entitlement/firm-entitlement-history",method:"GET",params:e,secure:!0,responseType:"json"})}}var b={};h(b,"DataSource",()=>j);class j{constructor(t){this.apiClient=t,e(this)}getDataSourceList(e,t){return this.apiClient.request({...t,url:"/datasource/data-source-list",method:"GET",params:e,secure:!0,responseType:"json"})}getDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"GET",params:e,secure:!0,responseType:"json"})}postDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putDataSource(e,t,s){return this.apiClient.request({...s,url:"/datasource/data-source",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}deleteDataSource(e,t){return this.apiClient.request({...t,url:"/datasource/data-source",method:"DELETE",params:e,secure:!0})}getDataSourceBitMapping(e){return this.apiClient.request({...e,url:"/datasource/data-source-bit-mapping",method:"GET",secure:!0})}getDataSourceTallyCount(e){return this.apiClient.request({...e,url:"/datasource/data-source-tally-count",method:"GET",secure:!0,responseType:"json"})}postDataSourceTallyReport(e,t,s){return this.apiClient.request({...s,url:"/datasource/data-source-tally-report",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}}var G={};h(G,"File",()=>S);class S{constructor(t){this.apiClient=t,e(this)}postUpload(e,t){return this.apiClient.request({...t,url:"/file/upload",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}getDownload(e,t){return this.apiClient.request({...t,url:"/file/download",method:"GET",params:e,secure:!0,responseType:"json"})}}var U={};h(U,"Firm",()=>D);class D{constructor(t){this.apiClient=t,e(this)}getFirmList(e,t){return this.apiClient.request({...t,url:"/firm/firm-list",method:"GET",params:e,secure:!0,responseType:"json"})}getFirm(e,t){return this.apiClient.request({...t,url:"/firm/firm",method:"GET",params:e,secure:!0,responseType:"json"})}postFirm(e,t){return this.apiClient.request({...t,url:"/firm/firm",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putFirm(e,t,s){return this.apiClient.request({...s,url:"/firm/firm",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}getFirmDataAccess(e,t){return this.apiClient.request({...t,url:"/firm/firm-data-access",method:"GET",params:e,secure:!0,responseType:"json"})}getUmaFirmList(e){return this.apiClient.request({...e,url:"/firm/uma-firm-list",method:"GET",secure:!0,responseType:"json"})}getSystemFirmDefaultData(e){return this.apiClient.request({...e,url:"/firm/system-firm-default-data",method:"GET",secure:!0,responseType:"json"})}putSystemFirmDefaultData(e,t){return this.apiClient.request({...t,url:"/firm/system-firm-default-data",method:"PUT",data:e,secure:!0,contentType:y.Json})}getFirmDefaultData(e,t){return this.apiClient.request({...t,url:"/firm/firm-default-data",method:"GET",params:e,secure:!0,responseType:"json"})}postFirmDefaultData(e,t,s){return this.apiClient.request({...s,url:"/firm/firm-default-data",method:"POST",params:t,data:e,secure:!0,contentType:y.Json})}putFirmDefaultData(e,t,s){return this.apiClient.request({...s,url:"/firm/firm-default-data",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}}var w={};h(w,"FundWebQuote",()=>x);class x{constructor(t){this.apiClient=t,e(this)}getFund(e,t){return this.apiClient.request({...t,url:"/fund/fund",method:"GET",params:e,secure:!0,responseType:"json"})}getFundList(e){return this.apiClient.request({...e,url:"/fund/fund-list",method:"GET",secure:!0,responseType:"json"})}}var P={};h(P,"Log",()=>$);class ${constructor(t){this.apiClient=t,e(this)}getDataQueryActionList(e){return this.apiClient.request({...e,url:"/log/data-query-action-list",method:"GET",secure:!0,responseType:"json"})}getDataQueryLogByAction(e,t){return this.apiClient.request({...t,url:"/log/data-query-log-by-action",method:"GET",params:e,secure:!0,responseType:"json"})}getDataQueryLogByDataSource(e,t){return this.apiClient.request({...t,url:"/log/data-query-log-by-data-source",method:"GET",params:e,secure:!0,responseType:"json"})}getSnapshotCount(e,t){return this.apiClient.request({...t,url:"/log/snapshot-count",method:"GET",params:e,secure:!0,responseType:"json"})}postSnapshotReport(e,t,s){return this.apiClient.request({...s,url:"/log/snapshot-report",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}getModificationActionList(e){return this.apiClient.request({...e,url:"/log/modification-action-list",method:"GET",secure:!0,responseType:"json"})}getModificationLogByAction(e,t){return this.apiClient.request({...t,url:"/log/modification-log-by-action",method:"GET",params:e,secure:!0,responseType:"json"})}}var O={};h(O,"Permission",()=>L);class L{constructor(t){this.apiClient=t,e(this)}postPermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"POST",data:e,secure:!0,contentType:y.Json})}getPermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"GET",params:e,secure:!0,responseType:"json"})}deletePermission(e,t){return this.apiClient.request({...t,url:"/permission/permission",method:"DELETE",params:e,secure:!0})}}var F={};h(F,"Quote",()=>B);class B{constructor(t){this.apiClient=t,e(this)}postSymbolSearch(e,t,s){return this.apiClient.request({...s,url:"/quote/symbol-search",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}getBestQuote(e,t){return this.apiClient.request({...t,url:"/quote/best-quote",method:"GET",params:e,secure:!0,responseType:"json"})}getNbboSnapshot(e,t){return this.apiClient.request({...t,url:"/quote/nbbo-snapshot",method:"GET",params:e,secure:!0,responseType:"json"})}getLevel1(e,t){return this.apiClient.request({...t,url:"/quote/level1",method:"GET",params:e,secure:!0,responseType:"json"})}getRegionQuotes(e,t){return this.apiClient.request({...t,url:"/quote/region-quotes",method:"GET",params:e,secure:!0,responseType:"json"})}getTimeSale(e,t){return this.apiClient.request({...t,url:"/quote/time-sale",method:"GET",params:e,secure:!0,responseType:"json"})}getLastTrade(e,t){return this.apiClient.request({...t,url:"/quote/last-trade",method:"GET",params:e,secure:!0,responseType:"json"})}getIntradayChart(e,t){return this.apiClient.request({...t,url:"/quote/intraday-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getHistoricalDayChart(e,t){return this.apiClient.request({...t,url:"/quote/historical-day-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getHistoricalMinuteChart(e,t){return this.apiClient.request({...t,url:"/quote/historical-minute-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getTop20(e,t){return this.apiClient.request({...t,url:"/quote/top-20",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChainDates(e,t){return this.apiClient.request({...t,url:"/quote/option-chain-dates",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChain(e,t){return this.apiClient.request({...t,url:"/quote/option-chain",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionLevel1(e,t){return this.apiClient.request({...t,url:"/quote/option-level1",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionLevel1WithGreek(e,t){return this.apiClient.request({...t,url:"/quote/option-level1-with-greek",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionDayChart(e,t){return this.apiClient.request({...t,url:"/quote/option-day-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getEquiductLevel1(e,t){return this.apiClient.request({...t,url:"/quote/equiduct-level1",method:"GET",params:e,secure:!0,responseType:"json"})}getBonds(e,t){return this.apiClient.request({...t,url:"/quote/bonds",method:"GET",params:e,secure:!0,responseType:"json"})}getBondsSearch(e,t){return this.apiClient.request({...t,url:"/quote/bonds-search",method:"GET",params:e,secure:!0})}getBondsChart(e,t){return this.apiClient.request({...t,url:"/quote/bonds-chart",method:"GET",params:e,secure:!0,responseType:"json"})}getMutualFunds(e,t){return this.apiClient.request({...t,url:"/quote/mutual-funds",method:"GET",params:e,secure:!0,responseType:"json"})}getQuoddEod(e,t){return this.apiClient.request({...t,url:"/quote/quodd-eod",method:"GET",params:e,secure:!0,responseType:"json"})}getQuoddDelay(e,t){return this.apiClient.request({...t,url:"/quote/quodd-delay",method:"GET",params:e,secure:!0,responseType:"json"})}getIceIsin(e,t){return this.apiClient.request({...t,url:"/quote/ice-isin",method:"GET",params:e,secure:!0,responseType:"json"})}getIceEod(e,t){return this.apiClient.request({...t,url:"/quote/ice-eod",method:"GET",params:e,secure:!0,responseType:"json"})}getFxRate(e,t){return this.apiClient.request({...t,url:"/quote/fx-rate",method:"GET",params:e,secure:!0,responseType:"json"})}getFxTable(e,t){return this.apiClient.request({...t,url:"/quote/fx-table",method:"GET",params:e,secure:!0,responseType:"json"})}}var J={};h(J,"QuotesReformat",()=>k);class k{constructor(t){this.apiClient=t,e(this)}getEquity(e,t){return this.apiClient.request({...t,url:"/quotes/equity",method:"GET",params:e,secure:!0,responseType:"json"})}getEquityIntraday(e,t){return this.apiClient.request({...t,url:"/quotes/equity/intraday",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionHistorical(e,t){return this.apiClient.request({...t,url:"/quotes/option/historical",method:"GET",params:e,secure:!0,responseType:"json"})}getSearch(e,t){return this.apiClient.request({...t,url:"/quotes/search",method:"GET",params:e,secure:!0})}getOption(e,t){return this.apiClient.request({...t,url:"/quotes/option",method:"GET",params:e,secure:!0,responseType:"json"})}getOptionChainDates(e,t,s){return this.apiClient.request({...s,url:`/quotes/option/chain/dates/${e}`,method:"GET",params:t,secure:!0,responseType:"json"})}getOptionChain(e,t,s,r){return this.apiClient.request({...r,url:`/quotes/option/chain/${e}/${t}`,method:"GET",params:s,secure:!0,responseType:"json"})}getEquityHistorical(e,t){return this.apiClient.request({...t,url:"/quotes/equity/historical",method:"GET",params:e,secure:!0,responseType:"json"})}getBonds(e,t){return this.apiClient.request({...t,url:"/quotes/bonds",method:"GET",params:e,secure:!0,responseType:"json"})}getBondsSearch(e,t){return this.apiClient.request({...t,url:"/quotes/bonds/search",method:"GET",params:e,secure:!0})}getQuotesReformat(e,t){return this.apiClient.request({...t,url:"/quotes/fx",method:"GET",params:e,secure:!0,responseType:"json"})}}var A={};h(A,"UmaTest",()=>v);class v{constructor(t){this.apiClient=t,e(this)}getRevokeUmaUser(e,t){return this.apiClient.request({...t,url:"/uma-test/revoke-uma-user",method:"GET",params:e,secure:!0})}getFirmList(e){return this.apiClient.request({...e,url:"/uma-test/firm-list",method:"GET",secure:!0,responseType:"json"})}getFirmListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/firm-list-to-local",method:"GET",secure:!0})}getB2BUserById(e,t){return this.apiClient.request({...t,url:"/uma-test/b2b-user-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getB2BUserList(e){return this.apiClient.request({...e,url:"/uma-test/b2b-user-list",method:"GET",secure:!0,responseType:"json"})}getB2BUserListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/b2b-user-list-to-local",method:"GET",secure:!0})}getB2CUserById(e,t){return this.apiClient.request({...t,url:"/uma-test/b2c-user-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getB2CUserList(e){return this.apiClient.request({...e,url:"/uma-test/b2c-user-list",method:"GET",secure:!0,responseType:"json"})}getB2CUserListToLocal(e){return this.apiClient.request({...e,url:"/uma-test/b2c-user-list-to-local",method:"GET",secure:!0})}}var I={};h(I,"User",()=>R);class R{constructor(t){this.apiClient=t,e(this)}postRegisterRegular(e,t){return this.apiClient.request({...t,url:"/user/register-regular",method:"POST",data:e,secure:!0,contentType:y.Json})}postRegisterAdmin(e,t){return this.apiClient.request({...t,url:"/user/register-admin",method:"POST",data:e,secure:!0,contentType:y.Json})}postRegisterManager(e,t){return this.apiClient.request({...t,url:"/user/register-manager",method:"POST",data:e,secure:!0,contentType:y.Json})}postRegisterUmaB2BUser(e,t){return this.apiClient.request({...t,url:"/user/register-uma-b2b-user",method:"POST",data:e,secure:!0,contentType:y.Json})}postRegisterUmaB2CUser(e,t){return this.apiClient.request({...t,url:"/user/register-uma-b2c-user",method:"POST",data:e,secure:!0,contentType:y.Json})}getUmaB2BUserList(e,t){return this.apiClient.request({...t,url:"/user/uma-b2b-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}getUmaB2CUserList(e,t){return this.apiClient.request({...t,url:"/user/uma-b2c-user-list",method:"GET",params:e,secure:!0,responseType:"json"})}postLogin(e,t){return this.apiClient.request({...t,url:"/user/login",method:"POST",data:e,secure:!0,contentType:y.Json})}getLogout(e,t){return this.apiClient.request({...t,url:"/user/logout",method:"GET",params:e,secure:!0})}putPhoneNumber(e,t){return this.apiClient.request({...t,url:"/user/phone-number",method:"PUT",data:e,secure:!0,contentType:y.Json})}putEmail(e,t){return this.apiClient.request({...t,url:"/user/email",method:"PUT",data:e,secure:!0,contentType:y.Json})}putChangePassword(e,t){return this.apiClient.request({...t,url:"/user/change-password",method:"PUT",data:e,secure:!0,contentType:y.Json})}getResetUserPassword(e,t){return this.apiClient.request({...t,url:"/user/reset-user-password",method:"GET",params:e,secure:!0})}getUserNameById(e,t){return this.apiClient.request({...t,url:"/user/user-name-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getUserIdByName(e,t){return this.apiClient.request({...t,url:"/user/user-id-by-name",method:"GET",params:e,secure:!0,responseType:"json"})}getUserByName(e,t){return this.apiClient.request({...t,url:"/user/user-by-name",method:"GET",params:e,secure:!0,responseType:"json"})}getUsersById(e,t){return this.apiClient.request({...t,url:"/user/users-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}postUsersFuzzy(e,t,s){return this.apiClient.request({...s,url:"/user/users-fuzzy",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}getUsersByFirm(e,t){return this.apiClient.request({...t,url:"/user/users-by-firm",method:"GET",params:e,secure:!0,responseType:"json"})}postUsersByMultipleConditions(e,t,s){return this.apiClient.request({...s,url:"/user/users-by-multiple-conditions",method:"POST",params:t,data:e,secure:!0,contentType:y.Json,responseType:"json"})}postSuperAdmins(e,t){return this.apiClient.request({...t,url:"/user/super-admins",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}deleteUser(e,t){return this.apiClient.request({...t,url:"/user/user",method:"DELETE",params:e,secure:!0})}getUserRole(e,t){return this.apiClient.request({...t,url:"/user/user-role",method:"GET",params:e,secure:!0})}postUserInformation(e,t){return this.apiClient.request({...t,url:"/user/user-information",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putUserInformation(e,t,s){return this.apiClient.request({...s,url:"/user/user-information",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}getUserInformationById(e,t){return this.apiClient.request({...t,url:"/user/user-information-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getOccupationList(e){return this.apiClient.request({...e,url:"/user/occupation-list",method:"GET",secure:!0,responseType:"json"})}postUserDataConfig(e,t){return this.apiClient.request({...t,url:"/user/user-data-config",method:"POST",data:e,secure:!0,contentType:y.Json,responseType:"json"})}putUserDataConfig(e,t,s){return this.apiClient.request({...s,url:"/user/user-data-config",method:"PUT",params:t,data:e,secure:!0,contentType:y.Json})}getUserDataConfigById(e,t){return this.apiClient.request({...t,url:"/user/user-data-config-by-id",method:"GET",params:e,secure:!0,responseType:"json"})}getUserDataConfigByIdExtraInfo(e,t){return this.apiClient.request({...t,url:"/user/user-data-config-by-id-extra-info",method:"GET",params:e,secure:!0,responseType:"json"})}getUserDataConfigs(e,t){return this.apiClient.request({...t,url:"/user/user-data-configs",method:"GET",params:e,secure:!0,responseType:"json"})}getUserNeedSignAgreements(e,t){return this.apiClient.request({...t,url:"/user/user-need-sign-agreements",method:"GET",params:e,secure:!0,responseType:"json"})}getSessionAlive(e){return this.apiClient.request({...e,url:"/user/session-alive",method:"GET",secure:!0,responseType:"json"})}getTest(e){return this.apiClient.request({...e,url:"/user/Test",method:"GET",secure:!0,responseType:"json"})}}var N={};h(N,"WebSocket",()=>Q);class Q{constructor(t){this.apiClient=t,e(this)}getWebSocket(e){return this.apiClient.request({...e,url:"/ws",method:"GET",secure:!0})}getWssub(e){return this.apiClient.request({...e,url:"/wssub",method:"GET",secure:!0})}}var M={};h(M,"WsStream",()=>W);class W{constructor(t){this.apiClient=t,e(this)}getStream(e){return this.apiClient.request({...e,url:"/stream",method:"GET",secure:!0})}}c(q,{}),c(q,f),c(q,b),c(q,G),c(q,U),c(q,w),c(q,P),c(q,O),c(q,F),c(q,J),c(q,A),c(q,I),c(q,N),c(q,M);class H extends d{constructor(e){super(new C(e)),this.config=e,this.dataSource=new j(this.apiClient),this.entitlement=new E(this.apiClient),this.file=new S(this.apiClient),this.firm=new D(this.apiClient),this.fundWebQuote=new x(this.apiClient),this.log=new $(this.apiClient),this.permission=new L(this.apiClient),this.quote=new B(this.apiClient),this.quotesReformat=new k(this.apiClient),this.user=new R(this.apiClient),this.webSocket=new Q(this.apiClient),this.wsStream=new W(this.apiClient)}}export{H as AesMidasApi,E as Entitlement,j as DataSource,S as File,D as Firm,x as FundWebQuote,$ as Log,L as Permission,B as Quote,k as QuotesReformat,v as UmaTest,R as User,Q as WebSocket,W as WsStream};
2807
2
  //# sourceMappingURL=index.esm.js.map