@kl1/contracts 1.0.97 → 1.0.98

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.
@@ -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
- role: z.ZodObject<{
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
- role: {
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
- role: {
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,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGlE,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,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"}
@@ -1299,7 +1299,7 @@ export declare const viberContract: {
1299
1299
  phone: string | null;
1300
1300
  } | undefined;
1301
1301
  }>;
1302
- messengerTags: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"post_purchase_update">, z.ZodLiteral<"account_update">, z.ZodLiteral<"confirmed_event_update">]>>;
1302
+ status: z.ZodNumber;
1303
1303
  }, "strip", z.ZodTypeAny, {
1304
1304
  id: string;
1305
1305
  channel: {
@@ -1327,6 +1327,7 @@ export declare const viberContract: {
1327
1327
  } | undefined;
1328
1328
  };
1329
1329
  direction: "incoming" | "outgoing" | "system";
1330
+ status: number;
1330
1331
  createdAt: string;
1331
1332
  updatedAt: string;
1332
1333
  actor: {
@@ -1357,7 +1358,6 @@ export declare const viberContract: {
1357
1358
  };
1358
1359
  lastMessage?: string | undefined;
1359
1360
  handleTime?: number | undefined;
1360
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1361
1361
  }, {
1362
1362
  id: string;
1363
1363
  channel: {
@@ -1385,6 +1385,7 @@ export declare const viberContract: {
1385
1385
  } | undefined;
1386
1386
  };
1387
1387
  direction: "incoming" | "outgoing" | "system";
1388
+ status: number;
1388
1389
  createdAt: string;
1389
1390
  updatedAt: string;
1390
1391
  actor: {
@@ -1415,7 +1416,6 @@ export declare const viberContract: {
1415
1416
  };
1416
1417
  lastMessage?: string | undefined;
1417
1418
  handleTime?: number | undefined;
1418
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1419
1419
  }>;
1420
1420
  message: z.ZodObject<{
1421
1421
  message: z.ZodOptional<z.ZodString>;
@@ -1577,6 +1577,7 @@ export declare const viberContract: {
1577
1577
  } | undefined;
1578
1578
  };
1579
1579
  direction: "incoming" | "outgoing" | "system";
1580
+ status: number;
1580
1581
  createdAt: string;
1581
1582
  updatedAt: string;
1582
1583
  actor: {
@@ -1607,7 +1608,6 @@ export declare const viberContract: {
1607
1608
  };
1608
1609
  lastMessage?: string | undefined;
1609
1610
  handleTime?: number | undefined;
1610
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1611
1611
  };
1612
1612
  }, {
1613
1613
  message: {
@@ -1665,6 +1665,7 @@ export declare const viberContract: {
1665
1665
  } | undefined;
1666
1666
  };
1667
1667
  direction: "incoming" | "outgoing" | "system";
1668
+ status: number;
1668
1669
  createdAt: string;
1669
1670
  updatedAt: string;
1670
1671
  actor: {
@@ -1695,7 +1696,6 @@ export declare const viberContract: {
1695
1696
  };
1696
1697
  lastMessage?: string | undefined;
1697
1698
  handleTime?: number | undefined;
1698
- messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1699
1699
  };
1700
1700
  }>;
1701
1701
  method: "POST";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kl1/contracts",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/src/index.d.ts",