diff --git a/adapters/dingtalk/src/api/alitrip.ts b/adapters/dingtalk/src/api/alitrip.ts index 0469a3fe..a944b9f2 100644 --- a/adapters/dingtalk/src/api/alitrip.ts +++ b/adapters/dingtalk/src/api/alitrip.ts @@ -1,382 +1,382 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface BillSettementBtripTrainQuery { /** 企业id。 */ - corpId?: string; + corpId?: string /** 类目:机酒火车: */ - category?: number; + category?: number /** 每页数据量,默认100,最高100。 */ - pageSize?: number; + pageSize?: number /** 记账更新开始日期。 */ - periodStart?: string; + periodStart?: string /** 页数,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 记账更新结束日期。 */ - periodEnd?: string; + periodEnd?: string } export interface BillSettementBtripTrainResponse { - resultMsg?: string; + resultMsg?: string module?: { - category?: number; - corpId?: string; - dataList?: number; - periodEnd?: string; - periodStart?: string; - totalNum?: number; - }; - success?: unknown; - resultCode?: number; + category?: number + corpId?: string + dataList?: number + periodEnd?: string + periodStart?: string + totalNum?: number + } + success?: unknown + resultCode?: number } export interface BillSettementHotelQuery { /** 第三方企业。 */ - corpId?: string; + corpId?: string /** 类目:机酒火车: */ - category?: number; + category?: number /** 每页数据量,默认100,最高500。 */ - pageSize?: number; + pageSize?: number /** 记账更新开始日期。 */ - periodStart?: string; + periodStart?: string /** 页数,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 记账更新结束日期。 */ - periodEnd?: string; + periodEnd?: string } export interface BillSettementHotelResponse { - resultMsg?: string; + resultMsg?: string module?: { - category?: number; - corpId?: string; - dataList?: number; - periodEnd?: string; - periodStart?: string; - totalNum?: number; - }; - success?: unknown; - resultCode?: number; + category?: number + corpId?: string + dataList?: number + periodEnd?: string + periodStart?: string + totalNum?: number + } + success?: unknown + resultCode?: number } export interface BillSettementCarQuery { /** 企业id。 */ - corpId?: string; + corpId?: string /** 类目:机酒火车: */ - category?: number; + category?: number /** 每页数据量,默认100,最高100。 */ - pageSize?: number; + pageSize?: number /** 记账更新开始日期。 */ - periodStart?: string; + periodStart?: string /** 记账更新结束日期。 */ - periodEnd?: string; + periodEnd?: string /** 页数,从1开始。 */ - pageNumber?: number; + pageNumber?: number } export interface BillSettementCarResponse { - resultMsg?: string; + resultMsg?: string module?: { - category?: number; - corpId?: string; - dataList?: number; - periodEnd?: string; - periodStart?: string; - totalNum?: number; - }; - success?: unknown; - resultCode?: number; + category?: number + corpId?: string + dataList?: number + periodEnd?: string + periodStart?: string + totalNum?: number + } + success?: unknown + resultCode?: number } export interface BillSettementFlightQuery { /** 第三方企业的CorpId。 */ - corpId?: string; + corpId?: string /** 类目,取值: */ - category?: number; + category?: number /** 分页参数,每页数据量。默认值100,最大值500。 */ - pageSize?: number; + pageSize?: number /** 记账更新开始日期。 */ - periodStart?: string; + periodStart?: string /** 分页参数,页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 记账更新结束日期。 */ - periodEnd?: string; + periodEnd?: string } export interface BillSettementFlightResponse { - resultMsg?: string; + resultMsg?: string module?: { - category?: number; - corpId?: string; - dataList?: number; - periodEnd?: string; - periodStart?: string; - totalNum?: number; - }; - success?: unknown; - resultCode?: number; + category?: number + corpId?: string + dataList?: number + periodEnd?: string + periodStart?: string + totalNum?: number + } + success?: unknown + resultCode?: number } export interface GetFlightExceedApplyQuery { /** 第三方企业的corpId。 */ - corpId: string; + corpId: string /** 商旅超标审批单ID。 */ - applyId: string; + applyId: string } export interface GetFlightExceedApplyResponse { - corpId: string; - applyId: number; - status: number; - btripCause: string; - exceedType: number; - exceedReason: string; - originStandard: string; - submitTime: string; - userId: string; + corpId: string + applyId: number + status: number + btripCause: string + exceedType: number + exceedReason: string + originStandard: string + submitTime: string + userId: string applyIntentionInfoDO: { - arrCity: string; - arrCityName: string; - arrTime: string; - cabin: string; - cabinClass: number; - cabinClassStr: string; - depCity: string; - depCityName: string; - depTime: string; - discount: number; - flightNo: string; - price: number; - type: number; - }; - thirdpartApplyId: string; + arrCity: string + arrCityName: string + arrTime: string + cabin: string + cabinClass: number + cabinClassStr: string + depCity: string + depCityName: string + depTime: string + discount: number + flightNo: string + price: number + type: number + } + thirdpartApplyId: string } export interface QueryUnionOrderQuery { /** 第三方企业corpId。 */ - corpId: string; + corpId: string /** 第三方申请单ID。 */ - thirdPartApplyId?: string; + thirdPartApplyId?: string /** 关联单号ID。 */ - unionNo?: string; + unionNo?: string } export interface QueryUnionOrderResponse { flightList?: { - flightOrderId?: number; - flightOrderStatus?: number; - }[]; - corpId?: string; + flightOrderId?: number + flightOrderStatus?: number + }[] + corpId?: string trainList?: { - trainOrderId?: number; - trainOrderstatus?: number; - }[]; + trainOrderId?: number + trainOrderstatus?: number + }[] hotelList?: { - hotelOrderId?: number; - hotelOrderStatus?: number; - }[]; + hotelOrderId?: number + hotelOrderStatus?: number + }[] vehicleList?: { - vehicleOrderId?: number; - vehicleOrderStatus?: number; - }[]; + vehicleOrderId?: number + vehicleOrderStatus?: number + }[] } export interface GetTrainExceedApplyQuery { /** 第三方企业的corpId。 */ - corpId: string; + corpId: string /** 商旅审批单ID。 */ - applyId: string; + applyId: string } export interface GetTrainExceedApplyResponse { - corpId: string; - applyId: number; - status: number; - btripCause: string; - exceedType: number; - exceedReason: string; - originStandard: string; - submitTime: string; - userId: string; + corpId: string + applyId: number + status: number + btripCause: string + exceedType: number + exceedReason: string + originStandard: string + submitTime: string + userId: string applyIntentionInfoDO: { - price: number; - depCityName: string; - arrCityName: string; - depCity: string; - arrCity: string; - depTime: string; - arrTime: string; - arrStation: string; - depStation: string; - trainNo: string; - trainTypeDesc: string; - seatName: string; - }; - thirdpartApplyId: string; + price: number + depCityName: string + arrCityName: string + depCity: string + arrCity: string + depTime: string + arrTime: string + arrStation: string + depStation: string + trainNo: string + trainTypeDesc: string + seatName: string + } + thirdpartApplyId: string } export interface GetHotelExceedApplyQuery { /** 第三方企业的corpId。 */ - corpId: string; + corpId: string /** 商旅审批单ID。 */ - applyId: string; + applyId: string } export interface GetHotelExceedApplyResponse { - corpId: string; - applyId: number; - status: number; - btripCause: string; - exceedType: number; - exceedReason: string; - originStandard: string; - submitTime: string; - userId: string; + corpId: string + applyId: number + status: number + btripCause: string + exceedType: number + exceedReason: string + originStandard: string + submitTime: string + userId: string applyIntentionInfoDO: { - checkIn: string; - checkOut: string; - cityCode: string; - cityName: string; - price: number; - together: number; - type: number; - }; - thirdpartApplyId: string; + checkIn: string + checkOut: string + cityCode: string + cityName: string + price: number + together: number + type: number + } + thirdpartApplyId: string } export interface SyncExceedApplyQuery { /** 审批意见。 */ - remark: string; + remark: string /** 商旅超标审批单号。 */ - applyId: string; + applyId: string /** 企业的corpId。 */ - corpId: string; + corpId: string /** 第三方流程实例ID。 */ - thirdpartyFlowId: string; + thirdpartyFlowId: string /** 员工的userid。 */ - userId: string; + userId: string /** 审批单状态,取值: */ - status: number; + status: number } export interface SyncExceedApplyResponse { - module: unknown; + module: unknown } export interface QueryCityCarApplyQuery { /** 企业的CorpId。 */ - corpId: string; + corpId: string /** 审批单创建时间小于值,例如2021-03-18 20:26:50。 */ - createdEndAt?: string; + createdEndAt?: string /** 审批单创建时间大于或等于的时间,例如2021-03-18 20:26:56。 */ - createdStartAt?: string; + createdStartAt?: string /** 页码,要求大于等于1,默认1。 */ - pageNumber?: number; + pageNumber?: number /** 每页数据量,要求大于等于1,默认20。 */ - pageSize?: number; + pageSize?: number /** 三方审批单ID。 */ - thirdPartApplyId?: string; + thirdPartApplyId?: string /** 第三方员工ID。 */ - userId?: string; + userId?: string } export interface QueryCityCarApplyResponse { applyList?: { - approverList?: number; - departId?: string; - departName?: string; - gmtCreate?: string; - gmtModified?: string; - itineraryList?: number; - status?: number; - statusDesc?: string; - thirdPartApplyId?: string; - tripCause?: string; - tripTitle?: string; - userId?: string; - userName?: string; - }[]; - total?: number; + approverList?: number + departId?: string + departName?: string + gmtCreate?: string + gmtModified?: string + itineraryList?: number + status?: number + statusDesc?: string + thirdPartApplyId?: string + tripCause?: string + tripTitle?: string + userId?: string + userName?: string + }[] + total?: number } export interface ApproveCityCarApplyParams { /** 第三方企业的corpid。 */ - corpId: string; + corpId: string /** 审批时间,例如2021-03-18 20:26:56。 */ - operateTime?: string; + operateTime?: string /** 审批备注。 */ - remark?: string; + remark?: string /** 审批结果: */ - status: number; + status: number /** 第三方审批单ID。 */ - thirdPartApplyId: string; + thirdPartApplyId: string /** 审批的第三方员工ID。 */ - userId: string; + userId: string } export interface ApproveCityCarApplyResponse { - approveResult?: unknown; + approveResult?: unknown } export interface AddCityCarApplyParams { /** 出差事由。 */ - cause: string; + cause: string /** 用车城市。 */ - city: string; + city: string /** 第三方企业的corpid。 */ - corpId: string; + corpId: string /** 用车时间,按天管控,比如传值2021-03-18 20:26:56表示2021-03-18当天可用车,跨天情况配合finishedDate参数使用 */ - date: string; + date: string /** 审批单关联的项目code。 */ - projectCode?: string; + projectCode?: string /** 审批单关联的项目名。 */ - projectName?: string; + projectName?: string /** 审批单状态: */ - status: number; + status: number /** 三方审批单ID。 */ - thirdPartApplyId: string; + thirdPartApplyId: string /** 审批单关联的三方成本中心ID。 */ - thirdPartCostCenterId: string; + thirdPartCostCenterId: string /** 审批单关联的三方发票抬头ID。 */ - thirdPartInvoiceId: string; + thirdPartInvoiceId: string /** 审批单可用总次数。 */ - timesTotal: number; + timesTotal: number /** 审批单可用次数类型: */ - timesType: number; + timesType: number /** 审批单已用次数。 */ - timesUsed: number; + timesUsed: number /** 审批单标题。 */ - title: string; + title: string /** 发起审批的第三方员工ID。 */ - userId: string; + userId: string /** 用车截止时间,按天管控,比如date传值2021-03-18 20:26:56、finishedDate传值2021-03-30 20:26:56表示2021-03-18(含)到2021-03-30(含)之间可用车,该参数不传值情况使用date作为用车截止时间; */ - finishedDate?: string; + finishedDate?: string } export interface AddCityCarApplyResponse { - applyId?: number; + applyId?: number } // funcName: isOldApi Internal.define({ - "/alitrip/billSettlements/btripTrains": { + '/alitrip/billSettlements/btripTrains': { GET: { billSettementBtripTrain: false }, }, - "/alitrip/billSettlements/hotels": { GET: { billSettementHotel: false } }, - "/alitrip/billSettlements/cars": { GET: { billSettementCar: false } }, - "/alitrip/billSettlements/flights": { GET: { billSettementFlight: false } }, - "/alitrip/exceedapply/getFlight": { GET: { getFlightExceedApply: false } }, - "/alitrip/unionOrders": { GET: { queryUnionOrder: false } }, - "/alitrip/exceedapply/getTrain": { GET: { getTrainExceedApply: false } }, - "/alitrip/exceedapply/getHotel": { GET: { getHotelExceedApply: false } }, - "/alitrip/exceedapply/sync": { POST: { syncExceedApply: false } }, - "/alitrip/cityCarApprovals": { + '/alitrip/billSettlements/hotels': { GET: { billSettementHotel: false } }, + '/alitrip/billSettlements/cars': { GET: { billSettementCar: false } }, + '/alitrip/billSettlements/flights': { GET: { billSettementFlight: false } }, + '/alitrip/exceedapply/getFlight': { GET: { getFlightExceedApply: false } }, + '/alitrip/unionOrders': { GET: { queryUnionOrder: false } }, + '/alitrip/exceedapply/getTrain': { GET: { getTrainExceedApply: false } }, + '/alitrip/exceedapply/getHotel': { GET: { getHotelExceedApply: false } }, + '/alitrip/exceedapply/sync': { POST: { syncExceedApply: false } }, + '/alitrip/cityCarApprovals': { GET: { queryCityCarApply: false }, PUT: { approveCityCarApply: false }, POST: { addCityCarApply: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询商旅火车票结算记账数据 @@ -384,83 +384,83 @@ declare module "../internal" { */ billSettementBtripTrain( query: BillSettementBtripTrainQuery, - ): Promise; + ): Promise /** * 查询酒店结算记账数据 * @see https://developers.dingtalk.com/document/isvapp/hotel-settlement-bookkeeping-query-interface */ billSettementHotel( query: BillSettementHotelQuery, - ): Promise; + ): Promise /** * 查询用车结算记账记录 * @see https://developers.dingtalk.com/document/isvapp/query-interface-for-vehicle-settlement-and-bookkeeping */ billSettementCar( query: BillSettementCarQuery, - ): Promise; + ): Promise /** * 查询机票结算记账数据 * @see https://developers.dingtalk.com/document/isvapp/ticket-settlement-bookkeeping-query-interface */ billSettementFlight( query: BillSettementFlightQuery, - ): Promise; + ): Promise /** * 搜索第三方机票超标审批单 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-flight-get */ getFlightExceedApply( query: GetFlightExceedApplyQuery, - ): Promise; + ): Promise /** * 关联单号查询相关订单信息列表 * @see https://developers.dingtalk.com/document/isvapp/link-no-to-query-the-list-of-related-order-information */ queryUnionOrder( query: QueryUnionOrderQuery, - ): Promise; + ): Promise /** * 搜索第三方火车票超标审批单 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-train-get */ getTrainExceedApply( query: GetTrainExceedApplyQuery, - ): Promise; + ): Promise /** * 搜索第三方酒店超标审批单 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-hotel-get */ getHotelExceedApply( query: GetHotelExceedApplyQuery, - ): Promise; + ): Promise /** * 同步超标审批结果 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-oapi-alitrip-btrip-exceedapply-sync */ syncExceedApply( query: SyncExceedApplyQuery, - ): Promise; + ): Promise /** * 查询市内用车申请单 * @see https://developers.dingtalk.com/document/isvapp/query-the-application-form-for-third-party-vehicles-in-the-city */ queryCityCarApply( query: QueryCityCarApplyQuery, - ): Promise; + ): Promise /** * 审批市内用车申请单 * @see https://developers.dingtalk.com/document/isvapp/approval-of-third-party-city-car-application-form */ approveCityCarApply( params: ApproveCityCarApplyParams, - ): Promise; + ): Promise /** * 同步市内用车申请单 * @see https://developers.dingtalk.com/document/isvapp/synchronize-third-party-city-vehicle-approval-form */ addCityCarApply( params: AddCityCarApplyParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/attendance.ts b/adapters/dingtalk/src/api/attendance.ts index 9381f315..1582ad65 100644 --- a/adapters/dingtalk/src/api/attendance.ts +++ b/adapters/dingtalk/src/api/attendance.ts @@ -1,81 +1,81 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetAdjustmentsQuery { /** 分页起始页。 */ - pageNumber: number; + pageNumber: number /** 分页大小。 */ - pageSize: number; + pageSize: number } export interface GetAdjustmentsResponse { result?: { - pageNumber?: number; - totalPage?: number; - items?: number; - }; + pageNumber?: number + totalPage?: number + items?: number + } } export interface GetSimpleOvertimeSettingQuery { /** 分页起始页。 */ - pageNumber: number; + pageNumber: number /** 分页大小。 */ - pageSize: number; + pageSize: number } export interface GetSimpleOvertimeSettingResponse { result?: { - pageNumber?: number; - totalPage?: number; - items?: number; - }; + pageNumber?: number + totalPage?: number + items?: number + } } export interface GetOvertimeSettingParams { - overtimeSettingIds?: long[]; + overtimeSettingIds?: number[] } export interface GetOvertimeSettingResponse { result: { - settingId?: number; - name?: string; - default?: number; - durationSettings?: number; - warningSettings?: number; - stepType?: number; - stepValue?: number; - workMinutesPerDay?: number; - overtimeDivisions?: number; - id: number; - }[]; + settingId?: number + name?: string + default?: number + durationSettings?: number + warningSettings?: number + stepType?: number + stepValue?: number + workMinutesPerDay?: number + overtimeDivisions?: number + id: number + }[] } // funcName: isOldApi Internal.define({ - "/attendance/adjustments": { GET: { getAdjustments: false } }, - "/attendance/overtimeSettings": { GET: { getSimpleOvertimeSetting: false } }, - "/attendance/overtimeSettings/query": { POST: { getOvertimeSetting: false } }, -}); -declare module "../internal" { + '/attendance/adjustments': { GET: { getAdjustments: false } }, + '/attendance/overtimeSettings': { GET: { getSimpleOvertimeSetting: false } }, + '/attendance/overtimeSettings/query': { POST: { getOvertimeSetting: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取补卡规则列表 * @see https://developers.dingtalk.com/document/isvapp/retrieve-a-list-of-replenishment-rules-by-page */ - getAdjustments(query: GetAdjustmentsQuery): Promise; + getAdjustments(query: GetAdjustmentsQuery): Promise /** * 加班规则列表 * @see https://developers.dingtalk.com/document/isvapp/retrieve-a-list-of-overtime-rules-by-page */ getSimpleOvertimeSetting( query: GetSimpleOvertimeSettingQuery, - ): Promise; + ): Promise /** * 批量获取加班规则设置 * @see https://developers.dingtalk.com/document/isvapp/batch-retrieve-overtime-rules */ getOvertimeSetting( params: GetOvertimeSettingParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/badge.ts b/adapters/dingtalk/src/api/badge.ts index e73e7386..594662ee 100644 --- a/adapters/dingtalk/src/api/badge.ts +++ b/adapters/dingtalk/src/api/badge.ts @@ -1,228 +1,228 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface CreateBadgeNotifyParams { /** 用户userid。 */ - userId: string; + userId: string /** 消息传入,调用方传入,唯一标识消息。 */ - msgId: string; + msgId: string /** 消息类型,取值: */ - msgType: string; + msgType: string /** 通知内容 */ - content: string; + content: string } export interface CreateBadgeNotifyResponse { - result: unknown; + result: unknown } export interface NotifyBadgeCodeVerifyResultParams { /** 码值,接入方硬件设备扫描钉工牌二维码获取的码值。 */ - payCode: string; + payCode: string /** 企业corpId。 */ - corpId: string; + corpId: string /** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */ - userCorpRelationType: string; + userCorpRelationType: string /** 用户身份标识。 */ - userIdentity: string; + userIdentity: string /** 验证时间。 */ - verifyTime: string; + verifyTime: string /** 验证结果。 */ - verifyResult: unknown; + verifyResult: unknown /** 验证地点。 */ - verifyLocation?: string; + verifyLocation?: string /** 验证流水号,可随机生成,确保用户下唯一 */ - verifyNo?: string; + verifyNo?: string /** 验证事件。8个汉字以内,如门禁验证、班车登记、餐盘绑定等。 */ - verifyEvent?: string; + verifyEvent?: string /** 备注信息。 */ - remark?: string; + remark?: string } export interface NotifyBadgeCodeVerifyResultResponse { - result: string; + result: string } export interface SaveBadgeCodeCorpInstanceParams { /** 码标识,取值: */ - codeIdentity: string; + codeIdentity: string /** 开通的企业corpId。 */ - corpId: string; + corpId: string /** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */ - status: string; + status: string /** 扩展参数,是否关联支付宝。 */ - extInfo?: unknown; + extInfo?: unknown } export interface SaveBadgeCodeCorpInstanceResponse { - codeIdentity?: string; - corpId?: string; - status?: string; - extInfo?: unknown; + codeIdentity?: string + corpId?: string + status?: string + extInfo?: unknown } export interface NotifyBadgeCodePayResultParams { /** 码值,接入方硬件设备扫描钉工牌二维码获取的码值。 */ - payCode: string; + payCode: string /** 企业corpId。 */ - corpId: string; + corpId: string /** 用户userid,需要与生成码时传入的**userid**保持一致。 */ - userId: string; + userId: string /** 交易开始时间。 */ - gmtTradeCreate: string; + gmtTradeCreate: string /** 交易结束时间。 */ - gmtTradeFinish: string; + gmtTradeFinish: string /** 交易号,接入方自身系统针对交易生成的唯一订单号。 */ - tradeNo: string; + tradeNo: string /** 交易状态,取值: */ - tradeStatus: string; + tradeStatus: string /** 订单标题。 */ - title: string; + title: string /** 备注。 */ - remark: string; + remark: string /** 订单金额。 */ - amount: string; + amount: string /** 订单优惠金额。 */ - promotionAmount: string; + promotionAmount: string /** 收费金额。 */ - chargeAmount: string; + chargeAmount: string /** 支付渠道明细信息。 */ - payChannelDetailList: object[]; + payChannelDetailList: object[] /** 支付失败错误码,当**tradeStatus**为**FAIL**时必须传入。 */ - tradeErrorCode?: string; + tradeErrorCode?: string /** 支付失败信息,当**tradeStatus**为**FAIL**时必须传入。 */ - tradeErrorMsg?: string; + tradeErrorMsg?: string /** 扩展信息。 */ - extInfo?: string; + extInfo?: string /** 商户名称。 */ - merchantName: string; + merchantName: string } export interface NotifyBadgeCodePayResultResponse { - result: string; + result: string } export interface CreateBadgeCodeUserInstanceParams { /** 业务幂等ID,由调用方随机生成。 */ - requestId: string; + requestId: string /** 码标识,取值: */ - codeIdentity: string; + codeIdentity: string /** 码值,由调用方生成。 */ - codeValue?: string; + codeValue?: string /** 码值类型,可不传,默认为DING_STATIC */ - codeValueType?: string; + codeValueType?: string /** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */ - status: string; + status: string /** 企业corpId。 */ - corpId: string; + corpId: string /** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */ - userCorpRelationType: string; + userCorpRelationType: string /** 用户身份标识。 */ - userIdentity: string; + userIdentity: string /** 临时码过期时间,格式:yyyy-MM-dd HH:mm:ss。 */ - gmtExpired: string; + gmtExpired: string /** 有效时间列表,对于连续时间段,只需传入一个对象即可。 */ - availableTimes: object[]; + availableTimes: object[] /** 扩展参数。 */ - extInfo: unknown; + extInfo: unknown } export interface CreateBadgeCodeUserInstanceResponse { - codeId: string; - codeDetailUrl?: string; + codeId: string + codeDetailUrl?: string } export interface NotifyBadgeCodeRefundResultParams { /** 企业的corpId。 */ - corpId: string; + corpId: string /** 用户userid,需要与生成码时使用的**userid**保持一致。 */ - userId: string; + userId: string /** 交易订单号,自定义,接入方针对交易生成的唯一订单号。 */ - tradeNo: string; + tradeNo: string /** 本次退款订单号,自定义,接入方针对交易生成的唯一退款订单号。 */ - refundOrderNo: string; + refundOrderNo: string /** 备注。 */ - remark: string; + remark: string /** 退款金额。 */ - refundAmount: string; + refundAmount: string /** 退款的优惠金额。 */ - refundPromotionAmount: string; + refundPromotionAmount: string /** 退款时间。 */ - gmtRefund: string; + gmtRefund: string /** 支付渠道明细信息。 */ - payChannelDetailList: object[]; + payChannelDetailList: object[] /** 支付时使用的付款码。 */ - payCode: string; + payCode: string } export interface NotifyBadgeCodeRefundResultResponse { - result: string; + result: string } export interface UpdateBadgeCodeUserInstanceParams { /** 用户码ID。 */ - codeId: string; + codeId: string /** 码标识,取值: */ - codeIdentity: string; + codeIdentity: string /** 码值,由调用方生成。 */ - codeValue?: string; + codeValue?: string /** 状态,传入关闭状态需要用户手动开启后才会渲染二维码。 */ - status?: string; + status?: string /** 企业corpId。 */ - corpId: string; + corpId: string /** 用户和企业的关系类型,用于区分内部员工,外部联系人,无关系普通用户。 */ - userCorpRelationType: string; + userCorpRelationType: string /** 用户身份标识。 */ - userIdentity: string; + userIdentity: string /** 临时码过期时间,格式:yyyy-MM-dd HH:mm:ss。 */ - gmtExpired: string; + gmtExpired: string /** 有效时间列表,对于连续时间段,只需传入一个对象即可。 */ - availableTimes: object[]; + availableTimes: object[] /** 扩展参数。 */ - extInfo: unknown; + extInfo: unknown } export interface UpdateBadgeCodeUserInstanceResponse { - codeId?: string; + codeId?: string } export interface DecodeBadgeCodeParams { /** 码值,解码接口仅支持钉钉侧生成的码值。 */ - payCode: string; + payCode: string /** 请求ID,由调用方随机生成幂等字符串。 */ - requestId: string; + requestId: string } export interface DecodeBadgeCodeResponse { - corpId: string; - userId?: string; - codeType: string; - alipayCode: string; - userCorpRelationType: string; - codeIdentity?: string; - codeId?: string; - outBizId?: string; - extInfo?: string; + corpId: string + userId?: string + codeType: string + alipayCode: string + userCorpRelationType: string + codeIdentity?: string + codeId?: string + outBizId?: string + extInfo?: string } // funcName: isOldApi Internal.define({ - "/badge/notices": { POST: { createBadgeNotify: false } }, - "/badge/codes/verifyResults": { + '/badge/notices': { POST: { createBadgeNotify: false } }, + '/badge/codes/verifyResults': { POST: { notifyBadgeCodeVerifyResult: false }, }, - "/badge/codes/corpInstances": { POST: { saveBadgeCodeCorpInstance: false } }, - "/badge/codes/payResults": { POST: { notifyBadgeCodePayResult: false } }, - "/badge/codes/userInstances": { + '/badge/codes/corpInstances': { POST: { saveBadgeCodeCorpInstance: false } }, + '/badge/codes/payResults': { POST: { notifyBadgeCodePayResult: false } }, + '/badge/codes/userInstances': { POST: { createBadgeCodeUserInstance: false }, PUT: { updateBadgeCodeUserInstance: false }, }, - "/badge/codes/refundResults": { + '/badge/codes/refundResults': { POST: { notifyBadgeCodeRefundResult: false }, }, - "/badge/codes/decode": { POST: { decodeBadgeCode: false } }, -}); -declare module "../internal" { + '/badge/codes/decode': { POST: { decodeBadgeCode: false } }, +}) +declare module '../internal' { interface Internal { /** * 钉工牌通知消息 @@ -230,55 +230,55 @@ declare module "../internal" { */ createBadgeNotify( params: CreateBadgeNotifyParams, - ): Promise; + ): Promise /** * 通知钉工牌码验证结果 * @see https://developers.dingtalk.com/document/isvapp/notification-dingtalk-badge-verification-result */ notifyBadgeCodeVerifyResult( params: NotifyBadgeCodeVerifyResultParams, - ): Promise; + ): Promise /** * 配置企业钉工牌 * @see https://developers.dingtalk.com/document/isvapp/save-dingtalk-enterprise-instance */ saveBadgeCodeCorpInstance( params: SaveBadgeCodeCorpInstanceParams, - ): Promise; + ): Promise /** * 通知支付结果 * @see https://developers.dingtalk.com/document/isvapp/sync-dingtalk-badge-code-payment-result */ notifyBadgeCodePayResult( params: NotifyBadgeCodePayResultParams, - ): Promise; + ): Promise /** * 创建钉工牌电子码 * @see https://developers.dingtalk.com/document/isvapp/create-a-badge-user-instance */ createBadgeCodeUserInstance( params: CreateBadgeCodeUserInstanceParams, - ): Promise; + ): Promise /** * 通知退款结果 * @see https://developers.dingtalk.com/document/isvapp/notification-dingtalk-badge-code-refund-result */ notifyBadgeCodeRefundResult( params: NotifyBadgeCodeRefundResultParams, - ): Promise; + ): Promise /** * 更新钉工牌电子码 * @see https://developers.dingtalk.com/document/isvapp/update-dingtalk-user-instance */ updateBadgeCodeUserInstance( params: UpdateBadgeCodeUserInstanceParams, - ): Promise; + ): Promise /** * 解码钉工牌电子码 * @see https://developers.dingtalk.com/document/isvapp/stack-dingtalk-badge */ decodeBadgeCode( params: DecodeBadgeCodeParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/blackboard.ts b/adapters/dingtalk/src/api/blackboard.ts index c3c632ac..60d9c1f8 100644 --- a/adapters/dingtalk/src/api/blackboard.ts +++ b/adapters/dingtalk/src/api/blackboard.ts @@ -1,20 +1,20 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryBlackboardSpaceQuery { /** 操作人userId。 */ - operationUserId: string; + operationUserId: string } export interface QueryBlackboardSpaceResponse { - spaceId?: string; + spaceId?: string } // funcName: isOldApi Internal.define({ - "/blackboard/spaces": { GET: { queryBlackboardSpace: false } }, -}); -declare module "../internal" { + '/blackboard/spaces': { GET: { queryBlackboardSpace: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取公告钉盘空间信息 @@ -22,6 +22,6 @@ declare module "../internal" { */ queryBlackboardSpace( query: QueryBlackboardSpaceQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/calendar.ts b/adapters/dingtalk/src/api/calendar.ts index a2f66077..cc7ef491 100644 --- a/adapters/dingtalk/src/api/calendar.ts +++ b/adapters/dingtalk/src/api/calendar.ts @@ -1,585 +1,585 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetMeetingRoomsScheduleParams { /** 待查询的会议室roomId列表,建议不超过5个。 */ - roomIds: string[]; + roomIds: string[] /** 查询开始时间,iso8601格式,例如:2022-07-29T14:55Z。 */ - startTime: string; + startTime: string /** 查询结束时间,iso8601格式,例如:2022-07-29T14:55Z。 */ - endTime: string; + endTime: string } export interface GetMeetingRoomsScheduleResponse { scheduleInformation?: { - roomId?: string; - error?: string; - scheduleItems?: number; - }[]; + roomId?: string + error?: string + scheduleItems?: number + }[] } export interface AddMeetingRoomsParams { /** 需要预定的会议室roomId列表,一个日程最多添加5个会议室。 */ - meetingRoomsToAdd: object[]; + meetingRoomsToAdd: object[] } export interface AddMeetingRoomsResponse { - result?: unknown; + result?: unknown } export interface RemoveMeetingRoomsParams { /** 需要取消预定的会议室信息。 */ - meetingRoomsToRemove?: object[]; + meetingRoomsToRemove?: object[] } export interface RemoveMeetingRoomsResponse { - result?: unknown; + result?: unknown } export interface UnsubscribeCalendarResponse { - result?: unknown; + result?: unknown } export interface DeleteSubscribedCalendarResponse { - result?: unknown; + result?: unknown } export interface GetSubscribedCalendarResponse { - calendarId?: string; - name?: string; - description?: string; - author?: string; - managers?: string[]; + calendarId?: string + name?: string + description?: string + author?: string + managers?: string[] subscribeScope?: { - unionIds?: number; - openConversationIds?: number; - corpIds?: number; - }; + unionIds?: number + openConversationIds?: number + corpIds?: number + } } export interface CreateSubscribedCalendarParams { /** 订阅日历的名称。 */ - name: string; + name: string /** 订阅日历的描述,最大长度1024字符。 */ - description?: string; + description?: string /** 订阅日历共同编辑人的unionId。 */ - managers?: string[]; + managers?: string[] /** 可订阅该日历的对象。 */ - subscribeScope: unknown; + subscribeScope: unknown } export interface CreateSubscribedCalendarResponse { - calendarId?: string; + calendarId?: string } export interface SignOutResponse { - checkOutTime?: number; + checkOutTime?: number } export interface GetSignOutListQuery { /** 查询返回结果数,最大值500。 */ - maxResults: number; + maxResults: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 签退信息类型。 */ - type: string; + type: string } export interface GetSignOutListResponse { - nextToken?: string; + nextToken?: string users?: { - userId?: string; - displayName?: string; - checkOutTime?: number; - }[]; + userId?: string + displayName?: string + checkOutTime?: number + }[] } export interface ListAttendeesQuery { /** 最大返回记录数,默认值100,最大值500。 */ - maxResults?: number; + maxResults?: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string } export interface ListAttendeesResponse { - nextToken?: string; + nextToken?: string attendees?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - isOptional?: number; - }[]; + id?: string + displayName?: string + responseStatus?: string + self?: number + isOptional?: number + }[] } export interface SignInResponse { - checkInTime?: number; + checkInTime?: number } export interface ListAclsResponse { acls?: { - privilege?: string; - aclId?: string; - scope?: number; - }[]; + privilege?: string + aclId?: string + scope?: number + }[] } export interface CreateAclsParams { /** 权限信息,取值: */ - privilege: string; + privilege: string /** 是否向授权人发消息。 */ - sendMsg: unknown; + sendMsg: unknown /** 权限范围。 */ - scope: unknown; + scope: unknown } export interface CreateAclsResponse { - privilege?: string; - aclId?: string; + privilege?: string + aclId?: string scope?: { - scopeType?: string; - userId?: string; - }; + scopeType?: string + userId?: string + } } export interface GetSignInListQuery { /** 查询返回结果数,最大值500。 */ - maxResults: number; + maxResults: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 签到信息类型,取值: */ - type: string; + type: string } export interface GetSignInListResponse { - nextToken?: string; + nextToken?: string users?: { - userId?: string; - displayName?: string; - checkInTime?: number; - }[]; + userId?: string + displayName?: string + checkInTime?: number + }[] } export interface ListCalendarsResponse { response?: { - calendars: number; - }; + calendars: number + } } export interface GetScheduleParams { /** 查询目标用户的unionId,可通过[根据userid获取用户详情](https://developers.dingtalk.com/document/app/query-user-details)接口获取。 */ - userIds: string[]; + userIds: string[] /** 查询的开始时间。 */ - startTime: string; + startTime: string /** 查询的结束时间。 */ - endTime: string; + endTime: string } export interface GetScheduleResponse { scheduleInformation?: { - userId?: string; - error?: string; - scheduleItems?: number; - }[]; + userId?: string + error?: string + scheduleItems?: number + }[] } export interface ListEventsQuery { /** 日程开始时间的最小值,格式为ISO-8601的date-time格式,可不填。 */ - timeMin?: string; + timeMin?: string /** 日程开始时间的最大值,格式为ISO-8601的date-time格式,可不填。 */ - timeMax?: string; + timeMax?: string /** 是否返回已取消/删除的日程。 */ - showDeleted?: unknown; + showDeleted?: unknown /** 最大返回记录数,最大值100,默认值100。 */ - maxResults?: number; + maxResults?: number /** 每个日程的参与者查询个数,默认100,最大100。 */ - maxAttendees?: number; + maxAttendees?: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 同步token,用于增量数据同步场景,一个查询条件已经返回全部数据后(如果数据比较多会分页返回,调用方需要连续使用nextToken查询,直到所有分页都查完nextToken返回null之后),会返回一个syncToken,下次带着该token来查询会返回两次查询之间发生变更的增量数据。 */ - syncToken?: string; + syncToken?: string } export interface ListEventsResponse { - nextToken?: string; + nextToken?: string events?: { - id?: string; - summary?: string; - description?: string; - start?: number; - originStart?: number; - end?: number; - isAllDay?: number; - recurrence?: number; - attendees?: number; - organizer?: number; - location?: number; - seriesMasterId?: string; - createTime?: string; - updateTime?: string; - status?: string; - onlineMeetingInfo?: number; - reminders?: number; - extendedProperties?: number; - meetingRooms?: number; - categories?: number; - richTextDescription?: number; - }[]; - syncToken?: string; + id?: string + summary?: string + description?: string + start?: number + originStart?: number + end?: number + isAllDay?: number + recurrence?: number + attendees?: number + organizer?: number + location?: number + seriesMasterId?: string + createTime?: string + updateTime?: string + status?: string + onlineMeetingInfo?: number + reminders?: number + extendedProperties?: number + meetingRooms?: number + categories?: number + richTextDescription?: number + }[] + syncToken?: string } export interface GetEventQuery { /** 最大参与人数,默认值100,最大值500。 */ - maxAttendees?: number; + maxAttendees?: number } export interface GetEventResponse { - id?: string; - summary?: string; - description?: string; - status: string; + id?: string + summary?: string + description?: string + status: string start?: { - date?: string; - dateTime?: string; - timeZone?: string; - }; + date?: string + dateTime?: string + timeZone?: string + } originStart?: { - dateTime?: string; - }; + dateTime?: string + } end?: { - date?: string; - dateTime?: string; - timeZone?: string; - }; - isAllDay?: unknown; + date?: string + dateTime?: string + timeZone?: string + } + isAllDay?: unknown recurrence?: { - pattern?: number; - range?: number; - }; + pattern?: number + range?: number + } attendees?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - isOptional?: number; - }[]; + id?: string + displayName?: string + responseStatus?: string + self?: number + isOptional?: number + }[] organizer?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - }; + id?: string + displayName?: string + responseStatus?: string + self?: number + } location?: { - displayName?: string; - meetingRooms?: number; - }; - seriesMasterId?: string; - createTime?: string; - updateTime?: string; + displayName?: string + meetingRooms?: number + } + seriesMasterId?: string + createTime?: string + updateTime?: string reminders?: { - method?: string; - minutes?: string; - }[]; + method?: string + minutes?: string + }[] onlineMeetingInfo?: { - type?: string; - conferenceId?: string; - url?: string; - extraInfo?: number; - }; + type?: string + conferenceId?: string + url?: string + extraInfo?: number + } extendedProperties?: { - sharedProperties?: number; - }; + sharedProperties?: number + } meetingRooms?: { - roomId?: string; - responseStatus?: string; - displayName?: string; - }[]; + roomId?: string + responseStatus?: string + displayName?: string + }[] categories?: { - displayName?: string; - }[]; + displayName?: string + }[] richTextDescription?: { - text?: string; - }; + text?: string + } } export interface AddAttendeeParams { /** 参与人信息。 */ - attendeesToAdd: object[]; + attendeesToAdd: object[] } export interface RemoveAttendeeParams { /** 日程参与人列表。 */ - attendeesToRemove?: object[]; + attendeesToRemove?: object[] } export interface CreateEventParams { /** 日程标题,最大不超过2048个字符。 */ - summary: string; + summary: string /** 日程描述,最大不超过5000个字符。 */ - description?: string; + description?: string /** 日程开始时间。 */ - start: unknown; + start: unknown /** 日程结束时间。 */ - end?: unknown; + end?: unknown /** 是否全天日程。 */ - isAllDay?: unknown; + isAllDay?: unknown /** 日程循环规则。 */ - recurrence?: unknown; + recurrence?: unknown /** 日程参与人列表,最多支持500个参与人。 */ - attendees?: object[]; + attendees?: object[] /** 日程地点。 */ - location?: unknown; + location?: unknown /** 日程提醒,可以添加多个,如果不传默认提醒时间为: */ - reminders?: object[]; + reminders?: object[] /** 创建日程同时创建线上会议。 */ - onlineMeetingInfo?: unknown; + onlineMeetingInfo?: unknown /** JSON格式的扩展能力开关,选填,具体属性定义如下: */ - extra?: unknown; + extra?: unknown } export interface CreateEventResponse { - id?: string; - summary?: string; - description?: string; + id?: string + summary?: string + description?: string start: { - date?: string; - dateTime?: string; - timeZone?: string; - }; + date?: string + dateTime?: string + timeZone?: string + } end?: { - date?: string; - dateTime?: string; - timeZone?: string; - }; - isAllDay?: unknown; + date?: string + dateTime?: string + timeZone?: string + } + isAllDay?: unknown recurrence?: { - pattern?: number; - range?: number; - }; + pattern?: number + range?: number + } attendees?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - isOptional?: number; - }[]; + id?: string + displayName?: string + responseStatus?: string + self?: number + isOptional?: number + }[] organizer?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - }; + id?: string + displayName?: string + responseStatus?: string + self?: number + } location?: { - displayName?: string; - }; + displayName?: string + } reminders?: { - method?: string; - minutes?: string; - }[]; - createTime?: string; - updateTime?: string; + method?: string + minutes?: string + }[] + createTime?: string + updateTime?: string onlineMeetingInfo?: { - type?: string; - conferenceId?: string; - url?: string; - extraInfo?: number; - }; + type?: string + conferenceId?: string + url?: string + extraInfo?: number + } uiConfigs?: { - uiName?: string; - uiStatus?: string; - }[]; + uiName?: string + uiStatus?: string + }[] richTextDescription?: { - text?: string; - }; + text?: string + } } export interface ListEventsViewQuery { /** 查询开始时间,格式为ISO-8601的date-time格式。 */ - timeMin?: string; + timeMin?: string /** 查询截止时间,格式为ISO-8601的date-time格式。 */ - timeMax?: string; + timeMax?: string /** 最大返回记录数,最大值100,默认值100。 */ - maxResults?: number; + maxResults?: number /** 每个日程的参与者查询个数,默认100,最大100。如果参会人数超过100人,需要拉取全部参会人请使用 */ - maxAttendees?: number; + maxAttendees?: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string } export interface ListEventsViewResponse { - nextToken?: string; + nextToken?: string events?: { - id?: string; - summary?: string; - description?: string; - start?: number; - originStart?: number; - end?: number; - isAllDay?: number; - recurrence?: number; - attendees?: number; - organizer?: number; - location?: number; - seriesMasterId?: string; - createTime?: string; - updateTime?: string; - status?: string; - extendedProperties?: number; - onlineMeetingInfo?: number; - categories?: number; - richTextDescription?: number; - meetingRooms?: number; - }[]; + id?: string + summary?: string + description?: string + start?: number + originStart?: number + end?: number + isAllDay?: number + recurrence?: number + attendees?: number + organizer?: number + location?: number + seriesMasterId?: string + createTime?: string + updateTime?: string + status?: string + extendedProperties?: number + onlineMeetingInfo?: number + categories?: number + richTextDescription?: number + meetingRooms?: number + }[] } export interface RespondEventParams { /** 响应状态: */ - responseStatus: string; + responseStatus: string } export interface PatchEventParams { /** 日程标题。 */ - summary?: string; + summary?: string /** 日程ID。 */ - id: string; + id: string /** 日程描述。 */ - description?: string; + description?: string /** 日程开始时间。 */ - start?: unknown; + start?: unknown /** 日程结束时间。 */ - end?: unknown; + end?: unknown /** 是否全天日程。 */ - isAllDay?: unknown; + isAllDay?: unknown /** 日程循环规则。 */ - recurrence?: unknown; + recurrence?: unknown /** 参会人。 */ - attendees?: object[]; + attendees?: object[] /** 日程地点。 */ - location?: unknown; + location?: unknown /** JSON格式的扩展能力开关,选填,具体属性定义如下。 */ - extra?: unknown; + extra?: unknown /** 单个日程提醒记录。 */ - reminders?: object[]; + reminders?: object[] /** 视频会议。 */ - onlineMeetingInfo?: unknown; + onlineMeetingInfo?: unknown } export interface PatchEventResponse { - id?: string; - summary?: string; - description?: string; + id?: string + summary?: string + description?: string start: { - date?: string; - dateTime?: string; - timeZone?: string; - }; + date?: string + dateTime?: string + timeZone?: string + } end?: { - date?: string; - dateTime?: string; - timeZone?: string; - }; - isAllDay?: unknown; + date?: string + dateTime?: string + timeZone?: string + } + isAllDay?: unknown recurrence?: { - pattern?: number; - range?: number; - }; + pattern?: number + range?: number + } attendees?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - isOptional?: number; - }[]; + id?: string + displayName?: string + responseStatus?: string + self?: number + isOptional?: number + }[] organizer?: { - id?: string; - displayName?: string; - responseStatus?: string; - self?: number; - }; + id?: string + displayName?: string + responseStatus?: string + self?: number + } location?: { - displayName?: string; - meetingRooms?: number; - }; + displayName?: string + meetingRooms?: number + } reminders?: { - method?: string; - minutes?: string; - }[]; - createTime?: string; - updateTime?: string; + method?: string + minutes?: string + }[] + createTime?: string + updateTime?: string onlineMeetingInfo?: { - type?: string; - conferenceId?: string; - url?: string; - }; + type?: string + conferenceId?: string + url?: string + } richTextDescription?: { - text?: string; - }; + text?: string + } uiConfigs?: { - uiName: string; - uiStatus: string; - }[]; + uiName: string + uiStatus: string + }[] } // funcName: isOldApi Internal.define({ - "/calendar/users/{userId}/meetingRooms/schedules/query": { + '/calendar/users/{userId}/meetingRooms/schedules/query': { POST: { getMeetingRoomsSchedule: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms": + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms': { POST: { addMeetingRooms: false } }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms/batchRemove": + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/meetingRooms/batchRemove': { POST: { removeMeetingRooms: false } }, - "/calendar/users/{userId}/calendars/{calendarId}/unsubscribe": { + '/calendar/users/{userId}/calendars/{calendarId}/unsubscribe': { POST: { unsubscribeCalendar: false }, }, - "/calendar/users/{userId}/subscribedCalendars/{calendarId}": { + '/calendar/users/{userId}/subscribedCalendars/{calendarId}': { DELETE: { deleteSubscribedCalendar: false }, GET: { getSubscribedCalendar: false }, }, - "/calendar/users/{userId}/subscribedCalendars": { + '/calendar/users/{userId}/subscribedCalendars': { POST: { createSubscribedCalendar: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signOut": { + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signOut': { POST: { signOut: false }, GET: { getSignOutList: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/subscribe": { + '/calendar/users/{userId}/calendars/{calendarId}/subscribe': { POST: { subscribeCalendar: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees": + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees': { GET: { listAttendees: false }, POST: { addAttendee: false } }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signin": { + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/signin': { POST: { signIn: false }, GET: { getSignInList: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/acls": { + '/calendar/users/{userId}/calendars/{calendarId}/acls': { GET: { listAcls: false }, POST: { createAcls: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/acls/{aclId}": { + '/calendar/users/{userId}/calendars/{calendarId}/acls/{aclId}': { DELETE: { deleteAcl: false }, }, - "/calendar/users/{userId}/calendars": { GET: { listCalendars: false } }, - "/calendar/users/{userId}/querySchedule": { POST: { getSchedule: false } }, - "/calendar/users/{userId}/calendars/{calendarId}/events": { + '/calendar/users/{userId}/calendars': { GET: { listCalendars: false } }, + '/calendar/users/{userId}/querySchedule': { POST: { getSchedule: false } }, + '/calendar/users/{userId}/calendars/{calendarId}/events': { GET: { listEvents: false }, POST: { createEvent: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}": { + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}': { GET: { getEvent: false }, DELETE: { deleteEvent: false }, PUT: { patchEvent: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees/batchRemove": + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/attendees/batchRemove': { POST: { removeAttendee: false } }, - "/calendar/users/{userId}/calendars/{calendarId}/eventsview": { + '/calendar/users/{userId}/calendars/{calendarId}/eventsview': { GET: { listEventsView: false }, }, - "/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/respond": { + '/calendar/users/{userId}/calendars/{calendarId}/events/{eventId}/respond': { POST: { respondEvent: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询会议室忙闲 @@ -588,7 +588,7 @@ declare module "../internal" { getMeetingRoomsSchedule( userId: string, params: GetMeetingRoomsScheduleParams, - ): Promise; + ): Promise /** * 添加会议室 * @see https://developers.dingtalk.com/document/app/add-a-meeting-room @@ -598,7 +598,7 @@ declare module "../internal" { calendarId: string, eventId: string, params: AddMeetingRoomsParams, - ): Promise; + ): Promise /** * 删除会议室 * @see https://developers.dingtalk.com/document/isvapp/cancel-a-meeting-room-reservation @@ -608,7 +608,7 @@ declare module "../internal" { calendarId: string, eventId: string, params: RemoveMeetingRoomsParams, - ): Promise; + ): Promise /** * 取消订阅公共日历 * @see https://developers.dingtalk.com/document/orgapp/unsubscribe-from-a-public-calendar @@ -616,7 +616,7 @@ declare module "../internal" { unsubscribeCalendar( userId: string, calendarId: string, - ): Promise; + ): Promise /** * 删除订阅日历 * @see https://developers.dingtalk.com/document/isvapp/delete-subscription-calendar @@ -624,7 +624,7 @@ declare module "../internal" { deleteSubscribedCalendar( userId: string, calendarId: string, - ): Promise; + ): Promise /** * 查询单个订阅日历详情 * @see https://developers.dingtalk.com/document/isvapp/query-a-single-subscription-calendar @@ -632,7 +632,7 @@ declare module "../internal" { getSubscribedCalendar( userId: string, calendarId: string, - ): Promise; + ): Promise /** * 创建订阅日历 * @see https://developers.dingtalk.com/document/isvapp/create-subscription-calendar @@ -640,7 +640,7 @@ declare module "../internal" { createSubscribedCalendar( userId: string, params: CreateSubscribedCalendarParams, - ): Promise; + ): Promise /** * 针对单个日程进行签退 * @see https://developers.dingtalk.com/document/isvapp/sign-off-for-a-single-schedule @@ -649,7 +649,7 @@ declare module "../internal" { userId: string, calendarId: string, eventId: string, - ): Promise; + ): Promise /** * 查看单个日程的签退详情 * @see https://developers.dingtalk.com/document/isvapp/view-the-billing-details-of-a-single-schedule @@ -659,12 +659,12 @@ declare module "../internal" { calendarId: string, eventId: string, query: GetSignOutListQuery, - ): Promise; + ): Promise /** * 订阅公共日历 * @see https://developers.dingtalk.com/document/orgapp/subscribe-to-a-public-calendar */ - subscribeCalendar(userId: string, calendarId: string): Promise; + subscribeCalendar(userId: string, calendarId: string): Promise /** * 获取日程参与者 * @see https://developers.dingtalk.com/document/isvapp/query-schedule-participants @@ -674,7 +674,7 @@ declare module "../internal" { calendarId: string, eventId: string, query: ListAttendeesQuery, - ): Promise; + ): Promise /** * 针对单个日程进行签到 * @see https://developers.dingtalk.com/document/orgapp-server/sign-in-for-a-single-schedule @@ -683,17 +683,17 @@ declare module "../internal" { userId: string, calendarId: string, eventId: string, - ): Promise; + ): Promise /** * 获取访问控制列表 * @see https://developers.dingtalk.com/document/personalapp/get-access-control-list */ - listAcls(userId: string, calendarId: string): Promise; + listAcls(userId: string, calendarId: string): Promise /** * 删除访问控制 * @see https://developers.dingtalk.com/document/personalapp/delete-access-control */ - deleteAcl(userId: string, calendarId: string, aclId: string): Promise; + deleteAcl(userId: string, calendarId: string, aclId: string): Promise /** * 创建访问控制 * @see https://developers.dingtalk.com/document/personalapp/create-access-control @@ -702,7 +702,7 @@ declare module "../internal" { userId: string, calendarId: string, params: CreateAclsParams, - ): Promise; + ): Promise /** * 查看单个日程的签到详情 * @see https://developers.dingtalk.com/document/isvapp/view-the-check-in-details-of-a-single-schedule @@ -712,12 +712,12 @@ declare module "../internal" { calendarId: string, eventId: string, query: GetSignInListQuery, - ): Promise; + ): Promise /** * 查询日历 * @see https://developers.dingtalk.com/document/isvapp/query-the-calendar */ - listCalendars(userId: string): Promise; + listCalendars(userId: string): Promise /** * 获取用户忙闲信息 * @see https://developers.dingtalk.com/document/isvapp/free-schedule @@ -725,7 +725,7 @@ declare module "../internal" { getSchedule( userId: string, params: GetScheduleParams, - ): Promise; + ): Promise /** * 查询日程列表 * @see https://developers.dingtalk.com/document/personalapp/query-an-event-list-1 @@ -734,7 +734,7 @@ declare module "../internal" { userId: string, calendarId: string, query: ListEventsQuery, - ): Promise; + ): Promise /** * 查询日程列表 * @see https://developers.dingtalk.com/document/personalapp/query-a-single-schedule @@ -744,7 +744,7 @@ declare module "../internal" { calendarId: string, eventId: string, query: GetEventQuery, - ): Promise; + ): Promise /** * 新增日程参与人 * @see https://developers.dingtalk.com/document/isvapp/add-schedule-participant @@ -754,7 +754,7 @@ declare module "../internal" { calendarId: string, eventId: string, params: AddAttendeeParams, - ): Promise; + ): Promise /** * 删除日程参与人 * @see https://developers.dingtalk.com/document/isvapp/delete-schedule-participant @@ -764,7 +764,7 @@ declare module "../internal" { calendarId: string, eventId: string, params: RemoveAttendeeParams, - ): Promise; + ): Promise /** * 删除指定日程 * @see https://developers.dingtalk.com/document/isvapp/delete-schedule @@ -773,7 +773,7 @@ declare module "../internal" { userId: string, calendarId: string, eventId: string, - ): Promise; + ): Promise /** * 创建日程 * @see https://developers.dingtalk.com/document/personalapp/create-schedule @@ -782,7 +782,7 @@ declare module "../internal" { userId: string, calendarId: string, params: CreateEventParams, - ): Promise; + ): Promise /** * 查询日程视图列表以查看闲忙,展开循环日程 * @see https://developers.dingtalk.com/document/personalapp/query-schedule-view-1 @@ -791,7 +791,7 @@ declare module "../internal" { userId: string, calendarId: string, query: ListEventsViewQuery, - ): Promise; + ): Promise /** * 回复日程邀请 * @see https://developers.dingtalk.com/document/isvapp/participants-respond-to-schedule-invitations @@ -801,7 +801,7 @@ declare module "../internal" { calendarId: string, eventId: string, params: RespondEventParams, - ): Promise; + ): Promise /** * 修改日程 * @see https://developers.dingtalk.com/document/personalapp/modify-schedule @@ -811,6 +811,6 @@ declare module "../internal" { calendarId: string, eventId: string, params: PatchEventParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/card.ts b/adapters/dingtalk/src/api/card.ts index 73f23091..933e3573 100644 --- a/adapters/dingtalk/src/api/card.ts +++ b/adapters/dingtalk/src/api/card.ts @@ -1,214 +1,214 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface UpdateCardParams { /** 外部卡片实例Id。 */ - outTrackId: string; + outTrackId: string /** 卡片数据 */ - cardData?: unknown; + cardData?: unknown /** 用户的私有数据。 */ - privateData?: unknown; + privateData?: unknown /** 卡片更新选项 */ - cardUpdateOptions?: unknown; + cardUpdateOptions?: unknown } export interface UpdateCardResponse { - success?: unknown; - result?: unknown; + success?: unknown + result?: unknown } export interface CreateCardParams { /** 卡片创建者的userId。 */ - userId?: string; + userId?: string /** 卡片内容模板ID,可通过登录[开发者后台 > 卡片平台](https://open-dev.dingtalk.com/fe/card)获取。 */ - cardTemplateId: string; + cardTemplateId: string /** 外部卡片实例Id。 */ - outTrackId: string; + outTrackId: string /** 卡片回调的类型: */ - callbackType?: string; + callbackType?: string /** 卡片回调HTTP模式时的路由 Key,用于查询注册的 callbackUrl。 */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 卡片数据,示例: */ - cardData: unknown; + cardData: unknown /** 用户的私有数据: */ - privateData?: unknown; + privateData?: unknown /** 动态数据源配置。 */ - openDynamicDataConfig?: unknown; + openDynamicDataConfig?: unknown /** IM 群聊场域信息。 */ - imGroupOpenSpaceModel?: unknown; + imGroupOpenSpaceModel?: unknown /** IM 单聊场域信息。 */ - imRobotOpenSpaceModel?: unknown; + imRobotOpenSpaceModel?: unknown /** 协作场域信息。 */ - coFeedOpenSpaceModel?: unknown; + coFeedOpenSpaceModel?: unknown /** 吊顶场域信息。 */ - topOpenSpaceModel?: unknown; + topOpenSpaceModel?: unknown /** 用户id类型: */ - userIdType?: number; + userIdType?: number } export interface CreateCardResponse { - success?: unknown; - result?: string; + success?: unknown + result?: string } export interface CreateAndDeliverParams { /** 卡片创建者的userId。 */ - userId?: string; + userId?: string /** 卡片内容模板ID,可通过登录[开发者后台 > 卡片平台](https://open-dev.dingtalk.com/fe/card)获取。 */ - cardTemplateId: string; + cardTemplateId: string /** 外部卡片实例Id。 */ - outTrackId: string; + outTrackId: string /** 卡片回调的类型: */ - callbackType?: string; + callbackType?: string /** 卡片回调HTTP模式时的路由 Key,用于查询注册的 callbackUrl。 */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 卡片数据,示例: */ - cardData: unknown; + cardData: unknown /** 用户的私有数据: */ - privateData?: unknown; + privateData?: unknown /** 动态数据源配置。 */ - openDynamicDataConfig?: unknown; + openDynamicDataConfig?: unknown /** IM群聊场域信息。 */ - imGroupOpenSpaceModel?: unknown; + imGroupOpenSpaceModel?: unknown /** IM机器人单聊场域信息。 */ - imRobotOpenSpaceModel?: unknown; + imRobotOpenSpaceModel?: unknown /** 协作场域信息。 */ - coFeedOpenSpaceModel?: unknown; + coFeedOpenSpaceModel?: unknown /** 吊顶场域信息。 */ - topOpenSpaceModel?: unknown; + topOpenSpaceModel?: unknown /** 表示场域及其场域id,其格式为`dtv1.card//spaceType1.spaceId1;spaceType2.spaceId2_1;spaceType2.spaceId2_2;spaceType3.spaceId3`。 */ - openSpaceId: string; + openSpaceId: string /** 群聊投放参数。 */ - imGroupOpenDeliverModel?: unknown; + imGroupOpenDeliverModel?: unknown /** IM机器人单聊投放参数。 */ - imRobotOpenDeliverModel?: unknown; + imRobotOpenDeliverModel?: unknown /** 吊顶投放参数。 */ - topOpenDeliverModel?: unknown; + topOpenDeliverModel?: unknown /** 协作投放参数。 */ - coFeedOpenDeliverModel?: unknown; + coFeedOpenDeliverModel?: unknown /** 文档投放参数 */ - docOpenDeliverModel?: unknown; + docOpenDeliverModel?: unknown /** 用户userId类型: */ - userIdType?: number; + userIdType?: number } export interface CreateAndDeliverResponse { - success?: unknown; + success?: unknown result?: { - outTrackId?: string; - deliverResults?: number; - }; + outTrackId?: string + deliverResults?: number + } } export interface RegisterCallbackParams { /** 回调地址的路由 Key,一个 callbackRouteKey 仅可映射一个 callbackUrl */ - callbackRouteKey: string; + callbackRouteKey: string /** 接受动态卡片回调的 URL 地址 */ - callbackUrl: string; + callbackUrl: string /** 加密密钥用于校验来源 */ - apiSecret?: string; + apiSecret?: string /** 是否强制覆盖更新,默认 false。 */ - forceUpdate?: unknown; + forceUpdate?: unknown } export interface RegisterCallbackResponse { - success?: unknown; + success?: unknown result?: { - callbackUrl?: string; - apiSecret?: string; - }; + callbackUrl?: string + apiSecret?: string + } } export interface AppendSpaceParams { /** 外部卡片实例Id。 */ - outTrackId: string; + outTrackId: string /** IM群聊场域信息 */ - imGroupOpenSpaceModel?: unknown; + imGroupOpenSpaceModel?: unknown /** 机器人单聊场域参数 */ - imRobotOpenSpaceModel?: unknown; + imRobotOpenSpaceModel?: unknown /** 吊顶场域信息 */ - topOpenSpaceModel?: unknown; + topOpenSpaceModel?: unknown /** 协作场域信息 */ - coFeedOpenSpaceModel?: unknown; + coFeedOpenSpaceModel?: unknown } export interface AppendSpaceResponse { - success?: unknown; - result?: unknown; + success?: unknown + result?: unknown } export interface DeliverCardParams { /** 外部卡片实例Id。 */ - outTrackId: string; + outTrackId: string /** 表示场域及其场域id,其格式为dtv1.card//spaceType1.spaceId1;spaceType2,spaceId2;spaceType3,spaceId3 */ - openSpaceId: string; + openSpaceId: string /** 单聊场域投放参数 */ - imSingleOpenDeliverModel?: unknown; + imSingleOpenDeliverModel?: unknown /** 群聊投放参数 */ - imGroupOpenDeliverModel?: unknown; + imGroupOpenDeliverModel?: unknown /** 吊顶投放参数 */ - topOpenDeliverModel?: unknown; + topOpenDeliverModel?: unknown /** 协作投放参数 */ - coFeedOpenDeliverModel?: unknown; + coFeedOpenDeliverModel?: unknown /** 工作台投放参数 */ - workBenchOpenDeliverModel?: unknown; + workBenchOpenDeliverModel?: unknown } export interface DeliverCardResponse { - success?: unknown; + success?: unknown result?: { - spaceType?: string; - spaceId?: string; - success?: number; - }[]; + spaceType?: string + spaceId?: string + success?: number + }[] } // funcName: isOldApi Internal.define({ - "/card/instances": { + '/card/instances': { PUT: { updateCard: false }, POST: { createCard: false }, }, - "/card/instances/createAndDeliver": { POST: { createAndDeliver: false } }, - "/card/callbacks/register": { POST: { registerCallback: false } }, - "/card/instances/spaces": { PUT: { appendSpace: false } }, - "/card/instances/deliver": { POST: { deliverCard: false } }, -}); -declare module "../internal" { + '/card/instances/createAndDeliver': { POST: { createAndDeliver: false } }, + '/card/callbacks/register': { POST: { registerCallback: false } }, + '/card/instances/spaces': { PUT: { appendSpace: false } }, + '/card/instances/deliver': { POST: { deliverCard: false } }, +}) +declare module '../internal' { interface Internal { /** * 更新卡片 * @see https://developers.dingtalk.com/document/orgapp/interactive-card-update-interface */ - updateCard(params: UpdateCardParams): Promise; + updateCard(params: UpdateCardParams): Promise /** * 创建卡片 * @see https://developers.dingtalk.com/document/orgapp/interface-for-creating-a-card-instance */ - createCard(params: CreateCardParams): Promise; + createCard(params: CreateCardParams): Promise /** * 创建并投放卡片 * @see https://developers.dingtalk.com/document/orgapp/create-and-deliver-cards */ createAndDeliver( params: CreateAndDeliverParams, - ): Promise; + ): Promise /** * 注册卡片回调地址 * @see https://developers.dingtalk.com/document/orgapp/register-card-callback-address */ registerCallback( params: RegisterCallbackParams, - ): Promise; + ): Promise /** * 新增或更新卡片的场域信息 * @see https://developers.dingtalk.com/document/orgapp/add-field-interface */ - appendSpace(params: AppendSpaceParams): Promise; + appendSpace(params: AppendSpaceParams): Promise /** * 投放卡片 * @see https://developers.dingtalk.com/document/isvapp/delivery-card-interface */ - deliverCard(params: DeliverCardParams): Promise; + deliverCard(params: DeliverCardParams): Promise } } diff --git a/adapters/dingtalk/src/api/conference.ts b/adapters/dingtalk/src/api/conference.ts index 6450047a..cf56470c 100644 --- a/adapters/dingtalk/src/api/conference.ts +++ b/adapters/dingtalk/src/api/conference.ts @@ -1,401 +1,401 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface InviteUsersParams { /** 操作用户unionId。 */ - unionId?: string; + unionId?: string /** 被邀请人对象。 */ - inviteeList?: object[]; + inviteeList?: object[] } export interface InviteUsersResponse { - success?: unknown; + success?: unknown } export interface FocusParams { /** 行为动作: */ - action: string; + action: string /** 被操作用户unionId。 */ - unionId: string; + unionId: string } export interface FocusResponse { - success?: unknown; + success?: unknown } export interface CohostsParams { /** 行为动作: */ - action: string; + action: string /** 被操作用户对象。 */ - userList: object[]; + userList: object[] } export interface CohostsResponse { - success?: unknown; + success?: unknown } export interface MuteMembersParams { /** 操作类型: */ - action: string; + action: string /** 被操作用户对象。 */ - userList: object[]; + userList: object[] } export interface MuteMembersResponse { - success?: unknown; + success?: unknown } export interface QueryScheduleConferenceInfoQuery { /** 标记当前开始读取的位置,置空表示从头开始 */ - nextToken?: string; + nextToken?: string /** 本次读取的最大数据记录数量 */ - maxResults?: number; + maxResults?: number } export interface QueryScheduleConferenceInfoResponse { - totalCount?: number; - nextToken: string; + totalCount?: number + nextToken: string conferenceList?: { - conferenceId?: string; - title?: string; - roomCode?: string; - status?: number; - startTime?: number; - endTime?: number; - }[]; + conferenceId?: string + title?: string + roomCode?: string + status?: number + startTime?: number + endTime?: number + }[] } export interface QueryCloudRecordVideoQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface QueryCloudRecordVideoResponse { videoList?: { - recordId?: string; - unionId?: string; - startTime?: number; - recordType?: number; - duration?: number; - fileSize?: number; - endTime?: number; - mediaId?: string; - regionId?: string; - }[]; + recordId?: string + unionId?: string + startTime?: number + recordType?: number + duration?: number + fileSize?: number + endTime?: number + mediaId?: string + regionId?: string + }[] } export interface QueryCloudRecordTextQuery { /** 用户unionId。 */ - unionId?: string; + unionId?: string /** 开始时间的千分之一秒,单位毫秒。 */ - startTime?: number; + startTime?: number /** 查询方式: */ - direction?: string; + direction?: string /** 单词查询条数,最大2000。 */ - maxResults?: number; + maxResults?: number /** 分页游标。 */ - nextToken?: number; + nextToken?: number } export interface QueryCloudRecordTextResponse { - hasMore?: unknown; + hasMore?: unknown paragraphList?: { - nextTtoken?: number; - status?: number; - unionId?: string; - nickName?: string; - recordId?: number; - startTime?: number; - endTime?: number; - paragraph?: string; - sentenceList?: number; - }[]; + nextTtoken?: number + status?: number + unionId?: string + nickName?: string + recordId?: number + startTime?: number + endTime?: number + paragraph?: string + sentenceList?: number + }[] } export interface QueryCloudRecordVideoPlayInfoQuery { /** 用户unionId。 */ - unionId: string; + unionId: string /** 媒体文件ID。 */ - mediaId: string; + mediaId: string /** 地域ID。 */ - regionId: string; + regionId: string } export interface QueryCloudRecordVideoPlayInfoResponse { - playUrl?: string; - mp4FileUrl?: string; - fileSize?: number; - duration?: number; - status?: number; + playUrl?: string + mp4FileUrl?: string + fileSize?: number + duration?: number + status?: number } export interface StopCloudRecordParams { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface StopCloudRecordResponse { - code?: string; + code?: string } export interface StopStreamOutParams { /** 推流ID,开启视频会议直播推流后生成。 */ - streamId: string; + streamId: string /** 是否停止所有流,为true时**streamId**参数无效。 */ - stopAllStream: unknown; + stopAllStream: unknown /** 用户unionId,可以调用[通过免登码获取用户信息(v2)](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */ - unionId: string; + unionId: string } export interface StopStreamOutResponse { - code: string; + code: string } export interface StartStreamOutParams { /** 用户unionId,可以调用[通过免登码获取用户信息(v2)](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */ - unionId: string; + unionId: string /** 是否需要主持人加入后才允许推流。 */ - needHostJoin: unknown; + needHostJoin: unknown /** 推流地址列表,最多10个,需要以rtmp开头。 */ - streamUrlList: string[]; + streamUrlList: string[] /** 推流名称。 */ - streamName: string; + streamName: string /** 布局,取值: */ - mode: string; + mode: string /** 小窗位置,取值: */ - smallWindowPosition: string; + smallWindowPosition: string } export interface StartStreamOutResponse { - successStreamMap?: unknown; - failStreamMap?: unknown; + successStreamMap?: unknown + failStreamMap?: unknown } export interface StartCloudRecordParams { /** 用户unionId。 */ - unionId: string; + unionId: string /** 小窗位置,取值: */ - smallWindowPosition?: string; + smallWindowPosition?: string /** 布局,取值: */ - mode?: string; + mode?: string } export interface StartCloudRecordResponse { - code?: string; + code?: string } export interface QueryConferenceInfoBatchParams { /** 会议ID列表。 */ - conferenceIdList: string[]; + conferenceIdList: string[] } export interface QueryConferenceInfoBatchResponse { infos?: { - conferenceId?: string; - title?: string; - startTime?: number; - status?: number; - mediaStatus?: number; - userList?: number; - }[]; + conferenceId?: string + title?: string + startTime?: number + status?: number + mediaStatus?: number + userList?: number + }[] } export interface CloseVideoConferenceQuery { /** 员工在当前开发者企业账号范围内的唯一标识。 */ - unionId: string; + unionId: string } export interface CloseVideoConferenceResponse { - code: number; - cause?: string; + code: number + cause?: string } export interface CreateVideoConferenceParams { /** 会议发起人的unionId。 */ - userId: string; + userId: string /** 会议主题,最多不能超20个中文。 */ - confTitle: string; + confTitle: string /** 邀请参会人员unionId列表。 */ - inviteUserIds?: string[]; + inviteUserIds?: string[] /** 是否邀请主叫。 */ - inviteCaller?: unknown; + inviteCaller?: unknown } export interface CreateVideoConferenceResponse { - conferenceId: string; - conferencePassword?: string; - hostPassword?: string; - externalLinkUrl?: string; - phoneNumbers?: string[]; - roomCode?: string; + conferenceId: string + conferencePassword?: string + hostPassword?: string + externalLinkUrl?: string + phoneNumbers?: string[] + roomCode?: string } export interface QueryConferenceMembersQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页最大条目数,默认值300,无最大值限制。 */ - maxResults?: number; + maxResults?: number } export interface QueryConferenceMembersResponse { memberModels?: { - unionId?: string; - conferenceId?: string; - userNick?: string; - joinTime?: number; - leaveTime?: number; - duration?: number; - host?: number; - attendStatus?: number; - outerOrgMember?: number; - pstnJoin?: number; - coHost?: number; - }[]; - nextToken?: string; - totalCount?: number; + unionId?: string + conferenceId?: string + userNick?: string + joinTime?: number + leaveTime?: number + duration?: number + host?: number + attendStatus?: number + outerOrgMember?: number + pstnJoin?: number + coHost?: number + }[] + nextToken?: string + totalCount?: number } export interface QueryConferenceInfoResponse { confInfo?: { - activeNum?: number; - attendNum?: number; - confDuration?: number; - conferenceId?: string; - creatorId?: string; - creatorNick?: string; - externalLinkUrl?: string; - invitedNum?: number; - startTime?: number; - status?: number; - title?: string; - roomCode?: string; - endTime?: number; - }; + activeNum?: number + attendNum?: number + confDuration?: number + conferenceId?: string + creatorId?: string + creatorNick?: string + externalLinkUrl?: string + invitedNum?: number + startTime?: number + status?: number + title?: string + roomCode?: string + endTime?: number + } } export interface CancelScheduleConferenceParams { /** 预约会议id: */ - scheduleConferenceId: string; + scheduleConferenceId: string /** 预约会议创建者unionId。 */ - creatorUnionId: string; + creatorUnionId: string } export interface CancelScheduleConferenceResponse { - success?: unknown; + success?: unknown } export interface QueryScheduleConferenceQuery { /** 请求者unionId。 */ - requestUnionId: string; + requestUnionId: string } export interface QueryScheduleConferenceResponse { - requestId?: string; - scheduleConferenceId?: string; - title?: string; - startTime?: number; - endTime?: number; - roomCode?: string; - url?: string; - phones?: string[]; + requestId?: string + scheduleConferenceId?: string + title?: string + startTime?: number + endTime?: number + roomCode?: string + url?: string + phones?: string[] } export interface UpdateScheduleConferenceParams { /** 预约会议创建者unionId。 */ - creatorUnionId: string; + creatorUnionId: string /** 预约会议id: */ - scheduleConferenceId: string; + scheduleConferenceId: string /** 预约会议标题。 */ - title: string; + title: string /** 预约会议开始时间,毫秒级UTC时间戳。 */ - startTime: number; + startTime: number /** 预约会议结束时间,毫秒级UTC时间戳。 */ - endTime: number; + endTime: number } export interface UpdateScheduleConferenceResponse { - success?: unknown; + success?: unknown } export interface CreateScheduleConferenceParams { /** 创建者unionId。 */ - creatorUnionId: string; + creatorUnionId: string /** 预约会议标题。 */ - title: string; + title: string /** 预约会议开始时间,毫秒级UTC时间戳。 */ - startTime: number; + startTime: number /** 预约会议结束时间,毫秒级UTC时间戳。 */ - endTime: number; + endTime: number } export interface CreateScheduleConferenceResponse { - requestId?: string; - scheduleConferenceId?: string; - roomCode?: string; - url?: string; - phones?: string[]; + requestId?: string + scheduleConferenceId?: string + roomCode?: string + url?: string + phones?: string[] } // funcName: isOldApi Internal.define({ - "/conference/videoConferences/{conferenceId}/users/invite": { + '/conference/videoConferences/{conferenceId}/users/invite': { POST: { inviteUsers: false }, }, - "/conference/videoConferences/{conferenceId}/focus": { + '/conference/videoConferences/{conferenceId}/focus': { POST: { focus: false }, }, - "/conference/videoConferences/{conferenceId}/coHosts/set": { + '/conference/videoConferences/{conferenceId}/coHosts/set': { POST: { cohosts: false }, }, - "/conference/videoConferences/{conferenceId}/members/mute": { + '/conference/videoConferences/{conferenceId}/members/mute': { POST: { muteMembers: false }, }, - "/conference/videoConferences/scheduleConferences/{scheduleConferenceId}": { + '/conference/videoConferences/scheduleConferences/{scheduleConferenceId}': { GET: { queryScheduleConferenceInfo: false }, }, - "/conference/videoConferences/{conferenceId}/cloudRecords/getVideos": { + '/conference/videoConferences/{conferenceId}/cloudRecords/getVideos': { GET: { queryCloudRecordVideo: false }, }, - "/conference/videoConferences/{conferenceId}/cloudRecords/getTexts": { + '/conference/videoConferences/{conferenceId}/cloudRecords/getTexts': { GET: { queryCloudRecordText: false }, }, - "/conference/videoConferences/{conferenceId}/cloudRecords/videos/getPlayInfos": + '/conference/videoConferences/{conferenceId}/cloudRecords/videos/getPlayInfos': { GET: { queryCloudRecordVideoPlayInfo: false } }, - "/conference/videoConferences/{conferenceId}/cloudRecords/stop": { + '/conference/videoConferences/{conferenceId}/cloudRecords/stop': { POST: { stopCloudRecord: false }, }, - "/conference/videoConferences/{conferenceId}/streamOuts/stop": { + '/conference/videoConferences/{conferenceId}/streamOuts/stop': { POST: { stopStreamOut: false }, }, - "/conference/videoConferences/{conferenceId}/streamOuts/start": { + '/conference/videoConferences/{conferenceId}/streamOuts/start': { POST: { startStreamOut: false }, }, - "/conference/videoConferences/{conferenceId}/cloudRecords/start": { + '/conference/videoConferences/{conferenceId}/cloudRecords/start': { POST: { startCloudRecord: false }, }, - "/conference/videoConferences/query": { + '/conference/videoConferences/query': { POST: { queryConferenceInfoBatch: false }, }, - "/conference/videoConferences/{conferenceId}": { + '/conference/videoConferences/{conferenceId}': { DELETE: { closeVideoConference: false }, GET: { queryConferenceInfo: false }, }, - "/conference/videoConferences": { POST: { createVideoConference: false } }, - "/conference/videoConferences/{conferenceId}/members": { + '/conference/videoConferences': { POST: { createVideoConference: false } }, + '/conference/videoConferences/{conferenceId}/members': { GET: { queryConferenceMembers: false }, }, - "/conference/scheduleConferences/cancel": { + '/conference/scheduleConferences/cancel': { POST: { cancelScheduleConference: false }, }, - "/conference/scheduleConferences/{scheduleConferenceId}/infos": { + '/conference/scheduleConferences/{scheduleConferenceId}/infos': { GET: { queryScheduleConference: false }, }, - "/conference/scheduleConferences": { + '/conference/scheduleConferences': { PUT: { updateScheduleConference: false }, POST: { createScheduleConference: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 邀请其他人员 @@ -404,12 +404,12 @@ declare module "../internal" { inviteUsers( conferenceId: string, params: InviteUsersParams, - ): Promise; + ): Promise /** * 设置全员看他 * @see https://developers.dingtalk.com/document/orgapp/set-the-whole-staff-to-see-him */ - focus(conferenceId: string, params: FocusParams): Promise; + focus(conferenceId: string, params: FocusParams): Promise /** * 设置联席主持人 * @see https://developers.dingtalk.com/document/orgapp/set-up-co-hosts @@ -417,7 +417,7 @@ declare module "../internal" { cohosts( conferenceId: string, params: CohostsParams, - ): Promise; + ): Promise /** * 指定人员静音或取消静音 * @see https://developers.dingtalk.com/document/orgapp/specify-person-to-mute-or-unmute @@ -425,7 +425,7 @@ declare module "../internal" { muteMembers( conferenceId: string, params: MuteMembersParams, - ): Promise; + ): Promise /** * 分页获取预约会议历史会议信息,当前仅返回最后一次的会议信息 * @see https://developers.dingtalk.com/document/orgapp/query-appointment-meeting-history-meeting-information @@ -433,7 +433,7 @@ declare module "../internal" { queryScheduleConferenceInfo( scheduleConferenceId: string, query: QueryScheduleConferenceInfoQuery, - ): Promise; + ): Promise /** * 查询会议录制的详情信息 * @see https://developers.dingtalk.com/document/isvapp/query-recording-information @@ -441,7 +441,7 @@ declare module "../internal" { queryCloudRecordVideo( conferenceId: string, query: QueryCloudRecordVideoQuery, - ): Promise; + ): Promise /** * 查询会议录制中的文本信息 * @see https://developers.dingtalk.com/document/isvapp/queries-the-text-information-about-cloud-recording @@ -449,7 +449,7 @@ declare module "../internal" { queryCloudRecordText( conferenceId: string, query: QueryCloudRecordTextQuery, - ): Promise; + ): Promise /** * 查询会议录制中的视频信息 * @see https://developers.dingtalk.com/document/isvapp/queries-the-playback-information-about-a-recorded-cloud-video @@ -457,7 +457,7 @@ declare module "../internal" { queryCloudRecordVideoPlayInfo( conferenceId: string, query: QueryCloudRecordVideoPlayInfoQuery, - ): Promise; + ): Promise /** * 停止视频会议云录制 * @see https://developers.dingtalk.com/document/isvapp/video-conferencing-stops-cloud-recording @@ -465,7 +465,7 @@ declare module "../internal" { stopCloudRecord( conferenceId: string, params: StopCloudRecordParams, - ): Promise; + ): Promise /** * 会议停止直播推流 * @see https://developers.dingtalk.com/document/orgapp/videoconferencing-stops-live-stream-ingest @@ -473,7 +473,7 @@ declare module "../internal" { stopStreamOut( conferenceId: string, params: StopStreamOutParams, - ): Promise; + ): Promise /** * 会议开始直播推流 * @see https://developers.dingtalk.com/document/orgapp/video-conference-enables-live-stream-ingest @@ -481,7 +481,7 @@ declare module "../internal" { startStreamOut( conferenceId: string, params: StartStreamOutParams, - ): Promise; + ): Promise /** * 开启视频会议云录制 * @see https://developers.dingtalk.com/document/isvapp/video-conference-open-cloud-recording @@ -489,14 +489,14 @@ declare module "../internal" { startCloudRecord( conferenceId: string, params: StartCloudRecordParams, - ): Promise; + ): Promise /** * 批量查询视频会议信息 * @see https://developers.dingtalk.com/document/isvapp/batch-query-of-video-conference-information */ queryConferenceInfoBatch( params: QueryConferenceInfoBatchParams, - ): Promise; + ): Promise /** * 关闭视频会议 * @see https://developers.dingtalk.com/document/isvapp/close-audio-video-conferencing @@ -504,14 +504,14 @@ declare module "../internal" { closeVideoConference( conferenceId: string, query: CloseVideoConferenceQuery, - ): Promise; + ): Promise /** * 创建视频会议 * @see https://developers.dingtalk.com/document/isvapp/create-a-video-conference */ createVideoConference( params: CreateVideoConferenceParams, - ): Promise; + ): Promise /** * 查询视频会议成员 * @see https://developers.dingtalk.com/document/app/query-video-meeting-member-information @@ -519,21 +519,21 @@ declare module "../internal" { queryConferenceMembers( conferenceId: string, query: QueryConferenceMembersQuery, - ): Promise; + ): Promise /** * 查询视频会议信息 * @see https://developers.dingtalk.com/document/app/querying-video-conference-information */ queryConferenceInfo( conferenceId: string, - ): Promise; + ): Promise /** * 取消预约会议 * @see https://developers.dingtalk.com/document/app/cancel-appointment-meeting */ cancelScheduleConference( params: CancelScheduleConferenceParams, - ): Promise; + ): Promise /** * 查询预约会议信息 * @see https://developers.dingtalk.com/document/app/query-meeting-reservation @@ -541,20 +541,20 @@ declare module "../internal" { queryScheduleConference( scheduleConferenceId: string, query: QueryScheduleConferenceQuery, - ): Promise; + ): Promise /** * 更新预约会议 * @see https://developers.dingtalk.com/document/app/update-appointment-meeting */ updateScheduleConference( params: UpdateScheduleConferenceParams, - ): Promise; + ): Promise /** * 创建预约会议 * @see https://developers.dingtalk.com/document/app/create-appointment-meeting */ createScheduleConference( params: CreateScheduleConferenceParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/connector.ts b/adapters/dingtalk/src/api/connector.ts index ea99832e..9f977545 100644 --- a/adapters/dingtalk/src/api/connector.ts +++ b/adapters/dingtalk/src/api/connector.ts @@ -1,78 +1,78 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface PullDataByPkQuery { /** 数据的主键字段值。 */ - primaryKey: string; + primaryKey: string /** 同步数据的应用ID,第三方企业应用传应用的appId,企业自建应用传agentId。 */ - appId?: string; + appId?: string } export interface PullDataByPkResponse { - dataGmtCreate: number; - dataGmtModified: number; - dataCreateAppType: string; - dataCreateAppId: string; - dataModifiedAppType: string; - dataModifiedAppId: string; - jsonData: string; + dataGmtCreate: number + dataGmtModified: number + dataCreateAppType: string + dataCreateAppId: string + dataModifiedAppType: string + dataModifiedAppId: string + jsonData: string } export interface PullDataByPageQuery { /** 要拉取的主数据模型id。 */ - dataModelId: string; + dataModelId: string /** 用于过滤时间范围的字段,包含数据创建时间(dataGmtCreate)和数据修改时间(dataGmtModified),如不传则不过滤。 */ - datetimeFilterField?: string; + datetimeFilterField?: string /** 当配置了datetimeFilterField字段后,数据的时间起点,如果不传则将最早一条数据作为起点。 */ - minDatetime?: number; + minDatetime?: number /** 当配置了datetimeFilterField字段后,数据的时间终点,如果不传则按最新一条数据作为终点。 */ - maxDatetime?: number; + maxDatetime?: number /** 用于翻页的游标,如果为空则从第一条数据开始查询。 */ - nextToken?: string; + nextToken?: string /** 单次获取的最大记录条数,最大限制100条。 */ - maxResults?: number; + maxResults?: number /** 同步数据的应用ID,第三方企业应用传应用的appId,企业自建应用传agentId。 */ - appId?: string; + appId?: string } export interface PullDataByPageResponse { list: { - dataGmtCreate: number; - dataGmtModified: number; - dataCreateAppType: string; - dataCreateAppId: string; - dataModifiedAppType: string; - dataModifiedAppId: string; - jsonData: string; - }[]; - nextToken?: string; - maxResults?: number; + dataGmtCreate: number + dataGmtModified: number + dataCreateAppType: string + dataCreateAppId: string + dataModifiedAppType: string + dataModifiedAppId: string + jsonData: string + }[] + nextToken?: string + maxResults?: number } export interface SyncDataParams { /** 支持批量同步数据。 */ - triggerDataList: object[]; + triggerDataList: object[] /** 同步数据的应用ID: */ - appId?: string; + appId?: string } export interface SyncDataResponse { list: { - triggerId: string; - bizPrimaryKey: string; - success: number; - subErrCode: string; - subErrMsg: string; - }[]; + triggerId: string + bizPrimaryKey: string + success: number + subErrCode: string + subErrMsg: string + }[] } // funcName: isOldApi Internal.define({ - "/connector/data/{dataModelId}": { GET: { pullDataByPk: false } }, - "/connector/data": { GET: { pullDataByPage: false } }, - "/connector/triggers/data/sync": { POST: { syncData: false } }, -}); -declare module "../internal" { + '/connector/data/{dataModelId}': { GET: { pullDataByPk: false } }, + '/connector/data': { GET: { pullDataByPage: false } }, + '/connector/triggers/data/sync': { POST: { syncData: false } }, +}) +declare module '../internal' { interface Internal { /** * 通过业务主键拉取单条连接器主数据 @@ -81,16 +81,16 @@ declare module "../internal" { pullDataByPk( dataModelId: string, query: PullDataByPkQuery, - ): Promise; + ): Promise /** * 分页拉取连接器主数据 * @see https://developers.dingtalk.com/document/connector/bulk-pull-dingtalk-connector-master-data */ - pullDataByPage(query: PullDataByPageQuery): Promise; + pullDataByPage(query: PullDataByPageQuery): Promise /** * 同步连接器数据 * @see https://developers.dingtalk.com/document/connector/dingtalk-connector-data-synchronization-interface */ - syncData(params: SyncDataParams): Promise; + syncData(params: SyncDataParams): Promise } } diff --git a/adapters/dingtalk/src/api/contact.ts b/adapters/dingtalk/src/api/contact.ts index fd1bf5a7..73205ca1 100644 --- a/adapters/dingtalk/src/api/contact.ts +++ b/adapters/dingtalk/src/api/contact.ts @@ -1,55 +1,55 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetOrgAuthInfoQuery { /** 需要获取的企业认证信息的企业corpId。详情参见[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */ - targetCorpId?: string; + targetCorpId?: string } export interface GetOrgAuthInfoResponse { - orgName: string; - licenseOrgName: string; - registrationNum?: string; - unifiedSocialCredit?: string; - organizationCode?: string; - legalPerson?: string; - licenseUrl?: string; - authLevel: number; + orgName: string + licenseOrgName: string + registrationNum?: string + unifiedSocialCredit?: string + organizationCode?: string + legalPerson?: string + licenseUrl?: string + authLevel: number } export interface BatchApproveUnionApplyParams { /** 申请的合作伙伴组织CorpId,参考[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */ - branchCorpId?: string; + branchCorpId?: string /** 合作伙伴组织在上下游组织内的名称。 */ - unionRootName?: string; + unionRootName?: string /** 合作伙伴组织在上下游组织内的位置。 */ - linkDeptId?: number; + linkDeptId?: number } export interface BatchApproveUnionApplyResponse { - result?: unknown; + result?: unknown } // funcName: isOldApi Internal.define({ - "/contact/organizations/authInfos": { GET: { getOrgAuthInfo: false } }, - "/contact/cooperateCorps/unionApplications/approve": { + '/contact/organizations/authInfos': { GET: { getOrgAuthInfo: false } }, + '/contact/cooperateCorps/unionApplications/approve': { POST: { batchApproveUnionApply: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询企业认证信息 * @see https://developers.dingtalk.com/document/isvapp/obtain-enterprise-authentication-information */ - getOrgAuthInfo(query: GetOrgAuthInfoQuery): Promise; + getOrgAuthInfo(query: GetOrgAuthInfoQuery): Promise /** * 批量通过分支组织的关联申请 * @see https://developers.dingtalk.com/document/isvapp/apply-for-association-with-multiple-branches-in-batch-batch-through-the-application-of-partner-organizations-to-join-contact */ batchApproveUnionApply( params: BatchApproveUnionApplyParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/convFile.ts b/adapters/dingtalk/src/api/convFile.ts index effd53b9..b38367ee 100644 --- a/adapters/dingtalk/src/api/convFile.ts +++ b/adapters/dingtalk/src/api/convFile.ts @@ -1,136 +1,136 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface SendLinkParams { /** 文件所在空间ID,调用[添加空间](https://open.dingtalk.com/document/orgapp-server/add-space)接口获取id参数值。 */ - spaceId: string; + spaceId: string /** 文件ID,调用[获取文件或文件夹列表](https://open.dingtalk.com/document/orgapp-server/obtain-the-file-list-storage)接口获取id参数值。 */ - dentryId: string; + dentryId: string /** 目标会话的openConversationId,调用[创建群会话](https://open.dingtalk.com/document/orgapp-server/create-group-session)接口获取openConversationId参数值。 */ - openConversationId: string; + openConversationId: string } export interface SendLinkQuery { /** 操作人的unionId,调用[查询用户详情](https://open.dingtalk.com/document/orgapp-server/query-user-details)接口获取unionid参数值。 */ - unionId: string; + unionId: string } export interface SendLinkResponse { file?: { - id?: string; - conversationId?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - uuid?: string; - }; + id?: string + conversationId?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + uuid?: string + } } export interface SendParams { /** 空间ID,调用[添加空间](https://open.dingtalk.com/document/orgapp-server/add-space)接口获取id参数值。 */ - spaceId: string; + spaceId: string /** 文件ID,调用[获取文件或文件夹列表](https://open.dingtalk.com/document/orgapp-server/obtain-the-file-list-storage)接口获取id参数值。 */ - dentryId: string; + dentryId: string /** 目标会话的openConversationId,调用[创建群会话](https://open.dingtalk.com/document/orgapp-server/create-group-session)接口获取openConversationId参数值。 */ - openConversationId: string; + openConversationId: string } export interface SendQuery { /** 操作人的unionId,调用[查询用户详情](https://open.dingtalk.com/document/orgapp-server/query-user-details)接口获取unionid参数值。 */ - unionId: string; + unionId: string } export interface SendResponse { file?: { - id?: string; - conversationId?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - uuid?: string; - }; + id?: string + conversationId?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + uuid?: string + } } export interface ConvFileGetSpaceParams { /** 会话openConversationId。 */ - openConversationId: string; + openConversationId: string } export interface ConvFileGetSpaceQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface ConvFileGetSpaceResponse { space?: { - spaceId?: string; - corpId?: string; - createTime?: string; - modifiedTime?: string; - }; + spaceId?: string + corpId?: string + createTime?: string + modifiedTime?: string + } } export interface SendByAppParams { /** 文件所在空间ID。 */ - spaceId: string; + spaceId: string /** 文件ID。 */ - dentryId: string; + dentryId: string } export interface SendByAppQuery { /** 接收文件的用户unionId。 */ - unionId: string; + unionId: string } export interface SendByAppResponse { file?: { - id?: string; - conversationId?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - uuid?: string; - }; + id?: string + conversationId?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + uuid?: string + } } // funcName: isOldApi Internal.define({ - "/convFile/conversations/files/links/send": { POST: { sendLink: false } }, - "/convFile/conversations/files/send": { POST: { send: false } }, - "/convFile/conversations/spaces/query": { POST: { convFileGetSpace: false } }, - "/convFile/apps/conversations/files/send": { POST: { sendByApp: false } }, -}); -declare module "../internal" { + '/convFile/conversations/files/links/send': { POST: { sendLink: false } }, + '/convFile/conversations/files/send': { POST: { send: false } }, + '/convFile/conversations/spaces/query': { POST: { convFileGetSpace: false } }, + '/convFile/apps/conversations/files/send': { POST: { sendByApp: false } }, +}) +declare module '../internal' { interface Internal { /** * 发送文件链接到指定会话 @@ -139,12 +139,12 @@ declare module "../internal" { sendLink( query: SendLinkQuery, params: SendLinkParams, - ): Promise; + ): Promise /** * 发送文件到指定会话 * @see https://developers.dingtalk.com/document/orgapp/send-file-to-specified-session */ - send(query: SendQuery, params: SendParams): Promise; + send(query: SendQuery, params: SendParams): Promise /** * 获取IM会话存储空间信息 * @see https://developers.dingtalk.com/document/orgapp/obtain-group-storage-space-information @@ -152,7 +152,7 @@ declare module "../internal" { convFileGetSpace( query: ConvFileGetSpaceQuery, params: ConvFileGetSpaceParams, - ): Promise; + ): Promise /** * 以应用身份发送文件给自己 * @see https://developers.dingtalk.com/document/isvapp/sends-a-storage-file-to-a-specified-user @@ -160,6 +160,6 @@ declare module "../internal" { sendByApp( query: SendByAppQuery, params: SendByAppParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/crm.ts b/adapters/dingtalk/src/api/crm.ts index 31f2507d..b2377139 100644 --- a/adapters/dingtalk/src/api/crm.ts +++ b/adapters/dingtalk/src/api/crm.ts @@ -1,636 +1,636 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryGlobalInfoQuery { /** 用户 userId */ - userId: string; + userId: string } export interface QueryGlobalInfoResponse { result?: { - oemEnable?: number; - }; + oemEnable?: number + } } export interface BatchUpdateFollowRecordsParams { /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 更新的跟进记录数据信息。 */ - instanceList: object[]; + instanceList: object[] } export interface BatchUpdateFollowRecordsResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - instanceId?: string; - }[]; + success?: number + errorCode?: string + errorMsg?: string + instanceId?: string + }[] } export interface BatchAddFollowRecordsParams { /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 跟进记录数据字段列表,最大值40。 */ - instanceList: object[]; + instanceList: object[] } export interface BatchAddFollowRecordsResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - instanceId?: string; - }[]; + success?: number + errorCode?: string + errorMsg?: string + instanceId?: string + }[] } export interface BatchRemoveFollowRecordsParams { /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 跟进记录ID。 */ - instanceIds: string[]; + instanceIds: string[] } export interface BatchRemoveFollowRecordsResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - instanceId?: string; - }[]; + success?: number + errorCode?: string + errorMsg?: string + instanceId?: string + }[] } export interface DeleteCrmCustomObjectDataQuery { /** 自定义对象表单code。 */ - formCode: string; + formCode: string } export interface DeleteCrmCustomObjectDataResponse { - instanceId: string; + instanceId: string } export interface BatchUpdateContactsParams { /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 联系人数据列表,最大值10。 */ - relationList: object[]; + relationList: object[] } export interface BatchUpdateContactsResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - relationId?: string; - }[]; + success?: number + errorCode?: string + errorMsg?: string + relationId?: string + }[] } export interface BatchAddContactsParams { /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 联系人数据列表,最大值10。 */ - relationList: object[]; + relationList: object[] } export interface BatchAddContactsResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - relationId?: string; - }[]; + success?: number + errorCode?: string + errorMsg?: string + relationId?: string + }[] } export interface BatchAddRelationDatasParams { /** 客户类型。 */ - relationType: string; + relationType: string /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 是否跳过查重,默认不跳过。 */ - skipDuplicateCheck?: unknown; + skipDuplicateCheck?: unknown /** 新增客户关系列表,最大值10。 */ - relationList: object[]; + relationList: object[] } export interface BatchAddRelationDatasResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - relationId?: string; - duplicatedRelationIds?: number; - }[]; + success?: number + errorCode?: string + errorMsg?: string + relationId?: string + duplicatedRelationIds?: number + }[] } export interface BatchUpdateRelationDatasParams { /** 客户类型。 */ - relationType: string; + relationType: string /** 操作人userId。 */ - operatorUserId: string; + operatorUserId: string /** 是否跳过查重,默认不跳过。 */ - skipDuplicateCheck?: unknown; + skipDuplicateCheck?: unknown /** 更新的客户数据列表,最大值10。 */ - relationList: object[]; + relationList: object[] } export interface BatchUpdateRelationDatasResponse { results?: { - success?: number; - errorCode?: string; - errorMsg?: string; - relationId?: string; - duplicatedRelationIds?: number; - }[]; + success?: number + errorCode?: string + errorMsg?: string + relationId?: string + duplicatedRelationIds?: number + }[] } export interface GetRelationUkSettingQuery { /** 客户类型。 */ - relationType: string; + relationType: string } export interface GetRelationUkSettingResponse { result?: { - fieldId: string; - bizAlias?: string; - }[]; + fieldId: string + bizAlias?: string + }[] } export interface CrmCreateGroupParams { /** 群名称。 */ - groupName: string; + groupName: string /** 群主userId。 */ - ownerUserId: string; + ownerUserId: string /** 群成员userId。 */ - memberUserIds?: string; + memberUserIds?: string /** 关系类型。 */ - relationType: string; + relationType: string } export interface CrmCreateGroupResponse { - openConversationId: string; + openConversationId: string } export interface GetCrmGroupChatMultiParams { /** 客户群openConversationId。 */ - openConversationIds?: string[]; + openConversationIds?: string[] } export interface GetCrmGroupChatMultiResponse { result?: { - openConversationId?: string; - openGroupSetId?: string; - ownerUserId?: string; - ownerUserName?: string; - name?: string; - memberCount?: number; - gmtCreate?: number; - iconUrl?: string; - }[]; + openConversationId?: string + openGroupSetId?: string + ownerUserId?: string + ownerUserName?: string + name?: string + memberCount?: number + gmtCreate?: number + iconUrl?: string + }[] } export interface GetCrmGroupChatSingleQuery { /** 客户群openConversationId。 */ - openConversationId: string; + openConversationId: string } export interface GetCrmGroupChatSingleResponse { - openConversationId?: string; - openGroupSetId?: string; - ownerUserId?: string; - ownerUserName?: string; - name?: string; - memberCount?: number; - gmtCreate?: number; - iconUrl?: string; + openConversationId?: string + openGroupSetId?: string + ownerUserId?: string + ownerUserName?: string + name?: string + memberCount?: number + gmtCreate?: number + iconUrl?: string } export interface QueryRelationDatasByTargetIdQuery { /** 关系类型。 */ - relationType: string; + relationType: string } export interface QueryRelationDatasByTargetIdResponse { relations: { - relationId: string; - relationType: string; - bizDataList: number; - openConversationIds: number; - }[]; + relationId: string + relationType: string + bizDataList: number + openConversationIds: number + }[] } export interface QueryCrmGroupChatsQuery { /** 关系类型。 */ - relationType: string; + relationType: string /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页最大条目数,最大值100。 */ - maxResults: number; + maxResults: number /** 查询DSL语法。 */ - queryDsl?: string; + queryDsl?: string } export interface QueryCrmGroupChatsResponse { resultList?: { - openConversationId: string; - openGroupSetId?: string; - ownerUserId: string; - ownerUserName: string; - name: string; - memberCount: number; - gmtCreate: number; - }[]; - hasMore: unknown; - nextToken?: string; - totalCount?: number; + openConversationId: string + openGroupSetId?: string + ownerUserId: string + ownerUserName: string + name: string + memberCount: number + gmtCreate: number + }[] + hasMore: unknown + nextToken?: string + totalCount?: number } export interface CrmUpdateGroupSetParams { /** 群组openGroupSetId,调用[查询客户群组列表](https://open.dingtalk.com/document/orgapp-server/query-groups)接口获取。 */ - openGroupSetId: string; + openGroupSetId: string /** 群组名。 */ - name?: string; + name?: string /** 单个群的人数上限。 */ - memberQuota?: number; + memberQuota?: number /** 群主userId。 */ - ownerUserId?: string; + ownerUserId?: string /** 群管理员userId列表,多个用逗号隔开,裂变出的新群会自动设置这些userId为群管理员。 */ - managerUserIds?: string; + managerUserIds?: string /** 群公告文本。 */ - notice?: string; + notice?: string /** 群公告是否置顶。 */ - noticeToped?: number; + noticeToped?: number /** 群模板Id。 */ - templateId?: string; + templateId?: string /** 新成员入群后收到的欢迎语。 */ - welcome?: string; + welcome?: string } export interface ListGroupSetQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页条目数,最大值10。 */ - maxResults?: number; + maxResults?: number /** 查询DSL。 */ - queryDsl?: string; + queryDsl?: string /** 关系类型。 */ - relationType: string; + relationType: string } export interface ListGroupSetResponse { - hasMore?: unknown; - nextToken?: string; + hasMore?: unknown + nextToken?: string resultList: { - name?: string; - openGroupSetId?: string; - relationType?: string; - memberQuota?: number; - memberCount?: number; - templateId?: string; - ownerUserId?: string; - managerUserIds?: string; - notice?: string; - noticeToped?: number; - owner: number; - manager: number; - lastOpenConversationId: string; - gmtCreate?: string; - gmtModified?: string; - groupChatCount?: number; - }[]; - totalCount?: number; + name?: string + openGroupSetId?: string + relationType?: string + memberQuota?: number + memberCount?: number + templateId?: string + ownerUserId?: string + managerUserIds?: string + notice?: string + noticeToped?: number + owner: number + manager: number + lastOpenConversationId: string + gmtCreate?: string + gmtModified?: string + groupChatCount?: number + }[] + totalCount?: number } export interface CreateGroupSetParams { /** 群组名。 */ - name: string; + name: string /** 群主userId。 */ - ownerUserId: string; + ownerUserId: string /** 创建人userId。 */ - creatorUserId: string; + creatorUserId: string /** 群模板Id。 */ - templateId?: string; + templateId?: string /** 单个群的人数上限,最大值900。 */ - memberQuota?: number; + memberQuota?: number /** 群管理员userId列表,多个用逗号隔开。 */ - managerUserIds?: string; + managerUserIds?: string /** 群公告文本。 */ - notice?: string; + notice?: string /** 群公告是否置顶。 */ - noticeToped?: number; + noticeToped?: number /** 关系类型。 */ - relationType: string; + relationType: string /** 新成员入群后收到的欢迎语。 */ - welcome?: string; + welcome?: string } export interface CreateGroupSetResponse { - name?: string; - openGroupSetId?: string; - relationType?: string; - memberQuota?: number; - memberCount?: number; - templateId?: string; - ownerUserId?: string; - managerUserIds?: string; - notice?: string; - noticeToped?: number; + name?: string + openGroupSetId?: string + relationType?: string + memberQuota?: number + memberCount?: number + templateId?: string + ownerUserId?: string + managerUserIds?: string + notice?: string + noticeToped?: number owner: { - name?: string; - userId?: string; - }; + name?: string + userId?: string + } manager: { - name?: string; - userId?: string; - }[]; - lastOpenConversationId: string; - gmtCreate?: string; - gmtModified?: string; - inviteLink?: string; + name?: string + userId?: string + }[] + lastOpenConversationId: string + gmtCreate?: string + gmtModified?: string + inviteLink?: string } export interface GetGroupSetQuery { /** 群组openGroupSetId。 */ - openGroupSetId: string; + openGroupSetId: string } export interface GetGroupSetResponse { - name?: string; - openGroupSetId?: string; - relationType?: string; - memberQuota?: number; - memberCount?: number; - templateId?: string; - ownerUserId?: string; - managerUserIds?: string; - notice?: string; - noticeToped?: number; + name?: string + openGroupSetId?: string + relationType?: string + memberQuota?: number + memberCount?: number + templateId?: string + ownerUserId?: string + managerUserIds?: string + notice?: string + noticeToped?: number owner: { - name?: string; - userId?: string; - }; + name?: string + userId?: string + } manager: { - name?: string; - userId?: string; - }[]; - lastOpenConversationId?: string; - gmtCreate?: string; - gmtModified?: string; - groupChatCount?: number; - inviteLink?: string; + name?: string + userId?: string + }[] + lastOpenConversationId?: string + gmtCreate?: string + gmtModified?: string + groupChatCount?: number + inviteLink?: string } export interface UpdateCrmPersonalCustomerParams { /** 客户数据ID。 */ - instanceId: string; + instanceId: string /** 操作人的用户userId。 */ - modifierUserId: string; + modifierUserId: string /** 操作人的用户昵称。 */ - modifierNick?: string; + modifierNick?: string /** 客户数据内容,JSON格式字符串。 */ - data: unknown; + data: unknown /** 扩展数据。 */ - extendData?: unknown; + extendData?: unknown /** 权限。 */ - permission?: unknown; + permission?: unknown /** 关系类型。 */ - relationType?: string; + relationType?: string /** 是否跳过查重字段。 */ - skipDuplicateCheck?: unknown; + skipDuplicateCheck?: unknown /** 取值。 */ - action?: string; + action?: string } export interface UpdateCrmPersonalCustomerResponse { - instanceId: string; + instanceId: string } export interface AddCrmPersonalCustomerParams { /** 记录创建人的用户userId。 */ - creatorUserId: string; + creatorUserId: string /** 记录创建人的昵称。 */ - creatorNick?: string; + creatorNick?: string /** 客户数据内容,JSON格式字符串。 */ - data: unknown; + data: unknown /** 扩展数据内容。 */ - extendData?: unknown; + extendData?: unknown /** 权限。 */ - permission?: unknown; + permission?: unknown /** 关系类型。 */ - relationType?: string; + relationType?: string /** 是否跳过查重字段,取值: */ - skipDuplicateCheck?: unknown; + skipDuplicateCheck?: unknown /** 取值: */ - action?: string; + action?: string } export interface AddCrmPersonalCustomerResponse { - instanceId: string; + instanceId: string } export interface DeleteCrmPersonalCustomerQuery { /** 关系类型。 */ - relationType?: string; + relationType?: string /** 操作人用户userId。 */ - currentOperatorUserId: string; + currentOperatorUserId: string } export interface DeleteCrmPersonalCustomerResponse { - instanceId: string; + instanceId: string } export interface DescribeCrmPersonalCustomerObjectMetaQuery { /** 关系类型。 */ - relationType?: string; + relationType?: string } export interface DescribeCrmPersonalCustomerObjectMetaResponse { - name?: string; - customized?: unknown; + name?: string + customized?: unknown fields?: { - name?: string; - customized?: number; - label?: string; - type?: string; - nillable?: number; - format?: string; - unit?: string; - selectOptions?: number; - quote?: number; - referenceTo?: string; - referenceFields?: number; - rollUpSummaryFields?: number; - }[]; - status?: string; - code?: string; + name?: string + customized?: number + label?: string + type?: string + nillable?: number + format?: string + unit?: string + selectOptions?: number + quote?: number + referenceTo?: string + referenceFields?: number + rollUpSummaryFields?: number + }[] + status?: string + code?: string } export interface ListCrmPersonalCustomersQuery { /** 操作人的用户userId。 */ - currentOperatorUserId?: string; + currentOperatorUserId?: string /** 关系类型。 */ - relationType?: string; + relationType?: string } export interface ListCrmPersonalCustomersResponse { result: { - instanceId: string; - objectType: string; - creatorUserId: string; - creatorNick: string; - data: number; - extendData: number; - permission: number; - appUuid: string; - formCode: string; - procOutResult: string; - procInstStatus: string; - gmtCreate: string; - gmtModified: string; - }[]; + instanceId: string + objectType: string + creatorUserId: string + creatorNick: string + data: number + extendData: number + permission: number + appUuid: string + formCode: string + procOutResult: string + procInstStatus: string + gmtCreate: string + gmtModified: string + }[] } export interface QueryCrmPersonalCustomerQuery { /** 用户userid。 */ - currentOperatorUserId?: string; + currentOperatorUserId?: string /** 关系类型。 */ - relationType?: string; + relationType?: string /** 分页游标,获取下一页时传入上一页返回的nextToken。 */ - nextToken?: string; + nextToken?: string /** 每页条数,最大值100。 */ - maxResults: number; + maxResults: number /** 查询条件。 */ - queryDsl?: string; + queryDsl?: string } export interface QueryCrmPersonalCustomerResponse { values?: { - instanceId: string; - objectType: string; - creatorUserId: string; - creatorNick: string; - data: number; - extendData: number; - permission: number; - procOutResult: string; - procInstStatus: string; - gmtCreate: string; - gmtModified: string; - }[]; - hasMore?: unknown; - nextToken?: string; - maxResults?: number; - totalCount?: number; + instanceId: string + objectType: string + creatorUserId: string + creatorNick: string + data: number + extendData: number + permission: number + procOutResult: string + procInstStatus: string + gmtCreate: string + gmtModified: string + }[] + hasMore?: unknown + nextToken?: string + maxResults?: number + totalCount?: number } export interface QueryAllCustomerParams { /** 操作人员的userId。 */ - operatorUserId?: string; + operatorUserId?: string /** 每页条目数,取值范围1~100。 */ - maxResults?: number; + maxResults?: number /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 数据类型,不传或者传null时,默认值为**crm_customer**,具体参数如下。 */ - objectType?: string; + objectType?: string } export interface QueryAllCustomerResponse { result?: { - nextToken?: string; - values?: number; - maxResults?: number; - }; + nextToken?: string + values?: number + maxResults?: number + } } export interface SendOfficialAccountOTOMessageParams { /** 消息详情。 */ - detail: unknown; + detail: unknown /** 可选参数,API调用方标识,仅用于定制调用方场景。 */ - bizId?: string; + bizId?: string /** 服务窗账号id,默认不需要传此参数。 */ - accountId?: string; + accountId?: string } export interface SendOfficialAccountOTOMessageResponse { - requestId?: string; + requestId?: string result: { - openPushId: string; - }; + openPushId: string + } } export interface BatchSendOfficialAccountOTOMessageParams { /** 消息详情。 */ - detail: unknown; + detail: unknown /** 服务窗授权的调用方标识,可以为空。 */ - bizId?: string; + bizId?: string /** 账单id。 */ - accountId?: string; + accountId?: string } export interface BatchSendOfficialAccountOTOMessageResponse { result?: { - openPushId: string; - }; - requestId?: string; + openPushId: string + } + requestId?: string } // funcName: isOldApi Internal.define({ - "/crm/globalInfos": { GET: { queryGlobalInfo: false } }, - "/crm/followRecords/batch": { + '/crm/globalInfos': { GET: { queryGlobalInfo: false } }, + '/crm/followRecords/batch': { PUT: { batchUpdateFollowRecords: false }, POST: { batchAddFollowRecords: false }, }, - "/crm/followRecords/batchRemove": { + '/crm/followRecords/batchRemove': { POST: { batchRemoveFollowRecords: false }, }, - "/crm/customObjectDatas/instances/{instanceId}": { + '/crm/customObjectDatas/instances/{instanceId}': { DELETE: { deleteCrmCustomObjectData: false }, }, - "/crm/contacts/batch": { + '/crm/contacts/batch': { PUT: { batchUpdateContacts: false }, POST: { batchAddContacts: false }, }, - "/crm/relationDatas/batch": { + '/crm/relationDatas/batch': { POST: { batchAddRelationDatas: false }, PUT: { batchUpdateRelationDatas: false }, }, - "/crm/relationUkSettings": { GET: { getRelationUkSetting: false } }, - "/crm/groups": { POST: { crmCreateGroup: false } }, - "/crm/crmGroupChats/batchQuery": { POST: { getCrmGroupChatMulti: false } }, - "/crm/crmGroupChats/query": { POST: { getCrmGroupChatSingle: false } }, - "/crm/relations/datas/targets/{targetId}": { + '/crm/relationUkSettings': { GET: { getRelationUkSetting: false } }, + '/crm/groups': { POST: { crmCreateGroup: false } }, + '/crm/crmGroupChats/batchQuery': { POST: { getCrmGroupChatMulti: false } }, + '/crm/crmGroupChats/query': { POST: { getCrmGroupChatSingle: false } }, + '/crm/relations/datas/targets/{targetId}': { GET: { queryRelationDatasByTargetId: false }, }, - "/crm/crmGroupChats": { GET: { queryCrmGroupChats: false } }, - "/crm/groupSets/set": { PUT: { crmUpdateGroupSet: false } }, - "/crm/groupSets/lists": { GET: { listGroupSet: false } }, - "/crm/groupSets": { + '/crm/crmGroupChats': { GET: { queryCrmGroupChats: false } }, + '/crm/groupSets/set': { PUT: { crmUpdateGroupSet: false } }, + '/crm/groupSets/lists': { GET: { listGroupSet: false } }, + '/crm/groupSets': { POST: { createGroupSet: false }, GET: { getGroupSet: false }, }, - "/crm/personalCustomers": { + '/crm/personalCustomers': { PUT: { updateCrmPersonalCustomer: false }, POST: { addCrmPersonalCustomer: false }, GET: { queryCrmPersonalCustomer: false }, }, - "/crm/personalCustomers/{dataId}": { + '/crm/personalCustomers/{dataId}': { DELETE: { deleteCrmPersonalCustomer: false }, }, - "/crm/personalCustomers/objectMeta": { + '/crm/personalCustomers/objectMeta': { GET: { describeCrmPersonalCustomerObjectMeta: false }, }, - "/crm/personalCustomers/batchQuery": { + '/crm/personalCustomers/batchQuery': { POST: { listCrmPersonalCustomers: false }, }, - "/crm/customerInstances": { POST: { queryAllCustomer: false } }, - "/crm/officialAccounts/oToMessages/send": { + '/crm/customerInstances': { POST: { queryAllCustomer: false } }, + '/crm/officialAccounts/oToMessages/send': { POST: { sendOfficialAccountOTOMessage: false }, }, - "/crm/officialAccounts/oToMessages/batchSend": { + '/crm/officialAccounts/oToMessages/batchSend': { POST: { batchSendOfficialAccountOTOMessage: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 营销服融合三方全局信息 @@ -638,28 +638,28 @@ declare module "../internal" { */ queryGlobalInfo( query: QueryGlobalInfoQuery, - ): Promise; + ): Promise /** * 批量修改跟进记录 * @see https://developers.dingtalk.com/document/orgapp/batch-update-follow-up-record-data */ batchUpdateFollowRecords( params: BatchUpdateFollowRecordsParams, - ): Promise; + ): Promise /** * 批量新增跟进记录 * @see https://developers.dingtalk.com/document/orgapp/batch-add-follow-up-record-data */ batchAddFollowRecords( params: BatchAddFollowRecordsParams, - ): Promise; + ): Promise /** * 批量删除跟进记录 * @see https://developers.dingtalk.com/document/orgapp/batch-delete-follow-up-record-data */ batchRemoveFollowRecords( params: BatchRemoveFollowRecordsParams, - ): Promise; + ): Promise /** * 删除CRM自定义对象数据 * @see https://developers.dingtalk.com/document/orgapp/delete-crm-custom-object-data @@ -667,63 +667,63 @@ declare module "../internal" { deleteCrmCustomObjectData( instanceId: string, query: DeleteCrmCustomObjectDataQuery, - ): Promise; + ): Promise /** * 批量修改联系人 * @see https://developers.dingtalk.com/document/orgapp/modify-contact-data-in-batches */ batchUpdateContacts( params: BatchUpdateContactsParams, - ): Promise; + ): Promise /** * 批量新增联系人 * @see https://developers.dingtalk.com/document/orgapp/add-contact-data-in-batches */ batchAddContacts( params: BatchAddContactsParams, - ): Promise; + ): Promise /** * 批量新增关系数据 * @see https://developers.dingtalk.com/document/orgapp/add-multiple-relationship-data-in-batches */ batchAddRelationDatas( params: BatchAddRelationDatasParams, - ): Promise; + ): Promise /** * 批量修改关系数据 * @see https://developers.dingtalk.com/document/orgapp/update-multiple-relational-data-tables-at-a-time */ batchUpdateRelationDatas( params: BatchUpdateRelationDatasParams, - ): Promise; + ): Promise /** * 获取个人客户或企业客户查重字段 * @see https://developers.dingtalk.com/document/isvapp/obtain-duplicate-check-fields */ getRelationUkSetting( query: GetRelationUkSettingQuery, - ): Promise; + ): Promise /** * 创建客户群 * @see https://developers.dingtalk.com/document/isvapp/create-a-customer-group */ crmCreateGroup( params: CrmCreateGroupParams, - ): Promise; + ): Promise /** * 批量查询客户群 * @see https://developers.dingtalk.com/document/isvapp/query-customer-groups-in-batches */ getCrmGroupChatMulti( params: GetCrmGroupChatMultiParams, - ): Promise; + ): Promise /** * 获取单个客户群详情 * @see https://developers.dingtalk.com/document/isvapp/obtain-a-single-customer-group */ getCrmGroupChatSingle( query: GetCrmGroupChatSingleQuery, - ): Promise; + ): Promise /** * 查询客户数据 * @see https://developers.dingtalk.com/document/isvapp/querying-customer-data @@ -731,50 +731,50 @@ declare module "../internal" { queryRelationDatasByTargetId( targetId: string, query: QueryRelationDatasByTargetIdQuery, - ): Promise; + ): Promise /** * 查询客户群列表 * @see https://developers.dingtalk.com/document/isvapp/query-a-list-of-customer-groups */ queryCrmGroupChats( query: QueryCrmGroupChatsQuery, - ): Promise; + ): Promise /** * 更新客户群组 * @see https://developers.dingtalk.com/document/orgapp/crm-update-group */ - crmUpdateGroupSet(params: CrmUpdateGroupSetParams): Promise; + crmUpdateGroupSet(params: CrmUpdateGroupSetParams): Promise /** * 查询客户群组列表 * @see https://developers.dingtalk.com/document/isvapp/query-the-list-of-customer-groups-set */ - listGroupSet(query: ListGroupSetQuery): Promise; + listGroupSet(query: ListGroupSetQuery): Promise /** * 创建群组 * @see https://developers.dingtalk.com/document/isvapp/create-a-customer-group-set */ createGroupSet( params: CreateGroupSetParams, - ): Promise; + ): Promise /** * 获取单个客户群组详情 * @see https://developers.dingtalk.com/document/isvapp/queries-the-details-of-a-single-customer-group */ - getGroupSet(query: GetGroupSetQuery): Promise; + getGroupSet(query: GetGroupSetQuery): Promise /** * 更新crm个人客户(或企业客户) * @see https://developers.dingtalk.com/document/isvapp/update-crm-personal-customers */ updateCrmPersonalCustomer( params: UpdateCrmPersonalCustomerParams, - ): Promise; + ): Promise /** * 添加crm个人客户(或企业客户) * @see https://developers.dingtalk.com/document/orgapp/add-crm-personal-customers */ addCrmPersonalCustomer( params: AddCrmPersonalCustomerParams, - ): Promise; + ): Promise /** * 删除crm个人客户(或企业客户) * @see https://developers.dingtalk.com/document/orgapp/delete-crm-personal-customer @@ -782,48 +782,48 @@ declare module "../internal" { deleteCrmPersonalCustomer( dataId: string, query: DeleteCrmPersonalCustomerQuery, - ): Promise; + ): Promise /** * 获取CRM客户对象的元数据描述 * @see https://developers.dingtalk.com/document/isvapp/get-metadata-description-of-crm-customer-object-1 */ describeCrmPersonalCustomerObjectMeta( query: DescribeCrmPersonalCustomerObjectMetaQuery, - ): Promise; + ): Promise /** * 批量获取crm个人客户 * @see https://developers.dingtalk.com/document/isvapp/acquire-crm-individual-customers-in-batches */ listCrmPersonalCustomers( query: ListCrmPersonalCustomersQuery, - ): Promise; + ): Promise /** * 根据指定查询条件批量获取客户数据 * @see https://developers.dingtalk.com/document/isvapp/obtains-crm-individual-customers-in-batches-based-on-specified-query */ queryCrmPersonalCustomer( query: QueryCrmPersonalCustomerQuery, - ): Promise; + ): Promise /** * 获取全量个人或企业客户数据 * @see https://developers.dingtalk.com/document/orgapp/crm-obtains-all-private-sea-customer-data */ queryAllCustomer( params: QueryAllCustomerParams, - ): Promise; + ): Promise /** * 服务窗单发接口,指定消息接收人发送 * @see https://developers.dingtalk.com/document/isvapp/sends-a-single-message-from-the-service-window */ sendOfficialAccountOTOMessage( params: SendOfficialAccountOTOMessageParams, - ): Promise; + ): Promise /** * 服务窗消息群发 * @see https://developers.dingtalk.com/document/isvapp/batch-sending-of-service-window-messages */ batchSendOfficialAccountOTOMessage( params: BatchSendOfficialAccountOTOMessageParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/customerService.ts b/adapters/dingtalk/src/api/customerService.ts index deb981a0..e8013d5a 100644 --- a/adapters/dingtalk/src/api/customerService.ts +++ b/adapters/dingtalk/src/api/customerService.ts @@ -1,129 +1,129 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface ExecuteActivityParams { /** 会员来源,取diamond配置的值。 */ - sourceId: string; + sourceId: string /** 会员ID。 */ - foreignId: string; + foreignId: string /** 会员名称。 */ - foreignName: string; + foreignName: string /** 动作编码。 */ - activityCode: string; + activityCode: string /** 实例ID。 */ - openInstanceId?: string; + openInstanceId?: string /** 智能客服产品类型: */ - productionType?: number; + productionType?: number /** 工单表单。 */ - properties?: object[]; + properties?: object[] } export interface ExecuteActivityResponse { - taskId?: string; + taskId?: string } export interface PageListActionQuery { /** 实例ID。 */ - openInstanceId?: string; + openInstanceId?: string /** 智能客服产品类型: */ - productionType?: number; + productionType?: number /** 查询数据的起始位置,0表示从头开始。 */ - nextToken: string; + nextToken: string /** 查询单页查询的最大条目数,最大值为100。 */ - maxResults: number; + maxResults: number } export interface PageListActionResponse { - nextCursor?: number; - total?: number; + nextCursor?: number + total?: number list?: { - operatorId?: string; - operator?: string; - operatorRole?: string; - actionCode?: string; - actionContent?: number; - }[]; + operatorId?: string + operator?: string + operatorRole?: string + actionCode?: string + actionContent?: number + }[] } export interface PageListTicketQuery { /** 实例ID。 */ - openInstanceId?: string; + openInstanceId?: string /** 智能客服产品类型: */ - productionType?: number; + productionType?: number /** 工单模板ID。 */ - templateId: string; + templateId: string /** 工单ID。 */ - ticketId?: string; + ticketId?: string /** 会员来源,取diamond配置的值。 */ - sourceId?: string; + sourceId?: string /** 第三方用户userid。 */ - foreignId?: string; + foreignId?: string /** 工单状态。 */ - ticketStatus?: string; + ticketStatus?: string /** 开始时间,时间戳,单位毫秒。 */ - startTime?: number; + startTime?: number /** 结束时间,时间戳,单位毫秒。 */ - endTime?: number; + endTime?: number /** 查询数据的起始位置,0表示从头开始。 */ - nextToken: string; + nextToken: string /** 查询单页查询的最大条目数,最大值为100。 */ - maxResults: number; + maxResults: number } export interface PageListTicketResponse { - nextCursor?: number; - total?: number; + nextCursor?: number + total?: number list?: { - foreignId?: string; - sourceId?: string; - foreignName?: string; - templateId?: string; - title?: string; - ticketId?: string; - ticketStatus?: string; - openInstanceId?: string; - productionType?: number; - gmtCreate?: string; - gmtModified?: string; - bizDataMap?: number; - }[]; + foreignId?: string + sourceId?: string + foreignName?: string + templateId?: string + title?: string + ticketId?: string + ticketStatus?: string + openInstanceId?: string + productionType?: number + gmtCreate?: string + gmtModified?: string + bizDataMap?: number + }[] } export interface CreateTicketParams { /** 会员来源,取diamond配置的值。 */ - sourceId: string; + sourceId: string /** 第三方会员ID。 */ - foreignId: string; + foreignId: string /** 第三方会员名称。 */ - foreignName: string; + foreignName: string /** 实例ID。 */ - openInstanceId?: string; + openInstanceId?: string /** 智能客服产品类型: */ - productionType?: number; + productionType?: number /** 自助单ID,钉钉智能客服自助单配置里的值。 */ - templateId: string; + templateId: string /** 工单标题。 */ - title: string; + title: string /** 表单信息。 */ - properties?: object[]; + properties?: object[] } export interface CreateTicketResponse { - ticketId?: string; + ticketId?: string } // funcName: isOldApi Internal.define({ - "/customerService/tickets/{ticketId}": { PUT: { executeActivity: false } }, - "/customerService/tickets/{ticketId}/actions": { + '/customerService/tickets/{ticketId}': { PUT: { executeActivity: false } }, + '/customerService/tickets/{ticketId}/actions': { GET: { pageListAction: false }, }, - "/customerService/tickets": { + '/customerService/tickets': { GET: { pageListTicket: false }, POST: { createTicket: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 执行工单活动 @@ -132,7 +132,7 @@ declare module "../internal" { executeActivity( ticketId: string, params: ExecuteActivityParams, - ): Promise; + ): Promise /** * 查询动作记录 * @see https://developers.dingtalk.com/document/isvapp/intelligent-customer-service-query-action-records @@ -140,16 +140,16 @@ declare module "../internal" { pageListAction( ticketId: string, query: PageListActionQuery, - ): Promise; + ): Promise /** * 分页查询工单 * @see https://developers.dingtalk.com/document/isvapp/intelligent-customer-service-paging-query-work-order */ - pageListTicket(query: PageListTicketQuery): Promise; + pageListTicket(query: PageListTicketQuery): Promise /** * 创建自助单 * @see https://developers.dingtalk.com/document/isvapp/smart-customer-service-create-a-self-service-order */ - createTicket(params: CreateTicketParams): Promise; + createTicket(params: CreateTicketParams): Promise } } diff --git a/adapters/dingtalk/src/api/datacenter.ts b/adapters/dingtalk/src/api/datacenter.ts index 762b9235..5d17d9c7 100644 --- a/adapters/dingtalk/src/api/datacenter.ts +++ b/adapters/dingtalk/src/api/datacenter.ts @@ -1,489 +1,489 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryGeneralDataServiceQuery { /** 开始日期,例如:20220901。 */ - startDate: string; + startDate: string /** 服务编码,在创建数据服务后获取。 */ - serviceId: string; + serviceId: string /** 结束日期,例如:20220901。 */ - endDate: string; + endDate: string /** 部门ID,非部门维度接口不需要传。 */ - deptId?: string; + deptId?: string /** 员工userId。 */ - userId: string; + userId: string /** 每页大小,不填默认为10,最大为50。 */ - pageSize?: number; + pageSize?: number /** 分页页码,从1开始,不填默认为1。 */ - pageNumber?: number; + pageNumber?: number } export interface QueryGeneralDataServiceResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - fieldName: string; - fieldDesc: string; - fieldType: string; - fieldId: string; - }[]; + fieldName: string + fieldDesc: string + fieldType: string + fieldId: string + }[] } export interface QueryOnlineUserStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryOnlineUserStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryActiveUserStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryActiveUserStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryEmployeeTypeStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryEmployeeTypeStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryCircleStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryCircleStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QuerySingleMessageStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QuerySingleMessageStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryGroupMessageStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryGroupMessageStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryDingSendStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryDingSendStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryDingReciveStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryDingReciveStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryVedioMeetingStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryVedioMeetingStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryTelMeetingStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryTelMeetingStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryGroupLiveStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryGroupLiveStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryRedEnvelopeSendStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryRedEnvelopeSendStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryRedEnvelopeReciveStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryRedEnvelopeReciveStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryBlackboardStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryBlackboardStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryTodoStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryTodoStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryHealthStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryHealthStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryDocumentStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryDocumentStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryCheckinStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryCheckinStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryApprovalStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryApprovalStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryReportStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryReportStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryAttendanceStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryAttendanceStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryDriveStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryDriveStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryMailStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryMailStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryCalendarStatisticalDataQuery { /** 查询时间,日期格式为yyyyMMdd。 */ - statDate: string; + statDate: string } export interface QueryCalendarStatisticalDataResponse { - dataList?: object[]; + dataList?: object[] metaList?: { - kpiId: string; - kpiName: string; - unit: string; - kpiCaliber: string; - period: string; - }[]; + kpiId: string + kpiName: string + unit: string + kpiCaliber: string + period: string + }[] } export interface QueryDigitalDistrictOrgInfoParams { /** 查询时间,日期格式为yyyyMMdd。 */ - statDates: string[]; + statDates: string[] /** 数字区县组织corpId列表。 */ - corpIds: string[]; + corpIds: string[] } export interface QueryDigitalDistrictOrgInfoResponse { - arguments?: string[]; - result?: string; + arguments?: string[] + result?: string } // funcName: isOldApi Internal.define({ - "/datacenter/generalDataServices": { + '/datacenter/generalDataServices': { GET: { queryGeneralDataService: false }, }, - "/datacenter/onlineUserData": { + '/datacenter/onlineUserData': { GET: { queryOnlineUserStatisticalData: false }, }, - "/datacenter/activeUserData": { + '/datacenter/activeUserData': { GET: { queryActiveUserStatisticalData: false }, }, - "/datacenter/employeeTypeData": { + '/datacenter/employeeTypeData': { GET: { queryEmployeeTypeStatisticalData: false }, }, - "/datacenter/circleData": { GET: { queryCircleStatisticalData: false } }, - "/datacenter/singleMessagerData": { + '/datacenter/circleData': { GET: { queryCircleStatisticalData: false } }, + '/datacenter/singleMessagerData': { GET: { querySingleMessageStatisticalData: false }, }, - "/datacenter/groupMessageData": { + '/datacenter/groupMessageData': { GET: { queryGroupMessageStatisticalData: false }, }, - "/datacenter/dingSendData": { GET: { queryDingSendStatisticalData: false } }, - "/datacenter/dingReciveData": { + '/datacenter/dingSendData': { GET: { queryDingSendStatisticalData: false } }, + '/datacenter/dingReciveData': { GET: { queryDingReciveStatisticalData: false }, }, - "/datacenter/vedioMeetingData": { + '/datacenter/vedioMeetingData': { GET: { queryVedioMeetingStatisticalData: false }, }, - "/datacenter/telMeetingData": { + '/datacenter/telMeetingData': { GET: { queryTelMeetingStatisticalData: false }, }, - "/datacenter/groupLiveData": { + '/datacenter/groupLiveData': { GET: { queryGroupLiveStatisticalData: false }, }, - "/datacenter/redEnvelopeSendData": { + '/datacenter/redEnvelopeSendData': { GET: { queryRedEnvelopeSendStatisticalData: false }, }, - "/datacenter/redEnvelopeReciveData": { + '/datacenter/redEnvelopeReciveData': { GET: { queryRedEnvelopeReciveStatisticalData: false }, }, - "/datacenter/blackboardData": { + '/datacenter/blackboardData': { GET: { queryBlackboardStatisticalData: false }, }, - "/datacenter/todoUserData": { GET: { queryTodoStatisticalData: false } }, - "/datacenter/healtheUserData": { GET: { queryHealthStatisticalData: false } }, - "/datacenter/documentData": { GET: { queryDocumentStatisticalData: false } }, - "/datacenter/checkinData": { GET: { queryCheckinStatisticalData: false } }, - "/datacenter/approvalData": { GET: { queryApprovalStatisticalData: false } }, - "/datacenter/reportData": { GET: { queryReportStatisticalData: false } }, - "/datacenter/attendanceData": { + '/datacenter/todoUserData': { GET: { queryTodoStatisticalData: false } }, + '/datacenter/healtheUserData': { GET: { queryHealthStatisticalData: false } }, + '/datacenter/documentData': { GET: { queryDocumentStatisticalData: false } }, + '/datacenter/checkinData': { GET: { queryCheckinStatisticalData: false } }, + '/datacenter/approvalData': { GET: { queryApprovalStatisticalData: false } }, + '/datacenter/reportData': { GET: { queryReportStatisticalData: false } }, + '/datacenter/attendanceData': { GET: { queryAttendanceStatisticalData: false }, }, - "/datacenter/driveData": { GET: { queryDriveStatisticalData: false } }, - "/datacenter/mailData": { GET: { queryMailStatisticalData: false } }, - "/datacenter/calendarData": { GET: { queryCalendarStatisticalData: false } }, - "/datacenter/digitalCounty/orgInfos/query": { + '/datacenter/driveData': { GET: { queryDriveStatisticalData: false } }, + '/datacenter/mailData': { GET: { queryMailStatisticalData: false } }, + '/datacenter/calendarData': { GET: { queryCalendarStatisticalData: false } }, + '/datacenter/digitalCounty/orgInfos/query': { POST: { queryDigitalDistrictOrgInfo: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 数据资产平台数据服务接口 @@ -491,181 +491,181 @@ declare module "../internal" { */ queryGeneralDataService( query: QueryGeneralDataServiceQuery, - ): Promise; + ): Promise /** * 获取企业用户在线统计数据 * @see https://developers.dingtalk.com/document/orgapp/retrieve-online-statistics-of-enterprise-users */ queryOnlineUserStatisticalData( query: QueryOnlineUserStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业用户激活状态统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-statistics-on-user-activation-status */ queryActiveUserStatisticalData( query: QueryActiveUserStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业员工类型统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-statistics-on-employee-types */ queryEmployeeTypeStatisticalData( query: QueryEmployeeTypeStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业全员圈统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-statistical-data-of-all-employees-of-an-enterprise */ queryCircleStatisticalData( query: QueryCircleStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业单聊统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-the-statistics-on-one-time-enterprise-chats */ querySingleMessageStatisticalData( query: QuerySingleMessageStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业群聊统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtain-enterprise-group-chat-statistics */ queryGroupMessageStatisticalData( query: QueryGroupMessageStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业DING发送统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtain-sending-statistics-of-an-enterprise-ding */ queryDingSendStatisticalData( query: QueryDingSendStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业DING接收及评论统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtain-statistics-on-receiving-and-comments-of-enterprise-ding */ queryDingReciveStatisticalData( query: QueryDingReciveStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业视频会议统计数据 * @see https://developers.dingtalk.com/document/orgapp/get-enterprise-video-conference-statistics */ queryVedioMeetingStatisticalData( query: QueryVedioMeetingStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业电话会议统计数据 * @see https://developers.dingtalk.com/document/orgapp/get-enterprise-teleconference-statistics */ queryTelMeetingStatisticalData( query: QueryTelMeetingStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业群直播统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-live-stream-statistics-for-an-enterprise-group */ queryGroupLiveStatisticalData( query: QueryGroupLiveStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业发送红包统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-statistics-on-red-packets-issued-by-enterprises */ queryRedEnvelopeSendStatisticalData( query: QueryRedEnvelopeSendStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业接收红包统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-the-red-envelope-receiving-statistics-of-an-enterprise */ queryRedEnvelopeReciveStatisticalData( query: QueryRedEnvelopeReciveStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业公告统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-corporate-announcement-statistics */ queryBlackboardStatisticalData( query: QueryBlackboardStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业待办统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-to-do-statistics-of-an-enterprise */ queryTodoStatisticalData( query: QueryTodoStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业钉钉运动统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-dingtalk-movement-statistics */ queryHealthStatisticalData( query: QueryHealthStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业文档统计数据 * @see https://developers.dingtalk.com/document/orgapp/get-enterprise-document-statistics */ queryDocumentStatisticalData( query: QueryDocumentStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业签到统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-enterprise-check-in-statistics */ queryCheckinStatisticalData( query: QueryCheckinStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业审批统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-enterprise-approval-statistics */ queryApprovalStatisticalData( query: QueryApprovalStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业日志统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtain-enterprise-log-statistics */ queryReportStatisticalData( query: QueryReportStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业考勤统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-enterprise-attendance-statistics */ queryAttendanceStatisticalData( query: QueryAttendanceStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业钉盘统计数据 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-statistics-on-enterprise-dingtalk-trays */ queryDriveStatisticalData( query: QueryDriveStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业邮箱统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-enterprise-email-statistics */ queryMailStatisticalData( query: QueryMailStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取企业日程统计数据 * @see https://developers.dingtalk.com/document/orgapp/queries-enterprise-schedule-statistics */ queryCalendarStatisticalData( query: QueryCalendarStatisticalDataQuery, - ): Promise; + ): Promise /** * 获取数字区县组织信息 * @see https://developers.dingtalk.com/document/orgapp/querydigitaldistrictorginfo-api-reference */ queryDigitalDistrictOrgInfo( params: QueryDigitalDistrictOrgInfoParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/devicemng.ts b/adapters/dingtalk/src/api/devicemng.ts index f4675aea..b250ea03 100644 --- a/adapters/dingtalk/src/api/devicemng.ts +++ b/adapters/dingtalk/src/api/devicemng.ts @@ -1,166 +1,166 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface ListMaintainInfoParams { /** 页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 页面大小,最大值20。 */ - pageSize?: number; + pageSize?: number /** 设备uuIi列表,最大值10。 */ - deviceUuid?: string[]; + deviceUuid?: string[] } export interface ListMaintainInfoResponse { - totalCount?: number; - success?: unknown; + totalCount?: number + success?: unknown result?: { - gmtCreate?: string; - deviceCode?: string; - deviceName?: string; - remark?: string; - maintenanceStaff?: number; - processState?: number; - handleTime?: string; - }[]; + gmtCreate?: string + deviceCode?: string + deviceName?: string + remark?: string + maintenanceStaff?: number + processState?: number + handleTime?: string + }[] } export interface ListInspectInfoParams { /** 当前页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 当页大小,最大值20。 */ - pageSize?: number; + pageSize?: number /** 设备uuIi列表,最大值10。 */ - deviceUuid?: string[]; + deviceUuid?: string[] /** 类型。 */ - type?: string; + type?: string } export interface ListInspectInfoResponse { - totalCount?: number; - success?: unknown; + totalCount?: number + success?: unknown result?: { - deviceName?: string; - deviceCode?: string; - type?: string; - status?: number; - repairStatus?: number; - maintenanceStaff?: number; - handleTime?: string; - remark?: string; - name?: string; - gmtCreate?: string; - }[]; + deviceName?: string + deviceCode?: string + type?: string + status?: number + repairStatus?: number + maintenanceStaff?: number + handleTime?: string + remark?: string + name?: string + gmtCreate?: string + }[] } export interface ListActivateDevicesQuery { /** 设备型号。 */ - deviceTypeId?: string; + deviceTypeId?: string /** 当前页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 分组标识。 */ - groupId?: string; + groupId?: string /** 每页大小,最大值50。 */ - pageSize?: number; + pageSize?: number /** 设备编号。 */ - deviceCode?: string; + deviceCode?: string /** 设备分类。 */ - deviceCategory?: number; + deviceCategory?: number } export interface ListActivateDevicesResponse { - totalCount?: number; - success?: unknown; + totalCount?: number + success?: unknown result?: { - bizExt?: string; - deviceCallbackUrl?: string; - deviceCode?: string; - deviceDetailUrl?: string; - deviceName?: string; - groupUuid?: string; - icon?: string; - introduction?: string; - typeUuid?: string; - uuid?: string; - deviceCategory?: number; - }[]; + bizExt?: string + deviceCallbackUrl?: string + deviceCode?: string + deviceDetailUrl?: string + deviceName?: string + groupUuid?: string + icon?: string + introduction?: string + typeUuid?: string + uuid?: string + deviceCategory?: number + }[] } export interface RegisterAndActivateDeviceBatchParams { /** 设备信息。 */ - registerAndActivateVOS?: object[]; + registerAndActivateVOS?: object[] } export interface RegisterAndActivateDeviceBatchResponse { successItems?: { - errorCode?: string; - errorMsg?: string; - result?: number; - success?: number; - }[]; - success?: unknown; + errorCode?: string + errorMsg?: string + result?: number + success?: number + }[] + success?: unknown failItems?: { - errorCode?: string; - errorMsg?: string; - result?: number; - success?: number; - }[]; + errorCode?: string + errorMsg?: string + result?: number + success?: number + }[] } export interface RegisterAndActivateDeviceParams { /** 设备号。 */ - deviceCode: string; + deviceCode: string /** 设备名称。 */ - deviceName: string; + deviceName: string /** 设备的简介。 */ - introduction?: string; + introduction?: string /** 设备型号。 */ - typeUuid?: string; + typeUuid?: string /** 设备管理员的userId列表。 */ - userIds?: string[]; + userIds?: string[] /** 角色标识。 */ - roleUuid?: string; + roleUuid?: string /** 设备详情链接,最大长度2048字符。 */ - deviceDetailUrl?: string; + deviceDetailUrl?: string /** 设备回调链接,最大长度2048字符。 */ - deviceCallbackUrl?: string; + deviceCallbackUrl?: string /** 设备分类。 */ - deviceCategory?: number; + deviceCategory?: number } export interface RegisterAndActivateDeviceResponse { - success?: unknown; + success?: unknown result: { - deviceCode: string; - deviceUuid: string; - deviceName: string; - introduction: string; - typeUuid: string; - roleUuid: string; - deviceDetailUrl: string; - userIds: number; - deviceCategory?: number; - }; + deviceCode: string + deviceUuid: string + deviceName: string + introduction: string + typeUuid: string + roleUuid: string + deviceDetailUrl: string + userIds: number + deviceCategory?: number + } } // funcName: isOldApi Internal.define({ - "/devicemng/customers/devices/maintainInfos/query": { + '/devicemng/customers/devices/maintainInfos/query': { POST: { listMaintainInfo: false }, }, - "/devicemng/customers/devices/inspectInfos/query": { + '/devicemng/customers/devices/inspectInfos/query': { POST: { listInspectInfo: false }, }, - "/devicemng/customers/devices/activations/infos": { + '/devicemng/customers/devices/activations/infos': { GET: { listActivateDevices: false }, }, - "/devicemng/customers/devices/registrationActivations/batch": { + '/devicemng/customers/devices/registrationActivations/batch': { POST: { registerAndActivateDeviceBatch: false }, }, - "/devicemng/customers/devices/registerAndActivate": { + '/devicemng/customers/devices/registerAndActivate': { POST: { registerAndActivateDevice: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 获取报修信息 @@ -168,34 +168,34 @@ declare module "../internal" { */ listMaintainInfo( params: ListMaintainInfoParams, - ): Promise; + ): Promise /** * 获取巡检、保养记录 * @see https://developers.dingtalk.com/document/isvapp/obtain-inspection-and-maintenance-records */ listInspectInfo( params: ListInspectInfoParams, - ): Promise; + ): Promise /** * 查询激活的设备信息 * @see https://developers.dingtalk.com/document/isvapp/query-information-about-a-registered-device */ listActivateDevices( query: ListActivateDevicesQuery, - ): Promise; + ): Promise /** * 批量注册与激活设备 * @see https://developers.dingtalk.com/document/isvapp/register-and-activate-devices-in-batches */ registerAndActivateDeviceBatch( params: RegisterAndActivateDeviceBatchParams, - ): Promise; + ): Promise /** * 注册与激活设备 * @see https://developers.dingtalk.com/document/isvapp/register-the-device-to-the-dingtalk */ registerAndActivateDevice( params: RegisterAndActivateDeviceParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/diot.ts b/adapters/dingtalk/src/api/diot.ts index abed3502..06a75be7 100644 --- a/adapters/dingtalk/src/api/diot.ts +++ b/adapters/dingtalk/src/api/diot.ts @@ -1,18 +1,18 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface UpgradeDeviceResponse { - requestId?: string; + requestId?: string } // funcName: isOldApi -Internal.define({ "/diot/upgrade/device": { POST: { upgradeDevice: false } } }); -declare module "../internal" { +Internal.define({ '/diot/upgrade/device': { POST: { upgradeDevice: false } } }) +declare module '../internal' { interface Internal { /** * 升级设备 * @see https://developers.dingtalk.com/document/app/upgrade-equipment */ - upgradeDevice(): Promise; + upgradeDevice(): Promise } } diff --git a/adapters/dingtalk/src/api/doc.ts b/adapters/dingtalk/src/api/doc.ts index 9a3afd69..bcb8e176 100644 --- a/adapters/dingtalk/src/api/doc.ts +++ b/adapters/dingtalk/src/api/doc.ts @@ -1,151 +1,151 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface SetRowsVisibilityParams { /** 可见性。 */ - visibility: string; + visibility: string /** 要显示或者隐藏的第一行的游标,从0开始。 */ - row: number; + row: number /** 要显示或隐藏的行的数量。 */ - rowCount: number; + rowCount: number } export interface SetRowsVisibilityQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface SetRowsVisibilityResponse { - id?: string; + id?: string } export interface SetColumnsVisibilityParams { /** 要显示或隐藏的第一列的游标,从0开始。 */ - column: number; + column: number /** 要显示或隐藏的列的数量。 */ - columnCount: number; + columnCount: number /** 可见性。 */ - visibility: string; + visibility: string } export interface SetColumnsVisibilityQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface SetColumnsVisibilityResponse { - id?: string; + id?: string } export interface DeleteRowsParams { /** 要删除的第一行的游标,从0开始。 */ - row: number; + row: number /** 要删除的行的数量。 */ - rowCount: number; + rowCount: number } export interface DeleteRowsQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface DeleteRowsResponse { - id?: string; + id?: string } export interface DeleteColumnsParams { /** 要删除的第一列的游标,从0开始。 */ - column: number; + column: number /** 要删除的列的数量。 */ - columnCount: number; + columnCount: number } export interface DeleteColumnsQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface DeleteColumnsResponse { - id?: string; + id?: string } export interface InsertRowsBeforeParams { /** 指定行的游标,从0开始。 */ - row: number; + row: number /** 插入行的数量。 */ - rowCount: number; + rowCount: number } export interface InsertRowsBeforeQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface InsertRowsBeforeResponse { - id?: string; + id?: string } export interface InsertColumnsBeforeParams { /** 指定列的游标,从0开始。 */ - column: number; + column: number /** 插入列的数量。 */ - columnCount: number; + columnCount: number } export interface InsertColumnsBeforeQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface InsertColumnsBeforeResponse { - id?: string; + id?: string } export interface ClearQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface ClearResponse { - a1Notation?: string; + a1Notation?: string } export interface ClearDataQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface ClearDataResponse { - a1Notation?: string; + a1Notation?: string } // funcName: isOldApi Internal.define({ - "/doc/workbooks/{workbookId}/sheets/{sheetId}/setRowsVisibility": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/setRowsVisibility': { POST: { setRowsVisibility: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/setColumnsVisibility": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/setColumnsVisibility': { POST: { setColumnsVisibility: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteRows": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteRows': { POST: { deleteRows: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteColumns": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/deleteColumns': { POST: { deleteColumns: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/insertRowsBefore": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/insertRowsBefore': { POST: { insertRowsBefore: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/insertColumnsBefore": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/insertColumnsBefore': { POST: { insertColumnsBefore: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clear": { + '/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clear': { POST: { clear: false }, }, - "/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clearData": + '/doc/workbooks/{workbookId}/sheets/{sheetId}/ranges/{rangeAddress}/clearData': { POST: { clearData: false } }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 设置行隐藏或显示 @@ -156,7 +156,7 @@ declare module "../internal" { sheetId: string, query: SetRowsVisibilityQuery, params: SetRowsVisibilityParams, - ): Promise; + ): Promise /** * 设置列隐藏或显示 * @see https://developers.dingtalk.com/document/app/set-column-visibility @@ -166,7 +166,7 @@ declare module "../internal" { sheetId: string, query: SetColumnsVisibilityQuery, params: SetColumnsVisibilityParams, - ): Promise; + ): Promise /** * 删除行 * @see https://developers.dingtalk.com/document/app/delete-row @@ -176,7 +176,7 @@ declare module "../internal" { sheetId: string, query: DeleteRowsQuery, params: DeleteRowsParams, - ): Promise; + ): Promise /** * 删除列 * @see https://developers.dingtalk.com/document/app/delete-column @@ -186,7 +186,7 @@ declare module "../internal" { sheetId: string, query: DeleteColumnsQuery, params: DeleteColumnsParams, - ): Promise; + ): Promise /** * 指定行上方插入若干行 * @see https://developers.dingtalk.com/document/app/insert-rows-before-rows @@ -196,7 +196,7 @@ declare module "../internal" { sheetId: string, query: InsertRowsBeforeQuery, params: InsertRowsBeforeParams, - ): Promise; + ): Promise /** * 指定列左侧插入若干列 * @see https://developers.dingtalk.com/document/app/insert-column-before-column @@ -206,7 +206,7 @@ declare module "../internal" { sheetId: string, query: InsertColumnsBeforeQuery, params: InsertColumnsBeforeParams, - ): Promise; + ): Promise /** * 清除单元格区域内所有内容 * @see https://developers.dingtalk.com/document/app/clear-all @@ -216,7 +216,7 @@ declare module "../internal" { sheetId: string, rangeAddress: string, query: ClearQuery, - ): Promise; + ): Promise /** * 清除单元格区域内数据 * @see https://developers.dingtalk.com/document/app/clear-cell-data @@ -226,6 +226,6 @@ declare module "../internal" { sheetId: string, rangeAddress: string, query: ClearDataQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/drive.ts b/adapters/dingtalk/src/api/drive.ts index e11d19a3..3f1e02f4 100644 --- a/adapters/dingtalk/src/api/drive.ts +++ b/adapters/dingtalk/src/api/drive.ts @@ -1,86 +1,86 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface AddCustomSpaceParams { /** 自定义空间标识。任意小于10位的字符串即可。 */ - identifier: string; + identifier: string /** 业务类型。任意小于8位的字符串即可。 */ - bizType: string; + bizType: string /** 授权模式,取值: */ - permissionMode: string; + permissionMode: string /** 用户unionId,可通过以下两种方式获取: */ - unionId: string; + unionId: string } export interface AddCustomSpaceResponse { - spaceId: string; - spaceName?: string; - spaceType: string; - quota?: number; - usedQuota: number; - permissionMode?: string; - createTime?: string; - modifyTime?: string; + spaceId: string + spaceName?: string + spaceType: string + quota?: number + usedQuota: number + permissionMode?: string + createTime?: string + modifyTime?: string } export interface DeleteSpaceQuery { /** 用户unionId,可通过以下两种方式获取: */ - unionId: string; + unionId: string } export interface DriveAddSpaceParams { /** 空间名称(不能为空)。 */ - name: string; + name: string /** 用户unionId,可通过以下两种方式获取: */ - unionId: string; + unionId: string } export interface DriveAddSpaceResponse { - spaceId: string; - spaceName?: string; - spaceType: string; - quota?: number; - usedQuota: number; - permissionMode?: string; - createTime?: string; - modifyTime?: string; + spaceId: string + spaceName?: string + spaceType: string + quota?: number + usedQuota: number + permissionMode?: string + createTime?: string + modifyTime?: string } export interface ListSpacesQuery { /** 用户unionId,可通过以下两种方式获取: */ - unionId: string; + unionId: string /** 空间类型。 */ - spaceType: string; + spaceType: string /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 分页大小。 */ - maxResults: number; + maxResults: number } export interface ListSpacesResponse { spaces: { - spaceId: string; - spaceName?: string; - spaceType: string; - quota?: number; - usedQuota: number; - permissionMode?: string; - createTime?: string; - modifyTime?: string; - }[]; - nextToken?: string; + spaceId: string + spaceName?: string + spaceType: string + quota?: number + usedQuota: number + permissionMode?: string + createTime?: string + modifyTime?: string + }[] + nextToken?: string } // funcName: isOldApi Internal.define({ - "/drive/spaces/customSpaces": { POST: { addCustomSpace: false } }, - "/drive/spaces/{spaceId}": { DELETE: { deleteSpace: false } }, - "/drive/spaces": { + '/drive/spaces/customSpaces': { POST: { addCustomSpace: false } }, + '/drive/spaces/{spaceId}': { DELETE: { deleteSpace: false } }, + '/drive/spaces': { POST: { driveAddSpace: false }, GET: { listSpaces: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 新建自定义空间 @@ -88,21 +88,21 @@ declare module "../internal" { */ addCustomSpace( params: AddCustomSpaceParams, - ): Promise; + ): Promise /** * 删除空间 * @see https://developers.dingtalk.com/document/isvapp/delete-a-space */ - deleteSpace(spaceId: string, query: DeleteSpaceQuery): Promise; + deleteSpace(spaceId: string, query: DeleteSpaceQuery): Promise /** * 新建空间 * @see https://developers.dingtalk.com/document/isvapp/new-space */ - driveAddSpace(params: DriveAddSpaceParams): Promise; + driveAddSpace(params: DriveAddSpaceParams): Promise /** * 获取空间列表 * @see https://developers.dingtalk.com/document/isvapp/queries-a-space-list */ - listSpaces(query: ListSpacesQuery): Promise; + listSpaces(query: ListSpacesQuery): Promise } } diff --git a/adapters/dingtalk/src/api/edu.ts b/adapters/dingtalk/src/api/edu.ts index 0ee91d15..904d91b4 100644 --- a/adapters/dingtalk/src/api/edu.ts +++ b/adapters/dingtalk/src/api/edu.ts @@ -1,29 +1,29 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface MoveStudentParams { /** 操作者的userid,可调用[通过免登码获取用户信息](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */ - operator: string; + operator: string /** 学生的userid,可调用[获取人员列表](https://developers.dingtalk.com/document/app/obtains-a-list-of-home-school-user-identities)接口获取。 */ - userId: string; + userId: string /** 原班级ID,可调用[获取部门列表](https://developers.dingtalk.com/document/app/obtains-the-department-node-list)接口获取。 */ - originClassId: number; + originClassId: number /** 目标班级ID,可调用[获取部门列表](https://developers.dingtalk.com/document/app/obtains-the-department-node-list)接口获取。 */ - targetClassId: number; + targetClassId: number } export interface MoveStudentResponse { - success?: unknown; + success?: unknown } // funcName: isOldApi -Internal.define({ "/edu/students/move": { POST: { moveStudent: false } } }); -declare module "../internal" { +Internal.define({ '/edu/students/move': { POST: { moveStudent: false } } }) +declare module '../internal' { interface Internal { /** * 学生调班 * @see https://developers.dingtalk.com/document/isvapp/shift-students */ - moveStudent(params: MoveStudentParams): Promise; + moveStudent(params: MoveStudentParams): Promise } } diff --git a/adapters/dingtalk/src/api/esign.ts b/adapters/dingtalk/src/api/esign.ts index 650be0ca..fb303ef6 100644 --- a/adapters/dingtalk/src/api/esign.ts +++ b/adapters/dingtalk/src/api/esign.ts @@ -1,43 +1,43 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetFlowDocsResponse { data?: { - fileId?: string; - fileName?: string; - fileUrl?: string; - }[]; + fileId?: string + fileName?: string + fileUrl?: string + }[] } export interface ApprovalListResponse { data?: { - approvalName?: string; - status?: string; - refuseReason?: string; - sponsorAccountName?: string; - startTime?: number; - endTime?: number; - sealIdImg?: string; - approvalNodes?: number; - }[]; + approvalName?: string + status?: string + refuseReason?: string + sponsorAccountName?: string + startTime?: number + endTime?: number + sealIdImg?: string + approvalNodes?: number + }[] } // funcName: isOldApi Internal.define({ - "/esign/flowTasks/{taskId}/docs": { GET: { getFlowDocs: false } }, - "/esign/approvals/{taskId}": { GET: { approvalList: false } }, -}); -declare module "../internal" { + '/esign/flowTasks/{taskId}/docs': { GET: { getFlowDocs: false } }, + '/esign/approvals/{taskId}': { GET: { approvalList: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取流程任务的所有合同列表 * @see https://developers.dingtalk.com/document/isvapp/get-a-list-of-all-contracts-for-the-process-task */ - getFlowDocs(taskId: string): Promise; + getFlowDocs(taskId: string): Promise /** * 获取流程任务用印审批列表 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-print-approval-list-for-process-tasks */ - approvalList(taskId: string): Promise; + approvalList(taskId: string): Promise } } diff --git a/adapters/dingtalk/src/api/exclusive.ts b/adapters/dingtalk/src/api/exclusive.ts index 5067b36e..a72f05f8 100644 --- a/adapters/dingtalk/src/api/exclusive.ts +++ b/adapters/dingtalk/src/api/exclusive.ts @@ -1,283 +1,283 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryUserBehaviorParams { /** 用户行为: */ - type: number; + type: number /** 端类型: */ - platform: number; + platform: number /** 开始时间,时间戳,单位毫秒。 */ - startTime?: number; + startTime?: number /** 结束时间,时间戳,单位毫秒。 */ - endTime?: number; + endTime?: number /** 分页大小。 */ - pageSize: number; + pageSize: number /** 起始页。 */ - pageNumber: number; + pageNumber: number /** 用户userId信息,可调用[获取部门用户userId列表](https://open.dingtalk.com/document/orgapp/query-the-list-of-department-userids)接口获取userId。 */ - userId?: string; + userId?: string } export interface QueryUserBehaviorResponse { data?: { - userName?: string; - time?: number; - type?: number; - pictureUrl?: string; - platform?: number; - scene?: string; - userId?: string; - }[]; - totalCnt?: number; - dataCnt?: number; + userName?: string + time?: number + type?: number + pictureUrl?: string + platform?: number + scene?: string + userId?: string + }[] + totalCnt?: number + dataCnt?: number } export interface GetPublicDevicesQuery { /** 系统: */ - platform?: string; + platform?: string /** 注册或申请的开始时间,单位毫秒。 */ - startTime?: number; + startTime?: number /** 注册或申请截止时间,单位毫秒。 */ - endTime?: number; + endTime?: number /** 单页返回的数据条数。 */ - pageSize?: number; + pageSize?: number /** 页码。 */ - pageNumber?: number; + pageNumber?: number /** 设备标题。 */ - title?: string; + title?: string /** 设备mac地址。 */ - macAddress?: string; + macAddress?: string } export interface GetPublicDevicesResponse { - totalCnt?: number; - dataCnt?: number; + totalCnt?: number + dataCnt?: number data?: { - gmtCreate?: number; - gmtModified?: number; - title?: string; - macAddress?: string; - platform?: string; - deviceScopeType?: number; - deviceStaffs?: number; - deviceDepts?: number; - deviceRoles?: number; - }[]; + gmtCreate?: number + gmtModified?: number + title?: string + macAddress?: string + platform?: string + deviceScopeType?: number + deviceStaffs?: number + deviceDepts?: number + deviceRoles?: number + }[] } export interface SendPhoneDingParams { /** 接收DING消息的用户userId列表,最大值20。 */ - userids: string[]; + userids: string[] /** 消息内容。 */ - content: string; + content: string } export interface SendPhoneDingResponse { - success?: unknown; + success?: unknown } export interface QueryPartnerInfoResponse { partnerDeptList?: { - title: string; - value: string; - memberCount: number; - partnerNum?: string; - partnerLabelModelLevel1?: number; - }[]; + title: string + value: string + memberCount: number + partnerNum?: string + partnerLabelModelLevel1?: number + }[] partnerLabelList?: { - id?: number; - name?: string; - }[]; - userId?: string; + id?: number + name?: string + }[] + userId?: string } export interface GetConfBaseInfoByLogicalIdQuery { /** 会议逻辑ID。 */ - logicalConferenceId: string; + logicalConferenceId: string } export interface GetConfBaseInfoByLogicalIdResponse { - conferenceId?: string; - title?: string; - startTime?: number; - logicalConferenceId?: string; - unionId?: string; - nickname?: string; + conferenceId?: string + title?: string + startTime?: number + logicalConferenceId?: string + unionId?: string + nickname?: string } export interface CreateTrustedDeviceBatchParams { /** 员工userid,为0时表示这个设备为公共设备 */ - userId: string; + userId: string /** 操作端。 */ - platform: string; + platform: string /** 设备的Mac地址。 */ - macAddressList: string[]; + macAddressList: string[] } export interface CreateTrustedDeviceBatchResponse { - result?: unknown; + result?: unknown } export interface ListAuditLogQuery { /** 操作日志起始时间,UNIX时间戳,单位毫秒。 */ - startDate: number; + startDate: number /** 操作日志截止时间,UNIX时间戳,单位毫秒。 */ - endDate: number; + endDate: number /** 每页最大条目数,最大值500。 */ - pageSize: number; + pageSize: number /** 操作记录生成时间,UNIX时间戳,单位毫秒,作为分页偏移量。 */ - nextGmtCreate?: number; + nextGmtCreate?: number /** 操作记录文件id,作为分页偏移量。 */ - nextBizId?: number; + nextBizId?: number } export interface ListAuditLogResponse { list?: { - operatorName?: string; - platform?: number; - platformView?: string; - status?: number; - action?: number; - actionView?: string; - resource?: string; - gmtCreate?: number; - userId?: string; - ipAddress?: string; - orgName?: string; - receiverName?: string; - receiverTypeView?: string; - receiverType?: number; - resourceExtension?: string; - resourceSize?: number; - targetSpaceId?: number; - realName?: string; - bizId?: string; - operateModuleView?: string; - operateModule?: number; - gmtModified?: number; - docMemberList?: number; - docReceiverList?: number; - workSpaceName?: string; - workSpacePcUrl?: string; - workSpaceMobileUrl?: string; - docPcUrl?: string; - docMobileUrl?: string; - workSpaceId?: number; - }[]; + operatorName?: string + platform?: number + platformView?: string + status?: number + action?: number + actionView?: string + resource?: string + gmtCreate?: number + userId?: string + ipAddress?: string + orgName?: string + receiverName?: string + receiverTypeView?: string + receiverType?: number + resourceExtension?: string + resourceSize?: number + targetSpaceId?: number + realName?: string + bizId?: string + operateModuleView?: string + operateModule?: number + gmtModified?: number + docMemberList?: number + docReceiverList?: number + workSpaceName?: string + workSpacePcUrl?: string + workSpaceMobileUrl?: string + docPcUrl?: string + docMobileUrl?: string + workSpaceId?: number + }[] } export interface BanOrOpenGroupWordsParams { /** 群ID,获取方式如下 */ - openConverationId: string; + openConverationId: string /** 操作类型。 */ - banWordsType: number; + banWordsType: number } export interface BanOrOpenGroupWordsResponse { - code?: string; - cause?: string; + code?: string + cause?: string } export interface GetSignedDetailByPageQuery { /** 页码,首次传1。 */ - pageNumber: number; + pageNumber: number /** 签署状态。 */ - signStatus: number; + signStatus: number /** 每页数量,最大值2000。 */ - pageSize: number; + pageSize: number } export interface GetSignedDetailByPageResponse { auditSignedDetailDTOList?: { - name?: string; - staffId?: string; - title?: string; - phone?: string; - email?: string; - deptName?: string; - roles?: string; - }[]; - currentPage?: number; - pageSize?: number; - total?: number; + name?: string + staffId?: string + title?: string + phone?: string + email?: string + deptName?: string + roles?: string + }[] + currentPage?: number + pageSize?: number + total?: number } export interface PublishFileChangeNoticeParams { /** 钉盘文件ID。可以调用[查询文件列表](https://open.dingtalk.com/document/orgapp-server/obtain-the-file-list)接口获取。 */ - fileId: string; + fileId: string /** 钉盘空间ID,可调用[获取空间列表](https://open.dingtalk.com/document/orgapp-server/queries-a-space-list)接口获取。 */ - spaceId: string; + spaceId: string /** 操作人的unionId,可通过以下两种方式获取: */ - operatorUnionId: string; + operatorUnionId: string /** 操作类型,取值: */ - operateType?: string; + operateType?: string } export interface SendAppDingParams { /** 接收DING消息的用户userid列表。 */ - userids: string[]; + userids: string[] /** 消息内容。 */ - content: string; + content: string } export interface GetPartnerTypeByParentIdResponse { data: { - typeId: number; - typeName: string; - labelId: string; - }[]; + typeId: number + typeName: string + labelId: string + }[] } export interface SetDeptPartnerTypeAndNumParams { /** 部门ID。 */ - deptId: string; + deptId: string /** 伙伴编码。 */ - partnerNum?: string; + partnerNum?: string /** 伙伴类型ID。 */ - labelIds?: string[]; + labelIds?: string[] } export interface GetAllLabelableDeptsResponse { data: { - deptId: string; - superDeptId: string; - deptName: string; - memberCount: number; - partnerNum: string; - partnerLabelVOLevel1: number; - partnerLabelVOLevel2: number; - partnerLabelVOLevel3: number; - partnerLabelVOLevel4: number; - partnerLabelVOLevel5: number; - }[]; + deptId: string + superDeptId: string + deptName: string + memberCount: number + partnerNum: string + partnerLabelVOLevel1: number + partnerLabelVOLevel2: number + partnerLabelVOLevel3: number + partnerLabelVOLevel4: number + partnerLabelVOLevel5: number + }[] } // funcName: isOldApi Internal.define({ - "/exclusive/enterpriseSecurities/userBehaviors/screenshots/query": { + '/exclusive/enterpriseSecurities/userBehaviors/screenshots/query': { POST: { queryUserBehavior: false }, }, - "/exclusive/trusts/publicDevices": { GET: { getPublicDevices: false } }, - "/exclusive/phoneDings/send": { POST: { sendPhoneDing: false } }, - "/exclusive/partners/users/{userId}": { GET: { queryPartnerInfo: false } }, - "/exclusive/data/conferences": { GET: { getConfBaseInfoByLogicalId: false } }, - "/exclusive/trusts/devices": { POST: { createTrustedDeviceBatch: false } }, - "/exclusive/fileAuditLogs": { GET: { listAuditLog: false } }, - "/exclusive/enterpriseSecurities/banOrOpenGroupWords": { + '/exclusive/trusts/publicDevices': { GET: { getPublicDevices: false } }, + '/exclusive/phoneDings/send': { POST: { sendPhoneDing: false } }, + '/exclusive/partners/users/{userId}': { GET: { queryPartnerInfo: false } }, + '/exclusive/data/conferences': { GET: { getConfBaseInfoByLogicalId: false } }, + '/exclusive/trusts/devices': { POST: { createTrustedDeviceBatch: false } }, + '/exclusive/fileAuditLogs': { GET: { listAuditLog: false } }, + '/exclusive/enterpriseSecurities/banOrOpenGroupWords': { PUT: { banOrOpenGroupWords: false }, }, - "/exclusive/audits/users": { GET: { getSignedDetailByPage: false } }, - "/exclusive/comments/send": { POST: { publishFileChangeNotice: false } }, - "/exclusive/appDings/send": { POST: { sendAppDing: false } }, - "/exclusive/partnerLabels/{parentId}": { + '/exclusive/audits/users': { GET: { getSignedDetailByPage: false } }, + '/exclusive/comments/send': { POST: { publishFileChangeNotice: false } }, + '/exclusive/appDings/send': { POST: { sendAppDing: false } }, + '/exclusive/partnerLabels/{parentId}': { GET: { getPartnerTypeByParentId: false }, }, - "/exclusive/partnerDepartments": { + '/exclusive/partnerDepartments': { POST: { setDeptPartnerTypeAndNum: false }, GET: { getAllLabelableDepts: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 获取用户截屏操作记录 @@ -285,87 +285,87 @@ declare module "../internal" { */ queryUserBehavior( params: QueryUserBehaviorParams, - ): Promise; + ): Promise /** * 获取公共设备列表。 * @see https://developers.dingtalk.com/document/orgapp/query-public-equipment */ getPublicDevices( query: GetPublicDevicesQuery, - ): Promise; + ): Promise /** * 通过接口发送电话DING * @see https://developers.dingtalk.com/document/orgapp/outgoing-phone-ding */ - sendPhoneDing(params: SendPhoneDingParams): Promise; + sendPhoneDing(params: SendPhoneDingParams): Promise /** * 根据userId查询人员的标签信息 * @see https://developers.dingtalk.com/document/isvapp/you-can-call-this-operation-to-retrieve-the-user-tag */ - queryPartnerInfo(userId: string): Promise; + queryPartnerInfo(userId: string): Promise /** * 根据会议逻辑ID查询会议基本信息 * @see https://developers.dingtalk.com/document/isvapp/you-can-call-this-operation-to-query-the-basic-information */ getConfBaseInfoByLogicalId( query: GetConfBaseInfoByLogicalIdQuery, - ): Promise; + ): Promise /** * 批量新增可信设备 * @see https://developers.dingtalk.com/document/isvapp/add-trusted-devices-in-batches */ createTrustedDeviceBatch( params: CreateTrustedDeviceBatchParams, - ): Promise; + ): Promise /** * 获取企业文件审计日志 * @see https://developers.dingtalk.com/document/app/queries-file-audit-logs */ - listAuditLog(query: ListAuditLogQuery): Promise; + listAuditLog(query: ListAuditLogQuery): Promise /** * 群禁言或解禁 * @see https://developers.dingtalk.com/document/isvapp/exclusive-dingtalk-group-ban */ banOrOpenGroupWords( params: BanOrOpenGroupWordsParams, - ): Promise; + ): Promise /** * 获取审计协议签署人员信息 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-information-about-the-persons-who-sign-the-audit */ getSignedDetailByPage( query: GetSignedDetailByPageQuery, - ): Promise; + ): Promise /** * 发送文件更改的评论 * @see https://developers.dingtalk.com/document/isvapp/send-comments-on-file-changes */ publishFileChangeNotice( params: PublishFileChangeNoticeParams, - ): Promise; + ): Promise /** * 通过接口发送应用内DING * @see https://developers.dingtalk.com/document/orgapp/send-in-application-ding */ - sendAppDing(params: SendAppDingParams): Promise; + sendAppDing(params: SendAppDingParams): Promise /** * 伙伴钉根据父标签查询子标签 * @see https://developers.dingtalk.com/document/isvapp/obtain-child-tags-from-a-parent-tag */ getPartnerTypeByParentId( parentId: string, - ): Promise; + ): Promise /** * 设置部门伙伴类型和伙伴编码 * @see https://developers.dingtalk.com/document/isvapp/set-department-partner-type-and-partner-code */ setDeptPartnerTypeAndNum( params: SetDeptPartnerTypeAndNumParams, - ): Promise; + ): Promise /** * 获取可打标部门列表 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-departments-that-can-be-marked */ - getAllLabelableDepts(): Promise; + getAllLabelableDepts(): Promise } } diff --git a/adapters/dingtalk/src/api/h3yun.ts b/adapters/dingtalk/src/api/h3yun.ts index 3944b8a7..e1343ad0 100644 --- a/adapters/dingtalk/src/api/h3yun.ts +++ b/adapters/dingtalk/src/api/h3yun.ts @@ -1,536 +1,536 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetUploadUrlQuery { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务数据实例ID。 */ - bizObjectId: string; + bizObjectId: string /** 文件上传至目标控件的字段名。 */ - fieldName: string; + fieldName: string /** 是否覆盖,取值: */ - isOverwrite: unknown; + isOverwrite: unknown } export interface GetUploadUrlResponse { - code: string; - message: string; + code: string + message: string data?: { - uploadUrl?: string; - }; + uploadUrl?: string + } } export interface QueryAppFunctionNodesQuery { /** 应用编码。 */ - appCode: string; + appCode: string } export interface QueryAppFunctionNodesResponse { - code: string; - message: string; + code: string + message: string data?: { - schemaCode?: string; - appCode?: string; - parentCode?: string; - displayName?: string; - nodeVisibleType?: string; - nodeType?: string; - state?: string; - sortKey?: number; - isSystem?: number; - }[]; + schemaCode?: string + appCode?: string + parentCode?: string + displayName?: string + nodeVisibleType?: string + nodeType?: string + state?: string + sortKey?: number + isSystem?: number + }[] } export interface CreateProcessesInstanceParams { /** 流程表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务数据实例ID。 */ - bizObjectId: string; + bizObjectId: string /** 操作者的ID。 */ - opUserId: string; + opUserId: string } export interface CreateProcessesInstanceResponse { - code: string; - message: string; + code: string + message: string data?: { - processInstanceId?: string; - }; + processInstanceId?: string + } } export interface DeleteProcessesInstanceQuery { /** 流程实例ID。可以调用[查询流程实例](https://open.dingtalk.com/document/orgapp-server/query-flow-instances)接口获取。 */ - processInstanceId: string; + processInstanceId: string /** 删除成功后,是否需要更新业务表单关联的流程实例ID。 */ - isAutoUpdateBizObject: unknown; + isAutoUpdateBizObject: unknown } export interface DeleteProcessesInstanceResponse { - code: string; - message: string; + code: string + message: string } export interface LoadBizFieldsQuery { /** 表单编码。 */ - schemaCode: string; + schemaCode: string } export interface LoadBizFieldsResponse { - code: string; - message: string; + code: string + message: string data?: { - schemaCode?: string; - formName?: string; - fields?: number; - childForms?: number; - }; + schemaCode?: string + formName?: string + fields?: number + childForms?: number + } } export interface QueryProcessesWorkItemsQuery { /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string } export interface QueryProcessesWorkItemsResponse { - code: string; - message: string; + code: string + message: string data?: { - workItemId?: string; - workItemType?: string; - processInstanceId?: string; - appCode?: string; - schemaCode?: string; - bizObjectId?: string; - processVersion?: string; - activityCode?: string; - activityName?: string; - displayName?: string; - state?: string; - isFinish?: number; - receiveTimeGMT?: string; - startTimeGMT?: string; - finishTimeGMT?: string; - comment?: string; - isApproval?: number; - participant?: number; - finisher?: number; - receiptor?: number; - }[]; + workItemId?: string + workItemType?: string + processInstanceId?: string + appCode?: string + schemaCode?: string + bizObjectId?: string + processVersion?: string + activityCode?: string + activityName?: string + displayName?: string + state?: string + isFinish?: number + receiveTimeGMT?: string + startTimeGMT?: string + finishTimeGMT?: string + comment?: string + isApproval?: number + participant?: number + finisher?: number + receiptor?: number + }[] } export interface BatchInsertBizObjectParams { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 操作用户ID。 */ - opUserId: string; + opUserId: string /** 待新增的业对象json数组。JSON数组的key只可以调用[获取表单对象结构](https://open.dingtalk.com/document/orgapp-server/gets-the-form-object-structure)接口获取。 */ - bizObjectJsonArray: string[]; + bizObjectJsonArray: string[] /** 是否是草稿,取值: */ - isDraft: unknown; + isDraft: unknown } export interface BatchInsertBizObjectResponse { - code: string; - message: string; + code: string + message: string data?: { - bizObjectIds?: number; - processIds?: number; - failedDatas?: number; - failedMessages?: number; - }; + bizObjectIds?: number + processIds?: number + failedDatas?: number + failedMessages?: number + } } export interface DeleteBizObjectQuery { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务数据ID。 */ - bizObjectId: string; + bizObjectId: string } export interface DeleteBizObjectResponse { - code: string; - message: string; + code: string + message: string } export interface CancelProcessInstanceParams { /** 流程实例ID。可以调用[查询流程实例](https://open.dingtalk.com/document/orgapp-server/query-flow-instances)接口获取。 */ - processInstanceId: string; + processInstanceId: string } export interface CancelProcessInstanceResponse { - code: string; - message: string; + code: string + message: string } export interface CreateBizObjectParams { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 操作用户ID。 */ - opUserId: string; + opUserId: string /** json格式的业务数据。JSON数组的key只可以调用[获取表单对象结构](https://open.dingtalk.com/document/orgapp-server/gets-the-form-object-structure)接口获取。 */ - bizObjectJson: string; + bizObjectJson: string /** 是否是草稿,取值: */ - isDraft: unknown; + isDraft: unknown } export interface CreateBizObjectResponse { - code: string; - message: string; + code: string + message: string data?: { - schemaCode?: string; - formUsageType?: string; - bizObjectId?: string; - processInstanceId?: string; - }; + schemaCode?: string + formUsageType?: string + bizObjectId?: string + processInstanceId?: string + } } export interface QueryProcessesInstanceQuery { /** 流程表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务数据ID。 */ - bizObjectId: string; + bizObjectId: string } export interface QueryProcessesInstanceResponse { - code: string; - message: string; + code: string + message: string data?: { - processInstanceId?: string; - dingTalkProcessId?: string; - processDisplayName?: string; - processVersion?: number; - schemaCode?: string; - bizObjectId?: string; - appCode?: string; - state?: string; - originator?: number; - createdTimeGMT?: string; - startTimeGMT?: string; - finishTimeGMT?: string; - }[]; + processInstanceId?: string + dingTalkProcessId?: string + processDisplayName?: string + processVersion?: number + schemaCode?: string + bizObjectId?: string + appCode?: string + state?: string + originator?: number + createdTimeGMT?: string + startTimeGMT?: string + finishTimeGMT?: string + }[] } export interface UpdateBizObjectParams { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务数据ID。 */ - bizObjectId: string; + bizObjectId: string /** 待修改的json格式业务数据。 */ - bizObjectJson: string; + bizObjectJson: string } export interface UpdateBizObjectResponse { - code: string; - message: string; + code: string + message: string } export interface LoadBizObjectQuery { /** 表单编码或流程表单编码。 */ - schemaCode: string; + schemaCode: string /** 业务对象实例ID。 */ - bizObjectId: string; + bizObjectId: string } export interface LoadBizObjectResponse { - code: string; - message: string; - data?: unknown; + code: string + message: string + data?: unknown } export interface LoadBizObjectsParams { /** 表单编码。 */ - schemaCode: string; + schemaCode: string /** 分页页码。 */ - pageNumber: number; + pageNumber: number /** 分页页大小,最大值500。 */ - pageSize: number; + pageSize: number /** 需要返回的字段名,仅支持传入主表的字段。 */ - returnFields?: string[]; + returnFields?: string[] /** 排序字段结构列表。 */ - sortByFields?: object[]; + sortByFields?: object[] /** json格式的动态条件过滤器。 */ - matcherJson?: string; + matcherJson?: string } export interface LoadBizObjectsResponse { - code: string; - message: string; + code: string + message: string data?: { - pageNumber?: number; - pageSize?: number; - totalCount?: number; - bizObjects?: number; - }; + pageNumber?: number + pageSize?: number + totalCount?: number + bizObjects?: number + } } export interface GetAttachmentTemporaryUrlQuery { /** 附件ID。 */ - attachmentId: string; + attachmentId: string } export interface GetAttachmentTemporaryUrlResponse { - code: string; - message: string; + code: string + message: string data?: { - attachmentUrl?: string; - }; + attachmentUrl?: string + } } export interface GetRoleUsersQuery { /** 角色ID。 */ - roleId: string; + roleId: string } export interface GetRoleUsersResponse { - code: string; - message: string; + code: string + message: string data?: { - userId?: string; - name?: string; - code?: string; - sex?: string; - description?: string; - mobile?: string; - email?: string; - departmentId?: string; - departmentName?: string; - domainType?: string; - partDepartmentIds?: number; - sortKey?: number; - }[]; + userId?: string + name?: string + code?: string + sex?: string + description?: string + mobile?: string + email?: string + departmentId?: string + departmentName?: string + domainType?: string + partDepartmentIds?: number + sortKey?: number + }[] } export interface GetRolesResponse { - code: string; - message: string; + code: string + message: string data?: { - roleGroups?: number; - roles?: number; - }; + roleGroups?: number + roles?: number + } } export interface GetUsersQuery { /** 部门ID。 */ - departmentId: string; + departmentId: string /** 是否递归获取子级部门下的用户。 */ - isRecursive?: unknown; + isRecursive?: unknown } export interface GetUsersResponse { - code: string; - message: string; + code: string + message: string data?: { - id?: string; - name?: string; - code?: string; - sex?: string; - description?: string; - mobile?: string; - email?: string; - departmentId?: string; - departmentName?: string; - domainType?: string; - partDepartmentIds?: number; - sortKey?: number; - }[]; + id?: string + name?: string + code?: string + sex?: string + description?: string + mobile?: string + email?: string + departmentId?: string + departmentName?: string + domainType?: string + partDepartmentIds?: number + sortKey?: number + }[] } export interface GetAppsParams { /** 查询类型,取值: */ - queryType: string; + queryType: string /** 待查询条件数组。 */ - values?: string[]; + values?: string[] } export interface GetAppsResponse { - code: string; - message: string; + code: string + message: string data?: { - appCode?: string; - displayName?: string; - appSource?: string; - appState?: string; - solution?: string; - }[]; + appCode?: string + displayName?: string + appSource?: string + appState?: string + solution?: string + }[] } export interface GetOrganizationsQuery { /** 部门ID。 */ - departmentId?: string; + departmentId?: string } export interface GetOrganizationsResponse { - code: string; - message: string; + code: string + message: string data?: { - id?: string; - parentId?: string; - name?: string; - code?: string; - unitType?: string; - sortKey?: number; - description?: string; - }[]; + id?: string + parentId?: string + name?: string + code?: string + unitType?: string + sortKey?: number + description?: string + }[] } // funcName: isOldApi Internal.define({ - "/h3yun/attachments/uploadUrls": { GET: { getUploadUrl: false } }, - "/h3yun/apps/functionNodes": { GET: { queryAppFunctionNodes: false } }, - "/h3yun/processes/instances": { + '/h3yun/attachments/uploadUrls': { GET: { getUploadUrl: false } }, + '/h3yun/apps/functionNodes': { GET: { queryAppFunctionNodes: false } }, + '/h3yun/processes/instances': { POST: { createProcessesInstance: false }, DELETE: { deleteProcessesInstance: false }, GET: { queryProcessesInstance: false }, }, - "/h3yun/forms/loadBizFields": { GET: { loadBizFields: false } }, - "/h3yun/processes/workItems": { GET: { queryProcessesWorkItems: false } }, - "/h3yun/forms/instances/batch": { POST: { batchInsertBizObject: false } }, - "/h3yun/forms/instances": { + '/h3yun/forms/loadBizFields': { GET: { loadBizFields: false } }, + '/h3yun/processes/workItems': { GET: { queryProcessesWorkItems: false } }, + '/h3yun/forms/instances/batch': { POST: { batchInsertBizObject: false } }, + '/h3yun/forms/instances': { DELETE: { deleteBizObject: false }, POST: { createBizObject: false }, PUT: { updateBizObject: false }, }, - "/h3yun/processes/instances/cancel": { + '/h3yun/processes/instances/cancel': { POST: { cancelProcessInstance: false }, }, - "/h3yun/forms/instances/loadInstances": { GET: { loadBizObject: false } }, - "/h3yun/forms/instances/search": { POST: { loadBizObjects: false } }, - "/h3yun/attachments/temporaryUrls": { + '/h3yun/forms/instances/loadInstances': { GET: { loadBizObject: false } }, + '/h3yun/forms/instances/search': { POST: { loadBizObjects: false } }, + '/h3yun/attachments/temporaryUrls': { GET: { getAttachmentTemporaryUrl: false }, }, - "/h3yun/roles/roleUsers": { GET: { getRoleUsers: false } }, - "/h3yun/roles": { GET: { getRoles: false } }, - "/h3yun/users": { GET: { getUsers: false } }, - "/h3yun/apps/search": { POST: { getApps: false } }, - "/h3yun/departments": { GET: { getOrganizations: false } }, -}); -declare module "../internal" { + '/h3yun/roles/roleUsers': { GET: { getRoleUsers: false } }, + '/h3yun/roles': { GET: { getRoles: false } }, + '/h3yun/users': { GET: { getUsers: false } }, + '/h3yun/apps/search': { POST: { getApps: false } }, + '/h3yun/departments': { GET: { getOrganizations: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取文件上传地址 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-upload-url-of-a-file-2 */ - getUploadUrl(query: GetUploadUrlQuery): Promise; + getUploadUrl(query: GetUploadUrlQuery): Promise /** * 获取应用功能节点 * @see https://developers.dingtalk.com/document/isvapp/queries-the-application-feature-nodes */ queryAppFunctionNodes( query: QueryAppFunctionNodesQuery, - ): Promise; + ): Promise /** * 创建流程实例 * @see https://developers.dingtalk.com/document/isvapp/create-a-process-instance */ createProcessesInstance( params: CreateProcessesInstanceParams, - ): Promise; + ): Promise /** * 删除流程实例数据 * @see https://developers.dingtalk.com/document/isvapp/delete-process-instance-data */ deleteProcessesInstance( query: DeleteProcessesInstanceQuery, - ): Promise; + ): Promise /** * 获取表单对象结构 * @see https://developers.dingtalk.com/document/isvapp/gets-the-form-object-structure */ - loadBizFields(query: LoadBizFieldsQuery): Promise; + loadBizFields(query: LoadBizFieldsQuery): Promise /** * 获取流程实例节点工作项 * @see https://developers.dingtalk.com/document/isvapp/query-flow-instance-node-work-items */ queryProcessesWorkItems( query: QueryProcessesWorkItemsQuery, - ): Promise; + ): Promise /** * 批量新增表单业务数据 * @see https://developers.dingtalk.com/document/isvapp/batch-add-form-business-data */ batchInsertBizObject( params: BatchInsertBizObjectParams, - ): Promise; + ): Promise /** * 删除业务对象 * @see https://developers.dingtalk.com/document/isvapp/delete-a-business-object */ deleteBizObject( query: DeleteBizObjectQuery, - ): Promise; + ): Promise /** * 取消流程实例 * @see https://developers.dingtalk.com/document/isvapp/cancel-a-process-instance */ cancelProcessInstance( params: CancelProcessInstanceParams, - ): Promise; + ): Promise /** * 创建表单业务数据 * @see https://developers.dingtalk.com/document/isvapp/create-form-business-data */ createBizObject( params: CreateBizObjectParams, - ): Promise; + ): Promise /** * 查询流程实例 * @see https://developers.dingtalk.com/document/isvapp/query-flow-instances */ queryProcessesInstance( query: QueryProcessesInstanceQuery, - ): Promise; + ): Promise /** * 修改表单业务对象数据 * @see https://developers.dingtalk.com/document/isvapp/modify-form-business-object-data */ updateBizObject( params: UpdateBizObjectParams, - ): Promise; + ): Promise /** * 获取业务实例信息 * @see https://developers.dingtalk.com/document/isvapp/queries-business-instance-information */ - loadBizObject(query: LoadBizObjectQuery): Promise; + loadBizObject(query: LoadBizObjectQuery): Promise /** * 查询表单业务数据列表 * @see https://developers.dingtalk.com/document/isvapp/querying-form-business-data */ loadBizObjects( params: LoadBizObjectsParams, - ): Promise; + ): Promise /** * 获取附件临时免登地址 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-temporary-attachment-free-address */ getAttachmentTemporaryUrl( query: GetAttachmentTemporaryUrlQuery, - ): Promise; + ): Promise /** * 获取角色用户数据 * @see https://developers.dingtalk.com/document/isvapp/obtain-role-data-1 */ - getRoleUsers(query: GetRoleUsersQuery): Promise; + getRoleUsers(query: GetRoleUsersQuery): Promise /** * 获取角色数据 * @see https://developers.dingtalk.com/document/isvapp/obtain-role-data */ - getRoles(): Promise; + getRoles(): Promise /** * 获取用户数据 * @see https://developers.dingtalk.com/document/isvapp/obtain-user-data */ - getUsers(query: GetUsersQuery): Promise; + getUsers(query: GetUsersQuery): Promise /** * 获取应用列表 * @see https://developers.dingtalk.com/document/isvapp/queries-applications */ - getApps(params: GetAppsParams): Promise; + getApps(params: GetAppsParams): Promise /** * 获取组织数据 * @see https://developers.dingtalk.com/document/isvapp/queries-organization-data */ getOrganizations( query: GetOrganizationsQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/hrm.ts b/adapters/dingtalk/src/api/hrm.ts index 48b73fed..57856ba4 100644 --- a/adapters/dingtalk/src/api/hrm.ts +++ b/adapters/dingtalk/src/api/hrm.ts @@ -1,210 +1,210 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface HrmProcessUpdateTerminationInfoParams { /** 已离职员工的userId,可调用[获取离职员工列表](https://open.dingtalk.com/document/orgapp/obtain-the-list-of-employees-who-have-left)接口获取离职员工userId。 */ - userId: string; + userId: string /** 最后工作日,即离职日期,格式为毫秒值时间戳。 */ - lastWorkDate: number; + lastWorkDate: number /** 离职备注信息。 */ - dismissionMemo: string; + dismissionMemo: string } export interface HrmProcessUpdateTerminationInfoResponse { - result: unknown; + result: unknown } export interface HrmProcessRegularParams { /** 待转正用户userId。 */ - userId: string; + userId: string /** 转正时间,unix时间戳,单位毫秒。 */ - regularDate: number; + regularDate: number /** 备注信息。 */ - remark?: string; + remark?: string /** 操作用户userId。 */ - operationId: string; + operationId: string } export interface HrmProcessRegularResponse { - result: unknown; + result: unknown } export interface QueryDismissionStaffIdListQuery { /** 分页查询的游标。 */ - nextToken?: number; + nextToken?: number /** 每页条目数,默认值30,最大值50。 */ - maxResults?: number; + maxResults?: number } export interface QueryDismissionStaffIdListResponse { - nextToken?: number; - hasMore?: unknown; - userIdList?: string[]; + nextToken?: number + hasMore?: unknown + userIdList?: string[] } export interface RosterMetaFieldOptionsUpdateParams { /** 花名册分组ID。 */ - groupId: string; + groupId: string /** 花名册字段标识。 */ - fieldCode: string; + fieldCode: string /** 需要修改的选项值列表,最大值20。 */ - labels: string[]; + labels: string[] /** 修改类型。 */ - modifyType: string; + modifyType: string } export interface RosterMetaFieldOptionsUpdateQuery { /** 对应应用的agentId值。 */ - appAgentId?: number; + appAgentId?: number } export interface RosterMetaFieldOptionsUpdateResponse { - result?: unknown; + result?: unknown } export interface HrmProcessTransferParams { /** 被调岗员工userId。 */ - userId: string; + userId: string /** 部门ID。 */ - deptIdsAfterTransfer?: long[]; + deptIdsAfterTransfer?: number[] /** 员工调岗后的人事主部门ID。 */ - mainDeptIdAfterTransfer?: number; + mainDeptIdAfterTransfer?: number /** 员工调岗后的职位名称,长度最大124字符。 */ - positionNameAfterTransfer?: string; + positionNameAfterTransfer?: string /** 员工调岗后的职级名称,长度不超过64字符。 */ - positionLevelAfterTransfer?: string; + positionLevelAfterTransfer?: string /** 员工调岗后的职务ID,调用[获取企业职务信息](https://open.dingtalk.com/document/orgapp-server/obtain-enterprise-title-information)接口获取jobId参数值。 */ - jobIdAfterTransfer?: string; + jobIdAfterTransfer?: string /** 员工调岗后的职位ID。 */ - positionIdAfterTransfer?: string; + positionIdAfterTransfer?: string /** 员工调岗后的职级ID。 */ - rankIdAfterTransfer?: string; + rankIdAfterTransfer?: string /** 操作人userId。 */ - operateUserId?: string; + operateUserId?: string } export interface HrmProcessTransferResponse { - result?: unknown; + result?: unknown } export interface QueryHrmEmployeeDismissionInfoQuery { /** 员工userId列表, 最大长度50。 */ - userIdList: string; + userIdList: string } export interface QueryHrmEmployeeDismissionInfoResponse { result?: { - userId?: string; - lastWorkDay?: number; - deptList?: number; - reasonMemo?: string; - preStatus?: number; - handoverUserId?: string; - status?: number; - mainDeptName?: string; - mainDeptId?: number; - voluntaryReason?: number; - passiveReason?: number; - }[]; + userId?: string + lastWorkDay?: number + deptList?: number + reasonMemo?: string + preStatus?: number + handoverUserId?: string + status?: number + mainDeptName?: string + mainDeptId?: number + voluntaryReason?: number + passiveReason?: number + }[] } export interface QueryJobsQuery { /** 职务名称。 */ - jobName?: string; + jobName?: string /** 分页游标。 */ - nextToken: number; + nextToken: number /** 每页最大条目数,最大值100。 */ - maxResults: number; + maxResults: number } export interface QueryJobsResponse { - nextToken?: number; - hasMore?: unknown; + nextToken?: number + hasMore?: unknown list?: { - jobId?: string; - jobName?: string; - jobDescription?: string; - }[]; + jobId?: string + jobName?: string + jobDescription?: string + }[] } export interface QueryJobRanksQuery { /** 职级序列ID。 */ - rankCategoryId?: string; + rankCategoryId?: string /** 职级编码。 */ - rankCode?: string; + rankCode?: string /** 职级名称。 */ - rankName?: string; + rankName?: string /** 分页游标。 */ - nextToken: number; + nextToken: number /** 每页最大条目数,最大值200。 */ - maxResults: number; + maxResults: number } export interface QueryJobRanksResponse { - nextToken?: number; - hasMore?: unknown; + nextToken?: number + hasMore?: unknown list?: { - rankId?: string; - rankCategoryId?: string; - rankCode?: string; - rankName?: string; - minJobGrade?: number; - maxJobGrade?: number; - rankDescription?: string; - }[]; + rankId?: string + rankCategoryId?: string + rankCode?: string + rankName?: string + minJobGrade?: number + maxJobGrade?: number + rankDescription?: string + }[] } export interface QueryPositionsParams { /** 职位名称。 */ - positionName?: string; + positionName?: string /** 职位类别ID列表。 */ - inCategoryIds?: string[]; + inCategoryIds?: string[] /** 职位ID列表。 */ - inPositionIds?: string[]; + inPositionIds?: string[] /** 部门ID。 */ - deptId?: number; + deptId?: number } export interface QueryPositionsQuery { /** 分页游标。 */ - nextToken: number; + nextToken: number /** 每页最大条目数,最大值200。 */ - maxResults: number; + maxResults: number } export interface QueryPositionsResponse { - nextToken?: number; - hasMore?: unknown; + nextToken?: number + hasMore?: unknown list?: { - positionId?: string; - positionName?: string; - positionCategoryId?: string; - jobId?: string; - positionDes?: string; - rankIdList?: number; - status?: number; - }[]; + positionId?: string + positionName?: string + positionCategoryId?: string + jobId?: string + positionDes?: string + rankIdList?: number + status?: number + }[] } // funcName: isOldApi Internal.define({ - "/hrm/processes/employees/terminations": { + '/hrm/processes/employees/terminations': { PUT: { hrmProcessUpdateTerminationInfo: false }, }, - "/hrm/processes/regulars/become": { POST: { hrmProcessRegular: false } }, - "/hrm/employees/dismissions": { GET: { queryDismissionStaffIdList: false } }, - "/hrm/rosters/meta/fields/options": { + '/hrm/processes/regulars/become': { POST: { hrmProcessRegular: false } }, + '/hrm/employees/dismissions': { GET: { queryDismissionStaffIdList: false } }, + '/hrm/rosters/meta/fields/options': { PUT: { rosterMetaFieldOptionsUpdate: false }, }, - "/hrm/processes/transfer": { POST: { hrmProcessTransfer: false } }, - "/hrm/employees/dimissionInfos": { + '/hrm/processes/transfer': { POST: { hrmProcessTransfer: false } }, + '/hrm/employees/dimissionInfos': { GET: { queryHrmEmployeeDismissionInfo: false }, }, - "/hrm/jobs": { GET: { queryJobs: false } }, - "/hrm/jobRanks": { GET: { queryJobRanks: false } }, - "/hrm/positions/query": { POST: { queryPositions: false } }, -}); -declare module "../internal" { + '/hrm/jobs': { GET: { queryJobs: false } }, + '/hrm/jobRanks': { GET: { queryJobRanks: false } }, + '/hrm/positions/query': { POST: { queryPositions: false } }, +}) +declare module '../internal' { interface Internal { /** * 修改员工最后一次离职信息 @@ -212,21 +212,21 @@ declare module "../internal" { */ hrmProcessUpdateTerminationInfo( params: HrmProcessUpdateTerminationInfoParams, - ): Promise; + ): Promise /** * 智能人事转正接口 * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-staff-to-become-regular */ hrmProcessRegular( params: HrmProcessRegularParams, - ): Promise; + ): Promise /** * 获取离职员工列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-list-of-employees-who-have-left */ queryDismissionStaffIdList( query: QueryDismissionStaffIdListQuery, - ): Promise; + ): Promise /** * 新增或删除花名册选项类型字段的选项 * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-roster-field-option-modification @@ -234,31 +234,31 @@ declare module "../internal" { rosterMetaFieldOptionsUpdate( query: RosterMetaFieldOptionsUpdateQuery, params: RosterMetaFieldOptionsUpdateParams, - ): Promise; + ): Promise /** * 智能人事员工调岗 * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-staff-transfer */ hrmProcessTransfer( params: HrmProcessTransferParams, - ): Promise; + ): Promise /** * 批量获取员工离职信息 * @see https://developers.dingtalk.com/document/isvapp/obtain-multiple-employee-demission-information-1 */ queryHrmEmployeeDismissionInfo( query: QueryHrmEmployeeDismissionInfoQuery, - ): Promise; + ): Promise /** * 获取企业职务列表 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-enterprise-jobs */ - queryJobs(query: QueryJobsQuery): Promise; + queryJobs(query: QueryJobsQuery): Promise /** * 获取企业职级列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-a-list-of-enterprise-ranks */ - queryJobRanks(query: QueryJobRanksQuery): Promise; + queryJobRanks(query: QueryJobRanksQuery): Promise /** * 获取企业职位列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-a-list-of-enterprise-positions @@ -266,6 +266,6 @@ declare module "../internal" { queryPositions( query: QueryPositionsQuery, params: QueryPositionsParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/im.ts b/adapters/dingtalk/src/api/im.ts index bec741f7..90ffe53b 100644 --- a/adapters/dingtalk/src/api/im.ts +++ b/adapters/dingtalk/src/api/im.ts @@ -1,735 +1,735 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QuerySceneGroupTemplateRobotQuery { /** 机器人的编码。 */ - robotCode?: string; + robotCode?: string /** 群会话ID。 */ - openConversationId?: string; + openConversationId?: string } export interface QuerySceneGroupTemplateRobotResponse { - success?: unknown; + success?: unknown result?: { - userId?: string; - unionId?: string; - }; + userId?: string + unionId?: string + } } export interface BatchQueryGroupMemberParams { /** 开放群ID。 */ - openConversationId: string; + openConversationId: string /** 群应用编码。 */ - coolAppCode?: string; + coolAppCode?: string /** 本次读取的最大数据记录数量(该入参传入值小于钉钉阈值时返回全部)。 */ - maxResults: number; + maxResults: number /** 标记当前开始读取的位置,置空表示从头开始。 */ - nextToken?: string; + nextToken?: string } export interface BatchQueryGroupMemberResponse { - success?: unknown; - memberUserIds?: string[]; - hasMore?: unknown; - nextToken?: string; + success?: unknown + memberUserIds?: string[] + hasMore?: unknown + nextToken?: string } export interface QueryGroupMuteStatusQuery { /** 群成员userId。 */ - userId: string; + userId: string /** 开放的会话ID,可通过[创建场景群](https://open.dingtalk.com/document/group/create-a-scene-group-v2)接口获取。 */ - openConversationId: string; + openConversationId: string } export interface QueryGroupMuteStatusResponse { - groupMuteMode: unknown; + groupMuteMode: unknown userMuteResult: { - userMuteMode: number; - muteStartTime: number; - muteEndTime: number; - }; + userMuteMode: number + muteStartTime: number + muteEndTime: number + } } export interface UpdateMemberBanWordsParams { /** 群成员id列表。 */ - userIdList: string[]; + userIdList: string[] /** 开放群id,可通过[创建场景群](https://open.dingtalk.com/document/group/create-a-scene-group-v2)接口获取。 */ - openConversationId: string; + openConversationId: string /** 禁言状态: */ - muteStatus: number; + muteStatus: number /** 禁言持续时长,单位:毫秒。 */ - muteDuration: number; + muteDuration: number } export interface GetSceneGroupInfoParams { /** 群ID: */ - openConversationId: string; + openConversationId: string /** 群聊酷应用编码: */ - coolAppCode?: string; + coolAppCode?: string } export interface GetSceneGroupInfoResponse { - success?: unknown; - openConversationId?: string; - templateId?: string; - title?: string; - ownerUserId?: string; - icon?: string; - groupUrl?: string; - status?: number; + success?: unknown + openConversationId?: string + templateId?: string + title?: string + ownerUserId?: string + icon?: string + groupUrl?: string + status?: number } export interface UpdateGroupSubAdminParams { /** 场景群群ID。 */ - openConversationId: string; + openConversationId: string /** 用户userid列表。 */ - userIds: string[]; + userIds: string[] /** 群成员类型: */ - role: number; + role: number } export interface UpdateGroupSubAdminResponse { - success: unknown; + success: unknown } export interface UpdateMemberGroupNickParams { /** 场景群群ID,可以调用[创建场景群](https://developers.dingtalk.com/document/chatgroup/create-a-scene-group-v2)接口获取。 */ - openConversationId: string; + openConversationId: string /** 用户的userid。 */ - userId: string; + userId: string /** 用户群昵称。 */ - groupNick: string; + groupNick: string } export interface UpdateMemberGroupNickResponse { - success?: unknown; + success?: unknown } export interface SendTemplateInteractiveCardParams { /** 卡片内容模板ID,响应模板目前有: */ - cardTemplateId: string; + cardTemplateId: string /** 接收卡片的加密群ID,特指多人群会话(非单聊)。 */ - openConversationId?: string; + openConversationId?: string /** 单聊会话接收者json字符串。 */ - singleChatReceiver?: string; + singleChatReceiver?: string /** 唯一标识一张卡片的外部ID。 */ - outTrackId: string; + outTrackId: string /** 机器人代码。 */ - robotCode: string; + robotCode: string /** 可控制卡片回调的URL。 */ - callbackUrl?: string; + callbackUrl?: string /** 卡片模板,文本内容参数、 */ - cardData: string; + cardData: string /** 互动卡片发送选项。 */ - sendOptions?: unknown; + sendOptions?: unknown } export interface SendTemplateInteractiveCardResponse { - processQueryKey?: string; + processQueryKey?: string } export interface UpdateInteractiveCardParams { /** 唯一标示卡片的外部编码 */ - outTrackId?: string; + outTrackId?: string /** 卡片数据 */ - cardData?: unknown; + cardData?: unknown /** 卡片用户私有差异部分数据(如卡片不同人显示不同按钮;key:用户userId;value:用户数据变量) */ - privateData?: unknown; - userIdType?: number; - cardOptions?: unknown; + privateData?: unknown + userIdType?: number + cardOptions?: unknown } export interface UpdateInteractiveCardResponse { - success?: string; + success?: string } export interface SendInteractiveCardParams { /** 互动卡片的消息模板ID: */ - cardTemplateId: string; + cardTemplateId: string /** 群ID: */ - openConversationId?: string; + openConversationId?: string /** 接收人userId列表。 */ - receiverUserIdList?: string[]; + receiverUserIdList?: string[] /** 唯一标示卡片的外部编码。 */ - outTrackId: string; + outTrackId: string /** 机器人的编码。 */ - robotCode?: string; + robotCode?: string /** 发送的会话类型: */ - conversationType: number; + conversationType: number /** 卡片回调时的路由Key,用于查询注册的**callbackUrl**。 */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 卡片公有数据。 */ - cardData: unknown; + cardData: unknown /** 卡片私有数据。 */ - privateData?: unknown; + privateData?: unknown /** 企业机器人ID,填写企业内部开发-机器人的AppKey。 */ - chatBotId?: string; + chatBotId?: string /** 用户ID类型: */ - userIdType?: number; + userIdType?: number /** 消息@人。格式:`{"key":"value"}`。 */ - atOpenIds?: unknown; + atOpenIds?: unknown /** 卡片操作。 */ - cardOptions?: unknown; + cardOptions?: unknown /** 是否开启卡片纯拉模式。 */ - pullStrategy?: unknown; + pullStrategy?: unknown } export interface SendInteractiveCardResponse { - success?: unknown; + success?: unknown result?: { - processQueryKey: string; - }; + processQueryKey: string + } } export interface UpdateRobotInteractiveCardParams { /** 唯一标识一张卡片的外部ID(卡片幂等ID,可用于更新或重复发送同一卡片到多个群会话)【备注:同一个outTrackId重复创建,卡片数据不覆盖更新】 */ - cardBizId: string; + cardBizId: string /** 卡片模板-文本内容参数(卡片json结构体) */ - cardData?: string; + cardData?: string /** 卡片模板-userId差异用户参数(json结构体) */ - userIdPrivateDataMap?: string; + userIdPrivateDataMap?: string /** 卡片模板-userId差异用户参数(json结构体) */ - unionIdPrivateDataMap?: string; + unionIdPrivateDataMap?: string /** 互动卡片更新选项 */ - updateOptions?: unknown; + updateOptions?: unknown } export interface UpdateRobotInteractiveCardResponse { - processQueryKey?: string; + processQueryKey?: string } export interface SendRobotInteractiveCardParams { /** 卡片搭建平台模板ID,固定值填写为StandardCard。 */ - cardTemplateId: string; + cardTemplateId: string /** 接收卡片的加密群ID,特指多人群会话(非单聊)。 */ - openConversationId?: string; + openConversationId?: string /** 单聊会话接收者json串。 */ - singleChatReceiver?: string; + singleChatReceiver?: string /** 唯一标识一张卡片的外部ID,卡片幂等ID,可用于更新或重复发送同一卡片到多个群会话。 */ - cardBizId: string; + cardBizId: string /** 机器人代码ID。 */ - robotCode: string; + robotCode: string /** 可控制卡片回调的URL,不填则无需回调。 */ - callbackUrl?: string; + callbackUrl?: string /** 卡片模板文本内容参数,卡片json结构体。 */ - cardData: string; + cardData: string /** 卡片模板userId差异用户参数,json结构体。 */ - userIdPrivateDataMap?: string; + userIdPrivateDataMap?: string /** 卡片模板unionId差异用户参数,json结构体。 */ - unionIdPrivateDataMap?: string; + unionIdPrivateDataMap?: string /** 互动卡片发送选项。 */ - sendOptions?: unknown; + sendOptions?: unknown /** 是否开启卡片纯拉模式。 */ - pullStrategy?: unknown; + pullStrategy?: unknown } export interface SendRobotInteractiveCardResponse { - processQueryKey?: string; + processQueryKey?: string } export interface ChatIdToOpenConversationIdResponse { - openConversationId: string; + openConversationId: string } export interface ChatSubAdminUpdateParams { /** 开放群ID。可以调用[创建群会话](https://open.dingtalk.com/document/orgapp-server/create-group-session)接口获取openConversationId参数值。 */ - openConversationId: string; + openConversationId: string /** 企业员工userid列表。可以调用[获取用户userid列表](https://open.dingtalk.com/document/orgapp-server/query-the-list-of-department-userids)接口获取userid_list参数值。 */ - userIds: string[]; + userIds: string[] /** 设置类型,取值: */ - role: number; + role: number } export interface ChatSubAdminUpdateResponse { - success: string; + success: string } export interface ImCreateGroupParams { /** 群名称,长度限制为1~64个字符。例如:客户群。 */ - groupName: string; + groupName: string /** 群头像地址,长度限制为1~1024个字符。例如:http://***.png。 */ - groupAvatar?: string; + groupAvatar?: string /** 群模板Id,来源自钉钉客联工作台,通过群模板可以为群配置群机器人、群工具栏、常用语、欢迎语。长度限制为1~32个字符。例如:8d42****nkld。 */ - groupTemplateId: string; + groupTemplateId: string /** 群成员信息。 */ - users: object[]; + users: object[] /** 操作者在业务系统内的唯一标识。 */ - operatorId?: string; + operatorId?: string } export interface ImCreateGroupResponse { - openConversationId?: string; - conversationId?: string; - appUserIds?: string[]; - userIds?: string[]; + openConversationId?: string + conversationId?: string + appUserIds?: string[] + userIds?: string[] } export interface CreateCoupleGroupParams { /** 群模板Id,来源自钉钉客联工作台,通过群模板可以为群配置群机器人、群工具栏、常用语、欢迎语。长度限制为1~32个字符。例如:8d42****nkld。 */ - groupTemplateId: string; + groupTemplateId: string /** 群成员信息。 */ - users?: object[]; + users?: object[] /** 操作者在业务系统内的唯一标识。 */ - operatorId?: string; + operatorId?: string } export interface CreateCoupleGroupResponse { - openConversationId?: string; - conversationId?: string; - appUserIds?: string[]; - userIds?: string[]; + openConversationId?: string + conversationId?: string + appUserIds?: string[] + userIds?: string[] } export interface ChangeGroupOwnerParams { /** 群会话openConversationId。 */ - openConversationId: string; + openConversationId: string /** 群主Id。 */ - groupOwnerId: string; + groupOwnerId: string /** 群主类型,取值: */ - groupOwnerType: number; + groupOwnerType: number } export interface ChangeGroupOwnerResponse { - newGroupOwnerId?: string; - newGroupOwnerType?: number; + newGroupOwnerId?: string + newGroupOwnerType?: number } export interface DismissGroupConversationParams { /** 需要被解散的群会话openConversationId。 */ - openConversationId: string; + openConversationId: string } export interface DismissGroupConversationResponse { - openConversationId?: string; + openConversationId?: string } export interface SendRobotMessageParams { /** 群会话openConversationId,长度限制为1~32个字符。 */ - openConversationIds: string[]; + openConversationIds: string[] /** 机器人robotId(robotCode),指定哪个机器人发送消息,获取来源:在客联应用的机器人管理中获取robotCode。 */ - robotCode?: string; + robotCode?: string /** 消息类型,取值: */ - msgType: string; + msgType: string /** 消息体内容,请参考本文消息格式说明。 */ - msgContent: string; + msgContent: string /** 钉内账号userId,长度限制为1~64个字符,例如:1745****8777。 */ - atDingUserId?: string; + atDingUserId?: string /** 钉外账号在业务系统内的唯一标志,长度限制为1~64个字符,例如:1107****2120。 */ - atAppUserId?: string; + atAppUserId?: string /** 是否@群所有人: */ - atAll?: unknown; + atAll?: unknown } export interface SendRobotMessageResponse { - success?: unknown; + success?: unknown } export interface CreateStoreGroupConversationParams { /** 群名称。 */ - groupName: string; + groupName: string /** 群头像。 */ - groupAvatar?: string; + groupAvatar?: string /** 群模板Id。 */ - groupTemplateId: string; + groupTemplateId: string /** 钉外用户在业务系统内的标识。 */ - appUserId: string; + appUserId: string /** 外部业务唯一标识(店铺唯一标识)。 */ - businessUniqueKey: string; + businessUniqueKey: string /** 钉内用户userId。 */ - userIds?: string[]; + userIds?: string[] /** 操作者在业务系统内的唯一标识。 */ - operatorId: string; + operatorId: string } export interface CreateStoreGroupConversationResponse { - openConversationId: string; - conversationId: string; + openConversationId: string + conversationId: string } export interface CreateCoupleGroupConversationParams { /** 群名称。 */ - groupName: string; + groupName: string /** 群头像链接地址。 */ - groupAvatar?: string; + groupAvatar?: string /** 群模板Id。 */ - groupTemplateId: string; + groupTemplateId: string /** 群主在业务系统内的标识。 */ - groupOwnerId: string; + groupOwnerId: string /** 钉外用户在业务系统内的标识。 */ - appUserId: string; + appUserId: string /** 操作者在业务系统内的唯一标识。 */ - operatorId: string; + operatorId: string } export interface CreateCoupleGroupConversationResponse { - openConversationId: string; - conversationId: string; + openConversationId: string + conversationId: string } export interface UpdateGroupNameParams { /** 需要修改名称的群会话openConversationId。 */ - openConversationId: string; + openConversationId: string /** 新的群名称。 */ - groupName: string; + groupName: string } export interface UpdateGroupNameResponse { - newGroupName?: string; + newGroupName?: string } export interface UpdateGroupAvatarParams { /** 需要更新群头像的群会话openConversationId。 */ - openConversationId: string; + openConversationId: string /** 新的群头像地址。 */ - groupAvatar: string; + groupAvatar: string } export interface UpdateGroupAvatarResponse { - newGroupAvatar: string; + newGroupAvatar: string } export interface QuerySingleGroupParams { /** 群模版Id。 */ - groupTemplateId: string; + groupTemplateId: string /** 群成员列表,最大值20。 */ - groupMembers: object[]; + groupMembers: object[] } export interface QuerySingleGroupResponse { openConversations: { - openConversationId?: string; - appUserId: string; - userId: string; - }[]; + openConversationId?: string + appUserId: string + userId: string + }[] } export interface QueryGroupMemberQuery { /** 群会话openConversationId。 */ - openConversationId: string; + openConversationId: string } export interface QueryGroupMemberResponse { - openConversationId: string; + openConversationId: string groupMembers: { - groupMemberId?: string; - groupMemberName: string; - groupMemberType: number; - groupMemberAvatar?: string; - groupMemberDynamics?: string; - }[]; + groupMemberId?: string + groupMemberName: string + groupMemberType: number + groupMemberAvatar?: string + groupMemberDynamics?: string + }[] } export interface QueryUnReadMessageParams { /** 钉外用户在业务系统内的标识。 */ - appUserId: string; + appUserId: string /** 群会话openConversationIds列表,最大值100。 */ - openConversationIds?: string[]; + openConversationIds?: string[] } export interface QueryUnReadMessageResponse { - unReadCount: number; + unReadCount: number unReadItems?: { - openConversationId?: string; - unReadCount?: number; - }[]; + openConversationId?: string + unReadCount?: number + }[] } export interface SendMessageParams { /** 钉外用户在业务系统内的标识,长度限制为1~64个字符。 */ - senderId: string; + senderId: string /** 钉内用户userId。 */ - receiverId?: string; + receiverId?: string /** 群会话openConversationId。 */ - openConversationId?: string; + openConversationId?: string /** 消息类型,取值: */ - messageType: string; + messageType: string /** 消息内容。 */ - message: string; + message: string /** 渠道信息。 */ - sourceInfos?: unknown; + sourceInfos?: unknown } export interface SendMessageResponse { - requestId: string; + requestId: string } export interface RemoveGroupMemberParams { /** 群会话openConversationId。 */ - openConversationId: string; + openConversationId: string /** 需要被移除的钉外用户在业务系统内的标识列表。 */ - appUserIds?: string[]; + appUserIds?: string[] /** 需要被移除的钉内用户的userId列表。 */ - userIds?: string[]; + userIds?: string[] /** 操作者在业务系统内的唯一标识。 */ - operatorId: string; + operatorId: string } export interface RemoveGroupMemberResponse { - message: string; + message: string } export interface AddGroupMemberParams { /** 群会话openConversationId。 */ - openConversationId: string; + openConversationId: string /** 钉外用户在业务系统内的标识列表。 */ - appUserIds?: string[]; + appUserIds?: string[] /** 钉内用户userId。 */ - userIds?: string[]; + userIds?: string[] /** 操作者在业务系统内的唯一标识。 */ - operatorId: string; + operatorId: string } export interface AddGroupMemberResponse { - appUserIds: string[]; - userIds: string[]; + appUserIds: string[] + userIds: string[] } export interface CreateGroupConversationParams { /** 群名称。 */ - groupName: string; + groupName: string /** 群头像。 */ - groupAvatar?: string; + groupAvatar?: string /** 群模板Id。 */ - groupTemplateId: string; + groupTemplateId: string /** 群主在业务系统内的唯一标识。 */ - groupOwnerId: string; + groupOwnerId: string /** 群主类型,取值: */ - groupOwnerType?: number; + groupOwnerType?: number /** 钉外用户ID列表。 */ - appUserIds?: string[]; + appUserIds?: string[] /** 钉内用户userId列表。 */ - userIds?: string[]; + userIds?: string[] /** 操作者在业务系统内的唯一标识。 */ - operatorId: string; + operatorId: string } export interface CreateGroupConversationResponse { - openConversationId: string; - conversationId: string; - appUserIds: string[]; - userIds: string[]; + openConversationId: string + conversationId: string + appUserIds: string[] + userIds: string[] } export interface SendDingMessageParams { /** 消息发送者userId,即钉内用户userId。 */ - senderId: string; + senderId: string /** 钉外用户在业务系统内的唯一标识。 */ - receiverId?: string; + receiverId?: string /** 群会话openConversationId。 */ - openConversationId?: string; + openConversationId?: string /** 消息类型,取值: */ - messageType: string; + messageType: string /** 消息内容。 */ - message: string; + message: string /** 发送者在钉钉客联应用内的个人授权码。 */ - code: string; + code: string } export interface SendDingMessageResponse { - requestId: string; + requestId: string } export interface GetConversationUrlParams { /** 钉外用户在业务系统内的标识,长度限制为1~64个字符。 */ - appUserId: string; + appUserId: string /** 钉内用户userId。 */ - userId?: string; + userId?: string /** 群会话openConversationId。 */ - openConversationId?: string; + openConversationId?: string /** 渠道code。 */ - channelCode: string; + channelCode: string /** 钉外用户设备信息,用于安全性校验,自定义参数。 */ - sourceCode: string; + sourceCode: string } export interface GetConversationUrlResponse { - url: string; + url: string } export interface CreateInterconnectionParams { /** 钉内用户与钉外用户关系。 */ - interconnections: object[]; + interconnections: object[] } export interface CreateInterconnectionResponse { results?: { - appUserId?: string; - userId?: string; - message?: string; - }[]; + appUserId?: string + userId?: string + message?: string + }[] } export interface SendOTOInteractiveCardParams { /** 卡片模板ID,可通过[卡片平台](https://open-dev.dingtalk.com/fe/card)创建消息卡片,参见[创建消息模板](https://open.dingtalk.com/document/orgapp/create-message-template)。 */ - cardTemplateId: string; + cardTemplateId: string /** 会话ID。 */ - openConversationId?: string; + openConversationId?: string /** 用户ID列表。 */ - receiverUserIdList?: string[]; + receiverUserIdList?: string[] /** 唯一标示卡片的外部编码。 */ - outTrackId: string; + outTrackId: string /** 机器人编码。 */ - robotCode?: string; + robotCode?: string /** 卡片回调时的路由Key,用于查询注册的callbackUrl。 */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 卡片模板内容。 */ - cardData: unknown; + cardData: unknown /** 指定用户可见的按钮列表: */ - privateData?: unknown; + privateData?: unknown /** 用户ID类型: */ - userIdType?: number; + userIdType?: number /** 消息@人。格式:`{"key":"value"}`。 */ - atOpenIds?: unknown; + atOpenIds?: unknown /** 卡片属性。 */ - cardOptions?: unknown; + cardOptions?: unknown /** 是否开启卡片纯拉模式: */ - pullStrategy?: unknown; + pullStrategy?: unknown } export interface SendOTOInteractiveCardResponse { - success?: unknown; + success?: unknown result?: { - processQueryKey: string; - }; + processQueryKey: string + } } export interface CloseTopboxParams { /** 唯一标识一张卡片的外部ID,最大长度64。 */ - outTrackId: string; + outTrackId: string /** 会话类型: */ - conversationType: number; + conversationType: number /** 会话id: */ - openConversationId?: string; + openConversationId?: string /** 用户userId: */ - userId?: string; + userId?: string /** 用户unionId: */ - unoinId?: string; + unoinId?: string /** 机器人编码: */ - robotCode?: string; + robotCode?: string /** 酷应用编码: */ - coolAppCode?: string; + coolAppCode?: string /** 群模板id: */ - groupTemplateId?: string; + groupTemplateId?: string } export interface CloseTopboxResponse { - success?: unknown; + success?: unknown } export interface CreateTopboxParams { /** 互动卡片的消息模板ID,详情参见[创建消息模板](https://open.dingtalk.com/document/group/create-message-template)后可获取模板ID。 */ - cardTemplateId: string; + cardTemplateId: string /** 唯一标识一张卡片的外部ID,最大长度64。 */ - outTrackId: string; + outTrackId: string /** 可控制卡片回调时的路由Key,用于指定特定的callbackUrl,调用[注册互动卡片回调地址](https://open.dingtalk.com/document/group/registration-card-interaction-callback-address-1)接口,获取参数callbackRouteKey。 */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 卡片数据。 */ - cardData: unknown; + cardData: unknown /** 卡片模板userId差异用户参数。 */ - userIdPrivateDataMap?: unknown; + userIdPrivateDataMap?: unknown /** 卡片模板unionId差异用户参数。 */ - unionIdPrivateDataMap?: unknown; + unionIdPrivateDataMap?: unknown /** 卡片设置项。 */ - cardSettings?: unknown; + cardSettings?: unknown /** 会话类型: */ - conversationType: number; + conversationType: number /** 会话id: */ - openConversationId?: string; + openConversationId?: string /** 用户userId: */ - userId?: string; + userId?: string /** 用户unionId: */ - unoinId?: string; + unoinId?: string /** 机器人编码: */ - robotCode?: string; + robotCode?: string /** 酷应用编码: */ - coolAppCode?: string; + coolAppCode?: string /** 群模板id: */ - groupTemplateId?: string; + groupTemplateId?: string /** 吊顶可见者userId,最多可传100个userId: */ - receiverUserIdList?: string[]; + receiverUserIdList?: string[] /** 吊顶可见者unionId,最多可传100个unionId: */ - receiverUnionIdList?: string[]; + receiverUnionIdList?: string[] /** 吊顶的过期时间,毫秒级时间戳。 */ - expiredTime?: number; + expiredTime?: number /** 期望吊顶的端,如果有多个用“|”分隔。 例如:ios|mac|android|win表示iOS、MAC、安卓和windows端。 */ - platforms?: string; + platforms?: string } export interface CreateTopboxResponse { - success?: unknown; + success?: unknown } // funcName: isOldApi Internal.define({ - "/im/sceneGroups/templates/robots": { + '/im/sceneGroups/templates/robots': { GET: { querySceneGroupTemplateRobot: false }, }, - "/im/sceneGroups/members/batchQuery": { + '/im/sceneGroups/members/batchQuery': { POST: { batchQueryGroupMember: false }, }, - "/im/sceneGroups/muteSettings": { GET: { queryGroupMuteStatus: false } }, - "/im/sceneGroups/muteMembers/set": { POST: { updateMemberBanWords: false } }, - "/im/sceneGroups/query": { POST: { getSceneGroupInfo: false } }, - "/im/sceneGroups/subAdmins": { PUT: { updateGroupSubAdmin: false } }, - "/im/sceneGroups/members/groupNicks": { + '/im/sceneGroups/muteSettings': { GET: { queryGroupMuteStatus: false } }, + '/im/sceneGroups/muteMembers/set': { POST: { updateMemberBanWords: false } }, + '/im/sceneGroups/query': { POST: { getSceneGroupInfo: false } }, + '/im/sceneGroups/subAdmins': { PUT: { updateGroupSubAdmin: false } }, + '/im/sceneGroups/members/groupNicks': { PUT: { updateMemberGroupNick: false }, }, - "/im/interactiveCards/templates/send": { + '/im/interactiveCards/templates/send': { POST: { sendTemplateInteractiveCard: false }, }, - "/im/interactiveCards": { PUT: { updateInteractiveCard: false } }, - "/im/interactiveCards/send": { POST: { sendInteractiveCard: false } }, - "/im/robots/interactiveCards": { PUT: { updateRobotInteractiveCard: false } }, - "/im/v1.0/robot/interactiveCards/send": { + '/im/interactiveCards': { PUT: { updateInteractiveCard: false } }, + '/im/interactiveCards/send': { POST: { sendInteractiveCard: false } }, + '/im/robots/interactiveCards': { PUT: { updateRobotInteractiveCard: false } }, + '/im/v1.0/robot/interactiveCards/send': { POST: { sendRobotInteractiveCard: false }, }, - "/im/chat/{chatId}/convertToOpenConversationId": { + '/im/chat/{chatId}/convertToOpenConversationId': { POST: { chatIdToOpenConversationId: false }, }, - "/im/subAdministrators": { POST: { chatSubAdminUpdate: false } }, - "/im/interconnections/groups": { POST: { createGroupConversation: false } }, - "/im/interconnections/couples/groups": { POST: { createCoupleGroup: false } }, - "/im/interconnections/groups/owners": { PUT: { changeGroupOwner: false } }, - "/im/interconnections/groups/dismiss": { + '/im/subAdministrators': { POST: { chatSubAdminUpdate: false } }, + '/im/interconnections/groups': { POST: { createGroupConversation: false } }, + '/im/interconnections/couples/groups': { POST: { createCoupleGroup: false } }, + '/im/interconnections/groups/owners': { PUT: { changeGroupOwner: false } }, + '/im/interconnections/groups/dismiss': { POST: { dismissGroupConversation: false }, }, - "/im/interconnections/robotMessages/send": { + '/im/interconnections/robotMessages/send': { POST: { sendRobotMessage: false }, }, - "/im/interconnections/storeGroups": { + '/im/interconnections/storeGroups': { POST: { createStoreGroupConversation: false }, }, - "/im/interconnections/coupleGroups": { + '/im/interconnections/coupleGroups': { POST: { createCoupleGroupConversation: false }, }, - "/im/interconnections/groups/names": { PUT: { updateGroupName: false } }, - "/im/interconnections/groups/avatars": { PUT: { updateGroupAvatar: false } }, - "/im/interconnections/doubleGroups/query": { + '/im/interconnections/groups/names': { PUT: { updateGroupName: false } }, + '/im/interconnections/groups/avatars': { PUT: { updateGroupAvatar: false } }, + '/im/interconnections/doubleGroups/query': { POST: { querySingleGroup: false }, }, - "/im/interconnections/conversations/members": { + '/im/interconnections/conversations/members': { GET: { queryGroupMember: false }, }, - "/im/interconnections/unReadMsgs/query": { + '/im/interconnections/unReadMsgs/query': { POST: { queryUnReadMessage: false }, }, - "/im/interconnections/messages/send": { POST: { sendMessage: false } }, - "/im/interconnections/groups/members/remove": { + '/im/interconnections/messages/send': { POST: { sendMessage: false } }, + '/im/interconnections/groups/members/remove': { POST: { removeGroupMember: false }, }, - "/im/interconnections/groups/members": { POST: { addGroupMember: false } }, - "/im/interconnections/dingMessages/send": { + '/im/interconnections/groups/members': { POST: { addGroupMember: false } }, + '/im/interconnections/dingMessages/send': { POST: { sendDingMessage: false }, }, - "/im/conversations/urls": { POST: { getConversationUrl: false } }, - "/im/interconnections": { POST: { createInterconnection: false } }, - "/im/privateChat/interactiveCards/send": { + '/im/conversations/urls': { POST: { getConversationUrl: false } }, + '/im/interconnections': { POST: { createInterconnection: false } }, + '/im/privateChat/interactiveCards/send': { POST: { sendOTOInteractiveCard: false }, }, - "/im/topBoxes/close": { POST: { closeTopbox: false } }, - "/im/topBoxes": { POST: { createTopbox: false } }, -}); -declare module "../internal" { + '/im/topBoxes/close': { POST: { closeTopbox: false } }, + '/im/topBoxes': { POST: { createTopbox: false } }, +}) +declare module '../internal' { interface Internal { /** * 查询群内群模板机器人 @@ -737,241 +737,241 @@ declare module "../internal" { */ querySceneGroupTemplateRobot( query: QuerySceneGroupTemplateRobotQuery, - ): Promise; + ): Promise /** * 查询群成员 * @see https://developers.dingtalk.com/document/orgapp/query-group-members */ batchQueryGroupMember( params: BatchQueryGroupMemberParams, - ): Promise; + ): Promise /** * 查询群禁言状态 * @see https://developers.dingtalk.com/document/orgapp/query-group-silence-status */ queryGroupMuteStatus( query: QueryGroupMuteStatusQuery, - ): Promise; + ): Promise /** * 设置群成员禁言状态 * @see https://developers.dingtalk.com/document/orgapp/set-group-members-access-control */ - updateMemberBanWords(params: UpdateMemberBanWordsParams): Promise; + updateMemberBanWords(params: UpdateMemberBanWordsParams): Promise /** * 查询群简要信息 * @see https://developers.dingtalk.com/document/isvapp/query-group-brief-information */ getSceneGroupInfo( params: GetSceneGroupInfoParams, - ): Promise; + ): Promise /** * 更新群管理员 * @see https://developers.dingtalk.com/document/isvapp/update-group-administrator */ updateGroupSubAdmin( params: UpdateGroupSubAdminParams, - ): Promise; + ): Promise /** * 更新群成员的群昵称 * @see https://developers.dingtalk.com/document/isvapp/update-group-nicknames-for-group-members */ updateMemberGroupNick( params: UpdateMemberGroupNickParams, - ): Promise; + ): Promise /** * 发送模板响应式可交互式卡片 * @see https://developers.dingtalk.com/document/orgapp/send-lightweight-interactive-cards */ sendTemplateInteractiveCard( params: SendTemplateInteractiveCardParams, - ): Promise; + ): Promise /** * 更新钉钉互动卡片 * @see https://developers.dingtalk.com/document/orgapp/update-dingtalk-interactive-cards-1 */ updateInteractiveCard( params: UpdateInteractiveCardParams, - ): Promise; + ): Promise /** * 发送可交互式动态卡片 * @see https://developers.dingtalk.com/document/orgapp/send-interactive-dynamic-cards-1 */ sendInteractiveCard( params: SendInteractiveCardParams, - ): Promise; + ): Promise /** * 更新机器人发送互动卡片 * @see https://developers.dingtalk.com/document/orgapp/update-the-robot-to-send-interactive-cards */ updateRobotInteractiveCard( params: UpdateRobotInteractiveCardParams, - ): Promise; + ): Promise /** * 机器人发送互动卡片(普通版) * @see https://developers.dingtalk.com/document/orgapp/robots-send-interactive-cards */ sendRobotInteractiveCard( params: SendRobotInteractiveCardParams, - ): Promise; + ): Promise /** * 获取群会话的OpenConversationId * @see https://developers.dingtalk.com/document/orgapp/obtain-group-openconversationid */ chatIdToOpenConversationId( chatId: string, - ): Promise; + ): Promise /** * 设置群管理员 * @see https://developers.dingtalk.com/document/orgapp/batch-setup-group-administrator */ chatSubAdminUpdate( params: ChatSubAdminUpdateParams, - ): Promise; + ): Promise /** * 创建普通群 * @see https://developers.dingtalk.com/document/app/create-common-group-new-version */ - imCreateGroup(params: ImCreateGroupParams): Promise; + imCreateGroup(params: ImCreateGroupParams): Promise /** * 创建两人群 * @see https://developers.dingtalk.com/document/app/creating-two-groups-of-people */ createCoupleGroup( params: CreateCoupleGroupParams, - ): Promise; + ): Promise /** * 更换群主 * @see https://developers.dingtalk.com/document/isvapp/change-group-owner */ changeGroupOwner( params: ChangeGroupOwnerParams, - ): Promise; + ): Promise /** * 解散互通群 * @see https://developers.dingtalk.com/document/isvapp/disband-bc-interconnection-group */ dismissGroupConversation( params: DismissGroupConversationParams, - ): Promise; + ): Promise /** * 机器人发送消息 * @see https://developers.dingtalk.com/document/app/group-robots-send-messages */ sendRobotMessage( params: SendRobotMessageParams, - ): Promise; + ): Promise /** * 创建店铺群 * @see https://developers.dingtalk.com/document/isvapp/create-a-store-group */ createStoreGroupConversation( params: CreateStoreGroupConversationParams, - ): Promise; + ): Promise /** * 创建钉外两人群 * @see https://developers.dingtalk.com/document/isvapp/create-two-people-outside-the-nail */ createCoupleGroupConversation( params: CreateCoupleGroupConversationParams, - ): Promise; + ): Promise /** * 修改群名称 * @see https://developers.dingtalk.com/document/isvapp/modify-the-group-name */ updateGroupName( params: UpdateGroupNameParams, - ): Promise; + ): Promise /** * 修改群头像 * @see https://developers.dingtalk.com/document/isvapp/modify-the-avatar-of-a-communication-group */ updateGroupAvatar( params: UpdateGroupAvatarParams, - ): Promise; + ): Promise /** * 批量查询群信息 * @see https://developers.dingtalk.com/document/isvapp/batch-query-cross-nail-two-group-list */ querySingleGroup( params: QuerySingleGroupParams, - ): Promise; + ): Promise /** * 查询群成员列表 * @see https://developers.dingtalk.com/document/isvapp/query-the-group-member-list */ queryGroupMember( query: QueryGroupMemberQuery, - ): Promise; + ): Promise /** * 批量查询未读消息数 * @see https://developers.dingtalk.com/document/isvapp/query-the-number-of-unread-messages-for-users-outside-of */ queryUnReadMessage( params: QueryUnReadMessageParams, - ): Promise; + ): Promise /** * 发送ToB消息 * @see https://developers.dingtalk.com/document/isvapp/a-user-outside-the-dingtalk-sends-a-message-to-the */ - sendMessage(params: SendMessageParams): Promise; + sendMessage(params: SendMessageParams): Promise /** * 移除群成员 * @see https://developers.dingtalk.com/document/isvapp/remove-a-connected-group-member */ removeGroupMember( params: RemoveGroupMemberParams, - ): Promise; + ): Promise /** * 添加群成员 * @see https://developers.dingtalk.com/document/isvapp/add-group-members */ addGroupMember( params: AddGroupMemberParams, - ): Promise; + ): Promise /** * 创建互通群(支持普通互通群、跨钉两人群) * @see https://developers.dingtalk.com/document/isvapp/create-a-common-group-or-cross-nail-group */ createGroupConversation( params: CreateGroupConversationParams, - ): Promise; + ): Promise /** * 发送ToC消息 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-users-send-messages-to-the-group-or-dingtalk-users */ sendDingMessage( params: SendDingMessageParams, - ): Promise; + ): Promise /** * 创建ToB会话地址 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-session-address */ getConversationUrl( params: GetConversationUrlParams, - ): Promise; + ): Promise /** * 创建钉外账号 * @see https://developers.dingtalk.com/document/isvapp/create-bc-account-association */ createInterconnection( params: CreateInterconnectionParams, - ): Promise; + ): Promise /** * 人与人会话中机器人发送互动卡片 * @see https://developers.dingtalk.com/document/orgapp/send-dingtalk-interactive-cards-to-person-to-person-chat-sessions */ sendOTOInteractiveCard( params: SendOTOInteractiveCardParams, - ): Promise; + ): Promise /** * 关闭互动卡片吊顶 * @see https://developers.dingtalk.com/document/orgapp/close-interactive-card-ceiling */ - closeTopbox(params: CloseTopboxParams): Promise; + closeTopbox(params: CloseTopboxParams): Promise /** * 创建并开启互动卡片吊顶 * @see https://developers.dingtalk.com/document/orgapp/create-and-open-an-interactive-card-ceiling */ - createTopbox(params: CreateTopboxParams): Promise; + createTopbox(params: CreateTopboxParams): Promise } } diff --git a/adapters/dingtalk/src/api/industry.ts b/adapters/dingtalk/src/api/industry.ts index 3063f280..c8f97e67 100644 --- a/adapters/dingtalk/src/api/industry.ts +++ b/adapters/dingtalk/src/api/industry.ts @@ -1,117 +1,117 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface CampusGetCampusQuery { /** 园区项目的部门ID。 */ - campusDeptId: number; + campusDeptId: number } export interface CampusGetCampusResponse { - campusName?: string; - campusCorpId?: string; - campusDeptId?: number; - belongProjectGroupId?: string; - telephone?: string; - description?: string; - area?: unknown; - country?: string; - provId?: number; - cityId?: number; - countyId?: number; - address?: string; - location?: string; - capacity?: string; - orderStartTime?: number; - orderEndTime?: number; - orderInfo?: string; - extend?: string; + campusName?: string + campusCorpId?: string + campusDeptId?: number + belongProjectGroupId?: string + telephone?: string + description?: string + area?: unknown + country?: string + provId?: number + cityId?: number + countyId?: number + address?: string + location?: string + capacity?: string + orderStartTime?: number + orderEndTime?: number + orderInfo?: string + extend?: string } export interface CampusGetCampusGroupQuery { /** 项目组ID。 */ - groupId: number; + groupId: number } export interface CampusGetCampusGroupResponse { - projectGroupName?: string; - extend?: string; + projectGroupName?: string + extend?: string } export interface CampusCreateCampusParams { /** 园区项目的名称。 */ - campusName: string; + campusName: string /** 归属的项目组ID。 */ - belongProjectGroupId?: number; + belongProjectGroupId?: number /** 联系电话。 */ - telephone?: string; + telephone?: string /** 园区项目的描述。 */ - description?: string; + description?: string /** 园区项目面积。 */ - area?: unknown; + area?: unknown /** 园区所在国家。 */ - country?: string; + country?: string /** 园区所在省行政编码。 */ - provId?: number; + provId?: number /** 园区所在市行政编码。 */ - cityId?: number; + cityId?: number /** 园区所在区/县行政编码。 */ - countyId?: number; + countyId?: number /** 园区所在详细地址信息。 */ - address?: string; + address?: string /** 园区容量。 */ - capacity?: number; + capacity?: number /** 项目订购开始时间戳,单位毫秒。 */ - orderStartTime?: number; + orderStartTime?: number /** 项目订购结束时间戳,单位毫秒。 */ - orderEndTime?: number; + orderEndTime?: number /** 订单信息。 */ - orderInfo?: string; + orderInfo?: string /** 扩展字段。 */ - extend?: string; + extend?: string /** 创建人的unionId。 */ - creatorUnionId: string; + creatorUnionId: string /** 经纬度,格式为:经度,维度。 */ - location?: string; + location?: string } export interface CampusCreateCampusResponse { - campusCorpId?: string; - campusDeptId?: string; + campusCorpId?: string + campusDeptId?: string } export interface CampusCreateCampusGroupParams { /** 项目组名称。 */ - name: string; + name: string /** 扩展信息。 */ - extend?: string; + extend?: string } export interface CampusCreateCampusGroupResponse { - groupId?: number; + groupId?: number } export interface CampusDeleteCampusGroupQuery { /** 项目组ID。 */ - campusProjectGroupId: number; + campusProjectGroupId: number } export interface CampusDeleteCampusGroupResponse { - success?: unknown; + success?: unknown } // funcName: isOldApi Internal.define({ - "/industry/campuses/projectInfos": { GET: { campusGetCampus: false } }, - "/industry/campuses/projects/groupInfos": { + '/industry/campuses/projectInfos': { GET: { campusGetCampus: false } }, + '/industry/campuses/projects/groupInfos': { GET: { campusGetCampusGroup: false }, }, - "/industry/campuses/projects": { POST: { campusCreateCampus: false } }, - "/industry/campuses/projects/groups": { + '/industry/campuses/projects': { POST: { campusCreateCampus: false } }, + '/industry/campuses/projects/groups': { POST: { campusCreateCampusGroup: false }, DELETE: { campusDeleteCampusGroup: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询园区项目详情 @@ -119,34 +119,34 @@ declare module "../internal" { */ campusGetCampus( query: CampusGetCampusQuery, - ): Promise; + ): Promise /** * 查询项目组信息 * @see https://developers.dingtalk.com/document/isvapp/query-a-project-group-in-the-specified-park */ campusGetCampusGroup( query: CampusGetCampusGroupQuery, - ): Promise; + ): Promise /** * 创建园区项目 * @see https://developers.dingtalk.com/document/isvapp/create-a-campus-project */ campusCreateCampus( params: CampusCreateCampusParams, - ): Promise; + ): Promise /** * 创建项目组 * @see https://developers.dingtalk.com/document/isvapp/create-a-project-group */ campusCreateCampusGroup( params: CampusCreateCampusGroupParams, - ): Promise; + ): Promise /** * 删除项目组 * @see https://developers.dingtalk.com/document/isvapp/delete-a-project-group */ campusDeleteCampusGroup( query: CampusDeleteCampusGroupQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/jzcrm.ts b/adapters/dingtalk/src/api/jzcrm.ts index 70c14321..5db755c8 100644 --- a/adapters/dingtalk/src/api/jzcrm.ts +++ b/adapters/dingtalk/src/api/jzcrm.ts @@ -1,303 +1,303 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface EditContactParams { /** 数据类型,固定值**197**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditContactResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditCustomerPoolParams { /** 数据类型,固定值**238**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditCustomerPoolResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditExchangeParams { /** 数据类型,固定值**228**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditExchangeResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditGoodsParams { /** 数据类型,固定值**154**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditGoodsResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditOutstockParams { /** 数据类型,固定值**191**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditOutstockResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditIntostockParams { /** 数据类型,固定值**189**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditIntostockResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditProductionParams { /** 数据类型,固定值**156**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditProductionResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditPurchaseParams { /** 数据类型,固定值**153**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditPurchaseResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditOrderParams { /** 数据类型,固定填写**150**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditOrderResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditInvoiceParams { /** 数据类型,固定值**169**。 */ - datatype: number; + datatype: number /** 时间戳。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditInvoiceResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface EditCustomerParams { /** 数据类型,固定值**148**。 */ - datatype: number; + datatype: number /** 时间戳,单位:秒。 */ - stamp: number; + stamp: number /** 数据ID。 */ - msgid?: number; + msgid?: number /** 编辑数据。 */ - data?: unknown; + data?: unknown } export interface EditCustomerResponse { - time: string; - msgid: number; + time: string + msgid: number } export interface GetDataViewQuery { /** 数据类型。 */ - datatype: string; + datatype: string /** 数据ID。 */ - msgid: number; + msgid: number } export interface GetDataViewResponse { data: { - detail: number; - }; - dataname: unknown; - time: string; + detail: number + } + dataname: unknown + time: string } export interface GetDataListQuery { /** 数据类型。 */ - datatype: string; + datatype: string /** 页码。 */ - page: number; + page: number /** 分页条数。 */ - pagesize: number; + pagesize: number } export interface GetDataListResponse { data: { - detail: number; - }[]; - dataname: unknown; - page: number; - pageSize: number; - totalCount: number; - time: string; + detail: number + }[] + dataname: unknown + page: number + pageSize: number + totalCount: number + time: string } // funcName: isOldApi Internal.define({ - "/jzcrm/contacts": { POST: { editContact: false } }, - "/jzcrm/customerPools": { POST: { editCustomerPool: false } }, - "/jzcrm/exchanges": { POST: { editExchange: false } }, - "/jzcrm/goods": { POST: { editGoods: false } }, - "/jzcrm/outstocks": { POST: { editOutstock: false } }, - "/jzcrm/intostocks": { POST: { editIntostock: false } }, - "/jzcrm/productions": { POST: { editProduction: false } }, - "/jzcrm/purchases": { POST: { editPurchase: false } }, - "/jzcrm/orders": { POST: { editOrder: false } }, - "/jzcrm/invoices": { POST: { editInvoice: false } }, - "/jzcrm/customers": { POST: { editCustomer: false } }, - "/jzcrm/dataView": { GET: { getDataView: false } }, - "/jzcrm/data": { GET: { getDataList: false } }, -}); -declare module "../internal" { + '/jzcrm/contacts': { POST: { editContact: false } }, + '/jzcrm/customerPools': { POST: { editCustomerPool: false } }, + '/jzcrm/exchanges': { POST: { editExchange: false } }, + '/jzcrm/goods': { POST: { editGoods: false } }, + '/jzcrm/outstocks': { POST: { editOutstock: false } }, + '/jzcrm/intostocks': { POST: { editIntostock: false } }, + '/jzcrm/productions': { POST: { editProduction: false } }, + '/jzcrm/purchases': { POST: { editPurchase: false } }, + '/jzcrm/orders': { POST: { editOrder: false } }, + '/jzcrm/invoices': { POST: { editInvoice: false } }, + '/jzcrm/customers': { POST: { editCustomer: false } }, + '/jzcrm/dataView': { GET: { getDataView: false } }, + '/jzcrm/data': { GET: { getDataList: false } }, +}) +declare module '../internal' { interface Internal { /** * 联系人 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-contacts */ - editContact(params: EditContactParams): Promise; + editContact(params: EditContactParams): Promise /** * 客户公共池 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-customer-public-pools */ editCustomerPool( params: EditCustomerPoolParams, - ): Promise; + ): Promise /** * 编辑销售换货单数据 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-a-sales-order */ - editExchange(params: EditExchangeParams): Promise; + editExchange(params: EditExchangeParams): Promise /** * 编辑产品数据 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-product-information */ - editGoods(params: EditGoodsParams): Promise; + editGoods(params: EditGoodsParams): Promise /** * 编辑出库单信息 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-an-issue-ticket */ - editOutstock(params: EditOutstockParams): Promise; + editOutstock(params: EditOutstockParams): Promise /** * 编辑入库单数据 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-a-shipment-record */ - editIntostock(params: EditIntostockParams): Promise; + editIntostock(params: EditIntostockParams): Promise /** * 生产单 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-a-production-order */ editProduction( params: EditProductionParams, - ): Promise; + ): Promise /** * 采购单 * @see https://developers.dingtalk.com/document/isvapp/edit-purchase-order */ - editPurchase(params: EditPurchaseParams): Promise; + editPurchase(params: EditPurchaseParams): Promise /** * 合同订单 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-contract-orders */ - editOrder(params: EditOrderParams): Promise; + editOrder(params: EditOrderParams): Promise /** * 发货单 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-invoices */ - editInvoice(params: EditInvoiceParams): Promise; + editInvoice(params: EditInvoiceParams): Promise /** * 客户资料 * @see https://developers.dingtalk.com/document/isvapp/add-or-edit-customer-profile */ - editCustomer(params: EditCustomerParams): Promise; + editCustomer(params: EditCustomerParams): Promise /** * 获取数据详情 * @see https://developers.dingtalk.com/document/isvapp/queries-data-details */ - getDataView(query: GetDataViewQuery): Promise; + getDataView(query: GetDataViewQuery): Promise /** * 获取数据列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-data-list */ - getDataList(query: GetDataListQuery): Promise; + getDataList(query: GetDataListQuery): Promise } } diff --git a/adapters/dingtalk/src/api/link.ts b/adapters/dingtalk/src/api/link.ts index 1f7d8752..db0df842 100644 --- a/adapters/dingtalk/src/api/link.ts +++ b/adapters/dingtalk/src/api/link.ts @@ -1,69 +1,69 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetUserFollowStatusQuery { /** 待查询的服务窗关注者userId。 */ - userId?: string; + userId?: string /** 待查询的服务窗关注者unionId。 */ - unionId?: string; + unionId?: string /** 服务窗帐号ID,可通过[服务窗帐号信息查询](https://open.dingtalk.com/document/orgapp/queries-the-list-of-services-under-an-enterprise)接口,获取返回参数`accountId`字段值。 */ - accountId?: string; + accountId?: string } export interface GetUserFollowStatusResponse { result: { - status?: string; - }; + status?: string + } } export interface ListAccountResponse { result?: { - accountId?: string; - accountName?: string; - }[]; + accountId?: string + accountName?: string + }[] } export interface ListFollowerQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页最大条目数,最大值100。 */ - maxResults?: number; + maxResults?: number /** 服务窗帐号ID,可调用[获取企业下服务窗列表](https://open.dingtalk.com/document/orgapp-server/queries-the-list-of-services-under-an-enterprise)接口获取accountId参数值。 */ - accountId?: string; + accountId?: string } export interface ListFollowerResponse { - requestId?: string; + requestId?: string result: { - nextToken?: string; - userList?: number; - }; + nextToken?: string + userList?: number + } } export interface GetFollowerInfoQuery { /** 关注服务窗用户的userId,可调用[批量获取关注服务窗用户信息](https://open.dingtalk.com/document/orgapp-server/obtains-the-follower-information-from-the-service-window)获得userId参数值。 */ - userId?: string; + userId?: string /** 关注服务窗用户的unionId,可通过[查询用户详情](https://open.dingtalk.com/document/orgapp-server/query-user-details)接口获取unionId参数值。 */ - unionId?: string; + unionId?: string /** 服务窗帐号ID,可调用[获取企业下服务窗列表](https://open.dingtalk.com/document/orgapp-server/queries-the-list-of-services-under-an-enterprise)接口获取accountId参数值。 */ - accountId?: string; + accountId?: string } export interface GetFollowerInfoResponse { - requestId?: string; + requestId?: string result: { - user?: number; - }; + user?: number + } } // funcName: isOldApi Internal.define({ - "/link/followers/statuses": { GET: { getUserFollowStatus: false } }, - "/link/accounts": { GET: { listAccount: false } }, - "/link/followers": { GET: { listFollower: false } }, - "/link/followers/infos": { GET: { getFollowerInfo: false } }, -}); -declare module "../internal" { + '/link/followers/statuses': { GET: { getUserFollowStatus: false } }, + '/link/accounts': { GET: { listAccount: false } }, + '/link/followers': { GET: { listFollower: false } }, + '/link/followers/infos': { GET: { getFollowerInfo: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取用户关注状态 @@ -71,23 +71,23 @@ declare module "../internal" { */ getUserFollowStatus( query: GetUserFollowStatusQuery, - ): Promise; + ): Promise /** * 获取企业下服务窗帐号列表 * @see https://developers.dingtalk.com/document/orgapp/queries-the-list-of-services-under-an-enterprise */ - listAccount(): Promise; + listAccount(): Promise /** * 批量获取关注服务窗用户信息 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-follower-information-from-the-service-window */ - listFollower(query: ListFollowerQuery): Promise; + listFollower(query: ListFollowerQuery): Promise /** * 获取服务窗关注人信息 * @see https://developers.dingtalk.com/document/orgapp/queries-the-follower-information-of-the-service-window */ getFollowerInfo( query: GetFollowerInfoQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/live.ts b/adapters/dingtalk/src/api/live.ts index ce12ad0f..039f1913 100644 --- a/adapters/dingtalk/src/api/live.ts +++ b/adapters/dingtalk/src/api/live.ts @@ -1,161 +1,161 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface DeleteLiveQuery { /** 直播ID。 */ - liveId: string; + liveId: string /** 用户unionId。 */ - unionId: string; + unionId: string } export interface DeleteLiveResponse { result?: { - success?: number; - }; + success?: number + } } export interface QueryLiveWatchUserListQuery { /** 直播ID。 */ - liveId: string; + liveId: string /** 用户unionId。 */ - unionId: string; + unionId: string /** 分页起始位置,从0开始。 */ - pageNumber?: number; + pageNumber?: number /** 分页大小。 */ - pageSize: number; + pageSize: number } export interface QueryLiveWatchUserListResponse { result?: { - orgUsesList?: number; - outOrgUserList?: number; - }; + orgUsesList?: number + outOrgUserList?: number + } } export interface QueryLiveWatchDetailQuery { /** 直播ID。 */ - liveId: string; + liveId: string /** 用户unionId。 */ - unionId: string; + unionId: string } export interface QueryLiveWatchDetailResponse { result?: { - pv?: number; - uv?: number; - liveUv?: number; - playbackUv?: number; - totalWatchTime?: number; - avgWatchTime?: number; - praiseCount?: number; - msgCount?: number; - }; + pv?: number + uv?: number + liveUv?: number + playbackUv?: number + totalWatchTime?: number + avgWatchTime?: number + praiseCount?: number + msgCount?: number + } } export interface UpdateLiveParams { /** 直播ID。 */ - liveId: string; + liveId: string /** 主播的unionId。 */ - unionId: string; + unionId: string /** 直播标题。 */ - title?: string; + title?: string /** 直播简介。 */ - introduction?: string; + introduction?: string /** 直播的封面地址。 */ - coverUrl?: string; + coverUrl?: string /** 直播的预计开播时间戳,单位毫秒。 */ - preStartTime?: number; + preStartTime?: number /** 直播的预计结束时间戳,单位毫秒。 */ - preEndTime?: number; + preEndTime?: number } export interface UpdateLiveResponse { result?: { - success?: number; - }; + success?: number + } } export interface CreateLiveParams { /** 发起直播的主播unionId。 */ - unionId: string; + unionId: string /** 直播标题。 */ - title: string; + title: string /** 直播简介。 */ - introduction?: string; + introduction?: string /** 预计开播时间戳,单位毫秒。 */ - preStartTime: number; + preStartTime: number /** 直播的封面地址。 */ - coverUrl?: string; + coverUrl?: string /** 预计结束时间戳,单位毫秒。 */ - preEndTime: number; - publicType?: number; + preEndTime: number + publicType?: number } export interface CreateLiveResponse { result?: { - liveId?: string; - }; + liveId?: string + } } export interface QueryLiveInfoQuery { /** 直播ID。 */ - liveId: string; + liveId: string /** 操作者的unionId。 */ - unionId: string; + unionId: string } export interface QueryLiveInfoResponse { result?: { - liveInfo?: number; - }; + liveInfo?: number + } } // funcName: isOldApi Internal.define({ - "/live/lives": { + '/live/lives': { DELETE: { deleteLive: false }, PUT: { updateLive: false }, POST: { createLive: false }, GET: { queryLiveInfo: false }, }, - "/live/lives/watchUsers": { GET: { queryLiveWatchUserList: false } }, - "/live/lives/watchDetails": { GET: { queryLiveWatchDetail: false } }, -}); -declare module "../internal" { + '/live/lives/watchUsers': { GET: { queryLiveWatchUserList: false } }, + '/live/lives/watchDetails': { GET: { queryLiveWatchDetail: false } }, +}) +declare module '../internal' { interface Internal { /** * 删除直播 * @see https://developers.dingtalk.com/document/isvapp/delete-live-streaming */ - deleteLive(query: DeleteLiveQuery): Promise; + deleteLive(query: DeleteLiveQuery): Promise /** * 查询直播观看人员信息 * @see https://developers.dingtalk.com/document/isvapp/queries-the-viewing-information-of-viewers */ queryLiveWatchUserList( query: QueryLiveWatchUserListQuery, - ): Promise; + ): Promise /** * 获取直播的观看数据 * @see https://developers.dingtalk.com/document/orgapp/queries-the-playback-data-of-a-live-stream */ queryLiveWatchDetail( query: QueryLiveWatchDetailQuery, - ): Promise; + ): Promise /** * 修改直播属性信息 * @see https://developers.dingtalk.com/document/isvapp/modify-live-streaming */ - updateLive(params: UpdateLiveParams): Promise; + updateLive(params: UpdateLiveParams): Promise /** * 创建直播 * @see https://developers.dingtalk.com/document/isvapp/create-live-streaming */ - createLive(params: CreateLiveParams): Promise; + createLive(params: CreateLiveParams): Promise /** * 查询直播详情 * @see https://developers.dingtalk.com/document/isvapp/queries-the-live-streaming-information */ - queryLiveInfo(query: QueryLiveInfoQuery): Promise; + queryLiveInfo(query: QueryLiveInfoQuery): Promise } } diff --git a/adapters/dingtalk/src/api/microApp.ts b/adapters/dingtalk/src/api/microApp.ts index 3a3db3ba..3ee24d51 100644 --- a/adapters/dingtalk/src/api/microApp.ts +++ b/adapters/dingtalk/src/api/microApp.ts @@ -1,228 +1,228 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface RollbackInnerAppVersionParams { /** 小程序版本id,用于唯一标识小程序版本信息。可通过调用服务端API-[获取企业内部小程序历史版本列表](https://open.dingtalk.com/document/orgapp/obtain-the-list-of-historical-versions-of-enterprise-internal-applets)接口,获取返回参数中`appVersionId`字段值。 */ - appVersionId: number; + appVersionId: number /** 操作人的unionId。可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取`unionId`参数值。 */ - opUnionId: string; + opUnionId: string } export interface RollbackInnerAppVersionResponse { - result?: unknown; + result?: unknown } export interface PublishInnerAppVersionParams { - appVersionId: number; + appVersionId: number /** 操作人的unionId。 */ - opUnionId: string; + opUnionId: string /** 小程序发布类型,取值: */ - publishType?: string; + publishType?: string /** 是否支持PC端打开小程序,取值: */ - miniAppOnPc?: unknown; + miniAppOnPc?: unknown } export interface PublishInnerAppVersionResponse { - result?: unknown; + result?: unknown } export interface PageInnerAppHistoryVersionQuery { /** 当前页。 */ - pageNumber: number; + pageNumber: number /** 本次读取的最大数据记录数量。 */ - pageSize: number; + pageSize: number } export interface PageInnerAppHistoryVersionResponse { - totalCount?: number; + totalCount?: number miniAppVersionList?: { - appVersionId: number; - miniAppId?: string; - appVersion: string; - appVersionType: number; - miniAppOnPc: number; - createTime: string; - modifyTime: string; - }[]; + appVersionId: number + miniAppId?: string + appVersion: string + appVersionType: number + miniAppOnPc: number + createTime: string + modifyTime: string + }[] } export interface ListInnerAppVersionResponse { appVersionList?: { - appVersionId: number; - miniAppId: string; - appVersion: string; - appVersionType: number; - miniAppOnPc?: number; - createTime: string; - modifyTime: string; - entranceLink?: string; - }[]; + appVersionId: number + miniAppId: string + appVersion: string + appVersionType: number + miniAppOnPc?: number + createTime: string + modifyTime: string + entranceLink?: string + }[] } export interface ListAllInnerAppsResponse { appList?: { - agentId: number; - name?: string; - desc?: string; - icon?: string; - homepageLink?: string; - pcHomepageLink?: string; - ompLink?: string; - appId: number; - appStatus: number; - developType: number; - }[]; + agentId: number + name?: string + desc?: string + icon?: string + homepageLink?: string + pcHomepageLink?: string + ompLink?: string + appId: number + appStatus: number + developType: number + }[] } export interface GetMicroAppScopeResponse { result?: { - userIds: number; - deptIds: number; - roleIds: number; - onlyAdminVisible: number; - }; + userIds: number + deptIds: number + roleIds: number + onlyAdminVisible: number + } } export interface SetMicroAppScopeParams { /** 增加的可使用用户userId列表,最大长度100。 */ - addUserIds?: string[]; + addUserIds?: string[] /** 删除的可使用用户userId列表,最大长度100。 */ - delUserIds?: string[]; + delUserIds?: string[] /** 增加的可使用部门ID列表,最大长度100。 */ - addDeptIds?: long[]; + addDeptIds?: number[] /** 删除的可使用部门ID列表,最大长度100。 */ - delDeptIds?: long[]; + delDeptIds?: number[] /** 用户角色ID, */ - addRoleIds?: long[]; + addRoleIds?: number[] /** 删除的可使用角色列表,通过[获取角色列表](https://open.dingtalk.com/document/orgapp-server/obtains-a-list-of-enterprise-roles)接口获取,最大长度100。 */ - delRoleIds?: long[]; + delRoleIds?: number[] /** 是否仅管理员可使用。 */ - onlyAdminVisible?: unknown; + onlyAdminVisible?: unknown } export interface SetMicroAppScopeResponse { - result?: unknown; + result?: unknown } export interface ListUserVilebleAppResponse { appList?: { - agentId: number; - name?: string; - desc?: string; - icon?: string; - homepageLink?: string; - pcHomepageLink?: string; - ompLink?: string; - appId: number; - appStatus: number; - developType: number; - }[]; + agentId: number + name?: string + desc?: string + icon?: string + homepageLink?: string + pcHomepageLink?: string + ompLink?: string + appId: number + appStatus: number + developType: number + }[] } export interface ListAllAppResponse { appList?: { - agentId: number; - name?: string; - desc?: string; - icon?: string; - homepageLink?: string; - pcHomepageLink?: string; - ompLink?: string; - appId: number; - appStatus: number; - developType: number; - }[]; + agentId: number + name?: string + desc?: string + icon?: string + homepageLink?: string + pcHomepageLink?: string + ompLink?: string + appId: number + appStatus: number + developType: number + }[] } export interface DeleteInnerAppQuery { /** 操作人的unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */ - opUnionId: string; + opUnionId: string } export interface DeleteInnerAppResponse { - result?: unknown; + result?: unknown } export interface UpdateInnerAppParams { /** 操作更新的员工unionId,可调用[查询用户信息](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */ - opUnionId: string; + opUnionId: string /** 应用名称,名称可以由中文、数字以及字母组成,长度范围要求2-20个字符。 */ - name?: string; + name?: string /** 应用描述,最大长度200个字符。 */ - desc?: string; + desc?: string /** 应用图标,可调用[上传媒体文件](https://open.dingtalk.com/document/orgapp/upload-media-files)接口获取media_id参数值。 */ - icon?: string; + icon?: string /** 应用首页地址,请输入http或https开头的网址链接。 */ - homepageLink?: string; + homepageLink?: string /** 应用PC端地址,请输入http或https开头的链接。 */ - pcHomepageLink?: string; + pcHomepageLink?: string /** 应用管理后台地址,输入http或https开头的链接。 */ - ompLink?: string; + ompLink?: string /** 服务器出口ip白名单,支持带一个*号通配符的IP格式。 */ - ipWhiteList?: string[]; + ipWhiteList?: string[] } export interface UpdateInnerAppResponse { - result?: unknown; + result?: unknown } export interface CreateInnerAppParams { /** 操作人的unionId,该用户必须是拥有**应用管理权限**的管理员,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取unionid参数值。 */ - opUnionId: string; + opUnionId: string /** 应用名称。 */ - name: string; + name: string /** 应用描述。 */ - desc: string; + desc: string /** 应用图标media,调用[上传媒体文件](https://open.dingtalk.com/document/orgapp/upload-media-files)接口获取media_id参数值。 */ - icon?: string; + icon?: string /** 应用首页地址。 */ - homepageLink?: string; + homepageLink?: string /** 应用PC端地址。 */ - pcHomepageLink?: string; + pcHomepageLink?: string /** 应用管理后台地址。 */ - ompLink?: string; + ompLink?: string /** 服务器出口IP白名单列表,最大值50。 */ - ipWhiteList?: string[]; + ipWhiteList?: string[] /** 权限类型,目前只支持BASE。 */ - scopeType?: string; + scopeType?: string /** 创建的内部应用类型:【默认为0】 */ - developType?: number; + developType?: number } export interface CreateInnerAppResponse { - agentId?: number; - appKey?: string; - appSecret?: string; + agentId?: number + appKey?: string + appSecret?: string } // funcName: isOldApi Internal.define({ - "/microApp/innerMiniApps/{agentId}/versions/rollback": { + '/microApp/innerMiniApps/{agentId}/versions/rollback': { POST: { rollbackInnerAppVersion: false }, }, - "/microApp/innerMiniApps/{agentId}/versions/publish": { + '/microApp/innerMiniApps/{agentId}/versions/publish': { POST: { publishInnerAppVersion: false }, }, - "/microApp/innerMiniApps/{agentId}/historyVersions": { + '/microApp/innerMiniApps/{agentId}/historyVersions': { GET: { pageInnerAppHistoryVersion: false }, }, - "/microApp/innerMiniApps/{agentId}/versions": { + '/microApp/innerMiniApps/{agentId}/versions': { GET: { listInnerAppVersion: false }, }, - "/microApp/allInnerApps": { GET: { listAllInnerApps: false } }, - "/microApp/apps/{agentId}/scopes": { + '/microApp/allInnerApps': { GET: { listAllInnerApps: false } }, + '/microApp/apps/{agentId}/scopes': { GET: { getMicroAppScope: false }, POST: { setMicroAppScope: false }, }, - "/microApp/users/{userId}/apps": { GET: { listUserVilebleApp: false } }, - "/microApp/allApps": { GET: { listAllApp: false } }, - "/microApp/apps/{agentId}": { + '/microApp/users/{userId}/apps': { GET: { listUserVilebleApp: false } }, + '/microApp/allApps': { GET: { listAllApp: false } }, + '/microApp/apps/{agentId}': { DELETE: { deleteInnerApp: false }, PUT: { updateInnerApp: false }, }, - "/microApp/apps": { POST: { createInnerApp: false } }, -}); -declare module "../internal" { + '/microApp/apps': { POST: { createInnerApp: false } }, +}) +declare module '../internal' { interface Internal { /** * 回滚企业内部小程序版本 @@ -231,7 +231,7 @@ declare module "../internal" { rollbackInnerAppVersion( agentId: number, params: RollbackInnerAppVersionParams, - ): Promise; + ): Promise /** * 发布企业内部小程序版本 * @see https://developers.dingtalk.com/document/orgapp/release-internal-applet-version @@ -239,7 +239,7 @@ declare module "../internal" { publishInnerAppVersion( agentId: number, params: PublishInnerAppVersionParams, - ): Promise; + ): Promise /** * 获取企业内部小程序历史版本列表 * @see https://developers.dingtalk.com/document/orgapp/obtain-the-list-of-historical-versions-of-enterprise-internal-applets @@ -247,22 +247,22 @@ declare module "../internal" { pageInnerAppHistoryVersion( agentId: number, query: PageInnerAppHistoryVersionQuery, - ): Promise; + ): Promise /** * 获取企业内部小程序的版本列表 * @see https://developers.dingtalk.com/document/orgapp/get-the-version-list-of-the-enterprise-internal-applet */ - listInnerAppVersion(agentId: number): Promise; + listInnerAppVersion(agentId: number): Promise /** * 获取企业所有内部应用列表 * @see https://developers.dingtalk.com/document/orgapp/get-a-list-of-all-applications-inside-the-enterprise */ - listAllInnerApps(): Promise; + listAllInnerApps(): Promise /** * 获取企业内部应用微应用的可使用范围 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-application-visible-range */ - getMicroAppScope(agentId: number): Promise; + getMicroAppScope(agentId: number): Promise /** * 更新企业内部应用微应用的可使用范围 * @see https://developers.dingtalk.com/document/orgapp/update-the-visible-range-of-micro-applications @@ -270,17 +270,17 @@ declare module "../internal" { setMicroAppScope( agentId: number, params: SetMicroAppScopeParams, - ): Promise; + ): Promise /** * 获取用户可见的企业应用列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-list-of-enterprise-applications-visible-to-a-user */ - listUserVilebleApp(userId: string): Promise; + listUserVilebleApp(userId: string): Promise /** * 获取企业所有应用列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-a-list-of-all-enterprise-applications */ - listAllApp(): Promise; + listAllApp(): Promise /** * 删除企业内部应用 * @see https://developers.dingtalk.com/document/app/delete-an-internal-h5-application @@ -288,7 +288,7 @@ declare module "../internal" { deleteInnerApp( agentId: number, query: DeleteInnerAppQuery, - ): Promise; + ): Promise /** * 更新企业内部应用 * @see https://developers.dingtalk.com/document/app/update-internal-h5-applications @@ -296,13 +296,13 @@ declare module "../internal" { updateInnerApp( agentId: number, params: UpdateInnerAppParams, - ): Promise; + ): Promise /** * 创建企业内部应用 * @see https://developers.dingtalk.com/document/app/create-an-h5-application-for-your-enterprise */ createInnerApp( params: CreateInnerAppParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/oapi.ts b/adapters/dingtalk/src/api/oapi.ts index 08d51ee6..1b98780e 100644 --- a/adapters/dingtalk/src/api/oapi.ts +++ b/adapters/dingtalk/src/api/oapi.ts @@ -1,3227 +1,3227 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface OapiServiceGetCorpTokenParams { /** 授权方corpid */ - auth_corpid?: string; + auth_corpid?: string } export interface OapiServiceGetCorpTokenResponse { /** 授权方(企业)corp_access_token超时时间 */ - expires_in?: unknown; + expires_in?: unknown /** 授权方(企业)corp_access_token */ - access_token?: string; + access_token?: string /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiSsoGettokenQuery { /** 企业Id */ - corpid?: string; + corpid?: string /** 这里必须填写专属的SSOSecret */ - corpsecret?: string; + corpsecret?: string } export interface OapiSsoGettokenResponse { /** 获取到的凭证 */ - access_token?: string; + access_token?: string /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiGetJsapiTicketResponse { /** 票据过期时间 */ - expires_in?: unknown; + expires_in?: unknown /** 用于JS API的临时票据 */ - ticket?: string; + ticket?: string /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiGettokenQuery { /** 应用的唯一标识key */ - appkey?: string; + appkey?: string /** 应用的密钥 */ - appsecret?: string; + appsecret?: string } export interface OapiGettokenResponse { /** access_token */ - access_token?: string; + access_token?: string /** expires_in */ - expires_in?: unknown; + expires_in?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiV2UserGetuserinfoParams { /** 免登授权码 */ - code: string; + code: string } export interface OapiV2UserGetuserinfoResponse { /** 错误码, 0代表成功,其它代表失败。 */ - errcode?: unknown; + errcode?: unknown /** 错误信息。 */ - errmsg?: string; + errmsg?: string /** 返回结果 */ result?: { - userid?: string; - device_id?: string; - sys?: number; - sys_level?: number; - unionid?: string; - associated_unionid?: string; - name?: string; - }; + userid?: string + device_id?: string + sys?: number + sys_level?: number + unionid?: string + associated_unionid?: string + name?: string + } } export interface OapiSnsGetuserinfoBycodeParams { /** 登录的临时授权码 */ - tmp_auth_code?: string; + tmp_auth_code?: string } export interface OapiSnsGetuserinfoBycodeResponse { /** user_info */ user_info?: { - nick?: string; - unionid?: string; - openid?: string; - main_org_auth_high_level?: number; - }; + nick?: string + unionid?: string + openid?: string + main_org_auth_high_level?: number + } /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiSsoGetuserinfoQuery { /** 再次强调,此token不同于一般的accesstoken,需要调用获取微应用管理员免登需要的AccessToken */ - code?: string; + code?: string /** 通过Oauth认证给URL带上的CODE */ - access_token?: string; + access_token?: string } export interface OapiSsoGetuserinfoResponse { /** user_info */ user_info?: { - avatar?: string; - email?: string; - name?: string; - userid?: string; - }; + avatar?: string + email?: string + name?: string + userid?: string + } /** corp_info */ corp_info?: { - corp_name?: string; - corpid?: string; - }; + corp_name?: string + corpid?: string + } /** is_sys */ - is_sys?: unknown; + is_sys?: unknown /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string } export interface OapiServiceGetAuthInfoParams { /** 套件key */ - suite_key?: string; + suite_key?: string /** 授权方corpid */ - auth_corpid?: string; + auth_corpid?: string } export interface OapiServiceGetAuthInfoResponse { /** auth_info */ auth_info?: { - agent?: number; - }; + agent?: number + } /** auth_user_info */ auth_user_info?: { - userId?: string; - }; + userId?: string + } /** auth_corp_info */ auth_corp_info?: { - corpid?: string; - invite_code?: string; - industry?: string; - corp_name?: string; - license_code?: string; - auth_channel?: string; - auth_channel_type?: string; - is_authenticated?: number; - auth_level?: number; - invite_url?: string; - corp_logo_url?: string; - belong_corp_id?: string; - unifiedSocialCredit?: string; - full_corp_name?: string; - }; + corpid?: string + invite_code?: string + industry?: string + corp_name?: string + license_code?: string + auth_channel?: string + auth_channel_type?: string + is_authenticated?: number + auth_level?: number + invite_url?: string + corp_logo_url?: string + belong_corp_id?: string + unifiedSocialCredit?: string + full_corp_name?: string + } /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown /** channel_auth_info */ channel_auth_info?: { - channelAgent?: number; - }; + channelAgent?: number + } } export interface OapiV2UserUpdateParams { /** 员工id,长度最大64个字符。员工在当前企业内的唯一标识。如果不传,服务器将自动生成一个userid。创建后不可修改,企业内必须唯一。 */ - userid: string; + userid: string /** 员工名称,长度最大80个字符。 */ - name?: string; + name?: string /** 手机号码,企业内必须唯一,不可重复。如果是国际号码,请使用+xx-xxxxxx的格式 */ - mobile?: string; + mobile?: string /** 是否号码隐藏。隐藏手机号后,手机号在个人资料页隐藏,但仍可对其发DING、发起钉钉免费商务电话。 */ - hide_mobile?: unknown; + hide_mobile?: unknown /** 分机号,长度最大50个字符。企业内必须唯一,不可重复 */ - telephone?: string; + telephone?: string /** 员工工号,长度最大50个字符。 */ - job_number?: string; + job_number?: string /** 职位,长度最大200个字符。 */ - title?: string; + title?: string /** 员工邮箱,长度最大50个字符。企业内必须唯一,不可重复。 */ - email?: string; + email?: string /** 员工的企业邮箱,长度最大100个字符。员工的企业邮箱已开通,才能增加此字段。 */ - org_email?: string; + org_email?: string /** 办公地点,长度最大100个字符。 */ - work_place?: string; + work_place?: string /** 备注,长度最大2000个字符。 */ - remark?: string; + remark?: string /** 所属部门id列表 */ - dept_id_list?: number[]; + dept_id_list?: number[] /** 员工在对应的部门中的排序。 */ - dept_order_list?: object[]; + dept_order_list?: object[] /** 员工在对应的部门中的职位。 */ - dept_title_list?: object[]; + dept_title_list?: object[] /** 扩展属性,长度最大2000个字符。可以设置多种属性(手机上最多显示10个扩展属性,具体显示哪些属性,请到OA管理后台->设置->通讯录信息设置和OA管理后台->设置->手机端显示信息设置)。 该字段的值支持链接类型填写,同时链接支持变量通配符自动替换,目前支持通配符有:userid,corpid。示例: [工位地址](http://www.dingtalk.com?userid=#userid#&corpid=#corpid#) */ - extension?: unknown; + extension?: unknown /** 是否高管模式。开启后,手机号码对所有员工隐藏。普通员工无法对其发DING、发起钉钉免费商务电话。高管之间不受影响。 */ - senior_mode?: unknown; + senior_mode?: unknown /** 入职时间,Unix时间戳,单位ms。 */ - hired_date?: unknown; + hired_date?: unknown /** 语言 */ - language?: string; + language?: string /** 重置专属帐号密码 */ - init_password?: string; + init_password?: string /** 修改专属帐号登录名 */ - loginId?: string; + loginId?: string /** 部门内任职 */ - dept_position_list?: object[]; + dept_position_list?: object[] /** 企业邮箱类型(profession:标准版,base:基础版) */ - org_email_type?: string; + org_email_type?: string /** 强制更新的字段,支持清空指定的字段,使用逗号分隔。目前支持字段:manager_userid */ - force_update_fields?: string[]; + force_update_fields?: string[] /** 直属主管 */ - manager_userid?: string; + manager_userid?: string /** 专属帐号手机号 */ - exclusive_mobile?: string; + exclusive_mobile?: string /** 手机号验证状态 */ - exclusive_mobile_verify_status?: string; + exclusive_mobile_verify_status?: string /** 修改本组织专属帐号时可指定昵称 */ - nickname?: string; + nickname?: string /** 修改本组织专属帐号时可指定头像MediaId。只支持参考jpg/png,生成方法 https://developers.dingtalk.com/document/app/upload-media-files */ - avatarMediaId?: string; + avatarMediaId?: string /** 自定义字段更新模式,0-覆盖方式 1-追加方式 (默认是覆盖) */ - ext_attrs_update_mode?: unknown; + ext_attrs_update_mode?: unknown /** 更新自定义字段列表 */ - ext_attrs?: object[]; + ext_attrs?: object[] /** 自定义性别字段 */ - gender?: string; + gender?: string } export interface OapiV2UserUpdateResponse { /** 错误码。0代表成功。 */ - errcode?: unknown; + errcode?: unknown /** 错误信息。 */ - errmsg?: string; + errmsg?: string } export interface OapiV2UserCreateParams { /** 员工id,长度最大64个字符。员工在当前企业内的唯一标识。 */ - userid?: string; + userid?: string /** 员工名称,长度最大80个字符。 */ - name: string; + name: string /** 手机号码,企业内必须唯一,不可重复。如果是国际号码,请使用+xx-xxxxxx的格式 */ - mobile?: string; + mobile?: string /** 是否号码隐藏。隐藏手机号后,手机号在个人资料页隐藏,但仍可对其发DING、发起钉钉免费商务电话。 */ - hide_mobile?: unknown; + hide_mobile?: unknown /** 分机号,长度最大50个字符。企业内必须唯一,不可重复 */ - telephone?: string; + telephone?: string /** 员工工号,长度最大50个字符。 */ - job_number?: string; + job_number?: string /** 职位,长度最大200个字符。 */ - title?: string; + title?: string /** 员工邮箱,长度最大50个字符。企业内必须唯一,不可重复。 */ - email?: string; + email?: string /** 员工的企业邮箱,长度最大100个字符。员工的企业邮箱已开通,才能增加此字段。 */ - org_email?: string; + org_email?: string /** 办公地点,长度最大100个字符。 */ - work_place?: string; + work_place?: string /** 备注,长度最大2000个字符。 */ - remark?: string; + remark?: string /** 所属部门id列表 */ - dept_id_list?: number[]; + dept_id_list?: number[] /** 员工在对应的部门中的排序。 */ - dept_order_list?: object[]; + dept_order_list?: object[] /** 员工在对应的部门中的职位。 */ - dept_title_list?: object[]; + dept_title_list?: object[] /** 扩展属性,长度最大2000个字符。可以设置多种属性(手机上最多显示10个扩展属性,具体显示哪些属性,请到OA管理后台->设置->通讯录信息设置和OA管理后台->设置->手机端显示信息设置)。 该字段的值支持链接类型填写,同时链接支持变量通配符自动替换,目前支持通配符有:userid,corpid。示例: [工位地址](http://www.dingtalk.com?userid=#userid#&corpid=#corpid#) */ - extension?: unknown; + extension?: unknown /** 是否高管模式。开启后,手机号码对所有员工隐藏。普通员工无法对其发DING、发起钉钉免费商务电话。高管之间不受影响。 */ - senior_mode?: unknown; + senior_mode?: unknown /** 入职时间,Unix时间戳,单位ms。 */ - hired_date?: unknown; + hired_date?: unknown /** 登录邮箱 */ - login_email?: string; + login_email?: string /** 是否专属帐号(true时,不能指定loginEmail或mobile) */ - exclusive_account?: unknown; + exclusive_account?: unknown /** 专属帐号类型:sso: 企业自建专属帐号;dingtalk:钉钉自建专属帐号。 */ - exclusive_account_type?: string; + exclusive_account_type?: string /** 钉钉专属帐号登录名 */ - login_id?: string; + login_id?: string /** 钉钉专属帐号初始密码 */ - init_password?: string; + init_password?: string /** 部门内任职 */ - dept_position_list?: object[]; + dept_position_list?: object[] /** 企业邮箱类型(profession:标准版,base:基础版) */ - org_email_type?: string; + org_email_type?: string /** 直属主管 */ - manager_userid?: string; + manager_userid?: string /** 专属帐号手机号 */ - exclusive_mobile?: string; + exclusive_mobile?: string /** 专属帐号手机号验证状态 */ - exclusive_mobile_verify_status?: string; + exclusive_mobile_verify_status?: string /** 需要添加的专属帐号所属corpid */ - outer_exclusive_corpid?: string; + outer_exclusive_corpid?: string /** 需要添加的专属帐号所属userid */ - outer_exclusive_userid?: string; + outer_exclusive_userid?: string /** 创建本组织专属帐号时可指定头像MediaId。只支持参考jpg/png,生成方法 https://developers.dingtalk.com/document/app/upload-media-files */ - avatarMediaId?: string; + avatarMediaId?: string /** 创建本组织专属帐号时可指定昵称 */ - nickname?: string; + nickname?: string /** 自定义字段更新模式,0-覆盖方式 1-追加方式 (默认是覆盖) */ - ext_attrs_update_mode?: unknown; + ext_attrs_update_mode?: unknown /** 自定义字段列表 */ - ext_attrs?: object[]; + ext_attrs?: object[] /** 自定义性别字段 */ - gender?: string; + gender?: string } export interface OapiV2UserCreateResponse { /** 错误码。0代表成功。 */ - errcode?: unknown; + errcode?: unknown /** 错误信息。 */ - errmsg?: string; + errmsg?: string /** 返回结果 */ result?: { - userid?: string; - unionId?: string; - }; + userid?: string + unionId?: string + } } export interface OapiOrgUnionTrunkGetResponse { /** OpenOrgUnion */ result?: { - org_name?: string; - corpid?: string; - }[]; + org_name?: string + corpid?: string + }[] /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误code */ - errcode?: unknown; + errcode?: unknown /** 错误msg */ - errmsg?: string; + errmsg?: string } export interface OapiSmartworkHrmRosterMetaGetParams { /** 微应用在企业的AgentId */ - agentid: unknown; + agentid: unknown } export interface OapiSmartworkHrmRosterMetaGetResponse { /** 花名册分组定义 */ result?: { - group_name?: string; - group_id?: string; - field_meta_info_list?: number; - detail?: number; - }[]; + group_name?: string + group_id?: string + field_meta_info_list?: number + detail?: number + }[] /** 服务调用成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartworkHrmEmployeeV2ListParams { /** 员工id列表 */ - userid_list: string[]; + userid_list: string[] /** 需要获取的花名册字段信息(不传值时,企业调用获取全部字段,ISV调用获取所有有权限字段。查询字段越少,RT越低,建议按需查询) */ - field_filter_list?: string[]; + field_filter_list?: string[] /** 微应用在企业的agentId */ - agentid: unknown; + agentid: unknown } export interface OapiSmartworkHrmEmployeeV2ListResponse { /** 返回结果 */ result?: { - corp_id?: string; - field_data_list?: number; - userid?: string; - unionid?: string; - }[]; + corp_id?: string + field_data_list?: number + userid?: string + unionid?: string + }[] /** 调用是否成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartworkHrmEmployeeV2UpdateParams { /** 微应用在企业的AgentId */ - agentid: unknown; + agentid: unknown /** 编辑花名册入参 */ - param: unknown; + param: unknown } export interface OapiSmartworkHrmEmployeeV2UpdateResponse { /** 调用是否成功 */ - result?: unknown; + result?: unknown /** 调用结果 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartworkHrmEmployeeFieldGrouplistParams { /** 微应用在企业的AgentId,不需要自定义字段可不传 */ - agentid?: unknown; + agentid?: unknown } export interface OapiSmartworkHrmEmployeeFieldGrouplistResponse { /** 错误描述 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标记 */ - success?: unknown; + success?: unknown /** 结果集 */ result?: { - group_id?: string; - has_detail?: number; - field_list?: number; - }[]; + group_id?: string + has_detail?: number + field_list?: number + }[] } export interface OapiSmartworkHrmEmployeeUpdateParams { /** 添加待入职入参 */ - param: unknown; + param: unknown /** 微应用在企业的AgentId */ - agentid: unknown; + agentid: unknown } export interface OapiSmartworkHrmEmployeeUpdateResponse { /** 业务处理是否成功 */ - result?: unknown; + result?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 调用结果 */ - success?: unknown; + success?: unknown } export interface OapiSmartworkHrmEmployeeQueryonjobParams { /** 在职员工子状态筛选。2,试用期;3,正式;5,待离职;-1,无状态 */ - status_list: number[]; + status_list: number[] /** 分页起始值,默认0开始 */ - offset: unknown; + offset: unknown /** 分页大小,最大50 */ - size: unknown; + size: unknown } export interface OapiSmartworkHrmEmployeeQueryonjobResponse { /** 分页结果 */ result?: { - data_list?: number; - next_cursor?: number; - }; + data_list?: number + next_cursor?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 调用结果 */ - success?: unknown; + success?: unknown } export interface OapiSmartworkHrmEmployeeQuerypreentryParams { /** 分页起始值,默认0开始 */ - offset: unknown; + offset: unknown /** 分页大小,最大50 */ - size: unknown; + size: unknown } export interface OapiSmartworkHrmEmployeeQuerypreentryResponse { /** 分页结果 */ result?: { - next_cursor?: number; - data_list?: number; - }; + next_cursor?: number + data_list?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 调用结果 */ - success?: unknown; + success?: unknown } export interface OapiSmartworkHrmEmployeeAddpreentryParams { /** 添加待入职入参 */ - param: unknown; + param: unknown } export interface OapiSmartworkHrmEmployeeAddpreentryResponse { /** 员工id */ - userid?: string; + userid?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 调用结果 */ - success?: unknown; + success?: unknown } export interface OapiSmartworkHrmEmployeeListParams { /** 员工id列表 */ - userid_list: string[]; + userid_list: string[] /** 需要获取的花名册字段信息 */ - field_filter_list?: string[]; + field_filter_list?: string[] /** 微应用在企业的agentId */ - agentid?: unknown; + agentid?: unknown } export interface OapiSmartworkHrmEmployeeListResponse { /** 返回结果 */ result?: { - userid?: string; - field_list?: number; - partner?: number; - }[]; + userid?: string + field_list?: number + partner?: number + }[] /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 调用是否成功 */ - success?: unknown; + success?: unknown } export interface OapiReportTemplateGetbynameParams { /** 员工id */ - userid: string; + userid: string /** 模板名称 */ - template_name: string; + template_name: string } export interface OapiReportTemplateGetbynameResponse { /** result */ result?: { - default_receivers?: number; - name?: string; - id?: string; - fields?: number; - user_name?: string; - userid?: string; - default_received_convs?: number; - }; + default_receivers?: number + name?: string + id?: string + fields?: number + user_name?: string + userid?: string + default_received_convs?: number + } /** 系统自动生成 */ - errcode?: unknown; + errcode?: unknown /** 系统自动生成 */ - errmsg?: string; + errmsg?: string } export interface OapiReportCreateParams { /** 创建日志的参数对象 */ - create_report_param: unknown; + create_report_param: unknown } export interface OapiReportCreateResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown /** result */ - result?: string; + result?: string } export interface OapiReportSavecontentParams { /** 保存日志的参数对象 */ - create_report_param: unknown; + create_report_param: unknown } export interface OapiReportSavecontentResponse { /** result */ - result?: string; + result?: string /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string } export interface OapiReportSimplelistParams { /** 查询起始时间 */ - start_time: unknown; + start_time: unknown /** 查询截止时间 */ - end_time: unknown; + end_time: unknown /** 要查询的模板名称 */ - template_name?: string; + template_name?: string /** 员工的userid */ - userid?: string; + userid?: string /** 查询游标,初始传入0,后续从上一次的返回值中获取 */ - cursor: unknown; + cursor: unknown /** 每页数据量 */ - size: unknown; + size: unknown } export interface OapiReportSimplelistResponse { /** result */ result?: { - data_list?: number; - size?: number; - next_cursor?: number; - has_more?: number; - }; + data_list?: number + size?: number + next_cursor?: number + has_more?: number + } /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string } export interface OapiReportStatisticsListbytypeParams { /** 日志id */ - report_id: string; + report_id: string /** 查询类型 0:已读人员列表 1:评论人员列表 2:点赞人员列表 */ - type: unknown; + type: unknown /** 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0 */ - offset?: unknown; + offset?: unknown /** 分页参数,每页大小,最多传100,默认值为100 */ - size?: unknown; + size?: unknown } export interface OapiReportStatisticsListbytypeResponse { /** 成功 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 统计结果 */ result?: { - next_cursor?: number; - has_more?: number; - userid_list?: number; - }; + next_cursor?: number + has_more?: number + userid_list?: number + } } export interface OapiReportReceiverListParams { /** 日志id */ - report_id: string; + report_id: string /** 分页查询的游标,最开始传0,后续传返回参数中next_cursor的值,默认值为0 */ - offset?: unknown; + offset?: unknown /** 分页参数,每页大小,最多传100,默认值为100 */ - size?: unknown; + size?: unknown } export interface OapiReportReceiverListResponse { /** 统计结果 */ result?: { - has_more?: number; - next_cursor?: number; - userid_list?: number; - }; + has_more?: number + next_cursor?: number + userid_list?: number + } /** 错误吗 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 成功 */ - success?: unknown; + success?: unknown } export interface OapiReportCommentListParams { /** 日志id */ - report_id: string; + report_id: string /** 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0 */ - offset?: unknown; + offset?: unknown /** 分页参数,每页大小,最多传20,默认值为20 */ - size?: unknown; + size?: unknown } export interface OapiReportCommentListResponse { /** 统计结果 */ result?: { - comments?: number; - has_more?: number; - next_cursor?: number; - }; + comments?: number + has_more?: number + next_cursor?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 成功 */ - success?: unknown; + success?: unknown } export interface OapiReportStatisticsParams { /** 日志id */ - report_id: string; + report_id: string } export interface OapiReportStatisticsResponse { /** 统计结果 */ result?: { - read_num?: number; - comment_num?: number; - comment_user_num?: number; - like_num?: number; - }; + read_num?: number + comment_num?: number + comment_user_num?: number + like_num?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 是否成功 */ - success?: unknown; + success?: unknown } export interface OapiReportGetunreadcountParams { /** 员工id */ - userid?: string; + userid?: string } export interface OapiReportGetunreadcountResponse { /** 员工日志未读数 */ - count?: unknown; + count?: unknown /** errorMsg */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiReportListParams { /** 查询的日志创建的开始时间 */ - start_time: unknown; + start_time: unknown /** 查询的日志创建的结束时间 */ - end_time: unknown; + end_time: unknown /** 要查询的模板名称 */ - template_name?: string; + template_name?: string /** 员工的userid */ - userid?: string; + userid?: string /** 查询游标,初始传入0,后续从上一次的返回值中获取 */ - cursor: unknown; + cursor: unknown /** 每页数据量 */ - size: unknown; + size: unknown /** 查询的日志修改的开始时间 */ - modified_start_time?: unknown; + modified_start_time?: unknown /** 查询的日志修改的结束时间 */ - modified_end_time?: unknown; + modified_end_time?: unknown } export interface OapiReportListResponse { /** result */ result?: { - data_list?: number; - size?: number; - next_cursor?: number; - has_more?: number; - }; + data_list?: number + size?: number + next_cursor?: number + has_more?: number + } /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string } export interface OapiReportTemplateListbyuseridParams { /** 员工userId, 不传递表示获取所有日志模板 */ - userid?: string; + userid?: string /** 分页游标,从0开始。根据返回结果里的next_cursor是否为空来判断是否还有下一页,且再次调用时offset设置成next_cursor的值 */ - offset?: unknown; + offset?: unknown /** 分页大小,最大可设置成100 */ - size?: unknown; + size?: unknown } export interface OapiReportTemplateListbyuseridResponse { /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** result */ result?: { - template_list?: number; - next_cursor?: number; - }; + template_list?: number + next_cursor?: number + } } export interface OapiCheckinRecordGetParams { /** 需要查询的用户列表 */ - userid_list: string[]; + userid_list: string[] /** 起始时间,单位毫秒 */ - start_time: unknown; + start_time: unknown /** 截止时间,单位毫秒。如果是取1个人的数据,时间范围最大到10天,如果是取多个人的数据,时间范围最大1天。 */ - end_time: unknown; + end_time: unknown /** 分页查询的游标,最开始可以传0 */ - cursor: unknown; + cursor: unknown /** 分页查询的每页大小,最大100 */ - size: unknown; + size: unknown } export interface OapiCheckinRecordGetResponse { /** result */ result?: { - next_cursor?: number; - page_list?: number; - }; + next_cursor?: number + page_list?: number + } /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string } export interface OapiCheckinRecordQuery { /** 部门id(1 表示根部门) */ - department_id?: string; + department_id?: string /** 开始时间,精确到毫秒,注意字段的位数 例:1520956800000 */ - end_time?: unknown; + end_time?: unknown /** 结束时间,精确到毫秒,注意字段的位数 例:1520956800000(默认为当前时间) */ - start_time?: unknown; + start_time?: unknown /** 支持分页查询,与size 参数同时设置时才生效,此参数代表偏移量,从0 开始 */ - offset?: unknown; + offset?: unknown /** 支持分页查询,与offset 参数同时设置时才生效,此参数代表分页大小,最大100 */ - size?: unknown; + size?: unknown /** 排序,asc 为正序,desc 为倒序 */ - order?: string; + order?: string } export interface OapiCheckinRecordResponse { /** data */ data?: { - name?: string; - userId?: string; - avatar?: string; - timestamp?: number; - place?: string; - detailPlace?: string; - remark?: string; - imageList?: number; - latitude?: string; - longitude?: string; - }[]; + name?: string + userId?: string + avatar?: string + timestamp?: number + place?: string + detailPlace?: string + remark?: string + imageList?: number + latitude?: string + longitude?: string + }[] /** 对返回码的文本描述内容 */ - errmsg?: string; + errmsg?: string /** 返回码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiBlackboardCategoryListParams { /** 操作人userId(必须是公告管理员) */ - operation_userid: string; + operation_userid: string } export interface OapiBlackboardCategoryListResponse { /** 出参,success为true时,该值不为空,否则值为空 */ result?: { - id?: string; - name?: string; - }[]; + id?: string + name?: string + }[] /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败返回错误码 */ - errcode?: unknown; + errcode?: unknown /** 请求失败返回错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardUpdateParams { /** 请求入参 */ - update_request?: unknown; + update_request?: unknown } export interface OapiBlackboardUpdateResponse { /** success为true时,该值不为空,否则值为空 */ - result?: unknown; + result?: unknown /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败返回的错误码 */ - errcode?: unknown; + errcode?: unknown /** 请求失败返回的错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardDeleteParams { /** 公告id,可以通过https://oapi.dingtalk.com/blackboard/listids获取有效值 */ - blackboard_id: string; + blackboard_id: string /** 操作人userId(必须是公告管理员) */ - operation_userid: string; + operation_userid: string } export interface OapiBlackboardDeleteResponse { /** success为true时,该值不为空,否则值为空 */ - result?: unknown; + result?: unknown /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败返回的错误码 */ - errcode?: unknown; + errcode?: unknown /** 请求失败返回的错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardGetParams { /** 公告id */ - blackboard_id: string; + blackboard_id: string /** 操作人userId */ - operation_userid: string; + operation_userid: string } export interface OapiBlackboardGetResponse { /** 出参,success为true时,该值不为空,否则值为空 */ result?: { - id?: string; - author?: string; - title?: string; - content?: string; - category_id?: string; - private_level?: number; - depname_list?: number; - username_list?: number; - gmt_create?: string; - gmt_modified?: string; - read_count?: number; - unread_count?: number; - coverpic_url?: string; - user_list?: number; - deptList?: number; - senderStaffId?: string; - }; + id?: string + author?: string + title?: string + content?: string + category_id?: string + private_level?: number + depname_list?: number + username_list?: number + gmt_create?: string + gmt_modified?: string + read_count?: number + unread_count?: number + coverpic_url?: string + user_list?: number + deptList?: number + senderStaffId?: string + } /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败返回错误码,0代表无错误 */ - errcode?: unknown; + errcode?: unknown /** 请求失败返回错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardListidsParams { /** 请求入参 */ - query_request?: unknown; + query_request?: unknown } export interface OapiBlackboardListidsResponse { /** success为true时,返回公告id列表。否则值为空 */ - result?: string[]; + result?: string[] /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败的错误码 */ - errcode?: unknown; + errcode?: unknown /** 请求失败的错误原因 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardCreateParams { /** 请求入参 */ - create_request: unknown; + create_request: unknown } export interface OapiBlackboardCreateResponse { /** success为true时,该值不为空,否则值为空 */ - result?: unknown; + result?: unknown /** 本次调用是否成功,该值为false时,根据errcode和errMsg排查失败原因 */ - success?: unknown; + success?: unknown /** 请求失败返回的错误码 */ - errcode?: unknown; + errcode?: unknown /** 请求失败返回的错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiBlackboardListtoptenParams { /** 用户id */ - userid: string; + userid: string /** 公告分类id */ - categoryId?: string; + categoryId?: string } export interface OapiBlackboardListtoptenResponse { /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** result */ blackboard_list?: { - gmt_create?: string; - title?: string; - url?: string; - categoryId?: string; - id?: string; - categoryName?: string; - privateLevel?: number; - isPushTop?: number; - }[]; + gmt_create?: string + title?: string + url?: string + categoryId?: string + id?: string + categoryName?: string + privateLevel?: number + isPushTop?: number + }[] } export interface OapiHealthStepinfoGetuserstatusParams { /** 用户id */ - userid: string; + userid: string } export interface OapiHealthStepinfoGetuserstatusResponse { /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** true表示开启,false表示未开启 */ - status?: unknown; + status?: unknown } export interface OapiHealthStepinfoListbyuseridParams { /** 员工userid列表,最多传50个 */ - userids: string[]; + userids: string[] /** 时间,注意时间格式是YYMMDD */ - stat_date: string; + stat_date: string } export interface OapiHealthStepinfoListbyuseridResponse { /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** 步数列表 */ stepinfo_list?: { - stat_date?: number; - step_count?: number; - userid?: string; - }[]; + stat_date?: number + step_count?: number + userid?: string + }[] } export interface OapiHealthStepinfoListParams { /** 0表示取用户步数,1表示取部门步数 */ - type: unknown; + type: unknown /** 可以传入用户userid或者部门id */ - object_id: string; + object_id: string /** 时间列表,注意时间格式是YYYYMMDD */ - stat_dates: string[]; + stat_dates: string[] } export interface OapiHealthStepinfoListResponse { /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** 步数列表 */ stepinfo_list?: { - stat_date?: number; - step_count?: number; - }[]; + stat_date?: number + step_count?: number + }[] } export interface OapiMicroappListByUseridQuery { /** 员工userid */ - userid?: string; + userid?: string } export interface OapiMicroappListByUseridResponse { /** 返回码 */ - errcode?: unknown; + errcode?: unknown /** 对返回码的文本描述内容 */ - errmsg?: string; + errmsg?: string /** appList */ appList?: { - agentId?: number; - name?: string; - appIcon?: string; - appDesc?: string; - isSelf?: number; - appStatus?: number; - homepageLink?: string; - pcHomepageLink?: string; - ompLink?: string; - }[]; + agentId?: number + name?: string + appIcon?: string + appDesc?: string + isSelf?: number + appStatus?: number + homepageLink?: string + pcHomepageLink?: string + ompLink?: string + }[] } export interface OapiMicroappListResponse { /** appList */ appList?: { - name?: string; - agentId?: number; - appIcon?: string; - appDesc?: string; - isSelf?: number; - appStatus?: number; - ompLink?: string; - homepageLink?: string; - pcHomepageLink?: string; - appId?: number; - }[]; + name?: string + agentId?: number + appIcon?: string + appDesc?: string + isSelf?: number + appStatus?: number + ompLink?: string + homepageLink?: string + pcHomepageLink?: string + appId?: number + }[] /** 对返回码的文本描述内容 */ - errmsg?: string; + errmsg?: string /** 返回码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiMicroappDeleteParams { /** 微应用实例化id,企业只能删除自建微应用 */ - agentId?: unknown; + agentId?: unknown } export interface OapiMicroappDeleteResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiMicroappSetVisibleScopesParams { /** 设置可见的员工id列表,格式为JSON数组 */ - userVisibleScopes?: string[]; + userVisibleScopes?: string[] /** 设置可见的部门id列表,格式为JSON数组 */ - deptVisibleScopes?: number[]; + deptVisibleScopes?: number[] /** 是否仅限管理员可见,true代表仅限管理员可见 */ - isHidden?: unknown; + isHidden?: unknown /** 微应用实例化id */ - agentId?: unknown; + agentId?: unknown } export interface OapiMicroappSetVisibleScopesResponse { /** 返回码 */ - errmsg?: string; + errmsg?: string /** 对返回码的文本描述内容 */ - errcode?: unknown; + errcode?: unknown } export interface OapiMicroappVisibleScopesParams { /** 微应用实例化id */ - agentId?: unknown; + agentId?: unknown } export interface OapiMicroappVisibleScopesResponse { /** 微应用的可见用户id列表,格式为JSON数组 */ - userVisibleScopes?: string[]; + userVisibleScopes?: string[] /** 微应用的可见部门id列表,格式为JSON数组 */ - deptVisibleScopes?: number[]; + deptVisibleScopes?: number[] /** 是否仅限管理员可见 */ - isHidden?: unknown; + isHidden?: unknown /** 对返回码的文本描述内容 */ - errmsg?: string; + errmsg?: string /** 返回码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiAsrVoiceTranslateParams { /** media_id,获取方式见https://ding-doc.dingtalk.com/doc#/serverapi2/bcmg0i */ - media_id: string; + media_id: string } export interface OapiAsrVoiceTranslateResponse { /** errorMsg */ - errmsg?: string; + errmsg?: string /** dingOpenErrcode */ - errcode?: unknown; + errcode?: unknown /** result */ - result?: string; + result?: string } export interface OapiAiMtTranslateParams { /** 翻译源文字符串 */ - query: string; + query: string /** 翻译源语言类型 */ - source_language: string; + source_language: string /** 翻译目标语言类型 */ - target_language: string; + target_language: string } export interface OapiAiMtTranslateResponse { /** 翻译结果字符串 */ - result?: string; + result?: string /** 成功为0 */ - errcode?: unknown; + errcode?: unknown /** 成功 */ - errmsg?: string; + errmsg?: string } export interface OapiOcrStructuredRecognizeParams { /** 识别图片类型, 身份证idcard,营业执照增值税发票invoice,营业执照blicense,银行卡bank_card,车牌car_no,机动车发票car_invoice,驾驶证driving_license,行驶证vehicle_license,火车票train_ticket,定额发票quota_invoice,出租车发票taxi_ticket,机票行程单air_itinerary */ - type: string; + type: string /** 识别图片地址 */ - image_url: string; + image_url: string } export interface OapiOcrStructuredRecognizeResponse { /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误描述 */ - errmsg?: string; + errmsg?: string /** 识别结果 */ result?: { - height?: number; - width?: number; - angle?: number; - data?: string; - original_height?: number; - original_width?: number; - }; + height?: number + width?: number + angle?: number + data?: string + original_height?: number + original_width?: number + } } export interface OapiImChatScencegroupMessageSendV2Params { /** 接收消息的群的openConversationId */ - target_open_conversation_id: string; + target_open_conversation_id: string /** 模板ID */ - msg_template_id: string; + msg_template_id: string /** 消息模板内容替换参数-普通文本类型 */ - msg_param_map?: unknown; + msg_param_map?: unknown /** 消息模板内容替换参数-多媒体类型 */ - msg_media_id_param_map?: unknown; + msg_media_id_param_map?: unknown /** 消息接收人 userId 列表 (不设置任何接收人则全部可见) */ - receiver_user_ids?: string[]; + receiver_user_ids?: string[] /** 消息接收人 unionId 列表(不设置任何接收人则全部可见) */ - receiver_union_ids?: string[]; + receiver_union_ids?: string[] /** 消息接收人手机号列表(不设置任何接收人则全部可见) */ - receiver_mobiles?: string[]; + receiver_mobiles?: string[] /** @人的手机号列表 */ - at_mobiles?: string[]; + at_mobiles?: string[] /** 是否@所有人 */ - is_at_all?: unknown; + is_at_all?: unknown /** 用于发送卡片的机器人编码,与场景群模板中的机器人编码保持一致 */ - robot_code?: string; + robot_code?: string /** @人的员工id列表 */ - at_users?: string[]; + at_users?: string[] /** @人的unionId列表 */ - at_union_ids?: string[]; + at_union_ids?: string[] } export interface OapiImChatScencegroupMessageSendV2Response { /** 成功 */ - succ?: unknown; + succ?: unknown /** 统一错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 开发消息ID */ - open_msg_id?: string; + open_msg_id?: string } export interface OapiImChatScenegroupTemplateCloseParams { /** 群主userid */ - owner_user_id: string; + owner_user_id: string /** 群模板ID */ - template_id: string; + template_id: string /** 启用模式 */ - apply_mode?: unknown; + apply_mode?: unknown /** 加密cid,必填 */ - open_conversation_id: string; + open_conversation_id: string } export interface OapiImChatScenegroupTemplateCloseResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiImChatScenegroupTemplateApplyParams { /** 群主userid */ - owner_user_id: string; + owner_user_id: string /** 启用模式 */ - apply_mode?: unknown; + apply_mode?: unknown /** 群模板ID */ - template_id: string; + template_id: string /** 加密cid,必填 */ - open_conversation_id: string; + open_conversation_id: string } export interface OapiImChatScenegroupTemplateApplyResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiImChatScencegroupInteractivecardCallbackRegisterParams { /** 回调地址 */ - callback_url: string; + callback_url: string /** 加密密钥用于校验来源 */ - api_secret?: string; + api_secret?: string /** callback地址的路由Key,一个key仅可映射一个callbackUrl,不传值企业内部应用默认为orgId,企业三方应用默认为SuiteKey */ - callbackRouteKey?: string; + callbackRouteKey?: string /** 是否强制覆盖更新 */ - forceUpdate?: unknown; + forceUpdate?: unknown } export interface OapiImChatScencegroupInteractivecardCallbackRegisterResponse { /** 业务返回结果 */ result?: { - apiSecret?: string; - callbackUrl?: string; - }; + apiSecret?: string + callbackUrl?: string + } /** 成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiImChatScenegroupCreateParams { /** 群主userid */ - owner_user_id: string; + owner_user_id: string /** 群成员useridlist */ - user_ids?: string[]; + user_ids?: string[] /** 建群去重的业务id */ - uuid?: string; + uuid?: string /** 群头像mediaId */ - icon?: string; + icon?: string /** @all 权限,0-默认,所有人,1-仅群主可@all */ - mention_all_authority?: unknown; + mention_all_authority?: unknown /** 新成员是否可查看聊天历史消息,0-默认,否,1-是 */ - show_history_type?: unknown; + show_history_type?: unknown /** 入群验证,0:不入群验证(默认) 1:入群验证 */ - validation_type?: unknown; + validation_type?: unknown /** 群可搜索,0-默认,不可搜索,1-可搜索 */ - searchable?: unknown; + searchable?: unknown /** 群禁言,0-默认,不禁言,1-全员禁言 */ - chat_banned_type?: unknown; + chat_banned_type?: unknown /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */ - management_type?: unknown; + management_type?: unknown /** 群名称 */ - title: string; + title: string /** 群模板id */ - template_id: string; + template_id: string /** 群管理员useridlist */ - subadmin_ids?: string[]; + subadmin_ids?: string[] /** 仅群主和管理员可在群内发DING 0-不开启,1-开启 */ - only_admin_can_ding?: unknown; + only_admin_can_ding?: unknown /** 群会议 若开启,群内任意成员可发起视频和语音会议 0-不开启,1-开启 */ - all_members_can_create_mcs_conf?: unknown; + all_members_can_create_mcs_conf?: unknown /** 群日历 若开启,群内容非好友/同事的成员可相互发起钉钉日程 0-不开启,1-开启 */ - all_members_can_create_calendar?: unknown; + all_members_can_create_calendar?: unknown /** 禁止发送群邮件 若开启,群内成员不可再对本群发送群邮件 0-不开启,1-开启 */ - group_email_disabled?: unknown; + group_email_disabled?: unknown /** 仅群主和管理员可置顶群消息 0-不开启,1-开启 */ - only_admin_can_set_msg_top?: unknown; + only_admin_can_set_msg_top?: unknown /** 禁止群成员私聊 若开启,普通群成员之间不能够加好友、单聊,且部分功能使用受限(管理员与非管理员之间不受影响)0-不开启,1-开启 */ - add_friend_forbidden?: unknown; + add_friend_forbidden?: unknown /** 群直播 若开启,群内任意成员可发起群直播 0-不开启,1-开启 */ - group_live_switch?: unknown; + group_live_switch?: unknown /** 禁止非管理员向管理员发起单聊 若开启,非管理员不能向管理员发起单聊 0-不开启,1-开启 */ - members_to_admin_chat?: unknown; + members_to_admin_chat?: unknown } export interface OapiImChatScenegroupCreateResponse { /** 返回结果 */ result?: { - open_conversation_id?: string; - chat_id?: string; - }; + open_conversation_id?: string + chat_id?: string + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiImChatScenegroupMemberAddParams { /** 开放群id */ - open_conversation_id: string; + open_conversation_id: string /** 成员userid */ - user_ids?: string[]; + user_ids?: string[] /** 客户联系人staffIds */ - contact_staff_ids?: string[]; + contact_staff_ids?: string[] } export interface OapiImChatScenegroupMemberAddResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiImChatScenegroupMemberGetParams { /** 分页游标 */ - cursor: string; + cursor: string /** 分页的pagesize */ - size: unknown; + size: unknown /** 开放群id */ - open_conversation_id: string; + open_conversation_id: string } export interface OapiImChatScenegroupMemberGetResponse { /** 返回结果 */ result?: { - member_user_ids?: number; - next_cursor?: string; - has_more?: number; - member_contact_staff_ids?: number; - union_ids?: number; - staff_id_nick_map?: number; - union_id_nick_map?: number; - }; + member_user_ids?: number + next_cursor?: string + has_more?: number + member_contact_staff_ids?: number + union_ids?: number + staff_id_nick_map?: number + union_id_nick_map?: number + } /** 请求是否成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiImChatScenegroupUpdateParams { /** 群主userid */ - owner_user_id?: string; + owner_user_id?: string /** 群头像mediaId */ - icon?: string; + icon?: string /** @all 权限,0-默认,所有人,1-仅群主可@all */ - mention_all_authority?: unknown; + mention_all_authority?: unknown /** 新成员是否可查看聊天历史消息,0-默认,否,1-是 */ - show_history_type?: unknown; + show_history_type?: unknown /** 入群验证,0:不入群验证(默认) 1:入群验证 */ - validation_type?: unknown; + validation_type?: unknown /** 群可搜索,0-默认,不可搜索,1-可搜索 */ - searchable?: unknown; + searchable?: unknown /** 群禁言,0-默认,不禁言,1-全员禁言 */ - chat_banned_type?: unknown; + chat_banned_type?: unknown /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */ - management_type?: unknown; + management_type?: unknown /** 群名称 */ - title?: string; + title?: string /** 群id */ - open_conversation_id: string; + open_conversation_id: string /** 仅群主和管理员可在群内发DING 0-不开启,1-开启 */ - only_admin_can_ding?: unknown; + only_admin_can_ding?: unknown /** 群会议 若开启,群内任意成员可发起视频和语音会议 0-不开启,1-开启 */ - all_members_can_create_mcs_conf?: unknown; + all_members_can_create_mcs_conf?: unknown /** 群日历 若开启,群内容非好友/同事的成员可相互发起钉钉日程 0-不开启,1-开启 */ - all_members_can_create_calendar?: unknown; + all_members_can_create_calendar?: unknown /** 禁止发送群邮件 若开启,群内成员不可再对本群发送群邮件 0-不开启,1-开启 */ - group_email_disabled?: unknown; + group_email_disabled?: unknown /** 仅群主和管理员可置顶群消息 0-不开启,1-开启 */ - only_admin_can_set_msg_top?: unknown; + only_admin_can_set_msg_top?: unknown /** 禁止群成员私聊 若开启,普通群成员之间不能够加好友、单聊,且部分功能使用受限(管理员与非管理员之间不受影响)0-不开启,1-开启 */ - add_friend_forbidden?: unknown; + add_friend_forbidden?: unknown /** 群直播 若开启,群内任意成员可发起群直播 0-不开启,1-开启 */ - group_live_switch?: unknown; + group_live_switch?: unknown /** 禁止非管理员向管理员发起单聊 若开启,非管理员不能向管理员发起单聊 0-不开启,1-开启 */ - members_to_admin_chat?: unknown; + members_to_admin_chat?: unknown /** 自定义群插件是否需要群主和管理员审批0-不需要审批,1-需要审批 */ - plugin_customize_verify?: unknown; + plugin_customize_verify?: unknown } export interface OapiImChatScenegroupUpdateResponse { /** 返回结果 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiImChatScenegroupMemberDeleteParams { /** 开放群id */ - open_conversation_id: string; + open_conversation_id: string /** 员工userid */ - user_ids?: string[]; + user_ids?: string[] /** 客户联系人staffId */ - contact_staff_ids?: string[]; + contact_staff_ids?: string[] } export interface OapiImChatScenegroupMemberDeleteResponse { /** 请求是否成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiImChatScenegroupGetParams { /** 群id */ - open_conversation_id: string; + open_conversation_id: string } export interface OapiImChatScenegroupGetResponse { /** 返回结果 */ result?: { - icon?: string; - management_options?: number; - title?: string; - template_id?: string; - open_conversation_id?: string; - sub_admin_staff_ids?: number; - owner_staff_id?: string; - group_url?: string; - member_amount?: number; - scene_data?: string; - }; + icon?: string + management_options?: number + title?: string + template_id?: string + open_conversation_id?: string + sub_admin_staff_ids?: number + owner_staff_id?: string + group_url?: string + member_amount?: number + scene_data?: string + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiRobotSendParams { /** 消息类型 */ - msgtype: string; + msgtype: string /** text类型 */ - text?: unknown; + text?: unknown /** 被@人的手机号 */ - at?: unknown; + at?: unknown /** 消息类型,此时固定为:link */ - link?: unknown; + link?: unknown /** 此消息类型为固定markdown */ - markdown?: unknown; + markdown?: unknown /** 此消息类型为固定actionCard */ - actionCard?: unknown; + actionCard?: unknown /** 此消息类型为固定feedCard */ - feedCard?: unknown; + feedCard?: unknown } export interface OapiRobotSendResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiAlitripBtripInvoiceSettingRuleParams { /** 入参 */ - request: unknown; + request: unknown } export interface OapiAlitripBtripInvoiceSettingRuleResponse { /** 操作是否成功 */ - success?: unknown; + success?: unknown /** 返回值 */ module?: { - add_num?: number; - remove_num?: number; - }; + add_num?: number + remove_num?: number + } /** 状态码 */ - errcode?: unknown; + errcode?: unknown /** 结果信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripInvoiceSettingAddParams { /** 入参 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripInvoiceSettingAddResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 状态码 */ - errcode?: unknown; + errcode?: unknown /** 结果信息 */ - errmsg?: string; + errmsg?: string /** 结果值 */ - module?: unknown; + module?: unknown } export interface OapiAlitripBtripProjectDeleteParams { /** 企业id */ - corpid: string; + corpid: string /** 第三方项目ID */ - third_part_id: string; + third_part_id: string } export interface OapiAlitripBtripProjectDeleteResponse { /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 操作结果 */ - success?: unknown; + success?: unknown /** 结果 */ - module?: unknown; + module?: unknown /** 异常信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripProjectModifyParams { /** 入参 */ - request: unknown; + request: unknown } export interface OapiAlitripBtripProjectModifyResponse { /** 是否操作成功 */ - success?: unknown; + success?: unknown /** 是否操作成功 */ - module?: unknown; + module?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripProjectAddParams { /** 入参 */ - request: unknown; + request: unknown } export interface OapiAlitripBtripProjectAddResponse { /** 是否操作成功 */ - success?: unknown; + success?: unknown /** 结果 */ - module?: string; + module?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripInvoiceSettingDeleteParams { /** 入参 */ - request?: unknown; + request?: unknown } export interface OapiAlitripBtripInvoiceSettingDeleteResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 值 */ - module?: unknown; + module?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripInvoiceSettingModifyParams { /** 入参 */ - request?: unknown; + request?: unknown } export interface OapiAlitripBtripInvoiceSettingModifyResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 返回值 */ - module?: unknown; + module?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripPriceQueryParams { /** 请求入参 */ - req: unknown; + req: unknown } export interface OapiAlitripBtripPriceQueryResponse { /** 接口返回 */ result?: { - success?: number; - module?: number; - errcode?: number; - errmsg?: string; - }; + success?: number + module?: number + errcode?: number + errmsg?: string + } } export interface OapiAlitripBtripTrainCitySuggestParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripTrainCitySuggestResponse { /** 结果对象 */ result?: { - cities?: number; - }; + cities?: number + } /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripMonthbillUrlGetParams { /** 请求对象 */ - request: unknown; + request: unknown } export interface OapiAlitripBtripMonthbillUrlGetResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 结果对象 */ module?: { - start_date?: string; - end_date?: string; - url?: string; - }[]; + start_date?: string + end_date?: string + url?: string + }[] /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripAddressGetParams { /** 请求对象 */ - request?: unknown; + request?: unknown } export interface OapiAlitripBtripAddressGetResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 结果对象 */ result?: { - url?: string; - }; + url?: string + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripApprovalModifyParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripApprovalModifyResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 结果对象 */ module?: { - apply_id?: number; - thirdpart_apply_id?: string; - }; + apply_id?: number + thirdpart_apply_id?: string + } } export interface OapiAlitripBtripFlightCitySuggestParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripFlightCitySuggestResponse { /** 结果对象 */ result?: { - cities?: number; - nearby?: number; - }; + cities?: number + nearby?: number + } /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripVehicleOrderSearchParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripVehicleOrderSearchResponse { /** 返回码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 成功标识 */ - success?: unknown; + success?: unknown /** 订单列表 */ vehicle_order_list?: { - id?: number; - gmt_create?: string; - gmt_modified?: string; - passenger_name?: string; - corpid?: string; - corp_name?: string; - user_name?: string; - userid?: string; - dept_name?: string; - deptid?: string; - apply_show_id?: string; - apply_id?: number; - real_from_city_name?: string; - real_to_city_name?: string; - from_address?: string; - to_address?: string; - from_city_name?: string; - to_city_name?: string; - memo?: string; - order_status?: number; - car_level?: string; - car_info?: string; - estimate_price?: string; - publish_time?: string; - taken_time?: string; - driver_confirm_time?: string; - cancel_time?: string; - travel_distance?: string; - pay_time?: string; - service_type?: number; - business_category?: string; - cost_center_id?: number; - cost_center_number?: string; - cost_center_name?: string; - invoice_id?: number; - invoice_title?: string; - project_code?: string; - project_title?: string; - price_info_list?: number; - thirdpart_itinerary_id?: string; - user_affiliate_list?: number; - user_confirm?: number; - provider?: number; - real_from_address?: string; - real_to_address?: string; - thirdpart_apply_id?: string; - btrip_title?: string; - is_special?: number; - special_types?: number; - project_id?: number; - third_part_project_id?: string; - }[]; + id?: number + gmt_create?: string + gmt_modified?: string + passenger_name?: string + corpid?: string + corp_name?: string + user_name?: string + userid?: string + dept_name?: string + deptid?: string + apply_show_id?: string + apply_id?: number + real_from_city_name?: string + real_to_city_name?: string + from_address?: string + to_address?: string + from_city_name?: string + to_city_name?: string + memo?: string + order_status?: number + car_level?: string + car_info?: string + estimate_price?: string + publish_time?: string + taken_time?: string + driver_confirm_time?: string + cancel_time?: string + travel_distance?: string + pay_time?: string + service_type?: number + business_category?: string + cost_center_id?: number + cost_center_number?: string + cost_center_name?: string + invoice_id?: number + invoice_title?: string + project_code?: string + project_title?: string + price_info_list?: number + thirdpart_itinerary_id?: string + user_affiliate_list?: number + user_confirm?: number + provider?: number + real_from_address?: string + real_to_address?: string + thirdpart_apply_id?: string + btrip_title?: string + is_special?: number + special_types?: number + project_id?: number + third_part_project_id?: string + }[] /** 分页信息 */ page_info?: { - page?: number; - page_size?: number; - total_number?: number; - }; + page?: number + page_size?: number + total_number?: number + } } export interface OapiAlitripBtripCostCenterQueryParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterQueryResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 成本中心列表 */ cost_center_list?: { - id?: number; - corpid?: string; - title?: string; - number?: string; - thirdpart_id?: string; - scope?: number; - alipay_no?: string; - entity_list?: number; - }[]; + id?: number + corpid?: string + title?: string + number?: string + thirdpart_id?: string + scope?: number + alipay_no?: string + entity_list?: number + }[] } export interface OapiAlitripBtripApprovalUpdateParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripApprovalUpdateResponse { /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripCostCenterNewParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterNewResponse { /** 成本中心对象 */ result?: { - id?: number; - }; + id?: number + } /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiAlitripBtripCostCenterModifyParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterModifyResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripCostCenterDeleteParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterDeleteResponse { /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripCostCenterEntitySetParams { /** 请求对象 */ - rq?: unknown; + rq?: unknown } export interface OapiAlitripBtripCostCenterEntitySetResponse { /** 成本标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 结果对象 */ result?: { - add_num?: number; - remove_num?: number; - selected_user_num?: number; - }; + add_num?: number + remove_num?: number + selected_user_num?: number + } } export interface OapiAlitripBtripHotelOrderSearchParams { /** rq */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripHotelOrderSearchResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 酒店订单列表 */ module?: { - id?: number; - gmt_create?: string; - gmt_modified?: string; - corpid?: string; - corp_name?: string; - userid?: string; - user_name?: string; - deptid?: string; - dept_name?: string; - apply_id?: number; - contact_name?: string; - city?: string; - hotel_name?: string; - check_in?: string; - check_out?: string; - room_type?: string; - room_num?: number; - night?: number; - guest?: string; - order_type_desc?: string; - order_status_desc?: string; - cost_center?: number; - invoice?: number; - price_info_list?: number; - thirdpart_itinerary_id?: string; - order_status?: number; - order_type?: number; - user_affiliate_list?: number; - thirdpart_apply_id?: string; - btrip_title?: string; - project_id?: number; - project_code?: string; - project_title?: string; - thirdpart_Project_Id?: string; - hotel_support_vat_invoice_type?: number; - }[]; + id?: number + gmt_create?: string + gmt_modified?: string + corpid?: string + corp_name?: string + userid?: string + user_name?: string + deptid?: string + dept_name?: string + apply_id?: number + contact_name?: string + city?: string + hotel_name?: string + check_in?: string + check_out?: string + room_type?: string + room_num?: number + night?: number + guest?: string + order_type_desc?: string + order_status_desc?: string + cost_center?: number + invoice?: number + price_info_list?: number + thirdpart_itinerary_id?: string + order_status?: number + order_type?: number + user_affiliate_list?: number + thirdpart_apply_id?: string + btrip_title?: string + project_id?: number + project_code?: string + project_title?: string + thirdpart_Project_Id?: string + hotel_support_vat_invoice_type?: number + }[] /** 分页相关信息 */ page_info?: { - page?: number; - page_size?: number; - total_number?: number; - }; + page?: number + page_size?: number + total_number?: number + } } export interface OapiAlitripBtripTrainOrderSearchParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripTrainOrderSearchResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** module */ train_order_list?: { - id?: number; - gmt_create?: string; - gmt_modified?: string; - corpid?: string; - corp_name?: string; - userid?: string; - user_name?: string; - deptid?: string; - dept_name?: string; - apply_id?: number; - contact_name?: string; - dep_station?: string; - arr_station?: string; - dep_time?: string; - arr_time?: string; - train_number?: string; - train_type?: string; - seat_type?: string; - run_time?: string; - ticket_no_12306?: string; - dep_city?: string; - arr_city?: string; - rider_name?: string; - ticket_count?: number; - status?: number; - invoice?: number; - cost_center?: number; - price_info_list?: number; - thirdpart_itinerary_id?: string; - user_affiliate_list?: number; - thirdpart_apply_id?: string; - btrip_title?: string; - project_id?: number; - project_code?: string; - project_title?: string; - third_part_project_id?: string; - }[]; + id?: number + gmt_create?: string + gmt_modified?: string + corpid?: string + corp_name?: string + userid?: string + user_name?: string + deptid?: string + dept_name?: string + apply_id?: number + contact_name?: string + dep_station?: string + arr_station?: string + dep_time?: string + arr_time?: string + train_number?: string + train_type?: string + seat_type?: string + run_time?: string + ticket_no_12306?: string + dep_city?: string + arr_city?: string + rider_name?: string + ticket_count?: number + status?: number + invoice?: number + cost_center?: number + price_info_list?: number + thirdpart_itinerary_id?: string + user_affiliate_list?: number + thirdpart_apply_id?: string + btrip_title?: string + project_id?: number + project_code?: string + project_title?: string + third_part_project_id?: string + }[] /** 分页相关信息 */ page_info?: { - page?: number; - page_size?: number; - total_number?: number; - }; + page?: number + page_size?: number + total_number?: number + } } export interface OapiAlitripBtripFlightOrderSearchParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripFlightOrderSearchResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 机票列表 */ flight_order_list?: { - id?: number; - gmt_modified?: string; - userid?: string; - corp_name?: string; - corpid?: string; - gmt_create?: string; - user_name?: string; - deptid?: string; - dept_name?: string; - apply_id?: string; - contact_name?: string; - dep_city?: string; - arr_city?: string; - dep_date?: string; - ret_date?: string; - trip_type?: number; - passenger_count?: number; - cabin_class?: string; - status?: number; - discount?: string; - flight_no?: string; - passenger_name?: string; - dep_airport?: string; - arr_airport?: string; - invoice?: number; - cost_center?: number; - price_info_list?: number; - insureInfo_list?: number; - thirdpart_itinerary_id?: string; - user_affiliate_list?: number; - thirdpart_apply_id?: string; - btrip_title?: string; - project_id?: number; - project_code?: string; - project_title?: string; - third_part_project_id?: string; - }[]; + id?: number + gmt_modified?: string + userid?: string + corp_name?: string + corpid?: string + gmt_create?: string + user_name?: string + deptid?: string + dept_name?: string + apply_id?: string + contact_name?: string + dep_city?: string + arr_city?: string + dep_date?: string + ret_date?: string + trip_type?: number + passenger_count?: number + cabin_class?: string + status?: number + discount?: string + flight_no?: string + passenger_name?: string + dep_airport?: string + arr_airport?: string + invoice?: number + cost_center?: number + price_info_list?: number + insureInfo_list?: number + thirdpart_itinerary_id?: string + user_affiliate_list?: number + thirdpart_apply_id?: string + btrip_title?: string + project_id?: number + project_code?: string + project_title?: string + third_part_project_id?: string + }[] /** 分页相关信息 */ page_info?: { - page?: number; - page_size?: number; - total_number?: number; - }; + page?: number + page_size?: number + total_number?: number + } } export interface OapiAlitripBtripInvoiceSearchParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripInvoiceSearchResponse { /** 发票列表 */ invoice?: { - id?: number; - title?: string; - third_part_invoice_id?: string; - }[]; + id?: number + title?: string + third_part_invoice_id?: string + }[] /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown } export interface OapiAlitripBtripCostCenterTransferParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterTransferResponse { /** 成功标识 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiAlitripBtripApplyGetParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripApplyGetResponse { /** 审批单对象 */ module?: { - id?: number; - apply_show_id?: string; - gmt_create?: string; - gmt_modified?: string; - thirdpart_id?: string; - corpid?: string; - corp_name?: string; - userid?: string; - user_name?: string; - deptid?: string; - trip_day?: number; - dept_name?: string; - trip_cause?: string; - trip_title?: string; - status?: number; - status_desc?: string; - itinerary_list?: number; - traveler_list?: number; - approver_list?: number; - type?: number; - union_no?: string; - external_traveler_list?: number; - }; - /** 错误信息 */ - errmsg?: string; - /** 错误码 */ - errcode?: unknown; + id?: number + apply_show_id?: string + gmt_create?: string + gmt_modified?: string + thirdpart_id?: string + corpid?: string + corp_name?: string + userid?: string + user_name?: string + deptid?: string + trip_day?: number + dept_name?: string + trip_cause?: string + trip_title?: string + status?: number + status_desc?: string + itinerary_list?: number + traveler_list?: number + approver_list?: number + type?: number + union_no?: string + external_traveler_list?: number + } + /** 错误信息 */ + errmsg?: string + /** 错误码 */ + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripApplySearchParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripApplySearchResponse { /** 审批单列表 */ module?: { - id?: number; - apply_show_id?: string; - gmt_create?: string; - gmt_modified?: string; - thirdpart_id?: string; - corpid?: string; - userid?: string; - deptid?: string; - corp_name?: string; - user_name?: string; - dept_name?: string; - trip_day?: number; - trip_cause?: string; - trip_title?: string; - status?: number; - status_desc?: string; - itinerary_list?: number; - traveler_list?: number; - approver_list?: number; - flow_code?: string; - type?: number; - union_no?: string; - external_traveler_list?: number; - }[]; - /** 错误信息 */ - errmsg?: string; - /** 错误码 */ - errcode?: unknown; + id?: number + apply_show_id?: string + gmt_create?: string + gmt_modified?: string + thirdpart_id?: string + corpid?: string + userid?: string + deptid?: string + corp_name?: string + user_name?: string + dept_name?: string + trip_day?: number + trip_cause?: string + trip_title?: string + status?: number + status_desc?: string + itinerary_list?: number + traveler_list?: number + approver_list?: number + flow_code?: string + type?: number + union_no?: string + external_traveler_list?: number + }[] + /** 错误信息 */ + errmsg?: string + /** 错误码 */ + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripApprovalNewParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripApprovalNewResponse { /** 结果对象 */ module?: { - thirdpart_apply_id?: string; - apply_id?: number; - }; + thirdpart_apply_id?: string + apply_id?: number + } /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiAlitripBtripCostCenterEntityDeleteParams { /** 请求对象 */ - rq: unknown; + rq: unknown } export interface OapiAlitripBtripCostCenterEntityDeleteResponse { /** 结果对象 */ result?: { - selected_user_num?: number; - remove_num?: number; - }; + selected_user_num?: number + remove_num?: number + } /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 成功标识 */ - success?: unknown; + success?: unknown } export interface OapiWorkspaceAuditlogListParams { /** 操作日志起始时间,unix时间戳,单位ms */ - start_date: unknown; + start_date: unknown /** 操作日志截止时间,unix时间戳,单位ms */ - end_date: unknown; + end_date: unknown /** 操作列表长度,最大500 */ - page_size: unknown; + page_size: unknown /** 操作记录生成时间,作为分页偏移量,分页查询时必传,unix时间戳,单位ms */ - load_more_gmt_create?: unknown; + load_more_gmt_create?: unknown /** 操作记录文件id,作为分页偏移量,与load_more_gmt_create一起使用,返回记录的biz_id为load_more_biz_id且gmt_create为load_more_gmt_create之后的操作列表,分页查询获取下一页时,传最后一条记录的biz_id和gmt_create。 */ - load_more_bizId?: unknown; + load_more_bizId?: unknown } export interface OapiWorkspaceAuditlogListResponse { /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string /** 返回值 */ result?: { - log_list?: number; - }; + log_list?: number + } } export interface OapiEduCertGetParams { /** 学校人员id */ - userid: string; + userid: string } export interface OapiEduCertGetResponse { /** 请求是否成功 */ - success?: unknown; + success?: unknown /** 返回结果值 */ result?: { - current_cert_level?: number; - cert_datas?: number; - practical_task_data?: number; - }; + current_cert_level?: number + cert_datas?: number + practical_task_data?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误消息 */ - errmsg?: string; + errmsg?: string } export interface OapiEduUserListParams { /** 最大30条,最小1条 */ - page_size: unknown; + page_size: unknown /** 页码,从1开始 */ - page_no: unknown; + page_no: unknown /** 家校人员身份 */ - role: string; + role: string /** 班级id */ - class_id: unknown; + class_id: unknown } export interface OapiEduUserListResponse { /** 结果值 */ result?: { - has_more?: number; - details?: number; - }; + has_more?: number + details?: number + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误码,只有当success为false时才有效 */ - errcode?: unknown; + errcode?: unknown /** 错误信息,只有当success为false时才有效 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceDeviceQuerybyidParams { /** 设备查询对象 */ - device_query_vo: unknown; + device_query_vo: unknown } export interface OapiSmartdeviceDeviceQuerybyidResponse { /** 返回结果 */ result?: { - device_mac?: string; - corp_id?: string; - nick?: string; - device_id?: string; - device_name?: string; - pk?: string; - userid?: string; - ext?: string; - sn?: string; - }; + device_mac?: string + corp_id?: string + nick?: string + device_id?: string + device_name?: string + pk?: string + userid?: string + ext?: string + sn?: string + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceDeviceQuerylistParams { /** 列表查询对象 */ - page_query_vo: unknown; + page_query_vo: unknown } export interface OapiSmartdeviceDeviceQuerylistResponse { /** 返回结果 */ result?: { - next_cursor?: number; - has_more?: number; - list?: number; - }; + next_cursor?: number + has_more?: number + list?: number + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceDeviceQueryParams { /** 设备查询对象 */ - device_query_vo?: unknown; + device_query_vo?: unknown } export interface OapiSmartdeviceDeviceQueryResponse { /** 返回结果 */ result?: { - device_mac?: string; - corp_id?: string; - nick?: string; - device_id?: string; - device_name?: string; - pk?: string; - userid?: string; - ext?: string; - sn?: string; - }; + device_mac?: string + corp_id?: string + nick?: string + device_id?: string + device_name?: string + pk?: string + userid?: string + ext?: string + sn?: string + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceDeviceUpdatenickParams { /** 昵称修改参数 */ - device_nick_modify_vo?: unknown; + device_nick_modify_vo?: unknown } export interface OapiSmartdeviceDeviceUpdatenickResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceDeviceUnbindParams { /** 解绑参数 */ - device_unbind_vo?: unknown; + device_unbind_vo?: unknown } export interface OapiSmartdeviceDeviceUnbindResponse { /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiSmartdeviceExternalBindParams { /** 设备请求信息 */ - device_bind_req_vo: unknown; + device_bind_req_vo: unknown } export interface OapiSmartdeviceExternalBindResponse { /** 返回结果 */ result?: { - device_id?: string; - }; + device_id?: string + } /** 是否成功 */ - success?: unknown; + success?: unknown /** 错误代码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataContactDeleteParams { /** 操作人用户ID */ - operator_userid: string; + operator_userid: string /** 联系人实例ID */ - data_id: string; + data_id: string } export interface OapiCrmObjectdataContactDeleteResponse { /** 删除结果 */ result?: { - instance_id?: string; - }; + instance_id?: string + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataCustomobjectCreateParams { /** 自定义对象数据 */ - instance: unknown; + instance: unknown } export interface OapiCrmObjectdataCustomobjectCreateResponse { /** 结果 */ result?: { - instance_id?: string; - }; + instance_id?: string + } /** 执行结果 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataCustomobjectUpdateParams { /** 自定义对象数据 */ - instance: unknown; + instance: unknown } export interface OapiCrmObjectdataCustomobjectUpdateResponse { /** 结果 */ result?: { - instance_id?: string; - }; + instance_id?: string + } /** 执行结果 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataListParams { /** 操作人用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 数据ID列表 */ - data_id_list: string[]; + data_id_list: string[] /** 表单名称 */ - name: string; + name: string } export interface OapiCrmObjectdataListResponse { /** 实例数据 */ result_list?: { - creator_nick?: string; - gmt_modified?: string; - creator_userid?: string; - instance_id?: string; - data?: number; - extend_data?: number; - gmt_create?: string; - object_type?: string; - permission?: number; - proc_out_result?: string; - proc_inst_status?: string; - }[]; + creator_nick?: string + gmt_modified?: string + creator_userid?: string + instance_id?: string + data?: number + extend_data?: number + gmt_create?: string + object_type?: string + permission?: number + proc_out_result?: string + proc_inst_status?: string + }[] /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataQueryParams { /** 用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 分页游标 */ - cursor?: string; + cursor?: string /** 分页大小 */ - page_size: unknown; + page_size: unknown /** 表单code */ - name: string; + name: string /** 查询条件 */ - query_dsl?: string; + query_dsl?: string } export interface OapiCrmObjectdataQueryResponse { /** 分页结果 */ result?: { - next_cursor?: string; - values?: number; - has_more?: number; - page_size?: number; - }; + next_cursor?: string + values?: number + has_more?: number + page_size?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectmetaDescribeParams { /** 目标名称 */ - name: string; + name: string } export interface OapiCrmObjectmetaDescribeResponse { /** result */ result?: { - name?: string; - customized?: number; - fields?: number; - }; + name?: string + customized?: number + fields?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataContactQueryParams { /** 用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 分页游标 */ - cursor?: string; + cursor?: string /** 分页大小 */ - page_size: unknown; + page_size: unknown /** 服务商组织 id,自建应用可以传入 */ - provider_corpid?: string; + provider_corpid?: string /** 查询条件 */ - query_dsl?: string; + query_dsl?: string } export interface OapiCrmObjectdataContactQueryResponse { /** 分页结果 */ result?: { - next_cursor?: string; - values?: number; - has_more?: number; - page_size?: number; - }; + next_cursor?: string + values?: number + has_more?: number + page_size?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataFollowrecordListParams { /** 操作人用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 数据ID列表 */ - data_id_list: string[]; + data_id_list: string[] } export interface OapiCrmObjectdataFollowrecordListResponse { /** 实例数据 */ result_list?: { - creator_nick?: string; - gmt_modified?: string; - creator_userid?: string; - instance_id?: string; - data?: number; - extend_data?: number; - gmt_create?: string; - object_type?: string; - permission?: number; - proc_inst_status?: string; - proc_out_result?: string; - }[]; + creator_nick?: string + gmt_modified?: string + creator_userid?: string + instance_id?: string + data?: number + extend_data?: number + gmt_create?: string + object_type?: string + permission?: number + proc_inst_status?: string + proc_out_result?: string + }[] /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataFollowrecordQueryParams { /** 用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 分页游标 */ - cursor?: string; + cursor?: string /** 分页大小 */ - page_size: unknown; + page_size: unknown /** 查询条件 */ - query_dsl?: string; + query_dsl?: string } export interface OapiCrmObjectdataFollowrecordQueryResponse { /** 分页结果 */ result?: { - next_cursor?: string; - values?: number; - has_more?: number; - page_size?: number; - }; + next_cursor?: string + values?: number + has_more?: number + page_size?: number + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectdataContactListParams { /** 操作人用户ID */ - current_operator_userid?: string; + current_operator_userid?: string /** 数据ID列表 */ - data_id_list: string[]; + data_id_list: string[] /** 自建应用时传入定制服务商ID */ - provider_corpid?: string; + provider_corpid?: string } export interface OapiCrmObjectdataContactListResponse { /** 实例数据 */ result_list?: { - creator_nick?: string; - gmt_modified?: string; - creator_userid?: string; - instance_id?: string; - data?: number; - extend_data?: number; - gmt_create?: string; - object_type?: string; - permission?: number; - proc_inst_status?: string; - proc_out_result?: string; - }[]; + creator_nick?: string + gmt_modified?: string + creator_userid?: string + instance_id?: string + data?: number + extend_data?: number + gmt_create?: string + object_type?: string + permission?: number + proc_inst_status?: string + proc_out_result?: string + }[] /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectmetaContactDescribeResponse { /** result */ result?: { - name?: string; - customized?: number; - fields?: number; - status?: string; - code?: string; - }; + name?: string + customized?: number + fields?: number + status?: string + code?: string + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCrmObjectmetaFollowrecordDescribeResponse { /** result */ result?: { - name?: string; - customized?: number; - fields?: number; - status?: string; - code?: string; - }; + name?: string + customized?: number + fields?: number + status?: string + code?: string + } /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiCspaceAddToSingleChatParams { /** 文件名(需包含含扩展名),需要utf-8 urlEncode */ - file_name?: string; + file_name?: string /** 调用钉盘上传文件接口得到的mediaid,需要utf-8 urlEncode */ - media_id?: string; + media_id?: string /** 文件发送者微应用的agentId */ - userid?: string; + userid?: string /** 文件接收人的userid */ - agent_id?: string; + agent_id?: string } export interface OapiCspaceAddToSingleChatResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiCspaceGrantCustomSpaceQuery { /** ISV调用时传入,授权访问指定微应用的自定义空间 */ - agent_id?: string; + agent_id?: string /** 企业调用时传入,授权访问该domain的自定义空间 */ - domain?: string; + domain?: string /** 权限类型,目前支持上传和下载,上传请传add,下载请传download */ - type?: string; + type?: string /** 企业用户userid */ - userid?: string; + userid?: string /** 授权访问的路径,如授权访问所有文件传“/”,授权访问/doc文件夹传“/doc/” 需要utf-8 urlEncode */ - path?: string; + path?: string /** 授权访问的文件id列表,id之间用英文逗号隔开,如“fileId1,fileId2” */ - fileids?: string; + fileids?: string /** 权限有效时间,有效范围为0~3600秒,超出此范围或不传默认为30秒 */ - duration?: unknown; + duration?: unknown } export interface OapiCspaceGrantCustomSpaceResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiCspaceGetCustomSpaceQuery { /** 企业调用时传入,需要为10个字节以内的字符串,仅可包含字母和数字,大小写不敏感 */ - domain?: string; + domain?: string /** ISV调用时传入,微应用agentId */ - agent_id?: string; + agent_id?: string } export interface OapiCspaceGetCustomSpaceResponse { /** spaceid */ - spaceid?: string; + spaceid?: string /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiCspaceAddQuery { /** 微应用的agentId */ - agent_id?: string; + agent_id?: string /** 如果是微应用,code值为微应用免登授权码,如果是服务窗应用,code值为服务窗免登授权码。code为临时授权码,只能消费一次,下次请求需要重新获取新的code。 */ - code?: string; + code?: string /** 调用钉盘上传文件接口得到的mediaid, 需要utf-8 urlEncode */ - media_id?: string; + media_id?: string /** 调用云盘选择控件后获取的用户钉盘空间ID */ - folder_id?: string; + folder_id?: string /** 调用云盘选择控件后获取的用户钉盘文件夹ID */ - space_id?: string; + space_id?: string /** 上传文件的名称,不能包含非法字符,需要utf-8 urlEncode */ - name?: string; + name?: string /** 遇到同名文件是否覆盖,若不覆盖,则会自动重命名本次新增的文件,默认为false */ - overwrite?: unknown; + overwrite?: unknown } export interface OapiCspaceAddResponse { /** dentry */ - dentry?: string; + dentry?: string /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiChatSubadminUpdateParams { /** 群会话id */ - chatid: string; + chatid: string /** 群成员id */ - userids: string[]; + userids: string[] /** 设置2添加为管理员,设置3删除该管理员 */ - role: unknown; + role: unknown } export interface OapiChatSubadminUpdateResponse { /** 是否调用成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiChatQrcodeGetParams { /** 会话id(逐步淘汰推荐使用openConversationId) */ - chatid?: string; + chatid?: string /** 分享二维码用户id */ - userid: string; + userid: string /** 开放群id(与会话id 二选一) */ - openConversationId?: string; + openConversationId?: string } export interface OapiChatQrcodeGetResponse { /** 返回入群的链接 */ - result?: string; + result?: string /** 是否调用成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiChatMemberFriendswitchUpdateParams { /** 会话Id */ - chatid: string; + chatid: string /** true开启禁止开关,false关闭禁止开关 */ - is_prohibit: unknown; + is_prohibit: unknown } export interface OapiChatMemberFriendswitchUpdateResponse { /** 是否设置成功 */ - success?: unknown; + success?: unknown /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** 错误信息 */ - errmsg?: string; + errmsg?: string } export interface OapiChatUpdategroupnickParams { /** 用户userid */ - userid: string; + userid: string /** chatid */ - chatid: string; + chatid: string /** 群昵称 */ - group_nick: string; + group_nick: string } export interface OapiChatUpdategroupnickResponse { /** dingOpenErrcode */ - errcode?: unknown; + errcode?: unknown /** errorMsg */ - errmsg?: string; + errmsg?: string /** success */ - success?: unknown; + success?: unknown } export interface OapiChatUpdateParams { /** 群会话id */ - chatid?: string; + chatid?: string /** 群名称 */ - name?: string; + name?: string /** 群主的userId */ - owner?: string; + owner?: string /** 群主类型,emp:企业员工,ext:外部联系人 */ - ownerType?: string; + ownerType?: string /** 添加成员列表 */ - add_useridlist?: string[]; + add_useridlist?: string[] /** 删除成员列表 */ - del_useridlist?: string[]; + del_useridlist?: string[] /** 添加外部联系人成员列表 */ - add_extidlist?: string[]; + add_extidlist?: string[] /** 删除外部联系人成员列表 */ - del_extidlist?: string[]; + del_extidlist?: string[] /** 群头像mediaId */ - icon?: string; + icon?: string /** 是否禁言 */ - isBan?: unknown; + isBan?: unknown /** 群可搜索,0-默认,不可搜索,1-可搜索 */ - searchable?: unknown; + searchable?: unknown /** 入群验证,0:不入群验证(默认) 1:入群验证 */ - validationType?: unknown; + validationType?: unknown /** @all 权限,0-默认,所有人,1-仅群主可@all */ - mentionAllAuthority?: unknown; + mentionAllAuthority?: unknown /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */ - managementType?: unknown; + managementType?: unknown /** 群禁言,0-默认,不禁言,1-全员禁言 */ - chatBannedType?: unknown; + chatBannedType?: unknown /** 新成员可查看聊天历史 0否 1是 */ - showHistoryType?: unknown; + showHistoryType?: unknown } export interface OapiChatUpdateResponse { /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiChatCreateParams { /** 群名称 */ - name?: string; + name?: string /** 群主的userId */ - owner?: string; + owner?: string /** 群成员userId列表 */ - useridlist?: string[]; + useridlist?: string[] /** 新成员可查看100条聊天历史消息的类型,1:可查看,默认或0:不可查看 */ - showHistoryType?: unknown; + showHistoryType?: unknown /** 群可搜索,0-默认,不可搜索,1-可搜索 */ - searchable?: unknown; + searchable?: unknown /** 入群验证,0:不入群验证(默认) 1:入群验证 */ - validationType?: unknown; + validationType?: unknown /** @all 权限,0-默认,所有人,1-仅群主可@all */ - mentionAllAuthority?: unknown; + mentionAllAuthority?: unknown /** 管理类型,0-默认,所有人可管理,1-仅群主可管理 */ - managementType?: unknown; + managementType?: unknown /** 群禁言,0-默认,不禁言,1-全员禁言 */ - chatBannedType?: unknown; + chatBannedType?: unknown } export interface OapiChatCreateResponse { /** conversationTag */ - conversationTag?: unknown; + conversationTag?: unknown /** openConversationId */ - openConversationId?: string; + openConversationId?: string /** chatid */ - chatid?: string; + chatid?: string /** errmsg */ - errmsg?: string; + errmsg?: string /** errcode */ - errcode?: unknown; + errcode?: unknown } export interface OapiChatGetQuery { /** 群会话的id */ - chatid?: string; + chatid?: string } export interface OapiChatGetResponse { /** errcode */ - errcode?: unknown; + errcode?: unknown /** errmsg */ - errmsg?: string; + errmsg?: string /** chat_info */ chat_info?: { - name?: string; - owner?: string; - useridlist?: number; - extidlist?: number; - agentidlist?: number; - conversationTag?: number; - chatBannedType?: number; - searchable?: number; - validationType?: number; - mentionAllAuthority?: number; - managementType?: number; - showHistoryType?: number; - icon?: string; - status?: number; - }; + name?: string + owner?: string + useridlist?: number + extidlist?: number + agentidlist?: number + conversationTag?: number + chatBannedType?: number + searchable?: number + validationType?: number + mentionAllAuthority?: number + managementType?: number + showHistoryType?: number + icon?: string + status?: number + } } export interface OapiSmartbotMsgPushParams { /** 消息体,具体见文档 */ - msg: unknown; + msg: unknown /** 接收者的用户userid列表 */ - user_id_list?: string[]; + user_id_list?: string[] /** 接收者的会话chatid列表 */ - chat_id_list?: string[]; + chat_id_list?: string[] /** 是否发送给企业全部用户,”true“则忽略用户列表和会话列表 */ - to_all_user?: unknown; + to_all_user?: unknown } export interface OapiSmartbotMsgPushResponse { /** 创建的异步发送任务id */ - task_id?: string; + task_id?: string /** 错误码 */ - errcode?: unknown; + errcode?: unknown /** errorMsg */ - errmsg?: string; + errmsg?: string } // funcName: isOldApi Internal.define({ - "/service/get_corp_token": { POST: { OapiServiceGetCorpToken: true } }, - "/sso/gettoken": { GET: { OapiSsoGettoken: true } }, - "/get_jsapi_ticket": { GET: { OapiGetJsapiTicket: true } }, - "/gettoken": { GET: { OapiGettoken: true } }, - "/v2/user/getuserinfo": { POST: { OapiV2UserGetuserinfo: true } }, - "/sns/getuserinfo_bycode": { POST: { OapiSnsGetuserinfoBycode: true } }, - "/sso/getuserinfo": { GET: { OapiSsoGetuserinfo: true } }, - "/service/get_auth_info": { POST: { OapiServiceGetAuthInfo: true } }, - "/v2/user/update": { POST: { OapiV2UserUpdate: true } }, - "/v2/user/create": { POST: { OapiV2UserCreate: true } }, - "/org/union/trunk/get": { POST: { OapiOrgUnionTrunkGet: true } }, - "/smartwork/hrm/roster/meta/get": { + '/service/get_corp_token': { POST: { OapiServiceGetCorpToken: true } }, + '/sso/gettoken': { GET: { OapiSsoGettoken: true } }, + '/get_jsapi_ticket': { GET: { OapiGetJsapiTicket: true } }, + '/gettoken': { GET: { OapiGettoken: true } }, + '/v2/user/getuserinfo': { POST: { OapiV2UserGetuserinfo: true } }, + '/sns/getuserinfo_bycode': { POST: { OapiSnsGetuserinfoBycode: true } }, + '/sso/getuserinfo': { GET: { OapiSsoGetuserinfo: true } }, + '/service/get_auth_info': { POST: { OapiServiceGetAuthInfo: true } }, + '/v2/user/update': { POST: { OapiV2UserUpdate: true } }, + '/v2/user/create': { POST: { OapiV2UserCreate: true } }, + '/org/union/trunk/get': { POST: { OapiOrgUnionTrunkGet: true } }, + '/smartwork/hrm/roster/meta/get': { POST: { OapiSmartworkHrmRosterMetaGet: true }, }, - "/smartwork/hrm/employee/v2/list": { + '/smartwork/hrm/employee/v2/list': { POST: { OapiSmartworkHrmEmployeeV2List: true }, }, - "/smartwork/hrm/employee/v2/update": { + '/smartwork/hrm/employee/v2/update': { POST: { OapiSmartworkHrmEmployeeV2Update: true }, }, - "/smartwork/hrm/employee/field/grouplist": { + '/smartwork/hrm/employee/field/grouplist': { POST: { OapiSmartworkHrmEmployeeFieldGrouplist: true }, }, - "/smartwork/hrm/employee/update": { + '/smartwork/hrm/employee/update': { POST: { OapiSmartworkHrmEmployeeUpdate: true }, }, - "/smartwork/hrm/employee/queryonjob": { + '/smartwork/hrm/employee/queryonjob': { POST: { OapiSmartworkHrmEmployeeQueryonjob: true }, }, - "/smartwork/hrm/employee/querypreentry": { + '/smartwork/hrm/employee/querypreentry': { POST: { OapiSmartworkHrmEmployeeQuerypreentry: true }, }, - "/smartwork/hrm/employee/addpreentry": { + '/smartwork/hrm/employee/addpreentry': { POST: { OapiSmartworkHrmEmployeeAddpreentry: true }, }, - "/smartwork/hrm/employee/list": { + '/smartwork/hrm/employee/list': { POST: { OapiSmartworkHrmEmployeeList: true }, }, - "/report/template/getbyname": { POST: { OapiReportTemplateGetbyname: true } }, - "/report/create": { POST: { OapiReportCreate: true } }, - "/report/savecontent": { POST: { OapiReportSavecontent: true } }, - "/report/simplelist": { POST: { OapiReportSimplelist: true } }, - "/report/statistics/listbytype": { + '/report/template/getbyname': { POST: { OapiReportTemplateGetbyname: true } }, + '/report/create': { POST: { OapiReportCreate: true } }, + '/report/savecontent': { POST: { OapiReportSavecontent: true } }, + '/report/simplelist': { POST: { OapiReportSimplelist: true } }, + '/report/statistics/listbytype': { POST: { OapiReportStatisticsListbytype: true }, }, - "/report/receiver/list": { POST: { OapiReportReceiverList: true } }, - "/report/comment/list": { POST: { OapiReportCommentList: true } }, - "/report/statistics": { POST: { OapiReportStatistics: true } }, - "/report/getunreadcount": { POST: { OapiReportGetunreadcount: true } }, - "/report/list": { POST: { OapiReportList: true } }, - "/report/template/listbyuserid": { + '/report/receiver/list': { POST: { OapiReportReceiverList: true } }, + '/report/comment/list': { POST: { OapiReportCommentList: true } }, + '/report/statistics': { POST: { OapiReportStatistics: true } }, + '/report/getunreadcount': { POST: { OapiReportGetunreadcount: true } }, + '/report/list': { POST: { OapiReportList: true } }, + '/report/template/listbyuserid': { POST: { OapiReportTemplateListbyuserid: true }, }, - "/checkin/record/get": { POST: { OapiCheckinRecordGet: true } }, - "/checkin/record": { GET: { OapiCheckinRecord: true } }, - "/blackboard/category/list": { POST: { OapiBlackboardCategoryList: true } }, - "/blackboard/update": { POST: { OapiBlackboardUpdate: true } }, - "/blackboard/delete": { POST: { OapiBlackboardDelete: true } }, - "/blackboard/get": { POST: { OapiBlackboardGet: true } }, - "/blackboard/listids": { POST: { OapiBlackboardListids: true } }, - "/blackboard/create": { POST: { OapiBlackboardCreate: true } }, - "/blackboard/listtopten": { POST: { OapiBlackboardListtopten: true } }, - "/health/stepinfo/getuserstatus": { + '/checkin/record/get': { POST: { OapiCheckinRecordGet: true } }, + '/checkin/record': { GET: { OapiCheckinRecord: true } }, + '/blackboard/category/list': { POST: { OapiBlackboardCategoryList: true } }, + '/blackboard/update': { POST: { OapiBlackboardUpdate: true } }, + '/blackboard/delete': { POST: { OapiBlackboardDelete: true } }, + '/blackboard/get': { POST: { OapiBlackboardGet: true } }, + '/blackboard/listids': { POST: { OapiBlackboardListids: true } }, + '/blackboard/create': { POST: { OapiBlackboardCreate: true } }, + '/blackboard/listtopten': { POST: { OapiBlackboardListtopten: true } }, + '/health/stepinfo/getuserstatus': { POST: { OapiHealthStepinfoGetuserstatus: true }, }, - "/health/stepinfo/listbyuserid": { + '/health/stepinfo/listbyuserid': { POST: { OapiHealthStepinfoListbyuserid: true }, }, - "/health/stepinfo/list": { POST: { OapiHealthStepinfoList: true } }, - "/microapp/list_by_userid": { GET: { OapiMicroappListByUserid: true } }, - "/microapp/list": { POST: { OapiMicroappList: true } }, - "/microapp/delete": { POST: { OapiMicroappDelete: true } }, - "/microapp/set_visible_scopes": { + '/health/stepinfo/list': { POST: { OapiHealthStepinfoList: true } }, + '/microapp/list_by_userid': { GET: { OapiMicroappListByUserid: true } }, + '/microapp/list': { POST: { OapiMicroappList: true } }, + '/microapp/delete': { POST: { OapiMicroappDelete: true } }, + '/microapp/set_visible_scopes': { POST: { OapiMicroappSetVisibleScopes: true }, }, - "/microapp/visible_scopes": { POST: { OapiMicroappVisibleScopes: true } }, - "/asr/voice/translate": { POST: { OapiAsrVoiceTranslate: true } }, - "/ai/mt/translate": { POST: { OapiAiMtTranslate: true } }, - "/ocr/structured/recognize": { POST: { OapiOcrStructuredRecognize: true } }, - "/im/chat/scencegroup/message/send_v2": { + '/microapp/visible_scopes': { POST: { OapiMicroappVisibleScopes: true } }, + '/asr/voice/translate': { POST: { OapiAsrVoiceTranslate: true } }, + '/ai/mt/translate': { POST: { OapiAiMtTranslate: true } }, + '/ocr/structured/recognize': { POST: { OapiOcrStructuredRecognize: true } }, + '/im/chat/scencegroup/message/send_v2': { POST: { OapiImChatScencegroupMessageSendV2: true }, }, - "/im/chat/scenegroup/template/close": { + '/im/chat/scenegroup/template/close': { POST: { OapiImChatScenegroupTemplateClose: true }, }, - "/im/chat/scenegroup/template/apply": { + '/im/chat/scenegroup/template/apply': { POST: { OapiImChatScenegroupTemplateApply: true }, }, - "/im/chat/scencegroup/interactivecard/callback/register": { + '/im/chat/scencegroup/interactivecard/callback/register': { POST: { OapiImChatScencegroupInteractivecardCallbackRegister: true }, }, - "/im/chat/scenegroup/create": { POST: { OapiImChatScenegroupCreate: true } }, - "/im/chat/scenegroup/member/add": { + '/im/chat/scenegroup/create': { POST: { OapiImChatScenegroupCreate: true } }, + '/im/chat/scenegroup/member/add': { POST: { OapiImChatScenegroupMemberAdd: true }, }, - "/im/chat/scenegroup/member/get": { + '/im/chat/scenegroup/member/get': { POST: { OapiImChatScenegroupMemberGet: true }, }, - "/im/chat/scenegroup/update": { POST: { OapiImChatScenegroupUpdate: true } }, - "/im/chat/scenegroup/member/delete": { + '/im/chat/scenegroup/update': { POST: { OapiImChatScenegroupUpdate: true } }, + '/im/chat/scenegroup/member/delete': { POST: { OapiImChatScenegroupMemberDelete: true }, }, - "/im/chat/scenegroup/get": { POST: { OapiImChatScenegroupGet: true } }, - "/robot/send": { POST: { OapiRobotSend: true } }, - "/alitrip/btrip/invoice/setting/rule": { + '/im/chat/scenegroup/get': { POST: { OapiImChatScenegroupGet: true } }, + '/robot/send': { POST: { OapiRobotSend: true } }, + '/alitrip/btrip/invoice/setting/rule': { POST: { OapiAlitripBtripInvoiceSettingRule: true }, }, - "/alitrip/btrip/invoice/setting/add": { + '/alitrip/btrip/invoice/setting/add': { POST: { OapiAlitripBtripInvoiceSettingAdd: true }, }, - "/alitrip/btrip/project/delete": { + '/alitrip/btrip/project/delete': { POST: { OapiAlitripBtripProjectDelete: true }, }, - "/alitrip/btrip/project/modify": { + '/alitrip/btrip/project/modify': { POST: { OapiAlitripBtripProjectModify: true }, }, - "/alitrip/btrip/project/add": { POST: { OapiAlitripBtripProjectAdd: true } }, - "/alitrip/btrip/invoice/setting/delete": { + '/alitrip/btrip/project/add': { POST: { OapiAlitripBtripProjectAdd: true } }, + '/alitrip/btrip/invoice/setting/delete': { POST: { OapiAlitripBtripInvoiceSettingDelete: true }, }, - "/alitrip/btrip/invoice/setting/modify": { + '/alitrip/btrip/invoice/setting/modify': { POST: { OapiAlitripBtripInvoiceSettingModify: true }, }, - "/alitrip/btrip/price/query": { POST: { OapiAlitripBtripPriceQuery: true } }, - "/alitrip/btrip/train/city/suggest": { + '/alitrip/btrip/price/query': { POST: { OapiAlitripBtripPriceQuery: true } }, + '/alitrip/btrip/train/city/suggest': { POST: { OapiAlitripBtripTrainCitySuggest: true }, }, - "/alitrip/btrip/monthbill/url/get": { + '/alitrip/btrip/monthbill/url/get': { POST: { OapiAlitripBtripMonthbillUrlGet: true }, }, - "/alitrip/btrip/address/get": { POST: { OapiAlitripBtripAddressGet: true } }, - "/alitrip/btrip/approval/modify": { + '/alitrip/btrip/address/get': { POST: { OapiAlitripBtripAddressGet: true } }, + '/alitrip/btrip/approval/modify': { POST: { OapiAlitripBtripApprovalModify: true }, }, - "/alitrip/btrip/flight/city/suggest": { + '/alitrip/btrip/flight/city/suggest': { POST: { OapiAlitripBtripFlightCitySuggest: true }, }, - "/alitrip/btrip/vehicle/order/search": { + '/alitrip/btrip/vehicle/order/search': { POST: { OapiAlitripBtripVehicleOrderSearch: true }, }, - "/alitrip/btrip/cost/center/query": { + '/alitrip/btrip/cost/center/query': { POST: { OapiAlitripBtripCostCenterQuery: true }, }, - "/alitrip/btrip/approval/update": { + '/alitrip/btrip/approval/update': { POST: { OapiAlitripBtripApprovalUpdate: true }, }, - "/alitrip/btrip/cost/center/new": { + '/alitrip/btrip/cost/center/new': { POST: { OapiAlitripBtripCostCenterNew: true }, }, - "/alitrip/btrip/cost/center/modify": { + '/alitrip/btrip/cost/center/modify': { POST: { OapiAlitripBtripCostCenterModify: true }, }, - "/alitrip/btrip/cost/center/delete": { + '/alitrip/btrip/cost/center/delete': { POST: { OapiAlitripBtripCostCenterDelete: true }, }, - "/alitrip/btrip/cost/center/entity/set": { + '/alitrip/btrip/cost/center/entity/set': { POST: { OapiAlitripBtripCostCenterEntitySet: true }, }, - "/alitrip/btrip/hotel/order/search": { + '/alitrip/btrip/hotel/order/search': { POST: { OapiAlitripBtripHotelOrderSearch: true }, }, - "/alitrip/btrip/train/order/search": { + '/alitrip/btrip/train/order/search': { POST: { OapiAlitripBtripTrainOrderSearch: true }, }, - "/alitrip/btrip/flight/order/search": { + '/alitrip/btrip/flight/order/search': { POST: { OapiAlitripBtripFlightOrderSearch: true }, }, - "/alitrip/btrip/invoice/search": { + '/alitrip/btrip/invoice/search': { POST: { OapiAlitripBtripInvoiceSearch: true }, }, - "/alitrip/btrip/cost/center/transfer": { + '/alitrip/btrip/cost/center/transfer': { POST: { OapiAlitripBtripCostCenterTransfer: true }, }, - "/alitrip/btrip/apply/get": { POST: { OapiAlitripBtripApplyGet: true } }, - "/alitrip/btrip/apply/search": { + '/alitrip/btrip/apply/get': { POST: { OapiAlitripBtripApplyGet: true } }, + '/alitrip/btrip/apply/search': { POST: { OapiAlitripBtripApplySearch: true }, }, - "/alitrip/btrip/approval/new": { + '/alitrip/btrip/approval/new': { POST: { OapiAlitripBtripApprovalNew: true }, }, - "/alitrip/btrip/cost/center/entity/delete": { + '/alitrip/btrip/cost/center/entity/delete': { POST: { OapiAlitripBtripCostCenterEntityDelete: true }, }, - "/workspace/auditlog/list": { POST: { OapiWorkspaceAuditlogList: true } }, - "/edu/cert/get": { POST: { OapiEduCertGet: true } }, - "/edu/user/list": { POST: { OapiEduUserList: true } }, - "/smartdevice/device/querybyid": { + '/workspace/auditlog/list': { POST: { OapiWorkspaceAuditlogList: true } }, + '/edu/cert/get': { POST: { OapiEduCertGet: true } }, + '/edu/user/list': { POST: { OapiEduUserList: true } }, + '/smartdevice/device/querybyid': { POST: { OapiSmartdeviceDeviceQuerybyid: true }, }, - "/smartdevice/device/querylist": { + '/smartdevice/device/querylist': { POST: { OapiSmartdeviceDeviceQuerylist: true }, }, - "/smartdevice/device/query": { POST: { OapiSmartdeviceDeviceQuery: true } }, - "/smartdevice/device/updatenick": { + '/smartdevice/device/query': { POST: { OapiSmartdeviceDeviceQuery: true } }, + '/smartdevice/device/updatenick': { POST: { OapiSmartdeviceDeviceUpdatenick: true }, }, - "/smartdevice/device/unbind": { POST: { OapiSmartdeviceDeviceUnbind: true } }, - "/smartdevice/external/bind": { POST: { OapiSmartdeviceExternalBind: true } }, - "/crm/objectdata/contact/delete": { + '/smartdevice/device/unbind': { POST: { OapiSmartdeviceDeviceUnbind: true } }, + '/smartdevice/external/bind': { POST: { OapiSmartdeviceExternalBind: true } }, + '/crm/objectdata/contact/delete': { POST: { OapiCrmObjectdataContactDelete: true }, }, - "/crm/objectdata/customobject/create": { + '/crm/objectdata/customobject/create': { POST: { OapiCrmObjectdataCustomobjectCreate: true }, }, - "/crm/objectdata/customobject/update": { + '/crm/objectdata/customobject/update': { POST: { OapiCrmObjectdataCustomobjectUpdate: true }, }, - "/crm/objectdata/list": { POST: { OapiCrmObjectdataList: true } }, - "/crm/objectdata/query": { POST: { OapiCrmObjectdataQuery: true } }, - "/crm/objectmeta/describe": { POST: { OapiCrmObjectmetaDescribe: true } }, - "/crm/objectdata/contact/query": { + '/crm/objectdata/list': { POST: { OapiCrmObjectdataList: true } }, + '/crm/objectdata/query': { POST: { OapiCrmObjectdataQuery: true } }, + '/crm/objectmeta/describe': { POST: { OapiCrmObjectmetaDescribe: true } }, + '/crm/objectdata/contact/query': { POST: { OapiCrmObjectdataContactQuery: true }, }, - "/crm/objectdata/followrecord/list": { + '/crm/objectdata/followrecord/list': { POST: { OapiCrmObjectdataFollowrecordList: true }, }, - "/crm/objectdata/followrecord/query": { + '/crm/objectdata/followrecord/query': { POST: { OapiCrmObjectdataFollowrecordQuery: true }, }, - "/crm/objectdata/contact/list": { + '/crm/objectdata/contact/list': { POST: { OapiCrmObjectdataContactList: true }, }, - "/crm/objectmeta/contact/describe": { + '/crm/objectmeta/contact/describe': { POST: { OapiCrmObjectmetaContactDescribe: true }, }, - "/crm/objectmeta/followrecord/describe": { + '/crm/objectmeta/followrecord/describe': { POST: { OapiCrmObjectmetaFollowrecordDescribe: true }, }, - "/cspace/add_to_single_chat": { POST: { OapiCspaceAddToSingleChat: true } }, - "/cspace/grant_custom_space": { GET: { OapiCspaceGrantCustomSpace: true } }, - "/cspace/get_custom_space": { GET: { OapiCspaceGetCustomSpace: true } }, - "/cspace/add": { GET: { OapiCspaceAdd: true } }, - "/chat/subadmin/update": { POST: { OapiChatSubadminUpdate: true } }, - "/chat/qrcode/get": { POST: { OapiChatQrcodeGet: true } }, - "/chat/member/friendswitch/update": { + '/cspace/add_to_single_chat': { POST: { OapiCspaceAddToSingleChat: true } }, + '/cspace/grant_custom_space': { GET: { OapiCspaceGrantCustomSpace: true } }, + '/cspace/get_custom_space': { GET: { OapiCspaceGetCustomSpace: true } }, + '/cspace/add': { GET: { OapiCspaceAdd: true } }, + '/chat/subadmin/update': { POST: { OapiChatSubadminUpdate: true } }, + '/chat/qrcode/get': { POST: { OapiChatQrcodeGet: true } }, + '/chat/member/friendswitch/update': { POST: { OapiChatMemberFriendswitchUpdate: true }, }, - "/chat/updategroupnick": { POST: { OapiChatUpdategroupnick: true } }, - "/chat/update": { POST: { OapiChatUpdate: true } }, - "/chat/create": { POST: { OapiChatCreate: true } }, - "/chat/get": { GET: { OapiChatGet: true } }, - "/smartbot/msg/push": { POST: { OapiSmartbotMsgPush: true } }, -}); -declare module "../internal" { + '/chat/updategroupnick': { POST: { OapiChatUpdategroupnick: true } }, + '/chat/update': { POST: { OapiChatUpdate: true } }, + '/chat/create': { POST: { OapiChatCreate: true } }, + '/chat/get': { GET: { OapiChatGet: true } }, + '/smartbot/msg/push': { POST: { OapiSmartbotMsgPush: true } }, +}) +declare module '../internal' { interface Internal { /** * 该接口用于获取企业授权凭证 @@ -3229,246 +3229,246 @@ declare module "../internal" { */ OapiServiceGetCorpToken( params: OapiServiceGetCorpTokenParams, - ): Promise; + ): Promise /** * 获取应用后台免登的access_token * @see https://developers.dingtalk.com/document/isvapp/obtain-the-ssotoken-for-micro-application-background-logon-free */ OapiSsoGettoken( query: OapiSsoGettokenQuery, - ): Promise; + ): Promise /** * 获取jsapi ticket * @see https://developers.dingtalk.com/document/isvapp/obtain-jsapi_ticket */ - OapiGetJsapiTicket(): Promise; + OapiGetJsapiTicket(): Promise /** * 获取企业内部应用的access_token * @see https://developers.dingtalk.com/document/orgapp/obtain-orgapp-token */ - OapiGettoken(query: OapiGettokenQuery): Promise; + OapiGettoken(query: OapiGettokenQuery): Promise /** * 通过免登码获取用户userid * @see https://developers.dingtalk.com/document/isvapp/obtain-the-userid-of-a-user-by-using-the-log-free */ OapiV2UserGetuserinfo( params: OapiV2UserGetuserinfoParams, - ): Promise; + ): Promise /** * 该接口用于获取授权用户信息 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-the-user-information-based-on-the-sns-temporary-authorization */ OapiSnsGetuserinfoBycode( params: OapiSnsGetuserinfoBycodeParams, - ): Promise; + ): Promise /** * 获取应用管理后台免登的用户信息 * @see https://developers.dingtalk.com/document/isvapp/exchange-code-for-the-identity-information-of-a-microapplication-administrator */ OapiSsoGetuserinfo( query: OapiSsoGetuserinfoQuery, - ): Promise; + ): Promise /** * 获取企业授权信息 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-basic-information-of-an-enterprise */ OapiServiceGetAuthInfo( params: OapiServiceGetAuthInfoParams, - ): Promise; + ): Promise /** * 用户信息更新 * @see https://developers.dingtalk.com/document/orgapp/update-dedicated-accounts-information */ OapiV2UserUpdate( params: OapiV2UserUpdateParams, - ): Promise; + ): Promise /** * 用户信息创建 * @see https://developers.dingtalk.com/document/orgapp/user-information-creation */ OapiV2UserCreate( params: OapiV2UserCreateParams, - ): Promise; + ): Promise /** * 获取主干组织列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-backbone-organization-list */ - OapiOrgUnionTrunkGet(): Promise; + OapiOrgUnionTrunkGet(): Promise /** * 获取员工花名册的元数据定义(包括花名册分组、字段定义) * @see https://developers.dingtalk.com/document/isvapp/intelligent-personnel-roster-metadata-query */ OapiSmartworkHrmRosterMetaGet( params: OapiSmartworkHrmRosterMetaGetParams, - ): Promise; + ): Promise /** * 获取员工花名册指定字段的信息,支持明细分组字段 * @see https://developers.dingtalk.com/document/orgapp/intelligent-personnel-obtain-employee-roster-information */ OapiSmartworkHrmEmployeeV2List( params: OapiSmartworkHrmEmployeeV2ListParams, - ): Promise; + ): Promise /** * 智能人事更新员工档案信息,支持明细分组 * @see https://developers.dingtalk.com/document/isvapp/intelligent-personnel-update-employee-file-information */ OapiSmartworkHrmEmployeeV2Update( params: OapiSmartworkHrmEmployeeV2UpdateParams, - ): Promise; + ): Promise /** * 提供给ISV查询花名册的员工档案信息中有权限的字段列表 * @see https://developers.dingtalk.com/document/isvapp/get-roster-field-group-details */ OapiSmartworkHrmEmployeeFieldGrouplist( params: OapiSmartworkHrmEmployeeFieldGrouplistParams, - ): Promise; + ): Promise /** * 智能人事更新员工档案员工信息 * @see https://developers.dingtalk.com/document/isvapp-server/update-employee-roster */ OapiSmartworkHrmEmployeeUpdate( params: OapiSmartworkHrmEmployeeUpdateParams, - ): Promise; + ): Promise /** * 智能人事业务,提供企业/ISV按在职状态分页查询公司在职员工id列表 * @see https://developers.dingtalk.com/document/isvapp/intelligent-personnel-query-the-list-of-on-the-job-employees-of-the */ OapiSmartworkHrmEmployeeQueryonjob( params: OapiSmartworkHrmEmployeeQueryonjobParams, - ): Promise; + ): Promise /** * 智能人事业务,企业/ISV分页查询公司待入职员工id列表 * @see https://developers.dingtalk.com/document/isvapp/intelligent-personnel-query-the-list-of-employees-to-be-hired */ OapiSmartworkHrmEmployeeQuerypreentry( params: OapiSmartworkHrmEmployeeQuerypreentryParams, - ): Promise; + ): Promise /** * 智能人事添加待入职员工信息 * @see https://developers.dingtalk.com/document/isvapp/add-employees-to-be-hired-through-intelligent-personnel */ OapiSmartworkHrmEmployeeAddpreentry( params: OapiSmartworkHrmEmployeeAddpreentryParams, - ): Promise; + ): Promise /** * 智能人事业务,企业/ISV根据员工id批量访问员工花名册信息 * @see https://developers.dingtalk.com/document/isvapp-server/obtaining-employee-roster-field-information */ OapiSmartworkHrmEmployeeList( params: OapiSmartworkHrmEmployeeListParams, - ): Promise; + ): Promise /** * 企业可以根据模板名称获取模板详情 * @see https://developers.dingtalk.com/document/isvapp/query-template-details */ OapiReportTemplateGetbyname( params: OapiReportTemplateGetbynameParams, - ): Promise; + ): Promise /** * 提供企业员工创建日志的接口 * @see https://developers.dingtalk.com/document/isvapp/create-a-log */ OapiReportCreate( params: OapiReportCreateParams, - ): Promise; + ): Promise /** * 第三方系统会调用这个接口保存日志内容,后续在写日志页面再拉取此内容。 * @see https://developers.dingtalk.com/document/isvapp/save-custom-log-content */ OapiReportSavecontent( params: OapiReportSavecontentParams, - ): Promise; + ): Promise /** * 企业可以根据员工userid或者日志模板名称,分页获取员工一段时间范围内在【日志】微应用发送的日志概要信息 * @see https://developers.dingtalk.com/document/orgapp/view-log-summary-data */ OapiReportSimplelist( params: OapiReportSimplelistParams, - ): Promise; + ): Promise /** * 分页获取日志相关人员列表,包括已读人员列表、评论人员列表、点赞人员列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-a-list-of-log-related-personnel-by-type */ OapiReportStatisticsListbytype( params: OapiReportStatisticsListbytypeParams, - ): Promise; + ): Promise /** * 获取日志的分享人员列表 * @see https://developers.dingtalk.com/document/orgapp/queries-log-sharing-personnel */ OapiReportReceiverList( params: OapiReportReceiverListParams, - ): Promise; + ): Promise /** * 分页获取评论详情,包括评论人userid、评论内容、评论时间 * @see https://developers.dingtalk.com/document/orgapp/queries-log-comment-details */ OapiReportCommentList( params: OapiReportCommentListParams, - ): Promise; + ): Promise /** * 获取日志统计数据 * @see https://developers.dingtalk.com/document/orgapp/query-log-statistics */ OapiReportStatistics( params: OapiReportStatisticsParams, - ): Promise; + ): Promise /** * 查询企业员工的日志未读数 * @see https://developers.dingtalk.com/document/orgapp/querying-the-employee-s-log-is-not-reading */ OapiReportGetunreadcount( params: OapiReportGetunreadcountParams, - ): Promise; + ): Promise /** * 企业可以根据员工userid或者日志模板名称,分页获取员工一段时间范围内在【日志】微应用发送和修改的日志详细信息 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-the-logs-that-are-sent-by */ OapiReportList( params: OapiReportListParams, - ): Promise; + ): Promise /** * 根据用户userId获取当前企业下可见的日志模板列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-list-of-visible-log-templates-based-on-the */ OapiReportTemplateListbyuserid( params: OapiReportTemplateListbyuseridParams, - ): Promise; + ): Promise /** * 查询多个用户一段时间范围内的签到记录,只给企业调用,ISV无法调用。 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-check-in-records-of-multiple-users */ OapiCheckinRecordGet( params: OapiCheckinRecordGetParams, - ): Promise; + ): Promise /** * 该接口用于获取部门用户签到记录 * @see https://developers.dingtalk.com/document/orgapp/get-check-in-data */ OapiCheckinRecord( query: OapiCheckinRecordQuery, - ): Promise; + ): Promise /** * 获取企业公告未删除分类列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-list-of-categories-not-deleted-for-enterprise-announcements */ OapiBlackboardCategoryList( params: OapiBlackboardCategoryListParams, - ): Promise; + ): Promise /** * 根据公告id修改企业公告,只有以下身份可以修改:1、主管理员2、公告子管理员并且是待修改公告的创建者 * @see https://developers.dingtalk.com/document/orgapp/modify-the-announcement-according-to-the-announcement-id */ OapiBlackboardUpdate( params: OapiBlackboardUpdateParams, - ): Promise; + ): Promise /** * 根据公告id删除企业公告,只有以下身份可以删除1、主管理员2、公告子管理员并且是待删除公告创建者 * @see https://developers.dingtalk.com/document/orgapp/delete-announcements-based-on-the-announcement-id */ OapiBlackboardDelete( params: OapiBlackboardDeleteParams, - ): Promise; + ): Promise /** * 根据公告ID获取企业未删除公告详情,只有以下身份可以查看: 1、保密公告 @@ -3480,603 +3480,603 @@ declare module "../internal" { */ OapiBlackboardGet( params: OapiBlackboardGetParams, - ): Promise; + ): Promise /** * 通过接口可以获取到企业未删除的钉钉公告id列表 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-id-list-of-announcements-that-are-not-deleted */ OapiBlackboardListids( params: OapiBlackboardListidsParams, - ): Promise; + ): Promise /** * 管理员可以通过该接口创建钉钉企业公告 * @see https://developers.dingtalk.com/document/orgapp/create-an-enterprise-announcement */ OapiBlackboardCreate( params: OapiBlackboardCreateParams, - ): Promise; + ): Promise /** * 列出用户当前有权限看到的10条公告,可用于在企业自定义工作首页进行公告轮播展示 * @see https://developers.dingtalk.com/document/orgapp/list-the-user-s-announcement-list */ OapiBlackboardListtopten( params: OapiBlackboardListtoptenParams, - ): Promise; + ): Promise /** * 查询用户是否参与企业步数排行榜 * @see https://developers.dingtalk.com/document/isvapp/check-whether-dingtalk-is-enabled */ OapiHealthStepinfoGetuserstatus( params: OapiHealthStepinfoGetuserstatusParams, - ): Promise; + ): Promise /** * 批量获取钉钉运动数据 * @see https://developers.dingtalk.com/document/orgapp/queries-the-number-of-dingtalk-movement-steps-of-multiple-users */ OapiHealthStepinfoListbyuserid( params: OapiHealthStepinfoListbyuseridParams, - ): Promise; + ): Promise /** * 查询企业用户或部门每天的钉钉运动步数,最多可以查询31天的数据 * @see https://developers.dingtalk.com/document/orgapp/queries-individual-or-department-dingtalk-exercise-steps */ OapiHealthStepinfoList( params: OapiHealthStepinfoListParams, - ): Promise; + ): Promise /** * 该接口用于获取员工可见的应用列表 * @see https://developers.dingtalk.com/document/orgapp-server/list-the-microapplications-visible-to-employees */ OapiMicroappListByUserid( query: OapiMicroappListByUseridQuery, - ): Promise; + ): Promise /** * 列出微应用 * @see https://developers.dingtalk.com/document/orgapp-server/manager-microapplications-api-permission */ - OapiMicroappList(): Promise; + OapiMicroappList(): Promise /** * 删除微应用 * @see https://developers.dingtalk.com/document/orgapp-server/delete-an-h5-microapplication */ OapiMicroappDelete( params: OapiMicroappDeleteParams, - ): Promise; + ): Promise /** * 该接口用于设置应用的可见范围 * @see https://developers.dingtalk.com/document/orgapp-server/set-the-visible-range-of-the-microapplication */ OapiMicroappSetVisibleScopes( params: OapiMicroappSetVisibleScopesParams, - ): Promise; + ): Promise /** * 获取应用的可见范围 * @see https://developers.dingtalk.com/document/orgapp-server/gets-the-microapplication-visible-range-set-by-the-enterprise */ OapiMicroappVisibleScopes( params: OapiMicroappVisibleScopesParams, - ): Promise; + ): Promise /** * 用户使用音频 media_id 或 url 进行请求,服务通过回调的方式通知用户翻译结果 * @see https://developers.dingtalk.com/document/isvapp/asr-short-sentence-recognition */ OapiAsrVoiceTranslate( params: OapiAsrVoiceTranslateParams, - ): Promise; + ): Promise /** * 输入一段文本,得到翻译指定语言后的译文,支持多种语言的互译 * @see https://developers.dingtalk.com/document/isvapp/dingtalk-translation */ OapiAiMtTranslate( params: OapiAiMtTranslateParams, - ): Promise; + ): Promise /** * OCR文字识别 * @see https://developers.dingtalk.com/document/isvapp/structured-image-recognition-api */ OapiOcrStructuredRecognize( params: OapiOcrStructuredRecognizeParams, - ): Promise; + ): Promise /** * 场开放场景下,基于群模板定义的机器人向群内发消息 * @see https://developers.dingtalk.com/document/isvapp/send-group-helper-message */ OapiImChatScencegroupMessageSendV2( params: OapiImChatScencegroupMessageSendV2Params, - ): Promise; + ): Promise /** * 根据定义的模板id,创建自定义场景群 * @see https://developers.dingtalk.com/document/isvapp/deactivate-group-template */ OapiImChatScenegroupTemplateClose( params: OapiImChatScenegroupTemplateCloseParams, - ): Promise; + ): Promise /** * 根据传入的模板id,启用群会话群模板功能 * @see https://developers.dingtalk.com/document/isvapp/enable-group-template */ OapiImChatScenegroupTemplateApply( params: OapiImChatScenegroupTemplateApplyParams, - ): Promise; + ): Promise /** * 注册互动卡片回调地址 * @see https://developers.dingtalk.com/document/orgapp/registration-card-interaction-callback-address-1 */ OapiImChatScencegroupInteractivecardCallbackRegister( params: OapiImChatScencegroupInteractivecardCallbackRegisterParams, - ): Promise; + ): Promise /** * 根据定义的模板id,创建自定义场景群 * @see https://developers.dingtalk.com/document/isvapp/create-group */ OapiImChatScenegroupCreate( params: OapiImChatScenegroupCreateParams, - ): Promise; + ): Promise /** * 新增场景群成员 * @see https://developers.dingtalk.com/document/isvapp/add-group-members-1 */ OapiImChatScenegroupMemberAdd( params: OapiImChatScenegroupMemberAddParams, - ): Promise; + ): Promise /** * 获取场景群成员 * @see https://developers.dingtalk.com/document/group/obtains-scene-members */ OapiImChatScenegroupMemberGet( params: OapiImChatScenegroupMemberGetParams, - ): Promise; + ): Promise /** * 根据传入的群id,更新群相关内容 * @see https://developers.dingtalk.com/document/isvapp/update-group */ OapiImChatScenegroupUpdate( params: OapiImChatScenegroupUpdateParams, - ): Promise; + ): Promise /** * 删除场景群成员 * @see https://developers.dingtalk.com/document/isvapp/delete-group-members */ OapiImChatScenegroupMemberDelete( params: OapiImChatScenegroupMemberDeleteParams, - ): Promise; + ): Promise /** * 根据群id,获取群的基本信息 * @see https://developers.dingtalk.com/document/isvapp/querying-group-information */ OapiImChatScenegroupGet( params: OapiImChatScenegroupGetParams, - ): Promise; + ): Promise /** * 自定义机器人发送消息 * @see https://developers.dingtalk.com/document/isvapp/custom-bot-access-send-message */ - OapiRobotSend(params: OapiRobotSendParams): Promise; + OapiRobotSend(params: OapiRobotSendParams): Promise /** * 配置发票适用人群 * @see https://developers.dingtalk.com/document/isvapp/configure-invoice-users */ OapiAlitripBtripInvoiceSettingRule( params: OapiAlitripBtripInvoiceSettingRuleParams, - ): Promise; + ): Promise /** * 新增发票配置 * @see https://developers.dingtalk.com/document/isvapp/new-invoice-configuration */ OapiAlitripBtripInvoiceSettingAdd( params: OapiAlitripBtripInvoiceSettingAddParams, - ): Promise; + ): Promise /** * 删除项目 * @see https://developers.dingtalk.com/document/isvapp/delete-a-project */ OapiAlitripBtripProjectDelete( params: OapiAlitripBtripProjectDeleteParams, - ): Promise; + ): Promise /** * 项目变更 * @see https://developers.dingtalk.com/document/isvapp/project-change */ OapiAlitripBtripProjectModify( params: OapiAlitripBtripProjectModifyParams, - ): Promise; + ): Promise /** * 添加项目 * @see https://developers.dingtalk.com/document/isvapp/add-a-project */ OapiAlitripBtripProjectAdd( params: OapiAlitripBtripProjectAddParams, - ): Promise; + ): Promise /** * 删除发票配置 * @see https://developers.dingtalk.com/document/isvapp/delete-invoice-configuration */ OapiAlitripBtripInvoiceSettingDelete( params: OapiAlitripBtripInvoiceSettingDeleteParams, - ): Promise; + ): Promise /** * 修改发票配置 * @see https://developers.dingtalk.com/document/isvapp/modify-invoice-configuration */ OapiAlitripBtripInvoiceSettingModify( params: OapiAlitripBtripInvoiceSettingModifyParams, - ): Promise; + ): Promise /** * 查询预估价 * @see https://developers.dingtalk.com/document/isvapp/query-estimated-price */ OapiAlitripBtripPriceQuery( params: OapiAlitripBtripPriceQueryParams, - ): Promise; + ): Promise /** * 火车票城市搜索 * @see https://developers.dingtalk.com/document/isvapp/train-ticket-city-search */ OapiAlitripBtripTrainCitySuggest( params: OapiAlitripBtripTrainCitySuggestParams, - ): Promise; + ): Promise /** * 获取月对账结算数据 * @see https://developers.dingtalk.com/document/isvapp/obtain-monthly-reconciliation-settlement-data */ OapiAlitripBtripMonthbillUrlGet( params: OapiAlitripBtripMonthbillUrlGetParams, - ): Promise; + ): Promise /** * 获取商旅访问地址 * @see https://developers.dingtalk.com/document/isvapp/obtain-business-travel-access-addresses */ OapiAlitripBtripAddressGet( params: OapiAlitripBtripAddressGetParams, - ): Promise; + ): Promise /** * 修改申请单 * @see https://developers.dingtalk.com/document/isvapp/user-modify-approval-form */ OapiAlitripBtripApprovalModify( params: OapiAlitripBtripApprovalModifyParams, - ): Promise; + ): Promise /** * 机票城市搜索 * @see https://developers.dingtalk.com/document/isvapp/air-ticket-city-search */ OapiAlitripBtripFlightCitySuggest( params: OapiAlitripBtripFlightCitySuggestParams, - ): Promise; + ): Promise /** * 获取用车订单数据 * @see https://developers.dingtalk.com/document/isvapp/vehicle-order-query-interface */ OapiAlitripBtripVehicleOrderSearch( params: OapiAlitripBtripVehicleOrderSearchParams, - ): Promise; + ): Promise /** * 查询成本中心 * @see https://developers.dingtalk.com/document/isvapp/query-cost-center */ OapiAlitripBtripCostCenterQuery( params: OapiAlitripBtripCostCenterQueryParams, - ): Promise; + ): Promise /** * 更新申请单状态 * @see https://developers.dingtalk.com/document/isvapp/update-approval-form */ OapiAlitripBtripApprovalUpdate( params: OapiAlitripBtripApprovalUpdateParams, - ): Promise; + ): Promise /** * 新建成本中心 * @see https://developers.dingtalk.com/document/isvapp/new-cost-center */ OapiAlitripBtripCostCenterNew( params: OapiAlitripBtripCostCenterNewParams, - ): Promise; + ): Promise /** * 修改成本中心基本信息 * @see https://developers.dingtalk.com/document/isvapp/modify-basic-cost-center-information */ OapiAlitripBtripCostCenterModify( params: OapiAlitripBtripCostCenterModifyParams, - ): Promise; + ): Promise /** * 删除成本中心 * @see https://developers.dingtalk.com/document/isvapp/delete-cost-center */ OapiAlitripBtripCostCenterDelete( params: OapiAlitripBtripCostCenterDeleteParams, - ): Promise; + ): Promise /** * 设置成本中心人员信息 * @see https://developers.dingtalk.com/document/isvapp/set-up-cost-center-personnel-information */ OapiAlitripBtripCostCenterEntitySet( params: OapiAlitripBtripCostCenterEntitySetParams, - ): Promise; + ): Promise /** * 企业获取商旅酒店订单数据 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-order-data-of-enterprise-hotels */ OapiAlitripBtripHotelOrderSearch( params: OapiAlitripBtripHotelOrderSearchParams, - ): Promise; + ): Promise /** * 获取企业火车票订单数据 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-enterprise-train-ticket-order-data */ OapiAlitripBtripTrainOrderSearch( params: OapiAlitripBtripTrainOrderSearchParams, - ): Promise; + ): Promise /** * 获取企业机票订单数据 * @see https://developers.dingtalk.com/document/isvapp/obtains-enterprise-ticket-order-data */ OapiAlitripBtripFlightOrderSearch( params: OapiAlitripBtripFlightOrderSearchParams, - ): Promise; + ): Promise /** * 查询可用发票列表 * @see https://developers.dingtalk.com/document/isvapp/query-available-invoices */ OapiAlitripBtripInvoiceSearch( params: OapiAlitripBtripInvoiceSearchParams, - ): Promise; + ): Promise /** * 商旅成本中心转换为外部成本中心 * @see https://developers.dingtalk.com/document/isvapp/business-travel-cost-center-converted-to-external-cost-center */ OapiAlitripBtripCostCenterTransfer( params: OapiAlitripBtripCostCenterTransferParams, - ): Promise; + ): Promise /** * 获取申请单详情 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-detailed-data-of-a-single-request */ OapiAlitripBtripApplyGet( params: OapiAlitripBtripApplyGetParams, - ): Promise; + ): Promise /** * 获取申请单列表 * @see https://developers.dingtalk.com/document/isvapp/search-enterprise-approval-form-data */ OapiAlitripBtripApplySearch( params: OapiAlitripBtripApplySearchParams, - ): Promise; + ): Promise /** * 用户新建审批单 * @see https://developers.dingtalk.com/document/isvapp/user-new-approval-form */ OapiAlitripBtripApprovalNew( params: OapiAlitripBtripApprovalNewParams, - ): Promise; + ): Promise /** * 删除成本中心人员信息 * @see https://developers.dingtalk.com/document/isvapp/delete-cost-center-personnel-information */ OapiAlitripBtripCostCenterEntityDelete( params: OapiAlitripBtripCostCenterEntityDeleteParams, - ): Promise; + ): Promise /** * 获取钉钉项目空间任务中文件的操作日志列表 * @see https://developers.dingtalk.com/document/orgapp/query-file-operation-logs-of-a-project */ OapiWorkspaceAuditlogList( params: OapiWorkspaceAuditlogListParams, - ): Promise; + ): Promise /** * 查询当前用户的数字化考试情况,是否获取了证书 * @see https://developers.dingtalk.com/document/isvapp/obtain-digital-certificate */ OapiEduCertGet( params: OapiEduCertGetParams, - ): Promise; + ): Promise /** * 获取家校用户身份列表 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-home-school-user-identities */ OapiEduUserList( params: OapiEduUserListParams, - ): Promise; + ): Promise /** * 查询企业下的智能硬件设备详情 * @see https://developers.dingtalk.com/document/isvapp/the-smart-hardware-can-query-details-based-on-the-device */ OapiSmartdeviceDeviceQuerybyid( params: OapiSmartdeviceDeviceQuerybyidParams, - ): Promise; + ): Promise /** * 查询企业下的智能硬件设备列表 * @see https://developers.dingtalk.com/document/isvapp/intelligent-hardware-list-query */ OapiSmartdeviceDeviceQuerylist( params: OapiSmartdeviceDeviceQuerylistParams, - ): Promise; + ): Promise /** * 查询企业下的智能硬件设备详情 * @see https://developers.dingtalk.com/document/isvapp/intelligent-hardware-device-query */ OapiSmartdeviceDeviceQuery( params: OapiSmartdeviceDeviceQueryParams, - ): Promise; + ): Promise /** * 解除企业下的智能硬件设备绑定 * @see https://developers.dingtalk.com/document/isvapp/intelligent-hardware-device-nickname-modification */ OapiSmartdeviceDeviceUpdatenick( params: OapiSmartdeviceDeviceUpdatenickParams, - ): Promise; + ): Promise /** * 解除企业下的智能硬件设备绑定 * @see https://developers.dingtalk.com/document/isvapp/unbind-a-smart-hardware-device */ OapiSmartdeviceDeviceUnbind( params: OapiSmartdeviceDeviceUnbindParams, - ): Promise; + ): Promise /** * 智能设备接入钉钉时,需要和组织建立绑定关系,此接口用于创建绑定关系。 * @see https://developers.dingtalk.com/document/isvapp/establishing-a-binding-relationship-between-intelligent-hardware-and-cloud */ OapiSmartdeviceExternalBind( params: OapiSmartdeviceExternalBindParams, - ): Promise; + ): Promise /** * 删除当前组织CRM指定联系人的接口 * @see https://developers.dingtalk.com/document/orgapp/delete-crm-contact */ OapiCrmObjectdataContactDelete( params: OapiCrmObjectdataContactDeleteParams, - ): Promise; + ): Promise /** * 创建CRM自定义对象数据 * @see https://developers.dingtalk.com/document/orgapp/dingtalk-paas-master-create-custom-crm-object-data */ OapiCrmObjectdataCustomobjectCreate( params: OapiCrmObjectdataCustomobjectCreateParams, - ): Promise; + ): Promise /** * 钉钉PaaS主数据-更新CRM自定义对象数据 * @see https://developers.dingtalk.com/document/orgapp/crm-master-data-opens-interface-for-updating-custom-object-data */ OapiCrmObjectdataCustomobjectUpdate( params: OapiCrmObjectdataCustomobjectUpdateParams, - ): Promise; + ): Promise /** * 根据实例ID列表批量获取CRM自定义表单数据,最多可一次获取200条数据 * @see https://developers.dingtalk.com/document/orgapp/retrieves-custom-crm-forms-from-the-id-list */ OapiCrmObjectdataList( params: OapiCrmObjectdataListParams, - ): Promise; + ): Promise /** * 获取CRM自定义对象数据,最多可一次获取200条数据 * @see https://developers.dingtalk.com/document/orgapp/retrieve-custom-crm-object-data */ OapiCrmObjectdataQuery( params: OapiCrmObjectdataQueryParams, - ): Promise; + ): Promise /** * 获取自定义对象的元数据 * @see https://developers.dingtalk.com/document/orgapp/get-metadata-description-of-crm-custom-object */ OapiCrmObjectmetaDescribe( params: OapiCrmObjectmetaDescribeParams, - ): Promise; + ): Promise /** * 根据指定查询条件批量获取联系人数据,最多可一次获取200条数据 * @see https://developers.dingtalk.com/document/isvapp/query-contact-data */ OapiCrmObjectdataContactQuery( params: OapiCrmObjectdataContactQueryParams, - ): Promise; + ): Promise /** * 根据实例ID列表批量获取跟进记录数据,最多可一次获取200条数据 * @see https://developers.dingtalk.com/document/orgapp/dingtalk-the-primary-data-of-apsara-stack-agility-paas-allows-you */ OapiCrmObjectdataFollowrecordList( params: OapiCrmObjectdataFollowrecordListParams, - ): Promise; + ): Promise /** * 根据指定查询条件批量获取跟进记录数据,最多可一次获取200条数据 * @see https://developers.dingtalk.com/document/orgapp/query-and-dingtalk-data-of-track-records-in-apsara-stack */ OapiCrmObjectdataFollowrecordQuery( params: OapiCrmObjectdataFollowrecordQueryParams, - ): Promise; + ): Promise /** * 按照ID列表批量获取联系人数据 * @see https://developers.dingtalk.com/document/orgapp/retrieves-contact-data-in-batches-based-on-the-id-list */ OapiCrmObjectdataContactList( params: OapiCrmObjectdataContactListParams, - ): Promise; + ): Promise /** * 获取联系人对象的元数据 * @see https://developers.dingtalk.com/document/isvapp/get-metadata-for-a-contact */ - OapiCrmObjectmetaContactDescribe(): Promise; + OapiCrmObjectmetaContactDescribe(): Promise /** * 获取跟进记录对象的元数据 * @see https://developers.dingtalk.com/document/isvapp/get-the-metadata-of-the-follow-up-record-object */ - OapiCrmObjectmetaFollowrecordDescribe(): Promise; + OapiCrmObjectmetaFollowrecordDescribe(): Promise /** * 发送文件给指定用户 * @see https://developers.dingtalk.com/document/isvapp-server/sends-a-file-to-a-specified-user */ OapiCspaceAddToSingleChat( params: OapiCspaceAddToSingleChatParams, - ): Promise; + ): Promise /** * 授权用户访问企业下的自定义空间 * @see https://developers.dingtalk.com/document/isvapp-server/authorize-a-user-to-access-a-custom-workspace-of-an */ OapiCspaceGrantCustomSpace( query: OapiCspaceGrantCustomSpaceQuery, - ): Promise; + ): Promise /** * 获取企业下的自定义空间 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-user-space-under-the-enterprise */ OapiCspaceGetCustomSpace( query: OapiCspaceGetCustomSpaceQuery, - ): Promise; + ): Promise /** * 新增文件到用户钉盘 * @see https://developers.dingtalk.com/document/isvapp-server/add-file-to-user-s-dingtalk-disk */ - OapiCspaceAdd(query: OapiCspaceAddQuery): Promise; + OapiCspaceAdd(query: OapiCspaceAddQuery): Promise /** * 增加和删除群管理员接口 * @see https://developers.dingtalk.com/document/orgapp/set-chat-admin */ OapiChatSubadminUpdate( params: OapiChatSubadminUpdateParams, - ): Promise; + ): Promise /** * 获取群入群二维码邀请链接 * @see https://developers.dingtalk.com/document/orgapp/obtain-a-qr-code-link */ OapiChatQrcodeGet( params: OapiChatQrcodeGetParams, - ): Promise; + ): Promise /** * 设置群成员之间是否可以添加好友和私聊的开关 * @see https://developers.dingtalk.com/document/orgapp/set-private-chat */ OapiChatMemberFriendswitchUpdate( params: OapiChatMemberFriendswitchUpdateParams, - ): Promise; + ): Promise /** * 设置群成员的群昵称 * @see https://developers.dingtalk.com/document/orgapp/set-a-group-nickname */ OapiChatUpdategroupnick( params: OapiChatUpdategroupnickParams, - ): Promise; + ): Promise /** * 修改群会话 * @see https://developers.dingtalk.com/document/orgapp/modify-a-group-session */ OapiChatUpdate( params: OapiChatUpdateParams, - ): Promise; + ): Promise /** * 该接口用于创建会话 * @see https://developers.dingtalk.com/document/orgapp/create-group-session */ OapiChatCreate( params: OapiChatCreateParams, - ): Promise; + ): Promise /** * 获取群会话 * @see https://developers.dingtalk.com/document/orgapp/obtain-a-group-session */ - OapiChatGet(query: OapiChatGetQuery): Promise; + OapiChatGet(query: OapiChatGetQuery): Promise /** * 通过工作助理机器人给企业员工发送消息 * @see https://developers.dingtalk.com/document/orgapp/the-message-pushing-interface-of-the-assistant */ OapiSmartbotMsgPush( params: OapiSmartbotMsgPushParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/oauth2.ts b/adapters/dingtalk/src/api/oauth2.ts index 20e0809e..655f0fd9 100644 --- a/adapters/dingtalk/src/api/oauth2.ts +++ b/adapters/dingtalk/src/api/oauth2.ts @@ -1,145 +1,145 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface CreateJsapiTicketResponse { - jsapiTicket?: string; - expireIn?: number; + jsapiTicket?: string + expireIn?: number } export interface GetSsoAccessTokenParams { /** 企业的corpId。 */ - corpid: string; + corpid: string /** sso密钥,可以在[开发者后台](https://open-dev.dingtalk.com/fe/old#/corpAuthInfo)**基本信息**—**开发信息**(****旧版****)页面查看。 */ - ssoSecret: string; + ssoSecret: string } export interface GetSsoAccessTokenResponse { - accessToken?: string; - expireIn?: number; + accessToken?: string + expireIn?: number } export interface GetPersonalAuthRuleResponse { result?: { - resource: string; - authItems: number; - }[]; + resource: string + authItems: number + }[] } export interface GetAccessTokenParams { /** 已创建的企业内部应用的AppKey。 */ - appKey: string; + appKey: string /** 已创建的企业内部应用的AppSecret。 */ - appSecret?: string; + appSecret?: string } export interface GetAccessTokenResponse { - accessToken?: string; - expireIn?: number; + accessToken?: string + expireIn?: number } export interface GetCorpAccessTokenParams { /** 已创建的第三方企业应用的SuiteKey。 */ - suiteKey: string; + suiteKey: string /** 已创建的第三方企业应用的SuiteSecret。 */ - suiteSecret: string; + suiteSecret: string /** 授权企业的CorpId。 */ - authCorpId: string; + authCorpId: string /** 钉钉推送的suiteTicket。 */ - suiteTicket: string; + suiteTicket: string } export interface GetCorpAccessTokenResponse { - accessToken?: string; - expireIn?: number; + accessToken?: string + expireIn?: number } export interface GetUserTokenParams { /** 应用id。可使用扫码登录应用或者第三方个人小程序的appId。 */ - clientId: string; + clientId: string /** 应用密钥。 */ - clientSecret?: string; + clientSecret?: string /** OAuth 2.0 临时授权码。 */ - code?: string; + code?: string /** OAuth2.0刷新令牌,从返回结果里面获取。 */ - refreshToken?: string; + refreshToken?: string /** - 如果使用授权码换token,传authorization\_code。 */ - grantType?: string; + grantType?: string } export interface GetUserTokenResponse { - accessToken?: string; - refreshToken?: string; - expireIn?: number; - corpId?: string; + accessToken?: string + refreshToken?: string + expireIn?: number + corpId?: string } export interface GetSsoUserInfoQuery { /** 临时授权码,管理员在钉钉管理后台,跳转到应用管理页面时,该授权码会附带在URL中。 */ - code: string; + code: string } export interface GetSsoUserInfoResponse { - corpId: string; - corpName: string; - userId: string; - email: string; - userName: string; - avatar: string; - isAdmin: unknown; + corpId: string + corpName: string + userId: string + email: string + userName: string + avatar: string + isAdmin: unknown } // funcName: isOldApi Internal.define({ - "/oauth2/jsapiTickets": { POST: { createJsapiTicket: false } }, - "/oauth2/ssoAccessToken": { POST: { getSsoAccessToken: false } }, - "/oauth2/authRules/user": { GET: { getPersonalAuthRule: false } }, - "/oauth2/accessToken": { POST: { getAccessToken: false } }, - "/oauth2/corpAccessToken": { POST: { getCorpAccessToken: false } }, - "/oauth2/userAccessToken": { POST: { getUserToken: false } }, - "/oauth2/ssoUserInfo": { GET: { getSsoUserInfo: false } }, -}); -declare module "../internal" { + '/oauth2/jsapiTickets': { POST: { createJsapiTicket: false } }, + '/oauth2/ssoAccessToken': { POST: { getSsoAccessToken: false } }, + '/oauth2/authRules/user': { GET: { getPersonalAuthRule: false } }, + '/oauth2/accessToken': { POST: { getAccessToken: false } }, + '/oauth2/corpAccessToken': { POST: { getCorpAccessToken: false } }, + '/oauth2/userAccessToken': { POST: { getUserToken: false } }, + '/oauth2/ssoUserInfo': { GET: { getSsoUserInfo: false } }, +}) +declare module '../internal' { interface Internal { /** * 生成jsapi ticket * @see https://developers.dingtalk.com/document/isvapp/create-a-jsapi-ticket */ - createJsapiTicket(): Promise; + createJsapiTicket(): Promise /** * 生成微应用管理后台accessToken * @see https://developers.dingtalk.com/document/isvapp/obtain-the-access_token-of-the-micro-application-background-without-log-on */ getSsoAccessToken( params: GetSsoAccessTokenParams, - ): Promise; + ): Promise /** * 查询个人授权记录 * @see https://developers.dingtalk.com/document/isvapp/query-individual-authorization-records */ - getPersonalAuthRule(): Promise; + getPersonalAuthRule(): Promise /** * 获取企业accessToken(企业内部应用) * @see https://developers.dingtalk.com/document/orgapp/obtain-the-access_token-of-an-internal-app */ getAccessToken( params: GetAccessTokenParams, - ): Promise; + ): Promise /** * 获取企业accessToken(应用商店应用) * @see https://developers.dingtalk.com/document/isvapp/obtain-the-access_token-of-the-authorized-enterprise */ getCorpAccessToken( params: GetCorpAccessTokenParams, - ): Promise; + ): Promise /** * 获取用户token * @see https://developers.dingtalk.com/document/isvapp/obtain-user-token */ - getUserToken(params: GetUserTokenParams): Promise; + getUserToken(params: GetUserTokenParams): Promise /** * 查询微应用后台免登的用户信息 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-identity-of-an-application-administrator */ - getSsoUserInfo(query: GetSsoUserInfoQuery): Promise; + getSsoUserInfo(query: GetSsoUserInfoQuery): Promise } } diff --git a/adapters/dingtalk/src/api/pedia.ts b/adapters/dingtalk/src/api/pedia.ts index a961ce36..9b320c4a 100644 --- a/adapters/dingtalk/src/api/pedia.ts +++ b/adapters/dingtalk/src/api/pedia.ts @@ -1,181 +1,181 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface PediaWordsQueryQuery { /** 查询主键编号。 */ - uuid: number; + uuid: number /** 当前操作用户的userId。 */ - userId: string; + userId: string } export interface PediaWordsQueryResponse { data?: { - wordName?: string; - uuid?: number; - gmtCreate?: number; - gmtModify?: number; - wordAlias?: number; - highLightWordAlias?: number; - relatedDoc?: number; - relatedLink?: number; - creatorName?: string; - updaterName?: string; - approveName?: string; - wordParaphrase?: string; - simpleWordParaphrase?: string; - contacts?: number; - tagsList?: number; - appLink?: number; - imHighLight?: number; - simHighLight?: number; - picList?: number; - contactList?: number; - userId?: string; - parentUuid?: number; - }; - success?: unknown; + wordName?: string + uuid?: number + gmtCreate?: number + gmtModify?: number + wordAlias?: number + highLightWordAlias?: number + relatedDoc?: number + relatedLink?: number + creatorName?: string + updaterName?: string + approveName?: string + wordParaphrase?: string + simpleWordParaphrase?: string + contacts?: number + tagsList?: number + appLink?: number + imHighLight?: number + simHighLight?: number + picList?: number + contactList?: number + userId?: string + parentUuid?: number + } + success?: unknown } export interface PediaWordsSearchParams { /** 搜索关键词。 */ - wordName?: string; + wordName?: string /** 操作人的userId。 */ - userId: string; + userId: string /** 当前每页需要展示的数量,最大20。 */ - pageSize: number; + pageSize: number /** 当前查询的页数,从1开始。 */ - pageNumber: number; + pageNumber: number /** 当前搜索列表的状态: */ - status: string; + status: string } export interface PediaWordsSearchResponse { data?: { - wordName?: string; - uuid?: number; - gmtCreate?: number; - gmtModify?: number; - wordAlias?: number; - highLightWordAlias?: number; - relatedLink?: number; - relatedDoc?: number; - creatorName?: string; - updaterName?: string; - approveName?: string; - wordParaphrase?: string; - simpleWordParaphrase?: string; - contacts?: number; - tagsList?: number; - appLink?: number; - imHighLight?: number; - simHighLight?: number; - picList?: number; - contactList?: number; - userId?: string; - parentUuid?: number; - }[]; - success?: unknown; + wordName?: string + uuid?: number + gmtCreate?: number + gmtModify?: number + wordAlias?: number + highLightWordAlias?: number + relatedLink?: number + relatedDoc?: number + creatorName?: string + updaterName?: string + approveName?: string + wordParaphrase?: string + simpleWordParaphrase?: string + contacts?: number + tagsList?: number + appLink?: number + imHighLight?: number + simHighLight?: number + picList?: number + contactList?: number + userId?: string + parentUuid?: number + }[] + success?: unknown } export interface PediaWordsApproveParams { /** 当前审核的词条的主键编号。 */ - uuid: number; + uuid: number /** 操作人的组织员工userId。 */ - userId: string; + userId: string /** 审核的结果: */ - approveStatus: string; + approveStatus: string /** 拒绝的原因。 */ - approveReason?: string; + approveReason?: string /** 当前内部群是否高亮: */ - imHighLight: unknown; + imHighLight: unknown /** 服务群是否高亮: */ - simHighLight: unknown; + simHighLight: unknown } export interface PediaWordsApproveResponse { - success?: unknown; + success?: unknown } export interface PediaWordsDeleteQuery { /** 当前需要删除的词条主键编号。 */ - uuid: number; + uuid: number /** 当前操作用户的userId。 */ - userId: string; + userId: string } export interface PediaWordsDeleteResponse { - uuid?: number; - success?: unknown; + uuid?: number + success?: unknown } export interface PediaWordsUpdateParams { /** 需要更新的词条编号。 */ - uuid: number; + uuid: number /** 词条名称。 */ - wordName: string; + wordName: string /** 词条别名列表,最大值10。 */ - wordAlias?: string[]; + wordAlias?: string[] /** 可高亮的别名列表,最大值10。 */ - highLightWordAlias?: string[]; + highLightWordAlias?: string[] /** 词条相关文档信息,最大值10。 */ - relatedDoc?: object[]; + relatedDoc?: object[] /** 词条相关链接信息,最大值10。 */ - relatedLink?: object[]; + relatedLink?: object[] /** 词条释义。 */ - wordParaphrase: string; + wordParaphrase: string /** 相关应用对象。 */ - appLink?: object[]; + appLink?: object[] /** 操作人的userId。 */ - userId?: string; + userId?: string /** 词条的相关图片信息,最大值10。 */ - picList?: object[]; + picList?: object[] /** 词条的相关联系人信息,最大值10。 */ - contactList?: object[]; + contactList?: object[] } export interface PediaWordsUpdateResponse { - uuid?: number; - success?: unknown; + uuid?: number + success?: unknown } export interface PediaWordsAddParams { /** 新增词条的名称。 */ - wordName: string; + wordName: string /** 词条的别名列表,多个名字的时候可以添加,每次调用最多传10个。 */ - wordAlias?: string[]; + wordAlias?: string[] /** 词条高亮别名列表,每次调用最多传10个。 */ - highLightWordAlias?: string[]; + highLightWordAlias?: string[] /** 词条相关的文档列表,每次调用最多传10个。 */ - relatedDoc?: object[]; + relatedDoc?: object[] /** 词条相关的链接信息,每次调用最多传10个。 */ - relatedLink?: object[]; + relatedLink?: object[] /** 词条释义,针对词条的描述内容。 */ - wordParaphrase: string; + wordParaphrase: string /** 词条相关的图片信息,每次调用最多传10个。 */ - picList?: object[]; + picList?: object[] /** 组织对应的员工userId。 */ - userId: string; + userId: string /** 词条相关的联系人信息,每次调用最多传10个。 */ - contactList?: object[]; + contactList?: object[] } export interface PediaWordsAddResponse { - uuid?: number; - success?: unknown; + uuid?: number + success?: unknown } // funcName: isOldApi Internal.define({ - "/pedia/words/query": { POST: { pediaWordsQuery: false } }, - "/pedia/words/search": { POST: { pediaWordsSearch: false } }, - "/pedia/words/approve": { POST: { pediaWordsApprove: false } }, - "/pedia/words": { + '/pedia/words/query': { POST: { pediaWordsQuery: false } }, + '/pedia/words/search': { POST: { pediaWordsSearch: false } }, + '/pedia/words/approve': { POST: { pediaWordsApprove: false } }, + '/pedia/words': { DELETE: { pediaWordsDelete: false }, PUT: { pediaWordsUpdate: false }, POST: { pediaWordsAdd: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 根据词条主键ID查询当前词条详情 @@ -183,39 +183,39 @@ declare module "../internal" { */ pediaWordsQuery( query: PediaWordsQueryQuery, - ): Promise; + ): Promise /** * 分页获取企业词条信息 * @see https://developers.dingtalk.com/document/app/entry-search */ pediaWordsSearch( params: PediaWordsSearchParams, - ): Promise; + ): Promise /** * 企业百科针对待审核词条进行审核 * @see https://developers.dingtalk.com/document/app/entry-review */ pediaWordsApprove( params: PediaWordsApproveParams, - ): Promise; + ): Promise /** * 企业百科针对uuid删除当前词条 * @see https://developers.dingtalk.com/document/app/entry-delete */ pediaWordsDelete( query: PediaWordsDeleteQuery, - ): Promise; + ): Promise /** * 企业百科对当前已经生效词条进行编辑 * @see https://developers.dingtalk.com/document/app/update-entry */ pediaWordsUpdate( params: PediaWordsUpdateParams, - ): Promise; + ): Promise /** * 企业百科增加当前企业词条信息 * @see https://developers.dingtalk.com/document/app/new-entry */ - pediaWordsAdd(params: PediaWordsAddParams): Promise; + pediaWordsAdd(params: PediaWordsAddParams): Promise } } diff --git a/adapters/dingtalk/src/api/project.ts b/adapters/dingtalk/src/api/project.ts index 1b50cef3..2ad6129f 100644 --- a/adapters/dingtalk/src/api/project.ts +++ b/adapters/dingtalk/src/api/project.ts @@ -1,1098 +1,1098 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface CreateProjectCustomfieldStatusParams { /** 自定义字段ID。 */ - customFieldId?: string; + customFieldId?: string /** 自定义字段名称(如果提供自定义字段ID 则忽略)。 */ - customFieldName?: string; + customFieldName?: string /** 自定义字段InstanceId(如果提供自定义字段ID 或者 自定义字段名称 则忽略)。 */ - customFieldInstanceId?: string; + customFieldInstanceId?: string /** 字段值集合。 */ - value: object[]; + value: object[] } export interface CreateProjectCustomfieldStatusResponse { result?: { - customFieldId?: string; - originalId?: string; - name?: string; - type?: string; - advancedCustomFieldObjectType?: string; - value?: number; - }; + customFieldId?: string + originalId?: string + name?: string + type?: string + advancedCustomFieldObjectType?: string + value?: number + } } export interface UpdateTaskContentParams { /** 任务标题。 */ - content?: string; + content?: string } export interface UpdateTaskContentResponse { result?: { - content?: string; - updated?: string; - }; + content?: string + updated?: string + } } export interface UpdateTaskNoteParams { /** 任务备注。 */ - note?: string; + note?: string } export interface UpdateTaskNoteResponse { result?: { - note?: string; - updated?: string; - }; + note?: string + updated?: string + } } export interface UpdateTaskInvolvemembersParams { /** 参与者用户userId。 */ - involveMembers?: string[]; + involveMembers?: string[] /** 参与者用户userId。 */ - addInvolvers?: string[]; + addInvolvers?: string[] /** 参与者用户userId。 */ - delInvolvers?: string[]; + delInvolvers?: string[] } export interface UpdateTaskInvolvemembersResponse { result?: { - involveMembers?: number; - updated?: string; - }; + involveMembers?: number + updated?: string + } } export interface UpdateTaskExecutorParams { /** 执行者用户userId。 */ - executorId?: string; + executorId?: string } export interface UpdateTaskExecutorResponse { result?: { - executorId?: string; - updated?: string; - }; + executorId?: string + updated?: string + } } export interface UpdateTaskPriorityParams { /** 优先级。 */ - priority?: number; + priority?: number } export interface UpdateTaskPriorityResponse { result?: { - priority?: number; - updated?: string; - }; + priority?: number + updated?: string + } } export interface UpdateTaskDueDateParams { /** 截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - dueDate?: string; + dueDate?: string } export interface UpdateTaskDueDateResponse { result?: { - dueDate?: string; - updated?: string; - }; + dueDate?: string + updated?: string + } } export interface GetTaskByIdsQuery { /** 任务ID集合,多个taskId,使用逗号分隔。 */ - taskId?: string; + taskId?: string /** 父任务ID。 */ - parentTaskId?: string; + parentTaskId?: string } export interface GetTaskByIdsResponse { result?: { - taskId?: string; - content?: string; - note?: string; - projectId?: string; - ancestorIds?: number; - parentTaskId?: string; - taskflowStatusId?: string; - taskListId?: string; - taskStageId?: string; - tagIds?: number; - creatorId?: string; - executorId?: string; - involveMembers?: number; - priority?: number; - storyPoint?: string; - recurrence?: number; - isDone?: number; - isArchived?: number; - visible?: string; - uniqueId?: string; - startDate?: string; - dueDate?: string; - accomplishTime?: string; - created?: string; - updated?: string; - scenarioFieldConfigId?: string; - sprintId?: string; - customFields?: number; - }[]; + taskId?: string + content?: string + note?: string + projectId?: string + ancestorIds?: number + parentTaskId?: string + taskflowStatusId?: string + taskListId?: string + taskStageId?: string + tagIds?: number + creatorId?: string + executorId?: string + involveMembers?: number + priority?: number + storyPoint?: string + recurrence?: number + isDone?: number + isArchived?: number + visible?: string + uniqueId?: string + startDate?: string + dueDate?: string + accomplishTime?: string + created?: string + updated?: string + scenarioFieldConfigId?: string + sprintId?: string + customFields?: number + }[] } export interface ArchiveTaskResponse { result?: { - updated?: string; - }; + updated?: string + } } export interface SearchUserTaskQuery { /** 用户的任务角色。 */ - roleTypes: string; + roleTypes: string /** tql内容,详情参见[任务筛选TQL](https://open.dingtalk.com/document/orgapp/the-description-of-the-tql-task)使用说明。 */ - tql?: string; + tql?: string /** 分页标,从上一次请求结果中获取。 */ - nextToken?: string; + nextToken?: string /** 每页返回最大数量。 */ - maxResults?: string; + maxResults?: string } export interface SearchUserTaskResponse { result?: { - taskId?: string; - content?: string; - note?: string; - projectId?: string; - ancestorIds?: number; - parentTaskId?: string; - taskflowStatusId?: string; - taskListId?: string; - taskStageId?: string; - tagIds?: number; - creatorId?: string; - executorId?: string; - involveMembers?: number; - priority?: number; - storyPoint?: string; - recurrence?: number; - isDone?: number; - isArchived?: number; - visible?: string; - uniqueId?: string; - startDate?: string; - dueDate?: string; - accomplishTime?: string; - created?: string; - updated?: string; - scenarioFieldConfigId?: string; - sprintId?: string; - customFields?: number; - }[]; - requestId?: string; + taskId?: string + content?: string + note?: string + projectId?: string + ancestorIds?: number + parentTaskId?: string + taskflowStatusId?: string + taskListId?: string + taskStageId?: string + tagIds?: number + creatorId?: string + executorId?: string + involveMembers?: number + priority?: number + storyPoint?: string + recurrence?: number + isDone?: number + isArchived?: number + visible?: string + uniqueId?: string + startDate?: string + dueDate?: string + accomplishTime?: string + created?: string + updated?: string + scenarioFieldConfigId?: string + sprintId?: string + customFields?: number + }[] + requestId?: string } export interface SeachTaskStageQuery { /** 任务分组ID: */ - taskListId?: string; + taskListId?: string /** 任务列表名字。 */ - query?: string; + query?: string /** 每页返回最大数量。 */ - maxResults?: number; + maxResults?: number /** 分页标,从上一次请求结果中获取。 */ - nextToken?: string; + nextToken?: string /** 任务列表 ID 集合。 */ - taskStageIds?: string; + taskStageIds?: string } export interface SeachTaskStageResponse { result?: { - taskStageId?: string; - name?: string; - description?: string; - projectId?: string; - taskListId?: string; - creatorId?: string; - created?: string; - updated?: string; - }[]; - nextToken?: string; + taskStageId?: string + name?: string + description?: string + projectId?: string + taskListId?: string + creatorId?: string + created?: string + updated?: string + }[] + nextToken?: string } export interface SearchTaskListQuery { /** 模糊任务分组名字。 */ - query?: string; + query?: string /** 每页返回最大数量。 */ - maxResults?: number; + maxResults?: number /** 分页标,从上一次请求结果中获取。 */ - nextToken?: string; + nextToken?: string /** 任务分组ID集合,多个使用英文逗号隔开。 */ - taskListIds?: string; + taskListIds?: string } export interface SearchTaskListResponse { result?: { - taskListId?: string; - title?: string; - description?: string; - projectId?: string; - creatorId?: string; - created?: string; - updated?: string; - }[]; - nextToken?: string; + taskListId?: string + title?: string + description?: string + projectId?: string + creatorId?: string + created?: string + updated?: string + }[] + nextToken?: string } export interface SearchTaskFlowQuery { /** 模糊查询工作流名字。 */ - query?: string; + query?: string /** 每页返回最大数量。 */ - maxResults?: number; + maxResults?: number /** 分页标,从上一次请求结果中获取。 */ - nextToken?: string; + nextToken?: string /** 工作流ID集合。 */ - taskflowIds?: string; + taskflowIds?: string } export interface SearchTaskFlowResponse { result?: { - taskflowId?: string; - name?: string; - boundToObjectId?: string; - boundToObjectType?: string; - creatorId?: string; - isDeleted?: number; - created?: string; - updated?: string; - }[]; + taskflowId?: string + name?: string + boundToObjectId?: string + boundToObjectType?: string + creatorId?: string + isDeleted?: number + created?: string + updated?: string + }[] } export interface GetProjectStatusListResponse { result?: { - projectId?: string; - name?: string; - content?: string; - degree?: string; - creatorId?: string; - created?: string; - }[]; + projectId?: string + name?: string + content?: string + degree?: string + creatorId?: string + created?: string + }[] } export interface DeleteProjectMemberParams { /** 用户userId。 */ - userIds: string[]; + userIds: string[] } export interface DeleteProjectMemberResponse { - result?: string[]; + result?: string[] } export interface GetProjectMemebersQuery { /** 用户ID。 */ - userIds?: string; + userIds?: string /** 项目角色ID。 */ - projectRoleId?: string; + projectRoleId?: string /** 每页返回最大数量。默认10,最大300。 */ - maxResults?: number; + maxResults?: number /** 跳过的数据数量。 */ - skip?: number; + skip?: number } export interface GetProjectMemebersResponse { result?: { - memberId?: string; - userId?: string; - role?: number; - roleIds?: number; - }[]; + memberId?: string + userId?: string + role?: number + roleIds?: number + }[] } export interface QueryProjectQuery { /** 项目ID集合: */ - projectIds?: string; + projectIds?: string /** 项目名字(模糊匹配)。 */ - name?: string; + name?: string /** 分页大小。每页返回最大数量。 */ - maxResults?: number; + maxResults?: number /** 分页标。供分页使用,下一页token,从当前页结果中获取。 */ - nextToken?: string; + nextToken?: string /** 原始项目ID。 */ - sourceId?: string; + sourceId?: string } export interface QueryProjectResponse { result?: { - projectId?: string; - name?: string; - logo?: string; - description?: string; - organizationId?: string; - visibility?: string; - isTemplate?: number; - creatorId?: string; - isArchived?: number; - isSuspended?: number; - uniqueIdPrefix?: string; - created?: string; - updated?: string; - startDate?: string; - endDate?: string; - customFields?: number; - }[]; - nextToken?: string; - requestId?: string; + projectId?: string + name?: string + logo?: string + description?: string + organizationId?: string + visibility?: string + isTemplate?: number + creatorId?: string + isArchived?: number + isSuspended?: number + uniqueIdPrefix?: string + created?: string + updated?: string + startDate?: string + endDate?: string + customFields?: number + }[] + nextToken?: string + requestId?: string } export interface SearchTaskflowStatusQuery { /** 模糊查询工作流状态名字。 */ - query?: string; + query?: string /** 每页返回最大数量。 */ - maxResults?: number; + maxResults?: number /** 分页标,从上一次请求结果中获取。 */ - nextToken?: string; + nextToken?: string /** 工作流ID集合。 */ - tfIds?: string; + tfIds?: string /** 工作流状态ID集合。 */ - tfsIds?: string; + tfsIds?: string } export interface SearchTaskflowStatusResponse { result?: { - taskflowStatusId?: string; - name?: string; - pos?: number; - taskflowId?: string; - rejectStatusIds?: number; - kind?: string; - creatorId?: string; - isDeleted?: number; - created?: string; - updated?: string; - isTaskflowstatusruleexector?: number; - }[]; + taskflowStatusId?: string + name?: string + pos?: number + taskflowId?: string + rejectStatusIds?: number + kind?: string + creatorId?: string + isDeleted?: number + created?: string + updated?: string + isTaskflowstatusruleexector?: number + }[] } export interface UpdateTaskTaskflowstatusParams { /** 任务状态ID。 */ - taskflowStatusId?: string; - taskflowStatusUpdateNote?: string; + taskflowStatusId?: string + taskflowStatusUpdateNote?: string } export interface UpdateTaskTaskflowstatusResponse { result?: { - updated?: string; - }; + updated?: string + } } export interface UpdateTaskStartdateParams { /** 任务开始时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - startDate?: string; + startDate?: string } export interface UpdateTaskStartdateResponse { result?: { - startDate?: string; - updated?: string; - }; + startDate?: string + updated?: string + } } export interface CreateProjectParams { /** 项目名称。 */ - name?: string; + name?: string } export interface CreateProjectResponse { result?: { - projectId?: string; - name?: string; - creatorId?: string; - logo?: string; - visibility?: string; - uniqueIdPrefix?: string; - created?: string; - updated?: string; - isArchived?: number; - isSuspended?: number; - normalType?: string; - rootCollectionId?: string; - sourceId?: string; - defaultCollectionId?: string; - isTemplate?: number; - customFields?: number; - }; + projectId?: string + name?: string + creatorId?: string + logo?: string + visibility?: string + uniqueIdPrefix?: string + created?: string + updated?: string + isArchived?: number + isSuspended?: number + normalType?: string + rootCollectionId?: string + sourceId?: string + defaultCollectionId?: string + isTemplate?: number + customFields?: number + } } export interface GetUserJoinedProjectQuery { /** 分页大小。 */ - maxResults?: number; + maxResults?: number /** 分页标。 */ - nextToken?: string; + nextToken?: string } export interface GetUserJoinedProjectResponse { - result?: string[]; - nextToken?: string; + result?: string[] + nextToken?: string } export interface ArchiveProjectResponse { result?: { - isArchived?: number; - updated?: string; - }; + isArchived?: number + updated?: string + } } export interface UnSuspendProjectResponse { result?: { - updated?: string; - }; + updated?: string + } } export interface SuspendProjectResponse { result?: { - updated?: string; - }; + updated?: string + } } export interface QueryTaskOfProjectQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页返回最大数量。默认10,最大500。 */ - maxResults?: number; + maxResults?: number /** 查询条件。 */ - query?: string; + query?: string } export interface QueryTaskOfProjectResponse { - totalCount: number; - nextToken: string; + totalCount: number + nextToken: string result?: { - taskId?: string; - content?: string; - involveMembers?: number; - projectId?: string; - executorId?: string; - creatorId?: string; - isDeleted?: number; - labels?: number; - created?: string; - updated?: string; - scenariofieldconfigId?: string; - customfields?: number; - note?: string; - startDate?: string; - dueDate?: string; - priority?: number; - taskflowstatusId?: string; - isDone?: number; - isArchived?: number; - visible?: string; - tagIds?: number; - stageId?: string; - sprintId?: string; - accomplished?: string; - storyPoint?: number; - progress?: number; - ancestorIds?: number; - }[]; + taskId?: string + content?: string + involveMembers?: number + projectId?: string + executorId?: string + creatorId?: string + isDeleted?: number + labels?: number + created?: string + updated?: string + scenariofieldconfigId?: string + customfields?: number + note?: string + startDate?: string + dueDate?: string + priority?: number + taskflowstatusId?: string + isDone?: number + isArchived?: number + visible?: string + tagIds?: number + stageId?: string + sprintId?: string + accomplished?: string + storyPoint?: number + progress?: number + ancestorIds?: number + }[] } export interface CreateWorkTimeParams { /** 任务执行者userId。 */ - executorId: string; + executorId: string /** 对象ID,传项目任务ID。 */ - objectId: string; + objectId: string /** 对象类型,固定值为task,表示项目任务。 */ - objectType: string; + objectType: string /** 工时提交人员的userId。 */ - submitterId: string; + submitterId: string /** 当startDate和endDate指定的时间跨天时,添加的工时时长是否连续。 */ - isDuration: unknown; + isDuration: unknown /** 添加实际工时的日期是否包含假期。 */ - includesHolidays: unknown; + includesHolidays: unknown /** 添加实际工时的开始日期。 */ - startDate: string; + startDate: string /** 结束时间。 */ - endDate: string; + endDate: string /** 实际工时时长,单位毫秒,1小时即为3600000。 */ - workTime: number; + workTime: number } export interface CreateWorkTimeQuery { /** 接口校验类型,固定值:organization。 */ - tenantType: string; + tenantType: string } export interface CreateWorkTimeResponse { result?: { - ok?: number; - message?: string; - body?: number; - }; + ok?: number + message?: string + body?: number + } } export interface CreatePlanTimeParams { /** 目标任务的执行者userId。 */ - executorId: string; + executorId: string /** 对象ID,传项目任务ID。 */ - objectId: string; + objectId: string /** 对象类型,固定值为task,表示项目任务。 */ - objectType: string; + objectType: string /** 当startDate和endDate指定的时间跨天时,添加的工时时长是否连续。 */ - isDuration: unknown; + isDuration: unknown /** 添加计划工时的日期是否包含假期。 */ - includesHolidays: unknown; + includesHolidays: unknown /** 工时提交人员的userId。 */ - submitterId: string; + submitterId: string /** 开始时间。 */ - startDate: string; + startDate: string /** 结束时间。 */ - endDate: string; + endDate: string /** 计划工时时长,单位毫秒,1小时即为3600000。 */ - planTime: number; + planTime: number } export interface CreatePlanTimeQuery { /** 接口校验类型,目前为固定值:organization。 */ - tenantType: string; + tenantType: string } export interface CreatePlanTimeResponse { result?: { - ok?: number; - message?: string; - body?: number; - }; + ok?: number + message?: string + body?: number + } } export interface UpdateCustomfieldValueParams { /** 自定义字段名。 */ - customFieldName?: string; + customFieldName?: string /** 自定义对象值。 */ - value: object[]; + value: object[] /** 自定义字段id。 */ - customFieldId?: string; + customFieldId?: string } export interface UpdateCustomfieldValueResponse { result?: { - customFields?: number; - }; + customFields?: number + } } export interface GetTbUserIdByStaffIdQuery { /** 操作者userId。 */ - optUserId: string; + optUserId: string /** 需要被查询的用户userId。 */ - userId: string; + userId: string } export interface GetTbUserIdByStaffIdResponse { result: { - tbUserId: string; - }; + tbUserId: string + } } export interface GetTbOrgIdByDingOrgIdQuery { /** 操作者userId。 */ - optUserId: string; + optUserId: string } export interface GetTbOrgIdByDingOrgIdResponse { result: { - tbOrganizationId: string; - }; + tbOrganizationId: string + } } export interface UpdateProjectGroupParams { /** 将项目添加到的目标项目分组Id列表,最大值5。 */ - addProjectGroupIds?: string[]; + addProjectGroupIds?: string[] /** 移除该项目的项目分组Id列表,最大值5。 */ - delProjectGroupIds?: string[]; + delProjectGroupIds?: string[] } export interface UpdateProjectGroupResponse { result?: { - ok?: number; - }; + ok?: number + } } export interface AddProjectMemberParams { /** 被添加的用户userId列表,建议一次不超过10个。 */ - userIds: string[]; + userIds: string[] } export interface AddProjectMemberResponse { result?: { - nickname?: string; - joined?: string; - }[]; + nickname?: string + joined?: string + }[] } export interface CreateProjectByTemplateParams { /** 项目名字。 */ - name: string; + name: string /** 模板Id。 */ - templateId: string; + templateId: string } export interface CreateProjectByTemplateResponse { result?: { - id?: string; - name?: string; - created?: string; - logo?: string; - }; + id?: string + name?: string + created?: string + logo?: string + } } export interface GetProjectGroupQuery { /** 查看者userId,即查询该员工可见的项目分组。 */ - viewerId?: string; + viewerId?: string /** 分页大小。从1开始,默认值10,最大值1000。 */ - pageSize?: number; + pageSize?: number } export interface GetProjectGroupResponse { result?: { - id?: string; - visible?: string; - name?: string; - created?: string; - updated?: string; - }[]; + id?: string + visible?: string + name?: string + created?: string + updated?: string + }[] } export interface SearchProjectTemplateQuery { /** 项目模板名称关键词。 */ - keyword?: string; + keyword?: string } export interface SearchProjectTemplateResponse { result?: { - id?: string; - description?: string; - visible?: string; - isDemo?: number; - isDeleted?: number; - name?: string; - logo?: string; - created?: string; - updated?: string; - }[]; + id?: string + description?: string + visible?: string + isDemo?: number + isDeleted?: number + name?: string + logo?: string + created?: string + updated?: string + }[] } export interface CreateTaskObjectLinkParams { /** 关联内容信息。 */ - linkedData?: unknown; + linkedData?: unknown } export interface CreateTaskObjectLinkResponse { result?: { - created?: string; - objectLinkId?: string; - }; + created?: string + objectLinkId?: string + } } export interface CreateTaskParams { /** 项目id。 */ - projectId: string; + projectId: string /** 任务标题。 */ - content: string; + content: string /** 任务执行者userId。 */ - executorId?: string; + executorId?: string /** 任务截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - dueDate?: string; + dueDate?: string /** 任务备注。 */ - note?: string; + note?: string /** 任务优先级。 */ - priority?: number; + priority?: number /** 自定义业务字段。 */ - customfields?: object[]; + customfields?: object[] /** 任务列表ID。 */ - stageId?: string; + stageId?: string /** 父任务id。 */ - parentTaskId?: string; + parentTaskId?: string /** 任务类型id,任务类型比如:缺陷、需求。 */ - scenariofieldconfigId?: string; + scenariofieldconfigId?: string /** 任务开始时间,iso8601格式,例如:2022-07-29T14:55Z。 */ - startDate?: string; + startDate?: string /** 任务的可见性规则。 */ - visible?: string; + visible?: string } export interface CreateTaskResponse { result?: { - taskId?: string; - content?: string; - involveMembers?: number; - projectId?: string; - executorId?: string; - creatorId?: string; - created?: string; - updated?: string; - note?: string; - dueDate?: string; - priority?: number; - customfields?: number; - }; + taskId?: string + content?: string + involveMembers?: number + projectId?: string + executorId?: string + creatorId?: string + created?: string + updated?: string + note?: string + dueDate?: string + priority?: number + customfields?: number + } } export interface GetOrganizatioTaskByIdsQuery { /** 任务id列表,建议不超过20个,多个任务id之间使用`,`分开。 */ - taskIds: string; + taskIds: string } export interface GetOrganizatioTaskByIdsResponse { result?: { - note?: string; - visible?: string; - executorId?: string; - created?: string; - dueDate?: string; - creatorId?: string; - involveMembers?: number; - priority?: number; - isDone?: number; - content?: string; - labels?: number; - isDeleted?: number; - ancestorIds?: number; - taskId?: string; - updated?: string; - startDate?: string; - }[]; + note?: string + visible?: string + executorId?: string + created?: string + dueDate?: string + creatorId?: string + involveMembers?: number + priority?: number + isDone?: number + content?: string + labels?: number + isDeleted?: number + ancestorIds?: number + taskId?: string + updated?: string + startDate?: string + }[] } export interface UpdateOrganizationTaskPriorityParams { /** 自由任务优先级。 */ - priority: number; + priority: number /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskPriorityResponse { result?: { - priority?: number; - updated?: string; - }; + priority?: number + updated?: string + } } export interface UpdateOrganizationTaskNoteParams { /** 任务备注。 */ - note: string; + note: string /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskNoteResponse { result?: { - note?: string; - updated?: string; - }; + note?: string + updated?: string + } } export interface UpdateOrganizationTaskInvolveMembersParams { /** 所有参与者userId列表,建议参与者总人数不超过20个。 */ - involveMembers?: string[]; + involveMembers?: string[] /** 增加的参与者userId列表,建议参与者总人数不超过20个。 */ - addInvolvers?: string[]; + addInvolvers?: string[] /** 删除的参与者userId列表。 */ - delInvolvers?: string[]; + delInvolvers?: string[] /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskInvolveMembersResponse { result?: { - involvers?: number; - updated?: string; - }; + involvers?: number + updated?: string + } } export interface UpdateOrganizationTaskExecutorParams { /** 任务执行者userId。 */ - executorId: string; + executorId: string /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskExecutorResponse { result?: { - executorId?: string; - updated?: string; - executor?: number; - involvers?: number; - }; + executorId?: string + updated?: string + executor?: number + involvers?: number + } } export interface UpdateOrganizationTaskDueDateParams { /** 任务截止时间,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - dueDate: string; + dueDate: string /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskDueDateResponse { result?: { - dueDate?: string; - updateTime?: string; - }; + dueDate?: string + updateTime?: string + } } export interface UpdateOrganizationTaskContentParams { /** 任务标题。 */ - content: string; + content: string /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskContentResponse { result?: { - content?: string; - updated?: string; - }; + content?: string + updated?: string + } } export interface UpdateOrganizationTaskStatusParams { /** 自由任务状态。 */ - isDone: unknown; + isDone: unknown /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown } export interface UpdateOrganizationTaskStatusResponse { result?: { - isDone?: number; - updateTime?: string; - }; + isDone?: number + updateTime?: string + } } export interface GetOrganizationPriorityListResponse { result?: { - color?: string; - name?: string; - priorityId?: string; - priority?: string; - }[]; + color?: string + name?: string + priorityId?: string + priority?: string + }[] } export interface GetOrganizationTaskResponse { result?: { - note?: string; - visible?: string; - executorId?: string; - created?: string; - dueDate?: string; - creatorId?: string; - involveMembers?: number; - priority?: number; - isDone?: number; - content?: string; - labels?: number; - isDeleted?: number; - ancestorIds?: number; - taskId?: string; - updated?: string; - startDate?: string; - }; + note?: string + visible?: string + executorId?: string + created?: string + dueDate?: string + creatorId?: string + involveMembers?: number + priority?: number + isDone?: number + content?: string + labels?: number + isDeleted?: number + ancestorIds?: number + taskId?: string + updated?: string + startDate?: string + } } export interface DeleteTaskResponse { - result?: unknown; + result?: unknown } export interface CreateOrganizationTaskParams { /** 任务标题。 */ - content: string; + content: string /** 任务备注。 */ - note?: string; + note?: string /** 自由任务优先级,如下图所示。用户是否有自定义更新优先级,获取该参数方法不同。 */ - priority: number; + priority: number /** 参与者userId列表,建议参与者总人数不超过20个。 */ - involveMembers?: string[]; + involveMembers?: string[] /** 执行者userId。 */ - executorId?: string; + executorId?: string /** 任务截止日期,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - dueDate?: string; + dueDate?: string /** 任务创建日期,格式:YYYY-MM-DDTHH:mm:ssZ(ISO 8601/RFC 3339)。 */ - createTime?: string; + createTime?: string /** 任务可见性。 */ - visible: string; + visible: string /** 是否禁止通知。 */ - disableNotification?: unknown; + disableNotification?: unknown /** 是否禁止动态。 */ - disableActivity?: unknown; + disableActivity?: unknown } export interface CreateOrganizationTaskResponse { result?: { - dueDate?: string; - executor?: number; - id?: string; - visible?: string; - created?: string; - priority?: number; - involvers?: number; - updated?: string; - note?: string; - hasReminder?: number; - creatorId?: string; - content?: string; - attachmentsCount?: number; - isDeleted?: number; - ancestorIds?: number; - creator?: number; - executorId?: string; - involveMembers?: number; - isDone?: string; - }; + dueDate?: string + executor?: number + id?: string + visible?: string + created?: string + priority?: number + involvers?: number + updated?: string + note?: string + hasReminder?: number + creatorId?: string + content?: string + attachmentsCount?: number + isDeleted?: number + ancestorIds?: number + creator?: number + executorId?: string + involveMembers?: number + isDone?: string + } } // funcName: isOldApi Internal.define({ - "/project/users/{userId}/projects/{projectId}/customfields": { + '/project/users/{userId}/projects/{projectId}/customfields': { PUT: { createProjectCustomfieldStatus: false }, }, - "/project/users/{userId}/tasks/{taskId}/contents": { + '/project/users/{userId}/tasks/{taskId}/contents': { PUT: { updateTaskContent: false }, }, - "/project/users/{userId}/tasks/{taskId}/notes": { + '/project/users/{userId}/tasks/{taskId}/notes': { PUT: { updateTaskNote: false }, }, - "/project/users/{userId}/tasks/{taskId}/involveMembers": { + '/project/users/{userId}/tasks/{taskId}/involveMembers': { PUT: { updateTaskInvolvemembers: false }, }, - "/project/users/{userId}/tasks/{taskId}/executors": { + '/project/users/{userId}/tasks/{taskId}/executors': { PUT: { updateTaskExecutor: false }, }, - "/project/users/{userId}/tasks/{taskId}/priorities": { + '/project/users/{userId}/tasks/{taskId}/priorities': { PUT: { updateTaskPriority: false }, }, - "/project/users/{userId}/tasks/{taskId}/dueDates": { + '/project/users/{userId}/tasks/{taskId}/dueDates': { PUT: { updateTaskDueDate: false }, }, - "/project/users/{userId}/tasks": { + '/project/users/{userId}/tasks': { GET: { getTaskByIds: false }, POST: { createTask: false }, }, - "/project/users/{userId}/tasks/{taskId}/archive": { + '/project/users/{userId}/tasks/{taskId}/archive': { POST: { archiveTask: false }, }, - "/project/users/{userId}/tasks/search": { POST: { searchUserTask: false } }, - "/project/users/{userId}/projects/{projectId}/taskStages/search": { + '/project/users/{userId}/tasks/search': { POST: { searchUserTask: false } }, + '/project/users/{userId}/projects/{projectId}/taskStages/search': { POST: { seachTaskStage: false }, }, - "/project/users/{userId}/projects/{projectId}/taskLists/search": { + '/project/users/{userId}/projects/{projectId}/taskLists/search': { POST: { searchTaskList: false }, }, - "/project/users/{userId}/projects/{projectId}/taskflows/search": { + '/project/users/{userId}/projects/{projectId}/taskflows/search': { POST: { searchTaskFlow: false }, }, - "/project/users/{userId}/projects/{projectId}/statuses": { + '/project/users/{userId}/projects/{projectId}/statuses': { GET: { getProjectStatusList: false }, }, - "/project/users/{userId}/projects/{projectId}/members/remove": { + '/project/users/{userId}/projects/{projectId}/members/remove': { POST: { deleteProjectMember: false }, }, - "/project/users/{userId}/projects/{projectId}/members": { + '/project/users/{userId}/projects/{projectId}/members': { GET: { getProjectMemebers: false }, POST: { addProjectMember: false }, }, - "/project/users/{userId}/projects/query": { POST: { queryProject: false } }, - "/project/users/{userId}/projects/{projectId}/taskflowStatuses/search": { + '/project/users/{userId}/projects/query': { POST: { queryProject: false } }, + '/project/users/{userId}/projects/{projectId}/taskflowStatuses/search': { GET: { searchTaskflowStatus: false }, }, - "/project/users/{userId}/tasks/{taskId}/taskflowStatuses": { + '/project/users/{userId}/tasks/{taskId}/taskflowStatuses': { PUT: { updateTaskTaskflowstatus: false }, }, - "/project/users/{userId}/tasks/{taskId}/startDates": { + '/project/users/{userId}/tasks/{taskId}/startDates': { PUT: { updateTaskStartdate: false }, }, - "/project/users/{userId}/projects": { POST: { createProject: false } }, - "/project/users/{userId}/joinProjects": { + '/project/users/{userId}/projects': { POST: { createProject: false } }, + '/project/users/{userId}/joinProjects': { GET: { getUserJoinedProject: false }, }, - "/project/users/{userId}/projects/{projectId}/archive": { + '/project/users/{userId}/projects/{projectId}/archive': { POST: { archiveProject: false }, }, - "/project/users/{userId}/projects/{projectId}/unsuspend": { + '/project/users/{userId}/projects/{projectId}/unsuspend': { POST: { unSuspendProject: false }, }, - "/project/users/{userId}/projects/{projectId}/suspend": { + '/project/users/{userId}/projects/{projectId}/suspend': { POST: { suspendProject: false }, }, - "/project/users/{userId}/projectIds/{projectId}/tasks": { + '/project/users/{userId}/projectIds/{projectId}/tasks': { GET: { queryTaskOfProject: false }, }, - "/project/users/{userId}/workTimes": { POST: { createWorkTime: false } }, - "/project/users/{userId}/planTimes": { POST: { createPlanTime: false } }, - "/project/users/{userId}/tasks/{taskId}/customFields": { + '/project/users/{userId}/workTimes': { POST: { createWorkTime: false } }, + '/project/users/{userId}/planTimes': { POST: { createPlanTime: false } }, + '/project/users/{userId}/tasks/{taskId}/customFields': { PUT: { updateCustomfieldValue: false }, }, - "/project/teambition/users": { GET: { getTbUserIdByStaffId: false } }, - "/project/teambition/organizations": { + '/project/teambition/users': { GET: { getTbUserIdByStaffId: false } }, + '/project/teambition/organizations': { GET: { getTbOrgIdByDingOrgId: false }, }, - "/project/users/{userId}/projects/{projectId}/groups": { + '/project/users/{userId}/projects/{projectId}/groups': { PUT: { updateProjectGroup: false }, }, - "/project/users/{userId}/templates/projects": { + '/project/users/{userId}/templates/projects': { POST: { createProjectByTemplate: false }, }, - "/project/organizations/users/{userId}/groups": { + '/project/organizations/users/{userId}/groups': { GET: { getProjectGroup: false }, }, - "/project/organizations/users/{userId}/templates": { + '/project/organizations/users/{userId}/templates': { GET: { searchProjectTemplate: false }, }, - "/project/users/{userId}/tasks/{taskId}/objectLinks": { + '/project/users/{userId}/tasks/{taskId}/objectLinks': { POST: { createTaskObjectLink: false }, }, - "/project/organizations/users/{userId}/tasks": { + '/project/organizations/users/{userId}/tasks': { GET: { getOrganizatioTaskByIds: false }, POST: { createOrganizationTask: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/priorities": { + '/project/organizations/users/{userId}/tasks/{taskId}/priorities': { PUT: { updateOrganizationTaskPriority: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/notes": { + '/project/organizations/users/{userId}/tasks/{taskId}/notes': { PUT: { updateOrganizationTaskNote: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/involveMembers": { + '/project/organizations/users/{userId}/tasks/{taskId}/involveMembers': { PUT: { updateOrganizationTaskInvolveMembers: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/executors": { + '/project/organizations/users/{userId}/tasks/{taskId}/executors': { PUT: { updateOrganizationTaskExecutor: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/dueDates": { + '/project/organizations/users/{userId}/tasks/{taskId}/dueDates': { PUT: { updateOrganizationTaskDueDate: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/contents": { + '/project/organizations/users/{userId}/tasks/{taskId}/contents': { PUT: { updateOrganizationTaskContent: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}/states": { + '/project/organizations/users/{userId}/tasks/{taskId}/states': { PUT: { updateOrganizationTaskStatus: false }, }, - "/project/organizations/users/{userId}/priorities": { + '/project/organizations/users/{userId}/priorities': { GET: { getOrganizationPriorityList: false }, }, - "/project/organizations/users/{userId}/tasks/{taskId}": { + '/project/organizations/users/{userId}/tasks/{taskId}': { GET: { getOrganizationTask: false }, }, - "/project/users/{userId}/tasks/{taskId}": { DELETE: { deleteTask: false } }, -}); -declare module "../internal" { + '/project/users/{userId}/tasks/{taskId}': { DELETE: { deleteTask: false } }, +}) +declare module '../internal' { interface Internal { /** * 创建或更新项目概览中自定义字段值 @@ -1102,7 +1102,7 @@ declare module "../internal" { userId: string, projectId: string, params: CreateProjectCustomfieldStatusParams, - ): Promise; + ): Promise /** * 更新任务标题 * @see https://developers.dingtalk.com/document/orgapp/update-task-content @@ -1111,7 +1111,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskContentParams, - ): Promise; + ): Promise /** * 更新任务备注 * @see https://developers.dingtalk.com/document/orgapp/update-task-notes @@ -1120,7 +1120,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskNoteParams, - ): Promise; + ): Promise /** * 更新任务参与者 * @see https://developers.dingtalk.com/document/orgapp/update-task-participants @@ -1129,7 +1129,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskInvolvemembersParams, - ): Promise; + ): Promise /** * 更新任务执行者 * @see https://developers.dingtalk.com/document/orgapp/update-task-performer @@ -1138,7 +1138,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskExecutorParams, - ): Promise; + ): Promise /** * 更新任务优先级 * @see https://developers.dingtalk.com/document/orgapp/update-task-priority @@ -1147,7 +1147,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskPriorityParams, - ): Promise; + ): Promise /** * 更新任务截止时间 * @see https://developers.dingtalk.com/document/orgapp/update-task-deadline @@ -1156,7 +1156,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskDueDateParams, - ): Promise; + ): Promise /** * 获取任务详情 * @see https://developers.dingtalk.com/document/orgapp/get-task-details @@ -1164,12 +1164,12 @@ declare module "../internal" { getTaskByIds( userId: string, query: GetTaskByIdsQuery, - ): Promise; + ): Promise /** * 任务迁移至回收站 * @see https://developers.dingtalk.com/document/orgapp/archive-tasks */ - archiveTask(userId: string, taskId: string): Promise; + archiveTask(userId: string, taskId: string): Promise /** * 查询用户任务列表 * @see https://developers.dingtalk.com/document/orgapp/querying-user-tasks @@ -1177,7 +1177,7 @@ declare module "../internal" { searchUserTask( userId: string, query: SearchUserTaskQuery, - ): Promise; + ): Promise /** * 获取任务列表 * @see https://developers.dingtalk.com/document/orgapp/get-task-list @@ -1186,7 +1186,7 @@ declare module "../internal" { userId: string, projectId: string, query: SeachTaskStageQuery, - ): Promise; + ): Promise /** * 查询任务分组 * @see https://developers.dingtalk.com/document/orgapp/query-task-grouping @@ -1195,7 +1195,7 @@ declare module "../internal" { userId: string, projectId: string, query: SearchTaskListQuery, - ): Promise; + ): Promise /** * 查询任务工作流 * @see https://developers.dingtalk.com/document/orgapp/query-task-workflow @@ -1204,7 +1204,7 @@ declare module "../internal" { userId: string, projectId: string, query: SearchTaskFlowQuery, - ): Promise; + ): Promise /** * 查询项目状态 * @see https://developers.dingtalk.com/document/orgapp/query-project-status @@ -1212,7 +1212,7 @@ declare module "../internal" { getProjectStatusList( userId: string, projectId: string, - ): Promise; + ): Promise /** * 删除项目成员 * @see https://developers.dingtalk.com/document/orgapp/delete-project-members @@ -1221,7 +1221,7 @@ declare module "../internal" { userId: string, projectId: string, params: DeleteProjectMemberParams, - ): Promise; + ): Promise /** * 获取项目成员 * @see https://developers.dingtalk.com/document/orgapp/get-project-members @@ -1230,7 +1230,7 @@ declare module "../internal" { userId: string, projectId: string, query: GetProjectMemebersQuery, - ): Promise; + ): Promise /** * 查询项目 * @see https://developers.dingtalk.com/document/orgapp/query-enterprise-all-projects @@ -1238,7 +1238,7 @@ declare module "../internal" { queryProject( userId: string, query: QueryProjectQuery, - ): Promise; + ): Promise /** * 搜索任务工作流状态 * @see https://developers.dingtalk.com/document/isvapp/search-task-workflow-status @@ -1247,7 +1247,7 @@ declare module "../internal" { userId: string, projectId: string, query: SearchTaskflowStatusQuery, - ): Promise; + ): Promise /** * 更新任务工作流状态 * @see https://developers.dingtalk.com/document/isvapp/update-task-workflow-status @@ -1256,7 +1256,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskTaskflowstatusParams, - ): Promise; + ): Promise /** * 更新任务开始时间 * @see https://developers.dingtalk.com/document/orgapp/update-task-start-time @@ -1265,7 +1265,7 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateTaskStartdateParams, - ): Promise; + ): Promise /** * 创建项目 * @see https://developers.dingtalk.com/document/orgapp/create-project @@ -1273,7 +1273,7 @@ declare module "../internal" { createProject( userId: string, params: CreateProjectParams, - ): Promise; + ): Promise /** * 获取用户加入的项目 * @see https://developers.dingtalk.com/document/orgapp/get-projects-joined-by-users @@ -1281,7 +1281,7 @@ declare module "../internal" { getUserJoinedProject( userId: string, query: GetUserJoinedProjectQuery, - ): Promise; + ): Promise /** * 项目放入回收站 * @see https://developers.dingtalk.com/document/orgapp/items-in-recycle-bin @@ -1289,7 +1289,7 @@ declare module "../internal" { archiveProject( userId: string, projectId: string, - ): Promise; + ): Promise /** * 恢复项目归档 * @see https://developers.dingtalk.com/document/orgapp/cancel-project-archiving @@ -1297,7 +1297,7 @@ declare module "../internal" { unSuspendProject( projectId: string, userId: string, - ): Promise; + ): Promise /** * 归档项目 * @see https://developers.dingtalk.com/document/orgapp/archiving-project @@ -1305,7 +1305,7 @@ declare module "../internal" { suspendProject( projectId: string, userId: string, - ): Promise; + ): Promise /** * 查询项目中的任务 * @see https://developers.dingtalk.com/document/isvapp/query-tasks-in-a-project @@ -1314,7 +1314,7 @@ declare module "../internal" { userId: string, projectId: string, query: QueryTaskOfProjectQuery, - ): Promise; + ): Promise /** * 录入实际工时接口 * @see https://developers.dingtalk.com/document/isvapp/create-actual-work @@ -1323,7 +1323,7 @@ declare module "../internal" { userId: string, query: CreateWorkTimeQuery, params: CreateWorkTimeParams, - ): Promise; + ): Promise /** * 录入计划工时 * @see https://developers.dingtalk.com/document/isvapp/create-planned-work @@ -1332,7 +1332,7 @@ declare module "../internal" { userId: string, query: CreatePlanTimeQuery, params: CreatePlanTimeParams, - ): Promise; + ): Promise /** * 更新任务自定义字段的值 * @see https://developers.dingtalk.com/document/isvapp/update-task-custom-field-value @@ -1341,21 +1341,21 @@ declare module "../internal" { userId: string, taskId: string, params: UpdateCustomfieldValueParams, - ): Promise; + ): Promise /** * 根据钉钉UserId获取Teambition用户Id * @see https://developers.dingtalk.com/document/isvapp/obtain-dingtalk-teambition-user-id-based-on-userid */ getTbUserIdByStaffId( query: GetTbUserIdByStaffIdQuery, - ): Promise; + ): Promise /** * 获取Teambition企业Id * @see https://developers.dingtalk.com/document/isvapp/obtain-the-teambition-enterprise-id */ getTbOrgIdByDingOrgId( query: GetTbOrgIdByDingOrgIdQuery, - ): Promise; + ): Promise /** * 更新项目的分组 * @see https://developers.dingtalk.com/document/isvapp/update-project-grouping @@ -1364,7 +1364,7 @@ declare module "../internal" { userId: string, projectId: string, params: UpdateProjectGroupParams, - ): Promise; + ): Promise /** * 增加项目成员 * @see https://developers.dingtalk.com/document/isvapp/add-project-members @@ -1373,7 +1373,7 @@ declare module "../internal" { userId: string, projectId: string, params: AddProjectMemberParams, - ): Promise; + ): Promise /** * 根据项目模板创建项目 * @see https://developers.dingtalk.com/document/isvapp/create-a-project-from-a-project-template @@ -1381,7 +1381,7 @@ declare module "../internal" { createProjectByTemplate( userId: string, params: CreateProjectByTemplateParams, - ): Promise; + ): Promise /** * 查询可见的项目分组 * @see https://developers.dingtalk.com/document/isvapp/query-available-project-groups @@ -1389,7 +1389,7 @@ declare module "../internal" { getProjectGroup( userId: string, query: GetProjectGroupQuery, - ): Promise; + ): Promise /** * 按项目模板名字搜索企业自定义模板 * @see https://developers.dingtalk.com/document/isvapp/search-for-enterprise-custom-templates-by-project-template-name @@ -1397,7 +1397,7 @@ declare module "../internal" { searchProjectTemplate( userId: string, query: SearchProjectTemplateQuery, - ): Promise; + ): Promise /** * 创建任务关联对象 * @see https://developers.dingtalk.com/document/isvapp/create-a-linked-object-associated-with-a-task @@ -1406,7 +1406,7 @@ declare module "../internal" { userId: string, taskId: string, params: CreateTaskObjectLinkParams, - ): Promise; + ): Promise /** * 创建项目任务 * @see https://developers.dingtalk.com/document/isvapp/create-a-project-task @@ -1414,7 +1414,7 @@ declare module "../internal" { createTask( userId: string, params: CreateTaskParams, - ): Promise; + ): Promise /** * 批量获取任务详情 * @see https://developers.dingtalk.com/document/isvapp/obtains-details-about-multiple-free-tasks-isv @@ -1422,7 +1422,7 @@ declare module "../internal" { getOrganizatioTaskByIds( userId: string, query: GetOrganizatioTaskByIdsQuery, - ): Promise; + ): Promise /** * 更新自由任务优先级 * @see https://developers.dingtalk.com/document/isvapp/update-the-priority-of-a-free-migration-job @@ -1431,7 +1431,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskPriorityParams, - ): Promise; + ): Promise /** * 更改自由任务备注 * @see https://developers.dingtalk.com/document/isvapp/update-free-task-notes-isv @@ -1440,7 +1440,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskNoteParams, - ): Promise; + ): Promise /** * 更新自由任务参与者 * @see https://developers.dingtalk.com/document/isvapp/add-or-remove-participants-of-free-tasks @@ -1449,7 +1449,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskInvolveMembersParams, - ): Promise; + ): Promise /** * 更改自由任务执行者 * @see https://developers.dingtalk.com/document/isvapp/update-free-task-executor @@ -1458,7 +1458,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskExecutorParams, - ): Promise; + ): Promise /** * 更新自由任务截止时间 * @see https://developers.dingtalk.com/document/isvapp/update-free-task-deadline @@ -1467,7 +1467,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskDueDateParams, - ): Promise; + ): Promise /** * 更改自由任务标题 * @see https://developers.dingtalk.com/document/isvapp/update-free-task-title @@ -1476,7 +1476,7 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskContentParams, - ): Promise; + ): Promise /** * 更改自由任务状态 * @see https://developers.dingtalk.com/document/isvapp/update-free-task-status @@ -1485,14 +1485,14 @@ declare module "../internal" { taskId: string, userId: string, params: UpdateOrganizationTaskStatusParams, - ): Promise; + ): Promise /** * 获取企业优先级列表 * @see https://developers.dingtalk.com/document/isvapp/query-a-priority-list-isv */ getOrganizationPriorityList( userId: string, - ): Promise; + ): Promise /** * 获取自由任务详情 * @see https://developers.dingtalk.com/document/isvapp/queries-free-task-details-isv @@ -1500,12 +1500,12 @@ declare module "../internal" { getOrganizationTask( taskId: string, userId: string, - ): Promise; + ): Promise /** * 删除任务 * @see https://developers.dingtalk.com/document/orgapp/delete-task */ - deleteTask(userId: string, taskId: string): Promise; + deleteTask(userId: string, taskId: string): Promise /** * 创建自由任务 * @see https://developers.dingtalk.com/document/isvapp/create-a-free-task-isv @@ -1513,6 +1513,6 @@ declare module "../internal" { createOrganizationTask( userId: string, params: CreateOrganizationTaskParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/resident.ts b/adapters/dingtalk/src/api/resident.ts index 3aa983d9..a481f0c5 100644 --- a/adapters/dingtalk/src/api/resident.ts +++ b/adapters/dingtalk/src/api/resident.ts @@ -1,132 +1,132 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface AddPointQuery { /** 是否查询全员圈积分规则,取值: */ - isCircle: unknown; + isCircle: unknown /** 加减积分的唯一幂等标志,由调用方自己生成。 */ - uuid: string; + uuid: string /** 用户userid,可以调用[通过免登码获取用户信息](https://developers.dingtalk.com/document/app/obtain-the-userid-of-a-user-by-using-the-log-free)接口获取。 */ - userId: string; + userId: string /** 规则代码。可以为空。 */ - ruleCode?: string; + ruleCode?: string /** 规则名字。 */ - ruleName: string; + ruleName: string /** 增加积分的时间戳,单位毫秒。 */ - actionTime?: number; + actionTime?: number /** 本次增加积分。 */ - score: number; + score: number } export interface PagePointHistoryQuery { /** 是否查询全员圈积分记录,否则查询积分管理积分记录,取值: */ - isCircle: unknown; + isCircle: unknown /** 用户userid。 */ - userId?: string; + userId?: string /** 分页游标,第一次请求传0,后续取值是上一次调用此API返回的nextToken参数。 */ - nextToken: number; + nextToken: number /** 本次读取的最大数据记录数量,最大值20。 */ - maxResults: number; + maxResults: number /** 起始时间Unix时间戳,单位毫秒。 */ - startTime?: number; + startTime?: number /** 结束时间Unix时间戳(不包含),单位毫秒。 */ - endTime?: number; + endTime?: number } export interface PagePointHistoryResponse { pointRecordList: { - userId: string; - score: number; - createAt: number; - uuid: string; - ruleCode?: string; - ruleName: string; - }[]; - hasMore: unknown; - nextToken: number; - totalCount: number; + userId: string + score: number + createAt: number + uuid: string + ruleCode?: string + ruleName: string + }[] + hasMore: unknown + nextToken: number + totalCount: number } export interface ListPointRulesQuery { /** 是否查询全员圈积分规则,否则查询积分管理积分规则,取值: */ - isCircle: unknown; + isCircle: unknown } export interface ListPointRulesResponse { pointRuleList: { - score: number; - dayLimitTimes: number; - status: number; - ruleCode?: string; - ruleName: string; - extension: string; - groupId: number; - orderId: number; - }[]; + score: number + dayLimitTimes: number + status: number + ruleCode?: string + ruleName: string + extension: string + groupId: number + orderId: number + }[] } export interface ListIndustryRoleUsersQuery { /** 行业角色编码,有以下取值: */ - tagCode: string; + tagCode: string } export interface ListIndustryRoleUsersResponse { - userIdList?: string[]; + userIdList?: string[] } export interface ListUserIndustryRolesQuery { /** 用户userId。 */ - userId: string; + userId: string } export interface ListUserIndustryRolesResponse { roleList?: { - roleId?: number; - roleName?: string; - tagCode?: string; - }[]; + roleId?: number + roleName?: string + tagCode?: string + }[] } // funcName: isOldApi Internal.define({ - "/resident/points": { POST: { addPoint: false } }, - "/resident/points/records": { GET: { pagePointHistory: false } }, - "/resident/points/rules": { GET: { listPointRules: false } }, - "/resident/industryRoles/users": { GET: { listIndustryRoleUsers: false } }, - "/resident/users/industryRoles": { GET: { listUserIndustryRoles: false } }, -}); -declare module "../internal" { + '/resident/points': { POST: { addPoint: false } }, + '/resident/points/records': { GET: { pagePointHistory: false } }, + '/resident/points/rules': { GET: { listPointRules: false } }, + '/resident/industryRoles/users': { GET: { listIndustryRoleUsers: false } }, + '/resident/users/industryRoles': { GET: { listUserIndustryRoles: false } }, +}) +declare module '../internal' { interface Internal { /** * 增加或减少居民积分 * @see https://developers.dingtalk.com/document/isvapp/increase-or-decrease-resident-points */ - addPoint(query: AddPointQuery): Promise; + addPoint(query: AddPointQuery): Promise /** * 查询数字区县居民积分流水 * @see https://developers.dingtalk.com/document/isvapp/query-the-integral-flow-records-by-page */ pagePointHistory( query: PagePointHistoryQuery, - ): Promise; + ): Promise /** * 查询组织维度配置的的积分规则 * @see https://developers.dingtalk.com/document/isvapp/query-all-credit-rules */ - listPointRules(query: ListPointRulesQuery): Promise; + listPointRules(query: ListPointRulesQuery): Promise /** * 获取行业角色下的用户列表 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-users-under-an-industry-role */ listIndustryRoleUsers( query: ListIndustryRoleUsersQuery, - ): Promise; + ): Promise /** * 获取用户所在的行业角色信息 * @see https://developers.dingtalk.com/document/isvapp/obtains-information-about-the-industry-role-to-which-the-user */ listUserIndustryRoles( query: ListUserIndustryRolesQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/robot.ts b/adapters/dingtalk/src/api/robot.ts index 993172ed..ef1b1634 100644 --- a/adapters/dingtalk/src/api/robot.ts +++ b/adapters/dingtalk/src/api/robot.ts @@ -1,235 +1,235 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetBotListInGroupParams { /** 群ID: */ - openConversationId: string; + openConversationId: string } export interface GetBotListInGroupResponse { chatbotInstanceVOList?: { - robotCode?: string; - name?: string; - downloadIconURL?: string; - openRobotType?: number; - }[]; + robotCode?: string + name?: string + downloadIconURL?: string + openRobotType?: number + }[] } export interface RobotMessageFileDownloadParams { /** 用户向机器人发送文件消息后,机器人回调给开发者消息中的下载码。 */ - downloadCode: string; + downloadCode: string /** 机器人的编码: */ - robotCode: string; + robotCode: string } export interface RobotMessageFileDownloadResponse { - downloadUrl: string; + downloadUrl: string } export interface ClearRobotPluginParams { /** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */ - robotCode: string; + robotCode: string } export interface ClearRobotPluginResponse { - result?: unknown; + result?: unknown } export interface SetRobotPluginParams { /** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */ - robotCode?: string; + robotCode?: string /** 插件信息。 */ - pluginInfoList?: object[]; + pluginInfoList?: object[] } export interface SetRobotPluginResponse { - result?: unknown; + result?: unknown } export interface QueryRobotPluginParams { /** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/orgapp/robot-overview#title-ed9-e7b-epe)内容,获取`robotCode`。 */ - robotCode: string; + robotCode: string } export interface QueryRobotPluginResponse { pluginInfoList?: { - name?: string; - icon?: string; - pcUrl?: string; - mobileUrl?: string; - }[]; + name?: string + icon?: string + pcUrl?: string + mobileUrl?: string + }[] } export interface OrgGroupRecallParams { /** 开放的群ID。 */ - openConversationId: string; + openConversationId: string /** 机器人的编码。 */ - robotCode: string; - processQueryKeys: string[]; + robotCode: string + processQueryKeys: string[] } export interface OrgGroupRecallResponse { - successResult: string[]; - failedResult: unknown; + successResult: string[] + failedResult: unknown } export interface OrgGroupQueryParams { /** 开放的群id。 */ - openConversationId?: string; + openConversationId?: string /** 机器人的robotCode。 */ - robotCode?: string; + robotCode?: string /** 机器人在群内安装后,群内机器人的webhook属性中中的access_token部分的值。 */ - token?: string; + token?: string /** 发送消息返回的加密消息id。 */ - processQueryKey: string; + processQueryKey: string /** 分页查询每页的数量。 */ - maxResults?: number; + maxResults?: number /** 一次查询后返回的加密的分页凭证,首次查询不填。 */ - nextToken?: string; + nextToken?: string } export interface OrgGroupQueryResponse { - sendStatus?: string; - readUserIds?: string[]; - nextToken?: string; - hasMore?: unknown; + sendStatus?: string + readUserIds?: string[] + nextToken?: string + hasMore?: unknown } export interface OrgGroupSendParams { /** 消息模板参数。 */ - msgParam: string; + msgParam: string /** 消息模板key。 */ - msgKey: string; + msgKey: string /** 群id: */ - openConversationId?: string; + openConversationId?: string /** 机器人的编码。 */ - robotCode?: string; + robotCode?: string /** 机器人在群内安装后,群内机器人的webhook属性中中的`access_token`的参数值。 */ - token?: string; + token?: string /** 群聊酷应用编码。 */ - coolAppCode?: string; + coolAppCode?: string } export interface OrgGroupSendResponse { - processQueryKey: string; + processQueryKey: string } export interface BatchRecallOTOParams { /** 机器人的编码。 */ - robotCode: string; - processQueryKeys: string[]; + robotCode: string + processQueryKeys: string[] } export interface BatchRecallOTOResponse { - successResult?: string[]; - failedResult?: unknown; + successResult?: string[] + failedResult?: unknown } export interface BatchOTOQueryQuery { /** - 企业内部开发-机器人,此处为企业自建应用的appKey。 */ - robotCode: string; + robotCode: string /** 加密的消息id,可通过调用[发送批量单聊信息](https://open.dingtalk.com/document/group/chatbots-send-one-on-one-chat-messages-in-batches)接口获取。 */ - processQueryKey: string; + processQueryKey: string } export interface BatchOTOQueryResponse { - sendStatus?: string; + sendStatus?: string messageReadInfoList?: { - name: string; - userId: string; - readStatus: string; - readTimestamp: number; - }[]; + name: string + userId: string + readStatus: string + readTimestamp: number + }[] } export interface BatchSendOTOParams { /** 机器人的编码。 */ - robotCode: string; + robotCode: string /** 用户的userid。 */ - userIds: string[]; + userIds: string[] /** 消息的msgKey。 */ - msgKey: string; + msgKey: string /** 消息体。 */ - msgParam: string; + msgParam: string } export interface BatchSendOTOResponse { - processQueryKey?: string; - invalidStaffIdList?: string[]; - flowControlledStaffIdList?: string[]; + processQueryKey?: string + invalidStaffIdList?: string[] + flowControlledStaffIdList?: string[] } export interface PrivateChatSendParams { /** 消息体。 */ - msgParam: string; + msgParam: string /** 消息类型的key。 */ - msgKey: string; + msgKey: string /** 会话ID。 */ - openConversationId?: string; + openConversationId?: string /** 机器人编码。 */ - robotCode?: string; + robotCode?: string /** 酷应用的code。 */ - coolAppCode?: string; + coolAppCode?: string } export interface PrivateChatSendResponse { - processQueryKey: string; + processQueryKey: string } export interface PrivateChatQueryParams { /** 人与人单聊开放会话ID: */ - openConversationId?: string; + openConversationId?: string /** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/group/robot-overview)内容,获取`robotCode`。 */ - robotCode?: string; + robotCode?: string /** 发送消息返回的加密消息id */ - processQueryKey: string; + processQueryKey: string /** 分页查询每页的数量 */ - maxResults?: number; + maxResults?: number /** 一次查询后返回的加密的分页凭证,首次查询不填 */ - nextToken?: string; + nextToken?: string } export interface PrivateChatQueryResponse { - sendStatus?: string; - readUserIds?: string[]; - nextToken?: string; - hasMore?: unknown; + sendStatus?: string + readUserIds?: string[] + nextToken?: string + hasMore?: unknown } export interface BatchRecallPrivateChatParams { /** 人与人单聊开放会话ID: */ - openConversationId: string; + openConversationId: string /** 机器人的编码,参见[机器人名词表-robotCode](https://open.dingtalk.com/document/group/robot-overview)内容,获取`robotCode`。 */ - robotCode: string; + robotCode: string /** 消息id */ - processQueryKeys: string[]; + processQueryKeys: string[] } export interface BatchRecallPrivateChatResponse { - successResult: string[]; - failedResult: unknown; + successResult: string[] + failedResult: unknown } // funcName: isOldApi Internal.define({ - "/robot/groups/robots/query": { POST: { getBotListInGroup: false } }, - "/robot/messageFiles/download": { POST: { robotMessageFileDownload: false } }, - "/robot/plugins/clear": { POST: { clearRobotPlugin: false } }, - "/robot/plugins/set": { POST: { setRobotPlugin: false } }, - "/robot/plugins/query": { POST: { queryRobotPlugin: false } }, - "/robot/groupMessages/recall": { POST: { orgGroupRecall: false } }, - "/robot/groupMessages/query": { POST: { orgGroupQuery: false } }, - "/robot/groupMessages/send": { POST: { orgGroupSend: false } }, - "/robot/otoMessages/batchRecall": { POST: { batchRecallOTO: false } }, - "/robot/oToMessages/readStatus": { GET: { batchOTOQuery: false } }, - "/robot/oToMessages/batchSend": { POST: { batchSendOTO: false } }, - "/robot/privateChatMessages/send": { POST: { privateChatSend: false } }, - "/robot/privateChatMessages/query": { POST: { privateChatQuery: false } }, - "/robot/privateChatMessages/batchRecall": { + '/robot/groups/robots/query': { POST: { getBotListInGroup: false } }, + '/robot/messageFiles/download': { POST: { robotMessageFileDownload: false } }, + '/robot/plugins/clear': { POST: { clearRobotPlugin: false } }, + '/robot/plugins/set': { POST: { setRobotPlugin: false } }, + '/robot/plugins/query': { POST: { queryRobotPlugin: false } }, + '/robot/groupMessages/recall': { POST: { orgGroupRecall: false } }, + '/robot/groupMessages/query': { POST: { orgGroupQuery: false } }, + '/robot/groupMessages/send': { POST: { orgGroupSend: false } }, + '/robot/otoMessages/batchRecall': { POST: { batchRecallOTO: false } }, + '/robot/oToMessages/readStatus': { GET: { batchOTOQuery: false } }, + '/robot/oToMessages/batchSend': { POST: { batchSendOTO: false } }, + '/robot/privateChatMessages/send': { POST: { privateChatSend: false } }, + '/robot/privateChatMessages/query': { POST: { privateChatQuery: false } }, + '/robot/privateChatMessages/batchRecall': { POST: { batchRecallPrivateChat: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询群内的机器人列表 @@ -237,89 +237,89 @@ declare module "../internal" { */ getBotListInGroup( params: GetBotListInGroupParams, - ): Promise; + ): Promise /** * 获取机器人消息中文件下载链接 * @see https://developers.dingtalk.com/document/isvapp/download-the-file-content-of-the-robot-receiving-message */ robotMessageFileDownload( params: RobotMessageFileDownloadParams, - ): Promise; + ): Promise /** * 清空单聊机器人快捷入口 * @see https://developers.dingtalk.com/document/orgapp/clear-single-chat-robot-quick-entry */ clearRobotPlugin( params: ClearRobotPluginParams, - ): Promise; + ): Promise /** * 设置单聊机器人快捷入口 * @see https://developers.dingtalk.com/document/orgapp/set-robot-quick-entrance */ setRobotPlugin( params: SetRobotPluginParams, - ): Promise; + ): Promise /** * 查询单聊机器人快捷入口 * @see https://developers.dingtalk.com/document/orgapp/quick-entrance-of-inquiry-single-chat-robot */ queryRobotPlugin( params: QueryRobotPluginParams, - ): Promise; + ): Promise /** * 企业机器人撤回内部群消息 * @see https://developers.dingtalk.com/document/orgapp/enterprise-chatbot-withdraws-internal-group-messages */ orgGroupRecall( params: OrgGroupRecallParams, - ): Promise; + ): Promise /** * 查询企业机器人群聊消息用户已读状态 * @see https://developers.dingtalk.com/document/orgapp/chatbot-queries-the-read-status-of-a-message */ - orgGroupQuery(params: OrgGroupQueryParams): Promise; + orgGroupQuery(params: OrgGroupQueryParams): Promise /** * 机器人发送群聊消息 * @see https://developers.dingtalk.com/document/orgapp/the-robot-sends-a-group-message */ - orgGroupSend(params: OrgGroupSendParams): Promise; + orgGroupSend(params: OrgGroupSendParams): Promise /** * 批量撤回人与机器人会话中机器人消息 * @see https://developers.dingtalk.com/document/orgapp/batch-message-recall-chat */ batchRecallOTO( params: BatchRecallOTOParams, - ): Promise; + ): Promise /** * 批量查询人与机器人会话机器人消息是否已读 * @see https://developers.dingtalk.com/document/orgapp/chatbot-batch-query-the-read-status-of-messages */ - batchOTOQuery(query: BatchOTOQueryQuery): Promise; + batchOTOQuery(query: BatchOTOQueryQuery): Promise /** * 批量发送人与机器人会话中机器人消息 * @see https://developers.dingtalk.com/document/orgapp/chatbots-send-one-on-one-chat-messages-in-batches */ - batchSendOTO(params: BatchSendOTOParams): Promise; + batchSendOTO(params: BatchSendOTOParams): Promise /** * 人与人会话中机器人发送普通消息 * @see https://developers.dingtalk.com/document/orgapp/the-robot-sends-ordinary-messages-in-a-person-to-person-conversation */ privateChatSend( params: PrivateChatSendParams, - ): Promise; + ): Promise /** * 查询人与人会话中机器人已读消息 * @see https://developers.dingtalk.com/document/orgapp/query-the-read-list-of-robot-messages-in-person-to-person-conversations */ privateChatQuery( params: PrivateChatQueryParams, - ): Promise; + ): Promise /** * 批量撤回人与人会话中机器人消息 * @see https://developers.dingtalk.com/document/orgapp/batch-withdrawal-of-single-chat-robot-messages-in-person-to-person-conversations */ batchRecallPrivateChat( params: BatchRecallPrivateChatParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/rooms.ts b/adapters/dingtalk/src/api/rooms.ts index 7710e3e3..b42ac973 100644 --- a/adapters/dingtalk/src/api/rooms.ts +++ b/adapters/dingtalk/src/api/rooms.ts @@ -1,244 +1,244 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryDevicePropertiesParams { /** 设备属性名称列表,最大值10。 */ - propertyNames?: string[]; + propertyNames?: string[] } export interface QueryDevicePropertiesQuery { /** 操作查询的人员unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取。 */ - operatorUnionId: string; + operatorUnionId: string /** 需要查询的设备ID,该参数可从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */ - deviceId?: string; + deviceId?: string /** 需要查询的设备unionId,该参数可从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */ - deviceUnionId?: string; + deviceUnionId?: string } export interface QueryDevicePropertiesResponse { result?: { - propertyName?: string; - propertyValue?: string; - }[]; + propertyName?: string + propertyValue?: string + }[] } export interface QueryMeetingRoomDeviceQuery { /** 操作查询的人员unionId,可调用[查询用户详情](https://open.dingtalk.com/document/orgapp/query-user-details)接口获取。 */ - operatorUnionId: string; + operatorUnionId: string /** 需要查询的设备ID,该参数从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */ - deviceId?: string; + deviceId?: string /** 需要查询的设备unionId,该参数从订阅[设备绑定会议室变更](https://open.dingtalk.com/document/orgapp/device-binding-meeting-room-change-event)事件中获取。 */ - deviceUnionId?: string; + deviceUnionId?: string } export interface QueryMeetingRoomDeviceResponse { result?: { - deviceId?: string; - deviceUnionId?: string; - openRoomId?: string; - corpId?: string; - deviceName?: string; - shareCode?: string; - deviceSn?: string; - deviceMac?: string; - deviceType?: string; - deviceServiceId?: number; - deviceModel?: string; - deviceStatus?: string; - controllers?: number; - }; + deviceId?: string + deviceUnionId?: string + openRoomId?: string + corpId?: string + deviceName?: string + shareCode?: string + deviceSn?: string + deviceMac?: string + deviceType?: string + deviceServiceId?: number + deviceModel?: string + deviceStatus?: string + controllers?: number + } } export interface DeleteMeetingRoomGroupQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface DeleteMeetingRoomGroupResponse { - result?: unknown; + result?: unknown } export interface UpdateMeetingRoomGroupParams { /** 操作人的unionId。 */ - unionId: string; + unionId: string /** 修改后的分组名称。 */ - groupName?: string; + groupName?: string /** 分组ID。 */ - groupId: number; + groupId: number } export interface UpdateMeetingRoomGroupResponse { - result?: unknown; + result?: unknown } export interface QueryMeetingRoomGroupListQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface QueryMeetingRoomGroupListResponse { result?: { - groupId?: number; - groupName?: string; - parentId?: number; - }[]; + groupId?: number + groupName?: string + parentId?: number + }[] } export interface QueryMeetingRoomGroupQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface QueryMeetingRoomGroupResponse { - groupId?: number; - groupName?: string; - parentId?: number; + groupId?: number + groupName?: string + parentId?: number } export interface CreateMeetingRoomGroupParams { /** 操作人的unionId。 */ - unionId: string; + unionId: string /** 分组名称。 */ - groupName?: string; + groupName?: string /** 父分组ID,传0表示根分组。 */ - parentGroupId: number; + parentGroupId: number } export interface CreateMeetingRoomGroupResponse { - result?: number; + result?: number } export interface DeleteMeetingRoomQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface DeleteMeetingRoomResponse { - result?: unknown; + result?: unknown } export interface QueryMeetingRoomListQuery { /** 分页游标。 */ - nextToken?: number; + nextToken?: number /** 请求分页大小,默认值20,目前未限制最大值。 */ - maxResults?: number; + maxResults?: number /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface QueryMeetingRoomListResponse { - hasMore?: unknown; - nextToken?: number; + hasMore?: unknown + nextToken?: number result?: { - roomId?: string; - roomStaffId?: string; - corpId?: string; - roomName?: string; - roomStatus?: number; - roomLabels?: number; - roomCapacity?: number; - roomLocation?: number; - roomPicture?: string; - isvRoomId?: string; - roomGroup?: number; - }[]; + roomId?: string + roomStaffId?: string + corpId?: string + roomName?: string + roomStatus?: number + roomLabels?: number + roomCapacity?: number + roomLocation?: number + roomPicture?: string + isvRoomId?: string + roomGroup?: number + }[] } export interface UpdateMeetingRoomParams { /** 操作人的unionId。 */ - unionId: string; + unionId: string /** 会议室ID。 */ - roomId: string; + roomId: string /** 会议室名称。 */ - roomName?: string; + roomName?: string /** 会议室可容纳人数。 */ - roomCapacity?: number; + roomCapacity?: number /** 会议室图片。 */ - roomPicture?: string; + roomPicture?: string /** 会议室状态。 */ - roomStatus?: number; + roomStatus?: number /** 会议室位置信息。 */ - roomLocation?: unknown; + roomLocation?: unknown /** 标签ID。 */ - roomLabelIds?: long[]; + roomLabelIds?: number[] /** 调用方外部会议室ID,调用方可传入自有系统内的会议室ID。 */ - isvRoomId?: string; + isvRoomId?: string /** 会议室所属分组ID。 */ - groupId?: number; + groupId?: number } export interface UpdateMeetingRoomResponse { - result?: unknown; + result?: unknown } export interface QueryMeetingRoomQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface QueryMeetingRoomResponse { result?: { - roomId?: string; - roomStaffId?: string; - corpId?: string; - roomName?: string; - roomStatus?: number; - roomLabels?: number; - roomCapacity?: number; - roomLocation?: number; - roomPicture?: string; - isvRoomId?: string; - roomGroup?: number; - }; + roomId?: string + roomStaffId?: string + corpId?: string + roomName?: string + roomStatus?: number + roomLabels?: number + roomCapacity?: number + roomLocation?: number + roomPicture?: string + isvRoomId?: string + roomGroup?: number + } } export interface CreateMeetingRoomParams { /** 操作人的unionId。 */ - unionId: string; + unionId: string /** 会议室名称。 */ - roomName: string; + roomName: string /** 会议室可容纳人数,目前无最大值限制。 */ - roomCapacity?: number; + roomCapacity?: number /** 会议室图片。 */ - roomPicture?: string; + roomPicture?: string /** 会议室状态。 */ - roomStatus: number; + roomStatus: number /** 会议室位置信息。 */ - roomLocation?: unknown; + roomLocation?: unknown /** 标签ID。 */ - roomLabelIds?: long[]; + roomLabelIds?: number[] /** 调用方外部会议室ID,调用方可传入自有系统内的会议室ID。 */ - isvRoomId: string; + isvRoomId: string /** 分组ID。 */ - groupId?: number; + groupId?: number } export interface CreateMeetingRoomResponse { - result?: string; + result?: string } // funcName: isOldApi Internal.define({ - "/rooms/devices/properties/query": { POST: { queryDeviceProperties: false } }, - "/rooms/devices": { GET: { queryMeetingRoomDevice: false } }, - "/rooms/groups/{groupId}": { + '/rooms/devices/properties/query': { POST: { queryDeviceProperties: false } }, + '/rooms/devices': { GET: { queryMeetingRoomDevice: false } }, + '/rooms/groups/{groupId}': { DELETE: { deleteMeetingRoomGroup: false }, GET: { queryMeetingRoomGroup: false }, }, - "/rooms/groups": { + '/rooms/groups': { PUT: { updateMeetingRoomGroup: false }, POST: { createMeetingRoomGroup: false }, }, - "/rooms/groupLists": { GET: { queryMeetingRoomGroupList: false } }, - "/rooms/meetingRooms/{roomId}": { + '/rooms/groupLists': { GET: { queryMeetingRoomGroupList: false } }, + '/rooms/meetingRooms/{roomId}': { DELETE: { deleteMeetingRoom: false }, GET: { queryMeetingRoom: false }, }, - "/rooms/meetingRoomLists": { GET: { queryMeetingRoomList: false } }, - "/rooms/meetingRooms": { PUT: { updateMeetingRoom: false } }, - "/rooms/meetingrooms": { POST: { createMeetingRoom: false } }, -}); -declare module "../internal" { + '/rooms/meetingRoomLists': { GET: { queryMeetingRoomList: false } }, + '/rooms/meetingRooms': { PUT: { updateMeetingRoom: false } }, + '/rooms/meetingrooms': { POST: { createMeetingRoom: false } }, +}) +declare module '../internal' { interface Internal { /** * 查询设备属性 @@ -247,14 +247,14 @@ declare module "../internal" { queryDeviceProperties( query: QueryDevicePropertiesQuery, params: QueryDevicePropertiesParams, - ): Promise; + ): Promise /** * 查询设备信息 * @see https://developers.dingtalk.com/document/app/querying-video-conference-device-information */ queryMeetingRoomDevice( query: QueryMeetingRoomDeviceQuery, - ): Promise; + ): Promise /** * 删除会议室分组 * @see https://developers.dingtalk.com/document/isvapp/delete-a-conference-room-group @@ -262,21 +262,21 @@ declare module "../internal" { deleteMeetingRoomGroup( groupId: number, query: DeleteMeetingRoomGroupQuery, - ): Promise; + ): Promise /** * 更新会议室分组信息 * @see https://developers.dingtalk.com/document/isvapp/update-meeting-room-group-information */ updateMeetingRoomGroup( params: UpdateMeetingRoomGroupParams, - ): Promise; + ): Promise /** * 查询会议室分组列表 * @see https://developers.dingtalk.com/document/isvapp/query-meeting-room-groups */ queryMeetingRoomGroupList( query: QueryMeetingRoomGroupListQuery, - ): Promise; + ): Promise /** * 查询会议室分组信息 * @see https://developers.dingtalk.com/document/isvapp/query-meeting-room-group-information @@ -284,14 +284,14 @@ declare module "../internal" { queryMeetingRoomGroup( groupId: number, query: QueryMeetingRoomGroupQuery, - ): Promise; + ): Promise /** * 创建会议室分组 * @see https://developers.dingtalk.com/document/isvapp/create-a-meeting-room-group */ createMeetingRoomGroup( params: CreateMeetingRoomGroupParams, - ): Promise; + ): Promise /** * 删除会议室 * @see https://developers.dingtalk.com/document/isvapp/delete-a-meeting-room @@ -299,21 +299,21 @@ declare module "../internal" { deleteMeetingRoom( roomId: string, query: DeleteMeetingRoomQuery, - ): Promise; + ): Promise /** * 查询会议室列表 * @see https://developers.dingtalk.com/document/isvapp/check-the-meeting-room-list */ queryMeetingRoomList( query: QueryMeetingRoomListQuery, - ): Promise; + ): Promise /** * 更新会议室信息 * @see https://developers.dingtalk.com/document/isvapp/update-meeting-room-information */ updateMeetingRoom( params: UpdateMeetingRoomParams, - ): Promise; + ): Promise /** * 查询会议室详情 * @see https://developers.dingtalk.com/document/isvapp/check-meeting-room-details @@ -321,13 +321,13 @@ declare module "../internal" { queryMeetingRoom( roomId: string, query: QueryMeetingRoomQuery, - ): Promise; + ): Promise /** * 创建智能会议室 * @see https://developers.dingtalk.com/document/isvapp/create-a-meeting-room */ createMeetingRoom( params: CreateMeetingRoomParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/serviceGroup.ts b/adapters/dingtalk/src/api/serviceGroup.ts index 5bf16a7d..24edde77 100644 --- a/adapters/dingtalk/src/api/serviceGroup.ts +++ b/adapters/dingtalk/src/api/serviceGroup.ts @@ -1,165 +1,165 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface AddMemberToServiceGroupParams { /** 开放团队ID。如下图所示,查看**ID信息**内的**团队ID**值。 */ - openTeamId: string; + openTeamId: string /** 服务群openConversionId,调用[创建场景服务群](https://open.dingtalk.com/document/orgapp-server/create-a-scenario-service-group)接口获取openConversationId参数值。 */ - openConversationId: string; + openConversationId: string /** 待添加员工在钉钉组织内的的userId列表,最大值100。 */ - userIds: string[]; + userIds: string[] } export interface AddMemberToServiceGroupResponse { - success?: unknown; + success?: unknown } export interface SendMsgByTaskParams { /** 团队ID。 */ - openTeamId: string; + openTeamId: string /** 群发任务名称。 */ - taskName: string; + taskName: string /** 群发内容。 */ - messageContent: unknown; + messageContent: unknown /** 查询条件。 */ - queryGroup: unknown; + queryGroup: unknown /** 发送配置。 */ - sendConfig: unknown; + sendConfig: unknown } export interface SendMsgByTaskResponse { - openBatchTaskId?: string; + openBatchTaskId?: string } export interface UpgradeNormalGroupParams { /** 升级的目标群组ID。 */ - openGroupSetId?: string; + openGroupSetId?: string /** 升级的目标群模板ID。 */ - templateId?: string; + templateId?: string /** 群ID。 */ - openConversationId: string; + openConversationId: string /** 升级的目标团队ID。 */ - openTeamId?: string; + openTeamId?: string } export interface UpgradeCloudGroupParams { /** 群ID。 */ - openConversationId: string; + openConversationId: string /** 升级的目标群模板ID。 */ - templateId?: string; + templateId?: string /** 升级的目标群组ID。 */ - openGroupSetId?: string; + openGroupSetId?: string /** 智能云客服租户ID。 */ - ccsInstanceId: string; + ccsInstanceId: string /** 升级的目标团队ID。 */ - openTeamId?: string; + openTeamId?: string } export interface QueryActiveUsersQuery { /** 开放团队ID。 */ - openTeamId?: string; + openTeamId?: string /** 群ID。 */ - openConversationId: string; + openConversationId: string /** 活跃度排名topN,如top5,最多支持top100 */ - topN?: number; + topN?: number } export interface QueryActiveUsersResponse { activeUserInfos: { - unionId: string; - nickName: string; - actionIndexL7d: number; - actionIndexL14d: number; - actionIndexL30d: number; - activeScore: number; - ranking: number; - }[]; + unionId: string + nickName: string + actionIndexL7d: number + actionIndexL14d: number + actionIndexL30d: number + activeScore: number + ranking: number + }[] } export interface SendServiceGroupMessageParams { /** 开放群ID。 */ - targetOpenConversationId: string; + targetOpenConversationId: string /** 标题。 */ - title: string; + title: string /** 消息内容。 */ - content: string; + content: string /** 是否 at所有人 */ - isAtAll?: unknown; + isAtAll?: unknown /** 被@人的手机号列表。 */ - atMobiles?: string[]; + atMobiles?: string[] /** 被@人的dingtalkId列表。 */ - atDingtalkIds?: string[]; + atDingtalkIds?: string[] /** 被@人的unionId列表。 */ - atUnionIds?: string[]; + atUnionIds?: string[] /** 手机号接收者列表。 */ - receiverMobiles?: string[]; + receiverMobiles?: string[] /** dingtalkId接收者列表。 */ - receiverDingtalkIds?: string[]; + receiverDingtalkIds?: string[] /** unionId接收者列表。 */ - receiverUnionIds?: string[]; + receiverUnionIds?: string[] /** 消息类型,取值。 */ - messageType: string; + messageType: string /** 排列方式。 */ - btnOrientation?: string; + btnOrientation?: string /** actionCard按钮。 */ - btns?: object[]; + btns?: object[] /** 消息内容是否含有链接。 */ - hasContentLinks?: unknown; + hasContentLinks?: unknown } export interface SendServiceGroupMessageResponse { - openMsgTaskId: string; + openMsgTaskId: string } export interface ServiceGroupCreateGroupParams { /** 业务关联ID,自定义参数值。 */ - groupBizId?: string; + groupBizId?: string /** 开放团队ID。 */ - openTeamId: string; + openTeamId: string /** 开放群组ID。 */ - openGroupSetId: string; + openGroupSetId: string /** 群名称。 */ - groupName: string; + groupName: string /** 群主员工userid。 */ - ownerStaffId: string; + ownerStaffId: string /** 群成员员工ID列表,最大值20。 */ - memberStaffIds?: string[]; + memberStaffIds?: string[] /** 群标签。 */ - groupTagNames?: string[]; + groupTagNames?: string[] } export interface ServiceGroupCreateGroupResponse { - openConversationId: string; - groupUrl: string; + openConversationId: string + groupUrl: string } export interface ServiceGroupUpdateGroupSetParams { /** 开放团队ID。 */ - openTeamId?: string; + openTeamId?: string /** 开放群ID,可调用[创建服务群](https://open.dingtalk.com/document/orgapp-server/create-a-scenario-service-group)接口获取openConversationId参数值。 */ - openConversationId?: string; + openConversationId?: string /** 开放群组ID。 */ - openGroupSetId?: string; + openGroupSetId?: string } export interface ServiceGroupUpdateGroupSetResponse { - success?: unknown; + success?: unknown } // funcName: isOldApi Internal.define({ - "/serviceGroup/groups/members": { POST: { addMemberToServiceGroup: false } }, - "/serviceGroup/messages/tasks/send": { POST: { sendMsgByTask: false } }, - "/serviceGroup/normalGroups/upgrade": { POST: { upgradeNormalGroup: false } }, - "/serviceGroup/cloudGroups/upgrade": { POST: { upgradeCloudGroup: false } }, - "/serviceGroup/groups/queryActiveUsers": { GET: { queryActiveUsers: false } }, - "/serviceGroup/messages/send": { POST: { sendServiceGroupMessage: false } }, - "/serviceGroup/groups": { POST: { serviceGroupCreateGroup: false } }, - "/serviceGroup/groups/configurations": { + '/serviceGroup/groups/members': { POST: { addMemberToServiceGroup: false } }, + '/serviceGroup/messages/tasks/send': { POST: { sendMsgByTask: false } }, + '/serviceGroup/normalGroups/upgrade': { POST: { upgradeNormalGroup: false } }, + '/serviceGroup/cloudGroups/upgrade': { POST: { upgradeCloudGroup: false } }, + '/serviceGroup/groups/queryActiveUsers': { GET: { queryActiveUsers: false } }, + '/serviceGroup/messages/send': { POST: { sendServiceGroupMessage: false } }, + '/serviceGroup/groups': { POST: { serviceGroupCreateGroup: false } }, + '/serviceGroup/groups/configurations': { PUT: { serviceGroupUpdateGroupSet: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 添加服务群成员 @@ -167,49 +167,49 @@ declare module "../internal" { */ addMemberToServiceGroup( params: AddMemberToServiceGroupParams, - ): Promise; + ): Promise /** * 服务群发任务 * @see https://developers.dingtalk.com/document/orgapp/service-group-sending-task-interface */ - sendMsgByTask(params: SendMsgByTaskParams): Promise; + sendMsgByTask(params: SendMsgByTaskParams): Promise /** * 升级普通群为服务群 * @see https://developers.dingtalk.com/document/orgapp/a-dingtalk-group-is-upgraded-to-one-of-the-intelligent */ - upgradeNormalGroup(params: UpgradeNormalGroupParams): Promise; + upgradeNormalGroup(params: UpgradeNormalGroupParams): Promise /** * 升级云客服服务群为钉钉智能服务群 * @see https://developers.dingtalk.com/document/orgapp/upgraded-the-cloud-customer-service-group-to-the-dingtalk-intelligent */ - upgradeCloudGroup(params: UpgradeCloudGroupParams): Promise; + upgradeCloudGroup(params: UpgradeCloudGroupParams): Promise /** * 查询服务群活跃成员 * @see https://developers.dingtalk.com/document/orgapp/queries-active-service-users */ queryActiveUsers( query: QueryActiveUsersQuery, - ): Promise; + ): Promise /** * 服务群发消息 * @see https://developers.dingtalk.com/document/orgapp/service-group-message-sending-interface */ sendServiceGroupMessage( params: SendServiceGroupMessageParams, - ): Promise; + ): Promise /** * 创建服务群 * @see https://developers.dingtalk.com/document/orgapp/create-a-scenario-service-group */ serviceGroupCreateGroup( params: ServiceGroupCreateGroupParams, - ): Promise; + ): Promise /** * 更换服务群所在的群分组 * @see https://developers.dingtalk.com/document/isvapp/modify-a-service-group */ serviceGroupUpdateGroupSet( params: ServiceGroupUpdateGroupSetParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/storage.ts b/adapters/dingtalk/src/api/storage.ts index 8341d010..abfe2935 100644 --- a/adapters/dingtalk/src/api/storage.ts +++ b/adapters/dingtalk/src/api/storage.ts @@ -1,1276 +1,1252 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface SearchWorkspacesParams { /** 搜索关键词。 */ - keyword: string; + keyword: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface SearchWorkspacesQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface SearchWorkspacesResponse { items?: { - workspaceId?: string; - name?: string; - url?: string; - }[]; - nextToken?: string; + workspaceId?: string + name?: string + url?: string + }[] + nextToken?: string } export interface SetPermissionInheritanceParams { /** 权限继承模式,枚举值: */ - inheritance: string; + inheritance: string } export interface SetPermissionInheritanceQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface SetPermissionInheritanceResponse { - success?: unknown; + success?: unknown } export interface GetPermissionInheritanceQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface GetPermissionInheritanceResponse { - inheritance?: string; + inheritance?: string } export interface StorageUpdatePermissionParams { /** 角色id,枚举值: */ - roleId: string; + roleId: string /** 权限成员。 */ - members: object[]; + members: object[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageUpdatePermissionQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface StorageUpdatePermissionResponse { - success?: unknown; + success?: unknown } export interface StorageDeletePermissionParams { /** 角色id,枚举值: */ - roleId: string; + roleId: string /** 权限成员。 */ - members: object[]; + members: object[] } export interface StorageDeletePermissionQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface StorageDeletePermissionResponse { - success?: unknown; + success?: unknown } export interface StorageAddPermissionParams { /** 角色id,枚举值: */ - roleId: string; + roleId: string /** 权限成员。 */ - members: object[]; + members: object[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageAddPermissionQuery { /** 用户id */ - unionId: string; + unionId: string } export interface StorageAddPermissionResponse { - success?: unknown; + success?: unknown } export interface ListPermissionsOrgParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface ListPermissionsOrgQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface ListPermissionsOrgResponse { permissions?: { - dentryUuid?: string; - member?: number; - role?: number; - duration?: number; - }[]; - nextToken?: string; + dentryUuid?: string + member?: number + role?: number + duration?: number + }[] + nextToken?: string } export interface SearchDentriesParams { /** 搜索关键词。 */ - keyword: string; + keyword: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface SearchDentriesQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface SearchDentriesResponse { items?: { - dentryUuid?: string; - name?: string; - creator?: number; - modifier?: number; - }[]; - nextToken?: string; + dentryUuid?: string + name?: string + creator?: number + modifier?: number + }[] + nextToken?: string } export interface StorageCommitFileParams { /** 添加文件唯一标识,可通过DentryService.getUploadInfo来生成。 */ - uploadKey: string; + uploadKey: string /** 名称(文件名+后缀), 规则: */ - name: string; + name: string /** 可选参数 */ - option?: unknown; + option?: unknown } export interface StorageCommitFileQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface StorageCommitFileResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - thumbnail?: number; - category?: string; - }; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + thumbnail?: number + category?: string + } } export interface StorageGetFileUploadInfoParams { /** 通过指定上传协议返回不同协议上传所需要的信息 */ - protocol: string; + protocol: string /** 可选参数 */ - option?: unknown; + option?: unknown } export interface StorageGetFileUploadInfoQuery { /** 用户id */ - unionId: string; + unionId: string } export interface StorageGetFileUploadInfoResponse { - uploadKey?: string; - storageDriver?: string; - protocol?: string; + uploadKey?: string + storageDriver?: string + protocol?: string headerSignatureInfo?: { - resourceUrls?: number; - headers?: number; - expirationSeconds?: number; - region?: string; - internalResourceUrls?: number; - }; + resourceUrls?: number + headers?: number + expirationSeconds?: number + region?: string + internalResourceUrls?: number + } } export interface UnsubscribeEventParams { /** 订阅范围对应的id */ - scopeId: string; + scopeId: string /** 订阅范围 */ - scope: string; + scope: string } export interface UnsubscribeEventQuery { /** 用户id */ - unionId: string; + unionId: string } export interface UnsubscribeEventResponse { - success?: unknown; + success?: unknown } export interface ListAllDentriesParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface ListAllDentriesQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface ListAllDentriesResponse { dentries?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - thumbnail?: number; - }[]; - nextToken?: string; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + thumbnail?: number + }[] + nextToken?: string } export interface GetDentriesParams { /** 文件或文件夹的ID列表,最大值30。 */ - dentryIds: string[]; + dentryIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetDentriesQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface GetDentriesResponse { resultItems?: { - spaceId?: string; - dentryId?: string; - success?: number; - errorCode?: string; - dentry?: number; - }[]; + spaceId?: string + dentryId?: string + success?: number + errorCode?: string + dentry?: number + }[] } export interface GetDentryThumbnailsParams { /** 文件ID,最大值30。 */ - dentryIds: string[]; + dentryIds: string[] } export interface GetDentryThumbnailsQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface GetDentryThumbnailsResponse { resultItems?: { - spaceId?: string; - dentryId?: string; - success?: number; - errorCode?: string; - thumbnail?: number; - }[]; + spaceId?: string + dentryId?: string + success?: number + errorCode?: string + thumbnail?: number + }[] } export interface MoveDentriesParams { /** 目标空间ID。 */ - targetSpaceId: string; + targetSpaceId: string /** 目标文件夹id, 根目录id值为0。 */ - targetFolderId: string; + targetFolderId: string /** 源文件或文件夹的ID列表,最大值30。 */ - dentryIds: string[]; + dentryIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface MoveDentriesQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface MoveDentriesResponse { resultItems?: { - spaceId?: string; - dentryId?: string; - async?: number; - success?: number; - errorCode?: string; - taskId?: string; - targetSpaceId?: string; - targetDentryId?: string; - }[]; + spaceId?: string + dentryId?: string + async?: number + success?: number + errorCode?: string + taskId?: string + targetSpaceId?: string + targetDentryId?: string + }[] } export interface CopyDentriesParams { /** 目标文件或文件夹所在的空间ID。 */ - targetSpaceId: string; + targetSpaceId: string /** 目标文件夹ID, 根目录ID值为0。 */ - targetFolderId: string; + targetFolderId: string /** 源文件或文件夹的ID列表,最大值30。 */ - dentryIds: string[]; + dentryIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface CopyDentriesQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface CopyDentriesResponse { resultItems?: { - spaceId?: string; - dentryId?: string; - async?: number; - success?: number; - errorCode?: string; - taskId?: string; - targetSpaceId?: string; - targetDentryId?: string; - }[]; + spaceId?: string + dentryId?: string + async?: number + success?: number + errorCode?: string + taskId?: string + targetSpaceId?: string + targetDentryId?: string + }[] } export interface DeleteDentriesParams { /** 文件或文件夹ID列表,最大值50。 */ - dentryIds: string[]; + dentryIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface DeleteDentriesQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface DeleteDentriesResponse { resultItems?: { - spaceId?: string; - dentryId?: string; - async?: number; - success?: number; - errorCode?: string; - taskId?: string; - }[]; + spaceId?: string + dentryId?: string + async?: number + success?: number + errorCode?: string + taskId?: string + }[] } export interface GetTaskQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface GetTaskResponse { task?: { - id?: string; - status?: string; - totalCount?: number; - successCount?: number; - failCount?: number; - failMessage?: string; - beginTime?: string; - endTime?: string; - }; + id?: string + status?: string + totalCount?: number + successCount?: number + failCount?: number + failMessage?: string + beginTime?: string + endTime?: string + } } export interface InitMultipartFileUploadParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface InitMultipartFileUploadQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface InitMultipartFileUploadResponse { - uploadKey?: string; - storageDriver?: string; + uploadKey?: string + storageDriver?: string } export interface GetMultipartFileUploadInfosParams { /** 上传唯一标识。 */ - uploadKey: string; + uploadKey: string /** 每片文件的Id,文件的分片数量最大值10000,每片文件大小限制范围是100KB~5GB,最多传30。 */ - partNumbers: integer[]; + partNumbers: number[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetMultipartFileUploadInfosQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetMultipartFileUploadInfosResponse { multipartHeaderSignatureInfos?: { - partNumber?: number; - headerSignatureInfo?: number; - }[]; + partNumber?: number + headerSignatureInfo?: number + }[] } export interface GetOrgQuery { /** 用户unionId。 */ - unionId: string; + unionId: string } export interface GetOrgResponse { org?: { - corpId?: string; - partitions?: number; - }; + corpId?: string + partitions?: number + } } export interface RestoreRecycleItemParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface RestoreRecycleItemQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface RestoreRecycleItemResponse { - async?: unknown; - taskId?: string; - spaceId?: string; - dentryId?: string; + async?: unknown + taskId?: string + spaceId?: string + dentryId?: string } export interface GetRecycleBinQuery { /** 回收站范围类型。 */ - recycleBinScope: string; + recycleBinScope: string /** 回收站范围Id。 */ - scopeId: string; + scopeId: string /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetRecycleBinResponse { recycleBin?: { - id?: string; - scope?: string; - scopeId?: string; - }; + id?: string + scope?: string + scopeId?: string + } } export interface GetRecycleItemQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetRecycleItemResponse { item?: { - id?: string; - spaceId?: string; - dentryId?: string; - size?: number; - type?: string; - originalName?: string; - originalPath?: string; - operatorId?: string; - operatorTime?: string; - }; + id?: string + spaceId?: string + dentryId?: string + size?: number + type?: string + originalName?: string + originalPath?: string + operatorId?: string + operatorTime?: string + } } export interface DeleteRecycleItemQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface DeleteRecycleItemResponse { - success?: unknown; + success?: unknown } export interface ClearRecycleBinQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface ClearRecycleBinResponse { - success?: unknown; + success?: unknown } export interface DeleteRecycleItemsParams { /** 回收项Id列表,最大值50。 */ - recycleItemIds: string[]; + recycleItemIds: string[] } export interface DeleteRecycleItemsQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface DeleteRecycleItemsResponse { - success?: unknown; + success?: unknown } export interface RestoreRecycleItemsParams { /** 回收项ID列表,最大值30。 */ - recycleItemIds: string[]; + recycleItemIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface RestoreRecycleItemsQuery { /** 操作人的unionId。 */ - unionId: string; + unionId: string } export interface RestoreRecycleItemsResponse { resultItems?: { - recycleBinId?: string; - recycleItemId?: string; - async?: number; - success?: number; - errorCode?: string; - taskId?: string; - spaceId?: string; - dentryId?: string; - }[]; + recycleBinId?: string + recycleItemId?: string + async?: number + success?: number + errorCode?: string + taskId?: string + spaceId?: string + dentryId?: string + }[] } export interface ListDentryVersionsQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页条目数,默认100,最大100。 */ - maxResults?: number; + maxResults?: number /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface ListDentryVersionsResponse { dentries?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }[]; - nextToken?: string; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + }[] + nextToken?: string } export interface GetDentryOpenInfoParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetDentryOpenInfoQuery { /** 操作用户unionId。 */ - unionId: string; + unionId: string } export interface GetDentryOpenInfoResponse { - url?: string; - hasWaterMark?: unknown; + url?: string + hasWaterMark?: unknown } export interface MoveDentryParams { /** 需要存放的目标空间Id。 */ - targetSpaceId: string; + targetSpaceId: string /** 需要存放的位置父目录Id。根目录时,该参数是0。 */ - targetFolderId: string; + targetFolderId: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface MoveDentryQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface MoveDentryResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }; - async?: unknown; - taskId?: string; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + } + async?: unknown + taskId?: string } export interface ListPermissionsIsvParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface ListPermissionsIsvQuery { /** 操作者的unionId。 */ - unionId: string; + unionId: string } export interface ListPermissionsIsvResponse { permissions?: { - spaceId?: string; - dentryId?: string; - member?: number; - role?: number; - duration?: number; - createTime?: string; - modifiedTime?: string; - operatorId?: string; - }[]; - nextToken?: string; + spaceId?: string + dentryId?: string + member?: number + role?: number + duration?: number + createTime?: string + modifiedTime?: string + operatorId?: string + }[] + nextToken?: string } export interface GetFileDownloadInfoParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetFileDownloadInfoQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetFileDownloadInfoResponse { - protocol?: string; + protocol?: string headerSignatureInfo?: { - resourceUrls?: number; - headers?: number; - expirationSeconds?: number; - region?: string; - internalResourceUrls?: number; - }; + resourceUrls?: number + headers?: number + expirationSeconds?: number + region?: string + internalResourceUrls?: number + } } export interface ListRecycleItemsQuery { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页最大条目数,默认值50,最大值50。 */ - maxResults?: number; + maxResults?: number /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface ListRecycleItemsResponse { recycleItems?: { - id?: string; - spaceId?: string; - dentryId?: string; - size?: number; - type?: string; - originalName?: string; - originalPath?: string; - operatorId?: string; - operatorTime?: string; - }[]; - nextToken?: string; + id?: string + spaceId?: string + dentryId?: string + size?: number + type?: string + originalName?: string + originalPath?: string + operatorId?: string + operatorTime?: string + }[] + nextToken?: string } export interface DeleteDentryQuery { /** 删除后,是否备份到回收站。 */ - toRecycleBin?: unknown; + toRecycleBin?: unknown /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface DeleteDentryResponse { - async?: unknown; - taskId?: string; + async?: unknown + taskId?: string } export interface RenameDentryParams { /** 文件或文件夹的新名称,命名规则如下: */ - newName: string; + newName: string } export interface RenameDentryQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface RenameDentryResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + } } export interface ListDentriesQuery { /** 父目录Id。根目录时,该参数是0。 */ - parentId: string; + parentId: string /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 每页条目数,最大值50。 */ - maxResults?: number; + maxResults?: number /** 排序字段。 */ - orderBy?: string; + orderBy?: string /** 排序规则。 */ - order?: string; + order?: string /** 是否获取文件缩略图临时链接。按需获取,会影响接口耗时。 */ - withThumbnail?: unknown; + withThumbnail?: unknown /** 操作者的unionId。 */ - unionId: string; + unionId: string } export interface ListDentriesResponse { dentries?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - thumbnail?: number; - }[]; - nextToken?: string; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + thumbnail?: number + }[] + nextToken?: string } export interface RevertDentryVersionQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface RevertDentryVersionResponse { - success?: unknown; + success?: unknown } export interface CopyDentryParams { /** 需要存放的目标空间Id。 */ - targetSpaceId: string; + targetSpaceId: string /** 需要存放的位置父目录Id。 */ - targetFolderId: string; + targetFolderId: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface CopyDentryQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface CopyDentryResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }; - async?: unknown; - taskId?: string; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + } + async?: unknown + taskId?: string } export interface GetCurrentAppQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetCurrentAppResponse { app?: { - corpId?: string; - appId?: string; - name?: string; - createTime?: string; - modifiedTime?: string; - partitions?: number; - }; + corpId?: string + appId?: string + name?: string + createTime?: string + modifiedTime?: string + partitions?: number + } } export interface StorageGetSpaceQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface StorageGetSpaceResponse { space?: { - id?: string; - corpId?: string; - creatorId?: string; - ownerType?: string; - ownerId?: string; - modifierId?: string; - usedQuota?: number; - quota?: number; - status?: string; - createTime?: string; - modifiedTime?: string; - appId?: string; - scene?: string; - sceneId?: string; - capabilities?: number; - name?: string; - partitions?: number; - }; + id?: string + corpId?: string + creatorId?: string + ownerType?: string + ownerId?: string + modifierId?: string + usedQuota?: number + quota?: number + status?: string + createTime?: string + modifiedTime?: string + appId?: string + scene?: string + sceneId?: string + capabilities?: number + name?: string + partitions?: number + } } export interface AddFolderParams { /** 文件夹的名称,命名有以下要求: */ - name: string; + name: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface AddFolderQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface AddFolderResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + } } export interface GetDentryParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetDentryQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface GetDentryResponse { dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - thumbnail?: number; - }; + id?: string + spaceId?: string + parentId?: string + type?: string + name?: string + size?: number + path?: string + version?: number + status?: string + extension?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + properties?: number + appProperties?: number + uuid?: string + partitionType?: string + storageDriver?: string + thumbnail?: number + } } export interface DeleteDentryAppPropertiesParams { /** 文件或文件夹的应用属性名称列表,最大值3。 */ - propertyNames: string[]; + propertyNames: string[] } export interface DeleteDentryAppPropertiesQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface DeleteDentryAppPropertiesResponse { - success?: unknown; + success?: unknown } export interface UpdateDentryAppPropertiesParams { /** 应用属性列表,最大值3。 */ - appProperties: object[]; + appProperties: object[] } export interface UpdateDentryAppPropertiesQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface UpdateDentryAppPropertiesResponse { - success?: unknown; + success?: unknown } export interface StorageCommitFileParams { /** 添加文件唯一标识。 */ - uploadKey: string; + uploadKey: string /** 文件的名称,带后缀。命名有以下要求: */ - name: string; + name: string /** 父目录Id。根目录时,该参数是0。 */ - parentId: string; + parentId: string /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageCommitFileQuery { /** 操作者unionId。 */ - unionId: string; -} - -export interface StorageCommitFileResponse { - dentry?: { - id?: string; - spaceId?: string; - parentId?: string; - type?: string; - name?: string; - size?: number; - path?: string; - version?: number; - status?: string; - extension?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - properties?: number; - appProperties?: number; - uuid?: string; - partitionType?: string; - storageDriver?: string; - }; + unionId: string } export interface StorageGetFileUploadInfoParams { /** 通过指定上传协议返回不同协议上传所需要的信息。 */ - protocol: string; + protocol: string /** 是否需要分片上传。 */ - multipart: unknown; + multipart: unknown /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageGetFileUploadInfoQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface StorageGetFileUploadInfoResponse { - uploadKey?: string; - storageDriver?: string; - protocol?: string; + uploadKey?: string + storageDriver?: string + protocol?: string headerSignatureInfo?: { - resourceUrls?: number; - headers?: number; - expirationSeconds?: number; - region?: string; - internalResourceUrls?: number; - }; + resourceUrls?: number + headers?: number + expirationSeconds?: number + region?: string + internalResourceUrls?: number + } } export interface StorageUpdatePermissionParams { /** 权限角色Id。 */ - roleId: string; + roleId: string /** 权限成员信息。 */ - members: object[]; + members: object[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageUpdatePermissionQuery { /** 操作用户的unionId。 */ - unionId: string; + unionId: string } export interface StorageUpdatePermissionResponse { - success?: unknown; + success?: unknown } export interface StorageDeletePermissionParams { /** 权限角色Id。 */ - roleId: string; + roleId: string /** 权限成员信息。 */ - members: object[]; + members: object[] } export interface StorageDeletePermissionQuery { /** 操作者的unionId。 */ - unionId: string; + unionId: string } export interface StorageDeletePermissionResponse { - success?: unknown; + success?: unknown } export interface StorageAddPermissionParams { /** 权限角色Id。 */ - roleId: string; + roleId: string /** 权限成员信息。 */ - members: object[]; + members: object[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageAddPermissionQuery { /** 操作用户的unionId。 */ - unionId: string; + unionId: string } export interface StorageAddPermissionResponse { - success?: unknown; + success?: unknown } export interface StorageAddSpaceParams { /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface StorageAddSpaceQuery { /** 操作者unionId。 */ - unionId: string; + unionId: string } export interface StorageAddSpaceResponse { space?: { - id?: string; - corpId?: string; - creatorId?: string; - ownerType?: string; - ownerId?: string; - modifierId?: string; - usedQuota?: number; - quota?: number; - status?: string; - createTime?: string; - modifiedTime?: string; - appId?: string; - scene?: string; - sceneId?: string; - capabilities?: number; - name?: string; - partitions?: number; - }; + id?: string + corpId?: string + creatorId?: string + ownerType?: string + ownerId?: string + modifierId?: string + usedQuota?: number + quota?: number + status?: string + createTime?: string + modifiedTime?: string + appId?: string + scene?: string + sceneId?: string + capabilities?: number + name?: string + partitions?: number + } } // funcName: isOldApi Internal.define({ - "/storage/workspaces/search": { POST: { searchWorkspaces: false } }, - "/storage/spaces/dentries/{dentryUuid}/permissions/inheritances": { + '/storage/workspaces/search': { POST: { searchWorkspaces: false } }, + '/storage/spaces/dentries/{dentryUuid}/permissions/inheritances': { PUT: { setPermissionInheritance: false }, GET: { getPermissionInheritance: false }, }, - "/storage/spaces/dentries/{dentryUuid}/permissions": { + '/storage/spaces/dentries/{dentryUuid}/permissions': { PUT: { storageUpdatePermission: false }, POST: { storageAddPermission: false }, }, - "/storage/spaces/dentries/{dentryUuid}/permissions/remove": { + '/storage/spaces/dentries/{dentryUuid}/permissions/remove': { POST: { storageDeletePermission: false }, }, - "/storage/spaces/dentries/{dentryUuid}/permissions/query": { + '/storage/spaces/dentries/{dentryUuid}/permissions/query': { POST: { listPermissionsOrg: false }, }, - "/storage/dentries/search": { POST: { searchDentries: false } }, - "/storage/spaces/files/{parentDentryUuid}/commit": { + '/storage/dentries/search': { POST: { searchDentries: false } }, + '/storage/spaces/files/{parentDentryUuid}/commit': { POST: { storageCommitFile: false }, }, - "/storage/spaces/files/{parentDentryUuid}/uploadInfos/query": { + '/storage/spaces/files/{parentDentryUuid}/uploadInfos/query': { POST: { storageGetFileUploadInfo: false }, }, - "/storage/events/unsubscribe": { POST: { unsubscribeEvent: false } }, - "/storage/spaces/{spaceId}/dentries/listAll": { + '/storage/events/unsubscribe': { POST: { unsubscribeEvent: false } }, + '/storage/spaces/{spaceId}/dentries/listAll': { POST: { listAllDentries: false }, }, - "/storage/spaces/{spaceId}/dentries/query": { POST: { getDentries: false } }, - "/storage/spaces/{spaceId}/thumbnails/query": { + '/storage/spaces/{spaceId}/dentries/query': { POST: { getDentries: false } }, + '/storage/spaces/{spaceId}/thumbnails/query': { POST: { getDentryThumbnails: false }, }, - "/storage/spaces/{spaceId}/dentries/batchMove": { + '/storage/spaces/{spaceId}/dentries/batchMove': { POST: { moveDentries: false }, }, - "/storage/spaces/{spaceId}/dentries/batchCopy": { + '/storage/spaces/{spaceId}/dentries/batchCopy': { POST: { copyDentries: false }, }, - "/storage/spaces/{spaceId}/dentries/batchRemove": { + '/storage/spaces/{spaceId}/dentries/batchRemove': { POST: { deleteDentries: false }, }, - "/storage/tasks/{taskId}": { GET: { getTask: false } }, - "/storage/spaces/{spaceId}/files/multiPartUploadInfos/init": { + '/storage/tasks/{taskId}': { GET: { getTask: false } }, + '/storage/spaces/{spaceId}/files/multiPartUploadInfos/init': { POST: { initMultipartFileUpload: false }, }, - "/storage/spaces/files/multiPartUploadInfos/query": { + '/storage/spaces/files/multiPartUploadInfos/query': { POST: { getMultipartFileUploadInfos: false }, }, - "/storage/orgs/{corpId}": { GET: { getOrg: false } }, - "/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}/restore": { + '/storage/orgs/{corpId}': { GET: { getOrg: false } }, + '/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}/restore': { POST: { restoreRecycleItem: false }, }, - "/storage/recycleBins": { GET: { getRecycleBin: false } }, - "/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}": { + '/storage/recycleBins': { GET: { getRecycleBin: false } }, + '/storage/recycleBins/{recycleBinId}/recycleItems/{recycleItemId}': { GET: { getRecycleItem: false }, DELETE: { deleteRecycleItem: false }, }, - "/storage/recycleBins/{recycleBinId}/clear": { + '/storage/recycleBins/{recycleBinId}/clear': { POST: { clearRecycleBin: false }, }, - "/storage/recycleBins/{recycleBinId}/recycleItems/batchRemove": { + '/storage/recycleBins/{recycleBinId}/recycleItems/batchRemove': { POST: { deleteRecycleItems: false }, }, - "/storage/recycleBins/{recycleBinId}/recycleItems/batchRestore": { + '/storage/recycleBins/{recycleBinId}/recycleItems/batchRestore': { POST: { restoreRecycleItems: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/versions": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/versions': { GET: { listDentryVersions: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/openInfos/query": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/openInfos/query': { POST: { getDentryOpenInfo: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/move": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/move': { POST: { moveDentry: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/query": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/query': { POST: { listPermissionsIsv: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/downloadInfos/query": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/downloadInfos/query': { POST: { getFileDownloadInfo: false }, }, - "/storage/recycleBins/{recycleBinId}/recycleItems": { + '/storage/recycleBins/{recycleBinId}/recycleItems': { GET: { listRecycleItems: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}": { + '/storage/spaces/{spaceId}/dentries/{dentryId}': { DELETE: { deleteDentry: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/rename": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/rename': { POST: { renameDentry: false }, }, - "/storage/spaces/{spaceId}/dentries": { GET: { listDentries: false } }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/versions/{version}/revert": { + '/storage/spaces/{spaceId}/dentries': { GET: { listDentries: false } }, + '/storage/spaces/{spaceId}/dentries/{dentryId}/versions/{version}/revert': { POST: { revertDentryVersion: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/copy": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/copy': { POST: { copyDentry: false }, }, - "/storage/currentApps/query": { POST: { getCurrentApp: false } }, - "/storage/spaces/{spaceId}": { GET: { storageGetSpace: false } }, - "/storage/spaces/{spaceId}/dentries/{parentId}/folders": { + '/storage/currentApps/query': { POST: { getCurrentApp: false } }, + '/storage/spaces/{spaceId}': { GET: { storageGetSpace: false } }, + '/storage/spaces/{spaceId}/dentries/{parentId}/folders': { POST: { addFolder: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/query": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/query': { POST: { getDentry: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties/remove": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties/remove': { POST: { deleteDentryAppProperties: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/appProperties': { PUT: { updateDentryAppProperties: false }, }, - "/storage/spaces/{spaceId}/files/commit": { + '/storage/spaces/{spaceId}/files/commit': { POST: { storageCommitFile: false }, }, - "/storage/spaces/{spaceId}/files/uploadInfos/query": { + '/storage/spaces/{spaceId}/files/uploadInfos/query': { POST: { storageGetFileUploadInfo: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/permissions': { PUT: { storageUpdatePermission: false }, POST: { storageAddPermission: false }, }, - "/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/remove": { + '/storage/spaces/{spaceId}/dentries/{dentryId}/permissions/remove': { POST: { storageDeletePermission: false }, }, - "/storage/spaces": { POST: { storageAddSpace: false } }, -}); -declare module "../internal" { + '/storage/spaces': { POST: { storageAddSpace: false } }, +}) +declare module '../internal' { interface Internal { /** * 搜索知识库 @@ -1279,7 +1255,7 @@ declare module "../internal" { searchWorkspaces( query: SearchWorkspacesQuery, params: SearchWorkspacesParams, - ): Promise; + ): Promise /** * 设置权限继承模式 * @see https://developers.dingtalk.com/document/orgapp/set-permission-inheritance-mode @@ -1288,7 +1264,7 @@ declare module "../internal" { dentryUuid: string, query: SetPermissionInheritanceQuery, params: SetPermissionInheritanceParams, - ): Promise; + ): Promise /** * 获取权限继承模式 * @see https://developers.dingtalk.com/document/orgapp/get-permission-inheritance-mode @@ -1296,7 +1272,7 @@ declare module "../internal" { getPermissionInheritance( dentryUuid: string, query: GetPermissionInheritanceQuery, - ): Promise; + ): Promise /** * 修改权限 * @see https://developers.dingtalk.com/document/orgapp/modify-permissions-file @@ -1305,7 +1281,7 @@ declare module "../internal" { dentryUuid: string, query: StorageUpdatePermissionQuery, params: StorageUpdatePermissionParams, - ): Promise; + ): Promise /** * 删除权限 * @see https://developers.dingtalk.com/document/orgapp/delete-permissions-file @@ -1314,7 +1290,7 @@ declare module "../internal" { dentryUuid: string, query: StorageDeletePermissionQuery, params: StorageDeletePermissionParams, - ): Promise; + ): Promise /** * 添加权限 * @see https://developers.dingtalk.com/document/orgapp/add-permissions-file @@ -1323,7 +1299,7 @@ declare module "../internal" { dentryUuid: string, query: StorageAddPermissionQuery, params: StorageAddPermissionParams, - ): Promise; + ): Promise /** * 获取权限列表 * @see https://developers.dingtalk.com/document/orgapp/get-permission-list @@ -1332,7 +1308,7 @@ declare module "../internal" { dentryUuid: string, query: ListPermissionsOrgQuery, params: ListPermissionsOrgParams, - ): Promise; + ): Promise /** * 搜索文件 * @see https://developers.dingtalk.com/document/orgapp/search-for-files @@ -1340,7 +1316,7 @@ declare module "../internal" { searchDentries( query: SearchDentriesQuery, params: SearchDentriesParams, - ): Promise; + ): Promise /** * 提交文件 * @see https://developers.dingtalk.com/document/app/submittal-file @@ -1349,7 +1325,7 @@ declare module "../internal" { parentDentryUuid: string, query: StorageCommitFileQuery, params: StorageCommitFileParams, - ): Promise; + ): Promise /** * 获取文件上传信息 * @see https://developers.dingtalk.com/document/app/obtain-file-upload-informations @@ -1358,7 +1334,7 @@ declare module "../internal" { parentDentryUuid: string, query: StorageGetFileUploadInfoQuery, params: StorageGetFileUploadInfoParams, - ): Promise; + ): Promise /** * 取消订阅文件变更事件 * @see https://developers.dingtalk.com/document/isvapp/unsubscribe-from-file-change-event @@ -1366,7 +1342,7 @@ declare module "../internal" { unsubscribeEvent( query: UnsubscribeEventQuery, params: UnsubscribeEventParams, - ): Promise; + ): Promise /** * 获取文件列表 * @see https://developers.dingtalk.com/document/isvapp/get-the-list-of-files-or-folders-under-a-space @@ -1375,7 +1351,7 @@ declare module "../internal" { spaceId: string, query: ListAllDentriesQuery, params: ListAllDentriesParams, - ): Promise; + ): Promise /** * 批量获取文件(夹)信息 * @see https://developers.dingtalk.com/document/isvapp/get-file-or-folder-information-in-bulk @@ -1384,7 +1360,7 @@ declare module "../internal" { spaceId: string, query: GetDentriesQuery, params: GetDentriesParams, - ): Promise; + ): Promise /** * 批量获取文件缩略图 * @see undefined @@ -1393,7 +1369,7 @@ declare module "../internal" { spaceId: string, query: GetDentryThumbnailsQuery, params: GetDentryThumbnailsParams, - ): Promise; + ): Promise /** * 批量移动文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/bulk-move-files-or-folders @@ -1402,7 +1378,7 @@ declare module "../internal" { spaceId: string, query: MoveDentriesQuery, params: MoveDentriesParams, - ): Promise; + ): Promise /** * 批量拷贝文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/copy-files-or-folders-in-bulk @@ -1411,7 +1387,7 @@ declare module "../internal" { spaceId: string, query: CopyDentriesQuery, params: CopyDentriesParams, - ): Promise; + ): Promise /** * 批量删除文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/delete-files-or-folders-in-bulk @@ -1420,12 +1396,12 @@ declare module "../internal" { spaceId: string, query: DeleteDentriesQuery, params: DeleteDentriesParams, - ): Promise; + ): Promise /** * 获取异步任务信息 * @see https://developers.dingtalk.com/document/isvapp/get-the-asynchronous-task-information-in-storage */ - getTask(taskId: string, query: GetTaskQuery): Promise; + getTask(taskId: string, query: GetTaskQuery): Promise /** * 初始化文件分片上传 * @see https://developers.dingtalk.com/document/isvapp/initialize-a-multipart-upload-object @@ -1434,7 +1410,7 @@ declare module "../internal" { spaceId: string, query: InitMultipartFileUploadQuery, params: InitMultipartFileUploadParams, - ): Promise; + ): Promise /** * 获取文件上传信息(分片上传) * @see https://developers.dingtalk.com/document/isvapp/obtains-the-information-about-multipart-uploads-of-an-object @@ -1442,12 +1418,12 @@ declare module "../internal" { getMultipartFileUploadInfos( query: GetMultipartFileUploadInfosQuery, params: GetMultipartFileUploadInfosParams, - ): Promise; + ): Promise /** * 获取企业存储中企业维度的信息 * @see https://developers.dingtalk.com/document/isvapp/obtain-enterprise-information-1 */ - getOrg(corpId: string, query: GetOrgQuery): Promise; + getOrg(corpId: string, query: GetOrgQuery): Promise /** * 还原回收站中的回收项 * @see https://developers.dingtalk.com/document/isvapp/restore-recycle-items @@ -1457,12 +1433,12 @@ declare module "../internal" { recycleItemId: string, query: RestoreRecycleItemQuery, params: RestoreRecycleItemParams, - ): Promise; + ): Promise /** * 获取回收站信息 * @see https://developers.dingtalk.com/document/isvapp/obtain-information-about-the-recycle-bin */ - getRecycleBin(query: GetRecycleBinQuery): Promise; + getRecycleBin(query: GetRecycleBinQuery): Promise /** * 获取回收项详情 * @see https://developers.dingtalk.com/document/isvapp/obtain-recycling-item-information @@ -1471,7 +1447,7 @@ declare module "../internal" { recycleBinId: string, recycleItemId: string, query: GetRecycleItemQuery, - ): Promise; + ): Promise /** * 删除回收项, 删除之后该记录从回收站删除, 后续文件就无法恢复了 * @see https://developers.dingtalk.com/document/isvapp/delete-recycle-item @@ -1480,7 +1456,7 @@ declare module "../internal" { recycleBinId: string, recycleItemId: string, query: DeleteRecycleItemQuery, - ): Promise; + ): Promise /** * 清空回收站 * @see https://developers.dingtalk.com/document/isvapp/empty-the-recycle-bin @@ -1488,7 +1464,7 @@ declare module "../internal" { clearRecycleBin( recycleBinId: string, query: ClearRecycleBinQuery, - ): Promise; + ): Promise /** * 批量删除回收项, 删除之后该记录从回收站删除, 后续文件就无法恢复了 * @see https://developers.dingtalk.com/document/isvapp/batch-delete-recycle-items @@ -1497,7 +1473,7 @@ declare module "../internal" { recycleBinId: string, query: DeleteRecycleItemsQuery, params: DeleteRecycleItemsParams, - ): Promise; + ): Promise /** * 批量还原回收站中的回收项 * @see https://developers.dingtalk.com/document/isvapp/batch-restore-recycled-items @@ -1506,7 +1482,7 @@ declare module "../internal" { recycleBinId: string, query: RestoreRecycleItemsQuery, params: RestoreRecycleItemsParams, - ): Promise; + ): Promise /** * 获取文件历史版本 * @see https://developers.dingtalk.com/document/isvapp/obtains-a-list-of-file-versions @@ -1515,7 +1491,7 @@ declare module "../internal" { spaceId: string, dentryId: string, query: ListDentryVersionsQuery, - ): Promise; + ): Promise /** * 获取文件打开链接 * @see https://developers.dingtalk.com/document/isvapp/obtains-the-object-preview-or-editing-information @@ -1525,7 +1501,7 @@ declare module "../internal" { dentryId: string, query: GetDentryOpenInfoQuery, params: GetDentryOpenInfoParams, - ): Promise; + ): Promise /** * 移动文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/move-a-file-or-folder @@ -1535,7 +1511,7 @@ declare module "../internal" { dentryId: string, query: MoveDentryQuery, params: MoveDentryParams, - ): Promise; + ): Promise /** * 获取权限列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-a-permission-list-storage @@ -1545,7 +1521,7 @@ declare module "../internal" { dentryId: string, query: ListPermissionsIsvQuery, params: ListPermissionsIsvParams, - ): Promise; + ): Promise /** * 获取文件下载信息 * @see https://developers.dingtalk.com/document/orgapp/obtains-the-download-information-about-a-file @@ -1555,7 +1531,7 @@ declare module "../internal" { dentryId: string, query: GetFileDownloadInfoQuery, params: GetFileDownloadInfoParams, - ): Promise; + ): Promise /** * 获取回收项列表 * @see https://developers.dingtalk.com/document/isvapp/gets-the-list-of-recycle-items @@ -1563,7 +1539,7 @@ declare module "../internal" { listRecycleItems( recycleBinId: string, query: ListRecycleItemsQuery, - ): Promise; + ): Promise /** * 删除文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/delete-a-file-or-folder @@ -1572,7 +1548,7 @@ declare module "../internal" { spaceId: string, dentryId: string, query: DeleteDentryQuery, - ): Promise; + ): Promise /** * 重命名文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/rename-a-file-or-folder @@ -1582,7 +1558,7 @@ declare module "../internal" { dentryId: string, query: RenameDentryQuery, params: RenameDentryParams, - ): Promise; + ): Promise /** * 获取文件列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-file-list-storage @@ -1590,7 +1566,7 @@ declare module "../internal" { listDentries( spaceId: string, query: ListDentriesQuery, - ): Promise; + ): Promise /** * 恢复文件历史版本 * @see https://developers.dingtalk.com/document/isvapp/restore-previous-versions-of-files @@ -1600,7 +1576,7 @@ declare module "../internal" { dentryId: string, version: number, query: RevertDentryVersionQuery, - ): Promise; + ): Promise /** * 拷贝文件或文件夹 * @see https://developers.dingtalk.com/document/isvapp/copy-an-object @@ -1610,12 +1586,12 @@ declare module "../internal" { dentryId: string, query: CopyDentryQuery, params: CopyDentryParams, - ): Promise; + ): Promise /** * 获取开放平台应用在企业存储中的相关应用信息 * @see https://developers.dingtalk.com/document/isvapp/queries-application-information-1 */ - getCurrentApp(query: GetCurrentAppQuery): Promise; + getCurrentApp(query: GetCurrentAppQuery): Promise /** * 获取空间信息 * @see https://developers.dingtalk.com/document/isvapp/get-space-information @@ -1623,7 +1599,7 @@ declare module "../internal" { storageGetSpace( spaceId: string, query: StorageGetSpaceQuery, - ): Promise; + ): Promise /** * 添加文件夹 * @see https://developers.dingtalk.com/document/isvapp/add-folder @@ -1633,7 +1609,7 @@ declare module "../internal" { parentId: string, query: AddFolderQuery, params: AddFolderParams, - ): Promise; + ): Promise /** * 获取文件(夹)信息 * @see https://developers.dingtalk.com/document/isvapp/obtain-file-or-folder-information @@ -1643,7 +1619,7 @@ declare module "../internal" { dentryId: string, query: GetDentryQuery, params: GetDentryParams, - ): Promise; + ): Promise /** * 删除文件上的App属性值 * @see https://developers.dingtalk.com/document/isvapp/delete-file-app-attribute @@ -1653,7 +1629,7 @@ declare module "../internal" { dentryId: number, query: DeleteDentryAppPropertiesQuery, params: DeleteDentryAppPropertiesParams, - ): Promise; + ): Promise /** * 修改文件上的App属性值 * @see https://developers.dingtalk.com/document/isvapp/update-the-application-properties-of-a-file-or-folder @@ -1663,7 +1639,7 @@ declare module "../internal" { dentryId: number, query: UpdateDentryAppPropertiesQuery, params: UpdateDentryAppPropertiesParams, - ): Promise; + ): Promise /** * 提交文件 * @see https://developers.dingtalk.com/document/orgapp/submit-documents @@ -1672,7 +1648,7 @@ declare module "../internal" { spaceId: string, query: StorageCommitFileQuery, params: StorageCommitFileParams, - ): Promise; + ): Promise /** * 获取文件上传信息 * @see https://developers.dingtalk.com/document/orgapp/obtain-storage-upload-information @@ -1681,7 +1657,7 @@ declare module "../internal" { spaceId: string, query: StorageGetFileUploadInfoQuery, params: StorageGetFileUploadInfoParams, - ): Promise; + ): Promise /** * 修改权限 * @see https://developers.dingtalk.com/document/isvapp/modify-storage-permissions @@ -1691,7 +1667,7 @@ declare module "../internal" { dentryId: string, query: StorageUpdatePermissionQuery, params: StorageUpdatePermissionParams, - ): Promise; + ): Promise /** * 删除权限 * @see https://developers.dingtalk.com/document/isvapp/delete-storage-permissions @@ -1701,7 +1677,7 @@ declare module "../internal" { dentryId: string, query: StorageDeletePermissionQuery, params: StorageDeletePermissionParams, - ): Promise; + ): Promise /** * 添加权限 * @see https://developers.dingtalk.com/document/isvapp/add-permissions-storage @@ -1711,7 +1687,7 @@ declare module "../internal" { dentryId: string, query: StorageAddPermissionQuery, params: StorageAddPermissionParams, - ): Promise; + ): Promise /** * 添加空间 * @see https://developers.dingtalk.com/document/isvapp/add-space @@ -1719,6 +1695,6 @@ declare module "../internal" { storageAddSpace( query: StorageAddSpaceQuery, params: StorageAddSpaceParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/swform.ts b/adapters/dingtalk/src/api/swform.ts index b536d16d..7f41b9ea 100644 --- a/adapters/dingtalk/src/api/swform.ts +++ b/adapters/dingtalk/src/api/swform.ts @@ -1,70 +1,70 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetFormInstanceQuery { /** 填表类型。 */ - bizType?: number; + bizType?: number } export interface GetFormInstanceResponse { - success?: unknown; + success?: unknown result?: { - createTime?: string; - modifyTime?: string; - formCode?: string; - title?: string; - creator?: string; - forms?: number; - }; + createTime?: string + modifyTime?: string + formCode?: string + title?: string + creator?: string + forms?: number + } } export interface ListFormInstancesQuery { /** 填表类型。 */ - bizType?: number; + bizType?: number /** 时间,格式要求为yyyy-MM-dd。 */ - actionDate?: string; + actionDate?: string /** 分页游标。 */ - nextToken: number; + nextToken: number /** 每页最大条目数,最大值100。 */ - maxResults: number; + maxResults: number } export interface ListFormInstancesResponse { - success?: unknown; + success?: unknown result?: { - hasMore?: number; - nextToken?: number; - list?: number; - }; + hasMore?: number + nextToken?: number + list?: number + } } export interface ListFormSchemasByCreatorQuery { /** 每页最大条目数,最大值200。 */ - maxResults: number; + maxResults: number /** 填表类型。 */ - bizType?: number; + bizType?: number /** 填表创建人userid。 */ - creator?: string; + creator?: string /** 分页游标。 */ - nextToken: number; + nextToken: number } export interface ListFormSchemasByCreatorResponse { - success?: unknown; + success?: unknown result?: { - hasMore?: number; - nextToken?: number; - list?: number; - }; + hasMore?: number + nextToken?: number + list?: number + } } // funcName: isOldApi Internal.define({ - "/swform/instances/{formInstanceId}": { GET: { getFormInstance: false } }, - "/swform/forms/{formCode}/instances": { GET: { listFormInstances: false } }, - "/swform/users/forms": { GET: { listFormSchemasByCreator: false } }, -}); -declare module "../internal" { + '/swform/instances/{formInstanceId}': { GET: { getFormInstance: false } }, + '/swform/forms/{formCode}/instances': { GET: { listFormInstances: false } }, + '/swform/users/forms': { GET: { listFormSchemasByCreator: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取单条填表实例详情 @@ -73,7 +73,7 @@ declare module "../internal" { getFormInstance( formInstanceId: string, query: GetFormInstanceQuery, - ): Promise; + ): Promise /** * 获取填表实例列表 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-table-filling-instance-list-data @@ -81,13 +81,13 @@ declare module "../internal" { listFormInstances( formCode: string, query: ListFormInstancesQuery, - ): Promise; + ): Promise /** * 获取用户创建的填表模板列表 * @see https://developers.dingtalk.com/document/isvapp/new-obtains-the-template-that-a-user-creates */ listFormSchemasByCreator( query: ListFormSchemasByCreatorQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/todo.ts b/adapters/dingtalk/src/api/todo.ts index 1ec00304..0711600f 100644 --- a/adapters/dingtalk/src/api/todo.ts +++ b/adapters/dingtalk/src/api/todo.ts @@ -1,173 +1,173 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface QueryOrgTodoTasksParams { /** 分页游标。 */ - nextToken?: string; + nextToken?: string /** 待办完成状态。 */ - isDone?: unknown; + isDone?: unknown } export interface QueryOrgTodoTasksResponse { - nextToken?: string; + nextToken?: string todoCards?: { - taskId?: string; - subject?: string; - dueTime?: number; - detailUrl?: number; - todoCardView?: number; - priority?: number; - createdTime?: number; - modifiedTime?: number; - todoStatus?: string; - creatorId?: string; - sourceId?: string; - category?: string; - bizTag?: string; - originalSource?: number; - isDone?: number; - orgInfo?: number; - }[]; - totalCount?: number; + taskId?: string + subject?: string + dueTime?: number + detailUrl?: number + todoCardView?: number + priority?: number + createdTime?: number + modifiedTime?: number + todoStatus?: string + creatorId?: string + sourceId?: string + category?: string + bizTag?: string + originalSource?: number + isDone?: number + orgInfo?: number + }[] + totalCount?: number } export interface UpdateTodoTaskExecutorStatusParams { /** 执行者状态列表,id需传用户的unionId。 */ - executorStatusList?: object[]; + executorStatusList?: object[] } export interface UpdateTodoTaskExecutorStatusQuery { /** 当前操作者的用户的unionId。 */ - operatorId?: string; + operatorId?: string } export interface UpdateTodoTaskExecutorStatusResponse { - result?: unknown; + result?: unknown } export interface CreateTodoTaskParams { /** 业务系统侧的唯一标识ID,即业务ID。 */ - sourceId?: string; + sourceId?: string /** 待办标题,最大长度1024。 */ - subject: string; + subject: string /** 创建者的unionId。 */ - creatorId?: string; + creatorId?: string /** 待办备注描述,最大长度4096。 */ - description?: string; + description?: string /** 截止时间,Unix时间戳,单位毫秒。 */ - dueTime?: number; + dueTime?: number /** 执行者的unionId,最大数量1000。 */ - executorIds?: string[]; + executorIds?: string[] /** 参与者的unionId,最大数量1000。 */ - participantIds?: string[]; + participantIds?: string[] /** 详情页url跳转地址。 */ - detailUrl?: unknown; + detailUrl?: unknown /** 待办卡片内容区表单自定义字段列表 */ - contentFieldList?: object[]; + contentFieldList?: object[] /** 生成的待办是否仅展示在执行者的待办列表中。 */ - isOnlyShowExecutor?: unknown; + isOnlyShowExecutor?: unknown /** 优先级,取值: */ - priority?: number; + priority?: number /** 待办通知配置。 */ - notifyConfigs?: unknown; + notifyConfigs?: unknown /** 二级分类。 */ - bizCategoryId?: string; + bizCategoryId?: string /** 编辑 */ - actionList?: object[]; + actionList?: object[] } export interface CreateTodoTaskQuery { /** 当前操作者用户的unionId。 */ - operatorId?: string; + operatorId?: string } export interface CreateTodoTaskResponse { - id: string; - subject: string; - description?: string; - startTime?: number; - dueTime?: number; - finishTime?: number; - done?: unknown; - executorIds?: string[]; - participantIds?: string[]; + id: string + subject: string + description?: string + startTime?: number + dueTime?: number + finishTime?: number + done?: unknown + executorIds?: string[] + participantIds?: string[] detailUrl?: { - pcUrl?: string; - appUrl?: string; - }; - source?: string; - sourceId?: string; - createdTime: number; - modifiedTime?: number; - creatorId: string; - modifierId?: string; - tenantId?: string; - tenantType?: string; - bizTag?: string; - requestId?: string; - cardTypeId?: string; + pcUrl?: string + appUrl?: string + } + source?: string + sourceId?: string + createdTime: number + modifiedTime?: number + creatorId: string + modifierId?: string + tenantId?: string + tenantType?: string + bizTag?: string + requestId?: string + cardTypeId?: string contentFieldList?: { - fieldKey?: string; - fieldValue?: string; - }[]; - isOnlyShowExecutor?: unknown; - priority?: number; - sourceTitle?: string; + fieldKey?: string + fieldValue?: string + }[] + isOnlyShowExecutor?: unknown + priority?: number + sourceTitle?: string notifyConfigs?: { - singleChat?: string; - dingNotify?: string; - }; + singleChat?: string + dingNotify?: string + } } export interface UpdateTodoTaskParams { /** 待办标题,最大长度1024。 */ - subject?: string; + subject?: string /** 待办描述,最大长度4096。 */ - description?: string; + description?: string /** 截止时间,Unix时间戳,单位毫秒。 */ - dueTime?: number; + dueTime?: number /** 完成状态。 */ - done?: unknown; + done?: unknown /** 执行者的unionId列表,最大数量1000。 */ - executorIds?: string[]; + executorIds?: string[] /** 参与者的unionId列表,最大数量1000。 */ - participantIds?: string[]; + participantIds?: string[] } export interface UpdateTodoTaskQuery { /** 当前操作者的unionId。 */ - operatorId?: string; + operatorId?: string } export interface UpdateTodoTaskResponse { - result?: unknown; + result?: unknown } export interface DeleteTodoTaskQuery { /** 当前操作者的用户的unionId。 */ - operatorId?: string; + operatorId?: string } export interface DeleteTodoTaskResponse { - result?: unknown; - requestId?: string; + result?: unknown + requestId?: string } // funcName: isOldApi Internal.define({ - "/todo/users/{unionId}/org/tasks/query": { + '/todo/users/{unionId}/org/tasks/query': { POST: { queryOrgTodoTasks: false }, }, - "/todo/users/{unionId}/tasks/{taskId}/executorStatus": { + '/todo/users/{unionId}/tasks/{taskId}/executorStatus': { PUT: { updateTodoTaskExecutorStatus: false }, }, - "/todo/users/{unionId}/tasks": { POST: { createTodoTask: false } }, - "/todo/users/{unionId}/tasks/{taskId}": { + '/todo/users/{unionId}/tasks': { POST: { createTodoTask: false } }, + '/todo/users/{unionId}/tasks/{taskId}': { PUT: { updateTodoTask: false }, DELETE: { deleteTodoTask: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 查询企业下用户待办列表 @@ -176,7 +176,7 @@ declare module "../internal" { queryOrgTodoTasks( unionId: string, params: QueryOrgTodoTasksParams, - ): Promise; + ): Promise /** * 更新钉钉待办执行者状态 * @see https://developers.dingtalk.com/document/isvapp/update-dingtalk-to-do-status @@ -186,7 +186,7 @@ declare module "../internal" { taskId: string, query: UpdateTodoTaskExecutorStatusQuery, params: UpdateTodoTaskExecutorStatusParams, - ): Promise; + ): Promise /** * 创建待办 * @see https://developers.dingtalk.com/document/isvapp/add-dingtalk-to-do-task @@ -195,7 +195,7 @@ declare module "../internal" { unionId: string, query: CreateTodoTaskQuery, params: CreateTodoTaskParams, - ): Promise; + ): Promise /** * 更新钉钉待办任务 * @see https://developers.dingtalk.com/document/isvapp/updates-dingtalk-to-do-tasks @@ -205,7 +205,7 @@ declare module "../internal" { taskId: string, query: UpdateTodoTaskQuery, params: UpdateTodoTaskParams, - ): Promise; + ): Promise /** * 删除钉钉待办任务 * @see https://developers.dingtalk.com/document/isvapp/delete-dingtalk-to-do-tasks @@ -214,6 +214,6 @@ declare module "../internal" { unionId: string, taskId: string, query: DeleteTodoTaskQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/wiki.ts b/adapters/dingtalk/src/api/wiki.ts index e4ad9ec7..7aa8738c 100644 --- a/adapters/dingtalk/src/api/wiki.ts +++ b/adapters/dingtalk/src/api/wiki.ts @@ -1,196 +1,196 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface ListNodesQuery { /** 父节点id(父节点dentryUuid): */ - parentNodeId: string; + parentNodeId: string /** 分页游标, 首次拉取不用传。 */ - nextToken?: string; + nextToken?: string /** 分页大小,默认值50。 */ - maxResults?: number; + maxResults?: number /** 是否获取权限信息: */ - withPermissionRole?: unknown; + withPermissionRole?: unknown /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface ListNodesResponse { nodes?: { - nodeId?: string; - workspaceId?: string; - name?: string; - size?: number; - type?: string; - category?: string; - extension?: string; - url?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - hasChildren?: number; - statisticalInfo?: number; - permissionRole?: string; - }[]; - nextToken?: string; + nodeId?: string + workspaceId?: string + name?: string + size?: number + type?: string + category?: string + extension?: string + url?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + hasChildren?: number + statisticalInfo?: number + permissionRole?: string + }[] + nextToken?: string } export interface GetNodeByUrlParams { /** 文档链接 */ - url: string; + url: string /** 可选参数 */ - option?: unknown; + option?: unknown } export interface GetNodeByUrlQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface GetNodeByUrlResponse { node?: { - nodeId?: string; - workspaceId?: string; - name?: string; - size?: number; - type?: string; - category?: string; - extension?: string; - url?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - hasChildren?: number; - statisticalInfo?: number; - permissionRole?: string; - }; + nodeId?: string + workspaceId?: string + name?: string + size?: number + type?: string + category?: string + extension?: string + url?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + hasChildren?: number + statisticalInfo?: number + permissionRole?: string + } } export interface GetNodesParams { /** 节点id。 */ - nodeIds: string[]; + nodeIds: string[] /** 可选参数。 */ - option?: unknown; + option?: unknown } export interface GetNodesQuery { /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface GetNodesResponse { nodes?: { - nodeId?: string; - workspaceId?: string; - name?: string; - size?: number; - type?: string; - category?: string; - extension?: string; - url?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - hasChildren?: number; - statisticalInfo?: number; - permissionRole?: string; - }[]; + nodeId?: string + workspaceId?: string + name?: string + size?: number + type?: string + category?: string + extension?: string + url?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + hasChildren?: number + statisticalInfo?: number + permissionRole?: string + }[] } export interface GetNodeQuery { /** 是否获取统计信息: */ - withStatisticalInfo?: unknown; + withStatisticalInfo?: unknown /** 是否获取权限信息: */ - withPermissionRole?: unknown; + withPermissionRole?: unknown /** 操作人unionId。 */ - operatorId: string; + operatorId: string } export interface GetNodeResponse { node?: { - nodeId?: string; - workspaceId?: string; - name?: string; - size?: number; - type?: string; - category?: string; - extension?: string; - url?: string; - creatorId?: string; - modifierId?: string; - createTime?: string; - modifiedTime?: string; - hasChildren?: number; - statisticalInfo?: number; - permissionRole?: string; - }; + nodeId?: string + workspaceId?: string + name?: string + size?: number + type?: string + category?: string + extension?: string + url?: string + creatorId?: string + modifierId?: string + createTime?: string + modifiedTime?: string + hasChildren?: number + statisticalInfo?: number + permissionRole?: string + } } export interface WikiWordsDetailQuery { /** 词条名称,最大长度50个字符。 */ - wordName: string; + wordName: string } export interface WikiWordsDetailResponse { data: { - wordName: string; - uuid: number; - gmtCreate: number; - gmtModify: number; - orgName: string; - wordAlias: number; - highLightWordAlias: number; - wordFullName: string; - relatedDoc: number; - relatedLink: number; - creatorName: string; - updaterName: string; - approveName: string; - wordParaphrase: string; - simpleWordParaphrase: string; - contacts: number; - tagsList: number; - appLink: number; - imHighLight: number; - simHighLight: number; - }[]; - errMsg: string; - success: unknown; + wordName: string + uuid: number + gmtCreate: number + gmtModify: number + orgName: string + wordAlias: number + highLightWordAlias: number + wordFullName: string + relatedDoc: number + relatedLink: number + creatorName: string + updaterName: string + approveName: string + wordParaphrase: string + simpleWordParaphrase: string + contacts: number + tagsList: number + appLink: number + imHighLight: number + simHighLight: number + }[] + errMsg: string + success: unknown } export interface WikiWordsParseParams { /** 待匹配词条的文本,最大长度4096个字符。 */ - content: string; + content: string } export interface WikiWordsParseResponse { - success?: unknown; - errMsg: string; + success?: unknown + errMsg: string data: { - startIndex: number; - endIndex: number; - wordName: string; - }[]; + startIndex: number + endIndex: number + wordName: string + }[] } // funcName: isOldApi Internal.define({ - "/wiki/nodes": { GET: { listNodes: false } }, - "/wiki/nodes/queryByUrl": { POST: { getNodeByUrl: false } }, - "/wiki/nodes/batchQuery": { POST: { getNodes: false } }, - "/wiki/nodes/{nodeId}": { GET: { getNode: false } }, - "/wiki/words/details": { GET: { wikiWordsDetail: false } }, - "/wiki/words/parse": { POST: { wikiWordsParse: false } }, -}); -declare module "../internal" { + '/wiki/nodes': { GET: { listNodes: false } }, + '/wiki/nodes/queryByUrl': { POST: { getNodeByUrl: false } }, + '/wiki/nodes/batchQuery': { POST: { getNodes: false } }, + '/wiki/nodes/{nodeId}': { GET: { getNode: false } }, + '/wiki/words/details': { GET: { wikiWordsDetail: false } }, + '/wiki/words/parse': { POST: { wikiWordsParse: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取节点列表 * @see https://developers.dingtalk.com/document/orgapp/get-node-list */ - listNodes(query: ListNodesQuery): Promise; + listNodes(query: ListNodesQuery): Promise /** * 通过链接获取节点 * @see https://developers.dingtalk.com/document/orgapp/get-node-by-link @@ -198,7 +198,7 @@ declare module "../internal" { getNodeByUrl( query: GetNodeByUrlQuery, params: GetNodeByUrlParams, - ): Promise; + ): Promise /** * 批量获取节点 * @see https://developers.dingtalk.com/document/orgapp/obtain-nodes-in-batch @@ -206,25 +206,25 @@ declare module "../internal" { getNodes( query: GetNodesQuery, params: GetNodesParams, - ): Promise; + ): Promise /** * 获取节点 * @see https://developers.dingtalk.com/document/orgapp/get-node */ - getNode(nodeId: string, query: GetNodeQuery): Promise; + getNode(nodeId: string, query: GetNodeQuery): Promise /** * 根据词条名称获取该词条释义 * @see https://developers.dingtalk.com/document/orgapp/enterprise-encyclopedia-query-entry-details-by-entry-name */ wikiWordsDetail( query: WikiWordsDetailQuery, - ): Promise; + ): Promise /** * 外部传递过来的消息根据百科词库分词 * @see https://developers.dingtalk.com/document/orgapp/enterprise-encyclopedia-match-entries-in-a-text */ wikiWordsParse( params: WikiWordsParseParams, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/workbench.ts b/adapters/dingtalk/src/api/workbench.ts index 422eb2f5..c17d51ce 100644 --- a/adapters/dingtalk/src/api/workbench.ts +++ b/adapters/dingtalk/src/api/workbench.ts @@ -1,51 +1,51 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface AddRecentUserAppListParams { /** 组织CorpId */ - corpId: string; + corpId: string /** 最近使用应用列表 */ - usedAppDetailList: object[]; + usedAppDetailList: object[] /** 员工staffId */ - userId: string; + userId: string } export interface AddRecentUserAppListResponse { - result: unknown; + result: unknown } export interface GetPluginRuleCheckInfoQuery { /** 插件的appId。 */ - miniAppId?: string; + miniAppId?: string } export interface GetPluginRuleCheckInfoResponse { - packCode?: string; - pluginRuleCheckDetail?: string; + packCode?: string + pluginRuleCheckDetail?: string } export interface GetPluginPermissionPointQuery { /** 插件ID。 */ - miniAppId?: string; + miniAppId?: string } export interface GetPluginPermissionPointResponse { - permissionPointList?: string[]; + permissionPointList?: string[] } // funcName: isOldApi Internal.define({ - "/workbench/components/recentUsed/batch": { + '/workbench/components/recentUsed/batch': { POST: { addRecentUserAppList: false }, }, - "/workbench/plugins/validationRules": { + '/workbench/plugins/validationRules': { GET: { getPluginRuleCheckInfo: false }, }, - "/workbench/plugins/permissions": { + '/workbench/plugins/permissions': { GET: { getPluginPermissionPoint: false }, }, -}); -declare module "../internal" { +}) +declare module '../internal' { interface Internal { /** * 批量添加最近使用记录 @@ -53,20 +53,20 @@ declare module "../internal" { */ addRecentUserAppList( params: AddRecentUserAppListParams, - ): Promise; + ): Promise /** * 获取插件的校验规则 * @see https://developers.dingtalk.com/document/dashboard/you-can-call-this-operation-to-obtain-the-information-about */ getPluginRuleCheckInfo( query: GetPluginRuleCheckInfoQuery, - ): Promise; + ): Promise /** * 获取工作台插件的权限点 * @see https://developers.dingtalk.com/document/dashboard/obtain-the-permissions-of-the-workbench-plug-in */ getPluginPermissionPoint( query: GetPluginPermissionPointQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/api/yida.ts b/adapters/dingtalk/src/api/yida.ts index b1d46d87..f7d540af 100644 --- a/adapters/dingtalk/src/api/yida.ts +++ b/adapters/dingtalk/src/api/yida.ts @@ -1,1749 +1,1753 @@ -import { Internal } from "../internal"; +import { Internal } from '../internal' // GENERATED CONTENT export interface GetFormListInAppQuery { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 表单类型。 */ - formTypes?: string; + formTypes?: string /** 每页条目数,默认值100,最大值100。 */ - pageSize?: number; + pageSize?: number /** 页码,不传默认为1。 */ - pageNumber?: number; + pageNumber?: number /** 操作人userId。 */ - userId: string; + userId: string } export interface GetFormListInAppResponse { - success?: unknown; + success?: unknown result?: { - data?: number; - totalCount?: number; - currentPage?: number; - }; + data?: number + totalCount?: number + currentPage?: number + } } export interface GetFieldDefByUuidQuery { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 表单唯一标识。 */ - formUuid: string; + formUuid: string /** 操作人userId。 */ - userId: string; + userId: string } export interface GetFieldDefByUuidResponse { - success?: unknown; + success?: unknown result?: { - componentName?: string; - fieldId?: string; - behavior?: string; - label?: number; - props?: number; - children?: string; - }[]; + componentName?: string + fieldId?: string + behavior?: string + label?: number + props?: number + children?: string + }[] } export interface ExecuteBatchTaskParams { /** 审批动作,目前支持的审批动作如下: */ - outResult: string; + outResult: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 审批意见。 */ - remark?: string; + remark?: string /** 操作人userId。 */ - userId: string; + userId: string /** 批量执行的审批任务列表,数组对象格式,每个元素值包含taskId和formInstId两个子属性。 */ - taskInformationList: string; + taskInformationList: string } export interface ExecuteBatchTaskResponse { - failNumber: number; - successNumber: number; - total: number; + failNumber: number + successNumber: number + total: number } export interface ListOperationLogsParams { /** 表单编码。 */ - formUuid: string; + formUuid: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 宜搭表单实例Id。 */ - formInstanceIdList?: string[]; + formInstanceIdList?: string[] /** 用户userId。 */ - userId: string; + userId: string } export interface ListOperationLogsResponse { - operationLogMap: unknown; + operationLogMap: unknown } export interface ListFormRemarksParams { /** 表单编码。 */ - formUuid: string; + formUuid: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 宜搭表单实例Id。 */ - formInstanceIdList?: string[]; + formInstanceIdList?: string[] /** 操作者userId。 */ - userId: string; + userId: string } export interface ListFormRemarksResponse { - formRemarkVoMap?: unknown; + formRemarkVoMap?: unknown } export interface QueryServiceRecordQuery { /** 操作人的userId。 */ - userId: string; + userId: string /** 服务类型,目前只有HTTP服务调用。 */ - hookType?: string; + hookType?: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 本次服务调用的唯一ID,自定义参数。 */ - hookUuid?: string; + hookUuid?: string /** 被重试的服务调用唯一ID。 */ - sourceUuid?: string; + sourceUuid?: string /** 服务调用地址中包含的部分字符串,用于模糊查询。 */ - requestUrl?: string; + requestUrl?: string /** 服务调用是否成功。 */ - success?: unknown; + success?: unknown /** 当前页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 宜搭表单实例Id。 */ - instanceId: string; + instanceId: string /** 查询调用服务的开始时间。 */ - invokeAfterDateGMT?: string; + invokeAfterDateGMT?: string /** 每页最大条目数,最大值100。 */ - pageSize?: number; + pageSize?: number /** 服务调用状态,可选值: */ - invokeStatus?: string; + invokeStatus?: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 查询调用服务的结束时间。 */ - invokeBeforeDateGMT?: string; + invokeBeforeDateGMT?: string /** 宜搭表单编码。 */ - formUuid: string; + formUuid: string } export interface QueryServiceRecordResponse { - totalCount?: number; + totalCount?: number values?: { - serviceContent?: string; - formUuid?: string; - sourceUuid?: string; - invokeStatus?: string; - invokeUrl?: string; - invokeResult?: string; - invokeParameter?: string; - hookUuid?: string; - formInstanceId?: string; - serviceParameter?: string; - serviceName?: string; - hookType?: string; - invokeSuccess?: string; - }[]; + serviceContent?: string + formUuid?: string + sourceUuid?: string + invokeStatus?: string + invokeUrl?: string + invokeResult?: string + invokeParameter?: string + hookUuid?: string + formInstanceId?: string + serviceParameter?: string + serviceName?: string + hookType?: string + invokeSuccess?: string + }[] } export interface BatchRemovalByFormInstanceIdListParams { /** 表单编码。 */ - formUuid: string; + formUuid: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 是否需要宜搭服务端异步执行该任务。 */ - asynchronousExecution?: unknown; + asynchronousExecution?: unknown /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 宜搭表单实例Id。 */ - formInstanceIdList: string[]; + formInstanceIdList: string[] /** 员工userId。 */ - userId: string; + userId: string /** 是否需要触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */ - executeExpression?: unknown; + executeExpression?: unknown } export interface BatchUpdateFormDataByInstanceIdParams { /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */ - noExecuteExpression?: unknown; + noExecuteExpression?: unknown /** 表单编码。 */ - formUuid: string; + formUuid: string /** 用于更新表单实例的数据。 */ - updateFormDataJson: string; + updateFormDataJson: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 是否忽略空值。 */ - ignoreEmpty?: unknown; + ignoreEmpty?: unknown /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 是否使用最新的表单schema版本。 */ - useLatestFormSchemaVersion?: unknown; + useLatestFormSchemaVersion?: unknown /** 是否需要宜搭服务端异步执行该任务。 */ - asynchronousExecution?: unknown; + asynchronousExecution?: unknown /** 表单实例Id。 */ - formInstanceIdList: string[]; + formInstanceIdList: string[] /** 用户userId。 */ - userId: string; + userId: string } export interface BatchUpdateFormDataByInstanceIdResponse { - result?: string[]; + result?: string[] } export interface BatchUpdateFormDataByInstanceMapParams { /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */ - noExecuteExpression?: unknown; + noExecuteExpression?: unknown /** 表单编码。 */ - formUuid: string; + formUuid: string /** 该任务是否需要服务端异步执行。 */ - asynchronousExecution?: unknown; + asynchronousExecution?: unknown /** 宜搭应用编码。 */ - appType: string; + appType: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 是否忽略空值。 */ - ignoreEmpty?: unknown; - updateFormDataJsonMap: unknown; + ignoreEmpty?: unknown + updateFormDataJsonMap: unknown /** 是否使用最新的表单schema版本。 */ - useLatestFormSchemaVersion?: unknown; + useLatestFormSchemaVersion?: unknown /** 用户userId。 */ - userId: string; + userId: string } export interface BatchUpdateFormDataByInstanceMapResponse { - result?: string[]; + result?: string[] } export interface ListApplicationQuery { /** 应用过滤条件。 */ - appFilter?: string; + appFilter?: string /** 页码数,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 钉钉企业的corpId值。 */ - corpId: string; + corpId: string /** 每页最大条目数,最大值100。 */ - pageSize?: number; + pageSize?: number /** 根据应用名称检索时的关键词。 */ - appNameSearchKeyword?: string; + appNameSearchKeyword?: string /** 操作人userId。 */ - userId: string; + userId: string /** 根据corpId、userId和CorpToken使用md5加密计算生成的字符串。 */ - token: string; + token: string } export interface ListApplicationResponse { - pageNumber?: number; - totalCount?: number; + pageNumber?: number + totalCount?: number data?: { - creatorUserId?: string; - corpId?: string; - icon?: string; - description?: string; - applicationStatus?: string; - appConfig?: string; - inexistence?: string; - subCorpId?: string; - appType?: string; - name?: string; - }[]; + creatorUserId?: string + corpId?: string + icon?: string + description?: string + applicationStatus?: string + appConfig?: string + inexistence?: string + subCorpId?: string + appType?: string + name?: string + }[] } export interface BatchSaveFormDataParams { /** 是否不触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */ - noExecuteExpression?: unknown; + noExecuteExpression?: unknown /** 表单编码。 */ - formUuid: string; + formUuid: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 是否需要宜搭服务端异步执行该任务。 */ - asynchronousExecution?: unknown; + asynchronousExecution?: unknown /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 批量保存多条表单实例数据发生异常时是否跳过异常的表单实例并继续保存下一个表单实例数据。 */ - keepRunningAfterException?: unknown; + keepRunningAfterException?: unknown /** 用户userId。 */ - userId: string; + userId: string /** 表单实例数据。 */ - formDataJsonList: string[]; + formDataJsonList: string[] } export interface BatchSaveFormDataResponse { - result?: string[]; + result?: string[] } export interface SearchFormDataSecondGenerationNoTableFieldParams { /** 当前页码,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 表单编码。 */ - formUuid: string; + formUuid: string /** 用于检索表单实例数据的检索条件。 */ - searchCondition?: string; + searchCondition?: string /** 表单实例修改截止时间。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 表单实例修改开始时间。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 每页条目数,最大值100。 */ - pageSize?: number; + pageSize?: number /** 用户userId。 */ - userId: string; + userId: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 排序规则 */ - orderConfigJson?: string; + orderConfigJson?: string /** 表单实例提交人的userId。 */ - originatorId?: string; + originatorId?: string /** 表单实例创建截止时间。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 表单实例创建开始时间。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string } export interface SearchFormDataSecondGenerationNoTableFieldResponse { - pageNumber?: number; + pageNumber?: number data?: { - createTimeGMT?: string; - modifyUser?: number; - sequence?: string; - creatorUserId?: string; - formUuid?: string; - serialNumber?: string; - modifiedTimeGMT?: string; - modifier?: string; - formData?: number; - originator?: number; - formInstanceId?: string; - id?: number; - title?: string; - version?: number; - instanceValue?: string; - }[]; - totalCount?: number; + createTimeGMT?: string + modifyUser?: number + sequence?: string + creatorUserId?: string + formUuid?: string + serialNumber?: string + modifiedTimeGMT?: string + modifier?: string + formData?: number + originator?: number + formInstanceId?: string + id?: number + title?: string + version?: number + instanceValue?: string + }[] + totalCount?: number } export interface CreateOrUpdateFormDataParams { /** 是否不要触发表单绑定的校验规则、关联业务规则和第三方服务回调。 */ - noExecuteExpression?: unknown; + noExecuteExpression?: unknown /** 表单编码。 */ - formUuid: string; + formUuid: string /** 用于检索表单实例数据的检索条件。 */ - searchCondition: string; + searchCondition: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 用于更新或新增表单实例的数据。 */ - formDataJson: string; + formDataJson: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 用户userId。 */ - userId: string; + userId: string } export interface CreateOrUpdateFormDataResponse { - result?: string[]; + result?: string[] } export interface SearchFormDataSecondGenerationParams { /** 当前的页码数,从1开始。 */ - pageNumber?: number; + pageNumber?: number /** 表单编码。 */ - formUuid: string; + formUuid: string /** 用于检索表单实例数据的检索条件。 */ - searchCondition?: string; + searchCondition?: string /** 修改的截止时间,格式yyyy-MM-dd HH:mm:ss。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 修改开始时间,格式yyyy-MM-dd HH:mm:ss。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 每页最大条目数,最大值100。 */ - pageSize?: number; + pageSize?: number /** 用户userId。 */ - userId: string; + userId: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 排序规则。 */ - orderConfigJson?: string; + orderConfigJson?: string /** 表单提交人的userId。 */ - originatorId?: string; + originatorId?: string /** 创建的开始时间,格式yyyy-MM-dd HH:mm:ss。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 创建的开始时间,格式yyyy-MM-dd HH:mm:ss。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string } export interface SearchFormDataSecondGenerationResponse { - pageNumber?: number; + pageNumber?: number data?: { - createTimeGMT?: string; - modifyUser?: number; - sequence?: string; - creatorUserId?: string; - formUuid?: string; - serialNumber?: string; - modifiedTimeGMT?: string; - modifier?: string; - formData?: number; - originator?: number; - formInstanceId?: string; - id?: number; - title?: string; - version?: number; - instanceValue?: string; - }[]; - totalCount?: number; + createTimeGMT?: string + modifyUser?: number + sequence?: string + creatorUserId?: string + formUuid?: string + serialNumber?: string + modifiedTimeGMT?: string + modifier?: string + formData?: number + originator?: number + formInstanceId?: string + id?: number + title?: string + version?: number + instanceValue?: string + }[] + totalCount?: number } export interface BatchGetFormDataByIdListParams { /** 宜搭表单编码。 */ - formUuid: string; + formUuid: string /** 宜搭应用编码。 */ - appType: string; + appType: string /** 宜搭应用密钥。 */ - systemToken: string; + systemToken: string /** 宜搭表单实例Id。 */ - formInstanceIdList: string[]; + formInstanceIdList: string[] /** 是否需要宜搭表单组件格式的实例数据。 */ - needFormInstanceValue?: unknown; + needFormInstanceValue?: unknown /** 用户userId。 */ - userId: string; + userId: string } export interface BatchGetFormDataByIdListResponse { result?: { - createTimeGMT?: string; - modifyUser?: number; - sequence?: string; - creatorUserId?: string; - formUuid?: string; - serialNumber?: string; - modifiedTimeGMT?: string; - modifier?: string; - formData?: number; - originator?: number; - formInstanceId?: string; - id?: number; - title?: string; - version?: number; - instanceValue?: string; - }[]; + createTimeGMT?: string + modifyUser?: number + sequence?: string + creatorUserId?: string + formUuid?: string + serialNumber?: string + modifiedTimeGMT?: string + modifier?: string + formData?: number + originator?: number + formInstanceId?: string + id?: number + title?: string + version?: number + instanceValue?: string + }[] } export interface GetTaskCopiesQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 语言,取值: */ - language?: string; + language?: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 表单中组件数据模糊搜索。 */ - keyword?: string; + keyword?: string /** 用户userid。 */ - userId: string; + userId: string /** 流程code列表。 */ - processCodes?: string; + processCodes?: string /** 创建时间起始值。 */ - createFromTimeGMT?: number; + createFromTimeGMT?: number /** 创建时间终止值。 */ - createToTimeGMT?: number; + createToTimeGMT?: number } export interface GetTaskCopiesResponse { - pageNumber?: number; - totalCount?: number; + pageNumber?: number + totalCount?: number data?: { - actionExecutorId?: number; - processInstanceId?: string; - formUuid?: string; - serialNumber?: string; - processInstanceStatus?: string; - originatorDisplayName?: string; - modifiedTimeGMT?: string; - carbonActivityId?: string; - dataType?: string; - actionExecutorName?: number; - originatorAvatar?: string; - processInstanceStatusText?: string; - processApprovedResultText?: string; - formInstanceId?: string; - title?: string; - version?: number; - instanceValue?: string; - createTimeGMT?: string; - processApprovedResult?: string; - processId?: number; - processName?: string; - processCode?: string; - appType?: string; - dataMap?: number; - currentActivityInstances?: number; - finishTimeGMT?: string; - originatorId?: string; - }[]; + actionExecutorId?: number + processInstanceId?: string + formUuid?: string + serialNumber?: string + processInstanceStatus?: string + originatorDisplayName?: string + modifiedTimeGMT?: string + carbonActivityId?: string + dataType?: string + actionExecutorName?: number + originatorAvatar?: string + processInstanceStatusText?: string + processApprovedResultText?: string + formInstanceId?: string + title?: string + version?: number + instanceValue?: string + createTimeGMT?: string + processApprovedResult?: string + processId?: number + processName?: string + processCode?: string + appType?: string + dataMap?: number + currentActivityInstances?: number + finishTimeGMT?: string + originatorId?: string + }[] } export interface SearchFormDataIdListParams { /** 修改时间终止值。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 修改时间起始值。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 语言,取值: */ - language?: string; + language?: string /** 根据表单内组件值查询。 */ - searchFieldJson?: string; + searchFieldJson?: string /** 用户userid。 */ - userId: string; + userId: string /** 根据流程发起人工号查询。 */ - originatorId?: string; + originatorId?: string /** 创建时间终止值。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 创建时间起始值。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string } export interface SearchFormDataIdListQuery { /** 分页页吗。 */ - pageNumber?: number; + pageNumber?: number /** 分页大小。 */ - pageSize?: number; + pageSize?: number } export interface SearchFormDataIdListResponse { - totalCount?: number; - pageNumber?: number; - data?: string[]; + totalCount?: number + pageNumber?: number + data?: string[] } export interface ListTableDataByFormInstanceIdTableIdQuery { /** 表单ID。 */ - formUuid: string; + formUuid: string /** 宜搭应用的唯一编码。 */ - appType: string; + appType: string /** 需要查找的子表单组件ID。 */ - tableFieldId: string; + tableFieldId: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string } export interface ListTableDataByFormInstanceIdTableIdResponse { - totalCount?: number; - pageNumber?: number; - data?: object[]; + totalCount?: number + pageNumber?: number + data?: object[] } export interface GetCorpAccomplishmentTasksQuery { /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 语言,取值: */ - language?: string; + language?: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 表单中组件数据模糊搜索。 */ - keyword?: string; + keyword?: string /** 应用标识。 */ - appTypes?: string; + appTypes?: string /** 流程code。 */ - processCodes?: string; + processCodes?: string /** 创建时间起始值。 */ - createFromTimeGMT?: number; + createFromTimeGMT?: number /** 创建时间终止值。 */ - createToTimeGMT?: number; + createToTimeGMT?: number /** 验权token。 */ - token: string; + token: string } export interface GetCorpAccomplishmentTasksResponse { - totalCount?: number; - pageNumber?: number; + totalCount?: number + pageNumber?: number data?: { - originatorNickName?: string; - processInstanceId?: string; - originatorName?: string; - finishTimeGMT?: string; - activeTimeGMT?: string; - actualActionerId?: string; - originatorEmail?: string; - title?: string; - outResultName?: string; - outResult?: string; - originatorPhoto?: string; - taskType?: string; - originatorNickNameInEnglish?: string; - createTimeGMT?: string; - titleInEnglish?: string; - appType?: string; - originatorNameInEnglish?: string; - originatorId?: string; - taskId?: string; - status?: string; - }[]; + originatorNickName?: string + processInstanceId?: string + originatorName?: string + finishTimeGMT?: string + activeTimeGMT?: string + actualActionerId?: string + originatorEmail?: string + title?: string + outResultName?: string + outResult?: string + originatorPhoto?: string + taskType?: string + originatorNickNameInEnglish?: string + createTimeGMT?: string + titleInEnglish?: string + appType?: string + originatorNameInEnglish?: string + originatorId?: string + taskId?: string + status?: string + }[] } export interface GetFormComponentDefinitionListQuery { /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 版本。 */ - version?: number; + version?: number } export interface GetFormComponentDefinitionListResponse { result?: { - label?: string; - componentName?: string; - fieldId?: string; - parentId?: string; - }[]; + label?: string + componentName?: string + fieldId?: string + parentId?: string + }[] } export interface GetInstanceIdListParams { /** 表单ID。 */ - formUuid: string; + formUuid: string /** 修改时间终止值。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 修改时间起始值。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 语言,取值: */ - language?: string; + language?: string /** 根据表单内组件值查询。 */ - searchFieldJson?: string; + searchFieldJson?: string /** 用户userid。 */ - userId: string; + userId: string /** 实例状态。 */ - instanceStatus?: string; + instanceStatus?: string /** 流程审批结果。 */ - approvedResult?: string; + approvedResult?: string /** 应用编码。 */ - appType: string; + appType: string /** 根据流程发起人工号查询。 */ - originatorId?: string; + originatorId?: string /** 创建时间终止值。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 任务ID。 */ - taskId?: string; + taskId?: string /** 创建时间起始值。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string } export interface GetInstanceIdListQuery { /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number } export interface GetInstanceIdListResponse { - totalCount?: number; - pageNumber?: number; - data?: string[]; + totalCount?: number + pageNumber?: number + data?: string[] } export interface GetInstancesByIdListQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 流程实例ID列表,多个流程实例ID之间使用英文逗号分隔。 */ - processInstanceIds: string; + processInstanceIds: string } export interface GetInstancesByIdListResponse { result?: { - actionExecutor?: number; - processInstanceId?: string; - formUuid?: string; - processCode?: string; - title?: string; - instanceStatus?: string; - approvedResult?: string; - originator?: number; - data?: number; - }[]; + actionExecutor?: number + processInstanceId?: string + formUuid?: string + processCode?: string + title?: string + instanceStatus?: string + approvedResult?: string + originator?: number + data?: number + }[] } export interface GetMeCorpSubmissionQuery { /** 组织的corpId。 */ - corpId: string; + corpId: string /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 语言,取值: */ - language?: string; + language?: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 表单中组件数据模糊搜索。 */ - keyword?: string; + keyword?: string /** 应用标识。 */ - appTypes?: string; + appTypes?: string /** 流程code。 */ - processCodes?: string; + processCodes?: string /** 创建时间起始值。 */ - createFromTimeGMT?: number; + createFromTimeGMT?: number /** 创建时间终止值。 */ - createToTimeGMT?: number; + createToTimeGMT?: number /** 验权token。 */ - token: string; + token: string } export interface GetMeCorpSubmissionResponse { - totalCount?: number; - pageNumber?: number; + totalCount?: number + pageNumber?: number data?: { - actionerName?: number; - processInstanceId?: string; - modifiedTimeGMT?: string; - finishTimeGMT?: string; - formUuid?: string; - processInstanceStatus?: string; - originatorDisplayName?: string; - dataType?: string; - originatorAvatar?: string; - processInstanceStatusText?: string; - actioner?: number; - processApprovedResultText?: string; - formInstanceId?: string; - title?: string; - version?: number; - instanceValue?: string; - processApprovedResult?: string; - createTimeGMT?: string; - processId?: number; - processName?: string; - processCode?: string; - appType?: string; - actionerId?: number; - dataMap?: number; - currentActivityInstances?: number; - originatorId?: string; - }[]; + actionerName?: number + processInstanceId?: string + modifiedTimeGMT?: string + finishTimeGMT?: string + formUuid?: string + processInstanceStatus?: string + originatorDisplayName?: string + dataType?: string + originatorAvatar?: string + processInstanceStatusText?: string + actioner?: number + processApprovedResultText?: string + formInstanceId?: string + title?: string + version?: number + instanceValue?: string + processApprovedResult?: string + createTimeGMT?: string + processId?: number + processName?: string + processCode?: string + appType?: string + actionerId?: number + dataMap?: number + currentActivityInstances?: number + originatorId?: string + }[] } export interface GetProcessDefinitionQuery { /** 组织的corpId。 */ - corpId?: string; + corpId?: string /** 组ID。 */ - groupId?: string; + groupId?: string /** 应用ID。 */ - appType?: string; + appType?: string /** 订单号。 */ - orderNumber?: string; + orderNumber?: string /** 应用的秘钥。 */ - systemType?: string; + systemType?: string /** 应用秘钥,在应用数据中获取。 */ - systemToken?: string; + systemToken?: string /** 名称空间。 */ - nameSpace?: string; + nameSpace?: string /** 语言,取值: */ - language?: string; + language?: string /** 用户的userid。 */ - userId?: string; + userId?: string } export interface GetProcessDefinitionResponse { - outResult?: string; - processInstanceId?: string; - variables?: unknown; - formUuid?: string; - processId?: string; + outResult?: string + processInstanceId?: string + variables?: unknown + formUuid?: string + processId?: string owners?: { - userInfo?: string; - tbWang?: string; - orderNumber?: string; - departmentDescription?: string; - displayName?: string; - masterDataDepartments?: number; - displayEnName?: string; - userId?: string; - personalPhoto?: string; - status?: string; - }[]; + userInfo?: string + tbWang?: string + orderNumber?: string + departmentDescription?: string + displayName?: string + masterDataDepartments?: number + displayEnName?: string + userId?: string + personalPhoto?: string + status?: string + }[] originator?: { - userInfo?: string; - tbWang?: string; - orderNumber?: string; - departmentDescription?: string; - displayName?: string; - masterDataDepartments?: number; - displayEnName?: string; - userId?: string; - personalPhoto?: string; - status?: string; - }; - title?: string; + userInfo?: string + tbWang?: string + orderNumber?: string + departmentDescription?: string + displayName?: string + masterDataDepartments?: number + displayEnName?: string + userId?: string + personalPhoto?: string + status?: string + } + title?: string tasks?: { - actionerId?: string; - activity?: number; - taskId?: number; - status?: string; - }[]; - status?: string; + actionerId?: string + activity?: number + taskId?: number + status?: string + }[] + status?: string } export interface GetCorpTasksQuery { /** 组织corpId。 */ - corpId: string; + corpId: string /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 语言,取值: */ - language?: string; + language?: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 表单中组件数据模糊搜索。 */ - keyword?: string; + keyword?: string /** 应用标识列表。 */ - appTypes?: string; + appTypes?: string /** 流程code列表。 */ - processCodes?: string; + processCodes?: string /** 创建时间起始值。 */ - createFromTimeGMT?: number; + createFromTimeGMT?: number /** 创建时间终止值。 */ - createToTimeGMT?: number; + createToTimeGMT?: number /** 用户的userid。 */ - userId: string; + userId: string /** 验权token。 */ - token: string; + token: string } export interface GetCorpTasksResponse { - totalCount?: number; - pageNumber?: number; + totalCount?: number + pageNumber?: number data?: { - originatorNickName?: string; - processInstanceId?: string; - originatorName?: string; - finishTimeGMT?: string; - activeTimeGMT?: string; - actualActionerId?: string; - originatorEmail?: string; - title?: string; - outResultName?: string; - outResult?: string; - originatorPhoto?: string; - taskType?: string; - originatorNickNameEn?: string; - createTimeGMT?: string; - titleInEnglish?: string; - appType?: string; - originatorNameInEnglish?: string; - originatorId?: string; - taskId?: string; - status?: string; - }[]; + originatorNickName?: string + processInstanceId?: string + originatorName?: string + finishTimeGMT?: string + activeTimeGMT?: string + actualActionerId?: string + originatorEmail?: string + title?: string + outResultName?: string + outResult?: string + originatorPhoto?: string + taskType?: string + originatorNickNameEn?: string + createTimeGMT?: string + titleInEnglish?: string + appType?: string + originatorNameInEnglish?: string + originatorId?: string + taskId?: string + status?: string + }[] } export interface GetNotifyMeQuery { /** 组织的corpId。 */ - corpId: string; + corpId: string /** 验权token。 */ - token: string; + token: string /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 分页大小。 */ - pageSize?: number; + pageSize?: number /** 语言,取值: */ - language?: string; + language?: string /** 表单中组件数据模糊搜索。 */ - keyword?: string; + keyword?: string /** 应用标识列表。 */ - appTypes?: string; + appTypes?: string /** 流程code列表。 */ - processCodes?: string; + processCodes?: string /** 流程创建时间起始值。 */ - instanceCreateFromTimeGMT?: number; + instanceCreateFromTimeGMT?: number /** 流程创建时间终止值。 */ - instanceCreateToTimeGMT?: number; + instanceCreateToTimeGMT?: number /** 创建时间起始值。 */ - createFromTimeGMT?: number; + createFromTimeGMT?: number /** 创建时间终止值。 */ - createToTimeGMT?: number; + createToTimeGMT?: number } export interface GetNotifyMeResponse { - totalCount?: number; - pageNumber?: number; + totalCount?: number + pageNumber?: number data?: { - createTimeGMT?: string; - activityId?: string; - creatorUserId?: string; - corpId?: string; - titleInEnglish?: string; - modifiedTimeGMT?: string; - appType?: string; - processCode?: string; - mobileUrl?: string; - formInstanceId?: string; - instStatus?: string; - title?: string; - url?: string; - }[]; + createTimeGMT?: string + activityId?: string + creatorUserId?: string + corpId?: string + titleInEnglish?: string + modifiedTimeGMT?: string + appType?: string + processCode?: string + mobileUrl?: string + formInstanceId?: string + instStatus?: string + title?: string + url?: string + }[] } export interface GetActivityButtonListQuery { /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string } export interface GetActivityButtonListResponse { result?: { - aliasInEnglish?: string; - aliasInChinese?: string; - }[]; + aliasInEnglish?: string + aliasInChinese?: string + }[] } export interface GetApplicationAuthorizationServicePlatformResourceQuery { /** 实例ID。 */ - instanceId?: string; + instanceId?: string /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者的unionId。 */ - callerUid?: string; + callerUid?: string } export interface GetApplicationAuthorizationServicePlatformResourceResponse { - appTotalAmount?: number; - instanceId?: string; - instanceTotalAmount?: number; - instanceUsageAmount?: number; - accountUsageAmount?: number; - accountTotalAmount?: number; - pluginUsageAmount?: number; - attachmentTotalAmount?: number; - attachmentUsageAmount?: number; + appTotalAmount?: number + instanceId?: string + instanceTotalAmount?: number + instanceUsageAmount?: number + accountUsageAmount?: number + accountTotalAmount?: number + pluginUsageAmount?: number + attachmentTotalAmount?: number + attachmentUsageAmount?: number } export interface UpdateInstanceParams { /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string /** 应用ID。 */ - appType: string; + appType: string /** 更新的表单数据。 */ - updateFormDataJson: string; + updateFormDataJson: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 语言,取值: */ - language?: string; + language?: string /** 用户的userid。 */ - userId: string; + userId: string } export interface DeleteInstanceQuery { /** 应用标识。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string } export interface GetOperationRecordsQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string } export interface GetOperationRecordsResponse { result?: { - processInstanceId?: string; - showName?: string; - operatorNickName?: string; - activeTimeGMT?: string; - operateTimeGMT?: string; - operateType?: string; - operatorStatus?: string; - remark?: string; - taskHoldTimeGMT?: number; - type?: string; - operatorName?: string; - operatorUserId?: string; - activityId?: string; - taskType?: string; - taskExecuteType?: string; - size?: number; - operatorDisplayName?: string; - files?: string; - action?: string; - actionExit?: string; - dataId?: number; - taskId?: string; - digitalSign?: string; - operatorPhotoUrl?: string; - }[]; + processInstanceId?: string + showName?: string + operatorNickName?: string + activeTimeGMT?: string + operateTimeGMT?: string + operateType?: string + operatorStatus?: string + remark?: string + taskHoldTimeGMT?: number + type?: string + operatorName?: string + operatorUserId?: string + activityId?: string + taskType?: string + taskExecuteType?: string + size?: number + operatorDisplayName?: string + files?: string + action?: string + actionExit?: string + dataId?: number + taskId?: string + digitalSign?: string + operatorPhotoUrl?: string + }[] } export interface TerminateInstanceQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string } export interface ExecuteTaskParams { /** 审批结果。 */ - outResult: string; + outResult: string /** 是否不执行校验和关联操作,取值: */ - noExecuteExpressions?: string; + noExecuteExpressions?: string /** 应用ID。 */ - appType: string; + appType: string /** 更新的表单值。 */ - formDataJson?: string; + formDataJson?: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 语言,取值: */ - language?: string; + language?: string /** 审批意见。 */ - remark: string; + remark: string /** 实例ID。 */ - processInstanceId: string; + processInstanceId: string /** 用户的userid。 */ - userId: string; + userId: string /** 任务ID。 */ - taskId: number; + taskId: number /** 电子签名地址。 */ - digitalSignUrl?: string; + digitalSignUrl?: string } export interface ExecutePlatformTaskParams { /** 审批结果,取值: */ - outResult: string; + outResult: string /** 是否不执行校验和关联操作,取值: */ - noExecuteExpressions?: string; + noExecuteExpressions?: string /** 应用ID。 */ - appType: string; + appType: string /** 更新的表单数据。 */ - formDataJson?: string; + formDataJson?: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 语言,取值: */ - language?: string; + language?: string /** 审批意见。 */ - remark: string; + remark: string /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string /** 用户的userid。 */ - userId: string; + userId: string } export interface RedirectTaskParams { /** 流程实例ID。 */ - processInstanceId: string; + processInstanceId: string /** 是否应用管理员进行转交,取值: */ - byManager?: string; + byManager?: string /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 语言,取值: */ - language?: string; + language?: string /** 审批意见。 */ - remark: string; + remark: string /** 新的任务处理人工号。 */ - nowActionExecutorId: string; + nowActionExecutorId: string /** 处理人的userid。 */ - userId: string; + userId: string /** 任务ID。 */ - taskId: number; + taskId: number } export interface GetOpenUrlQuery { /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 宜搭附件地址。 */ - fileUrl: string; + fileUrl: string /** 临时地址失效时间,单位毫秒。 */ - timeout?: number; + timeout?: number } export interface GetOpenUrlResponse { - result?: string; + result?: string } export interface SaveFormRemarkParams { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 对评论进行回复。 */ - replyId?: number; + replyId?: number /** 语言,取值: */ - language?: string; + language?: string /** 实例ID。 */ - formInstanceId: string; + formInstanceId: string /** 评论人的的useid。 */ - userId: string; + userId: string /** 被@的用户userid,将评论内容通过钉钉发给指定用户。 */ - atUserId?: string; + atUserId?: string /** 评论内容。 */ - content: string; + content: string } export interface SaveFormRemarkResponse { - result?: number; + result?: number } export interface ListNavigationByFormTypeQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 评论人的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 页面类型,取值: */ - formType: string; + formType: string } export interface ListNavigationByFormTypeResponse { result?: { - title?: number; - processCode?: string; - formUuid?: string; - }[]; + title?: number + processCode?: string + formUuid?: string + }[] } export interface ValidateOrderBuyQuery { /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者unionId。 */ - callerUid?: string; + callerUid?: string } export interface ValidateOrderBuyResponse { - message?: string; - status?: number; + message?: string + status?: number } export interface GetRunningTasksQuery { /** 流程实例ID。 */ - processInstanceId?: string; + processInstanceId?: string /** 应用ID。 */ - appType?: string; + appType?: string /** 应用秘钥,在应用数据中获取。 */ - systemToken?: string; + systemToken?: string /** 语言,取值: */ - language?: string; + language?: string /** 用户的userid。 */ - userId?: string; + userId?: string } export interface GetRunningTasksResponse { result?: { - createTimeGMT?: string; - activityId?: string; - processInstanceId?: string; - taskType?: string; - titleInEnglish?: string; - activeTimeGMT?: string; - actualActionerId?: string; - originatorId?: string; - finishTimeGMT?: string; - title?: string; - taskId?: string; - status?: string; - }[]; + createTimeGMT?: string + activityId?: string + processInstanceId?: string + taskType?: string + titleInEnglish?: string + activeTimeGMT?: string + actualActionerId?: string + originatorId?: string + finishTimeGMT?: string + title?: string + taskId?: string + status?: string + }[] } export interface GetActivityListQuery { /** 流程编码。 */ - processCode?: string; + processCode?: string /** 应用ID。 */ - appType?: string; + appType?: string /** 应用的秘钥。 */ - systemToken?: string; + systemToken?: string /** 语言,取值: */ - language?: string; + language?: string /** 用户userid。 */ - userId?: string; + userId?: string } export interface GetActivityListResponse { result?: { - activityName?: string; - activityNameInEnglish?: string; - activityId?: string; - }[]; + activityName?: string + activityNameInEnglish?: string + activityId?: string + }[] } export interface ExecuteCustomApiQuery { /** 数据。 */ - data: string; + data: string /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 语言,取值: */ - language?: string; + language?: string /** 服务ID。 */ - serviceId: string; + serviceId: string /** 用户的userid。 */ - userId: string; + userId: string } export interface ExecuteCustomApiResponse { - result?: string; + result?: string } export interface SearchActivationCodeQuery { /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者unionId。 */ - callerUid: string; + callerUid: string } export interface SearchActivationCodeResponse { - instanceId?: string; - activationCode?: string; - authType?: string; - expireTimeGMT?: string; - status?: number; + instanceId?: string + activationCode?: string + authType?: string + expireTimeGMT?: string + status?: number } export interface GetSaleUserInfoByUserIdQuery { /** 组织ID。 */ - corpId: string; + corpId: string /** 名称空间。 */ - namespace: string; + namespace: string /** 用户的userid。 */ - userId: string; + userId: string } export interface GetSaleUserInfoByUserIdResponse { - userName?: string; - userId?: string; - accountId?: number; + userName?: string + userId?: string + accountId?: number corpList?: { - namespace?: string; - corpId?: string; - corpName?: string; - }[]; + namespace?: string + corpId?: string + corpName?: string + }[] } export interface GetCorpLevelByAccountIdQuery { /** 账户ID。 */ - accountId?: string; + accountId?: string } export interface GetCorpLevelByAccountIdResponse { - result?: string; + result?: string } export interface UpdateStatusParams { /** 导入序列。 */ - importSequence?: string; + importSequence?: string /** 错误行列表。 */ - errorLines?: integer[]; + errorLines?: number[] /** 应用ID。 */ - appType?: string; + appType?: string /** 应用秘钥。 */ - systemToken?: string; + systemToken?: string /** 语言,取值: */ - language?: string; + language?: string /** 用户的userid。 */ - userId?: string; + userId?: string /** 状态。 */ - status?: string; + status?: string } export interface ValidateOrderUpgradeQuery { /** 实例ID。 */ - instanceId?: string; + instanceId?: string /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者的unionId。 */ - callerUid?: string; + callerUid?: string } export interface ValidateOrderUpgradeResponse { - message?: string; - status?: number; + message?: string + status?: number } export interface ReleaseCommodityQuery { /** 实例ID。 */ - instanceId?: string; + instanceId?: string /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者的unionId。 */ - callerUid?: string; + callerUid?: string } export interface ReleaseCommodityResponse { - message?: string; - success?: unknown; + message?: string + success?: unknown } export interface ExpireCommodityQuery { /** 实例ID。 */ - instanceId?: string; + instanceId?: string /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者的unionId。 */ - callerUid?: string; + callerUid?: string } export interface ExpireCommodityResponse { - message?: string; - success?: unknown; + message?: string + success?: unknown } export interface RefundCommodityQuery { /** 实例ID。 */ - instanceId?: string; + instanceId?: string /** 访问秘钥。 */ - accessKey?: string; + accessKey?: string /** 调用者的unionId。 */ - callerUid?: string; + callerUid?: string } export interface RefundCommodityResponse { - message?: string; - success?: unknown; + message?: string + success?: unknown } export interface SearchEmployeeFieldValuesParams { /** 目标组件ID列表,JSON字符串。 */ - targetFieldJson?: string; + targetFieldJson?: string /** 表单ID。 */ - formUuid?: string; + formUuid?: string /** 应用ID。 */ - appType?: string; + appType?: string /** 修改时间终止值。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 应用秘钥。 */ - systemToken?: string; + systemToken?: string /** 修改时间起始值。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 语言,取值: */ - language?: string; + language?: string /** 根据表单内组件值查询。 */ - searchFieldJson?: string; + searchFieldJson?: string /** 根据流程发起人工号查询。 */ - originatorId?: string; + originatorId?: string /** 用户的userid。 */ - userId?: string; + userId?: string /** 创建时间终止值。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 创建时间起始值。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string } export interface SearchEmployeeFieldValuesResponse { - result?: string; + result?: string } export interface DeleteSequenceQuery { /** 用户的userid。 */ - userId?: string; + userId?: string /** 序列。 */ - sequence?: string; + sequence?: string /** 应用秘钥。 */ - systemToken?: string; + systemToken?: string /** 语言,取值: */ - language?: string; + language?: string /** 应用ID。 */ - appType?: string; + appType?: string } export interface SaveFormDataParams { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 表单ID。 */ - formUuid: string; + formUuid: string /** 表单数据,示例:```"{\"textField_jcpm6agt\": \"单行\",\"employeeField_jcos0sar\": [\"workno\"]}"``` */ - formDataJson: string; + formDataJson: string } export interface SaveFormDataResponse { - result?: string; + result?: string } export interface UpdateFormDataParams { /** 应用ID。 */ - appType?: string; + appType?: string /** 应用秘钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 流程实例ID。 */ - formInstanceId: string; + formInstanceId: string /** 使用最新的表单版本进行更新 */ - useLatestVersion?: unknown; + useLatestVersion?: unknown /** 更新的表单数据,示例:```"{\"textField_jcpm6agt\": \"单行\",\"employeeField_jcos0sar\": [\"workno\"]}"``` */ - updateFormDataJson: string; + updateFormDataJson: string } export interface SearchFormDatasParams { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥。在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户userid。 */ - userId: string; + userId: string /** 语言。取值: */ - language?: string; + language?: string /** 表单ID。 */ - formUuid: string; + formUuid: string /** 根据表单内组件值查询,示例值如下: */ - searchFieldJson?: string; + searchFieldJson?: string /** 分页参数,当前页。 */ - currentPage?: number; + currentPage?: number /** 分页参数,每页显示条数。 */ - pageSize?: number; + pageSize?: number /** 根据数据提交人工号查询。 */ - originatorId?: string; + originatorId?: string /** 查询创建数据列表的开始时间,格式:`yyyy-MM-dd`。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string /** 查询创建数据列表的结束时间,格式:`yyyy-MM-dd`。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 查询修改数据列表的开始时间,格式:`yyyy-MM-dd`。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 查询修改数据列表的结束时间,格式:`yyyy-MM-dd`。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 指定排序字段。 */ - dynamicOrder?: string; + dynamicOrder?: string } export interface SearchFormDatasResponse { - currentPage?: number; - totalCount?: number; + currentPage?: number + totalCount?: number data?: { - dataId?: number; - formInstanceId?: string; - createdTimeGMT?: string; - modifiedTimeGMT?: string; - formUuid?: string; - modelUuid?: string; - originator?: number; - modifyUser?: number; - formData?: number; - title?: string; - serialNo?: string; - instanceValue?: string; - version?: number; - creatorUserId?: string; - modifierUserId?: string; - sequence?: string; - }[]; + dataId?: number + formInstanceId?: string + createdTimeGMT?: string + modifiedTimeGMT?: string + formUuid?: string + modelUuid?: string + originator?: number + modifyUser?: number + formData?: number + title?: string + serialNo?: string + instanceValue?: string + version?: number + creatorUserId?: string + modifierUserId?: string + sequence?: string + }[] } export interface GetInstancesParams { /** 应用ID。 */ - appType: string; + appType: string /** 应用密钥。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 表单ID。 */ - formUuid: string; - /** 查询过滤条件,支持2种模式的过滤规则。模式1:根据组件值模糊匹配,示例:{"textField_jcr0069m":"danhang","selectField_jcr0069q":"K"} 模式2: 采用数据管理的查询过滤条件,匹配功能更强大,示例:[{"key":"currentNodeName","value":"步凡","type":"TEXT","operator":"like","componentName":"TextField”}],详情参考 */ - searchFieldJson?: string; + formUuid: string + /** + * 查询过滤条件,支持2种模式的过滤规则。 + * - 模式1:根据组件值模糊匹配,示例:{"textField_jcr0069m":"danhang","selectField_jcr0069q":"K"} + * - 模式2: 采用数据管理的查询过滤条件,匹配功能更强大,示例:[{"key":"currentNodeName","value":"步凡","type":"TEXT","operator":"like","componentName":"TextField”}],详情参考 + */ + searchFieldJson?: string /** 根据流程发起人工号查询。 */ - originatorId?: string; + originatorId?: string /** 创建时间起始值。 */ - createFromTimeGMT?: string; + createFromTimeGMT?: string /** 创建时间终止值。 */ - createToTimeGMT?: string; + createToTimeGMT?: string /** 修改时间起始值。 */ - modifiedFromTimeGMT?: string; + modifiedFromTimeGMT?: string /** 修改时间终止值。 */ - modifiedToTimeGMT?: string; + modifiedToTimeGMT?: string /** 任务ID。 */ - taskId?: string; + taskId?: string /** 实例状态。 */ - instanceStatus?: string; + instanceStatus?: string /** 流程审批结果。 */ - approvedResult?: string; + approvedResult?: string /** 排序规则,参数值参考[宜搭使用手册](https://www.yuque.com/yida/support/agb8im#CQro8)。 */ - orderConfigJson?: string; + orderConfigJson?: string } export interface GetInstancesQuery { /** 分页页码。 */ - pageNumber?: number; + pageNumber?: number /** 分页大小。 */ - pageSize?: number; + pageSize?: number } export interface GetInstancesResponse { - totalCount?: number; - pageNumber?: number; + totalCount?: number + pageNumber?: number data?: { - createTimeGMT?: string; - processInstanceId?: string; - actionExecutor?: number; - approvedResult?: string; - formUuid?: string; - data?: number; - processCode?: string; - modifiedTimeGMT?: string; - originator?: number; - title?: string; - instanceStatus?: string; - version?: number; - }[]; + createTimeGMT?: string + processInstanceId?: string + actionExecutor?: number + approvedResult?: string + formUuid?: string + data?: number + processCode?: string + modifiedTimeGMT?: string + originator?: number + title?: string + instanceStatus?: string + version?: number + }[] } export interface DeleteFormDataQuery { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 表单实例ID。 */ - formInstanceId: string; + formInstanceId: string } export interface GetInstanceByIdQuery { /** 应用ID。 */ - appType: string; + appType: string /** 应用秘钥,在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string } export interface GetInstanceByIdResponse { - createTimeGMT?: string; - processInstanceId?: string; + createTimeGMT?: string + processInstanceId?: string actionExecutor?: { - name?: number; - deptName?: string; - userId?: string; - email?: string; - }[]; - approvedResult?: string; - formUuid?: string; - data?: unknown; - modifiedTimeGMT?: string; - processCode?: string; + name?: number + deptName?: string + userId?: string + email?: string + }[] + approvedResult?: string + formUuid?: string + data?: unknown + modifiedTimeGMT?: string + processCode?: string originator?: { - name?: number; - deptName?: string; - userId?: string; - email?: string; - }; - title?: string; - instanceStatus?: string; - version?: number; + name?: number + deptName?: string + userId?: string + email?: string + } + title?: string + instanceStatus?: string + version?: number } export interface StartInstanceParams { /** 应用编码。 */ - appType: string; + appType: string /** 应用秘钥。在应用数据中获取。 */ - systemToken: string; + systemToken: string /** 用户的userid。 */ - userId: string; + userId: string /** 语言,取值: */ - language?: string; + language?: string /** 表单唯一编码。 */ - formUuid: string; + formUuid: string /** 表单数据,示例: */ - formDataJson: string; + formDataJson: string /** 流程编码。 */ - processCode?: string; + processCode?: string /** 发起人所在部门ID。 */ - departmentId?: string; + departmentId?: string } export interface StartInstanceResponse { - result?: string; + result?: string } export interface GetFormDataByIDQuery { /** 应用编码。 */ - appType?: string; + appType?: string /** 应用秘钥。 */ - systemToken?: string; + systemToken?: string /** 用户的userid。 */ - userId?: string; + userId?: string /** 语言,取值: */ - language?: string; + language?: string } export interface GetFormDataByIDResponse { originator?: { - userId?: string; - name?: number; - departmentName?: string; - email?: string; - }; - modifiedTimeGMT?: string; - formInstId?: string; - formData?: unknown; + userId?: string + name?: number + departmentName?: string + email?: string + } + modifiedTimeGMT?: string + formInstId?: string + formData?: unknown } // funcName: isOldApi Internal.define({ - "/yida/forms": { GET: { getFormListInApp: false } }, - "/yida/forms/formFields": { GET: { getFieldDefByUuid: false } }, - "/yida/tasks/batches/execute": { POST: { executeBatchTask: false } }, - "/yida/forms/operationsLogs/query": { POST: { listOperationLogs: false } }, - "/yida/forms/remarks/query": { POST: { listFormRemarks: false } }, - "/yida/services/invocationRecords": { GET: { queryServiceRecord: false } }, - "/yida/forms/instances/batchRemove": { + '/yida/forms': { GET: { getFormListInApp: false } }, + '/yida/forms/formFields': { GET: { getFieldDefByUuid: false } }, + '/yida/tasks/batches/execute': { POST: { executeBatchTask: false } }, + '/yida/forms/operationsLogs/query': { POST: { listOperationLogs: false } }, + '/yida/forms/remarks/query': { POST: { listFormRemarks: false } }, + '/yida/services/invocationRecords': { GET: { queryServiceRecord: false } }, + '/yida/forms/instances/batchRemove': { POST: { batchRemovalByFormInstanceIdList: false }, }, - "/yida/forms/instances/components": { + '/yida/forms/instances/components': { PUT: { batchUpdateFormDataByInstanceId: false }, }, - "/yida/forms/instances/datas": { + '/yida/forms/instances/datas': { PUT: { batchUpdateFormDataByInstanceMap: false }, }, - "/yida/organizations/applications": { GET: { listApplication: false } }, - "/yida/forms/instances/batchSave": { POST: { batchSaveFormData: false } }, - "/yida/forms/instances/advances/query": { + '/yida/organizations/applications': { GET: { listApplication: false } }, + '/yida/forms/instances/batchSave': { POST: { batchSaveFormData: false } }, + '/yida/forms/instances/advances/query': { POST: { searchFormDataSecondGenerationNoTableField: false }, }, - "/yida/forms/instances/insertOrUpdate": { + '/yida/forms/instances/insertOrUpdate': { POST: { createOrUpdateFormData: false }, }, - "/yida/forms/instances/advances/queryAll": { + '/yida/forms/instances/advances/queryAll': { POST: { searchFormDataSecondGeneration: false }, }, - "/yida/forms/instances/ids/query": { + '/yida/forms/instances/ids/query': { POST: { batchGetFormDataByIdList: false }, }, - "/yida/tasks/taskCopies": { GET: { getTaskCopies: false } }, - "/yida/forms/instances/ids/{appType}/{formUuid}": { + '/yida/tasks/taskCopies': { GET: { getTaskCopies: false } }, + '/yida/forms/instances/ids/{appType}/{formUuid}': { POST: { searchFormDataIdList: false }, }, - "/yida/forms/innerTables/{formInstanceId}": { + '/yida/forms/innerTables/{formInstanceId}': { GET: { listTableDataByFormInstanceIdTableId: false }, }, - "/yida/tasks/completedTasks/{corpId}/{userId}": { + '/yida/tasks/completedTasks/{corpId}/{userId}': { GET: { getCorpAccomplishmentTasks: false }, }, - "/yida/forms/definitions/{appType}/{formUuid}": { + '/yida/forms/definitions/{appType}/{formUuid}': { GET: { getFormComponentDefinitionList: false }, }, - "/yida/processes/instanceIds": { POST: { getInstanceIdList: false } }, - "/yida/processes/instances/searchWithIds": { + '/yida/processes/instanceIds': { POST: { getInstanceIdList: false } }, + '/yida/processes/instances/searchWithIds': { GET: { getInstancesByIdList: false }, }, - "/yida/tasks/myCorpSubmission/{userId}": { + '/yida/tasks/myCorpSubmission/{userId}': { GET: { getMeCorpSubmission: false }, }, - "/yida/processes/definitions/{processInstanceId}": { + '/yida/processes/definitions/{processInstanceId}': { GET: { getProcessDefinition: false }, }, - "/yida/corpTasks": { GET: { getCorpTasks: false } }, - "/yida/corpNotifications/{userId}": { GET: { getNotifyMe: false } }, - "/yida/processDefinitions/buttons/{appType}/{processCode}/{activityId}": { + '/yida/corpTasks': { GET: { getCorpTasks: false } }, + '/yida/corpNotifications/{userId}': { GET: { getNotifyMe: false } }, + '/yida/processDefinitions/buttons/{appType}/{processCode}/{activityId}': { GET: { getActivityButtonList: false }, }, - "/yida/authorization/platformResources": { + '/yida/authorization/platformResources': { GET: { getApplicationAuthorizationServicePlatformResource: false }, }, - "/yida/processes/instances": { + '/yida/processes/instances': { PUT: { updateInstance: false }, DELETE: { deleteInstance: false }, POST: { getInstances: false }, }, - "/yida/processes/operationRecords": { GET: { getOperationRecords: false } }, - "/yida/processes/instances/terminate": { PUT: { terminateInstance: false } }, - "/yida/tasks/execute": { POST: { executeTask: false } }, - "/yida/tasks/platformTasks/execute": { POST: { executePlatformTask: false } }, - "/yida/tasks/redirect": { POST: { redirectTask: false } }, - "/yida/apps/temporaryUrls/{appType}": { GET: { getOpenUrl: false } }, - "/yida/forms/remarks": { POST: { saveFormRemark: false } }, - "/yida/apps/navigations": { GET: { listNavigationByFormType: false } }, - "/yida/apps/orderBuy/validate": { GET: { validateOrderBuy: false } }, - "/yida/processes/tasks/getRunningTasks": { GET: { getRunningTasks: false } }, - "/yida/processes/activities": { GET: { getActivityList: false } }, - "/yida/apps/customApi/execute": { POST: { executeCustomApi: false } }, - "/yida/apps/activationCode/information": { + '/yida/processes/operationRecords': { GET: { getOperationRecords: false } }, + '/yida/processes/instances/terminate': { PUT: { terminateInstance: false } }, + '/yida/tasks/execute': { POST: { executeTask: false } }, + '/yida/tasks/platformTasks/execute': { POST: { executePlatformTask: false } }, + '/yida/tasks/redirect': { POST: { redirectTask: false } }, + '/yida/apps/temporaryUrls/{appType}': { GET: { getOpenUrl: false } }, + '/yida/forms/remarks': { POST: { saveFormRemark: false } }, + '/yida/apps/navigations': { GET: { listNavigationByFormType: false } }, + '/yida/apps/orderBuy/validate': { GET: { validateOrderBuy: false } }, + '/yida/processes/tasks/getRunningTasks': { GET: { getRunningTasks: false } }, + '/yida/processes/activities': { GET: { getActivityList: false } }, + '/yida/apps/customApi/execute': { POST: { executeCustomApi: false } }, + '/yida/apps/activationCode/information': { GET: { searchActivationCode: false }, }, - "/yida/apps/saleUserInfo": { GET: { getSaleUserInfoByUserId: false } }, - "/yida/apps/corpLevel": { GET: { getCorpLevelByAccountId: false } }, - "/yida/forms/status": { PUT: { updateStatus: false } }, - "/yida/apps/orderUpgrade/validate": { GET: { validateOrderUpgrade: false } }, - "/yida/appAuth/commodities/release": { DELETE: { releaseCommodity: false } }, - "/yida/appAuth/commodities/expire": { PUT: { expireCommodity: false } }, - "/yida/appAuth/commodities/refund": { POST: { refundCommodity: false } }, - "/yida/forms/employeeFields": { POST: { searchEmployeeFieldValues: false } }, - "/yida/forms/deleteSequence": { DELETE: { deleteSequence: false } }, - "/yida/forms/instances": { + '/yida/apps/saleUserInfo': { GET: { getSaleUserInfoByUserId: false } }, + '/yida/apps/corpLevel': { GET: { getCorpLevelByAccountId: false } }, + '/yida/forms/status': { PUT: { updateStatus: false } }, + '/yida/apps/orderUpgrade/validate': { GET: { validateOrderUpgrade: false } }, + '/yida/appAuth/commodities/release': { DELETE: { releaseCommodity: false } }, + '/yida/appAuth/commodities/expire': { PUT: { expireCommodity: false } }, + '/yida/appAuth/commodities/refund': { POST: { refundCommodity: false } }, + '/yida/forms/employeeFields': { POST: { searchEmployeeFieldValues: false } }, + '/yida/forms/deleteSequence': { DELETE: { deleteSequence: false } }, + '/yida/forms/instances': { POST: { saveFormData: false }, PUT: { updateFormData: false }, DELETE: { deleteFormData: false }, }, - "/yida/forms/instances/search": { POST: { searchFormDatas: false } }, - "/yida/processes/instancesInfos/{id}": { GET: { getInstanceById: false } }, - "/yida/processes/instances/start": { POST: { startInstance: false } }, - "/yida/forms/instances/{id}": { GET: { getFormDataByID: false } }, -}); -declare module "../internal" { + '/yida/forms/instances/search': { POST: { searchFormDatas: false } }, + '/yida/processes/instancesInfos/{id}': { GET: { getInstanceById: false } }, + '/yida/processes/instances/start': { POST: { startInstance: false } }, + '/yida/forms/instances/{id}': { GET: { getFormDataByID: false } }, +}) +declare module '../internal' { interface Internal { /** * 获取应用内表单列表信息 @@ -1751,110 +1755,110 @@ declare module "../internal" { */ getFormListInApp( query: GetFormListInAppQuery, - ): Promise; + ): Promise /** * 根据表单ID获取字段信息 * @see https://developers.dingtalk.com/document/isvapp/get-form-field-information-based-on-form-uuid */ getFieldDefByUuid( query: GetFieldDefByUuidQuery, - ): Promise; + ): Promise /** * 批量审批 * @see https://developers.dingtalk.com/document/app/bulk-approval */ executeBatchTask( params: ExecuteBatchTaskParams, - ): Promise; + ): Promise /** * 查询表单的变更记录 * @see https://developers.dingtalk.com/document/app/query-the-operation-records-of-a-form */ listOperationLogs( params: ListOperationLogsParams, - ): Promise; + ): Promise /** * 查询表单实例评论列表 * @see https://developers.dingtalk.com/document/isvapp/batch-query-of-comments-appropriate-for-form-instances */ listFormRemarks( params: ListFormRemarksParams, - ): Promise; + ): Promise /** * 查询服务调用记录 * @see https://developers.dingtalk.com/document/isvapp/execution-records-of-form-service-calls */ queryServiceRecord( query: QueryServiceRecordQuery, - ): Promise; + ): Promise /** * 批量删除指定的表单实例 * @see https://developers.dingtalk.com/document/isvapp/delete-multiple-form-instances */ batchRemovalByFormInstanceIdList( params: BatchRemovalByFormInstanceIdListParams, - ): Promise; + ): Promise /** * 将多条表单实例的指定表单组件更新成指定值 * @see https://developers.dingtalk.com/document/isvapp/batch-update-of-component-values-in-form-instances */ batchUpdateFormDataByInstanceId( params: BatchUpdateFormDataByInstanceIdParams, - ): Promise; + ): Promise /** * 通过表单实例数据批量更新表单实例 * @see https://developers.dingtalk.com/document/isvapp/batch-update-of-form-instances-through-form-component-data */ batchUpdateFormDataByInstanceMap( params: BatchUpdateFormDataByInstanceMapParams, - ): Promise; + ): Promise /** * 获取组织下的宜搭应用列表 * @see https://developers.dingtalk.com/document/isvapp/query-the-application-list */ listApplication( query: ListApplicationQuery, - ): Promise; + ): Promise /** * 批量保存表单实例数据 * @see https://developers.dingtalk.com/document/isvapp/create-multiple-form-instances */ batchSaveFormData( params: BatchSaveFormDataParams, - ): Promise; + ): Promise /** * 通过高级查询条件查询表单实例数据(不返回子表单组件数据) * @see https://developers.dingtalk.com/document/isvapp/obtain-form-instance-data-using-advanced-query-conditions-excluding-subform */ searchFormDataSecondGenerationNoTableField( params: SearchFormDataSecondGenerationNoTableFieldParams, - ): Promise; + ): Promise /** * 新增或更新表单实例 * @see https://developers.dingtalk.com/document/isvapp/add-or-update-form-instances */ createOrUpdateFormData( params: CreateOrUpdateFormDataParams, - ): Promise; + ): Promise /** * 通过高级检索条件查询表单实例 * @see https://developers.dingtalk.com/document/isvapp/query-form-instances-using-advanced-search-conditions */ searchFormDataSecondGeneration( params: SearchFormDataSecondGenerationParams, - ): Promise; + ): Promise /** * 批量获取指定表单实例ID列表对应的表单实例数据 * @see https://developers.dingtalk.com/document/isvapp/obtain-multiple-form-instance-data */ batchGetFormDataByIdList( params: BatchGetFormDataByIdListParams, - ): Promise; + ): Promise /** * 查询抄送我的任务列表(应用维度) * @see https://developers.dingtalk.com/document/app/query-copied-my-task-list-application-dimension */ - getTaskCopies(query: GetTaskCopiesQuery): Promise; + getTaskCopies(query: GetTaskCopiesQuery): Promise /** * 根据条件搜索表单实例 ID 列表 * @see https://developers.dingtalk.com/document/app/obtain-the-ids-of-multiple-form-instances @@ -1864,7 +1868,7 @@ declare module "../internal" { formUuid: string, query: SearchFormDataIdListQuery, params: SearchFormDataIdListParams, - ): Promise; + ): Promise /** * 获取子表单数据 * @see https://developers.dingtalk.com/document/app/obtain-child-table-component-data @@ -1872,7 +1876,7 @@ declare module "../internal" { listTableDataByFormInstanceIdTableId( formInstanceId: string, query: ListTableDataByFormInstanceIdTableIdQuery, - ): Promise; + ): Promise /** * 查询已完成任务列表 * @see https://developers.dingtalk.com/document/app/obtains-the-completed-approval-tasks-in-an-organization @@ -1881,7 +1885,7 @@ declare module "../internal" { corpId: string, userId: string, query: GetCorpAccomplishmentTasksQuery, - ): Promise; + ): Promise /** * 获取表单定义 * @see https://developers.dingtalk.com/document/app/get-a-list-of-form-component-definitions @@ -1890,7 +1894,7 @@ declare module "../internal" { appType: string, formUuid: string, query: GetFormComponentDefinitionListQuery, - ): Promise; + ): Promise /** * 根据条件搜索流程实例 ID * @see https://developers.dingtalk.com/document/app/obtains-a-list-of-instance-ids @@ -1898,14 +1902,14 @@ declare module "../internal" { getInstanceIdList( query: GetInstanceIdListQuery, params: GetInstanceIdListParams, - ): Promise; + ): Promise /** * 根据实例 ID 列表批量获取流程实例详情 * @see https://developers.dingtalk.com/document/app/queries-multiple-process-instances */ getInstancesByIdList( query: GetInstancesByIdListQuery, - ): Promise; + ): Promise /** * 获取组织内某人提交的任务 * @see https://developers.dingtalk.com/document/app/obtains-the-tasks-submitted-by-someone-in-an-organization @@ -1913,7 +1917,7 @@ declare module "../internal" { getMeCorpSubmission( userId: string, query: GetMeCorpSubmissionQuery, - ): Promise; + ): Promise /** * 获取流程定义 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-process-definition @@ -1921,12 +1925,12 @@ declare module "../internal" { getProcessDefinition( processInstanceId: string, query: GetProcessDefinitionQuery, - ): Promise; + ): Promise /** * 查询待办任务列表 * @see https://developers.dingtalk.com/document/app/query-tasks-from-the-organization-dimension */ - getCorpTasks(query: GetCorpTasksQuery): Promise; + getCorpTasks(query: GetCorpTasksQuery): Promise /** * 查询抄送我的任务列表(企业维度) * @see https://developers.dingtalk.com/document/app/get-notifications-sent-to-users @@ -1934,7 +1938,7 @@ declare module "../internal" { getNotifyMe( userId: string, query: GetNotifyMeQuery, - ): Promise; + ): Promise /** * 获取流程节点按钮列表 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-a-list-of-process-node-buttons-1 @@ -1944,51 +1948,51 @@ declare module "../internal" { processCode: string, activityId: string, query: GetActivityButtonListQuery, - ): Promise; + ): Promise /** * 获取平台服务资源 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-platform-service-resources */ getApplicationAuthorizationServicePlatformResource( query: GetApplicationAuthorizationServicePlatformResourceQuery, - ): Promise; + ): Promise /** * 更新流程实例 * @see https://developers.dingtalk.com/document/isvapp-server/update-process-instance-1 */ - updateInstance(params: UpdateInstanceParams): Promise; + updateInstance(params: UpdateInstanceParams): Promise /** * 删除流程实例 * @see https://developers.dingtalk.com/document/app/delete-process-instance */ - deleteInstance(query: DeleteInstanceQuery): Promise; + deleteInstance(query: DeleteInstanceQuery): Promise /** * 获取审批记录 * @see https://developers.dingtalk.com/document/app/queries-an-approval-record */ getOperationRecords( query: GetOperationRecordsQuery, - ): Promise; + ): Promise /** * 终止流程实例 * @see https://developers.dingtalk.com/document/app/terminate-a-process-instance */ - terminateInstance(query: TerminateInstanceQuery): Promise; + terminateInstance(query: TerminateInstanceQuery): Promise /** * 执行审批任务 * @see https://developers.dingtalk.com/document/app/execute-approval-tasks */ - executeTask(params: ExecuteTaskParams): Promise; + executeTask(params: ExecuteTaskParams): Promise /** * 执行宜搭平台的审批任务 * @see https://developers.dingtalk.com/document/isvapp-server/execute-appropriate-approval-tasks */ - executePlatformTask(params: ExecutePlatformTaskParams): Promise; + executePlatformTask(params: ExecutePlatformTaskParams): Promise /** * 执行转交任务 * @see https://developers.dingtalk.com/document/app/transfer-tasks */ - redirectTask(params: RedirectTaskParams): Promise; + redirectTask(params: RedirectTaskParams): Promise /** * 附件地址转临时免登地址 * @see https://developers.dingtalk.com/document/isvapp/obtain-the-temporary-free-access-address-of-yixian-accessories @@ -1996,132 +2000,132 @@ declare module "../internal" { getOpenUrl( appType: string, query: GetOpenUrlQuery, - ): Promise; + ): Promise /** * 提交表单/流程实例下的评论 * @see https://developers.dingtalk.com/document/app/submit-comment */ saveFormRemark( params: SaveFormRemarkParams, - ): Promise; + ): Promise /** * 获取应用下的页面列表 * @see https://developers.dingtalk.com/document/isvapp-server/obtains-the-page-list-under-an-application */ listNavigationByFormType( query: ListNavigationByFormTypeQuery, - ): Promise; + ): Promise /** * 多渠道新购校验 * @see https://developers.dingtalk.com/document/isvapp-server/multi-channel-new-purchase-verification */ validateOrderBuy( query: ValidateOrderBuyQuery, - ): Promise; + ): Promise /** * 查询流程运行任务(vpc) * @see https://developers.dingtalk.com/document/app/query-process-running-tasks-vpc */ getRunningTasks( query: GetRunningTasksQuery, - ): Promise; + ): Promise /** * 获取流程设计的节点信息 * @see https://developers.dingtalk.com/document/isvapp-server/obtain-the-information-about-the-nodes-in-process-design-1 */ getActivityList( query: GetActivityListQuery, - ): Promise; + ): Promise /** * 执行自定义API * @see https://developers.dingtalk.com/document/isvapp-server/run-custom-api */ executeCustomApi( query: ExecuteCustomApiQuery, - ): Promise; + ): Promise /** * 查询激活码 * @see https://developers.dingtalk.com/document/isvapp-server/query-activation-code */ searchActivationCode( query: SearchActivationCodeQuery, - ): Promise; + ): Promise /** * 查询销售用户信息 * @see https://developers.dingtalk.com/document/isvapp-server/query-sales-user-information */ getSaleUserInfoByUserId( query: GetSaleUserInfoByUserIdQuery, - ): Promise; + ): Promise /** * 查询企业级别 * @see https://developers.dingtalk.com/document/isvapp-server/query-enterprise-level */ getCorpLevelByAccountId( query: GetCorpLevelByAccountIdQuery, - ): Promise; + ): Promise /** * 更新状态 * @see https://developers.dingtalk.com/document/isvapp-server/update-status */ - updateStatus(params: UpdateStatusParams): Promise; + updateStatus(params: UpdateStatusParams): Promise /** * 校验订单的升级 * @see https://developers.dingtalk.com/document/isvapp-server/verification-order-upgrade */ validateOrderUpgrade( query: ValidateOrderUpgradeQuery, - ): Promise; + ): Promise /** * 发布商品 * @see https://developers.dingtalk.com/document/isvapp-server/release-products */ releaseCommodity( query: ReleaseCommodityQuery, - ): Promise; + ): Promise /** * 使商品过期 * @see https://developers.dingtalk.com/document/isvapp-server/make-goods-expire */ expireCommodity( query: ExpireCommodityQuery, - ): Promise; + ): Promise /** * 退还商品 * @see https://developers.dingtalk.com/document/isvapp-server/refund-of-goods */ refundCommodity( query: RefundCommodityQuery, - ): Promise; + ): Promise /** * 搜索表单中指定人员组件的值 * @see https://developers.dingtalk.com/document/app/gets-the-value-of-the-employee-component */ searchEmployeeFieldValues( params: SearchEmployeeFieldValuesParams, - ): Promise; + ): Promise /** * 删除序列 * @see https://developers.dingtalk.com/document/isvapp-server/delete-sequence */ - deleteSequence(query: DeleteSequenceQuery): Promise; + deleteSequence(query: DeleteSequenceQuery): Promise /** * 新增表单实例 * @see https://developers.dingtalk.com/document/app/save-form-data */ - saveFormData(params: SaveFormDataParams): Promise; + saveFormData(params: SaveFormDataParams): Promise /** * 更新表单实例 * @see https://developers.dingtalk.com/document/orgapp/update-form-data */ - updateFormData(params: UpdateFormDataParams): Promise; + updateFormData(params: UpdateFormDataParams): Promise /** * 根据条件搜索表单实例详情列表,对应原searchFormDatas * @see https://developers.dingtalk.com/document/app/querying-form-instance-data */ searchFormDatas( params: SearchFormDatasParams, - ): Promise; + ): Promise /** * 根据搜索条件获取流程表单实例详情 * @see https://developers.dingtalk.com/document/app/obtain-process-instance @@ -2129,12 +2133,12 @@ declare module "../internal" { getInstances( query: GetInstancesQuery, params: GetInstancesParams, - ): Promise; + ): Promise /** * 删除表单实例 * @see https://developers.dingtalk.com/document/app/delete-form-data */ - deleteFormData(query: DeleteFormDataQuery): Promise; + deleteFormData(query: DeleteFormDataQuery): Promise /** * 根据实例 ID 获取流程实例详情 * @see https://developers.dingtalk.com/document/app/queries-a-process-instance-based-on-its-id @@ -2142,12 +2146,12 @@ declare module "../internal" { getInstanceById( id: string, query: GetInstanceByIdQuery, - ): Promise; + ): Promise /** * 发起新的流程实例 * @see https://developers.dingtalk.com/document/app/initiate-the-approval-process */ - startInstance(params: StartInstanceParams): Promise; + startInstance(params: StartInstanceParams): Promise /** * 根据表单 ID 查询实例详情 * @see https://developers.dingtalk.com/document/app/query-form-data @@ -2155,6 +2159,6 @@ declare module "../internal" { getFormDataByID( id: string, query: GetFormDataByIDQuery, - ): Promise; + ): Promise } } diff --git a/adapters/dingtalk/src/bot.ts b/adapters/dingtalk/src/bot.ts index cce50de8..15c1d9d9 100644 --- a/adapters/dingtalk/src/bot.ts +++ b/adapters/dingtalk/src/bot.ts @@ -1,4 +1,4 @@ -import { Bot, Context, Logger, Quester, Schema, Universal } from '@satorijs/satori' +import { Bot, Context, Logger, Quester, Schema } from '@satorijs/satori' import { HttpServer } from './http' import { DingtalkMessageEncoder } from './message' import { WsClient } from './ws' @@ -65,21 +65,19 @@ export class DingtalkBot extends Bot { } async deleteMessage(channelId: string, messageId: string): Promise { - if (channelId.startsWith("cid")) { + if (channelId.startsWith('cid')) { await this.internal.orgGroupRecall({ robotCode: this.selfId, processQueryKeys: [messageId], - openConversationId: channelId + openConversationId: channelId, }) } else { await this.internal.batchRecallOTO({ robotCode: this.selfId, - processQueryKeys: [messageId] + processQueryKeys: [messageId], }) } - } - } export namespace DingtalkBot { @@ -88,7 +86,7 @@ export namespace DingtalkBot { protocol: string appkey: string agentId: number - api: Quester.Config, + api: Quester.Config oldApi: Quester.Config } @@ -103,7 +101,7 @@ export namespace DingtalkBot { agentId: Schema.number().required().description('AgentId'), appkey: Schema.string().required(), api: Quester.createConfig('https://api.dingtalk.com/v1.0/'), - oldApi: Quester.createConfig('https://oapi.dingtalk.com/') + oldApi: Quester.createConfig('https://oapi.dingtalk.com/'), }), WsClient.Config, ]) diff --git a/adapters/dingtalk/src/internal.ts b/adapters/dingtalk/src/internal.ts index a6ea2769..00d73bd2 100644 --- a/adapters/dingtalk/src/internal.ts +++ b/adapters/dingtalk/src/internal.ts @@ -1,4 +1,4 @@ -import { Dict, makeArray, Quester } from '@satorijs/satori' +import { Dict, Quester } from '@satorijs/satori' import { DingtalkBot } from './bot' export class Internal { diff --git a/adapters/dingtalk/src/utils.ts b/adapters/dingtalk/src/utils.ts index aba2f2f9..ffc2d09d 100644 --- a/adapters/dingtalk/src/utils.ts +++ b/adapters/dingtalk/src/utils.ts @@ -44,6 +44,6 @@ export async function decodeMessage(bot: DingtalkBot, body: Message): Promise