@satorijs/adapter-lark 3.9.0 → 3.9.2
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/lib/index.cjs +1091 -27
- package/lib/internal.d.ts +2 -3
- package/lib/types/acs.d.ts +19 -19
- package/lib/types/admin.d.ts +58 -32
- package/lib/types/aily.d.ts +52 -52
- package/lib/types/apaas.d.ts +96 -96
- package/lib/types/api.d.ts +14 -1
- package/lib/types/application.d.ts +153 -69
- package/lib/types/approval.d.ts +186 -154
- package/lib/types/attendance.d.ts +395 -353
- package/lib/types/auth.d.ts +18 -18
- package/lib/types/authen.d.ts +24 -24
- package/lib/types/baike.d.ts +42 -42
- package/lib/types/bitable.d.ts +276 -192
- package/lib/types/calendar.d.ts +144 -144
- package/lib/types/cardkit.d.ts +8 -8
- package/lib/types/contact.d.ts +209 -137
- package/lib/types/corehr.d.ts +761 -613
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +237 -229
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +156 -148
- package/lib/types/hire.d.ts +954 -510
- package/lib/types/im.d.ts +446 -446
- package/lib/types/index.d.ts +72 -30
- package/lib/types/lingo.d.ts +28 -28
- package/lib/types/mail.d.ts +192 -192
- package/lib/types/minutes.d.ts +4 -4
- package/lib/types/okr.d.ts +86 -58
- package/lib/types/passport.d.ts +13 -5
- package/lib/types/payroll.d.ts +13 -5
- package/lib/types/performance.d.ts +85 -79
- package/lib/types/personal_settings.d.ts +12 -12
- package/lib/types/report.d.ts +11 -5
- package/lib/types/search.d.ts +48 -24
- package/lib/types/sheets.d.ts +64 -64
- package/lib/types/speech_to_text.d.ts +4 -4
- package/lib/types/task.d.ts +191 -185
- package/lib/types/translation.d.ts +4 -4
- package/lib/types/vc.d.ts +335 -155
- package/lib/types/wiki.d.ts +48 -48
- package/package.json +1 -1
- package/src/internal.ts +3 -4
- package/src/types/acs.ts +24 -24
- package/src/types/admin.ts +69 -39
- package/src/types/aily.ts +61 -61
- package/src/types/apaas.ts +113 -113
- package/src/types/application.ts +177 -83
- package/src/types/approval.ts +210 -174
- package/src/types/attendance.ts +466 -421
- package/src/types/auth.ts +20 -20
- package/src/types/authen.ts +28 -28
- package/src/types/baike.ts +55 -55
- package/src/types/bitable.ts +321 -235
- package/src/types/calendar.ts +167 -167
- package/src/types/cardkit.ts +10 -10
- package/src/types/contact.ts +251 -169
- package/src/types/corehr.ts +905 -736
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +299 -290
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +182 -173
- package/src/types/hire.ts +1081 -591
- package/src/types/im.ts +521 -521
- package/src/types/index.ts +73 -30
- package/src/types/lingo.ts +36 -36
- package/src/types/mail.ts +215 -215
- package/src/types/minutes.ts +5 -5
- package/src/types/okr.ts +98 -66
- package/src/types/passport.ts +15 -6
- package/src/types/payroll.ts +15 -6
- package/src/types/performance.ts +98 -91
- package/src/types/personal_settings.ts +15 -15
- package/src/types/report.ts +13 -6
- package/src/types/search.ts +57 -29
- package/src/types/sheets.ts +80 -80
- package/src/types/speech_to_text.ts +5 -5
- package/src/types/task.ts +238 -231
- package/src/types/translation.ts +5 -5
- package/src/types/vc.ts +386 -186
- package/src/types/wiki.ts +59 -59
- package/src/utils.ts +11 -6
- package/lib/index.cjs.map +0 -6
- package/lib/types/guild.d.ts +0 -59
- package/lib/types/message/asset.d.ts +0 -40
- package/lib/types/user.d.ts +0 -78
- package/lib/types/utils.d.ts +0 -9
package/lib/types/contact.d.ts
CHANGED
|
@@ -360,6 +360,28 @@ export interface ListContactScopeQuery extends Pagination {
|
|
|
360
360
|
/** 返回值的部门ID的类型 */
|
|
361
361
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
362
362
|
}
|
|
363
|
+
export interface ListContactScopeResponse {
|
|
364
|
+
/** 已授权部门列表,授权范围为全员可见时返回的是当前企业的所有一级部门列表 */
|
|
365
|
+
department_ids?: string[];
|
|
366
|
+
/** 已授权用户列表,应用申请了获取用户user_id 权限时返回;当授权范围为全员可见时返回的是当前企业所有顶级部门用户列表 */
|
|
367
|
+
user_ids?: string[];
|
|
368
|
+
/** 已授权的用户组,授权范围为全员可见时返回的是当前企业所有用户组 */
|
|
369
|
+
group_ids?: string[];
|
|
370
|
+
/** 是否还有更多项 */
|
|
371
|
+
has_more?: boolean;
|
|
372
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token */
|
|
373
|
+
page_token?: string;
|
|
374
|
+
}
|
|
375
|
+
export declare const enum CreateContactUserRequestGender {
|
|
376
|
+
/** 保密 */
|
|
377
|
+
Unkown = 0,
|
|
378
|
+
/** 男 */
|
|
379
|
+
Male = 1,
|
|
380
|
+
/** 女 */
|
|
381
|
+
Female = 2,
|
|
382
|
+
/** 其他 */
|
|
383
|
+
Others = 3
|
|
384
|
+
}
|
|
363
385
|
export interface CreateContactUserRequest {
|
|
364
386
|
/** 租户内用户的唯一标识 */
|
|
365
387
|
user_id?: string;
|
|
@@ -376,7 +398,7 @@ export interface CreateContactUserRequest {
|
|
|
376
398
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
377
399
|
mobile_visible?: boolean;
|
|
378
400
|
/** 性别 */
|
|
379
|
-
gender?:
|
|
401
|
+
gender?: CreateContactUserRequestGender;
|
|
380
402
|
/** 头像的文件Key */
|
|
381
403
|
avatar_key?: string;
|
|
382
404
|
/** 用户所在的部门 */
|
|
@@ -422,6 +444,19 @@ export interface CreateContactUserQuery {
|
|
|
422
444
|
/** 用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。 */
|
|
423
445
|
client_token?: string;
|
|
424
446
|
}
|
|
447
|
+
export interface CreateContactUserResponse {
|
|
448
|
+
user?: User;
|
|
449
|
+
}
|
|
450
|
+
export declare const enum PatchContactUserRequestGender {
|
|
451
|
+
/** 保密 */
|
|
452
|
+
Unkown = 0,
|
|
453
|
+
/** 男 */
|
|
454
|
+
Male = 1,
|
|
455
|
+
/** 女 */
|
|
456
|
+
Female = 2,
|
|
457
|
+
/** 其他 */
|
|
458
|
+
Others = 3
|
|
459
|
+
}
|
|
425
460
|
export interface PatchContactUserRequest {
|
|
426
461
|
/** 用户名称 */
|
|
427
462
|
name?: string;
|
|
@@ -436,7 +471,7 @@ export interface PatchContactUserRequest {
|
|
|
436
471
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
437
472
|
mobile_visible?: boolean;
|
|
438
473
|
/** 性别 */
|
|
439
|
-
gender?:
|
|
474
|
+
gender?: PatchContactUserRequestGender;
|
|
440
475
|
/** 头像的文件Key */
|
|
441
476
|
avatar_key?: string;
|
|
442
477
|
/** 用户所在部门ID */
|
|
@@ -480,6 +515,9 @@ export interface PatchContactUserQuery {
|
|
|
480
515
|
/** 此次调用中使用的部门ID的类型 */
|
|
481
516
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
482
517
|
}
|
|
518
|
+
export interface PatchContactUserResponse {
|
|
519
|
+
user?: User;
|
|
520
|
+
}
|
|
483
521
|
export interface UpdateUserIdContactUserRequest {
|
|
484
522
|
/** 自定义新用户ID */
|
|
485
523
|
new_user_id: string;
|
|
@@ -494,6 +532,9 @@ export interface GetContactUserQuery {
|
|
|
494
532
|
/** 此次调用中使用的部门ID的类型不同 ID 的说明 [部门ID说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0) */
|
|
495
533
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
496
534
|
}
|
|
535
|
+
export interface GetContactUserResponse {
|
|
536
|
+
user?: User;
|
|
537
|
+
}
|
|
497
538
|
export interface BatchContactUserQuery {
|
|
498
539
|
/** 要查询的用户ID列表 */
|
|
499
540
|
user_ids: string[];
|
|
@@ -502,6 +543,10 @@ export interface BatchContactUserQuery {
|
|
|
502
543
|
/** 指定查询结果中用户关联的部门ID类型 */
|
|
503
544
|
department_id_type?: 'open_department_id' | 'department_id';
|
|
504
545
|
}
|
|
546
|
+
export interface BatchContactUserResponse {
|
|
547
|
+
/** 查询到的用户信息,其中异常的用户ID不返回结果。 */
|
|
548
|
+
items?: User[];
|
|
549
|
+
}
|
|
505
550
|
export interface FindByDepartmentContactUserQuery extends Pagination {
|
|
506
551
|
/** 此次调用中使用的用户ID的类型 */
|
|
507
552
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -522,6 +567,10 @@ export interface BatchGetIdContactUserQuery {
|
|
|
522
567
|
/** 返回的用户ID的类型 */
|
|
523
568
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
524
569
|
}
|
|
570
|
+
export interface BatchGetIdContactUserResponse {
|
|
571
|
+
/** 手机号或者邮箱对应的用户id信息 */
|
|
572
|
+
user_list?: UserContactInfo[];
|
|
573
|
+
}
|
|
525
574
|
export interface DeleteContactUserRequest {
|
|
526
575
|
/** 部门群接收者。被删除用户为部门群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内第一个入群的人 */
|
|
527
576
|
department_chat_acceptor_user_id?: string;
|
|
@@ -558,13 +607,19 @@ export interface ResurrectContactUserQuery {
|
|
|
558
607
|
/** 部门id类型 */
|
|
559
608
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
560
609
|
}
|
|
610
|
+
export declare const enum CreateContactGroupRequestType {
|
|
611
|
+
/** 普通用户组 */
|
|
612
|
+
Assign = 1,
|
|
613
|
+
/** 动态用户组 */
|
|
614
|
+
Dynamic = 2
|
|
615
|
+
}
|
|
561
616
|
export interface CreateContactGroupRequest {
|
|
562
617
|
/** 用户组的名字,企业内唯一,最大长度:100 字符 */
|
|
563
618
|
name: string;
|
|
564
619
|
/** 用户组描述 */
|
|
565
620
|
description?: string;
|
|
566
621
|
/** 用户组的类型。默认为1表示普通用户组 */
|
|
567
|
-
type?:
|
|
622
|
+
type?: CreateContactGroupRequestType;
|
|
568
623
|
/** 自定义用户组ID,可在创建时自定义,不自定义则由系统自动生成,已创建用户组不允许修改 group_id 。自定义group_id数据校验规则:最大长度:64 字符校验规则:数字、大小写字母的组合,不能包含空格 */
|
|
569
624
|
group_id?: string;
|
|
570
625
|
}
|
|
@@ -574,6 +629,10 @@ export interface CreateContactGroupQuery {
|
|
|
574
629
|
/** 此次调用中使用的部门ID的类型 */
|
|
575
630
|
department_id_type?: 'open_department_id' | 'department_id';
|
|
576
631
|
}
|
|
632
|
+
export interface CreateContactGroupResponse {
|
|
633
|
+
/** 用户组ID */
|
|
634
|
+
group_id: string;
|
|
635
|
+
}
|
|
577
636
|
export interface PatchContactGroupRequest {
|
|
578
637
|
/** 用户组的名字,企业内唯一,最大长度:100 字符 */
|
|
579
638
|
name?: string;
|
|
@@ -592,9 +651,25 @@ export interface GetContactGroupQuery {
|
|
|
592
651
|
/** 此次调用中使用的部门ID的类型 */
|
|
593
652
|
department_id_type?: 'open_department_id' | 'department_id';
|
|
594
653
|
}
|
|
654
|
+
export interface GetContactGroupResponse {
|
|
655
|
+
/** 用户组详情 */
|
|
656
|
+
group: Group;
|
|
657
|
+
}
|
|
658
|
+
export declare const enum SimplelistContactGroupQueryType {
|
|
659
|
+
/** 普通用户组 */
|
|
660
|
+
Assign = 1,
|
|
661
|
+
/** 动态用户组 */
|
|
662
|
+
Dynamic = 2
|
|
663
|
+
}
|
|
595
664
|
export interface SimplelistContactGroupQuery extends Pagination {
|
|
596
665
|
/** 用户组类型 */
|
|
597
|
-
type?:
|
|
666
|
+
type?: SimplelistContactGroupQueryType;
|
|
667
|
+
}
|
|
668
|
+
export declare const enum MemberBelongContactGroupQueryGroupType {
|
|
669
|
+
/** 普通用户组 */
|
|
670
|
+
Assign = 1,
|
|
671
|
+
/** 动态用户组 */
|
|
672
|
+
Dynamic = 2
|
|
598
673
|
}
|
|
599
674
|
export interface MemberBelongContactGroupQuery extends Pagination {
|
|
600
675
|
/** 成员ID */
|
|
@@ -602,28 +677,59 @@ export interface MemberBelongContactGroupQuery extends Pagination {
|
|
|
602
677
|
/** 成员ID类型 */
|
|
603
678
|
member_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
604
679
|
/** 欲获取的用户组类型 */
|
|
605
|
-
group_type?:
|
|
680
|
+
group_type?: MemberBelongContactGroupQueryGroupType;
|
|
681
|
+
}
|
|
682
|
+
export declare const enum CreateContactEmployeeTypeEnumRequestEnumType {
|
|
683
|
+
/** 内置类型 */
|
|
684
|
+
Defualt = 1,
|
|
685
|
+
/** 自定义 */
|
|
686
|
+
Custom = 2
|
|
687
|
+
}
|
|
688
|
+
export declare const enum CreateContactEmployeeTypeEnumRequestEnumStatus {
|
|
689
|
+
/** 激活 */
|
|
690
|
+
Active = 1,
|
|
691
|
+
/** 未激活 */
|
|
692
|
+
Inactive = 2
|
|
606
693
|
}
|
|
607
694
|
export interface CreateContactEmployeeTypeEnumRequest {
|
|
608
695
|
/** 枚举内容 */
|
|
609
696
|
content: string;
|
|
610
697
|
/** 类型 */
|
|
611
|
-
enum_type:
|
|
698
|
+
enum_type: CreateContactEmployeeTypeEnumRequestEnumType;
|
|
612
699
|
/** 类型 */
|
|
613
|
-
enum_status:
|
|
700
|
+
enum_status: CreateContactEmployeeTypeEnumRequestEnumStatus;
|
|
614
701
|
/** i18n定义 */
|
|
615
702
|
i18n_content?: I18nContent[];
|
|
616
703
|
}
|
|
704
|
+
export interface CreateContactEmployeeTypeEnumResponse {
|
|
705
|
+
/** 创建人员类型接口 */
|
|
706
|
+
employee_type_enum?: EmployeeTypeEnum;
|
|
707
|
+
}
|
|
708
|
+
export declare const enum UpdateContactEmployeeTypeEnumRequestEnumType {
|
|
709
|
+
/** 内置类型 */
|
|
710
|
+
Defualt = 1,
|
|
711
|
+
/** 自定义 */
|
|
712
|
+
Custom = 2
|
|
713
|
+
}
|
|
714
|
+
export declare const enum UpdateContactEmployeeTypeEnumRequestEnumStatus {
|
|
715
|
+
/** 激活 */
|
|
716
|
+
Active = 1,
|
|
717
|
+
/** 未激活 */
|
|
718
|
+
Inactive = 2
|
|
719
|
+
}
|
|
617
720
|
export interface UpdateContactEmployeeTypeEnumRequest {
|
|
618
721
|
/** 枚举内容 */
|
|
619
722
|
content: string;
|
|
620
723
|
/** 类型 */
|
|
621
|
-
enum_type:
|
|
724
|
+
enum_type: UpdateContactEmployeeTypeEnumRequestEnumType;
|
|
622
725
|
/** 类型 */
|
|
623
|
-
enum_status:
|
|
726
|
+
enum_status: UpdateContactEmployeeTypeEnumRequestEnumStatus;
|
|
624
727
|
/** i18n定义 */
|
|
625
728
|
i18n_content?: I18nContent[];
|
|
626
729
|
}
|
|
730
|
+
export interface UpdateContactEmployeeTypeEnumResponse {
|
|
731
|
+
employee_type_enum?: EmployeeTypeEnum;
|
|
732
|
+
}
|
|
627
733
|
export interface CreateContactDepartmentRequest {
|
|
628
734
|
/** 部门名称 */
|
|
629
735
|
name: string;
|
|
@@ -654,6 +760,9 @@ export interface CreateContactDepartmentQuery {
|
|
|
654
760
|
/** 用于幂等判断是否为同一请求,避免重复创建。字符串类型,自行生成。 */
|
|
655
761
|
client_token?: string;
|
|
656
762
|
}
|
|
763
|
+
export interface CreateContactDepartmentResponse {
|
|
764
|
+
department?: Department;
|
|
765
|
+
}
|
|
657
766
|
export interface PatchContactDepartmentRequest {
|
|
658
767
|
/** 部门名 */
|
|
659
768
|
name?: string;
|
|
@@ -680,6 +789,9 @@ export interface PatchContactDepartmentQuery {
|
|
|
680
789
|
/** 此次调用中使用的部门ID的类型 */
|
|
681
790
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
682
791
|
}
|
|
792
|
+
export interface PatchContactDepartmentResponse {
|
|
793
|
+
department?: Department;
|
|
794
|
+
}
|
|
683
795
|
export interface UpdateContactDepartmentRequest {
|
|
684
796
|
/** 部门名称 */
|
|
685
797
|
name: string;
|
|
@@ -704,6 +816,9 @@ export interface UpdateContactDepartmentQuery {
|
|
|
704
816
|
/** 此次调用中使用的部门ID的类型 */
|
|
705
817
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
706
818
|
}
|
|
819
|
+
export interface UpdateContactDepartmentResponse {
|
|
820
|
+
department?: Department;
|
|
821
|
+
}
|
|
707
822
|
export interface UpdateDepartmentIdContactDepartmentRequest {
|
|
708
823
|
/** 本部门的自定义部门新ID */
|
|
709
824
|
new_department_id: string;
|
|
@@ -726,6 +841,9 @@ export interface GetContactDepartmentQuery {
|
|
|
726
841
|
/** 此次调用中使用的部门ID的类型不同 ID 的说明 [部门ID说明](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/contact-v3/department/field-overview#23857fe0) */
|
|
727
842
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
728
843
|
}
|
|
844
|
+
export interface GetContactDepartmentResponse {
|
|
845
|
+
department?: Department;
|
|
846
|
+
}
|
|
729
847
|
export interface BatchContactDepartmentQuery {
|
|
730
848
|
/** 查询的部门ID列表,类型需要与department_id_type对应 */
|
|
731
849
|
department_ids: string[];
|
|
@@ -734,6 +852,10 @@ export interface BatchContactDepartmentQuery {
|
|
|
734
852
|
/** 指定调用结果中包含用户(如部门leader)关联的用户ID类型 */
|
|
735
853
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
736
854
|
}
|
|
855
|
+
export interface BatchContactDepartmentResponse {
|
|
856
|
+
/** 查询到的部门信息,其中异常的部门ID不返回结果。 */
|
|
857
|
+
items?: Department[];
|
|
858
|
+
}
|
|
737
859
|
export interface ChildrenContactDepartmentQuery extends Pagination {
|
|
738
860
|
/** 此次调用中使用的用户ID的类型 */
|
|
739
861
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -772,6 +894,10 @@ export interface CreateContactUnitRequest {
|
|
|
772
894
|
/** 单位类型,长度范围为1-100个字,创建后不可修改 */
|
|
773
895
|
unit_type: string;
|
|
774
896
|
}
|
|
897
|
+
export interface CreateContactUnitResponse {
|
|
898
|
+
/** 单位的自定义ID */
|
|
899
|
+
unit_id: string;
|
|
900
|
+
}
|
|
775
901
|
export interface PatchContactUnitRequest {
|
|
776
902
|
/** 单位的名字 */
|
|
777
903
|
name?: string;
|
|
@@ -798,6 +924,10 @@ export interface ListDepartmentContactUnitQuery extends Pagination {
|
|
|
798
924
|
/** 此次调用中预获取的部门ID的类型 */
|
|
799
925
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
800
926
|
}
|
|
927
|
+
export interface GetContactUnitResponse {
|
|
928
|
+
/** 单位信息 */
|
|
929
|
+
unit: Unit;
|
|
930
|
+
}
|
|
801
931
|
export interface AddContactGroupMemberRequest {
|
|
802
932
|
/** 用户组成员的类型,取值为 user */
|
|
803
933
|
member_type: 'user';
|
|
@@ -810,6 +940,10 @@ export interface BatchAddContactGroupMemberRequest {
|
|
|
810
940
|
/** 待添加成员 */
|
|
811
941
|
members?: Memberlist[];
|
|
812
942
|
}
|
|
943
|
+
export interface BatchAddContactGroupMemberResponse {
|
|
944
|
+
/** 成员添加操作结果 */
|
|
945
|
+
results?: MemberResult[];
|
|
946
|
+
}
|
|
813
947
|
export interface SimplelistContactGroupMemberQuery extends Pagination {
|
|
814
948
|
/** 欲获取成员ID类型。当member_type=user时候,member_id_type表示user_id_type,枚举值open_id, union_id和user_id。当member_type=department时候,member_id_type表示department_id_type,枚举值open_id和department_id。 */
|
|
815
949
|
member_id_type?: 'open_id' | 'union_id' | 'user_id' | 'department_id';
|
|
@@ -832,6 +966,10 @@ export interface CreateContactFunctionalRoleRequest {
|
|
|
832
966
|
/** 角色名称,在单租户下唯一 */
|
|
833
967
|
role_name: string;
|
|
834
968
|
}
|
|
969
|
+
export interface CreateContactFunctionalRoleResponse {
|
|
970
|
+
/** 角色ID,在单租户下唯一 */
|
|
971
|
+
role_id: string;
|
|
972
|
+
}
|
|
835
973
|
export interface UpdateContactFunctionalRoleRequest {
|
|
836
974
|
/** 修改的角色名称,在单租户下唯一 */
|
|
837
975
|
role_name: string;
|
|
@@ -844,6 +982,10 @@ export interface BatchCreateContactFunctionalRoleMemberQuery {
|
|
|
844
982
|
/** 成员ID类型 */
|
|
845
983
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
846
984
|
}
|
|
985
|
+
export interface BatchCreateContactFunctionalRoleMemberResponse {
|
|
986
|
+
/** 批量新增角色成员结果集 */
|
|
987
|
+
results?: FunctionalRoleMemberResult[];
|
|
988
|
+
}
|
|
847
989
|
export interface ScopesContactFunctionalRoleMemberRequest {
|
|
848
990
|
/** 角色修改的角色成员列表(一批用户的UserID列表) */
|
|
849
991
|
members: string[];
|
|
@@ -856,12 +998,20 @@ export interface ScopesContactFunctionalRoleMemberQuery {
|
|
|
856
998
|
/** 此次调用中使用的部门ID的类型 */
|
|
857
999
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
858
1000
|
}
|
|
1001
|
+
export interface ScopesContactFunctionalRoleMemberResponse {
|
|
1002
|
+
/** 批量更新角色成员管理范围结果集 */
|
|
1003
|
+
results?: FunctionalRoleMemberResult[];
|
|
1004
|
+
}
|
|
859
1005
|
export interface GetContactFunctionalRoleMemberQuery {
|
|
860
1006
|
/** 用户 ID 类型 */
|
|
861
1007
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
862
1008
|
/** 此次调用中使用的部门ID的类型 */
|
|
863
1009
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
864
1010
|
}
|
|
1011
|
+
export interface GetContactFunctionalRoleMemberResponse {
|
|
1012
|
+
/** 成员的管理范围 */
|
|
1013
|
+
member?: FunctionalRoleMember;
|
|
1014
|
+
}
|
|
865
1015
|
export interface ListContactFunctionalRoleMemberQuery extends Pagination {
|
|
866
1016
|
/** 用户 ID 类型 */
|
|
867
1017
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
@@ -876,6 +1026,10 @@ export interface BatchDeleteContactFunctionalRoleMemberQuery {
|
|
|
876
1026
|
/** 成员ID类型 */
|
|
877
1027
|
user_id_type?: 'open_id' | 'union_id' | 'user_id';
|
|
878
1028
|
}
|
|
1029
|
+
export interface BatchDeleteContactFunctionalRoleMemberResponse {
|
|
1030
|
+
/** 批量新增角色成员结果集 */
|
|
1031
|
+
result?: FunctionalRoleMemberResult[];
|
|
1032
|
+
}
|
|
879
1033
|
export interface CreateContactJobLevelRequest {
|
|
880
1034
|
/** 职级名称 */
|
|
881
1035
|
name: string;
|
|
@@ -890,6 +1044,10 @@ export interface CreateContactJobLevelRequest {
|
|
|
890
1044
|
/** 多语言描述 */
|
|
891
1045
|
i18n_description?: I18nContent[];
|
|
892
1046
|
}
|
|
1047
|
+
export interface CreateContactJobLevelResponse {
|
|
1048
|
+
/** 职级信息 */
|
|
1049
|
+
job_level?: JobLevel;
|
|
1050
|
+
}
|
|
893
1051
|
export interface UpdateContactJobLevelRequest {
|
|
894
1052
|
/** 职级名称 */
|
|
895
1053
|
name?: string;
|
|
@@ -904,6 +1062,14 @@ export interface UpdateContactJobLevelRequest {
|
|
|
904
1062
|
/** 多语言描述 */
|
|
905
1063
|
i18n_description?: I18nContent[];
|
|
906
1064
|
}
|
|
1065
|
+
export interface UpdateContactJobLevelResponse {
|
|
1066
|
+
/** 职级信息 */
|
|
1067
|
+
job_level?: JobLevel;
|
|
1068
|
+
}
|
|
1069
|
+
export interface GetContactJobLevelResponse {
|
|
1070
|
+
/** 职级信息 */
|
|
1071
|
+
job_level?: JobLevel;
|
|
1072
|
+
}
|
|
907
1073
|
export interface ListContactJobLevelQuery extends Pagination {
|
|
908
1074
|
/** 传入该字段时,可查询指定职级名称对应的职级信息。 */
|
|
909
1075
|
name?: string;
|
|
@@ -922,6 +1088,10 @@ export interface CreateContactJobFamilyRequest {
|
|
|
922
1088
|
/** 多语言描述 */
|
|
923
1089
|
i18n_description?: I18nContent[];
|
|
924
1090
|
}
|
|
1091
|
+
export interface CreateContactJobFamilyResponse {
|
|
1092
|
+
/** 序列信息 */
|
|
1093
|
+
job_family?: JobFamily;
|
|
1094
|
+
}
|
|
925
1095
|
export interface UpdateContactJobFamilyRequest {
|
|
926
1096
|
/** 序列名称。1-100字符,支持中、英文及符号 */
|
|
927
1097
|
name?: string;
|
|
@@ -936,10 +1106,26 @@ export interface UpdateContactJobFamilyRequest {
|
|
|
936
1106
|
/** 多语言描述 */
|
|
937
1107
|
i18n_description?: I18nContent[];
|
|
938
1108
|
}
|
|
1109
|
+
export interface UpdateContactJobFamilyResponse {
|
|
1110
|
+
/** 更新后的序列信息 */
|
|
1111
|
+
job_family?: JobFamily;
|
|
1112
|
+
}
|
|
1113
|
+
export interface GetContactJobFamilyResponse {
|
|
1114
|
+
/** 序列信息 */
|
|
1115
|
+
job_family?: JobFamily;
|
|
1116
|
+
}
|
|
939
1117
|
export interface ListContactJobFamilyQuery extends Pagination {
|
|
940
1118
|
/** 序列名称,传入该字段时,可查询指定序列名称对应的序列信息 */
|
|
941
1119
|
name?: string;
|
|
942
1120
|
}
|
|
1121
|
+
export interface GetContactJobTitleResponse {
|
|
1122
|
+
/** 职务信息 */
|
|
1123
|
+
job_title?: JobTitle;
|
|
1124
|
+
}
|
|
1125
|
+
export interface GetContactWorkCityResponse {
|
|
1126
|
+
/** 工作城市信息 */
|
|
1127
|
+
work_city?: WorkCity;
|
|
1128
|
+
}
|
|
943
1129
|
export interface ListContactUserQuery extends Pagination {
|
|
944
1130
|
/** 此次调用中使用的用户ID的类型 */
|
|
945
1131
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -948,6 +1134,16 @@ export interface ListContactUserQuery extends Pagination {
|
|
|
948
1134
|
/** 填写该字段表示获取部门下所有用户,选填。 */
|
|
949
1135
|
department_id?: string;
|
|
950
1136
|
}
|
|
1137
|
+
export declare const enum UpdateContactUserRequestGender {
|
|
1138
|
+
/** 保密 */
|
|
1139
|
+
Unkown = 0,
|
|
1140
|
+
/** 男 */
|
|
1141
|
+
Male = 1,
|
|
1142
|
+
/** 女 */
|
|
1143
|
+
Female = 2,
|
|
1144
|
+
/** 其他 */
|
|
1145
|
+
Others = 3
|
|
1146
|
+
}
|
|
951
1147
|
export interface UpdateContactUserRequest {
|
|
952
1148
|
/** 用户名 */
|
|
953
1149
|
name: string;
|
|
@@ -962,7 +1158,7 @@ export interface UpdateContactUserRequest {
|
|
|
962
1158
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
963
1159
|
mobile_visible?: boolean;
|
|
964
1160
|
/** 性别 */
|
|
965
|
-
gender?:
|
|
1161
|
+
gender?: UpdateContactUserRequestGender;
|
|
966
1162
|
/** 头像的文件Key */
|
|
967
1163
|
avatar_key?: string;
|
|
968
1164
|
/** 用户所在部门ID */
|
|
@@ -998,6 +1194,9 @@ export interface UpdateContactUserQuery {
|
|
|
998
1194
|
/** 此次调用中使用的部门ID的类型 */
|
|
999
1195
|
department_id_type?: 'department_id' | 'open_department_id';
|
|
1000
1196
|
}
|
|
1197
|
+
export interface UpdateContactUserResponse {
|
|
1198
|
+
user?: User;
|
|
1199
|
+
}
|
|
1001
1200
|
export interface ListContactDepartmentQuery extends Pagination {
|
|
1002
1201
|
/** 此次调用中使用的用户ID的类型 */
|
|
1003
1202
|
user_id_type?: 'user_id' | 'union_id' | 'open_id';
|
|
@@ -1008,130 +1207,3 @@ export interface ListContactDepartmentQuery extends Pagination {
|
|
|
1008
1207
|
/** 是否递归获取子部门 */
|
|
1009
1208
|
fetch_child?: boolean;
|
|
1010
1209
|
}
|
|
1011
|
-
export interface ListContactScopeResponse {
|
|
1012
|
-
/** 已授权部门列表,授权范围为全员可见时返回的是当前企业的所有一级部门列表 */
|
|
1013
|
-
department_ids?: string[];
|
|
1014
|
-
/** 已授权用户列表,应用申请了获取用户user_id 权限时返回;当授权范围为全员可见时返回的是当前企业所有顶级部门用户列表 */
|
|
1015
|
-
user_ids?: string[];
|
|
1016
|
-
/** 已授权的用户组,授权范围为全员可见时返回的是当前企业所有用户组 */
|
|
1017
|
-
group_ids?: string[];
|
|
1018
|
-
/** 是否还有更多项 */
|
|
1019
|
-
has_more?: boolean;
|
|
1020
|
-
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token */
|
|
1021
|
-
page_token?: string;
|
|
1022
|
-
}
|
|
1023
|
-
export interface CreateContactUserResponse {
|
|
1024
|
-
user?: User;
|
|
1025
|
-
}
|
|
1026
|
-
export interface PatchContactUserResponse {
|
|
1027
|
-
user?: User;
|
|
1028
|
-
}
|
|
1029
|
-
export interface GetContactUserResponse {
|
|
1030
|
-
user?: User;
|
|
1031
|
-
}
|
|
1032
|
-
export interface BatchContactUserResponse {
|
|
1033
|
-
/** 查询到的用户信息,其中异常的用户ID不返回结果。 */
|
|
1034
|
-
items?: User[];
|
|
1035
|
-
}
|
|
1036
|
-
export interface BatchGetIdContactUserResponse {
|
|
1037
|
-
/** 手机号或者邮箱对应的用户id信息 */
|
|
1038
|
-
user_list?: UserContactInfo[];
|
|
1039
|
-
}
|
|
1040
|
-
export interface CreateContactGroupResponse {
|
|
1041
|
-
/** 用户组ID */
|
|
1042
|
-
group_id: string;
|
|
1043
|
-
}
|
|
1044
|
-
export interface GetContactGroupResponse {
|
|
1045
|
-
/** 用户组详情 */
|
|
1046
|
-
group: Group;
|
|
1047
|
-
}
|
|
1048
|
-
export interface CreateContactEmployeeTypeEnumResponse {
|
|
1049
|
-
/** 创建人员类型接口 */
|
|
1050
|
-
employee_type_enum?: EmployeeTypeEnum;
|
|
1051
|
-
}
|
|
1052
|
-
export interface UpdateContactEmployeeTypeEnumResponse {
|
|
1053
|
-
employee_type_enum?: EmployeeTypeEnum;
|
|
1054
|
-
}
|
|
1055
|
-
export interface CreateContactDepartmentResponse {
|
|
1056
|
-
department?: Department;
|
|
1057
|
-
}
|
|
1058
|
-
export interface PatchContactDepartmentResponse {
|
|
1059
|
-
department?: Department;
|
|
1060
|
-
}
|
|
1061
|
-
export interface UpdateContactDepartmentResponse {
|
|
1062
|
-
department?: Department;
|
|
1063
|
-
}
|
|
1064
|
-
export interface GetContactDepartmentResponse {
|
|
1065
|
-
department?: Department;
|
|
1066
|
-
}
|
|
1067
|
-
export interface BatchContactDepartmentResponse {
|
|
1068
|
-
/** 查询到的部门信息,其中异常的部门ID不返回结果。 */
|
|
1069
|
-
items?: Department[];
|
|
1070
|
-
}
|
|
1071
|
-
export interface CreateContactUnitResponse {
|
|
1072
|
-
/** 单位的自定义ID */
|
|
1073
|
-
unit_id: string;
|
|
1074
|
-
}
|
|
1075
|
-
export interface GetContactUnitResponse {
|
|
1076
|
-
/** 单位信息 */
|
|
1077
|
-
unit: Unit;
|
|
1078
|
-
}
|
|
1079
|
-
export interface BatchAddContactGroupMemberResponse {
|
|
1080
|
-
/** 成员添加操作结果 */
|
|
1081
|
-
results?: MemberResult[];
|
|
1082
|
-
}
|
|
1083
|
-
export interface CreateContactFunctionalRoleResponse {
|
|
1084
|
-
/** 角色ID,在单租户下唯一 */
|
|
1085
|
-
role_id: string;
|
|
1086
|
-
}
|
|
1087
|
-
export interface BatchCreateContactFunctionalRoleMemberResponse {
|
|
1088
|
-
/** 批量新增角色成员结果集 */
|
|
1089
|
-
results?: FunctionalRoleMemberResult[];
|
|
1090
|
-
}
|
|
1091
|
-
export interface ScopesContactFunctionalRoleMemberResponse {
|
|
1092
|
-
/** 批量更新角色成员管理范围结果集 */
|
|
1093
|
-
results?: FunctionalRoleMemberResult[];
|
|
1094
|
-
}
|
|
1095
|
-
export interface GetContactFunctionalRoleMemberResponse {
|
|
1096
|
-
/** 成员的管理范围 */
|
|
1097
|
-
member?: FunctionalRoleMember;
|
|
1098
|
-
}
|
|
1099
|
-
export interface BatchDeleteContactFunctionalRoleMemberResponse {
|
|
1100
|
-
/** 批量新增角色成员结果集 */
|
|
1101
|
-
result?: FunctionalRoleMemberResult[];
|
|
1102
|
-
}
|
|
1103
|
-
export interface CreateContactJobLevelResponse {
|
|
1104
|
-
/** 职级信息 */
|
|
1105
|
-
job_level?: JobLevel;
|
|
1106
|
-
}
|
|
1107
|
-
export interface UpdateContactJobLevelResponse {
|
|
1108
|
-
/** 职级信息 */
|
|
1109
|
-
job_level?: JobLevel;
|
|
1110
|
-
}
|
|
1111
|
-
export interface GetContactJobLevelResponse {
|
|
1112
|
-
/** 职级信息 */
|
|
1113
|
-
job_level?: JobLevel;
|
|
1114
|
-
}
|
|
1115
|
-
export interface CreateContactJobFamilyResponse {
|
|
1116
|
-
/** 序列信息 */
|
|
1117
|
-
job_family?: JobFamily;
|
|
1118
|
-
}
|
|
1119
|
-
export interface UpdateContactJobFamilyResponse {
|
|
1120
|
-
/** 更新后的序列信息 */
|
|
1121
|
-
job_family?: JobFamily;
|
|
1122
|
-
}
|
|
1123
|
-
export interface GetContactJobFamilyResponse {
|
|
1124
|
-
/** 序列信息 */
|
|
1125
|
-
job_family?: JobFamily;
|
|
1126
|
-
}
|
|
1127
|
-
export interface GetContactJobTitleResponse {
|
|
1128
|
-
/** 职务信息 */
|
|
1129
|
-
job_title?: JobTitle;
|
|
1130
|
-
}
|
|
1131
|
-
export interface GetContactWorkCityResponse {
|
|
1132
|
-
/** 工作城市信息 */
|
|
1133
|
-
work_city?: WorkCity;
|
|
1134
|
-
}
|
|
1135
|
-
export interface UpdateContactUserResponse {
|
|
1136
|
-
user?: User;
|
|
1137
|
-
}
|