@thomas-labs/scrape-service-lib 1.1.18 → 1.1.19
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/AppClient.js +1 -1
- package/dist/core/OpenAPI.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/models/UpdateUserProfileDto.d.ts +6 -0
- package/dist/models/UpdateUserProfileDto.js +2 -0
- package/dist/services/StatsService.d.ts +23 -0
- package/dist/services/StatsService.js +52 -0
- package/dist/services/UserService.d.ts +7 -0
- package/dist/services/UserService.js +13 -0
- package/package.json +1 -1
package/dist/AppClient.js
CHANGED
|
@@ -19,7 +19,7 @@ class AppClient {
|
|
|
19
19
|
constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
|
|
20
20
|
this.request = new HttpRequest({
|
|
21
21
|
BASE: config?.BASE ?? '/api',
|
|
22
|
-
VERSION: config?.VERSION ?? '1.0.
|
|
22
|
+
VERSION: config?.VERSION ?? '1.0.20',
|
|
23
23
|
WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
|
|
24
24
|
CREDENTIALS: config?.CREDENTIALS ?? 'include',
|
|
25
25
|
TOKEN: config?.TOKEN,
|
package/dist/core/OpenAPI.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export type { UpdateCollectionDto } from './models/UpdateCollectionDto';
|
|
|
54
54
|
export type { UpdateReportStatusDto } from './models/UpdateReportStatusDto';
|
|
55
55
|
export type { UpdateTaskRequestStatusDto } from './models/UpdateTaskRequestStatusDto';
|
|
56
56
|
export type { UpdateTelegramBotConfigDto } from './models/UpdateTelegramBotConfigDto';
|
|
57
|
+
export type { UpdateUserProfileDto } from './models/UpdateUserProfileDto';
|
|
57
58
|
export type { UpsertAiKeyDto } from './models/UpsertAiKeyDto';
|
|
58
59
|
export type { UpsertTelegramBotConfigDto } from './models/UpsertTelegramBotConfigDto';
|
|
59
60
|
export { AiService } from './services/AiService';
|
|
@@ -74,4 +74,27 @@ export declare class StatsService {
|
|
|
74
74
|
* @throws ApiError
|
|
75
75
|
*/
|
|
76
76
|
terms(year?: number, month?: number, date?: string): CancelablePromise<any>;
|
|
77
|
+
/**
|
|
78
|
+
* @param year
|
|
79
|
+
* @returns any Ok
|
|
80
|
+
* @throws ApiError
|
|
81
|
+
*/
|
|
82
|
+
adminUserGrowth(year?: number): CancelablePromise<any>;
|
|
83
|
+
/**
|
|
84
|
+
* @returns any Ok
|
|
85
|
+
* @throws ApiError
|
|
86
|
+
*/
|
|
87
|
+
adminActiveUsers(): CancelablePromise<any>;
|
|
88
|
+
/**
|
|
89
|
+
* @param days
|
|
90
|
+
* @returns any Ok
|
|
91
|
+
* @throws ApiError
|
|
92
|
+
*/
|
|
93
|
+
adminActivationFunnel(days?: number): CancelablePromise<any>;
|
|
94
|
+
/**
|
|
95
|
+
* @param days
|
|
96
|
+
* @returns any Ok
|
|
97
|
+
* @throws ApiError
|
|
98
|
+
*/
|
|
99
|
+
adminReportTicketsDaily(days?: number): CancelablePromise<any>;
|
|
77
100
|
}
|
|
@@ -141,5 +141,57 @@ class StatsService {
|
|
|
141
141
|
},
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* @param year
|
|
146
|
+
* @returns any Ok
|
|
147
|
+
* @throws ApiError
|
|
148
|
+
*/
|
|
149
|
+
adminUserGrowth(year) {
|
|
150
|
+
return this.httpRequest.request({
|
|
151
|
+
method: 'GET',
|
|
152
|
+
url: '/stats/admin/user-growth',
|
|
153
|
+
query: {
|
|
154
|
+
'year': year,
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* @returns any Ok
|
|
160
|
+
* @throws ApiError
|
|
161
|
+
*/
|
|
162
|
+
adminActiveUsers() {
|
|
163
|
+
return this.httpRequest.request({
|
|
164
|
+
method: 'GET',
|
|
165
|
+
url: '/stats/admin/active-users',
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @param days
|
|
170
|
+
* @returns any Ok
|
|
171
|
+
* @throws ApiError
|
|
172
|
+
*/
|
|
173
|
+
adminActivationFunnel(days) {
|
|
174
|
+
return this.httpRequest.request({
|
|
175
|
+
method: 'GET',
|
|
176
|
+
url: '/stats/admin/activation-funnel',
|
|
177
|
+
query: {
|
|
178
|
+
'days': days,
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* @param days
|
|
184
|
+
* @returns any Ok
|
|
185
|
+
* @throws ApiError
|
|
186
|
+
*/
|
|
187
|
+
adminReportTicketsDaily(days) {
|
|
188
|
+
return this.httpRequest.request({
|
|
189
|
+
method: 'GET',
|
|
190
|
+
url: '/stats/admin/report-tickets-daily',
|
|
191
|
+
query: {
|
|
192
|
+
'days': days,
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
}
|
|
144
196
|
}
|
|
145
197
|
exports.StatsService = StatsService;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { UpdateUserProfileDto } from '../models/UpdateUserProfileDto';
|
|
1
2
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
2
3
|
import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
3
4
|
export declare class UserService {
|
|
@@ -8,4 +9,10 @@ export declare class UserService {
|
|
|
8
9
|
* @throws ApiError
|
|
9
10
|
*/
|
|
10
11
|
getMe(): CancelablePromise<any>;
|
|
12
|
+
/**
|
|
13
|
+
* @param requestBody
|
|
14
|
+
* @returns any Ok
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
updateMe(requestBody: UpdateUserProfileDto): CancelablePromise<any>;
|
|
11
18
|
}
|
|
@@ -15,5 +15,18 @@ class UserService {
|
|
|
15
15
|
url: '/user/profile',
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* @param requestBody
|
|
20
|
+
* @returns any Ok
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
updateMe(requestBody) {
|
|
24
|
+
return this.httpRequest.request({
|
|
25
|
+
method: 'PATCH',
|
|
26
|
+
url: '/user/profile',
|
|
27
|
+
body: requestBody,
|
|
28
|
+
mediaType: 'application/json',
|
|
29
|
+
});
|
|
30
|
+
}
|
|
18
31
|
}
|
|
19
32
|
exports.UserService = UserService;
|