@digiteers/uloba3-sdk 1.3.13 → 1.3.14
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/dist/api/errors.d.ts +3 -3
- package/dist/api/errors.js +7 -7
- package/dist/api/errors.js.map +1 -1
- package/dist/api/system.d.ts +3 -3
- package/dist/api/system.js +7 -7
- package/dist/api/system.js.map +1 -1
- package/package.json +1 -1
package/dist/api/errors.d.ts
CHANGED
|
@@ -66,7 +66,7 @@ export declare class ErrorsApi {
|
|
|
66
66
|
}>;
|
|
67
67
|
/**
|
|
68
68
|
* Get recent errors (admin/support only)
|
|
69
|
-
* GET /errors
|
|
69
|
+
* GET /api/errors
|
|
70
70
|
*/
|
|
71
71
|
getErrors(params?: {
|
|
72
72
|
limit?: number;
|
|
@@ -86,7 +86,7 @@ export declare class ErrorsApi {
|
|
|
86
86
|
}>;
|
|
87
87
|
/**
|
|
88
88
|
* Get error statistics (admin/support only)
|
|
89
|
-
* GET /errors/stats
|
|
89
|
+
* GET /api/errors/stats
|
|
90
90
|
*/
|
|
91
91
|
getErrorStats(hours?: number): Promise<{
|
|
92
92
|
data: ErrorStats;
|
|
@@ -97,7 +97,7 @@ export declare class ErrorsApi {
|
|
|
97
97
|
}>;
|
|
98
98
|
/**
|
|
99
99
|
* Resolve an error (admin/support only)
|
|
100
|
-
* PATCH /errors/:id/resolve
|
|
100
|
+
* PATCH /api/errors/:id/resolve
|
|
101
101
|
*/
|
|
102
102
|
resolveError(errorId: string, resolutionNotes?: string): Promise<{
|
|
103
103
|
data: {
|
package/dist/api/errors.js
CHANGED
|
@@ -14,33 +14,33 @@ class ErrorsApi {
|
|
|
14
14
|
* POST /errors
|
|
15
15
|
*/
|
|
16
16
|
async logError(error) {
|
|
17
|
-
const response = await this.axios.post('/errors', error);
|
|
17
|
+
const response = await this.axios.post('/api/errors', error);
|
|
18
18
|
return response.data;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Get recent errors (admin/support only)
|
|
22
|
-
* GET /errors
|
|
22
|
+
* GET /api/errors
|
|
23
23
|
*/
|
|
24
24
|
async getErrors(params) {
|
|
25
|
-
const response = await this.axios.get('/errors', { params });
|
|
25
|
+
const response = await this.axios.get('/api/errors', { params });
|
|
26
26
|
return response.data;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
29
|
* Get error statistics (admin/support only)
|
|
30
|
-
* GET /errors/stats
|
|
30
|
+
* GET /api/errors/stats
|
|
31
31
|
*/
|
|
32
32
|
async getErrorStats(hours = 24) {
|
|
33
|
-
const response = await this.axios.get('/errors/stats', {
|
|
33
|
+
const response = await this.axios.get('/api/errors/stats', {
|
|
34
34
|
params: { hours },
|
|
35
35
|
});
|
|
36
36
|
return response.data;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Resolve an error (admin/support only)
|
|
40
|
-
* PATCH /errors/:id/resolve
|
|
40
|
+
* PATCH /api/errors/:id/resolve
|
|
41
41
|
*/
|
|
42
42
|
async resolveError(errorId, resolutionNotes) {
|
|
43
|
-
const response = await this.axios.patch(`/errors/${errorId}/resolve`, {
|
|
43
|
+
const response = await this.axios.patch(`/api/errors/${errorId}/resolve`, {
|
|
44
44
|
resolutionNotes,
|
|
45
45
|
});
|
|
46
46
|
return response.data;
|
package/dist/api/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":";;;AAkDA;;GAEG;AACH,MAAa,SAAS;IACA;IAApB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,KAAsB;QAUnC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":";;;AAk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M,EAAE,OAAO,CAAC,MAAM,IAAI,QAAQ;YAClC,GAAG,OAAO;SACX,CAAC;IACJ,CAAC;CACF;AAtGD,8BAsGC"}
|
package/dist/api/system.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ export declare class SystemApi {
|
|
|
55
55
|
}>;
|
|
56
56
|
/**
|
|
57
57
|
* Get system health overview
|
|
58
|
-
* GET /system/health
|
|
58
|
+
* GET /api/system/health
|
|
59
59
|
*/
|
|
60
60
|
getHealth(hours?: number): Promise<{
|
|
61
61
|
data: SystemHealthMetrics;
|
|
@@ -66,7 +66,7 @@ export declare class SystemApi {
|
|
|
66
66
|
}>;
|
|
67
67
|
/**
|
|
68
68
|
* Get rate limit statistics
|
|
69
|
-
* GET /system/rate-limits
|
|
69
|
+
* GET /api/system/rate-limits
|
|
70
70
|
*/
|
|
71
71
|
getRateLimitStats(hours?: number): Promise<{
|
|
72
72
|
data: RateLimitStats;
|
|
@@ -77,7 +77,7 @@ export declare class SystemApi {
|
|
|
77
77
|
}>;
|
|
78
78
|
/**
|
|
79
79
|
* Manually refresh system metrics (admin only)
|
|
80
|
-
* POST /system/metrics/refresh
|
|
80
|
+
* POST /api/system/metrics/refresh
|
|
81
81
|
*/
|
|
82
82
|
refreshMetrics(): Promise<{
|
|
83
83
|
data: {
|
package/dist/api/system.js
CHANGED
|
@@ -14,37 +14,37 @@ class SystemApi {
|
|
|
14
14
|
* GET /system/metrics
|
|
15
15
|
*/
|
|
16
16
|
async getMetrics(hours = 24) {
|
|
17
|
-
const response = await this.axios.get('/system/metrics', {
|
|
17
|
+
const response = await this.axios.get('/api/system/metrics', {
|
|
18
18
|
params: { hours },
|
|
19
19
|
});
|
|
20
20
|
return response.data;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Get system health overview
|
|
24
|
-
* GET /system/health
|
|
24
|
+
* GET /api/system/health
|
|
25
25
|
*/
|
|
26
26
|
async getHealth(hours = 24) {
|
|
27
|
-
const response = await this.axios.get('/system/health', {
|
|
27
|
+
const response = await this.axios.get('/api/system/health', {
|
|
28
28
|
params: { hours },
|
|
29
29
|
});
|
|
30
30
|
return response.data;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Get rate limit statistics
|
|
34
|
-
* GET /system/rate-limits
|
|
34
|
+
* GET /api/system/rate-limits
|
|
35
35
|
*/
|
|
36
36
|
async getRateLimitStats(hours = 24) {
|
|
37
|
-
const response = await this.axios.get('/system/rate-limits', {
|
|
37
|
+
const response = await this.axios.get('/api/system/rate-limits', {
|
|
38
38
|
params: { hours },
|
|
39
39
|
});
|
|
40
40
|
return response.data;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Manually refresh system metrics (admin only)
|
|
44
|
-
* POST /system/metrics/refresh
|
|
44
|
+
* POST /api/system/metrics/refresh
|
|
45
45
|
*/
|
|
46
46
|
async refreshMetrics() {
|
|
47
|
-
const response = await this.axios.post('/system/metrics/refresh');
|
|
47
|
+
const response = await this.axios.post('/api/system/metrics/refresh');
|
|
48
48
|
return response.data;
|
|
49
49
|
}
|
|
50
50
|
}
|
package/dist/api/system.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/api/system.ts"],"names":[],"mappings":";;;AA0CA;;GAEG;AACH,MAAa,SAAS;IACA;IAApB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,QAAgB,EAAE;QAOjC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../src/api/system.ts"],"names":[],"mappings":";;;AA0CA;;GAEG;AACH,MAAa,SAAS;IACA;IAApB,YAAoB,KAAoB;QAApB,UAAK,GAAL,KAAK,CAAe;IAAG,CAAC;IAE5C;;;OAGG;IACH,KAAK,CAAC,UA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