@orbis-systems/orbis-api-clients 0.6.8 → 0.6.10

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 (43) hide show
  1. package/dist/aesmidas/index.d.ts +104 -95
  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 +169 -174
  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.d.ts +1 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.esm.js +1 -257
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +1 -280
  18. package/dist/index.js.map +1 -1
  19. package/dist/insight/index.d.ts +503 -305
  20. package/dist/insight/index.d.ts.map +1 -1
  21. package/dist/insight/index.esm.js +1 -3754
  22. package/dist/insight/index.esm.js.map +1 -1
  23. package/dist/insight/index.js +1 -3759
  24. package/dist/insight/index.js.map +1 -1
  25. package/dist/middleware/index.d.ts +1 -2
  26. package/dist/middleware/index.d.ts.map +1 -1
  27. package/dist/middleware/index.esm.js +1 -1066
  28. package/dist/middleware/index.esm.js.map +1 -1
  29. package/dist/middleware/index.js +1 -1071
  30. package/dist/middleware/index.js.map +1 -1
  31. package/dist/orbis/index.d.ts +1161 -1162
  32. package/dist/orbis/index.d.ts.map +1 -1
  33. package/dist/orbis/index.esm.js +1 -7009
  34. package/dist/orbis/index.esm.js.map +1 -1
  35. package/dist/orbis/index.js +1 -7014
  36. package/dist/orbis/index.js.map +1 -1
  37. package/dist/uma/index.d.ts +361 -349
  38. package/dist/uma/index.d.ts.map +1 -1
  39. package/dist/uma/index.esm.js +1 -3993
  40. package/dist/uma/index.esm.js.map +1 -1
  41. package/dist/uma/index.js +1 -3998
  42. package/dist/uma/index.js.map +1 -1
  43. 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 $78eb44ae01cb99e8$exports = {};
276
-
277
- $parcel$export($78eb44ae01cb99e8$exports, "Entitlement", () => $78eb44ae01cb99e8$export$7b20d168ba04011b);
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 $78eb44ae01cb99e8$export$7b20d168ba04011b {
297
- constructor(apiClient){
298
- this.apiClient = apiClient;
299
- (0, $5CwE8$autobind)(this);
300
- }
301
- /**
302
- * @description bitwise in Datasource: 1 UTP, 2 CTA, 3 CBOE1, 4 OPRA, 5 DJI, 6 SP500, 7 CAN, 8 SNAPSHOT
303
- * @tags Entitlement
304
- * @name GetEntitlementList
305
- * @summary Query all available Entitlements(agreements) in the system - All users - available in Microservice, POST with pagination and sort
306
- * @request GET:/api/entitlement/entitlement-list
307
- * @secure
308
- */ getEntitlementList(query, config) {
309
- return this.apiClient.request({
310
- ...config,
311
- url: `/entitlement/entitlement-list`,
312
- method: 'GET',
313
- params: query,
314
- secure: true,
315
- responseType: 'json'
316
- });
317
- }
318
- /**
319
- * @tags Entitlement
320
- * @name GetEntitlement
321
- * @summary Query a specific Entitlement by unique EntitlementName - All users - available in Microservice
322
- * @request GET:/api/entitlement/entitlement
323
- * @secure
324
- */ getEntitlement(query, config) {
325
- return this.apiClient.request({
326
- ...config,
327
- url: `/entitlement/entitlement`,
328
- method: 'GET',
329
- params: query,
330
- secure: true,
331
- responseType: 'json'
332
- });
333
- }
334
- /**
335
- * @description Files can be uploaded along with entitlement. File ids can be left blank, server will generate and update file ids to the entitlement.
336
- * @tags Entitlement
337
- * @name PostEntitlement
338
- * @summary Create a new Entitlement(Agreement) - Super admin - available in Microservice
339
- * @request POST:/api/entitlement/entitlement
340
- * @secure
341
- */ postEntitlement(data, config) {
342
- return this.apiClient.request({
343
- ...config,
344
- url: `/entitlement/entitlement`,
345
- method: 'POST',
346
- data: data,
347
- secure: true,
348
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
349
- responseType: 'json'
350
- });
351
- }
352
- /**
353
- * @tags Entitlement
354
- * @name PutEntitlement
355
- * @summary Update an existing Entitlement - Super admin - available in Microservice
356
- * @request PUT:/api/entitlement/entitlement
357
- * @secure
358
- */ putEntitlement(data, query, config) {
359
- return this.apiClient.request({
360
- ...config,
361
- url: `/entitlement/entitlement`,
362
- method: 'PUT',
363
- params: query,
364
- data: data,
365
- secure: true,
366
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
367
- });
368
- }
369
- /**
370
- * @description If an entitlement is being used in a datasource, it cannot be deleted.
371
- * @tags Entitlement
372
- * @name DeleteEntitlement
373
- * @summary Delete an existing Entitlement - Super admin - available in Microservice
374
- * @request DELETE:/api/entitlement/entitlement
375
- * @secure
376
- */ deleteEntitlement(query, config) {
377
- return this.apiClient.request({
378
- ...config,
379
- url: `/entitlement/entitlement`,
380
- method: 'DELETE',
381
- params: query,
382
- secure: true
383
- });
384
- }
385
- /**
386
- * @tags Entitlement
387
- * @name GetUserEntitlement
388
- * @summary Query a specific UserEntitlement by userid and eneitlement name - End user itself, or firm manager, or super admin - available in Microservice
389
- * @request GET:/api/entitlement/user-entitlement
390
- * @secure
391
- */ getUserEntitlement(query, config) {
392
- return this.apiClient.request({
393
- ...config,
394
- url: `/entitlement/user-entitlement`,
395
- method: 'GET',
396
- params: query,
397
- secure: true,
398
- responseType: 'json'
399
- });
400
- }
401
- /**
402
- * @tags Entitlement
403
- * @name GetUserEntitlementList
404
- * @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
405
- * @request GET:/api/entitlement/user-entitlement-list
406
- * @secure
407
- */ getUserEntitlementList(query, config) {
408
- return this.apiClient.request({
409
- ...config,
410
- url: `/entitlement/user-entitlement-list`,
411
- method: 'GET',
412
- params: query,
413
- secure: true,
414
- responseType: 'json'
415
- });
416
- }
417
- /**
418
- * @tags Entitlement
419
- * @name GetEntitlementUserList
420
- * @summary Query all UserEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
421
- * @request GET:/api/entitlement/entitlement-user-list
422
- * @secure
423
- */ getEntitlementUserList(query, config) {
424
- return this.apiClient.request({
425
- ...config,
426
- url: `/entitlement/entitlement-user-list`,
427
- method: 'GET',
428
- params: query,
429
- secure: true,
430
- responseType: 'json'
431
- });
432
- }
433
- /**
434
- * @tags Entitlement
435
- * @name GetUserEntitlementHistory
436
- * @summary Query history for a UserEntitlement - Super admin - available in Microservice, POST with pagination and sort
437
- * @request GET:/api/entitlement/user-entitlement-history
438
- * @secure
439
- */ getUserEntitlementHistory(query, config) {
440
- return this.apiClient.request({
441
- ...config,
442
- url: `/entitlement/user-entitlement-history`,
443
- method: 'GET',
444
- params: query,
445
- secure: true,
446
- responseType: 'json'
447
- });
448
- }
449
- /**
450
- * @description Create a new UserEntitlement if not existing previously. Update UserEntitlement if already exists.
451
- * @tags Entitlement
452
- * @name PutSignEntitlement
453
- * @summary Sign a UserEntitlement - All users - available in Microservice
454
- * @request PUT:/api/entitlement/sign-entitlement
455
- * @secure
456
- */ putSignEntitlement(data, config) {
457
- return this.apiClient.request({
458
- ...config,
459
- url: `/entitlement/sign-entitlement`,
460
- method: 'PUT',
461
- data: data,
462
- secure: true,
463
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
464
- });
465
- }
466
- /**
467
- * @tags Entitlement
468
- * @name PutUnsignEntitlement
469
- * @summary Unsign a UserEntitlement - End user itself, or firm manager, or super admin - available in Microservice
470
- * @request PUT:/api/entitlement/unsign-entitlement
471
- * @secure
472
- */ putUnsignEntitlement(query, config) {
473
- return this.apiClient.request({
474
- ...config,
475
- url: `/entitlement/unsign-entitlement`,
476
- method: 'PUT',
477
- params: query,
478
- secure: true
479
- });
480
- }
481
- /**
482
- * @tags Entitlement
483
- * @name GetContractsCount
484
- * @summary For ViewTrade admin to Get contract counts for a specific firm and entitlement - Super admin - available in Microservice
485
- * @request GET:/api/entitlement/contracts-count
486
- * @secure
487
- */ getContractsCount(query, config) {
488
- return this.apiClient.request({
489
- ...config,
490
- url: `/entitlement/contracts-count`,
491
- method: 'GET',
492
- params: query,
493
- secure: true,
494
- responseType: 'json'
495
- });
496
- }
497
- /**
498
- * @tags Entitlement
499
- * @name PostContractsReport
500
- * @summary For ViewTrade admin to generate contract counts report for a specific firm and entitlement with paginition and sort - Super admin - available in Microservice
501
- * @request POST:/api/entitlement/contracts-report
502
- * @secure
503
- */ postContractsReport(data, query, config) {
504
- return this.apiClient.request({
505
- ...config,
506
- url: `/entitlement/contracts-report`,
507
- method: 'POST',
508
- params: query,
509
- data: data,
510
- secure: true,
511
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
512
- responseType: 'json'
513
- });
514
- }
515
- /**
516
- * @tags Entitlement
517
- * @name GetFirmEntitlement
518
- * @summary Query a specific FirmEntitlement - Firm manager, or super admin - available in Microservice
519
- * @request GET:/api/entitlement/firm-entitlement
520
- * @secure
521
- */ getFirmEntitlement(query, config) {
522
- return this.apiClient.request({
523
- ...config,
524
- url: `/entitlement/firm-entitlement`,
525
- method: 'GET',
526
- params: query,
527
- secure: true,
528
- responseType: 'json'
529
- });
530
- }
531
- /**
532
- * @tags Entitlement
533
- * @name PostFirmEntitlement
534
- * @summary Create a new FirmEntitlement - Super admin - available in Microservice
535
- * @request POST:/api/entitlement/firm-entitlement
536
- * @secure
537
- */ postFirmEntitlement(data, config) {
538
- return this.apiClient.request({
539
- ...config,
540
- url: `/entitlement/firm-entitlement`,
541
- method: 'POST',
542
- data: data,
543
- secure: true,
544
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
545
- responseType: 'json'
546
- });
547
- }
548
- /**
549
- * @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.
550
- * @tags Entitlement
551
- * @name PutFirmEntitlement
552
- * @summary Upadte an existing FirmEntitlement - Super admin - available in Microservice
553
- * @request PUT:/api/entitlement/firm-entitlement
554
- * @secure
555
- */ putFirmEntitlement(data, query, config) {
556
- return this.apiClient.request({
557
- ...config,
558
- url: `/entitlement/firm-entitlement`,
559
- method: 'PUT',
560
- params: query,
561
- data: data,
562
- secure: true,
563
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
564
- });
565
- }
566
- /**
567
- * @description !Caution! This action will unsign all UserEntitlements in this firm for the relevant entitlement.
568
- * @tags Entitlement
569
- * @name DeleteFirmEntitlement
570
- * @summary Delete an existing FirmEntitlement - Super admin - available in Microservice
571
- * @request DELETE:/api/entitlement/firm-entitlement
572
- * @secure
573
- */ deleteFirmEntitlement(query, config) {
574
- return this.apiClient.request({
575
- ...config,
576
- url: `/entitlement/firm-entitlement`,
577
- method: 'DELETE',
578
- params: query,
579
- secure: true
580
- });
581
- }
582
- /**
583
- * @tags Entitlement
584
- * @name GetFirmEntitlementList
585
- * @summary Query all FirmEntitlements for a specific firm - Firm manager, or super admin - available in Microservice, POST with pagination and sort
586
- * @request GET:/api/entitlement/firm-entitlement-list
587
- * @secure
588
- */ getFirmEntitlementList(query, config) {
589
- return this.apiClient.request({
590
- ...config,
591
- url: `/entitlement/firm-entitlement-list`,
592
- method: 'GET',
593
- params: query,
594
- secure: true,
595
- responseType: 'json'
596
- });
597
- }
598
- /**
599
- * @tags Entitlement
600
- * @name GetEntitlementFirmList
601
- * @summary Query all FirmEntitlements for a specific Entitlement - Super admin - available in Microservice, POST with pagination and sort
602
- * @request GET:/api/entitlement/entitlement-firm-list
603
- * @secure
604
- */ getEntitlementFirmList(query, config) {
605
- return this.apiClient.request({
606
- ...config,
607
- url: `/entitlement/entitlement-firm-list`,
608
- method: 'GET',
609
- params: query,
610
- secure: true,
611
- responseType: 'json'
612
- });
613
- }
614
- /**
615
- * @tags Entitlement
616
- * @name GetFirmEntitlementHistory
617
- * @summary Query history of a specific FirmEntitlement - Super admin - available in Microservice, POST with pagination and sort
618
- * @request GET:/api/entitlement/firm-entitlement-history
619
- * @secure
620
- */ getFirmEntitlementHistory(query, config) {
621
- return this.apiClient.request({
622
- ...config,
623
- url: `/entitlement/firm-entitlement-history`,
624
- method: 'GET',
625
- params: query,
626
- secure: true,
627
- responseType: 'json'
628
- });
629
- }
630
- }
631
-
632
-
633
- var $22a5bbde33c0a998$exports = {};
634
-
635
- $parcel$export($22a5bbde33c0a998$exports, "DataSource", () => $22a5bbde33c0a998$export$accd73d198d77d2f);
636
- /* eslint-disable */ /* tslint:disable */ /*
637
- * ---------------------------------------------------------------
638
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
639
- * ## ##
640
- * ## AUTHOR: acacode ##
641
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
642
- * ---------------------------------------------------------------
643
- */
644
-
645
- class $22a5bbde33c0a998$export$accd73d198d77d2f {
646
- constructor(apiClient){
647
- this.apiClient = apiClient;
648
- (0, $5CwE8$autobind)(this);
649
- }
650
- /**
651
- * @description All parameters are optional
652
- * @tags DataSource
653
- * @name GetDataSourceList
654
- * @summary Query all DataSources in the whole system with optional filters - All users - available in Microservice, POST with pagination and sort
655
- * @request GET:/api/datasource/data-source-list
656
- * @secure
657
- */ getDataSourceList(query, config) {
658
- return this.apiClient.request({
659
- ...config,
660
- url: `/datasource/data-source-list`,
661
- method: 'GET',
662
- params: query,
663
- secure: true,
664
- responseType: 'json'
665
- });
666
- }
667
- /**
668
- * @tags DataSource
669
- * @name GetDataSource
670
- * @summary Query a specific DataSource by unique DataSource Name - All users - available in Microservice
671
- * @request GET:/api/datasource/data-source
672
- * @secure
673
- */ getDataSource(query, config) {
674
- return this.apiClient.request({
675
- ...config,
676
- url: `/datasource/data-source`,
677
- method: 'GET',
678
- params: query,
679
- secure: true,
680
- responseType: 'json'
681
- });
682
- }
683
- /**
684
- * @description Create a new DataSource with/without an existing Entitlement
685
- * @tags DataSource
686
- * @name PostDataSource
687
- * @summary Create a new DataSource - Super admin - available in Microservice
688
- * @request POST:/api/datasource/data-source
689
- * @secure
690
- */ postDataSource(data, config) {
691
- return this.apiClient.request({
692
- ...config,
693
- url: `/datasource/data-source`,
694
- method: 'POST',
695
- data: data,
696
- secure: true,
697
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
698
- responseType: 'json'
699
- });
700
- }
701
- /**
702
- * @description If modification is Entitlement related, server will unsign old entitlement in firms and users
703
- * @tags DataSource
704
- * @name PutDataSource
705
- * @summary Update an existing DataSource - Super admin - available in Microservice
706
- * @request PUT:/api/datasource/data-source
707
- * @secure
708
- */ putDataSource(data, query, config) {
709
- return this.apiClient.request({
710
- ...config,
711
- url: `/datasource/data-source`,
712
- method: 'PUT',
713
- params: query,
714
- data: data,
715
- secure: true,
716
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
717
- });
718
- }
719
- /**
720
- * @description !Caution! It will remove all related data setting and unsign all related entitlement in firms and users
721
- * @tags DataSource
722
- * @name DeleteDataSource
723
- * @summary Delete an existing DataSource - Super admin - available in Microservice
724
- * @request DELETE:/api/datasource/data-source
725
- * @secure
726
- */ deleteDataSource(query, config) {
727
- return this.apiClient.request({
728
- ...config,
729
- url: `/datasource/data-source`,
730
- method: 'DELETE',
731
- params: query,
732
- secure: true
733
- });
734
- }
735
- /**
736
- * @tags DataSource
737
- * @name GetDataSourceBitMapping
738
- * @summary Get All DataSource Bit Mappings - All users - available in Microservice
739
- * @request GET:/api/datasource/data-source-bit-mapping
740
- * @secure
741
- */ getDataSourceBitMapping(config) {
742
- return this.apiClient.request({
743
- ...config,
744
- url: `/datasource/data-source-bit-mapping`,
745
- method: 'GET',
746
- secure: true
747
- });
748
- }
749
- /**
750
- * @tags DataSource
751
- * @name GetDataSourceTallyCount
752
- * @summary For ViewTrade admin to generate data source tally report - Super admin - available in Microservice
753
- * @request GET:/api/datasource/data-source-tally-count
754
- * @secure
755
- */ getDataSourceTallyCount(config) {
756
- return this.apiClient.request({
757
- ...config,
758
- url: `/datasource/data-source-tally-count`,
759
- method: 'GET',
760
- secure: true,
761
- responseType: 'json'
762
- });
763
- }
764
- /**
765
- * @tags DataSource
766
- * @name PostDataSourceTallyReport
767
- * @summary For ViewTrade admin to generate data source tally report with Pagination and Sort - Super admin - available in Microservice
768
- * @request POST:/api/datasource/data-source-tally-report
769
- * @secure
770
- */ postDataSourceTallyReport(data, query, config) {
771
- return this.apiClient.request({
772
- ...config,
773
- url: `/datasource/data-source-tally-report`,
774
- method: 'POST',
775
- params: query,
776
- data: data,
777
- secure: true,
778
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
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 $e3362299f3dca2a2$exports = {};
1292
-
1293
- $parcel$export($e3362299f3dca2a2$exports, "Quote", () => $e3362299f3dca2a2$export$82b8d343c504672);
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
-
1303
- class $e3362299f3dca2a2$export$82b8d343c504672 {
1304
- constructor(apiClient){
1305
- this.apiClient = apiClient;
1306
- (0, $5CwE8$autobind)(this);
1307
- }
1308
- /**
1309
- * @tags Quote
1310
- * @name PostSymbolSearch
1311
- * @summary Symbol screener - All users - available in Microservice version
1312
- * @request POST:/api/quote/symbol-search
1313
- * @secure
1314
- */ postSymbolSearch(data, query, config) {
1315
- return this.apiClient.request({
1316
- ...config,
1317
- url: `/quote/symbol-search`,
1318
- method: 'POST',
1319
- params: query,
1320
- data: data,
1321
- secure: true,
1322
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
1323
- responseType: 'json'
1324
- });
1325
- }
1326
- /**
1327
- * @tags Quote
1328
- * @name GetBestQuote
1329
- * @summary Query Best Quote(Level 1 data) - All users - available in Microservice
1330
- * @request GET:/api/quote/best-quote
1331
- * @secure
1332
- */ getBestQuote(query, config) {
1333
- return this.apiClient.request({
1334
- ...config,
1335
- url: `/quote/best-quote`,
1336
- method: 'GET',
1337
- params: query,
1338
- secure: true,
1339
- responseType: 'json'
1340
- });
1341
- }
1342
- /**
1343
- * @tags Quote
1344
- * @name GetNbboSnapshot
1345
- * @summary Query NBBO Snapshot - All users - available in Microservice
1346
- * @request GET:/api/quote/nbbo-snapshot
1347
- * @secure
1348
- */ getNbboSnapshot(query, config) {
1349
- return this.apiClient.request({
1350
- ...config,
1351
- url: `/quote/nbbo-snapshot`,
1352
- method: 'GET',
1353
- params: query,
1354
- secure: true,
1355
- responseType: 'json'
1356
- });
1357
- }
1358
- /**
1359
- * @tags Quote
1360
- * @name GetLevel1
1361
- * @summary Query full Level 1 data - All users - available in Microservice
1362
- * @request GET:/api/quote/level1
1363
- * @secure
1364
- */ getLevel1(query, config) {
1365
- return this.apiClient.request({
1366
- ...config,
1367
- url: `/quote/level1`,
1368
- method: 'GET',
1369
- params: query,
1370
- secure: true,
1371
- responseType: 'json'
1372
- });
1373
- }
1374
- /**
1375
- * @tags Quote
1376
- * @name GetRegionQuotes
1377
- * @summary Query Region Quotes from Tick data - All users - available in Microservice
1378
- * @request GET:/api/quote/region-quotes
1379
- * @secure
1380
- */ getRegionQuotes(query, config) {
1381
- return this.apiClient.request({
1382
- ...config,
1383
- url: `/quote/region-quotes`,
1384
- method: 'GET',
1385
- params: query,
1386
- secure: true,
1387
- responseType: 'json'
1388
- });
1389
- }
1390
- /**
1391
- * @tags Quote
1392
- * @name GetTimeSale
1393
- * @summary Query TimeSale from Tick data - All users - available in Microservice
1394
- * @request GET:/api/quote/time-sale
1395
- * @secure
1396
- */ getTimeSale(query, config) {
1397
- return this.apiClient.request({
1398
- ...config,
1399
- url: `/quote/time-sale`,
1400
- method: 'GET',
1401
- params: query,
1402
- secure: true,
1403
- responseType: 'json'
1404
- });
1405
- }
1406
- /**
1407
- * @tags Quote
1408
- * @name GetLastTrade
1409
- * @summary Query Last Trade(Level 2 data) - All users - available in Microservice
1410
- * @request GET:/api/quote/last-trade
1411
- * @secure
1412
- */ getLastTrade(query, config) {
1413
- return this.apiClient.request({
1414
- ...config,
1415
- url: `/quote/last-trade`,
1416
- method: 'GET',
1417
- params: query,
1418
- secure: true,
1419
- responseType: 'json'
1420
- });
1421
- }
1422
- /**
1423
- * @tags Quote
1424
- * @name GetIntradayChart
1425
- * @summary Query intra-day Day Chart and Minute Chart - All users - available in Microservice
1426
- * @request GET:/api/quote/intraday-chart
1427
- * @secure
1428
- */ getIntradayChart(query, config) {
1429
- return this.apiClient.request({
1430
- ...config,
1431
- url: `/quote/intraday-chart`,
1432
- method: 'GET',
1433
- params: query,
1434
- secure: true,
1435
- responseType: 'json'
1436
- });
1437
- }
1438
- /**
1439
- * @tags Quote
1440
- * @name GetHistoricalDayChart
1441
- * @summary Query Historical Day Chart - All users - available in Microservice
1442
- * @request GET:/api/quote/historical-day-chart
1443
- * @secure
1444
- */ getHistoricalDayChart(query, config) {
1445
- return this.apiClient.request({
1446
- ...config,
1447
- url: `/quote/historical-day-chart`,
1448
- method: 'GET',
1449
- params: query,
1450
- secure: true,
1451
- responseType: 'json'
1452
- });
1453
- }
1454
- /**
1455
- * @tags Quote
1456
- * @name GetHistoricalMinuteChart
1457
- * @summary Query Historical Minute Chart - All users - available in Microservice
1458
- * @request GET:/api/quote/historical-minute-chart
1459
- * @secure
1460
- */ getHistoricalMinuteChart(query, config) {
1461
- return this.apiClient.request({
1462
- ...config,
1463
- url: `/quote/historical-minute-chart`,
1464
- method: 'GET',
1465
- params: query,
1466
- secure: true,
1467
- responseType: 'json'
1468
- });
1469
- }
1470
- /**
1471
- * @tags Quote
1472
- * @name GetTop20
1473
- * @summary Query Top20 data - All users - available in Microservice
1474
- * @request GET:/api/quote/top-20
1475
- * @secure
1476
- */ getTop20(query, config) {
1477
- return this.apiClient.request({
1478
- ...config,
1479
- url: `/quote/top-20`,
1480
- method: 'GET',
1481
- params: query,
1482
- secure: true,
1483
- responseType: 'json'
1484
- });
1485
- }
1486
- /**
1487
- * @tags Quote
1488
- * @name GetOptionChainDates
1489
- * @summary Query Option Chain dates - All users - available in Microservice
1490
- * @request GET:/api/quote/option-chain-dates
1491
- * @secure
1492
- */ getOptionChainDates(query, config) {
1493
- return this.apiClient.request({
1494
- ...config,
1495
- url: `/quote/option-chain-dates`,
1496
- method: 'GET',
1497
- params: query,
1498
- secure: true,
1499
- responseType: 'json'
1500
- });
1501
- }
1502
- /**
1503
- * @tags Quote
1504
- * @name GetOptionChain
1505
- * @summary Query Option Chain data - All users - available in Microservice
1506
- * @request GET:/api/quote/option-chain
1507
- * @secure
1508
- */ getOptionChain(query, config) {
1509
- return this.apiClient.request({
1510
- ...config,
1511
- url: `/quote/option-chain`,
1512
- method: 'GET',
1513
- params: query,
1514
- secure: true,
1515
- responseType: 'json'
1516
- });
1517
- }
1518
- /**
1519
- * @tags Quote
1520
- * @name GetOptionLevel1
1521
- * @summary Query Option Level 1 data - All users - available in Microservice
1522
- * @request GET:/api/quote/option-level1
1523
- * @secure
1524
- */ getOptionLevel1(query, config) {
1525
- return this.apiClient.request({
1526
- ...config,
1527
- url: `/quote/option-level1`,
1528
- method: 'GET',
1529
- params: query,
1530
- secure: true,
1531
- responseType: 'json'
1532
- });
1533
- }
1534
- /**
1535
- * @tags Quote
1536
- * @name GetOptionLevel1WithGreek
1537
- * @summary Query Option Level 1 data - All users - available in Microservice
1538
- * @request GET:/api/quote/option-level1-with-greek
1539
- * @secure
1540
- */ getOptionLevel1WithGreek(query, config) {
1541
- return this.apiClient.request({
1542
- ...config,
1543
- url: `/quote/option-level1-with-greek`,
1544
- method: 'GET',
1545
- params: query,
1546
- secure: true,
1547
- responseType: 'json'
1548
- });
1549
- }
1550
- /**
1551
- * @tags Quote
1552
- * @name GetOptionDayChart
1553
- * @summary Query Option Day Chart - All users - available in Microservice
1554
- * @request GET:/api/quote/option-day-chart
1555
- * @secure
1556
- */ getOptionDayChart(query, config) {
1557
- return this.apiClient.request({
1558
- ...config,
1559
- url: `/quote/option-day-chart`,
1560
- method: 'GET',
1561
- params: query,
1562
- secure: true,
1563
- responseType: 'json'
1564
- });
1565
- }
1566
- /**
1567
- * @tags Quote
1568
- * @name GetEquiductLevel1
1569
- * @summary Query Equiduct Level 1 data - All users - available in Microservice
1570
- * @request GET:/api/quote/equiduct-level1
1571
- * @secure
1572
- */ getEquiductLevel1(query, config) {
1573
- return this.apiClient.request({
1574
- ...config,
1575
- url: `/quote/equiduct-level1`,
1576
- method: 'GET',
1577
- params: query,
1578
- secure: true,
1579
- responseType: 'json'
1580
- });
1581
- }
1582
- /**
1583
- * @tags Quote
1584
- * @name GetBonds
1585
- * @summary Query Bonds data - All users - available in Microservice
1586
- * @request GET:/api/quote/bonds
1587
- * @secure
1588
- */ getBonds(query, config) {
1589
- return this.apiClient.request({
1590
- ...config,
1591
- url: `/quote/bonds`,
1592
- method: 'GET',
1593
- params: query,
1594
- secure: true,
1595
- responseType: 'json'
1596
- });
1597
- }
1598
- /**
1599
- * @tags Quote
1600
- * @name GetBondsSearch
1601
- * @summary Search bonds - All users - available in Microservice
1602
- * @request GET:/api/quote/bonds-search
1603
- * @secure
1604
- */ getBondsSearch(query, config) {
1605
- return this.apiClient.request({
1606
- ...config,
1607
- url: `/quote/bonds-search`,
1608
- method: 'GET',
1609
- params: query,
1610
- secure: true
1611
- });
1612
- }
1613
- /**
1614
- * @tags Quote
1615
- * @name GetBondsChart
1616
- * @summary Query Bonds historical chart data - All users - available in Microservice
1617
- * @request GET:/api/quote/bonds-chart
1618
- * @secure
1619
- */ getBondsChart(query, config) {
1620
- return this.apiClient.request({
1621
- ...config,
1622
- url: `/quote/bonds-chart`,
1623
- method: 'GET',
1624
- params: query,
1625
- secure: true,
1626
- responseType: 'json'
1627
- });
1628
- }
1629
- /**
1630
- * @tags Quote
1631
- * @name GetMutualFunds
1632
- * @summary Query Mutual Funds data - All users - available in Microservice
1633
- * @request GET:/api/quote/mutual-funds
1634
- * @secure
1635
- */ getMutualFunds(query, config) {
1636
- return this.apiClient.request({
1637
- ...config,
1638
- url: `/quote/mutual-funds`,
1639
- method: 'GET',
1640
- params: query,
1641
- secure: true,
1642
- responseType: 'json'
1643
- });
1644
- }
1645
- /**
1646
- * @tags Quote
1647
- * @name GetQuoddEod
1648
- * @summary Query QUODD EOD data - All users - available in Microservice
1649
- * @request GET:/api/quote/quodd-eod
1650
- * @secure
1651
- */ getQuoddEod(query, config) {
1652
- return this.apiClient.request({
1653
- ...config,
1654
- url: `/quote/quodd-eod`,
1655
- method: 'GET',
1656
- params: query,
1657
- secure: true,
1658
- responseType: 'json'
1659
- });
1660
- }
1661
- /**
1662
- * @tags Quote
1663
- * @name GetQuoddDelay
1664
- * @summary Query QUODD Delay data - All users - available in Microservice
1665
- * @request GET:/api/quote/quodd-delay
1666
- * @secure
1667
- */ getQuoddDelay(query, config) {
1668
- return this.apiClient.request({
1669
- ...config,
1670
- url: `/quote/quodd-delay`,
1671
- method: 'GET',
1672
- params: query,
1673
- secure: true,
1674
- responseType: 'json'
1675
- });
1676
- }
1677
- /**
1678
- * @tags Quote
1679
- * @name GetIceIsin
1680
- * @summary Query ICE ISIN data - All users - available in Microservice
1681
- * @request GET:/api/quote/ice-isin
1682
- * @secure
1683
- */ getIceIsin(query, config) {
1684
- return this.apiClient.request({
1685
- ...config,
1686
- url: `/quote/ice-isin`,
1687
- method: 'GET',
1688
- params: query,
1689
- secure: true,
1690
- responseType: 'json'
1691
- });
1692
- }
1693
- /**
1694
- * @tags Quote
1695
- * @name GetIceEod
1696
- * @summary Query ICE EOD data - All users - available in Microservice
1697
- * @request GET:/api/quote/ice-eod
1698
- * @secure
1699
- */ getIceEod(query, config) {
1700
- return this.apiClient.request({
1701
- ...config,
1702
- url: `/quote/ice-eod`,
1703
- method: 'GET',
1704
- params: query,
1705
- secure: true,
1706
- responseType: 'json'
1707
- });
1708
- }
1709
- /**
1710
- * @tags Quote
1711
- * @name GetFxRate
1712
- * @summary Query Forex data with symbols - All users - available in Microservice
1713
- * @request GET:/api/quote/fx-rate
1714
- * @secure
1715
- */ getFxRate(query, config) {
1716
- return this.apiClient.request({
1717
- ...config,
1718
- url: `/quote/fx-rate`,
1719
- method: 'GET',
1720
- params: query,
1721
- secure: true,
1722
- responseType: 'json'
1723
- });
1724
- }
1725
- /**
1726
- * @tags Quote
1727
- * @name GetFxTable
1728
- * @summary Query Forex table for one currency - All users - available in Microservice
1729
- * @request GET:/api/quote/fx-table
1730
- * @secure
1731
- */ getFxTable(query, config) {
1732
- return this.apiClient.request({
1733
- ...config,
1734
- url: `/quote/fx-table`,
1735
- method: 'GET',
1736
- params: query,
1737
- secure: true,
1738
- responseType: 'json'
1739
- });
1740
- }
1741
- }
1742
-
1743
-
1744
- var $75957c5651a48db2$exports = {};
1745
-
1746
- $parcel$export($75957c5651a48db2$exports, "QuotesReformat", () => $75957c5651a48db2$export$304305f55794ea0e);
1747
- /* eslint-disable */ /* tslint:disable */ /*
1748
- * ---------------------------------------------------------------
1749
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1750
- * ## ##
1751
- * ## AUTHOR: acacode ##
1752
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1753
- * ---------------------------------------------------------------
1754
- */
1755
- class $75957c5651a48db2$export$304305f55794ea0e {
1756
- constructor(apiClient){
1757
- this.apiClient = apiClient;
1758
- (0, $5CwE8$autobind)(this);
1759
- }
1760
- /**
1761
- * @tags QuotesReformat
1762
- * @name GetEquity
1763
- * @summary Query full Level 1 data - All users - available in Microservice
1764
- * @request GET:/api/quotes/equity
1765
- * @secure
1766
- */ getEquity(query, config) {
1767
- return this.apiClient.request({
1768
- ...config,
1769
- url: `/quotes/equity`,
1770
- method: 'GET',
1771
- params: query,
1772
- secure: true,
1773
- responseType: 'json'
1774
- });
1775
- }
1776
- /**
1777
- * @tags QuotesReformat
1778
- * @name GetEquityIntraday
1779
- * @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
1780
- * @request GET:/api/quotes/equity/intraday
1781
- * @secure
1782
- */ getEquityIntraday(query, config) {
1783
- return this.apiClient.request({
1784
- ...config,
1785
- url: `/quotes/equity/intraday`,
1786
- method: 'GET',
1787
- params: query,
1788
- secure: true,
1789
- responseType: 'json'
1790
- });
1791
- }
1792
- /**
1793
- * @tags QuotesReformat
1794
- * @name GetOptionHistorical
1795
- * @summary Query option Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1796
- * @request GET:/api/quotes/option/historical
1797
- * @secure
1798
- */ getOptionHistorical(query, config) {
1799
- return this.apiClient.request({
1800
- ...config,
1801
- url: `/quotes/option/historical`,
1802
- method: 'GET',
1803
- params: query,
1804
- secure: true,
1805
- responseType: 'json'
1806
- });
1807
- }
1808
- /**
1809
- * @tags QuotesReformat
1810
- * @name GetSearch
1811
- * @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
1812
- * @request GET:/api/quotes/search
1813
- * @secure
1814
- */ getSearch(query, config) {
1815
- return this.apiClient.request({
1816
- ...config,
1817
- url: `/quotes/search`,
1818
- method: 'GET',
1819
- params: query,
1820
- secure: true
1821
- });
1822
- }
1823
- /**
1824
- * @tags QuotesReformat
1825
- * @name GetOption
1826
- * @summary Query Option Level 1 data - All users - available in Microservice
1827
- * @request GET:/api/quotes/option
1828
- * @secure
1829
- */ getOption(query, config) {
1830
- return this.apiClient.request({
1831
- ...config,
1832
- url: `/quotes/option`,
1833
- method: 'GET',
1834
- params: query,
1835
- secure: true,
1836
- responseType: 'json'
1837
- });
1838
- }
1839
- /**
1840
- * @tags QuotesReformat
1841
- * @name GetOptionChainDates
1842
- * @summary Query Option Chain dates - All users - available in Microservice
1843
- * @request GET:/api/quotes/option/chain/dates/{symbol}
1844
- * @secure
1845
- */ getOptionChainDates(symbol, query, config) {
1846
- return this.apiClient.request({
1847
- ...config,
1848
- url: `/quotes/option/chain/dates/${symbol}`,
1849
- method: 'GET',
1850
- params: query,
1851
- secure: true,
1852
- responseType: 'json'
1853
- });
1854
- }
1855
- /**
1856
- * @tags QuotesReformat
1857
- * @name GetOptionChain
1858
- * @summary Query Option Chain data - All users - available in Microservice
1859
- * @request GET:/api/quotes/option/chain/{symbol}/{date}
1860
- * @secure
1861
- */ getOptionChain(symbol, date, query, config) {
1862
- return this.apiClient.request({
1863
- ...config,
1864
- url: `/quotes/option/chain/${symbol}/${date}`,
1865
- method: 'GET',
1866
- params: query,
1867
- secure: true,
1868
- responseType: 'json'
1869
- });
1870
- }
1871
- /**
1872
- * @tags QuotesReformat
1873
- * @name GetEquityHistorical
1874
- * @summary Query Historical Day Chart. No weekly data point support yet. No rsiSpan support. - All users - available in Microservice
1875
- * @request GET:/api/quotes/equity/historical
1876
- * @secure
1877
- */ getEquityHistorical(query, config) {
1878
- return this.apiClient.request({
1879
- ...config,
1880
- url: `/quotes/equity/historical`,
1881
- method: 'GET',
1882
- params: query,
1883
- secure: true,
1884
- responseType: 'json'
1885
- });
1886
- }
1887
- /**
1888
- * @tags QuotesReformat
1889
- * @name GetBonds
1890
- * @summary Query Bonds data - All users - available in Microservice
1891
- * @request GET:/api/quotes/bonds
1892
- * @secure
1893
- */ getBonds(query, config) {
1894
- return this.apiClient.request({
1895
- ...config,
1896
- url: `/quotes/bonds`,
1897
- method: 'GET',
1898
- params: query,
1899
- secure: true,
1900
- responseType: 'json'
1901
- });
1902
- }
1903
- /**
1904
- * @tags QuotesReformat
1905
- * @name GetBondsSearch
1906
- * @summary Search bonds - All users - available in Microservice
1907
- * @request GET:/api/quotes/bonds/search
1908
- * @secure
1909
- */ getBondsSearch(query, config) {
1910
- return this.apiClient.request({
1911
- ...config,
1912
- url: `/quotes/bonds/search`,
1913
- method: 'GET',
1914
- params: query,
1915
- secure: true
1916
- });
1917
- }
1918
- /**
1919
- * @tags QuotesReformat
1920
- * @name GetQuotesReformat
1921
- * @summary Query Forex rate - All users - available in Microservice
1922
- * @request GET:/api/quotes/fx
1923
- * @secure
1924
- */ getQuotesReformat(query, config) {
1925
- return this.apiClient.request({
1926
- ...config,
1927
- url: `/quotes/fx`,
1928
- method: 'GET',
1929
- params: query,
1930
- secure: true,
1931
- responseType: 'json'
1932
- });
1933
- }
1934
- }
1935
-
1936
-
1937
- var $28fda0d8c4e23a26$exports = {};
1938
-
1939
- $parcel$export($28fda0d8c4e23a26$exports, "UmaTest", () => $28fda0d8c4e23a26$export$51933dbbacfe440f);
1940
- /* eslint-disable */ /* tslint:disable */ /*
1941
- * ---------------------------------------------------------------
1942
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1943
- * ## ##
1944
- * ## AUTHOR: acacode ##
1945
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1946
- * ---------------------------------------------------------------
1947
- */
1948
- class $28fda0d8c4e23a26$export$51933dbbacfe440f {
1949
- constructor(apiClient){
1950
- this.apiClient = apiClient;
1951
- (0, $5CwE8$autobind)(this);
1952
- }
1953
- /**
1954
- * @tags UMATest
1955
- * @name GetRevokeUmaUser
1956
- * @summary Test to revoke uma user - internal use only - Super admin - available in Microservice
1957
- * @request GET:/api/uma-test/revoke-uma-user
1958
- * @secure
1959
- */ getRevokeUmaUser(query, config) {
1960
- return this.apiClient.request({
1961
- ...config,
1962
- url: `/uma-test/revoke-uma-user`,
1963
- method: 'GET',
1964
- params: query,
1965
- secure: true
1966
- });
1967
- }
1968
- /**
1969
- * @tags UMATest
1970
- * @name GetFirmList
1971
- * @summary Test to get all uma firms - internal use only - Super admin - available in Microservice
1972
- * @request GET:/api/uma-test/firm-list
1973
- * @secure
1974
- */ getFirmList(config) {
1975
- return this.apiClient.request({
1976
- ...config,
1977
- url: `/uma-test/firm-list`,
1978
- method: 'GET',
1979
- secure: true,
1980
- responseType: 'json'
1981
- });
1982
- }
1983
- /**
1984
- * @tags UMATest
1985
- * @name GetFirmListToLocal
1986
- * @summary Import all uma firms to AES - internal use only - Super admin - available in Microservice
1987
- * @request GET:/api/uma-test/firm-list-to-local
1988
- * @secure
1989
- */ getFirmListToLocal(config) {
1990
- return this.apiClient.request({
1991
- ...config,
1992
- url: `/uma-test/firm-list-to-local`,
1993
- method: 'GET',
1994
- secure: true
1995
- });
1996
- }
1997
- /**
1998
- * @tags UMATest
1999
- * @name GetB2BUserById
2000
- * @summary Test to get uma b2b user by user_id - internal use only - Super admin - available in Microservice
2001
- * @request GET:/api/uma-test/b2b-user-by-id
2002
- * @secure
2003
- */ getB2BUserById(query, config) {
2004
- return this.apiClient.request({
2005
- ...config,
2006
- url: `/uma-test/b2b-user-by-id`,
2007
- method: 'GET',
2008
- params: query,
2009
- secure: true,
2010
- responseType: 'json'
2011
- });
2012
- }
2013
- /**
2014
- * @tags UMATest
2015
- * @name GetB2BUserList
2016
- * @summary Test to get all uma b2b users - internal use only - Super admin - available in Microservice
2017
- * @request GET:/api/uma-test/b2b-user-list
2018
- * @secure
2019
- */ getB2BUserList(config) {
2020
- return this.apiClient.request({
2021
- ...config,
2022
- url: `/uma-test/b2b-user-list`,
2023
- method: 'GET',
2024
- secure: true,
2025
- responseType: 'json'
2026
- });
2027
- }
2028
- /**
2029
- * @tags UMATest
2030
- * @name GetB2BUserListToLocal
2031
- * @summary Import all uma b2b users to AES - internal use only - Super admin - available in Microservice
2032
- * @request GET:/api/uma-test/b2b-user-list-to-local
2033
- * @secure
2034
- */ getB2BUserListToLocal(config) {
2035
- return this.apiClient.request({
2036
- ...config,
2037
- url: `/uma-test/b2b-user-list-to-local`,
2038
- method: 'GET',
2039
- secure: true
2040
- });
2041
- }
2042
- /**
2043
- * @tags UMATest
2044
- * @name GetB2CUserById
2045
- * @summary Test to get uma b2c user by user_id - internal use only - Super admin - available in Microservice
2046
- * @request GET:/api/uma-test/b2c-user-by-id
2047
- * @secure
2048
- */ getB2CUserById(query, config) {
2049
- return this.apiClient.request({
2050
- ...config,
2051
- url: `/uma-test/b2c-user-by-id`,
2052
- method: 'GET',
2053
- params: query,
2054
- secure: true,
2055
- responseType: 'json'
2056
- });
2057
- }
2058
- /**
2059
- * @tags UMATest
2060
- * @name GetB2CUserList
2061
- * @summary Test to get all uma b2c users - internal use only - Super admin - available in Microservice
2062
- * @request GET:/api/uma-test/b2c-user-list
2063
- * @secure
2064
- */ getB2CUserList(config) {
2065
- return this.apiClient.request({
2066
- ...config,
2067
- url: `/uma-test/b2c-user-list`,
2068
- method: 'GET',
2069
- secure: true,
2070
- responseType: 'json'
2071
- });
2072
- }
2073
- /**
2074
- * @tags UMATest
2075
- * @name GetB2CUserListToLocal
2076
- * @summary Import all uma b2c users to AES - internal use only - Super admin - available in Microservice
2077
- * @request GET:/api/uma-test/b2c-user-list-to-local
2078
- * @secure
2079
- */ getB2CUserListToLocal(config) {
2080
- return this.apiClient.request({
2081
- ...config,
2082
- url: `/uma-test/b2c-user-list-to-local`,
2083
- method: 'GET',
2084
- secure: true
2085
- });
2086
- }
2087
- }
2088
-
2089
-
2090
- var $d014cbaaab9ee483$exports = {};
2091
-
2092
- $parcel$export($d014cbaaab9ee483$exports, "User", () => $d014cbaaab9ee483$export$1f44aaf2ec115b54);
2093
- /* eslint-disable */ /* tslint:disable */ /*
2094
- * ---------------------------------------------------------------
2095
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2096
- * ## ##
2097
- * ## AUTHOR: acacode ##
2098
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2099
- * ---------------------------------------------------------------
2100
- */
2101
-
2102
- class $d014cbaaab9ee483$export$1f44aaf2ec115b54 {
2103
- constructor(apiClient){
2104
- this.apiClient = apiClient;
2105
- (0, $5CwE8$autobind)(this);
2106
- }
2107
- /**
2108
- * @tags User
2109
- * @name PostRegisterRegular
2110
- * @summary Create a new regular user - Firm manager, or super admin - Not available in Microservice
2111
- * @request POST:/api/user/register-regular
2112
- * @secure
2113
- */ postRegisterRegular(data, config) {
2114
- return this.apiClient.request({
2115
- ...config,
2116
- url: `/user/register-regular`,
2117
- method: 'POST',
2118
- data: data,
2119
- secure: true,
2120
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2121
- });
2122
- }
2123
- /**
2124
- * @tags User
2125
- * @name PostRegisterAdmin
2126
- * @summary Create a new admin user - Super admin - Not available in Microservice
2127
- * @request POST:/api/user/register-admin
2128
- * @secure
2129
- */ postRegisterAdmin(data, config) {
2130
- return this.apiClient.request({
2131
- ...config,
2132
- url: `/user/register-admin`,
2133
- method: 'POST',
2134
- data: data,
2135
- secure: true,
2136
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2137
- });
2138
- }
2139
- /**
2140
- * @tags User
2141
- * @name PostRegisterManager
2142
- * @summary Create a new firm manager user - Firm manager, or super admin - Not available in Microservice
2143
- * @request POST:/api/user/register-manager
2144
- * @secure
2145
- */ postRegisterManager(data, config) {
2146
- return this.apiClient.request({
2147
- ...config,
2148
- url: `/user/register-manager`,
2149
- method: 'POST',
2150
- data: data,
2151
- secure: true,
2152
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2153
- });
2154
- }
2155
- /**
2156
- * @tags User
2157
- * @name PostRegisterUmaB2BUser
2158
- * @summary Create a new b2b user from UMA - Firm manager, or super admin - available in Microservice
2159
- * @request POST:/api/user/register-uma-b2b-user
2160
- * @secure
2161
- */ postRegisterUmaB2BUser(data, config) {
2162
- return this.apiClient.request({
2163
- ...config,
2164
- url: `/user/register-uma-b2b-user`,
2165
- method: 'POST',
2166
- data: data,
2167
- secure: true,
2168
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2169
- });
2170
- }
2171
- /**
2172
- * @tags User
2173
- * @name PostRegisterUmaB2CUser
2174
- * @summary Create a new b2c user from UMA - Firm manager, or super admin - available in Microservice
2175
- * @request POST:/api/user/register-uma-b2c-user
2176
- * @secure
2177
- */ postRegisterUmaB2CUser(data, config) {
2178
- return this.apiClient.request({
2179
- ...config,
2180
- url: `/user/register-uma-b2c-user`,
2181
- method: 'POST',
2182
- data: data,
2183
- secure: true,
2184
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2185
- });
2186
- }
2187
- /**
2188
- * @tags User
2189
- * @name GetUmaB2BUserList
2190
- * @summary Get UMA b2b users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
2191
- * @request GET:/api/user/uma-b2b-user-list
2192
- * @secure
2193
- */ getUmaB2BUserList(query, config) {
2194
- return this.apiClient.request({
2195
- ...config,
2196
- url: `/user/uma-b2b-user-list`,
2197
- method: 'GET',
2198
- params: query,
2199
- secure: true,
2200
- responseType: 'json'
2201
- });
2202
- }
2203
- /**
2204
- * @tags User
2205
- * @name GetUmaB2CUserList
2206
- * @summary Get UMA b2c users - Firm manager, or super admin - available in Microservice, POST with pagination and sort
2207
- * @request GET:/api/user/uma-b2c-user-list
2208
- * @secure
2209
- */ getUmaB2CUserList(query, config) {
2210
- return this.apiClient.request({
2211
- ...config,
2212
- url: `/user/uma-b2c-user-list`,
2213
- method: 'GET',
2214
- params: query,
2215
- secure: true,
2216
- responseType: 'json'
2217
- });
2218
- }
2219
- /**
2220
- * @tags User
2221
- * @name PostLogin
2222
- * @summary all user login - All users - Not available in Microservice
2223
- * @request POST:/api/user/login
2224
- * @secure
2225
- */ postLogin(data, config) {
2226
- return this.apiClient.request({
2227
- ...config,
2228
- url: `/user/login`,
2229
- method: 'POST',
2230
- data: data,
2231
- secure: true,
2232
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2233
- });
2234
- }
2235
- /**
2236
- * @description token will be revoked even not expired
2237
- * @tags User
2238
- * @name GetLogout
2239
- * @summary logout with user id - All users - Not available in Microservice
2240
- * @request GET:/api/user/logout
2241
- * @secure
2242
- */ getLogout(query, config) {
2243
- return this.apiClient.request({
2244
- ...config,
2245
- url: `/user/logout`,
2246
- method: 'GET',
2247
- params: query,
2248
- secure: true
2249
- });
2250
- }
2251
- /**
2252
- * @tags User
2253
- * @name PutPhoneNumber
2254
- * @summary update a user registered phone number - All users - Not available in Microservice
2255
- * @request PUT:/api/user/phone-number
2256
- * @secure
2257
- */ putPhoneNumber(data, config) {
2258
- return this.apiClient.request({
2259
- ...config,
2260
- url: `/user/phone-number`,
2261
- method: 'PUT',
2262
- data: data,
2263
- secure: true,
2264
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2265
- });
2266
- }
2267
- /**
2268
- * @tags User
2269
- * @name PutEmail
2270
- * @summary update a user registered email - All users - Not available in Microservice
2271
- * @request PUT:/api/user/email
2272
- * @secure
2273
- */ putEmail(data, config) {
2274
- return this.apiClient.request({
2275
- ...config,
2276
- url: `/user/email`,
2277
- method: 'PUT',
2278
- data: data,
2279
- secure: true,
2280
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2281
- });
2282
- }
2283
- /**
2284
- * @description It will check old passoword.
2285
- * @tags User
2286
- * @name PutChangePassword
2287
- * @summary User change its own password - All users - Not available in Microservice
2288
- * @request PUT:/api/user/change-password
2289
- * @secure
2290
- */ putChangePassword(data, config) {
2291
- return this.apiClient.request({
2292
- ...config,
2293
- url: `/user/change-password`,
2294
- method: 'PUT',
2295
- data: data,
2296
- secure: true,
2297
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2298
- });
2299
- }
2300
- /**
2301
- * @description For manager/admin user, it does not require old password.
2302
- * @tags User
2303
- * @name GetResetUserPassword
2304
- * @summary Reset a user password - Firm manager, or super admin - Not available in Microservice
2305
- * @request GET:/api/user/reset-user-password
2306
- * @secure
2307
- */ getResetUserPassword(query, config) {
2308
- return this.apiClient.request({
2309
- ...config,
2310
- url: `/user/reset-user-password`,
2311
- method: 'GET',
2312
- params: query,
2313
- secure: true
2314
- });
2315
- }
2316
- /**
2317
- * @tags User
2318
- * @name GetUserNameById
2319
- * @summary Get a user Name by a specific user Id - All users - Not available in Microservice
2320
- * @request GET:/api/user/user-name-by-id
2321
- * @secure
2322
- */ getUserNameById(query, config) {
2323
- return this.apiClient.request({
2324
- ...config,
2325
- url: `/user/user-name-by-id`,
2326
- method: 'GET',
2327
- params: query,
2328
- secure: true,
2329
- responseType: 'json'
2330
- });
2331
- }
2332
- /**
2333
- * @description User Name is unique in the system.
2334
- * @tags User
2335
- * @name GetUserIdByName
2336
- * @summary Get a user Id by a specific user Name - All users - Not available in Microservice
2337
- * @request GET:/api/user/user-id-by-name
2338
- * @secure
2339
- */ getUserIdByName(query, config) {
2340
- return this.apiClient.request({
2341
- ...config,
2342
- url: `/user/user-id-by-name`,
2343
- method: 'GET',
2344
- params: query,
2345
- secure: true,
2346
- responseType: 'json'
2347
- });
2348
- }
2349
- /**
2350
- * @tags User
2351
- * @name GetUserByName
2352
- * @summary Search a user by an exactly user name - All users - Not available in Microservice
2353
- * @request GET:/api/user/user-by-name
2354
- * @secure
2355
- */ getUserByName(query, config) {
2356
- return this.apiClient.request({
2357
- ...config,
2358
- url: `/user/user-by-name`,
2359
- method: 'GET',
2360
- params: query,
2361
- secure: true,
2362
- responseType: 'json'
2363
- });
2364
- }
2365
- /**
2366
- * @tags User
2367
- * @name GetUsersById
2368
- * @summary Search users by exactly userids - All users - Not available in Microservice
2369
- * @request GET:/api/user/users-by-id
2370
- * @secure
2371
- */ getUsersById(query, config) {
2372
- return this.apiClient.request({
2373
- ...config,
2374
- url: `/user/users-by-id`,
2375
- method: 'GET',
2376
- params: query,
2377
- secure: true,
2378
- responseType: 'json'
2379
- });
2380
- }
2381
- /**
2382
- * @description It will return all users that user name contains the query string, no matter case.
2383
- * @tags User
2384
- * @name PostUsersFuzzy
2385
- * @summary Search users which include a specific string with Pagination and Sort - All users - Not available in Microservice
2386
- * @request POST:/api/user/users-fuzzy
2387
- * @secure
2388
- */ postUsersFuzzy(data, query, config) {
2389
- return this.apiClient.request({
2390
- ...config,
2391
- url: `/user/users-fuzzy`,
2392
- method: 'POST',
2393
- params: query,
2394
- data: data,
2395
- secure: true,
2396
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2397
- responseType: 'json'
2398
- });
2399
- }
2400
- /**
2401
- * @tags User
2402
- * @name GetUsersByFirm
2403
- * @summary Query all users in a specific firm - Firm manager, or super admin - Not available in Microservice
2404
- * @request GET:/api/user/users-by-firm
2405
- * @secure
2406
- */ getUsersByFirm(query, config) {
2407
- return this.apiClient.request({
2408
- ...config,
2409
- url: `/user/users-by-firm`,
2410
- method: 'GET',
2411
- params: query,
2412
- secure: true,
2413
- responseType: 'json'
2414
- });
2415
- }
2416
- /**
2417
- * @description All conditions are optional
2418
- * @tags User
2419
- * @name PostUsersByMultipleConditions
2420
- * @summary Search Users by multiple conditions with Pagination and Sort - Firm manager, or super admin - available in Microservice
2421
- For Microservice API:
2422
- 1. No parameter 'user_name' and 'email'. Instead, it has parameter 'user_search', which will do fuzzy search on both user_name and email.
2423
- 2. Only return 'UMA' source users
2424
- * @request POST:/api/user/users-by-multiple-conditions
2425
- * @secure
2426
- */ postUsersByMultipleConditions(data, query, config) {
2427
- return this.apiClient.request({
2428
- ...config,
2429
- url: `/user/users-by-multiple-conditions`,
2430
- method: 'POST',
2431
- params: query,
2432
- data: data,
2433
- secure: true,
2434
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2435
- responseType: 'json'
2436
- });
2437
- }
2438
- /**
2439
- * @description Super admin is admin users in ViewTrade
2440
- * @tags User
2441
- * @name PostSuperAdmins
2442
- * @summary Query all super admin users - Super admin - Not available in Microservice
2443
- * @request POST:/api/user/super-admins
2444
- * @secure
2445
- */ postSuperAdmins(data, config) {
2446
- return this.apiClient.request({
2447
- ...config,
2448
- url: `/user/super-admins`,
2449
- method: 'POST',
2450
- data: data,
2451
- secure: true,
2452
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2453
- responseType: 'json'
2454
- });
2455
- }
2456
- /**
2457
- * @description !Caution! It will delete the relevant user information, data configuration and unsign all UserEntitlements for this user.
2458
- * @tags User
2459
- * @name DeleteUser
2460
- * @summary Delete an existing user - Super admin - Not available in Microservice
2461
- * @request DELETE:/api/user/user
2462
- * @secure
2463
- */ deleteUser(query, config) {
2464
- return this.apiClient.request({
2465
- ...config,
2466
- url: `/user/user`,
2467
- method: 'DELETE',
2468
- params: query,
2469
- secure: true
2470
- });
2471
- }
2472
- /**
2473
- * @tags User
2474
- * @name GetUserRole
2475
- * @summary Search a user role by user Id - All users - Not available in Microservice
2476
- * @request GET:/api/user/user-role
2477
- * @secure
2478
- */ getUserRole(query, config) {
2479
- return this.apiClient.request({
2480
- ...config,
2481
- url: `/user/user-role`,
2482
- method: 'GET',
2483
- params: query,
2484
- secure: true
2485
- });
2486
- }
2487
- /**
2488
- * @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"
2489
- * @tags User
2490
- * @name PostUserInformation
2491
- * @summary Create new user information - All users - available in Microservice
2492
- * @request POST:/api/user/user-information
2493
- * @secure
2494
- */ postUserInformation(data, config) {
2495
- return this.apiClient.request({
2496
- ...config,
2497
- url: `/user/user-information`,
2498
- method: 'POST',
2499
- data: data,
2500
- secure: true,
2501
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2502
- responseType: 'json'
2503
- });
2504
- }
2505
- /**
2506
- * @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"
2507
- * @tags User
2508
- * @name PutUserInformation
2509
- * @summary Update existing user information - All users - available in Microservice
2510
- * @request PUT:/api/user/user-information
2511
- * @secure
2512
- */ putUserInformation(data, query, config) {
2513
- return this.apiClient.request({
2514
- ...config,
2515
- url: `/user/user-information`,
2516
- method: 'PUT',
2517
- params: query,
2518
- data: data,
2519
- secure: true,
2520
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2521
- });
2522
- }
2523
- /**
2524
- * @tags User
2525
- * @name GetUserInformationById
2526
- * @summary Query a specific user information - All users - available in Microservice
2527
- * @request GET:/api/user/user-information-by-id
2528
- * @secure
2529
- */ getUserInformationById(query, config) {
2530
- return this.apiClient.request({
2531
- ...config,
2532
- url: `/user/user-information-by-id`,
2533
- method: 'GET',
2534
- params: query,
2535
- secure: true,
2536
- responseType: 'json'
2537
- });
2538
- }
2539
- /**
2540
- * @tags User
2541
- * @name GetOccupationList
2542
- * @summary Query occupation list that can be used in user information EmploymentFunction - All users - available in Microservice
2543
- * @request GET:/api/user/occupation-list
2544
- * @secure
2545
- */ getOccupationList(config) {
2546
- return this.apiClient.request({
2547
- ...config,
2548
- url: `/user/occupation-list`,
2549
- method: 'GET',
2550
- secure: true,
2551
- responseType: 'json'
2552
- });
2553
- }
2554
- /**
2555
- * @description It will check if user firm has relevant data acess.
2556
- * @tags User
2557
- * @name PostUserDataConfig
2558
- * @summary Create new user data configuration - Firm manager, or super admin - available in Microservice
2559
- * @request POST:/api/user/user-data-config
2560
- * @secure
2561
- */ postUserDataConfig(data, config) {
2562
- return this.apiClient.request({
2563
- ...config,
2564
- url: `/user/user-data-config`,
2565
- method: 'POST',
2566
- data: data,
2567
- secure: true,
2568
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json,
2569
- responseType: 'json'
2570
- });
2571
- }
2572
- /**
2573
- * @description It will check if user firm has relevant data acess.
2574
- * @tags User
2575
- * @name PutUserDataConfig
2576
- * @summary Update existing user data configuration - Firm manager, or super admin - available in Microservice
2577
- * @request PUT:/api/user/user-data-config
2578
- * @secure
2579
- */ putUserDataConfig(data, query, config) {
2580
- return this.apiClient.request({
2581
- ...config,
2582
- url: `/user/user-data-config`,
2583
- method: 'PUT',
2584
- params: query,
2585
- data: data,
2586
- secure: true,
2587
- contentType: (0, $e176194f300187e4$export$e2e108cbe2e4f865).Json
2588
- });
2589
- }
2590
- /**
2591
- * @description USEquity bitwise: 1 UTP(Nasdaq), 2 CBOE1, 3 BATS, 4 NYBQT, 5 UTP OTC, 6 CTA-A, 7 CTA-B
2592
- * @tags User
2593
- * @name GetUserDataConfigById
2594
- * @summary Query a user data configuration by user Id - All users - available in Microservice
2595
- * @request GET:/api/user/user-data-config-by-id
2596
- * @secure
2597
- */ getUserDataConfigById(query, config) {
2598
- return this.apiClient.request({
2599
- ...config,
2600
- url: `/user/user-data-config-by-id`,
2601
- method: 'GET',
2602
- params: query,
2603
- secure: true,
2604
- responseType: 'json'
2605
- });
2606
- }
2607
- /**
2608
- * @tags User
2609
- * @name GetUserDataConfigByIdExtraInfo
2610
- * @summary Query a user data configuration by user Id - All users - available in Microservice
2611
- * @request GET:/api/user/user-data-config-by-id-extra-info
2612
- * @secure
2613
- */ getUserDataConfigByIdExtraInfo(query, config) {
2614
- return this.apiClient.request({
2615
- ...config,
2616
- url: `/user/user-data-config-by-id-extra-info`,
2617
- method: 'GET',
2618
- params: query,
2619
- secure: true,
2620
- responseType: 'json'
2621
- });
2622
- }
2623
- /**
2624
- * @tags User
2625
- * @name GetUserDataConfigs
2626
- * @summary Query user data configurations by user Ids - Firm manager or super admin - available in Microservice
2627
- * @request GET:/api/user/user-data-configs
2628
- * @secure
2629
- */ getUserDataConfigs(query, config) {
2630
- return this.apiClient.request({
2631
- ...config,
2632
- url: `/user/user-data-configs`,
2633
- method: 'GET',
2634
- params: query,
2635
- secure: true,
2636
- responseType: 'json'
2637
- });
2638
- }
2639
- /**
2640
- * @tags User
2641
- * @name GetUserNeedSignAgreements
2642
- * @summary Query which entitlements(agreements) a user need to sign(but not signed yet) by user name - All users - available in Microservice
2643
- * @request GET:/api/user/user-need-sign-agreements
2644
- * @secure
2645
- */ getUserNeedSignAgreements(query, config) {
2646
- return this.apiClient.request({
2647
- ...config,
2648
- url: `/user/user-need-sign-agreements`,
2649
- method: 'GET',
2650
- params: query,
2651
- secure: true,
2652
- responseType: 'json'
2653
- });
2654
- }
2655
- /**
2656
- * @tags User
2657
- * @name GetSessionAlive
2658
- * @summary Query if current user session is alive - All users - Not available in Microservice
2659
- * @request GET:/api/user/session-alive
2660
- * @secure
2661
- */ getSessionAlive(config) {
2662
- return this.apiClient.request({
2663
- ...config,
2664
- url: `/user/session-alive`,
2665
- method: 'GET',
2666
- secure: true,
2667
- responseType: 'json'
2668
- });
2669
- }
2670
- /**
2671
- * @tags User
2672
- * @name GetTest
2673
- * @summary For system deployment user only - All users - available in Microservice
2674
- * @request GET:/api/user/Test
2675
- * @secure
2676
- */ getTest(config) {
2677
- return this.apiClient.request({
2678
- ...config,
2679
- url: `/user/Test`,
2680
- method: 'GET',
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, $78eb44ae01cb99e8$exports);
2770
- $parcel$exportWildcard($40adcf017c67f573$exports, $22a5bbde33c0a998$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, $e3362299f3dca2a2$exports);
2777
- $parcel$exportWildcard($40adcf017c67f573$exports, $75957c5651a48db2$exports);
2778
- $parcel$exportWildcard($40adcf017c67f573$exports, $28fda0d8c4e23a26$exports);
2779
- $parcel$exportWildcard($40adcf017c67f573$exports, $d014cbaaab9ee483$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, $78eb44ae01cb99e8$export$7b20d168ba04011b as Entitlement, $22a5bbde33c0a998$export$accd73d198d77d2f as DataSource, $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, $e3362299f3dca2a2$export$82b8d343c504672 as Quote, $75957c5651a48db2$export$304305f55794ea0e as QuotesReformat, $28fda0d8c4e23a26$export$51933dbbacfe440f as UmaTest, $d014cbaaab9ee483$export$1f44aaf2ec115b54 as User, $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 o,{isAxiosError as u}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=o.create({...t.axiosConfig,baseURL:t.baseUrl,headers:{"Content-Type":"application/json",...t.axiosConfig?.headers}}),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){let t={success:!1,status:-1,statusText:String(s),error:s};if(u(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),!this.config.handleError&&!e.handleError)throw s;return 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.axiosConfig?.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,"DataSource",()=>E);class E{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 b={};h(b,"Entitlement",()=>j);class j{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 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 x={};h(x,"FundWebQuote",()=>w);class w{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,x),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 E(this.apiClient),this.entitlement=new j(this.apiClient),this.file=new S(this.apiClient),this.firm=new D(this.apiClient),this.fundWebQuote=new w(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 DataSource,j as Entitlement,S as File,D as Firm,w 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