@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 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.19',
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,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.0.19',
6
+ VERSION: '1.0.20',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
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';
@@ -0,0 +1,6 @@
1
+ export type UpdateUserProfileDto = {
2
+ name?: string;
3
+ phone?: string;
4
+ country?: string;
5
+ avatar?: string;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",