@pisell/utils 1.0.48 → 1.0.50

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/es/index.js CHANGED
@@ -19,9 +19,6 @@ export * from "./locales";
19
19
  export * from "./arrayUtils";
20
20
  // export { default as firebase } from './firebase';
21
21
 
22
- globalThis.pisellUtilsConfig = {
23
- env: ''
24
- };
25
22
  export var setPisellUtilsConfig = function setPisellUtilsConfig(config) {
26
23
  globalThis.pisellUtilsConfig = _objectSpread(_objectSpread({}, globalThis.pisellUtilsConfig || {}), config || {});
27
24
  console.log('PisellUtilsConfig_set>>>>', config, globalThis);
package/lib/index.js CHANGED
@@ -37,9 +37,6 @@ __reExport(src_exports, require("./jsBridge"), module.exports);
37
37
  __reExport(src_exports, require("./image"), module.exports);
38
38
  __reExport(src_exports, require("./locales"), module.exports);
39
39
  __reExport(src_exports, require("./arrayUtils"), module.exports);
40
- globalThis.pisellUtilsConfig = {
41
- env: ""
42
- };
43
40
  var setPisellUtilsConfig = (config) => {
44
41
  globalThis.pisellUtilsConfig = {
45
42
  ...globalThis.pisellUtilsConfig || {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/utils",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "sideEffects": false,
5
5
  "main": "./lib/index.js",
6
6
  "module": "./es/index.js",
@@ -1,118 +0,0 @@
1
- declare type LanguageNumber = {
2
- en: number;
3
- zh_CN: number;
4
- zh_HK: number;
5
- };
6
- declare type LanguageString = {
7
- en: string;
8
- zh_CN: string;
9
- zh_HK: string;
10
- } | string;
11
- /**
12
- * 打印小票
13
- */
14
- declare type WebPrint0 = {
15
- /**
16
- * 打印类型
17
- * 0: 小票
18
- * 1:ITS备货单/划菜单
19
- * 2:手环
20
- */
21
- type: "0";
22
- data: {
23
- /** 订单ID */
24
- order_id: string;
25
- };
26
- /** 打印语言对应的数量 */
27
- language: LanguageNumber;
28
- };
29
- /**
30
- * 打印ITS备货单/划菜单
31
- */
32
- declare type WebPrint1 = {
33
- /**
34
- * 打印类型
35
- * 0: 小票
36
- * 1:ITS备货单/划菜单
37
- * 2:手环
38
- */
39
- type: "1";
40
- data: {
41
- /** 0:备货 1:划单 */
42
- mode: "0" | "1";
43
- resource: LanguageString;
44
- /** 订单备注 */
45
- order_note: string;
46
- /** 订单时间或商品下单时间 */
47
- time: string;
48
- /** 订单编号 */
49
- order_number?: string;
50
- /** 商品 */
51
- products: {
52
- /** 商品名称 */
53
- product_title: LanguageString;
54
- /** 商品规格 */
55
- product_option_string: LanguageString;
56
- /** 商品备注 */
57
- product_note: string;
58
- /** 商品数量 */
59
- product_quantity: number;
60
- /** 加菜标识 待定 */
61
- is_append?: boolean;
62
- /** 退菜标识 待定 */
63
- is_removed?: boolean;
64
- }[];
65
- };
66
- /** 打印语言对应的数量 */
67
- language: LanguageNumber;
68
- };
69
- declare type WebPrint2 = {
70
- /**
71
- * 打印类型
72
- * 0: 小票
73
- * 1:ITS备货单/划菜单
74
- * 2:手环
75
- */
76
- type: "2";
77
- data: {
78
- /** 0: 普通票 1:成人票 2:免费成人票 */
79
- type: "0" | "1" | "2";
80
- /** 发行编码 */
81
- encoded: string;
82
- /** 编码 */
83
- code: string;
84
- /** 到期时间 */
85
- expire_date: string;
86
- areas: {
87
- /** 区域名字 */
88
- area_name: string;
89
- /** 区域代码 */
90
- area_code: string;
91
- /** 可用次数 */
92
- limit_num: number;
93
- /** 已用次数 */
94
- used_num: number;
95
- }[];
96
- };
97
- };
98
- declare type WebPrintParams = WebPrint0 | WebPrint1 | WebPrint2;
99
- /**
100
- * webView页面中调用打印机打印
101
- * 此api暂时只支持native app平台下ios手机
102
- * @param params
103
- * @param callback
104
- */
105
- export declare function webPrint(params: WebPrintParams, callback: (...arg: any) => void, onError: () => void): void;
106
- declare type DataManagerParams = {
107
- module: "set" | "get";
108
- key: string;
109
- data?: any;
110
- };
111
- /**
112
- * webView页面中调用APP内的数据
113
- * 此api暂时只支持native app平台下ios手机
114
- * @param params
115
- * @param callback
116
- */
117
- export declare function dataManager(params: DataManagerParams, callback: (...arg: any) => void, onError: () => void): void;
118
- export {};
@@ -1,118 +0,0 @@
1
- declare type LanguageNumber = {
2
- en: number;
3
- zh_CN: number;
4
- zh_HK: number;
5
- };
6
- declare type LanguageString = {
7
- en: string;
8
- zh_CN: string;
9
- zh_HK: string;
10
- } | string;
11
- /**
12
- * 打印小票
13
- */
14
- declare type WebPrint0 = {
15
- /**
16
- * 打印类型
17
- * 0: 小票
18
- * 1:ITS备货单/划菜单
19
- * 2:手环
20
- */
21
- type: "0";
22
- data: {
23
- /** 订单ID */
24
- order_id: string;
25
- };
26
- /** 打印语言对应的数量 */
27
- language: LanguageNumber;
28
- };
29
- /**
30
- * 打印ITS备货单/划菜单
31
- */
32
- declare type WebPrint1 = {
33
- /**
34
- * 打印类型
35
- * 0: 小票
36
- * 1:ITS备货单/划菜单
37
- * 2:手环
38
- */
39
- type: "1";
40
- data: {
41
- /** 0:备货 1:划单 */
42
- mode: "0" | "1";
43
- resource: LanguageString;
44
- /** 订单备注 */
45
- order_note: string;
46
- /** 订单时间或商品下单时间 */
47
- time: string;
48
- /** 订单编号 */
49
- order_number?: string;
50
- /** 商品 */
51
- products: {
52
- /** 商品名称 */
53
- product_title: LanguageString;
54
- /** 商品规格 */
55
- product_option_string: LanguageString;
56
- /** 商品备注 */
57
- product_note: string;
58
- /** 商品数量 */
59
- product_quantity: number;
60
- /** 加菜标识 待定 */
61
- is_append?: boolean;
62
- /** 退菜标识 待定 */
63
- is_removed?: boolean;
64
- }[];
65
- };
66
- /** 打印语言对应的数量 */
67
- language: LanguageNumber;
68
- };
69
- declare type WebPrint2 = {
70
- /**
71
- * 打印类型
72
- * 0: 小票
73
- * 1:ITS备货单/划菜单
74
- * 2:手环
75
- */
76
- type: "2";
77
- data: {
78
- /** 0: 普通票 1:成人票 2:免费成人票 */
79
- type: "0" | "1" | "2";
80
- /** 发行编码 */
81
- encoded: string;
82
- /** 编码 */
83
- code: string;
84
- /** 到期时间 */
85
- expire_date: string;
86
- areas: {
87
- /** 区域名字 */
88
- area_name: string;
89
- /** 区域代码 */
90
- area_code: string;
91
- /** 可用次数 */
92
- limit_num: number;
93
- /** 已用次数 */
94
- used_num: number;
95
- }[];
96
- };
97
- };
98
- declare type WebPrintParams = WebPrint0 | WebPrint1 | WebPrint2;
99
- /**
100
- * webView页面中调用打印机打印
101
- * 此api暂时只支持native app平台下ios手机
102
- * @param params
103
- * @param callback
104
- */
105
- export declare function webPrint(params: WebPrintParams, callback: (...arg: any) => void, onError: () => void): void;
106
- declare type DataManagerParams = {
107
- module: "set" | "get";
108
- key: string;
109
- data?: any;
110
- };
111
- /**
112
- * webView页面中调用APP内的数据
113
- * 此api暂时只支持native app平台下ios手机
114
- * @param params
115
- * @param callback
116
- */
117
- export declare function dataManager(params: DataManagerParams, callback: (...arg: any) => void, onError: () => void): void;
118
- export {};