vms-nest-api-document 49.0.0 → 51.0.0
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/services/account/analytics/admin_login_analytics_service.d.ts +12 -27
- package/dist/services/account/analytics/admin_login_analytics_service.js +4 -19
- package/dist/services/account/analytics/driver_login_analytics_service.d.ts +19 -40
- package/dist/services/account/analytics/driver_login_analytics_service.js +4 -21
- package/dist/services/account/analytics/parent_login_analytics_service.d.ts +19 -40
- package/dist/services/account/analytics/parent_login_analytics_service.js +4 -21
- package/dist/services/account/analytics/student_login_analytics_service.d.ts +19 -40
- package/dist/services/account/analytics/student_login_analytics_service.js +4 -21
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +13 -31
- package/dist/services/account/analytics/user_login_analytics_service.js +4 -20
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +189 -10
- package/dist/services/account/analytics/user_page_analytics_service.js +20 -1
- package/dist/services/account/analytics/user_report_analytics_service.d.ts +189 -10
- package/dist/services/account/analytics/user_report_analytics_service.js +20 -1
- package/dist/services/account/user_bookmark_service.d.ts +1 -1
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.d.ts +25 -11
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.d.ts +14 -0
- package/dist/services/main/device/master_data_check_service.d.ts +3 -3
- package/dist/services/main/device/master_device_service.d.ts +4 -4
- package/dist/services/main/device/master_traccar_server_service.d.ts +4 -4
- package/dist/services/master/bookmark/master_bookmark_module_service.d.ts +1 -1
- package/dist/services/master/bookmark/master_bookmark_module_service.js +21 -1
- package/dist/services/master/bookmark/master_bookmark_page_service.d.ts +26 -1
- package/dist/services/master/bookmark/master_bookmark_page_service.js +29 -1
- package/dist/services/master/bookmark/master_bookmark_sub_module_service.d.ts +1 -1
- package/dist/services/master/bookmark/master_bookmark_sub_module_service.js +29 -1
- package/dist/services/website/contact_us_detail_service.d.ts +3 -3
- package/dist/services/website/request_demo.service.d.ts +12 -12
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginFrom, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
|
-
import {
|
|
2
|
+
import { FBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
interface StudentLoginAnalytics {
|
|
@@ -29,26 +29,6 @@ interface StudentLoginAnalyticsDailyLoginReportReturn {
|
|
|
29
29
|
date: string;
|
|
30
30
|
login_count: number;
|
|
31
31
|
}
|
|
32
|
-
declare const StudentLoginAnalyticsSchema: z.ZodObject<{
|
|
33
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
34
|
-
organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
|
|
35
|
-
student_id: z.ZodEffects<z.ZodString, string, string>;
|
|
36
|
-
platform: z.ZodType<LoginFrom, z.ZodTypeDef, LoginFrom>;
|
|
37
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
organisation_id: string;
|
|
40
|
-
organisation_branch_id: string;
|
|
41
|
-
status: Status;
|
|
42
|
-
platform: LoginFrom;
|
|
43
|
-
student_id: string;
|
|
44
|
-
}, {
|
|
45
|
-
organisation_id: string;
|
|
46
|
-
organisation_branch_id: string;
|
|
47
|
-
status: Status;
|
|
48
|
-
platform: LoginFrom;
|
|
49
|
-
student_id: string;
|
|
50
|
-
}>;
|
|
51
|
-
type StudentLoginAnalyticsDTO = z.infer<typeof StudentLoginAnalyticsSchema>;
|
|
52
32
|
declare const StudentLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
53
33
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
54
34
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
@@ -88,9 +68,8 @@ declare const StudentLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
88
68
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
89
69
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
90
70
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
status: Status[];
|
|
92
|
-
platform: LoginFrom[];
|
|
93
71
|
search: string;
|
|
72
|
+
status: Status[];
|
|
94
73
|
paging: PAGING;
|
|
95
74
|
page_count: number;
|
|
96
75
|
page_index: number;
|
|
@@ -110,10 +89,11 @@ declare const StudentLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
110
89
|
include_master_data: YesNo;
|
|
111
90
|
date_format_id: string;
|
|
112
91
|
time_zone_id: string;
|
|
113
|
-
|
|
114
|
-
organisation_branch_ids: string[];
|
|
92
|
+
platform: LoginFrom[];
|
|
115
93
|
from_date: string;
|
|
116
94
|
to_date: string;
|
|
95
|
+
organisation_ids: string[];
|
|
96
|
+
organisation_branch_ids: string[];
|
|
117
97
|
student_login_analytics_ids: string[];
|
|
118
98
|
student_ids: string[];
|
|
119
99
|
}, {
|
|
@@ -121,9 +101,8 @@ declare const StudentLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
121
101
|
time_zone_id: string;
|
|
122
102
|
from_date: string;
|
|
123
103
|
to_date: string;
|
|
124
|
-
status?: Status[] | undefined;
|
|
125
|
-
platform?: LoginFrom[] | undefined;
|
|
126
104
|
search?: string | undefined;
|
|
105
|
+
status?: Status[] | undefined;
|
|
127
106
|
paging?: PAGING | undefined;
|
|
128
107
|
page_count?: unknown;
|
|
129
108
|
page_index?: unknown;
|
|
@@ -141,6 +120,7 @@ declare const StudentLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
141
120
|
direction: OrderBy;
|
|
142
121
|
}[] | undefined;
|
|
143
122
|
include_master_data?: YesNo | undefined;
|
|
123
|
+
platform?: LoginFrom[] | undefined;
|
|
144
124
|
organisation_ids?: string[] | undefined;
|
|
145
125
|
organisation_branch_ids?: string[] | undefined;
|
|
146
126
|
student_login_analytics_ids?: string[] | undefined;
|
|
@@ -182,11 +162,9 @@ declare const StudentLoginAnalyticsLoginCountReportSchema: z.ZodObject<{
|
|
|
182
162
|
organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
|
|
183
163
|
date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
184
164
|
}, "strip", z.ZodTypeAny, {
|
|
185
|
-
|
|
186
|
-
organisation_branch_id: string;
|
|
165
|
+
search: string;
|
|
187
166
|
status: Status[];
|
|
188
167
|
date: string;
|
|
189
|
-
search: string;
|
|
190
168
|
paging: PAGING;
|
|
191
169
|
page_count: number;
|
|
192
170
|
page_index: number;
|
|
@@ -206,14 +184,16 @@ declare const StudentLoginAnalyticsLoginCountReportSchema: z.ZodObject<{
|
|
|
206
184
|
include_master_data: YesNo;
|
|
207
185
|
date_format_id: string;
|
|
208
186
|
time_zone_id: string;
|
|
209
|
-
}, {
|
|
210
187
|
organisation_id: string;
|
|
211
188
|
organisation_branch_id: string;
|
|
189
|
+
}, {
|
|
212
190
|
date: string;
|
|
213
191
|
date_format_id: string;
|
|
214
192
|
time_zone_id: string;
|
|
215
|
-
|
|
193
|
+
organisation_id: string;
|
|
194
|
+
organisation_branch_id: string;
|
|
216
195
|
search?: string | undefined;
|
|
196
|
+
status?: Status[] | undefined;
|
|
217
197
|
paging?: PAGING | undefined;
|
|
218
198
|
page_count?: unknown;
|
|
219
199
|
page_index?: unknown;
|
|
@@ -270,10 +250,8 @@ declare const StudentLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
270
250
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
271
251
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
272
252
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
organisation_id: string;
|
|
274
|
-
organisation_branch_id: string;
|
|
275
|
-
status: Status[];
|
|
276
253
|
search: string;
|
|
254
|
+
status: Status[];
|
|
277
255
|
paging: PAGING;
|
|
278
256
|
page_count: number;
|
|
279
257
|
page_index: number;
|
|
@@ -295,17 +273,19 @@ declare const StudentLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
295
273
|
time_zone_id: string;
|
|
296
274
|
from_date: string;
|
|
297
275
|
to_date: string;
|
|
298
|
-
student_id: string;
|
|
299
|
-
}, {
|
|
300
276
|
organisation_id: string;
|
|
301
277
|
organisation_branch_id: string;
|
|
278
|
+
student_id: string;
|
|
279
|
+
}, {
|
|
302
280
|
date_format_id: string;
|
|
303
281
|
time_zone_id: string;
|
|
304
282
|
from_date: string;
|
|
305
283
|
to_date: string;
|
|
284
|
+
organisation_id: string;
|
|
285
|
+
organisation_branch_id: string;
|
|
306
286
|
student_id: string;
|
|
307
|
-
status?: Status[] | undefined;
|
|
308
287
|
search?: string | undefined;
|
|
288
|
+
status?: Status[] | undefined;
|
|
309
289
|
paging?: PAGING | undefined;
|
|
310
290
|
page_count?: unknown;
|
|
311
291
|
page_index?: unknown;
|
|
@@ -326,8 +306,7 @@ declare const StudentLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
326
306
|
}>;
|
|
327
307
|
type StudentLoginAnalyticsDailyLoginReportDTO = z.infer<typeof StudentLoginAnalyticsDailyLoginReportSchema>;
|
|
328
308
|
declare const findStudentLoginAnalytics: (payload: StudentLoginAnalyticsQueryDTO) => Promise<FBR<StudentLoginAnalytics[]>>;
|
|
329
|
-
declare const createStudentLoginAnalytics: (payload: StudentLoginAnalyticsDTO) => Promise<SBR>;
|
|
330
309
|
declare const getStudentLoginAnalyticsLoginCountReport: (payload: StudentLoginAnalyticsLoginCountReportDTO) => Promise<FBR<StudentLoginAnalyticsLoginCountReportReturn[]>>;
|
|
331
310
|
declare const getStudentLoginAnalyticsDailyLoginReport: (payload: StudentLoginAnalyticsDailyLoginReportDTO) => Promise<FBR<StudentLoginAnalyticsDailyLoginReportReturn[]>>;
|
|
332
311
|
|
|
333
|
-
export { type StudentLoginAnalytics, type
|
|
312
|
+
export { type StudentLoginAnalytics, type StudentLoginAnalyticsDailyLoginReportDTO, type StudentLoginAnalyticsDailyLoginReportReturn, StudentLoginAnalyticsDailyLoginReportSchema, type StudentLoginAnalyticsLoginCountReportDTO, type StudentLoginAnalyticsLoginCountReportReturn, StudentLoginAnalyticsLoginCountReportSchema, type StudentLoginAnalyticsQueryDTO, StudentLoginAnalyticsQuerySchema, findStudentLoginAnalytics, getStudentLoginAnalyticsDailyLoginReport, getStudentLoginAnalyticsLoginCountReport };
|
|
@@ -14,9 +14,6 @@ var apiPost = async (url, data) => {
|
|
|
14
14
|
return response.data;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
// src/services/account/analytics/student_login_analytics_service.ts
|
|
18
|
-
import { z as z3 } from "zod";
|
|
19
|
-
|
|
20
17
|
// src/zod_utils/zod_utils.ts
|
|
21
18
|
import { z } from "zod";
|
|
22
19
|
|
|
@@ -175,10 +172,10 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
|
175
172
|
LoginFrom2["iOSPWA"] = "iOSPWA";
|
|
176
173
|
return LoginFrom2;
|
|
177
174
|
})(LoginFrom || {});
|
|
178
|
-
var Status = /* @__PURE__ */ ((
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return
|
|
175
|
+
var Status = /* @__PURE__ */ ((Status3) => {
|
|
176
|
+
Status3["Active"] = "Active";
|
|
177
|
+
Status3["Inactive"] = "Inactive";
|
|
178
|
+
return Status3;
|
|
182
179
|
})(Status || {});
|
|
183
180
|
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
184
181
|
FileType2["NoFile"] = "NoFile";
|
|
@@ -257,21 +254,10 @@ var URL = "analytics/student_login_analytics";
|
|
|
257
254
|
var ENDPOINTS = {
|
|
258
255
|
// StudentLoginAnalytics APIs
|
|
259
256
|
find: `${URL}/search`,
|
|
260
|
-
create: URL,
|
|
261
257
|
// StudentLoginAnalytics Report APIs
|
|
262
258
|
report_login_count: `${URL}/report_login_count`,
|
|
263
259
|
report_daily_login: `${URL}/report_daily_login`
|
|
264
260
|
};
|
|
265
|
-
var StudentLoginAnalyticsSchema = z3.object({
|
|
266
|
-
// Relations - Parent
|
|
267
|
-
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
268
|
-
organisation_branch_id: single_select_optional("OrganisationBranch"),
|
|
269
|
-
student_id: single_select_mandatory("Student"),
|
|
270
|
-
// Main Field Details
|
|
271
|
-
platform: enumMandatory("Platform", LoginFrom, "Web" /* Web */),
|
|
272
|
-
// Metadata
|
|
273
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
274
|
-
});
|
|
275
261
|
var StudentLoginAnalyticsQuerySchema = BaseQuerySchema.extend({
|
|
276
262
|
// Self Table
|
|
277
263
|
student_login_analytics_ids: multi_select_optional("StudentLoginAnalytics"),
|
|
@@ -302,15 +288,12 @@ var StudentLoginAnalyticsDailyLoginReportSchema = BaseQuerySchema.extend({
|
|
|
302
288
|
to_date: dateMandatory("To Date")
|
|
303
289
|
});
|
|
304
290
|
var findStudentLoginAnalytics = (payload) => apiPost(ENDPOINTS.find, payload);
|
|
305
|
-
var createStudentLoginAnalytics = (payload) => apiPost(ENDPOINTS.create, payload);
|
|
306
291
|
var getStudentLoginAnalyticsLoginCountReport = (payload) => apiPost(ENDPOINTS.report_login_count, payload);
|
|
307
292
|
var getStudentLoginAnalyticsDailyLoginReport = (payload) => apiPost(ENDPOINTS.report_daily_login, payload);
|
|
308
293
|
export {
|
|
309
294
|
StudentLoginAnalyticsDailyLoginReportSchema,
|
|
310
295
|
StudentLoginAnalyticsLoginCountReportSchema,
|
|
311
296
|
StudentLoginAnalyticsQuerySchema,
|
|
312
|
-
StudentLoginAnalyticsSchema,
|
|
313
|
-
createStudentLoginAnalytics,
|
|
314
297
|
findStudentLoginAnalytics,
|
|
315
298
|
getStudentLoginAnalyticsDailyLoginReport,
|
|
316
299
|
getStudentLoginAnalyticsLoginCountReport
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoginFrom, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
|
-
import {
|
|
2
|
+
import { FBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
interface UserLoginAnalytics {
|
|
@@ -27,23 +27,6 @@ interface UserLoginAnalyticsDailyLoginReportReturn {
|
|
|
27
27
|
date: string;
|
|
28
28
|
login_count: number;
|
|
29
29
|
}
|
|
30
|
-
declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
31
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
32
|
-
user_id: z.ZodEffects<z.ZodString, string, string>;
|
|
33
|
-
platform: z.ZodType<LoginFrom, z.ZodTypeDef, LoginFrom>;
|
|
34
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
35
|
-
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
organisation_id: string;
|
|
37
|
-
status: Status;
|
|
38
|
-
platform: LoginFrom;
|
|
39
|
-
user_id: string;
|
|
40
|
-
}, {
|
|
41
|
-
organisation_id: string;
|
|
42
|
-
status: Status;
|
|
43
|
-
platform: LoginFrom;
|
|
44
|
-
user_id: string;
|
|
45
|
-
}>;
|
|
46
|
-
type UserLoginAnalyticsDTO = z.infer<typeof UserLoginAnalyticsSchema>;
|
|
47
30
|
declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
48
31
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
49
32
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
@@ -82,9 +65,8 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
82
65
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
83
66
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
84
67
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: Status[];
|
|
86
|
-
platform: LoginFrom[];
|
|
87
68
|
search: string;
|
|
69
|
+
status: Status[];
|
|
88
70
|
paging: PAGING;
|
|
89
71
|
page_count: number;
|
|
90
72
|
page_index: number;
|
|
@@ -104,9 +86,10 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
104
86
|
include_master_data: YesNo;
|
|
105
87
|
date_format_id: string;
|
|
106
88
|
time_zone_id: string;
|
|
107
|
-
|
|
89
|
+
platform: LoginFrom[];
|
|
108
90
|
from_date: string;
|
|
109
91
|
to_date: string;
|
|
92
|
+
organisation_ids: string[];
|
|
110
93
|
user_login_analytics_ids: string[];
|
|
111
94
|
user_ids: string[];
|
|
112
95
|
}, {
|
|
@@ -114,9 +97,8 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
114
97
|
time_zone_id: string;
|
|
115
98
|
from_date: string;
|
|
116
99
|
to_date: string;
|
|
117
|
-
status?: Status[] | undefined;
|
|
118
|
-
platform?: LoginFrom[] | undefined;
|
|
119
100
|
search?: string | undefined;
|
|
101
|
+
status?: Status[] | undefined;
|
|
120
102
|
paging?: PAGING | undefined;
|
|
121
103
|
page_count?: unknown;
|
|
122
104
|
page_index?: unknown;
|
|
@@ -134,6 +116,7 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
134
116
|
direction: OrderBy;
|
|
135
117
|
}[] | undefined;
|
|
136
118
|
include_master_data?: YesNo | undefined;
|
|
119
|
+
platform?: LoginFrom[] | undefined;
|
|
137
120
|
organisation_ids?: string[] | undefined;
|
|
138
121
|
user_login_analytics_ids?: string[] | undefined;
|
|
139
122
|
user_ids?: string[] | undefined;
|
|
@@ -172,9 +155,9 @@ declare const UserLoginAnalyticsLoginCountReportSchema: z.ZodObject<{
|
|
|
172
155
|
} & {
|
|
173
156
|
date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
174
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
search: string;
|
|
175
159
|
status: Status[];
|
|
176
160
|
date: string;
|
|
177
|
-
search: string;
|
|
178
161
|
paging: PAGING;
|
|
179
162
|
page_count: number;
|
|
180
163
|
page_index: number;
|
|
@@ -198,8 +181,8 @@ declare const UserLoginAnalyticsLoginCountReportSchema: z.ZodObject<{
|
|
|
198
181
|
date: string;
|
|
199
182
|
date_format_id: string;
|
|
200
183
|
time_zone_id: string;
|
|
201
|
-
status?: Status[] | undefined;
|
|
202
184
|
search?: string | undefined;
|
|
185
|
+
status?: Status[] | undefined;
|
|
203
186
|
paging?: PAGING | undefined;
|
|
204
187
|
page_count?: unknown;
|
|
205
188
|
page_index?: unknown;
|
|
@@ -254,9 +237,8 @@ declare const UserLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
254
237
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
255
238
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
256
239
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
organisation_id: string;
|
|
258
|
-
status: Status[];
|
|
259
240
|
search: string;
|
|
241
|
+
status: Status[];
|
|
260
242
|
paging: PAGING;
|
|
261
243
|
page_count: number;
|
|
262
244
|
page_index: number;
|
|
@@ -278,14 +260,15 @@ declare const UserLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
278
260
|
time_zone_id: string;
|
|
279
261
|
from_date: string;
|
|
280
262
|
to_date: string;
|
|
281
|
-
}, {
|
|
282
263
|
organisation_id: string;
|
|
264
|
+
}, {
|
|
283
265
|
date_format_id: string;
|
|
284
266
|
time_zone_id: string;
|
|
285
267
|
from_date: string;
|
|
286
268
|
to_date: string;
|
|
287
|
-
|
|
269
|
+
organisation_id: string;
|
|
288
270
|
search?: string | undefined;
|
|
271
|
+
status?: Status[] | undefined;
|
|
289
272
|
paging?: PAGING | undefined;
|
|
290
273
|
page_count?: unknown;
|
|
291
274
|
page_index?: unknown;
|
|
@@ -306,8 +289,7 @@ declare const UserLoginAnalyticsDailyLoginReportSchema: z.ZodObject<{
|
|
|
306
289
|
}>;
|
|
307
290
|
type UserLoginAnalyticsDailyLoginReportDTO = z.infer<typeof UserLoginAnalyticsDailyLoginReportSchema>;
|
|
308
291
|
declare const findUserLoginAnalytics: (payload: UserLoginAnalyticsQueryDTO) => Promise<FBR<UserLoginAnalytics[]>>;
|
|
309
|
-
declare const createUserLoginAnalytics: (payload: UserLoginAnalyticsDTO) => Promise<SBR>;
|
|
310
292
|
declare const getUserLoginAnalyticsLoginCountReport: (payload: UserLoginAnalyticsLoginCountReportDTO) => Promise<FBR<UserLoginAnalyticsLoginCountReportReturn[]>>;
|
|
311
293
|
declare const getUserLoginAnalyticsDailyLoginReport: (payload: UserLoginAnalyticsDailyLoginReportDTO) => Promise<FBR<UserLoginAnalyticsDailyLoginReportReturn[]>>;
|
|
312
294
|
|
|
313
|
-
export { type UserLoginAnalytics, type
|
|
295
|
+
export { type UserLoginAnalytics, type UserLoginAnalyticsDailyLoginReportDTO, type UserLoginAnalyticsDailyLoginReportReturn, UserLoginAnalyticsDailyLoginReportSchema, type UserLoginAnalyticsLoginCountReportDTO, type UserLoginAnalyticsLoginCountReportReturn, UserLoginAnalyticsLoginCountReportSchema, type UserLoginAnalyticsQueryDTO, UserLoginAnalyticsQuerySchema, findUserLoginAnalytics, getUserLoginAnalyticsDailyLoginReport, getUserLoginAnalyticsLoginCountReport };
|
|
@@ -14,9 +14,6 @@ var apiPost = async (url, data) => {
|
|
|
14
14
|
return response.data;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
// src/services/account/analytics/user_login_analytics_service.ts
|
|
18
|
-
import { z as z3 } from "zod";
|
|
19
|
-
|
|
20
17
|
// src/zod_utils/zod_utils.ts
|
|
21
18
|
import { z } from "zod";
|
|
22
19
|
|
|
@@ -175,10 +172,10 @@ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
|
175
172
|
LoginFrom2["iOSPWA"] = "iOSPWA";
|
|
176
173
|
return LoginFrom2;
|
|
177
174
|
})(LoginFrom || {});
|
|
178
|
-
var Status = /* @__PURE__ */ ((
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return
|
|
175
|
+
var Status = /* @__PURE__ */ ((Status3) => {
|
|
176
|
+
Status3["Active"] = "Active";
|
|
177
|
+
Status3["Inactive"] = "Inactive";
|
|
178
|
+
return Status3;
|
|
182
179
|
})(Status || {});
|
|
183
180
|
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
184
181
|
FileType2["NoFile"] = "NoFile";
|
|
@@ -257,20 +254,10 @@ var URL = "analytics/user_login_analytics";
|
|
|
257
254
|
var ENDPOINTS = {
|
|
258
255
|
// UserLoginAnalytics APIs
|
|
259
256
|
find: `${URL}/search`,
|
|
260
|
-
create: URL,
|
|
261
257
|
// UserLoginAnalytics Report APIs
|
|
262
258
|
report_login_count: `${URL}/report_login_count`,
|
|
263
259
|
report_daily_login: `${URL}/report_daily_login`
|
|
264
260
|
};
|
|
265
|
-
var UserLoginAnalyticsSchema = z3.object({
|
|
266
|
-
// Relations - Parent
|
|
267
|
-
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
268
|
-
user_id: single_select_mandatory("User"),
|
|
269
|
-
// Main Field Details
|
|
270
|
-
platform: enumMandatory("Platform", LoginFrom, "Web" /* Web */),
|
|
271
|
-
// Metadata
|
|
272
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
273
|
-
});
|
|
274
261
|
var UserLoginAnalyticsQuerySchema = BaseQuerySchema.extend({
|
|
275
262
|
// Self Table
|
|
276
263
|
user_login_analytics_ids: multi_select_optional("UserLoginAnalytics"),
|
|
@@ -295,15 +282,12 @@ var UserLoginAnalyticsDailyLoginReportSchema = BaseQuerySchema.extend({
|
|
|
295
282
|
to_date: dateMandatory("To Date")
|
|
296
283
|
});
|
|
297
284
|
var findUserLoginAnalytics = (payload) => apiPost(ENDPOINTS.find, payload);
|
|
298
|
-
var createUserLoginAnalytics = (payload) => apiPost(ENDPOINTS.create, payload);
|
|
299
285
|
var getUserLoginAnalyticsLoginCountReport = (payload) => apiPost(ENDPOINTS.report_login_count, payload);
|
|
300
286
|
var getUserLoginAnalyticsDailyLoginReport = (payload) => apiPost(ENDPOINTS.report_daily_login, payload);
|
|
301
287
|
export {
|
|
302
288
|
UserLoginAnalyticsDailyLoginReportSchema,
|
|
303
289
|
UserLoginAnalyticsLoginCountReportSchema,
|
|
304
290
|
UserLoginAnalyticsQuerySchema,
|
|
305
|
-
UserLoginAnalyticsSchema,
|
|
306
|
-
createUserLoginAnalytics,
|
|
307
291
|
findUserLoginAnalytics,
|
|
308
292
|
getUserLoginAnalyticsDailyLoginReport,
|
|
309
293
|
getUserLoginAnalyticsLoginCountReport
|