Skip to content

Commit

Permalink
feat: code-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
mazhe-nerd committed Jun 17, 2024
1 parent f835cb0 commit 1090898
Show file tree
Hide file tree
Showing 11 changed files with 11,291 additions and 5,107 deletions.
139 changes: 139 additions & 0 deletions code-gen/events-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1998,6 +1998,81 @@ export interface IHandles extends IOtherEventHandles {
pre_hire_id?: string;
field_changes?: Array<string>;
}) => Promise<any> | any;
/**
*/
"corehr.offboarding.checklist_updated_v2"?: (data: {
event_id?: string;
token?: string;
create_time?: string;
event_type?: string;
tenant_key?: string;
ts?: string;
uuid?: string;
type?: string;
app_id?: string;
employment_id?: string;
target_user_id?: {
union_id?: string;
user_id?: string;
open_id?: string;
};
offboarding_id?: string;
checklist_process_id?: string;
checklist_status?: number;
}) => Promise<any> | any;
/**
*/
"corehr.offboarding.status_updated_v2"?: (data: {
event_id?: string;
token?: string;
create_time?: string;
event_type?: string;
tenant_key?: string;
ts?: string;
uuid?: string;
type?: string;
app_id?: string;
employment_id?: string;
target_user_id?: {
union_id?: string;
user_id?: string;
open_id?: string;
};
offboarding_id?: string;
process_id?: string;
status?: number;
}) => Promise<any> | any;
/**
*/
"corehr.offboarding.updated_v2"?: (data: {
event_id?: string;
token?: string;
create_time?: string;
event_type?: string;
tenant_key?: string;
ts?: string;
uuid?: string;
type?: string;
app_id?: string;
tenant_id?: string;
offboarding_info_id?: string;
process_id?: string;
checklist_process_id?: string;
employment_id?: string;
operator?: string;
status?: number;
checklist_status?: number;
updated_time?: string;
updated_fields?: Array<string>;
target_user_id?: {
union_id?: string;
user_id?: string;
open_id?: string;
};
}) => Promise<any> | any;
/**
*/
Expand Down Expand Up @@ -2038,6 +2113,9 @@ export interface IHandles extends IOtherEventHandles {
approver_id?: string;
status?: number;
biz_type?: string;
flow_definition_id?: string;
node_definition_id?: string;
node_id?: string;
}) => Promise<any> | any;
/**
Expand Down Expand Up @@ -2182,6 +2260,67 @@ export interface IHandles extends IOtherEventHandles {
}>;
update_time?: number;
}) => Promise<any> | any;
/**
*/
"drive.file.bitable_record_changed_v1"?: (data: {
event_id?: string;
token?: string;
create_time?: string;
event_type?: string;
tenant_key?: string;
ts?: string;
uuid?: string;
type?: string;
app_id?: string;
file_type?: string;
file_token?: string;
table_id?: string;
revision?: number;
operator_id?: { union_id?: string; user_id?: string; open_id?: string };
action_list?: Array<{
record_id: string;
action: string;
before_value?: Array<{
field_id: string;
field_value: string;
field_identity_value?: {
users?: Array<{
user_id: {
union_id?: string;
user_id?: string;
open_id?: string;
};
name: string;
en_name: string;
avatar_url: string;
}>;
};
}>;
after_value?: Array<{
field_id: string;
field_value: string;
field_identity_value?: {
users?: Array<{
user_id: {
union_id?: string;
user_id?: string;
open_id?: string;
};
name: string;
en_name: string;
avatar_url: string;
}>;
};
}>;
}>;
subscriber_id_list?: Array<{
union_id?: string;
user_id?: string;
open_id?: string;
}>;
update_time?: number;
}) => Promise<any> | any;
/**
* {@link https://open.feishu.cn/document/ukTMukTMukTM/uUDN04SN0QjL1QDN/event/file-deleted-completely document }
*/
Expand Down
4 changes: 2 additions & 2 deletions code-gen/projects/approval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ export default abstract class Client extends application {
},
},
/**
* 原生审批实例
* 审批查询
*/
instance: {
/**
Expand Down Expand Up @@ -3829,7 +3829,7 @@ export default abstract class Client extends application {
},
},
/**
* 原生审批实例
* 审批查询
*/
instance: {
/**
Expand Down
Loading

0 comments on commit 1090898

Please sign in to comment.