diff --git a/.gitattributes b/.gitattributes index f6b1d233..ef793b44 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,3 +5,5 @@ *.ico -text *.gif -text *.webp -text + +adapters/lark/src/types/*.ts linguist-generated=true diff --git a/adapters/lark/scripts/types.ts b/adapters/lark/scripts/types.ts index e07066b9..34c9cc8b 100644 --- a/adapters/lark/scripts/types.ts +++ b/adapters/lark/scripts/types.ts @@ -131,8 +131,8 @@ function toHump(name: string) { }) } -function formatType(schema: Schema, imports: Set) { - if (!schema.ref) return _formatType(schema, imports) +function formatType(schema: Schema, imports: Set, inArray?: boolean) { + if (!schema.ref) return _formatType(schema, imports, inArray) const name = capitalize(toHump(schema.ref)) imports.add(name) if (refs[name]) return name @@ -142,11 +142,12 @@ function formatType(schema: Schema, imports: Set) { return name } -function _formatType(schema: Schema, imports = new Set()) { +function _formatType(schema: Schema, imports = new Set(), inArray?: boolean) { if (schema.type === 'file') return 'Blob' if (schema.type === 'int') { if (schema.options) { - return schema.options.map(v => v.value).join(' | ') + const output = schema.options.map(v => v.value).join(' | ') + return inArray ? `(${output})` : output } else { return 'number' } @@ -154,7 +155,8 @@ function _formatType(schema: Schema, imports = new Set()) { if (schema.type === 'float') return 'number' if (schema.type === 'string') { if (schema.options) { - return schema.options.map(v => `'${v.value}'`).join(' | ') + const output = schema.options.map(v => `'${v.value}'`).join(' | ') + return inArray ? `(${output})` : output } else { return 'string' } @@ -164,7 +166,7 @@ function _formatType(schema: Schema, imports = new Set()) { if (!schema.properties) return 'unknown' return `{\n${generateParams(schema.properties, imports)}}` } else if (schema.type === 'list') { - return formatType(schema.items!, imports) + '[]' + return formatType(schema.items!, imports, true) + '[]' } return 'unknown' } @@ -179,7 +181,7 @@ function generateParams(properties: Schema[], imports: Set): string { function getApiName(detail: ApiDetail) { let project = detail.project - if (project === 'task' || project === 'drive') { + if (project === 'task' || project === 'drive' || project === 'performance' || project === 'corehr') { project = project + detail.version.toUpperCase() } if (detail.project === detail.resource) { @@ -210,6 +212,12 @@ async function start() { concurrency: 10, }) + const projectVersions: Record> = {} + data.apis.forEach(api => { + (projectVersions[api.meta.Project] ??= new Set()).add(api.meta.Version) + }) + console.log(projectVersions) + details.forEach((detail, index) => { const summary = data.apis[index] const project = projects[detail.project] ||= { @@ -255,7 +263,6 @@ async function start() { queryType = 'Pagination' paginationRequest = {} } - project.internalImports.add('Pagination') } else { project.requests.push(`export interface ${queryType} {\n${generateParams(detail.request.query.properties, project.imports)}}`) } @@ -306,8 +313,10 @@ async function start() { } } } else { - project.responses.push(`export interface ${returnType} extends BaseResponse {\n${generateParams(detail.response.body.properties!, project.imports)}}`) + const properties = detail.response.body.properties!.filter(v => !['code', 'msg'].includes(v.name)) + project.responses.push(`export interface ${returnType} extends BaseResponse {\n${generateParams(properties, project.imports)}}`) extras.push(`type: 'raw-json'`) + project.internalImports.add('BaseResponse') } } @@ -342,7 +351,9 @@ async function start() { extras.push(`pagination: { ${props.join(', ')} }`) } - const path = detail.apiPath.replace(/:([0-9a-zA-Z_]+)/g, '{$1}') + const path = detail.apiPath + .slice('/open-apis'.length) + .replace(/:([0-9a-zA-Z_]+)/g, '{$1}') project.defines[path] ||= {} project.defines[path][detail.httpMethod] = extras.length ? `{ name: '${method}', ${extras.join(', ')} }` @@ -357,9 +368,13 @@ async function start() { }).join('\n') return `'${path}': {\n${content}\n },` }).join('\n ') - const imports = [`import { ${[...project.internalImports].sort().join(', ')} } from '../internal'`] + const imports = [`import { ${[...project.internalImports] + .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .join(', ')} } from '../internal'`] if (project.imports.size) { - imports.unshift(`import { ${[...project.imports].sort().join(', ')} } from '.'`) + imports.unshift(`import { ${[...project.imports] + .sort((a, b) => a.toLowerCase().localeCompare(b.toLowerCase())) + .join(', ')} } from '.'`) } await writeFile(path, [ imports.join('\n'), diff --git a/adapters/lark/src/types/acs.ts b/adapters/lark/src/types/acs.ts index a9a44199..3c9f4845 100644 --- a/adapters/lark/src/types/acs.ts +++ b/adapters/lark/src/types/acs.ts @@ -1,5 +1,5 @@ import { AccessRecord, Device, Feature, Rule, User, UserExternal } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -209,38 +209,38 @@ export interface ListAcsDeviceResponse { } Internal.define({ - '/open-apis/acs/v1/users/{user_id}': { + '/acs/v1/users/{user_id}': { PATCH: 'patchAcsUser', GET: 'getAcsUser', }, - '/open-apis/acs/v1/users': { + '/acs/v1/users': { GET: { name: 'listAcsUser', pagination: { argIndex: 0 } }, }, - '/open-apis/acs/v1/users/{user_id}/face': { + '/acs/v1/users/{user_id}/face': { PUT: { name: 'updateAcsUserFace', multipart: true }, GET: { name: 'getAcsUserFace', type: 'binary' }, }, - '/open-apis/acs/v1/rule_external/device_bind': { + '/acs/v1/rule_external/device_bind': { POST: 'deviceBindAcsRuleExternal', }, - '/open-apis/acs/v1/rule_external': { + '/acs/v1/rule_external': { GET: 'getAcsRuleExternal', DELETE: 'deleteAcsRuleExternal', POST: 'createAcsRuleExternal', }, - '/open-apis/acs/v1/visitors/{visitor_id}': { + '/acs/v1/visitors/{visitor_id}': { DELETE: 'deleteAcsVisitor', }, - '/open-apis/acs/v1/visitors': { + '/acs/v1/visitors': { POST: 'createAcsVisitor', }, - '/open-apis/acs/v1/devices': { + '/acs/v1/devices': { GET: 'listAcsDevice', }, - '/open-apis/acs/v1/access_records': { + '/acs/v1/access_records': { GET: { name: 'listAcsAccessRecord', pagination: { argIndex: 0 } }, }, - '/open-apis/acs/v1/access_records/{access_record_id}/access_photo': { + '/acs/v1/access_records/{access_record_id}/access_photo': { GET: { name: 'getAcsAccessRecordAccessPhoto', type: 'binary' }, }, }) diff --git a/adapters/lark/src/types/admin.ts b/adapters/lark/src/types/admin.ts index 0659b282..13f5cfe4 100644 --- a/adapters/lark/src/types/admin.ts +++ b/adapters/lark/src/types/admin.ts @@ -1,5 +1,5 @@ import { AdminDeptStat, AdminUserStat, AuditInfo, Badge, Grant, I18n, Password, RuleDetail } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -318,36 +318,36 @@ export interface GetAdminBadgeGrantResponse { } Internal.define({ - '/open-apis/admin/v1/password/reset': { + '/admin/v1/password/reset': { POST: 'resetAdminPassword', }, - '/open-apis/admin/v1/admin_dept_stats': { + '/admin/v1/admin_dept_stats': { GET: { name: 'listAdminAdminDeptStat', pagination: { argIndex: 0 } }, }, - '/open-apis/admin/v1/admin_user_stats': { + '/admin/v1/admin_user_stats': { GET: { name: 'listAdminAdminUserStat', pagination: { argIndex: 0 } }, }, - '/open-apis/admin/v1/badges': { + '/admin/v1/badges': { POST: 'createAdminBadge', GET: { name: 'listAdminBadge', pagination: { argIndex: 0, itemsKey: 'badges' } }, }, - '/open-apis/admin/v1/badges/{badge_id}': { + '/admin/v1/badges/{badge_id}': { PUT: 'updateAdminBadge', GET: 'getAdminBadge', }, - '/open-apis/admin/v1/badge_images': { + '/admin/v1/badge_images': { POST: { name: 'createAdminBadgeImage', multipart: true }, }, - '/open-apis/admin/v1/badges/{badge_id}/grants': { + '/admin/v1/badges/{badge_id}/grants': { POST: 'createAdminBadgeGrant', GET: { name: 'listAdminBadgeGrant', pagination: { argIndex: 1, itemsKey: 'grants' } }, }, - '/open-apis/admin/v1/badges/{badge_id}/grants/{grant_id}': { + '/admin/v1/badges/{badge_id}/grants/{grant_id}': { DELETE: 'deleteAdminBadgeGrant', PUT: 'updateAdminBadgeGrant', GET: 'getAdminBadgeGrant', }, - '/open-apis/admin/v1/audit_infos': { + '/admin/v1/audit_infos': { GET: { name: 'listAdminAuditInfo', pagination: { argIndex: 0 } }, }, }) diff --git a/adapters/lark/src/types/aily.ts b/adapters/lark/src/types/aily.ts index 6d02f505..1bad7aa9 100644 --- a/adapters/lark/src/types/aily.ts +++ b/adapters/lark/src/types/aily.ts @@ -1,5 +1,5 @@ import { AilyKnowledgeAskProcessData, AilyKnowledgeFaq, AilyKnowledgeMessage, AilyMention, AilyMessage, AilyMessageContentType, AilySession, DataAsset, DataAssetTag, Run, Skill, SkillGlobalVariable } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -267,47 +267,47 @@ export interface AskAilyAppKnowledgeResponse { } Internal.define({ - '/open-apis/aily/v1/sessions': { + '/aily/v1/sessions': { POST: 'createAilyAilySession', }, - '/open-apis/aily/v1/sessions/{aily_session_id}': { + '/aily/v1/sessions/{aily_session_id}': { PUT: 'updateAilyAilySession', GET: 'getAilyAilySession', DELETE: 'deleteAilyAilySession', }, - '/open-apis/aily/v1/sessions/{aily_session_id}/messages': { + '/aily/v1/sessions/{aily_session_id}/messages': { POST: 'createAilyAilySessionAilyMessage', GET: { name: 'listAilyAilySessionAilyMessage', pagination: { argIndex: 1, itemsKey: 'messages' } }, }, - '/open-apis/aily/v1/sessions/{aily_session_id}/messages/{aily_message_id}': { + '/aily/v1/sessions/{aily_session_id}/messages/{aily_message_id}': { GET: 'getAilyAilySessionAilyMessage', }, - '/open-apis/aily/v1/sessions/{aily_session_id}/runs': { + '/aily/v1/sessions/{aily_session_id}/runs': { POST: 'createAilyAilySessionRun', GET: { name: 'listAilyAilySessionRun', pagination: { argIndex: 1, itemsKey: 'runs' } }, }, - '/open-apis/aily/v1/sessions/{aily_session_id}/runs/{run_id}': { + '/aily/v1/sessions/{aily_session_id}/runs/{run_id}': { GET: 'getAilyAilySessionRun', }, - '/open-apis/aily/v1/sessions/{aily_session_id}/runs/{run_id}/cancel': { + '/aily/v1/sessions/{aily_session_id}/runs/{run_id}/cancel': { POST: 'cancelAilyAilySessionRun', }, - '/open-apis/aily/v1/apps/{app_id}/skills/{skill_id}/start': { + '/aily/v1/apps/{app_id}/skills/{skill_id}/start': { POST: 'startAilyAppSkill', }, - '/open-apis/aily/v1/apps/{app_id}/skills/{skill_id}': { + '/aily/v1/apps/{app_id}/skills/{skill_id}': { GET: 'getAilyAppSkill', }, - '/open-apis/aily/v1/apps/{app_id}/skills': { + '/aily/v1/apps/{app_id}/skills': { GET: { name: 'listAilyAppSkill', pagination: { argIndex: 1, itemsKey: 'skills' } }, }, - '/open-apis/aily/v1/apps/{app_id}/knowledges/ask': { + '/aily/v1/apps/{app_id}/knowledges/ask': { POST: 'askAilyAppKnowledge', }, - '/open-apis/aily/v1/apps/{app_id}/data_assets': { + '/aily/v1/apps/{app_id}/data_assets': { GET: { name: 'listAilyAppDataAsset', pagination: { argIndex: 1 } }, }, - '/open-apis/aily/v1/apps/{app_id}/data_asset_tags': { + '/aily/v1/apps/{app_id}/data_asset_tags': { GET: { name: 'listAilyAppDataAssetTag', pagination: { argIndex: 1 } }, }, }) diff --git a/adapters/lark/src/types/apaas.ts b/adapters/lark/src/types/apaas.ts index e3a5f5c7..8ce0c591 100644 --- a/adapters/lark/src/types/apaas.ts +++ b/adapters/lark/src/types/apaas.ts @@ -549,98 +549,98 @@ export interface ChatGroupApaasUserTaskResponse { } Internal.define({ - '/open-apis/apaas/v1/applications/{namespace}/audit_log/audit_log_list': { + '/apaas/v1/applications/{namespace}/audit_log/audit_log_list': { GET: 'auditLogListApaasApplicationAuditLog', }, - '/open-apis/apaas/v1/applications/{namespace}/audit_log': { + '/apaas/v1/applications/{namespace}/audit_log': { GET: 'getApaasApplicationAuditLog', }, - '/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_remove_authorization': { + '/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_remove_authorization': { POST: 'batchRemoveAuthorizationApaasApplicationRoleMember', }, - '/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_create_authorization': { + '/apaas/v1/applications/{namespace}/roles/{role_api_name}/member/batch_create_authorization': { POST: 'batchCreateAuthorizationApaasApplicationRoleMember', }, - '/open-apis/apaas/v1/applications/{namespace}/roles/{role_api_name}/member': { + '/apaas/v1/applications/{namespace}/roles/{role_api_name}/member': { GET: 'getApaasApplicationRoleMember', }, - '/open-apis/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_remove_authorization': { + '/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_remove_authorization': { POST: 'batchRemoveAuthorizationApaasApplicationRecordPermissionMember', }, - '/open-apis/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_create_authorization': { + '/apaas/v1/applications/{namespace}/record_permissions/{record_permission_api_name}/member/batch_create_authorization': { POST: 'batchCreateAuthorizationApaasApplicationRecordPermissionMember', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/oql_query': { + '/apaas/v1/applications/{namespace}/objects/oql_query': { POST: 'oqlQueryApaasApplicationObject', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/search': { + '/apaas/v1/applications/{namespace}/objects/search': { POST: 'searchApaasApplicationObject', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}/query': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}/query': { POST: 'queryApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/{id}': { PATCH: 'patchApaasApplicationObjectRecord', DELETE: 'deleteApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records': { POST: 'createApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_update': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_update': { PATCH: 'batchUpdateApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_query': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_query': { POST: 'batchQueryApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_delete': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_delete': { DELETE: 'batchDeleteApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_create': { + '/apaas/v1/applications/{namespace}/objects/{object_api_name}/records/batch_create': { POST: 'batchCreateApaasApplicationObjectRecord', }, - '/open-apis/apaas/v1/applications/{namespace}/functions/{function_api_name}/invoke': { + '/apaas/v1/applications/{namespace}/functions/{function_api_name}/invoke': { POST: 'invokeApaasApplicationFunction', }, - '/open-apis/apaas/v1/applications/{namespace}/environment_variables/query': { + '/apaas/v1/applications/{namespace}/environment_variables/query': { POST: 'queryApaasApplicationEnvironmentVariable', }, - '/open-apis/apaas/v1/applications/{namespace}/environment_variables/{environment_variable_api_name}': { + '/apaas/v1/applications/{namespace}/environment_variables/{environment_variable_api_name}': { GET: 'getApaasApplicationEnvironmentVariable', }, - '/open-apis/apaas/v1/applications/{namespace}/flows/{flow_id}/execute': { + '/apaas/v1/applications/{namespace}/flows/{flow_id}/execute': { POST: 'executeApaasApplicationFlow', }, - '/open-apis/apaas/v1/user_task/query': { + '/apaas/v1/user_task/query': { POST: 'queryApaasUserTask', }, - '/open-apis/apaas/v1/approval_tasks/{approval_task_id}/agree': { + '/apaas/v1/approval_tasks/{approval_task_id}/agree': { POST: 'agreeApaasApprovalTask', }, - '/open-apis/apaas/v1/approval_tasks/{approval_task_id}/reject': { + '/apaas/v1/approval_tasks/{approval_task_id}/reject': { POST: 'rejectApaasApprovalTask', }, - '/open-apis/apaas/v1/approval_tasks/{approval_task_id}/transfer': { + '/apaas/v1/approval_tasks/{approval_task_id}/transfer': { POST: 'transferApaasApprovalTask', }, - '/open-apis/apaas/v1/approval_tasks/{approval_task_id}/add_assignee': { + '/apaas/v1/approval_tasks/{approval_task_id}/add_assignee': { POST: 'addAssigneeApaasApprovalTask', }, - '/open-apis/apaas/v1/user_tasks/{task_id}/cc': { + '/apaas/v1/user_tasks/{task_id}/cc': { POST: 'ccApaasUserTask', }, - '/open-apis/apaas/v1/user_tasks/{task_id}/expediting': { + '/apaas/v1/user_tasks/{task_id}/expediting': { POST: 'expeditingApaasUserTask', }, - '/open-apis/apaas/v1/approval_instances/{approval_instance_id}/cancel': { + '/apaas/v1/approval_instances/{approval_instance_id}/cancel': { POST: 'cancelApaasApprovalInstance', }, - '/open-apis/apaas/v1/user_tasks/{task_id}/rollback_points': { + '/apaas/v1/user_tasks/{task_id}/rollback_points': { POST: 'rollbackPointsApaasUserTask', }, - '/open-apis/apaas/v1/user_tasks/{task_id}/rollback': { + '/apaas/v1/user_tasks/{task_id}/rollback': { POST: 'rollbackApaasUserTask', }, - '/open-apis/apaas/v1/user_tasks/{task_id}/chat_group': { + '/apaas/v1/user_tasks/{task_id}/chat_group': { POST: 'chatGroupApaasUserTask', }, }) diff --git a/adapters/lark/src/types/application.ts b/adapters/lark/src/types/application.ts index 160f9ea1..99d54eb9 100644 --- a/adapters/lark/src/types/application.ts +++ b/adapters/lark/src/types/application.ts @@ -1,5 +1,5 @@ -import { AppContactsRangeIdList, AppRecommendRule, AppVisibilityIdList, Application, ApplicationAppContactsRange, ApplicationAppUsage, ApplicationAppVersion, ApplicationDepartmentAppUsage, ApplicationFeedback, ApplicationVisibilityDepartmentWhiteBlackInfo, ApplicationVisibilityGroupWhiteBlackInfo, ApplicationVisibilityUserWhiteBlackInfo, ClientBadgeNum, Scope } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { AppContactsRangeIdList, Application, ApplicationAppContactsRange, ApplicationAppUsage, ApplicationAppVersion, ApplicationDepartmentAppUsage, ApplicationFeedback, ApplicationVisibilityDepartmentWhiteBlackInfo, ApplicationVisibilityGroupWhiteBlackInfo, ApplicationVisibilityUserWhiteBlackInfo, AppRecommendRule, AppVisibilityIdList, ClientBadgeNum, Scope } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -469,72 +469,72 @@ export interface RecommendApplicationResponse { } Internal.define({ - '/open-apis/application/v6/applications/{app_id}': { + '/application/v6/applications/{app_id}': { GET: 'getApplication', PATCH: 'patchApplication', }, - '/open-apis/application/v6/applications/{app_id}/app_versions/{version_id}': { + '/application/v6/applications/{app_id}/app_versions/{version_id}': { GET: 'getApplicationApplicationAppVersion', PATCH: 'patchApplicationApplicationAppVersion', }, - '/open-apis/application/v6/applications/{app_id}/app_versions': { + '/application/v6/applications/{app_id}/app_versions': { GET: { name: 'listApplicationApplicationAppVersion', pagination: { argIndex: 1 } }, }, - '/open-apis/application/v6/applications/{app_id}/app_versions/{version_id}/contacts_range_suggest': { + '/application/v6/applications/{app_id}/app_versions/{version_id}/contacts_range_suggest': { GET: 'contactsRangeSuggestApplicationApplicationAppVersion', }, - '/open-apis/application/v6/scopes/apply': { + '/application/v6/scopes/apply': { POST: 'applyApplicationScope', }, - '/open-apis/application/v6/scopes': { + '/application/v6/scopes': { GET: 'listApplicationScope', }, - '/open-apis/application/v6/applications': { + '/application/v6/applications': { GET: 'listApplication', }, - '/open-apis/application/v6/applications/underauditlist': { + '/application/v6/applications/underauditlist': { GET: { name: 'underauditlistApplication', pagination: { argIndex: 0 } }, }, - '/open-apis/application/v6/applications/{app_id}/contacts_range_configuration': { + '/application/v6/applications/{app_id}/contacts_range_configuration': { GET: 'contactsRangeConfigurationApplication', }, - '/open-apis/application/v6/applications/{app_id}/contacts_range': { + '/application/v6/applications/{app_id}/contacts_range': { PATCH: 'patchApplicationApplicationContactsRange', }, - '/open-apis/application/v6/applications/{app_id}/visibility/check_white_black_list': { + '/application/v6/applications/{app_id}/visibility/check_white_black_list': { POST: 'checkWhiteBlackListApplicationApplicationVisibility', }, - '/open-apis/application/v6/applications/{app_id}/visibility': { + '/application/v6/applications/{app_id}/visibility': { PATCH: 'patchApplicationApplicationVisibility', }, - '/open-apis/application/v6/applications/{app_id}/management': { + '/application/v6/applications/{app_id}/management': { PUT: 'updateApplicationApplicationManagement', }, - '/open-apis/application/v6/applications/{app_id}/app_usage/department_overview': { + '/application/v6/applications/{app_id}/app_usage/department_overview': { POST: 'departmentOverviewApplicationApplicationAppUsage', }, - '/open-apis/application/v6/applications/{app_id}/app_usage/message_push_overview': { + '/application/v6/applications/{app_id}/app_usage/message_push_overview': { POST: 'messagePushOverviewApplicationApplicationAppUsage', }, - '/open-apis/application/v6/applications/{app_id}/app_usage/overview': { + '/application/v6/applications/{app_id}/app_usage/overview': { POST: 'overviewApplicationApplicationAppUsage', }, - '/open-apis/application/v6/applications/{app_id}/feedbacks/{feedback_id}': { + '/application/v6/applications/{app_id}/feedbacks/{feedback_id}': { PATCH: 'patchApplicationApplicationFeedback', }, - '/open-apis/application/v6/applications/{app_id}/feedbacks': { + '/application/v6/applications/{app_id}/feedbacks': { GET: { name: 'listApplicationApplicationFeedback', pagination: { argIndex: 1, itemsKey: 'feedback_list' } }, }, - '/open-apis/application/v6/app_badge/set': { + '/application/v6/app_badge/set': { POST: 'setApplicationAppBadge', }, - '/open-apis/application/v5/applications/favourite': { + '/application/v5/applications/favourite': { GET: 'favouriteApplication', }, - '/open-apis/application/v5/applications/recommend': { + '/application/v5/applications/recommend': { GET: 'recommendApplication', }, - '/open-apis/application/v6/app_recommend_rules': { + '/application/v6/app_recommend_rules': { GET: { name: 'listApplicationAppRecommendRule', pagination: { argIndex: 0, itemsKey: 'rules' } }, }, }) diff --git a/adapters/lark/src/types/approval.ts b/adapters/lark/src/types/approval.ts index 31ba4bc2..22e0b8a5 100644 --- a/adapters/lark/src/types/approval.ts +++ b/adapters/lark/src/types/approval.ts @@ -1,5 +1,5 @@ import { ApprovalConfig, ApprovalCreateExternal, ApprovalCreateViewers, ApprovalForm, ApprovalNode, ApprovalNodeInfo, ApprovalSetting, ApprovalViewerInfo, CcNode, CcSearchItem, Comment, CommentAtInfo, Count, ExteranlInstanceCheck, ExteranlInstanceCheckResponse, ExternalInstance, ExternalInstanceForm, ExternalInstanceLink, ExternalInstanceTaskNode, ExternalTaskList, I18nResource, InstanceComment, InstanceSearchItem, InstanceTask, InstanceTimeline, NodeApprover, NodeAutoApproval, NodeCc, PreviewNode, Task, TaskSearchItem, TrusteeshipInstanceCacheConfig, TrusteeshipUrls } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -848,87 +848,87 @@ export interface QueryApprovalTaskResponse { } Internal.define({ - '/open-apis/approval/v4/approvals': { + '/approval/v4/approvals': { POST: 'createApproval', }, - '/open-apis/approval/v4/approvals/{approval_code}': { + '/approval/v4/approvals/{approval_code}': { GET: 'getApproval', }, - '/open-apis/approval/v4/instances': { + '/approval/v4/instances': { POST: 'createApprovalInstance', GET: { name: 'listApprovalInstance', pagination: { argIndex: 0, itemsKey: 'instance_code_list' } }, }, - '/open-apis/approval/v4/instances/cancel': { + '/approval/v4/instances/cancel': { POST: 'cancelApprovalInstance', }, - '/open-apis/approval/v4/instances/cc': { + '/approval/v4/instances/cc': { POST: 'ccApprovalInstance', }, - '/open-apis/approval/v4/instances/preview': { + '/approval/v4/instances/preview': { POST: 'previewApprovalInstance', }, - '/open-apis/approval/v4/instances/{instance_id}': { + '/approval/v4/instances/{instance_id}': { GET: 'getApprovalInstance', }, - '/open-apis/approval/v4/tasks/approve': { + '/approval/v4/tasks/approve': { POST: 'approveApprovalTask', }, - '/open-apis/approval/v4/tasks/reject': { + '/approval/v4/tasks/reject': { POST: 'rejectApprovalTask', }, - '/open-apis/approval/v4/tasks/transfer': { + '/approval/v4/tasks/transfer': { POST: 'transferApprovalTask', }, - '/open-apis/approval/v4/instances/specified_rollback': { + '/approval/v4/instances/specified_rollback': { POST: 'specifiedRollbackApprovalInstance', }, - '/open-apis/approval/v4/instances/add_sign': { + '/approval/v4/instances/add_sign': { POST: 'addSignApprovalInstance', }, - '/open-apis/approval/v4/tasks/resubmit': { + '/approval/v4/tasks/resubmit': { POST: 'resubmitApprovalTask', }, - '/open-apis/approval/v4/instances/{instance_id}/comments': { + '/approval/v4/instances/{instance_id}/comments': { POST: 'createApprovalInstanceComment', GET: 'listApprovalInstanceComment', }, - '/open-apis/approval/v4/instances/{instance_id}/comments/{comment_id}': { + '/approval/v4/instances/{instance_id}/comments/{comment_id}': { DELETE: 'deleteApprovalInstanceComment', }, - '/open-apis/approval/v4/instances/{instance_id}/comments/remove': { + '/approval/v4/instances/{instance_id}/comments/remove': { POST: 'removeApprovalInstanceComment', }, - '/open-apis/approval/v4/external_approvals': { + '/approval/v4/external_approvals': { POST: 'createApprovalExternalApproval', }, - '/open-apis/approval/v4/external_approvals/{approval_code}': { + '/approval/v4/external_approvals/{approval_code}': { GET: 'getApprovalExternalApproval', }, - '/open-apis/approval/v4/external_instances': { + '/approval/v4/external_instances': { POST: 'createApprovalExternalInstance', }, - '/open-apis/approval/v4/external_instances/check': { + '/approval/v4/external_instances/check': { POST: 'checkApprovalExternalInstance', }, - '/open-apis/approval/v4/external_tasks': { + '/approval/v4/external_tasks': { GET: { name: 'listApprovalExternalTask', pagination: { argIndex: 1, itemsKey: 'data' } }, }, - '/open-apis/approval/v4/instances/query': { + '/approval/v4/instances/query': { POST: 'queryApprovalInstance', }, - '/open-apis/approval/v4/instances/search_cc': { + '/approval/v4/instances/search_cc': { POST: 'searchCcApprovalInstance', }, - '/open-apis/approval/v4/tasks/search': { + '/approval/v4/tasks/search': { POST: 'searchApprovalTask', }, - '/open-apis/approval/v4/tasks/query': { + '/approval/v4/tasks/query': { GET: 'queryApprovalTask', }, - '/open-apis/approval/v4/approvals/{approval_code}/subscribe': { + '/approval/v4/approvals/{approval_code}/subscribe': { POST: 'subscribeApproval', }, - '/open-apis/approval/v4/approvals/{approval_code}/unsubscribe': { + '/approval/v4/approvals/{approval_code}/unsubscribe': { POST: 'unsubscribeApproval', }, }) diff --git a/adapters/lark/src/types/attendance.ts b/adapters/lark/src/types/attendance.ts index b8e591b3..b408de83 100644 --- a/adapters/lark/src/types/attendance.ts +++ b/adapters/lark/src/types/attendance.ts @@ -1,5 +1,5 @@ import { ApprovalInfo, ArchiveField, ArchiveReportData, ArchiveReportMeta, File, FlexibleRule, FreePunchCfg, Group, GroupMeta, LangText, LateOffLateOnRule, LateOffLateOnSetting, LeaveAccrualRecord, LeaveEmployExpireRecord, LeaveNeedPunchCfg, Location, Machine, MemberStatusChange, OvertimeClockCfg, OvertimeRule, PunchMember, PunchSpecialDateShift, PunchTimeRule, RestRule, RestTimeFlexibleConfig, Shift, ShiftAttendanceTimeConfig, ShiftMiddleTimeRule, UserAllowedRemedy, UserApproval, UserBase, UserDailyShift, UserFlow, UserSetting, UserStatsData, UserStatsField, UserStatsView, UserTask, UserTaskRemedy, UserTmpDailyShift } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -1064,110 +1064,110 @@ export interface PatchAttendanceLeaveAccrualRecordResponse { } Internal.define({ - '/open-apis/attendance/v1/shifts': { + '/attendance/v1/shifts': { POST: 'createAttendanceShift', GET: { name: 'listAttendanceShift', pagination: { argIndex: 0, itemsKey: 'shift_list' } }, }, - '/open-apis/attendance/v1/shifts/{shift_id}': { + '/attendance/v1/shifts/{shift_id}': { DELETE: 'deleteAttendanceShift', GET: 'getAttendanceShift', }, - '/open-apis/attendance/v1/shifts/query': { + '/attendance/v1/shifts/query': { POST: 'queryAttendanceShift', }, - '/open-apis/attendance/v1/user_daily_shifts/batch_create': { + '/attendance/v1/user_daily_shifts/batch_create': { POST: 'batchCreateAttendanceUserDailyShift', }, - '/open-apis/attendance/v1/user_daily_shifts/query': { + '/attendance/v1/user_daily_shifts/query': { POST: 'queryAttendanceUserDailyShift', }, - '/open-apis/attendance/v1/user_daily_shifts/batch_create_temp': { + '/attendance/v1/user_daily_shifts/batch_create_temp': { POST: 'batchCreateTempAttendanceUserDailyShift', }, - '/open-apis/attendance/v1/groups/{group_id}/list_user': { + '/attendance/v1/groups/{group_id}/list_user': { GET: { name: 'listUserAttendanceGroup', pagination: { argIndex: 1, itemsKey: 'users' } }, }, - '/open-apis/attendance/v1/groups': { + '/attendance/v1/groups': { POST: 'createAttendanceGroup', GET: { name: 'listAttendanceGroup', pagination: { argIndex: 0, itemsKey: 'group_list' } }, }, - '/open-apis/attendance/v1/groups/{group_id}': { + '/attendance/v1/groups/{group_id}': { DELETE: 'deleteAttendanceGroup', GET: 'getAttendanceGroup', }, - '/open-apis/attendance/v1/groups/search': { + '/attendance/v1/groups/search': { POST: 'searchAttendanceGroup', }, - '/open-apis/attendance/v1/user_settings/modify': { + '/attendance/v1/user_settings/modify': { POST: 'modifyAttendanceUserSetting', }, - '/open-apis/attendance/v1/user_settings/query': { + '/attendance/v1/user_settings/query': { GET: 'queryAttendanceUserSetting', }, - '/open-apis/attendance/v1/files/upload': { + '/attendance/v1/files/upload': { POST: { name: 'uploadAttendanceFile', multipart: true }, }, - '/open-apis/attendance/v1/files/{file_id}/download': { + '/attendance/v1/files/{file_id}/download': { GET: { name: 'downloadAttendanceFile', type: 'binary' }, }, - '/open-apis/attendance/v1/user_stats_views/{user_stats_view_id}': { + '/attendance/v1/user_stats_views/{user_stats_view_id}': { PUT: 'updateAttendanceUserStatsView', }, - '/open-apis/attendance/v1/user_stats_fields/query': { + '/attendance/v1/user_stats_fields/query': { POST: 'queryAttendanceUserStatsField', }, - '/open-apis/attendance/v1/user_stats_views/query': { + '/attendance/v1/user_stats_views/query': { POST: 'queryAttendanceUserStatsView', }, - '/open-apis/attendance/v1/user_stats_datas/query': { + '/attendance/v1/user_stats_datas/query': { POST: 'queryAttendanceUserStatsData', }, - '/open-apis/attendance/v1/user_approvals/query': { + '/attendance/v1/user_approvals/query': { POST: 'queryAttendanceUserApproval', }, - '/open-apis/attendance/v1/user_approvals': { + '/attendance/v1/user_approvals': { POST: 'createAttendanceUserApproval', }, - '/open-apis/attendance/v1/approval_infos/process': { + '/attendance/v1/approval_infos/process': { POST: 'processAttendanceApprovalInfo', }, - '/open-apis/attendance/v1/user_task_remedys': { + '/attendance/v1/user_task_remedys': { POST: 'createAttendanceUserTaskRemedy', }, - '/open-apis/attendance/v1/user_task_remedys/query_user_allowed_remedys': { + '/attendance/v1/user_task_remedys/query_user_allowed_remedys': { POST: 'queryUserAllowedRemedysAttendanceUserTaskRemedy', }, - '/open-apis/attendance/v1/user_task_remedys/query': { + '/attendance/v1/user_task_remedys/query': { POST: 'queryAttendanceUserTaskRemedy', }, - '/open-apis/attendance/v1/archive_rule/user_stats_fields_query': { + '/attendance/v1/archive_rule/user_stats_fields_query': { POST: 'userStatsFieldsQueryAttendanceArchiveRule', }, - '/open-apis/attendance/v1/archive_rule/upload_report': { + '/attendance/v1/archive_rule/upload_report': { POST: 'uploadReportAttendanceArchiveRule', }, - '/open-apis/attendance/v1/archive_rule/del_report': { + '/attendance/v1/archive_rule/del_report': { POST: 'delReportAttendanceArchiveRule', }, - '/open-apis/attendance/v1/archive_rule': { + '/attendance/v1/archive_rule': { GET: { name: 'listAttendanceArchiveRule', pagination: { argIndex: 0 } }, }, - '/open-apis/attendance/v1/user_flows/batch_create': { + '/attendance/v1/user_flows/batch_create': { POST: 'batchCreateAttendanceUserFlow', }, - '/open-apis/attendance/v1/user_flows/{user_flow_id}': { + '/attendance/v1/user_flows/{user_flow_id}': { GET: 'getAttendanceUserFlow', }, - '/open-apis/attendance/v1/user_flows/query': { + '/attendance/v1/user_flows/query': { POST: 'queryAttendanceUserFlow', }, - '/open-apis/attendance/v1/user_tasks/query': { + '/attendance/v1/user_tasks/query': { POST: 'queryAttendanceUserTask', }, - '/open-apis/attendance/v1/leave_employ_expire_records/{leave_id}': { + '/attendance/v1/leave_employ_expire_records/{leave_id}': { GET: 'getAttendanceLeaveEmployExpireRecord', }, - '/open-apis/attendance/v1/leave_accrual_record/{leave_id}': { + '/attendance/v1/leave_accrual_record/{leave_id}': { PATCH: 'patchAttendanceLeaveAccrualRecord', }, }) diff --git a/adapters/lark/src/types/auth.ts b/adapters/lark/src/types/auth.ts index 2565c59a..a4d17f23 100644 --- a/adapters/lark/src/types/auth.ts +++ b/adapters/lark/src/types/auth.ts @@ -1,4 +1,4 @@ -import { Internal } from '../internal' +import { BaseResponse, Internal } from '../internal' declare module '../internal' { interface Internal { @@ -68,8 +68,6 @@ export interface TenantAccessTokenAuthRequest { } export interface TenantAccessTokenInternalAuthResponse extends BaseResponse { - code?: number - msg?: string /** 访问 token */ tenant_access_token?: string /** app_access_token 过期时间 */ @@ -77,8 +75,6 @@ export interface TenantAccessTokenInternalAuthResponse extends BaseResponse { } export interface AppAccessTokenInternalAuthResponse extends BaseResponse { - code?: number - msg?: string /** 访问 token */ app_access_token?: string /** app_access_token 过期时间 */ @@ -86,8 +82,6 @@ export interface AppAccessTokenInternalAuthResponse extends BaseResponse { } export interface AppAccessTokenAuthResponse extends BaseResponse { - code?: number - msg?: string /** 访问 token */ app_access_token?: string /** app_access_token 过期时间 */ @@ -95,8 +89,6 @@ export interface AppAccessTokenAuthResponse extends BaseResponse { } export interface TenantAccessTokenAuthResponse extends BaseResponse { - code?: number - msg?: string /** 访问 token */ tenant_access_token?: string /** app_access_token 过期时间 */ @@ -104,19 +96,19 @@ export interface TenantAccessTokenAuthResponse extends BaseResponse { } Internal.define({ - '/open-apis/auth/v3/tenant_access_token/internal': { + '/auth/v3/tenant_access_token/internal': { POST: { name: 'tenantAccessTokenInternalAuth', type: 'raw-json' }, }, - '/open-apis/auth/v3/app_access_token/internal': { + '/auth/v3/app_access_token/internal': { POST: { name: 'appAccessTokenInternalAuth', type: 'raw-json' }, }, - '/open-apis/auth/v3/app_ticket/resend': { + '/auth/v3/app_ticket/resend': { POST: 'appTicketResendAuth', }, - '/open-apis/auth/v3/app_access_token': { + '/auth/v3/app_access_token': { POST: { name: 'appAccessTokenAuth', type: 'raw-json' }, }, - '/open-apis/auth/v3/tenant_access_token': { + '/auth/v3/tenant_access_token': { POST: { name: 'tenantAccessTokenAuth', type: 'raw-json' }, }, }) diff --git a/adapters/lark/src/types/authen.ts b/adapters/lark/src/types/authen.ts index 37e7df17..8a646076 100644 --- a/adapters/lark/src/types/authen.ts +++ b/adapters/lark/src/types/authen.ts @@ -202,19 +202,19 @@ export interface CreateAuthenRefreshAccessTokenResponse { } Internal.define({ - '/open-apis/authen/v1/user_info': { + '/authen/v1/user_info': { GET: 'getAuthenUserInfo', }, - '/open-apis/authen/v1/oidc/access_token': { + '/authen/v1/oidc/access_token': { POST: 'createAuthenOidcAccessToken', }, - '/open-apis/authen/v1/oidc/refresh_access_token': { + '/authen/v1/oidc/refresh_access_token': { POST: 'createAuthenOidcRefreshAccessToken', }, - '/open-apis/authen/v1/access_token': { + '/authen/v1/access_token': { POST: 'createAuthenAccessToken', }, - '/open-apis/authen/v1/refresh_access_token': { + '/authen/v1/refresh_access_token': { POST: 'createAuthenRefreshAccessToken', }, }) diff --git a/adapters/lark/src/types/baike.ts b/adapters/lark/src/types/baike.ts index 54987a6b..9ada1cd9 100644 --- a/adapters/lark/src/types/baike.ts +++ b/adapters/lark/src/types/baike.ts @@ -1,5 +1,5 @@ import { Classification, ClassificationFilter, Draft, Entity, EntityWord, MatchInfo, OuterInfo, Phrase, RelatedMeta, Term } from '.' -import { Internal, Pagination } from '../internal' +import { Internal } from '../internal' declare module '../internal' { interface Internal { @@ -268,39 +268,39 @@ export interface UploadBaikeFileResponse { } Internal.define({ - '/open-apis/baike/v1/drafts': { + '/baike/v1/drafts': { POST: 'createBaikeDraft', }, - '/open-apis/baike/v1/drafts/{draft_id}': { + '/baike/v1/drafts/{draft_id}': { PUT: 'updateBaikeDraft', }, - '/open-apis/baike/v1/entities': { + '/baike/v1/entities': { POST: 'createBaikeEntity', GET: 'listBaikeEntity', }, - '/open-apis/baike/v1/entities/{entity_id}': { + '/baike/v1/entities/{entity_id}': { PUT: 'updateBaikeEntity', GET: 'getBaikeEntity', }, - '/open-apis/baike/v1/entities/match': { + '/baike/v1/entities/match': { POST: 'matchBaikeEntity', }, - '/open-apis/baike/v1/entities/search': { + '/baike/v1/entities/search': { POST: 'searchBaikeEntity', }, - '/open-apis/baike/v1/entities/highlight': { + '/baike/v1/entities/highlight': { POST: 'highlightBaikeEntity', }, - '/open-apis/baike/v1/entities/extract': { + '/baike/v1/entities/extract': { POST: 'extractBaikeEntity', }, - '/open-apis/baike/v1/classifications': { + '/baike/v1/classifications': { GET: 'listBaikeClassification', }, - '/open-apis/baike/v1/files/upload': { + '/baike/v1/files/upload': { POST: { name: 'uploadBaikeFile', multipart: true }, }, - '/open-apis/baike/v1/files/{file_token}/download': { + '/baike/v1/files/{file_token}/download': { GET: { name: 'downloadBaikeFile', type: 'binary' }, }, }) diff --git a/adapters/lark/src/types/bitable.ts b/adapters/lark/src/types/bitable.ts index 44544d82..efd22348 100644 --- a/adapters/lark/src/types/bitable.ts +++ b/adapters/lark/src/types/bitable.ts @@ -1,5 +1,5 @@ import { App, AppDashboard, AppRole, AppRoleBlockRole, AppRoleMember, AppRoleMemberId, AppRoleTableRole, AppTable, AppTableField, AppTableFieldDescription, AppTableFieldForList, AppTableFieldProperty, AppTableForm, AppTableFormField, AppTableFormPatchedField, AppTableRecord, AppTableView, AppTableViewProperty, AppWorkflow, DeleteRecord, DisplayApp, DisplayAppV2, FilterInfo, ReqTable, Sort } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -773,112 +773,112 @@ export interface ListBitableAppTableRecordResponse { } Internal.define({ - '/open-apis/bitable/v1/apps': { + '/bitable/v1/apps': { POST: 'createBitableApp', }, - '/open-apis/bitable/v1/apps/{app_token}/copy': { + '/bitable/v1/apps/{app_token}/copy': { POST: 'copyBitableApp', }, - '/open-apis/bitable/v1/apps/{app_token}': { + '/bitable/v1/apps/{app_token}': { GET: 'getBitableApp', PUT: 'updateBitableApp', }, - '/open-apis/bitable/v1/apps/{app_token}/tables': { + '/bitable/v1/apps/{app_token}/tables': { POST: 'createBitableAppTable', GET: 'listBitableAppTable', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/batch_create': { + '/bitable/v1/apps/{app_token}/tables/batch_create': { POST: 'batchCreateBitableAppTable', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}': { PATCH: 'patchBitableAppTable', DELETE: 'deleteBitableAppTable', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/batch_delete': { + '/bitable/v1/apps/{app_token}/tables/batch_delete': { POST: 'batchDeleteBitableAppTable', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/views': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/views': { POST: 'createBitableAppTableView', GET: 'listBitableAppTableView', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/views/{view_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/views/{view_id}': { PATCH: 'patchBitableAppTableView', GET: 'getBitableAppTableView', DELETE: 'deleteBitableAppTableView', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records': { POST: 'createBitableAppTableRecord', GET: 'listBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/{record_id}': { PUT: 'updateBitableAppTableRecord', DELETE: 'deleteBitableAppTableRecord', GET: 'getBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/search': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/search': { POST: 'searchBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_create': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_create': { POST: 'batchCreateBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_update': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_update': { POST: 'batchUpdateBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_get': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_get': { POST: 'batchGetBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_delete': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/records/batch_delete': { POST: 'batchDeleteBitableAppTableRecord', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/fields': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/fields': { POST: 'createBitableAppTableField', GET: 'listBitableAppTableField', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/fields/{field_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/fields/{field_id}': { PUT: 'updateBitableAppTableField', DELETE: 'deleteBitableAppTableField', }, - '/open-apis/bitable/v1/apps/{app_token}/dashboards/{block_id}/copy': { + '/bitable/v1/apps/{app_token}/dashboards/{block_id}/copy': { POST: 'copyBitableAppDashboard', }, - '/open-apis/bitable/v1/apps/{app_token}/dashboards': { + '/bitable/v1/apps/{app_token}/dashboards': { GET: { name: 'listBitableAppDashboard', pagination: { argIndex: 1, itemsKey: 'dashboards' } }, }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}': { PATCH: 'patchBitableAppTableForm', GET: 'getBitableAppTableForm', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/fields/{field_id}': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/fields/{field_id}': { PATCH: 'patchBitableAppTableFormField', }, - '/open-apis/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/fields': { + '/bitable/v1/apps/{app_token}/tables/{table_id}/forms/{form_id}/fields': { GET: 'listBitableAppTableFormField', }, - '/open-apis/bitable/v1/apps/{app_token}/roles': { + '/bitable/v1/apps/{app_token}/roles': { GET: 'listBitableAppRole', POST: 'createBitableAppRole', }, - '/open-apis/bitable/v1/apps/{app_token}/roles/{role_id}': { + '/bitable/v1/apps/{app_token}/roles/{role_id}': { DELETE: 'deleteBitableAppRole', PUT: 'updateBitableAppRole', }, - '/open-apis/bitable/v1/apps/{app_token}/roles/{role_id}/members/batch_delete': { + '/bitable/v1/apps/{app_token}/roles/{role_id}/members/batch_delete': { POST: 'batchDeleteBitableAppRoleMember', }, - '/open-apis/bitable/v1/apps/{app_token}/roles/{role_id}/members/batch_create': { + '/bitable/v1/apps/{app_token}/roles/{role_id}/members/batch_create': { POST: 'batchCreateBitableAppRoleMember', }, - '/open-apis/bitable/v1/apps/{app_token}/roles/{role_id}/members': { + '/bitable/v1/apps/{app_token}/roles/{role_id}/members': { GET: 'listBitableAppRoleMember', POST: 'createBitableAppRoleMember', }, - '/open-apis/bitable/v1/apps/{app_token}/roles/{role_id}/members/{member_id}': { + '/bitable/v1/apps/{app_token}/roles/{role_id}/members/{member_id}': { DELETE: 'deleteBitableAppRoleMember', }, - '/open-apis/bitable/v1/apps/{app_token}/workflows': { + '/bitable/v1/apps/{app_token}/workflows': { GET: 'listBitableAppWorkflow', }, - '/open-apis/bitable/v1/apps/{app_token}/workflows/{workflow_id}': { + '/bitable/v1/apps/{app_token}/workflows/{workflow_id}': { PUT: 'updateBitableAppWorkflow', }, }) diff --git a/adapters/lark/src/types/board.ts b/adapters/lark/src/types/board.ts index 3bad34b5..15a8ac7d 100644 --- a/adapters/lark/src/types/board.ts +++ b/adapters/lark/src/types/board.ts @@ -22,10 +22,10 @@ export interface ListBoardWhiteboardNodeResponse { } Internal.define({ - '/open-apis/board/v1/whiteboards/{whiteboard_id}/nodes': { + '/board/v1/whiteboards/{whiteboard_id}/nodes': { GET: 'listBoardWhiteboardNode', }, - '/open-apis/board/v1/whiteboards/{whiteboard_id}/download_as_image': { + '/board/v1/whiteboards/{whiteboard_id}/download_as_image': { GET: { name: 'downloadAsImageBoardWhiteboard', type: 'binary' }, }, }) diff --git a/adapters/lark/src/types/calendar.ts b/adapters/lark/src/types/calendar.ts index 1ac55515..bb27ab57 100644 --- a/adapters/lark/src/types/calendar.ts +++ b/adapters/lark/src/types/calendar.ts @@ -1,5 +1,5 @@ import { AclScope, Attachment, Calendar, CalendarAcl, CalendarEvent, CalendarEventAttendee, CalendarEventAttendeeChatMember, CalendarEventAttendeeId, EventLocation, EventSearchFilter, Freebusy, Instance, Reminder, Schema, TimeInfo, UserCalendar, Vchat } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -731,106 +731,106 @@ export interface GetCalendarExchangeBindingResponse { } Internal.define({ - '/open-apis/calendar/v4/calendars': { + '/calendar/v4/calendars': { POST: 'createCalendar', GET: 'listCalendar', }, - '/open-apis/calendar/v4/calendars/{calendar_id}': { + '/calendar/v4/calendars/{calendar_id}': { DELETE: 'deleteCalendar', GET: 'getCalendar', PATCH: 'patchCalendar', }, - '/open-apis/calendar/v4/calendars/primary': { + '/calendar/v4/calendars/primary': { POST: 'primaryCalendar', }, - '/open-apis/calendar/v4/freebusy/list': { + '/calendar/v4/freebusy/list': { POST: 'listCalendarFreebusy', }, - '/open-apis/calendar/v4/calendars/search': { + '/calendar/v4/calendars/search': { POST: 'searchCalendar', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/subscribe': { + '/calendar/v4/calendars/{calendar_id}/subscribe': { POST: 'subscribeCalendar', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/unsubscribe': { + '/calendar/v4/calendars/{calendar_id}/unsubscribe': { POST: 'unsubscribeCalendar', }, - '/open-apis/calendar/v4/calendars/subscription': { + '/calendar/v4/calendars/subscription': { POST: 'subscriptionCalendar', }, - '/open-apis/calendar/v4/calendars/unsubscription': { + '/calendar/v4/calendars/unsubscription': { POST: 'unsubscriptionCalendar', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/acls': { + '/calendar/v4/calendars/{calendar_id}/acls': { POST: 'createCalendarCalendarAcl', GET: { name: 'listCalendarCalendarAcl', pagination: { argIndex: 1, itemsKey: 'acls' } }, }, - '/open-apis/calendar/v4/calendars/{calendar_id}/acls/{acl_id}': { + '/calendar/v4/calendars/{calendar_id}/acls/{acl_id}': { DELETE: 'deleteCalendarCalendarAcl', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/acls/subscription': { + '/calendar/v4/calendars/{calendar_id}/acls/subscription': { POST: 'subscriptionCalendarCalendarAcl', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/acls/unsubscription': { + '/calendar/v4/calendars/{calendar_id}/acls/unsubscription': { POST: 'unsubscriptionCalendarCalendarAcl', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events': { + '/calendar/v4/calendars/{calendar_id}/events': { POST: 'createCalendarCalendarEvent', GET: 'listCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}': { DELETE: 'deleteCalendarCalendarEvent', PATCH: 'patchCalendarCalendarEvent', GET: 'getCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/search': { + '/calendar/v4/calendars/{calendar_id}/events/search': { POST: 'searchCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/subscription': { + '/calendar/v4/calendars/{calendar_id}/events/subscription': { POST: 'subscriptionCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/unsubscription': { + '/calendar/v4/calendars/{calendar_id}/events/unsubscription': { POST: 'unsubscriptionCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/reply': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/reply': { POST: 'replyCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/instances': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/instances': { GET: { name: 'instancesCalendarCalendarEvent', pagination: { argIndex: 2 } }, }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/instance_view': { + '/calendar/v4/calendars/{calendar_id}/events/instance_view': { GET: 'instanceViewCalendarCalendarEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/meeting_chat': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/meeting_chat': { POST: 'createCalendarCalendarEventMeetingChat', DELETE: 'deleteCalendarCalendarEventMeetingChat', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/meeting_minute': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/meeting_minute': { POST: 'createCalendarCalendarEventMeetingMinute', }, - '/open-apis/calendar/v4/timeoff_events': { + '/calendar/v4/timeoff_events': { POST: 'createCalendarTimeoffEvent', }, - '/open-apis/calendar/v4/timeoff_events/{timeoff_event_id}': { + '/calendar/v4/timeoff_events/{timeoff_event_id}': { DELETE: 'deleteCalendarTimeoffEvent', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees': { POST: 'createCalendarCalendarEventAttendee', GET: { name: 'listCalendarCalendarEventAttendee', pagination: { argIndex: 2 } }, }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees/batch_delete': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees/batch_delete': { POST: 'batchDeleteCalendarCalendarEventAttendee', }, - '/open-apis/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees/{attendee_id}/chat_members': { + '/calendar/v4/calendars/{calendar_id}/events/{event_id}/attendees/{attendee_id}/chat_members': { GET: { name: 'listCalendarCalendarEventAttendeeChatMember', pagination: { argIndex: 3 } }, }, - '/open-apis/calendar/v4/settings/generate_caldav_conf': { + '/calendar/v4/settings/generate_caldav_conf': { POST: 'generateCaldavConfCalendarSetting', }, - '/open-apis/calendar/v4/exchange_bindings': { + '/calendar/v4/exchange_bindings': { POST: 'createCalendarExchangeBinding', }, - '/open-apis/calendar/v4/exchange_bindings/{exchange_binding_id}': { + '/calendar/v4/exchange_bindings/{exchange_binding_id}': { DELETE: 'deleteCalendarExchangeBinding', GET: 'getCalendarExchangeBinding', }, diff --git a/adapters/lark/src/types/cardkit.ts b/adapters/lark/src/types/cardkit.ts index 9138477f..a23d6896 100644 --- a/adapters/lark/src/types/cardkit.ts +++ b/adapters/lark/src/types/cardkit.ts @@ -153,30 +153,30 @@ export interface IdConvertCardkitCardResponse { } Internal.define({ - '/open-apis/cardkit/v1/cards': { + '/cardkit/v1/cards': { POST: 'createCardkitCard', }, - '/open-apis/cardkit/v1/cards/{card_id}/settings': { + '/cardkit/v1/cards/{card_id}/settings': { PATCH: 'settingsCardkitCard', }, - '/open-apis/cardkit/v1/cards/{card_id}/batch_update': { + '/cardkit/v1/cards/{card_id}/batch_update': { POST: 'batchUpdateCardkitCard', }, - '/open-apis/cardkit/v1/cards/{card_id}': { + '/cardkit/v1/cards/{card_id}': { PUT: 'updateCardkitCard', }, - '/open-apis/cardkit/v1/cards/id_convert': { + '/cardkit/v1/cards/id_convert': { POST: 'idConvertCardkitCard', }, - '/open-apis/cardkit/v1/cards/{card_id}/elements': { + '/cardkit/v1/cards/{card_id}/elements': { POST: 'createCardkitCardElement', }, - '/open-apis/cardkit/v1/cards/{card_id}/elements/{element_id}': { + '/cardkit/v1/cards/{card_id}/elements/{element_id}': { PUT: 'updateCardkitCardElement', PATCH: 'patchCardkitCardElement', DELETE: 'deleteCardkitCardElement', }, - '/open-apis/cardkit/v1/cards/{card_id}/elements/{element_id}/content': { + '/cardkit/v1/cards/{card_id}/elements/{element_id}/content': { PUT: 'contentCardkitCardElement', }, }) diff --git a/adapters/lark/src/types/compensation.ts b/adapters/lark/src/types/compensation.ts index fb9b3b2a..4f10340c 100644 --- a/adapters/lark/src/types/compensation.ts +++ b/adapters/lark/src/types/compensation.ts @@ -1,5 +1,5 @@ import { ArchiveDetail, ChangeReason, Indicator, Item, ItemCategory, PlanDetail } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -88,22 +88,22 @@ export interface ListCompensationItemQuery { } Internal.define({ - '/open-apis/compensation/v1/archives/query': { + '/compensation/v1/archives/query': { POST: { name: 'queryCompensationArchive', pagination: { argIndex: 1 } }, }, - '/open-apis/compensation/v1/items': { + '/compensation/v1/items': { GET: { name: 'listCompensationItem', pagination: { argIndex: 0 } }, }, - '/open-apis/compensation/v1/indicators': { + '/compensation/v1/indicators': { GET: { name: 'listCompensationIndicator', pagination: { argIndex: 0 } }, }, - '/open-apis/compensation/v1/item_categories': { + '/compensation/v1/item_categories': { GET: { name: 'listCompensationItemCategory', pagination: { argIndex: 0 } }, }, - '/open-apis/compensation/v1/plans': { + '/compensation/v1/plans': { GET: { name: 'listCompensationPlan', pagination: { argIndex: 0 } }, }, - '/open-apis/compensation/v1/change_reasons': { + '/compensation/v1/change_reasons': { GET: { name: 'listCompensationChangeReason', pagination: { argIndex: 0 } }, }, }) diff --git a/adapters/lark/src/types/contact.ts b/adapters/lark/src/types/contact.ts index 073d7ca3..96b68261 100644 --- a/adapters/lark/src/types/contact.ts +++ b/adapters/lark/src/types/contact.ts @@ -1,5 +1,5 @@ -import { CustomAttr, Department, DepartmentI18nName, DepartmentLeader, EmployeeTypeEnum, FunctionalRoleMember, FunctionalRoleMemberResult, Group, I18nContent, JobFamily, JobLevel, JobTitle, MemberResult, Memberlist, ResourceAcceptor, Unit, UnitDepartment, User, UserContactInfo, UserCustomAttr, UserDepartmentInfo, UserOrder, WorkCity } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { CustomAttr, Department, DepartmentI18nName, DepartmentLeader, EmployeeTypeEnum, FunctionalRoleMember, FunctionalRoleMemberResult, Group, I18nContent, JobFamily, JobLevel, JobTitle, Memberlist, MemberResult, ResourceAcceptor, Unit, UnitDepartment, User, UserContactInfo, UserCustomAttr, UserDepartmentInfo, UserOrder, WorkCity } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -1332,170 +1332,170 @@ export interface UpdateContactUserResponse { } Internal.define({ - '/open-apis/contact/v3/scopes': { + '/contact/v3/scopes': { GET: 'listContactScope', }, - '/open-apis/contact/v3/users': { + '/contact/v3/users': { POST: 'createContactUser', GET: { name: 'listContactUser', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/users/{user_id}': { + '/contact/v3/users/{user_id}': { PATCH: 'patchContactUser', GET: 'getContactUser', DELETE: 'deleteContactUser', PUT: 'updateContactUser', }, - '/open-apis/contact/v3/users/{user_id}/update_user_id': { + '/contact/v3/users/{user_id}/update_user_id': { PATCH: 'updateUserIdContactUser', }, - '/open-apis/contact/v3/users/batch': { + '/contact/v3/users/batch': { GET: 'batchContactUser', }, - '/open-apis/contact/v3/users/find_by_department': { + '/contact/v3/users/find_by_department': { GET: { name: 'findByDepartmentContactUser', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/users/batch_get_id': { + '/contact/v3/users/batch_get_id': { POST: 'batchGetIdContactUser', }, - '/open-apis/contact/v3/users/{user_id}/resurrect': { + '/contact/v3/users/{user_id}/resurrect': { POST: 'resurrectContactUser', }, - '/open-apis/contact/v3/group': { + '/contact/v3/group': { POST: 'createContactGroup', }, - '/open-apis/contact/v3/group/{group_id}': { + '/contact/v3/group/{group_id}': { PATCH: 'patchContactGroup', GET: 'getContactGroup', DELETE: 'deleteContactGroup', }, - '/open-apis/contact/v3/group/simplelist': { + '/contact/v3/group/simplelist': { GET: { name: 'simplelistContactGroup', pagination: { argIndex: 0, itemsKey: 'grouplist' } }, }, - '/open-apis/contact/v3/group/member_belong': { + '/contact/v3/group/member_belong': { GET: { name: 'memberBelongContactGroup', pagination: { argIndex: 0, itemsKey: 'group_list' } }, }, - '/open-apis/contact/v3/custom_attrs': { + '/contact/v3/custom_attrs': { GET: { name: 'listContactCustomAttr', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/employee_type_enums': { + '/contact/v3/employee_type_enums': { POST: 'createContactEmployeeTypeEnum', GET: { name: 'listContactEmployeeTypeEnum', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/employee_type_enums/{enum_id}': { + '/contact/v3/employee_type_enums/{enum_id}': { PUT: 'updateContactEmployeeTypeEnum', DELETE: 'deleteContactEmployeeTypeEnum', }, - '/open-apis/contact/v3/departments': { + '/contact/v3/departments': { POST: 'createContactDepartment', GET: { name: 'listContactDepartment', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/departments/{department_id}': { + '/contact/v3/departments/{department_id}': { PATCH: 'patchContactDepartment', PUT: 'updateContactDepartment', GET: 'getContactDepartment', DELETE: 'deleteContactDepartment', }, - '/open-apis/contact/v3/departments/{department_id}/update_department_id': { + '/contact/v3/departments/{department_id}/update_department_id': { PATCH: 'updateDepartmentIdContactDepartment', }, - '/open-apis/contact/v3/departments/unbind_department_chat': { + '/contact/v3/departments/unbind_department_chat': { POST: 'unbindDepartmentChatContactDepartment', }, - '/open-apis/contact/v3/departments/batch': { + '/contact/v3/departments/batch': { GET: 'batchContactDepartment', }, - '/open-apis/contact/v3/departments/{department_id}/children': { + '/contact/v3/departments/{department_id}/children': { GET: { name: 'childrenContactDepartment', pagination: { argIndex: 1 } }, }, - '/open-apis/contact/v3/departments/parent': { + '/contact/v3/departments/parent': { GET: { name: 'parentContactDepartment', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/departments/search': { + '/contact/v3/departments/search': { POST: { name: 'searchContactDepartment', pagination: { argIndex: 1 } }, }, - '/open-apis/contact/v3/unit': { + '/contact/v3/unit': { POST: 'createContactUnit', GET: { name: 'listContactUnit', pagination: { argIndex: 0, itemsKey: 'unitlist' } }, }, - '/open-apis/contact/v3/unit/{unit_id}': { + '/contact/v3/unit/{unit_id}': { PATCH: 'patchContactUnit', GET: 'getContactUnit', DELETE: 'deleteContactUnit', }, - '/open-apis/contact/v3/unit/bind_department': { + '/contact/v3/unit/bind_department': { POST: 'bindDepartmentContactUnit', }, - '/open-apis/contact/v3/unit/unbind_department': { + '/contact/v3/unit/unbind_department': { POST: 'unbindDepartmentContactUnit', }, - '/open-apis/contact/v3/unit/list_department': { + '/contact/v3/unit/list_department': { GET: { name: 'listDepartmentContactUnit', pagination: { argIndex: 0, itemsKey: 'departmentlist' } }, }, - '/open-apis/contact/v3/group/{group_id}/member/add': { + '/contact/v3/group/{group_id}/member/add': { POST: 'addContactGroupMember', }, - '/open-apis/contact/v3/group/{group_id}/member/batch_add': { + '/contact/v3/group/{group_id}/member/batch_add': { POST: 'batchAddContactGroupMember', }, - '/open-apis/contact/v3/group/{group_id}/member/simplelist': { + '/contact/v3/group/{group_id}/member/simplelist': { GET: { name: 'simplelistContactGroupMember', pagination: { argIndex: 1, itemsKey: 'memberlist' } }, }, - '/open-apis/contact/v3/group/{group_id}/member/remove': { + '/contact/v3/group/{group_id}/member/remove': { POST: 'removeContactGroupMember', }, - '/open-apis/contact/v3/group/{group_id}/member/batch_remove': { + '/contact/v3/group/{group_id}/member/batch_remove': { POST: 'batchRemoveContactGroupMember', }, - '/open-apis/contact/v3/functional_roles': { + '/contact/v3/functional_roles': { POST: 'createContactFunctionalRole', }, - '/open-apis/contact/v3/functional_roles/{role_id}': { + '/contact/v3/functional_roles/{role_id}': { PUT: 'updateContactFunctionalRole', DELETE: 'deleteContactFunctionalRole', }, - '/open-apis/contact/v3/functional_roles/{role_id}/members/batch_create': { + '/contact/v3/functional_roles/{role_id}/members/batch_create': { POST: 'batchCreateContactFunctionalRoleMember', }, - '/open-apis/contact/v3/functional_roles/{role_id}/members/scopes': { + '/contact/v3/functional_roles/{role_id}/members/scopes': { PATCH: 'scopesContactFunctionalRoleMember', }, - '/open-apis/contact/v3/functional_roles/{role_id}/members/{member_id}': { + '/contact/v3/functional_roles/{role_id}/members/{member_id}': { GET: 'getContactFunctionalRoleMember', }, - '/open-apis/contact/v3/functional_roles/{role_id}/members': { + '/contact/v3/functional_roles/{role_id}/members': { GET: { name: 'listContactFunctionalRoleMember', pagination: { argIndex: 1, itemsKey: 'members' } }, }, - '/open-apis/contact/v3/functional_roles/{role_id}/members/batch_delete': { + '/contact/v3/functional_roles/{role_id}/members/batch_delete': { PATCH: 'batchDeleteContactFunctionalRoleMember', }, - '/open-apis/contact/v3/job_levels': { + '/contact/v3/job_levels': { POST: 'createContactJobLevel', GET: { name: 'listContactJobLevel', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/job_levels/{job_level_id}': { + '/contact/v3/job_levels/{job_level_id}': { PUT: 'updateContactJobLevel', GET: 'getContactJobLevel', DELETE: 'deleteContactJobLevel', }, - '/open-apis/contact/v3/job_families': { + '/contact/v3/job_families': { POST: 'createContactJobFamily', GET: { name: 'listContactJobFamily', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/job_families/{job_family_id}': { + '/contact/v3/job_families/{job_family_id}': { PUT: 'updateContactJobFamily', GET: 'getContactJobFamily', DELETE: 'deleteContactJobFamily', }, - '/open-apis/contact/v3/job_titles/{job_title_id}': { + '/contact/v3/job_titles/{job_title_id}': { GET: 'getContactJobTitle', }, - '/open-apis/contact/v3/job_titles': { + '/contact/v3/job_titles': { GET: { name: 'listContactJobTitle', pagination: { argIndex: 0 } }, }, - '/open-apis/contact/v3/work_cities/{work_city_id}': { + '/contact/v3/work_cities/{work_city_id}': { GET: 'getContactWorkCity', }, - '/open-apis/contact/v3/work_cities': { + '/contact/v3/work_cities': { GET: { name: 'listContactWorkCity', pagination: { argIndex: 0 } }, }, }) diff --git a/adapters/lark/src/types/corehr.ts b/adapters/lark/src/types/corehr.ts index a69cfa7f..debfa234 100644 --- a/adapters/lark/src/types/corehr.ts +++ b/adapters/lark/src/types/corehr.ts @@ -1,5 +1,5 @@ -import { Address, ApprovalGroup, ApproverInfo, AssessmentForCreate, AssignedOrganizationWithCode, Bank, BankAccount, BankBranch, BasicInfo, BasicInfoUpdate, Bp, BpRoleOrganization, City, Company, Contract, CostCenter, CostCenterVersion, CountryRegion, CountryRegionSubdivision, CpstGrade, CreateTransferInfo, Currency, CustomField, CustomFieldData, DataengineI18n, Department, DepartmentChange, DepartmentCreate, DepartmentHrbp, DepartmentParents, DepartmentTimeline, DepartmentTree, Dependent, District, Education, EducationInfo, Email, EmergencyContact, Employee, EmployeeJobData, EmployeeType, EmployeesAdditionalJob, EmployeesAdditionalJobBatchReqDate, EmployeesAdditionalJobWriteResp, Employment, EmploymentBp, EmploymentCreate, EmploymentLeaveBalance, Enum, EnumFieldOption, FieldVariableValue, FormFieldVariable, HiberarchyCommon, Hrbp, I18n, IdInfo, Job, JobChange, JobData, JobFamily, JobGrade, JobLevel, Language, LeaveGrantingRecord, LeaveRequest, LeaveType, Location, ManagementScope, NationalId, NationalIdType, Nationality, Object, ObjectFieldData, Offboarding, OffboardingReason, OfferInfo, OfferInfoUpdate, OrganizationOpLog, Person, PersonInfo, PersonName, PersonalProfile, Phone, PhoneNumberAndAreaCode, PreHire, PreHireQuery, ProbationInfo, ProbationInfoForSubmit, ProcessAbstractItem, ProcessCcItem, ProcessCommentInfo, ProcessDoneItem, ProcessFormVariableV2, ProcessLink, ProcessSystemDoneItem, ProcessSystemTodoItem, ProcessTodoItem, ProfileSettingCareer, ProfileSettingDataAttachment, ProfileSettingEmploymentInfo, ProfileSettingPersonalInfo, ResidentTax, RoleAuthorization, SecurityGroup, Subdivision, Subregion, SupportCostCenterItem, TimeZone, TransferInfo, TransferReason, TransferType, WkCalendarDate, WkOption, WorkCalendarDetail, WorkExperience, WorkExperienceInfo, WorkforcePlan, WorkforcePlanDetail, WorkforcePlanDetailRow, WorkingHoursType } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Address, ApprovalGroup, ApproverInfo, AssessmentForCreate, AssignedOrganizationWithCode, Bank, BankAccount, BankBranch, BasicInfo, BasicInfoUpdate, Bp, BpRoleOrganization, City, Company, Contract, CostCenter, CostCenterVersion, CountryRegion, CountryRegionSubdivision, CpstGrade, CreateTransferInfo, Currency, CustomField, CustomFieldData, DataengineI18n, Department, DepartmentChange, DepartmentCreate, DepartmentHrbp, DepartmentParents, DepartmentTimeline, DepartmentTree, Dependent, District, Education, EducationInfo, Email, EmergencyContact, Employee, EmployeeJobData, EmployeesAdditionalJob, EmployeesAdditionalJobBatchReqDate, EmployeesAdditionalJobWriteResp, EmployeeType, Employment, EmploymentBp, EmploymentCreate, EmploymentLeaveBalance, Enum, EnumFieldOption, FieldVariableValue, FormFieldVariable, HiberarchyCommon, Hrbp, I18n, IdInfo, Job, JobChange, JobData, JobFamily, JobGrade, JobLevel, Language, LeaveGrantingRecord, LeaveRequest, LeaveType, Location, ManagementScope, NationalId, NationalIdType, Nationality, Object, ObjectFieldData, Offboarding, OffboardingReason, OfferInfo, OfferInfoUpdate, OrganizationOpLog, Person, PersonalProfile, PersonInfo, PersonName, Phone, PhoneNumberAndAreaCode, PreHire, PreHireQuery, ProbationInfo, ProbationInfoForSubmit, ProcessAbstractItem, ProcessCcItem, ProcessCommentInfo, ProcessDoneItem, ProcessFormVariableV2, ProcessLink, ProcessSystemDoneItem, ProcessSystemTodoItem, ProcessTodoItem, ProfileSettingCareer, ProfileSettingDataAttachment, ProfileSettingEmploymentInfo, ProfileSettingPersonalInfo, ResidentTax, RoleAuthorization, SecurityGroup, Subdivision, Subregion, SupportCostCenterItem, TimeZone, TransferInfo, TransferReason, TransferType, WkCalendarDate, WkOption, WorkCalendarDetail, WorkExperience, WorkExperienceInfo, WorkforcePlan, WorkforcePlanDetail, WorkforcePlanDetailRow, WorkingHoursType } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -7,1318 +7,1318 @@ declare module '../internal' { * 获取飞书人事对象列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/list_object_api_name */ - listObjectApiNameCorehrCustomField(query?: Pagination): Promise> + listObjectApiNameCorehrV1CustomField(query?: Pagination): Promise> /** * 获取飞书人事对象列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/list_object_api_name */ - listObjectApiNameCorehrCustomFieldIter(): AsyncIterator + listObjectApiNameCorehrV1CustomFieldIter(): AsyncIterator /** * 获取自定义字段列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/query */ - queryCorehrCustomField(query?: QueryCorehrCustomFieldQuery): Promise + queryCorehrV1CustomField(query?: QueryCorehrV1CustomFieldQuery): Promise /** * 获取字段详情 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/get_by_param */ - getByParamCorehrCustomField(query?: GetByParamCorehrCustomFieldQuery): Promise + getByParamCorehrV1CustomField(query?: GetByParamCorehrV1CustomFieldQuery): Promise /** * 增加字段枚举值选项 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-meta_data/add_enum_option */ - addEnumOptionCorehrCommonDataMetaData(body: AddEnumOptionCorehrCommonDataMetaDataRequest, query?: AddEnumOptionCorehrCommonDataMetaDataQuery): Promise + addEnumOptionCorehrV1CommonDataMetaData(body: AddEnumOptionCorehrV1CommonDataMetaDataRequest, query?: AddEnumOptionCorehrV1CommonDataMetaDataQuery): Promise /** * 修改字段枚举值选项 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-meta_data/edit_enum_option */ - editEnumOptionCorehrCommonDataMetaData(body: EditEnumOptionCorehrCommonDataMetaDataRequest, query?: EditEnumOptionCorehrCommonDataMetaDataQuery): Promise + editEnumOptionCorehrV1CommonDataMetaData(body: EditEnumOptionCorehrV1CommonDataMetaDataRequest, query?: EditEnumOptionCorehrV1CommonDataMetaDataQuery): Promise /** * 查询国家/地区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search */ - searchCorehrBasicInfoCountryRegion(body: SearchCorehrBasicInfoCountryRegionRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoCountryRegion(body: SearchCorehrV2BasicInfoCountryRegionRequest, query?: Pagination): Promise> /** * 查询国家/地区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search */ - searchCorehrBasicInfoCountryRegionIter(body: SearchCorehrBasicInfoCountryRegionRequest): AsyncIterator + searchCorehrV2BasicInfoCountryRegionIter(body: SearchCorehrV2BasicInfoCountryRegionRequest): AsyncIterator /** * 查询省份/主要行政区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search */ - searchCorehrBasicInfoCountryRegionSubdivision(body: SearchCorehrBasicInfoCountryRegionSubdivisionRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoCountryRegionSubdivision(body: SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest, query?: Pagination): Promise> /** * 查询省份/主要行政区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search */ - searchCorehrBasicInfoCountryRegionSubdivisionIter(body: SearchCorehrBasicInfoCountryRegionSubdivisionRequest): AsyncIterator + searchCorehrV2BasicInfoCountryRegionSubdivisionIter(body: SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest): AsyncIterator /** * 查询城市信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search */ - searchCorehrBasicInfoCity(body: SearchCorehrBasicInfoCityRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoCity(body: SearchCorehrV2BasicInfoCityRequest, query?: Pagination): Promise> /** * 查询城市信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search */ - searchCorehrBasicInfoCityIter(body: SearchCorehrBasicInfoCityRequest): AsyncIterator + searchCorehrV2BasicInfoCityIter(body: SearchCorehrV2BasicInfoCityRequest): AsyncIterator /** * 查询区/县信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-district/search */ - searchCorehrBasicInfoDistrict(body: SearchCorehrBasicInfoDistrictRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoDistrict(body: SearchCorehrV2BasicInfoDistrictRequest, query?: Pagination): Promise> /** * 查询区/县信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-district/search */ - searchCorehrBasicInfoDistrictIter(body: SearchCorehrBasicInfoDistrictRequest): AsyncIterator + searchCorehrV2BasicInfoDistrictIter(body: SearchCorehrV2BasicInfoDistrictRequest): AsyncIterator /** * 查询国籍信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search */ - searchCorehrBasicInfoNationality(body: SearchCorehrBasicInfoNationalityRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoNationality(body: SearchCorehrV2BasicInfoNationalityRequest, query?: Pagination): Promise> /** * 查询国籍信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-nationality/search */ - searchCorehrBasicInfoNationalityIter(body: SearchCorehrBasicInfoNationalityRequest): AsyncIterator + searchCorehrV2BasicInfoNationalityIter(body: SearchCorehrV2BasicInfoNationalityRequest): AsyncIterator /** * 创建国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/create */ - createCorehrNationalIdType(body: CreateCorehrNationalIdTypeRequest, query?: CreateCorehrNationalIdTypeQuery): Promise + createCorehrV1NationalIdType(body: CreateCorehrV1NationalIdTypeRequest, query?: CreateCorehrV1NationalIdTypeQuery): Promise /** * 删除国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/delete */ - deleteCorehrNationalIdType(national_id_type_id: string): Promise + deleteCorehrV1NationalIdType(national_id_type_id: string): Promise /** * 更新国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/patch */ - patchCorehrNationalIdType(national_id_type_id: string, body: PatchCorehrNationalIdTypeRequest, query?: PatchCorehrNationalIdTypeQuery): Promise + patchCorehrV1NationalIdType(national_id_type_id: string, body: PatchCorehrV1NationalIdTypeRequest, query?: PatchCorehrV1NationalIdTypeQuery): Promise /** * 查询单个国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/get */ - getCorehrNationalIdType(national_id_type_id: string): Promise + getCorehrV1NationalIdType(national_id_type_id: string): Promise /** * 批量查询国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/list */ - listCorehrNationalIdType(query?: ListCorehrNationalIdTypeQuery & Pagination): Promise> + listCorehrV1NationalIdType(query?: ListCorehrV1NationalIdTypeQuery & Pagination): Promise> /** * 批量查询国家证件类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/national_id_type/list */ - listCorehrNationalIdTypeIter(query?: ListCorehrNationalIdTypeQuery): AsyncIterator + listCorehrV1NationalIdTypeIter(query?: ListCorehrV1NationalIdTypeQuery): AsyncIterator /** * 查询银行信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search */ - searchCorehrBasicInfoBank(body: SearchCorehrBasicInfoBankRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoBank(body: SearchCorehrV2BasicInfoBankRequest, query?: Pagination): Promise> /** * 查询银行信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search */ - searchCorehrBasicInfoBankIter(body: SearchCorehrBasicInfoBankRequest): AsyncIterator + searchCorehrV2BasicInfoBankIter(body: SearchCorehrV2BasicInfoBankRequest): AsyncIterator /** * 查询支行信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank_branch/search */ - searchCorehrBasicInfoBankBranch(body: SearchCorehrBasicInfoBankBranchRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoBankBranch(body: SearchCorehrV2BasicInfoBankBranchRequest, query?: Pagination): Promise> /** * 查询支行信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank_branch/search */ - searchCorehrBasicInfoBankBranchIter(body: SearchCorehrBasicInfoBankBranchRequest): AsyncIterator + searchCorehrV2BasicInfoBankBranchIter(body: SearchCorehrV2BasicInfoBankBranchRequest): AsyncIterator /** * 查询货币信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-currency/search */ - searchCorehrBasicInfoCurrency(body: SearchCorehrBasicInfoCurrencyRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoCurrency(body: SearchCorehrV2BasicInfoCurrencyRequest, query?: Pagination): Promise> /** * 查询货币信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-currency/search */ - searchCorehrBasicInfoCurrencyIter(body: SearchCorehrBasicInfoCurrencyRequest): AsyncIterator + searchCorehrV2BasicInfoCurrencyIter(body: SearchCorehrV2BasicInfoCurrencyRequest): AsyncIterator /** * 查询时区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-time_zone/search */ - searchCorehrBasicInfoTimeZone(body: SearchCorehrBasicInfoTimeZoneRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoTimeZone(body: SearchCorehrV2BasicInfoTimeZoneRequest, query?: Pagination): Promise> /** * 查询时区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-time_zone/search */ - searchCorehrBasicInfoTimeZoneIter(body: SearchCorehrBasicInfoTimeZoneRequest): AsyncIterator + searchCorehrV2BasicInfoTimeZoneIter(body: SearchCorehrV2BasicInfoTimeZoneRequest): AsyncIterator /** * 查询语言信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-language/search */ - searchCorehrBasicInfoLanguage(body: SearchCorehrBasicInfoLanguageRequest, query?: Pagination): Promise> + searchCorehrV2BasicInfoLanguage(body: SearchCorehrV2BasicInfoLanguageRequest, query?: Pagination): Promise> /** * 查询语言信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-language/search */ - searchCorehrBasicInfoLanguageIter(body: SearchCorehrBasicInfoLanguageRequest): AsyncIterator + searchCorehrV2BasicInfoLanguageIter(body: SearchCorehrV2BasicInfoLanguageRequest): AsyncIterator /** * 创建人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/create */ - createCorehrEmployeeType(body: CreateCorehrEmployeeTypeRequest, query?: CreateCorehrEmployeeTypeQuery): Promise + createCorehrV1EmployeeType(body: CreateCorehrV1EmployeeTypeRequest, query?: CreateCorehrV1EmployeeTypeQuery): Promise /** * 删除人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/delete */ - deleteCorehrEmployeeType(employee_type_id: string): Promise + deleteCorehrV1EmployeeType(employee_type_id: string): Promise /** * 更新人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/patch */ - patchCorehrEmployeeType(employee_type_id: string, body: PatchCorehrEmployeeTypeRequest, query?: PatchCorehrEmployeeTypeQuery): Promise + patchCorehrV1EmployeeType(employee_type_id: string, body: PatchCorehrV1EmployeeTypeRequest, query?: PatchCorehrV1EmployeeTypeQuery): Promise /** * 查询单个人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/get */ - getCorehrEmployeeType(employee_type_id: string): Promise + getCorehrV1EmployeeType(employee_type_id: string): Promise /** * 批量查询人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list */ - listCorehrEmployeeType(query?: Pagination): Promise> + listCorehrV1EmployeeType(query?: Pagination): Promise> /** * 批量查询人员类型 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list */ - listCorehrEmployeeTypeIter(): AsyncIterator + listCorehrV1EmployeeTypeIter(): AsyncIterator /** * 创建工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/create */ - createCorehrWorkingHoursType(body: CreateCorehrWorkingHoursTypeRequest, query?: CreateCorehrWorkingHoursTypeQuery): Promise + createCorehrV1WorkingHoursType(body: CreateCorehrV1WorkingHoursTypeRequest, query?: CreateCorehrV1WorkingHoursTypeQuery): Promise /** * 删除工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/delete */ - deleteCorehrWorkingHoursType(working_hours_type_id: string): Promise + deleteCorehrV1WorkingHoursType(working_hours_type_id: string): Promise /** * 更新工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/patch */ - patchCorehrWorkingHoursType(working_hours_type_id: string, body: PatchCorehrWorkingHoursTypeRequest, query?: PatchCorehrWorkingHoursTypeQuery): Promise + patchCorehrV1WorkingHoursType(working_hours_type_id: string, body: PatchCorehrV1WorkingHoursTypeRequest, query?: PatchCorehrV1WorkingHoursTypeQuery): Promise /** * 查询单个工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/get */ - getCorehrWorkingHoursType(working_hours_type_id: string): Promise + getCorehrV1WorkingHoursType(working_hours_type_id: string): Promise /** * 批量查询工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list */ - listCorehrWorkingHoursType(query?: Pagination): Promise> + listCorehrV1WorkingHoursType(query?: Pagination): Promise> /** * 批量查询工时制度 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list */ - listCorehrWorkingHoursTypeIter(): AsyncIterator + listCorehrV1WorkingHoursTypeIter(): AsyncIterator /** * ID 转换 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/common_data-id/convert */ - convertCorehrCommonDataId(body: ConvertCorehrCommonDataIdRequest, query?: ConvertCorehrCommonDataIdQuery): Promise + convertCorehrV1CommonDataId(body: ConvertCorehrV1CommonDataIdRequest, query?: ConvertCorehrV1CommonDataIdQuery): Promise /** * 批量查询员工信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get */ - batchGetCorehrEmployee(body: BatchGetCorehrEmployeeRequest, query?: BatchGetCorehrEmployeeQuery): Promise + batchGetCorehrV2Employee(body: BatchGetCorehrV2EmployeeRequest, query?: BatchGetCorehrV2EmployeeQuery): Promise /** * 搜索员工信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search */ - searchCorehrEmployee(body: SearchCorehrEmployeeRequest, query?: SearchCorehrEmployeeQuery & Pagination): Promise> + searchCorehrV2Employee(body: SearchCorehrV2EmployeeRequest, query?: SearchCorehrV2EmployeeQuery & Pagination): Promise> /** * 搜索员工信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/search */ - searchCorehrEmployeeIter(body: SearchCorehrEmployeeRequest, query?: SearchCorehrEmployeeQuery): AsyncIterator + searchCorehrV2EmployeeIter(body: SearchCorehrV2EmployeeRequest, query?: SearchCorehrV2EmployeeQuery): AsyncIterator /** * 添加人员 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/create */ - createCorehrEmployee(body: CreateCorehrEmployeeRequest, query?: CreateCorehrEmployeeQuery): Promise + createCorehrV2Employee(body: CreateCorehrV2EmployeeRequest, query?: CreateCorehrV2EmployeeQuery): Promise /** * 创建个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/person/create */ - createCorehrPerson(body: CreateCorehrPersonRequest, query?: CreateCorehrPersonQuery): Promise + createCorehrV2Person(body: CreateCorehrV2PersonRequest, query?: CreateCorehrV2PersonQuery): Promise /** * 更新个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/person/patch */ - patchCorehrPerson(person_id: string, body: PatchCorehrPersonRequest, query?: PatchCorehrPersonQuery): Promise + patchCorehrV2Person(person_id: string, body: PatchCorehrV2PersonRequest, query?: PatchCorehrV2PersonQuery): Promise /** * 删除个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/delete */ - deleteCorehrPerson(person_id: string): Promise + deleteCorehrV1Person(person_id: string): Promise /** * 上传文件 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/upload */ - uploadCorehrPerson(form: UploadCorehrPersonForm): Promise + uploadCorehrV1Person(form: UploadCorehrV1PersonForm): Promise /** * 下载文件 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/file/get */ - getCorehrFile(id: string): Promise + getCorehrV1File(id: string): Promise /** * 创建雇佣信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/create */ - createCorehrEmployment(body: CreateCorehrEmploymentRequest, query?: CreateCorehrEmploymentQuery): Promise + createCorehrV1Employment(body: CreateCorehrV1EmploymentRequest, query?: CreateCorehrV1EmploymentQuery): Promise /** * 更新雇佣信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/patch */ - patchCorehrEmployment(employment_id: string, body: PatchCorehrEmploymentRequest, query?: PatchCorehrEmploymentQuery): Promise + patchCorehrV1Employment(employment_id: string, body: PatchCorehrV1EmploymentRequest, query?: PatchCorehrV1EmploymentQuery): Promise /** * 删除雇佣信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employment/delete */ - deleteCorehrEmployment(employment_id: string, query?: DeleteCorehrEmploymentQuery): Promise + deleteCorehrV1Employment(employment_id: string, query?: DeleteCorehrV1EmploymentQuery): Promise /** * 创建任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/create */ - createCorehrJobData(body: CreateCorehrJobDataRequest, query?: CreateCorehrJobDataQuery): Promise + createCorehrV1JobData(body: CreateCorehrV1JobDataRequest, query?: CreateCorehrV1JobDataQuery): Promise /** * 删除任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/delete */ - deleteCorehrJobData(job_data_id: string, query?: DeleteCorehrJobDataQuery): Promise + deleteCorehrV1JobData(job_data_id: string, query?: DeleteCorehrV1JobDataQuery): Promise /** * 更新任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/patch */ - patchCorehrJobData(job_data_id: string, body: PatchCorehrJobDataRequest, query?: PatchCorehrJobDataQuery): Promise + patchCorehrV1JobData(job_data_id: string, body: PatchCorehrV1JobDataRequest, query?: PatchCorehrV1JobDataQuery): Promise /** * 获取任职信息列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-job_data/query */ - queryCorehrEmployeesJobData(body: QueryCorehrEmployeesJobDataRequest, query?: QueryCorehrEmployeesJobDataQuery & Pagination): Promise> + queryCorehrV2EmployeesJobData(body: QueryCorehrV2EmployeesJobDataRequest, query?: QueryCorehrV2EmployeesJobDataQuery & Pagination): Promise> /** * 获取任职信息列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-job_data/query */ - queryCorehrEmployeesJobDataIter(body: QueryCorehrEmployeesJobDataRequest, query?: QueryCorehrEmployeesJobDataQuery): AsyncIterator + queryCorehrV2EmployeesJobDataIter(body: QueryCorehrV2EmployeesJobDataRequest, query?: QueryCorehrV2EmployeesJobDataQuery): AsyncIterator /** * 批量查询员工任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-job_data/batch_get */ - batchGetCorehrEmployeesJobData(body: BatchGetCorehrEmployeesJobDataRequest, query?: BatchGetCorehrEmployeesJobDataQuery): Promise + batchGetCorehrV2EmployeesJobData(body: BatchGetCorehrV2EmployeesJobDataRequest, query?: BatchGetCorehrV2EmployeesJobDataQuery): Promise /** * 批量查询任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/list */ - listCorehrJobData(query?: ListCorehrJobDataQuery & Pagination): Promise> + listCorehrV1JobData(query?: ListCorehrV1JobDataQuery & Pagination): Promise> /** * 批量查询任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/list */ - listCorehrJobDataIter(query?: ListCorehrJobDataQuery): AsyncIterator + listCorehrV1JobDataIter(query?: ListCorehrV1JobDataQuery): AsyncIterator /** * 查询单个任职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_data/get */ - getCorehrJobData(job_data_id: string, query?: GetCorehrJobDataQuery): Promise + getCorehrV1JobData(job_data_id: string, query?: GetCorehrV1JobDataQuery): Promise /** * 创建兼职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/create */ - createCorehrEmployeesAdditionalJob(body: CreateCorehrEmployeesAdditionalJobRequest, query?: CreateCorehrEmployeesAdditionalJobQuery): Promise + createCorehrV2EmployeesAdditionalJob(body: CreateCorehrV2EmployeesAdditionalJobRequest, query?: CreateCorehrV2EmployeesAdditionalJobQuery): Promise /** * 更新兼职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/patch */ - patchCorehrEmployeesAdditionalJob(additional_job_id: string, body: PatchCorehrEmployeesAdditionalJobRequest, query?: PatchCorehrEmployeesAdditionalJobQuery): Promise + patchCorehrV2EmployeesAdditionalJob(additional_job_id: string, body: PatchCorehrV2EmployeesAdditionalJobRequest, query?: PatchCorehrV2EmployeesAdditionalJobQuery): Promise /** * 删除兼职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/delete */ - deleteCorehrEmployeesAdditionalJob(additional_job_id: string): Promise + deleteCorehrV2EmployeesAdditionalJob(additional_job_id: string): Promise /** * 批量查询兼职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/batch */ - batchCorehrEmployeesAdditionalJob(body: BatchCorehrEmployeesAdditionalJobRequest, query?: BatchCorehrEmployeesAdditionalJobQuery & Pagination): Promise> + batchCorehrV2EmployeesAdditionalJob(body: BatchCorehrV2EmployeesAdditionalJobRequest, query?: BatchCorehrV2EmployeesAdditionalJobQuery & Pagination): Promise> /** * 批量查询兼职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-additional_job/batch */ - batchCorehrEmployeesAdditionalJobIter(body: BatchCorehrEmployeesAdditionalJobRequest, query?: BatchCorehrEmployeesAdditionalJobQuery): AsyncIterator + batchCorehrV2EmployeesAdditionalJobIter(body: BatchCorehrV2EmployeesAdditionalJobRequest, query?: BatchCorehrV2EmployeesAdditionalJobQuery): AsyncIterator /** * 批量查询部门操作日志 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_operation_logs */ - queryOperationLogsCorehrDepartment(body: QueryOperationLogsCorehrDepartmentRequest, query?: QueryOperationLogsCorehrDepartmentQuery & Pagination): Promise> + queryOperationLogsCorehrV2Department(body: QueryOperationLogsCorehrV2DepartmentRequest, query?: QueryOperationLogsCorehrV2DepartmentQuery & Pagination): Promise> /** * 批量查询部门操作日志 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_operation_logs */ - queryOperationLogsCorehrDepartmentIter(body: QueryOperationLogsCorehrDepartmentRequest, query?: QueryOperationLogsCorehrDepartmentQuery): AsyncIterator + queryOperationLogsCorehrV2DepartmentIter(body: QueryOperationLogsCorehrV2DepartmentRequest, query?: QueryOperationLogsCorehrV2DepartmentQuery): AsyncIterator /** * 创建部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/create */ - createCorehrDepartment(body: CreateCorehrDepartmentRequest, query?: CreateCorehrDepartmentQuery): Promise + createCorehrV1Department(body: CreateCorehrV1DepartmentRequest, query?: CreateCorehrV1DepartmentQuery): Promise /** * 更新部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/patch */ - patchCorehrDepartment(department_id: string, body: PatchCorehrDepartmentRequest, query?: PatchCorehrDepartmentQuery): Promise + patchCorehrV2Department(department_id: string, body: PatchCorehrV2DepartmentRequest, query?: PatchCorehrV2DepartmentQuery): Promise /** * 获取父部门信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/parents */ - parentsCorehrDepartment(body: ParentsCorehrDepartmentRequest, query?: ParentsCorehrDepartmentQuery): Promise + parentsCorehrV2Department(body: ParentsCorehrV2DepartmentRequest, query?: ParentsCorehrV2DepartmentQuery): Promise /** * 批量查询部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get */ - batchGetCorehrDepartment(body: BatchGetCorehrDepartmentRequest, query?: BatchGetCorehrDepartmentQuery): Promise + batchGetCorehrV2Department(body: BatchGetCorehrV2DepartmentRequest, query?: BatchGetCorehrV2DepartmentQuery): Promise /** * 查询指定时间范围内当前生效信息发生变更的部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_recent_change */ - queryRecentChangeCorehrDepartment(query?: QueryRecentChangeCorehrDepartmentQuery & Pagination): Promise + queryRecentChangeCorehrV2Department(query?: QueryRecentChangeCorehrV2DepartmentQuery & Pagination): Promise /** * 查询指定生效日期的部门基本信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_timeline */ - queryTimelineCorehrDepartment(body: QueryTimelineCorehrDepartmentRequest, query?: QueryTimelineCorehrDepartmentQuery): Promise + queryTimelineCorehrV2Department(body: QueryTimelineCorehrV2DepartmentRequest, query?: QueryTimelineCorehrV2DepartmentQuery): Promise /** * 查询指定生效日期的部门架构树 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/tree */ - treeCorehrDepartment(body: TreeCorehrDepartmentRequest, query?: TreeCorehrDepartmentQuery & Pagination): Promise> + treeCorehrV2Department(body: TreeCorehrV2DepartmentRequest, query?: TreeCorehrV2DepartmentQuery & Pagination): Promise> /** * 查询指定生效日期的部门架构树 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/tree */ - treeCorehrDepartmentIter(body: TreeCorehrDepartmentRequest, query?: TreeCorehrDepartmentQuery): AsyncIterator + treeCorehrV2DepartmentIter(body: TreeCorehrV2DepartmentRequest, query?: TreeCorehrV2DepartmentQuery): AsyncIterator /** * 批量查询部门版本信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_multi_timeline */ - queryMultiTimelineCorehrDepartment(body: QueryMultiTimelineCorehrDepartmentRequest, query?: QueryMultiTimelineCorehrDepartmentQuery & Pagination): Promise> + queryMultiTimelineCorehrV2Department(body: QueryMultiTimelineCorehrV2DepartmentRequest, query?: QueryMultiTimelineCorehrV2DepartmentQuery & Pagination): Promise> /** * 批量查询部门版本信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/query_multi_timeline */ - queryMultiTimelineCorehrDepartmentIter(body: QueryMultiTimelineCorehrDepartmentRequest, query?: QueryMultiTimelineCorehrDepartmentQuery): AsyncIterator + queryMultiTimelineCorehrV2DepartmentIter(body: QueryMultiTimelineCorehrV2DepartmentRequest, query?: QueryMultiTimelineCorehrV2DepartmentQuery): AsyncIterator /** * 搜索部门信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search */ - searchCorehrDepartment(body: SearchCorehrDepartmentRequest, query?: SearchCorehrDepartmentQuery & Pagination): Promise> + searchCorehrV2Department(body: SearchCorehrV2DepartmentRequest, query?: SearchCorehrV2DepartmentQuery & Pagination): Promise> /** * 搜索部门信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search */ - searchCorehrDepartmentIter(body: SearchCorehrDepartmentRequest, query?: SearchCorehrDepartmentQuery): AsyncIterator + searchCorehrV2DepartmentIter(body: SearchCorehrV2DepartmentRequest, query?: SearchCorehrV2DepartmentQuery): AsyncIterator /** * 删除部门 V2 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/delete */ - deleteCorehrDepartment(department_id: string, query?: DeleteCorehrDepartmentQuery): Promise + deleteCorehrV2Department(department_id: string, query?: DeleteCorehrV2DepartmentQuery): Promise /** * 创建地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/create */ - createCorehrLocation(body: CreateCorehrLocationRequest, query?: CreateCorehrLocationQuery): Promise + createCorehrV1Location(body: CreateCorehrV1LocationRequest, query?: CreateCorehrV1LocationQuery): Promise /** * 更新地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/patch */ - patchCorehrLocation(location_id: string, body: PatchCorehrLocationRequest, query?: PatchCorehrLocationQuery): Promise + patchCorehrV2Location(location_id: string, body: PatchCorehrV2LocationRequest, query?: PatchCorehrV2LocationQuery): Promise /** * 查询单个地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/get */ - getCorehrLocation(location_id: string): Promise + getCorehrV1Location(location_id: string): Promise /** * 查询当前生效信息发生变更的地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/query_recent_change */ - queryRecentChangeCorehrLocation(query?: QueryRecentChangeCorehrLocationQuery & Pagination): Promise + queryRecentChangeCorehrV2Location(query?: QueryRecentChangeCorehrV2LocationQuery & Pagination): Promise /** * 通过地点 ID 批量获取地点信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/batch_get */ - batchGetCorehrLocation(body: BatchGetCorehrLocationRequest): Promise + batchGetCorehrV2Location(body: BatchGetCorehrV2LocationRequest): Promise /** * 批量分页查询地点信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list */ - listCorehrLocation(query?: Pagination): Promise> + listCorehrV1Location(query?: Pagination): Promise> /** * 批量分页查询地点信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/list */ - listCorehrLocationIter(): AsyncIterator + listCorehrV1LocationIter(): AsyncIterator /** * 启用/停用地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location/active */ - activeCorehrLocation(body: ActiveCorehrLocationRequest): Promise + activeCorehrV2Location(body: ActiveCorehrV2LocationRequest): Promise /** * 删除地点 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/location/delete */ - deleteCorehrLocation(location_id: string): Promise + deleteCorehrV1Location(location_id: string): Promise /** * 删除地点地址 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/delete */ - deleteCorehrLocationAddress(location_id: string, address_id: string): Promise + deleteCorehrV2LocationAddress(location_id: string, address_id: string): Promise /** * 更新地点地址 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/patch */ - patchCorehrLocationAddress(location_id: string, address_id: string, body: PatchCorehrLocationAddressRequest, query?: PatchCorehrLocationAddressQuery): Promise + patchCorehrV2LocationAddress(location_id: string, address_id: string, body: PatchCorehrV2LocationAddressRequest, query?: PatchCorehrV2LocationAddressQuery): Promise /** * 添加地点地址 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/location-address/create */ - createCorehrLocationAddress(location_id: string, body: CreateCorehrLocationAddressRequest, query?: CreateCorehrLocationAddressQuery): Promise + createCorehrV2LocationAddress(location_id: string, body: CreateCorehrV2LocationAddressRequest, query?: CreateCorehrV2LocationAddressQuery): Promise /** * 创建公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/create */ - createCorehrCompany(body: CreateCorehrCompanyRequest, query?: CreateCorehrCompanyQuery): Promise + createCorehrV1Company(body: CreateCorehrV1CompanyRequest, query?: CreateCorehrV1CompanyQuery): Promise /** * 更新公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/patch */ - patchCorehrCompany(company_id: string, body: PatchCorehrCompanyRequest, query?: PatchCorehrCompanyQuery): Promise + patchCorehrV1Company(company_id: string, body: PatchCorehrV1CompanyRequest, query?: PatchCorehrV1CompanyQuery): Promise /** * 启用/停用公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/active */ - activeCorehrCompany(body: ActiveCorehrCompanyRequest): Promise + activeCorehrV2Company(body: ActiveCorehrV2CompanyRequest): Promise /** * 查询单个公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/get */ - getCorehrCompany(company_id: string): Promise + getCorehrV1Company(company_id: string): Promise /** * 批量查询公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list */ - listCorehrCompany(query?: Pagination): Promise> + listCorehrV1Company(query?: Pagination): Promise> /** * 批量查询公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/list */ - listCorehrCompanyIter(): AsyncIterator + listCorehrV1CompanyIter(): AsyncIterator /** * 查询指定时间范围内当前生效信息发生变更的公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/query_recent_change */ - queryRecentChangeCorehrCompany(query?: QueryRecentChangeCorehrCompanyQuery & Pagination): Promise + queryRecentChangeCorehrV2Company(query?: QueryRecentChangeCorehrV2CompanyQuery & Pagination): Promise /** * 通过公司 ID 批量获取公司信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/company/batch_get */ - batchGetCorehrCompany(body: BatchGetCorehrCompanyRequest): Promise + batchGetCorehrV2Company(body: BatchGetCorehrV2CompanyRequest): Promise /** * 删除公司 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/company/delete */ - deleteCorehrCompany(company_id: string): Promise + deleteCorehrV1Company(company_id: string): Promise /** * 创建成本中心 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/create */ - createCorehrCostCenter(body: CreateCorehrCostCenterRequest, query?: CreateCorehrCostCenterQuery): Promise + createCorehrV2CostCenter(body: CreateCorehrV2CostCenterRequest, query?: CreateCorehrV2CostCenterQuery): Promise /** * 启用 / 停用成本中心 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/patch */ - patchCorehrCostCenter(cost_center_id: string, body: PatchCorehrCostCenterRequest, query?: PatchCorehrCostCenterQuery): Promise + patchCorehrV2CostCenter(cost_center_id: string, body: PatchCorehrV2CostCenterRequest, query?: PatchCorehrV2CostCenterQuery): Promise /** * 查询当前生效信息发生变更的成本中心 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/query_recent_change */ - queryRecentChangeCorehrCostCenter(query?: QueryRecentChangeCorehrCostCenterQuery & Pagination): Promise + queryRecentChangeCorehrV2CostCenter(query?: QueryRecentChangeCorehrV2CostCenterQuery & Pagination): Promise /** * 搜索成本中心信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search */ - searchCorehrCostCenter(body: SearchCorehrCostCenterRequest, query?: SearchCorehrCostCenterQuery & Pagination): Promise> + searchCorehrV2CostCenter(body: SearchCorehrV2CostCenterRequest, query?: SearchCorehrV2CostCenterQuery & Pagination): Promise> /** * 搜索成本中心信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/search */ - searchCorehrCostCenterIter(body: SearchCorehrCostCenterRequest, query?: SearchCorehrCostCenterQuery): AsyncIterator + searchCorehrV2CostCenterIter(body: SearchCorehrV2CostCenterRequest, query?: SearchCorehrV2CostCenterQuery): AsyncIterator /** * 删除成本中心 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center/delete */ - deleteCorehrCostCenter(cost_center_id: string, body: DeleteCorehrCostCenterRequest): Promise + deleteCorehrV2CostCenter(cost_center_id: string, body: DeleteCorehrV2CostCenterRequest): Promise /** * 创建成本中心版本 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/create */ - createCorehrCostCenterVersion(cost_center_id: string, body: CreateCorehrCostCenterVersionRequest, query?: CreateCorehrCostCenterVersionQuery): Promise + createCorehrV2CostCenterVersion(cost_center_id: string, body: CreateCorehrV2CostCenterVersionRequest, query?: CreateCorehrV2CostCenterVersionQuery): Promise /** * 更正成本中心版本 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/patch */ - patchCorehrCostCenterVersion(cost_center_id: string, version_id: string, body: PatchCorehrCostCenterVersionRequest, query?: PatchCorehrCostCenterVersionQuery): Promise + patchCorehrV2CostCenterVersion(cost_center_id: string, version_id: string, body: PatchCorehrV2CostCenterVersionRequest, query?: PatchCorehrV2CostCenterVersionQuery): Promise /** * 撤销成本中心版本 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/cost_center-version/delete */ - deleteCorehrCostCenterVersion(cost_center_id: string, version_id: string, body: DeleteCorehrCostCenterVersionRequest): Promise + deleteCorehrV2CostCenterVersion(cost_center_id: string, version_id: string, body: DeleteCorehrV2CostCenterVersionRequest): Promise /** * 根据流程 ID 查询组织架构调整记录 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/get */ - getCorehrApprovalGroups(process_id: string, query?: GetCorehrApprovalGroupsQuery): Promise + getCorehrV2ApprovalGroups(process_id: string, query?: GetCorehrV2ApprovalGroupsQuery): Promise /** * 批量查询部门调整内容 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_department_change_list_by_ids */ - openQueryDepartmentChangeListByIdsCorehrApprovalGroups(body: OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsRequest, query?: OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsQuery): Promise + openQueryDepartmentChangeListByIdsCorehrV2ApprovalGroups(body: OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest, query?: OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery): Promise /** * 批量查询人员调整内容 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approval_groups/open_query_job_change_list_by_ids */ - openQueryJobChangeListByIdsCorehrApprovalGroups(body: OpenQueryJobChangeListByIdsCorehrApprovalGroupsRequest, query?: OpenQueryJobChangeListByIdsCorehrApprovalGroupsQuery): Promise + openQueryJobChangeListByIdsCorehrV2ApprovalGroups(body: OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest, query?: OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery): Promise /** * 创建序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/create */ - createCorehrJobFamily(body: CreateCorehrJobFamilyRequest, query?: CreateCorehrJobFamilyQuery): Promise + createCorehrV1JobFamily(body: CreateCorehrV1JobFamilyRequest, query?: CreateCorehrV1JobFamilyQuery): Promise /** * 更新序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/patch */ - patchCorehrJobFamily(job_family_id: string, body: PatchCorehrJobFamilyRequest, query?: PatchCorehrJobFamilyQuery): Promise + patchCorehrV1JobFamily(job_family_id: string, body: PatchCorehrV1JobFamilyRequest, query?: PatchCorehrV1JobFamilyQuery): Promise /** * 查询单个序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/get */ - getCorehrJobFamily(job_family_id: string): Promise + getCorehrV1JobFamily(job_family_id: string): Promise /** * 批量查询序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list */ - listCorehrJobFamily(query?: Pagination): Promise> + listCorehrV1JobFamily(query?: Pagination): Promise> /** * 批量查询序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/list */ - listCorehrJobFamilyIter(): AsyncIterator + listCorehrV1JobFamilyIter(): AsyncIterator /** * 查询当前生效信息发生变更的序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/query_recent_change */ - queryRecentChangeCorehrJobFamily(query?: QueryRecentChangeCorehrJobFamilyQuery & Pagination): Promise + queryRecentChangeCorehrV2JobFamily(query?: QueryRecentChangeCorehrV2JobFamilyQuery & Pagination): Promise /** * 通过序列 ID 批量获取序列信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_family/batch_get */ - batchGetCorehrJobFamily(body: BatchGetCorehrJobFamilyRequest): Promise + batchGetCorehrV2JobFamily(body: BatchGetCorehrV2JobFamilyRequest): Promise /** * 删除序列 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_family/delete */ - deleteCorehrJobFamily(job_family_id: string): Promise + deleteCorehrV1JobFamily(job_family_id: string): Promise /** * 新建职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/create */ - createCorehrJobLevel(body: CreateCorehrJobLevelRequest, query?: CreateCorehrJobLevelQuery): Promise + createCorehrV1JobLevel(body: CreateCorehrV1JobLevelRequest, query?: CreateCorehrV1JobLevelQuery): Promise /** * 更新单个职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/patch */ - patchCorehrJobLevel(job_level_id: string, body: PatchCorehrJobLevelRequest, query?: PatchCorehrJobLevelQuery): Promise + patchCorehrV1JobLevel(job_level_id: string, body: PatchCorehrV1JobLevelRequest, query?: PatchCorehrV1JobLevelQuery): Promise /** * 查询单个职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/get */ - getCorehrJobLevel(job_level_id: string): Promise + getCorehrV1JobLevel(job_level_id: string): Promise /** * 批量查询职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list */ - listCorehrJobLevel(query?: Pagination): Promise> + listCorehrV1JobLevel(query?: Pagination): Promise> /** * 批量查询职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/list */ - listCorehrJobLevelIter(): AsyncIterator + listCorehrV1JobLevelIter(): AsyncIterator /** * 查询当前生效信息发生变更的职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/query_recent_change */ - queryRecentChangeCorehrJobLevel(query?: QueryRecentChangeCorehrJobLevelQuery & Pagination): Promise + queryRecentChangeCorehrV2JobLevel(query?: QueryRecentChangeCorehrV2JobLevelQuery & Pagination): Promise /** * 通过职级 ID 批量获取职级信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_level/batch_get */ - batchGetCorehrJobLevel(body: BatchGetCorehrJobLevelRequest): Promise + batchGetCorehrV2JobLevel(body: BatchGetCorehrV2JobLevelRequest): Promise /** * 删除职级 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_level/delete */ - deleteCorehrJobLevel(job_level_id: string): Promise + deleteCorehrV1JobLevel(job_level_id: string): Promise /** * 创建职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/create */ - createCorehrJobGrade(body: CreateCorehrJobGradeRequest, query?: CreateCorehrJobGradeQuery): Promise + createCorehrV2JobGrade(body: CreateCorehrV2JobGradeRequest, query?: CreateCorehrV2JobGradeQuery): Promise /** * 更新职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/patch */ - patchCorehrJobGrade(job_grade_id: string, body: PatchCorehrJobGradeRequest, query?: PatchCorehrJobGradeQuery): Promise + patchCorehrV2JobGrade(job_grade_id: string, body: PatchCorehrV2JobGradeRequest, query?: PatchCorehrV2JobGradeQuery): Promise /** * 查询职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query */ - queryCorehrJobGrade(body: QueryCorehrJobGradeRequest, query?: Pagination): Promise> + queryCorehrV2JobGrade(body: QueryCorehrV2JobGradeRequest, query?: Pagination): Promise> /** * 查询职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query */ - queryCorehrJobGradeIter(body: QueryCorehrJobGradeRequest): AsyncIterator + queryCorehrV2JobGradeIter(body: QueryCorehrV2JobGradeRequest): AsyncIterator /** * 查询当前生效信息发生变更的职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/query_recent_change */ - queryRecentChangeCorehrJobGrade(query?: QueryRecentChangeCorehrJobGradeQuery & Pagination): Promise + queryRecentChangeCorehrV2JobGrade(query?: QueryRecentChangeCorehrV2JobGradeQuery & Pagination): Promise /** * 删除职等 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_grade/delete */ - deleteCorehrJobGrade(job_grade_id: string): Promise + deleteCorehrV2JobGrade(job_grade_id: string): Promise /** * 创建职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/create */ - createCorehrJob(body: CreateCorehrJobRequest, query?: CreateCorehrJobQuery): Promise + createCorehrV1Job(body: CreateCorehrV1JobRequest, query?: CreateCorehrV1JobQuery): Promise /** * 删除职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/delete */ - deleteCorehrJob(job_id: string): Promise + deleteCorehrV1Job(job_id: string): Promise /** * 更新职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/patch */ - patchCorehrJob(job_id: string, body: PatchCorehrJobRequest, query?: PatchCorehrJobQuery): Promise + patchCorehrV1Job(job_id: string, body: PatchCorehrV1JobRequest, query?: PatchCorehrV1JobQuery): Promise /** * 查询单个职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/get */ - getCorehrJob(job_id: string): Promise + getCorehrV2Job(job_id: string): Promise /** * 批量查询职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list */ - listCorehrJob(query?: ListCorehrJobQuery & Pagination): Promise> + listCorehrV2Job(query?: ListCorehrV2JobQuery & Pagination): Promise> /** * 批量查询职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job/list */ - listCorehrJobIter(query?: ListCorehrJobQuery): AsyncIterator + listCorehrV2JobIter(query?: ListCorehrV2JobQuery): AsyncIterator /** * 撤销入职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/withdraw_onboarding */ - withdrawOnboardingCorehrPreHire(body: WithdrawOnboardingCorehrPreHireRequest): Promise + withdrawOnboardingCorehrV2PreHire(body: WithdrawOnboardingCorehrV2PreHireRequest): Promise /** * 恢复入职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/restore_flow_instance */ - restoreFlowInstanceCorehrPreHire(body: RestoreFlowInstanceCorehrPreHireRequest): Promise + restoreFlowInstanceCorehrV2PreHire(body: RestoreFlowInstanceCorehrV2PreHireRequest): Promise /** * 直接创建待入职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/create */ - createCorehrPreHire(body: CreateCorehrPreHireRequest): Promise + createCorehrV2PreHire(body: CreateCorehrV2PreHireRequest): Promise /** * 更新待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/patch */ - patchCorehrPreHire(pre_hire_id: string, body: PatchCorehrPreHireRequest): Promise + patchCorehrV2PreHire(pre_hire_id: string, body: PatchCorehrV2PreHireRequest): Promise /** * 删除待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/delete */ - deleteCorehrPreHire(pre_hire_id: string): Promise + deleteCorehrV2PreHire(pre_hire_id: string): Promise /** * 查询待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/query */ - queryCorehrPreHire(body: QueryCorehrPreHireRequest, query?: QueryCorehrPreHireQuery & Pagination): Promise> + queryCorehrV2PreHire(body: QueryCorehrV2PreHireRequest, query?: QueryCorehrV2PreHireQuery & Pagination): Promise> /** * 查询待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/query */ - queryCorehrPreHireIter(body: QueryCorehrPreHireRequest, query?: QueryCorehrPreHireQuery): AsyncIterator + queryCorehrV2PreHireIter(body: QueryCorehrV2PreHireRequest, query?: QueryCorehrV2PreHireQuery): AsyncIterator /** * 查询单个待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/get */ - getCorehrPreHire(pre_hire_id: string): Promise + getCorehrV1PreHire(pre_hire_id: string): Promise /** * 批量查询待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/list */ - listCorehrPreHire(query?: ListCorehrPreHireQuery & Pagination): Promise> + listCorehrV1PreHire(query?: ListCorehrV1PreHireQuery & Pagination): Promise> /** * 批量查询待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/list */ - listCorehrPreHireIter(query?: ListCorehrPreHireQuery): AsyncIterator + listCorehrV1PreHireIter(query?: ListCorehrV1PreHireQuery): AsyncIterator /** * 搜索待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/search */ - searchCorehrPreHire(body: SearchCorehrPreHireRequest, query?: SearchCorehrPreHireQuery & Pagination): Promise> + searchCorehrV2PreHire(body: SearchCorehrV2PreHireRequest, query?: SearchCorehrV2PreHireQuery & Pagination): Promise> /** * 搜索待入职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/search */ - searchCorehrPreHireIter(body: SearchCorehrPreHireRequest, query?: SearchCorehrPreHireQuery): AsyncIterator + searchCorehrV2PreHireIter(body: SearchCorehrV2PreHireRequest, query?: SearchCorehrV2PreHireQuery): AsyncIterator /** * 流转入职任务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/transit_task */ - transitTaskCorehrPreHire(pre_hire_id: string, body: TransitTaskCorehrPreHireRequest): Promise + transitTaskCorehrV2PreHire(pre_hire_id: string, body: TransitTaskCorehrV2PreHireRequest): Promise /** * 操作员工完成入职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/pre_hire/complete */ - completeCorehrPreHire(pre_hire_id: string): Promise + completeCorehrV2PreHire(pre_hire_id: string): Promise /** * 删除待入职(不推荐) * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/delete */ - deleteCorehrPreHire(pre_hire_id: string): Promise + deleteCorehrV1PreHire(pre_hire_id: string): Promise /** * 更新待入职信息(不推荐) * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/pre_hire/patch */ - patchCorehrPreHire(pre_hire_id: string, body: PatchCorehrPreHireRequest, query?: PatchCorehrPreHireQuery): Promise + patchCorehrV1PreHire(pre_hire_id: string, body: PatchCorehrV1PreHireRequest, query?: PatchCorehrV1PreHireQuery): Promise /** * 新增试用期考核信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/create */ - createCorehrProbationAssessment(body: CreateCorehrProbationAssessmentRequest, query?: CreateCorehrProbationAssessmentQuery): Promise + createCorehrV2ProbationAssessment(body: CreateCorehrV2ProbationAssessmentRequest, query?: CreateCorehrV2ProbationAssessmentQuery): Promise /** * 启用/停用试用期考核功能 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/enable_disable_assessment */ - enableDisableAssessmentCorehrProbation(body: EnableDisableAssessmentCorehrProbationRequest): Promise + enableDisableAssessmentCorehrV2Probation(body: EnableDisableAssessmentCorehrV2ProbationRequest): Promise /** * 更新试用期考核信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/patch */ - patchCorehrProbationAssessment(assessment_id: string, body: PatchCorehrProbationAssessmentRequest, query?: PatchCorehrProbationAssessmentQuery): Promise + patchCorehrV2ProbationAssessment(assessment_id: string, body: PatchCorehrV2ProbationAssessmentRequest, query?: PatchCorehrV2ProbationAssessmentQuery): Promise /** * 搜索试用期信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/search */ - searchCorehrProbation(body: SearchCorehrProbationRequest, query?: SearchCorehrProbationQuery & Pagination): Promise> + searchCorehrV2Probation(body: SearchCorehrV2ProbationRequest, query?: SearchCorehrV2ProbationQuery & Pagination): Promise> /** * 搜索试用期信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/search */ - searchCorehrProbationIter(body: SearchCorehrProbationRequest, query?: SearchCorehrProbationQuery): AsyncIterator + searchCorehrV2ProbationIter(body: SearchCorehrV2ProbationRequest, query?: SearchCorehrV2ProbationQuery): AsyncIterator /** * 删除试用期考核信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation-assessment/delete */ - deleteCorehrProbationAssessment(assessment_id: string): Promise + deleteCorehrV2ProbationAssessment(assessment_id: string): Promise /** * 发起转正 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/submit */ - submitCorehrProbation(body: SubmitCorehrProbationRequest, query?: SubmitCorehrProbationQuery): Promise + submitCorehrV2Probation(body: SubmitCorehrV2ProbationRequest, query?: SubmitCorehrV2ProbationQuery): Promise /** * 撤销转正 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/withdraw */ - withdrawCorehrProbation(body: WithdrawCorehrProbationRequest, query?: WithdrawCorehrProbationQuery): Promise + withdrawCorehrV2Probation(body: WithdrawCorehrV2ProbationRequest, query?: WithdrawCorehrV2ProbationQuery): Promise /** * 发起员工异动 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/create */ - createCorehrJobChange(body: CreateCorehrJobChangeRequest, query?: CreateCorehrJobChangeQuery): Promise + createCorehrV2JobChange(body: CreateCorehrV2JobChangeRequest, query?: CreateCorehrV2JobChangeQuery): Promise /** * 获取异动类型列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_type/query */ - queryCorehrTransferType(query?: QueryCorehrTransferTypeQuery): Promise + queryCorehrV1TransferType(query?: QueryCorehrV1TransferTypeQuery): Promise /** * 获取异动原因列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/transfer_reason/query */ - queryCorehrTransferReason(query?: QueryCorehrTransferReasonQuery): Promise + queryCorehrV1TransferReason(query?: QueryCorehrV1TransferReasonQuery): Promise /** * 搜索员工异动信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/search */ - searchCorehrJobChange(body: SearchCorehrJobChangeRequest, query?: SearchCorehrJobChangeQuery & Pagination): Promise> + searchCorehrV2JobChange(body: SearchCorehrV2JobChangeRequest, query?: SearchCorehrV2JobChangeQuery & Pagination): Promise> /** * 搜索员工异动信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/search */ - searchCorehrJobChangeIter(body: SearchCorehrJobChangeRequest, query?: SearchCorehrJobChangeQuery): AsyncIterator + searchCorehrV2JobChangeIter(body: SearchCorehrV2JobChangeRequest, query?: SearchCorehrV2JobChangeQuery): AsyncIterator /** * 撤销异动 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/job_change/revoke */ - revokeCorehrJobChange(job_change_id: string, body: RevokeCorehrJobChangeRequest, query?: RevokeCorehrJobChangeQuery): Promise + revokeCorehrV2JobChange(job_change_id: string, body: RevokeCorehrV2JobChangeRequest, query?: RevokeCorehrV2JobChangeQuery): Promise /** * 发起员工异动(不推荐) * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job_change/create */ - createCorehrJobChange(body: CreateCorehrJobChangeRequest, query?: CreateCorehrJobChangeQuery): Promise + createCorehrV1JobChange(body: CreateCorehrV1JobChangeRequest, query?: CreateCorehrV1JobChangeQuery): Promise /** * 查询员工离职原因列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/query */ - queryCorehrOffboarding(body: QueryCorehrOffboardingRequest): Promise + queryCorehrV1Offboarding(body: QueryCorehrV1OffboardingRequest): Promise /** * 操作员工离职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/submit_v2 */ - submitV2CorehrOffboarding(body: SubmitV2CorehrOffboardingRequest, query?: SubmitV2CorehrOffboardingQuery): Promise + submitV2CorehrV2Offboarding(body: SubmitV2CorehrV2OffboardingRequest, query?: SubmitV2CorehrV2OffboardingQuery): Promise /** * 编辑离职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/edit */ - editCorehrOffboarding(body: EditCorehrOffboardingRequest, query?: EditCorehrOffboardingQuery): Promise + editCorehrV2Offboarding(body: EditCorehrV2OffboardingRequest, query?: EditCorehrV2OffboardingQuery): Promise /** * 撤销离职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/offboarding/revoke */ - revokeCorehrOffboarding(body: RevokeCorehrOffboardingRequest, query?: RevokeCorehrOffboardingQuery): Promise + revokeCorehrV2Offboarding(body: RevokeCorehrV2OffboardingRequest, query?: RevokeCorehrV2OffboardingQuery): Promise /** * 搜索离职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/search */ - searchCorehrOffboarding(body: SearchCorehrOffboardingRequest, query?: SearchCorehrOffboardingQuery & Pagination): Promise> + searchCorehrV1Offboarding(body: SearchCorehrV1OffboardingRequest, query?: SearchCorehrV1OffboardingQuery & Pagination): Promise> /** * 搜索离职信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/search */ - searchCorehrOffboardingIter(body: SearchCorehrOffboardingRequest, query?: SearchCorehrOffboardingQuery): AsyncIterator + searchCorehrV1OffboardingIter(body: SearchCorehrV1OffboardingRequest, query?: SearchCorehrV1OffboardingQuery): AsyncIterator /** * 新建合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/create */ - createCorehrContract(body: CreateCorehrContractRequest, query?: CreateCorehrContractQuery): Promise + createCorehrV1Contract(body: CreateCorehrV1ContractRequest, query?: CreateCorehrV1ContractQuery): Promise /** * 更新合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/patch */ - patchCorehrContract(contract_id: string, body: PatchCorehrContractRequest, query?: PatchCorehrContractQuery): Promise + patchCorehrV1Contract(contract_id: string, body: PatchCorehrV1ContractRequest, query?: PatchCorehrV1ContractQuery): Promise /** * 删除合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/delete */ - deleteCorehrContract(contract_id: string): Promise + deleteCorehrV1Contract(contract_id: string): Promise /** * 查询单个合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/get */ - getCorehrContract(contract_id: string): Promise + getCorehrV1Contract(contract_id: string): Promise /** * 批量查询合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list */ - listCorehrContract(query?: Pagination): Promise> + listCorehrV1Contract(query?: Pagination): Promise> /** * 批量查询合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list */ - listCorehrContractIter(): AsyncIterator + listCorehrV1ContractIter(): AsyncIterator /** * 搜索合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/contract/search */ - searchCorehrContract(body: SearchCorehrContractRequest, query?: SearchCorehrContractQuery & Pagination): Promise> + searchCorehrV2Contract(body: SearchCorehrV2ContractRequest, query?: SearchCorehrV2ContractQuery & Pagination): Promise> /** * 搜索合同 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/contract/search */ - searchCorehrContractIter(body: SearchCorehrContractRequest, query?: SearchCorehrContractQuery): AsyncIterator + searchCorehrV2ContractIter(body: SearchCorehrV2ContractRequest, query?: SearchCorehrV2ContractQuery): AsyncIterator /** * 批量创建/更新明细行 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail_row/batchSave */ - batchSaveCorehrWorkforcePlanDetailRow(body: BatchSaveCorehrWorkforcePlanDetailRowRequest): Promise + batchSaveCorehrV2WorkforcePlanDetailRow(body: BatchSaveCorehrV2WorkforcePlanDetailRowRequest): Promise /** * 批量删除明细行 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail_row/batchDelete */ - batchDeleteCorehrWorkforcePlanDetailRow(body: BatchDeleteCorehrWorkforcePlanDetailRowRequest): Promise + batchDeleteCorehrV2WorkforcePlanDetailRow(body: BatchDeleteCorehrV2WorkforcePlanDetailRowRequest): Promise /** * 批量创建/更新填报行 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/report_detail_row/batchSave */ - batchSaveCorehrReportDetailRow(body: BatchSaveCorehrReportDetailRowRequest): Promise + batchSaveCorehrV2ReportDetailRow(body: BatchSaveCorehrV2ReportDetailRowRequest): Promise /** * 批量删除填报行 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/report_detail_row/batchDelete */ - batchDeleteCorehrReportDetailRow(body: BatchDeleteCorehrReportDetailRowRequest): Promise + batchDeleteCorehrV2ReportDetailRow(body: BatchDeleteCorehrV2ReportDetailRowRequest): Promise /** * 查询编制规划方案 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan/list */ - listCorehrWorkforcePlan(query?: ListCorehrWorkforcePlanQuery): Promise + listCorehrV2WorkforcePlan(query?: ListCorehrV2WorkforcePlanQuery): Promise /** * 查询编制规划明细信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/workforce_plan_detail/batch */ - batchCorehrWorkforcePlanDetail(body: BatchCorehrWorkforcePlanDetailRequest, query?: Pagination): Promise + batchCorehrV2WorkforcePlanDetail(body: BatchCorehrV2WorkforcePlanDetailRequest, query?: Pagination): Promise /** * 创建假期发放记录 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/create */ - createCorehrLeaveGrantingRecord(body: CreateCorehrLeaveGrantingRecordRequest, query?: CreateCorehrLeaveGrantingRecordQuery): Promise + createCorehrV1LeaveGrantingRecord(body: CreateCorehrV1LeaveGrantingRecordRequest, query?: CreateCorehrV1LeaveGrantingRecordQuery): Promise /** * 删除假期发放记录 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave_granting_record/delete */ - deleteCorehrLeaveGrantingRecord(leave_granting_record_id: string): Promise + deleteCorehrV1LeaveGrantingRecord(leave_granting_record_id: string): Promise /** * 获取假期类型列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_types */ - leaveTypesCorehrLeave(query?: LeaveTypesCorehrLeaveQuery & Pagination): Promise> + leaveTypesCorehrV1Leave(query?: LeaveTypesCorehrV1LeaveQuery & Pagination): Promise> /** * 获取假期类型列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_types */ - leaveTypesCorehrLeaveIter(query?: LeaveTypesCorehrLeaveQuery): AsyncIterator + leaveTypesCorehrV1LeaveIter(query?: LeaveTypesCorehrV1LeaveQuery): AsyncIterator /** * 批量查询员工假期余额 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_balances */ - leaveBalancesCorehrLeave(query?: LeaveBalancesCorehrLeaveQuery & Pagination): Promise> + leaveBalancesCorehrV1Leave(query?: LeaveBalancesCorehrV1LeaveQuery & Pagination): Promise> /** * 批量查询员工假期余额 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_balances */ - leaveBalancesCorehrLeaveIter(query?: LeaveBalancesCorehrLeaveQuery): AsyncIterator + leaveBalancesCorehrV1LeaveIter(query?: LeaveBalancesCorehrV1LeaveQuery): AsyncIterator /** * 批量查询员工请假记录 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history */ - leaveRequestHistoryCorehrLeave(query?: LeaveRequestHistoryCorehrLeaveQuery & Pagination): Promise> + leaveRequestHistoryCorehrV1Leave(query?: LeaveRequestHistoryCorehrV1LeaveQuery & Pagination): Promise> /** * 批量查询员工请假记录 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/leave_request_history */ - leaveRequestHistoryCorehrLeaveIter(query?: LeaveRequestHistoryCorehrLeaveQuery): AsyncIterator + leaveRequestHistoryCorehrV1LeaveIter(query?: LeaveRequestHistoryCorehrV1LeaveQuery): AsyncIterator /** * 获取工作日历 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar */ - workCalendarCorehrLeave(body: WorkCalendarCorehrLeaveRequest): Promise + workCalendarCorehrV1Leave(body: WorkCalendarCorehrV1LeaveRequest): Promise /** * 根据适用条件获取工作日历 ID * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/calendar_by_scope */ - calendarByScopeCorehrLeave(query?: CalendarByScopeCorehrLeaveQuery): Promise + calendarByScopeCorehrV1Leave(query?: CalendarByScopeCorehrV1LeaveQuery): Promise /** * 获取工作日历日期详情 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/leave/work_calendar_date */ - workCalendarDateCorehrLeave(body: WorkCalendarDateCorehrLeaveRequest): Promise + workCalendarDateCorehrV1Leave(body: WorkCalendarDateCorehrV1LeaveRequest): Promise /** * 批量查询用户授权 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/query */ - queryCorehrAuthorization(query?: QueryCorehrAuthorizationQuery & Pagination): Promise> + queryCorehrV1Authorization(query?: QueryCorehrV1AuthorizationQuery & Pagination): Promise> /** * 批量查询用户授权 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/query */ - queryCorehrAuthorizationIter(query?: QueryCorehrAuthorizationQuery): AsyncIterator + queryCorehrV1AuthorizationIter(query?: QueryCorehrV1AuthorizationQuery): AsyncIterator /** * 查询单个用户授权 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/get_by_param */ - getByParamCorehrAuthorization(query?: GetByParamCorehrAuthorizationQuery): Promise + getByParamCorehrV1Authorization(query?: GetByParamCorehrV1AuthorizationQuery): Promise /** * 批量获取角色列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/list */ - listCorehrSecurityGroup(query?: Pagination): Promise> + listCorehrV1SecurityGroup(query?: Pagination): Promise> /** * 批量获取角色列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/list */ - listCorehrSecurityGroupIter(): AsyncIterator + listCorehrV1SecurityGroupIter(): AsyncIterator /** * 为用户授权角色 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/add_role_assign */ - addRoleAssignCorehrAuthorization(body: AddRoleAssignCorehrAuthorizationRequest, query?: AddRoleAssignCorehrAuthorizationQuery): Promise + addRoleAssignCorehrV1Authorization(body: AddRoleAssignCorehrV1AuthorizationRequest, query?: AddRoleAssignCorehrV1AuthorizationQuery): Promise /** * 更新用户被授权的数据范围 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/update_role_assign */ - updateRoleAssignCorehrAuthorization(body: UpdateRoleAssignCorehrAuthorizationRequest, query?: UpdateRoleAssignCorehrAuthorizationQuery): Promise + updateRoleAssignCorehrV1Authorization(body: UpdateRoleAssignCorehrV1AuthorizationRequest, query?: UpdateRoleAssignCorehrV1AuthorizationQuery): Promise /** * 移除用户被授权的角色 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/authorization/remove_role_assign */ - removeRoleAssignCorehrAuthorization(query?: RemoveRoleAssignCorehrAuthorizationQuery): Promise + removeRoleAssignCorehrV1Authorization(query?: RemoveRoleAssignCorehrV1AuthorizationQuery): Promise /** * 查询员工 HRBP / 属地 BP * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/employees-bp/batch_get */ - batchGetCorehrEmployeesBp(body: BatchGetCorehrEmployeesBpRequest, query?: BatchGetCorehrEmployeesBpQuery): Promise + batchGetCorehrV2EmployeesBp(body: BatchGetCorehrV2EmployeesBpRequest, query?: BatchGetCorehrV2EmployeesBpQuery): Promise /** * 查询部门 HRBP * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/bp/get_by_department */ - getByDepartmentCorehrBp(body: GetByDepartmentCorehrBpRequest, query?: GetByDepartmentCorehrBpQuery): Promise + getByDepartmentCorehrV2Bp(body: GetByDepartmentCorehrV2BpRequest, query?: GetByDepartmentCorehrV2BpQuery): Promise /** * 查询部门 / 地点的 HRBP / 属地 BP * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/security_group/query */ - queryCorehrSecurityGroup(body: QueryCorehrSecurityGroupRequest, query?: QueryCorehrSecurityGroupQuery): Promise + queryCorehrV1SecurityGroup(body: QueryCorehrV1SecurityGroupRequest, query?: QueryCorehrV1SecurityGroupQuery): Promise /** * 获取 HRBP 列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/bp/list */ - listCorehrBp(query?: ListCorehrBpQuery & Pagination): Promise> + listCorehrV2Bp(query?: ListCorehrV2BpQuery & Pagination): Promise> /** * 获取 HRBP 列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/bp/list */ - listCorehrBpIter(query?: ListCorehrBpQuery): AsyncIterator + listCorehrV2BpIter(query?: ListCorehrV2BpQuery): AsyncIterator /** * 获取组织类角色授权列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/assigned_user/search */ - searchCorehrAssignedUser(body: SearchCorehrAssignedUserRequest, query?: SearchCorehrAssignedUserQuery): Promise> + searchCorehrV1AssignedUser(body: SearchCorehrV1AssignedUserRequest, query?: SearchCorehrV1AssignedUserQuery): Promise> /** * 查询流程实例列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/list */ - listCorehrProcess(query?: ListCorehrProcessQuery & Pagination): Promise> + listCorehrV2Process(query?: ListCorehrV2ProcessQuery & Pagination): Promise> /** * 查询流程实例列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/list */ - listCorehrProcessIter(query?: ListCorehrProcessQuery): AsyncIterator + listCorehrV2ProcessIter(query?: ListCorehrV2ProcessQuery): AsyncIterator /** * 获取单个流程详情 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process/get */ - getCorehrProcess(process_id: string, query?: GetCorehrProcessQuery): Promise + getCorehrV2Process(process_id: string, query?: GetCorehrV2ProcessQuery): Promise /** * 获取流程表单数据 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-form_variable_data/get */ - getCorehrProcessFormVariableData(process_id: string, query?: GetCorehrProcessFormVariableDataQuery): Promise + getCorehrV2ProcessFormVariableData(process_id: string, query?: GetCorehrV2ProcessFormVariableDataQuery): Promise /** * 撤销流程 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process_revoke/update */ - updateCorehrProcessRevoke(process_id: string, body: UpdateCorehrProcessRevokeRequest, query?: UpdateCorehrProcessRevokeQuery): Promise + updateCorehrV2ProcessRevoke(process_id: string, body: UpdateCorehrV2ProcessRevokeRequest, query?: UpdateCorehrV2ProcessRevokeQuery): Promise /** * 撤回流程 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process_withdraw/update */ - updateCorehrProcessWithdraw(process_id: string, body: UpdateCorehrProcessWithdrawRequest, query?: UpdateCorehrProcessWithdrawQuery): Promise + updateCorehrV2ProcessWithdraw(process_id: string, body: UpdateCorehrV2ProcessWithdrawRequest, query?: UpdateCorehrV2ProcessWithdrawQuery): Promise /** * 获取指定人员审批任务列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approver/list */ - listCorehrApprover(query?: ListCorehrApproverQuery & Pagination): Promise> + listCorehrV2Approver(query?: ListCorehrV2ApproverQuery & Pagination): Promise> /** * 获取指定人员审批任务列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/approver/list */ - listCorehrApproverIter(query?: ListCorehrApproverQuery): AsyncIterator + listCorehrV2ApproverIter(query?: ListCorehrV2ApproverQuery): AsyncIterator /** * 通过/拒绝审批任务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-approver/update */ - updateCorehrProcessApprover(process_id: string, approver_id: string, body: UpdateCorehrProcessApproverRequest, query?: UpdateCorehrProcessApproverQuery): Promise + updateCorehrV2ProcessApprover(process_id: string, approver_id: string, body: UpdateCorehrV2ProcessApproverRequest, query?: UpdateCorehrV2ProcessApproverQuery): Promise /** * 加签审批任务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-extra/update */ - updateCorehrProcessExtra(process_id: string, body: UpdateCorehrProcessExtraRequest, query?: UpdateCorehrProcessExtraQuery): Promise + updateCorehrV2ProcessExtra(process_id: string, body: UpdateCorehrV2ProcessExtraRequest, query?: UpdateCorehrV2ProcessExtraQuery): Promise /** * 转交审批任务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/process-transfer/update */ - updateCorehrProcessTransfer(process_id: string, body: UpdateCorehrProcessTransferRequest, query?: UpdateCorehrProcessTransferQuery): Promise + updateCorehrV2ProcessTransfer(process_id: string, body: UpdateCorehrV2ProcessTransferRequest, query?: UpdateCorehrV2ProcessTransferQuery): Promise /** * 获取员工薪资标准 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/compensation_standard/match */ - matchCorehrCompensationStandard(query?: MatchCorehrCompensationStandardQuery): Promise + matchCorehrV1CompensationStandard(query?: MatchCorehrV1CompensationStandardQuery): Promise /** * 获取流程表单数据 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/process-form_variable_data/get */ - getCorehrProcessFormVariableData(process_id: string): Promise + getCorehrV1ProcessFormVariableData(process_id: string): Promise /** * 批量查询城市/区域信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/list */ - listCorehrSubregion(query?: ListCorehrSubregionQuery & Pagination): Promise> + listCorehrV1Subregion(query?: ListCorehrV1SubregionQuery & Pagination): Promise> /** * 批量查询城市/区域信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/list */ - listCorehrSubregionIter(query?: ListCorehrSubregionQuery): AsyncIterator + listCorehrV1SubregionIter(query?: ListCorehrV1SubregionQuery): AsyncIterator /** * 查询单条城市/区域信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subregion/get */ - getCorehrSubregion(subregion_id: string): Promise + getCorehrV1Subregion(subregion_id: string): Promise /** * 批量查询省份/行政区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/list */ - listCorehrSubdivision(query?: ListCorehrSubdivisionQuery & Pagination): Promise> + listCorehrV1Subdivision(query?: ListCorehrV1SubdivisionQuery & Pagination): Promise> /** * 批量查询省份/行政区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/list */ - listCorehrSubdivisionIter(query?: ListCorehrSubdivisionQuery): AsyncIterator + listCorehrV1SubdivisionIter(query?: ListCorehrV1SubdivisionQuery): AsyncIterator /** * 查询单条省份/行政区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/subdivision/get */ - getCorehrSubdivision(subdivision_id: string): Promise + getCorehrV1Subdivision(subdivision_id: string): Promise /** * 批量查询国家/地区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/list */ - listCorehrCountryRegion(query?: Pagination): Promise> + listCorehrV1CountryRegion(query?: Pagination): Promise> /** * 批量查询国家/地区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/list */ - listCorehrCountryRegionIter(): AsyncIterator + listCorehrV1CountryRegionIter(): AsyncIterator /** * 查询单条国家/地区信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/country_region/get */ - getCorehrCountryRegion(country_region_id: string): Promise + getCorehrV1CountryRegion(country_region_id: string): Promise /** * 批量查询货币信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/list */ - listCorehrCurrency(query?: Pagination): Promise> + listCorehrV1Currency(query?: Pagination): Promise> /** * 批量查询货币信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/list */ - listCorehrCurrencyIter(): AsyncIterator + listCorehrV1CurrencyIter(): AsyncIterator /** * 查询单个货币信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/currency/get */ - getCorehrCurrency(currency_id: string): Promise + getCorehrV1Currency(currency_id: string): Promise /** * 查询单个职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/get */ - getCorehrJob(job_id: string): Promise + getCorehrV1Job(job_id: string): Promise /** * 删除部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/delete */ - deleteCorehrDepartment(department_id: string): Promise + deleteCorehrV1Department(department_id: string): Promise /** * 更新部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/patch */ - patchCorehrDepartment(department_id: string, body: PatchCorehrDepartmentRequest, query?: PatchCorehrDepartmentQuery): Promise + patchCorehrV1Department(department_id: string, body: PatchCorehrV1DepartmentRequest, query?: PatchCorehrV1DepartmentQuery): Promise /** * 查询单个部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/get */ - getCorehrDepartment(department_id: string, query?: GetCorehrDepartmentQuery): Promise + getCorehrV1Department(department_id: string, query?: GetCorehrV1DepartmentQuery): Promise /** * 批量查询职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/list */ - listCorehrJob(query?: ListCorehrJobQuery & Pagination): Promise> + listCorehrV1Job(query?: ListCorehrV1JobQuery & Pagination): Promise> /** * 批量查询职务 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/job/list */ - listCorehrJobIter(query?: ListCorehrJobQuery): AsyncIterator + listCorehrV1JobIter(query?: ListCorehrV1JobQuery): AsyncIterator /** * 批量查询部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/list */ - listCorehrDepartment(query?: ListCorehrDepartmentQuery & Pagination): Promise> + listCorehrV1Department(query?: ListCorehrV1DepartmentQuery & Pagination): Promise> /** * 批量查询部门 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/department/list */ - listCorehrDepartmentIter(query?: ListCorehrDepartmentQuery): AsyncIterator + listCorehrV1DepartmentIter(query?: ListCorehrV1DepartmentQuery): AsyncIterator /** * 更新个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/patch */ - patchCorehrPerson(person_id: string, body: PatchCorehrPersonRequest, query?: PatchCorehrPersonQuery): Promise + patchCorehrV1Person(person_id: string, body: PatchCorehrV1PersonRequest, query?: PatchCorehrV1PersonQuery): Promise /** * 创建个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/create */ - createCorehrPerson(body: CreateCorehrPersonRequest, query?: CreateCorehrPersonQuery): Promise + createCorehrV1Person(body: CreateCorehrV1PersonRequest, query?: CreateCorehrV1PersonQuery): Promise /** * 查询单个个人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/person/get */ - getCorehrPerson(person_id: string, query?: GetCorehrPersonQuery): Promise + getCorehrV1Person(person_id: string, query?: GetCorehrV1PersonQuery): Promise /** * 操作员工离职 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/offboarding/submit */ - submitCorehrOffboarding(body: SubmitCorehrOffboardingRequest, query?: SubmitCorehrOffboardingQuery): Promise + submitCorehrV1Offboarding(body: SubmitCorehrV1OffboardingRequest, query?: SubmitCorehrV1OffboardingQuery): Promise } } -export interface QueryCorehrCustomFieldQuery { +export interface QueryCorehrV1CustomFieldQuery { /** 所属对象 apiname,支持一个或多个当前数量限制为 20 个 */ object_api_name_list: string[] } -export interface GetByParamCorehrCustomFieldQuery { +export interface GetByParamCorehrV1CustomFieldQuery { /** 所属对象 apiname */ object_api_name: string /** 自定义字段 apiname */ custom_api_name: string } -export interface AddEnumOptionCorehrCommonDataMetaDataRequest { +export interface AddEnumOptionCorehrV1CommonDataMetaDataRequest { /** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */ object_api_name: string /** 枚举字段 API name,可通过[获取自定义字段列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */ @@ -1327,12 +1327,12 @@ export interface AddEnumOptionCorehrCommonDataMetaDataRequest { enum_field_options: EnumFieldOption[] } -export interface AddEnumOptionCorehrCommonDataMetaDataQuery { +export interface AddEnumOptionCorehrV1CommonDataMetaDataQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface EditEnumOptionCorehrCommonDataMetaDataRequest { +export interface EditEnumOptionCorehrV1CommonDataMetaDataRequest { /** 所属对象 API name,可通过[获取飞书人事对象列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/list_object_api_name)接口中返回的 `object_api_name` 字段获取 */ object_api_name: string /** 枚举字段 API name,可通过[获取自定义字段列表](/ssl:ttdoc/server-docs/corehr-v1/basic-infomation/custom_field/query)接口中返回的 `custom_api_name` 字段获取 */ @@ -1341,55 +1341,55 @@ export interface EditEnumOptionCorehrCommonDataMetaDataRequest { enum_field_option: EnumFieldOption } -export interface EditEnumOptionCorehrCommonDataMetaDataQuery { +export interface EditEnumOptionCorehrV1CommonDataMetaDataQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface SearchCorehrBasicInfoCountryRegionRequest { +export interface SearchCorehrV2BasicInfoCountryRegionRequest { /** 国家/地区 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.country_region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.country_region_id` 等字段中获取 */ country_region_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoCountryRegionSubdivisionRequest { +export interface SearchCorehrV2BasicInfoCountryRegionSubdivisionRequest { /** 国家/地区 ID 列表,可通过【查询国家/地区信息】接口获取 */ country_region_id_list?: string[] /** 省份/行政区 ID 列表 */ country_region_subdivision_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoCityRequest { +export interface SearchCorehrV2BasicInfoCityRequest { /** 省份/主要行政区 ID 列表,可通过[查询省份/主要行政区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region_subdivision/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.region_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.region_id` 等字段中获取 */ country_region_subdivision_id_list?: string[] /** 城市 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_id_v2` 等字段中获取 */ city_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoDistrictRequest { +export interface SearchCorehrV2BasicInfoDistrictRequest { /** 所属城市 ID 列表,可通过[查询城市信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-city/search)接口列举,或从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.city_v2_id`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.city_v2_id` 等字段中获取 */ city_id_list?: string[] /** 区/县 ID 列表,可从[批量查询地点](/ssl:ttdoc/server-docs/corehr-v1/organization-management/location/list)接口返回的 `location.address.district_id_v2`、[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.address_list.district_id_v2` 等字段中获取 */ district_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoNationalityRequest { +export interface SearchCorehrV2BasicInfoNationalityRequest { /** 国籍 ID 列表,可从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)接口返回的 `person_info.nationality_id_v2` 等字段中获取 */ nationality_id_list?: string[] /** 国家/地区 ID 列表,可通过[查询国家/地区信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-country_region/search)接口列举 */ country_region_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface CreateCorehrNationalIdTypeRequest { +export interface CreateCorehrV1NationalIdTypeRequest { /** 国家 / 地区 */ country_region_id: string /** 名称 */ @@ -1408,12 +1408,12 @@ export interface CreateCorehrNationalIdTypeRequest { custom_fields?: ObjectFieldData[] } -export interface CreateCorehrNationalIdTypeQuery { +export interface CreateCorehrV1NationalIdTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrNationalIdTypeRequest { +export interface PatchCorehrV1NationalIdTypeRequest { /** 国家 / 地区 */ country_region_id?: string /** 名称 */ @@ -1432,12 +1432,12 @@ export interface PatchCorehrNationalIdTypeRequest { custom_fields?: ObjectFieldData[] } -export interface PatchCorehrNationalIdTypeQuery { +export interface PatchCorehrV1NationalIdTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface ListCorehrNationalIdTypeQuery { +export interface ListCorehrV1NationalIdTypeQuery { /** 证件类型 */ identification_type?: string /** 证件类型编码 */ @@ -1446,20 +1446,20 @@ export interface ListCorehrNationalIdTypeQuery { country_region_id?: string } -export interface SearchCorehrBasicInfoBankRequest { +export interface SearchCorehrV2BasicInfoBankRequest { /** 银行 ID 列表,可通过[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段获取 */ bank_id_list?: string[] /** 银行名称列表,支持对银行名称精确搜索 */ bank_name_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] /** 最早更新时间 */ update_start_time?: string /** 最晚更新时间 */ update_end_time?: string } -export interface SearchCorehrBasicInfoBankBranchRequest { +export interface SearchCorehrV2BasicInfoBankBranchRequest { /** 银行 ID 列表,可通过[查询银行信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/basic_info-bank/search)列举,或从[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_id_v2` 字段中获取 */ bank_id_list?: string[] /** 支行 ID 列表,可通过[搜索员工信息](/ssl:ttdoc/server-docs/corehr-v1/employee/search)、[批量查询员工信息](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/corehr-v2/employee/batch_get)等接口返回的 `person_info.bank_account_list.bank_branch_id_v2` 字段获取 */ @@ -1469,35 +1469,35 @@ export interface SearchCorehrBasicInfoBankBranchRequest { /** 金融分支机构编码(联行号)列表,支持对金融分支机构编码精确搜索 */ code_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] /** 最早更新时间 */ update_start_time?: string /** 最晚更新时间 */ update_end_time?: string } -export interface SearchCorehrBasicInfoCurrencyRequest { +export interface SearchCorehrV2BasicInfoCurrencyRequest { /** 货币 ID 列表,可通过[批量查询薪资方案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/plan/list)、[批量查询员工薪资档案](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/compensation-v1/archive/query)等接口返回的 `currency_id` 字段获取 */ currency_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoTimeZoneRequest { +export interface SearchCorehrV2BasicInfoTimeZoneRequest { /** 时区 ID 列表 */ time_zone_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface SearchCorehrBasicInfoLanguageRequest { +export interface SearchCorehrV2BasicInfoLanguageRequest { /** 语言 ID 列表 */ language_id_list?: string[] /** 状态列表 */ - status_list?: 1 | 0[] + status_list?: (1 | 0)[] } -export interface CreateCorehrEmployeeTypeRequest { +export interface CreateCorehrV1EmployeeTypeRequest { /** 名称 */ name: I18n[] /** 默认雇员类型 */ @@ -1510,12 +1510,12 @@ export interface CreateCorehrEmployeeTypeRequest { custom_fields?: ObjectFieldData[] } -export interface CreateCorehrEmployeeTypeQuery { +export interface CreateCorehrV1EmployeeTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrEmployeeTypeRequest { +export interface PatchCorehrV1EmployeeTypeRequest { /** 名称 */ name?: I18n[] /** 默认雇员类型 */ @@ -1528,12 +1528,12 @@ export interface PatchCorehrEmployeeTypeRequest { custom_fields?: ObjectFieldData[] } -export interface PatchCorehrEmployeeTypeQuery { +export interface PatchCorehrV1EmployeeTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface CreateCorehrWorkingHoursTypeRequest { +export interface CreateCorehrV1WorkingHoursTypeRequest { /** 编码 */ code?: string /** 名称 */ @@ -1548,12 +1548,12 @@ export interface CreateCorehrWorkingHoursTypeRequest { custom_fields?: ObjectFieldData[] } -export interface CreateCorehrWorkingHoursTypeQuery { +export interface CreateCorehrV1WorkingHoursTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrWorkingHoursTypeRequest { +export interface PatchCorehrV1WorkingHoursTypeRequest { /** 编码 */ code?: string /** 名称 */ @@ -1568,17 +1568,17 @@ export interface PatchCorehrWorkingHoursTypeRequest { custom_fields?: ObjectFieldData[] } -export interface PatchCorehrWorkingHoursTypeQuery { +export interface PatchCorehrV1WorkingHoursTypeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface ConvertCorehrCommonDataIdRequest { +export interface ConvertCorehrV1CommonDataIdRequest { /** ID 列表(最多传入 100 个 ID,ID 长度限制 50 个字符) */ ids: string[] } -export interface ConvertCorehrCommonDataIdQuery { +export interface ConvertCorehrV1CommonDataIdQuery { /** ID 转换类型 */ id_transform_type: 1 | 2 | 3 | 4 /** 要转换的ID类型 */ @@ -1589,7 +1589,7 @@ export interface ConvertCorehrCommonDataIdQuery { feishu_department_id_type?: 'open_department_id' | 'department_id' } -export interface BatchGetCorehrEmployeeRequest { +export interface BatchGetCorehrV2EmployeeRequest { /** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */ fields?: string[] /** 雇佣 ID 列表 */ @@ -1600,14 +1600,14 @@ export interface BatchGetCorehrEmployeeRequest { work_emails?: string[] } -export interface BatchGetCorehrEmployeeQuery { +export interface BatchGetCorehrV2EmployeeQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface SearchCorehrEmployeeRequest { +export interface SearchCorehrV2EmployeeRequest { /** 返回数据的字段列表,填写方式:为空时默认仅返回 ID */ fields?: string[] /** 雇佣 ID 列表 */ @@ -1690,14 +1690,14 @@ export interface SearchCorehrEmployeeRequest { archive_cpst_plan_id_list?: string[] } -export interface SearchCorehrEmployeeQuery { +export interface SearchCorehrV2EmployeeQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface CreateCorehrEmployeeRequest { +export interface CreateCorehrV2EmployeeRequest { /** 个人信息 */ personal_info?: ProfileSettingPersonalInfo /** 工作信息 */ @@ -1708,7 +1708,7 @@ export interface CreateCorehrEmployeeRequest { data_attachment?: ProfileSettingDataAttachment } -export interface CreateCorehrEmployeeQuery { +export interface CreateCorehrV2EmployeeQuery { /** 幂等标识,服务端会忽略client_token重复的请求 */ client_token?: string /** 是否为离职重聘:false: 否,系统直接标为非离职重聘人员,不再做重复判断"true: 是,要求rehire_employment_id */ @@ -1721,7 +1721,7 @@ export interface CreateCorehrEmployeeQuery { ignore_working_hours_type_rule?: boolean } -export interface CreateCorehrPersonRequest { +export interface CreateCorehrV2PersonRequest { /** 姓名列表 */ name_list: PersonName[] /** -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person */ @@ -1790,12 +1790,12 @@ export interface CreateCorehrPersonRequest { leave_time?: string } -export interface CreateCorehrPersonQuery { +export interface CreateCorehrV2PersonQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrPersonRequest { +export interface PatchCorehrV2PersonRequest { /** 姓名列表 */ name_list?: PersonName[] /** -| 性别,枚举值可查询【获取字段详情】接口获取,按如下参数查询即可: - custom_api_name:gender - object_api_name:person */ @@ -1864,21 +1864,21 @@ export interface PatchCorehrPersonRequest { leave_time?: string } -export interface PatchCorehrPersonQuery { +export interface PatchCorehrV2PersonQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 根据no_need_query判断更新后是否做查询请求并返回个人信息 */ no_need_query?: boolean } -export interface UploadCorehrPersonForm { +export interface UploadCorehrV1PersonForm { /** 文件二进制内容 */ file_content: Blob /** 文件名称 */ file_name: string } -export interface CreateCorehrEmploymentRequest { +export interface CreateCorehrV1EmploymentRequest { /** 资历起算日期 */ seniority_date?: string /** 员工编号 */ @@ -1909,12 +1909,12 @@ export interface CreateCorehrEmploymentRequest { rehire_employment_id?: string } -export interface CreateCorehrEmploymentQuery { +export interface CreateCorehrV1EmploymentQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrEmploymentRequest { +export interface PatchCorehrV1EmploymentRequest { /** 资历起算日期 */ seniority_date?: string /** 员工编号 */ @@ -1935,7 +1935,7 @@ export interface PatchCorehrEmploymentRequest { ats_application_id?: string } -export interface PatchCorehrEmploymentQuery { +export interface PatchCorehrV1EmploymentQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -1944,12 +1944,12 @@ export interface PatchCorehrEmploymentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface DeleteCorehrEmploymentQuery { +export interface DeleteCorehrV1EmploymentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface CreateCorehrJobDataRequest { +export interface CreateCorehrV1JobDataRequest { /** 级别 */ job_level_id?: string /** 职等ID */ @@ -1998,7 +1998,7 @@ export interface CreateCorehrJobDataRequest { service_company?: string } -export interface CreateCorehrJobDataQuery { +export interface CreateCorehrV1JobDataQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -2007,12 +2007,12 @@ export interface CreateCorehrJobDataQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface DeleteCorehrJobDataQuery { +export interface DeleteCorehrV1JobDataQuery { /** 需要删除的任职记录版本 ID */ version_id?: string } -export interface PatchCorehrJobDataRequest { +export interface PatchCorehrV1JobDataRequest { /** 任职记录版本 ID */ version_id?: string /** 级别 */ @@ -2061,7 +2061,7 @@ export interface PatchCorehrJobDataRequest { service_company?: string } -export interface PatchCorehrJobDataQuery { +export interface PatchCorehrV1JobDataQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -2072,7 +2072,7 @@ export interface PatchCorehrJobDataQuery { strict_verify?: string } -export interface QueryCorehrEmployeesJobDataRequest { +export interface QueryCorehrV2EmployeesJobDataRequest { /** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */ get_all_version?: boolean /** 查看数据日期 */ @@ -2091,14 +2091,14 @@ export interface QueryCorehrEmployeesJobDataRequest { assignment_start_reasons?: string[] } -export interface QueryCorehrEmployeesJobDataQuery { +export interface QueryCorehrV2EmployeesJobDataQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface BatchGetCorehrEmployeesJobDataRequest { +export interface BatchGetCorehrV2EmployeesJobDataRequest { /** 员工雇佣 ID 列表 */ employment_ids: string[] /** 是否获取所有任职记录,true 为获取员工所有版本的任职记录,false 为仅获取当前生效的任职记录,默认为 false */ @@ -2115,14 +2115,14 @@ export interface BatchGetCorehrEmployeesJobDataRequest { assignment_start_reasons?: string[] } -export interface BatchGetCorehrEmployeesJobDataQuery { +export interface BatchGetCorehrV2EmployeesJobDataQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface ListCorehrJobDataQuery { +export interface ListCorehrV1JobDataQuery { /** 雇佣 ID */ employment_id?: string /** 任职信息 ID 列表,最大 100 个(不传则默认查询全部任职信息) */ @@ -2139,14 +2139,14 @@ export interface ListCorehrJobDataQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface GetCorehrJobDataQuery { +export interface GetCorehrV1JobDataQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface CreateCorehrEmployeesAdditionalJobRequest { +export interface CreateCorehrV2EmployeesAdditionalJobRequest { /** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */ employee_type_id: string /** 工时制度 ID,可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */ @@ -2187,7 +2187,7 @@ export interface CreateCorehrEmployeesAdditionalJobRequest { employee_subtype_id?: string } -export interface CreateCorehrEmployeesAdditionalJobQuery { +export interface CreateCorehrV2EmployeesAdditionalJobQuery { /** 操作的唯一标识,用于幂等校验。请求成功时,重复的client_token不会再创建、变更数据。 */ client_token?: string /** 用户 ID 类型 */ @@ -2196,7 +2196,7 @@ export interface CreateCorehrEmployeesAdditionalJobQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface PatchCorehrEmployeesAdditionalJobRequest { +export interface PatchCorehrV2EmployeesAdditionalJobRequest { /** 人员类型 ID,可通过[【批量查询人员类型】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/employee_type/list)获取 */ employee_type_id?: string /** 工时制度 ID,可通过[【批量查询工时制度】](/ssl:ttdoc/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/working_hours_type/list)获取详细信息 */ @@ -2235,7 +2235,7 @@ export interface PatchCorehrEmployeesAdditionalJobRequest { employee_subtype_id?: string } -export interface PatchCorehrEmployeesAdditionalJobQuery { +export interface PatchCorehrV2EmployeesAdditionalJobQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -2244,7 +2244,7 @@ export interface PatchCorehrEmployeesAdditionalJobQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface BatchCorehrEmployeesAdditionalJobRequest { +export interface BatchCorehrV2EmployeesAdditionalJobRequest { /** 雇佣 ID */ employment_ids?: string[] /** 兼职 ID */ @@ -2259,14 +2259,14 @@ export interface BatchCorehrEmployeesAdditionalJobRequest { is_effective?: boolean } -export interface BatchCorehrEmployeesAdditionalJobQuery { +export interface BatchCorehrV2EmployeesAdditionalJobQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryOperationLogsCorehrDepartmentRequest { +export interface QueryOperationLogsCorehrV2DepartmentRequest { /** 部门ID列表 */ department_ids: string[] /** 查询的起始操作日期,格式 "YYYY-MM-DD",不带时分秒,包含start_date传入的时间,系统会以start_date的00:00:00为开始时间进行查询 */ @@ -2275,12 +2275,12 @@ export interface QueryOperationLogsCorehrDepartmentRequest { end_date: string } -export interface QueryOperationLogsCorehrDepartmentQuery { +export interface QueryOperationLogsCorehrV2DepartmentQuery { /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface CreateCorehrDepartmentRequest { +export interface CreateCorehrV1DepartmentRequest { /** 子类型 */ sub_type?: Enum /** 部门负责人 */ @@ -2299,7 +2299,7 @@ export interface CreateCorehrDepartmentRequest { staffing_model?: Enum } -export interface CreateCorehrDepartmentQuery { +export interface CreateCorehrV1DepartmentQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -2308,7 +2308,7 @@ export interface CreateCorehrDepartmentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface PatchCorehrDepartmentRequest { +export interface PatchCorehrV2DepartmentRequest { /** 实体在CoreHR内部的唯一键 */ id?: string /** 子类型 */ @@ -2329,7 +2329,7 @@ export interface PatchCorehrDepartmentRequest { staffing_model?: Enum } -export interface PatchCorehrDepartmentQuery { +export interface PatchCorehrV2DepartmentQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -2338,17 +2338,17 @@ export interface PatchCorehrDepartmentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface ParentsCorehrDepartmentRequest { +export interface ParentsCorehrV2DepartmentRequest { /** 部门 ID 列表,一次性最多传入 100 个部门 ID */ department_id_list: string[] } -export interface ParentsCorehrDepartmentQuery { +export interface ParentsCorehrV2DepartmentQuery { /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface BatchGetCorehrDepartmentRequest { +export interface BatchGetCorehrV2DepartmentRequest { /** 部门 ID 列表 */ department_id_list?: string[] /** 返回数据的字段列表 */ @@ -2357,14 +2357,14 @@ export interface BatchGetCorehrDepartmentRequest { department_name_list?: string[] } -export interface BatchGetCorehrDepartmentQuery { +export interface BatchGetCorehrV2DepartmentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryRecentChangeCorehrDepartmentQuery { +export interface QueryRecentChangeCorehrV2DepartmentQuery { /** 查询的开始时间,格式 "yyyy-MM-dd",不带时分秒,包含 start_date 传入的时间, 系统会以 start_date 的 00:00:00 查询。 */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd",不带时分秒, 查询日期小于 end_data + 1 天的 00:00:00。 */ @@ -2373,7 +2373,7 @@ export interface QueryRecentChangeCorehrDepartmentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryTimelineCorehrDepartmentRequest { +export interface QueryTimelineCorehrV2DepartmentRequest { /** 部门 ID 列表 */ department_ids: string[] /** 生效日期 */ @@ -2382,14 +2382,14 @@ export interface QueryTimelineCorehrDepartmentRequest { fields?: string[] } -export interface QueryTimelineCorehrDepartmentQuery { +export interface QueryTimelineCorehrV2DepartmentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface TreeCorehrDepartmentRequest { +export interface TreeCorehrV2DepartmentRequest { /** 部门 ID,默认根部门 */ department_id?: string /** 是否包含失效部门,默认false */ @@ -2398,12 +2398,12 @@ export interface TreeCorehrDepartmentRequest { effective_date?: string } -export interface TreeCorehrDepartmentQuery { +export interface TreeCorehrV2DepartmentQuery { /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryMultiTimelineCorehrDepartmentRequest { +export interface QueryMultiTimelineCorehrV2DepartmentRequest { /** 部门 ID 列表 */ department_ids: string[] /** 生效日期开始(包含) */ @@ -2414,14 +2414,14 @@ export interface QueryMultiTimelineCorehrDepartmentRequest { fields?: string[] } -export interface QueryMultiTimelineCorehrDepartmentQuery { +export interface QueryMultiTimelineCorehrV2DepartmentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface SearchCorehrDepartmentRequest { +export interface SearchCorehrV2DepartmentRequest { /** 是否启用 */ active?: boolean /** 当通过上级部门 ID 查询时,填写 true 返回所有子部门,填写 false 只返回直接下级部门 */ @@ -2440,19 +2440,19 @@ export interface SearchCorehrDepartmentRequest { fields?: string[] } -export interface SearchCorehrDepartmentQuery { +export interface SearchCorehrV2DepartmentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface DeleteCorehrDepartmentQuery { +export interface DeleteCorehrV2DepartmentQuery { /** 此次删除中所使用的部门ID类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface CreateCorehrLocationRequest { +export interface CreateCorehrV1LocationRequest { /** 层级关系,内层字段见实体 */ hiberarchy_common: HiberarchyCommon /** 地点用途 */ @@ -2471,12 +2471,12 @@ export interface CreateCorehrLocationRequest { display_language_id?: string } -export interface CreateCorehrLocationQuery { +export interface CreateCorehrV1LocationQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrLocationRequest { +export interface PatchCorehrV2LocationRequest { /** 上级地点 ID */ parent_id?: string /** 地点名称 */ @@ -2501,24 +2501,24 @@ export interface PatchCorehrLocationRequest { display_language_id?: string } -export interface PatchCorehrLocationQuery { +export interface PatchCorehrV2LocationQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface QueryRecentChangeCorehrLocationQuery { +export interface QueryRecentChangeCorehrV2LocationQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface BatchGetCorehrLocationRequest { +export interface BatchGetCorehrV2LocationRequest { /** 地点 ID 列表 */ location_ids: string[] } -export interface ActiveCorehrLocationRequest { +export interface ActiveCorehrV2LocationRequest { /** 地点 ID */ location_id: string /** 生效时间 */ @@ -2529,7 +2529,7 @@ export interface ActiveCorehrLocationRequest { operation_reason: string } -export interface PatchCorehrLocationAddressRequest { +export interface PatchCorehrV2LocationAddressRequest { /** 国家 / 地区 */ country_region_id?: string /** 主要行政区 */ @@ -2566,12 +2566,12 @@ export interface PatchCorehrLocationAddressRequest { is_public?: boolean } -export interface PatchCorehrLocationAddressQuery { +export interface PatchCorehrV2LocationAddressQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface CreateCorehrLocationAddressRequest { +export interface CreateCorehrV2LocationAddressRequest { /** 国家 / 地区 */ country_region_id: string /** 主要行政区 */ @@ -2608,12 +2608,12 @@ export interface CreateCorehrLocationAddressRequest { is_public?: boolean } -export interface CreateCorehrLocationAddressQuery { +export interface CreateCorehrV2LocationAddressQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface CreateCorehrCompanyRequest { +export interface CreateCorehrV1CompanyRequest { /** 层级关系,内层字段见实体 */ hiberarchy_common: HiberarchyCommon /** 性质 */ @@ -2648,12 +2648,12 @@ export interface CreateCorehrCompanyRequest { office_address_info?: Address } -export interface CreateCorehrCompanyQuery { +export interface CreateCorehrV1CompanyQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrCompanyRequest { +export interface PatchCorehrV1CompanyRequest { /** 层级关系,内层字段见实体 */ hiberarchy_common?: HiberarchyCommon /** 性质 */ @@ -2686,12 +2686,12 @@ export interface PatchCorehrCompanyRequest { office_address_info?: Address } -export interface PatchCorehrCompanyQuery { +export interface PatchCorehrV1CompanyQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface ActiveCorehrCompanyRequest { +export interface ActiveCorehrV2CompanyRequest { /** 公司ID */ company_id: string /** 生效时间 */ @@ -2702,19 +2702,19 @@ export interface ActiveCorehrCompanyRequest { operation_reason: string } -export interface QueryRecentChangeCorehrCompanyQuery { +export interface QueryRecentChangeCorehrV2CompanyQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface BatchGetCorehrCompanyRequest { +export interface BatchGetCorehrV2CompanyRequest { /** 公司 ID 列表 */ company_ids: string[] } -export interface CreateCorehrCostCenterRequest { +export interface CreateCorehrV2CostCenterRequest { /** 成本中心名称 */ name: I18n[] /** 编码 */ @@ -2729,12 +2729,12 @@ export interface CreateCorehrCostCenterRequest { effective_time: string } -export interface CreateCorehrCostCenterQuery { +export interface CreateCorehrV2CostCenterQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface PatchCorehrCostCenterRequest { +export interface PatchCorehrV2CostCenterRequest { /** 生效时间 */ effective_time: string /** 启用停用状态 */ @@ -2743,19 +2743,19 @@ export interface PatchCorehrCostCenterRequest { operation_reason: string } -export interface PatchCorehrCostCenterQuery { +export interface PatchCorehrV2CostCenterQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface QueryRecentChangeCorehrCostCenterQuery { +export interface QueryRecentChangeCorehrV2CostCenterQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface SearchCorehrCostCenterRequest { +export interface SearchCorehrV2CostCenterRequest { /** 成本中心ID 列表 */ cost_center_id_list?: string[] /** 成长中心名称列表,精确匹配 */ @@ -2768,17 +2768,17 @@ export interface SearchCorehrCostCenterRequest { get_all_version?: boolean } -export interface SearchCorehrCostCenterQuery { +export interface SearchCorehrV2CostCenterQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface DeleteCorehrCostCenterRequest { +export interface DeleteCorehrV2CostCenterRequest { /** 操作原因 */ operation_reason: string } -export interface CreateCorehrCostCenterVersionRequest { +export interface CreateCorehrV2CostCenterVersionRequest { /** 成本中心名称 */ name: I18n[] /** 上级成本中心ID */ @@ -2793,12 +2793,12 @@ export interface CreateCorehrCostCenterVersionRequest { operation_reason: string } -export interface CreateCorehrCostCenterVersionQuery { +export interface CreateCorehrV2CostCenterVersionQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface PatchCorehrCostCenterVersionRequest { +export interface PatchCorehrV2CostCenterVersionRequest { /** 成本中心名称 */ name?: I18n[] /** 上级成本中心ID */ @@ -2813,29 +2813,29 @@ export interface PatchCorehrCostCenterVersionRequest { operation_reason: string } -export interface PatchCorehrCostCenterVersionQuery { +export interface PatchCorehrV2CostCenterVersionQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface DeleteCorehrCostCenterVersionRequest { +export interface DeleteCorehrV2CostCenterVersionRequest { /** 操作原因 */ operation_reason: string } -export interface GetCorehrApprovalGroupsQuery { +export interface GetCorehrV2ApprovalGroupsQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsRequest { +export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsRequest { /** 部门调整记录 ID List */ department_change_ids?: string[] /** 是否返回部门全路径 */ need_department_path?: boolean } -export interface OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsQuery { +export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsQuery { /** 组织架构调整流程 ID */ process_id: string /** 用户 ID 类型 */ @@ -2844,14 +2844,14 @@ export interface OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface OpenQueryJobChangeListByIdsCorehrApprovalGroupsRequest { +export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsRequest { /** 人员异动记录 ID List */ job_change_ids?: string[] /** 是否返回部门全路径 */ need_department_path?: boolean } -export interface OpenQueryJobChangeListByIdsCorehrApprovalGroupsQuery { +export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsQuery { /** 组织架构调整流程 ID */ process_id: string /** 用户 ID 类型 */ @@ -2860,7 +2860,7 @@ export interface OpenQueryJobChangeListByIdsCorehrApprovalGroupsQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface CreateCorehrJobFamilyRequest { +export interface CreateCorehrV1JobFamilyRequest { /** 名称 */ name: I18n[] /** 启用 */ @@ -2875,12 +2875,12 @@ export interface CreateCorehrJobFamilyRequest { custom_fields?: ObjectFieldData[] } -export interface CreateCorehrJobFamilyQuery { +export interface CreateCorehrV1JobFamilyQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrJobFamilyRequest { +export interface PatchCorehrV1JobFamilyRequest { /** 名称 */ name?: I18n[] /** 启用 */ @@ -2895,24 +2895,24 @@ export interface PatchCorehrJobFamilyRequest { custom_fields?: ObjectFieldData[] } -export interface PatchCorehrJobFamilyQuery { +export interface PatchCorehrV1JobFamilyQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface QueryRecentChangeCorehrJobFamilyQuery { +export interface QueryRecentChangeCorehrV2JobFamilyQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface BatchGetCorehrJobFamilyRequest { +export interface BatchGetCorehrV2JobFamilyRequest { /** 序列 ID 列表 */ job_family_ids: string[] } -export interface CreateCorehrJobLevelRequest { +export interface CreateCorehrV1JobLevelRequest { /** 职级数值 */ level_order: number /** 编码 */ @@ -2929,12 +2929,12 @@ export interface CreateCorehrJobLevelRequest { job_grade?: string[] } -export interface CreateCorehrJobLevelQuery { +export interface CreateCorehrV1JobLevelQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrJobLevelRequest { +export interface PatchCorehrV1JobLevelRequest { /** 职级数值 */ level_order?: number /** 编码 */ @@ -2951,24 +2951,24 @@ export interface PatchCorehrJobLevelRequest { job_grade?: string[] } -export interface PatchCorehrJobLevelQuery { +export interface PatchCorehrV1JobLevelQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface QueryRecentChangeCorehrJobLevelQuery { +export interface QueryRecentChangeCorehrV2JobLevelQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface BatchGetCorehrJobLevelRequest { +export interface BatchGetCorehrV2JobLevelRequest { /** 职级 ID 列表 */ job_level_ids: string[] } -export interface CreateCorehrJobGradeRequest { +export interface CreateCorehrV2JobGradeRequest { /** 职等数值 */ grade_order: number /** 编码 */ @@ -2979,12 +2979,12 @@ export interface CreateCorehrJobGradeRequest { descriptions?: I18n[] } -export interface CreateCorehrJobGradeQuery { +export interface CreateCorehrV2JobGradeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrJobGradeRequest { +export interface PatchCorehrV2JobGradeRequest { /** 职等数值 */ grade_order?: number /** 编码 */ @@ -2997,12 +2997,12 @@ export interface PatchCorehrJobGradeRequest { active?: boolean } -export interface PatchCorehrJobGradeQuery { +export interface PatchCorehrV2JobGradeQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface QueryCorehrJobGradeRequest { +export interface QueryCorehrV2JobGradeRequest { /** 职等ID列表 */ ids?: string[] /** 职等code列表 */ @@ -3011,14 +3011,14 @@ export interface QueryCorehrJobGradeRequest { active?: boolean } -export interface QueryRecentChangeCorehrJobGradeQuery { +export interface QueryRecentChangeCorehrV2JobGradeQuery { /** 查询的开始时间,支持"yyyy-MM-dd HH:MM:SS" */ start_date: string /** 查询的结束时间,格式 "yyyy-MM-dd HH:MM:SS" */ end_date: string } -export interface CreateCorehrJobRequest { +export interface CreateCorehrV1JobRequest { /** 编码 */ code?: string /** 名称 */ @@ -3041,12 +3041,12 @@ export interface CreateCorehrJobRequest { custom_fields?: ObjectFieldData[] } -export interface CreateCorehrJobQuery { +export interface CreateCorehrV1JobQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrJobRequest { +export interface PatchCorehrV1JobRequest { /** 编码 */ code?: string /** 名称 */ @@ -3069,33 +3069,33 @@ export interface PatchCorehrJobRequest { custom_fields?: ObjectFieldData[] } -export interface PatchCorehrJobQuery { +export interface PatchCorehrV1JobQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface ListCorehrJobQuery { +export interface ListCorehrV2JobQuery { /** 名称 */ name?: string /** 语言 */ query_language?: string } -export interface WithdrawOnboardingCorehrPreHireRequest { +export interface WithdrawOnboardingCorehrV2PreHireRequest { /** 待入职ID,可从待入职列表接口获取 */ pre_hire_id: string /** 撤销原因 */ withdraw_reason: string } -export interface RestoreFlowInstanceCorehrPreHireRequest { +export interface RestoreFlowInstanceCorehrV2PreHireRequest { /** 待入职ID,可从待入职列表接口获取 */ pre_hire_id: string /** 是否强制占编;true为强制占编;false为非强制占编 */ confirm_workforce?: boolean } -export interface CreateCorehrPreHireRequest { +export interface CreateCorehrV2PreHireRequest { /** 个人信息 */ basic_info: BasicInfo /** 职位信息 */ @@ -3110,7 +3110,7 @@ export interface CreateCorehrPreHireRequest { out_biz_id?: string } -export interface PatchCorehrPreHireRequest { +export interface PatchCorehrV2PreHireRequest { /** 更新个人(person)信息 */ basic_info_update?: BasicInfoUpdate /** 更新待入职(prehire)信息 */ @@ -3123,26 +3123,26 @@ export interface PatchCorehrPreHireRequest { person_custom_update_fields?: string[] } -export interface QueryCorehrPreHireRequest { +export interface QueryCorehrV2PreHireRequest { /** 待入职人员 ID 列表;如果该字段非空,则不按照page_size、page_token分页方式查询 */ pre_hire_ids?: string[] /** 返回数据的字段列表,填写方式:- 为空时只返回 pre_hire_id- 不为空时按照传入的字段返回数据,格式如下: - person_info 字段:person_info.gender,person_info.age - employment_info 字段:employment_info.department - onboarding_info 字段:onboarding_info.onboarding_date - probation_info 字段:probation_info.probation_period - contract_info 字段:contract_info.contract_type- 如果要返回所有下级,只用传上级结构体名称,例如 person_info- 返回数据越多,查询接口性能越慢,请按需填写返回字段 */ fields?: string[] } -export interface QueryCorehrPreHireQuery { +export interface QueryCorehrV2PreHireQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface ListCorehrPreHireQuery { +export interface ListCorehrV1PreHireQuery { /** 待入职ID列表 */ pre_hire_ids?: string[] } -export interface SearchCorehrPreHireRequest { +export interface SearchCorehrV2PreHireRequest { /** 待入职人员工号列表 */ worker_ids?: string[] /** 待入职人员 ID 列表 */ @@ -3179,19 +3179,19 @@ export interface SearchCorehrPreHireRequest { fields?: string[] } -export interface SearchCorehrPreHireQuery { +export interface SearchCorehrV2PreHireQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface TransitTaskCorehrPreHireRequest { +export interface TransitTaskCorehrV2PreHireRequest { /** 系统预置的职位信息和个人信息任务的task_id分别为1和2,自定义任务的task_id是一串UUID */ task_id: string } -export interface PatchCorehrPreHireRequest { +export interface PatchCorehrV1PreHireRequest { /** 招聘系统的候选人 ID */ ats_application_id?: string /** 入职日期 */ @@ -3212,33 +3212,33 @@ export interface PatchCorehrPreHireRequest { onboarding_status: Enum } -export interface PatchCorehrPreHireQuery { +export interface PatchCorehrV1PreHireQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface CreateCorehrProbationAssessmentRequest { +export interface CreateCorehrV2ProbationAssessmentRequest { /** 试用期人员的雇佣 ID */ employment_id: string /** 试用期考核结果列表 */ assessments: AssessmentForCreate[] } -export interface CreateCorehrProbationAssessmentQuery { +export interface CreateCorehrV2ProbationAssessmentQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface EnableDisableAssessmentCorehrProbationRequest { +export interface EnableDisableAssessmentCorehrV2ProbationRequest { /** 启用 / 停用状态。启用后可在试用期管理页面中可见试用期考核相关的字段。 */ active: boolean /** 试用期考核系统入口链接,当启用功能时该字段必填。 */ app_url?: string } -export interface PatchCorehrProbationAssessmentRequest { +export interface PatchCorehrV2ProbationAssessmentRequest { /** 考核状态 */ assessment_status: 'not_started' | 'in_process' | 'completed' | 'no_need' /** 试用期考核结果 */ @@ -3255,12 +3255,12 @@ export interface PatchCorehrProbationAssessmentRequest { is_final_asssessment: boolean } -export interface PatchCorehrProbationAssessmentQuery { +export interface PatchCorehrV2ProbationAssessmentQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string } -export interface SearchCorehrProbationRequest { +export interface SearchCorehrV2ProbationRequest { /** 雇佣 ID 列表 */ employment_ids?: string[] /** 部门 ID 列表 */ @@ -3289,14 +3289,14 @@ export interface SearchCorehrProbationRequest { final_assessment_grade?: string } -export interface SearchCorehrProbationQuery { +export interface SearchCorehrV2ProbationQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface SubmitCorehrProbationRequest { +export interface SubmitCorehrV2ProbationRequest { /** 试用期人员的雇佣 ID */ employment_id: string /** 转正方式 */ @@ -3315,26 +3315,26 @@ export interface SubmitCorehrProbationRequest { custom_fields?: CustomFieldData[] } -export interface SubmitCorehrProbationQuery { +export interface SubmitCorehrV2ProbationQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface WithdrawCorehrProbationRequest { +export interface WithdrawCorehrV2ProbationRequest { /** 试用期人员的雇佣 ID */ employment_id: string } -export interface WithdrawCorehrProbationQuery { +export interface WithdrawCorehrV2ProbationQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface CreateCorehrJobChangeRequest { +export interface CreateCorehrV2JobChangeRequest { /** 异动方式 */ transfer_mode: 1 | 2 /** 雇员id */ @@ -3355,34 +3355,34 @@ export interface CreateCorehrJobChangeRequest { transfer_reason_unique_identifier?: string } -export interface CreateCorehrJobChangeQuery { +export interface CreateCorehrV2JobChangeQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryCorehrTransferTypeQuery { +export interface QueryCorehrV1TransferTypeQuery { /** 异动类型状态 */ active?: boolean /** 异动类型唯一标识,多条时最多数量为10 */ transfer_type_unique_identifier?: string[] } -export interface QueryCorehrTransferReasonQuery { +export interface QueryCorehrV1TransferReasonQuery { /** 异动原因状态 */ active?: boolean /** 异动原因唯一标识,多条时最多数量为10 */ transfer_reason_unique_identifier?: string[] } -export interface SearchCorehrJobChangeRequest { +export interface SearchCorehrV2JobChangeRequest { /** 雇员 ID 列表 */ employment_ids?: string[] /** 异动记录 ID 列表 */ job_change_ids?: string[] /** 异动状态,多个状态之间为「或」的关系 */ - statuses?: 'Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval'[] + statuses?: ('Approving' | 'Approved' | 'Transformed' | 'Rejected' | 'Cancelled' | 'NoNeedApproval')[] /** 异动生效日期 - 搜索范围开始,需要与搜索范围结束一同使用 */ effective_date_start?: string /** 异动生效日期 - 搜索范围结束 */ @@ -3395,24 +3395,24 @@ export interface SearchCorehrJobChangeRequest { target_department_ids?: string[] } -export interface SearchCorehrJobChangeQuery { +export interface SearchCorehrV2JobChangeQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface RevokeCorehrJobChangeRequest { +export interface RevokeCorehrV2JobChangeRequest { /** 操作人id */ operator_id: string } -export interface RevokeCorehrJobChangeQuery { +export interface RevokeCorehrV2JobChangeQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id' } -export interface CreateCorehrJobChangeRequest { +export interface CreateCorehrV1JobChangeRequest { /** 异动方式 */ transfer_mode: 1 | 2 /** 雇员id */ @@ -3431,21 +3431,21 @@ export interface CreateCorehrJobChangeRequest { initiator_id?: string } -export interface CreateCorehrJobChangeQuery { +export interface CreateCorehrV1JobChangeQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryCorehrOffboardingRequest { +export interface QueryCorehrV1OffboardingRequest { /** 是否启用 */ active?: boolean /** 离职原因唯一标识列表,用于过滤,最大20个 */ offboarding_reason_unique_identifier?: string[] } -export interface SubmitV2CorehrOffboardingRequest { +export interface SubmitV2CorehrV2OffboardingRequest { /** 离职方式 */ offboarding_mode: 1 | 2 /** 雇员 id */ @@ -3472,12 +3472,12 @@ export interface SubmitV2CorehrOffboardingRequest { is_transfer_with_workforce?: boolean } -export interface SubmitV2CorehrOffboardingQuery { +export interface SubmitV2CorehrV2OffboardingQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface EditCorehrOffboardingRequest { +export interface EditCorehrV2OffboardingRequest { /** 离职记录 ID */ offboarding_id: string /** 操作人雇佣 ID(employment_id),为空默认为系统操作。 */ @@ -3486,24 +3486,24 @@ export interface EditCorehrOffboardingRequest { update_data: ObjectFieldData[] } -export interface EditCorehrOffboardingQuery { +export interface EditCorehrV2OffboardingQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface RevokeCorehrOffboardingRequest { +export interface RevokeCorehrV2OffboardingRequest { /** 离职记录 ID */ offboarding_id: string /** 操作人雇佣 ID(employment_id),为空默认为系统操作。 */ operator_id?: string } -export interface RevokeCorehrOffboardingQuery { +export interface RevokeCorehrV2OffboardingQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface SearchCorehrOffboardingRequest { +export interface SearchCorehrV1OffboardingRequest { /** 雇佣 ID 列表,为空默认查询所有离职人员 */ employment_ids?: string[] /** 离职审批发起时间-搜索范围开始,需要与搜索范围结束一同使用 */ @@ -3523,19 +3523,19 @@ export interface SearchCorehrOffboardingRequest { /** 离职日期 - 搜索范围结束 */ offboarding_date_end?: string /** 离职状态,多个状态之间为「或」的关系 */ - statuses?: 'Approving' | 'Approved' | 'Offboarded' | 'Rejected' | 'Withdrawn' | 'NoNeedApproval'[] + statuses?: ('Approving' | 'Approved' | 'Offboarded' | 'Rejected' | 'Withdrawn' | 'NoNeedApproval')[] /** 离职原因列表 , 可以通过【查询员工离职原因列表】接口获取 ,查询时不返回下级原因相关的离职信息 */ reasons?: string[] /** 离职原因(员工)列表 , 可以通过【查询员工离职原因列表】接口获取,查询时不返回下级原因相关的离职信息 */ employee_reasons?: string[] } -export interface SearchCorehrOffboardingQuery { +export interface SearchCorehrV1OffboardingQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface CreateCorehrContractRequest { +export interface CreateCorehrV1ContractRequest { /** 合同开始日期 */ effective_time: string /** 实际结束日期 */ @@ -3560,12 +3560,12 @@ export interface CreateCorehrContractRequest { signing_type?: Enum } -export interface CreateCorehrContractQuery { +export interface CreateCorehrV1ContractQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface PatchCorehrContractRequest { +export interface PatchCorehrV1ContractRequest { /** 合同开始日期 */ effective_time?: string /** 实际结束日期 */ @@ -3590,38 +3590,38 @@ export interface PatchCorehrContractRequest { signing_type?: Enum } -export interface PatchCorehrContractQuery { +export interface PatchCorehrV1ContractQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface SearchCorehrContractRequest { +export interface SearchCorehrV2ContractRequest { /** 雇佣 ID 列表 */ employment_id_list?: string[] /** 合同ID列表 */ contract_id_list?: string[] } -export interface SearchCorehrContractQuery { +export interface SearchCorehrV2ContractQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface BatchSaveCorehrWorkforcePlanDetailRowRequest { +export interface BatchSaveCorehrV2WorkforcePlanDetailRowRequest { /** 编制规划id */ workforce_plan_id: string /** 编制规划的多个明细行 */ items: WorkforcePlanDetailRow[] } -export interface BatchDeleteCorehrWorkforcePlanDetailRowRequest { +export interface BatchDeleteCorehrV2WorkforcePlanDetailRowRequest { /** 编制规划id */ workforce_plan_id: string /** 编制规划的多个明细行 */ items: WorkforcePlanDetailRow[] } -export interface BatchSaveCorehrReportDetailRowRequest { +export interface BatchSaveCorehrV2ReportDetailRowRequest { /** 编制规划id */ workforce_plan_id: string /** 集中填报id */ @@ -3630,7 +3630,7 @@ export interface BatchSaveCorehrReportDetailRowRequest { items: WorkforcePlanDetailRow[] } -export interface BatchDeleteCorehrReportDetailRowRequest { +export interface BatchDeleteCorehrV2ReportDetailRowRequest { /** 编制规划id */ workforce_plan_id: string /** 集中填报id */ @@ -3639,14 +3639,14 @@ export interface BatchDeleteCorehrReportDetailRowRequest { items: WorkforcePlanDetailRow[] } -export interface ListCorehrWorkforcePlanQuery { +export interface ListCorehrV2WorkforcePlanQuery { /** 是否获取所有编制规划方案,true 所有编制规划方案列表,false 为仅获取当前生效的编制规划方案,默认为 false示例值:false */ get_all_plan?: boolean /** 是否只获取已启用的方案,true 获取已启用编制规划方案,false 获取所有编制规划方案,默认为 true示例值:true */ active?: boolean } -export interface BatchCorehrWorkforcePlanDetailRequest { +export interface BatchCorehrV2WorkforcePlanDetailRequest { /** 编制规划方案ID,ID及详细信息可通过获取编制规划方案列表接口查询获得。查询编制规划明细信息时,编制规划方案ID必填,是否为集中填报项目设置为false,不填写集中填报项目ID(是否填写不影响返回结果) */ workforce_plan_id?: string /** 是否为集中填报项目。如果租户未使用集中填报功能,将此参数置空即可。如果查询集中填报明细,将此参数设置为true。 */ @@ -3669,7 +3669,7 @@ export interface BatchCorehrWorkforcePlanDetailRequest { cost_center_ids?: string[] } -export interface CreateCorehrLeaveGrantingRecordRequest { +export interface CreateCorehrV1LeaveGrantingRecordRequest { /** 假期类型 ID,枚举值可通过【获取假期类型列表】接口获取(若假期类型下存在假期子类,此处仅支持传入假期子类的 ID) */ leave_type_id: string /** 员工 ID */ @@ -3690,19 +3690,19 @@ export interface CreateCorehrLeaveGrantingRecordRequest { external_id?: string } -export interface CreateCorehrLeaveGrantingRecordQuery { +export interface CreateCorehrV1LeaveGrantingRecordQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface LeaveTypesCorehrLeaveQuery { +export interface LeaveTypesCorehrV1LeaveQuery { /** 假期类型状态(不传则为全部)可选值有:- 1:已启用- 2:已停用 */ status?: string /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface LeaveBalancesCorehrLeaveQuery { +export interface LeaveBalancesCorehrV1LeaveQuery { /** 查询截止日期,即截止到某天余额数据的日期(不传则默认为当天) */ as_of_date?: string /** 员工 ID 列表,最大 100 个(不传则默认查询全部员工) */ @@ -3715,7 +3715,7 @@ export interface LeaveBalancesCorehrLeaveQuery { include_offboard?: boolean } -export interface LeaveRequestHistoryCorehrLeaveQuery { +export interface LeaveRequestHistoryCorehrV1LeaveQuery { /** 员工 ID 列表,最大 100 个(不传则默认查询全部员工) */ employment_id_list?: string[] /** 休假发起人 ID 列表,最大 100 个 */ @@ -3762,7 +3762,7 @@ export interface LeaveRequestHistoryCorehrLeaveQuery { wd_paid_type?: number } -export interface WorkCalendarCorehrLeaveRequest { +export interface WorkCalendarCorehrV1LeaveRequest { /** 工作日历ID列表 */ wk_calendar_ids: string[] /** 工作日历ID大于 */ @@ -3773,7 +3773,7 @@ export interface WorkCalendarCorehrLeaveRequest { only_enable?: boolean } -export interface CalendarByScopeCorehrLeaveQuery { +export interface CalendarByScopeCorehrV1LeaveQuery { /** 用户所属部门的ID列表 */ wk_department_id?: string /** 国家/地区 ID */ @@ -3790,7 +3790,7 @@ export interface CalendarByScopeCorehrLeaveQuery { wk_company_id?: string } -export interface WorkCalendarDateCorehrLeaveRequest { +export interface WorkCalendarDateCorehrV1LeaveRequest { /** 工作日历WKID列表,最多100 */ wk_calendar_ids: string[] /** 日期,格式:"2006-01-02",最多50个 */ @@ -3807,7 +3807,7 @@ export interface WorkCalendarDateCorehrLeaveRequest { ids?: string[] } -export interface QueryCorehrAuthorizationQuery { +export interface QueryCorehrV1AuthorizationQuery { /** 员工ID列表,最大100个(不传则默认查询全部员工) */ employment_id_list?: string[] /** 角色 ID 列表,最大 100 个 */ @@ -3820,19 +3820,19 @@ export interface QueryCorehrAuthorizationQuery { updated_at_lte?: string } -export interface GetByParamCorehrAuthorizationQuery { +export interface GetByParamCorehrV1AuthorizationQuery { /** 雇员 ID */ employment_id: string /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface AddRoleAssignCorehrAuthorizationRequest { +export interface AddRoleAssignCorehrV1AuthorizationRequest { /** 授权 */ assigned_organization_items: AssignedOrganizationWithCode[][] } -export interface AddRoleAssignCorehrAuthorizationQuery { +export interface AddRoleAssignCorehrV1AuthorizationQuery { /** 雇员 ID */ employment_id: string /** 用户 ID 类型 */ @@ -3841,12 +3841,12 @@ export interface AddRoleAssignCorehrAuthorizationQuery { role_id: string } -export interface UpdateRoleAssignCorehrAuthorizationRequest { +export interface UpdateRoleAssignCorehrV1AuthorizationRequest { /** 授权 */ assigned_organization_items: AssignedOrganizationWithCode[][] } -export interface UpdateRoleAssignCorehrAuthorizationQuery { +export interface UpdateRoleAssignCorehrV1AuthorizationQuery { /** 雇员 ID */ employment_id: string /** 用户 ID 类型 */ @@ -3855,7 +3855,7 @@ export interface UpdateRoleAssignCorehrAuthorizationQuery { role_id: string } -export interface RemoveRoleAssignCorehrAuthorizationQuery { +export interface RemoveRoleAssignCorehrV1AuthorizationQuery { /** 雇员 ID */ employment_id: string /** 用户 ID 类型 */ @@ -3864,31 +3864,31 @@ export interface RemoveRoleAssignCorehrAuthorizationQuery { role_id: string } -export interface BatchGetCorehrEmployeesBpRequest { +export interface BatchGetCorehrV2EmployeesBpRequest { /** 员工雇佣 ID */ employment_ids: string[] /** 是否获取全部 BP,true 为获取员工所在部门及来自上级部门的全部 HRBP 和属地 BP,false 为仅获取员工的直属 HRBP 和属地 BP(当员工所在部门、属地无 BP 时,会上钻找到最近的 BP),默认为 false */ get_all?: boolean } -export interface BatchGetCorehrEmployeesBpQuery { +export interface BatchGetCorehrV2EmployeesBpQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface GetByDepartmentCorehrBpRequest { +export interface GetByDepartmentCorehrV2BpRequest { /** 部门 ID */ department_id: string } -export interface GetByDepartmentCorehrBpQuery { +export interface GetByDepartmentCorehrV2BpQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface QueryCorehrSecurityGroupRequest { +export interface QueryCorehrV1SecurityGroupRequest { /** 角色列表,一次最多支持查询 50 个 */ item_list: BpRoleOrganization[] /** 授权时间大于 */ @@ -3897,19 +3897,19 @@ export interface QueryCorehrSecurityGroupRequest { updated_at_lte?: string } -export interface QueryCorehrSecurityGroupQuery { +export interface QueryCorehrV1SecurityGroupQuery { /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface ListCorehrBpQuery { +export interface ListCorehrV2BpQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface SearchCorehrAssignedUserRequest { +export interface SearchCorehrV1AssignedUserRequest { /** 角色 ID,仅支持组织类角色, 角色 ID 可通过【批量获取角色列表】接口获取 */ role_id: string /** 管理范围信息 */ @@ -3922,12 +3922,12 @@ export interface SearchCorehrAssignedUserRequest { page_size: string } -export interface SearchCorehrAssignedUserQuery { +export interface SearchCorehrV1AssignedUserQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface ListCorehrProcessQuery { +export interface ListCorehrV2ProcessQuery { /** 查询流程状态列表。 */ statuses?: number[] /** 查询开始时间(unix毫秒时间戳),闭区间,开始时间和结束时间跨度不能超过31天 */ @@ -3938,19 +3938,19 @@ export interface ListCorehrProcessQuery { flow_definition_id?: string } -export interface GetCorehrProcessQuery { +export interface GetCorehrV2ProcessQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface GetCorehrProcessFormVariableDataQuery { +export interface GetCorehrV2ProcessFormVariableDataQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface UpdateCorehrProcessRevokeRequest { +export interface UpdateCorehrV2ProcessRevokeRequest { /** 按照指定的用户ID类型传递对应的用户ID。 */ user_id?: string /** 原因 */ @@ -3959,12 +3959,12 @@ export interface UpdateCorehrProcessRevokeRequest { system_user?: boolean } -export interface UpdateCorehrProcessRevokeQuery { +export interface UpdateCorehrV2ProcessRevokeQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' } -export interface UpdateCorehrProcessWithdrawRequest { +export interface UpdateCorehrV2ProcessWithdrawRequest { /** 按照指定的用户ID类型传递对应的用户ID。 */ user_id?: string /** 原因 */ @@ -3973,12 +3973,12 @@ export interface UpdateCorehrProcessWithdrawRequest { system_user?: boolean } -export interface UpdateCorehrProcessWithdrawQuery { +export interface UpdateCorehrV2ProcessWithdrawQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' } -export interface ListCorehrApproverQuery { +export interface ListCorehrV2ApproverQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */ @@ -3987,7 +3987,7 @@ export interface ListCorehrApproverQuery { approver_status?: -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 12 | 14 | 16 } -export interface UpdateCorehrProcessApproverRequest { +export interface UpdateCorehrV2ProcessApproverRequest { /** 将审批任务修改为同意/拒绝 */ status: 2 | 3 /** 按user_id_type类型传递。如果system_approval为false,则必填。否则非必填。 */ @@ -4000,14 +4000,14 @@ export interface UpdateCorehrProcessApproverRequest { field_values_v2?: ProcessFormVariableV2[] } -export interface UpdateCorehrProcessApproverQuery { +export interface UpdateCorehrV2ProcessApproverQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface UpdateCorehrProcessExtraRequest { +export interface UpdateCorehrV2ProcessExtraRequest { /** 操作人,当system_user为true时,可以不传值 */ operator?: string /** 流程节点id,与approver_id二选一传入,都传以node_id为准 */ @@ -4026,12 +4026,12 @@ export interface UpdateCorehrProcessExtraRequest { system_user?: boolean } -export interface UpdateCorehrProcessExtraQuery { +export interface UpdateCorehrV2ProcessExtraQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' } -export interface UpdateCorehrProcessTransferRequest { +export interface UpdateCorehrV2ProcessTransferRequest { /** 操作人,当system_user为true,可不传值 */ operator?: string /** 被转交人id */ @@ -4044,12 +4044,12 @@ export interface UpdateCorehrProcessTransferRequest { system_user?: boolean } -export interface UpdateCorehrProcessTransferQuery { +export interface UpdateCorehrV2ProcessTransferQuery { /** 用户 ID 类型 */ user_id_type?: 'open_id' | 'union_id' | 'user_id' | 'people_corehr_id' } -export interface MatchCorehrCompensationStandardQuery { +export interface MatchCorehrV1CompensationStandardQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ @@ -4084,17 +4084,17 @@ export interface MatchCorehrCompensationStandardQuery { effective_time?: string } -export interface ListCorehrSubregionQuery { +export interface ListCorehrV1SubregionQuery { /** 省份/行政区id,填写后只查询该省份/行政区下的城市/区域 */ subdivision_id?: string } -export interface ListCorehrSubdivisionQuery { +export interface ListCorehrV1SubdivisionQuery { /** 国家/地区id,填写后只查询该国家/地区下的省份/行政区 */ country_region_id?: string } -export interface PatchCorehrDepartmentRequest { +export interface PatchCorehrV1DepartmentRequest { /** 实体在CoreHR内部的唯一键 */ id?: string /** 子类型 */ @@ -4115,7 +4115,7 @@ export interface PatchCorehrDepartmentRequest { staffing_model?: Enum } -export interface PatchCorehrDepartmentQuery { +export interface PatchCorehrV1DepartmentQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string /** 用户 ID 类型 */ @@ -4124,21 +4124,21 @@ export interface PatchCorehrDepartmentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface GetCorehrDepartmentQuery { +export interface GetCorehrV1DepartmentQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' /** 此次调用中使用的部门 ID 类型 */ department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface ListCorehrJobQuery { +export interface ListCorehrV1JobQuery { /** 名称 */ name?: string /** 语言 */ query_language?: string } -export interface ListCorehrDepartmentQuery { +export interface ListCorehrV1DepartmentQuery { /** 部门ID列表 */ department_id_list?: string[] /** 部门名称列表,需精确匹配 */ @@ -4149,7 +4149,7 @@ export interface ListCorehrDepartmentQuery { department_id_type?: 'open_department_id' | 'department_id' | 'people_corehr_department_id' } -export interface PatchCorehrPersonRequest { +export interface PatchCorehrV1PersonRequest { /** 姓名 */ name_list?: PersonName[] /** 性别 */ @@ -4194,12 +4194,12 @@ export interface PatchCorehrPersonRequest { personal_profile?: PersonalProfile[] } -export interface PatchCorehrPersonQuery { +export interface PatchCorehrV1PersonQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface CreateCorehrPersonRequest { +export interface CreateCorehrV1PersonRequest { /** 姓名 */ name_list: PersonName[] /** 性别 */ @@ -4244,17 +4244,17 @@ export interface CreateCorehrPersonRequest { personal_profile?: PersonalProfile[] } -export interface CreateCorehrPersonQuery { +export interface CreateCorehrV1PersonQuery { /** 根据client_token是否一致来判断是否为同一请求 */ client_token?: string } -export interface GetCorehrPersonQuery { +export interface GetCorehrV1PersonQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'people_employee_id' } -export interface SubmitCorehrOffboardingRequest { +export interface SubmitCorehrV1OffboardingRequest { /** 离职方式 */ offboarding_mode: 1 /** 雇员 id */ @@ -4277,85 +4277,85 @@ export interface SubmitCorehrOffboardingRequest { custom_fields?: ObjectFieldData[] } -export interface SubmitCorehrOffboardingQuery { +export interface SubmitCorehrV1OffboardingQuery { /** 用户 ID 类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_corehr_id' } -export interface QueryCorehrCustomFieldResponse { +export interface QueryCorehrV1CustomFieldResponse { /** 自定义字段列表 */ items?: CustomField[] } -export interface GetByParamCorehrCustomFieldResponse { +export interface GetByParamCorehrV1CustomFieldResponse { /** 自定义字段详情 */ data?: CustomField } -export interface AddEnumOptionCorehrCommonDataMetaDataResponse { +export interface AddEnumOptionCorehrV1CommonDataMetaDataResponse { /** 枚举字段 API name */ enum_field_api_name?: string /** 枚举全部选项列表 */ enum_field_options?: EnumFieldOption[] } -export interface EditEnumOptionCorehrCommonDataMetaDataResponse { +export interface EditEnumOptionCorehrV1CommonDataMetaDataResponse { /** 枚举字段 API name */ enum_field_api_name?: string /** 枚举全部选项列表 */ enum_field_options?: EnumFieldOption[] } -export interface CreateCorehrNationalIdTypeResponse { +export interface CreateCorehrV1NationalIdTypeResponse { national_id_type?: NationalIdType } -export interface PatchCorehrNationalIdTypeResponse { +export interface PatchCorehrV1NationalIdTypeResponse { national_id_type?: NationalIdType } -export interface GetCorehrNationalIdTypeResponse { +export interface GetCorehrV1NationalIdTypeResponse { /** 国家证件类型信息 */ national_id_type?: NationalIdType } -export interface CreateCorehrEmployeeTypeResponse { +export interface CreateCorehrV1EmployeeTypeResponse { employee_type?: EmployeeType } -export interface PatchCorehrEmployeeTypeResponse { +export interface PatchCorehrV1EmployeeTypeResponse { employee_type?: EmployeeType } -export interface GetCorehrEmployeeTypeResponse { +export interface GetCorehrV1EmployeeTypeResponse { /** 雇员类型 */ employee_type?: EmployeeType } -export interface CreateCorehrWorkingHoursTypeResponse { +export interface CreateCorehrV1WorkingHoursTypeResponse { working_hours_type?: WorkingHoursType } -export interface PatchCorehrWorkingHoursTypeResponse { +export interface PatchCorehrV1WorkingHoursTypeResponse { working_hours_type?: WorkingHoursType } -export interface GetCorehrWorkingHoursTypeResponse { +export interface GetCorehrV1WorkingHoursTypeResponse { /** 工时制度信息 */ working_hours_type?: WorkingHoursType } -export interface ConvertCorehrCommonDataIdResponse { +export interface ConvertCorehrV1CommonDataIdResponse { /** ID 信息列表 */ items?: IdInfo[] } -export interface BatchGetCorehrEmployeeResponse { +export interface BatchGetCorehrV2EmployeeResponse { /** 查询的雇佣信息 */ items?: Employee[] } -export interface CreateCorehrEmployeeResponse { +export interface CreateCorehrV2EmployeeResponse { /** 雇佣信息 ID */ employment_id?: string /** 合同 ID */ @@ -4364,68 +4364,68 @@ export interface CreateCorehrEmployeeResponse { job_data_id?: string } -export interface CreateCorehrPersonResponse { +export interface CreateCorehrV2PersonResponse { person?: PersonInfo } -export interface PatchCorehrPersonResponse { +export interface PatchCorehrV2PersonResponse { person?: PersonInfo } -export interface UploadCorehrPersonResponse { +export interface UploadCorehrV1PersonResponse { /** 上传文件ID */ id?: string } -export interface CreateCorehrEmploymentResponse { +export interface CreateCorehrV1EmploymentResponse { employment?: EmploymentCreate } -export interface PatchCorehrEmploymentResponse { +export interface PatchCorehrV1EmploymentResponse { employment?: Employment } -export interface CreateCorehrJobDataResponse { +export interface CreateCorehrV1JobDataResponse { job_data?: JobData } -export interface PatchCorehrJobDataResponse { +export interface PatchCorehrV1JobDataResponse { job_data?: JobData } -export interface BatchGetCorehrEmployeesJobDataResponse { +export interface BatchGetCorehrV2EmployeesJobDataResponse { /** 查询的雇佣信息 */ items?: EmployeeJobData[] } -export interface GetCorehrJobDataResponse { +export interface GetCorehrV1JobDataResponse { /** 任职信息 */ job_data?: JobData } -export interface CreateCorehrEmployeesAdditionalJobResponse { +export interface CreateCorehrV2EmployeesAdditionalJobResponse { additional_job?: EmployeesAdditionalJobWriteResp } -export interface PatchCorehrEmployeesAdditionalJobResponse { +export interface PatchCorehrV2EmployeesAdditionalJobResponse { additional_job?: EmployeesAdditionalJobWriteResp } -export interface CreateCorehrDepartmentResponse { +export interface CreateCorehrV1DepartmentResponse { department?: DepartmentCreate } -export interface ParentsCorehrDepartmentResponse { +export interface ParentsCorehrV2DepartmentResponse { /** 父部门查询结果 */ items?: DepartmentParents[] } -export interface BatchGetCorehrDepartmentResponse { +export interface BatchGetCorehrV2DepartmentResponse { /** 查询的部门信息 */ items?: Department[] } -export interface QueryRecentChangeCorehrDepartmentResponse { +export interface QueryRecentChangeCorehrV2DepartmentResponse { /** 部门 ID 列表 */ department_ids?: string[] /** 目标查询时间范围内被删除的部门列表 */ @@ -4436,21 +4436,21 @@ export interface QueryRecentChangeCorehrDepartmentResponse { has_more?: boolean } -export interface QueryTimelineCorehrDepartmentResponse { +export interface QueryTimelineCorehrV2DepartmentResponse { /** 部门信息 */ items?: DepartmentTimeline[] } -export interface CreateCorehrLocationResponse { +export interface CreateCorehrV1LocationResponse { location?: Location } -export interface GetCorehrLocationResponse { +export interface GetCorehrV1LocationResponse { /** 地点信息 */ location?: Location } -export interface QueryRecentChangeCorehrLocationResponse { +export interface QueryRecentChangeCorehrV2LocationResponse { /** 地点 ID 列表 */ location_ids?: string[] /** 下一页页码 */ @@ -4461,30 +4461,30 @@ export interface QueryRecentChangeCorehrLocationResponse { deleted_location_ids?: string[] } -export interface BatchGetCorehrLocationResponse { +export interface BatchGetCorehrV2LocationResponse { /** 查询的地点信息 */ items?: Location[] } -export interface CreateCorehrLocationAddressResponse { +export interface CreateCorehrV2LocationAddressResponse { /** 地址 ID */ address_id?: string } -export interface CreateCorehrCompanyResponse { +export interface CreateCorehrV1CompanyResponse { company?: Company } -export interface PatchCorehrCompanyResponse { +export interface PatchCorehrV1CompanyResponse { company?: Company } -export interface GetCorehrCompanyResponse { +export interface GetCorehrV1CompanyResponse { /** 公司信息 */ company?: Company } -export interface QueryRecentChangeCorehrCompanyResponse { +export interface QueryRecentChangeCorehrV2CompanyResponse { /** 公司 ID 列表 */ company_ids?: string[] /** 下一页页码 */ @@ -4495,20 +4495,20 @@ export interface QueryRecentChangeCorehrCompanyResponse { deleted_company_ids?: string[] } -export interface BatchGetCorehrCompanyResponse { +export interface BatchGetCorehrV2CompanyResponse { /** 查询的公司信息 */ items?: Company[] } -export interface CreateCorehrCostCenterResponse { +export interface CreateCorehrV2CostCenterResponse { cost_center?: CostCenter } -export interface PatchCorehrCostCenterResponse { +export interface PatchCorehrV2CostCenterResponse { cost_center?: CostCenter } -export interface QueryRecentChangeCorehrCostCenterResponse { +export interface QueryRecentChangeCorehrV2CostCenterResponse { /** 成本中心 ID 列表 */ cost_center_ids?: string[] /** 下一页页码 */ @@ -4519,43 +4519,43 @@ export interface QueryRecentChangeCorehrCostCenterResponse { deleted_cost_center_ids?: string[] } -export interface CreateCorehrCostCenterVersionResponse { +export interface CreateCorehrV2CostCenterVersionResponse { version?: CostCenterVersion } -export interface PatchCorehrCostCenterVersionResponse { +export interface PatchCorehrV2CostCenterVersionResponse { version?: CostCenterVersion } -export interface GetCorehrApprovalGroupsResponse { +export interface GetCorehrV2ApprovalGroupsResponse { /** 组织架构调整流程信息 */ approval_group?: ApprovalGroup } -export interface OpenQueryDepartmentChangeListByIdsCorehrApprovalGroupsResponse { +export interface OpenQueryDepartmentChangeListByIdsCorehrV2ApprovalGroupsResponse { /** 部门调整记录信息列表 */ department_changes?: DepartmentChange[] } -export interface OpenQueryJobChangeListByIdsCorehrApprovalGroupsResponse { +export interface OpenQueryJobChangeListByIdsCorehrV2ApprovalGroupsResponse { /** 人员异动记录信息列表 */ job_changes?: JobChange[] } -export interface CreateCorehrJobFamilyResponse { +export interface CreateCorehrV1JobFamilyResponse { job_family?: JobFamily } -export interface PatchCorehrJobFamilyResponse { +export interface PatchCorehrV1JobFamilyResponse { job_family?: JobFamily } -export interface GetCorehrJobFamilyResponse { +export interface GetCorehrV1JobFamilyResponse { /** 职务序列信息 */ job_family?: JobFamily } -export interface QueryRecentChangeCorehrJobFamilyResponse { +export interface QueryRecentChangeCorehrV2JobFamilyResponse { /** 序列 ID 列表 */ job_family_ids?: string[] /** 下一页页码 */ @@ -4566,25 +4566,25 @@ export interface QueryRecentChangeCorehrJobFamilyResponse { deleted_job_family_ids?: string[] } -export interface BatchGetCorehrJobFamilyResponse { +export interface BatchGetCorehrV2JobFamilyResponse { /** 查询的序列信息 */ items?: JobFamily[] } -export interface CreateCorehrJobLevelResponse { +export interface CreateCorehrV1JobLevelResponse { job_level?: JobLevel } -export interface PatchCorehrJobLevelResponse { +export interface PatchCorehrV1JobLevelResponse { job_level?: JobLevel } -export interface GetCorehrJobLevelResponse { +export interface GetCorehrV1JobLevelResponse { /** 职务级别信息 */ job_level?: JobLevel } -export interface QueryRecentChangeCorehrJobLevelResponse { +export interface QueryRecentChangeCorehrV2JobLevelResponse { /** 职级 ID 列表 */ job_level_ids?: string[] /** 下一页页码 */ @@ -4595,17 +4595,17 @@ export interface QueryRecentChangeCorehrJobLevelResponse { deleted_job_level_ids?: string[] } -export interface BatchGetCorehrJobLevelResponse { +export interface BatchGetCorehrV2JobLevelResponse { /** 查询的职级信息 */ items?: JobLevel[] } -export interface CreateCorehrJobGradeResponse { +export interface CreateCorehrV2JobGradeResponse { /** 职等ID */ grade_id?: string } -export interface QueryRecentChangeCorehrJobGradeResponse { +export interface QueryRecentChangeCorehrV2JobGradeResponse { /** 职等 ID 列表 */ job_grade_ids?: string[] /** 下一页页码 */ @@ -4616,69 +4616,69 @@ export interface QueryRecentChangeCorehrJobGradeResponse { deleted_job_grade_ids?: string[] } -export interface CreateCorehrJobResponse { +export interface CreateCorehrV1JobResponse { job?: Job } -export interface PatchCorehrJobResponse { +export interface PatchCorehrV1JobResponse { job?: Job } -export interface GetCorehrJobResponse { +export interface GetCorehrV2JobResponse { /** 职务信息 */ job?: Job } -export interface WithdrawOnboardingCorehrPreHireResponse { +export interface WithdrawOnboardingCorehrV2PreHireResponse { /** 是否成功撤销入职 */ success?: boolean } -export interface RestoreFlowInstanceCorehrPreHireResponse { +export interface RestoreFlowInstanceCorehrV2PreHireResponse { /** 是否成功恢复入职 */ success?: boolean } -export interface CreateCorehrPreHireResponse { +export interface CreateCorehrV2PreHireResponse { /** 待入职 ID */ pre_hire_id?: string } -export interface PatchCorehrPreHireResponse { +export interface PatchCorehrV2PreHireResponse { /** 待入职ID */ pre_hire_id?: string } -export interface GetCorehrPreHireResponse { +export interface GetCorehrV1PreHireResponse { /** 待入职信息 */ pre_hire?: PreHire } -export interface TransitTaskCorehrPreHireResponse { +export interface TransitTaskCorehrV2PreHireResponse { /** 是否成功流转任务 */ success?: boolean } -export interface CompleteCorehrPreHireResponse { +export interface CompleteCorehrV2PreHireResponse { /** 是否成功完成入职 */ success?: boolean } -export interface PatchCorehrPreHireResponse { +export interface PatchCorehrV1PreHireResponse { pre_hire?: PreHire } -export interface CreateCorehrProbationAssessmentResponse { +export interface CreateCorehrV2ProbationAssessmentResponse { /** 创建的试用期考核记录 ID 列表,有序返回 */ assessment_ids?: string[] } -export interface SubmitCorehrProbationResponse { +export interface SubmitCorehrV2ProbationResponse { /** 试用期信息 */ probation_info?: ProbationInfoForSubmit } -export interface CreateCorehrJobChangeResponse { +export interface CreateCorehrV2JobChangeResponse { /** 异动记录 id */ job_change_id?: string /** 雇员 id */ @@ -4703,17 +4703,17 @@ export interface CreateCorehrJobChangeResponse { custom_fields?: CustomFieldData[] } -export interface QueryCorehrTransferTypeResponse { +export interface QueryCorehrV1TransferTypeResponse { /** 异动类型列表 */ items?: TransferType[] } -export interface QueryCorehrTransferReasonResponse { +export interface QueryCorehrV1TransferReasonResponse { /** 异动原因列表 */ items?: TransferReason[] } -export interface CreateCorehrJobChangeResponse { +export interface CreateCorehrV1JobChangeResponse { /** 异动记录 id */ job_change_id?: string /** 雇员 id */ @@ -4734,12 +4734,12 @@ export interface CreateCorehrJobChangeResponse { transfer_info?: TransferInfo } -export interface QueryCorehrOffboardingResponse { +export interface QueryCorehrV1OffboardingResponse { /** 离职原因列表 */ items?: OffboardingReason[] } -export interface SubmitV2CorehrOffboardingResponse { +export interface SubmitV2CorehrV2OffboardingResponse { /** 离职记录 id */ offboarding_id?: string /** 雇员 id */ @@ -4764,32 +4764,32 @@ export interface SubmitV2CorehrOffboardingResponse { is_transfer_with_workforce?: boolean } -export interface EditCorehrOffboardingResponse { +export interface EditCorehrV2OffboardingResponse { /** 编辑字段数据信息 */ data: ObjectFieldData[] } -export interface CreateCorehrContractResponse { +export interface CreateCorehrV1ContractResponse { contract?: Contract } -export interface PatchCorehrContractResponse { +export interface PatchCorehrV1ContractResponse { contract?: Contract } -export interface GetCorehrContractResponse { +export interface GetCorehrV1ContractResponse { /** 合同信息 */ contract?: Contract } -export interface ListCorehrWorkforcePlanResponse { +export interface ListCorehrV2WorkforcePlanResponse { /** 方案列表 */ items?: WorkforcePlan[] /** 方案总数 */ total?: number } -export interface BatchCorehrWorkforcePlanDetailResponse { +export interface BatchCorehrV2WorkforcePlanDetailResponse { /** 编制规划方案 ID */ workforce_plan_id?: string /** 集中填报项目 ID */ @@ -4802,66 +4802,66 @@ export interface BatchCorehrWorkforcePlanDetailResponse { has_more?: boolean } -export interface CreateCorehrLeaveGrantingRecordResponse { +export interface CreateCorehrV1LeaveGrantingRecordResponse { /** 假期授予记录 */ leave_granting_record?: LeaveGrantingRecord } -export interface WorkCalendarCorehrLeaveResponse { +export interface WorkCalendarCorehrV1LeaveResponse { /** 工作日历列表 */ work_calendars?: WorkCalendarDetail[] /** 入参count=true,则返回符合条件的工作日历总数 */ count?: number } -export interface CalendarByScopeCorehrLeaveResponse { +export interface CalendarByScopeCorehrV1LeaveResponse { /** 工作日历id */ calendar_wk_id?: string } -export interface WorkCalendarDateCorehrLeaveResponse { +export interface WorkCalendarDateCorehrV1LeaveResponse { /** 日期类型列表 */ calendar_dates?: WkCalendarDate[] } -export interface GetByParamCorehrAuthorizationResponse { +export interface GetByParamCorehrV1AuthorizationResponse { /** 角色授权信息 */ role_authorization?: RoleAuthorization } -export interface AddRoleAssignCorehrAuthorizationResponse { +export interface AddRoleAssignCorehrV1AuthorizationResponse { /** 授权id */ assign_id?: string } -export interface UpdateRoleAssignCorehrAuthorizationResponse { +export interface UpdateRoleAssignCorehrV1AuthorizationResponse { /** 授权id */ assign_id?: string } -export interface RemoveRoleAssignCorehrAuthorizationResponse { +export interface RemoveRoleAssignCorehrV1AuthorizationResponse { /** 授权id */ assign_id?: string } -export interface BatchGetCorehrEmployeesBpResponse { +export interface BatchGetCorehrV2EmployeesBpResponse { /** 员工直属 BP 信息,当员工所在部门、属地无 BP 时,会上钻找到最近的 BP */ employment_direct_bps?: EmploymentBp[] /** 员工全部 BP 信息 */ employment_all_bps?: EmploymentBp[] } -export interface GetByDepartmentCorehrBpResponse { +export interface GetByDepartmentCorehrV2BpResponse { /** 部门 HRBP 信息,依次为部门及各层级上级部门 */ items?: DepartmentHrbp[] } -export interface QueryCorehrSecurityGroupResponse { +export interface QueryCorehrV1SecurityGroupResponse { /** HRBP/属地 BP 信息 */ hrbp_list?: Hrbp[] } -export interface GetCorehrProcessResponse { +export interface GetCorehrV2ProcessResponse { /** 流程实例ID */ process_id?: string /** 流程状态 */ @@ -4906,21 +4906,21 @@ export interface GetCorehrProcessResponse { is_last_completed_correct_process?: boolean } -export interface GetCorehrProcessFormVariableDataResponse { +export interface GetCorehrV2ProcessFormVariableDataResponse { /** 表单数据 */ field_variable_values?: FieldVariableValue[] /** 流程实例id */ process_id?: string } -export interface UpdateCorehrProcessApproverResponse { +export interface UpdateCorehrV2ProcessApproverResponse { /** 错误码,非 0 表示失败 */ code: number /** 错误描述 */ msg?: string } -export interface MatchCorehrCompensationStandardResponse { +export interface MatchCorehrV1CompensationStandardResponse { /** 薪资标准表ID */ standard_id?: string /** 薪资等级 */ @@ -4929,59 +4929,59 @@ export interface MatchCorehrCompensationStandardResponse { effective_time?: string } -export interface GetCorehrProcessFormVariableDataResponse { +export interface GetCorehrV1ProcessFormVariableDataResponse { /** 流程变量 */ field_variable_values?: FormFieldVariable[] } -export interface GetCorehrSubregionResponse { +export interface GetCorehrV1SubregionResponse { /** 城市/区域信息 */ subregion?: Subregion } -export interface GetCorehrSubdivisionResponse { +export interface GetCorehrV1SubdivisionResponse { /** 国家/地址信息 */ subdivision?: Subdivision } -export interface GetCorehrCountryRegionResponse { +export interface GetCorehrV1CountryRegionResponse { /** 国家/地址信息 */ country_region?: CountryRegion } -export interface GetCorehrCurrencyResponse { +export interface GetCorehrV1CurrencyResponse { /** 货币信息 */ currency?: Currency } -export interface GetCorehrJobResponse { +export interface GetCorehrV1JobResponse { /** 职务信息 */ job?: Job } -export interface PatchCorehrDepartmentResponse { +export interface PatchCorehrV1DepartmentResponse { department?: Department } -export interface GetCorehrDepartmentResponse { +export interface GetCorehrV1DepartmentResponse { /** 部门信息 */ department?: Department } -export interface PatchCorehrPersonResponse { +export interface PatchCorehrV1PersonResponse { person?: Person } -export interface CreateCorehrPersonResponse { +export interface CreateCorehrV1PersonResponse { person?: Person } -export interface GetCorehrPersonResponse { +export interface GetCorehrV1PersonResponse { /** 个人信息 */ person?: Person } -export interface SubmitCorehrOffboardingResponse { +export interface SubmitCorehrV1OffboardingResponse { /** 离职记录 id */ offboarding_id?: string /** 雇员 id */ @@ -5003,541 +5003,541 @@ export interface SubmitCorehrOffboardingResponse { } Internal.define({ - '/open-apis/corehr/v1/custom_fields/list_object_api_name': { - GET: { name: 'listObjectApiNameCorehrCustomField', pagination: { argIndex: 0 } }, + '/corehr/v1/custom_fields/list_object_api_name': { + GET: { name: 'listObjectApiNameCorehrV1CustomField', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/custom_fields/query': { - GET: 'queryCorehrCustomField', + '/corehr/v1/custom_fields/query': { + GET: 'queryCorehrV1CustomField', }, - '/open-apis/corehr/v1/custom_fields/get_by_param': { - GET: 'getByParamCorehrCustomField', + '/corehr/v1/custom_fields/get_by_param': { + GET: 'getByParamCorehrV1CustomField', }, - '/open-apis/corehr/v1/common_data/meta_data/add_enum_option': { - POST: 'addEnumOptionCorehrCommonDataMetaData', + '/corehr/v1/common_data/meta_data/add_enum_option': { + POST: 'addEnumOptionCorehrV1CommonDataMetaData', }, - '/open-apis/corehr/v1/common_data/meta_data/edit_enum_option': { - POST: 'editEnumOptionCorehrCommonDataMetaData', + '/corehr/v1/common_data/meta_data/edit_enum_option': { + POST: 'editEnumOptionCorehrV1CommonDataMetaData', }, - '/open-apis/corehr/v2/basic_info/country_regions/search': { - POST: { name: 'searchCorehrBasicInfoCountryRegion', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/country_regions/search': { + POST: { name: 'searchCorehrV2BasicInfoCountryRegion', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/country_region_subdivisions/search': { - POST: { name: 'searchCorehrBasicInfoCountryRegionSubdivision', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/country_region_subdivisions/search': { + POST: { name: 'searchCorehrV2BasicInfoCountryRegionSubdivision', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/cities/search': { - POST: { name: 'searchCorehrBasicInfoCity', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/cities/search': { + POST: { name: 'searchCorehrV2BasicInfoCity', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/districts/search': { - POST: { name: 'searchCorehrBasicInfoDistrict', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/districts/search': { + POST: { name: 'searchCorehrV2BasicInfoDistrict', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/nationalities/search': { - POST: { name: 'searchCorehrBasicInfoNationality', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/nationalities/search': { + POST: { name: 'searchCorehrV2BasicInfoNationality', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v1/national_id_types': { - POST: 'createCorehrNationalIdType', - GET: { name: 'listCorehrNationalIdType', pagination: { argIndex: 0 } }, + '/corehr/v1/national_id_types': { + POST: 'createCorehrV1NationalIdType', + GET: { name: 'listCorehrV1NationalIdType', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/national_id_types/{national_id_type_id}': { - DELETE: 'deleteCorehrNationalIdType', - PATCH: 'patchCorehrNationalIdType', - GET: 'getCorehrNationalIdType', + '/corehr/v1/national_id_types/{national_id_type_id}': { + DELETE: 'deleteCorehrV1NationalIdType', + PATCH: 'patchCorehrV1NationalIdType', + GET: 'getCorehrV1NationalIdType', }, - '/open-apis/corehr/v2/basic_info/banks/search': { - POST: { name: 'searchCorehrBasicInfoBank', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/banks/search': { + POST: { name: 'searchCorehrV2BasicInfoBank', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/bank_branchs/search': { - POST: { name: 'searchCorehrBasicInfoBankBranch', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/bank_branchs/search': { + POST: { name: 'searchCorehrV2BasicInfoBankBranch', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/currencies/search': { - POST: { name: 'searchCorehrBasicInfoCurrency', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/currencies/search': { + POST: { name: 'searchCorehrV2BasicInfoCurrency', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/time_zones/search': { - POST: { name: 'searchCorehrBasicInfoTimeZone', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/time_zones/search': { + POST: { name: 'searchCorehrV2BasicInfoTimeZone', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/basic_info/languages/search': { - POST: { name: 'searchCorehrBasicInfoLanguage', pagination: { argIndex: 1 } }, + '/corehr/v2/basic_info/languages/search': { + POST: { name: 'searchCorehrV2BasicInfoLanguage', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v1/employee_types': { - POST: 'createCorehrEmployeeType', - GET: { name: 'listCorehrEmployeeType', pagination: { argIndex: 0 } }, + '/corehr/v1/employee_types': { + POST: 'createCorehrV1EmployeeType', + GET: { name: 'listCorehrV1EmployeeType', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/employee_types/{employee_type_id}': { - DELETE: 'deleteCorehrEmployeeType', - PATCH: 'patchCorehrEmployeeType', - GET: 'getCorehrEmployeeType', + '/corehr/v1/employee_types/{employee_type_id}': { + DELETE: 'deleteCorehrV1EmployeeType', + PATCH: 'patchCorehrV1EmployeeType', + GET: 'getCorehrV1EmployeeType', }, - '/open-apis/corehr/v1/working_hours_types': { - POST: 'createCorehrWorkingHoursType', - GET: { name: 'listCorehrWorkingHoursType', pagination: { argIndex: 0 } }, + '/corehr/v1/working_hours_types': { + POST: 'createCorehrV1WorkingHoursType', + GET: { name: 'listCorehrV1WorkingHoursType', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/working_hours_types/{working_hours_type_id}': { - DELETE: 'deleteCorehrWorkingHoursType', - PATCH: 'patchCorehrWorkingHoursType', - GET: 'getCorehrWorkingHoursType', + '/corehr/v1/working_hours_types/{working_hours_type_id}': { + DELETE: 'deleteCorehrV1WorkingHoursType', + PATCH: 'patchCorehrV1WorkingHoursType', + GET: 'getCorehrV1WorkingHoursType', }, - '/open-apis/corehr/v1/common_data/id/convert': { - POST: 'convertCorehrCommonDataId', + '/corehr/v1/common_data/id/convert': { + POST: 'convertCorehrV1CommonDataId', }, - '/open-apis/corehr/v2/employees/batch_get': { - POST: 'batchGetCorehrEmployee', + '/corehr/v2/employees/batch_get': { + POST: 'batchGetCorehrV2Employee', }, - '/open-apis/corehr/v2/employees/search': { - POST: { name: 'searchCorehrEmployee', pagination: { argIndex: 1 } }, + '/corehr/v2/employees/search': { + POST: { name: 'searchCorehrV2Employee', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/employees': { - POST: 'createCorehrEmployee', + '/corehr/v2/employees': { + POST: 'createCorehrV2Employee', }, - '/open-apis/corehr/v2/persons': { - POST: 'createCorehrPerson', + '/corehr/v2/persons': { + POST: 'createCorehrV2Person', }, - '/open-apis/corehr/v2/persons/{person_id}': { - PATCH: 'patchCorehrPerson', + '/corehr/v2/persons/{person_id}': { + PATCH: 'patchCorehrV2Person', }, - '/open-apis/corehr/v1/persons/{person_id}': { - DELETE: 'deleteCorehrPerson', - PATCH: 'patchCorehrPerson', - GET: 'getCorehrPerson', + '/corehr/v1/persons/{person_id}': { + DELETE: 'deleteCorehrV1Person', + PATCH: 'patchCorehrV1Person', + GET: 'getCorehrV1Person', }, - '/open-apis/corehr/v1/persons/upload': { - POST: { name: 'uploadCorehrPerson', multipart: true }, + '/corehr/v1/persons/upload': { + POST: { name: 'uploadCorehrV1Person', multipart: true }, }, - '/open-apis/corehr/v1/files/{id}': { - GET: { name: 'getCorehrFile', type: 'binary' }, + '/corehr/v1/files/{id}': { + GET: { name: 'getCorehrV1File', type: 'binary' }, }, - '/open-apis/corehr/v1/employments': { - POST: 'createCorehrEmployment', + '/corehr/v1/employments': { + POST: 'createCorehrV1Employment', }, - '/open-apis/corehr/v1/employments/{employment_id}': { - PATCH: 'patchCorehrEmployment', - DELETE: 'deleteCorehrEmployment', + '/corehr/v1/employments/{employment_id}': { + PATCH: 'patchCorehrV1Employment', + DELETE: 'deleteCorehrV1Employment', }, - '/open-apis/corehr/v1/job_datas': { - POST: 'createCorehrJobData', - GET: { name: 'listCorehrJobData', pagination: { argIndex: 0 } }, + '/corehr/v1/job_datas': { + POST: 'createCorehrV1JobData', + GET: { name: 'listCorehrV1JobData', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/job_datas/{job_data_id}': { - DELETE: 'deleteCorehrJobData', - PATCH: 'patchCorehrJobData', - GET: 'getCorehrJobData', + '/corehr/v1/job_datas/{job_data_id}': { + DELETE: 'deleteCorehrV1JobData', + PATCH: 'patchCorehrV1JobData', + GET: 'getCorehrV1JobData', }, - '/open-apis/corehr/v2/employees/job_datas/query': { - POST: { name: 'queryCorehrEmployeesJobData', pagination: { argIndex: 1 } }, + '/corehr/v2/employees/job_datas/query': { + POST: { name: 'queryCorehrV2EmployeesJobData', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/employees/job_datas/batch_get': { - POST: 'batchGetCorehrEmployeesJobData', + '/corehr/v2/employees/job_datas/batch_get': { + POST: 'batchGetCorehrV2EmployeesJobData', }, - '/open-apis/corehr/v2/employees/additional_jobs': { - POST: 'createCorehrEmployeesAdditionalJob', + '/corehr/v2/employees/additional_jobs': { + POST: 'createCorehrV2EmployeesAdditionalJob', }, - '/open-apis/corehr/v2/employees/additional_jobs/{additional_job_id}': { - PATCH: 'patchCorehrEmployeesAdditionalJob', - DELETE: 'deleteCorehrEmployeesAdditionalJob', + '/corehr/v2/employees/additional_jobs/{additional_job_id}': { + PATCH: 'patchCorehrV2EmployeesAdditionalJob', + DELETE: 'deleteCorehrV2EmployeesAdditionalJob', }, - '/open-apis/corehr/v2/employees/additional_jobs/batch': { - POST: { name: 'batchCorehrEmployeesAdditionalJob', pagination: { argIndex: 1 } }, + '/corehr/v2/employees/additional_jobs/batch': { + POST: { name: 'batchCorehrV2EmployeesAdditionalJob', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/departments/query_operation_logs': { - POST: { name: 'queryOperationLogsCorehrDepartment', pagination: { argIndex: 1, itemsKey: 'op_logs', tokenKey: 'next_page_token' } }, + '/corehr/v2/departments/query_operation_logs': { + POST: { name: 'queryOperationLogsCorehrV2Department', pagination: { argIndex: 1, itemsKey: 'op_logs', tokenKey: 'next_page_token' } }, }, - '/open-apis/corehr/v1/departments': { - POST: 'createCorehrDepartment', - GET: { name: 'listCorehrDepartment', pagination: { argIndex: 0 } }, + '/corehr/v1/departments': { + POST: 'createCorehrV1Department', + GET: { name: 'listCorehrV1Department', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v2/departments/{department_id}': { - PATCH: 'patchCorehrDepartment', - DELETE: 'deleteCorehrDepartment', + '/corehr/v2/departments/{department_id}': { + PATCH: 'patchCorehrV2Department', + DELETE: 'deleteCorehrV2Department', }, - '/open-apis/corehr/v2/departments/parents': { - POST: 'parentsCorehrDepartment', + '/corehr/v2/departments/parents': { + POST: 'parentsCorehrV2Department', }, - '/open-apis/corehr/v2/departments/batch_get': { - POST: 'batchGetCorehrDepartment', + '/corehr/v2/departments/batch_get': { + POST: 'batchGetCorehrV2Department', }, - '/open-apis/corehr/v2/departments/query_recent_change': { - GET: 'queryRecentChangeCorehrDepartment', + '/corehr/v2/departments/query_recent_change': { + GET: 'queryRecentChangeCorehrV2Department', }, - '/open-apis/corehr/v2/departments/query_timeline': { - POST: 'queryTimelineCorehrDepartment', + '/corehr/v2/departments/query_timeline': { + POST: 'queryTimelineCorehrV2Department', }, - '/open-apis/corehr/v2/departments/tree': { - POST: { name: 'treeCorehrDepartment', pagination: { argIndex: 1 } }, + '/corehr/v2/departments/tree': { + POST: { name: 'treeCorehrV2Department', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/departments/query_multi_timeline': { - POST: { name: 'queryMultiTimelineCorehrDepartment', pagination: { argIndex: 1 } }, + '/corehr/v2/departments/query_multi_timeline': { + POST: { name: 'queryMultiTimelineCorehrV2Department', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/departments/search': { - POST: { name: 'searchCorehrDepartment', pagination: { argIndex: 1 } }, + '/corehr/v2/departments/search': { + POST: { name: 'searchCorehrV2Department', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v1/locations': { - POST: 'createCorehrLocation', - GET: { name: 'listCorehrLocation', pagination: { argIndex: 0 } }, + '/corehr/v1/locations': { + POST: 'createCorehrV1Location', + GET: { name: 'listCorehrV1Location', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v2/locations/{location_id}': { - PATCH: 'patchCorehrLocation', + '/corehr/v2/locations/{location_id}': { + PATCH: 'patchCorehrV2Location', }, - '/open-apis/corehr/v1/locations/{location_id}': { - GET: 'getCorehrLocation', - DELETE: 'deleteCorehrLocation', + '/corehr/v1/locations/{location_id}': { + GET: 'getCorehrV1Location', + DELETE: 'deleteCorehrV1Location', }, - '/open-apis/corehr/v2/locations/query_recent_change': { - GET: 'queryRecentChangeCorehrLocation', + '/corehr/v2/locations/query_recent_change': { + GET: 'queryRecentChangeCorehrV2Location', }, - '/open-apis/corehr/v2/locations/batch_get': { - POST: 'batchGetCorehrLocation', + '/corehr/v2/locations/batch_get': { + POST: 'batchGetCorehrV2Location', }, - '/open-apis/corehr/v2/locations/active': { - POST: 'activeCorehrLocation', + '/corehr/v2/locations/active': { + POST: 'activeCorehrV2Location', }, - '/open-apis/corehr/v2/locations/{location_id}/addresses/{address_id}': { - DELETE: 'deleteCorehrLocationAddress', - PATCH: 'patchCorehrLocationAddress', + '/corehr/v2/locations/{location_id}/addresses/{address_id}': { + DELETE: 'deleteCorehrV2LocationAddress', + PATCH: 'patchCorehrV2LocationAddress', }, - '/open-apis/corehr/v2/locations/{location_id}/addresses': { - POST: 'createCorehrLocationAddress', + '/corehr/v2/locations/{location_id}/addresses': { + POST: 'createCorehrV2LocationAddress', }, - '/open-apis/corehr/v1/companies': { - POST: 'createCorehrCompany', - GET: { name: 'listCorehrCompany', pagination: { argIndex: 0 } }, + '/corehr/v1/companies': { + POST: 'createCorehrV1Company', + GET: { name: 'listCorehrV1Company', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/companies/{company_id}': { - PATCH: 'patchCorehrCompany', - GET: 'getCorehrCompany', - DELETE: 'deleteCorehrCompany', + '/corehr/v1/companies/{company_id}': { + PATCH: 'patchCorehrV1Company', + GET: 'getCorehrV1Company', + DELETE: 'deleteCorehrV1Company', }, - '/open-apis/corehr/v2/companies/active': { - POST: 'activeCorehrCompany', + '/corehr/v2/companies/active': { + POST: 'activeCorehrV2Company', }, - '/open-apis/corehr/v2/companies/query_recent_change': { - GET: 'queryRecentChangeCorehrCompany', + '/corehr/v2/companies/query_recent_change': { + GET: 'queryRecentChangeCorehrV2Company', }, - '/open-apis/corehr/v2/companies/batch_get': { - POST: 'batchGetCorehrCompany', + '/corehr/v2/companies/batch_get': { + POST: 'batchGetCorehrV2Company', }, - '/open-apis/corehr/v2/cost_centers': { - POST: 'createCorehrCostCenter', + '/corehr/v2/cost_centers': { + POST: 'createCorehrV2CostCenter', }, - '/open-apis/corehr/v2/cost_centers/{cost_center_id}': { - PATCH: 'patchCorehrCostCenter', - DELETE: 'deleteCorehrCostCenter', + '/corehr/v2/cost_centers/{cost_center_id}': { + PATCH: 'patchCorehrV2CostCenter', + DELETE: 'deleteCorehrV2CostCenter', }, - '/open-apis/corehr/v2/cost_centers/query_recent_change': { - GET: 'queryRecentChangeCorehrCostCenter', + '/corehr/v2/cost_centers/query_recent_change': { + GET: 'queryRecentChangeCorehrV2CostCenter', }, - '/open-apis/corehr/v2/cost_centers/search': { - POST: { name: 'searchCorehrCostCenter', pagination: { argIndex: 1 } }, + '/corehr/v2/cost_centers/search': { + POST: { name: 'searchCorehrV2CostCenter', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/cost_centers/{cost_center_id}/versions': { - POST: 'createCorehrCostCenterVersion', + '/corehr/v2/cost_centers/{cost_center_id}/versions': { + POST: 'createCorehrV2CostCenterVersion', }, - '/open-apis/corehr/v2/cost_centers/{cost_center_id}/versions/{version_id}': { - PATCH: 'patchCorehrCostCenterVersion', - DELETE: 'deleteCorehrCostCenterVersion', + '/corehr/v2/cost_centers/{cost_center_id}/versions/{version_id}': { + PATCH: 'patchCorehrV2CostCenterVersion', + DELETE: 'deleteCorehrV2CostCenterVersion', }, - '/open-apis/corehr/v2/approval_groups/{process_id}': { - GET: 'getCorehrApprovalGroups', + '/corehr/v2/approval_groups/{process_id}': { + GET: 'getCorehrV2ApprovalGroups', }, - '/open-apis/corehr/v2/approval_groups/open_query_department_change_list_by_ids': { - POST: 'openQueryDepartmentChangeListByIdsCorehrApprovalGroups', + '/corehr/v2/approval_groups/open_query_department_change_list_by_ids': { + POST: 'openQueryDepartmentChangeListByIdsCorehrV2ApprovalGroups', }, - '/open-apis/corehr/v2/approval_groups/open_query_job_change_list_by_ids': { - POST: 'openQueryJobChangeListByIdsCorehrApprovalGroups', + '/corehr/v2/approval_groups/open_query_job_change_list_by_ids': { + POST: 'openQueryJobChangeListByIdsCorehrV2ApprovalGroups', }, - '/open-apis/corehr/v1/job_families': { - POST: 'createCorehrJobFamily', - GET: { name: 'listCorehrJobFamily', pagination: { argIndex: 0 } }, + '/corehr/v1/job_families': { + POST: 'createCorehrV1JobFamily', + GET: { name: 'listCorehrV1JobFamily', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/job_families/{job_family_id}': { - PATCH: 'patchCorehrJobFamily', - GET: 'getCorehrJobFamily', - DELETE: 'deleteCorehrJobFamily', + '/corehr/v1/job_families/{job_family_id}': { + PATCH: 'patchCorehrV1JobFamily', + GET: 'getCorehrV1JobFamily', + DELETE: 'deleteCorehrV1JobFamily', }, - '/open-apis/corehr/v2/job_families/query_recent_change': { - GET: 'queryRecentChangeCorehrJobFamily', + '/corehr/v2/job_families/query_recent_change': { + GET: 'queryRecentChangeCorehrV2JobFamily', }, - '/open-apis/corehr/v2/job_families/batch_get': { - POST: 'batchGetCorehrJobFamily', + '/corehr/v2/job_families/batch_get': { + POST: 'batchGetCorehrV2JobFamily', }, - '/open-apis/corehr/v1/job_levels': { - POST: 'createCorehrJobLevel', - GET: { name: 'listCorehrJobLevel', pagination: { argIndex: 0 } }, + '/corehr/v1/job_levels': { + POST: 'createCorehrV1JobLevel', + GET: { name: 'listCorehrV1JobLevel', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/job_levels/{job_level_id}': { - PATCH: 'patchCorehrJobLevel', - GET: 'getCorehrJobLevel', - DELETE: 'deleteCorehrJobLevel', + '/corehr/v1/job_levels/{job_level_id}': { + PATCH: 'patchCorehrV1JobLevel', + GET: 'getCorehrV1JobLevel', + DELETE: 'deleteCorehrV1JobLevel', }, - '/open-apis/corehr/v2/job_levels/query_recent_change': { - GET: 'queryRecentChangeCorehrJobLevel', + '/corehr/v2/job_levels/query_recent_change': { + GET: 'queryRecentChangeCorehrV2JobLevel', }, - '/open-apis/corehr/v2/job_levels/batch_get': { - POST: 'batchGetCorehrJobLevel', + '/corehr/v2/job_levels/batch_get': { + POST: 'batchGetCorehrV2JobLevel', }, - '/open-apis/corehr/v2/job_grades': { - POST: 'createCorehrJobGrade', + '/corehr/v2/job_grades': { + POST: 'createCorehrV2JobGrade', }, - '/open-apis/corehr/v2/job_grades/{job_grade_id}': { - PATCH: 'patchCorehrJobGrade', - DELETE: 'deleteCorehrJobGrade', + '/corehr/v2/job_grades/{job_grade_id}': { + PATCH: 'patchCorehrV2JobGrade', + DELETE: 'deleteCorehrV2JobGrade', }, - '/open-apis/corehr/v2/job_grades/query': { - POST: { name: 'queryCorehrJobGrade', pagination: { argIndex: 1 } }, + '/corehr/v2/job_grades/query': { + POST: { name: 'queryCorehrV2JobGrade', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/job_grades/query_recent_change': { - GET: 'queryRecentChangeCorehrJobGrade', + '/corehr/v2/job_grades/query_recent_change': { + GET: 'queryRecentChangeCorehrV2JobGrade', }, - '/open-apis/corehr/v1/jobs': { - POST: 'createCorehrJob', - GET: { name: 'listCorehrJob', pagination: { argIndex: 0 } }, + '/corehr/v1/jobs': { + POST: 'createCorehrV1Job', + GET: { name: 'listCorehrV1Job', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/jobs/{job_id}': { - DELETE: 'deleteCorehrJob', - PATCH: 'patchCorehrJob', - GET: 'getCorehrJob', + '/corehr/v1/jobs/{job_id}': { + DELETE: 'deleteCorehrV1Job', + PATCH: 'patchCorehrV1Job', + GET: 'getCorehrV1Job', }, - '/open-apis/corehr/v2/jobs/{job_id}': { - GET: 'getCorehrJob', + '/corehr/v2/jobs/{job_id}': { + GET: 'getCorehrV2Job', }, - '/open-apis/corehr/v2/jobs': { - GET: { name: 'listCorehrJob', pagination: { argIndex: 0 } }, + '/corehr/v2/jobs': { + GET: { name: 'listCorehrV2Job', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v2/pre_hires/withdraw_onboarding': { - POST: 'withdrawOnboardingCorehrPreHire', + '/corehr/v2/pre_hires/withdraw_onboarding': { + POST: 'withdrawOnboardingCorehrV2PreHire', }, - '/open-apis/corehr/v2/pre_hires/restore_flow_instance': { - POST: 'restoreFlowInstanceCorehrPreHire', + '/corehr/v2/pre_hires/restore_flow_instance': { + POST: 'restoreFlowInstanceCorehrV2PreHire', }, - '/open-apis/corehr/v2/pre_hires': { - POST: 'createCorehrPreHire', + '/corehr/v2/pre_hires': { + POST: 'createCorehrV2PreHire', }, - '/open-apis/corehr/v2/pre_hires/{pre_hire_id}': { - PATCH: 'patchCorehrPreHire', - DELETE: 'deleteCorehrPreHire', + '/corehr/v2/pre_hires/{pre_hire_id}': { + PATCH: 'patchCorehrV2PreHire', + DELETE: 'deleteCorehrV2PreHire', }, - '/open-apis/corehr/v2/pre_hires/query': { - POST: { name: 'queryCorehrPreHire', pagination: { argIndex: 1 } }, + '/corehr/v2/pre_hires/query': { + POST: { name: 'queryCorehrV2PreHire', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v1/pre_hires/{pre_hire_id}': { - GET: 'getCorehrPreHire', - DELETE: 'deleteCorehrPreHire', - PATCH: 'patchCorehrPreHire', + '/corehr/v1/pre_hires/{pre_hire_id}': { + GET: 'getCorehrV1PreHire', + DELETE: 'deleteCorehrV1PreHire', + PATCH: 'patchCorehrV1PreHire', }, - '/open-apis/corehr/v1/pre_hires': { - GET: { name: 'listCorehrPreHire', pagination: { argIndex: 0 } }, + '/corehr/v1/pre_hires': { + GET: { name: 'listCorehrV1PreHire', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v2/pre_hires/search': { - POST: { name: 'searchCorehrPreHire', pagination: { argIndex: 1 } }, + '/corehr/v2/pre_hires/search': { + POST: { name: 'searchCorehrV2PreHire', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/pre_hires/{pre_hire_id}/transit_task': { - POST: 'transitTaskCorehrPreHire', + '/corehr/v2/pre_hires/{pre_hire_id}/transit_task': { + POST: 'transitTaskCorehrV2PreHire', }, - '/open-apis/corehr/v2/pre_hires/{pre_hire_id}/complete': { - POST: 'completeCorehrPreHire', + '/corehr/v2/pre_hires/{pre_hire_id}/complete': { + POST: 'completeCorehrV2PreHire', }, - '/open-apis/corehr/v2/probation/assessments': { - POST: 'createCorehrProbationAssessment', + '/corehr/v2/probation/assessments': { + POST: 'createCorehrV2ProbationAssessment', }, - '/open-apis/corehr/v2/probation/enable_disable_assessment': { - POST: 'enableDisableAssessmentCorehrProbation', + '/corehr/v2/probation/enable_disable_assessment': { + POST: 'enableDisableAssessmentCorehrV2Probation', }, - '/open-apis/corehr/v2/probation/assessments/{assessment_id}': { - PATCH: 'patchCorehrProbationAssessment', - DELETE: 'deleteCorehrProbationAssessment', + '/corehr/v2/probation/assessments/{assessment_id}': { + PATCH: 'patchCorehrV2ProbationAssessment', + DELETE: 'deleteCorehrV2ProbationAssessment', }, - '/open-apis/corehr/v2/probation/search': { - POST: { name: 'searchCorehrProbation', pagination: { argIndex: 1 } }, + '/corehr/v2/probation/search': { + POST: { name: 'searchCorehrV2Probation', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/probation/submit': { - POST: 'submitCorehrProbation', + '/corehr/v2/probation/submit': { + POST: 'submitCorehrV2Probation', }, - '/open-apis/corehr/v2/probation/withdraw': { - POST: 'withdrawCorehrProbation', + '/corehr/v2/probation/withdraw': { + POST: 'withdrawCorehrV2Probation', }, - '/open-apis/corehr/v2/job_changes': { - POST: 'createCorehrJobChange', + '/corehr/v2/job_changes': { + POST: 'createCorehrV2JobChange', }, - '/open-apis/corehr/v1/transfer_types/query': { - GET: 'queryCorehrTransferType', + '/corehr/v1/transfer_types/query': { + GET: 'queryCorehrV1TransferType', }, - '/open-apis/corehr/v1/transfer_reasons/query': { - GET: 'queryCorehrTransferReason', + '/corehr/v1/transfer_reasons/query': { + GET: 'queryCorehrV1TransferReason', }, - '/open-apis/corehr/v2/job_changes/search': { - POST: { name: 'searchCorehrJobChange', pagination: { argIndex: 1 } }, + '/corehr/v2/job_changes/search': { + POST: { name: 'searchCorehrV2JobChange', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/job_changes/{job_change_id}/revoke': { - POST: 'revokeCorehrJobChange', + '/corehr/v2/job_changes/{job_change_id}/revoke': { + POST: 'revokeCorehrV2JobChange', }, - '/open-apis/corehr/v1/job_changes': { - POST: 'createCorehrJobChange', + '/corehr/v1/job_changes': { + POST: 'createCorehrV1JobChange', }, - '/open-apis/corehr/v1/offboardings/query': { - POST: 'queryCorehrOffboarding', + '/corehr/v1/offboardings/query': { + POST: 'queryCorehrV1Offboarding', }, - '/open-apis/corehr/v2/offboardings/submit_v2': { - POST: 'submitV2CorehrOffboarding', + '/corehr/v2/offboardings/submit_v2': { + POST: 'submitV2CorehrV2Offboarding', }, - '/open-apis/corehr/v2/offboardings/edit': { - POST: 'editCorehrOffboarding', + '/corehr/v2/offboardings/edit': { + POST: 'editCorehrV2Offboarding', }, - '/open-apis/corehr/v2/offboardings/revoke': { - POST: 'revokeCorehrOffboarding', + '/corehr/v2/offboardings/revoke': { + POST: 'revokeCorehrV2Offboarding', }, - '/open-apis/corehr/v1/offboardings/search': { - POST: { name: 'searchCorehrOffboarding', pagination: { argIndex: 1 } }, + '/corehr/v1/offboardings/search': { + POST: { name: 'searchCorehrV1Offboarding', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v1/contracts': { - POST: 'createCorehrContract', - GET: { name: 'listCorehrContract', pagination: { argIndex: 0 } }, + '/corehr/v1/contracts': { + POST: 'createCorehrV1Contract', + GET: { name: 'listCorehrV1Contract', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/contracts/{contract_id}': { - PATCH: 'patchCorehrContract', - DELETE: 'deleteCorehrContract', - GET: 'getCorehrContract', + '/corehr/v1/contracts/{contract_id}': { + PATCH: 'patchCorehrV1Contract', + DELETE: 'deleteCorehrV1Contract', + GET: 'getCorehrV1Contract', }, - '/open-apis/corehr/v2/contracts/search': { - POST: { name: 'searchCorehrContract', pagination: { argIndex: 1 } }, + '/corehr/v2/contracts/search': { + POST: { name: 'searchCorehrV2Contract', pagination: { argIndex: 1 } }, }, - '/open-apis/corehr/v2/workforce_plan_detail_row/batchSave': { - POST: 'batchSaveCorehrWorkforcePlanDetailRow', + '/corehr/v2/workforce_plan_detail_row/batchSave': { + POST: 'batchSaveCorehrV2WorkforcePlanDetailRow', }, - '/open-apis/corehr/v2/workforce_plan_detail_row/batchDelete': { - POST: 'batchDeleteCorehrWorkforcePlanDetailRow', + '/corehr/v2/workforce_plan_detail_row/batchDelete': { + POST: 'batchDeleteCorehrV2WorkforcePlanDetailRow', }, - '/open-apis/corehr/v2/report_detail_row/batchSave': { - POST: 'batchSaveCorehrReportDetailRow', + '/corehr/v2/report_detail_row/batchSave': { + POST: 'batchSaveCorehrV2ReportDetailRow', }, - '/open-apis/corehr/v2/report_detail_row/batchDelete': { - POST: 'batchDeleteCorehrReportDetailRow', + '/corehr/v2/report_detail_row/batchDelete': { + POST: 'batchDeleteCorehrV2ReportDetailRow', }, - '/open-apis/corehr/v2/workforce_plans': { - GET: 'listCorehrWorkforcePlan', + '/corehr/v2/workforce_plans': { + GET: 'listCorehrV2WorkforcePlan', }, - '/open-apis/corehr/v2/workforce_plan_details/batch': { - POST: 'batchCorehrWorkforcePlanDetail', + '/corehr/v2/workforce_plan_details/batch': { + POST: 'batchCorehrV2WorkforcePlanDetail', }, - '/open-apis/corehr/v1/leave_granting_records': { - POST: 'createCorehrLeaveGrantingRecord', + '/corehr/v1/leave_granting_records': { + POST: 'createCorehrV1LeaveGrantingRecord', }, - '/open-apis/corehr/v1/leave_granting_records/{leave_granting_record_id}': { - DELETE: 'deleteCorehrLeaveGrantingRecord', + '/corehr/v1/leave_granting_records/{leave_granting_record_id}': { + DELETE: 'deleteCorehrV1LeaveGrantingRecord', }, - '/open-apis/corehr/v1/leaves/leave_types': { - GET: { name: 'leaveTypesCorehrLeave', pagination: { argIndex: 0, itemsKey: 'leave_type_list' } }, + '/corehr/v1/leaves/leave_types': { + GET: { name: 'leaveTypesCorehrV1Leave', pagination: { argIndex: 0, itemsKey: 'leave_type_list' } }, }, - '/open-apis/corehr/v1/leaves/leave_balances': { - GET: { name: 'leaveBalancesCorehrLeave', pagination: { argIndex: 0, itemsKey: 'employment_leave_balance_list' } }, + '/corehr/v1/leaves/leave_balances': { + GET: { name: 'leaveBalancesCorehrV1Leave', pagination: { argIndex: 0, itemsKey: 'employment_leave_balance_list' } }, }, - '/open-apis/corehr/v1/leaves/leave_request_history': { - GET: { name: 'leaveRequestHistoryCorehrLeave', pagination: { argIndex: 0, itemsKey: 'leave_request_list' } }, + '/corehr/v1/leaves/leave_request_history': { + GET: { name: 'leaveRequestHistoryCorehrV1Leave', pagination: { argIndex: 0, itemsKey: 'leave_request_list' } }, }, - '/open-apis/corehr/v1/leaves/work_calendar': { - POST: 'workCalendarCorehrLeave', + '/corehr/v1/leaves/work_calendar': { + POST: 'workCalendarCorehrV1Leave', }, - '/open-apis/corehr/v1/leaves/calendar_by_scope': { - GET: 'calendarByScopeCorehrLeave', + '/corehr/v1/leaves/calendar_by_scope': { + GET: 'calendarByScopeCorehrV1Leave', }, - '/open-apis/corehr/v1/leaves/work_calendar_date': { - POST: 'workCalendarDateCorehrLeave', + '/corehr/v1/leaves/work_calendar_date': { + POST: 'workCalendarDateCorehrV1Leave', }, - '/open-apis/corehr/v1/authorizations/query': { - GET: { name: 'queryCorehrAuthorization', pagination: { argIndex: 0 } }, + '/corehr/v1/authorizations/query': { + GET: { name: 'queryCorehrV1Authorization', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/authorizations/get_by_param': { - GET: 'getByParamCorehrAuthorization', + '/corehr/v1/authorizations/get_by_param': { + GET: 'getByParamCorehrV1Authorization', }, - '/open-apis/corehr/v1/security_groups': { - GET: { name: 'listCorehrSecurityGroup', pagination: { argIndex: 0 } }, + '/corehr/v1/security_groups': { + GET: { name: 'listCorehrV1SecurityGroup', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/authorizations/add_role_assign': { - POST: 'addRoleAssignCorehrAuthorization', + '/corehr/v1/authorizations/add_role_assign': { + POST: 'addRoleAssignCorehrV1Authorization', }, - '/open-apis/corehr/v1/authorizations/update_role_assign': { - POST: 'updateRoleAssignCorehrAuthorization', + '/corehr/v1/authorizations/update_role_assign': { + POST: 'updateRoleAssignCorehrV1Authorization', }, - '/open-apis/corehr/v1/authorizations/remove_role_assign': { - POST: 'removeRoleAssignCorehrAuthorization', + '/corehr/v1/authorizations/remove_role_assign': { + POST: 'removeRoleAssignCorehrV1Authorization', }, - '/open-apis/corehr/v2/employees/bps/batch_get': { - POST: 'batchGetCorehrEmployeesBp', + '/corehr/v2/employees/bps/batch_get': { + POST: 'batchGetCorehrV2EmployeesBp', }, - '/open-apis/corehr/v2/bps/get_by_department': { - POST: 'getByDepartmentCorehrBp', + '/corehr/v2/bps/get_by_department': { + POST: 'getByDepartmentCorehrV2Bp', }, - '/open-apis/corehr/v1/security_groups/query': { - POST: 'queryCorehrSecurityGroup', + '/corehr/v1/security_groups/query': { + POST: 'queryCorehrV1SecurityGroup', }, - '/open-apis/corehr/v2/bps': { - GET: { name: 'listCorehrBp', pagination: { argIndex: 0 } }, + '/corehr/v2/bps': { + GET: { name: 'listCorehrV2Bp', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/assigned_users/search': { - POST: 'searchCorehrAssignedUser', + '/corehr/v1/assigned_users/search': { + POST: 'searchCorehrV1AssignedUser', }, - '/open-apis/corehr/v2/processes': { - GET: { name: 'listCorehrProcess', pagination: { argIndex: 0, itemsKey: 'process_ids' } }, + '/corehr/v2/processes': { + GET: { name: 'listCorehrV2Process', pagination: { argIndex: 0, itemsKey: 'process_ids' } }, }, - '/open-apis/corehr/v2/processes/{process_id}': { - GET: 'getCorehrProcess', + '/corehr/v2/processes/{process_id}': { + GET: 'getCorehrV2Process', }, - '/open-apis/corehr/v2/processes/{process_id}/form_variable_data': { - GET: 'getCorehrProcessFormVariableData', + '/corehr/v2/processes/{process_id}/form_variable_data': { + GET: 'getCorehrV2ProcessFormVariableData', }, - '/open-apis/corehr/v2/process_revoke/{process_id}': { - PUT: 'updateCorehrProcessRevoke', + '/corehr/v2/process_revoke/{process_id}': { + PUT: 'updateCorehrV2ProcessRevoke', }, - '/open-apis/corehr/v2/process_withdraw/{process_id}': { - PUT: 'updateCorehrProcessWithdraw', + '/corehr/v2/process_withdraw/{process_id}': { + PUT: 'updateCorehrV2ProcessWithdraw', }, - '/open-apis/corehr/v2/approvers': { - GET: { name: 'listCorehrApprover', pagination: { argIndex: 0, itemsKey: 'approver_list' } }, + '/corehr/v2/approvers': { + GET: { name: 'listCorehrV2Approver', pagination: { argIndex: 0, itemsKey: 'approver_list' } }, }, - '/open-apis/corehr/v2/processes/{process_id}/approvers/{approver_id}': { - PUT: 'updateCorehrProcessApprover', + '/corehr/v2/processes/{process_id}/approvers/{approver_id}': { + PUT: 'updateCorehrV2ProcessApprover', }, - '/open-apis/corehr/v2/processes/{process_id}/extra': { - PUT: 'updateCorehrProcessExtra', + '/corehr/v2/processes/{process_id}/extra': { + PUT: 'updateCorehrV2ProcessExtra', }, - '/open-apis/corehr/v2/processes/{process_id}/transfer': { - PUT: 'updateCorehrProcessTransfer', + '/corehr/v2/processes/{process_id}/transfer': { + PUT: 'updateCorehrV2ProcessTransfer', }, - '/open-apis/corehr/v1/compensation_standards/match': { - GET: 'matchCorehrCompensationStandard', + '/corehr/v1/compensation_standards/match': { + GET: 'matchCorehrV1CompensationStandard', }, - '/open-apis/corehr/v1/processes/{process_id}/form_variable_data': { - GET: 'getCorehrProcessFormVariableData', + '/corehr/v1/processes/{process_id}/form_variable_data': { + GET: 'getCorehrV1ProcessFormVariableData', }, - '/open-apis/corehr/v1/subregions': { - GET: { name: 'listCorehrSubregion', pagination: { argIndex: 0 } }, + '/corehr/v1/subregions': { + GET: { name: 'listCorehrV1Subregion', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/subregions/{subregion_id}': { - GET: 'getCorehrSubregion', + '/corehr/v1/subregions/{subregion_id}': { + GET: 'getCorehrV1Subregion', }, - '/open-apis/corehr/v1/subdivisions': { - GET: { name: 'listCorehrSubdivision', pagination: { argIndex: 0 } }, + '/corehr/v1/subdivisions': { + GET: { name: 'listCorehrV1Subdivision', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/subdivisions/{subdivision_id}': { - GET: 'getCorehrSubdivision', + '/corehr/v1/subdivisions/{subdivision_id}': { + GET: 'getCorehrV1Subdivision', }, - '/open-apis/corehr/v1/country_regions': { - GET: { name: 'listCorehrCountryRegion', pagination: { argIndex: 0 } }, + '/corehr/v1/country_regions': { + GET: { name: 'listCorehrV1CountryRegion', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/country_regions/{country_region_id}': { - GET: 'getCorehrCountryRegion', + '/corehr/v1/country_regions/{country_region_id}': { + GET: 'getCorehrV1CountryRegion', }, - '/open-apis/corehr/v1/currencies': { - GET: { name: 'listCorehrCurrency', pagination: { argIndex: 0 } }, + '/corehr/v1/currencies': { + GET: { name: 'listCorehrV1Currency', pagination: { argIndex: 0 } }, }, - '/open-apis/corehr/v1/currencies/{currency_id}': { - GET: 'getCorehrCurrency', + '/corehr/v1/currencies/{currency_id}': { + GET: 'getCorehrV1Currency', }, - '/open-apis/corehr/v1/departments/{department_id}': { - DELETE: 'deleteCorehrDepartment', - PATCH: 'patchCorehrDepartment', - GET: 'getCorehrDepartment', + '/corehr/v1/departments/{department_id}': { + DELETE: 'deleteCorehrV1Department', + PATCH: 'patchCorehrV1Department', + GET: 'getCorehrV1Department', }, - '/open-apis/corehr/v1/persons': { - POST: 'createCorehrPerson', + '/corehr/v1/persons': { + POST: 'createCorehrV1Person', }, - '/open-apis/corehr/v1/offboardings/submit': { - POST: 'submitCorehrOffboarding', + '/corehr/v1/offboardings/submit': { + POST: 'submitCorehrV1Offboarding', }, }) diff --git a/adapters/lark/src/types/docs.ts b/adapters/lark/src/types/docs.ts index 6683e78c..f615d15d 100644 --- a/adapters/lark/src/types/docs.ts +++ b/adapters/lark/src/types/docs.ts @@ -27,7 +27,7 @@ export interface GetDocsContentResponse { } Internal.define({ - '/open-apis/docs/v1/content': { + '/docs/v1/content': { GET: 'getDocsContent', }, }) diff --git a/adapters/lark/src/types/document_ai.ts b/adapters/lark/src/types/document_ai.ts index fbe09c41..1d781f8a 100644 --- a/adapters/lark/src/types/document_ai.ts +++ b/adapters/lark/src/types/document_ai.ts @@ -295,58 +295,58 @@ export interface RecognizeDocumentAiBusinessCardResponse { } Internal.define({ - '/open-apis/document_ai/v1/resume/parse': { + '/document_ai/v1/resume/parse': { POST: { name: 'parseDocumentAiResume', multipart: true }, }, - '/open-apis/document_ai/v1/vehicle_invoice/recognize': { + '/document_ai/v1/vehicle_invoice/recognize': { POST: { name: 'recognizeDocumentAiVehicleInvoice', multipart: true }, }, - '/open-apis/document_ai/v1/health_certificate/recognize': { + '/document_ai/v1/health_certificate/recognize': { POST: { name: 'recognizeDocumentAiHealthCertificate', multipart: true }, }, - '/open-apis/document_ai/v1/hkm_mainland_travel_permit/recognize': { + '/document_ai/v1/hkm_mainland_travel_permit/recognize': { POST: { name: 'recognizeDocumentAiHkmMainlandTravelPermit', multipart: true }, }, - '/open-apis/document_ai/v1/tw_mainland_travel_permit/recognize': { + '/document_ai/v1/tw_mainland_travel_permit/recognize': { POST: { name: 'recognizeDocumentAiTwMainlandTravelPermit', multipart: true }, }, - '/open-apis/document_ai/v1/chinese_passport/recognize': { + '/document_ai/v1/chinese_passport/recognize': { POST: { name: 'recognizeDocumentAiChinesePassport', multipart: true }, }, - '/open-apis/document_ai/v1/bank_card/recognize': { + '/document_ai/v1/bank_card/recognize': { POST: { name: 'recognizeDocumentAiBankCard', multipart: true }, }, - '/open-apis/document_ai/v1/vehicle_license/recognize': { + '/document_ai/v1/vehicle_license/recognize': { POST: { name: 'recognizeDocumentAiVehicleLicense', multipart: true }, }, - '/open-apis/document_ai/v1/train_invoice/recognize': { + '/document_ai/v1/train_invoice/recognize': { POST: { name: 'recognizeDocumentAiTrainInvoice', multipart: true }, }, - '/open-apis/document_ai/v1/taxi_invoice/recognize': { + '/document_ai/v1/taxi_invoice/recognize': { POST: { name: 'recognizeDocumentAiTaxiInvoice', multipart: true }, }, - '/open-apis/document_ai/v1/id_card/recognize': { + '/document_ai/v1/id_card/recognize': { POST: { name: 'recognizeDocumentAiIdCard', multipart: true }, }, - '/open-apis/document_ai/v1/food_produce_license/recognize': { + '/document_ai/v1/food_produce_license/recognize': { POST: { name: 'recognizeDocumentAiFoodProduceLicense', multipart: true }, }, - '/open-apis/document_ai/v1/food_manage_license/recognize': { + '/document_ai/v1/food_manage_license/recognize': { POST: { name: 'recognizeDocumentAiFoodManageLicense', multipart: true }, }, - '/open-apis/document_ai/v1/driving_license/recognize': { + '/document_ai/v1/driving_license/recognize': { POST: { name: 'recognizeDocumentAiDrivingLicense', multipart: true }, }, - '/open-apis/document_ai/v1/vat_invoice/recognize': { + '/document_ai/v1/vat_invoice/recognize': { POST: { name: 'recognizeDocumentAiVatInvoice', multipart: true }, }, - '/open-apis/document_ai/v1/business_license/recognize': { + '/document_ai/v1/business_license/recognize': { POST: { name: 'recognizeDocumentAiBusinessLicense', multipart: true }, }, - '/open-apis/document_ai/v1/contract/field_extraction': { + '/document_ai/v1/contract/field_extraction': { POST: { name: 'fieldExtractionDocumentAiContract', multipart: true }, }, - '/open-apis/document_ai/v1/business_card/recognize': { + '/document_ai/v1/business_card/recognize': { POST: { name: 'recognizeDocumentAiBusinessCard', multipart: true }, }, }) diff --git a/adapters/lark/src/types/docx.ts b/adapters/lark/src/types/docx.ts index c8eca599..c9d5ff93 100644 --- a/adapters/lark/src/types/docx.ts +++ b/adapters/lark/src/types/docx.ts @@ -1,5 +1,5 @@ import { Block, BlockIdRelation, DeleteGridColumnRequest, DeleteTableColumnsRequest, DeleteTableRowsRequest, Document, InsertGridColumnRequest, InsertTableColumnRequest, InsertTableRowRequest, MergeTableCellsRequest, ReplaceFileRequest, ReplaceImageRequest, UnmergeTableCellsRequest, UpdateBlockRequest, UpdateGridColumnWidthRatioRequest, UpdateTablePropertyRequest, UpdateTaskRequest, UpdateTextElementsRequest, UpdateTextRequest, UpdateTextStyleRequest } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -440,52 +440,52 @@ export interface BatchDeleteDocxDocumentBlockChildrenResponse { } Internal.define({ - '/open-apis/docx/v1/chats/{chat_id}/announcement': { + '/docx/v1/chats/{chat_id}/announcement': { GET: 'getDocxChatAnnouncement', }, - '/open-apis/docx/v1/chats/{chat_id}/announcement/blocks': { + '/docx/v1/chats/{chat_id}/announcement/blocks': { GET: { name: 'listDocxChatAnnouncementBlock', pagination: { argIndex: 1 } }, }, - '/open-apis/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}/children': { + '/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}/children': { POST: 'createDocxChatAnnouncementBlockChildren', GET: { name: 'getDocxChatAnnouncementBlockChildren', pagination: { argIndex: 2 } }, }, - '/open-apis/docx/v1/chats/{chat_id}/announcement/blocks/batch_update': { + '/docx/v1/chats/{chat_id}/announcement/blocks/batch_update': { PATCH: 'batchUpdateDocxChatAnnouncementBlock', }, - '/open-apis/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}': { + '/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}': { GET: 'getDocxChatAnnouncementBlock', }, - '/open-apis/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}/children/batch_delete': { + '/docx/v1/chats/{chat_id}/announcement/blocks/{block_id}/children/batch_delete': { DELETE: 'batchDeleteDocxChatAnnouncementBlockChildren', }, - '/open-apis/docx/v1/documents': { + '/docx/v1/documents': { POST: 'createDocxDocument', }, - '/open-apis/docx/v1/documents/{document_id}': { + '/docx/v1/documents/{document_id}': { GET: 'getDocxDocument', }, - '/open-apis/docx/v1/documents/{document_id}/raw_content': { + '/docx/v1/documents/{document_id}/raw_content': { GET: 'rawContentDocxDocument', }, - '/open-apis/docx/v1/documents/{document_id}/blocks': { + '/docx/v1/documents/{document_id}/blocks': { GET: { name: 'listDocxDocumentBlock', pagination: { argIndex: 1 } }, }, - '/open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/children': { + '/docx/v1/documents/{document_id}/blocks/{block_id}/children': { POST: 'createDocxDocumentBlockChildren', GET: { name: 'getDocxDocumentBlockChildren', pagination: { argIndex: 2 } }, }, - '/open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/descendant': { + '/docx/v1/documents/{document_id}/blocks/{block_id}/descendant': { POST: 'createDocxDocumentBlockDescendant', }, - '/open-apis/docx/v1/documents/{document_id}/blocks/{block_id}': { + '/docx/v1/documents/{document_id}/blocks/{block_id}': { PATCH: 'patchDocxDocumentBlock', GET: 'getDocxDocumentBlock', }, - '/open-apis/docx/v1/documents/{document_id}/blocks/batch_update': { + '/docx/v1/documents/{document_id}/blocks/batch_update': { PATCH: 'batchUpdateDocxDocumentBlock', }, - '/open-apis/docx/v1/documents/{document_id}/blocks/{block_id}/children/batch_delete': { + '/docx/v1/documents/{document_id}/blocks/{block_id}/children/batch_delete': { DELETE: 'batchDeleteDocxDocumentBlockChildren', }, }) diff --git a/adapters/lark/src/types/drive.ts b/adapters/lark/src/types/drive.ts index 57b7e662..b0b6d8c7 100644 --- a/adapters/lark/src/types/drive.ts +++ b/adapters/lark/src/types/drive.ts @@ -1,5 +1,5 @@ import { BaseMember, ExportTask, File, FileComment, FileCommentReply, FileLike, FileStatistics, FileViewRecord, ImportTask, ImportTaskMountPoint, Member, Meta, MetaFailed, PermissionPublic, Property, ReferEntity, ReplyContent, ReplyList, RequestDoc, TmpDownloadUrl, Version } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -1186,157 +1186,157 @@ export interface PatchDriveV1FileSubscriptionResponse { } Internal.define({ - '/open-apis/drive/v1/files': { + '/drive/v1/files': { GET: { name: 'listDriveV1File', pagination: { argIndex: 0, itemsKey: 'files', tokenKey: 'next_page_token' } }, }, - '/open-apis/drive/v1/files/create_folder': { + '/drive/v1/files/create_folder': { POST: 'createFolderDriveV1File', }, - '/open-apis/drive/v1/files/task_check': { + '/drive/v1/files/task_check': { GET: 'taskCheckDriveV1File', }, - '/open-apis/drive/v1/metas/batch_query': { + '/drive/v1/metas/batch_query': { POST: 'batchQueryDriveV1Meta', }, - '/open-apis/drive/v1/files/{file_token}/statistics': { + '/drive/v1/files/{file_token}/statistics': { GET: 'getDriveV1FileStatistics', }, - '/open-apis/drive/v1/files/{file_token}/view_records': { + '/drive/v1/files/{file_token}/view_records': { GET: { name: 'listDriveV1FileViewRecord', pagination: { argIndex: 1 } }, }, - '/open-apis/drive/v1/files/{file_token}/copy': { + '/drive/v1/files/{file_token}/copy': { POST: 'copyDriveV1File', }, - '/open-apis/drive/v1/files/{file_token}/move': { + '/drive/v1/files/{file_token}/move': { POST: 'moveDriveV1File', }, - '/open-apis/drive/v1/files/{file_token}': { + '/drive/v1/files/{file_token}': { DELETE: 'deleteDriveV1File', }, - '/open-apis/drive/v1/files/create_shortcut': { + '/drive/v1/files/create_shortcut': { POST: 'createShortcutDriveV1File', }, - '/open-apis/drive/v1/files/upload_all': { + '/drive/v1/files/upload_all': { POST: { name: 'uploadAllDriveV1File', multipart: true }, }, - '/open-apis/drive/v1/files/upload_prepare': { + '/drive/v1/files/upload_prepare': { POST: 'uploadPrepareDriveV1File', }, - '/open-apis/drive/v1/files/upload_part': { + '/drive/v1/files/upload_part': { POST: { name: 'uploadPartDriveV1File', multipart: true }, }, - '/open-apis/drive/v1/files/upload_finish': { + '/drive/v1/files/upload_finish': { POST: 'uploadFinishDriveV1File', }, - '/open-apis/drive/v1/files/{file_token}/download': { + '/drive/v1/files/{file_token}/download': { GET: { name: 'downloadDriveV1File', type: 'binary' }, }, - '/open-apis/drive/v1/import_tasks': { + '/drive/v1/import_tasks': { POST: 'createDriveV1ImportTask', }, - '/open-apis/drive/v1/import_tasks/{ticket}': { + '/drive/v1/import_tasks/{ticket}': { GET: 'getDriveV1ImportTask', }, - '/open-apis/drive/v1/export_tasks': { + '/drive/v1/export_tasks': { POST: 'createDriveV1ExportTask', }, - '/open-apis/drive/v1/export_tasks/{ticket}': { + '/drive/v1/export_tasks/{ticket}': { GET: 'getDriveV1ExportTask', }, - '/open-apis/drive/v1/export_tasks/file/{file_token}/download': { + '/drive/v1/export_tasks/file/{file_token}/download': { GET: { name: 'downloadDriveV1ExportTask', type: 'binary' }, }, - '/open-apis/drive/v1/medias/upload_all': { + '/drive/v1/medias/upload_all': { POST: { name: 'uploadAllDriveV1Media', multipart: true }, }, - '/open-apis/drive/v1/medias/upload_prepare': { + '/drive/v1/medias/upload_prepare': { POST: 'uploadPrepareDriveV1Media', }, - '/open-apis/drive/v1/medias/upload_part': { + '/drive/v1/medias/upload_part': { POST: { name: 'uploadPartDriveV1Media', multipart: true }, }, - '/open-apis/drive/v1/medias/upload_finish': { + '/drive/v1/medias/upload_finish': { POST: 'uploadFinishDriveV1Media', }, - '/open-apis/drive/v1/medias/{file_token}/download': { + '/drive/v1/medias/{file_token}/download': { GET: { name: 'downloadDriveV1Media', type: 'binary' }, }, - '/open-apis/drive/v1/medias/batch_get_tmp_download_url': { + '/drive/v1/medias/batch_get_tmp_download_url': { GET: 'batchGetTmpDownloadUrlDriveV1Media', }, - '/open-apis/drive/v1/files/{file_token}/versions': { + '/drive/v1/files/{file_token}/versions': { POST: 'createDriveV1FileVersion', GET: { name: 'listDriveV1FileVersion', pagination: { argIndex: 1 } }, }, - '/open-apis/drive/v1/files/{file_token}/versions/{version_id}': { + '/drive/v1/files/{file_token}/versions/{version_id}': { GET: 'getDriveV1FileVersion', DELETE: 'deleteDriveV1FileVersion', }, - '/open-apis/drive/v2/files/{file_token}/likes': { + '/drive/v2/files/{file_token}/likes': { GET: { name: 'listDriveV2FileLike', pagination: { argIndex: 1 } }, }, - '/open-apis/drive/v1/files/{file_token}/subscribe': { + '/drive/v1/files/{file_token}/subscribe': { POST: 'subscribeDriveV1File', }, - '/open-apis/drive/v1/files/{file_token}/get_subscribe': { + '/drive/v1/files/{file_token}/get_subscribe': { GET: 'getSubscribeDriveV1File', }, - '/open-apis/drive/v1/files/{file_token}/delete_subscribe': { + '/drive/v1/files/{file_token}/delete_subscribe': { DELETE: 'deleteSubscribeDriveV1File', }, - '/open-apis/drive/v1/permissions/{token}/members/batch_create': { + '/drive/v1/permissions/{token}/members/batch_create': { POST: 'batchCreateDriveV1PermissionMember', }, - '/open-apis/drive/v1/permissions/{token}/members/transfer_owner': { + '/drive/v1/permissions/{token}/members/transfer_owner': { POST: 'transferOwnerDriveV1PermissionMember', }, - '/open-apis/drive/v1/permissions/{token}/members/auth': { + '/drive/v1/permissions/{token}/members/auth': { GET: 'authDriveV1PermissionMember', }, - '/open-apis/drive/v1/permissions/{token}/members': { + '/drive/v1/permissions/{token}/members': { GET: 'listDriveV1PermissionMember', POST: 'createDriveV1PermissionMember', }, - '/open-apis/drive/v1/permissions/{token}/members/{member_id}': { + '/drive/v1/permissions/{token}/members/{member_id}': { PUT: 'updateDriveV1PermissionMember', DELETE: 'deleteDriveV1PermissionMember', }, - '/open-apis/drive/v1/permissions/{token}/public/password': { + '/drive/v1/permissions/{token}/public/password': { POST: 'createDriveV1PermissionPublicPassword', PUT: 'updateDriveV1PermissionPublicPassword', DELETE: 'deleteDriveV1PermissionPublicPassword', }, - '/open-apis/drive/v1/permissions/{token}/public': { + '/drive/v1/permissions/{token}/public': { GET: 'getDriveV1PermissionPublic', PATCH: 'patchDriveV1PermissionPublic', }, - '/open-apis/drive/v2/permissions/{token}/public': { + '/drive/v2/permissions/{token}/public': { GET: 'getDriveV2PermissionPublic', PATCH: 'patchDriveV2PermissionPublic', }, - '/open-apis/drive/v1/files/{file_token}/comments': { + '/drive/v1/files/{file_token}/comments': { GET: { name: 'listDriveV1FileComment', pagination: { argIndex: 1 } }, POST: 'createDriveV1FileComment', }, - '/open-apis/drive/v1/files/{file_token}/comments/batch_query': { + '/drive/v1/files/{file_token}/comments/batch_query': { POST: 'batchQueryDriveV1FileComment', }, - '/open-apis/drive/v1/files/{file_token}/comments/{comment_id}': { + '/drive/v1/files/{file_token}/comments/{comment_id}': { PATCH: 'patchDriveV1FileComment', GET: 'getDriveV1FileComment', }, - '/open-apis/drive/v1/files/{file_token}/comments/{comment_id}/replies': { + '/drive/v1/files/{file_token}/comments/{comment_id}/replies': { GET: { name: 'listDriveV1FileCommentReply', pagination: { argIndex: 2 } }, }, - '/open-apis/drive/v1/files/{file_token}/comments/{comment_id}/replies/{reply_id}': { + '/drive/v1/files/{file_token}/comments/{comment_id}/replies/{reply_id}': { PUT: 'updateDriveV1FileCommentReply', DELETE: 'deleteDriveV1FileCommentReply', }, - '/open-apis/drive/v1/files/{file_token}/subscriptions/{subscription_id}': { + '/drive/v1/files/{file_token}/subscriptions/{subscription_id}': { GET: 'getDriveV1FileSubscription', PATCH: 'patchDriveV1FileSubscription', }, - '/open-apis/drive/v1/files/{file_token}/subscriptions': { + '/drive/v1/files/{file_token}/subscriptions': { POST: 'createDriveV1FileSubscription', }, }) diff --git a/adapters/lark/src/types/ehr.ts b/adapters/lark/src/types/ehr.ts index bc00bbbd..d3785f96 100644 --- a/adapters/lark/src/types/ehr.ts +++ b/adapters/lark/src/types/ehr.ts @@ -1,5 +1,5 @@ import { Employee } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -25,9 +25,9 @@ export interface ListEhrEmployeeQuery { /** 返回数据类型 */ view?: 'basic' | 'full' /** 员工状态,不传代表查询所有员工状态实际在职 = 2&4可同时查询多个状态的记录,如 status=2&status=4 */ - status?: 1 | 2 | 3 | 4 | 5[] + status?: (1 | 2 | 3 | 4 | 5)[] /** 雇员类型,不传代表查询所有雇员类型 */ - type?: 1 | 2 | 3 | 4 | 5[] + type?: (1 | 2 | 3 | 4 | 5)[] /** 查询开始时间(创建时间 >= 此时间) */ start_time?: string /** 查询结束时间(创建时间 <= 此时间) */ @@ -39,10 +39,10 @@ export interface ListEhrEmployeeQuery { } Internal.define({ - '/open-apis/ehr/v1/employees': { + '/ehr/v1/employees': { GET: { name: 'listEhrEmployee', pagination: { argIndex: 0 } }, }, - '/open-apis/ehr/v1/attachments/{token}': { + '/ehr/v1/attachments/{token}': { GET: { name: 'getEhrAttachment', type: 'binary' }, }, }) diff --git a/adapters/lark/src/types/event.ts b/adapters/lark/src/types/event.ts index 19d7c2f7..9d8b8530 100644 --- a/adapters/lark/src/types/event.ts +++ b/adapters/lark/src/types/event.ts @@ -1,4 +1,4 @@ -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -16,7 +16,7 @@ declare module '../internal' { } Internal.define({ - '/open-apis/event/v1/outbound_ip': { + '/event/v1/outbound_ip': { GET: { name: 'listEventOutboundIp', pagination: { argIndex: 0, itemsKey: 'ip_list' } }, }, }) diff --git a/adapters/lark/src/types/helpdesk.ts b/adapters/lark/src/types/helpdesk.ts index f5d475a9..8921d2e1 100644 --- a/adapters/lark/src/types/helpdesk.ts +++ b/adapters/lark/src/types/helpdesk.ts @@ -1,5 +1,5 @@ import { AgentSchedule, AgentScheduleUpdateInfo, AgentSkill, AgentSkillRule, Category, CustomizedFieldDisplayItem, Event, Faq, FaqCreateInfo, FaqUpdateInfo, Notification, NotificationChat, NotificationDepartment, NotificationUser, Ticket, TicketCustomizedField, TicketMessage, TicketUser, UserCustomizedField, UserQueryFaqInfo } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -809,118 +809,118 @@ export interface SubmitApproveHelpdeskNotificationResponse { } Internal.define({ - '/open-apis/helpdesk/v1/agents/{agent_id}': { + '/helpdesk/v1/agents/{agent_id}': { PATCH: 'patchHelpdeskAgent', }, - '/open-apis/helpdesk/v1/agent_emails': { + '/helpdesk/v1/agent_emails': { GET: 'agentEmailHelpdeskAgent', }, - '/open-apis/helpdesk/v1/agent_schedules': { + '/helpdesk/v1/agent_schedules': { POST: 'createHelpdeskAgentSchedule', GET: 'listHelpdeskAgentSchedule', }, - '/open-apis/helpdesk/v1/agents/{agent_id}/schedules': { + '/helpdesk/v1/agents/{agent_id}/schedules': { DELETE: 'deleteHelpdeskAgentSchedules', PATCH: 'patchHelpdeskAgentSchedules', GET: 'getHelpdeskAgentSchedules', }, - '/open-apis/helpdesk/v1/agent_skills': { + '/helpdesk/v1/agent_skills': { POST: 'createHelpdeskAgentSkill', GET: 'listHelpdeskAgentSkill', }, - '/open-apis/helpdesk/v1/agent_skills/{agent_skill_id}': { + '/helpdesk/v1/agent_skills/{agent_skill_id}': { DELETE: 'deleteHelpdeskAgentSkill', PATCH: 'patchHelpdeskAgentSkill', GET: 'getHelpdeskAgentSkill', }, - '/open-apis/helpdesk/v1/agent_skill_rules': { + '/helpdesk/v1/agent_skill_rules': { GET: 'listHelpdeskAgentSkillRule', }, - '/open-apis/helpdesk/v1/start_service': { + '/helpdesk/v1/start_service': { POST: 'startServiceHelpdeskTicket', }, - '/open-apis/helpdesk/v1/tickets/{ticket_id}': { + '/helpdesk/v1/tickets/{ticket_id}': { GET: 'getHelpdeskTicket', PUT: 'updateHelpdeskTicket', }, - '/open-apis/helpdesk/v1/tickets': { + '/helpdesk/v1/tickets': { GET: 'listHelpdeskTicket', }, - '/open-apis/helpdesk/v1/ticket_images': { + '/helpdesk/v1/ticket_images': { GET: { name: 'ticketImageHelpdeskTicket', type: 'binary' }, }, - '/open-apis/helpdesk/v1/tickets/{ticket_id}/answer_user_query': { + '/helpdesk/v1/tickets/{ticket_id}/answer_user_query': { POST: 'answerUserQueryHelpdeskTicket', }, - '/open-apis/helpdesk/v1/customized_fields': { + '/helpdesk/v1/customized_fields': { GET: 'customizedFieldsHelpdeskTicket', }, - '/open-apis/helpdesk/v1/tickets/{ticket_id}/messages': { + '/helpdesk/v1/tickets/{ticket_id}/messages': { POST: 'createHelpdeskTicketMessage', GET: 'listHelpdeskTicketMessage', }, - '/open-apis/helpdesk/v1/message': { + '/helpdesk/v1/message': { POST: 'createHelpdeskBotMessage', }, - '/open-apis/helpdesk/v1/ticket_customized_fields': { + '/helpdesk/v1/ticket_customized_fields': { POST: 'createHelpdeskTicketCustomizedField', GET: { name: 'listHelpdeskTicketCustomizedField', pagination: { argIndex: 1, tokenKey: 'next_page_token' } }, }, - '/open-apis/helpdesk/v1/ticket_customized_fields/{ticket_customized_field_id}': { + '/helpdesk/v1/ticket_customized_fields/{ticket_customized_field_id}': { DELETE: 'deleteHelpdeskTicketCustomizedField', PATCH: 'patchHelpdeskTicketCustomizedField', GET: 'getHelpdeskTicketCustomizedField', }, - '/open-apis/helpdesk/v1/faqs': { + '/helpdesk/v1/faqs': { POST: 'createHelpdeskFaq', GET: 'listHelpdeskFaq', }, - '/open-apis/helpdesk/v1/faqs/{id}': { + '/helpdesk/v1/faqs/{id}': { DELETE: 'deleteHelpdeskFaq', PATCH: 'patchHelpdeskFaq', GET: 'getHelpdeskFaq', }, - '/open-apis/helpdesk/v1/faqs/{id}/image/{image_key}': { + '/helpdesk/v1/faqs/{id}/image/{image_key}': { GET: { name: 'faqImageHelpdeskFaq', type: 'binary' }, }, - '/open-apis/helpdesk/v1/faqs/search': { + '/helpdesk/v1/faqs/search': { GET: { name: 'searchHelpdeskFaq', pagination: { argIndex: 0 } }, }, - '/open-apis/helpdesk/v1/categories': { + '/helpdesk/v1/categories': { POST: 'createHelpdeskCategory', GET: 'listHelpdeskCategory', }, - '/open-apis/helpdesk/v1/categories/{id}': { + '/helpdesk/v1/categories/{id}': { GET: 'getHelpdeskCategory', PATCH: 'patchHelpdeskCategory', DELETE: 'deleteHelpdeskCategory', }, - '/open-apis/helpdesk/v1/notifications': { + '/helpdesk/v1/notifications': { POST: 'createHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}': { + '/helpdesk/v1/notifications/{notification_id}': { PATCH: 'patchHelpdeskNotification', GET: 'getHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}/preview': { + '/helpdesk/v1/notifications/{notification_id}/preview': { POST: 'previewHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}/submit_approve': { + '/helpdesk/v1/notifications/{notification_id}/submit_approve': { POST: 'submitApproveHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}/cancel_approve': { + '/helpdesk/v1/notifications/{notification_id}/cancel_approve': { POST: 'cancelApproveHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}/execute_send': { + '/helpdesk/v1/notifications/{notification_id}/execute_send': { POST: 'executeSendHelpdeskNotification', }, - '/open-apis/helpdesk/v1/notifications/{notification_id}/cancel_send': { + '/helpdesk/v1/notifications/{notification_id}/cancel_send': { POST: 'cancelSendHelpdeskNotification', }, - '/open-apis/helpdesk/v1/events/subscribe': { + '/helpdesk/v1/events/subscribe': { POST: 'subscribeHelpdeskEvent', }, - '/open-apis/helpdesk/v1/events/unsubscribe': { + '/helpdesk/v1/events/unsubscribe': { POST: 'unsubscribeHelpdeskEvent', }, }) diff --git a/adapters/lark/src/types/hire.ts b/adapters/lark/src/types/hire.ts index b424efd3..89a4e9cb 100644 --- a/adapters/lark/src/types/hire.ts +++ b/adapters/lark/src/types/hire.ts @@ -1,5 +1,5 @@ -import { Account, Agency, AgencyAccount, AgencyProtection, AgencySupplier, Application, ApplicationDetailInfo, ApplicationOffer, Attachment, AttachmentInfo, BackgroundCheckOrder, BonusAmount, CheckFailedAccountInfo, CombinedJobObjectValueMap, CombinedJobResultDefaultJobPost, CommonFilter, CommonSchema, CompositeTalentAwardInfo, CompositeTalentBasicInfo, CompositeTalentCareerInfo, CompositeTalentCustomizedData, CompositeTalentEducationInfo, CompositeTalentInternshipInfo, CompositeTalentLanguageInfo, CompositeTalentProjectInfo, CompositeTalentSnsInfo, CompositeTalentWorksInfo, DiInfo, EcoAccountCustomFieldData, EcoBackgroundCheckCustomFieldData, EcoBackgroundCheckPackageAdditionalItem, EcoBackgroundCheckPackageData, EcoBackgroundCheckReportFile, EcoExamLoginInfo, EcoExamPaperData, EcoExamResultDetail, EcoExamResultReport, Employee, EmployeeConversionInfo, EmployeeOverboardInfo, Evaluation, EvaluationTask, ExamMarkingTask, ExternalApplication, ExternalBackgroundCheck, ExternalInterview, ExternalInterviewAssessment, ExternalInterviewAssessmentDimension, ExternalOffer, I18n, InternOfferOffboardingInfo, InternOfferOnboardingInfo, Interview, InterviewAppointmentConfig, InterviewExtend, InterviewFeedbackForm, InterviewRecord, InterviewRegistrationSchema, InterviewRoundType, InterviewTask, Interviewer, Job, JobConfigInterviewRoundConf, JobConfigResult, JobConfigRoundType, JobDetail, JobFunction, JobManager, JobProcesses, JobRecruiter2, JobRequirementCustomizedData, JobRequirementDto, JobRequirementSchema, JobRequirementUpdateOption, JobSchema, JobTypeInfo, Location, LocationDto, MentionEntity, Minutes, Mobile, Note, Offer, OfferApplyForm, OfferApplyFormInfo, OfferBasicInfo, OfferCustomFieldConfig, OfferCustomizedInfo, OfferListInfo, OfferSalaryInfo, OfferSchemaDetail, PortalJobPost, Questionnaire, Referral, ReferralInfo, RegistrationBasicInfo, RegistrationSchema, RegistrationSchemaInfo, ResumeSource, Role, RoleDetail, Subject, Talent, TalentBatchInfo, TalentBlock, TalentCombinedAwardInfo, TalentCombinedBasicInfo, TalentCombinedCareerInfo, TalentCombinedEducationInfo, TalentCombinedLanguageInfo, TalentCombinedProjectInfo, TalentCombinedSnsInfo, TalentCombinedWorkInfo, TalentCustomizedDataObjectValue, TalentExternalInfo, TalentFolder, TalentFolderForList, TalentInterview, TalentInterviewRegistrationSimple, TalentNote, TalentOperationLog, TalentPool, TalentResumeAttachment, TalentResumeSource, TalentSelfEvaluation, TalentSimilar, TalentTag, TargetMajorInfo, TerminationReason, Test, Todo, TradeDetail, TripartiteAgreementInfo, UserRole, Website, WebsiteChannelInfo, WebsiteDeliveryAttachmentIndentification, WebsiteDeliveryDto, WebsiteDeliveryResume, WebsiteJobPost, WebsiteUser } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Account, Agency, AgencyAccount, AgencyProtection, AgencySupplier, Application, ApplicationDetailInfo, ApplicationOffer, Attachment, AttachmentInfo, BackgroundCheckOrder, BonusAmount, CheckFailedAccountInfo, CombinedJobObjectValueMap, CombinedJobResultDefaultJobPost, CommonFilter, CommonSchema, CompositeTalentAwardInfo, CompositeTalentBasicInfo, CompositeTalentCareerInfo, CompositeTalentCustomizedData, CompositeTalentEducationInfo, CompositeTalentInternshipInfo, CompositeTalentLanguageInfo, CompositeTalentProjectInfo, CompositeTalentSnsInfo, CompositeTalentWorksInfo, DiInfo, EcoAccountCustomFieldData, EcoBackgroundCheckCustomFieldData, EcoBackgroundCheckPackageAdditionalItem, EcoBackgroundCheckPackageData, EcoBackgroundCheckReportFile, EcoExamLoginInfo, EcoExamPaperData, EcoExamResultDetail, EcoExamResultReport, Employee, EmployeeConversionInfo, EmployeeOverboardInfo, Evaluation, EvaluationTask, ExamMarkingTask, ExternalApplication, ExternalBackgroundCheck, ExternalInterview, ExternalInterviewAssessment, ExternalInterviewAssessmentDimension, ExternalOffer, I18n, InternOfferOffboardingInfo, InternOfferOnboardingInfo, Interview, InterviewAppointmentConfig, Interviewer, InterviewExtend, InterviewFeedbackForm, InterviewRecord, InterviewRegistrationSchema, InterviewRoundType, InterviewTask, Job, JobConfigInterviewRoundConf, JobConfigResult, JobConfigRoundType, JobDetail, JobFunction, JobManager, JobProcesses, JobRecruiter2, JobRequirementCustomizedData, JobRequirementDto, JobRequirementSchema, JobRequirementUpdateOption, JobSchema, JobTypeInfo, Location, LocationDto, MentionEntity, Minutes, Mobile, Note, Offer, OfferApplyForm, OfferApplyFormInfo, OfferBasicInfo, OfferCustomFieldConfig, OfferCustomizedInfo, OfferListInfo, OfferSalaryInfo, OfferSchemaDetail, PortalJobPost, Questionnaire, Referral, ReferralInfo, RegistrationBasicInfo, RegistrationSchema, RegistrationSchemaInfo, ResumeSource, Role, RoleDetail, Subject, Talent, TalentBatchInfo, TalentBlock, TalentCombinedAwardInfo, TalentCombinedBasicInfo, TalentCombinedCareerInfo, TalentCombinedEducationInfo, TalentCombinedLanguageInfo, TalentCombinedProjectInfo, TalentCombinedSnsInfo, TalentCombinedWorkInfo, TalentCustomizedDataObjectValue, TalentExternalInfo, TalentFolder, TalentFolderForList, TalentInterview, TalentInterviewRegistrationSimple, TalentNote, TalentOperationLog, TalentPool, TalentResumeAttachment, TalentResumeSource, TalentSelfEvaluation, TalentSimilar, TalentTag, TargetMajorInfo, TerminationReason, Test, Todo, TradeDetail, TripartiteAgreementInfo, UserRole, Website, WebsiteChannelInfo, WebsiteDeliveryAttachmentIndentification, WebsiteDeliveryDto, WebsiteDeliveryResume, WebsiteJobPost, WebsiteUser } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -1331,7 +1331,7 @@ export interface UpdateConfigHireJobRequest { /** 建议评估人 ID 列表 */ recommended_evaluator_id_list?: string[] /** 更新选项,传入要更新的配置项 */ - update_option_list: 1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12[] + update_option_list: (1 | 2 | 3 | 4 | 5 | 6 | 8 | 9 | 10 | 11 | 12)[] /** 面试评价表,枚举通过接口「获取面试评价表列表」获取 */ assessment_template_biz_id?: string /** 建议面试官列表 */ @@ -1365,7 +1365,7 @@ export interface BatchUpdateHireJobManagerRequest { /** 用人经理 ID */ hiring_manager_id_list?: string[] /** 更新的人员类型,可选值:1=招聘负责人; 2=招聘协助人; 3=用人经理; */ - update_option_list: 1 | 2 | 3[] + update_option_list: (1 | 2 | 3)[] /** 操作者 ID */ creator_id?: string } @@ -2387,7 +2387,7 @@ export interface GetDetailHireApplicationQuery { /** 此次调用中使用的「人员类型 ID」的类型 */ employee_type_id_type?: 'people_admin_employee_type_id' | 'employee_type_enum_id' /** 请求控制参数,用于控制获取哪些关联实体信息。 */ - options?: 'with_job' | 'with_talent' | 'with_interview' | 'with_offer' | 'with_evaluation' | 'with_employee' | 'with_agency' | 'with_referral' | 'with_portal'[] + options?: ('with_job' | 'with_talent' | 'with_interview' | 'with_offer' | 'with_evaluation' | 'with_employee' | 'with_agency' | 'with_referral' | 'with_portal')[] } export interface CreateHireApplicationRequest { @@ -2426,7 +2426,7 @@ export interface GetHireApplicationQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' /** 请求控制参数,用于控制接口响应逻辑。如需一次查询多个用户ID,可通过将同一参数名多次传递,并且每次传递不同的参数值。 */ - options?: 'get_latest_application_on_chain'[] + options?: ('get_latest_application_on_chain')[] } export interface ListHireApplicationQuery { @@ -2441,7 +2441,7 @@ export interface ListHireApplicationQuery { /** 职位 ID */ job_id?: string /** 锁定状态 */ - lock_status?: 1 | 2 | 3[] + lock_status?: (1 | 2 | 3)[] /** 最早更新时间,毫秒级时间戳 */ update_start_time?: string /** 最晚更新时间,毫秒级时间戳 */ @@ -3072,7 +3072,7 @@ export interface DeactivateHireReferralAccountQuery { export interface WithdrawHireReferralAccountRequest { /** 请求提现的奖励类型 */ - withdraw_bonus_type: 1 | 2[] + withdraw_bonus_type: (1 | 2)[] /** 提现单ID,请求时由请求方提供,后续关于本次提现操作的交互都以此提现单ID为标识进行,需要保证唯一,用于保证提现的幂等性,传入重复ID会返回对应提现单提取的金额明细 */ external_order_id: string } @@ -3679,500 +3679,500 @@ export interface GetHireOfferSchemaResponse { } Internal.define({ - '/open-apis/hire/v1/locations/query': { + '/hire/v1/locations/query': { POST: { name: 'queryHireLocation', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/locations': { + '/hire/v1/locations': { GET: { name: 'listHireLocation', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/roles/{role_id}': { + '/hire/v1/roles/{role_id}': { GET: 'getHireRole', }, - '/open-apis/hire/v1/roles': { + '/hire/v1/roles': { GET: { name: 'listHireRole', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/user_roles': { + '/hire/v1/user_roles': { GET: { name: 'listHireUserRole', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/jobs/combined_create': { + '/hire/v1/jobs/combined_create': { POST: 'combinedCreateHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/combined_update': { + '/hire/v1/jobs/{job_id}/combined_update': { POST: 'combinedUpdateHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/update_config': { + '/hire/v1/jobs/{job_id}/update_config': { POST: 'updateConfigHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/managers/batch_update': { + '/hire/v1/jobs/{job_id}/managers/batch_update': { POST: 'batchUpdateHireJobManager', }, - '/open-apis/hire/v1/jobs/{job_id}/get_detail': { + '/hire/v1/jobs/{job_id}/get_detail': { GET: 'getDetailHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}': { + '/hire/v1/jobs/{job_id}': { GET: 'getHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/recruiter': { + '/hire/v1/jobs/{job_id}/recruiter': { GET: 'recruiterHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/config': { + '/hire/v1/jobs/{job_id}/config': { GET: 'configHireJob', }, - '/open-apis/hire/v1/jobs': { + '/hire/v1/jobs': { GET: { name: 'listHireJob', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/jobs/{job_id}/close': { + '/hire/v1/jobs/{job_id}/close': { POST: 'closeHireJob', }, - '/open-apis/hire/v1/jobs/{job_id}/open': { + '/hire/v1/jobs/{job_id}/open': { POST: 'openHireJob', }, - '/open-apis/hire/v1/job_schemas': { + '/hire/v1/job_schemas': { GET: { name: 'listHireJobSchema', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/advertisements/{advertisement_id}/publish': { + '/hire/v1/advertisements/{advertisement_id}/publish': { POST: 'publishHireAdvertisement', }, - '/open-apis/hire/v1/job_publish_records/search': { + '/hire/v1/job_publish_records/search': { POST: { name: 'searchHireJobPublishRecord', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/job_functions': { + '/hire/v1/job_functions': { GET: { name: 'listHireJobFunction', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/job_types': { + '/hire/v1/job_types': { GET: { name: 'listHireJobType', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/job_requirements': { + '/hire/v1/job_requirements': { POST: 'createHireJobRequirement', GET: { name: 'listHireJobRequirement', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/job_requirements/{job_requirement_id}': { + '/hire/v1/job_requirements/{job_requirement_id}': { PUT: 'updateHireJobRequirement', DELETE: 'deleteHireJobRequirement', }, - '/open-apis/hire/v1/job_requirements/search': { + '/hire/v1/job_requirements/search': { POST: 'listByIdHireJobRequirement', }, - '/open-apis/hire/v1/job_requirement_schemas': { + '/hire/v1/job_requirement_schemas': { GET: { name: 'listHireJobRequirementSchema', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/job_processes': { + '/hire/v1/job_processes': { GET: { name: 'listHireJobProcess', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/subjects': { + '/hire/v1/subjects': { GET: { name: 'listHireSubject', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/talent_tags': { + '/hire/v1/talent_tags': { GET: { name: 'listHireTalentTag', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/registration_schemas': { + '/hire/v1/registration_schemas': { GET: { name: 'listHireRegistrationSchema', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interview_feedback_forms': { + '/hire/v1/interview_feedback_forms': { GET: { name: 'listHireInterviewFeedbackForm', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interview_round_types': { + '/hire/v1/interview_round_types': { GET: 'listHireInterviewRoundType', }, - '/open-apis/hire/v1/interview_registration_schemas': { + '/hire/v1/interview_registration_schemas': { GET: { name: 'listHireInterviewRegistrationSchema', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interviewers': { + '/hire/v1/interviewers': { GET: { name: 'listHireInterviewer', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interviewers/{interviewer_id}': { + '/hire/v1/interviewers/{interviewer_id}': { PATCH: 'patchHireInterviewer', }, - '/open-apis/hire/v1/offer_custom_fields/{offer_custom_field_id}': { + '/hire/v1/offer_custom_fields/{offer_custom_field_id}': { PUT: 'updateHireOfferCustomField', }, - '/open-apis/hire/v1/offer_application_forms/{offer_application_form_id}': { + '/hire/v1/offer_application_forms/{offer_application_form_id}': { GET: 'getHireOfferApplicationForm', }, - '/open-apis/hire/v1/offer_application_forms': { + '/hire/v1/offer_application_forms': { GET: { name: 'listHireOfferApplicationForm', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/referrals/search': { + '/hire/v1/referrals/search': { POST: 'searchHireReferral', }, - '/open-apis/hire/v1/referral_websites/job_posts': { + '/hire/v1/referral_websites/job_posts': { GET: { name: 'listHireReferralWebsiteJobPost', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/referral_websites/job_posts/{job_post_id}': { + '/hire/v1/referral_websites/job_posts/{job_post_id}': { GET: 'getHireReferralWebsiteJobPost', }, - '/open-apis/hire/v1/referrals/get_by_application': { + '/hire/v1/referrals/get_by_application': { GET: 'getByApplicationHireReferral', }, - '/open-apis/hire/v1/websites/{website_id}/channels': { + '/hire/v1/websites/{website_id}/channels': { POST: 'createHireWebsiteChannel', GET: { name: 'listHireWebsiteChannel', pagination: { argIndex: 1, itemsKey: 'website_channel_list' } }, }, - '/open-apis/hire/v1/websites/{website_id}/channels/{channel_id}': { + '/hire/v1/websites/{website_id}/channels/{channel_id}': { DELETE: 'deleteHireWebsiteChannel', PUT: 'updateHireWebsiteChannel', }, - '/open-apis/hire/v1/websites/{website_id}/site_users': { + '/hire/v1/websites/{website_id}/site_users': { POST: 'createHireWebsiteSiteUser', }, - '/open-apis/hire/v1/websites/{website_id}/job_posts/{job_post_id}': { + '/hire/v1/websites/{website_id}/job_posts/{job_post_id}': { GET: 'getHireWebsiteJobPost', }, - '/open-apis/hire/v1/websites/{website_id}/job_posts/search': { + '/hire/v1/websites/{website_id}/job_posts/search': { POST: { name: 'searchHireWebsiteJobPost', pagination: { argIndex: 2 } }, }, - '/open-apis/hire/v1/websites/{website_id}/job_posts': { + '/hire/v1/websites/{website_id}/job_posts': { GET: { name: 'listHireWebsiteJobPost', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/websites/{website_id}/deliveries/create_by_resume': { + '/hire/v1/websites/{website_id}/deliveries/create_by_resume': { POST: 'createByResumeHireWebsiteDelivery', }, - '/open-apis/hire/v1/websites/{website_id}/deliveries/create_by_attachment': { + '/hire/v1/websites/{website_id}/deliveries/create_by_attachment': { POST: 'createByAttachmentHireWebsiteDelivery', }, - '/open-apis/hire/v1/websites/{website_id}/delivery_tasks/{delivery_task_id}': { + '/hire/v1/websites/{website_id}/delivery_tasks/{delivery_task_id}': { GET: 'getHireWebsiteDeliveryTask', }, - '/open-apis/hire/v1/websites': { + '/hire/v1/websites': { GET: { name: 'listHireWebsite', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/agencies/protect': { + '/hire/v1/agencies/protect': { POST: 'protectHireAgency', }, - '/open-apis/hire/v1/agencies/{agency_id}': { + '/hire/v1/agencies/{agency_id}': { GET: 'getHireAgency', }, - '/open-apis/hire/v1/agencies/protection_period/search': { + '/hire/v1/agencies/protection_period/search': { POST: 'protectSearchHireAgency', }, - '/open-apis/hire/v1/agencies/query': { + '/hire/v1/agencies/query': { GET: 'queryHireAgency', }, - '/open-apis/hire/v1/agencies/get_agency_account': { + '/hire/v1/agencies/get_agency_account': { POST: { name: 'getAgencyAccountHireAgency', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/agencies/batch_query': { + '/hire/v1/agencies/batch_query': { POST: { name: 'batchQueryHireAgency', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/agencies/operate_agency_account': { + '/hire/v1/agencies/operate_agency_account': { POST: 'operateAgencyAccountHireAgency', }, - '/open-apis/hire/v1/talents/{talent_id}/external_info': { + '/hire/v1/talents/{talent_id}/external_info': { POST: 'createHireTalentExternalInfo', PUT: 'updateHireTalentExternalInfo', }, - '/open-apis/hire/v1/external_applications': { + '/hire/v1/external_applications': { POST: 'createHireExternalApplication', GET: { name: 'listHireExternalApplication', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/external_applications/{external_application_id}': { + '/hire/v1/external_applications/{external_application_id}': { PUT: 'updateHireExternalApplication', DELETE: 'deleteHireExternalApplication', }, - '/open-apis/hire/v1/external_interviews': { + '/hire/v1/external_interviews': { POST: 'createHireExternalInterview', }, - '/open-apis/hire/v1/external_interviews/{external_interview_id}': { + '/hire/v1/external_interviews/{external_interview_id}': { PUT: 'updateHireExternalInterview', DELETE: 'deleteHireExternalInterview', }, - '/open-apis/hire/v1/external_interviews/batch_query': { + '/hire/v1/external_interviews/batch_query': { POST: { name: 'batchQueryHireExternalInterview', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/external_interview_assessments': { + '/hire/v1/external_interview_assessments': { POST: 'createHireExternalInterviewAssessment', }, - '/open-apis/hire/v1/external_interview_assessments/{external_interview_assessment_id}': { + '/hire/v1/external_interview_assessments/{external_interview_assessment_id}': { PATCH: 'patchHireExternalInterviewAssessment', }, - '/open-apis/hire/v1/external_offers': { + '/hire/v1/external_offers': { POST: 'createHireExternalOffer', }, - '/open-apis/hire/v1/external_offers/{external_offer_id}': { + '/hire/v1/external_offers/{external_offer_id}': { PUT: 'updateHireExternalOffer', DELETE: 'deleteHireExternalOffer', }, - '/open-apis/hire/v1/external_offers/batch_query': { + '/hire/v1/external_offers/batch_query': { POST: { name: 'batchQueryHireExternalOffer', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/external_background_checks': { + '/hire/v1/external_background_checks': { POST: 'createHireExternalBackgroundCheck', }, - '/open-apis/hire/v1/external_background_checks/{external_background_check_id}': { + '/hire/v1/external_background_checks/{external_background_check_id}': { PUT: 'updateHireExternalBackgroundCheck', DELETE: 'deleteHireExternalBackgroundCheck', }, - '/open-apis/hire/v1/external_background_checks/batch_query': { + '/hire/v1/external_background_checks/batch_query': { POST: { name: 'batchQueryHireExternalBackgroundCheck', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/external_referral_rewards': { + '/hire/v1/external_referral_rewards': { POST: 'createHireExternalReferralReward', }, - '/open-apis/hire/v1/external_referral_rewards/{external_referral_reward_id}': { + '/hire/v1/external_referral_rewards/{external_referral_reward_id}': { DELETE: 'deleteHireExternalReferralReward', }, - '/open-apis/hire/v1/talent_pools/{talent_pool_id}/batch_change_talent_pool': { + '/hire/v1/talent_pools/{talent_pool_id}/batch_change_talent_pool': { POST: 'batchChangeTalentPoolHireTalentPool', }, - '/open-apis/hire/v1/talent_pools/': { + '/hire/v1/talent_pools/': { GET: { name: 'searchHireTalentPool', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/talent_pools/{talent_pool_id}/talent_relationship': { + '/hire/v1/talent_pools/{talent_pool_id}/talent_relationship': { POST: 'moveTalentHireTalentPool', }, - '/open-apis/hire/v1/talents/{talent_id}/tag': { + '/hire/v1/talents/{talent_id}/tag': { POST: 'tagHireTalent', }, - '/open-apis/hire/v1/talents/combined_create': { + '/hire/v1/talents/combined_create': { POST: 'combinedCreateHireTalent', }, - '/open-apis/hire/v1/talents/combined_update': { + '/hire/v1/talents/combined_update': { POST: 'combinedUpdateHireTalent', }, - '/open-apis/hire/v1/talents/add_to_folder': { + '/hire/v1/talents/add_to_folder': { POST: 'addToFolderHireTalent', }, - '/open-apis/hire/v1/talents/remove_to_folder': { + '/hire/v1/talents/remove_to_folder': { POST: 'removeToFolderHireTalent', }, - '/open-apis/hire/v1/talent_folders': { + '/hire/v1/talent_folders': { GET: { name: 'listHireTalentFolder', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/talents/batch_get_id': { + '/hire/v1/talents/batch_get_id': { POST: 'batchGetIdHireTalent', }, - '/open-apis/hire/v1/talents': { + '/hire/v1/talents': { GET: { name: 'listHireTalent', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/talent_objects/query': { + '/hire/v1/talent_objects/query': { GET: 'queryHireTalentObject', }, - '/open-apis/hire/v1/talents/{talent_id}': { + '/hire/v1/talents/{talent_id}': { GET: 'getHireTalent', }, - '/open-apis/hire/v2/talents/{talent_id}': { + '/hire/v2/talents/{talent_id}': { GET: 'getHireTalent', }, - '/open-apis/hire/v1/talents/{talent_id}/onboard_status': { + '/hire/v1/talents/{talent_id}/onboard_status': { POST: 'onboardStatusHireTalent', }, - '/open-apis/hire/v1/talent_blocklist/change_talent_block': { + '/hire/v1/talent_blocklist/change_talent_block': { POST: 'changeTalentBlockHireTalentBlocklist', }, - '/open-apis/hire/v1/applications/{application_id}/get_detail': { + '/hire/v1/applications/{application_id}/get_detail': { GET: 'getDetailHireApplication', }, - '/open-apis/hire/v1/applications/{application_id}/recover': { + '/hire/v1/applications/{application_id}/recover': { POST: 'recoverHireApplication', }, - '/open-apis/hire/v1/applications': { + '/hire/v1/applications': { POST: 'createHireApplication', GET: { name: 'listHireApplication', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/applications/{application_id}/terminate': { + '/hire/v1/applications/{application_id}/terminate': { POST: 'terminateHireApplication', }, - '/open-apis/hire/v1/applications/{application_id}/transfer_stage': { + '/hire/v1/applications/{application_id}/transfer_stage': { POST: 'transferStageHireApplication', }, - '/open-apis/hire/v1/termination_reasons': { + '/hire/v1/termination_reasons': { GET: { name: 'listHireTerminationReason', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/applications/{application_id}': { + '/hire/v1/applications/{application_id}': { GET: 'getHireApplication', }, - '/open-apis/hire/v1/applications/diversity_inclusions/search': { + '/hire/v1/applications/diversity_inclusions/search': { POST: 'searchHireDiversityInclusion', }, - '/open-apis/hire/v1/evaluations': { + '/hire/v1/evaluations': { GET: { name: 'listHireEvaluation', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/exams': { + '/hire/v1/exams': { POST: 'createHireExam', }, - '/open-apis/hire/v1/tests/search': { + '/hire/v1/tests/search': { POST: { name: 'searchHireTest', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/interviews': { + '/hire/v1/interviews': { GET: { name: 'listHireInterview', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interviews/get_by_talent': { + '/hire/v1/interviews/get_by_talent': { GET: 'getByTalentHireInterview', }, - '/open-apis/hire/v1/interview_records/{interview_record_id}': { + '/hire/v1/interview_records/{interview_record_id}': { GET: 'getHireInterviewRecord', }, - '/open-apis/hire/v2/interview_records/{interview_record_id}': { + '/hire/v2/interview_records/{interview_record_id}': { GET: 'getHireInterviewRecord', }, - '/open-apis/hire/v1/interview_records': { + '/hire/v1/interview_records': { GET: { name: 'listHireInterviewRecord', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v2/interview_records': { + '/hire/v2/interview_records': { GET: { name: 'listHireInterviewRecord', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interview_records/attachments': { + '/hire/v1/interview_records/attachments': { GET: 'getHireInterviewRecordAttachment', }, - '/open-apis/hire/v1/minutes': { + '/hire/v1/minutes': { GET: 'getHireMinutes', }, - '/open-apis/hire/v1/questionnaires': { + '/hire/v1/questionnaires': { GET: { name: 'listHireQuestionnaire', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/offers': { + '/hire/v1/offers': { POST: 'createHireOffer', GET: { name: 'listHireOffer', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/offers/{offer_id}': { + '/hire/v1/offers/{offer_id}': { PUT: 'updateHireOffer', GET: 'getHireOffer', }, - '/open-apis/hire/v1/applications/{application_id}/offer': { + '/hire/v1/applications/{application_id}/offer': { GET: 'offerHireApplication', }, - '/open-apis/hire/v1/offers/{offer_id}/offer_status': { + '/hire/v1/offers/{offer_id}/offer_status': { PATCH: 'offerStatusHireOffer', }, - '/open-apis/hire/v1/offers/{offer_id}/intern_offer_status': { + '/hire/v1/offers/{offer_id}/intern_offer_status': { POST: 'internOfferStatusHireOffer', }, - '/open-apis/hire/v1/background_check_orders': { + '/hire/v1/background_check_orders': { GET: { name: 'listHireBackgroundCheckOrder', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/tripartite_agreements': { + '/hire/v1/tripartite_agreements': { POST: 'createHireTripartiteAgreement', GET: { name: 'listHireTripartiteAgreement', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/tripartite_agreements/{tripartite_agreement_id}': { + '/hire/v1/tripartite_agreements/{tripartite_agreement_id}': { PUT: 'updateHireTripartiteAgreement', DELETE: 'deleteHireTripartiteAgreement', }, - '/open-apis/hire/v1/ehr_import_tasks/{ehr_import_task_id}': { + '/hire/v1/ehr_import_tasks/{ehr_import_task_id}': { PATCH: 'patchHireEhrImportTask', }, - '/open-apis/hire/v1/applications/{application_id}/transfer_onboard': { + '/hire/v1/applications/{application_id}/transfer_onboard': { POST: 'transferOnboardHireApplication', }, - '/open-apis/hire/v1/employees/{employee_id}': { + '/hire/v1/employees/{employee_id}': { PATCH: 'patchHireEmployee', GET: 'getHireEmployee', }, - '/open-apis/hire/v1/employees/get_by_application': { + '/hire/v1/employees/get_by_application': { GET: 'getByApplicationHireEmployee', }, - '/open-apis/hire/v1/todos': { + '/hire/v1/todos': { GET: { name: 'listHireTodo', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/evaluation_tasks': { + '/hire/v1/evaluation_tasks': { GET: { name: 'listHireEvaluationTask', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/exam_marking_tasks': { + '/hire/v1/exam_marking_tasks': { GET: { name: 'listHireExamMarkingTask', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/interview_tasks': { + '/hire/v1/interview_tasks': { GET: { name: 'listHireInterviewTask', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/notes': { + '/hire/v1/notes': { POST: 'createHireNote', GET: { name: 'listHireNote', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/notes/{note_id}': { + '/hire/v1/notes/{note_id}': { PATCH: 'patchHireNote', GET: 'getHireNote', DELETE: 'deleteHireNote', }, - '/open-apis/hire/v1/resume_sources': { + '/hire/v1/resume_sources': { GET: { name: 'listHireResumeSource', pagination: { argIndex: 0 } }, }, - '/open-apis/hire/v1/eco_account_custom_fields': { + '/hire/v1/eco_account_custom_fields': { POST: 'createHireEcoAccountCustomField', }, - '/open-apis/hire/v1/eco_account_custom_fields/batch_update': { + '/hire/v1/eco_account_custom_fields/batch_update': { PATCH: 'batchUpdateHireEcoAccountCustomField', }, - '/open-apis/hire/v1/eco_account_custom_fields/batch_delete': { + '/hire/v1/eco_account_custom_fields/batch_delete': { POST: 'batchDeleteHireEcoAccountCustomField', }, - '/open-apis/hire/v1/eco_background_check_custom_fields': { + '/hire/v1/eco_background_check_custom_fields': { POST: 'createHireEcoBackgroundCheckCustomField', }, - '/open-apis/hire/v1/eco_background_check_custom_fields/batch_update': { + '/hire/v1/eco_background_check_custom_fields/batch_update': { PATCH: 'batchUpdateHireEcoBackgroundCheckCustomField', }, - '/open-apis/hire/v1/eco_background_check_custom_fields/batch_delete': { + '/hire/v1/eco_background_check_custom_fields/batch_delete': { POST: 'batchDeleteHireEcoBackgroundCheckCustomField', }, - '/open-apis/hire/v1/eco_background_check_packages': { + '/hire/v1/eco_background_check_packages': { POST: 'createHireEcoBackgroundCheckPackage', }, - '/open-apis/hire/v1/eco_background_check_packages/batch_update': { + '/hire/v1/eco_background_check_packages/batch_update': { PATCH: 'batchUpdateHireEcoBackgroundCheckPackage', }, - '/open-apis/hire/v1/eco_background_check_packages/batch_delete': { + '/hire/v1/eco_background_check_packages/batch_delete': { POST: 'batchDeleteHireEcoBackgroundCheckPackage', }, - '/open-apis/hire/v1/eco_background_checks/update_progress': { + '/hire/v1/eco_background_checks/update_progress': { POST: 'updateProgressHireEcoBackgroundCheck', }, - '/open-apis/hire/v1/eco_background_checks/update_result': { + '/hire/v1/eco_background_checks/update_result': { POST: 'updateResultHireEcoBackgroundCheck', }, - '/open-apis/hire/v1/eco_background_checks/cancel': { + '/hire/v1/eco_background_checks/cancel': { POST: 'cancelHireEcoBackgroundCheck', }, - '/open-apis/hire/v1/eco_exam_papers': { + '/hire/v1/eco_exam_papers': { POST: 'createHireEcoExamPaper', }, - '/open-apis/hire/v1/eco_exam_papers/batch_update': { + '/hire/v1/eco_exam_papers/batch_update': { PATCH: 'batchUpdateHireEcoExamPaper', }, - '/open-apis/hire/v1/eco_exam_papers/batch_delete': { + '/hire/v1/eco_exam_papers/batch_delete': { POST: 'batchDeleteHireEcoExamPaper', }, - '/open-apis/hire/v1/eco_exams/{exam_id}/login_info': { + '/hire/v1/eco_exams/{exam_id}/login_info': { POST: 'loginInfoHireEcoExam', }, - '/open-apis/hire/v1/eco_exams/{exam_id}/update_result': { + '/hire/v1/eco_exams/{exam_id}/update_result': { POST: 'updateResultHireEcoExam', }, - '/open-apis/hire/v1/referral_account/enable': { + '/hire/v1/referral_account/enable': { POST: 'enableHireReferralAccount', }, - '/open-apis/hire/v1/referral_account/get_account_assets': { + '/hire/v1/referral_account/get_account_assets': { GET: 'getAccountAssetsHireReferralAccount', }, - '/open-apis/hire/v1/referral_account': { + '/hire/v1/referral_account': { POST: 'createHireReferralAccount', }, - '/open-apis/hire/v1/referral_account/{referral_account_id}/deactivate': { + '/hire/v1/referral_account/{referral_account_id}/deactivate': { POST: 'deactivateHireReferralAccount', }, - '/open-apis/hire/v1/referral_account/{referral_account_id}/withdraw': { + '/hire/v1/referral_account/{referral_account_id}/withdraw': { POST: 'withdrawHireReferralAccount', }, - '/open-apis/hire/v1/referral_account/reconciliation': { + '/hire/v1/referral_account/reconciliation': { POST: 'reconciliationHireReferralAccount', }, - '/open-apis/hire/v1/attachments': { + '/hire/v1/attachments': { POST: 'createHireAttachment', }, - '/open-apis/hire/v1/attachments/{attachment_id}': { + '/hire/v1/attachments/{attachment_id}': { GET: 'getHireAttachment', }, - '/open-apis/hire/v1/attachments/{attachment_id}/preview': { + '/hire/v1/attachments/{attachment_id}/preview': { GET: 'previewHireAttachment', }, - '/open-apis/hire/v1/applications/{application_id}/interviews': { + '/hire/v1/applications/{application_id}/interviews': { GET: { name: 'listHireApplicationInterview', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/talent_operation_logs/search': { + '/hire/v1/talent_operation_logs/search': { POST: { name: 'searchHireTalentOperationLog', pagination: { argIndex: 1 } }, }, - '/open-apis/hire/v1/jobs/{job_id}/managers/{manager_id}': { + '/hire/v1/jobs/{job_id}/managers/{manager_id}': { GET: 'getHireJobManager', }, - '/open-apis/hire/v1/offer_schemas/{offer_schema_id}': { + '/hire/v1/offer_schemas/{offer_schema_id}': { GET: 'getHireOfferSchema', }, }) diff --git a/adapters/lark/src/types/human_authentication.ts b/adapters/lark/src/types/human_authentication.ts index e323870c..ec38a1db 100644 --- a/adapters/lark/src/types/human_authentication.ts +++ b/adapters/lark/src/types/human_authentication.ts @@ -32,7 +32,7 @@ export interface CreateHumanAuthenticationIdentityResponse { } Internal.define({ - '/open-apis/human_authentication/v1/identities': { + '/human_authentication/v1/identities': { POST: 'createHumanAuthenticationIdentity', }, }) diff --git a/adapters/lark/src/types/im.ts b/adapters/lark/src/types/im.ts index 281ae2c8..95290581 100644 --- a/adapters/lark/src/types/im.ts +++ b/adapters/lark/src/types/im.ts @@ -1,5 +1,5 @@ import { BatchMessageReadUser, BatchMessageRecallProgress, BatchMessageSendProgress, ChatMenuItem, ChatMenuTree, ChatTab, ChatTopNotice, CreateTag, CreateTagFailReason, Emoji, FailedReason, FollowUp, I18nNames, ListChat, ListMember, ListModerator, Mention, Message, MessageBody, MessageReaction, OpenAppFeedCard, OpenAppFeedCardButtons, OpenFailedUserAppFeedCardItem, Operator, PatchTag, PatchTagFailReason, Pin, ReadUser, RestrictedModeSetting, Sender, TagInfo, TagInfoWithBindVersion, UserOpenAppFeedCardDeleter, UserOpenAppFeedCardUpdater } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -813,7 +813,7 @@ export interface DeleteImChatMenuTreeRequest { export interface PatchImChatMenuItemRequest { /** 修改的字段 */ - update_fields: 'ICON' | 'NAME' | 'I18N_NAME' | 'REDIRECT_LINK'[] + update_fields: ('ICON' | 'NAME' | 'I18N_NAME' | 'REDIRECT_LINK')[] /** 元信息 */ chat_menu_item: ChatMenuItem } @@ -1455,181 +1455,181 @@ export interface PatchImTagResponse { } Internal.define({ - '/open-apis/im/v1/messages': { + '/im/v1/messages': { POST: 'createImMessage', GET: { name: 'listImMessage', pagination: { argIndex: 0 } }, }, - '/open-apis/im/v1/messages/{message_id}/reply': { + '/im/v1/messages/{message_id}/reply': { POST: 'replyImMessage', }, - '/open-apis/im/v1/messages/{message_id}': { + '/im/v1/messages/{message_id}': { PUT: 'updateImMessage', DELETE: 'deleteImMessage', GET: 'getImMessage', PATCH: 'patchImMessage', }, - '/open-apis/im/v1/messages/{message_id}/forward': { + '/im/v1/messages/{message_id}/forward': { POST: 'forwardImMessage', }, - '/open-apis/im/v1/messages/merge_forward': { + '/im/v1/messages/merge_forward': { POST: 'mergeForwardImMessage', }, - '/open-apis/im/v1/threads/{thread_id}/forward': { + '/im/v1/threads/{thread_id}/forward': { POST: 'forwardImThread', }, - '/open-apis/im/v1/messages/{message_id}/push_follow_up': { + '/im/v1/messages/{message_id}/push_follow_up': { POST: 'pushFollowUpImMessage', }, - '/open-apis/im/v1/messages/{message_id}/read_users': { + '/im/v1/messages/{message_id}/read_users': { GET: { name: 'readUsersImMessage', pagination: { argIndex: 1 } }, }, - '/open-apis/im/v1/messages/{message_id}/resources/{file_key}': { + '/im/v1/messages/{message_id}/resources/{file_key}': { GET: { name: 'getImMessageResource', type: 'binary' }, }, - '/open-apis/im/v1/batch_messages/{batch_message_id}': { + '/im/v1/batch_messages/{batch_message_id}': { DELETE: 'deleteImBatchMessage', }, - '/open-apis/im/v1/batch_messages/{batch_message_id}/read_user': { + '/im/v1/batch_messages/{batch_message_id}/read_user': { GET: 'readUserImBatchMessage', }, - '/open-apis/im/v1/batch_messages/{batch_message_id}/get_progress': { + '/im/v1/batch_messages/{batch_message_id}/get_progress': { GET: 'getProgressImBatchMessage', }, - '/open-apis/im/v1/images': { + '/im/v1/images': { POST: { name: 'createImImage', multipart: true }, }, - '/open-apis/im/v1/images/{image_key}': { + '/im/v1/images/{image_key}': { GET: { name: 'getImImage', type: 'binary' }, }, - '/open-apis/im/v1/files': { + '/im/v1/files': { POST: { name: 'createImFile', multipart: true }, }, - '/open-apis/im/v1/files/{file_key}': { + '/im/v1/files/{file_key}': { GET: { name: 'getImFile', type: 'binary' }, }, - '/open-apis/im/v1/messages/{message_id}/urgent_app': { + '/im/v1/messages/{message_id}/urgent_app': { PATCH: 'urgentAppImMessage', }, - '/open-apis/im/v1/messages/{message_id}/urgent_sms': { + '/im/v1/messages/{message_id}/urgent_sms': { PATCH: 'urgentSmsImMessage', }, - '/open-apis/im/v1/messages/{message_id}/urgent_phone': { + '/im/v1/messages/{message_id}/urgent_phone': { PATCH: 'urgentPhoneImMessage', }, - '/open-apis/im/v1/messages/{message_id}/reactions': { + '/im/v1/messages/{message_id}/reactions': { POST: 'createImMessageReaction', GET: { name: 'listImMessageReaction', pagination: { argIndex: 1 } }, }, - '/open-apis/im/v1/messages/{message_id}/reactions/{reaction_id}': { + '/im/v1/messages/{message_id}/reactions/{reaction_id}': { DELETE: 'deleteImMessageReaction', }, - '/open-apis/im/v1/pins': { + '/im/v1/pins': { POST: 'createImPin', GET: { name: 'listImPin', pagination: { argIndex: 0 } }, }, - '/open-apis/im/v1/pins/{message_id}': { + '/im/v1/pins/{message_id}': { DELETE: 'deleteImPin', }, - '/open-apis/im/v2/url_previews/batch_update': { + '/im/v2/url_previews/batch_update': { POST: 'batchUpdateImUrlPreview', }, - '/open-apis/im/v1/chats': { + '/im/v1/chats': { POST: 'createImChat', GET: { name: 'listImChat', pagination: { argIndex: 0 } }, }, - '/open-apis/im/v1/chats/{chat_id}': { + '/im/v1/chats/{chat_id}': { DELETE: 'deleteImChat', PUT: 'updateImChat', GET: 'getImChat', }, - '/open-apis/im/v1/chats/{chat_id}/moderation': { + '/im/v1/chats/{chat_id}/moderation': { PUT: 'updateImChatModeration', GET: 'getImChatModeration', }, - '/open-apis/im/v1/chats/{chat_id}/top_notice/put_top_notice': { + '/im/v1/chats/{chat_id}/top_notice/put_top_notice': { POST: 'putTopNoticeImChatTopNotice', }, - '/open-apis/im/v1/chats/{chat_id}/top_notice/delete_top_notice': { + '/im/v1/chats/{chat_id}/top_notice/delete_top_notice': { POST: 'deleteTopNoticeImChatTopNotice', }, - '/open-apis/im/v1/chats/search': { + '/im/v1/chats/search': { GET: { name: 'searchImChat', pagination: { argIndex: 0 } }, }, - '/open-apis/im/v1/chats/{chat_id}/link': { + '/im/v1/chats/{chat_id}/link': { POST: 'linkImChat', }, - '/open-apis/im/v1/chats/{chat_id}/managers/add_managers': { + '/im/v1/chats/{chat_id}/managers/add_managers': { POST: 'addManagersImChatManagers', }, - '/open-apis/im/v1/chats/{chat_id}/managers/delete_managers': { + '/im/v1/chats/{chat_id}/managers/delete_managers': { POST: 'deleteManagersImChatManagers', }, - '/open-apis/im/v1/chats/{chat_id}/members': { + '/im/v1/chats/{chat_id}/members': { POST: 'createImChatMembers', DELETE: 'deleteImChatMembers', GET: 'getImChatMembers', }, - '/open-apis/im/v1/chats/{chat_id}/members/me_join': { + '/im/v1/chats/{chat_id}/members/me_join': { PATCH: 'meJoinImChatMembers', }, - '/open-apis/im/v1/chats/{chat_id}/members/is_in_chat': { + '/im/v1/chats/{chat_id}/members/is_in_chat': { GET: 'isInChatImChatMembers', }, - '/open-apis/im/v1/chats/{chat_id}/announcement': { + '/im/v1/chats/{chat_id}/announcement': { PATCH: 'patchImChatAnnouncement', GET: 'getImChatAnnouncement', }, - '/open-apis/im/v1/chats/{chat_id}/chat_tabs': { + '/im/v1/chats/{chat_id}/chat_tabs': { POST: 'createImChatTab', }, - '/open-apis/im/v1/chats/{chat_id}/chat_tabs/delete_tabs': { + '/im/v1/chats/{chat_id}/chat_tabs/delete_tabs': { DELETE: 'deleteTabsImChatTab', }, - '/open-apis/im/v1/chats/{chat_id}/chat_tabs/update_tabs': { + '/im/v1/chats/{chat_id}/chat_tabs/update_tabs': { POST: 'updateTabsImChatTab', }, - '/open-apis/im/v1/chats/{chat_id}/chat_tabs/sort_tabs': { + '/im/v1/chats/{chat_id}/chat_tabs/sort_tabs': { POST: 'sortTabsImChatTab', }, - '/open-apis/im/v1/chats/{chat_id}/chat_tabs/list_tabs': { + '/im/v1/chats/{chat_id}/chat_tabs/list_tabs': { GET: 'listTabsImChatTab', }, - '/open-apis/im/v1/chats/{chat_id}/menu_tree': { + '/im/v1/chats/{chat_id}/menu_tree': { POST: 'createImChatMenuTree', DELETE: 'deleteImChatMenuTree', GET: 'getImChatMenuTree', }, - '/open-apis/im/v1/chats/{chat_id}/menu_items/{menu_item_id}': { + '/im/v1/chats/{chat_id}/menu_items/{menu_item_id}': { PATCH: 'patchImChatMenuItem', }, - '/open-apis/im/v1/chats/{chat_id}/menu_tree/sort': { + '/im/v1/chats/{chat_id}/menu_tree/sort': { POST: 'sortImChatMenuTree', }, - '/open-apis/im/v2/app_feed_card': { + '/im/v2/app_feed_card': { POST: 'createImAppFeedCard', }, - '/open-apis/im/v2/app_feed_card/batch': { + '/im/v2/app_feed_card/batch': { PUT: 'updateImAppFeedCardBatch', DELETE: 'deleteImAppFeedCardBatch', }, - '/open-apis/im/v2/feed_cards/bot_time_sentive': { + '/im/v2/feed_cards/bot_time_sentive': { PATCH: 'botTimeSentiveImFeedCard', }, - '/open-apis/im/v2/chat_button': { + '/im/v2/chat_button': { PUT: 'updateImChatButton', }, - '/open-apis/im/v2/feed_cards/{feed_card_id}': { + '/im/v2/feed_cards/{feed_card_id}': { PATCH: 'patchImFeedCard', }, - '/open-apis/im/v2/biz_entity_tag_relation': { + '/im/v2/biz_entity_tag_relation': { GET: 'getImBizEntityTagRelation', POST: 'createImBizEntityTagRelation', PUT: 'updateImBizEntityTagRelation', }, - '/open-apis/im/v2/tags': { + '/im/v2/tags': { POST: 'createImTag', }, - '/open-apis/im/v2/tags/{tag_id}': { + '/im/v2/tags/{tag_id}': { PATCH: 'patchImTag', }, }) diff --git a/adapters/lark/src/types/index.ts b/adapters/lark/src/types/index.ts index eaca95c8..be1339f6 100644 --- a/adapters/lark/src/types/index.ts +++ b/adapters/lark/src/types/index.ts @@ -815,7 +815,7 @@ export interface Alert { /** 告警联系人 */ contacts?: Contact[] /** 通知方式 */ - notifyMethods?: 0 | 1[] + notifyMethods?: (0 | 1)[] /** 规则名称 */ alertRule?: string /** 处理时间 */ @@ -4679,7 +4679,7 @@ export interface CustomMetricConfig { /** 维度允许添加指标下限(包含) */ least_metrics_size?: number /** 添加的指标方式 */ - add_metric_options?: 1 | 2[] + add_metric_options?: (1 | 2)[] } export interface CustomWorkplaceAccessData { @@ -13308,7 +13308,7 @@ export interface RegistrationSchema { /** 信息登记表模板名称 */ name?: string /** 登记表适用场景 */ - scenarios?: 5 | 6 | 14[] + scenarios?: (5 | 6 | 14)[] /** 模块列表 */ objects?: CommonSchema[] } @@ -15254,7 +15254,7 @@ export interface TalentCareerInfo { /** 经历类型 */ career_type?: 1 | 2 | 3 | 4 /** 工作经历标签 */ - tag_list?: 5 | 6 | 14[] + tag_list?: (5 | 6 | 14)[] } export interface TalentCityInfo { @@ -15487,7 +15487,7 @@ export interface TalentEducationInfo { /** 成绩排名 */ academic_ranking?: 5 | 10 | 20 | 30 | 50 | -1 /** 教育经历标签 */ - tag_list?: 1 | 2 | 3 | 4[] + tag_list?: (1 | 2 | 3 | 4)[] } export interface TalentExternalInfo { @@ -16484,13 +16484,13 @@ export interface UpdateTextRequest { /** 更新的文本样式 */ style: TextStyle /** 文本样式中应更新的字段,必须至少指定一个字段。例如,要调整 Block 对齐方式,请设置 fields 为 [1]。 */ - fields: 1 | 2 | 3 | 4 | 5 | 6 | 7[] + fields: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] } export interface UpdateTextStyleRequest { style: TextStyle /** 应更新的字段,必须至少指定一个字段。例如,要调整 Block 对齐方式,请设置 fields 为 [1]。 */ - fields: 1 | 2 | 3 | 4 | 5 | 6 | 7[] + fields: (1 | 2 | 3 | 4 | 5 | 6 | 7)[] } export interface User { @@ -16791,7 +16791,7 @@ export interface UserOpenAppFeedCardUpdater { /** 用户 id */ user_id: string /** 更新字段列表 */ - update_fields: '1' | '2' | '3' | '10' | '11' | '12' | '13' | '101' | '102' | '103'[] + update_fields: ('1' | '2' | '3' | '10' | '11' | '12' | '13' | '101' | '102' | '103')[] } export interface UserOrder { diff --git a/adapters/lark/src/types/lingo.ts b/adapters/lark/src/types/lingo.ts index 1cddd76e..41d7cd76 100644 --- a/adapters/lark/src/types/lingo.ts +++ b/adapters/lark/src/types/lingo.ts @@ -1,5 +1,5 @@ import { Classification, ClassificationFilter, Draft, Entity, I18nEntryDesc, MatchInfo, OuterInfo, Phrase, RelatedMeta, Repo, Term } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -297,40 +297,40 @@ export interface UploadLingoFileResponse { } Internal.define({ - '/open-apis/lingo/v1/drafts': { + '/lingo/v1/drafts': { POST: 'createLingoDraft', }, - '/open-apis/lingo/v1/drafts/{draft_id}': { + '/lingo/v1/drafts/{draft_id}': { PUT: 'updateLingoDraft', }, - '/open-apis/lingo/v1/entities': { + '/lingo/v1/entities': { POST: 'createLingoEntity', GET: { name: 'listLingoEntity', pagination: { argIndex: 0, itemsKey: 'entities' } }, }, - '/open-apis/lingo/v1/entities/{entity_id}': { + '/lingo/v1/entities/{entity_id}': { PUT: 'updateLingoEntity', DELETE: 'deleteLingoEntity', GET: 'getLingoEntity', }, - '/open-apis/lingo/v1/entities/match': { + '/lingo/v1/entities/match': { POST: 'matchLingoEntity', }, - '/open-apis/lingo/v1/entities/search': { + '/lingo/v1/entities/search': { POST: { name: 'searchLingoEntity', pagination: { argIndex: 1, itemsKey: 'entities' } }, }, - '/open-apis/lingo/v1/entities/highlight': { + '/lingo/v1/entities/highlight': { POST: 'highlightLingoEntity', }, - '/open-apis/lingo/v1/classifications': { + '/lingo/v1/classifications': { GET: { name: 'listLingoClassification', pagination: { argIndex: 0 } }, }, - '/open-apis/lingo/v1/repos': { + '/lingo/v1/repos': { GET: 'listLingoRepo', }, - '/open-apis/lingo/v1/files/upload': { + '/lingo/v1/files/upload': { POST: { name: 'uploadLingoFile', multipart: true }, }, - '/open-apis/lingo/v1/files/{file_token}/download': { + '/lingo/v1/files/{file_token}/download': { GET: { name: 'downloadLingoFile', type: 'binary' }, }, }) diff --git a/adapters/lark/src/types/mail.ts b/adapters/lark/src/types/mail.ts index 0b4b1434..71a695d6 100644 --- a/adapters/lark/src/types/mail.ts +++ b/adapters/lark/src/types/mail.ts @@ -1,5 +1,5 @@ import { Attachment, EmailAlias, MailAddress, Mailgroup, MailgroupManager, MailgroupMember, MailgroupPermissionMember, PublicMailbox, PublicMailboxMember, User } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -774,108 +774,108 @@ export interface QueryMailUserResponse { } Internal.define({ - '/open-apis/mail/v1/user_mailboxes/{user_mailbox_id}/messages/send': { + '/mail/v1/user_mailboxes/{user_mailbox_id}/messages/send': { POST: 'sendMailUserMailboxMessage', }, - '/open-apis/mail/v1/mailgroups': { + '/mail/v1/mailgroups': { POST: 'createMailMailgroup', GET: { name: 'listMailMailgroup', pagination: { argIndex: 0 } }, }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}': { + '/mail/v1/mailgroups/{mailgroup_id}': { DELETE: 'deleteMailMailgroup', PATCH: 'patchMailMailgroup', PUT: 'updateMailMailgroup', GET: 'getMailMailgroup', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/managers/batch_create': { + '/mail/v1/mailgroups/{mailgroup_id}/managers/batch_create': { POST: 'batchCreateMailMailgroupManager', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/managers/batch_delete': { + '/mail/v1/mailgroups/{mailgroup_id}/managers/batch_delete': { POST: 'batchDeleteMailMailgroupManager', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/managers': { + '/mail/v1/mailgroups/{mailgroup_id}/managers': { GET: { name: 'listMailMailgroupManager', pagination: { argIndex: 1 } }, }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/members': { + '/mail/v1/mailgroups/{mailgroup_id}/members': { POST: 'createMailMailgroupMember', GET: { name: 'listMailMailgroupMember', pagination: { argIndex: 1 } }, }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/members/{member_id}': { + '/mail/v1/mailgroups/{mailgroup_id}/members/{member_id}': { DELETE: 'deleteMailMailgroupMember', GET: 'getMailMailgroupMember', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/members/batch_create': { + '/mail/v1/mailgroups/{mailgroup_id}/members/batch_create': { POST: 'batchCreateMailMailgroupMember', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/members/batch_delete': { + '/mail/v1/mailgroups/{mailgroup_id}/members/batch_delete': { DELETE: 'batchDeleteMailMailgroupMember', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/aliases': { + '/mail/v1/mailgroups/{mailgroup_id}/aliases': { POST: 'createMailMailgroupAlias', GET: 'listMailMailgroupAlias', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/aliases/{alias_id}': { + '/mail/v1/mailgroups/{mailgroup_id}/aliases/{alias_id}': { DELETE: 'deleteMailMailgroupAlias', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/permission_members': { + '/mail/v1/mailgroups/{mailgroup_id}/permission_members': { POST: 'createMailMailgroupPermissionMember', GET: { name: 'listMailMailgroupPermissionMember', pagination: { argIndex: 1 } }, }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/permission_members/{permission_member_id}': { + '/mail/v1/mailgroups/{mailgroup_id}/permission_members/{permission_member_id}': { DELETE: 'deleteMailMailgroupPermissionMember', GET: 'getMailMailgroupPermissionMember', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/permission_members/batch_create': { + '/mail/v1/mailgroups/{mailgroup_id}/permission_members/batch_create': { POST: 'batchCreateMailMailgroupPermissionMember', }, - '/open-apis/mail/v1/mailgroups/{mailgroup_id}/permission_members/batch_delete': { + '/mail/v1/mailgroups/{mailgroup_id}/permission_members/batch_delete': { DELETE: 'batchDeleteMailMailgroupPermissionMember', }, - '/open-apis/mail/v1/public_mailboxes': { + '/mail/v1/public_mailboxes': { POST: 'createMailPublicMailbox', GET: { name: 'listMailPublicMailbox', pagination: { argIndex: 0 } }, }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}': { + '/mail/v1/public_mailboxes/{public_mailbox_id}': { PATCH: 'patchMailPublicMailbox', PUT: 'updateMailPublicMailbox', GET: 'getMailPublicMailbox', DELETE: 'deleteMailPublicMailbox', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/members': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/members': { POST: 'createMailPublicMailboxMember', GET: { name: 'listMailPublicMailboxMember', pagination: { argIndex: 1 } }, }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/members/{member_id}': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/members/{member_id}': { DELETE: 'deleteMailPublicMailboxMember', GET: 'getMailPublicMailboxMember', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/members/clear': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/members/clear': { POST: 'clearMailPublicMailboxMember', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/members/batch_create': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/members/batch_create': { POST: 'batchCreateMailPublicMailboxMember', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/members/batch_delete': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/members/batch_delete': { DELETE: 'batchDeleteMailPublicMailboxMember', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/aliases': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/aliases': { POST: 'createMailPublicMailboxAlias', GET: 'listMailPublicMailboxAlias', }, - '/open-apis/mail/v1/public_mailboxes/{public_mailbox_id}/aliases/{alias_id}': { + '/mail/v1/public_mailboxes/{public_mailbox_id}/aliases/{alias_id}': { DELETE: 'deleteMailPublicMailboxAlias', }, - '/open-apis/mail/v1/user_mailboxes/{user_mailbox_id}': { + '/mail/v1/user_mailboxes/{user_mailbox_id}': { DELETE: 'deleteMailUserMailbox', }, - '/open-apis/mail/v1/user_mailboxes/{user_mailbox_id}/aliases': { + '/mail/v1/user_mailboxes/{user_mailbox_id}/aliases': { POST: 'createMailUserMailboxAlias', GET: 'listMailUserMailboxAlias', }, - '/open-apis/mail/v1/user_mailboxes/{user_mailbox_id}/aliases/{alias_id}': { + '/mail/v1/user_mailboxes/{user_mailbox_id}/aliases/{alias_id}': { DELETE: 'deleteMailUserMailboxAlias', }, - '/open-apis/mail/v1/users/query': { + '/mail/v1/users/query': { POST: 'queryMailUser', }, }) diff --git a/adapters/lark/src/types/mdm.ts b/adapters/lark/src/types/mdm.ts index f8acbff5..90132c06 100644 --- a/adapters/lark/src/types/mdm.ts +++ b/adapters/lark/src/types/mdm.ts @@ -48,10 +48,10 @@ export interface UnbindMdmUserAuthDataRelationQuery { } Internal.define({ - '/open-apis/mdm/v1/user_auth_data_relations/bind': { + '/mdm/v1/user_auth_data_relations/bind': { POST: 'bindMdmUserAuthDataRelation', }, - '/open-apis/mdm/v1/user_auth_data_relations/unbind': { + '/mdm/v1/user_auth_data_relations/unbind': { POST: 'unbindMdmUserAuthDataRelation', }, }) diff --git a/adapters/lark/src/types/minutes.ts b/adapters/lark/src/types/minutes.ts index 3337e571..7ae9827e 100644 --- a/adapters/lark/src/types/minutes.ts +++ b/adapters/lark/src/types/minutes.ts @@ -37,10 +37,10 @@ export interface GetMinutesMinuteResponse { } Internal.define({ - '/open-apis/minutes/v1/minutes/{minute_token}/statistics': { + '/minutes/v1/minutes/{minute_token}/statistics': { GET: 'getMinutesMinuteStatistics', }, - '/open-apis/minutes/v1/minutes/{minute_token}': { + '/minutes/v1/minutes/{minute_token}': { GET: 'getMinutesMinute', }, }) diff --git a/adapters/lark/src/types/moments.ts b/adapters/lark/src/types/moments.ts index 861694df..2ae41bd0 100644 --- a/adapters/lark/src/types/moments.ts +++ b/adapters/lark/src/types/moments.ts @@ -22,7 +22,7 @@ export interface GetMomentsPostResponse { } Internal.define({ - '/open-apis/moments/v1/posts/{post_id}': { + '/moments/v1/posts/{post_id}': { GET: 'getMomentsPost', }, }) diff --git a/adapters/lark/src/types/okr.ts b/adapters/lark/src/types/okr.ts index 4d27c47e..d2e5ba13 100644 --- a/adapters/lark/src/types/okr.ts +++ b/adapters/lark/src/types/okr.ts @@ -1,5 +1,5 @@ import { ContentBlock, OkrBatch, OkrReview, Period, PeriodRule } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -233,34 +233,34 @@ export interface QueryOkrReviewResponse { } Internal.define({ - '/open-apis/okr/v1/periods': { + '/okr/v1/periods': { POST: 'createOkrPeriod', GET: { name: 'listOkrPeriod', pagination: { argIndex: 0 } }, }, - '/open-apis/okr/v1/periods/{period_id}': { + '/okr/v1/periods/{period_id}': { PATCH: 'patchOkrPeriod', }, - '/open-apis/okr/v1/period_rules': { + '/okr/v1/period_rules': { GET: 'listOkrPeriodRule', }, - '/open-apis/okr/v1/users/{user_id}/okrs': { + '/okr/v1/users/{user_id}/okrs': { GET: 'listOkrUserOkr', }, - '/open-apis/okr/v1/okrs/batch_get': { + '/okr/v1/okrs/batch_get': { GET: 'batchGetOkr', }, - '/open-apis/okr/v1/progress_records': { + '/okr/v1/progress_records': { POST: 'createOkrProgressRecord', }, - '/open-apis/okr/v1/progress_records/{progress_id}': { + '/okr/v1/progress_records/{progress_id}': { DELETE: 'deleteOkrProgressRecord', PUT: 'updateOkrProgressRecord', GET: 'getOkrProgressRecord', }, - '/open-apis/okr/v1/images/upload': { + '/okr/v1/images/upload': { POST: { name: 'uploadOkrImage', multipart: true }, }, - '/open-apis/okr/v1/reviews/query': { + '/okr/v1/reviews/query': { GET: 'queryOkrReview', }, }) diff --git a/adapters/lark/src/types/optical_char_recognition.ts b/adapters/lark/src/types/optical_char_recognition.ts index e15898c3..2d273181 100644 --- a/adapters/lark/src/types/optical_char_recognition.ts +++ b/adapters/lark/src/types/optical_char_recognition.ts @@ -21,7 +21,7 @@ export interface BasicRecognizeOpticalCharRecognitionImageResponse { } Internal.define({ - '/open-apis/optical_char_recognition/v1/image/basic_recognize': { + '/optical_char_recognition/v1/image/basic_recognize': { POST: 'basicRecognizeOpticalCharRecognitionImage', }, }) diff --git a/adapters/lark/src/types/passport.ts b/adapters/lark/src/types/passport.ts index 501a835e..88e15c0d 100644 --- a/adapters/lark/src/types/passport.ts +++ b/adapters/lark/src/types/passport.ts @@ -52,10 +52,10 @@ export interface QueryPassportSessionResponse { } Internal.define({ - '/open-apis/passport/v1/sessions/query': { + '/passport/v1/sessions/query': { POST: 'queryPassportSession', }, - '/open-apis/passport/v1/sessions/logout': { + '/passport/v1/sessions/logout': { POST: 'logoutPassportSession', }, }) diff --git a/adapters/lark/src/types/payroll.ts b/adapters/lark/src/types/payroll.ts index bd932567..2389bf9e 100644 --- a/adapters/lark/src/types/payroll.ts +++ b/adapters/lark/src/types/payroll.ts @@ -1,5 +1,5 @@ import { AcctItem, CostAllocationPlan, CostAllocationReportData, I18nContent, Paygroup } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -69,16 +69,16 @@ export interface ListPayrollCostAllocationReportResponse { } Internal.define({ - '/open-apis/payroll/v1/acct_items': { + '/payroll/v1/acct_items': { GET: { name: 'listPayrollAcctItem', pagination: { argIndex: 0 } }, }, - '/open-apis/payroll/v1/cost_allocation_reports': { + '/payroll/v1/cost_allocation_reports': { GET: 'listPayrollCostAllocationReport', }, - '/open-apis/payroll/v1/cost_allocation_plans': { + '/payroll/v1/cost_allocation_plans': { GET: { name: 'listPayrollCostAllocationPlan', pagination: { argIndex: 0 } }, }, - '/open-apis/payroll/v1/paygroups': { + '/payroll/v1/paygroups': { GET: { name: 'listPayrollPaygroup', pagination: { argIndex: 0 } }, }, }) diff --git a/adapters/lark/src/types/performance.ts b/adapters/lark/src/types/performance.ts index 250f4918..b62c8485 100644 --- a/adapters/lark/src/types/performance.ts +++ b/adapters/lark/src/types/performance.ts @@ -1,5 +1,5 @@ -import { Activity, AdditionalInformation, Field, ImportedMetric, Indicator, MetricField, MetricInLibrary, MetricTag, MetricTemplate, Question, ReviewProfile, ReviewTemplate, Reviewee, RevieweeMetric, Semester, SemesterBaseInfo, StageTask, Template, Unit, WriteUserGroupScopeData } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Activity, AdditionalInformation, Field, ImportedMetric, Indicator, MetricField, MetricInLibrary, MetricTag, MetricTemplate, Question, Reviewee, RevieweeMetric, ReviewProfile, ReviewTemplate, Semester, SemesterBaseInfo, StageTask, Template, Unit, WriteUserGroupScopeData } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -7,141 +7,141 @@ declare module '../internal' { * 获取周期列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v1/semester/list */ - listPerformanceSemester(query?: ListPerformanceSemesterQuery): Promise + listPerformanceV1Semester(query?: ListPerformanceV1SemesterQuery): Promise /** * 获取项目列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/activity/query */ - queryPerformanceActivity(body: QueryPerformanceActivityRequest, query?: QueryPerformanceActivityQuery): Promise + queryPerformanceV2Activity(body: QueryPerformanceV2ActivityRequest, query?: QueryPerformanceV2ActivityQuery): Promise /** * 批量查询补充信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/additional_information/query */ - queryPerformanceAdditionalInformation(body: QueryPerformanceAdditionalInformationRequest, query?: QueryPerformanceAdditionalInformationQuery & Pagination): Promise> + queryPerformanceV2AdditionalInformation(body: QueryPerformanceV2AdditionalInformationRequest, query?: QueryPerformanceV2AdditionalInformationQuery & Pagination): Promise> /** * 批量查询补充信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/additional_information/query */ - queryPerformanceAdditionalInformationIter(body: QueryPerformanceAdditionalInformationRequest, query?: QueryPerformanceAdditionalInformationQuery): AsyncIterator + queryPerformanceV2AdditionalInformationIter(body: QueryPerformanceV2AdditionalInformationRequest, query?: QueryPerformanceV2AdditionalInformationQuery): AsyncIterator /** * 批量导入补充信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/additional_information/import */ - importPerformanceAdditionalInformation(body: ImportPerformanceAdditionalInformationRequest, query?: ImportPerformanceAdditionalInformationQuery): Promise + importPerformanceV2AdditionalInformation(body: ImportPerformanceV2AdditionalInformationRequest, query?: ImportPerformanceV2AdditionalInformationQuery): Promise /** * 批量删除补充信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/additional_informations-batch/delete */ - deletePerformanceAdditionalInformationsBatch(body: DeletePerformanceAdditionalInformationsBatchRequest, query?: DeletePerformanceAdditionalInformationsBatchQuery): Promise + deletePerformanceV2AdditionalInformationsBatch(body: DeletePerformanceV2AdditionalInformationsBatchRequest, query?: DeletePerformanceV2AdditionalInformationsBatchQuery): Promise /** * 更新人员组成员 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/user_group_user_rel/write */ - writePerformanceUserGroupUserRel(body: WritePerformanceUserGroupUserRelRequest, query?: WritePerformanceUserGroupUserRelQuery): Promise + writePerformanceV2UserGroupUserRel(body: WritePerformanceV2UserGroupUserRelRequest, query?: WritePerformanceV2UserGroupUserRelQuery): Promise /** * 获取被评估人信息 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/reviewee/query */ - queryPerformanceReviewee(body: QueryPerformanceRevieweeRequest, query?: QueryPerformanceRevieweeQuery & Pagination): Promise + queryPerformanceV2Reviewee(body: QueryPerformanceV2RevieweeRequest, query?: QueryPerformanceV2RevieweeQuery & Pagination): Promise /** * 获取评估模板配置 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/review_template/query */ - queryPerformanceReviewTemplate(body: QueryPerformanceReviewTemplateRequest, query?: Pagination): Promise> + queryPerformanceV2ReviewTemplate(body: QueryPerformanceV2ReviewTemplateRequest, query?: Pagination): Promise> /** * 获取评估模板配置 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/review_template/query */ - queryPerformanceReviewTemplateIter(body: QueryPerformanceReviewTemplateRequest): AsyncIterator + queryPerformanceV2ReviewTemplateIter(body: QueryPerformanceV2ReviewTemplateRequest): AsyncIterator /** * 获取评估项列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/indicator/query */ - queryPerformanceIndicator(body: QueryPerformanceIndicatorRequest, query?: Pagination): Promise> + queryPerformanceV2Indicator(body: QueryPerformanceV2IndicatorRequest, query?: Pagination): Promise> /** * 获取评估项列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/indicator/query */ - queryPerformanceIndicatorIter(body: QueryPerformanceIndicatorRequest): AsyncIterator + queryPerformanceV2IndicatorIter(body: QueryPerformanceV2IndicatorRequest): AsyncIterator /** * 获取标签填写题配置 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/question/query */ - queryPerformanceQuestion(body: QueryPerformanceQuestionRequest, query?: Pagination): Promise> + queryPerformanceV2Question(body: QueryPerformanceV2QuestionRequest, query?: Pagination): Promise> /** * 获取标签填写题配置 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/question/query */ - queryPerformanceQuestionIter(body: QueryPerformanceQuestionRequest): AsyncIterator + queryPerformanceV2QuestionIter(body: QueryPerformanceV2QuestionRequest): AsyncIterator /** * 获取指标列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_lib/query */ - queryPerformanceMetricLib(body: QueryPerformanceMetricLibRequest, query?: QueryPerformanceMetricLibQuery & Pagination): Promise> + queryPerformanceV2MetricLib(body: QueryPerformanceV2MetricLibRequest, query?: QueryPerformanceV2MetricLibQuery & Pagination): Promise> /** * 获取指标列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_lib/query */ - queryPerformanceMetricLibIter(body: QueryPerformanceMetricLibRequest, query?: QueryPerformanceMetricLibQuery): AsyncIterator + queryPerformanceV2MetricLibIter(body: QueryPerformanceV2MetricLibRequest, query?: QueryPerformanceV2MetricLibQuery): AsyncIterator /** * 获取指标模板列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_template/query */ - queryPerformanceMetricTemplate(body: QueryPerformanceMetricTemplateRequest, query?: QueryPerformanceMetricTemplateQuery & Pagination): Promise> + queryPerformanceV2MetricTemplate(body: QueryPerformanceV2MetricTemplateRequest, query?: QueryPerformanceV2MetricTemplateQuery & Pagination): Promise> /** * 获取指标模板列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_template/query */ - queryPerformanceMetricTemplateIter(body: QueryPerformanceMetricTemplateRequest, query?: QueryPerformanceMetricTemplateQuery): AsyncIterator + queryPerformanceV2MetricTemplateIter(body: QueryPerformanceV2MetricTemplateRequest, query?: QueryPerformanceV2MetricTemplateQuery): AsyncIterator /** * 获取指标字段列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_field/query */ - queryPerformanceMetricField(body: QueryPerformanceMetricFieldRequest): Promise + queryPerformanceV2MetricField(body: QueryPerformanceV2MetricFieldRequest): Promise /** * 获取指标标签列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_tag/list */ - listPerformanceMetricTag(query?: ListPerformanceMetricTagQuery & Pagination): Promise> + listPerformanceV2MetricTag(query?: ListPerformanceV2MetricTagQuery & Pagination): Promise> /** * 获取指标标签列表 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_tag/list */ - listPerformanceMetricTagIter(query?: ListPerformanceMetricTagQuery): AsyncIterator + listPerformanceV2MetricTagIter(query?: ListPerformanceV2MetricTagQuery): AsyncIterator /** * 获取周期任务(指定用户) * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v1/stage_task/find_by_user_list */ - findByUserListPerformanceStageTask(body: FindByUserListPerformanceStageTaskRequest, query?: FindByUserListPerformanceStageTaskQuery): Promise + findByUserListPerformanceV1StageTask(body: FindByUserListPerformanceV1StageTaskRequest, query?: FindByUserListPerformanceV1StageTaskQuery): Promise /** * 获取周期任务(全部用户) * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v1/stage_task/find_by_page */ - findByPagePerformanceStageTask(body: FindByPagePerformanceStageTaskRequest, query?: FindByPagePerformanceStageTaskQuery): Promise + findByPagePerformanceV1StageTask(body: FindByPagePerformanceV1StageTaskRequest, query?: FindByPagePerformanceV1StageTaskQuery): Promise /** * 获取被评估人关键指标结果 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_detail/query */ - queryPerformanceMetricDetail(body: QueryPerformanceMetricDetailRequest, query?: QueryPerformanceMetricDetailQuery): Promise + queryPerformanceV2MetricDetail(body: QueryPerformanceV2MetricDetailRequest, query?: QueryPerformanceV2MetricDetailQuery): Promise /** * 录入被评估人关键指标数据 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/metric_detail/import */ - importPerformanceMetricDetail(body: ImportPerformanceMetricDetailRequest, query?: ImportPerformanceMetricDetailQuery): Promise + importPerformanceV2MetricDetail(body: ImportPerformanceV2MetricDetailRequest, query?: ImportPerformanceV2MetricDetailQuery): Promise /** * 获取绩效结果 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v1/review_data/query */ - queryPerformanceReviewData(body: QueryPerformanceReviewDataRequest, query?: QueryPerformanceReviewDataQuery): Promise + queryPerformanceV1ReviewData(body: QueryPerformanceV1ReviewDataRequest, query?: QueryPerformanceV1ReviewDataQuery): Promise /** * 获取绩效详情数据 * @see https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/review_data/query */ - queryPerformanceReviewData(body: QueryPerformanceReviewDataRequest, query?: QueryPerformanceReviewDataQuery): Promise + queryPerformanceV2ReviewData(body: QueryPerformanceV2ReviewDataRequest, query?: QueryPerformanceV2ReviewDataQuery): Promise } } -export interface ListPerformanceSemesterQuery { +export interface ListPerformanceV1SemesterQuery { /** 周期开始时间 */ start_time?: string /** 周期结束时间 */ @@ -156,18 +156,18 @@ export interface ListPerformanceSemesterQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' } -export interface QueryPerformanceActivityRequest { +export interface QueryPerformanceV2ActivityRequest { /** 评估周期 ID 列表,获取指定评估周期的项目 ID,semester_id 可通过【获取周期】接口获得 */ semester_ids?: string[] /** 项目 ID 列表,如果同时传了「semester_ids」,则优先以「activity_ids」进行查询 */ activity_ids?: string[] } -export interface QueryPerformanceActivityQuery { +export interface QueryPerformanceV2ActivityQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' } -export interface QueryPerformanceAdditionalInformationRequest { +export interface QueryPerformanceV2AdditionalInformationRequest { /** 评估周期 ID 列表,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 事项 ID 列表,获取指定事项 ID 的信息。以下请求参数中「item_ids」、「external_ids」、「reviewee_user_ids」均为空时,返回该评估周期的所有补充信息。若单次请求中多个请求参数有值,按照【item_ids > external_ids > reviewee_user_ids】的顺序只识别第一个有值的请求参数 */ @@ -178,11 +178,11 @@ export interface QueryPerformanceAdditionalInformationRequest { reviewee_user_ids?: string[] } -export interface QueryPerformanceAdditionalInformationQuery { +export interface QueryPerformanceV2AdditionalInformationQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface ImportPerformanceAdditionalInformationRequest { +export interface ImportPerformanceV2AdditionalInformationRequest { /** 评估周期 ID 列表,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 补充信息列表,一次最多 1000 个 */ @@ -191,24 +191,24 @@ export interface ImportPerformanceAdditionalInformationRequest { import_record_name?: string } -export interface ImportPerformanceAdditionalInformationQuery { +export interface ImportPerformanceV2AdditionalInformationQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token: string user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface DeletePerformanceAdditionalInformationsBatchRequest { +export interface DeletePerformanceV2AdditionalInformationsBatchRequest { /** 评估周期 ID 列表,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 补充信息列表,一次最多 100 个 */ additional_informations: string[] } -export interface DeletePerformanceAdditionalInformationsBatchQuery { +export interface DeletePerformanceV2AdditionalInformationsBatchQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' } -export interface WritePerformanceUserGroupUserRelRequest { +export interface WritePerformanceV2UserGroupUserRelRequest { /** 分组id key */ group_id?: string /** 人员组查看人员名单可见性配置 */ @@ -217,14 +217,14 @@ export interface WritePerformanceUserGroupUserRelRequest { user_ids?: string[] } -export interface WritePerformanceUserGroupUserRelQuery { +export interface WritePerformanceV2UserGroupUserRelQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token: string /** 用户ID类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceRevieweeRequest { +export interface QueryPerformanceV2RevieweeRequest { /** 周期 ID,1 次只允许查询 1 个周期,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 用户 ID,类型需要与查询参数中的user_id_type保持一致。不传则默认返回该周期所有被评估人的信息。 */ @@ -233,26 +233,26 @@ export interface QueryPerformanceRevieweeRequest { activity_ids?: string[] } -export interface QueryPerformanceRevieweeQuery { +export interface QueryPerformanceV2RevieweeQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceReviewTemplateRequest { +export interface QueryPerformanceV2ReviewTemplateRequest { /** 评估模板 ID 列表,获取指定评估模板的配置数据。如果不传则返回所有 */ review_template_ids?: string[] } -export interface QueryPerformanceIndicatorRequest { +export interface QueryPerformanceV2IndicatorRequest { /** 评估项 ID 列表,获取指定评估项的配置数据 */ indicator_ids?: string[] } -export interface QueryPerformanceQuestionRequest { +export interface QueryPerformanceV2QuestionRequest { /** 标签填写题 ID 列表,获取指定标签填写题的配置数据。如果不传则返回所有 */ tag_based_question_ids?: string[] } -export interface QueryPerformanceMetricLibRequest { +export interface QueryPerformanceV2MetricLibRequest { /** 状态是否为启用 */ is_active?: boolean /** 指标所属的标签 ID */ @@ -265,32 +265,32 @@ export interface QueryPerformanceMetricLibRequest { scoring_setting_type?: 'score_manually' | 'score_by_formula' } -export interface QueryPerformanceMetricLibQuery { +export interface QueryPerformanceV2MetricLibQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceMetricTemplateRequest { +export interface QueryPerformanceV2MetricTemplateRequest { /** 指标模板 ID 列表,metrics_template_id 可以通过指标模板的后台配置详情页的 url 获取,也可通过本接口的返回值获取。不填写则默认返回所有指标模板 */ metrics_template_ids?: string[] /** 状态 */ status?: 'to_be_configured' | 'to_be_activated' | 'enabled' | 'disabled' } -export interface QueryPerformanceMetricTemplateQuery { +export interface QueryPerformanceV2MetricTemplateQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceMetricFieldRequest { +export interface QueryPerformanceV2MetricFieldRequest { /** 指标的字段 ID,不传则默认获取全部字段信息 */ field_ids?: string[] } -export interface ListPerformanceMetricTagQuery { +export interface ListPerformanceV2MetricTagQuery { /** 指标标签 ID 列表 */ tag_ids?: string[] } -export interface FindByUserListPerformanceStageTaskRequest { +export interface FindByUserListPerformanceV1StageTaskRequest { /** 周期ID,可以通过「查询周期」接口获得 */ semester_id: string /** 用户ID列表 */ @@ -303,12 +303,12 @@ export interface FindByUserListPerformanceStageTaskRequest { before_time?: string } -export interface FindByUserListPerformanceStageTaskQuery { +export interface FindByUserListPerformanceV1StageTaskQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface FindByPagePerformanceStageTaskRequest { +export interface FindByPagePerformanceV1StageTaskRequest { /** 周期ID,可以通过「查询周期」接口获得 */ semester_id: string /** 任务分类(不传默认包含所有) */ @@ -323,23 +323,23 @@ export interface FindByPagePerformanceStageTaskRequest { page_size?: number } -export interface FindByPagePerformanceStageTaskQuery { +export interface FindByPagePerformanceV1StageTaskQuery { /** 调用结果中用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceMetricDetailRequest { +export interface QueryPerformanceV2MetricDetailRequest { /** 周期 ID,1 次只允许查询 1 个周期,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 被评估人 ID 列表。如果不传则返回该周期所有参与的被评估人的关键指标详情 */ reviewee_user_ids: string[] } -export interface QueryPerformanceMetricDetailQuery { +export interface QueryPerformanceV2MetricDetailQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface ImportPerformanceMetricDetailRequest { +export interface ImportPerformanceV2MetricDetailRequest { /** 周期 ID,semester_id 可通过【获取周期】接口获得 */ semester_id: string /** 录入记录名称,数据源录入人在录入记录页面可以查看该记录名称。如果不传则默认为「API 录入」 */ @@ -348,22 +348,22 @@ export interface ImportPerformanceMetricDetailRequest { imported_metrics: ImportedMetric[] } -export interface ImportPerformanceMetricDetailQuery { +export interface ImportPerformanceV2MetricDetailQuery { /** 根据 client_token 是否一致来判断是否为同一请求 */ client_token: string /** 用户ID类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceReviewDataRequest { +export interface QueryPerformanceV1ReviewDataRequest { /** 查询范围的开始日期,毫秒级时间戳,开始日期不能晚于截止日期 */ start_time: string /** 查询范围的截止日期,毫秒级时间戳,截止日期不能早于开始日期 */ end_time: string /** 评估环节类型,目前仅支持上级评估环节和结果沟通环节(不传默认包含所有的环节)**可选值有**:- `leader_review`:上级评估环节- `communication_and_open_result`:结果沟通环节 */ - stage_types: 'leader_review' | 'communication_and_open_result' | 'view_result'[] + stage_types: ('leader_review' | 'communication_and_open_result' | 'view_result')[] /** 评估环节状态(不传默认包含所有的状态)**可选值有**:- `0`:未开始,任务的开始时间未到达- `1`:待完成,任务的开始时间到达而截止时间未到达,且任务未完成- `2`:已截止,任务的截止时间已到达,且任务未完成- `3`:已完成,任务已完成 */ - stage_progress?: 0 | 1 | 2 | 3 | 4[] + stage_progress?: (0 | 1 | 2 | 3 | 4)[] /** 评估周期 ID 列表,semester_id 是一个评估周期的唯一标识,可以通过「我的评估」页面 url 获取,也可通过本接口的返回值获取 */ semester_id_list?: string[] /** 被评估人 ID 列表 */ @@ -372,20 +372,20 @@ export interface QueryPerformanceReviewDataRequest { updated_later_than?: string } -export interface QueryPerformanceReviewDataQuery { +export interface QueryPerformanceV1ReviewDataQuery { /** 此次调用中使用的用户ID的类型 */ user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface QueryPerformanceReviewDataRequest { +export interface QueryPerformanceV2ReviewDataRequest { /** 评估周期 ID 列表,semester_id 可通过【获取周期】 */ semester_ids: string[] /** 被评估人 ID 列表 */ reviewee_user_ids: string[] /** 环节类型 */ - stage_types?: 'summarize_key_outputs' | 'review' | 'communication_and_open_result' | 'view_result' | 'reconsideration' | 'leader_review'[] + stage_types?: ('summarize_key_outputs' | 'review' | 'communication_and_open_result' | 'view_result' | 'reconsideration' | 'leader_review')[] /** 评估型环节的执行人角色,不传默认包含所有的执行人角色。当传入的环节类型中有评估型环节时,返回指定执行人角色的评估型环节数据 */ - review_stage_roles?: 'reviewee' | 'invited_reviewer' | 'solid_line_leader' | 'dotted_line_leader' | 'secondary_solid_line_leader' | 'direct_project_leader' | 'custom_review_role' | 'metric_reviewer'[] + review_stage_roles?: ('reviewee' | 'invited_reviewer' | 'solid_line_leader' | 'dotted_line_leader' | 'secondary_solid_line_leader' | 'direct_project_leader' | 'custom_review_role' | 'metric_reviewer')[] /** 环节 ID,如果同时传了环节 ID 和环节类型,优先返回环节 ID 对应的绩效数据 */ stage_ids?: string[] /** 当要获取的绩效数据的环节类型包含终评环节时,可指定是否需要返回绩效终评数据的具体环节来源。不填则默认不返回 返回的来源枚举值为: 枚举值: review 产生终评结果的评估型环节 calibaration 校准环节 reconsideration 结果复议环节 */ @@ -396,38 +396,38 @@ export interface QueryPerformanceReviewDataRequest { stage_progresses?: number[] } -export interface QueryPerformanceReviewDataQuery { +export interface QueryPerformanceV2ReviewDataQuery { user_id_type?: 'user_id' | 'union_id' | 'open_id' | 'people_admin_id' } -export interface ListPerformanceSemesterResponse { +export interface ListPerformanceV1SemesterResponse { /** 周期meta信息列表 */ items?: Semester[] } -export interface QueryPerformanceActivityResponse { +export interface QueryPerformanceV2ActivityResponse { /** 绩效评估项目列表。 */ activities?: Activity[] } -export interface ImportPerformanceAdditionalInformationResponse { +export interface ImportPerformanceV2AdditionalInformationResponse { /** 导入记录 ID */ import_record_id?: string /** 成功导入后的补充信息列表 */ additional_informations?: AdditionalInformation[] } -export interface DeletePerformanceAdditionalInformationsBatchResponse { +export interface DeletePerformanceV2AdditionalInformationsBatchResponse { /** 被删除的补充信息列表 */ additional_informations?: string[] } -export interface WritePerformanceUserGroupUserRelResponse { +export interface WritePerformanceV2UserGroupUserRelResponse { /** 写入员工范围响应 */ data?: WriteUserGroupScopeData } -export interface QueryPerformanceRevieweeResponse { +export interface QueryPerformanceV2RevieweeResponse { /** 周期ID */ semester_id?: string /** 被评估人列表 */ @@ -438,19 +438,19 @@ export interface QueryPerformanceRevieweeResponse { page_token?: string } -export interface QueryPerformanceMetricFieldResponse { +export interface QueryPerformanceV2MetricFieldResponse { /** 指标字段信息 */ items?: MetricField[] } -export interface FindByUserListPerformanceStageTaskResponse { +export interface FindByUserListPerformanceV1StageTaskResponse { /** 周期基础信息 */ base?: SemesterBaseInfo /** 周期环节信息列表 */ items?: StageTask[] } -export interface FindByPagePerformanceStageTaskResponse { +export interface FindByPagePerformanceV1StageTaskResponse { /** 周期基础信息 */ base?: SemesterBaseInfo /** 周期环节信息列表 */ @@ -461,19 +461,19 @@ export interface FindByPagePerformanceStageTaskResponse { page_token?: string } -export interface QueryPerformanceMetricDetailResponse { +export interface QueryPerformanceV2MetricDetailResponse { /** 周期ID */ semester_id?: string /** 指标明细列表 */ reviewee_metrics?: RevieweeMetric[] } -export interface ImportPerformanceMetricDetailResponse { +export interface ImportPerformanceV2MetricDetailResponse { /** 成功时返回导入记录 ID,失败时则为 null */ import_record_id?: string } -export interface QueryPerformanceReviewDataResponse { +export interface QueryPerformanceV1ReviewDataResponse { /** 绩效评估周期列表 */ semesters?: Semester[] /** 绩效评估项目列表 */ @@ -490,70 +490,70 @@ export interface QueryPerformanceReviewDataResponse { datas?: ReviewProfile[] } -export interface QueryPerformanceReviewDataResponse { +export interface QueryPerformanceV2ReviewDataResponse { /** 评估数据列表 */ datas?: ReviewProfile[] } Internal.define({ - '/open-apis/performance/v1/semesters': { - GET: 'listPerformanceSemester', + '/performance/v1/semesters': { + GET: 'listPerformanceV1Semester', }, - '/open-apis/performance/v2/activity/query': { - POST: 'queryPerformanceActivity', + '/performance/v2/activity/query': { + POST: 'queryPerformanceV2Activity', }, - '/open-apis/performance/v2/additional_informations/query': { - POST: { name: 'queryPerformanceAdditionalInformation', pagination: { argIndex: 1, itemsKey: 'additional_informations' } }, + '/performance/v2/additional_informations/query': { + POST: { name: 'queryPerformanceV2AdditionalInformation', pagination: { argIndex: 1, itemsKey: 'additional_informations' } }, }, - '/open-apis/performance/v2/additional_informations/import': { - POST: 'importPerformanceAdditionalInformation', + '/performance/v2/additional_informations/import': { + POST: 'importPerformanceV2AdditionalInformation', }, - '/open-apis/performance/v2/additional_informations/batch': { - DELETE: 'deletePerformanceAdditionalInformationsBatch', + '/performance/v2/additional_informations/batch': { + DELETE: 'deletePerformanceV2AdditionalInformationsBatch', }, - '/open-apis/performance/v2/user_group_user_rels/write': { - POST: 'writePerformanceUserGroupUserRel', + '/performance/v2/user_group_user_rels/write': { + POST: 'writePerformanceV2UserGroupUserRel', }, - '/open-apis/performance/v2/reviewees/query': { - POST: 'queryPerformanceReviewee', + '/performance/v2/reviewees/query': { + POST: 'queryPerformanceV2Reviewee', }, - '/open-apis/performance/v2/review_templates/query': { - POST: { name: 'queryPerformanceReviewTemplate', pagination: { argIndex: 1, itemsKey: 'review_templates' } }, + '/performance/v2/review_templates/query': { + POST: { name: 'queryPerformanceV2ReviewTemplate', pagination: { argIndex: 1, itemsKey: 'review_templates' } }, }, - '/open-apis/performance/v2/indicators/query': { - POST: { name: 'queryPerformanceIndicator', pagination: { argIndex: 1, itemsKey: 'indicators' } }, + '/performance/v2/indicators/query': { + POST: { name: 'queryPerformanceV2Indicator', pagination: { argIndex: 1, itemsKey: 'indicators' } }, }, - '/open-apis/performance/v2/questions/query': { - POST: { name: 'queryPerformanceQuestion', pagination: { argIndex: 1, itemsKey: 'tag_based_questions' } }, + '/performance/v2/questions/query': { + POST: { name: 'queryPerformanceV2Question', pagination: { argIndex: 1, itemsKey: 'tag_based_questions' } }, }, - '/open-apis/performance/v2/metric_libs/query': { - POST: { name: 'queryPerformanceMetricLib', pagination: { argIndex: 1 } }, + '/performance/v2/metric_libs/query': { + POST: { name: 'queryPerformanceV2MetricLib', pagination: { argIndex: 1 } }, }, - '/open-apis/performance/v2/metric_templates/query': { - POST: { name: 'queryPerformanceMetricTemplate', pagination: { argIndex: 1 } }, + '/performance/v2/metric_templates/query': { + POST: { name: 'queryPerformanceV2MetricTemplate', pagination: { argIndex: 1 } }, }, - '/open-apis/performance/v2/metric_fields/query': { - POST: 'queryPerformanceMetricField', + '/performance/v2/metric_fields/query': { + POST: 'queryPerformanceV2MetricField', }, - '/open-apis/performance/v2/metric_tags': { - GET: { name: 'listPerformanceMetricTag', pagination: { argIndex: 0 } }, + '/performance/v2/metric_tags': { + GET: { name: 'listPerformanceV2MetricTag', pagination: { argIndex: 0 } }, }, - '/open-apis/performance/v1/stage_tasks/find_by_user_list': { - POST: 'findByUserListPerformanceStageTask', + '/performance/v1/stage_tasks/find_by_user_list': { + POST: 'findByUserListPerformanceV1StageTask', }, - '/open-apis/performance/v1/stage_tasks/find_by_page': { - POST: 'findByPagePerformanceStageTask', + '/performance/v1/stage_tasks/find_by_page': { + POST: 'findByPagePerformanceV1StageTask', }, - '/open-apis/performance/v2/metric_details/query': { - POST: 'queryPerformanceMetricDetail', + '/performance/v2/metric_details/query': { + POST: 'queryPerformanceV2MetricDetail', }, - '/open-apis/performance/v2/metric_details/import': { - POST: 'importPerformanceMetricDetail', + '/performance/v2/metric_details/import': { + POST: 'importPerformanceV2MetricDetail', }, - '/open-apis/performance/v1/review_datas/query': { - POST: 'queryPerformanceReviewData', + '/performance/v1/review_datas/query': { + POST: 'queryPerformanceV1ReviewData', }, - '/open-apis/performance/v2/review_datas/query': { - POST: 'queryPerformanceReviewData', + '/performance/v2/review_datas/query': { + POST: 'queryPerformanceV2ReviewData', }, }) diff --git a/adapters/lark/src/types/personal_settings.ts b/adapters/lark/src/types/personal_settings.ts index 6add877f..2d6bbe09 100644 --- a/adapters/lark/src/types/personal_settings.ts +++ b/adapters/lark/src/types/personal_settings.ts @@ -1,5 +1,5 @@ import { SystemStatus, SystemStatusI18nName, SystemStatusSyncSetting, SystemStatusUserCloseResultEntity, SystemStatusUserOpenParam, SystemStatusUserOpenResultEntity } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -60,7 +60,7 @@ export interface PatchPersonalSettingsSystemStatusRequest { /** 系统状态 */ system_status: SystemStatus /** 需要更新的字段 */ - update_fields: 'TITLE' | 'I18N_TITLE' | 'ICON' | 'COLOR' | 'PRIORITY' | 'SYNC_SETTING'[] + update_fields: ('TITLE' | 'I18N_TITLE' | 'ICON' | 'COLOR' | 'PRIORITY' | 'SYNC_SETTING')[] } export interface BatchOpenPersonalSettingsSystemStatusRequest { @@ -104,18 +104,18 @@ export interface BatchClosePersonalSettingsSystemStatusResponse { } Internal.define({ - '/open-apis/personal_settings/v1/system_statuses': { + '/personal_settings/v1/system_statuses': { POST: 'createPersonalSettingsSystemStatus', GET: { name: 'listPersonalSettingsSystemStatus', pagination: { argIndex: 0 } }, }, - '/open-apis/personal_settings/v1/system_statuses/{system_status_id}': { + '/personal_settings/v1/system_statuses/{system_status_id}': { DELETE: 'deletePersonalSettingsSystemStatus', PATCH: 'patchPersonalSettingsSystemStatus', }, - '/open-apis/personal_settings/v1/system_statuses/{system_status_id}/batch_open': { + '/personal_settings/v1/system_statuses/{system_status_id}/batch_open': { POST: 'batchOpenPersonalSettingsSystemStatus', }, - '/open-apis/personal_settings/v1/system_statuses/{system_status_id}/batch_close': { + '/personal_settings/v1/system_statuses/{system_status_id}/batch_close': { POST: 'batchClosePersonalSettingsSystemStatus', }, }) diff --git a/adapters/lark/src/types/report.ts b/adapters/lark/src/types/report.ts index 9011cec6..a19c9909 100644 --- a/adapters/lark/src/types/report.ts +++ b/adapters/lark/src/types/report.ts @@ -65,13 +65,13 @@ export interface QueryReportRuleResponse { } Internal.define({ - '/open-apis/report/v1/rules/query': { + '/report/v1/rules/query': { GET: 'queryReportRule', }, - '/open-apis/report/v1/rules/{rule_id}/views/remove': { + '/report/v1/rules/{rule_id}/views/remove': { POST: 'removeReportRuleView', }, - '/open-apis/report/v1/tasks/query': { + '/report/v1/tasks/query': { POST: 'queryReportTask', }, }) diff --git a/adapters/lark/src/types/search.ts b/adapters/lark/src/types/search.ts index 9f5c2816..ed63155b 100644 --- a/adapters/lark/src/types/search.ts +++ b/adapters/lark/src/types/search.ts @@ -1,5 +1,5 @@ import { Acl, ConnectorParam, DataSource, I18nMeta, Item, ItemContent, ItemMetadata, PatchSchemaProperty, Schema, SchemaDisplay, SchemaProperty } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -250,32 +250,32 @@ export interface GetSearchSchemaResponse { } Internal.define({ - '/open-apis/search/v2/message': { + '/search/v2/message': { POST: { name: 'createSearchMessage', pagination: { argIndex: 1 } }, }, - '/open-apis/search/v2/app': { + '/search/v2/app': { POST: { name: 'createSearchApp', pagination: { argIndex: 1 } }, }, - '/open-apis/search/v2/data_sources': { + '/search/v2/data_sources': { POST: 'createSearchDataSource', GET: { name: 'listSearchDataSource', pagination: { argIndex: 0 } }, }, - '/open-apis/search/v2/data_sources/{data_source_id}': { + '/search/v2/data_sources/{data_source_id}': { DELETE: 'deleteSearchDataSource', PATCH: 'patchSearchDataSource', GET: 'getSearchDataSource', }, - '/open-apis/search/v2/data_sources/{data_source_id}/items': { + '/search/v2/data_sources/{data_source_id}/items': { POST: 'createSearchDataSourceItem', }, - '/open-apis/search/v2/data_sources/{data_source_id}/items/{item_id}': { + '/search/v2/data_sources/{data_source_id}/items/{item_id}': { DELETE: 'deleteSearchDataSourceItem', GET: 'getSearchDataSourceItem', }, - '/open-apis/search/v2/schemas': { + '/search/v2/schemas': { POST: 'createSearchSchema', }, - '/open-apis/search/v2/schemas/{schema_id}': { + '/search/v2/schemas/{schema_id}': { DELETE: 'deleteSearchSchema', PATCH: 'patchSearchSchema', GET: 'getSearchSchema', diff --git a/adapters/lark/src/types/security_and_compliance.ts b/adapters/lark/src/types/security_and_compliance.ts index 8bd9b6c3..7bb11b03 100644 --- a/adapters/lark/src/types/security_and_compliance.ts +++ b/adapters/lark/src/types/security_and_compliance.ts @@ -27,7 +27,7 @@ export interface ListDataSecurityAndComplianceOpenapiLogRequest { } Internal.define({ - '/open-apis/security_and_compliance/v1/openapi_logs/list_data': { + '/security_and_compliance/v1/openapi_logs/list_data': { POST: 'listDataSecurityAndComplianceOpenapiLog', }, }) diff --git a/adapters/lark/src/types/sheets.ts b/adapters/lark/src/types/sheets.ts index 2f95b640..02cdc78d 100644 --- a/adapters/lark/src/types/sheets.ts +++ b/adapters/lark/src/types/sheets.ts @@ -361,65 +361,65 @@ export interface QuerySheetsSpreadsheetSheetFloatImageResponse { } Internal.define({ - '/open-apis/sheets/v3/spreadsheets': { + '/sheets/v3/spreadsheets': { POST: 'createSheetsSpreadsheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}': { + '/sheets/v3/spreadsheets/{spreadsheet_token}': { PATCH: 'patchSheetsSpreadsheet', GET: 'getSheetsSpreadsheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/query': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/query': { GET: 'querySheetsSpreadsheetSheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}': { GET: 'getSheetsSpreadsheetSheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/move_dimension': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/move_dimension': { POST: 'moveDimensionSheetsSpreadsheetSheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/find': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/find': { POST: 'findSheetsSpreadsheetSheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/replace': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/replace': { POST: 'replaceSheetsSpreadsheetSheet', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter': { POST: 'createSheetsSpreadsheetSheetFilter', PUT: 'updateSheetsSpreadsheetSheetFilter', GET: 'getSheetsSpreadsheetSheetFilter', DELETE: 'deleteSheetsSpreadsheetSheetFilter', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views': { POST: 'createSheetsSpreadsheetSheetFilterView', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}': { PATCH: 'patchSheetsSpreadsheetSheetFilterView', GET: 'getSheetsSpreadsheetSheetFilterView', DELETE: 'deleteSheetsSpreadsheetSheetFilterView', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/query': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/query': { GET: 'querySheetsSpreadsheetSheetFilterView', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions': { POST: 'createSheetsSpreadsheetSheetFilterViewCondition', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/{condition_id}': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/{condition_id}': { PUT: 'updateSheetsSpreadsheetSheetFilterViewCondition', GET: 'getSheetsSpreadsheetSheetFilterViewCondition', DELETE: 'deleteSheetsSpreadsheetSheetFilterViewCondition', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/query': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/filter_views/{filter_view_id}/conditions/query': { GET: 'querySheetsSpreadsheetSheetFilterViewCondition', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images': { POST: 'createSheetsSpreadsheetSheetFloatImage', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/{float_image_id}': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/{float_image_id}': { PATCH: 'patchSheetsSpreadsheetSheetFloatImage', GET: 'getSheetsSpreadsheetSheetFloatImage', DELETE: 'deleteSheetsSpreadsheetSheetFloatImage', }, - '/open-apis/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/query': { + '/sheets/v3/spreadsheets/{spreadsheet_token}/sheets/{sheet_id}/float_images/query': { GET: 'querySheetsSpreadsheetSheetFloatImage', }, }) diff --git a/adapters/lark/src/types/speech_to_text.ts b/adapters/lark/src/types/speech_to_text.ts index 71909394..9cecd52a 100644 --- a/adapters/lark/src/types/speech_to_text.ts +++ b/adapters/lark/src/types/speech_to_text.ts @@ -45,10 +45,10 @@ export interface StreamRecognizeSpeechToTextSpeechResponse { } Internal.define({ - '/open-apis/speech_to_text/v1/speech/file_recognize': { + '/speech_to_text/v1/speech/file_recognize': { POST: 'fileRecognizeSpeechToTextSpeech', }, - '/open-apis/speech_to_text/v1/speech/stream_recognize': { + '/speech_to_text/v1/speech/stream_recognize': { POST: 'streamRecognizeSpeechToTextSpeech', }, }) diff --git a/adapters/lark/src/types/task.ts b/adapters/lark/src/types/task.ts index ed493fdf..3e102d55 100644 --- a/adapters/lark/src/types/task.ts +++ b/adapters/lark/src/types/task.ts @@ -1,5 +1,5 @@ -import { Attachment, Collaborator, Comment, CustomComplete, CustomField, DatetimeSetting, DocxSource, Due, Follower, InputComment, InputCustomField, InputCustomFieldValue, InputOption, InputSection, InputTask, InputTasklist, Member, MemberSetting, NumberSetting, Option, Origin, Reminder, Section, SectionSummary, SelectSetting, Start, Task, TaskDependency, TaskInTasklistInfo, TaskSummary, Tasklist, TasklistActivitySubscription, TextSetting } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Attachment, Collaborator, Comment, CustomComplete, CustomField, DatetimeSetting, DocxSource, Due, Follower, InputComment, InputCustomField, InputCustomFieldValue, InputOption, InputSection, InputTask, InputTasklist, Member, MemberSetting, NumberSetting, Option, Origin, Reminder, Section, SectionSummary, SelectSetting, Start, Task, TaskDependency, TaskInTasklistInfo, Tasklist, TasklistActivitySubscription, TaskSummary, TextSetting } from '.' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -739,7 +739,7 @@ export interface PatchTaskV2TasklistActivitySubscriptionRequest { /** 要更新的订阅数据 */ activity_subscription: TasklistActivitySubscription /** 要更新的字段 */ - update_fields: 'name' | 'include_keys' | 'subscribers' | 'disabled'[] + update_fields: ('name' | 'include_keys' | 'subscribers' | 'disabled')[] } export interface PatchTaskV2TasklistActivitySubscriptionQuery { @@ -1362,173 +1362,173 @@ export interface BatchDeleteCollaboratorTaskV1Response { } Internal.define({ - '/open-apis/task/v2/tasks': { + '/task/v2/tasks': { POST: 'createTaskV2', GET: { name: 'listTaskV2', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/tasks/{task_guid}': { + '/task/v2/tasks/{task_guid}': { GET: 'getTaskV2', PATCH: 'patchTaskV2', DELETE: 'deleteTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/add_members': { + '/task/v2/tasks/{task_guid}/add_members': { POST: 'addMembersTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/remove_members': { + '/task/v2/tasks/{task_guid}/remove_members': { POST: 'removeMembersTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/tasklists': { + '/task/v2/tasks/{task_guid}/tasklists': { GET: 'tasklistsTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/add_tasklist': { + '/task/v2/tasks/{task_guid}/add_tasklist': { POST: 'addTasklistTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/remove_tasklist': { + '/task/v2/tasks/{task_guid}/remove_tasklist': { POST: 'removeTasklistTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/add_reminders': { + '/task/v2/tasks/{task_guid}/add_reminders': { POST: 'addRemindersTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/remove_reminders': { + '/task/v2/tasks/{task_guid}/remove_reminders': { POST: 'removeRemindersTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/add_dependencies': { + '/task/v2/tasks/{task_guid}/add_dependencies': { POST: 'addDependenciesTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/remove_dependencies': { + '/task/v2/tasks/{task_guid}/remove_dependencies': { POST: 'removeDependenciesTaskV2', }, - '/open-apis/task/v2/tasks/{task_guid}/subtasks': { + '/task/v2/tasks/{task_guid}/subtasks': { POST: 'createTaskV2TaskSubtask', GET: { name: 'listTaskV2TaskSubtask', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v2/tasklists': { + '/task/v2/tasklists': { POST: 'createTaskV2Tasklist', GET: { name: 'listTaskV2Tasklist', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/tasklists/{tasklist_guid}': { + '/task/v2/tasklists/{tasklist_guid}': { GET: 'getTaskV2Tasklist', PATCH: 'patchTaskV2Tasklist', DELETE: 'deleteTaskV2Tasklist', }, - '/open-apis/task/v2/tasklists/{tasklist_guid}/add_members': { + '/task/v2/tasklists/{tasklist_guid}/add_members': { POST: 'addMembersTaskV2Tasklist', }, - '/open-apis/task/v2/tasklists/{tasklist_guid}/remove_members': { + '/task/v2/tasklists/{tasklist_guid}/remove_members': { POST: 'removeMembersTaskV2Tasklist', }, - '/open-apis/task/v2/tasklists/{tasklist_guid}/tasks': { + '/task/v2/tasklists/{tasklist_guid}/tasks': { GET: { name: 'tasksTaskV2Tasklist', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v2/tasklists/{tasklist_guid}/activity_subscriptions': { + '/task/v2/tasklists/{tasklist_guid}/activity_subscriptions': { POST: 'createTaskV2TasklistActivitySubscription', GET: 'listTaskV2TasklistActivitySubscription', }, - '/open-apis/task/v2/tasklists/{tasklist_guid}/activity_subscriptions/{activity_subscription_guid}': { + '/task/v2/tasklists/{tasklist_guid}/activity_subscriptions/{activity_subscription_guid}': { GET: 'getTaskV2TasklistActivitySubscription', PATCH: 'patchTaskV2TasklistActivitySubscription', DELETE: 'deleteTaskV2TasklistActivitySubscription', }, - '/open-apis/task/v2/comments': { + '/task/v2/comments': { POST: 'createTaskV2Comment', GET: { name: 'listTaskV2Comment', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/comments/{comment_id}': { + '/task/v2/comments/{comment_id}': { GET: 'getTaskV2Comment', PATCH: 'patchTaskV2Comment', DELETE: 'deleteTaskV2Comment', }, - '/open-apis/task/v2/attachments/upload': { + '/task/v2/attachments/upload': { POST: { name: 'uploadTaskV2Attachment', multipart: true }, }, - '/open-apis/task/v2/attachments': { + '/task/v2/attachments': { GET: { name: 'listTaskV2Attachment', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/attachments/{attachment_guid}': { + '/task/v2/attachments/{attachment_guid}': { GET: 'getTaskV2Attachment', DELETE: 'deleteTaskV2Attachment', }, - '/open-apis/task/v2/sections': { + '/task/v2/sections': { POST: 'createTaskV2Section', GET: { name: 'listTaskV2Section', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/sections/{section_guid}': { + '/task/v2/sections/{section_guid}': { GET: 'getTaskV2Section', PATCH: 'patchTaskV2Section', DELETE: 'deleteTaskV2Section', }, - '/open-apis/task/v2/sections/{section_guid}/tasks': { + '/task/v2/sections/{section_guid}/tasks': { GET: { name: 'tasksTaskV2Section', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v2/custom_fields': { + '/task/v2/custom_fields': { POST: 'createTaskV2CustomField', GET: { name: 'listTaskV2CustomField', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v2/custom_fields/{custom_field_guid}': { + '/task/v2/custom_fields/{custom_field_guid}': { GET: 'getTaskV2CustomField', PATCH: 'patchTaskV2CustomField', }, - '/open-apis/task/v2/custom_fields/{custom_field_guid}/add': { + '/task/v2/custom_fields/{custom_field_guid}/add': { POST: 'addTaskV2CustomField', }, - '/open-apis/task/v2/custom_fields/{custom_field_guid}/remove': { + '/task/v2/custom_fields/{custom_field_guid}/remove': { POST: 'removeTaskV2CustomField', }, - '/open-apis/task/v2/custom_fields/{custom_field_guid}/options': { + '/task/v2/custom_fields/{custom_field_guid}/options': { POST: 'createTaskV2CustomFieldOption', }, - '/open-apis/task/v2/custom_fields/{custom_field_guid}/options/{option_guid}': { + '/task/v2/custom_fields/{custom_field_guid}/options/{option_guid}': { PATCH: 'patchTaskV2CustomFieldOption', }, - '/open-apis/task/v1/tasks': { + '/task/v1/tasks': { POST: 'createTaskV1', GET: { name: 'listTaskV1', pagination: { argIndex: 0 } }, }, - '/open-apis/task/v1/tasks/{task_id}': { + '/task/v1/tasks/{task_id}': { DELETE: 'deleteTaskV1', PATCH: 'patchTaskV1', GET: 'getTaskV1', }, - '/open-apis/task/v1/tasks/{task_id}/complete': { + '/task/v1/tasks/{task_id}/complete': { POST: 'completeTaskV1', }, - '/open-apis/task/v1/tasks/{task_id}/uncomplete': { + '/task/v1/tasks/{task_id}/uncomplete': { POST: 'uncompleteTaskV1', }, - '/open-apis/task/v1/tasks/{task_id}/reminders': { + '/task/v1/tasks/{task_id}/reminders': { POST: 'createTaskV1TaskReminder', GET: { name: 'listTaskV1TaskReminder', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v1/tasks/{task_id}/reminders/{reminder_id}': { + '/task/v1/tasks/{task_id}/reminders/{reminder_id}': { DELETE: 'deleteTaskV1TaskReminder', }, - '/open-apis/task/v1/tasks/{task_id}/comments': { + '/task/v1/tasks/{task_id}/comments': { POST: 'createTaskV1TaskComment', GET: { name: 'listTaskV1TaskComment', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v1/tasks/{task_id}/comments/{comment_id}': { + '/task/v1/tasks/{task_id}/comments/{comment_id}': { DELETE: 'deleteTaskV1TaskComment', PUT: 'updateTaskV1TaskComment', GET: 'getTaskV1TaskComment', }, - '/open-apis/task/v1/tasks/{task_id}/followers': { + '/task/v1/tasks/{task_id}/followers': { POST: 'createTaskV1TaskFollower', GET: { name: 'listTaskV1TaskFollower', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v1/tasks/{task_id}/followers/{follower_id}': { + '/task/v1/tasks/{task_id}/followers/{follower_id}': { DELETE: 'deleteTaskV1TaskFollower', }, - '/open-apis/task/v1/tasks/{task_id}/batch_delete_follower': { + '/task/v1/tasks/{task_id}/batch_delete_follower': { POST: 'batchDeleteFollowerTaskV1', }, - '/open-apis/task/v1/tasks/{task_id}/collaborators': { + '/task/v1/tasks/{task_id}/collaborators': { POST: 'createTaskV1TaskCollaborator', GET: { name: 'listTaskV1TaskCollaborator', pagination: { argIndex: 1 } }, }, - '/open-apis/task/v1/tasks/{task_id}/collaborators/{collaborator_id}': { + '/task/v1/tasks/{task_id}/collaborators/{collaborator_id}': { DELETE: 'deleteTaskV1TaskCollaborator', }, - '/open-apis/task/v1/tasks/{task_id}/batch_delete_collaborator': { + '/task/v1/tasks/{task_id}/batch_delete_collaborator': { POST: 'batchDeleteCollaboratorTaskV1', }, }) diff --git a/adapters/lark/src/types/tenant.ts b/adapters/lark/src/types/tenant.ts index 15c8a81f..14f0ca33 100644 --- a/adapters/lark/src/types/tenant.ts +++ b/adapters/lark/src/types/tenant.ts @@ -27,10 +27,10 @@ export interface QueryTenantResponse { } Internal.define({ - '/open-apis/tenant/v2/tenant/assign_info_list/query': { + '/tenant/v2/tenant/assign_info_list/query': { GET: 'queryTenantTenantProductAssignInfo', }, - '/open-apis/tenant/v2/tenant/query': { + '/tenant/v2/tenant/query': { GET: 'queryTenant', }, }) diff --git a/adapters/lark/src/types/translation.ts b/adapters/lark/src/types/translation.ts index 333efcfe..5ae081b7 100644 --- a/adapters/lark/src/types/translation.ts +++ b/adapters/lark/src/types/translation.ts @@ -43,10 +43,10 @@ export interface TranslateTranslationTextResponse { } Internal.define({ - '/open-apis/translation/v1/text/detect': { + '/translation/v1/text/detect': { POST: 'detectTranslationText', }, - '/open-apis/translation/v1/text/translate': { + '/translation/v1/text/translate': { POST: 'translateTranslationText', }, }) diff --git a/adapters/lark/src/types/vc.ts b/adapters/lark/src/types/vc.ts index a17a2158..8d7d59c5 100644 --- a/adapters/lark/src/types/vc.ts +++ b/adapters/lark/src/types/vc.ts @@ -1,5 +1,5 @@ import { Alert, ApprovalConfig, Device, DisableInformConfig, Meeting, MeetingInfo, MeetingInviteStatus, MeetingParticipantResult, MeetingRecording, MeetingUser, Participant, ParticipantQuality, RecordingPermissionObject, Report, ReportTopUser, Reserve, ReserveAdminConfig, ReserveCorrectionCheckInfo, ReserveFormConfig, ReserveMeetingSetting, ReserveScopeConfig, Room, RoomConfig, RoomDigitalSignage, RoomLevel, RoomMeetingReservation, RoomStatus, ScopeConfig, TimeConfig } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -1088,150 +1088,150 @@ export interface QueryVcRoomConfigResponse { } Internal.define({ - '/open-apis/vc/v1/reserves/apply': { + '/vc/v1/reserves/apply': { POST: 'applyVcReserve', }, - '/open-apis/vc/v1/reserves/{reserve_id}': { + '/vc/v1/reserves/{reserve_id}': { DELETE: 'deleteVcReserve', PUT: 'updateVcReserve', GET: 'getVcReserve', }, - '/open-apis/vc/v1/reserves/{reserve_id}/get_active_meeting': { + '/vc/v1/reserves/{reserve_id}/get_active_meeting': { GET: 'getActiveMeetingVcReserve', }, - '/open-apis/vc/v1/meetings/{meeting_id}/invite': { + '/vc/v1/meetings/{meeting_id}/invite': { PATCH: 'inviteVcMeeting', }, - '/open-apis/vc/v1/meetings/{meeting_id}/kickout': { + '/vc/v1/meetings/{meeting_id}/kickout': { POST: 'kickoutVcMeeting', }, - '/open-apis/vc/v1/meetings/{meeting_id}/set_host': { + '/vc/v1/meetings/{meeting_id}/set_host': { PATCH: 'setHostVcMeeting', }, - '/open-apis/vc/v1/meetings/{meeting_id}/end': { + '/vc/v1/meetings/{meeting_id}/end': { PATCH: 'endVcMeeting', }, - '/open-apis/vc/v1/meetings/{meeting_id}': { + '/vc/v1/meetings/{meeting_id}': { GET: 'getVcMeeting', }, - '/open-apis/vc/v1/meetings/list_by_no': { + '/vc/v1/meetings/list_by_no': { GET: { name: 'listByNoVcMeeting', pagination: { argIndex: 0, itemsKey: 'meeting_briefs' } }, }, - '/open-apis/vc/v1/meetings/{meeting_id}/recording/start': { + '/vc/v1/meetings/{meeting_id}/recording/start': { PATCH: 'startVcMeetingRecording', }, - '/open-apis/vc/v1/meetings/{meeting_id}/recording/stop': { + '/vc/v1/meetings/{meeting_id}/recording/stop': { PATCH: 'stopVcMeetingRecording', }, - '/open-apis/vc/v1/meetings/{meeting_id}/recording': { + '/vc/v1/meetings/{meeting_id}/recording': { GET: 'getVcMeetingRecording', }, - '/open-apis/vc/v1/meetings/{meeting_id}/recording/set_permission': { + '/vc/v1/meetings/{meeting_id}/recording/set_permission': { PATCH: 'setPermissionVcMeetingRecording', }, - '/open-apis/vc/v1/reports/get_daily': { + '/vc/v1/reports/get_daily': { GET: 'getDailyVcReport', }, - '/open-apis/vc/v1/reports/get_top_user': { + '/vc/v1/reports/get_top_user': { GET: 'getTopUserVcReport', }, - '/open-apis/vc/v1/exports/meeting_list': { + '/vc/v1/exports/meeting_list': { POST: 'meetingListVcExport', }, - '/open-apis/vc/v1/exports/participant_list': { + '/vc/v1/exports/participant_list': { POST: 'participantListVcExport', }, - '/open-apis/vc/v1/exports/participant_quality_list': { + '/vc/v1/exports/participant_quality_list': { POST: 'participantQualityListVcExport', }, - '/open-apis/vc/v1/exports/resource_reservation_list': { + '/vc/v1/exports/resource_reservation_list': { POST: 'resourceReservationListVcExport', }, - '/open-apis/vc/v1/exports/{task_id}': { + '/vc/v1/exports/{task_id}': { GET: 'getVcExport', }, - '/open-apis/vc/v1/exports/download': { + '/vc/v1/exports/download': { GET: { name: 'downloadVcExport', type: 'binary' }, }, - '/open-apis/vc/v1/room_levels': { + '/vc/v1/room_levels': { POST: 'createVcRoomLevel', GET: { name: 'listVcRoomLevel', pagination: { argIndex: 0 } }, }, - '/open-apis/vc/v1/room_levels/del': { + '/vc/v1/room_levels/del': { POST: 'delVcRoomLevel', }, - '/open-apis/vc/v1/room_levels/{room_level_id}': { + '/vc/v1/room_levels/{room_level_id}': { PATCH: 'patchVcRoomLevel', GET: 'getVcRoomLevel', }, - '/open-apis/vc/v1/room_levels/mget': { + '/vc/v1/room_levels/mget': { POST: 'mgetVcRoomLevel', }, - '/open-apis/vc/v1/room_levels/search': { + '/vc/v1/room_levels/search': { GET: 'searchVcRoomLevel', }, - '/open-apis/vc/v1/rooms': { + '/vc/v1/rooms': { POST: 'createVcRoom', GET: { name: 'listVcRoom', pagination: { argIndex: 0, itemsKey: 'rooms' } }, }, - '/open-apis/vc/v1/rooms/{room_id}': { + '/vc/v1/rooms/{room_id}': { DELETE: 'deleteVcRoom', PATCH: 'patchVcRoom', GET: 'getVcRoom', }, - '/open-apis/vc/v1/rooms/mget': { + '/vc/v1/rooms/mget': { POST: 'mgetVcRoom', }, - '/open-apis/vc/v1/rooms/search': { + '/vc/v1/rooms/search': { POST: 'searchVcRoom', }, - '/open-apis/vc/v1/scope_config': { + '/vc/v1/scope_config': { GET: 'getVcScopeConfig', POST: 'createVcScopeConfig', }, - '/open-apis/vc/v1/reserve_configs/reserve_scope': { + '/vc/v1/reserve_configs/reserve_scope': { GET: 'reserveScopeVcReserveConfig', }, - '/open-apis/vc/v1/reserve_configs/{reserve_config_id}': { + '/vc/v1/reserve_configs/{reserve_config_id}': { PATCH: 'patchVcReserveConfig', }, - '/open-apis/vc/v1/reserve_configs/{reserve_config_id}/form': { + '/vc/v1/reserve_configs/{reserve_config_id}/form': { GET: 'getVcReserveConfigForm', PATCH: 'patchVcReserveConfigForm', }, - '/open-apis/vc/v1/reserve_configs/{reserve_config_id}/admin': { + '/vc/v1/reserve_configs/{reserve_config_id}/admin': { GET: 'getVcReserveConfigAdmin', PATCH: 'patchVcReserveConfigAdmin', }, - '/open-apis/vc/v1/reserve_configs/{reserve_config_id}/disable_inform': { + '/vc/v1/reserve_configs/{reserve_config_id}/disable_inform': { GET: 'getVcReserveConfigDisableInform', PATCH: 'patchVcReserveConfigDisableInform', }, - '/open-apis/vc/v1/meeting_list': { + '/vc/v1/meeting_list': { GET: { name: 'getVcMeetingList', pagination: { argIndex: 0, itemsKey: 'meeting_list' } }, }, - '/open-apis/vc/v1/participant_list': { + '/vc/v1/participant_list': { GET: { name: 'getVcParticipantList', pagination: { argIndex: 0, itemsKey: 'participants' } }, }, - '/open-apis/vc/v1/participant_quality_list': { + '/vc/v1/participant_quality_list': { GET: { name: 'getVcParticipantQualityList', pagination: { argIndex: 0, itemsKey: 'participant_quality_list' } }, }, - '/open-apis/vc/v1/resource_reservation_list': { + '/vc/v1/resource_reservation_list': { GET: { name: 'getVcResourceReservationList', pagination: { argIndex: 0, itemsKey: 'room_reservation_list' } }, }, - '/open-apis/vc/v1/alerts': { + '/vc/v1/alerts': { GET: { name: 'listVcAlert', pagination: { argIndex: 0 } }, }, - '/open-apis/vc/v1/room_configs/set_checkboard_access_code': { + '/vc/v1/room_configs/set_checkboard_access_code': { POST: 'setCheckboardAccessCodeVcRoomConfig', }, - '/open-apis/vc/v1/room_configs/set_room_access_code': { + '/vc/v1/room_configs/set_room_access_code': { POST: 'setRoomAccessCodeVcRoomConfig', }, - '/open-apis/vc/v1/room_configs/query': { + '/vc/v1/room_configs/query': { GET: 'queryVcRoomConfig', }, - '/open-apis/vc/v1/room_configs/set': { + '/vc/v1/room_configs/set': { POST: 'setVcRoomConfig', }, }) diff --git a/adapters/lark/src/types/verification.ts b/adapters/lark/src/types/verification.ts index 076de960..c1339cbf 100644 --- a/adapters/lark/src/types/verification.ts +++ b/adapters/lark/src/types/verification.ts @@ -17,7 +17,7 @@ export interface GetVerificationResponse { } Internal.define({ - '/open-apis/verification/v1/verification': { + '/verification/v1/verification': { GET: 'getVerification', }, }) diff --git a/adapters/lark/src/types/wiki.ts b/adapters/lark/src/types/wiki.ts index 2554afa9..d5f6b754 100644 --- a/adapters/lark/src/types/wiki.ts +++ b/adapters/lark/src/types/wiki.ts @@ -1,5 +1,5 @@ import { Member, Node, Setting, Space, TaskResult } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -288,46 +288,46 @@ export interface GetWikiTaskResponse { } Internal.define({ - '/open-apis/wiki/v2/spaces': { + '/wiki/v2/spaces': { GET: { name: 'listWikiSpace', pagination: { argIndex: 0 } }, POST: 'createWikiSpace', }, - '/open-apis/wiki/v2/spaces/{space_id}': { + '/wiki/v2/spaces/{space_id}': { GET: 'getWikiSpace', }, - '/open-apis/wiki/v2/spaces/{space_id}/members': { + '/wiki/v2/spaces/{space_id}/members': { GET: { name: 'listWikiSpaceMember', pagination: { argIndex: 1, itemsKey: 'members' } }, POST: 'createWikiSpaceMember', }, - '/open-apis/wiki/v2/spaces/{space_id}/members/{member_id}': { + '/wiki/v2/spaces/{space_id}/members/{member_id}': { DELETE: 'deleteWikiSpaceMember', }, - '/open-apis/wiki/v2/spaces/{space_id}/setting': { + '/wiki/v2/spaces/{space_id}/setting': { PUT: 'updateWikiSpaceSetting', }, - '/open-apis/wiki/v2/spaces/{space_id}/nodes': { + '/wiki/v2/spaces/{space_id}/nodes': { POST: 'createWikiSpaceNode', GET: { name: 'listWikiSpaceNode', pagination: { argIndex: 1 } }, }, - '/open-apis/wiki/v2/spaces/get_node': { + '/wiki/v2/spaces/get_node': { GET: 'getNodeWikiSpace', }, - '/open-apis/wiki/v2/spaces/{space_id}/nodes/{node_token}/move': { + '/wiki/v2/spaces/{space_id}/nodes/{node_token}/move': { POST: 'moveWikiSpaceNode', }, - '/open-apis/wiki/v2/spaces/{space_id}/nodes/{node_token}/update_title': { + '/wiki/v2/spaces/{space_id}/nodes/{node_token}/update_title': { POST: 'updateTitleWikiSpaceNode', }, - '/open-apis/wiki/v2/spaces/{space_id}/nodes/{node_token}/copy': { + '/wiki/v2/spaces/{space_id}/nodes/{node_token}/copy': { POST: 'copyWikiSpaceNode', }, - '/open-apis/wiki/v2/spaces/{space_id}/nodes/move_docs_to_wiki': { + '/wiki/v2/spaces/{space_id}/nodes/move_docs_to_wiki': { POST: 'moveDocsToWikiWikiSpaceNode', }, - '/open-apis/wiki/v2/tasks/{task_id}': { + '/wiki/v2/tasks/{task_id}': { GET: 'getWikiTask', }, - '/open-apis/wiki/v1/nodes/search': { + '/wiki/v1/nodes/search': { POST: { name: 'searchWikiNode', pagination: { argIndex: 1 } }, }, }) diff --git a/adapters/lark/src/types/workplace.ts b/adapters/lark/src/types/workplace.ts index dfd24069..ba05bb57 100644 --- a/adapters/lark/src/types/workplace.ts +++ b/adapters/lark/src/types/workplace.ts @@ -1,5 +1,5 @@ import { BlockAccessData, CustomWorkplaceAccessData, WorkplaceAccessData } from '.' -import { Internal, Paginated, Pagination } from '../internal' +import { Internal, Paginated } from '../internal' declare module '../internal' { interface Internal { @@ -62,13 +62,13 @@ export interface SearchWorkplaceWorkplaceBlockAccessDataQuery { } Internal.define({ - '/open-apis/workplace/v1/workplace_access_data/search': { + '/workplace/v1/workplace_access_data/search': { POST: { name: 'searchWorkplaceWorkplaceAccessData', pagination: { argIndex: 0 } }, }, - '/open-apis/workplace/v1/custom_workplace_access_data/search': { + '/workplace/v1/custom_workplace_access_data/search': { POST: { name: 'searchWorkplaceCustomWorkplaceAccessData', pagination: { argIndex: 0 } }, }, - '/open-apis/workplace/v1/workplace_block_access_data/search': { + '/workplace/v1/workplace_block_access_data/search': { POST: { name: 'searchWorkplaceWorkplaceBlockAccessData', pagination: { argIndex: 0 } }, }, })