@riocrypto/common 1.0.1294 → 1.0.1296

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.
@@ -1,10 +1,12 @@
1
+ import { IdentityVerificationType } from "../types/IdentityVerificationType";
1
2
  import { CountryOfOrigin } from "../types/country-of-origin";
2
3
  import { Subjects } from "./subjects";
3
4
  export interface IdentityVerificationFailedEvent {
4
5
  subject: Subjects.IdentityVerificationFailed;
5
6
  data: {
6
- userId: string;
7
- type: "self" | "legalRepresentative" | "UBO";
7
+ userId?: string;
8
+ uboId?: string;
9
+ type: IdentityVerificationType;
8
10
  country: CountryOfOrigin;
9
11
  };
10
12
  }
@@ -1,10 +1,12 @@
1
+ import { IdentityVerificationType } from "../types/IdentityVerificationType";
1
2
  import { CountryOfOrigin } from "../types/country-of-origin";
2
3
  import { Subjects } from "./subjects";
3
4
  export interface IdentityVerificationInReviewEvent {
4
5
  subject: Subjects.IdentityVerificationInReview;
5
6
  data: {
6
- userId: string;
7
- type: "self" | "legalRepresentative" | "UBO";
7
+ userId?: string;
8
+ uboId?: string;
9
+ type: IdentityVerificationType;
8
10
  country: CountryOfOrigin;
9
11
  };
10
12
  }
@@ -1,10 +1,12 @@
1
+ import { IdentityVerificationType } from "../types/IdentityVerificationType";
1
2
  import { CountryOfOrigin } from "../types/country-of-origin";
2
3
  import { Subjects } from "./subjects";
3
4
  export interface IdentityVerificationPassedEvent {
4
5
  subject: Subjects.IdentityVerificationPassed;
5
6
  data: {
6
- userId: string;
7
- type: "self" | "legalRepresentative" | "UBO";
7
+ userId?: string;
8
+ uboId?: string;
9
+ type: IdentityVerificationType;
8
10
  country: CountryOfOrigin;
9
11
  };
10
12
  }
package/build/index.d.ts CHANGED
@@ -212,6 +212,7 @@ export * from "./types/UBO-input";
212
212
  export * from "./types/UBO-update";
213
213
  export * from "./types/immigration-status";
214
214
  export * from "./types/IdentityVerificationType";
215
+ export * from "./types/KYC";
215
216
  export * from "./classes/Asset";
216
217
  export * from "./classes/KYCFieldClass";
217
218
  export * from "./classes/KYCFileClass";
package/build/index.js CHANGED
@@ -228,6 +228,7 @@ __exportStar(require("./types/UBO-input"), exports);
228
228
  __exportStar(require("./types/UBO-update"), exports);
229
229
  __exportStar(require("./types/immigration-status"), exports);
230
230
  __exportStar(require("./types/IdentityVerificationType"), exports);
231
+ __exportStar(require("./types/KYC"), exports);
231
232
  __exportStar(require("./classes/Asset"), exports);
232
233
  __exportStar(require("./classes/KYCFieldClass"), exports);
233
234
  __exportStar(require("./classes/KYCFileClass"), exports);
@@ -0,0 +1,11 @@
1
+ import { IdentityVerificationType } from "./IdentityVerificationType";
2
+ export interface KYC {
3
+ id: string;
4
+ type: IdentityVerificationType;
5
+ userId?: string;
6
+ uboId?: string;
7
+ provider: string;
8
+ providerId: string;
9
+ result: string;
10
+ lastChecked: Date;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1294",
3
+ "version": "1.0.1296",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",