@riocrypto/common 1.0.2688 → 1.0.2689

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.
@@ -0,0 +1,11 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface InformationRequestDocumentUploadedEvent {
3
+ subject: Subjects.InformationRequestDocumentUploaded;
4
+ data: {
5
+ userId: string;
6
+ email: string;
7
+ label: string;
8
+ fileName: string;
9
+ uploadedAt: string;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -235,5 +235,6 @@ export declare enum Subjects {
235
235
  UserOnboardingReadyForReviewSlackMessageSent = "userOnboardingReadyForReview:slackMessageSent",
236
236
  ComplianceSessionCompleted = "complianceSession:completed",
237
237
  MainPricingProviderOffline = "mainPricingProvider:offline",
238
- MalwareDetected = "malware:detected"
238
+ MalwareDetected = "malware:detected",
239
+ InformationRequestDocumentUploaded = "informationRequestDocument:uploaded"
239
240
  }
@@ -240,4 +240,5 @@ var Subjects;
240
240
  Subjects["ComplianceSessionCompleted"] = "complianceSession:completed";
241
241
  Subjects["MainPricingProviderOffline"] = "mainPricingProvider:offline";
242
242
  Subjects["MalwareDetected"] = "malware:detected";
243
+ Subjects["InformationRequestDocumentUploaded"] = "informationRequestDocument:uploaded";
243
244
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
package/build/index.d.ts CHANGED
@@ -265,6 +265,7 @@ export * from "./events/bank-account-verification-actual-account-holder-name-obt
265
265
  export * from "./events/user-onboarding-ready-for-review-slack-message-sent-event";
266
266
  export * from "./events/compliance-session-completed-event";
267
267
  export * from "./events/malware-detected-event";
268
+ export * from "./events/information-request-document-uploaded-event";
268
269
  export * from "./types/auth-payload";
269
270
  export * from "./types/admin-auth-payload";
270
271
  export * from "./types/admin-auth";
@@ -512,6 +513,7 @@ export * from "./types/liquidity-sourcing-settings";
512
513
  export * from "./types/stablecoin-type";
513
514
  export * from "./types/static-bank-payment-reference";
514
515
  export * from "./types/indicative-quote-page";
516
+ export * from "./types/information-request-link";
515
517
  export * from "./types/cancelled-order-pnl-entry";
516
518
  export * from "./types/cancelled-order-pnl-report";
517
519
  export * from "./types/banner-announcement";
package/build/index.js CHANGED
@@ -281,6 +281,7 @@ __exportStar(require("./events/bank-account-verification-actual-account-holder-n
281
281
  __exportStar(require("./events/user-onboarding-ready-for-review-slack-message-sent-event"), exports);
282
282
  __exportStar(require("./events/compliance-session-completed-event"), exports);
283
283
  __exportStar(require("./events/malware-detected-event"), exports);
284
+ __exportStar(require("./events/information-request-document-uploaded-event"), exports);
284
285
  __exportStar(require("./types/auth-payload"), exports);
285
286
  __exportStar(require("./types/admin-auth-payload"), exports);
286
287
  __exportStar(require("./types/admin-auth"), exports);
@@ -528,6 +529,7 @@ __exportStar(require("./types/liquidity-sourcing-settings"), exports);
528
529
  __exportStar(require("./types/stablecoin-type"), exports);
529
530
  __exportStar(require("./types/static-bank-payment-reference"), exports);
530
531
  __exportStar(require("./types/indicative-quote-page"), exports);
532
+ __exportStar(require("./types/information-request-link"), exports);
531
533
  __exportStar(require("./types/cancelled-order-pnl-entry"), exports);
532
534
  __exportStar(require("./types/cancelled-order-pnl-report"), exports);
533
535
  __exportStar(require("./types/banner-announcement"), exports);
@@ -13,6 +13,10 @@ export interface IndicativeQuoteAuthPayload {
13
13
  email: string;
14
14
  pageId: string;
15
15
  }
16
+ export interface InformationRequestAuthPayload {
17
+ email: string;
18
+ linkToken: string;
19
+ }
16
20
  export interface PhoneVerifiedPayload {
17
21
  phoneNumber: string;
18
22
  purpose?: "signin" | "signup" | "reset" | "verify-action";
@@ -8,6 +8,7 @@ export declare enum AuthorizationType {
8
8
  Cluster = "cluster",
9
9
  Public = "public",
10
10
  IndicativeQuoteAuth = "indicativeQuoteAuth",
11
+ InformationRequestAuth = "informationRequestAuth",
11
12
  FXPricePusher = "fxPricePusher",
12
13
  AdminAPIKey = "adminAPIKey"
13
14
  }
@@ -12,6 +12,7 @@ var AuthorizationType;
12
12
  AuthorizationType["Cluster"] = "cluster";
13
13
  AuthorizationType["Public"] = "public";
14
14
  AuthorizationType["IndicativeQuoteAuth"] = "indicativeQuoteAuth";
15
+ AuthorizationType["InformationRequestAuth"] = "informationRequestAuth";
15
16
  AuthorizationType["FXPricePusher"] = "fxPricePusher";
16
17
  AuthorizationType["AdminAPIKey"] = "adminAPIKey";
17
18
  })(AuthorizationType = exports.AuthorizationType || (exports.AuthorizationType = {}));
@@ -0,0 +1,19 @@
1
+ export interface InformationRequestUpload {
2
+ label: string;
3
+ fileName: string;
4
+ email: string;
5
+ uploadedAt: Date;
6
+ sizeBytes: number;
7
+ aipriseDocumentId?: string;
8
+ }
9
+ export interface InformationRequestLink {
10
+ id: string;
11
+ userId: string;
12
+ token: string;
13
+ allowedEmails: string[];
14
+ revokedAt?: Date;
15
+ createdBy: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ uploads: InformationRequestUpload[];
19
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // A standing link that lets a customer send compliance what it has asked them
3
+ // for, instead of emailing it over for someone to re-upload by hand.
4
+ //
5
+ // One link per user, and it does not expire: due diligence recurs over the
6
+ // life of an account, so the same link is reused for each request rather than
7
+ // reissued. What is being asked for is communicated by email; the link itself
8
+ // is open-ended and the customer labels whatever they send.
9
+ //
10
+ // Today that means documents. The naming is deliberately not document-specific
11
+ // so the same link can later carry free-text answers or identity checks.
12
+ 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.2688",
3
+ "version": "1.0.2689",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",