@36node/auth-sdk 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +340 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +341 -2
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +482 -6
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -114,6 +114,46 @@ export const $User: {
|
|
|
114
114
|
readonly type: "string";
|
|
115
115
|
readonly description: "用户名";
|
|
116
116
|
};
|
|
117
|
+
readonly employeeId: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly description: "<<<<<<< HEAD\n员工编号";
|
|
120
|
+
};
|
|
121
|
+
readonly permissions: {
|
|
122
|
+
readonly description: "权限";
|
|
123
|
+
readonly type: "array";
|
|
124
|
+
readonly items: {
|
|
125
|
+
readonly type: "string";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly groups: {
|
|
129
|
+
readonly description: "团队";
|
|
130
|
+
readonly type: "array";
|
|
131
|
+
readonly items: {
|
|
132
|
+
readonly type: "string";
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
readonly lastLoginAt: {
|
|
136
|
+
readonly format: "date-time";
|
|
137
|
+
readonly type: "string";
|
|
138
|
+
readonly description: "最后登录时间";
|
|
139
|
+
};
|
|
140
|
+
readonly active: {
|
|
141
|
+
readonly type: "boolean";
|
|
142
|
+
readonly description: "是否启用";
|
|
143
|
+
};
|
|
144
|
+
readonly inviteCode: {
|
|
145
|
+
readonly type: "string";
|
|
146
|
+
readonly description: "邀请码";
|
|
147
|
+
};
|
|
148
|
+
readonly status: {
|
|
149
|
+
readonly type: "string";
|
|
150
|
+
readonly description: "=======\n>>>>>>> main\n状态";
|
|
151
|
+
};
|
|
152
|
+
readonly expireAt: {
|
|
153
|
+
readonly format: "date-time";
|
|
154
|
+
readonly type: "string";
|
|
155
|
+
readonly description: "过期时间";
|
|
156
|
+
};
|
|
117
157
|
readonly id: {
|
|
118
158
|
readonly type: "string";
|
|
119
159
|
readonly description: "Entity id";
|
|
@@ -420,6 +460,41 @@ export const $CreateUserDto: {
|
|
|
420
460
|
readonly type: "string";
|
|
421
461
|
readonly description: "用户名";
|
|
422
462
|
};
|
|
463
|
+
readonly employeeId: {
|
|
464
|
+
readonly type: "string";
|
|
465
|
+
readonly description: "<<<<<<< HEAD\n员工编号";
|
|
466
|
+
};
|
|
467
|
+
readonly permissions: {
|
|
468
|
+
readonly description: "权限";
|
|
469
|
+
readonly type: "array";
|
|
470
|
+
readonly items: {
|
|
471
|
+
readonly type: "string";
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
readonly groups: {
|
|
475
|
+
readonly description: "团队";
|
|
476
|
+
readonly type: "array";
|
|
477
|
+
readonly items: {
|
|
478
|
+
readonly type: "string";
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
readonly active: {
|
|
482
|
+
readonly type: "boolean";
|
|
483
|
+
readonly description: "是否启用";
|
|
484
|
+
};
|
|
485
|
+
readonly inviteCode: {
|
|
486
|
+
readonly type: "string";
|
|
487
|
+
readonly description: "邀请码";
|
|
488
|
+
};
|
|
489
|
+
readonly status: {
|
|
490
|
+
readonly type: "string";
|
|
491
|
+
readonly description: "=======\n>>>>>>> main\n状态";
|
|
492
|
+
};
|
|
493
|
+
readonly expireAt: {
|
|
494
|
+
readonly format: "date-time";
|
|
495
|
+
readonly type: "string";
|
|
496
|
+
readonly description: "过期时间";
|
|
497
|
+
};
|
|
423
498
|
};
|
|
424
499
|
};
|
|
425
500
|
export const $UpdateUserDto: {
|
|
@@ -510,6 +585,46 @@ export const $UpdateUserDto: {
|
|
|
510
585
|
readonly type: "string";
|
|
511
586
|
readonly description: "用户名";
|
|
512
587
|
};
|
|
588
|
+
readonly employeeId: {
|
|
589
|
+
readonly type: "string";
|
|
590
|
+
readonly description: "<<<<<<< HEAD\n员工编号";
|
|
591
|
+
};
|
|
592
|
+
readonly permissions: {
|
|
593
|
+
readonly description: "权限";
|
|
594
|
+
readonly type: "array";
|
|
595
|
+
readonly items: {
|
|
596
|
+
readonly type: "string";
|
|
597
|
+
};
|
|
598
|
+
};
|
|
599
|
+
readonly groups: {
|
|
600
|
+
readonly description: "团队";
|
|
601
|
+
readonly type: "array";
|
|
602
|
+
readonly items: {
|
|
603
|
+
readonly type: "string";
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
readonly lastLoginAt: {
|
|
607
|
+
readonly format: "date-time";
|
|
608
|
+
readonly type: "string";
|
|
609
|
+
readonly description: "最后登录时间";
|
|
610
|
+
};
|
|
611
|
+
readonly active: {
|
|
612
|
+
readonly type: "boolean";
|
|
613
|
+
readonly description: "是否启用";
|
|
614
|
+
};
|
|
615
|
+
readonly inviteCode: {
|
|
616
|
+
readonly type: "string";
|
|
617
|
+
readonly description: "邀请码";
|
|
618
|
+
};
|
|
619
|
+
readonly status: {
|
|
620
|
+
readonly type: "string";
|
|
621
|
+
readonly description: "=======\n>>>>>>> main\n状态";
|
|
622
|
+
};
|
|
623
|
+
readonly expireAt: {
|
|
624
|
+
readonly format: "date-time";
|
|
625
|
+
readonly type: "string";
|
|
626
|
+
readonly description: "过期时间";
|
|
627
|
+
};
|
|
513
628
|
};
|
|
514
629
|
};
|
|
515
630
|
export const $ResetPasswordDto: {
|
|
@@ -565,6 +680,29 @@ export const $CreateNamespaceDto: {
|
|
|
565
680
|
readonly type: "string";
|
|
566
681
|
readonly description: "所属的 namespace";
|
|
567
682
|
};
|
|
683
|
+
readonly permissions: {
|
|
684
|
+
readonly description: "权限";
|
|
685
|
+
readonly type: "array";
|
|
686
|
+
readonly items: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
readonly active: {
|
|
691
|
+
readonly type: "boolean";
|
|
692
|
+
readonly description: "是否启用";
|
|
693
|
+
};
|
|
694
|
+
readonly defaultPassword: {
|
|
695
|
+
readonly type: "string";
|
|
696
|
+
readonly description: "默认密码";
|
|
697
|
+
};
|
|
698
|
+
readonly exportable: {
|
|
699
|
+
readonly type: "boolean";
|
|
700
|
+
readonly description: "是否可导出";
|
|
701
|
+
};
|
|
702
|
+
readonly userCount: {
|
|
703
|
+
readonly type: "number";
|
|
704
|
+
readonly description: "人数";
|
|
705
|
+
};
|
|
568
706
|
};
|
|
569
707
|
readonly required: readonly ["name", "key"];
|
|
570
708
|
};
|
|
@@ -598,6 +736,29 @@ export const $Namespace: {
|
|
|
598
736
|
readonly type: "string";
|
|
599
737
|
readonly description: "所属的 namespace";
|
|
600
738
|
};
|
|
739
|
+
readonly permissions: {
|
|
740
|
+
readonly description: "权限";
|
|
741
|
+
readonly type: "array";
|
|
742
|
+
readonly items: {
|
|
743
|
+
readonly type: "string";
|
|
744
|
+
};
|
|
745
|
+
};
|
|
746
|
+
readonly active: {
|
|
747
|
+
readonly type: "boolean";
|
|
748
|
+
readonly description: "是否启用";
|
|
749
|
+
};
|
|
750
|
+
readonly defaultPassword: {
|
|
751
|
+
readonly type: "string";
|
|
752
|
+
readonly description: "默认密码";
|
|
753
|
+
};
|
|
754
|
+
readonly exportable: {
|
|
755
|
+
readonly type: "boolean";
|
|
756
|
+
readonly description: "是否可导出";
|
|
757
|
+
};
|
|
758
|
+
readonly userCount: {
|
|
759
|
+
readonly type: "number";
|
|
760
|
+
readonly description: "人数";
|
|
761
|
+
};
|
|
601
762
|
readonly id: {
|
|
602
763
|
readonly type: "string";
|
|
603
764
|
readonly description: "Entity id";
|
|
@@ -645,6 +806,29 @@ export const $UpdateNamespaceDto: {
|
|
|
645
806
|
readonly type: "string";
|
|
646
807
|
readonly description: "名称";
|
|
647
808
|
};
|
|
809
|
+
readonly permissions: {
|
|
810
|
+
readonly description: "权限";
|
|
811
|
+
readonly type: "array";
|
|
812
|
+
readonly items: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
readonly active: {
|
|
817
|
+
readonly type: "boolean";
|
|
818
|
+
readonly description: "是否启用";
|
|
819
|
+
};
|
|
820
|
+
readonly defaultPassword: {
|
|
821
|
+
readonly type: "string";
|
|
822
|
+
readonly description: "默认密码";
|
|
823
|
+
};
|
|
824
|
+
readonly exportable: {
|
|
825
|
+
readonly type: "boolean";
|
|
826
|
+
readonly description: "是否可导出";
|
|
827
|
+
};
|
|
828
|
+
readonly userCount: {
|
|
829
|
+
readonly type: "number";
|
|
830
|
+
readonly description: "人数";
|
|
831
|
+
};
|
|
648
832
|
};
|
|
649
833
|
};
|
|
650
834
|
export const $CreateSessionDto: {
|
|
@@ -976,6 +1160,102 @@ export const $Industry: {
|
|
|
976
1160
|
};
|
|
977
1161
|
readonly required: readonly ["code", "name", "children"];
|
|
978
1162
|
};
|
|
1163
|
+
export const $CreateGroupDto: {
|
|
1164
|
+
readonly type: "object";
|
|
1165
|
+
readonly properties: {
|
|
1166
|
+
readonly name: {
|
|
1167
|
+
readonly type: "string";
|
|
1168
|
+
readonly description: "名称";
|
|
1169
|
+
};
|
|
1170
|
+
readonly permissions: {
|
|
1171
|
+
readonly description: "权限";
|
|
1172
|
+
readonly type: "array";
|
|
1173
|
+
readonly items: {
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
readonly active: {
|
|
1178
|
+
readonly type: "boolean";
|
|
1179
|
+
readonly description: "是否启用";
|
|
1180
|
+
};
|
|
1181
|
+
readonly userCount: {
|
|
1182
|
+
readonly type: "number";
|
|
1183
|
+
readonly description: "人数";
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
readonly required: readonly ["name"];
|
|
1187
|
+
};
|
|
1188
|
+
export const $Group: {
|
|
1189
|
+
readonly type: "object";
|
|
1190
|
+
readonly properties: {
|
|
1191
|
+
readonly name: {
|
|
1192
|
+
readonly type: "string";
|
|
1193
|
+
readonly description: "名称";
|
|
1194
|
+
};
|
|
1195
|
+
readonly permissions: {
|
|
1196
|
+
readonly description: "权限";
|
|
1197
|
+
readonly type: "array";
|
|
1198
|
+
readonly items: {
|
|
1199
|
+
readonly type: "string";
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
readonly active: {
|
|
1203
|
+
readonly type: "boolean";
|
|
1204
|
+
readonly description: "是否启用";
|
|
1205
|
+
};
|
|
1206
|
+
readonly userCount: {
|
|
1207
|
+
readonly type: "number";
|
|
1208
|
+
readonly description: "人数";
|
|
1209
|
+
};
|
|
1210
|
+
readonly id: {
|
|
1211
|
+
readonly type: "string";
|
|
1212
|
+
readonly description: "Entity id";
|
|
1213
|
+
};
|
|
1214
|
+
readonly createdAt: {
|
|
1215
|
+
readonly format: "date-time";
|
|
1216
|
+
readonly type: "string";
|
|
1217
|
+
readonly description: "Entity created at when";
|
|
1218
|
+
};
|
|
1219
|
+
readonly updatedAt: {
|
|
1220
|
+
readonly format: "date-time";
|
|
1221
|
+
readonly type: "string";
|
|
1222
|
+
readonly description: "Entity updated at when";
|
|
1223
|
+
};
|
|
1224
|
+
readonly createdBy: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
readonly description: "Entity created by who";
|
|
1227
|
+
};
|
|
1228
|
+
readonly updatedBy: {
|
|
1229
|
+
readonly type: "string";
|
|
1230
|
+
readonly description: "Entity updated by who";
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
readonly required: readonly ["name", "id"];
|
|
1234
|
+
};
|
|
1235
|
+
export const $UpdateGroupDto: {
|
|
1236
|
+
readonly type: "object";
|
|
1237
|
+
readonly properties: {
|
|
1238
|
+
readonly name: {
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
readonly description: "名称";
|
|
1241
|
+
};
|
|
1242
|
+
readonly permissions: {
|
|
1243
|
+
readonly description: "权限";
|
|
1244
|
+
readonly type: "array";
|
|
1245
|
+
readonly items: {
|
|
1246
|
+
readonly type: "string";
|
|
1247
|
+
};
|
|
1248
|
+
};
|
|
1249
|
+
readonly active: {
|
|
1250
|
+
readonly type: "boolean";
|
|
1251
|
+
readonly description: "是否启用";
|
|
1252
|
+
};
|
|
1253
|
+
readonly userCount: {
|
|
1254
|
+
readonly type: "number";
|
|
1255
|
+
readonly description: "人数";
|
|
1256
|
+
};
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
979
1259
|
export const $Region: {
|
|
980
1260
|
readonly type: "object";
|
|
981
1261
|
readonly properties: {
|
|
@@ -1165,6 +1445,14 @@ export type User = {
|
|
|
1165
1445
|
roles?: Array<string>;
|
|
1166
1446
|
super?: boolean;
|
|
1167
1447
|
username?: string;
|
|
1448
|
+
employeeId?: string;
|
|
1449
|
+
permissions?: Array<string>;
|
|
1450
|
+
groups?: Array<string>;
|
|
1451
|
+
lastLoginAt?: string;
|
|
1452
|
+
active?: boolean;
|
|
1453
|
+
inviteCode?: string;
|
|
1454
|
+
status?: string;
|
|
1455
|
+
expireAt?: string;
|
|
1168
1456
|
id: string;
|
|
1169
1457
|
createdAt?: string;
|
|
1170
1458
|
updatedAt?: string;
|
|
@@ -1247,6 +1535,13 @@ export type CreateUserDto = {
|
|
|
1247
1535
|
roles?: Array<string>;
|
|
1248
1536
|
super?: boolean;
|
|
1249
1537
|
username?: string;
|
|
1538
|
+
employeeId?: string;
|
|
1539
|
+
permissions?: Array<string>;
|
|
1540
|
+
groups?: Array<string>;
|
|
1541
|
+
active?: boolean;
|
|
1542
|
+
inviteCode?: string;
|
|
1543
|
+
status?: string;
|
|
1544
|
+
expireAt?: string;
|
|
1250
1545
|
};
|
|
1251
1546
|
export type UpdateUserDto = {
|
|
1252
1547
|
readonly hasPassword?: boolean;
|
|
@@ -1269,6 +1564,14 @@ export type UpdateUserDto = {
|
|
|
1269
1564
|
roles?: Array<string>;
|
|
1270
1565
|
super?: boolean;
|
|
1271
1566
|
username?: string;
|
|
1567
|
+
employeeId?: string;
|
|
1568
|
+
permissions?: Array<string>;
|
|
1569
|
+
groups?: Array<string>;
|
|
1570
|
+
lastLoginAt?: string;
|
|
1571
|
+
active?: boolean;
|
|
1572
|
+
inviteCode?: string;
|
|
1573
|
+
status?: string;
|
|
1574
|
+
expireAt?: string;
|
|
1272
1575
|
};
|
|
1273
1576
|
export type ResetPasswordDto = {
|
|
1274
1577
|
password?: string;
|
|
@@ -1284,6 +1587,11 @@ export type CreateNamespaceDto = {
|
|
|
1284
1587
|
name: string;
|
|
1285
1588
|
key: string;
|
|
1286
1589
|
ns?: string;
|
|
1590
|
+
permissions?: Array<string>;
|
|
1591
|
+
active?: boolean;
|
|
1592
|
+
defaultPassword?: string;
|
|
1593
|
+
exportable?: boolean;
|
|
1594
|
+
userCount?: number;
|
|
1287
1595
|
};
|
|
1288
1596
|
export type Namespace = {
|
|
1289
1597
|
data?: string;
|
|
@@ -1292,6 +1600,11 @@ export type Namespace = {
|
|
|
1292
1600
|
name: string;
|
|
1293
1601
|
key: string;
|
|
1294
1602
|
ns?: string;
|
|
1603
|
+
permissions?: Array<string>;
|
|
1604
|
+
active?: boolean;
|
|
1605
|
+
defaultPassword?: string;
|
|
1606
|
+
exportable?: boolean;
|
|
1607
|
+
userCount?: number;
|
|
1295
1608
|
id: string;
|
|
1296
1609
|
createdAt?: string;
|
|
1297
1610
|
updatedAt?: string;
|
|
@@ -1303,6 +1616,11 @@ export type UpdateNamespaceDto = {
|
|
|
1303
1616
|
desc?: string;
|
|
1304
1617
|
labels?: Array<string>;
|
|
1305
1618
|
name?: string;
|
|
1619
|
+
permissions?: Array<string>;
|
|
1620
|
+
active?: boolean;
|
|
1621
|
+
defaultPassword?: string;
|
|
1622
|
+
exportable?: boolean;
|
|
1623
|
+
userCount?: number;
|
|
1306
1624
|
};
|
|
1307
1625
|
export type CreateSessionDto = {
|
|
1308
1626
|
uid: string;
|
|
@@ -1395,6 +1713,29 @@ export type Industry = {
|
|
|
1395
1713
|
name: string;
|
|
1396
1714
|
children: Array<Industry>;
|
|
1397
1715
|
};
|
|
1716
|
+
export type CreateGroupDto = {
|
|
1717
|
+
name: string;
|
|
1718
|
+
permissions?: Array<string>;
|
|
1719
|
+
active?: boolean;
|
|
1720
|
+
userCount?: number;
|
|
1721
|
+
};
|
|
1722
|
+
export type Group = {
|
|
1723
|
+
name: string;
|
|
1724
|
+
permissions?: Array<string>;
|
|
1725
|
+
active?: boolean;
|
|
1726
|
+
userCount?: number;
|
|
1727
|
+
id: string;
|
|
1728
|
+
createdAt?: string;
|
|
1729
|
+
updatedAt?: string;
|
|
1730
|
+
createdBy?: string;
|
|
1731
|
+
updatedBy?: string;
|
|
1732
|
+
};
|
|
1733
|
+
export type UpdateGroupDto = {
|
|
1734
|
+
name?: string;
|
|
1735
|
+
permissions?: Array<string>;
|
|
1736
|
+
active?: boolean;
|
|
1737
|
+
userCount?: number;
|
|
1738
|
+
};
|
|
1398
1739
|
export type Region = {
|
|
1399
1740
|
code: string;
|
|
1400
1741
|
nameZh: string;
|
|
@@ -1497,16 +1838,20 @@ export type ListUsersData = {
|
|
|
1497
1838
|
query?: {
|
|
1498
1839
|
_limit?: number;
|
|
1499
1840
|
_offset?: number;
|
|
1500
|
-
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
1841
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'lastLoginAt' | '-lastLoginAt' | 'expireAt' | '-expireAt';
|
|
1842
|
+
active?: boolean;
|
|
1501
1843
|
email?: string;
|
|
1844
|
+
expireAt_gt?: string;
|
|
1845
|
+
expireAt_lt?: string;
|
|
1846
|
+
groups?: Array<string>;
|
|
1502
1847
|
id?: Array<string>;
|
|
1503
1848
|
name_like?: string;
|
|
1504
1849
|
nickname_like?: string;
|
|
1505
|
-
|
|
1506
|
-
ns_start?: Array<string>;
|
|
1850
|
+
ns_tree?: string;
|
|
1507
1851
|
phone?: string;
|
|
1508
1852
|
registerRegion?: string;
|
|
1509
1853
|
roles?: Array<string>;
|
|
1854
|
+
status?: string;
|
|
1510
1855
|
username?: string;
|
|
1511
1856
|
username_like?: string;
|
|
1512
1857
|
};
|
|
@@ -1535,6 +1880,14 @@ export type DeleteUserData = {
|
|
|
1535
1880
|
};
|
|
1536
1881
|
export type DeleteUserResponse = void;
|
|
1537
1882
|
export type DeleteUserError = unknown;
|
|
1883
|
+
export type UpsertUserByEmployeeIdData = {
|
|
1884
|
+
body: UpdateUserDto;
|
|
1885
|
+
path: {
|
|
1886
|
+
userEmployeeId: string;
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
export type UpsertUserByEmployeeIdResponse = User;
|
|
1890
|
+
export type UpsertUserByEmployeeIdError = unknown;
|
|
1538
1891
|
export type VerifyIdentityData = {
|
|
1539
1892
|
path: {
|
|
1540
1893
|
userId: string;
|
|
@@ -1569,10 +1922,10 @@ export type ListNamespacesData = {
|
|
|
1569
1922
|
_offset?: number;
|
|
1570
1923
|
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt' | 'key' | '-key' | 'name' | '-name';
|
|
1571
1924
|
key?: string;
|
|
1925
|
+
key_tree?: string;
|
|
1572
1926
|
labels?: Array<string>;
|
|
1573
1927
|
name_like?: string;
|
|
1574
|
-
|
|
1575
|
-
ns_start?: Array<string>;
|
|
1928
|
+
ns_tree?: string;
|
|
1576
1929
|
};
|
|
1577
1930
|
};
|
|
1578
1931
|
export type ListNamespacesResponse = Array<Namespace>;
|
|
@@ -1587,7 +1940,7 @@ export type GetNamespaceError = unknown;
|
|
|
1587
1940
|
export type UpdateNamespaceData = {
|
|
1588
1941
|
body: UpdateNamespaceDto;
|
|
1589
1942
|
path: {
|
|
1590
|
-
|
|
1943
|
+
namespaceIdOrKey: string;
|
|
1591
1944
|
};
|
|
1592
1945
|
};
|
|
1593
1946
|
export type UpdateNamespaceResponse = Namespace;
|
|
@@ -1726,6 +2079,45 @@ export type DeleteEmailRecordResponse = void;
|
|
|
1726
2079
|
export type DeleteEmailRecordError = unknown;
|
|
1727
2080
|
export type ListIndustriesResponse = Array<Industry>;
|
|
1728
2081
|
export type ListIndustriesError = unknown;
|
|
2082
|
+
export type CreateGroupData = {
|
|
2083
|
+
body: CreateGroupDto;
|
|
2084
|
+
};
|
|
2085
|
+
export type CreateGroupResponse = Group;
|
|
2086
|
+
export type CreateGroupError = unknown;
|
|
2087
|
+
export type ListGroupsData = {
|
|
2088
|
+
query?: {
|
|
2089
|
+
_limit?: number;
|
|
2090
|
+
_offset?: number;
|
|
2091
|
+
_sort?: 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt';
|
|
2092
|
+
active?: boolean;
|
|
2093
|
+
name?: string;
|
|
2094
|
+
name_like?: string;
|
|
2095
|
+
};
|
|
2096
|
+
};
|
|
2097
|
+
export type ListGroupsResponse = Array<Group>;
|
|
2098
|
+
export type ListGroupsError = unknown;
|
|
2099
|
+
export type GetGroupData = {
|
|
2100
|
+
path: {
|
|
2101
|
+
groupIdOrName: string;
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
export type GetGroupResponse = Group;
|
|
2105
|
+
export type GetGroupError = unknown;
|
|
2106
|
+
export type UpdateGroupData = {
|
|
2107
|
+
body: UpdateGroupDto;
|
|
2108
|
+
path: {
|
|
2109
|
+
groupId: string;
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
export type UpdateGroupResponse = Group;
|
|
2113
|
+
export type UpdateGroupError = unknown;
|
|
2114
|
+
export type DeleteGroupData = {
|
|
2115
|
+
path: {
|
|
2116
|
+
groupId: string;
|
|
2117
|
+
};
|
|
2118
|
+
};
|
|
2119
|
+
export type DeleteGroupResponse = void;
|
|
2120
|
+
export type DeleteGroupError = unknown;
|
|
1729
2121
|
export type ListRegionsResponse = Array<Region>;
|
|
1730
2122
|
export type ListRegionsError = unknown;
|
|
1731
2123
|
export type SendSmsData = {
|
|
@@ -2058,6 +2450,31 @@ export const updateUser: <ThrowOnError extends boolean = false>(options: {
|
|
|
2058
2450
|
export const deleteUser: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2059
2451
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2060
2452
|
} & DeleteUserData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2453
|
+
export const upsertUserByEmployeeId: <ThrowOnError extends boolean = false>(options: {
|
|
2454
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2455
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2456
|
+
cache?: RequestCache;
|
|
2457
|
+
credentials?: RequestCredentials;
|
|
2458
|
+
integrity?: string;
|
|
2459
|
+
keepalive?: boolean;
|
|
2460
|
+
mode?: RequestMode;
|
|
2461
|
+
redirect?: RequestRedirect;
|
|
2462
|
+
referrer?: string;
|
|
2463
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2464
|
+
signal?: AbortSignal;
|
|
2465
|
+
window?: null;
|
|
2466
|
+
path?: Record<string, unknown>;
|
|
2467
|
+
query?: Record<string, unknown>;
|
|
2468
|
+
baseUrl?: string;
|
|
2469
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2470
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2471
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2472
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2473
|
+
throwOnError?: ThrowOnError;
|
|
2474
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2475
|
+
} & UpsertUserByEmployeeIdData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2476
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2477
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
|
|
2061
2478
|
export const verifyIdentity: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2062
2479
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2063
2480
|
} & VerifyIdentityData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").User, unknown, ThrowOnError>;
|
|
@@ -2394,6 +2811,65 @@ export const listIndustries: <ThrowOnError extends boolean = false>(options?: {
|
|
|
2394
2811
|
throwOnError?: ThrowOnError;
|
|
2395
2812
|
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2396
2813
|
}) => import("@hey-api/client-fetch").RequestResult<ListIndustriesResponse, unknown, ThrowOnError>;
|
|
2814
|
+
export const createGroup: <ThrowOnError extends boolean = false>(options: {
|
|
2815
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2816
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2817
|
+
cache?: RequestCache;
|
|
2818
|
+
credentials?: RequestCredentials;
|
|
2819
|
+
integrity?: string;
|
|
2820
|
+
keepalive?: boolean;
|
|
2821
|
+
mode?: RequestMode;
|
|
2822
|
+
redirect?: RequestRedirect;
|
|
2823
|
+
referrer?: string;
|
|
2824
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2825
|
+
signal?: AbortSignal;
|
|
2826
|
+
window?: null;
|
|
2827
|
+
path?: Record<string, unknown>;
|
|
2828
|
+
query?: Record<string, unknown>;
|
|
2829
|
+
baseUrl?: string;
|
|
2830
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2831
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2832
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2833
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2834
|
+
throwOnError?: ThrowOnError;
|
|
2835
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2836
|
+
} & CreateGroupData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2837
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2838
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2839
|
+
export const listGroups: <ThrowOnError extends boolean = false>(options?: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2840
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2841
|
+
} & ListGroupsData) => import("@hey-api/client-fetch").RequestResult<ListGroupsResponse, unknown, ThrowOnError>;
|
|
2842
|
+
export const getGroup: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2843
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2844
|
+
} & GetGroupData) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2845
|
+
export const updateGroup: <ThrowOnError extends boolean = false>(options: {
|
|
2846
|
+
headers?: Record<string, unknown> | HeadersInit;
|
|
2847
|
+
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2848
|
+
cache?: RequestCache;
|
|
2849
|
+
credentials?: RequestCredentials;
|
|
2850
|
+
integrity?: string;
|
|
2851
|
+
keepalive?: boolean;
|
|
2852
|
+
mode?: RequestMode;
|
|
2853
|
+
redirect?: RequestRedirect;
|
|
2854
|
+
referrer?: string;
|
|
2855
|
+
referrerPolicy?: ReferrerPolicy;
|
|
2856
|
+
signal?: AbortSignal;
|
|
2857
|
+
window?: null;
|
|
2858
|
+
path?: Record<string, unknown>;
|
|
2859
|
+
query?: Record<string, unknown>;
|
|
2860
|
+
baseUrl?: string;
|
|
2861
|
+
bodySerializer?: import("@hey-api/client-fetch").BodySerializer;
|
|
2862
|
+
fetch?: (request: Request) => Promise<Response>;
|
|
2863
|
+
parseAs?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "auto" | "stream";
|
|
2864
|
+
querySerializer?: import("@hey-api/client-fetch").QuerySerializer | import("@hey-api/client-fetch").QuerySerializerOptions;
|
|
2865
|
+
throwOnError?: ThrowOnError;
|
|
2866
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2867
|
+
} & UpdateGroupData & Pick<Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2868
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2869
|
+
}, "headers">) => import("@hey-api/client-fetch").RequestResult<import("types.gen").Group, unknown, ThrowOnError>;
|
|
2870
|
+
export const deleteGroup: <ThrowOnError extends boolean = false>(options: Omit<import("@hey-api/client-fetch").RequestOptionsBase<ThrowOnError>, "url"> & {
|
|
2871
|
+
client?: import("@hey-api/client-fetch").Client<Request, Response, import("@hey-api/client-fetch").RequestOptions>;
|
|
2872
|
+
} & DeleteGroupData) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
2397
2873
|
export const listRegions: <ThrowOnError extends boolean = false>(options?: {
|
|
2398
2874
|
method?: "CONNECT" | "DELETE" | "GET" | "HEAD" | "OPTIONS" | "PATCH" | "POST" | "PUT" | "TRACE";
|
|
2399
2875
|
cache?: RequestCache;
|