@giteeteam/apps-team-components 0.3.13 → 0.3.14-202305051617
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/fetch.d.ts +3 -2
- package/dist/lib/global.d.ts +4 -0
- package/dist/lib/workflow.d.ts +12 -0
- package/dist/main.css.map +1 -1
- package/package.json +1 -1
package/dist/lib/fetch.d.ts
CHANGED
|
@@ -37,10 +37,11 @@ export declare const getUserSessionToken: () => string;
|
|
|
37
37
|
export declare const getGlobalEnv: () => Record<string, any>;
|
|
38
38
|
export declare const fetcherInfiniteList: (query: AxiosRequestConfig) => Promise<any>;
|
|
39
39
|
export declare const fetcher: (query: string) => Promise<any>;
|
|
40
|
-
export declare const
|
|
40
|
+
export declare const getVMServiceURL: () => string;
|
|
41
|
+
export declare const fetchVm: (workType: string, params: Record<string, any>) => Promise<{
|
|
41
42
|
code: number;
|
|
42
43
|
message?: string;
|
|
43
|
-
data?:
|
|
44
|
+
data?: any;
|
|
44
45
|
}>;
|
|
45
46
|
export declare const pluginFetch: any;
|
|
46
47
|
export declare const oldPluginFetch: any;
|
package/dist/lib/global.d.ts
CHANGED
|
@@ -1109,3 +1109,7 @@ export declare enum RemoveType {
|
|
|
1109
1109
|
export declare const MAX_NAME_LENGTH = 50;
|
|
1110
1110
|
export declare const DEFAULT_WORKSPACE_ICON = "/icons/ProductIcon.svg";
|
|
1111
1111
|
export declare const DEFAULT_BOARD_ICON = "/icons/Panel1";
|
|
1112
|
+
export declare const VM_API_KEY: {
|
|
1113
|
+
FORM_VALIDATION: string;
|
|
1114
|
+
WORKFLOW_VALIDATION: string;
|
|
1115
|
+
};
|
package/dist/lib/workflow.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import { ObjectId } from './types/models';
|
|
1
2
|
import { ItemResultProps } from './types/item';
|
|
2
3
|
import { ResultType, TransitionProps } from './types/workflow';
|
|
4
|
+
export type userType = {
|
|
5
|
+
objectId: string;
|
|
6
|
+
username: string;
|
|
7
|
+
nickname: string;
|
|
8
|
+
email: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
};
|
|
3
12
|
export declare const StatusTypeKey: {
|
|
4
13
|
Start: string;
|
|
5
14
|
InProgress: string;
|
|
@@ -96,6 +105,7 @@ export declare const CustomFieldComponentTypes: {
|
|
|
96
105
|
Text: string;
|
|
97
106
|
File: string;
|
|
98
107
|
};
|
|
108
|
+
export declare const getScriptUser: (user: Parse.User) => userType;
|
|
99
109
|
export declare function isEmptyCondition(key: string): boolean;
|
|
100
110
|
/** 校验用户是否有状态流转操作权限 */
|
|
101
111
|
export declare function checkUserPermission(transition: TransitionProps, userId: string, roleIds: string[], groupIds: string[], values: Record<string, any>): ResultType;
|
|
@@ -108,4 +118,6 @@ export declare function checkTransitionScript(scriptText: string, params: {
|
|
|
108
118
|
itemType: string;
|
|
109
119
|
workspace: string;
|
|
110
120
|
status: string;
|
|
121
|
+
user: userType;
|
|
111
122
|
}, sessionToken: string): Promise<ResultType>;
|
|
123
|
+
export declare const useWorkflowPermission: (workspaceId: ObjectId) => [ObjectId[], ObjectId[], ObjectId[]];
|