@kl1/contracts 1.0.99-uat → 1.1.0-uat
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/index.js +957 -832
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +956 -832
- package/dist/index.mjs.map +1 -1
- package/dist/src/chat/index.d.ts +57 -57
- package/dist/src/chat/schema.d.ts +8 -8
- package/dist/src/chat/schema.d.ts.map +1 -1
- package/dist/src/chat/validation.d.ts +15 -15
- package/dist/src/chat/validation.d.ts.map +1 -1
- package/dist/src/contract.d.ts +2103 -1260
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/instagram/index.d.ts +12 -12
- package/dist/src/line/index.d.ts +12 -12
- package/dist/src/mail/account-contract.d.ts +132 -132
- package/dist/src/mail/index.d.ts +10 -0
- package/dist/src/mail/index.d.ts.map +1 -1
- package/dist/src/mail/mail-contract.d.ts +1612 -1152
- package/dist/src/mail/mail-contract.d.ts.map +1 -1
- package/dist/src/mail/mail-server-contract.d.ts +477 -18
- package/dist/src/mail/mail-server-contract.d.ts.map +1 -1
- package/dist/src/mail/message-contract.d.ts +54 -54
- package/dist/src/mail/room-contract.d.ts +951 -948
- package/dist/src/mail/room-contract.d.ts.map +1 -1
- package/dist/src/mail/schemas/account-validation.schema.d.ts +140 -140
- package/dist/src/mail/schemas/account-validation.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/account.schema.d.ts +32 -32
- package/dist/src/mail/schemas/message.schema.d.ts +42 -42
- package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/room-validation.schema.d.ts +319 -316
- package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
- package/dist/src/mail/schemas/room.schema.d.ts +683 -259
- package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
- package/dist/src/messenger/index.d.ts +12 -12
- package/dist/src/user/index.d.ts +388 -4
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/user/validation.d.ts +7 -0
- package/dist/src/user/validation.d.ts.map +1 -1
- package/dist/src/viber/index.d.ts +12 -12
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"room.schema.d.ts","sourceRoot":"","sources":["../../../../src/mail/schemas/room.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;EAOpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;
|
1
|
+
{"version":3,"file":"room.schema.d.ts","sourceRoot":"","sources":["../../../../src/mail/schemas/room.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;EAOpB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;AAaH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBzB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC"}
|
@@ -224,7 +224,7 @@ export declare const messengerContract: {
|
|
224
224
|
phone: string | null;
|
225
225
|
} | undefined;
|
226
226
|
}>;
|
227
|
-
|
227
|
+
status: z.ZodNumber;
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
229
229
|
id: string;
|
230
230
|
channel: {
|
@@ -252,6 +252,7 @@ export declare const messengerContract: {
|
|
252
252
|
} | undefined;
|
253
253
|
};
|
254
254
|
direction: "incoming" | "outgoing" | "system";
|
255
|
+
status: number;
|
255
256
|
createdAt: string;
|
256
257
|
updatedAt: string;
|
257
258
|
actor: {
|
@@ -289,7 +290,6 @@ export declare const messengerContract: {
|
|
289
290
|
} | null;
|
290
291
|
lastMessage?: string | undefined;
|
291
292
|
handleTime?: number | undefined;
|
292
|
-
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
293
293
|
}, {
|
294
294
|
id: string;
|
295
295
|
channel: {
|
@@ -317,6 +317,7 @@ export declare const messengerContract: {
|
|
317
317
|
} | undefined;
|
318
318
|
};
|
319
319
|
direction: "incoming" | "outgoing" | "system";
|
320
|
+
status: number;
|
320
321
|
createdAt: string;
|
321
322
|
updatedAt: string;
|
322
323
|
actor: {
|
@@ -354,7 +355,6 @@ export declare const messengerContract: {
|
|
354
355
|
} | null;
|
355
356
|
lastMessage?: string | undefined;
|
356
357
|
handleTime?: number | undefined;
|
357
|
-
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
358
358
|
}>;
|
359
359
|
message: z.ZodObject<{
|
360
360
|
message: z.ZodOptional<z.ZodString>;
|
@@ -516,6 +516,7 @@ export declare const messengerContract: {
|
|
516
516
|
} | undefined;
|
517
517
|
};
|
518
518
|
direction: "incoming" | "outgoing" | "system";
|
519
|
+
status: number;
|
519
520
|
createdAt: string;
|
520
521
|
updatedAt: string;
|
521
522
|
actor: {
|
@@ -553,7 +554,6 @@ export declare const messengerContract: {
|
|
553
554
|
} | null;
|
554
555
|
lastMessage?: string | undefined;
|
555
556
|
handleTime?: number | undefined;
|
556
|
-
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
557
557
|
};
|
558
558
|
}, {
|
559
559
|
message: {
|
@@ -611,6 +611,7 @@ export declare const messengerContract: {
|
|
611
611
|
} | undefined;
|
612
612
|
};
|
613
613
|
direction: "incoming" | "outgoing" | "system";
|
614
|
+
status: number;
|
614
615
|
createdAt: string;
|
615
616
|
updatedAt: string;
|
616
617
|
actor: {
|
@@ -648,7 +649,6 @@ export declare const messengerContract: {
|
|
648
649
|
} | null;
|
649
650
|
lastMessage?: string | undefined;
|
650
651
|
handleTime?: number | undefined;
|
651
|
-
messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
|
652
652
|
};
|
653
653
|
}>;
|
654
654
|
method: "POST";
|
@@ -680,7 +680,7 @@ export declare const messengerContract: {
|
|
680
680
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
681
681
|
lastMessage: z.ZodString;
|
682
682
|
handleTime: z.ZodNumber;
|
683
|
-
|
683
|
+
closeAt: z.ZodDate;
|
684
684
|
lastMessageAt: z.ZodNullable<z.ZodDate>;
|
685
685
|
status: z.ZodNumber;
|
686
686
|
unreadCount: z.ZodNumber;
|
@@ -2658,6 +2658,7 @@ export declare const messengerContract: {
|
|
2658
2658
|
firstResponseTime: number;
|
2659
2659
|
lastMessage: string;
|
2660
2660
|
handleTime: number;
|
2661
|
+
closeAt: Date;
|
2661
2662
|
unreadCount: number;
|
2662
2663
|
firstResponseAt: Date;
|
2663
2664
|
isLatest: boolean;
|
@@ -2817,7 +2818,6 @@ export declare const messengerContract: {
|
|
2817
2818
|
telephonySignature: string | null;
|
2818
2819
|
};
|
2819
2820
|
};
|
2820
|
-
closedAt: Date;
|
2821
2821
|
lastMessageAt: Date | null;
|
2822
2822
|
cxlog: {
|
2823
2823
|
id: string;
|
@@ -2972,6 +2972,7 @@ export declare const messengerContract: {
|
|
2972
2972
|
firstResponseTime: number;
|
2973
2973
|
lastMessage: string;
|
2974
2974
|
handleTime: number;
|
2975
|
+
closeAt: Date;
|
2975
2976
|
unreadCount: number;
|
2976
2977
|
firstResponseAt: Date;
|
2977
2978
|
isLatest: boolean;
|
@@ -3131,7 +3132,6 @@ export declare const messengerContract: {
|
|
3131
3132
|
telephonySignature: string | null;
|
3132
3133
|
};
|
3133
3134
|
};
|
3134
|
-
closedAt: Date;
|
3135
3135
|
lastMessageAt: Date | null;
|
3136
3136
|
cxlog: {
|
3137
3137
|
id: string;
|
@@ -5032,6 +5032,7 @@ export declare const messengerContract: {
|
|
5032
5032
|
firstResponseTime: number;
|
5033
5033
|
lastMessage: string;
|
5034
5034
|
handleTime: number;
|
5035
|
+
closeAt: Date;
|
5035
5036
|
unreadCount: number;
|
5036
5037
|
firstResponseAt: Date;
|
5037
5038
|
isLatest: boolean;
|
@@ -5191,7 +5192,6 @@ export declare const messengerContract: {
|
|
5191
5192
|
telephonySignature: string | null;
|
5192
5193
|
};
|
5193
5194
|
};
|
5194
|
-
closedAt: Date;
|
5195
5195
|
lastMessageAt: Date | null;
|
5196
5196
|
cxlog: {
|
5197
5197
|
id: string;
|
@@ -5672,6 +5672,7 @@ export declare const messengerContract: {
|
|
5672
5672
|
firstResponseTime: number;
|
5673
5673
|
lastMessage: string;
|
5674
5674
|
handleTime: number;
|
5675
|
+
closeAt: Date;
|
5675
5676
|
unreadCount: number;
|
5676
5677
|
firstResponseAt: Date;
|
5677
5678
|
isLatest: boolean;
|
@@ -5831,7 +5832,6 @@ export declare const messengerContract: {
|
|
5831
5832
|
telephonySignature: string | null;
|
5832
5833
|
};
|
5833
5834
|
};
|
5834
|
-
closedAt: Date;
|
5835
5835
|
lastMessageAt: Date | null;
|
5836
5836
|
cxlog: {
|
5837
5837
|
id: string;
|
@@ -6314,6 +6314,7 @@ export declare const messengerContract: {
|
|
6314
6314
|
firstResponseTime: number;
|
6315
6315
|
lastMessage: string;
|
6316
6316
|
handleTime: number;
|
6317
|
+
closeAt: Date;
|
6317
6318
|
unreadCount: number;
|
6318
6319
|
firstResponseAt: Date;
|
6319
6320
|
isLatest: boolean;
|
@@ -6473,7 +6474,6 @@ export declare const messengerContract: {
|
|
6473
6474
|
telephonySignature: string | null;
|
6474
6475
|
};
|
6475
6476
|
};
|
6476
|
-
closedAt: Date;
|
6477
6477
|
lastMessageAt: Date | null;
|
6478
6478
|
cxlog: {
|
6479
6479
|
id: string;
|
@@ -6957,6 +6957,7 @@ export declare const messengerContract: {
|
|
6957
6957
|
firstResponseTime: number;
|
6958
6958
|
lastMessage: string;
|
6959
6959
|
handleTime: number;
|
6960
|
+
closeAt: Date;
|
6960
6961
|
unreadCount: number;
|
6961
6962
|
firstResponseAt: Date;
|
6962
6963
|
isLatest: boolean;
|
@@ -7116,7 +7117,6 @@ export declare const messengerContract: {
|
|
7116
7117
|
telephonySignature: string | null;
|
7117
7118
|
};
|
7118
7119
|
};
|
7119
|
-
closedAt: Date;
|
7120
7120
|
lastMessageAt: Date | null;
|
7121
7121
|
cxlog: {
|
7122
7122
|
id: string;
|
package/dist/src/user/index.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import z from 'zod';
|
2
2
|
import { UserSchema } from './schema';
|
3
|
-
import { CreateUserSchema, UpdateUserSchema } from './validation';
|
3
|
+
import { CreateUserSchema, UpdateUserProfileSchema, UpdateUserSchema } from './validation';
|
4
4
|
export type User = z.infer<typeof UserSchema>;
|
5
5
|
export type CreateUserRequest = z.infer<typeof CreateUserSchema>;
|
6
6
|
export type UpdateUserRequest = z.infer<typeof UpdateUserSchema>;
|
7
|
+
export type UpdateUserProfileRequest = z.infer<typeof UpdateUserProfileSchema>;
|
7
8
|
export declare const userContract: {
|
8
9
|
createUser: {
|
9
10
|
body: z.ZodObject<{
|
@@ -945,7 +946,7 @@ export declare const userContract: {
|
|
945
946
|
responses: {
|
946
947
|
201: z.ZodObject<{
|
947
948
|
requestId: z.ZodString;
|
948
|
-
|
949
|
+
user: z.ZodObject<{
|
949
950
|
id: z.ZodString;
|
950
951
|
createdAt: z.ZodDate;
|
951
952
|
updatedAt: z.ZodDate;
|
@@ -1150,7 +1151,7 @@ export declare const userContract: {
|
|
1150
1151
|
};
|
1151
1152
|
}>;
|
1152
1153
|
}, "strip", z.ZodTypeAny, {
|
1153
|
-
|
1154
|
+
user: {
|
1154
1155
|
id: string;
|
1155
1156
|
address: string | null;
|
1156
1157
|
name: string;
|
@@ -1196,7 +1197,7 @@ export declare const userContract: {
|
|
1196
1197
|
};
|
1197
1198
|
requestId: string;
|
1198
1199
|
}, {
|
1199
|
-
|
1200
|
+
user: {
|
1200
1201
|
id: string;
|
1201
1202
|
address: string | null;
|
1202
1203
|
name: string;
|
@@ -1308,6 +1309,389 @@ export declare const userContract: {
|
|
1308
1309
|
'x-client-timezone'?: string | undefined;
|
1309
1310
|
}>>>;
|
1310
1311
|
};
|
1312
|
+
updateUserProfile: {
|
1313
|
+
body: z.ZodObject<{
|
1314
|
+
password: z.ZodString;
|
1315
|
+
}, "strip", z.ZodTypeAny, {
|
1316
|
+
password: string;
|
1317
|
+
}, {
|
1318
|
+
password: string;
|
1319
|
+
}>;
|
1320
|
+
summary: "Update a user profile.";
|
1321
|
+
method: "PATCH";
|
1322
|
+
pathParams: z.ZodObject<{
|
1323
|
+
id: z.ZodString;
|
1324
|
+
}, "strip", z.ZodTypeAny, {
|
1325
|
+
id: string;
|
1326
|
+
}, {
|
1327
|
+
id: string;
|
1328
|
+
}>;
|
1329
|
+
responses: {
|
1330
|
+
201: z.ZodObject<{
|
1331
|
+
requestId: z.ZodString;
|
1332
|
+
user: z.ZodObject<{
|
1333
|
+
id: z.ZodString;
|
1334
|
+
createdAt: z.ZodDate;
|
1335
|
+
updatedAt: z.ZodDate;
|
1336
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1337
|
+
name: z.ZodString;
|
1338
|
+
email: z.ZodString;
|
1339
|
+
emailVerifiedAt: z.ZodNullable<z.ZodDate>;
|
1340
|
+
password: z.ZodString;
|
1341
|
+
address: z.ZodNullable<z.ZodString>;
|
1342
|
+
phone: z.ZodNullable<z.ZodString>;
|
1343
|
+
notificationCount: z.ZodNullable<z.ZodNumber>;
|
1344
|
+
roles: z.ZodArray<z.ZodObject<{
|
1345
|
+
id: z.ZodString;
|
1346
|
+
createdAt: z.ZodDate;
|
1347
|
+
updatedAt: z.ZodDate;
|
1348
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1349
|
+
systemName: z.ZodString;
|
1350
|
+
displayName: z.ZodString;
|
1351
|
+
description: z.ZodNullable<z.ZodString>;
|
1352
|
+
permissions: z.ZodArray<z.ZodObject<{
|
1353
|
+
id: z.ZodString;
|
1354
|
+
createdAt: z.ZodDate;
|
1355
|
+
updatedAt: z.ZodDate;
|
1356
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1357
|
+
systemName: z.ZodString;
|
1358
|
+
displayName: z.ZodString;
|
1359
|
+
description: z.ZodNullable<z.ZodString>;
|
1360
|
+
}, "strip", z.ZodTypeAny, {
|
1361
|
+
id: string;
|
1362
|
+
description: string | null;
|
1363
|
+
createdAt: Date;
|
1364
|
+
updatedAt: Date;
|
1365
|
+
deletedAt: Date | null;
|
1366
|
+
systemName: string;
|
1367
|
+
displayName: string;
|
1368
|
+
}, {
|
1369
|
+
id: string;
|
1370
|
+
description: string | null;
|
1371
|
+
createdAt: Date;
|
1372
|
+
updatedAt: Date;
|
1373
|
+
deletedAt: Date | null;
|
1374
|
+
systemName: string;
|
1375
|
+
displayName: string;
|
1376
|
+
}>, "many">;
|
1377
|
+
}, "strip", z.ZodTypeAny, {
|
1378
|
+
id: string;
|
1379
|
+
description: string | null;
|
1380
|
+
createdAt: Date;
|
1381
|
+
updatedAt: Date;
|
1382
|
+
deletedAt: Date | null;
|
1383
|
+
systemName: string;
|
1384
|
+
displayName: string;
|
1385
|
+
permissions: {
|
1386
|
+
id: string;
|
1387
|
+
description: string | null;
|
1388
|
+
createdAt: Date;
|
1389
|
+
updatedAt: Date;
|
1390
|
+
deletedAt: Date | null;
|
1391
|
+
systemName: string;
|
1392
|
+
displayName: string;
|
1393
|
+
}[];
|
1394
|
+
}, {
|
1395
|
+
id: string;
|
1396
|
+
description: string | null;
|
1397
|
+
createdAt: Date;
|
1398
|
+
updatedAt: Date;
|
1399
|
+
deletedAt: Date | null;
|
1400
|
+
systemName: string;
|
1401
|
+
displayName: string;
|
1402
|
+
permissions: {
|
1403
|
+
id: string;
|
1404
|
+
description: string | null;
|
1405
|
+
createdAt: Date;
|
1406
|
+
updatedAt: Date;
|
1407
|
+
deletedAt: Date | null;
|
1408
|
+
systemName: string;
|
1409
|
+
displayName: string;
|
1410
|
+
}[];
|
1411
|
+
}>, "many">;
|
1412
|
+
extension: z.ZodObject<{
|
1413
|
+
id: z.ZodString;
|
1414
|
+
createdAt: z.ZodDate;
|
1415
|
+
updatedAt: z.ZodDate;
|
1416
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
1417
|
+
userId: z.ZodNullable<z.ZodString>;
|
1418
|
+
sipServerUrl: z.ZodString;
|
1419
|
+
sipUserName: z.ZodString;
|
1420
|
+
webphoneLoginUser: z.ZodString;
|
1421
|
+
extensionId: z.ZodNullable<z.ZodString>;
|
1422
|
+
extensionName: z.ZodString;
|
1423
|
+
telephonySignature: z.ZodNullable<z.ZodString>;
|
1424
|
+
}, "strip", z.ZodTypeAny, {
|
1425
|
+
id: string;
|
1426
|
+
createdAt: Date;
|
1427
|
+
updatedAt: Date;
|
1428
|
+
deletedAt: Date | null;
|
1429
|
+
userId: string | null;
|
1430
|
+
sipServerUrl: string;
|
1431
|
+
sipUserName: string;
|
1432
|
+
webphoneLoginUser: string;
|
1433
|
+
extensionId: string | null;
|
1434
|
+
extensionName: string;
|
1435
|
+
telephonySignature: string | null;
|
1436
|
+
}, {
|
1437
|
+
id: string;
|
1438
|
+
createdAt: Date;
|
1439
|
+
updatedAt: Date;
|
1440
|
+
deletedAt: Date | null;
|
1441
|
+
userId: string | null;
|
1442
|
+
sipServerUrl: string;
|
1443
|
+
sipUserName: string;
|
1444
|
+
webphoneLoginUser: string;
|
1445
|
+
extensionId: string | null;
|
1446
|
+
extensionName: string;
|
1447
|
+
telephonySignature: string | null;
|
1448
|
+
}>;
|
1449
|
+
}, "strip", z.ZodTypeAny, {
|
1450
|
+
id: string;
|
1451
|
+
address: string | null;
|
1452
|
+
name: string;
|
1453
|
+
email: string;
|
1454
|
+
createdAt: Date;
|
1455
|
+
updatedAt: Date;
|
1456
|
+
deletedAt: Date | null;
|
1457
|
+
emailVerifiedAt: Date | null;
|
1458
|
+
password: string;
|
1459
|
+
phone: string | null;
|
1460
|
+
notificationCount: number | null;
|
1461
|
+
roles: {
|
1462
|
+
id: string;
|
1463
|
+
description: string | null;
|
1464
|
+
createdAt: Date;
|
1465
|
+
updatedAt: Date;
|
1466
|
+
deletedAt: Date | null;
|
1467
|
+
systemName: string;
|
1468
|
+
displayName: string;
|
1469
|
+
permissions: {
|
1470
|
+
id: string;
|
1471
|
+
description: string | null;
|
1472
|
+
createdAt: Date;
|
1473
|
+
updatedAt: Date;
|
1474
|
+
deletedAt: Date | null;
|
1475
|
+
systemName: string;
|
1476
|
+
displayName: string;
|
1477
|
+
}[];
|
1478
|
+
}[];
|
1479
|
+
extension: {
|
1480
|
+
id: string;
|
1481
|
+
createdAt: Date;
|
1482
|
+
updatedAt: Date;
|
1483
|
+
deletedAt: Date | null;
|
1484
|
+
userId: string | null;
|
1485
|
+
sipServerUrl: string;
|
1486
|
+
sipUserName: string;
|
1487
|
+
webphoneLoginUser: string;
|
1488
|
+
extensionId: string | null;
|
1489
|
+
extensionName: string;
|
1490
|
+
telephonySignature: string | null;
|
1491
|
+
};
|
1492
|
+
}, {
|
1493
|
+
id: string;
|
1494
|
+
address: string | null;
|
1495
|
+
name: string;
|
1496
|
+
email: string;
|
1497
|
+
createdAt: Date;
|
1498
|
+
updatedAt: Date;
|
1499
|
+
deletedAt: Date | null;
|
1500
|
+
emailVerifiedAt: Date | null;
|
1501
|
+
password: string;
|
1502
|
+
phone: string | null;
|
1503
|
+
notificationCount: number | null;
|
1504
|
+
roles: {
|
1505
|
+
id: string;
|
1506
|
+
description: string | null;
|
1507
|
+
createdAt: Date;
|
1508
|
+
updatedAt: Date;
|
1509
|
+
deletedAt: Date | null;
|
1510
|
+
systemName: string;
|
1511
|
+
displayName: string;
|
1512
|
+
permissions: {
|
1513
|
+
id: string;
|
1514
|
+
description: string | null;
|
1515
|
+
createdAt: Date;
|
1516
|
+
updatedAt: Date;
|
1517
|
+
deletedAt: Date | null;
|
1518
|
+
systemName: string;
|
1519
|
+
displayName: string;
|
1520
|
+
}[];
|
1521
|
+
}[];
|
1522
|
+
extension: {
|
1523
|
+
id: string;
|
1524
|
+
createdAt: Date;
|
1525
|
+
updatedAt: Date;
|
1526
|
+
deletedAt: Date | null;
|
1527
|
+
userId: string | null;
|
1528
|
+
sipServerUrl: string;
|
1529
|
+
sipUserName: string;
|
1530
|
+
webphoneLoginUser: string;
|
1531
|
+
extensionId: string | null;
|
1532
|
+
extensionName: string;
|
1533
|
+
telephonySignature: string | null;
|
1534
|
+
};
|
1535
|
+
}>;
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
1537
|
+
user: {
|
1538
|
+
id: string;
|
1539
|
+
address: string | null;
|
1540
|
+
name: string;
|
1541
|
+
email: string;
|
1542
|
+
createdAt: Date;
|
1543
|
+
updatedAt: Date;
|
1544
|
+
deletedAt: Date | null;
|
1545
|
+
emailVerifiedAt: Date | null;
|
1546
|
+
password: string;
|
1547
|
+
phone: string | null;
|
1548
|
+
notificationCount: number | null;
|
1549
|
+
roles: {
|
1550
|
+
id: string;
|
1551
|
+
description: string | null;
|
1552
|
+
createdAt: Date;
|
1553
|
+
updatedAt: Date;
|
1554
|
+
deletedAt: Date | null;
|
1555
|
+
systemName: string;
|
1556
|
+
displayName: string;
|
1557
|
+
permissions: {
|
1558
|
+
id: string;
|
1559
|
+
description: string | null;
|
1560
|
+
createdAt: Date;
|
1561
|
+
updatedAt: Date;
|
1562
|
+
deletedAt: Date | null;
|
1563
|
+
systemName: string;
|
1564
|
+
displayName: string;
|
1565
|
+
}[];
|
1566
|
+
}[];
|
1567
|
+
extension: {
|
1568
|
+
id: string;
|
1569
|
+
createdAt: Date;
|
1570
|
+
updatedAt: Date;
|
1571
|
+
deletedAt: Date | null;
|
1572
|
+
userId: string | null;
|
1573
|
+
sipServerUrl: string;
|
1574
|
+
sipUserName: string;
|
1575
|
+
webphoneLoginUser: string;
|
1576
|
+
extensionId: string | null;
|
1577
|
+
extensionName: string;
|
1578
|
+
telephonySignature: string | null;
|
1579
|
+
};
|
1580
|
+
};
|
1581
|
+
requestId: string;
|
1582
|
+
}, {
|
1583
|
+
user: {
|
1584
|
+
id: string;
|
1585
|
+
address: string | null;
|
1586
|
+
name: string;
|
1587
|
+
email: string;
|
1588
|
+
createdAt: Date;
|
1589
|
+
updatedAt: Date;
|
1590
|
+
deletedAt: Date | null;
|
1591
|
+
emailVerifiedAt: Date | null;
|
1592
|
+
password: string;
|
1593
|
+
phone: string | null;
|
1594
|
+
notificationCount: number | null;
|
1595
|
+
roles: {
|
1596
|
+
id: string;
|
1597
|
+
description: string | null;
|
1598
|
+
createdAt: Date;
|
1599
|
+
updatedAt: Date;
|
1600
|
+
deletedAt: Date | null;
|
1601
|
+
systemName: string;
|
1602
|
+
displayName: string;
|
1603
|
+
permissions: {
|
1604
|
+
id: string;
|
1605
|
+
description: string | null;
|
1606
|
+
createdAt: Date;
|
1607
|
+
updatedAt: Date;
|
1608
|
+
deletedAt: Date | null;
|
1609
|
+
systemName: string;
|
1610
|
+
displayName: string;
|
1611
|
+
}[];
|
1612
|
+
}[];
|
1613
|
+
extension: {
|
1614
|
+
id: string;
|
1615
|
+
createdAt: Date;
|
1616
|
+
updatedAt: Date;
|
1617
|
+
deletedAt: Date | null;
|
1618
|
+
userId: string | null;
|
1619
|
+
sipServerUrl: string;
|
1620
|
+
sipUserName: string;
|
1621
|
+
webphoneLoginUser: string;
|
1622
|
+
extensionId: string | null;
|
1623
|
+
extensionName: string;
|
1624
|
+
telephonySignature: string | null;
|
1625
|
+
};
|
1626
|
+
};
|
1627
|
+
requestId: string;
|
1628
|
+
}>;
|
1629
|
+
400: z.ZodObject<{
|
1630
|
+
message: z.ZodString;
|
1631
|
+
}, "strip", z.ZodTypeAny, {
|
1632
|
+
message: string;
|
1633
|
+
}, {
|
1634
|
+
message: string;
|
1635
|
+
}>;
|
1636
|
+
401: z.ZodObject<{
|
1637
|
+
message: z.ZodString;
|
1638
|
+
error: z.ZodAny;
|
1639
|
+
}, "strip", z.ZodTypeAny, {
|
1640
|
+
message: string;
|
1641
|
+
error?: any;
|
1642
|
+
}, {
|
1643
|
+
message: string;
|
1644
|
+
error?: any;
|
1645
|
+
}>;
|
1646
|
+
404: z.ZodObject<{
|
1647
|
+
message: z.ZodString;
|
1648
|
+
error: z.ZodAny;
|
1649
|
+
}, "strip", z.ZodTypeAny, {
|
1650
|
+
message: string;
|
1651
|
+
error?: any;
|
1652
|
+
}, {
|
1653
|
+
message: string;
|
1654
|
+
error?: any;
|
1655
|
+
}>;
|
1656
|
+
422: z.ZodObject<{
|
1657
|
+
message: z.ZodString;
|
1658
|
+
error: z.ZodAny;
|
1659
|
+
}, "strip", z.ZodTypeAny, {
|
1660
|
+
message: string;
|
1661
|
+
error?: any;
|
1662
|
+
}, {
|
1663
|
+
message: string;
|
1664
|
+
error?: any;
|
1665
|
+
}>;
|
1666
|
+
500: z.ZodObject<{
|
1667
|
+
message: z.ZodString;
|
1668
|
+
error: z.ZodAny;
|
1669
|
+
}, "strip", z.ZodTypeAny, {
|
1670
|
+
message: string;
|
1671
|
+
error?: any;
|
1672
|
+
}, {
|
1673
|
+
message: string;
|
1674
|
+
error?: any;
|
1675
|
+
}>;
|
1676
|
+
};
|
1677
|
+
path: "user/profile/:id";
|
1678
|
+
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
1679
|
+
'x-tenant': z.ZodString;
|
1680
|
+
authorization: z.ZodString;
|
1681
|
+
'x-code': z.ZodOptional<z.ZodString>;
|
1682
|
+
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
1683
|
+
}, "strip", z.ZodTypeAny, {
|
1684
|
+
'x-tenant': string;
|
1685
|
+
authorization: string;
|
1686
|
+
'x-client-timezone': string;
|
1687
|
+
'x-code'?: string | undefined;
|
1688
|
+
}, {
|
1689
|
+
'x-tenant': string;
|
1690
|
+
authorization: string;
|
1691
|
+
'x-code'?: string | undefined;
|
1692
|
+
'x-client-timezone'?: string | undefined;
|
1693
|
+
}>>>;
|
1694
|
+
};
|
1311
1695
|
deleteUser: {
|
1312
1696
|
body: null;
|
1313
1697
|
summary: "Delete a user.";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAUpB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/user/index.ts"],"names":[],"mappings":"AACA,OAAO,CAAC,MAAM,KAAK,CAAC;AAUpB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,cAAc,CAAC;AAGtB,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC/E,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHxB,CAAC"}
|
@@ -52,4 +52,11 @@ export declare const UpdateUserSchema: z.ZodObject<{
|
|
52
52
|
newPassword: string;
|
53
53
|
notificationCount?: number | null | undefined;
|
54
54
|
}>;
|
55
|
+
export declare const UpdateUserProfileSchema: z.ZodObject<{
|
56
|
+
password: z.ZodString;
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
58
|
+
password: string;
|
59
|
+
}, {
|
60
|
+
password: string;
|
61
|
+
}>;
|
55
62
|
//# sourceMappingURL=validation.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/user/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3B,CAAC"}
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../src/user/validation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAQ3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;EAElC,CAAC"}
|