@peacom/core 0.0.52 → 0.0.53
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/README.md +11 -11
- package/package.json +1 -1
- package/src/index.d.ts +4 -4
- package/src/index.js +7 -7
- package/src/lib/api/api.constant.d.ts +58 -58
- package/src/lib/api/api.constant.js +19 -19
- package/src/lib/api/core.api.d.ts +3 -3
- package/src/lib/api/core.api.js +49 -49
- package/src/lib/api/index.d.ts +4 -4
- package/src/lib/api/index.js +7 -7
- package/src/lib/api/micro-service.api.d.ts +2 -2
- package/src/lib/api/micro-service.api.js +37 -37
- package/src/lib/api/queue/queue.api.d.ts +5 -5
- package/src/lib/api/queue/queue.api.js +23 -23
- package/src/lib/core.d.ts +1 -1
- package/src/lib/core.js +7 -7
- package/src/lib/error/FormError.d.ts +53 -53
- package/src/lib/error/FormError.js +57 -57
- package/src/lib/error/HttpError.d.ts +4 -4
- package/src/lib/error/HttpError.js +11 -11
- package/src/lib/model/Application.d.ts +49 -35
- package/src/lib/model/Application.js +56 -42
- package/src/lib/model/Application.js.map +1 -1
- package/src/lib/model/Billing.d.ts +10 -10
- package/src/lib/model/Billing.js +15 -15
- package/src/lib/model/Currency.d.ts +4 -4
- package/src/lib/model/Currency.js +8 -8
- package/src/lib/model/FileInfo.d.ts +9 -9
- package/src/lib/model/FileInfo.js +2 -2
- package/src/lib/model/conversation/constant.d.ts +21 -21
- package/src/lib/model/conversation/constant.js +15 -15
- package/src/lib/model/conversation/index.d.ts +1 -1
- package/src/lib/model/conversation/index.js +4 -4
- package/src/lib/model/index.d.ts +9 -9
- package/src/lib/model/index.js +12 -12
- package/src/lib/model/message/Message.d.ts +114 -113
- package/src/lib/model/message/Message.js +82 -81
- package/src/lib/model/message/Message.js.map +1 -1
- package/src/lib/model/message/TemplateMessage.d.ts +4 -4
- package/src/lib/model/message/TemplateMessage.js +8 -8
- package/src/lib/model/message/index.d.ts +3 -3
- package/src/lib/model/message/index.js +6 -6
- package/src/lib/model/message/sinch/SinchWhatsappTemplate.d.ts +22 -22
- package/src/lib/model/message/sinch/SinchWhatsappTemplate.js +13 -13
- package/src/lib/model/message/zalo/ZaloZNSTemplate.d.ts +24 -0
- package/src/lib/model/message/zalo/ZaloZNSTemplate.js +3 -0
- package/src/lib/model/message/zalo/ZaloZNSTemplate.js.map +1 -0
- package/src/lib/model/queue/QueueMessage.d.ts +28 -28
- package/src/lib/model/queue/QueueMessage.js +8 -8
- package/src/lib/model/queue/index.d.ts +2 -2
- package/src/lib/model/queue/index.js +5 -5
- package/src/lib/model/queue/queue.constant.d.ts +5 -5
- package/src/lib/model/queue/queue.constant.js +9 -9
- package/src/lib/model/template/Template.d.ts +43 -43
- package/src/lib/model/template/Template.js +88 -88
- package/src/lib/model/template/index.d.ts +1 -1
- package/src/lib/model/template/index.js +4 -4
- package/src/lib/model/viber-business/constant.d.ts +4 -4
- package/src/lib/model/viber-business/constant.js +8 -8
- package/src/lib/model/viber-business/index.d.ts +1 -1
- package/src/lib/model/viber-business/index.js +4 -4
- package/src/lib/util/date/constant.d.ts +3 -3
- package/src/lib/util/date/constant.js +6 -6
- package/src/lib/util/date/date.util.d.ts +15 -15
- package/src/lib/util/date/date.util.js +40 -40
- package/src/lib/util/file/file.util.d.ts +2 -2
- package/src/lib/util/file/file.util.js +19 -19
- package/src/lib/util/general.util.d.ts +1 -1
- package/src/lib/util/general.util.js +7 -7
- package/src/lib/util/index.d.ts +5 -5
- package/src/lib/util/index.js +8 -8
- package/src/lib/util/message/message.util.d.ts +89 -89
- package/src/lib/util/message/message.util.js +65 -65
- package/src/lib/util/phone.util.d.ts +24 -24
- package/src/lib/util/phone.util.js +50 -50
- package/src/lib/util/string.util.d.ts +13 -13
- package/src/lib/util/string.util.js +107 -107
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.QueueMessageStatusSource = void 0;
|
4
|
-
var QueueMessageStatusSource;
|
5
|
-
(function (QueueMessageStatusSource) {
|
6
|
-
QueueMessageStatusSource[QueueMessageStatusSource["LOCAL"] = 1] = "LOCAL";
|
7
|
-
QueueMessageStatusSource[QueueMessageStatusSource["PARTNER"] = 2] = "PARTNER";
|
8
|
-
})(QueueMessageStatusSource = exports.QueueMessageStatusSource || (exports.QueueMessageStatusSource = {}));
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QueueMessageStatusSource = void 0;
|
4
|
+
var QueueMessageStatusSource;
|
5
|
+
(function (QueueMessageStatusSource) {
|
6
|
+
QueueMessageStatusSource[QueueMessageStatusSource["LOCAL"] = 1] = "LOCAL";
|
7
|
+
QueueMessageStatusSource[QueueMessageStatusSource["PARTNER"] = 2] = "PARTNER";
|
8
|
+
})(QueueMessageStatusSource = exports.QueueMessageStatusSource || (exports.QueueMessageStatusSource = {}));
|
9
9
|
//# sourceMappingURL=QueueMessage.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from './queue.constant';
|
2
|
-
export * from './QueueMessage';
|
1
|
+
export * from './queue.constant';
|
2
|
+
export * from './QueueMessage';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./queue.constant"), exports);
|
5
|
-
tslib_1.__exportStar(require("./QueueMessage"), exports);
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./queue.constant"), exports);
|
5
|
+
tslib_1.__exportStar(require("./QueueMessage"), exports);
|
6
6
|
//# sourceMappingURL=index.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export declare enum PEACOM_CORE_QUEUE {
|
2
|
-
BILLING = "PEACOM_CORE_BILLING",
|
3
|
-
STATUS = "PEACOM_CORE_MESSAGE_STATUS",
|
4
|
-
FALLBACK = "PEACOM_CORE_FALLBACK"
|
5
|
-
}
|
1
|
+
export declare enum PEACOM_CORE_QUEUE {
|
2
|
+
BILLING = "PEACOM_CORE_BILLING",
|
3
|
+
STATUS = "PEACOM_CORE_MESSAGE_STATUS",
|
4
|
+
FALLBACK = "PEACOM_CORE_FALLBACK"
|
5
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.PEACOM_CORE_QUEUE = void 0;
|
4
|
-
var PEACOM_CORE_QUEUE;
|
5
|
-
(function (PEACOM_CORE_QUEUE) {
|
6
|
-
PEACOM_CORE_QUEUE["BILLING"] = "PEACOM_CORE_BILLING";
|
7
|
-
PEACOM_CORE_QUEUE["STATUS"] = "PEACOM_CORE_MESSAGE_STATUS";
|
8
|
-
PEACOM_CORE_QUEUE["FALLBACK"] = "PEACOM_CORE_FALLBACK";
|
9
|
-
})(PEACOM_CORE_QUEUE = exports.PEACOM_CORE_QUEUE || (exports.PEACOM_CORE_QUEUE = {}));
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PEACOM_CORE_QUEUE = void 0;
|
4
|
+
var PEACOM_CORE_QUEUE;
|
5
|
+
(function (PEACOM_CORE_QUEUE) {
|
6
|
+
PEACOM_CORE_QUEUE["BILLING"] = "PEACOM_CORE_BILLING";
|
7
|
+
PEACOM_CORE_QUEUE["STATUS"] = "PEACOM_CORE_MESSAGE_STATUS";
|
8
|
+
PEACOM_CORE_QUEUE["FALLBACK"] = "PEACOM_CORE_FALLBACK";
|
9
|
+
})(PEACOM_CORE_QUEUE = exports.PEACOM_CORE_QUEUE || (exports.PEACOM_CORE_QUEUE = {}));
|
10
10
|
//# sourceMappingURL=queue.constant.js.map
|
@@ -1,43 +1,43 @@
|
|
1
|
-
export declare enum TemplateMessageStatus {
|
2
|
-
NORMAL = 0,
|
3
|
-
START = 1,
|
4
|
-
COMPLETE = 2,
|
5
|
-
ERROR = 3
|
6
|
-
}
|
7
|
-
export declare enum TemplateMessageScriptOP {
|
8
|
-
GREATER = 1,
|
9
|
-
GREATER_EQ = 2,
|
10
|
-
SMALLER = 3,
|
11
|
-
SMALLER_EQ = 4,
|
12
|
-
EQUAL = 5,
|
13
|
-
UNEQUAL = 6,
|
14
|
-
HAS_TEXT = 7,
|
15
|
-
EMPTY = 8,
|
16
|
-
IS_NUMBER = 9,
|
17
|
-
IS_PHONE = 10,
|
18
|
-
IS_NOT_NUMBER = 11,
|
19
|
-
IS_NOT_PHONE = 12,
|
20
|
-
LENGTH = 13,
|
21
|
-
IS_ARRAY_INDEX = 14,
|
22
|
-
IS_NOT_ARRAY_INDEX = 15,
|
23
|
-
CUSTOM = 100
|
24
|
-
}
|
25
|
-
export declare enum TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE {
|
26
|
-
TEXT = 1,
|
27
|
-
NUMBER = 2
|
28
|
-
}
|
29
|
-
export declare enum TemplateApiEventPosition {
|
30
|
-
BEFORE = 1,
|
31
|
-
AFTER = 2
|
32
|
-
}
|
33
|
-
export declare enum TemplateApiFailActionType {
|
34
|
-
ShowErrorMessage = 1,
|
35
|
-
NextQuestion = 2
|
36
|
-
}
|
37
|
-
export declare enum OperatorType {
|
38
|
-
FUNCTION = 1,
|
39
|
-
COMPARISON = 2,
|
40
|
-
FUNCTION_MULTIPLE_ARGS = 3
|
41
|
-
}
|
42
|
-
export declare const MAPPING_OPERATOR_TYPE: Record<TemplateMessageScriptOP, OperatorType>;
|
43
|
-
export declare const MAPPING_OPERATOR: Record<TemplateMessageScriptOP, string>;
|
1
|
+
export declare enum TemplateMessageStatus {
|
2
|
+
NORMAL = 0,
|
3
|
+
START = 1,
|
4
|
+
COMPLETE = 2,
|
5
|
+
ERROR = 3
|
6
|
+
}
|
7
|
+
export declare enum TemplateMessageScriptOP {
|
8
|
+
GREATER = 1,
|
9
|
+
GREATER_EQ = 2,
|
10
|
+
SMALLER = 3,
|
11
|
+
SMALLER_EQ = 4,
|
12
|
+
EQUAL = 5,
|
13
|
+
UNEQUAL = 6,
|
14
|
+
HAS_TEXT = 7,
|
15
|
+
EMPTY = 8,
|
16
|
+
IS_NUMBER = 9,
|
17
|
+
IS_PHONE = 10,
|
18
|
+
IS_NOT_NUMBER = 11,
|
19
|
+
IS_NOT_PHONE = 12,
|
20
|
+
LENGTH = 13,
|
21
|
+
IS_ARRAY_INDEX = 14,
|
22
|
+
IS_NOT_ARRAY_INDEX = 15,
|
23
|
+
CUSTOM = 100
|
24
|
+
}
|
25
|
+
export declare enum TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE {
|
26
|
+
TEXT = 1,
|
27
|
+
NUMBER = 2
|
28
|
+
}
|
29
|
+
export declare enum TemplateApiEventPosition {
|
30
|
+
BEFORE = 1,
|
31
|
+
AFTER = 2
|
32
|
+
}
|
33
|
+
export declare enum TemplateApiFailActionType {
|
34
|
+
ShowErrorMessage = 1,
|
35
|
+
NextQuestion = 2
|
36
|
+
}
|
37
|
+
export declare enum OperatorType {
|
38
|
+
FUNCTION = 1,
|
39
|
+
COMPARISON = 2,
|
40
|
+
FUNCTION_MULTIPLE_ARGS = 3
|
41
|
+
}
|
42
|
+
export declare const MAPPING_OPERATOR_TYPE: Record<TemplateMessageScriptOP, OperatorType>;
|
43
|
+
export declare const MAPPING_OPERATOR: Record<TemplateMessageScriptOP, string>;
|
@@ -1,89 +1,89 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MAPPING_OPERATOR = exports.MAPPING_OPERATOR_TYPE = exports.OperatorType = exports.TemplateApiFailActionType = exports.TemplateApiEventPosition = exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = exports.TemplateMessageScriptOP = exports.TemplateMessageStatus = void 0;
|
4
|
-
var TemplateMessageStatus;
|
5
|
-
(function (TemplateMessageStatus) {
|
6
|
-
TemplateMessageStatus[TemplateMessageStatus["NORMAL"] = 0] = "NORMAL";
|
7
|
-
TemplateMessageStatus[TemplateMessageStatus["START"] = 1] = "START";
|
8
|
-
TemplateMessageStatus[TemplateMessageStatus["COMPLETE"] = 2] = "COMPLETE";
|
9
|
-
TemplateMessageStatus[TemplateMessageStatus["ERROR"] = 3] = "ERROR";
|
10
|
-
})(TemplateMessageStatus = exports.TemplateMessageStatus || (exports.TemplateMessageStatus = {}));
|
11
|
-
var TemplateMessageScriptOP;
|
12
|
-
(function (TemplateMessageScriptOP) {
|
13
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["GREATER"] = 1] = "GREATER";
|
14
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["GREATER_EQ"] = 2] = "GREATER_EQ";
|
15
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["SMALLER"] = 3] = "SMALLER";
|
16
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["SMALLER_EQ"] = 4] = "SMALLER_EQ";
|
17
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["EQUAL"] = 5] = "EQUAL";
|
18
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["UNEQUAL"] = 6] = "UNEQUAL";
|
19
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["HAS_TEXT"] = 7] = "HAS_TEXT";
|
20
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["EMPTY"] = 8] = "EMPTY";
|
21
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NUMBER"] = 9] = "IS_NUMBER";
|
22
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_PHONE"] = 10] = "IS_PHONE";
|
23
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_NUMBER"] = 11] = "IS_NOT_NUMBER";
|
24
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_PHONE"] = 12] = "IS_NOT_PHONE";
|
25
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["LENGTH"] = 13] = "LENGTH";
|
26
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_ARRAY_INDEX"] = 14] = "IS_ARRAY_INDEX";
|
27
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_ARRAY_INDEX"] = 15] = "IS_NOT_ARRAY_INDEX";
|
28
|
-
TemplateMessageScriptOP[TemplateMessageScriptOP["CUSTOM"] = 100] = "CUSTOM";
|
29
|
-
})(TemplateMessageScriptOP = exports.TemplateMessageScriptOP || (exports.TemplateMessageScriptOP = {}));
|
30
|
-
var TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE;
|
31
|
-
(function (TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE) {
|
32
|
-
TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE[TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE["TEXT"] = 1] = "TEXT";
|
33
|
-
TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE[TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE["NUMBER"] = 2] = "NUMBER";
|
34
|
-
})(TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE || (exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = {}));
|
35
|
-
var TemplateApiEventPosition;
|
36
|
-
(function (TemplateApiEventPosition) {
|
37
|
-
TemplateApiEventPosition[TemplateApiEventPosition["BEFORE"] = 1] = "BEFORE";
|
38
|
-
TemplateApiEventPosition[TemplateApiEventPosition["AFTER"] = 2] = "AFTER";
|
39
|
-
})(TemplateApiEventPosition = exports.TemplateApiEventPosition || (exports.TemplateApiEventPosition = {}));
|
40
|
-
var TemplateApiFailActionType;
|
41
|
-
(function (TemplateApiFailActionType) {
|
42
|
-
TemplateApiFailActionType[TemplateApiFailActionType["ShowErrorMessage"] = 1] = "ShowErrorMessage";
|
43
|
-
TemplateApiFailActionType[TemplateApiFailActionType["NextQuestion"] = 2] = "NextQuestion";
|
44
|
-
})(TemplateApiFailActionType = exports.TemplateApiFailActionType || (exports.TemplateApiFailActionType = {}));
|
45
|
-
var OperatorType;
|
46
|
-
(function (OperatorType) {
|
47
|
-
OperatorType[OperatorType["FUNCTION"] = 1] = "FUNCTION";
|
48
|
-
OperatorType[OperatorType["COMPARISON"] = 2] = "COMPARISON";
|
49
|
-
OperatorType[OperatorType["FUNCTION_MULTIPLE_ARGS"] = 3] = "FUNCTION_MULTIPLE_ARGS";
|
50
|
-
})(OperatorType = exports.OperatorType || (exports.OperatorType = {}));
|
51
|
-
exports.MAPPING_OPERATOR_TYPE = {
|
52
|
-
[TemplateMessageScriptOP.EQUAL]: OperatorType.COMPARISON,
|
53
|
-
[TemplateMessageScriptOP.UNEQUAL]: OperatorType.COMPARISON,
|
54
|
-
[TemplateMessageScriptOP.GREATER]: OperatorType.COMPARISON,
|
55
|
-
[TemplateMessageScriptOP.GREATER_EQ]: OperatorType.COMPARISON,
|
56
|
-
[TemplateMessageScriptOP.SMALLER]: OperatorType.COMPARISON,
|
57
|
-
[TemplateMessageScriptOP.SMALLER_EQ]: OperatorType.COMPARISON,
|
58
|
-
[TemplateMessageScriptOP.HAS_TEXT]: OperatorType.FUNCTION,
|
59
|
-
[TemplateMessageScriptOP.EMPTY]: OperatorType.FUNCTION,
|
60
|
-
[TemplateMessageScriptOP.IS_NUMBER]: OperatorType.FUNCTION,
|
61
|
-
[TemplateMessageScriptOP.IS_NOT_NUMBER]: OperatorType.FUNCTION,
|
62
|
-
[TemplateMessageScriptOP.IS_PHONE]: OperatorType.FUNCTION,
|
63
|
-
[TemplateMessageScriptOP.IS_NOT_PHONE]: OperatorType.FUNCTION,
|
64
|
-
[TemplateMessageScriptOP.CUSTOM]: OperatorType.FUNCTION,
|
65
|
-
[TemplateMessageScriptOP.LENGTH]: OperatorType.FUNCTION_MULTIPLE_ARGS,
|
66
|
-
[TemplateMessageScriptOP.IS_ARRAY_INDEX]: OperatorType.FUNCTION_MULTIPLE_ARGS,
|
67
|
-
[TemplateMessageScriptOP.IS_NOT_ARRAY_INDEX]: OperatorType.FUNCTION_MULTIPLE_ARGS
|
68
|
-
};
|
69
|
-
exports.MAPPING_OPERATOR = {
|
70
|
-
[TemplateMessageScriptOP.EQUAL]: "===",
|
71
|
-
[TemplateMessageScriptOP.UNEQUAL]: "!==",
|
72
|
-
[TemplateMessageScriptOP.GREATER]: ">",
|
73
|
-
[TemplateMessageScriptOP.GREATER_EQ]: ">=",
|
74
|
-
[TemplateMessageScriptOP.SMALLER]: "<",
|
75
|
-
[TemplateMessageScriptOP.SMALLER_EQ]: "<=",
|
76
|
-
[TemplateMessageScriptOP.HAS_TEXT]: "hasText",
|
77
|
-
[TemplateMessageScriptOP.EMPTY]: "isEmpty",
|
78
|
-
[TemplateMessageScriptOP.IS_NUMBER]: "isNumber",
|
79
|
-
[TemplateMessageScriptOP.IS_PHONE]: "isPhone",
|
80
|
-
[TemplateMessageScriptOP.IS_NUMBER]: "isNumber",
|
81
|
-
[TemplateMessageScriptOP.IS_PHONE]: "isPhone",
|
82
|
-
[TemplateMessageScriptOP.CUSTOM]: "script",
|
83
|
-
[TemplateMessageScriptOP.IS_NOT_NUMBER]: "isNotNumber",
|
84
|
-
[TemplateMessageScriptOP.IS_NOT_PHONE]: "isNotPhone",
|
85
|
-
[TemplateMessageScriptOP.LENGTH]: "length",
|
86
|
-
[TemplateMessageScriptOP.IS_ARRAY_INDEX]: "isArrayItem",
|
87
|
-
[TemplateMessageScriptOP.IS_NOT_ARRAY_INDEX]: "isNotArrayItem"
|
88
|
-
};
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MAPPING_OPERATOR = exports.MAPPING_OPERATOR_TYPE = exports.OperatorType = exports.TemplateApiFailActionType = exports.TemplateApiEventPosition = exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = exports.TemplateMessageScriptOP = exports.TemplateMessageStatus = void 0;
|
4
|
+
var TemplateMessageStatus;
|
5
|
+
(function (TemplateMessageStatus) {
|
6
|
+
TemplateMessageStatus[TemplateMessageStatus["NORMAL"] = 0] = "NORMAL";
|
7
|
+
TemplateMessageStatus[TemplateMessageStatus["START"] = 1] = "START";
|
8
|
+
TemplateMessageStatus[TemplateMessageStatus["COMPLETE"] = 2] = "COMPLETE";
|
9
|
+
TemplateMessageStatus[TemplateMessageStatus["ERROR"] = 3] = "ERROR";
|
10
|
+
})(TemplateMessageStatus = exports.TemplateMessageStatus || (exports.TemplateMessageStatus = {}));
|
11
|
+
var TemplateMessageScriptOP;
|
12
|
+
(function (TemplateMessageScriptOP) {
|
13
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["GREATER"] = 1] = "GREATER";
|
14
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["GREATER_EQ"] = 2] = "GREATER_EQ";
|
15
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["SMALLER"] = 3] = "SMALLER";
|
16
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["SMALLER_EQ"] = 4] = "SMALLER_EQ";
|
17
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["EQUAL"] = 5] = "EQUAL";
|
18
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["UNEQUAL"] = 6] = "UNEQUAL";
|
19
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["HAS_TEXT"] = 7] = "HAS_TEXT";
|
20
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["EMPTY"] = 8] = "EMPTY";
|
21
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NUMBER"] = 9] = "IS_NUMBER";
|
22
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_PHONE"] = 10] = "IS_PHONE";
|
23
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_NUMBER"] = 11] = "IS_NOT_NUMBER";
|
24
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_PHONE"] = 12] = "IS_NOT_PHONE";
|
25
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["LENGTH"] = 13] = "LENGTH";
|
26
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_ARRAY_INDEX"] = 14] = "IS_ARRAY_INDEX";
|
27
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["IS_NOT_ARRAY_INDEX"] = 15] = "IS_NOT_ARRAY_INDEX";
|
28
|
+
TemplateMessageScriptOP[TemplateMessageScriptOP["CUSTOM"] = 100] = "CUSTOM";
|
29
|
+
})(TemplateMessageScriptOP = exports.TemplateMessageScriptOP || (exports.TemplateMessageScriptOP = {}));
|
30
|
+
var TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE;
|
31
|
+
(function (TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE) {
|
32
|
+
TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE[TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE["TEXT"] = 1] = "TEXT";
|
33
|
+
TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE[TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE["NUMBER"] = 2] = "NUMBER";
|
34
|
+
})(TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE || (exports.TEMPLATE_MESSAGE_SCRIPT_DATA_TYPE = {}));
|
35
|
+
var TemplateApiEventPosition;
|
36
|
+
(function (TemplateApiEventPosition) {
|
37
|
+
TemplateApiEventPosition[TemplateApiEventPosition["BEFORE"] = 1] = "BEFORE";
|
38
|
+
TemplateApiEventPosition[TemplateApiEventPosition["AFTER"] = 2] = "AFTER";
|
39
|
+
})(TemplateApiEventPosition = exports.TemplateApiEventPosition || (exports.TemplateApiEventPosition = {}));
|
40
|
+
var TemplateApiFailActionType;
|
41
|
+
(function (TemplateApiFailActionType) {
|
42
|
+
TemplateApiFailActionType[TemplateApiFailActionType["ShowErrorMessage"] = 1] = "ShowErrorMessage";
|
43
|
+
TemplateApiFailActionType[TemplateApiFailActionType["NextQuestion"] = 2] = "NextQuestion";
|
44
|
+
})(TemplateApiFailActionType = exports.TemplateApiFailActionType || (exports.TemplateApiFailActionType = {}));
|
45
|
+
var OperatorType;
|
46
|
+
(function (OperatorType) {
|
47
|
+
OperatorType[OperatorType["FUNCTION"] = 1] = "FUNCTION";
|
48
|
+
OperatorType[OperatorType["COMPARISON"] = 2] = "COMPARISON";
|
49
|
+
OperatorType[OperatorType["FUNCTION_MULTIPLE_ARGS"] = 3] = "FUNCTION_MULTIPLE_ARGS";
|
50
|
+
})(OperatorType = exports.OperatorType || (exports.OperatorType = {}));
|
51
|
+
exports.MAPPING_OPERATOR_TYPE = {
|
52
|
+
[TemplateMessageScriptOP.EQUAL]: OperatorType.COMPARISON,
|
53
|
+
[TemplateMessageScriptOP.UNEQUAL]: OperatorType.COMPARISON,
|
54
|
+
[TemplateMessageScriptOP.GREATER]: OperatorType.COMPARISON,
|
55
|
+
[TemplateMessageScriptOP.GREATER_EQ]: OperatorType.COMPARISON,
|
56
|
+
[TemplateMessageScriptOP.SMALLER]: OperatorType.COMPARISON,
|
57
|
+
[TemplateMessageScriptOP.SMALLER_EQ]: OperatorType.COMPARISON,
|
58
|
+
[TemplateMessageScriptOP.HAS_TEXT]: OperatorType.FUNCTION,
|
59
|
+
[TemplateMessageScriptOP.EMPTY]: OperatorType.FUNCTION,
|
60
|
+
[TemplateMessageScriptOP.IS_NUMBER]: OperatorType.FUNCTION,
|
61
|
+
[TemplateMessageScriptOP.IS_NOT_NUMBER]: OperatorType.FUNCTION,
|
62
|
+
[TemplateMessageScriptOP.IS_PHONE]: OperatorType.FUNCTION,
|
63
|
+
[TemplateMessageScriptOP.IS_NOT_PHONE]: OperatorType.FUNCTION,
|
64
|
+
[TemplateMessageScriptOP.CUSTOM]: OperatorType.FUNCTION,
|
65
|
+
[TemplateMessageScriptOP.LENGTH]: OperatorType.FUNCTION_MULTIPLE_ARGS,
|
66
|
+
[TemplateMessageScriptOP.IS_ARRAY_INDEX]: OperatorType.FUNCTION_MULTIPLE_ARGS,
|
67
|
+
[TemplateMessageScriptOP.IS_NOT_ARRAY_INDEX]: OperatorType.FUNCTION_MULTIPLE_ARGS
|
68
|
+
};
|
69
|
+
exports.MAPPING_OPERATOR = {
|
70
|
+
[TemplateMessageScriptOP.EQUAL]: "===",
|
71
|
+
[TemplateMessageScriptOP.UNEQUAL]: "!==",
|
72
|
+
[TemplateMessageScriptOP.GREATER]: ">",
|
73
|
+
[TemplateMessageScriptOP.GREATER_EQ]: ">=",
|
74
|
+
[TemplateMessageScriptOP.SMALLER]: "<",
|
75
|
+
[TemplateMessageScriptOP.SMALLER_EQ]: "<=",
|
76
|
+
[TemplateMessageScriptOP.HAS_TEXT]: "hasText",
|
77
|
+
[TemplateMessageScriptOP.EMPTY]: "isEmpty",
|
78
|
+
[TemplateMessageScriptOP.IS_NUMBER]: "isNumber",
|
79
|
+
[TemplateMessageScriptOP.IS_PHONE]: "isPhone",
|
80
|
+
[TemplateMessageScriptOP.IS_NUMBER]: "isNumber",
|
81
|
+
[TemplateMessageScriptOP.IS_PHONE]: "isPhone",
|
82
|
+
[TemplateMessageScriptOP.CUSTOM]: "script",
|
83
|
+
[TemplateMessageScriptOP.IS_NOT_NUMBER]: "isNotNumber",
|
84
|
+
[TemplateMessageScriptOP.IS_NOT_PHONE]: "isNotPhone",
|
85
|
+
[TemplateMessageScriptOP.LENGTH]: "length",
|
86
|
+
[TemplateMessageScriptOP.IS_ARRAY_INDEX]: "isArrayItem",
|
87
|
+
[TemplateMessageScriptOP.IS_NOT_ARRAY_INDEX]: "isNotArrayItem"
|
88
|
+
};
|
89
89
|
//# sourceMappingURL=Template.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export * from './Template';
|
1
|
+
export * from './Template';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./Template"), exports);
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./Template"), exports);
|
5
5
|
//# sourceMappingURL=index.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare enum VIBER_SEND_MESSAGE_TYPE {
|
2
|
-
PROMOTION = 1,
|
3
|
-
SESSION = 2
|
4
|
-
}
|
1
|
+
export declare enum VIBER_SEND_MESSAGE_TYPE {
|
2
|
+
PROMOTION = 1,
|
3
|
+
SESSION = 2
|
4
|
+
}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.VIBER_SEND_MESSAGE_TYPE = void 0;
|
4
|
-
var VIBER_SEND_MESSAGE_TYPE;
|
5
|
-
(function (VIBER_SEND_MESSAGE_TYPE) {
|
6
|
-
VIBER_SEND_MESSAGE_TYPE[VIBER_SEND_MESSAGE_TYPE["PROMOTION"] = 1] = "PROMOTION";
|
7
|
-
VIBER_SEND_MESSAGE_TYPE[VIBER_SEND_MESSAGE_TYPE["SESSION"] = 2] = "SESSION";
|
8
|
-
})(VIBER_SEND_MESSAGE_TYPE = exports.VIBER_SEND_MESSAGE_TYPE || (exports.VIBER_SEND_MESSAGE_TYPE = {}));
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VIBER_SEND_MESSAGE_TYPE = void 0;
|
4
|
+
var VIBER_SEND_MESSAGE_TYPE;
|
5
|
+
(function (VIBER_SEND_MESSAGE_TYPE) {
|
6
|
+
VIBER_SEND_MESSAGE_TYPE[VIBER_SEND_MESSAGE_TYPE["PROMOTION"] = 1] = "PROMOTION";
|
7
|
+
VIBER_SEND_MESSAGE_TYPE[VIBER_SEND_MESSAGE_TYPE["SESSION"] = 2] = "SESSION";
|
8
|
+
})(VIBER_SEND_MESSAGE_TYPE = exports.VIBER_SEND_MESSAGE_TYPE || (exports.VIBER_SEND_MESSAGE_TYPE = {}));
|
9
9
|
//# sourceMappingURL=constant.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export * from './constant';
|
1
|
+
export * from './constant';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./constant"), exports);
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./constant"), exports);
|
5
5
|
//# sourceMappingURL=index.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const DEFAULT_TIME_ZONE = "Asia/Ho_Chi_Minh";
|
2
|
-
export declare const DATE_FORMAT = "YYYY-MM-DD";
|
3
|
-
export declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
1
|
+
export declare const DEFAULT_TIME_ZONE = "Asia/Ho_Chi_Minh";
|
2
|
+
export declare const DATE_FORMAT = "YYYY-MM-DD";
|
3
|
+
export declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
@@ -1,7 +1,7 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DATE_TIME_FORMAT = exports.DATE_FORMAT = exports.DEFAULT_TIME_ZONE = void 0;
|
4
|
-
exports.DEFAULT_TIME_ZONE = 'Asia/Ho_Chi_Minh';
|
5
|
-
exports.DATE_FORMAT = "YYYY-MM-DD";
|
6
|
-
exports.DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DATE_TIME_FORMAT = exports.DATE_FORMAT = exports.DEFAULT_TIME_ZONE = void 0;
|
4
|
+
exports.DEFAULT_TIME_ZONE = 'Asia/Ho_Chi_Minh';
|
5
|
+
exports.DATE_FORMAT = "YYYY-MM-DD";
|
6
|
+
exports.DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
7
7
|
//# sourceMappingURL=constant.js.map
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import * as moment from "moment-timezone";
|
2
|
-
declare type DateType = Date | string;
|
3
|
-
export declare function formatDateTimeTZ(date: DateType, timezone?: string, format?: string): string;
|
4
|
-
export declare const getDate: (date: DateType, tz?: string) => moment.Moment;
|
5
|
-
export declare function endOfDate(date: DateType, tz?: string): Date;
|
6
|
-
export declare function startOfDate(date: DateType, tz?: string): Date;
|
7
|
-
/**
|
8
|
-
* Week start from sunday
|
9
|
-
* @param date
|
10
|
-
* @param tz
|
11
|
-
*/
|
12
|
-
export declare function startOfWeeks(date: DateType, tz?: string): Date;
|
13
|
-
export declare function endOfWeek(date: DateType, tz?: string): Date;
|
14
|
-
export declare function lastWeek(date: DateType, tz?: string): Date;
|
15
|
-
export {};
|
1
|
+
import * as moment from "moment-timezone";
|
2
|
+
declare type DateType = Date | string;
|
3
|
+
export declare function formatDateTimeTZ(date: DateType, timezone?: string, format?: string): string;
|
4
|
+
export declare const getDate: (date: DateType, tz?: string) => moment.Moment;
|
5
|
+
export declare function endOfDate(date: DateType, tz?: string): Date;
|
6
|
+
export declare function startOfDate(date: DateType, tz?: string): Date;
|
7
|
+
/**
|
8
|
+
* Week start from sunday
|
9
|
+
* @param date
|
10
|
+
* @param tz
|
11
|
+
*/
|
12
|
+
export declare function startOfWeeks(date: DateType, tz?: string): Date;
|
13
|
+
export declare function endOfWeek(date: DateType, tz?: string): Date;
|
14
|
+
export declare function lastWeek(date: DateType, tz?: string): Date;
|
15
|
+
export {};
|
@@ -1,41 +1,41 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.lastWeek = exports.endOfWeek = exports.startOfWeeks = exports.startOfDate = exports.endOfDate = exports.getDate = exports.formatDateTimeTZ = void 0;
|
4
|
-
const constant_1 = require("./constant");
|
5
|
-
const moment = require("moment-timezone");
|
6
|
-
function formatDateTimeTZ(date, timezone = constant_1.DEFAULT_TIME_ZONE, format = constant_1.DATE_TIME_FORMAT) {
|
7
|
-
return moment(date).tz(timezone).format(format);
|
8
|
-
}
|
9
|
-
exports.formatDateTimeTZ = formatDateTimeTZ;
|
10
|
-
const getDate = (date, tz = "") => {
|
11
|
-
if (!tz)
|
12
|
-
return moment(date);
|
13
|
-
return moment(date).tz(tz);
|
14
|
-
};
|
15
|
-
exports.getDate = getDate;
|
16
|
-
function endOfDate(date, tz = "") {
|
17
|
-
return (0, exports.getDate)(date, tz).endOf("date").toDate();
|
18
|
-
}
|
19
|
-
exports.endOfDate = endOfDate;
|
20
|
-
function startOfDate(date, tz = "") {
|
21
|
-
return (0, exports.getDate)(date, tz).startOf("date").toDate();
|
22
|
-
}
|
23
|
-
exports.startOfDate = startOfDate;
|
24
|
-
/**
|
25
|
-
* Week start from sunday
|
26
|
-
* @param date
|
27
|
-
* @param tz
|
28
|
-
*/
|
29
|
-
function startOfWeeks(date, tz = "") {
|
30
|
-
return (0, exports.getDate)(date, tz).startOf("week").toDate();
|
31
|
-
}
|
32
|
-
exports.startOfWeeks = startOfWeeks;
|
33
|
-
function endOfWeek(date, tz = "") {
|
34
|
-
return (0, exports.getDate)(date, tz).endOf("week").toDate();
|
35
|
-
}
|
36
|
-
exports.endOfWeek = endOfWeek;
|
37
|
-
function lastWeek(date, tz = "") {
|
38
|
-
return (0, exports.getDate)(date, tz).subtract(1, "week").startOf("week").toDate();
|
39
|
-
}
|
40
|
-
exports.lastWeek = lastWeek;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.lastWeek = exports.endOfWeek = exports.startOfWeeks = exports.startOfDate = exports.endOfDate = exports.getDate = exports.formatDateTimeTZ = void 0;
|
4
|
+
const constant_1 = require("./constant");
|
5
|
+
const moment = require("moment-timezone");
|
6
|
+
function formatDateTimeTZ(date, timezone = constant_1.DEFAULT_TIME_ZONE, format = constant_1.DATE_TIME_FORMAT) {
|
7
|
+
return moment(date).tz(timezone).format(format);
|
8
|
+
}
|
9
|
+
exports.formatDateTimeTZ = formatDateTimeTZ;
|
10
|
+
const getDate = (date, tz = "") => {
|
11
|
+
if (!tz)
|
12
|
+
return moment(date);
|
13
|
+
return moment(date).tz(tz);
|
14
|
+
};
|
15
|
+
exports.getDate = getDate;
|
16
|
+
function endOfDate(date, tz = "") {
|
17
|
+
return (0, exports.getDate)(date, tz).endOf("date").toDate();
|
18
|
+
}
|
19
|
+
exports.endOfDate = endOfDate;
|
20
|
+
function startOfDate(date, tz = "") {
|
21
|
+
return (0, exports.getDate)(date, tz).startOf("date").toDate();
|
22
|
+
}
|
23
|
+
exports.startOfDate = startOfDate;
|
24
|
+
/**
|
25
|
+
* Week start from sunday
|
26
|
+
* @param date
|
27
|
+
* @param tz
|
28
|
+
*/
|
29
|
+
function startOfWeeks(date, tz = "") {
|
30
|
+
return (0, exports.getDate)(date, tz).startOf("week").toDate();
|
31
|
+
}
|
32
|
+
exports.startOfWeeks = startOfWeeks;
|
33
|
+
function endOfWeek(date, tz = "") {
|
34
|
+
return (0, exports.getDate)(date, tz).endOf("week").toDate();
|
35
|
+
}
|
36
|
+
exports.endOfWeek = endOfWeek;
|
37
|
+
function lastWeek(date, tz = "") {
|
38
|
+
return (0, exports.getDate)(date, tz).subtract(1, "week").startOf("week").toDate();
|
39
|
+
}
|
40
|
+
exports.lastWeek = lastWeek;
|
41
41
|
//# sourceMappingURL=date.util.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { FileInfo } from "../../model/";
|
2
|
-
export declare const getFileInfoFromUrl: (url: string, defaultMimeType?: string) => FileInfo;
|
1
|
+
import { FileInfo } from "../../model/";
|
2
|
+
export declare const getFileInfoFromUrl: (url: string, defaultMimeType?: string) => FileInfo;
|
@@ -1,20 +1,20 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getFileInfoFromUrl = void 0;
|
4
|
-
const mime = require("mime-types");
|
5
|
-
const getFileInfoFromUrl = (url, defaultMimeType = "application/binary") => {
|
6
|
-
const rs = {
|
7
|
-
name: "",
|
8
|
-
type: defaultMimeType,
|
9
|
-
extension: "",
|
10
|
-
url
|
11
|
-
};
|
12
|
-
rs.name = new URL(url).pathname.split("/").pop() || url;
|
13
|
-
rs.extension = rs.name.split(".").pop();
|
14
|
-
if (rs.extension) {
|
15
|
-
rs.type = mime.lookup(rs.extension) || defaultMimeType;
|
16
|
-
}
|
17
|
-
return rs;
|
18
|
-
};
|
19
|
-
exports.getFileInfoFromUrl = getFileInfoFromUrl;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getFileInfoFromUrl = void 0;
|
4
|
+
const mime = require("mime-types");
|
5
|
+
const getFileInfoFromUrl = (url, defaultMimeType = "application/binary") => {
|
6
|
+
const rs = {
|
7
|
+
name: "",
|
8
|
+
type: defaultMimeType,
|
9
|
+
extension: "",
|
10
|
+
url
|
11
|
+
};
|
12
|
+
rs.name = new URL(url).pathname.split("/").pop() || url;
|
13
|
+
rs.extension = rs.name.split(".").pop();
|
14
|
+
if (rs.extension) {
|
15
|
+
rs.type = mime.lookup(rs.extension) || defaultMimeType;
|
16
|
+
}
|
17
|
+
return rs;
|
18
|
+
};
|
19
|
+
exports.getFileInfoFromUrl = getFileInfoFromUrl;
|
20
20
|
//# sourceMappingURL=file.util.js.map
|
@@ -1 +1 @@
|
|
1
|
-
export declare function delay(time: number): Promise<unknown>;
|
1
|
+
export declare function delay(time: number): Promise<unknown>;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.delay = void 0;
|
4
|
-
function delay(time) {
|
5
|
-
return new Promise(resolve => setTimeout(resolve, time));
|
6
|
-
}
|
7
|
-
exports.delay = delay;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.delay = void 0;
|
4
|
+
function delay(time) {
|
5
|
+
return new Promise(resolve => setTimeout(resolve, time));
|
6
|
+
}
|
7
|
+
exports.delay = delay;
|
8
8
|
//# sourceMappingURL=general.util.js.map
|
package/src/lib/util/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from './message/message.util';
|
2
|
-
export * from './file/file.util';
|
3
|
-
export * from './string.util';
|
4
|
-
export * from './general.util';
|
5
|
-
export * from './phone.util';
|
1
|
+
export * from './message/message.util';
|
2
|
+
export * from './file/file.util';
|
3
|
+
export * from './string.util';
|
4
|
+
export * from './general.util';
|
5
|
+
export * from './phone.util';
|
package/src/lib/util/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./message/message.util"), exports);
|
5
|
-
tslib_1.__exportStar(require("./file/file.util"), exports);
|
6
|
-
tslib_1.__exportStar(require("./string.util"), exports);
|
7
|
-
tslib_1.__exportStar(require("./general.util"), exports);
|
8
|
-
tslib_1.__exportStar(require("./phone.util"), exports);
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./message/message.util"), exports);
|
5
|
+
tslib_1.__exportStar(require("./file/file.util"), exports);
|
6
|
+
tslib_1.__exportStar(require("./string.util"), exports);
|
7
|
+
tslib_1.__exportStar(require("./general.util"), exports);
|
8
|
+
tslib_1.__exportStar(require("./phone.util"), exports);
|
9
9
|
//# sourceMappingURL=index.js.map
|