-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dingtalk): fix styles and typing errors for dingtalk
- Loading branch information
Showing
45 changed files
with
7,880 additions
and
7,902 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
} | ||
} |
Oops, something went wrong.