@alanszp/integrations-common 20.0.2 → 20.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/dist/helpers/generateChecksum.js +1 -2
- package/dist/helpers/generateChecksum.js.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/models/BaseIntegrationHistory.js +1 -1
- package/dist/models/BaseIntegrationHistory.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +2 -2
- package/dist/types.js.map +1 -1
- package/dist/views/integrationView.js +2 -3
- package/dist/views/integrationView.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateChecksum =
|
|
3
|
+
exports.generateChecksum = generateChecksum;
|
|
4
4
|
const crypto_1 = require("crypto");
|
|
5
5
|
const lodash_1 = require("lodash");
|
|
6
6
|
function generateChecksum(employee, fieldsToIgnore) {
|
|
@@ -26,5 +26,4 @@ function generateChecksum(employee, fieldsToIgnore) {
|
|
|
26
26
|
.join("|");
|
|
27
27
|
return hash.update(employeeString).digest("base64").slice(0, 8);
|
|
28
28
|
}
|
|
29
|
-
exports.generateChecksum = generateChecksum;
|
|
30
29
|
//# sourceMappingURL=generateChecksum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateChecksum.js","sourceRoot":"","sources":["../../src/helpers/generateChecksum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generateChecksum.js","sourceRoot":"","sources":["../../src/helpers/generateChecksum.ts"],"names":[],"mappings":";;AAGA,4CA4BC;AA/BD,mCAAoC;AACpC,mCAA0E;AAE1E,SAAgB,gBAAgB,CAC9B,QAAW,EACX,cAA6B;IAE7B,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,MAAM,CAAC,CAAC;IAChC,MAAM,YAAY,GAAG,cAAc,IAAI,IAAI,GAAG,EAAW,CAAC;IAC1D,MAAM,cAAc,GAAG,IAAA,cAAK,EAAC,IAAA,aAAI,EAAC,QAAQ,CAAgB,CAAC;SACxD,IAAI,EAAE;SACN,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACvC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACX,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,IAAA,iBAAQ,EAAC,KAAK,CAAC,IAAI,IAAA,gBAAO,EAAC,KAAK,CAAC,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC;QAED,IAAI,IAAA,kBAAS,EAAC,KAAK,CAAC,EAAE,CAAC;YACrB,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QAC3B,CAAC;QAED,IAAI,IAAA,cAAK,EAAC,KAAK,CAAC,EAAE,CAAC;YACjB,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;SACD,KAAK,EAAE;SACP,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAClE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,kEAAgD;AAChD,0DAAwC;AACxC,0CAAwB;AACxB,6DAA2C"}
|
|
@@ -16,6 +16,7 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const typeorm_2 = require("typeorm");
|
|
17
17
|
class BaseIntegrationHistory extends typeorm_1.BaseEntityUuid {
|
|
18
18
|
}
|
|
19
|
+
exports.BaseIntegrationHistory = BaseIntegrationHistory;
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, typeorm_2.Column)(),
|
|
21
22
|
(0, class_validator_1.IsString)(),
|
|
@@ -46,5 +47,4 @@ __decorate([
|
|
|
46
47
|
(0, class_validator_1.IsString)(),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
49
|
], BaseIntegrationHistory.prototype, "executedBy", void 0);
|
|
49
|
-
exports.BaseIntegrationHistory = BaseIntegrationHistory;
|
|
50
50
|
//# sourceMappingURL=BaseIntegrationHistory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseIntegrationHistory.js","sourceRoot":"","sources":["../../src/models/BaseIntegrationHistory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAkD;AAClD,oCAAsE;AACtE,qDAAuE;AACvE,qCAAmD;AAEnD,MAAsB,sBAAuB,SAAQ,wBAAc;CAwBlE;
|
|
1
|
+
{"version":3,"file":"BaseIntegrationHistory.js","sourceRoot":"","sources":["../../src/models/BaseIntegrationHistory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAkD;AAClD,oCAAsE;AACtE,qDAAuE;AACvE,qCAAmD;AAEnD,MAAsB,sBAAuB,SAAQ,wBAAc;CAwBlE;AAxBD,wDAwBC;AArBQ;IAFN,IAAA,gBAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;6DACkB;AAItB;IAFN,IAAA,gBAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;qEAC0B;AAI9B;IAFN,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClE,IAAA,wBAAM,EAAC,yBAAiB,CAAC;;sDACO;AAI1B;IAFN,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IACzB,IAAA,4BAAU,GAAE;;sDAC0B;AAIhC;IAFN,IAAA,0BAAgB,GAAE;IAClB,IAAA,wBAAM,GAAE;8BACU,IAAI;0DAAC;AAIjB;IAFN,IAAA,gBAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;0DACe"}
|
package/dist/types.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare enum SyncError {
|
|
|
8
8
|
VALIDATION_SERVER = "validation_server",
|
|
9
9
|
CREATION_DISABLED = "creation_disabled"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type IntegrationResultError = {
|
|
12
12
|
type: SyncError;
|
|
13
13
|
userReference: string;
|
|
14
14
|
metadata: string[];
|
package/dist/types.js
CHANGED
|
@@ -5,12 +5,12 @@ var IntegrationStatus;
|
|
|
5
5
|
(function (IntegrationStatus) {
|
|
6
6
|
IntegrationStatus["SUCCESS"] = "success";
|
|
7
7
|
IntegrationStatus["ERROR"] = "error";
|
|
8
|
-
})(IntegrationStatus
|
|
8
|
+
})(IntegrationStatus || (exports.IntegrationStatus = IntegrationStatus = {}));
|
|
9
9
|
var SyncError;
|
|
10
10
|
(function (SyncError) {
|
|
11
11
|
SyncError["MISSING_FIELDS"] = "missing";
|
|
12
12
|
SyncError["VALIDATION"] = "validation";
|
|
13
13
|
SyncError["VALIDATION_SERVER"] = "validation_server";
|
|
14
14
|
SyncError["CREATION_DISABLED"] = "creation_disabled";
|
|
15
|
-
})(SyncError
|
|
15
|
+
})(SyncError || (exports.SyncError = SyncError = {}));
|
|
16
16
|
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,oCAAe,CAAA;AACjB,CAAC,EAHW,iBAAiB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,oCAAe,CAAA;AACjB,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAED,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,uCAA0B,CAAA;IAC1B,sCAAyB,CAAA;IACzB,oDAAuC,CAAA;IACvC,oDAAuC,CAAA;AACzC,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.syncIntegrationHistoryView = syncIntegrationHistoryView;
|
|
4
|
+
exports.syncIntegrationResultsView = syncIntegrationResultsView;
|
|
4
5
|
function syncIntegrationHistoryView(history) {
|
|
5
6
|
return {
|
|
6
7
|
id: history.id,
|
|
@@ -11,7 +12,6 @@ function syncIntegrationHistoryView(history) {
|
|
|
11
12
|
details: history.result.details,
|
|
12
13
|
};
|
|
13
14
|
}
|
|
14
|
-
exports.syncIntegrationHistoryView = syncIntegrationHistoryView;
|
|
15
15
|
function syncIntegrationResultsView(result) {
|
|
16
16
|
const { totals, details } = result.getResults();
|
|
17
17
|
return {
|
|
@@ -21,5 +21,4 @@ function syncIntegrationResultsView(result) {
|
|
|
21
21
|
context: result.getContext(),
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
exports.syncIntegrationResultsView = syncIntegrationResultsView;
|
|
25
24
|
//# sourceMappingURL=integrationView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationView.js","sourceRoot":"","sources":["../../src/views/integrationView.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"integrationView.js","sourceRoot":"","sources":["../../src/views/integrationView.ts"],"names":[],"mappings":";;AAGA,gEAWC;AAED,gEAUC;AAvBD,SAAgB,0BAA0B,CACxC,OAAW;IAEX,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM;QAC7B,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,OAAO;KAChC,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,MAAkC;IAElC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;IAChD,OAAO;QACL,MAAM;QACN,OAAO;QACP,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE;QAC1B,OAAO,EAAE,MAAM,CAAC,UAAU,EAAE;KAC7B,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanszp/integrations-common",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.3",
|
|
4
4
|
"description": "Common logic shared between integrations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/jest": "^29.2.3",
|
|
24
|
-
"@types/node": "^
|
|
24
|
+
"@types/node": "^24.0.0",
|
|
25
25
|
"babel-jest": "^29.7.0",
|
|
26
26
|
"jest": "^29.7.0",
|
|
27
27
|
"ts-node": "^10.0.0",
|
|
28
28
|
"tslint": "^6.1.3",
|
|
29
|
-
"typescript": "^
|
|
29
|
+
"typescript": "^5.9.3"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@alanszp/logger": "^20.0.
|
|
33
|
-
"@alanszp/typeorm": "^20.0.
|
|
32
|
+
"@alanszp/logger": "^20.0.3",
|
|
33
|
+
"@alanszp/typeorm": "^20.0.3",
|
|
34
34
|
"class-validator": "^0.14.1",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"typeorm": "^0.3.28"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fa09ad9048c3429f0ac03eda8c922c6b68fc645e"
|
|
39
39
|
}
|