atmosx-nwws-parser 1.0.2021 → 1.0.2023
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/dist/cjs/bootstrap.cjs +11 -11
- package/dist/cjs/database.cjs +11 -11
- package/dist/cjs/dictionaries/events.cjs +11 -11
- package/dist/cjs/eas.cjs +27 -12
- package/dist/cjs/helper.cjs +27 -12
- package/dist/cjs/parsers/events.cjs +27 -12
- package/dist/cjs/parsers/stanza.cjs +11 -11
- package/dist/cjs/parsers/text.cjs +11 -11
- package/dist/cjs/parsers/types/api.cjs +27 -12
- package/dist/cjs/parsers/types/cap.cjs +27 -12
- package/dist/cjs/parsers/types/text.cjs +27 -12
- package/dist/cjs/parsers/types/ugc.cjs +27 -12
- package/dist/cjs/parsers/types/vtec.cjs +27 -12
- package/dist/cjs/parsers/ugc.cjs +11 -11
- package/dist/cjs/parsers/vtec.cjs +11 -11
- package/dist/cjs/utils.cjs +27 -12
- package/dist/cjs/xmpp.cjs +27 -12
- package/dist/esm/bootstrap.mjs +11 -11
- package/dist/esm/database.mjs +11 -11
- package/dist/esm/dictionaries/events.mjs +11 -11
- package/dist/esm/eas.mjs +27 -12
- package/dist/esm/helper.mjs +27 -12
- package/dist/esm/parsers/events.mjs +27 -12
- package/dist/esm/parsers/stanza.mjs +11 -11
- package/dist/esm/parsers/text.mjs +11 -11
- package/dist/esm/parsers/types/api.mjs +27 -12
- package/dist/esm/parsers/types/cap.mjs +27 -12
- package/dist/esm/parsers/types/text.mjs +27 -12
- package/dist/esm/parsers/types/ugc.mjs +27 -12
- package/dist/esm/parsers/types/vtec.mjs +27 -12
- package/dist/esm/parsers/ugc.mjs +11 -11
- package/dist/esm/parsers/vtec.mjs +11 -11
- package/dist/esm/utils.mjs +27 -12
- package/dist/esm/xmpp.mjs +27 -12
- package/package.json +1 -1
- package/src/dictionaries/events.ts +12 -12
- package/src/parsers/events.ts +4 -1
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2631,8 +2643,11 @@ var EventParser = class {
|
|
|
2631
2643
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2632
2644
|
}
|
|
2633
2645
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2646
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2647
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2634
2648
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2635
|
-
originalEvent
|
|
2649
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2650
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2636
2651
|
if (props.description) {
|
|
2637
2652
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2638
2653
|
if (detectedPhrase && bools.checkExpired) {
|
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2623,8 +2635,11 @@ var EventParser = class {
|
|
|
2623
2635
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2624
2636
|
}
|
|
2625
2637
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2638
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2639
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2626
2640
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2627
|
-
originalEvent
|
|
2641
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2642
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2628
2643
|
if (props.description) {
|
|
2629
2644
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2630
2645
|
if (detectedPhrase && bools.checkExpired) {
|
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2671,8 +2683,11 @@ var EventParser = class {
|
|
|
2671
2683
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2672
2684
|
}
|
|
2673
2685
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2686
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2687
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2674
2688
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2675
|
-
originalEvent
|
|
2689
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2690
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2676
2691
|
if (props.description) {
|
|
2677
2692
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2678
2693
|
if (detectedPhrase && bools.checkExpired) {
|
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2641,8 +2653,11 @@ var EventParser = class {
|
|
|
2641
2653
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2642
2654
|
}
|
|
2643
2655
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2656
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2657
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2644
2658
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2645
|
-
originalEvent
|
|
2659
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2660
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2646
2661
|
if (props.description) {
|
|
2647
2662
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2648
2663
|
if (detectedPhrase && bools.checkExpired) {
|
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2664,8 +2676,11 @@ var EventParser = class {
|
|
|
2664
2676
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2665
2677
|
}
|
|
2666
2678
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2679
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2680
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2667
2681
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2668
|
-
originalEvent
|
|
2682
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2683
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2669
2684
|
if (props.description) {
|
|
2670
2685
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2671
2686
|
if (detectedPhrase && bools.checkExpired) {
|
package/dist/esm/parsers/ugc.mjs
CHANGED
|
@@ -122,17 +122,17 @@ var TYPES = {
|
|
|
122
122
|
"X": "Experimental Product (Non-Operational)"
|
|
123
123
|
};
|
|
124
124
|
var STATUS_CORRELATIONS = [
|
|
125
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
126
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
127
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
128
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
129
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
130
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
131
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
132
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
133
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
134
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
135
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
125
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
126
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
127
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
128
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
129
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
130
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
131
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
132
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
133
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
134
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
135
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
136
136
|
];
|
|
137
137
|
|
|
138
138
|
// src/dictionaries/offshore.ts
|
|
@@ -122,17 +122,17 @@ var TYPES = {
|
|
|
122
122
|
"X": "Experimental Product (Non-Operational)"
|
|
123
123
|
};
|
|
124
124
|
var STATUS_CORRELATIONS = [
|
|
125
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
126
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
127
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
128
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
129
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
130
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
131
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
132
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
133
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
134
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
135
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
125
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
126
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
127
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
128
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
129
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
130
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
131
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
132
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
133
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
134
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
135
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
136
136
|
];
|
|
137
137
|
|
|
138
138
|
// src/dictionaries/offshore.ts
|
package/dist/esm/utils.mjs
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2314,8 +2326,11 @@ var EventParser = class {
|
|
|
2314
2326
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2315
2327
|
}
|
|
2316
2328
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2329
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2330
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2317
2331
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2318
|
-
originalEvent
|
|
2332
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2333
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2319
2334
|
if (props.description) {
|
|
2320
2335
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2321
2336
|
if (detectedPhrase && bools.checkExpired) {
|
package/dist/esm/xmpp.mjs
CHANGED
|
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
var __async = (__this, __arguments, generator) => {
|
|
21
33
|
return new Promise((resolve, reject) => {
|
|
22
34
|
var fulfilled = (value) => {
|
|
@@ -144,17 +156,17 @@ var TYPES = {
|
|
|
144
156
|
"X": "Experimental Product (Non-Operational)"
|
|
145
157
|
};
|
|
146
158
|
var STATUS_CORRELATIONS = [
|
|
147
|
-
{ type: "Update", forward: "Updated", cancel: false },
|
|
148
|
-
{ type: "Cancel", forward: "Cancelled", cancel: true },
|
|
149
|
-
{ type: "Alert", forward: "Issued", cancel: false },
|
|
150
|
-
{ type: "Updated", forward: "Updated", cancel: false },
|
|
151
|
-
{ type: "Expired", forward: "Expired", cancel: true },
|
|
152
|
-
{ type: "Issued", forward: "Issued", cancel: false },
|
|
153
|
-
{ type: "Extended", forward: "Updated", cancel: false },
|
|
154
|
-
{ type: "Correction", forward: "Updated", cancel: false },
|
|
155
|
-
{ type: "Upgraded", forward: "Upgraded", cancel: false },
|
|
156
|
-
{ type: "Cancelled", forward: "Cancelled", cancel: true },
|
|
157
|
-
{ type: "Routine", forward: "Routine", cancel: false }
|
|
159
|
+
{ type: "Update", forward: "Updated", cancel: false, update: true, new: false },
|
|
160
|
+
{ type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
161
|
+
{ type: "Alert", forward: "Issued", cancel: false, update: false, new: true },
|
|
162
|
+
{ type: "Updated", forward: "Updated", cancel: false, update: true, new: false },
|
|
163
|
+
{ type: "Expired", forward: "Expired", cancel: true, update: false, new: false },
|
|
164
|
+
{ type: "Issued", forward: "Issued", cancel: false, update: false, new: true },
|
|
165
|
+
{ type: "Extended", forward: "Updated", cancel: false, update: true, new: false },
|
|
166
|
+
{ type: "Correction", forward: "Updated", cancel: false, update: true, new: false },
|
|
167
|
+
{ type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false },
|
|
168
|
+
{ type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false },
|
|
169
|
+
{ type: "Routine", forward: "Routine", cancel: false, update: true, new: false }
|
|
158
170
|
];
|
|
159
171
|
|
|
160
172
|
// src/dictionaries/offshore.ts
|
|
@@ -2314,8 +2326,11 @@ var EventParser = class {
|
|
|
2314
2326
|
if (key === "checkExpired" && setting && new Date(props == null ? void 0 : props.expires).getTime() < (/* @__PURE__ */ new Date()).getTime()) return false;
|
|
2315
2327
|
}
|
|
2316
2328
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
2329
|
+
originalEvent.properties.is_updated = statusCorrelation ? statusCorrelation.update == true && bools.checkExpired : false;
|
|
2330
|
+
originalEvent.properties.is_issued = statusCorrelation ? statusCorrelation.new == true && bools.checkExpired : false;
|
|
2317
2331
|
originalEvent.properties.is_cancelled = statusCorrelation ? statusCorrelation.cancel == true && bools.checkExpired : false;
|
|
2318
|
-
originalEvent
|
|
2332
|
+
const _e2 = originalEvent, { performance: performance2 } = _e2, eventWithoutPerformance = __objRest(_e2, ["performance"]);
|
|
2333
|
+
originalEvent.hash = packages.crypto.createHash("md5").update(JSON.stringify(eventWithoutPerformance)).digest("hex");
|
|
2319
2334
|
if (props.description) {
|
|
2320
2335
|
const detectedPhrase = definitions.cancelSignatures.find((sig) => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
2321
2336
|
if (detectedPhrase && bools.checkExpired) {
|
package/package.json
CHANGED
|
@@ -92,18 +92,18 @@ export const TYPES: Record<string, string> = {
|
|
|
92
92
|
"X": "Experimental Product (Non-Operational)",
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export const STATUS_CORRELATIONS: {type: string, forward: string, cancel: boolean}[] = [
|
|
96
|
-
{type: "Update", forward: "Updated", cancel: false},
|
|
97
|
-
{type: "Cancel", forward: "Cancelled", cancel: true},
|
|
98
|
-
{type: "Alert", forward: "Issued", cancel: false},
|
|
99
|
-
{type: "Updated", forward: "Updated", cancel: false},
|
|
100
|
-
{type: "Expired", forward: "Expired", cancel: true},
|
|
101
|
-
{type: "Issued", forward: "Issued", cancel: false},
|
|
102
|
-
{type: "Extended", forward: "Updated", cancel: false},
|
|
103
|
-
{type: "Correction", forward: "Updated", cancel: false},
|
|
104
|
-
{type: "Upgraded", forward: "Upgraded", cancel: false},
|
|
105
|
-
{type: "Cancelled", forward: "Cancelled", cancel: true},
|
|
106
|
-
{type: "Routine", forward: "Routine", cancel: false},
|
|
95
|
+
export const STATUS_CORRELATIONS: {type: string, forward: string, cancel: boolean, update: boolean, new: boolean}[] = [
|
|
96
|
+
{type: "Update", forward: "Updated", cancel: false, update: true, new: false},
|
|
97
|
+
{type: "Cancel", forward: "Cancelled", cancel: true, update: false, new: false},
|
|
98
|
+
{type: "Alert", forward: "Issued", cancel: false, update: false, new: true},
|
|
99
|
+
{type: "Updated", forward: "Updated", cancel: false, update: true, new: false},
|
|
100
|
+
{type: "Expired", forward: "Expired", cancel: true, update: false, new: false},
|
|
101
|
+
{type: "Issued", forward: "Issued", cancel: false, update: false, new: true},
|
|
102
|
+
{type: "Extended", forward: "Updated", cancel: false, update: true, new: false},
|
|
103
|
+
{type: "Correction", forward: "Updated", cancel: false, update: true, new: false},
|
|
104
|
+
{type: "Upgraded", forward: "Upgraded", cancel: false, update: true, new: false},
|
|
105
|
+
{type: "Cancelled", forward: "Cancelled", cancel: true, update: false, new: false},
|
|
106
|
+
{type: "Routine", forward: "Routine", cancel: false, update: true, new: false},
|
|
107
107
|
]
|
|
108
108
|
|
|
109
109
|
|
package/src/parsers/events.ts
CHANGED
|
@@ -180,8 +180,11 @@ export class EventParser {
|
|
|
180
180
|
if (key === 'checkExpired' && setting && new Date(props?.expires).getTime() < new Date().getTime()) return false;
|
|
181
181
|
}
|
|
182
182
|
originalEvent.properties.action_type = statusCorrelation ? statusCorrelation.forward : originalEvent.properties.action_type;
|
|
183
|
+
originalEvent.properties.is_updated = statusCorrelation ? (statusCorrelation.update == true && bools.checkExpired) : false;
|
|
184
|
+
originalEvent.properties.is_issued = statusCorrelation ? (statusCorrelation.new == true && bools.checkExpired) : false;
|
|
183
185
|
originalEvent.properties.is_cancelled = statusCorrelation ? (statusCorrelation.cancel == true && bools.checkExpired) : false;
|
|
184
|
-
|
|
186
|
+
const { performance, ...eventWithoutPerformance } = originalEvent;
|
|
187
|
+
originalEvent.hash = loader.packages.crypto.createHash('md5').update(JSON.stringify(eventWithoutPerformance)).digest('hex');
|
|
185
188
|
if (props.description) {
|
|
186
189
|
const detectedPhrase = loader.definitions.cancelSignatures.find(sig => props.description.toLowerCase().includes(sig.toLowerCase()));
|
|
187
190
|
if (detectedPhrase && bools.checkExpired) { originalEvent.properties.action_type = 'Cancel'; originalEvent.properties.is_cancelled = true; return false; }
|