vms-nest-prisma-api-document 959.0.0 → 960.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/core/Enums.d.ts +16 -1
- package/dist/core/Enums.js +21 -0
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/core/cronjobs.service.d.ts +234 -0
- package/dist/services/core/cronjobs.service.js +300 -0
- package/dist/services/core/external_api.service.d.ts +282 -0
- package/dist/services/core/external_api.service.js +429 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { YesNo, APIAuthType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../core/Enums.js';
|
|
2
|
+
import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
interface ApiDataShareManagement extends Record<string, unknown> {
|
|
6
|
+
api_data_share_id: string;
|
|
7
|
+
api_name: string;
|
|
8
|
+
vendor_name: string;
|
|
9
|
+
purpose?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
is_enabled: YesNo;
|
|
12
|
+
auth_type: APIAuthType;
|
|
13
|
+
api_key?: string;
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
rate_limit_rpm: number;
|
|
17
|
+
allowed_ips: string[];
|
|
18
|
+
status: Status;
|
|
19
|
+
added_date_time: string;
|
|
20
|
+
modified_date_time: string;
|
|
21
|
+
ApiDataShareHitLog?: ApiDataShareHitLog[];
|
|
22
|
+
_count?: {
|
|
23
|
+
ApiDataShareHitLog?: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
interface ApiDataShareHitLog extends Record<string, unknown> {
|
|
27
|
+
api_data_share_hit_log_id: string;
|
|
28
|
+
api_data_share_id: string;
|
|
29
|
+
ApiDataShareManagement?: ApiDataShareManagement;
|
|
30
|
+
api_name?: string;
|
|
31
|
+
vendor_name?: string;
|
|
32
|
+
request_date_time: string;
|
|
33
|
+
request_date_time_f?: string;
|
|
34
|
+
request_id?: string;
|
|
35
|
+
ip_address?: string;
|
|
36
|
+
user_agent?: string;
|
|
37
|
+
is_auth_success: YesNo;
|
|
38
|
+
failed_message?: string;
|
|
39
|
+
status: Status;
|
|
40
|
+
added_date_time: string;
|
|
41
|
+
modified_date_time: string;
|
|
42
|
+
}
|
|
43
|
+
interface ExternalApiReport {
|
|
44
|
+
api_name: string;
|
|
45
|
+
vendor_name: string;
|
|
46
|
+
success_count: number;
|
|
47
|
+
failed_count: number;
|
|
48
|
+
total_count: number;
|
|
49
|
+
}
|
|
50
|
+
declare const ApiDataShareManagementSchema: z.ZodObject<{
|
|
51
|
+
api_name: z.ZodEffects<z.ZodString, string, string>;
|
|
52
|
+
vendor_name: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
purpose: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
54
|
+
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
55
|
+
is_enabled: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
56
|
+
auth_type: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof APIAuthType>>>;
|
|
57
|
+
api_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
|
+
username: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
+
password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
60
|
+
rate_limit_rpm: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
61
|
+
allowed_ips: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
62
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
api_name: string;
|
|
65
|
+
vendor_name: string;
|
|
66
|
+
purpose: string;
|
|
67
|
+
description: string;
|
|
68
|
+
is_enabled: YesNo;
|
|
69
|
+
auth_type: APIAuthType;
|
|
70
|
+
api_key: string;
|
|
71
|
+
username: string;
|
|
72
|
+
password: string;
|
|
73
|
+
rate_limit_rpm: number;
|
|
74
|
+
allowed_ips: string[];
|
|
75
|
+
status: Status;
|
|
76
|
+
}, {
|
|
77
|
+
api_name: string;
|
|
78
|
+
vendor_name: string;
|
|
79
|
+
allowed_ips: string[];
|
|
80
|
+
status: Status;
|
|
81
|
+
purpose?: string | undefined;
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
is_enabled?: YesNo | undefined;
|
|
84
|
+
auth_type?: APIAuthType | undefined;
|
|
85
|
+
api_key?: string | undefined;
|
|
86
|
+
username?: string | undefined;
|
|
87
|
+
password?: string | undefined;
|
|
88
|
+
rate_limit_rpm?: unknown;
|
|
89
|
+
}>;
|
|
90
|
+
type ApiDataShareManagementDTO = z.infer<typeof ApiDataShareManagementSchema>;
|
|
91
|
+
declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
92
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
93
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
94
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
95
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
96
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
97
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
98
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
99
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
100
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
101
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
102
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
103
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
104
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
105
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
107
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
108
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
name: string;
|
|
111
|
+
field: string;
|
|
112
|
+
direction: OrderBy;
|
|
113
|
+
}, {
|
|
114
|
+
name: string;
|
|
115
|
+
field: string;
|
|
116
|
+
direction: OrderBy;
|
|
117
|
+
}>, "many">>>;
|
|
118
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
119
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
120
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
121
|
+
} & {
|
|
122
|
+
api_data_share_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
123
|
+
is_enabled: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
124
|
+
auth_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof APIAuthType>, "many">>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
is_enabled: YesNo[];
|
|
127
|
+
auth_type: APIAuthType[];
|
|
128
|
+
status: Status[];
|
|
129
|
+
search: string;
|
|
130
|
+
paging: PAGING;
|
|
131
|
+
page_count: number;
|
|
132
|
+
page_index: number;
|
|
133
|
+
load_parents: LoadParents;
|
|
134
|
+
load_parents_list: string[];
|
|
135
|
+
load_child: LoadChild;
|
|
136
|
+
load_child_list: string[];
|
|
137
|
+
load_child_count: LoadChildCount;
|
|
138
|
+
load_child_count_list: string[];
|
|
139
|
+
include_details: Record<string, any>;
|
|
140
|
+
where_relations: Record<string, any>;
|
|
141
|
+
order_by: {
|
|
142
|
+
name: string;
|
|
143
|
+
field: string;
|
|
144
|
+
direction: OrderBy;
|
|
145
|
+
}[];
|
|
146
|
+
include_master_data: YesNo;
|
|
147
|
+
date_format_id: string;
|
|
148
|
+
time_zone_id: string;
|
|
149
|
+
api_data_share_ids: string[];
|
|
150
|
+
}, {
|
|
151
|
+
date_format_id: string;
|
|
152
|
+
time_zone_id: string;
|
|
153
|
+
is_enabled?: YesNo[] | undefined;
|
|
154
|
+
auth_type?: APIAuthType[] | undefined;
|
|
155
|
+
status?: Status[] | undefined;
|
|
156
|
+
search?: string | undefined;
|
|
157
|
+
paging?: PAGING | undefined;
|
|
158
|
+
page_count?: unknown;
|
|
159
|
+
page_index?: unknown;
|
|
160
|
+
load_parents?: LoadParents | undefined;
|
|
161
|
+
load_parents_list?: string[] | undefined;
|
|
162
|
+
load_child?: LoadChild | undefined;
|
|
163
|
+
load_child_list?: string[] | undefined;
|
|
164
|
+
load_child_count?: LoadChildCount | undefined;
|
|
165
|
+
load_child_count_list?: string[] | undefined;
|
|
166
|
+
include_details?: Record<string, any> | undefined;
|
|
167
|
+
where_relations?: Record<string, any> | undefined;
|
|
168
|
+
order_by?: {
|
|
169
|
+
name: string;
|
|
170
|
+
field: string;
|
|
171
|
+
direction: OrderBy;
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
include_master_data?: YesNo | undefined;
|
|
174
|
+
api_data_share_ids?: string[] | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
type ApiDataShareManagementQueryDTO = z.infer<typeof ApiDataShareManagementQuerySchema>;
|
|
177
|
+
declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
178
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
179
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
180
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
181
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
182
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
183
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
184
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
185
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
186
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
187
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
188
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
189
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
190
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
191
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
192
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
193
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
194
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
name: string;
|
|
197
|
+
field: string;
|
|
198
|
+
direction: OrderBy;
|
|
199
|
+
}, {
|
|
200
|
+
name: string;
|
|
201
|
+
field: string;
|
|
202
|
+
direction: OrderBy;
|
|
203
|
+
}>, "many">>>;
|
|
204
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
205
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
206
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
207
|
+
} & {
|
|
208
|
+
api_data_share_hit_log_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
209
|
+
api_data_share_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
210
|
+
is_auth_success: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
211
|
+
}, "strip", z.ZodTypeAny, {
|
|
212
|
+
status: Status[];
|
|
213
|
+
is_auth_success: YesNo[];
|
|
214
|
+
search: string;
|
|
215
|
+
paging: PAGING;
|
|
216
|
+
page_count: number;
|
|
217
|
+
page_index: number;
|
|
218
|
+
load_parents: LoadParents;
|
|
219
|
+
load_parents_list: string[];
|
|
220
|
+
load_child: LoadChild;
|
|
221
|
+
load_child_list: string[];
|
|
222
|
+
load_child_count: LoadChildCount;
|
|
223
|
+
load_child_count_list: string[];
|
|
224
|
+
include_details: Record<string, any>;
|
|
225
|
+
where_relations: Record<string, any>;
|
|
226
|
+
order_by: {
|
|
227
|
+
name: string;
|
|
228
|
+
field: string;
|
|
229
|
+
direction: OrderBy;
|
|
230
|
+
}[];
|
|
231
|
+
include_master_data: YesNo;
|
|
232
|
+
date_format_id: string;
|
|
233
|
+
time_zone_id: string;
|
|
234
|
+
api_data_share_ids: string[];
|
|
235
|
+
api_data_share_hit_log_ids: string[];
|
|
236
|
+
}, {
|
|
237
|
+
date_format_id: string;
|
|
238
|
+
time_zone_id: string;
|
|
239
|
+
status?: Status[] | undefined;
|
|
240
|
+
is_auth_success?: YesNo[] | undefined;
|
|
241
|
+
search?: string | undefined;
|
|
242
|
+
paging?: PAGING | undefined;
|
|
243
|
+
page_count?: unknown;
|
|
244
|
+
page_index?: unknown;
|
|
245
|
+
load_parents?: LoadParents | undefined;
|
|
246
|
+
load_parents_list?: string[] | undefined;
|
|
247
|
+
load_child?: LoadChild | undefined;
|
|
248
|
+
load_child_list?: string[] | undefined;
|
|
249
|
+
load_child_count?: LoadChildCount | undefined;
|
|
250
|
+
load_child_count_list?: string[] | undefined;
|
|
251
|
+
include_details?: Record<string, any> | undefined;
|
|
252
|
+
where_relations?: Record<string, any> | undefined;
|
|
253
|
+
order_by?: {
|
|
254
|
+
name: string;
|
|
255
|
+
field: string;
|
|
256
|
+
direction: OrderBy;
|
|
257
|
+
}[] | undefined;
|
|
258
|
+
include_master_data?: YesNo | undefined;
|
|
259
|
+
api_data_share_ids?: string[] | undefined;
|
|
260
|
+
api_data_share_hit_log_ids?: string[] | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
type ApiDataShareHitLogQueryDTO = z.infer<typeof ApiDataShareHitLogQuerySchema>;
|
|
263
|
+
declare const ExternalApiReportSchema: z.ZodObject<{
|
|
264
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
265
|
+
}, "strip", z.ZodTypeAny, {
|
|
266
|
+
date: string;
|
|
267
|
+
}, {
|
|
268
|
+
date: string;
|
|
269
|
+
}>;
|
|
270
|
+
type ExternalApiReportDTO = z.infer<typeof ExternalApiReportSchema>;
|
|
271
|
+
declare const toApiDataShareManagementPayload: (row: ApiDataShareManagement) => ApiDataShareManagementDTO;
|
|
272
|
+
declare const newApiDataShareManagementPayload: () => ApiDataShareManagementDTO;
|
|
273
|
+
declare const findApiDataShareManagement: (data: ApiDataShareManagementQueryDTO) => Promise<FBR<ApiDataShareManagement[]>>;
|
|
274
|
+
declare const createApiDataShareManagement: (data: ApiDataShareManagementDTO) => Promise<SBR>;
|
|
275
|
+
declare const updateApiDataShareManagement: (id: string, data: ApiDataShareManagementDTO) => Promise<SBR>;
|
|
276
|
+
declare const deleteApiDataShareManagement: (id: string) => Promise<SBR>;
|
|
277
|
+
declare const findApiDataShareHitLog: (data: ApiDataShareHitLogQueryDTO) => Promise<FBR<ApiDataShareHitLog[]>>;
|
|
278
|
+
declare const getExternalApiDailyReport: (data: ExternalApiReportDTO) => Promise<FBR<ExternalApiReport[]>>;
|
|
279
|
+
declare const getExternalApiMonthlyReport: (data: ExternalApiReportDTO) => Promise<FBR<ExternalApiReport[]>>;
|
|
280
|
+
declare const resetExternalApiCache: () => Promise<SBR>;
|
|
281
|
+
|
|
282
|
+
export { type ApiDataShareHitLog, type ApiDataShareHitLogQueryDTO, ApiDataShareHitLogQuerySchema, type ApiDataShareManagement, type ApiDataShareManagementDTO, type ApiDataShareManagementQueryDTO, ApiDataShareManagementQuerySchema, ApiDataShareManagementSchema, type ExternalApiReport, type ExternalApiReportDTO, ExternalApiReportSchema, createApiDataShareManagement, deleteApiDataShareManagement, findApiDataShareHitLog, findApiDataShareManagement, getExternalApiDailyReport, getExternalApiMonthlyReport, newApiDataShareManagementPayload, resetExternalApiCache, toApiDataShareManagementPayload, updateApiDataShareManagement };
|