@das-fed/utils 1.0.1 → 1.0.3
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/api-services/index.d.ts +1 -0
- package/api-services/index.js +3 -19845
- package/api-services/modules/app-manage.d.ts +2 -0
- package/api-services/modules/app-manage.js +5 -6
- package/api-services/modules/authentication.d.ts +2 -0
- package/api-services/modules/authentication.js +5 -6
- package/api-services/modules/bems.d.ts +6 -0
- package/api-services/modules/bems.js +8 -10
- package/api-services/modules/contract.d.ts +2 -0
- package/api-services/modules/contract.js +5 -6
- package/api-services/modules/duty-manage.d.ts +7 -0
- package/api-services/modules/duty-manage.js +9 -10
- package/api-services/modules/enterpriseright.d.ts +2 -0
- package/api-services/modules/enterpriseright.js +5 -6
- package/api-services/modules/file.d.ts +36 -0
- package/api-services/modules/file.js +449 -354
- package/api-services/modules/gateway-edge.d.ts +2 -0
- package/api-services/modules/gateway-edge.js +5 -6
- package/api-services/modules/index.d.ts +21 -0
- package/api-services/modules/index.js +501 -435
- package/api-services/modules/iot.d.ts +15 -0
- package/api-services/modules/iot.js +17 -18
- package/api-services/modules/justauth.d.ts +3 -0
- package/api-services/modules/justauth.js +6 -7
- package/api-services/modules/knowledge.d.ts +2 -0
- package/api-services/modules/knowledge.js +5 -6
- package/api-services/modules/link.d.ts +2 -0
- package/api-services/modules/link.js +5 -6
- package/api-services/modules/permission.d.ts +2 -0
- package/api-services/modules/permission.js +5 -6
- package/api-services/modules/platformManage.d.ts +14 -0
- package/api-services/modules/platformManage.js +12 -13
- package/api-services/modules/portal.d.ts +2 -0
- package/api-services/modules/portal.js +5 -6
- package/api-services/modules/space-manage.d.ts +2 -0
- package/api-services/modules/space-manage.js +5 -6
- package/api-services/modules/super-admin.d.ts +8 -0
- package/api-services/modules/super-admin.js +8 -9
- package/api-services/modules/supplier.d.ts +6 -0
- package/api-services/modules/supplier.js +7 -8
- package/api-services/modules/supplychain-manage.d.ts +2 -0
- package/api-services/modules/supplychain-manage.js +5 -6
- package/api-services/modules/systemConfiguration.d.ts +2 -0
- package/api-services/modules/systemConfiguration.js +5 -6
- package/api-services/modules/tool.d.ts +2 -0
- package/api-services/modules/tool.js +5 -6
- package/api-services/src/create-service.d.ts +2 -0
- package/api-services/src/create-service.js +3119 -19726
- package/api-services/src/sso.d.ts +29 -0
- package/api-services/src/sso.js +1547 -156
- package/api-services/src/util.d.ts +1 -0
- package/api-services/src/util.js +1462 -19
- package/atob/index.d.ts +2 -0
- package/atob/index.js +9 -10
- package/common-info/getIframeUrl.d.ts +9 -0
- package/common-info/getIframeUrl.js +9 -11
- package/common-info/index.d.ts +42 -0
- package/common-info/index.js +138 -272
- package/common-info/setInfoFromUrl.d.ts +8 -0
- package/common-info/setInfoFromUrl.js +60 -128
- package/common-tools/arr-tools.d.ts +15 -0
- package/common-tools/arr-tools.js +6 -13
- package/common-tools/date-format.d.ts +7 -0
- package/common-tools/date-format.js +18 -21
- package/common-tools/get-url-params.d.ts +33 -0
- package/common-tools/get-url-params.js +48 -88
- package/common-tools/handle-data.d.ts +6 -0
- package/common-tools/handle-data.js +3 -4
- package/common-tools/index.d.ts +7 -0
- package/common-tools/index.js +7 -213
- package/common-tools/nest-tree-format.d.ts +30 -0
- package/common-tools/nest-tree-format.js +22 -49
- package/common-tools/obj-tools.d.ts +7 -0
- package/common-tools/obj-tools.js +17 -18
- package/common-tools/setHtmlMinWH.d.ts +5 -0
- package/common-tools/setHtmlMinWH.js +6 -10
- package/common-tools/throttled.d.ts +7 -0
- package/common-tools/throttled.js +7 -16
- package/config/index.d.ts +2 -0
- package/config/index.js +8 -25
- package/curring-http/index.d.ts +11 -0
- package/curring-http/index.js +5150 -17289
- package/directive/auth.d.ts +8 -0
- package/directive/auth.js +54 -104
- package/directive/clickOutside.d.ts +5 -0
- package/directive/clickOutside.js +23 -49
- package/directive/hoverInside.d.ts +5 -0
- package/directive/hoverInside.js +16 -35
- package/directive/index.d.ts +3 -0
- package/directive/index.js +7 -182
- package/directive/utils.d.ts +7 -0
- package/directive/utils.js +6 -11
- package/dom-check-in/index.d.ts +6 -0
- package/dom-check-in/index.js +7 -15
- package/dom-watcher/index.d.ts +25 -0
- package/dom-watcher/index.js +7 -8
- package/hooks/popup-manager/use-zindex.d.ts +5 -0
- package/hooks/popup-manager/use-zindex.js +17 -36
- package/index.d.ts +2 -0
- package/index.js +2 -215
- package/load-js/index.d.ts +3 -0
- package/load-js/index.js +10 -20
- package/oss/index.d.ts +2 -0
- package/oss/index.js +11 -15
- package/package.json +8 -13
- package/pinyin-first-character/index.d.ts +2 -0
- package/pinyin-first-character/index.js +25011 -12217
- package/process-engine-info/index.d.ts +10 -0
- package/process-engine-info/index.js +8 -10
- package/pure-image-src/index.d.ts +2 -0
- package/pure-image-src/index.js +3 -29
- package/set-personal-info/index.d.ts +5 -0
- package/set-personal-info/index.js +1460 -16
- package/size-watcher/index.d.ts +6 -0
- package/size-watcher/index.js +17 -24
- package/style/index.d.ts +2 -0
- package/style/index.js +62 -103
- package/style/math.d.ts +9 -0
- package/style/math.js +16 -31
- package/style/style.d.ts +30 -0
- package/style/style.js +49 -72
- package/token-tools/index.d.ts +18 -0
- package/token-tools/index.js +72 -149
- package/vue/hooks/use-model-value.d.ts +3 -0
- package/vue/hooks/use-model-value.js +9 -10
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -10
- package/webSocket-service/index.d.ts +40 -0
- package/webSocket-service/index.js +62 -138
- package/with-install/index.d.ts +10 -0
- package/with-install/index.js +5 -7
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** iot服务 */
|
|
2
|
+
export declare const iot: any;
|
|
3
|
+
export declare const iotModules: {
|
|
4
|
+
thingmodel: any;
|
|
5
|
+
deviceManage: any;
|
|
6
|
+
product: any;
|
|
7
|
+
productStorage: any;
|
|
8
|
+
};
|
|
9
|
+
export declare const iotRelationModules: {
|
|
10
|
+
projectDevice: any;
|
|
11
|
+
deviceRules: any;
|
|
12
|
+
project: any;
|
|
13
|
+
};
|
|
14
|
+
export declare const iotMinio: any;
|
|
15
|
+
export declare const iotProgress: any;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const i = "v1", t = e(`/api/iot/${i}`), c = {
|
|
3
|
+
thingmodel: e(`/api/iot-device/thingmodel/${i}`),
|
|
4
|
+
deviceManage: e(`/api/iot-device/devicemanage/${i}`),
|
|
5
|
+
product: e(`/api/iot-device/product/${i}`),
|
|
6
|
+
productStorage: e(`/api/iot-device/product-storage/${i}`)
|
|
7
|
+
}, r = {
|
|
8
|
+
projectDevice: e(`/api/device-relation/deviceproject/${i}`),
|
|
9
|
+
deviceRules: e(`/api/device-relation/devicerule/${i}`),
|
|
10
|
+
project: e(`/api/device-relation/project/${i}`)
|
|
11
|
+
}, a = e(`/api/oss/minio/${i}`), p = e(`/api/progress/accessor/${i}`);
|
|
12
|
+
export {
|
|
13
|
+
t as iot,
|
|
14
|
+
a as iotMinio,
|
|
15
|
+
c as iotModules,
|
|
16
|
+
p as iotProgress,
|
|
17
|
+
r as iotRelationModules
|
|
10
18
|
};
|
|
11
|
-
const iotRelationModules = {
|
|
12
|
-
projectDevice: createService(`/api/device-relation/deviceproject/${version}`),
|
|
13
|
-
deviceRules: createService(`/api/device-relation/devicerule/${version}`),
|
|
14
|
-
project: createService(`/api/device-relation/project/${version}`)
|
|
15
|
-
};
|
|
16
|
-
const iotMinio = createService(`/api/oss/minio/${version}`);
|
|
17
|
-
const iotProgress = createService(`/api/progress/accessor/${version}`);
|
|
18
|
-
|
|
19
|
-
export { iot, iotMinio, iotModules, iotProgress, iotRelationModules };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { justauth, oauthServer };
|
|
1
|
+
import { createService as t } from "@das-fed/utils/api-services";
|
|
2
|
+
const r = "v1", o = t(`/api/justauth/oauth-server/${r}/visitor`), s = t(`/api/justauth/oauth-server/${r}`);
|
|
3
|
+
export {
|
|
4
|
+
o as justauth,
|
|
5
|
+
s as oauthServer
|
|
6
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { knowledgeBase };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const o = "v1", r = e(`/api/knowledge-base/knowledge/${o}`);
|
|
3
|
+
export {
|
|
4
|
+
r as knowledgeBase
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { daslink };
|
|
1
|
+
import { createService as o } from "@das-fed/utils/api-services";
|
|
2
|
+
const t = "v1", e = o(`/api/custom-datasource/custom/${t}`);
|
|
3
|
+
export {
|
|
4
|
+
e as daslink
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { permission };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const i = "v1", r = e(`/api/permission/${i}`);
|
|
3
|
+
export {
|
|
4
|
+
r as permission
|
|
5
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** 客户管理-客户信息 */
|
|
2
|
+
export declare const customer: any;
|
|
3
|
+
/** 客户管理-企业信息 */
|
|
4
|
+
export declare const company: any;
|
|
5
|
+
/** 客户管理-客户级别 */
|
|
6
|
+
export declare const customerGrade: any;
|
|
7
|
+
/** 客户管理-客户类型 */
|
|
8
|
+
export declare const customerType: any;
|
|
9
|
+
/** 项目管理*/
|
|
10
|
+
export declare const projectManage: {
|
|
11
|
+
list: any;
|
|
12
|
+
app: any;
|
|
13
|
+
people: any;
|
|
14
|
+
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const o = "v1", p = e(`/api/customer/customer/${o}`), c = e(`/api/customer/company/${o}`), r = e(`/api/customer/customer-grade/${o}`), s = e(`/api/customer/customer-type/${o}`), a = {
|
|
3
|
+
list: e(`/api/project/${o}/list`),
|
|
4
|
+
app: e(`/api/project/${o}/app`),
|
|
5
|
+
people: e(`/api/project/${o}/people`)
|
|
6
|
+
};
|
|
7
|
+
export {
|
|
8
|
+
c as company,
|
|
9
|
+
p as customer,
|
|
10
|
+
r as customerGrade,
|
|
11
|
+
s as customerType,
|
|
12
|
+
a as projectManage
|
|
12
13
|
};
|
|
13
|
-
|
|
14
|
-
export { company, customer, customerGrade, customerType, projectManage };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { portal };
|
|
1
|
+
import { createService as r } from "@das-fed/utils/api-services";
|
|
2
|
+
const o = "v1", t = r(`/api/portal/user/${o}`);
|
|
3
|
+
export {
|
|
4
|
+
t as portal
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { spaceManage };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const a = "v1", r = e(`/api/space-manage/space-tree/${a}`);
|
|
3
|
+
export {
|
|
4
|
+
r as spaceManage
|
|
5
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** 超管后台 - portal */
|
|
2
|
+
export declare const superadminPortal: any;
|
|
3
|
+
/** 超管后台 - 权限 */
|
|
4
|
+
export declare const superadminPermission: any;
|
|
5
|
+
/** 超管后台 - 资源管理 */
|
|
6
|
+
export declare const superadminResource: any;
|
|
7
|
+
/** 超管后台 - 授权管理 */
|
|
8
|
+
export declare const superadminLicense: any;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export { superadminLicense, superadminPermission, superadminPortal, superadminResource };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const s = "v1", r = e(`/api/superadmin/portal/${s}`), n = e(`/api/superadmin/permission/${s}`), p = e(`/api/superadmin/resource/${s}`), a = e(`/api/superadmin/license/${s}`);
|
|
3
|
+
export {
|
|
4
|
+
a as superadminLicense,
|
|
5
|
+
n as superadminPermission,
|
|
6
|
+
r as superadminPortal,
|
|
7
|
+
p as superadminResource
|
|
8
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export { supplier, supplierClassification, supplierManage };
|
|
1
|
+
import { createService as p } from "@das-fed/utils/api-services";
|
|
2
|
+
const i = "v1", e = p(`/api/supply/supplier/${i}`), r = p(`/api/supplier/${i}`), a = p(`/api/supplier/${i}/classification`);
|
|
3
|
+
export {
|
|
4
|
+
e as supplier,
|
|
5
|
+
a as supplierClassification,
|
|
6
|
+
r as supplierManage
|
|
7
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { enterpriseadminBrandModel };
|
|
1
|
+
import { createService as e } from "@das-fed/utils/api-services";
|
|
2
|
+
const r = "v1", o = e(`/api/supply/brand/${r}`);
|
|
3
|
+
export {
|
|
4
|
+
o as enterpriseadminBrandModel
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { systemConfiguration };
|
|
1
|
+
import { createService as o } from "@das-fed/utils/api-services";
|
|
2
|
+
const e = "v1", i = o(`/api/system-config/${e}`);
|
|
3
|
+
export {
|
|
4
|
+
i as systemConfiguration
|
|
5
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { createService } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export { tool };
|
|
1
|
+
import { createService as o } from "@das-fed/utils/api-services";
|
|
2
|
+
const t = "v2", r = o(`/api/tool/${t}`);
|
|
3
|
+
export {
|
|
4
|
+
r as tool
|
|
5
|
+
};
|