feat: expose user-readable expense types
This commit is contained in:
+7
-1
@@ -81,9 +81,13 @@ export interface XftSubmissionField {
|
||||
moduleType?: string;
|
||||
valueFormat?: string;
|
||||
itemFields?: Array<Record<string, unknown>>;
|
||||
optionSource?: {
|
||||
tool: "approval_get_submission_options";
|
||||
kind: XftSubmissionOptionKind;
|
||||
};
|
||||
}
|
||||
|
||||
export type XftSubmissionOptionKind = "department" | "city";
|
||||
export type XftSubmissionOptionKind = "department" | "city" | "expense_type";
|
||||
|
||||
export interface XftSubmissionOption {
|
||||
code: string;
|
||||
@@ -159,6 +163,8 @@ export interface XftApprovalProvider {
|
||||
): Promise<{
|
||||
kind: XftSubmissionOptionKind;
|
||||
items: XftSubmissionOption[];
|
||||
total?: number;
|
||||
hasMore?: boolean;
|
||||
diagnostics: Record<string, unknown>;
|
||||
}>;
|
||||
validateSubmissionIdentity(user: AuthenticatedDingTalkUser): Promise<{
|
||||
|
||||
Reference in New Issue
Block a user