@diia-inhouse/test 6.4.0 → 6.6.4

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/mock.js CHANGED
@@ -2,6 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mockInstance = exports.mockAnyClass = exports.mockClass = void 0;
4
4
  const jest_mock_1 = require("jest-mock");
5
+ /**
6
+ * @deprecated
7
+ * This function is not compatible with Vitest.
8
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
9
+ */
5
10
  function mockClass(classToMock) {
6
11
  const mocker = new jest_mock_1.ModuleMocker(global);
7
12
  const metadata = mocker.getMetadata(classToMock);
@@ -11,11 +16,21 @@ function mockClass(classToMock) {
11
16
  return mocker.generateFromMetadata(metadata);
12
17
  }
13
18
  exports.mockClass = mockClass;
19
+ /**
20
+ * @deprecated
21
+ * This function is not compatible with Vitest.
22
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
23
+ */
14
24
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
15
25
  function mockAnyClass(classToMock) {
16
26
  return mockClass(classToMock);
17
27
  }
18
28
  exports.mockAnyClass = mockAnyClass;
29
+ /**
30
+ * @deprecated
31
+ * This function is not compatible with Vitest.
32
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
33
+ */
19
34
  function mockInstance(classToMock, props = {}) {
20
35
  const mockedClass = mockClass(classToMock);
21
36
  const mockedInstance = new mockedClass();
package/dist/mock.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mock.js","sourceRoot":"","sources":["../src/mock.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AAEnD,SAAgB,SAAS,CAAsB,WAAc;IACzD,MAAM,MAAM,GAAG,IAAI,wBAAY,CAAC,MAAM,CAAC,CAAA;IAEvC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,gCAAgC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAA;IACvE,CAAC;IAED,OAA4B,MAAM,CAAC,oBAAoB,CAAI,QAAQ,CAAC,CAAA;AACxE,CAAC;AATD,8BASC;AAED,8DAA8D;AAC9D,SAAgB,YAAY,CAAsB,WAAc;IAC5D,OAAO,SAAS,CAAC,WAAW,CAAC,CAAA;AACjC,CAAC;AAFD,oCAEC;AAED,SAAgB,YAAY,CACxB,WAAc,EACd,QAAyD,EAAE;IAE3D,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,CAAA;IAC1C,MAAM,cAAc,GAAG,IAAI,WAAW,EAAE,CAAA;IAExC,MAAM,IAAI,GAAgB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAE5C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,CAAC,cAAc,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,cAAc,CAAA;AACzB,CAAC;AAdD,oCAcC"}
1
+ {"version":3,"file":"mock.js","sourceRoot":"","sources":["../src/mock.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AAEnD;;;;GAIG;AACH,SAAgB,SAAS,CAAsB,WAAc;IACzD,MAAM,MAAM,GAAG,IAAI,wBAAY,CAAC,MAAM,CAAC,CAAA;IAEvC,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;IAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,KAAK,CAAC,gCAAgC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAA;IACvE,CAAC;IAED,OAA4B,MAAM,CAAC,oBAAoB,CAAI,QAAQ,CAAC,CAAA;AACxE,CAAC;AATD,8BASC;AAED;;;;GAIG;AACH,8DAA8D;AAC9D,SAAgB,YAAY,CAAsB,WAAc;IAC5D,OAAO,SAAS,CAAC,WAAW,CAAC,CAAA;AACjC,CAAC;AAFD,oCAEC;AAED;;;;GAIG;AACH,SAAgB,YAAY,CACxB,WAAc,EACd,QAAyD,EAAE;IAE3D,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC,CAAA;IAC1C,MAAM,cAAc,GAAG,IAAI,WAAW,EAAE,CAAA;IAExC,MAAM,IAAI,GAAgB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAE5C,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;QACrB,MAAM,CAAC,cAAc,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,cAAc,CAAA;AACzB,CAAC;AAdD,oCAcC"}
@@ -36,8 +36,8 @@ const internalPassport = {
36
36
  department: '1455',
37
37
  taxpayerCard: {
38
38
  status: 1014,
39
- number: expect.any(String),
40
- creationDate: expect.any(String),
39
+ number: '1234567890',
40
+ creationDate: '01.01.2024',
41
41
  },
42
42
  };
43
43
  exports.default = internalPassport;
@@ -1 +1 @@
1
- {"version":3,"file":"internalPassport.js","sourceRoot":"","sources":["../../../src/stubs/documents/internalPassport.ts"],"names":[],"mappings":";;;;;AAAA,6CAAwC;AAExC,0DAAsD;AACtD,kFAA4F;AAC5F,qDAA4B;AAE5B,MAAM,gBAAgB,GAAqB;IACvC,SAAS,EAAE,qBAAS,CAAC,EAAE;IACvB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,WAAW;IACnB,EAAE,EAAE,IAAA,wBAAU,GAAE;IAChB,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,OAAO;IACpB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,QAAQ;IACrB,YAAY,EACR,kIAAkI;IACtI,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,SAAS;IACxB,aAAa,EAAE,SAAS;IACxB,KAAK,EAAL,eAAK;IACL,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,kGAAkG;IACxG,YAAY,EAAE,wCAAwC;IACtD,YAAY,EAAE,2CAA2C;IACzD,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,YAAY;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,IAAI,EAAE,+BAAY,CAAC,EAAE;IACrB,2BAA2B,EAAE,8EAA8E;IAC3G,0BAA0B,EAAE,8EAA8E;IAC1G,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE;QACV,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC;KACnC;CACJ,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"internalPassport.js","sourceRoot":"","sources":["../../../src/stubs/documents/internalPassport.ts"],"names":[],"mappings":";;;;;AAAA,6CAAwC;AAExC,0DAAsD;AACtD,kFAA4F;AAC5F,qDAA4B;AAE5B,MAAM,gBAAgB,GAAqB;IACvC,SAAS,EAAE,qBAAS,CAAC,EAAE;IACvB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,WAAW;IACnB,EAAE,EAAE,IAAA,wBAAU,GAAE;IAChB,UAAU,EAAE,KAAK;IACjB,WAAW,EAAE,OAAO;IACpB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,QAAQ;IACrB,YAAY,EACR,kIAAkI;IACtI,QAAQ,EAAE,GAAG;IACb,QAAQ,EAAE,GAAG;IACb,aAAa,EAAE,SAAS;IACxB,aAAa,EAAE,SAAS;IACxB,KAAK,EAAL,eAAK;IACL,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,kGAAkG;IACxG,YAAY,EAAE,wCAAwC;IACtD,YAAY,EAAE,2CAA2C;IACzD,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,YAAY;IAC5B,YAAY,EAAE,gBAAgB;IAC9B,IAAI,EAAE,+BAAY,CAAC,EAAE;IACrB,2BAA2B,EAAE,8EAA8E;IAC3G,0BAA0B,EAAE,8EAA8E;IAC1G,UAAU,EAAE,MAAM;IAClB,YAAY,EAAE;QACV,MAAM,EAAE,IAAI;QACZ,MAAM,EAAE,YAAY;QACpB,YAAY,EAAE,YAAY;KAC7B;CACJ,CAAA;AAED,kBAAe,gBAAgB,CAAA"}
@@ -1,5 +1,20 @@
1
1
  /// <reference types="jest" />
2
2
  import { ClassLike } from 'jest-mock';
3
+ /**
4
+ * @deprecated
5
+ * This function is not compatible with Vitest.
6
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
7
+ */
3
8
  export declare function mockClass<T extends ClassLike>(classToMock: T): jest.MockedClass<T>;
9
+ /**
10
+ * @deprecated
11
+ * This function is not compatible with Vitest.
12
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
13
+ */
4
14
  export declare function mockAnyClass<T extends ClassLike>(classToMock: T): jest.MockedClass<any>;
15
+ /**
16
+ * @deprecated
17
+ * This function is not compatible with Vitest.
18
+ * For Vitest compatibility, please use the 'vitest-mock-extended' package instead.
19
+ */
5
20
  export declare function mockInstance<T extends ClassLike>(classToMock: T, props?: Partial<Record<keyof InstanceType<T>, unknown>>): InstanceType<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diia-inhouse/test",
3
- "version": "6.4.0",
3
+ "version": "6.6.4",
4
4
  "description": "test-utils",
5
5
  "main": "dist/index.js",
6
6
  "author": "Diia",
@@ -56,17 +56,17 @@
56
56
  "type-fest": "4.18.3"
57
57
  },
58
58
  "devDependencies": {
59
- "@diia-inhouse/configs": "1.32.0",
59
+ "@diia-inhouse/configs": "2.2.0",
60
60
  "@diia-inhouse/eslint-config": "5.1.0",
61
61
  "@diia-inhouse/types": "6.33.0",
62
- "@types/lodash": "4.17.6",
62
+ "@types/lodash": "4.17.12",
63
63
  "@types/luxon": "3.4.2",
64
64
  "bson": "6.2.0",
65
65
  "lockfile-lint": "4.14.0",
66
66
  "madge": "7.0.0",
67
67
  "mongoose": "8.4.4",
68
68
  "rimraf": "5.0.7",
69
- "ts-proto": "1.181.0"
69
+ "ts-proto": "1.181.2"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@diia-inhouse/types": ">=3.4.0",
@@ -79,7 +79,7 @@
79
79
  }
80
80
  },
81
81
  "resolutions": {
82
- "@babel/traverse": "7.23.2"
82
+ "@babel/traverse": "7.25.9"
83
83
  },
84
84
  "jest": {
85
85
  "preset": "@diia-inhouse/configs/dist/jest"
@@ -1,15 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResidencePermitGender = void 0;
4
- var ResidencePermitGender;
5
- (function (ResidencePermitGender) {
6
- ResidencePermitGender["Male"] = "\u0427";
7
- ResidencePermitGender["Female"] = "\u0416";
8
- })(ResidencePermitGender || (exports.ResidencePermitGender = ResidencePermitGender = {}));
9
- //# sourceMappingURL=residencePermit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"residencePermit.js","sourceRoot":"","sources":["../../../src/interfaces/documents/residencePermit.ts"],"names":[],"mappings":";;;AAEA,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,wCAAU,CAAA;IACV,0CAAY,CAAA;AAChB,CAAC,EAHW,qBAAqB,qCAArB,qBAAqB,QAGhC"}
@@ -1,48 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,48 +0,0 @@
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 residencePermit_1 = require("../../interfaces/documents/residencePermit");
8
- const photo_1 = __importDefault(require("../photo"));
9
- const residencePermit = {
10
- docStatus: documents_1.DocStatus.Ok,
11
- docNumber: '900000499',
12
- number: '900000499',
13
- rnokpp: '900000499',
14
- recordNumber: '2021041300014',
15
- photo: photo_1.default,
16
- sign: 'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQYV2MQmjHnIAAEDgIIZO6vHgAAAABJRU5ErkJggg==',
17
- id: '2021041300014-2021-11-02',
18
- lastNameUA: 'Тест',
19
- firstNameUA: 'Епосвидки',
20
- lastNameEN: 'Testovyi',
21
- firstNameEN: 'Yyyyy',
22
- gender: residencePermit_1.ResidencePermitGender.Male,
23
- birthday: '13.04.2021',
24
- issueDate: '02.11.2021',
25
- expirationDate: '18.11.2031',
26
- issueReason: 'Закінчення строку дії посвідки на постійне проживання',
27
- issueCode: 502,
28
- authority: 'Відділ централізованного оформлення документів №17 ГУ ДМС України в м. Києві',
29
- nationality: ['Бутан', 'Гренландія'],
30
- nationalities: [
31
- {
32
- codeAlfa3: 'BTN',
33
- name: 'Бутан',
34
- },
35
- {
36
- codeAlfa3: 'GRL',
37
- name: 'Гренландія',
38
- },
39
- ],
40
- birthCountry: 'Ангола',
41
- taxpayerCard: {
42
- status: documents_1.DocStatus.Confirming,
43
- number: '9318782702',
44
- creationDate: '14.09.2023',
45
- },
46
- };
47
- exports.default = residencePermit;
48
- //# sourceMappingURL=residencePermit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"residencePermit.js","sourceRoot":"","sources":["../../../src/stubs/documents/residencePermit.ts"],"names":[],"mappings":";;;;;AAAA,0DAAsD;AACtD,gFAAmG;AACnG,qDAA4B;AAE5B,MAAM,eAAe,GAAoB;IACrC,SAAS,EAAE,qBAAS,CAAC,EAAE;IACvB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,YAAY,EAAE,eAAe;IAC7B,KAAK,EAAL,eAAK;IACL,IAAI,EAAE,kGAAkG;IACxG,EAAE,EAAE,0BAA0B;IAC9B,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,WAAW;IACxB,UAAU,EAAE,UAAU;IACtB,WAAW,EAAE,OAAO;IACpB,MAAM,EAAE,uCAAqB,CAAC,IAAI;IAClC,QAAQ,EAAE,YAAY;IACtB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,YAAY;IAC5B,WAAW,EAAE,uDAAuD;IACpE,SAAS,EAAE,GAAG;IACd,SAAS,EAAE,8EAA8E;IACzF,WAAW,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;IACpC,aAAa,EAAE;QACX;YACI,SAAS,EAAE,KAAK;YAChB,IAAI,EAAE,OAAO;SAChB;QACD;YACI,SAAS,EAAE,KAAK;YAChB,IAAI,EAAE,YAAY;SACrB;KACJ;IACD,YAAY,EAAE,QAAQ;IACtB,YAAY,EAAE;QACV,MAAM,EAAE,qBAAS,CAAC,UAAU;QAC5B,MAAM,EAAE,YAAY;QACpB,YAAY,EAAE,YAAY;KAC7B;CACJ,CAAA;AAED,kBAAe,eAAe,CAAA"}
@@ -1,77 +0,0 @@
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
- }
@@ -1,50 +0,0 @@
1
- import { DocStatus, DocumentMetaData } from '.';
2
- export declare enum ResidencePermitGender {
3
- Male = "\u0427",
4
- Female = "\u0416"
5
- }
6
- export interface ResidencePermitNationality {
7
- codeAlfa3: string;
8
- name: string;
9
- }
10
- export interface ResidencePermitRegistrationInfo {
11
- city?: string;
12
- index?: string;
13
- regionName?: string;
14
- flatNumber?: string;
15
- houseNumber?: string;
16
- streetName?: string;
17
- streetType?: string;
18
- }
19
- export interface ResidencePermitTaxpayerCard {
20
- status: DocStatus;
21
- number: string;
22
- creationDate: string;
23
- }
24
- export interface ResidencePermit extends DocumentMetaData {
25
- id: string;
26
- docNumber: string;
27
- number: string;
28
- series?: string;
29
- firstNameUA: string;
30
- lastNameUA: string;
31
- firstNameEN: string;
32
- lastNameEN: string;
33
- recordNumber: string;
34
- gender: ResidencePermitGender;
35
- birthday: string;
36
- issueDate: string;
37
- expirationDate: string;
38
- authority: string;
39
- issueReason: string;
40
- issueCode: number;
41
- nationality: string[];
42
- nationalities: ResidencePermitNationality[];
43
- birthCountry: string;
44
- registration?: string;
45
- registrationInfo?: ResidencePermitRegistrationInfo;
46
- sign: string;
47
- photo: string;
48
- taxpayerCard?: ResidencePermitTaxpayerCard;
49
- rnokpp?: string;
50
- }
@@ -1,3 +0,0 @@
1
- import { EResidency } from '../../interfaces/documents/eResidency';
2
- declare const eResidency: EResidency;
3
- export default eResidency;
@@ -1,3 +0,0 @@
1
- import { ResidencePermit } from '../../interfaces/documents/residencePermit';
2
- declare const residencePermit: ResidencePermit;
3
- export default residencePermit;