aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/Certificate.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared/src/stores/Certificate.ts')
-rw-r--r--packages/shared/src/stores/Certificate.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/shared/src/stores/Certificate.ts b/packages/shared/src/stores/Certificate.ts
index 8b2d007..363406d 100644
--- a/packages/shared/src/stores/Certificate.ts
+++ b/packages/shared/src/stores/Certificate.ts
@@ -30,12 +30,20 @@ const CertificatePrincipal = /* @__PURE__ */ (() =>
30 country: types.string, 30 country: types.string,
31 }))(); 31 }))();
32 32
33/*
34 eslint-disable-next-line @typescript-eslint/no-redeclare --
35 Intentionally naming the type the same as the store definition.
36*/
37export interface CertificatePrincipal
38 extends Instance<typeof CertificatePrincipal> {}
39
33const Certificate = /* @__PURE__ */ (() => 40const Certificate = /* @__PURE__ */ (() =>
34 types.model('Certificate', { 41 types.model('Certificate', {
35 data: types.string, 42 data: types.string,
36 issuer: CertificatePrincipal, 43 issuer: CertificatePrincipal,
37 issuerName: types.string, 44 issuerName: types.string,
38 issuerCert: types.maybe(types.late((): IAnyModelType => Certificate)), 45 issuerCert: types.maybe(types.late((): IAnyModelType => Certificate)),
46 subject: CertificatePrincipal,
39 subjectName: types.string, 47 subjectName: types.string,
40 serialNumber: types.string, 48 serialNumber: types.string,
41 validStart: types.number, 49 validStart: types.number,