ndhm-hrp 2.2.0 → 2.2.2
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/lib/classes/profile.js +1 -1
- package/lib/classes/profile.js.map +1 -1
- package/lib/index.d.ts +6 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +11 -1
- package/lib/index.js.map +1 -1
- package/package.json +8 -2
package/lib/classes/profile.js
CHANGED
|
@@ -26,7 +26,7 @@ class Profile extends header_1.default {
|
|
|
26
26
|
this.onProfile = (config) => __awaiter(this, void 0, void 0, function* () {
|
|
27
27
|
const headers = this.headers(config.healthId);
|
|
28
28
|
// const url = `${this.baseUrl}gateway/v0.5/patients/profile/on-share`;
|
|
29
|
-
const url = `${this.baseUrl}gateway/
|
|
29
|
+
const url = `${this.baseUrl}gateway/v1.0/patients/profile/on-share`;
|
|
30
30
|
const body = {
|
|
31
31
|
requestId: (0, uuid_1.v4)(),
|
|
32
32
|
timestamp: new Date().toISOString(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/classes/profile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,+BAAoC;AACpC,wDAAgC;AAEhC,MAAqB,OAAQ,SAAQ,gBAAM;IACzC,YAAY,QAAgB,EAAE,YAAoB;QAChD,KAAK,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAEhC;;;;WAIG;QACH,cAAS,GAAG,CAAO,MAMlB,EAAE,EAAE;YACH,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC9C,uEAAuE;YACvE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/classes/profile.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sDAA8B;AAC9B,+BAAoC;AACpC,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FLOW_REQUEST_INIT } from "./classes/consent-request";
|
|
12
12
|
import SubscriptionRequest, { HIU_SUBSCRIPTION_REQUEST, HIU_SUBSCRIPTION_REQUEST_ON_NOTIFY } from "./classes/subscription-request";
|
|
13
13
|
import Subscriptions, { HIU_SUBSCRIPTIONS_ON_NOTIFY } from "./classes/subscriptions";
|
|
14
|
-
export { Register, UserAuth, Link, Discovery, ConsentFlow, Profile, AbhaNumber, DataFlow, HealthInformation, STATUS_RESPONSES_HEALTH_INFORMATION_NOTIFY, ConsentRequest, Patients, PurposeArray, HIU_CM_REQUEST, CONSENTFLOW_REQUEST_INIT, HIU_SUBSCRIPTION_REQUEST, HIU_SUBSCRIPTION_REQUEST_ON_NOTIFY, SubscriptionRequest, Subscriptions, HIU_SUBSCRIPTIONS_ON_NOTIFY };
|
|
14
|
+
export { Register, UserAuth, Link, Discovery, ConsentFlow, Profile, AbhaNumber, DataFlow, HealthInformation, STATUS_RESPONSES_HEALTH_INFORMATION_NOTIFY, ConsentRequest, Patients, PurposeArray, HIU_CM_REQUEST, CONSENTFLOW_REQUEST_INIT, HIU_SUBSCRIPTION_REQUEST, HIU_SUBSCRIPTION_REQUEST_ON_NOTIFY, SubscriptionRequest, Subscriptions, HIU_SUBSCRIPTIONS_ON_NOTIFY, };
|
|
15
|
+
export { default as JWEHelper } from "./classes/nhcx/utils/JWEHelper";
|
|
16
|
+
export { default as Participant } from "./classes/nhcx/Particpant";
|
|
17
|
+
export { default as NhcxOutGoingRequest } from "./classes/nhcx/hcx_outgoing";
|
|
18
|
+
export { default as NhcxIncommingRequest } from "./classes/nhcx/hcx_incomming";
|
|
19
|
+
export { default as Nhcx_opertions } from "./classes/nhcx/utils/Nhcx_opertions";
|
|
15
20
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ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AACjG,OAAO,mBAAmB,EAAE,EAAC,wBAAwB,EAAE,kCAAkC,EAAC,MAAM,gCAAgC,CAAC;AACjI,OAAO,aAAa,EAAE,EAAC,2BAA2B,EAAC,MAAO,yBAAyB,CAAC;AAMpF,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,WAAW,EACX,OAAO,EACP,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,0CAA0C,EAC1C,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,wBAAwB,EACxB,wBAAwB,EACxB,kCAAkC,EAClC,mBAAmB,EACnB,aAAa,EACb,2BAA2B,GAI5B,CAAC;AAGF,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,gCAAgC,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAC5E,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,8BAA8B,CAAA;AAC5E,OAAO,EAAC,OAAO,IAAI,cAAc,EAAC,MAAM,qCAAqC,CAAA"}
|
package/lib/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.Subscriptions = exports.SubscriptionRequest = exports.PurposeArray = exports.Patients = exports.ConsentRequest = exports.HealthInformation = exports.DataFlow = exports.AbhaNumber = exports.Profile = exports.ConsentFlow = exports.Discovery = exports.Link = exports.UserAuth = exports.Register = void 0;
|
|
25
|
+
exports.Nhcx_opertions = exports.NhcxIncommingRequest = exports.NhcxOutGoingRequest = exports.Participant = exports.JWEHelper = exports.Subscriptions = exports.SubscriptionRequest = exports.PurposeArray = exports.Patients = exports.ConsentRequest = exports.HealthInformation = exports.DataFlow = exports.AbhaNumber = exports.Profile = exports.ConsentFlow = exports.Discovery = exports.Link = exports.UserAuth = exports.Register = void 0;
|
|
26
26
|
const register_1 = __importDefault(require("./classes/register"));
|
|
27
27
|
exports.Register = register_1.default;
|
|
28
28
|
const userAuth_1 = __importDefault(require("./classes/userAuth"));
|
|
@@ -50,4 +50,14 @@ const subscription_request_1 = __importDefault(require("./classes/subscription-r
|
|
|
50
50
|
exports.SubscriptionRequest = subscription_request_1.default;
|
|
51
51
|
const subscriptions_1 = __importDefault(require("./classes/subscriptions"));
|
|
52
52
|
exports.Subscriptions = subscriptions_1.default;
|
|
53
|
+
var JWEHelper_1 = require("./classes/nhcx/utils/JWEHelper");
|
|
54
|
+
Object.defineProperty(exports, "JWEHelper", { enumerable: true, get: function () { return __importDefault(JWEHelper_1).default; } });
|
|
55
|
+
var Particpant_1 = require("./classes/nhcx/Particpant");
|
|
56
|
+
Object.defineProperty(exports, "Participant", { enumerable: true, get: function () { return __importDefault(Particpant_1).default; } });
|
|
57
|
+
var hcx_outgoing_1 = require("./classes/nhcx/hcx_outgoing");
|
|
58
|
+
Object.defineProperty(exports, "NhcxOutGoingRequest", { enumerable: true, get: function () { return __importDefault(hcx_outgoing_1).default; } });
|
|
59
|
+
var hcx_incomming_1 = require("./classes/nhcx/hcx_incomming");
|
|
60
|
+
Object.defineProperty(exports, "NhcxIncommingRequest", { enumerable: true, get: function () { return __importDefault(hcx_incomming_1).default; } });
|
|
61
|
+
var Nhcx_opertions_1 = require("./classes/nhcx/utils/Nhcx_opertions");
|
|
62
|
+
Object.defineProperty(exports, "Nhcx_opertions", { enumerable: true, get: function () { return __importDefault(Nhcx_opertions_1).default; } });
|
|
53
63
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAmBxC,mBAnBK,kBAAQ,CAmBL;AAlBV,kEAA0C;AAmBxC,mBAnBK,kBAAQ,CAmBL;AAlBV,0DAAkC;AAmBhC,eAnBK,cAAI,CAmBL;AAlBN,oEAA4C;AAmB1C,oBAnBK,mBAAS,CAmBL;AAlBX,0EAAiD;AAmB/C,sBAnBK,sBAAW,CAmBL;AAlBb,gEAAwC;AAmBtC,kBAnBK,iBAAO,CAmBL;AAlBT,0DAAwC;AAmBtC,qBAnBK,cAAU,CAmBL;AAlBZ,oEAA2C;AAmBzC,mBAnBK,mBAAQ,CAmBL;AAlBV,kEAA0C;AAsBxC,mBAtBK,kBAAQ,CAsBL;AArBV,sFAA2H;AAkBzH,4BAlBK,4BAAiB,CAkBL;AAjBnB,6EAAiG;AAmB/F,yBAnBK,yBAAc,CAmBL;AAEd,6FArBsB,8BAAY,OAqBtB;AApBd,0FAAiI;AAyB/H,8BAzBK,8BAAmB,CAyBL;AAxBrB,4EAAoF;AAyBlF,wBAzBK,uBAAa,CAyBL;AAQf,4DAAmE;AAA3D,uHAAA,OAAO,OAAa;AAC5B,wDAAkE;AAAzD,0HAAA,OAAO,OAAe;AAC/B,4DAA4E;AAAnE,oIAAA,OAAO,OAAuB;AACvC,8DAA4E;AAApE,sIAAA,OAAO,OAAwB;AACvC,sEAA6E;AAArE,iIAAA,OAAO,OAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ndhm-hrp",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": "This is ndhm-hpr",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -8,17 +8,23 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"axios": "^0.23.0",
|
|
11
|
+
"jose": "^5.2.4",
|
|
11
12
|
"moment": "^2.29.1",
|
|
13
|
+
"node-jose": "^2.2.0",
|
|
14
|
+
"node-rsa": "^1.1.1",
|
|
12
15
|
"request": "^2.88.2",
|
|
13
16
|
"uuid": "^8.3.2"
|
|
14
17
|
},
|
|
15
18
|
"devDependencies": {
|
|
19
|
+
"@types/node-jose": "^1.1.13",
|
|
16
20
|
"@types/request": "^2.48.7",
|
|
17
21
|
"@types/uuid": "^8.3.1",
|
|
22
|
+
"dotenv": "^16.4.5",
|
|
18
23
|
"typescript": "^4.4.4"
|
|
19
24
|
},
|
|
20
25
|
"scripts": {
|
|
21
|
-
"dev": "tsc
|
|
26
|
+
"dev": "tsc",
|
|
27
|
+
"build": "tsc"
|
|
22
28
|
},
|
|
23
29
|
"repository": {
|
|
24
30
|
"type": "git",
|