zmdms-utils 0.0.80 → 0.0.82

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.
@@ -0,0 +1,6 @@
1
+ declare module "zt-stompjs" {
2
+ export default Stomp;
3
+ }
4
+ declare module "zt-sockjs-client" {
5
+ export default SockJS;
6
+ }
@@ -14,7 +14,11 @@ declare const EMITTER_TYPE: {
14
14
  treeSearchWhitePath: string;
15
15
  treeSearchSet: string;
16
16
  };
17
+ declare const CLIENT_TYPE: {
18
+ web: number;
19
+ mobile: number;
20
+ };
17
21
  declare const TOKEN_KEY: any;
18
22
  declare const BASIC_KEY: any;
19
23
 
20
- export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY };
24
+ export { BASIC_KEY, CLIENT_TYPE, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY };
@@ -19,6 +19,10 @@ var EMITTER_TYPE = {
19
19
  treeSearchWhitePath: "treeSearchWhitePath",
20
20
  treeSearchSet: "treeSearchSet", // 父应用传递搜索树的值
21
21
  };
22
+ var CLIENT_TYPE = {
23
+ web: 1,
24
+ mobile: 2,
25
+ };
22
26
  // token key 值
23
27
  // export const TOKEN_KEY = "Zmdms-Auth";
24
28
  var TOKEN_KEY = window.__TOKEN_KEY__ || "Cicoms-Auth";
@@ -30,4 +34,4 @@ var FILE_SERVICE = window.__FILE_SERVICE__ || "cicoms";
30
34
  // 默认的附件预览服务地址
31
35
  var FILE_PRVIEW_SERVICE_URL = window.__FILE_PRVIEW_SERVICE_URL__ || "";
32
36
 
33
- export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, FILE_PRVIEW_SERVICE_URL, FILE_SERVICE, PERSONNEL_CENTER_APPNAME, SALARY_CENTER_APPNAME, TOKEN_KEY };
37
+ export { BASIC_KEY, CLIENT_TYPE, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, FILE_PRVIEW_SERVICE_URL, FILE_SERVICE, PERSONNEL_CENTER_APPNAME, SALARY_CENTER_APPNAME, TOKEN_KEY };
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { validatePassword } from './es/passwordValidate.js';
11
11
  export { emailValidate, idCardValidate, isChineseValidate, morePhoneValidate, phoneValidate, strLenValidate } from './es/validate.js';
12
12
  export { batchDownloadFiles, createDeleteFileLink, createDownloadLink, createOriginalLink, createThumbnailLink, createUploadFileLink, downloadFile, exportBolb, previewFile } from './es/file.js';
13
13
  export { calculateAge, parseTime } from './es/parseTime.js';
14
- export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY } from './es/constants.js';
14
+ export { BASIC_KEY, CLIENT_TYPE, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY } from './es/constants.js';
15
15
  export { convert, html, match, pinyin } from 'pinyin-pro';
16
16
  export { domToCanvas } from './es/canvas.js';
17
17
  export { imgToPdf } from './es/pdf.js';
package/dist/index.js CHANGED
@@ -11,7 +11,7 @@ export { validatePassword } from './es/passwordValidate.js';
11
11
  export { emailValidate, idCardValidate, isChineseValidate, morePhoneValidate, phoneValidate, strLenValidate } from './es/validate.js';
12
12
  export { batchDownloadFiles, createDeleteFileLink, createDownloadLink, createOriginalLink, createThumbnailLink, createUploadFileLink, downloadFile, exportBolb, previewFile } from './es/file.js';
13
13
  export { calculateAge, parseTime } from './es/parseTime.js';
14
- export { BASIC_KEY, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY } from './es/constants.js';
14
+ export { BASIC_KEY, CLIENT_TYPE, EMITTER_CCP_KEY, EMITTER_PCC_KEY, EMITTER_TYPE, TOKEN_KEY } from './es/constants.js';
15
15
  export { convert, html, match, pinyin } from './es/node_modules/pinyin-pro/dist/index.js';
16
16
  export { domToCanvas } from './es/canvas.js';
17
17
  export { imgToPdf } from './es/pdf.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zmdms-utils",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/constants.ts CHANGED
@@ -24,6 +24,11 @@ export const EMITTER_TYPE = {
24
24
  treeSearchSet: "treeSearchSet", // 父应用传递搜索树的值
25
25
  };
26
26
 
27
+ export const CLIENT_TYPE = {
28
+ web: 1,
29
+ mobile: 2,
30
+ };
31
+
27
32
  // token key 值
28
33
  // export const TOKEN_KEY = "Zmdms-Auth";
29
34
  export const TOKEN_KEY = (window as any).__TOKEN_KEY__ || "Cicoms-Auth";
package/src/index.ts CHANGED
@@ -57,6 +57,7 @@ export {
57
57
  EMITTER_TYPE,
58
58
  TOKEN_KEY,
59
59
  BASIC_KEY,
60
+ CLIENT_TYPE,
60
61
  } from "./constants";
61
62
 
62
63
  /**
package/tsconfig.json CHANGED
@@ -28,5 +28,5 @@
28
28
  "jsx": "react-jsx",
29
29
  "outDir": "dist"
30
30
  },
31
- "include": ["src"]
31
+ "include": ["src", "declarations.d.ts"]
32
32
  }