@oxyhq/services 5.13.25 → 5.13.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/core/HttpService.js +481 -0
- package/lib/commonjs/core/HttpService.js.map +1 -0
- package/lib/commonjs/core/OxyServices.base.js +29 -26
- package/lib/commonjs/core/OxyServices.base.js.map +1 -1
- package/lib/commonjs/core/OxyServices.js +1 -2
- package/lib/commonjs/core/OxyServices.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.assets.js +3 -2
- package/lib/commonjs/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.user.js +9 -5
- package/lib/commonjs/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/commonjs/core/mixins/OxyServices.utility.js +1 -0
- package/lib/commonjs/core/mixins/OxyServices.utility.js.map +1 -1
- package/lib/commonjs/utils/errorUtils.js +35 -15
- package/lib/commonjs/utils/errorUtils.js.map +1 -1
- package/lib/module/core/HttpService.js +476 -0
- package/lib/module/core/HttpService.js.map +1 -0
- package/lib/module/core/OxyServices.base.js +29 -26
- package/lib/module/core/OxyServices.base.js.map +1 -1
- package/lib/module/core/OxyServices.js +1 -2
- package/lib/module/core/OxyServices.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.assets.js +3 -2
- package/lib/module/core/mixins/OxyServices.assets.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.user.js +9 -5
- package/lib/module/core/mixins/OxyServices.user.js.map +1 -1
- package/lib/module/core/mixins/OxyServices.utility.js +1 -0
- package/lib/module/core/mixins/OxyServices.utility.js.map +1 -1
- package/lib/module/utils/errorUtils.js +36 -15
- package/lib/module/utils/errorUtils.js.map +1 -1
- package/lib/typescript/core/HttpService.d.ts +111 -0
- package/lib/typescript/core/HttpService.d.ts.map +1 -0
- package/lib/typescript/core/OxyServices.base.d.ts +6 -8
- package/lib/typescript/core/OxyServices.base.d.ts.map +1 -1
- package/lib/typescript/core/OxyServices.d.ts +1 -2
- package/lib/typescript/core/OxyServices.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.analytics.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.assets.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.auth.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.developer.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.devices.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.karma.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.language.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.language.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.location.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.location.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.payment.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.privacy.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.totp.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.totp.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.user.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.user.d.ts.map +1 -1
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts +4 -5
- package/lib/typescript/core/mixins/OxyServices.utility.d.ts.map +1 -1
- package/lib/typescript/core/mixins/index.d.ts +52 -65
- package/lib/typescript/core/mixins/index.d.ts.map +1 -1
- package/lib/typescript/utils/errorUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/core/HttpService.ts +523 -0
- package/src/core/OxyServices.base.ts +36 -34
- package/src/core/OxyServices.ts +1 -2
- package/src/core/mixins/OxyServices.assets.ts +2 -1
- package/src/core/mixins/OxyServices.user.ts +7 -6
- package/src/core/mixins/OxyServices.utility.ts +1 -0
- package/src/utils/errorUtils.ts +65 -19
- package/lib/commonjs/core/HttpClient.js +0 -317
- package/lib/commonjs/core/HttpClient.js.map +0 -1
- package/lib/commonjs/core/RequestManager.js +0 -170
- package/lib/commonjs/core/RequestManager.js.map +0 -1
- package/lib/module/core/HttpClient.js +0 -311
- package/lib/module/core/HttpClient.js.map +0 -1
- package/lib/module/core/RequestManager.js +0 -165
- package/lib/module/core/RequestManager.js.map +0 -1
- package/lib/typescript/core/HttpClient.d.ts +0 -110
- package/lib/typescript/core/HttpClient.d.ts.map +0 -1
- package/lib/typescript/core/RequestManager.d.ts +0 -63
- package/lib/typescript/core/RequestManager.d.ts.map +0 -1
- package/src/core/HttpClient.ts +0 -346
- package/src/core/RequestManager.ts +0 -205
|
@@ -27,13 +27,12 @@ export declare function composeOxyServices(): {
|
|
|
27
27
|
loadUser?: boolean;
|
|
28
28
|
session?: boolean;
|
|
29
29
|
}): (req: any, res: any, next: any) => any;
|
|
30
|
-
|
|
31
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
30
|
+
httpService: import("../HttpService").HttpService;
|
|
32
31
|
cloudURL: string;
|
|
33
32
|
config: import("../OxyServices.base").OxyConfig;
|
|
34
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
33
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
35
34
|
getBaseURL(): string;
|
|
36
|
-
getClient(): import("../
|
|
35
|
+
getClient(): import("../HttpService").HttpService;
|
|
37
36
|
getMetrics(): {
|
|
38
37
|
totalRequests: number;
|
|
39
38
|
successfulRequests: number;
|
|
@@ -63,7 +62,7 @@ export declare function composeOxyServices(): {
|
|
|
63
62
|
authTimeoutMs?: number;
|
|
64
63
|
}): Promise<T>;
|
|
65
64
|
validate(): Promise<boolean>;
|
|
66
|
-
handleError(error:
|
|
65
|
+
handleError(error: unknown): Error;
|
|
67
66
|
healthCheck(): Promise<{
|
|
68
67
|
status: string;
|
|
69
68
|
users?: number;
|
|
@@ -80,13 +79,12 @@ export declare function composeOxyServices(): {
|
|
|
80
79
|
getDeviceSessions(sessionId: string): Promise<any[]>;
|
|
81
80
|
logoutAllDeviceSessions(sessionId: string, deviceId?: string, excludeCurrent?: boolean): Promise<any>;
|
|
82
81
|
updateDeviceName(sessionId: string, deviceName: string): Promise<any>;
|
|
83
|
-
|
|
84
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
82
|
+
httpService: import("../HttpService").HttpService;
|
|
85
83
|
cloudURL: string;
|
|
86
84
|
config: import("../OxyServices.base").OxyConfig;
|
|
87
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
85
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
88
86
|
getBaseURL(): string;
|
|
89
|
-
getClient(): import("../
|
|
87
|
+
getClient(): import("../HttpService").HttpService;
|
|
90
88
|
getMetrics(): {
|
|
91
89
|
totalRequests: number;
|
|
92
90
|
successfulRequests: number;
|
|
@@ -116,7 +114,7 @@ export declare function composeOxyServices(): {
|
|
|
116
114
|
authTimeoutMs?: number;
|
|
117
115
|
}): Promise<T>;
|
|
118
116
|
validate(): Promise<boolean>;
|
|
119
|
-
handleError(error:
|
|
117
|
+
handleError(error: unknown): Error;
|
|
120
118
|
healthCheck(): Promise<{
|
|
121
119
|
status: string;
|
|
122
120
|
users?: number;
|
|
@@ -129,13 +127,12 @@ export declare function composeOxyServices(): {
|
|
|
129
127
|
new (...args: any[]): {
|
|
130
128
|
trackEvent(eventName: string, properties?: Record<string, any>): Promise<void>;
|
|
131
129
|
getAnalytics(startDate?: string, endDate?: string): Promise<any>;
|
|
132
|
-
|
|
133
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
130
|
+
httpService: import("../HttpService").HttpService;
|
|
134
131
|
cloudURL: string;
|
|
135
132
|
config: import("../OxyServices.base").OxyConfig;
|
|
136
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
133
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
137
134
|
getBaseURL(): string;
|
|
138
|
-
getClient(): import("../
|
|
135
|
+
getClient(): import("../HttpService").HttpService;
|
|
139
136
|
getMetrics(): {
|
|
140
137
|
totalRequests: number;
|
|
141
138
|
successfulRequests: number;
|
|
@@ -165,7 +162,7 @@ export declare function composeOxyServices(): {
|
|
|
165
162
|
authTimeoutMs?: number;
|
|
166
163
|
}): Promise<T>;
|
|
167
164
|
validate(): Promise<boolean>;
|
|
168
|
-
handleError(error:
|
|
165
|
+
handleError(error: unknown): Error;
|
|
169
166
|
healthCheck(): Promise<{
|
|
170
167
|
status: string;
|
|
171
168
|
users?: number;
|
|
@@ -178,13 +175,12 @@ export declare function composeOxyServices(): {
|
|
|
178
175
|
new (...args: any[]): {
|
|
179
176
|
updateLocation(latitude: number, longitude: number): Promise<any>;
|
|
180
177
|
getNearbyUsers(radius?: number): Promise<any[]>;
|
|
181
|
-
|
|
182
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
178
|
+
httpService: import("../HttpService").HttpService;
|
|
183
179
|
cloudURL: string;
|
|
184
180
|
config: import("../OxyServices.base").OxyConfig;
|
|
185
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
181
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
186
182
|
getBaseURL(): string;
|
|
187
|
-
getClient(): import("../
|
|
183
|
+
getClient(): import("../HttpService").HttpService;
|
|
188
184
|
getMetrics(): {
|
|
189
185
|
totalRequests: number;
|
|
190
186
|
successfulRequests: number;
|
|
@@ -214,7 +210,7 @@ export declare function composeOxyServices(): {
|
|
|
214
210
|
authTimeoutMs?: number;
|
|
215
211
|
}): Promise<T>;
|
|
216
212
|
validate(): Promise<boolean>;
|
|
217
|
-
handleError(error:
|
|
213
|
+
handleError(error: unknown): Error;
|
|
218
214
|
healthCheck(): Promise<{
|
|
219
215
|
status: string;
|
|
220
216
|
users?: number;
|
|
@@ -243,13 +239,12 @@ export declare function composeOxyServices(): {
|
|
|
243
239
|
}): Promise<any>;
|
|
244
240
|
regenerateDeveloperAppSecret(appId: string): Promise<any>;
|
|
245
241
|
deleteDeveloperApp(appId: string): Promise<any>;
|
|
246
|
-
|
|
247
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
242
|
+
httpService: import("../HttpService").HttpService;
|
|
248
243
|
cloudURL: string;
|
|
249
244
|
config: import("../OxyServices.base").OxyConfig;
|
|
250
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
245
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
251
246
|
getBaseURL(): string;
|
|
252
|
-
getClient(): import("../
|
|
247
|
+
getClient(): import("../HttpService").HttpService;
|
|
253
248
|
getMetrics(): {
|
|
254
249
|
totalRequests: number;
|
|
255
250
|
successfulRequests: number;
|
|
@@ -279,7 +274,7 @@ export declare function composeOxyServices(): {
|
|
|
279
274
|
authTimeoutMs?: number;
|
|
280
275
|
}): Promise<T>;
|
|
281
276
|
validate(): Promise<boolean>;
|
|
282
|
-
handleError(error:
|
|
277
|
+
handleError(error: unknown): Error;
|
|
283
278
|
healthCheck(): Promise<{
|
|
284
279
|
status: string;
|
|
285
280
|
users?: number;
|
|
@@ -323,13 +318,12 @@ export declare function composeOxyServices(): {
|
|
|
323
318
|
fetchAssetDownloadUrl(fileId: string, variant?: string, cacheTTL?: number, expiresIn?: number): Promise<string | null>;
|
|
324
319
|
fetchAssetContent(url: string, type: "text"): Promise<string>;
|
|
325
320
|
fetchAssetContent(url: string, type: "blob"): Promise<Blob>;
|
|
326
|
-
|
|
327
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
321
|
+
httpService: import("../HttpService").HttpService;
|
|
328
322
|
cloudURL: string;
|
|
329
323
|
config: import("../OxyServices.base").OxyConfig;
|
|
330
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
324
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
331
325
|
getBaseURL(): string;
|
|
332
|
-
getClient(): import("../
|
|
326
|
+
getClient(): import("../HttpService").HttpService;
|
|
333
327
|
getMetrics(): {
|
|
334
328
|
totalRequests: number;
|
|
335
329
|
successfulRequests: number;
|
|
@@ -359,7 +353,7 @@ export declare function composeOxyServices(): {
|
|
|
359
353
|
authTimeoutMs?: number;
|
|
360
354
|
}): Promise<T>;
|
|
361
355
|
validate(): Promise<boolean>;
|
|
362
|
-
handleError(error:
|
|
356
|
+
handleError(error: unknown): Error;
|
|
363
357
|
healthCheck(): Promise<{
|
|
364
358
|
status: string;
|
|
365
359
|
users?: number;
|
|
@@ -376,13 +370,12 @@ export declare function composeOxyServices(): {
|
|
|
376
370
|
getUserKarmaHistory(userId: string, limit?: number, offset?: number): Promise<any>;
|
|
377
371
|
getKarmaLeaderboard(): Promise<any>;
|
|
378
372
|
getKarmaRules(): Promise<any>;
|
|
379
|
-
|
|
380
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
373
|
+
httpService: import("../HttpService").HttpService;
|
|
381
374
|
cloudURL: string;
|
|
382
375
|
config: import("../OxyServices.base").OxyConfig;
|
|
383
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
376
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
384
377
|
getBaseURL(): string;
|
|
385
|
-
getClient(): import("../
|
|
378
|
+
getClient(): import("../HttpService").HttpService;
|
|
386
379
|
getMetrics(): {
|
|
387
380
|
totalRequests: number;
|
|
388
381
|
successfulRequests: number;
|
|
@@ -412,7 +405,7 @@ export declare function composeOxyServices(): {
|
|
|
412
405
|
authTimeoutMs?: number;
|
|
413
406
|
}): Promise<T>;
|
|
414
407
|
validate(): Promise<boolean>;
|
|
415
|
-
handleError(error:
|
|
408
|
+
handleError(error: unknown): Error;
|
|
416
409
|
healthCheck(): Promise<{
|
|
417
410
|
status: string;
|
|
418
411
|
users?: number;
|
|
@@ -426,13 +419,12 @@ export declare function composeOxyServices(): {
|
|
|
426
419
|
createPayment(data: any): Promise<any>;
|
|
427
420
|
getPayment(paymentId: string): Promise<any>;
|
|
428
421
|
getUserPayments(): Promise<any[]>;
|
|
429
|
-
|
|
430
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
422
|
+
httpService: import("../HttpService").HttpService;
|
|
431
423
|
cloudURL: string;
|
|
432
424
|
config: import("../OxyServices.base").OxyConfig;
|
|
433
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
425
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
434
426
|
getBaseURL(): string;
|
|
435
|
-
getClient(): import("../
|
|
427
|
+
getClient(): import("../HttpService").HttpService;
|
|
436
428
|
getMetrics(): {
|
|
437
429
|
totalRequests: number;
|
|
438
430
|
successfulRequests: number;
|
|
@@ -462,7 +454,7 @@ export declare function composeOxyServices(): {
|
|
|
462
454
|
authTimeoutMs?: number;
|
|
463
455
|
}): Promise<T>;
|
|
464
456
|
validate(): Promise<boolean>;
|
|
465
|
-
handleError(error:
|
|
457
|
+
handleError(error: unknown): Error;
|
|
466
458
|
healthCheck(): Promise<{
|
|
467
459
|
status: string;
|
|
468
460
|
users?: number;
|
|
@@ -482,13 +474,12 @@ export declare function composeOxyServices(): {
|
|
|
482
474
|
getCurrentLanguageMetadata(storageKeyPrefix?: string): Promise<import("..").LanguageMetadata | null>;
|
|
483
475
|
getCurrentLanguageName(storageKeyPrefix?: string): Promise<string | null>;
|
|
484
476
|
getCurrentNativeLanguageName(storageKeyPrefix?: string): Promise<string | null>;
|
|
485
|
-
|
|
486
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
477
|
+
httpService: import("../HttpService").HttpService;
|
|
487
478
|
cloudURL: string;
|
|
488
479
|
config: import("../OxyServices.base").OxyConfig;
|
|
489
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
480
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
490
481
|
getBaseURL(): string;
|
|
491
|
-
getClient(): import("../
|
|
482
|
+
getClient(): import("../HttpService").HttpService;
|
|
492
483
|
getMetrics(): {
|
|
493
484
|
totalRequests: number;
|
|
494
485
|
successfulRequests: number;
|
|
@@ -518,7 +509,7 @@ export declare function composeOxyServices(): {
|
|
|
518
509
|
authTimeoutMs?: number;
|
|
519
510
|
}): Promise<T>;
|
|
520
511
|
validate(): Promise<boolean>;
|
|
521
|
-
handleError(error:
|
|
512
|
+
handleError(error: unknown): Error;
|
|
522
513
|
healthCheck(): Promise<{
|
|
523
514
|
status: string;
|
|
524
515
|
users?: number;
|
|
@@ -555,13 +546,12 @@ export declare function composeOxyServices(): {
|
|
|
555
546
|
message: string;
|
|
556
547
|
}>;
|
|
557
548
|
isUserRestricted(userId: string): Promise<boolean>;
|
|
558
|
-
|
|
559
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
549
|
+
httpService: import("../HttpService").HttpService;
|
|
560
550
|
cloudURL: string;
|
|
561
551
|
config: import("../OxyServices.base").OxyConfig;
|
|
562
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
552
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
563
553
|
getBaseURL(): string;
|
|
564
|
-
getClient(): import("../
|
|
554
|
+
getClient(): import("../HttpService").HttpService;
|
|
565
555
|
getMetrics(): {
|
|
566
556
|
totalRequests: number;
|
|
567
557
|
successfulRequests: number;
|
|
@@ -591,7 +581,7 @@ export declare function composeOxyServices(): {
|
|
|
591
581
|
authTimeoutMs?: number;
|
|
592
582
|
}): Promise<T>;
|
|
593
583
|
validate(): Promise<boolean>;
|
|
594
|
-
handleError(error:
|
|
584
|
+
handleError(error: unknown): Error;
|
|
595
585
|
healthCheck(): Promise<{
|
|
596
586
|
status: string;
|
|
597
587
|
users?: number;
|
|
@@ -616,13 +606,12 @@ export declare function composeOxyServices(): {
|
|
|
616
606
|
disableTotp(sessionId: string, code: string): Promise<{
|
|
617
607
|
disabled: boolean;
|
|
618
608
|
}>;
|
|
619
|
-
|
|
620
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
609
|
+
httpService: import("../HttpService").HttpService;
|
|
621
610
|
cloudURL: string;
|
|
622
611
|
config: import("../OxyServices.base").OxyConfig;
|
|
623
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
612
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
624
613
|
getBaseURL(): string;
|
|
625
|
-
getClient(): import("../
|
|
614
|
+
getClient(): import("../HttpService").HttpService;
|
|
626
615
|
getMetrics(): {
|
|
627
616
|
totalRequests: number;
|
|
628
617
|
successfulRequests: number;
|
|
@@ -652,7 +641,7 @@ export declare function composeOxyServices(): {
|
|
|
652
641
|
authTimeoutMs?: number;
|
|
653
642
|
}): Promise<T>;
|
|
654
643
|
validate(): Promise<boolean>;
|
|
655
|
-
handleError(error:
|
|
644
|
+
handleError(error: unknown): Error;
|
|
656
645
|
healthCheck(): Promise<{
|
|
657
646
|
status: string;
|
|
658
647
|
users?: number;
|
|
@@ -721,13 +710,12 @@ export declare function composeOxyServices(): {
|
|
|
721
710
|
markNotificationAsRead(notificationId: string): Promise<void>;
|
|
722
711
|
markAllNotificationsAsRead(): Promise<void>;
|
|
723
712
|
deleteNotification(notificationId: string): Promise<void>;
|
|
724
|
-
|
|
725
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
713
|
+
httpService: import("../HttpService").HttpService;
|
|
726
714
|
cloudURL: string;
|
|
727
715
|
config: import("../OxyServices.base").OxyConfig;
|
|
728
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
716
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
729
717
|
getBaseURL(): string;
|
|
730
|
-
getClient(): import("../
|
|
718
|
+
getClient(): import("../HttpService").HttpService;
|
|
731
719
|
getMetrics(): {
|
|
732
720
|
totalRequests: number;
|
|
733
721
|
successfulRequests: number;
|
|
@@ -757,7 +745,7 @@ export declare function composeOxyServices(): {
|
|
|
757
745
|
authTimeoutMs?: number;
|
|
758
746
|
}): Promise<T>;
|
|
759
747
|
validate(): Promise<boolean>;
|
|
760
|
-
handleError(error:
|
|
748
|
+
handleError(error: unknown): Error;
|
|
761
749
|
healthCheck(): Promise<{
|
|
762
750
|
status: string;
|
|
763
751
|
users?: number;
|
|
@@ -830,13 +818,12 @@ export declare function composeOxyServices(): {
|
|
|
830
818
|
available: boolean;
|
|
831
819
|
message: string;
|
|
832
820
|
}>;
|
|
833
|
-
|
|
834
|
-
requestManager: import("../RequestManager").RequestManager;
|
|
821
|
+
httpService: import("../HttpService").HttpService;
|
|
835
822
|
cloudURL: string;
|
|
836
823
|
config: import("../OxyServices.base").OxyConfig;
|
|
837
|
-
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../
|
|
824
|
+
makeRequest<T>(method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE", url: string, data?: any, options?: import("../HttpService").RequestOptions): Promise<T>;
|
|
838
825
|
getBaseURL(): string;
|
|
839
|
-
getClient(): import("../
|
|
826
|
+
getClient(): import("../HttpService").HttpService;
|
|
840
827
|
getMetrics(): {
|
|
841
828
|
totalRequests: number;
|
|
842
829
|
successfulRequests: number;
|
|
@@ -866,7 +853,7 @@ export declare function composeOxyServices(): {
|
|
|
866
853
|
authTimeoutMs?: number;
|
|
867
854
|
}): Promise<T>;
|
|
868
855
|
validate(): Promise<boolean>;
|
|
869
|
-
handleError(error:
|
|
856
|
+
handleError(error: unknown): Error;
|
|
870
857
|
healthCheck(): Promise<{
|
|
871
858
|
status: string;
|
|
872
859
|
users?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;aA4Bwe,QAAQ,EAAC,QAAS,EAAC,SAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAetD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB;;;;;;;;;;;;;aA4Bwe,QAAQ,EAAC,QAAS,EAAC,SAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAkyG,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAn/F,CAAC;sBAA0B,CAAC;yBAA6B,CAAC;;;;;;iBAA+5F,CAAC;qBAAwB,CAAC;;;;;2BAF3zN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/errorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"errorUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/errorUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CA0Bb,CAAC;AAEX;;GAEG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,IAAI,GAAE,MAAkC,EACxC,MAAM,SAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,QAAQ,CAOV;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAqFxD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAqB7D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAU5F;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAa/D;AAED;;;;GAIG;AACH,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxyhq/services",
|
|
3
|
-
"version": "5.13.
|
|
3
|
+
"version": "5.13.26",
|
|
4
4
|
"description": "Reusable OxyHQ module to handle authentication, user management, karma system, device-based session management and more 🚀",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|