@das-fed/utils 6.3.0-beta.3 → 6.3.0-beta.4

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.
Files changed (88) hide show
  1. package/__VLS_types.d.ts +124 -0
  2. package/api-services/modules/app-manage/index.d.ts +2 -0
  3. package/api-services/modules/app-manage/index.js +5 -0
  4. package/api-services/modules/authentication/index.d.ts +2 -0
  5. package/api-services/modules/authentication/index.js +5 -0
  6. package/api-services/modules/bems/index.d.ts +6 -0
  7. package/api-services/modules/bems/index.js +9 -0
  8. package/api-services/modules/contract/index.d.ts +2 -0
  9. package/api-services/modules/contract/index.js +5 -0
  10. package/api-services/modules/duty-manage/index.d.ts +7 -0
  11. package/api-services/modules/duty-manage/index.js +14 -0
  12. package/api-services/modules/enterpriseright/index.d.ts +2 -0
  13. package/api-services/modules/enterpriseright/index.js +5 -0
  14. package/api-services/modules/file/index.d.ts +36 -0
  15. package/api-services/modules/file/index.js +499 -0
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.d.ts +2 -0
  18. package/api-services/modules/gateway-edge/index.js +5 -0
  19. package/api-services/modules/index.d.ts +21 -0
  20. package/api-services/modules/index.js +59 -0
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.d.ts +15 -0
  23. package/api-services/modules/iot/index.js +18 -0
  24. package/api-services/modules/justauth/index.d.ts +3 -0
  25. package/api-services/modules/justauth/index.js +6 -0
  26. package/api-services/modules/knowledge/index.d.ts +2 -0
  27. package/api-services/modules/knowledge/index.js +5 -0
  28. package/api-services/modules/link/index.d.ts +2 -0
  29. package/api-services/modules/link/index.js +5 -0
  30. package/api-services/modules/permission/index.d.ts +2 -0
  31. package/api-services/modules/permission/index.js +5 -0
  32. package/api-services/modules/platformManage/index.d.ts +14 -0
  33. package/api-services/modules/platformManage/index.js +13 -0
  34. package/api-services/modules/portal/index.d.ts +2 -0
  35. package/api-services/modules/portal/index.js +5 -0
  36. package/api-services/modules/space-manage/index.d.ts +2 -0
  37. package/api-services/modules/space-manage/index.js +5 -0
  38. package/api-services/modules/super-admin/index.d.ts +8 -0
  39. package/api-services/modules/super-admin/index.js +8 -0
  40. package/api-services/modules/supplier/index.d.ts +6 -0
  41. package/api-services/modules/supplier/index.js +7 -0
  42. package/api-services/modules/supplychain-manage/index.d.ts +2 -0
  43. package/api-services/modules/supplychain-manage/index.js +5 -0
  44. package/api-services/modules/systemConfiguration/index.d.ts +2 -0
  45. package/api-services/modules/systemConfiguration/index.js +5 -0
  46. package/api-services/modules/tool/index.d.ts +2 -0
  47. package/api-services/modules/tool/index.js +5 -0
  48. package/api-services/src/create-service/index.d.ts +1 -0
  49. package/api-services/src/create-service/index.js +4 -0
  50. package/common-info/getIframeUrl/index.d.ts +9 -0
  51. package/common-info/getIframeUrl/index.js +10 -0
  52. package/common-info/getInfoFromUrl/index.d.ts +8 -0
  53. package/common-info/getInfoFromUrl/index.js +84 -0
  54. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  55. package/common-info/set-personal-info/index.d.ts +5 -0
  56. package/common-info/set-personal-info/index.js +1664 -0
  57. package/common-info/set-personal-info/index.js.gz +0 -0
  58. package/common-info/type.d.ts +104 -0
  59. package/common-tools/arr-tools/index.d.ts +15 -0
  60. package/common-tools/arr-tools/index.js +8 -0
  61. package/common-tools/date-format/index.d.ts +7 -0
  62. package/common-tools/date-format/index.js +18 -0
  63. package/common-tools/get-url-params/index.d.ts +46 -0
  64. package/common-tools/get-url-params/index.js +60 -0
  65. package/common-tools/get-url-params/index.js.gz +0 -0
  66. package/common-tools/handle-data/index.d.ts +6 -0
  67. package/common-tools/handle-data/index.js +4 -0
  68. package/common-tools/nest-tree-format/index.d.ts +30 -0
  69. package/common-tools/nest-tree-format/index.js +24 -0
  70. package/common-tools/obj-tools/index.d.ts +7 -0
  71. package/common-tools/obj-tools/index.js +14 -0
  72. package/common-tools/platform-tools/index.d.ts +18 -0
  73. package/common-tools/platform-tools/index.js +14 -0
  74. package/common-tools/queue-promise/index.d.ts +6 -0
  75. package/common-tools/queue-promise/index.js +9 -0
  76. package/common-tools/setHtmlMinWH/index.d.ts +5 -0
  77. package/common-tools/setHtmlMinWH/index.js +11 -0
  78. package/common-tools/update-fav-icon/index.d.ts +11 -0
  79. package/common-tools/update-fav-icon/index.js +21 -0
  80. package/create-api-service/proxy-sso/index.d.ts +3 -0
  81. package/create-api-service/proxy-sso/index.js +21 -0
  82. package/create-api-service/sso/index.d.ts +23 -0
  83. package/create-api-service/sso/index.js +1946 -0
  84. package/create-api-service/sso/index.js.gz +0 -0
  85. package/curring-http/type.d.ts +89 -0
  86. package/esm-map.json +5 -5
  87. package/package.json +3 -3
  88. package/webSocket-service/type.d.ts +28 -0
@@ -0,0 +1,124 @@
1
+ // @ts-nocheck
2
+
3
+ type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<JSX.IntrinsicElements, Record<string, any>>>;
4
+ type __VLS_Element = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.Element, JSX.Element>;
5
+
6
+ type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
7
+ type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
8
+
9
+ type __VLS_Prettify<T> = { [K in keyof T]: T[K]; } & {};
10
+
11
+ type __VLS_OmitKeepDiscriminatedUnion<T, K extends keyof any> =
12
+ T extends any
13
+ ? Pick<T, Exclude<keyof T, K>>
14
+ : never;
15
+
16
+ type __VLS_GlobalComponents =
17
+ __VLS_PickNotAny<import('vue').GlobalComponents, {}>
18
+ & __VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}>
19
+ & __VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}>
20
+ & Pick<typeof import('vue'),
21
+ 'Transition'
22
+ | 'TransitionGroup'
23
+ | 'KeepAlive'
24
+ | 'Suspense'
25
+ | 'Teleport'
26
+ >;
27
+
28
+ declare const __VLS_intrinsicElements: __VLS_IntrinsicElements;
29
+
30
+ // v-for
31
+ declare function __VLS_getVForSourceType(source: number): [number, number, number][];
32
+ declare function __VLS_getVForSourceType(source: string): [string, number, number][];
33
+ declare function __VLS_getVForSourceType<T extends any[]>(source: T): [
34
+ T[number], // item
35
+ number, // key
36
+ number, // index
37
+ ][];
38
+ declare function __VLS_getVForSourceType<T extends { [Symbol.iterator](): Iterator<any> }>(source: T): [
39
+ T extends { [Symbol.iterator](): Iterator<infer T1> } ? T1 : never, // item
40
+ number, // key
41
+ undefined, // index
42
+ ][];
43
+ declare function __VLS_getVForSourceType<T>(source: T): [
44
+ T[keyof T], // item
45
+ keyof T, // key
46
+ number, // index
47
+ ][];
48
+
49
+ declare function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
50
+ declare function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
51
+ declare function __VLS_directiveFunction<T>(dir: T):
52
+ T extends import('vue').ObjectDirective<infer E, infer V> | import('vue').FunctionDirective<infer E, infer V> ? (value: V) => void
53
+ : T;
54
+ declare function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
55
+ declare function __VLS_makeOptional<T>(t: T): { [K in keyof T]?: T[K] };
56
+
57
+ type __VLS_SelfComponent<N, C> = string extends N ? {} : N extends string ? { [P in N]: C } : {};
58
+ type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> =
59
+ N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N1] } :
60
+ N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N2] } :
61
+ N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0> : { [K in N0]: LocalComponents[N3] } :
62
+ N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N1] } :
63
+ N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N2] } :
64
+ N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0> : { [K in N0]: __VLS_GlobalComponents[N3] } :
65
+ { [K in N0]: unknown }
66
+
67
+ type __VLS_FillingEventArg_ParametersLength<E extends (...args: any) => any> = __VLS_IsAny<Parameters<E>> extends true ? -1 : Parameters<E>['length'];
68
+ type __VLS_FillingEventArg<E> = E extends (...args: any) => any ? __VLS_FillingEventArg_ParametersLength<E> extends 0 ? ($event?: undefined) => ReturnType<E> : E : E;
69
+ declare function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K):
70
+ T extends new (...args: any) => any
71
+ ? (props: (K extends { $props: infer Props } ? Props : any) & Record<string, unknown>, ctx?: {
72
+ attrs?: any,
73
+ slots?: K extends { $slots: infer Slots } ? Slots : any,
74
+ emit?: K extends { $emit: infer Emit } ? Emit : any
75
+ }) => __VLS_Element & { __ctx?: typeof ctx & { props?: typeof props; expose?(exposed: K): void; } }
76
+ : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T>
77
+ : T extends (...args: any) => any ? T
78
+ : (_: {} & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: {} & Record<string, unknown> } };
79
+ declare function __VLS_elementAsFunctionalComponent<T>(t: T): (_: T & Record<string, unknown>, ctx?: any) => { __ctx?: { attrs?: any, expose?: any, slots?: any, emit?: any, props?: T & Record<string, unknown> } };
80
+ declare function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
81
+ declare function __VLS_pickEvent<E1, E2>(emitEvent: E1, propEvent: E2): __VLS_FillingEventArg<
82
+ __VLS_PickNotAny<
83
+ __VLS_AsFunctionOrAny<E2>,
84
+ __VLS_AsFunctionOrAny<E1>
85
+ >
86
+ > | undefined;
87
+ declare function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny<
88
+ '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: infer Ctx } ? Ctx : never : any
89
+ , T extends (props: any, ctx: infer Ctx) => any ? Ctx : any
90
+ >;
91
+ type __VLS_FunctionalComponentProps<T, K> =
92
+ '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends { __ctx?: { props?: infer P } } ? NonNullable<P> : never
93
+ : T extends (props: infer P, ...args: any) => any ? P :
94
+ {};
95
+ type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any;
96
+
97
+ declare function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
98
+
99
+ /**
100
+ * emit
101
+ */
102
+ // fix https://github.com/vuejs/language-tools/issues/926
103
+ type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
104
+ type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R
105
+ ? U extends T
106
+ ? never
107
+ : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R)
108
+ : never;
109
+ type __VLS_OverloadUnion<T> = Exclude<
110
+ __VLS_OverloadUnionInner<(() => never) & T>,
111
+ T extends () => never ? never : () => never
112
+ >;
113
+ type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F
114
+ ? F extends (event: infer E, ...args: infer A) => any
115
+ ? { [K in E & string]: (...args: A) => void; }
116
+ : never
117
+ : never;
118
+ type __VLS_NormalizeEmits<T> = __VLS_Prettify<
119
+ __VLS_UnionToIntersection<
120
+ __VLS_ConstructorOverloads<T> & {
121
+ [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never
122
+ }
123
+ >
124
+ >;
@@ -0,0 +1,2 @@
1
+ /** 企业管理后台-应用管理 */
2
+ export declare const appManage: any;
@@ -0,0 +1,5 @@
1
+ import { createService as a } from "@das-fed/utils/create-api-service";
2
+ const p = "v1", o = a(`/api/app-manager/application/${p}`);
3
+ export {
4
+ o as appManage
5
+ };
@@ -0,0 +1,2 @@
1
+ /** 企业管理后台-证书认证服务 */
2
+ export declare const authentication: any;
@@ -0,0 +1,5 @@
1
+ import { createService as e } from "@das-fed/utils/create-api-service";
2
+ const i = "v1", n = e(`/api/license/admin/${i}`);
3
+ export {
4
+ n as authentication
5
+ };
@@ -0,0 +1,6 @@
1
+ /** bems能源管理服务 */
2
+ export declare const bemsModules: {
3
+ energyType: any;
4
+ energyObject: any;
5
+ energyDimension: any;
6
+ };
@@ -0,0 +1,9 @@
1
+ import { createService as e } from "@das-fed/utils/create-api-service";
2
+ const r = "v1", n = `/api/bems/data-manage/${r}`, s = {
3
+ energyType: e(`${n}/energy-type`),
4
+ energyObject: e(`${n}/energy-object`),
5
+ energyDimension: e(`${n}/energy-dimension`)
6
+ };
7
+ export {
8
+ s as bemsModules
9
+ };
@@ -0,0 +1,2 @@
1
+ /** 供应链管理-合同管理 */
2
+ export declare const contract: any;
@@ -0,0 +1,5 @@
1
+ import { createService as t } from "@das-fed/utils/create-api-service";
2
+ const c = "v1", r = t(`/api/supply/contract/${c}`);
3
+ export {
4
+ r as contract
5
+ };
@@ -0,0 +1,7 @@
1
+ /** 值班管理 */
2
+ export declare const dutyModules: {
3
+ classes: any;
4
+ group: any;
5
+ scheduling: any;
6
+ shift: any;
7
+ };
@@ -0,0 +1,14 @@
1
+ import { createService as a } from "@das-fed/utils/create-api-service";
2
+ const e = "v1", t = {
3
+ classes: a(`/api/duty-manage/classes/${e}`),
4
+ // 班次管理
5
+ group: a(`/api/duty-manage/group/${e}`),
6
+ // 分组管理
7
+ scheduling: a(`/api/duty-manage/scheduling/${e}`),
8
+ // 排班管理
9
+ shift: a(`/api/duty-manage/shift/${e}`)
10
+ // 交接班管理
11
+ };
12
+ export {
13
+ t as dutyModules
14
+ };
@@ -0,0 +1,2 @@
1
+ /** 企业管理后台-权限管理 */
2
+ export declare const enterpriseright: any;
@@ -0,0 +1,5 @@
1
+ import { createService as e } from "@das-fed/utils/create-api-service";
2
+ const r = "v1", t = e(`/api/enterpriseright/permission/${r}`);
3
+ export {
4
+ t as enterpriseright
5
+ };
@@ -0,0 +1,36 @@
1
+ type optionsRalated = {
2
+ bucketName: string;
3
+ importFileName: string | any;
4
+ autoContentType?: boolean;
5
+ };
6
+ type ImExportFuncRelated = {
7
+ status: boolean;
8
+ taskId?: string;
9
+ };
10
+ export declare const useFile: () => {
11
+ showProgressDialog: any;
12
+ progressTitle: any;
13
+ percent: any;
14
+ progressStatus: any;
15
+ progressLoading: any;
16
+ progressResult: any;
17
+ errorFileName: any;
18
+ errorFileSize: any;
19
+ errorMessage: any;
20
+ errorImport: any;
21
+ errorFilePath: any;
22
+ fileImport: (importFunc: (n?: any) => Promise<ImExportFuncRelated>, file: any, options: optionsRalated, needProgress?: boolean, errPathName?: string, isBatch?: boolean) => any;
23
+ fileExport: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, fileSuffix?: string, needProgress?: boolean) => any;
24
+ fileAction: (exportFunc: () => Promise<ImExportFuncRelated>, fileName?: string, actionTitle?: string) => any;
25
+ generateUniqueName: (fileName?: string) => string;
26
+ downloadFile: (path: any, filename: string, fileSuffix?: string) => void;
27
+ resetStataus: () => void;
28
+ checkProgress: (taskId: any, type: string, fileName: string, fileSuffix?: string) => any;
29
+ };
30
+ /**
31
+ * 下载文件
32
+ * @param path 文件链接
33
+ * @param filename 下载文件名
34
+ */
35
+ export declare const downloadFile: (path: any, filename: string, fileSuffix?: string) => void;
36
+ export {};