storemw-core-api 1.0.147 → 1.0.149
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/app.js +1 -0
- package/dist/app.js.map +1 -1
- package/dist/controllers/index.d.ts +1 -0
- package/dist/controllers/index.js +6 -1
- package/dist/controllers/index.js.map +1 -1
- package/dist/controllers/scheduler/schedulerLogController.d.ts +9 -0
- package/dist/controllers/scheduler/schedulerLogController.js +133 -0
- package/dist/controllers/scheduler/schedulerLogController.js.map +1 -0
- package/dist/middlewares/route/index.d.ts +1 -0
- package/dist/middlewares/route/index.js +7 -2
- package/dist/middlewares/route/index.js.map +1 -1
- package/dist/middlewares/route/validateSchedulerLog.d.ts +5 -0
- package/dist/middlewares/route/validateSchedulerLog.js +20 -0
- package/dist/middlewares/route/validateSchedulerLog.js.map +1 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +4 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/scheduler/SchedulerLogModel.d.ts +371 -0
- package/dist/models/scheduler/SchedulerLogModel.js +13 -0
- package/dist/models/scheduler/SchedulerLogModel.js.map +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.js +3 -1
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/scheduler/schedulerLogRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulerLogRoutes.js +13 -0
- package/dist/routes/scheduler/schedulerLogRoutes.js.map +1 -0
- package/dist/routes/scheduler/schedulerLogsRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulerLogsRoutes.js +13 -0
- package/dist/routes/scheduler/schedulerLogsRoutes.js.map +1 -0
- package/dist/routes/scheduler/schedulersRoutes.d.ts +2 -0
- package/dist/routes/scheduler/schedulersRoutes.js +12 -0
- package/dist/routes/scheduler/schedulersRoutes.js.map +1 -0
- package/dist/routes/user/userMeRoutes.js +2 -2
- package/dist/routes/user/userMeRoutes.js.map +1 -1
- package/dist/schema/middleware/route/index.d.ts +2 -0
- package/dist/schema/middleware/route/index.js +3 -1
- package/dist/schema/middleware/route/index.js.map +1 -1
- package/dist/schema/middleware/route/schemaSchedulerLog.d.ts +4 -0
- package/dist/schema/middleware/route/schemaSchedulerLog.js +10 -0
- package/dist/schema/middleware/route/schemaSchedulerLog.js.map +1 -0
- package/dist/schema/payload/index.d.ts +2 -0
- package/dist/schema/payload/index.js +4 -1
- package/dist/schema/payload/index.js.map +1 -1
- package/dist/schema/payload/scheduler/schemaSchedulerLog.d.ts +267 -0
- package/dist/schema/payload/scheduler/schemaSchedulerLog.js +48 -0
- package/dist/schema/payload/scheduler/schemaSchedulerLog.js.map +1 -0
- package/dist/services/file/FileService.js.map +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.js +4 -1
- package/dist/services/index.js.map +1 -1
- package/dist/services/scheduler/SchedulerLogService.d.ts +101 -0
- package/dist/services/scheduler/SchedulerLogService.js +146 -0
- package/dist/services/scheduler/SchedulerLogService.js.map +1 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +30 -0
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { scheduler_logs, Prisma } from "@prisma/client";
|
|
2
|
+
import { DefaultOmitFields } from "../../lib";
|
|
3
|
+
import { DefaultServiceProps } from "../../utils";
|
|
4
|
+
declare const primaryKey = "scheduler_log_id";
|
|
5
|
+
export declare const ModelSchedulerLogFields: {
|
|
6
|
+
createdatetime: "createdatetime";
|
|
7
|
+
createuserid: "createuserid";
|
|
8
|
+
updatedatetime: "updatedatetime";
|
|
9
|
+
updateuserid: "updateuserid";
|
|
10
|
+
isdelete: "isdelete";
|
|
11
|
+
istrash: "istrash";
|
|
12
|
+
accountid: "accountid";
|
|
13
|
+
field_ref: "field_ref";
|
|
14
|
+
field_module: "field_module";
|
|
15
|
+
scheduler_log_id: "scheduler_log_id";
|
|
16
|
+
scheduler_task_id: "scheduler_task_id";
|
|
17
|
+
flow_type: "flow_type";
|
|
18
|
+
log_action: "log_action";
|
|
19
|
+
log_label: "log_label";
|
|
20
|
+
log_status: "log_status";
|
|
21
|
+
log_message: "log_message";
|
|
22
|
+
source_type: "source_type";
|
|
23
|
+
source_entity_id: "source_entity_id";
|
|
24
|
+
source_entity_label: "source_entity_label";
|
|
25
|
+
source_entity_data: "source_entity_data";
|
|
26
|
+
destination_type: "destination_type";
|
|
27
|
+
destination_entity_id: "destination_entity_id";
|
|
28
|
+
destination_entity_label: "destination_entity_label";
|
|
29
|
+
destination_submit_payload: "destination_submit_payload";
|
|
30
|
+
destination_submit_response: "destination_submit_response";
|
|
31
|
+
};
|
|
32
|
+
export type ModelSchedulerLog = scheduler_logs;
|
|
33
|
+
export type ModelSchedulerLogOmitFields = typeof primaryKey | DefaultOmitFields;
|
|
34
|
+
export type ModelSchedulerLogCreateProps = {
|
|
35
|
+
createUserId: number;
|
|
36
|
+
data: Omit<Prisma.scheduler_logsUncheckedCreateInput, ModelSchedulerLogOmitFields>;
|
|
37
|
+
};
|
|
38
|
+
export type ModelSchedulerLogUpdateProps = {
|
|
39
|
+
id: number;
|
|
40
|
+
updateUserId: number;
|
|
41
|
+
data: Omit<Prisma.scheduler_logsUncheckedUpdateInput, ModelSchedulerLogOmitFields>;
|
|
42
|
+
};
|
|
43
|
+
export type ModelSchedulerLogTrashProps = {
|
|
44
|
+
id: number;
|
|
45
|
+
updateUserId: number;
|
|
46
|
+
};
|
|
47
|
+
export type ModelSchedulerLogRemoveProps = {
|
|
48
|
+
id: number;
|
|
49
|
+
updateUserId: number;
|
|
50
|
+
};
|
|
51
|
+
export type ModelSchedulerLogGetProps = {
|
|
52
|
+
id: number;
|
|
53
|
+
};
|
|
54
|
+
export type ModelSchedulerLogListProps = {
|
|
55
|
+
where?: Prisma.scheduler_logsWhereInput;
|
|
56
|
+
orderBy?: Prisma.scheduler_logsOrderByWithRelationInput | Prisma.scheduler_logsOrderByWithRelationInput[];
|
|
57
|
+
offset?: number;
|
|
58
|
+
limit?: number;
|
|
59
|
+
};
|
|
60
|
+
export declare const SchedulerLogModel: ({ ...rest }: DefaultServiceProps) => {
|
|
61
|
+
selectedPrisma: any;
|
|
62
|
+
primaryKey: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "field_ref" | "field_module" | "scheduler_log_id" | "scheduler_task_id" | "flow_type" | "log_action" | "log_label" | "log_status" | "log_message" | "source_type" | "source_entity_id" | "source_entity_label" | "source_entity_data" | "destination_type" | "destination_entity_id" | "destination_entity_label" | "destination_submit_payload" | "destination_submit_response";
|
|
63
|
+
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
64
|
+
name: string;
|
|
65
|
+
type: string;
|
|
66
|
+
}[]>;
|
|
67
|
+
create: ({ data }: {
|
|
68
|
+
data: Omit<any, DefaultOmitFields>;
|
|
69
|
+
}) => Promise<{
|
|
70
|
+
createdatetime: Date | null;
|
|
71
|
+
createuserid: bigint;
|
|
72
|
+
updatedatetime: Date | null;
|
|
73
|
+
updateuserid: bigint;
|
|
74
|
+
isdelete: boolean | null;
|
|
75
|
+
istrash: boolean | null;
|
|
76
|
+
accountid: bigint;
|
|
77
|
+
field_ref: string;
|
|
78
|
+
field_module: string;
|
|
79
|
+
scheduler_log_id: bigint;
|
|
80
|
+
scheduler_task_id: bigint;
|
|
81
|
+
flow_type: string;
|
|
82
|
+
log_action: string;
|
|
83
|
+
log_label: string;
|
|
84
|
+
log_status: boolean | null;
|
|
85
|
+
log_message: string | null;
|
|
86
|
+
source_type: string | null;
|
|
87
|
+
source_entity_id: string | null;
|
|
88
|
+
source_entity_label: string | null;
|
|
89
|
+
source_entity_data: string | null;
|
|
90
|
+
destination_type: string | null;
|
|
91
|
+
destination_entity_id: string | null;
|
|
92
|
+
destination_entity_label: string | null;
|
|
93
|
+
destination_submit_payload: string | null;
|
|
94
|
+
destination_submit_response: string | null;
|
|
95
|
+
}>;
|
|
96
|
+
createMany: ({ dataList, disableRollback, }: {
|
|
97
|
+
dataList: Omit<any, DefaultOmitFields>[];
|
|
98
|
+
disableRollback?: boolean;
|
|
99
|
+
}) => Promise<{
|
|
100
|
+
createdatetime: Date | null;
|
|
101
|
+
createuserid: bigint;
|
|
102
|
+
updatedatetime: Date | null;
|
|
103
|
+
updateuserid: bigint;
|
|
104
|
+
isdelete: boolean | null;
|
|
105
|
+
istrash: boolean | null;
|
|
106
|
+
accountid: bigint;
|
|
107
|
+
field_ref: string;
|
|
108
|
+
field_module: string;
|
|
109
|
+
scheduler_log_id: bigint;
|
|
110
|
+
scheduler_task_id: bigint;
|
|
111
|
+
flow_type: string;
|
|
112
|
+
log_action: string;
|
|
113
|
+
log_label: string;
|
|
114
|
+
log_status: boolean | null;
|
|
115
|
+
log_message: string | null;
|
|
116
|
+
source_type: string | null;
|
|
117
|
+
source_entity_id: string | null;
|
|
118
|
+
source_entity_label: string | null;
|
|
119
|
+
source_entity_data: string | null;
|
|
120
|
+
destination_type: string | null;
|
|
121
|
+
destination_entity_id: string | null;
|
|
122
|
+
destination_entity_label: string | null;
|
|
123
|
+
destination_submit_payload: string | null;
|
|
124
|
+
destination_submit_response: string | null;
|
|
125
|
+
}[]>;
|
|
126
|
+
get: ({ id, where, include, }: {
|
|
127
|
+
id?: number;
|
|
128
|
+
where?: Record<string, any>;
|
|
129
|
+
include?: any;
|
|
130
|
+
}) => Promise<{
|
|
131
|
+
createdatetime: Date | null;
|
|
132
|
+
createuserid: bigint;
|
|
133
|
+
updatedatetime: Date | null;
|
|
134
|
+
updateuserid: bigint;
|
|
135
|
+
isdelete: boolean | null;
|
|
136
|
+
istrash: boolean | null;
|
|
137
|
+
accountid: bigint;
|
|
138
|
+
field_ref: string;
|
|
139
|
+
field_module: string;
|
|
140
|
+
scheduler_log_id: bigint;
|
|
141
|
+
scheduler_task_id: bigint;
|
|
142
|
+
flow_type: string;
|
|
143
|
+
log_action: string;
|
|
144
|
+
log_label: string;
|
|
145
|
+
log_status: boolean | null;
|
|
146
|
+
log_message: string | null;
|
|
147
|
+
source_type: string | null;
|
|
148
|
+
source_entity_id: string | null;
|
|
149
|
+
source_entity_label: string | null;
|
|
150
|
+
source_entity_data: string | null;
|
|
151
|
+
destination_type: string | null;
|
|
152
|
+
destination_entity_id: string | null;
|
|
153
|
+
destination_entity_label: string | null;
|
|
154
|
+
destination_submit_payload: string | null;
|
|
155
|
+
destination_submit_response: string | null;
|
|
156
|
+
} | null>;
|
|
157
|
+
list: ({ where, orderBy, offset, limit, include }?: any) => Promise<{
|
|
158
|
+
createdatetime: Date | null;
|
|
159
|
+
createuserid: bigint;
|
|
160
|
+
updatedatetime: Date | null;
|
|
161
|
+
updateuserid: bigint;
|
|
162
|
+
isdelete: boolean | null;
|
|
163
|
+
istrash: boolean | null;
|
|
164
|
+
accountid: bigint;
|
|
165
|
+
field_ref: string;
|
|
166
|
+
field_module: string;
|
|
167
|
+
scheduler_log_id: bigint;
|
|
168
|
+
scheduler_task_id: bigint;
|
|
169
|
+
flow_type: string;
|
|
170
|
+
log_action: string;
|
|
171
|
+
log_label: string;
|
|
172
|
+
log_status: boolean | null;
|
|
173
|
+
log_message: string | null;
|
|
174
|
+
source_type: string | null;
|
|
175
|
+
source_entity_id: string | null;
|
|
176
|
+
source_entity_label: string | null;
|
|
177
|
+
source_entity_data: string | null;
|
|
178
|
+
destination_type: string | null;
|
|
179
|
+
destination_entity_id: string | null;
|
|
180
|
+
destination_entity_label: string | null;
|
|
181
|
+
destination_submit_payload: string | null;
|
|
182
|
+
destination_submit_response: string | null;
|
|
183
|
+
}[]>;
|
|
184
|
+
count: ({ where }?: {
|
|
185
|
+
where?: Record<string, any>;
|
|
186
|
+
}) => Promise<number>;
|
|
187
|
+
aggregate: ({ field, operation, where, }: {
|
|
188
|
+
field: "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "field_ref" | "field_module" | "scheduler_log_id" | "scheduler_task_id" | "flow_type" | "log_action" | "log_label" | "log_status" | "log_message" | "source_type" | "source_entity_id" | "source_entity_label" | "source_entity_data" | "destination_type" | "destination_entity_id" | "destination_entity_label" | "destination_submit_payload" | "destination_submit_response";
|
|
189
|
+
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
190
|
+
where?: Record<string, any>;
|
|
191
|
+
}) => Promise<number>;
|
|
192
|
+
update: ({ id, where, data, disableRollback }: {
|
|
193
|
+
id?: number;
|
|
194
|
+
where?: Record<string, any>;
|
|
195
|
+
data: Partial<{
|
|
196
|
+
createdatetime: Date | null;
|
|
197
|
+
createuserid: bigint;
|
|
198
|
+
updatedatetime: Date | null;
|
|
199
|
+
updateuserid: bigint;
|
|
200
|
+
isdelete: boolean | null;
|
|
201
|
+
istrash: boolean | null;
|
|
202
|
+
accountid: bigint;
|
|
203
|
+
field_ref: string;
|
|
204
|
+
field_module: string;
|
|
205
|
+
scheduler_log_id: bigint;
|
|
206
|
+
scheduler_task_id: bigint;
|
|
207
|
+
flow_type: string;
|
|
208
|
+
log_action: string;
|
|
209
|
+
log_label: string;
|
|
210
|
+
log_status: boolean | null;
|
|
211
|
+
log_message: string | null;
|
|
212
|
+
source_type: string | null;
|
|
213
|
+
source_entity_id: string | null;
|
|
214
|
+
source_entity_label: string | null;
|
|
215
|
+
source_entity_data: string | null;
|
|
216
|
+
destination_type: string | null;
|
|
217
|
+
destination_entity_id: string | null;
|
|
218
|
+
destination_entity_label: string | null;
|
|
219
|
+
destination_submit_payload: string | null;
|
|
220
|
+
destination_submit_response: string | null;
|
|
221
|
+
}>;
|
|
222
|
+
disableRollback?: Boolean;
|
|
223
|
+
}) => Promise<{
|
|
224
|
+
createdatetime: Date | null;
|
|
225
|
+
createuserid: bigint;
|
|
226
|
+
updatedatetime: Date | null;
|
|
227
|
+
updateuserid: bigint;
|
|
228
|
+
isdelete: boolean | null;
|
|
229
|
+
istrash: boolean | null;
|
|
230
|
+
accountid: bigint;
|
|
231
|
+
field_ref: string;
|
|
232
|
+
field_module: string;
|
|
233
|
+
scheduler_log_id: bigint;
|
|
234
|
+
scheduler_task_id: bigint;
|
|
235
|
+
flow_type: string;
|
|
236
|
+
log_action: string;
|
|
237
|
+
log_label: string;
|
|
238
|
+
log_status: boolean | null;
|
|
239
|
+
log_message: string | null;
|
|
240
|
+
source_type: string | null;
|
|
241
|
+
source_entity_id: string | null;
|
|
242
|
+
source_entity_label: string | null;
|
|
243
|
+
source_entity_data: string | null;
|
|
244
|
+
destination_type: string | null;
|
|
245
|
+
destination_entity_id: string | null;
|
|
246
|
+
destination_entity_label: string | null;
|
|
247
|
+
destination_submit_payload: string | null;
|
|
248
|
+
destination_submit_response: string | null;
|
|
249
|
+
}>;
|
|
250
|
+
updateMany: ({ dataList, disableRollback, }: {
|
|
251
|
+
dataList: {
|
|
252
|
+
where: Record<string, any>;
|
|
253
|
+
data: Partial<{
|
|
254
|
+
createdatetime: Date | null;
|
|
255
|
+
createuserid: bigint;
|
|
256
|
+
updatedatetime: Date | null;
|
|
257
|
+
updateuserid: bigint;
|
|
258
|
+
isdelete: boolean | null;
|
|
259
|
+
istrash: boolean | null;
|
|
260
|
+
accountid: bigint;
|
|
261
|
+
field_ref: string;
|
|
262
|
+
field_module: string;
|
|
263
|
+
scheduler_log_id: bigint;
|
|
264
|
+
scheduler_task_id: bigint;
|
|
265
|
+
flow_type: string;
|
|
266
|
+
log_action: string;
|
|
267
|
+
log_label: string;
|
|
268
|
+
log_status: boolean | null;
|
|
269
|
+
log_message: string | null;
|
|
270
|
+
source_type: string | null;
|
|
271
|
+
source_entity_id: string | null;
|
|
272
|
+
source_entity_label: string | null;
|
|
273
|
+
source_entity_data: string | null;
|
|
274
|
+
destination_type: string | null;
|
|
275
|
+
destination_entity_id: string | null;
|
|
276
|
+
destination_entity_label: string | null;
|
|
277
|
+
destination_submit_payload: string | null;
|
|
278
|
+
destination_submit_response: string | null;
|
|
279
|
+
}>;
|
|
280
|
+
}[];
|
|
281
|
+
disableRollback?: boolean;
|
|
282
|
+
}) => Promise<{
|
|
283
|
+
createdatetime: Date | null;
|
|
284
|
+
createuserid: bigint;
|
|
285
|
+
updatedatetime: Date | null;
|
|
286
|
+
updateuserid: bigint;
|
|
287
|
+
isdelete: boolean | null;
|
|
288
|
+
istrash: boolean | null;
|
|
289
|
+
accountid: bigint;
|
|
290
|
+
field_ref: string;
|
|
291
|
+
field_module: string;
|
|
292
|
+
scheduler_log_id: bigint;
|
|
293
|
+
scheduler_task_id: bigint;
|
|
294
|
+
flow_type: string;
|
|
295
|
+
log_action: string;
|
|
296
|
+
log_label: string;
|
|
297
|
+
log_status: boolean | null;
|
|
298
|
+
log_message: string | null;
|
|
299
|
+
source_type: string | null;
|
|
300
|
+
source_entity_id: string | null;
|
|
301
|
+
source_entity_label: string | null;
|
|
302
|
+
source_entity_data: string | null;
|
|
303
|
+
destination_type: string | null;
|
|
304
|
+
destination_entity_id: string | null;
|
|
305
|
+
destination_entity_label: string | null;
|
|
306
|
+
destination_submit_payload: string | null;
|
|
307
|
+
destination_submit_response: string | null;
|
|
308
|
+
}[]>;
|
|
309
|
+
trash: ({ ids }: {
|
|
310
|
+
ids: number[];
|
|
311
|
+
}) => Promise<{
|
|
312
|
+
createdatetime: Date | null;
|
|
313
|
+
createuserid: bigint;
|
|
314
|
+
updatedatetime: Date | null;
|
|
315
|
+
updateuserid: bigint;
|
|
316
|
+
isdelete: boolean | null;
|
|
317
|
+
istrash: boolean | null;
|
|
318
|
+
accountid: bigint;
|
|
319
|
+
field_ref: string;
|
|
320
|
+
field_module: string;
|
|
321
|
+
scheduler_log_id: bigint;
|
|
322
|
+
scheduler_task_id: bigint;
|
|
323
|
+
flow_type: string;
|
|
324
|
+
log_action: string;
|
|
325
|
+
log_label: string;
|
|
326
|
+
log_status: boolean | null;
|
|
327
|
+
log_message: string | null;
|
|
328
|
+
source_type: string | null;
|
|
329
|
+
source_entity_id: string | null;
|
|
330
|
+
source_entity_label: string | null;
|
|
331
|
+
source_entity_data: string | null;
|
|
332
|
+
destination_type: string | null;
|
|
333
|
+
destination_entity_id: string | null;
|
|
334
|
+
destination_entity_label: string | null;
|
|
335
|
+
destination_submit_payload: string | null;
|
|
336
|
+
destination_submit_response: string | null;
|
|
337
|
+
}[]>;
|
|
338
|
+
remove: ({ ids, where }: {
|
|
339
|
+
ids?: number[];
|
|
340
|
+
where?: Record<string, any>;
|
|
341
|
+
}) => Promise<{
|
|
342
|
+
createdatetime: Date | null;
|
|
343
|
+
createuserid: bigint;
|
|
344
|
+
updatedatetime: Date | null;
|
|
345
|
+
updateuserid: bigint;
|
|
346
|
+
isdelete: boolean | null;
|
|
347
|
+
istrash: boolean | null;
|
|
348
|
+
accountid: bigint;
|
|
349
|
+
field_ref: string;
|
|
350
|
+
field_module: string;
|
|
351
|
+
scheduler_log_id: bigint;
|
|
352
|
+
scheduler_task_id: bigint;
|
|
353
|
+
flow_type: string;
|
|
354
|
+
log_action: string;
|
|
355
|
+
log_label: string;
|
|
356
|
+
log_status: boolean | null;
|
|
357
|
+
log_message: string | null;
|
|
358
|
+
source_type: string | null;
|
|
359
|
+
source_entity_id: string | null;
|
|
360
|
+
source_entity_label: string | null;
|
|
361
|
+
source_entity_data: string | null;
|
|
362
|
+
destination_type: string | null;
|
|
363
|
+
destination_entity_id: string | null;
|
|
364
|
+
destination_entity_label: string | null;
|
|
365
|
+
destination_submit_payload: string | null;
|
|
366
|
+
destination_submit_response: string | null;
|
|
367
|
+
}[]>;
|
|
368
|
+
raw: <T = any>(query: string, params?: any[]) => Promise<T[]>;
|
|
369
|
+
rawExec: (query: string, params?: any[]) => Promise<number>;
|
|
370
|
+
};
|
|
371
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchedulerLogModel = exports.ModelSchedulerLogFields = void 0;
|
|
4
|
+
const lib_1 = require("../../lib");
|
|
5
|
+
const primaryKey = "scheduler_log_id";
|
|
6
|
+
exports.ModelSchedulerLogFields = (0, lib_1.getFieldsByType)();
|
|
7
|
+
const SchedulerLogModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
|
+
...rest,
|
|
9
|
+
modelName: "scheduler_logs",
|
|
10
|
+
primaryKey
|
|
11
|
+
});
|
|
12
|
+
exports.SchedulerLogModel = SchedulerLogModel;
|
|
13
|
+
//# sourceMappingURL=SchedulerLogModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchedulerLogModel.js","sourceRoot":"","sources":["../../../src/models/scheduler/SchedulerLogModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAEzB,QAAA,uBAAuB,GAAG,IAAA,qBAAe,GAAkB,CAAC;AAuClE,MAAM,iBAAiB,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAClE,IAAA,kBAAY,EAAiF;IACzF,GAAG,IAAI;IACP,SAAS,EAAE,gBAAgB;IAC3B,UAAU;CACb,CAAC,CAAC;AALM,QAAA,iBAAiB,qBAKvB","sourcesContent":["import { PrismaClient, scheduler_logs, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"scheduler_log_id\";\n\nexport const ModelSchedulerLogFields = getFieldsByType<scheduler_logs>();\n\nexport type ModelSchedulerLog = scheduler_logs\n\nexport type ModelSchedulerLogOmitFields = typeof primaryKey | DefaultOmitFields\n\nexport type ModelSchedulerLogCreateProps = {\n createUserId: number,\n data: Omit<Prisma.scheduler_logsUncheckedCreateInput, ModelSchedulerLogOmitFields>\n}\n\nexport type ModelSchedulerLogUpdateProps = {\n id: number,\n updateUserId: number,\n data: Omit<Prisma.scheduler_logsUncheckedUpdateInput, ModelSchedulerLogOmitFields>\n}\n\nexport type ModelSchedulerLogTrashProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelSchedulerLogRemoveProps = {\n id: number,\n updateUserId: number\n}\n\nexport type ModelSchedulerLogGetProps = {\n id: number\n}\n\nexport type ModelSchedulerLogListProps = {\n where?: Prisma.scheduler_logsWhereInput;\n orderBy?: Prisma.scheduler_logsOrderByWithRelationInput | Prisma.scheduler_logsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\n\nexport const SchedulerLogModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"scheduler_logs\", PrismaClient[\"scheduler_logs\"], scheduler_logs>({\n ...rest,\n modelName: \"scheduler_logs\",\n primaryKey\n });"]}
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export { usersRoutes } from "../routes/user/usersRoutes";
|
|
|
11
11
|
export { accountRoutes } from "../routes/account/accountRoutes";
|
|
12
12
|
export { accountsRoutes } from "../routes/account/accountsRoutes";
|
|
13
13
|
export { subscriptionsRoutes } from "../routes/subscription/subscriptionsRoutes";
|
|
14
|
+
export { schedulersRoutes } from "../routes/scheduler/schedulersRoutes";
|
|
14
15
|
export { businessRoutes } from "../routes/business/businessRoutes";
|
|
15
16
|
export { businessesRoutes } from "../routes/business/businessesRoutes";
|
|
16
17
|
export { userBranchRoutes } from "../routes/branch/userBranchRoutes";
|
package/dist/routes/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accessKeyUtilRoutes = exports.injectionFieldsRoutes = exports.injectionFieldRoutes = exports.locationsRoutes = exports.locationRoutes = exports.regionsRoutes = exports.regionRoutes = exports.filesRoutes = exports.fileRoutes = exports.itemsRoutes = exports.itemRoutes = exports.documentsRoutes = exports.documentRoutes = exports.userBranchesRoutes = exports.userBranchRoutes = exports.businessesRoutes = exports.businessRoutes = exports.subscriptionsRoutes = exports.accountsRoutes = exports.accountRoutes = exports.usersRoutes = exports.userRoutes = exports.userMeRoutes = exports.oneTimeCodesRoutes = exports.oneTimeCodeRoutes = exports.resetPasswordRoutes = exports.accessKeysRoutes = exports.accessKeyRoutes = exports.accessControlRoutes = exports.authRoutes = void 0;
|
|
3
|
+
exports.accessKeyUtilRoutes = exports.injectionFieldsRoutes = exports.injectionFieldRoutes = exports.locationsRoutes = exports.locationRoutes = exports.regionsRoutes = exports.regionRoutes = exports.filesRoutes = exports.fileRoutes = exports.itemsRoutes = exports.itemRoutes = exports.documentsRoutes = exports.documentRoutes = exports.userBranchesRoutes = exports.userBranchRoutes = exports.businessesRoutes = exports.businessRoutes = exports.schedulersRoutes = exports.subscriptionsRoutes = exports.accountsRoutes = exports.accountRoutes = exports.usersRoutes = exports.userRoutes = exports.userMeRoutes = exports.oneTimeCodesRoutes = exports.oneTimeCodeRoutes = exports.resetPasswordRoutes = exports.accessKeysRoutes = exports.accessKeyRoutes = exports.accessControlRoutes = exports.authRoutes = void 0;
|
|
4
4
|
var authRoutes_1 = require("../routes/auth/authRoutes");
|
|
5
5
|
Object.defineProperty(exports, "authRoutes", { enumerable: true, get: function () { return authRoutes_1.authRoutes; } });
|
|
6
6
|
var accessControlRoutes_1 = require("../routes/access_control/accessControlRoutes");
|
|
@@ -27,6 +27,8 @@ var accountsRoutes_1 = require("../routes/account/accountsRoutes");
|
|
|
27
27
|
Object.defineProperty(exports, "accountsRoutes", { enumerable: true, get: function () { return accountsRoutes_1.accountsRoutes; } });
|
|
28
28
|
var subscriptionsRoutes_1 = require("../routes/subscription/subscriptionsRoutes");
|
|
29
29
|
Object.defineProperty(exports, "subscriptionsRoutes", { enumerable: true, get: function () { return subscriptionsRoutes_1.subscriptionsRoutes; } });
|
|
30
|
+
var schedulersRoutes_1 = require("../routes/scheduler/schedulersRoutes");
|
|
31
|
+
Object.defineProperty(exports, "schedulersRoutes", { enumerable: true, get: function () { return schedulersRoutes_1.schedulersRoutes; } });
|
|
30
32
|
var businessRoutes_1 = require("../routes/business/businessRoutes");
|
|
31
33
|
Object.defineProperty(exports, "businessRoutes", { enumerable: true, get: function () { return businessRoutes_1.businessRoutes; } });
|
|
32
34
|
var businessesRoutes_1 = require("../routes/business/businessesRoutes");
|
package/dist/routes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AAEnB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AACxB,yEAAuE;AAA9D,oHAAA,gBAAgB,OAAA;AAEzB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,8EAA4E;AAAnE,sHAAA,iBAAiB,OAAA;AAC1B,gFAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAE3B,2DAAyD;AAAhD,4GAAA,YAAY,OAAA;AAErB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,gEAA8D;AAArD,8GAAA,aAAa,OAAA;AACtB,kEAAgE;AAAvD,gHAAA,cAAc,OAAA;AAEvB,iFAA+E;AAAtE,0HAAA,mBAAmB,OAAA;AAE5B,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,uEAAqE;AAA5D,oHAAA,gBAAgB,OAAA;AAEzB,qEAAmE;AAA1D,oHAAA,gBAAgB,OAAA;AACzB,yEAAuE;AAA9D,wHAAA,kBAAkB,OAAA;AAE3B,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,6DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,+DAA6D;AAApD,8GAAA,aAAa,OAAA;AAEtB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,sFAAoF;AAA3E,4HAAA,oBAAoB,OAAA;AAC7B,wFAAsF;AAA7E,8HAAA,qBAAqB,OAAA;AAE9B,0EAAwE;AAA/D,0HAAA,mBAAmB,OAAA;AAC5B,2FAA2F","sourcesContent":["export { authRoutes } from \"@/routes/auth/authRoutes\"\n\nexport { accessControlRoutes } from \"@/routes/access_control/accessControlRoutes\"\n\nexport { accessKeyRoutes } from \"@/routes/access_key/accessKeyRoutes\"\nexport { accessKeysRoutes } from \"@/routes/access_key/accessKeysRoutes\"\n\nexport { resetPasswordRoutes } from \"@/routes/reset_password/resetPasswordRoutes\"\n\nexport { oneTimeCodeRoutes } from \"@/routes/one_time_code/oneTimeCodeRoutes\"\nexport { oneTimeCodesRoutes } from \"@/routes/one_time_code/oneTimeCodesRoutes\"\n\nexport { userMeRoutes } from \"@/routes/user/userMeRoutes\"\n\nexport { userRoutes } from \"@/routes/user/userRoutes\"\nexport { usersRoutes } from \"@/routes/user/usersRoutes\"\n\nexport { accountRoutes } from \"@/routes/account/accountRoutes\"\nexport { accountsRoutes } from \"@/routes/account/accountsRoutes\"\n\nexport { subscriptionsRoutes } from \"@/routes/subscription/subscriptionsRoutes\"\n\nexport { businessRoutes } from \"@/routes/business/businessRoutes\"\nexport { businessesRoutes } from \"@/routes/business/businessesRoutes\"\n\nexport { userBranchRoutes } from \"@/routes/branch/userBranchRoutes\"\nexport { userBranchesRoutes } from \"@/routes/branch/userBranchesRoutes\"\n\nexport { documentRoutes } from \"@/routes/document/documentRoutes\"\nexport { documentsRoutes } from \"@/routes/document/documentsRoutes\"\n\nexport { itemRoutes } from \"@/routes/item/itemRoutes\"\nexport { itemsRoutes } from \"@/routes/item/itemsRoutes\"\n\nexport { fileRoutes } from \"@/routes/file/fileRoutes\"\nexport { filesRoutes } from \"@/routes/file/filesRoutes\"\n\nexport { regionRoutes } from \"@/routes/region/regionRoutes\"\nexport { regionsRoutes } from \"@/routes/region/regionsRoutes\"\n\nexport { locationRoutes } from \"@/routes/location/locationRoutes\"\nexport { locationsRoutes } from \"@/routes/location/locationsRoutes\"\n\nexport { injectionFieldRoutes } from \"@/routes/injection_field/injectionFieldRoutes\"\nexport { injectionFieldsRoutes } from \"@/routes/injection_field/injectionFieldsRoutes\"\n\nexport { accessKeyUtilRoutes } from \"@/routes/utils/accessKeyUtilRoutes\"\n// export { changePasswordUtilRoutes } from \"@/routes/utils/unuse/changePasswordUtilRoutes\"\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":";;;AAAA,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AAEnB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,uEAAqE;AAA5D,kHAAA,eAAe,OAAA;AACxB,yEAAuE;AAA9D,oHAAA,gBAAgB,OAAA;AAEzB,mFAAiF;AAAxE,0HAAA,mBAAmB,OAAA;AAE5B,8EAA4E;AAAnE,sHAAA,iBAAiB,OAAA;AAC1B,gFAA8E;AAArE,wHAAA,kBAAkB,OAAA;AAE3B,2DAAyD;AAAhD,4GAAA,YAAY,OAAA;AAErB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,gEAA8D;AAArD,8GAAA,aAAa,OAAA;AACtB,kEAAgE;AAAvD,gHAAA,cAAc,OAAA;AAEvB,iFAA+E;AAAtE,0HAAA,mBAAmB,OAAA;AAE5B,wEAAsE;AAA7D,oHAAA,gBAAgB,OAAA;AAEzB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,uEAAqE;AAA5D,oHAAA,gBAAgB,OAAA;AAEzB,qEAAmE;AAA1D,oHAAA,gBAAgB,OAAA;AACzB,yEAAuE;AAA9D,wHAAA,kBAAkB,OAAA;AAE3B,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,uDAAqD;AAA5C,wGAAA,UAAU,OAAA;AACnB,yDAAuD;AAA9C,0GAAA,WAAW,OAAA;AAEpB,6DAA2D;AAAlD,4GAAA,YAAY,OAAA;AACrB,+DAA6D;AAApD,8GAAA,aAAa,OAAA;AAEtB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,qEAAmE;AAA1D,kHAAA,eAAe,OAAA;AAExB,sFAAoF;AAA3E,4HAAA,oBAAoB,OAAA;AAC7B,wFAAsF;AAA7E,8HAAA,qBAAqB,OAAA;AAE9B,0EAAwE;AAA/D,0HAAA,mBAAmB,OAAA;AAC5B,2FAA2F","sourcesContent":["export { authRoutes } from \"@/routes/auth/authRoutes\"\n\nexport { accessControlRoutes } from \"@/routes/access_control/accessControlRoutes\"\n\nexport { accessKeyRoutes } from \"@/routes/access_key/accessKeyRoutes\"\nexport { accessKeysRoutes } from \"@/routes/access_key/accessKeysRoutes\"\n\nexport { resetPasswordRoutes } from \"@/routes/reset_password/resetPasswordRoutes\"\n\nexport { oneTimeCodeRoutes } from \"@/routes/one_time_code/oneTimeCodeRoutes\"\nexport { oneTimeCodesRoutes } from \"@/routes/one_time_code/oneTimeCodesRoutes\"\n\nexport { userMeRoutes } from \"@/routes/user/userMeRoutes\"\n\nexport { userRoutes } from \"@/routes/user/userRoutes\"\nexport { usersRoutes } from \"@/routes/user/usersRoutes\"\n\nexport { accountRoutes } from \"@/routes/account/accountRoutes\"\nexport { accountsRoutes } from \"@/routes/account/accountsRoutes\"\n\nexport { subscriptionsRoutes } from \"@/routes/subscription/subscriptionsRoutes\"\n\nexport { schedulersRoutes } from \"@/routes/scheduler/schedulersRoutes\"\n\nexport { businessRoutes } from \"@/routes/business/businessRoutes\"\nexport { businessesRoutes } from \"@/routes/business/businessesRoutes\"\n\nexport { userBranchRoutes } from \"@/routes/branch/userBranchRoutes\"\nexport { userBranchesRoutes } from \"@/routes/branch/userBranchesRoutes\"\n\nexport { documentRoutes } from \"@/routes/document/documentRoutes\"\nexport { documentsRoutes } from \"@/routes/document/documentsRoutes\"\n\nexport { itemRoutes } from \"@/routes/item/itemRoutes\"\nexport { itemsRoutes } from \"@/routes/item/itemsRoutes\"\n\nexport { fileRoutes } from \"@/routes/file/fileRoutes\"\nexport { filesRoutes } from \"@/routes/file/filesRoutes\"\n\nexport { regionRoutes } from \"@/routes/region/regionRoutes\"\nexport { regionsRoutes } from \"@/routes/region/regionsRoutes\"\n\nexport { locationRoutes } from \"@/routes/location/locationRoutes\"\nexport { locationsRoutes } from \"@/routes/location/locationsRoutes\"\n\nexport { injectionFieldRoutes } from \"@/routes/injection_field/injectionFieldRoutes\"\nexport { injectionFieldsRoutes } from \"@/routes/injection_field/injectionFieldsRoutes\"\n\nexport { accessKeyUtilRoutes } from \"@/routes/utils/accessKeyUtilRoutes\"\n// export { changePasswordUtilRoutes } from \"@/routes/utils/unuse/changePasswordUtilRoutes\"\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schedulerLogRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const router = (0, express_1.Router)();
|
|
6
|
+
const route_1 = require("../../middlewares/route");
|
|
7
|
+
const controllers_1 = require("../../controllers");
|
|
8
|
+
/** scheduler/log/ - Create Scheduler Log */
|
|
9
|
+
router.post("/", route_1.validateRouteSchedulerLogCreate, controllers_1.createSchedulerLog);
|
|
10
|
+
/** scheduler/log/:id - Get Scheduler Log */
|
|
11
|
+
router.get("/:schedulerLogId", route_1.validateRouteSchedulerLogGet, controllers_1.getSchedulerLog);
|
|
12
|
+
exports.schedulerLogRoutes = router;
|
|
13
|
+
//# sourceMappingURL=schedulerLogRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerLogRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulerLogRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAoG;AAEpG,+CAAoE;AAEpE,4CAA4C;AAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,uCAA+B,EAAE,gCAAkB,CAAC,CAAC;AAEtE,4CAA4C;AAC5C,MAAM,CAAC,GAAG,CAAC,kBAAkB,EAAE,oCAA4B,EAAE,6BAAe,CAAC,CAAC;AAEjE,QAAA,kBAAkB,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { validateRouteSchedulerLogGet, validateRouteSchedulerLogCreate } from \"@/middlewares/route\";\n\nimport { getSchedulerLog, createSchedulerLog } from \"@/controllers\";\n\n/** scheduler/log/ - Create Scheduler Log */\nrouter.post(\"/\", validateRouteSchedulerLogCreate, createSchedulerLog);\n\n/** scheduler/log/:id - Get Scheduler Log */\nrouter.get(\"/:schedulerLogId\", validateRouteSchedulerLogGet, getSchedulerLog);\n\nexport const schedulerLogRoutes: Router = router\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schedulerLogsRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const router = (0, express_1.Router)();
|
|
6
|
+
const route_1 = require("../../middlewares/route");
|
|
7
|
+
const controllers_1 = require("../../controllers");
|
|
8
|
+
/** scheduler/logs - List Scheduler Logs */
|
|
9
|
+
router.get("/", route_1.validateRouteSchedulerLogList, controllers_1.listSchedulerLogs);
|
|
10
|
+
/** scheduler/logs/delete - Delete Scheduler Logs */
|
|
11
|
+
router.post("/delete", route_1.validateRouteSchedulerLogDelete, controllers_1.deleteSchedulerLogs);
|
|
12
|
+
exports.schedulerLogsRoutes = router;
|
|
13
|
+
//# sourceMappingURL=schedulerLogsRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulerLogsRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulerLogsRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAqG;AAErG,+CAAuE;AAEvE,2CAA2C;AAC3C,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,qCAA6B,EAAE,+BAAiB,CAAC,CAAC;AAElE,oDAAoD;AACpD,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,uCAA+B,EAAE,iCAAmB,CAAC,CAAC;AAEhE,QAAA,mBAAmB,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { validateRouteSchedulerLogList, validateRouteSchedulerLogDelete } from \"@/middlewares/route\";\n\nimport { listSchedulerLogs, deleteSchedulerLogs } from \"@/controllers\";\n\n/** scheduler/logs - List Scheduler Logs */\nrouter.get(\"/\", validateRouteSchedulerLogList, listSchedulerLogs);\n\n/** scheduler/logs/delete - Delete Scheduler Logs */\nrouter.post(\"/delete\", validateRouteSchedulerLogDelete, deleteSchedulerLogs);\n\nexport const schedulerLogsRoutes: Router = router\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schedulersRoutes = void 0;
|
|
4
|
+
const express_1 = require("express");
|
|
5
|
+
const router = (0, express_1.Router)();
|
|
6
|
+
const schedulerLogRoutes_1 = require("./schedulerLogRoutes");
|
|
7
|
+
const schedulerLogsRoutes_1 = require("./schedulerLogsRoutes");
|
|
8
|
+
/** scheduler logs - Merge Scheduler Logs Routes */
|
|
9
|
+
router.use(["/log"], schedulerLogRoutes_1.schedulerLogRoutes);
|
|
10
|
+
router.use(["/logs"], schedulerLogsRoutes_1.schedulerLogsRoutes);
|
|
11
|
+
exports.schedulersRoutes = router;
|
|
12
|
+
//# sourceMappingURL=schedulersRoutes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulersRoutes.js","sourceRoot":"","sources":["../../../src/routes/scheduler/schedulersRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,6DAAyD;AACzD,+DAA2D;AAE3D,mDAAmD;AACnD,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,uCAAkB,CAAC,CAAA;AACxC,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,EAAE,yCAAmB,CAAC,CAAA;AAE7B,QAAA,gBAAgB,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { schedulerLogRoutes } from \"./schedulerLogRoutes\"\nimport { schedulerLogsRoutes } from \"./schedulerLogsRoutes\"\n\n/** scheduler logs - Merge Scheduler Logs Routes */\nrouter.use([\"/log\"], schedulerLogRoutes)\nrouter.use([\"/logs\"], schedulerLogsRoutes)\n\nexport const schedulersRoutes: Router = router\n"]}
|
|
@@ -6,9 +6,9 @@ const router = (0, express_1.Router)();
|
|
|
6
6
|
const route_1 = require("../../middlewares/route");
|
|
7
7
|
const controllers_1 = require("../../controllers");
|
|
8
8
|
/** user/me/password - Change Password User Me */
|
|
9
|
-
router.
|
|
9
|
+
router.put("/password", route_1.validateRouteUserMeChangePassword, controllers_1.changePasswordUserMe);
|
|
10
10
|
/** user/me - Update User Me */
|
|
11
|
-
router.
|
|
11
|
+
router.put("/", route_1.validateRouteUserMeUpdate, controllers_1.updateUserMe);
|
|
12
12
|
/** user/me - Delete User Me */
|
|
13
13
|
router.delete("/", route_1.validateRouteUserMeDelete, controllers_1.deleteUserMe);
|
|
14
14
|
/** user/me - Get User Me */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userMeRoutes.js","sourceRoot":"","sources":["../../../src/routes/user/userMeRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAsJ;AAEtJ,+CAA4F;AAE5F,iDAAiD;AACjD,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"userMeRoutes.js","sourceRoot":"","sources":["../../../src/routes/user/userMeRoutes.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,gBAAM,GAAE,CAAC;AAExB,+CAAsJ;AAEtJ,+CAA4F;AAE5F,iDAAiD;AACjD,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,yCAAiC,EAAE,kCAAoB,CAAC,CAAC;AAEjF,+BAA+B;AAC/B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,iCAAyB,EAAE,0BAAY,CAAC,CAAC;AAEzD,+BAA+B;AAC/B,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,iCAAyB,EAAE,0BAAY,CAAC,CAAC;AAE5D,4BAA4B;AAC5B,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,8BAAsB,EAAE,uBAAS,CAAC,CAAC;AAEtC,QAAA,YAAY,GAAW,MAAM,CAAA","sourcesContent":["import { Router } from \"express\";\n\nconst router = Router();\n\nimport { validateRouteUserMeGet, validateRouteUserMeUpdate, validateRouteUserMeChangePassword, validateRouteUserMeDelete } from \"@/middlewares/route\";\n\nimport { getUserMe, updateUserMe, changePasswordUserMe, deleteUserMe } from \"@/controllers\";\n\n/** user/me/password - Change Password User Me */\nrouter.put(\"/password\", validateRouteUserMeChangePassword, changePasswordUserMe);\n\n/** user/me - Update User Me */\nrouter.put(\"/\", validateRouteUserMeUpdate, updateUserMe);\n\n/** user/me - Delete User Me */\nrouter.delete(\"/\", validateRouteUserMeDelete, deleteUserMe);\n\n/** user/me - Get User Me */\nrouter.get(\"/\", validateRouteUserMeGet, getUserMe);\n\nexport const userMeRoutes: Router = router\n"]}
|
|
@@ -2,6 +2,7 @@ export { schemaRouteDocumentList } from "./schemaDocument";
|
|
|
2
2
|
export { schemaRouteRepositoryList } from "./schemaRepository";
|
|
3
3
|
export { schemaRouteUserList } from "./schemaUser";
|
|
4
4
|
export { schemaRouteBusinessList } from "./schemaBusiness";
|
|
5
|
+
export { schemaRouteSchedulerLogList } from "./schemaSchedulerLog";
|
|
5
6
|
export { schemaRouteAccessKeyList } from "./schemaAccessKey";
|
|
6
7
|
export { schemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
|
|
7
8
|
export { schemaRouteAccountList } from "./schemaAccount";
|
|
@@ -20,6 +21,7 @@ export type { SchemaRouteAccountList } from "./schemaAccount";
|
|
|
20
21
|
export type { SchemaRouteSubscriptionPlanList } from "./schemaSubscriptionPlan";
|
|
21
22
|
export type { SchemaRouteSubscriptionAccountList } from "./schemaSubscriptionAccount";
|
|
22
23
|
export type { SchemaRouteBusinessList } from "./schemaBusiness";
|
|
24
|
+
export type { SchemaRouteSchedulerLogList } from "./schemaSchedulerLog";
|
|
23
25
|
export type { SchemaRouteAccessKeyList } from "./schemaAccessKey";
|
|
24
26
|
export type { SchemaRouteOneTimeCodeList } from "./schemaOneTimeCode";
|
|
25
27
|
export type { SchemaRouteUserBranchList } from "./schemaUserBranch";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.schemaRouteAccessControlListPolicyOptions = exports.schemaQueryList = exports.schemaRouteRegionList = exports.schemaRouteLocationList = exports.schemaRouteFileList = exports.schemaRouteItemList = exports.schemaRouteUserBranchList = exports.schemaRouteSubscriptionAccountList = exports.schemaRouteSubscriptionPlanList = exports.schemaRouteAccountList = exports.schemaRouteOneTimeCodeList = exports.schemaRouteAccessKeyList = exports.schemaRouteBusinessList = exports.schemaRouteUserList = exports.schemaRouteRepositoryList = exports.schemaRouteDocumentList = void 0;
|
|
3
|
+
exports.schemaRouteAccessControlListPolicyOptions = exports.schemaQueryList = exports.schemaRouteRegionList = exports.schemaRouteLocationList = exports.schemaRouteFileList = exports.schemaRouteItemList = exports.schemaRouteUserBranchList = exports.schemaRouteSubscriptionAccountList = exports.schemaRouteSubscriptionPlanList = exports.schemaRouteAccountList = exports.schemaRouteOneTimeCodeList = exports.schemaRouteAccessKeyList = exports.schemaRouteSchedulerLogList = exports.schemaRouteBusinessList = exports.schemaRouteUserList = exports.schemaRouteRepositoryList = exports.schemaRouteDocumentList = void 0;
|
|
4
4
|
var schemaDocument_1 = require("./schemaDocument");
|
|
5
5
|
Object.defineProperty(exports, "schemaRouteDocumentList", { enumerable: true, get: function () { return schemaDocument_1.schemaRouteDocumentList; } });
|
|
6
6
|
var schemaRepository_1 = require("./schemaRepository");
|
|
@@ -9,6 +9,8 @@ var schemaUser_1 = require("./schemaUser");
|
|
|
9
9
|
Object.defineProperty(exports, "schemaRouteUserList", { enumerable: true, get: function () { return schemaUser_1.schemaRouteUserList; } });
|
|
10
10
|
var schemaBusiness_1 = require("./schemaBusiness");
|
|
11
11
|
Object.defineProperty(exports, "schemaRouteBusinessList", { enumerable: true, get: function () { return schemaBusiness_1.schemaRouteBusinessList; } });
|
|
12
|
+
var schemaSchedulerLog_1 = require("./schemaSchedulerLog");
|
|
13
|
+
Object.defineProperty(exports, "schemaRouteSchedulerLogList", { enumerable: true, get: function () { return schemaSchedulerLog_1.schemaRouteSchedulerLogList; } });
|
|
12
14
|
var schemaAccessKey_1 = require("./schemaAccessKey");
|
|
13
15
|
Object.defineProperty(exports, "schemaRouteAccessKeyList", { enumerable: true, get: function () { return schemaAccessKey_1.schemaRouteAccessKeyList; } });
|
|
14
16
|
var schemaOneTimeCode_1 = require("./schemaOneTimeCode");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/index.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,qDAA4D;AAAnD,2HAAA,wBAAwB,OAAA;AACjC,yDAAgE;AAAvD,+HAAA,0BAA0B,OAAA;AACnC,iDAAwD;AAA/C,uHAAA,sBAAsB,OAAA;AAC/B,mEAA0E;AAAjE,yIAAA,+BAA+B,OAAA;AACxC,yEAAgF;AAAvE,+IAAA,kCAAkC,OAAA;AAC3C,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,+CAAsD;AAA7C,qHAAA,qBAAqB,OAAA;AAC9B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,6DAAiF;AAAxE,gJAAA,yCAAyC,OAAA","sourcesContent":["export { schemaRouteDocumentList } from \"./schemaDocument\"\nexport { schemaRouteRepositoryList } from \"./schemaRepository\"\nexport { schemaRouteUserList } from \"./schemaUser\"\nexport { schemaRouteBusinessList } from \"./schemaBusiness\"\nexport { schemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport { schemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport { schemaRouteAccountList } from \"./schemaAccount\"\nexport { schemaRouteSubscriptionPlanList } from \"./schemaSubscriptionPlan\"\nexport { schemaRouteSubscriptionAccountList } from \"./schemaSubscriptionAccount\"\nexport { schemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport { schemaRouteItemList } from \"./schemaItem\"\nexport { schemaRouteFileList } from \"./schemaFile\"\nexport { schemaRouteLocationList } from \"./schemaLocation\"\nexport { schemaRouteRegionList } from \"./schemaRegion\"\nexport { schemaQueryList } from \"./schemaQueryList\"\nexport { schemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\"\n\nexport type { QueryList } from \"./schemaQueryList\"\nexport type { SchemaRouteUserList } from \"./schemaUser\"\nexport type { SchemaRouteAccountList } from \"./schemaAccount\"\nexport type { SchemaRouteSubscriptionPlanList } from \"./schemaSubscriptionPlan\"\nexport type { SchemaRouteSubscriptionAccountList } from \"./schemaSubscriptionAccount\"\nexport type { SchemaRouteBusinessList } from \"./schemaBusiness\"\nexport type { SchemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport type { SchemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport type { SchemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport type { SchemaRouteItemList } from \"./schemaItem\"\nexport type { SchemaRouteFileList } from \"./schemaFile\"\nexport type { SchemaRouteRegionList } from \"./schemaRegion\"\nexport type { SchemaRouteDocumentList } from \"./schemaDocument\"\nexport type { SchemaRouteRepositoryList } from \"./schemaRepository\"\nexport type { SchemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\""]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/index.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,2DAAkE;AAAzD,iIAAA,2BAA2B,OAAA;AACpC,qDAA4D;AAAnD,2HAAA,wBAAwB,OAAA;AACjC,yDAAgE;AAAvD,+HAAA,0BAA0B,OAAA;AACnC,iDAAwD;AAA/C,uHAAA,sBAAsB,OAAA;AAC/B,mEAA0E;AAAjE,yIAAA,+BAA+B,OAAA;AACxC,yEAAgF;AAAvE,+IAAA,kCAAkC,OAAA;AAC3C,uDAA8D;AAArD,6HAAA,yBAAyB,OAAA;AAClC,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,2CAAkD;AAAzC,iHAAA,mBAAmB,OAAA;AAC5B,mDAA0D;AAAjD,yHAAA,uBAAuB,OAAA;AAChC,+CAAsD;AAA7C,qHAAA,qBAAqB,OAAA;AAC9B,qDAAmD;AAA1C,kHAAA,eAAe,OAAA;AACxB,6DAAiF;AAAxE,gJAAA,yCAAyC,OAAA","sourcesContent":["export { schemaRouteDocumentList } from \"./schemaDocument\"\nexport { schemaRouteRepositoryList } from \"./schemaRepository\"\nexport { schemaRouteUserList } from \"./schemaUser\"\nexport { schemaRouteBusinessList } from \"./schemaBusiness\"\nexport { schemaRouteSchedulerLogList } from \"./schemaSchedulerLog\"\nexport { schemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport { schemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport { schemaRouteAccountList } from \"./schemaAccount\"\nexport { schemaRouteSubscriptionPlanList } from \"./schemaSubscriptionPlan\"\nexport { schemaRouteSubscriptionAccountList } from \"./schemaSubscriptionAccount\"\nexport { schemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport { schemaRouteItemList } from \"./schemaItem\"\nexport { schemaRouteFileList } from \"./schemaFile\"\nexport { schemaRouteLocationList } from \"./schemaLocation\"\nexport { schemaRouteRegionList } from \"./schemaRegion\"\nexport { schemaQueryList } from \"./schemaQueryList\"\nexport { schemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\"\n\nexport type { QueryList } from \"./schemaQueryList\"\nexport type { SchemaRouteUserList } from \"./schemaUser\"\nexport type { SchemaRouteAccountList } from \"./schemaAccount\"\nexport type { SchemaRouteSubscriptionPlanList } from \"./schemaSubscriptionPlan\"\nexport type { SchemaRouteSubscriptionAccountList } from \"./schemaSubscriptionAccount\"\nexport type { SchemaRouteBusinessList } from \"./schemaBusiness\"\nexport type { SchemaRouteSchedulerLogList } from \"./schemaSchedulerLog\"\nexport type { SchemaRouteAccessKeyList } from \"./schemaAccessKey\"\nexport type { SchemaRouteOneTimeCodeList } from \"./schemaOneTimeCode\"\nexport type { SchemaRouteUserBranchList } from \"./schemaUserBranch\"\nexport type { SchemaRouteItemList } from \"./schemaItem\"\nexport type { SchemaRouteFileList } from \"./schemaFile\"\nexport type { SchemaRouteRegionList } from \"./schemaRegion\"\nexport type { SchemaRouteDocumentList } from \"./schemaDocument\"\nexport type { SchemaRouteRepositoryList } from \"./schemaRepository\"\nexport type { SchemaRouteAccessControlListPolicyOptions } from \"./schemaAccessControl\""]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.schemaRouteSchedulerLogList = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/** Route Parameters */
|
|
6
|
+
exports.schemaRouteSchedulerLogList = zod_1.z.object({
|
|
7
|
+
// userType: z
|
|
8
|
+
// .enum(["administrator", "customer", "worker", "retailer"])
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=schemaSchedulerLog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schemaSchedulerLog.js","sourceRoot":"","sources":["../../../../src/schema/middleware/route/schemaSchedulerLog.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uBAAuB;AACV,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;AAChD,cAAc;AACd,iEAAiE;CACpE,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\n\n/** Route Parameters */\nexport const schemaRouteSchedulerLogList = z.object({\n // userType: z\n // .enum([\"administrator\", \"customer\", \"worker\", \"retailer\"])\n});\n\nexport type SchemaRouteSchedulerLogList = z.infer<typeof schemaRouteSchedulerLogList>;"]}
|
|
@@ -74,5 +74,7 @@ export { schemaRegionStateCreatePayload, schemaRegionStateDeletePayload, schemaR
|
|
|
74
74
|
export type { SchemaRegionStateCreatePayload, SchemaRegionStateDeletePayload } from "./region/schemaRegionState";
|
|
75
75
|
export { schemaRegionAreaCreatePayload, schemaRegionAreaDeletePayload, schemaRegionAreaUpdatePayload, } from "./region/schemaRegionArea";
|
|
76
76
|
export type { SchemaRegionAreaCreatePayload, SchemaRegionAreaDeletePayload, SchemaRegionAreaUpdatePayload } from "./region/schemaRegionArea";
|
|
77
|
+
export { schemaSchedulerLogCreatePayload, schemaSchedulerLogDeletePayload } from "./scheduler/schemaSchedulerLog";
|
|
78
|
+
export type { SchemaSchedulerLogCreatePayload, SchedulerLogFlowTypeEnum, SchemaSchedulerLogDeletePayload } from "./scheduler/schemaSchedulerLog";
|
|
77
79
|
export { schemaAccessKeyUtilValidatePayload, schemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|
|
78
80
|
export type { SchemaAccessKeyUtilValidatePayload, SchemaAccessKeyUtilAccountOwnerPayload } from "./utils/schemaAccessKeyUtil";
|