@diia-inhouse/test 6.3.1 → 6.3.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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/documents/eResidency.js +15 -0
- package/dist/interfaces/documents/eResidency.js.map +1 -0
- package/dist/stubs/documents/eResidency.js +48 -0
- package/dist/stubs/documents/eResidency.js.map +1 -0
- package/dist/types/interfaces/documents/eResidency.d.ts +77 -0
- package/dist/types/stubs/documents/eResidency.d.ts +3 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,8 +20,8 @@ class TestKit {
|
|
|
20
20
|
constructor() {
|
|
21
21
|
this.random = new randomGenerator_1.default();
|
|
22
22
|
this.session = new sessionGenerator_1.default(this.random);
|
|
23
|
-
this.public = new publicServiceGenerator_1.default();
|
|
24
23
|
this.docs = new documentsGenerator_1.default();
|
|
24
|
+
this.public = new publicServiceGenerator_1.default();
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.default = TestKit;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAqD;AACrD,sFAA6D;AAC7D,wEAA+C;AAC/C,0EAAiD;AAEjD,+BAA8D;AAArD,iGAAA,SAAS,OAAA;AAAE,oGAAA,YAAY,OAAA;AAAE,oGAAA,YAAY,OAAA;AAE9C,MAAqB,OAAO;IACf,OAAO,CAAkB;IAEzB,MAAM,CAAiB;IAEvB,IAAI,CAAoB;IAExB,MAAM,CAAwB;IAEvC;QACI,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAe,EAAE,CAAA;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,0BAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8EAAqD;AACrD,sFAA6D;AAC7D,wEAA+C;AAC/C,0EAAiD;AAEjD,+BAA8D;AAArD,iGAAA,SAAS,OAAA;AAAE,oGAAA,YAAY,OAAA;AAAE,oGAAA,YAAY,OAAA;AAE9C,MAAqB,OAAO;IACf,OAAO,CAAkB;IAEzB,MAAM,CAAiB;IAEvB,IAAI,CAAoB;IAExB,MAAM,CAAwB;IAEvC;QACI,IAAI,CAAC,MAAM,GAAG,IAAI,yBAAe,EAAE,CAAA;QACnC,IAAI,CAAC,OAAO,GAAG,IAAI,0BAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,IAAI,GAAG,IAAI,4BAAkB,EAAE,CAAA;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,gCAAsB,EAAE,CAAA;IAC9C,CAAC;CACJ;AAfD,0BAeC;AAED,uDAAgE;AAAvD,qIAAA,OAAO,OAAoB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentType = exports.ResidentshipStatus = void 0;
|
|
4
|
+
var ResidentshipStatus;
|
|
5
|
+
(function (ResidentshipStatus) {
|
|
6
|
+
ResidentshipStatus[ResidentshipStatus["NotActive"] = 0] = "NotActive";
|
|
7
|
+
ResidentshipStatus[ResidentshipStatus["Active"] = 1] = "Active";
|
|
8
|
+
ResidentshipStatus[ResidentshipStatus["Terminated"] = 2] = "Terminated";
|
|
9
|
+
})(ResidentshipStatus || (exports.ResidentshipStatus = ResidentshipStatus = {}));
|
|
10
|
+
var DocumentType;
|
|
11
|
+
(function (DocumentType) {
|
|
12
|
+
DocumentType["EResidency"] = "e-residency";
|
|
13
|
+
DocumentType["EResidentPassport"] = "e-resident-passport";
|
|
14
|
+
})(DocumentType || (exports.DocumentType = DocumentType = {}));
|
|
15
|
+
//# sourceMappingURL=eResidency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eResidency.js","sourceRoot":"","sources":["../../../src/interfaces/documents/eResidency.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,qEAAa,CAAA;IACb,+DAAU,CAAA;IACV,uEAAc,CAAA;AAClB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,0CAA0B,CAAA;IAC1B,yDAAyC,CAAA;AAC7C,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const documents_1 = require("../../interfaces/documents");
|
|
7
|
+
const eResidency_1 = require("../../interfaces/documents/eResidency");
|
|
8
|
+
const signature_1 = __importDefault(require("../signature"));
|
|
9
|
+
const eResidency = {
|
|
10
|
+
birthCityEN: 'Bratislava',
|
|
11
|
+
birthCityUA: 'Братислава',
|
|
12
|
+
birthCountryCode: 'SVK',
|
|
13
|
+
birthCountryEN: 'Slovakia',
|
|
14
|
+
birthCountryUA: 'Словаччина',
|
|
15
|
+
birthDate: '12.05.1996',
|
|
16
|
+
citizenshipCountryCode: 'SVK',
|
|
17
|
+
citizenshipCountryEN: 'SVK',
|
|
18
|
+
citizenshipCountryUA: '',
|
|
19
|
+
docNumber: '2222-111111',
|
|
20
|
+
docStatus: documents_1.DocStatus.Ok,
|
|
21
|
+
email: 'john.doe@email.com',
|
|
22
|
+
expireDate: new Date().toISOString(),
|
|
23
|
+
firstNameEN: 'John',
|
|
24
|
+
firstNameUA: 'Джон',
|
|
25
|
+
gender: 'M',
|
|
26
|
+
id: '9c3f7d54-c84b-405b-8959-12c85f02e40b',
|
|
27
|
+
issueDate: '12.05.2023',
|
|
28
|
+
itn: '2432900063',
|
|
29
|
+
lastNameEN: 'Doe',
|
|
30
|
+
lastNameUA: 'Доу',
|
|
31
|
+
passportDocNumber: '2222-111111',
|
|
32
|
+
phoneNumber: '+533443223431',
|
|
33
|
+
residenceBuilding: '123',
|
|
34
|
+
residenceCityEN: 'Kyiv',
|
|
35
|
+
residenceCityUA: 'Київ',
|
|
36
|
+
residenceCountryCode: 'UA',
|
|
37
|
+
residenceCountryEN: 'Ukraine',
|
|
38
|
+
residenceCountryUA: 'Україна',
|
|
39
|
+
residenceStreet: '',
|
|
40
|
+
residentshipStatus: eResidency_1.ResidentshipStatus.Active,
|
|
41
|
+
signature: signature_1.default,
|
|
42
|
+
patronymicEN: '',
|
|
43
|
+
patronymicUA: '',
|
|
44
|
+
residenceApartment: '',
|
|
45
|
+
residencePostalCode: '',
|
|
46
|
+
};
|
|
47
|
+
exports.default = eResidency;
|
|
48
|
+
//# sourceMappingURL=eResidency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eResidency.js","sourceRoot":"","sources":["../../../src/stubs/documents/eResidency.ts"],"names":[],"mappings":";;;;;AAAA,0DAAsD;AACtD,sEAAsF;AACtF,6DAAoC;AAEpC,MAAM,UAAU,GAAe;IAC3B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,UAAU;IAC1B,cAAc,EAAE,YAAY;IAC5B,SAAS,EAAE,YAAY;IACvB,sBAAsB,EAAE,KAAK;IAC7B,oBAAoB,EAAE,KAAK;IAC3B,oBAAoB,EAAE,EAAE;IACxB,SAAS,EAAE,aAAa;IACxB,SAAS,EAAE,qBAAS,CAAC,EAAE;IACvB,KAAK,EAAE,oBAAoB;IAC3B,UAAU,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;IACpC,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,MAAM;IACnB,MAAM,EAAE,GAAG;IACX,EAAE,EAAE,sCAAsC;IAC1C,SAAS,EAAE,YAAY;IACvB,GAAG,EAAE,YAAY;IACjB,UAAU,EAAE,KAAK;IACjB,UAAU,EAAE,KAAK;IACjB,iBAAiB,EAAE,aAAa;IAChC,WAAW,EAAE,eAAe;IAC5B,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,oBAAoB,EAAE,IAAI;IAC1B,kBAAkB,EAAE,SAAS;IAC7B,kBAAkB,EAAE,SAAS;IAC7B,eAAe,EAAE,EAAE;IACnB,kBAAkB,EAAE,+BAAkB,CAAC,MAAM;IAC7C,SAAS,EAAT,mBAAS;IACT,YAAY,EAAE,EAAE;IAChB,YAAY,EAAE,EAAE;IAChB,kBAAkB,EAAE,EAAE;IACtB,mBAAmB,EAAE,EAAE;CAC1B,CAAA;AAED,kBAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { DocumentMetaData } from '.';
|
|
2
|
+
export declare enum ResidentshipStatus {
|
|
3
|
+
NotActive = 0,
|
|
4
|
+
Active = 1,
|
|
5
|
+
Terminated = 2
|
|
6
|
+
}
|
|
7
|
+
export declare enum DocumentType {
|
|
8
|
+
EResidency = "e-residency",
|
|
9
|
+
EResidentPassport = "e-resident-passport"
|
|
10
|
+
}
|
|
11
|
+
export interface EResidency extends DocumentMetaData {
|
|
12
|
+
documentType?: DocumentType.EResidency;
|
|
13
|
+
birthCityEN: string;
|
|
14
|
+
birthCityUA: string;
|
|
15
|
+
birthCountryCode: string;
|
|
16
|
+
birthCountryEN: string;
|
|
17
|
+
birthCountryUA: string;
|
|
18
|
+
birthDate: string;
|
|
19
|
+
citizenshipCountryCode: string;
|
|
20
|
+
citizenshipCountryEN: string;
|
|
21
|
+
citizenshipCountryUA: string;
|
|
22
|
+
docNumber: string;
|
|
23
|
+
email: string;
|
|
24
|
+
expireDate: string;
|
|
25
|
+
firstNameEN: string;
|
|
26
|
+
firstNameUA: string;
|
|
27
|
+
gender: string;
|
|
28
|
+
id: string;
|
|
29
|
+
issueDate: string;
|
|
30
|
+
itn: string;
|
|
31
|
+
lastNameEN: string;
|
|
32
|
+
lastNameUA: string;
|
|
33
|
+
passportDocNumber: string;
|
|
34
|
+
patronymicEN?: string;
|
|
35
|
+
patronymicUA?: string;
|
|
36
|
+
phoneNumber: string;
|
|
37
|
+
residentshipStatus: ResidentshipStatus;
|
|
38
|
+
residenceApartment?: string;
|
|
39
|
+
residenceBuilding: string;
|
|
40
|
+
residenceCityEN: string;
|
|
41
|
+
residenceCityUA: string;
|
|
42
|
+
residenceCountryCode: string;
|
|
43
|
+
residenceCountryEN: string;
|
|
44
|
+
residenceCountryUA: string;
|
|
45
|
+
residencePostalCode?: string;
|
|
46
|
+
residenceStreet: string;
|
|
47
|
+
signature: string;
|
|
48
|
+
}
|
|
49
|
+
export interface EResidentPassport extends DocumentMetaData {
|
|
50
|
+
documentType?: DocumentType.EResidentPassport;
|
|
51
|
+
birthCountryCode: string;
|
|
52
|
+
birthCountryEN: string;
|
|
53
|
+
birthCountryUA: string;
|
|
54
|
+
birthDate: string;
|
|
55
|
+
citizenshipCountryCode: string;
|
|
56
|
+
citizenshipCountryEN: string;
|
|
57
|
+
citizenshipCountryUA: string;
|
|
58
|
+
docNumber: string;
|
|
59
|
+
expireDate: string;
|
|
60
|
+
firstNameEN: string;
|
|
61
|
+
firstNameUA: string;
|
|
62
|
+
gender: string;
|
|
63
|
+
id: string;
|
|
64
|
+
issueDate: string;
|
|
65
|
+
issuingAuthority: string;
|
|
66
|
+
issuingCountryCode: string;
|
|
67
|
+
issuingCountryEN: string;
|
|
68
|
+
issuingCountryUA: string;
|
|
69
|
+
itn: string;
|
|
70
|
+
lastNameEN: string;
|
|
71
|
+
lastNameUA: string;
|
|
72
|
+
patronymicEN?: string;
|
|
73
|
+
patronymicUA?: string;
|
|
74
|
+
photo: string;
|
|
75
|
+
signature: string;
|
|
76
|
+
type: string;
|
|
77
|
+
}
|