@satorijs/adapter-lark 3.9.1 → 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 +1077 -13
- 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/application.d.ts +151 -67
- package/lib/types/approval.d.ts +182 -150
- 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 +268 -184
- 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 +760 -620
- package/lib/types/document_ai.d.ts +68 -68
- package/lib/types/docx.d.ts +103 -95
- package/lib/types/drive.d.ts +236 -236
- package/lib/types/ehr.d.ts +26 -2
- package/lib/types/helpdesk.d.ts +155 -155
- 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 +1 -1
- 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 +173 -79
- package/src/types/approval.ts +202 -166
- 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 +305 -219
- 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 +903 -743
- package/src/types/document_ai.ts +85 -85
- package/src/types/docx.ts +117 -108
- package/src/types/drive.ts +298 -298
- package/src/types/ehr.ts +28 -2
- package/src/types/helpdesk.ts +181 -181
- 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/src/types/contact.ts
CHANGED
|
@@ -363,6 +363,30 @@ export interface ListContactScopeQuery extends Pagination {
|
|
|
363
363
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
+
export interface ListContactScopeResponse {
|
|
367
|
+
/** 已授权部门列表,授权范围为全员可见时返回的是当前企业的所有一级部门列表 */
|
|
368
|
+
department_ids?: string[]
|
|
369
|
+
/** 已授权用户列表,应用申请了获取用户user_id 权限时返回;当授权范围为全员可见时返回的是当前企业所有顶级部门用户列表 */
|
|
370
|
+
user_ids?: string[]
|
|
371
|
+
/** 已授权的用户组,授权范围为全员可见时返回的是当前企业所有用户组 */
|
|
372
|
+
group_ids?: string[]
|
|
373
|
+
/** 是否还有更多项 */
|
|
374
|
+
has_more?: boolean
|
|
375
|
+
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token */
|
|
376
|
+
page_token?: string
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export const enum CreateContactUserRequestGender {
|
|
380
|
+
/** 保密 */
|
|
381
|
+
Unkown = 0,
|
|
382
|
+
/** 男 */
|
|
383
|
+
Male = 1,
|
|
384
|
+
/** 女 */
|
|
385
|
+
Female = 2,
|
|
386
|
+
/** 其他 */
|
|
387
|
+
Others = 3,
|
|
388
|
+
}
|
|
389
|
+
|
|
366
390
|
export interface CreateContactUserRequest {
|
|
367
391
|
/** 租户内用户的唯一标识 */
|
|
368
392
|
user_id?: string
|
|
@@ -379,7 +403,7 @@ export interface CreateContactUserRequest {
|
|
|
379
403
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
380
404
|
mobile_visible?: boolean
|
|
381
405
|
/** 性别 */
|
|
382
|
-
gender?:
|
|
406
|
+
gender?: CreateContactUserRequestGender
|
|
383
407
|
/** 头像的文件Key */
|
|
384
408
|
avatar_key?: string
|
|
385
409
|
/** 用户所在的部门 */
|
|
@@ -427,6 +451,21 @@ export interface CreateContactUserQuery {
|
|
|
427
451
|
client_token?: string
|
|
428
452
|
}
|
|
429
453
|
|
|
454
|
+
export interface CreateContactUserResponse {
|
|
455
|
+
user?: User
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export const enum PatchContactUserRequestGender {
|
|
459
|
+
/** 保密 */
|
|
460
|
+
Unkown = 0,
|
|
461
|
+
/** 男 */
|
|
462
|
+
Male = 1,
|
|
463
|
+
/** 女 */
|
|
464
|
+
Female = 2,
|
|
465
|
+
/** 其他 */
|
|
466
|
+
Others = 3,
|
|
467
|
+
}
|
|
468
|
+
|
|
430
469
|
export interface PatchContactUserRequest {
|
|
431
470
|
/** 用户名称 */
|
|
432
471
|
name?: string
|
|
@@ -441,7 +480,7 @@ export interface PatchContactUserRequest {
|
|
|
441
480
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
442
481
|
mobile_visible?: boolean
|
|
443
482
|
/** 性别 */
|
|
444
|
-
gender?:
|
|
483
|
+
gender?: PatchContactUserRequestGender
|
|
445
484
|
/** 头像的文件Key */
|
|
446
485
|
avatar_key?: string
|
|
447
486
|
/** 用户所在部门ID */
|
|
@@ -487,6 +526,10 @@ export interface PatchContactUserQuery {
|
|
|
487
526
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
488
527
|
}
|
|
489
528
|
|
|
529
|
+
export interface PatchContactUserResponse {
|
|
530
|
+
user?: User
|
|
531
|
+
}
|
|
532
|
+
|
|
490
533
|
export interface UpdateUserIdContactUserRequest {
|
|
491
534
|
/** 自定义新用户ID */
|
|
492
535
|
new_user_id: string
|
|
@@ -504,6 +547,10 @@ export interface GetContactUserQuery {
|
|
|
504
547
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
505
548
|
}
|
|
506
549
|
|
|
550
|
+
export interface GetContactUserResponse {
|
|
551
|
+
user?: User
|
|
552
|
+
}
|
|
553
|
+
|
|
507
554
|
export interface BatchContactUserQuery {
|
|
508
555
|
/** 要查询的用户ID列表 */
|
|
509
556
|
user_ids: string[]
|
|
@@ -513,6 +560,11 @@ export interface BatchContactUserQuery {
|
|
|
513
560
|
department_id_type?: 'open_department_id' | 'department_id'
|
|
514
561
|
}
|
|
515
562
|
|
|
563
|
+
export interface BatchContactUserResponse {
|
|
564
|
+
/** 查询到的用户信息,其中异常的用户ID不返回结果。 */
|
|
565
|
+
items?: User[]
|
|
566
|
+
}
|
|
567
|
+
|
|
516
568
|
export interface FindByDepartmentContactUserQuery extends Pagination {
|
|
517
569
|
/** 此次调用中使用的用户ID的类型 */
|
|
518
570
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
@@ -536,6 +588,11 @@ export interface BatchGetIdContactUserQuery {
|
|
|
536
588
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
537
589
|
}
|
|
538
590
|
|
|
591
|
+
export interface BatchGetIdContactUserResponse {
|
|
592
|
+
/** 手机号或者邮箱对应的用户id信息 */
|
|
593
|
+
user_list?: UserContactInfo[]
|
|
594
|
+
}
|
|
595
|
+
|
|
539
596
|
export interface DeleteContactUserRequest {
|
|
540
597
|
/** 部门群接收者。被删除用户为部门群群主时,转让群主给指定接收者,不指定接收者则默认转让给群内第一个入群的人 */
|
|
541
598
|
department_chat_acceptor_user_id?: string
|
|
@@ -576,13 +633,20 @@ export interface ResurrectContactUserQuery {
|
|
|
576
633
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
577
634
|
}
|
|
578
635
|
|
|
636
|
+
export const enum CreateContactGroupRequestType {
|
|
637
|
+
/** 普通用户组 */
|
|
638
|
+
Assign = 1,
|
|
639
|
+
/** 动态用户组 */
|
|
640
|
+
Dynamic = 2,
|
|
641
|
+
}
|
|
642
|
+
|
|
579
643
|
export interface CreateContactGroupRequest {
|
|
580
644
|
/** 用户组的名字,企业内唯一,最大长度:100 字符 */
|
|
581
645
|
name: string
|
|
582
646
|
/** 用户组描述 */
|
|
583
647
|
description?: string
|
|
584
648
|
/** 用户组的类型。默认为1表示普通用户组 */
|
|
585
|
-
type?:
|
|
649
|
+
type?: CreateContactGroupRequestType
|
|
586
650
|
/** 自定义用户组ID,可在创建时自定义,不自定义则由系统自动生成,已创建用户组不允许修改 group_id 。自定义group_id数据校验规则:最大长度:64 字符校验规则:数字、大小写字母的组合,不能包含空格 */
|
|
587
651
|
group_id?: string
|
|
588
652
|
}
|
|
@@ -594,6 +658,11 @@ export interface CreateContactGroupQuery {
|
|
|
594
658
|
department_id_type?: 'open_department_id' | 'department_id'
|
|
595
659
|
}
|
|
596
660
|
|
|
661
|
+
export interface CreateContactGroupResponse {
|
|
662
|
+
/** 用户组ID */
|
|
663
|
+
group_id: string
|
|
664
|
+
}
|
|
665
|
+
|
|
597
666
|
export interface PatchContactGroupRequest {
|
|
598
667
|
/** 用户组的名字,企业内唯一,最大长度:100 字符 */
|
|
599
668
|
name?: string
|
|
@@ -615,9 +684,28 @@ export interface GetContactGroupQuery {
|
|
|
615
684
|
department_id_type?: 'open_department_id' | 'department_id'
|
|
616
685
|
}
|
|
617
686
|
|
|
687
|
+
export interface GetContactGroupResponse {
|
|
688
|
+
/** 用户组详情 */
|
|
689
|
+
group: Group
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
export const enum SimplelistContactGroupQueryType {
|
|
693
|
+
/** 普通用户组 */
|
|
694
|
+
Assign = 1,
|
|
695
|
+
/** 动态用户组 */
|
|
696
|
+
Dynamic = 2,
|
|
697
|
+
}
|
|
698
|
+
|
|
618
699
|
export interface SimplelistContactGroupQuery extends Pagination {
|
|
619
700
|
/** 用户组类型 */
|
|
620
|
-
type?:
|
|
701
|
+
type?: SimplelistContactGroupQueryType
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export const enum MemberBelongContactGroupQueryGroupType {
|
|
705
|
+
/** 普通用户组 */
|
|
706
|
+
Assign = 1,
|
|
707
|
+
/** 动态用户组 */
|
|
708
|
+
Dynamic = 2,
|
|
621
709
|
}
|
|
622
710
|
|
|
623
711
|
export interface MemberBelongContactGroupQuery extends Pagination {
|
|
@@ -626,31 +714,68 @@ export interface MemberBelongContactGroupQuery extends Pagination {
|
|
|
626
714
|
/** 成员ID类型 */
|
|
627
715
|
member_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
628
716
|
/** 欲获取的用户组类型 */
|
|
629
|
-
group_type?:
|
|
717
|
+
group_type?: MemberBelongContactGroupQueryGroupType
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export const enum CreateContactEmployeeTypeEnumRequestEnumType {
|
|
721
|
+
/** 内置类型 */
|
|
722
|
+
Defualt = 1,
|
|
723
|
+
/** 自定义 */
|
|
724
|
+
Custom = 2,
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export const enum CreateContactEmployeeTypeEnumRequestEnumStatus {
|
|
728
|
+
/** 激活 */
|
|
729
|
+
Active = 1,
|
|
730
|
+
/** 未激活 */
|
|
731
|
+
Inactive = 2,
|
|
630
732
|
}
|
|
631
733
|
|
|
632
734
|
export interface CreateContactEmployeeTypeEnumRequest {
|
|
633
735
|
/** 枚举内容 */
|
|
634
736
|
content: string
|
|
635
737
|
/** 类型 */
|
|
636
|
-
enum_type:
|
|
738
|
+
enum_type: CreateContactEmployeeTypeEnumRequestEnumType
|
|
637
739
|
/** 类型 */
|
|
638
|
-
enum_status:
|
|
740
|
+
enum_status: CreateContactEmployeeTypeEnumRequestEnumStatus
|
|
639
741
|
/** i18n定义 */
|
|
640
742
|
i18n_content?: I18nContent[]
|
|
641
743
|
}
|
|
642
744
|
|
|
745
|
+
export interface CreateContactEmployeeTypeEnumResponse {
|
|
746
|
+
/** 创建人员类型接口 */
|
|
747
|
+
employee_type_enum?: EmployeeTypeEnum
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
export const enum UpdateContactEmployeeTypeEnumRequestEnumType {
|
|
751
|
+
/** 内置类型 */
|
|
752
|
+
Defualt = 1,
|
|
753
|
+
/** 自定义 */
|
|
754
|
+
Custom = 2,
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export const enum UpdateContactEmployeeTypeEnumRequestEnumStatus {
|
|
758
|
+
/** 激活 */
|
|
759
|
+
Active = 1,
|
|
760
|
+
/** 未激活 */
|
|
761
|
+
Inactive = 2,
|
|
762
|
+
}
|
|
763
|
+
|
|
643
764
|
export interface UpdateContactEmployeeTypeEnumRequest {
|
|
644
765
|
/** 枚举内容 */
|
|
645
766
|
content: string
|
|
646
767
|
/** 类型 */
|
|
647
|
-
enum_type:
|
|
768
|
+
enum_type: UpdateContactEmployeeTypeEnumRequestEnumType
|
|
648
769
|
/** 类型 */
|
|
649
|
-
enum_status:
|
|
770
|
+
enum_status: UpdateContactEmployeeTypeEnumRequestEnumStatus
|
|
650
771
|
/** i18n定义 */
|
|
651
772
|
i18n_content?: I18nContent[]
|
|
652
773
|
}
|
|
653
774
|
|
|
775
|
+
export interface UpdateContactEmployeeTypeEnumResponse {
|
|
776
|
+
employee_type_enum?: EmployeeTypeEnum
|
|
777
|
+
}
|
|
778
|
+
|
|
654
779
|
export interface CreateContactDepartmentRequest {
|
|
655
780
|
/** 部门名称 */
|
|
656
781
|
name: string
|
|
@@ -683,6 +808,10 @@ export interface CreateContactDepartmentQuery {
|
|
|
683
808
|
client_token?: string
|
|
684
809
|
}
|
|
685
810
|
|
|
811
|
+
export interface CreateContactDepartmentResponse {
|
|
812
|
+
department?: Department
|
|
813
|
+
}
|
|
814
|
+
|
|
686
815
|
export interface PatchContactDepartmentRequest {
|
|
687
816
|
/** 部门名 */
|
|
688
817
|
name?: string
|
|
@@ -711,6 +840,10 @@ export interface PatchContactDepartmentQuery {
|
|
|
711
840
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
712
841
|
}
|
|
713
842
|
|
|
843
|
+
export interface PatchContactDepartmentResponse {
|
|
844
|
+
department?: Department
|
|
845
|
+
}
|
|
846
|
+
|
|
714
847
|
export interface UpdateContactDepartmentRequest {
|
|
715
848
|
/** 部门名称 */
|
|
716
849
|
name: string
|
|
@@ -737,6 +870,10 @@ export interface UpdateContactDepartmentQuery {
|
|
|
737
870
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
738
871
|
}
|
|
739
872
|
|
|
873
|
+
export interface UpdateContactDepartmentResponse {
|
|
874
|
+
department?: Department
|
|
875
|
+
}
|
|
876
|
+
|
|
740
877
|
export interface UpdateDepartmentIdContactDepartmentRequest {
|
|
741
878
|
/** 本部门的自定义部门新ID */
|
|
742
879
|
new_department_id: string
|
|
@@ -764,6 +901,10 @@ export interface GetContactDepartmentQuery {
|
|
|
764
901
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
765
902
|
}
|
|
766
903
|
|
|
904
|
+
export interface GetContactDepartmentResponse {
|
|
905
|
+
department?: Department
|
|
906
|
+
}
|
|
907
|
+
|
|
767
908
|
export interface BatchContactDepartmentQuery {
|
|
768
909
|
/** 查询的部门ID列表,类型需要与department_id_type对应 */
|
|
769
910
|
department_ids: string[]
|
|
@@ -773,6 +914,11 @@ export interface BatchContactDepartmentQuery {
|
|
|
773
914
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
774
915
|
}
|
|
775
916
|
|
|
917
|
+
export interface BatchContactDepartmentResponse {
|
|
918
|
+
/** 查询到的部门信息,其中异常的部门ID不返回结果。 */
|
|
919
|
+
items?: Department[]
|
|
920
|
+
}
|
|
921
|
+
|
|
776
922
|
export interface ChildrenContactDepartmentQuery extends Pagination {
|
|
777
923
|
/** 此次调用中使用的用户ID的类型 */
|
|
778
924
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
@@ -817,6 +963,11 @@ export interface CreateContactUnitRequest {
|
|
|
817
963
|
unit_type: string
|
|
818
964
|
}
|
|
819
965
|
|
|
966
|
+
export interface CreateContactUnitResponse {
|
|
967
|
+
/** 单位的自定义ID */
|
|
968
|
+
unit_id: string
|
|
969
|
+
}
|
|
970
|
+
|
|
820
971
|
export interface PatchContactUnitRequest {
|
|
821
972
|
/** 单位的名字 */
|
|
822
973
|
name?: string
|
|
@@ -847,6 +998,11 @@ export interface ListDepartmentContactUnitQuery extends Pagination {
|
|
|
847
998
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
848
999
|
}
|
|
849
1000
|
|
|
1001
|
+
export interface GetContactUnitResponse {
|
|
1002
|
+
/** 单位信息 */
|
|
1003
|
+
unit: Unit
|
|
1004
|
+
}
|
|
1005
|
+
|
|
850
1006
|
export interface AddContactGroupMemberRequest {
|
|
851
1007
|
/** 用户组成员的类型,取值为 user */
|
|
852
1008
|
member_type: 'user'
|
|
@@ -861,6 +1017,11 @@ export interface BatchAddContactGroupMemberRequest {
|
|
|
861
1017
|
members?: Memberlist[]
|
|
862
1018
|
}
|
|
863
1019
|
|
|
1020
|
+
export interface BatchAddContactGroupMemberResponse {
|
|
1021
|
+
/** 成员添加操作结果 */
|
|
1022
|
+
results?: MemberResult[]
|
|
1023
|
+
}
|
|
1024
|
+
|
|
864
1025
|
export interface SimplelistContactGroupMemberQuery extends Pagination {
|
|
865
1026
|
/** 欲获取成员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。 */
|
|
866
1027
|
member_id_type?: 'open_id' | 'union_id' | 'user_id' | 'department_id'
|
|
@@ -887,6 +1048,11 @@ export interface CreateContactFunctionalRoleRequest {
|
|
|
887
1048
|
role_name: string
|
|
888
1049
|
}
|
|
889
1050
|
|
|
1051
|
+
export interface CreateContactFunctionalRoleResponse {
|
|
1052
|
+
/** 角色ID,在单租户下唯一 */
|
|
1053
|
+
role_id: string
|
|
1054
|
+
}
|
|
1055
|
+
|
|
890
1056
|
export interface UpdateContactFunctionalRoleRequest {
|
|
891
1057
|
/** 修改的角色名称,在单租户下唯一 */
|
|
892
1058
|
role_name: string
|
|
@@ -902,6 +1068,11 @@ export interface BatchCreateContactFunctionalRoleMemberQuery {
|
|
|
902
1068
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
903
1069
|
}
|
|
904
1070
|
|
|
1071
|
+
export interface BatchCreateContactFunctionalRoleMemberResponse {
|
|
1072
|
+
/** 批量新增角色成员结果集 */
|
|
1073
|
+
results?: FunctionalRoleMemberResult[]
|
|
1074
|
+
}
|
|
1075
|
+
|
|
905
1076
|
export interface ScopesContactFunctionalRoleMemberRequest {
|
|
906
1077
|
/** 角色修改的角色成员列表(一批用户的UserID列表) */
|
|
907
1078
|
members: string[]
|
|
@@ -916,6 +1087,11 @@ export interface ScopesContactFunctionalRoleMemberQuery {
|
|
|
916
1087
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
917
1088
|
}
|
|
918
1089
|
|
|
1090
|
+
export interface ScopesContactFunctionalRoleMemberResponse {
|
|
1091
|
+
/** 批量更新角色成员管理范围结果集 */
|
|
1092
|
+
results?: FunctionalRoleMemberResult[]
|
|
1093
|
+
}
|
|
1094
|
+
|
|
919
1095
|
export interface GetContactFunctionalRoleMemberQuery {
|
|
920
1096
|
/** 用户 ID 类型 */
|
|
921
1097
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
@@ -923,6 +1099,11 @@ export interface GetContactFunctionalRoleMemberQuery {
|
|
|
923
1099
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
924
1100
|
}
|
|
925
1101
|
|
|
1102
|
+
export interface GetContactFunctionalRoleMemberResponse {
|
|
1103
|
+
/** 成员的管理范围 */
|
|
1104
|
+
member?: FunctionalRoleMember
|
|
1105
|
+
}
|
|
1106
|
+
|
|
926
1107
|
export interface ListContactFunctionalRoleMemberQuery extends Pagination {
|
|
927
1108
|
/** 用户 ID 类型 */
|
|
928
1109
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
@@ -940,6 +1121,11 @@ export interface BatchDeleteContactFunctionalRoleMemberQuery {
|
|
|
940
1121
|
user_id_type?: 'open_id' | 'union_id' | 'user_id'
|
|
941
1122
|
}
|
|
942
1123
|
|
|
1124
|
+
export interface BatchDeleteContactFunctionalRoleMemberResponse {
|
|
1125
|
+
/** 批量新增角色成员结果集 */
|
|
1126
|
+
result?: FunctionalRoleMemberResult[]
|
|
1127
|
+
}
|
|
1128
|
+
|
|
943
1129
|
export interface CreateContactJobLevelRequest {
|
|
944
1130
|
/** 职级名称 */
|
|
945
1131
|
name: string
|
|
@@ -955,6 +1141,11 @@ export interface CreateContactJobLevelRequest {
|
|
|
955
1141
|
i18n_description?: I18nContent[]
|
|
956
1142
|
}
|
|
957
1143
|
|
|
1144
|
+
export interface CreateContactJobLevelResponse {
|
|
1145
|
+
/** 职级信息 */
|
|
1146
|
+
job_level?: JobLevel
|
|
1147
|
+
}
|
|
1148
|
+
|
|
958
1149
|
export interface UpdateContactJobLevelRequest {
|
|
959
1150
|
/** 职级名称 */
|
|
960
1151
|
name?: string
|
|
@@ -970,6 +1161,16 @@ export interface UpdateContactJobLevelRequest {
|
|
|
970
1161
|
i18n_description?: I18nContent[]
|
|
971
1162
|
}
|
|
972
1163
|
|
|
1164
|
+
export interface UpdateContactJobLevelResponse {
|
|
1165
|
+
/** 职级信息 */
|
|
1166
|
+
job_level?: JobLevel
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
export interface GetContactJobLevelResponse {
|
|
1170
|
+
/** 职级信息 */
|
|
1171
|
+
job_level?: JobLevel
|
|
1172
|
+
}
|
|
1173
|
+
|
|
973
1174
|
export interface ListContactJobLevelQuery extends Pagination {
|
|
974
1175
|
/** 传入该字段时,可查询指定职级名称对应的职级信息。 */
|
|
975
1176
|
name?: string
|
|
@@ -990,6 +1191,11 @@ export interface CreateContactJobFamilyRequest {
|
|
|
990
1191
|
i18n_description?: I18nContent[]
|
|
991
1192
|
}
|
|
992
1193
|
|
|
1194
|
+
export interface CreateContactJobFamilyResponse {
|
|
1195
|
+
/** 序列信息 */
|
|
1196
|
+
job_family?: JobFamily
|
|
1197
|
+
}
|
|
1198
|
+
|
|
993
1199
|
export interface UpdateContactJobFamilyRequest {
|
|
994
1200
|
/** 序列名称。1-100字符,支持中、英文及符号 */
|
|
995
1201
|
name?: string
|
|
@@ -1005,11 +1211,31 @@ export interface UpdateContactJobFamilyRequest {
|
|
|
1005
1211
|
i18n_description?: I18nContent[]
|
|
1006
1212
|
}
|
|
1007
1213
|
|
|
1214
|
+
export interface UpdateContactJobFamilyResponse {
|
|
1215
|
+
/** 更新后的序列信息 */
|
|
1216
|
+
job_family?: JobFamily
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
export interface GetContactJobFamilyResponse {
|
|
1220
|
+
/** 序列信息 */
|
|
1221
|
+
job_family?: JobFamily
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1008
1224
|
export interface ListContactJobFamilyQuery extends Pagination {
|
|
1009
1225
|
/** 序列名称,传入该字段时,可查询指定序列名称对应的序列信息 */
|
|
1010
1226
|
name?: string
|
|
1011
1227
|
}
|
|
1012
1228
|
|
|
1229
|
+
export interface GetContactJobTitleResponse {
|
|
1230
|
+
/** 职务信息 */
|
|
1231
|
+
job_title?: JobTitle
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export interface GetContactWorkCityResponse {
|
|
1235
|
+
/** 工作城市信息 */
|
|
1236
|
+
work_city?: WorkCity
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1013
1239
|
export interface ListContactUserQuery extends Pagination {
|
|
1014
1240
|
/** 此次调用中使用的用户ID的类型 */
|
|
1015
1241
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
@@ -1019,6 +1245,17 @@ export interface ListContactUserQuery extends Pagination {
|
|
|
1019
1245
|
department_id?: string
|
|
1020
1246
|
}
|
|
1021
1247
|
|
|
1248
|
+
export const enum UpdateContactUserRequestGender {
|
|
1249
|
+
/** 保密 */
|
|
1250
|
+
Unkown = 0,
|
|
1251
|
+
/** 男 */
|
|
1252
|
+
Male = 1,
|
|
1253
|
+
/** 女 */
|
|
1254
|
+
Female = 2,
|
|
1255
|
+
/** 其他 */
|
|
1256
|
+
Others = 3,
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1022
1259
|
export interface UpdateContactUserRequest {
|
|
1023
1260
|
/** 用户名 */
|
|
1024
1261
|
name: string
|
|
@@ -1033,7 +1270,7 @@ export interface UpdateContactUserRequest {
|
|
|
1033
1270
|
/** 手机号码可见性,true 为可见,false 为不可见,目前默认为 true。不可见时,组织员工将无法查看该员工的手机号码 */
|
|
1034
1271
|
mobile_visible?: boolean
|
|
1035
1272
|
/** 性别 */
|
|
1036
|
-
gender?:
|
|
1273
|
+
gender?: UpdateContactUserRequestGender
|
|
1037
1274
|
/** 头像的文件Key */
|
|
1038
1275
|
avatar_key?: string
|
|
1039
1276
|
/** 用户所在部门ID */
|
|
@@ -1071,6 +1308,10 @@ export interface UpdateContactUserQuery {
|
|
|
1071
1308
|
department_id_type?: 'department_id' | 'open_department_id'
|
|
1072
1309
|
}
|
|
1073
1310
|
|
|
1311
|
+
export interface UpdateContactUserResponse {
|
|
1312
|
+
user?: User
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1074
1315
|
export interface ListContactDepartmentQuery extends Pagination {
|
|
1075
1316
|
/** 此次调用中使用的用户ID的类型 */
|
|
1076
1317
|
user_id_type?: 'user_id' | 'union_id' | 'open_id'
|
|
@@ -1082,165 +1323,6 @@ export interface ListContactDepartmentQuery extends Pagination {
|
|
|
1082
1323
|
fetch_child?: boolean
|
|
1083
1324
|
}
|
|
1084
1325
|
|
|
1085
|
-
export interface ListContactScopeResponse {
|
|
1086
|
-
/** 已授权部门列表,授权范围为全员可见时返回的是当前企业的所有一级部门列表 */
|
|
1087
|
-
department_ids?: string[]
|
|
1088
|
-
/** 已授权用户列表,应用申请了获取用户user_id 权限时返回;当授权范围为全员可见时返回的是当前企业所有顶级部门用户列表 */
|
|
1089
|
-
user_ids?: string[]
|
|
1090
|
-
/** 已授权的用户组,授权范围为全员可见时返回的是当前企业所有用户组 */
|
|
1091
|
-
group_ids?: string[]
|
|
1092
|
-
/** 是否还有更多项 */
|
|
1093
|
-
has_more?: boolean
|
|
1094
|
-
/** 分页标记,当 has_more 为 true 时,会同时返回新的 page_token */
|
|
1095
|
-
page_token?: string
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
export interface CreateContactUserResponse {
|
|
1099
|
-
user?: User
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
export interface PatchContactUserResponse {
|
|
1103
|
-
user?: User
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
export interface GetContactUserResponse {
|
|
1107
|
-
user?: User
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
export interface BatchContactUserResponse {
|
|
1111
|
-
/** 查询到的用户信息,其中异常的用户ID不返回结果。 */
|
|
1112
|
-
items?: User[]
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
export interface BatchGetIdContactUserResponse {
|
|
1116
|
-
/** 手机号或者邮箱对应的用户id信息 */
|
|
1117
|
-
user_list?: UserContactInfo[]
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
export interface CreateContactGroupResponse {
|
|
1121
|
-
/** 用户组ID */
|
|
1122
|
-
group_id: string
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
export interface GetContactGroupResponse {
|
|
1126
|
-
/** 用户组详情 */
|
|
1127
|
-
group: Group
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
export interface CreateContactEmployeeTypeEnumResponse {
|
|
1131
|
-
/** 创建人员类型接口 */
|
|
1132
|
-
employee_type_enum?: EmployeeTypeEnum
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
export interface UpdateContactEmployeeTypeEnumResponse {
|
|
1136
|
-
employee_type_enum?: EmployeeTypeEnum
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
export interface CreateContactDepartmentResponse {
|
|
1140
|
-
department?: Department
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
export interface PatchContactDepartmentResponse {
|
|
1144
|
-
department?: Department
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
export interface UpdateContactDepartmentResponse {
|
|
1148
|
-
department?: Department
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
export interface GetContactDepartmentResponse {
|
|
1152
|
-
department?: Department
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
export interface BatchContactDepartmentResponse {
|
|
1156
|
-
/** 查询到的部门信息,其中异常的部门ID不返回结果。 */
|
|
1157
|
-
items?: Department[]
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
export interface CreateContactUnitResponse {
|
|
1161
|
-
/** 单位的自定义ID */
|
|
1162
|
-
unit_id: string
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
export interface GetContactUnitResponse {
|
|
1166
|
-
/** 单位信息 */
|
|
1167
|
-
unit: Unit
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
export interface BatchAddContactGroupMemberResponse {
|
|
1171
|
-
/** 成员添加操作结果 */
|
|
1172
|
-
results?: MemberResult[]
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
export interface CreateContactFunctionalRoleResponse {
|
|
1176
|
-
/** 角色ID,在单租户下唯一 */
|
|
1177
|
-
role_id: string
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
export interface BatchCreateContactFunctionalRoleMemberResponse {
|
|
1181
|
-
/** 批量新增角色成员结果集 */
|
|
1182
|
-
results?: FunctionalRoleMemberResult[]
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
export interface ScopesContactFunctionalRoleMemberResponse {
|
|
1186
|
-
/** 批量更新角色成员管理范围结果集 */
|
|
1187
|
-
results?: FunctionalRoleMemberResult[]
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
export interface GetContactFunctionalRoleMemberResponse {
|
|
1191
|
-
/** 成员的管理范围 */
|
|
1192
|
-
member?: FunctionalRoleMember
|
|
1193
|
-
}
|
|
1194
|
-
|
|
1195
|
-
export interface BatchDeleteContactFunctionalRoleMemberResponse {
|
|
1196
|
-
/** 批量新增角色成员结果集 */
|
|
1197
|
-
result?: FunctionalRoleMemberResult[]
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
export interface CreateContactJobLevelResponse {
|
|
1201
|
-
/** 职级信息 */
|
|
1202
|
-
job_level?: JobLevel
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
export interface UpdateContactJobLevelResponse {
|
|
1206
|
-
/** 职级信息 */
|
|
1207
|
-
job_level?: JobLevel
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
export interface GetContactJobLevelResponse {
|
|
1211
|
-
/** 职级信息 */
|
|
1212
|
-
job_level?: JobLevel
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
|
-
export interface CreateContactJobFamilyResponse {
|
|
1216
|
-
/** 序列信息 */
|
|
1217
|
-
job_family?: JobFamily
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
export interface UpdateContactJobFamilyResponse {
|
|
1221
|
-
/** 更新后的序列信息 */
|
|
1222
|
-
job_family?: JobFamily
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
export interface GetContactJobFamilyResponse {
|
|
1226
|
-
/** 序列信息 */
|
|
1227
|
-
job_family?: JobFamily
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
export interface GetContactJobTitleResponse {
|
|
1231
|
-
/** 职务信息 */
|
|
1232
|
-
job_title?: JobTitle
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
export interface GetContactWorkCityResponse {
|
|
1236
|
-
/** 工作城市信息 */
|
|
1237
|
-
work_city?: WorkCity
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
export interface UpdateContactUserResponse {
|
|
1241
|
-
user?: User
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
1326
|
Internal.define({
|
|
1245
1327
|
'/contact/v3/scopes': {
|
|
1246
1328
|
GET: 'listContactScope',
|