Skip to content

Commit

Permalink
fix(dingtalk): fix styles and typing errors for dingtalk
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Jul 31, 2023
1 parent d61474f commit 304039b
Show file tree
Hide file tree
Showing 45 changed files with 7,880 additions and 7,902 deletions.
458 changes: 229 additions & 229 deletions adapters/dingtalk/src/api/alitrip.ts

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions adapters/dingtalk/src/api/attendance.ts
Original file line number Diff line number Diff line change
@@ -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<GetAdjustmentsResponse>;
getAdjustments(query: GetAdjustmentsQuery): Promise<GetAdjustmentsResponse>
/**
* 加班规则列表
* @see https://developers.dingtalk.com/document/isvapp/retrieve-a-list-of-overtime-rules-by-page
*/
getSimpleOvertimeSetting(
query: GetSimpleOvertimeSettingQuery,
): Promise<GetSimpleOvertimeSettingResponse>;
): Promise<GetSimpleOvertimeSettingResponse>
/**
* 批量获取加班规则设置
* @see https://developers.dingtalk.com/document/isvapp/batch-retrieve-overtime-rules
*/
getOvertimeSetting(
params: GetOvertimeSettingParams,
): Promise<GetOvertimeSettingResponse>;
): Promise<GetOvertimeSettingResponse>
}
}
Loading

0 comments on commit 304039b

Please sign in to comment.