@frankieone/one-sdk 0.3.2-rc.2 → 0.3.2-rc.3

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.
Files changed (66) hide show
  1. package/dist/cjs/modules/biometrics/index.js +1 -1
  2. package/dist/cjs/modules/biometrics/parseConfiguration.d.ts +1 -1
  3. package/dist/cjs/modules/biometrics/parseConfiguration.js +1 -1
  4. package/dist/cjs/modules/biometrics/types/module.d.ts +1 -1
  5. package/dist/cjs/modules/biometrics/types/wrapper.d.ts +2 -2
  6. package/dist/cjs/modules/common/constants.d.ts +2 -2
  7. package/dist/cjs/modules/common/constants.js +3 -3
  8. package/dist/cjs/modules/common/modules/ReactiveStore.d.ts +1 -1
  9. package/dist/cjs/modules/common/modules/error.d.ts +1 -1
  10. package/dist/cjs/modules/common/modules/eventHub.d.ts +1 -1
  11. package/dist/cjs/modules/common/shared/models/UBOData.d.ts +1 -1
  12. package/dist/cjs/modules/common/types/Accessors.d.ts +1 -1
  13. package/dist/cjs/modules/common/types/Configuration.d.ts +2 -2
  14. package/dist/cjs/modules/device/index.js +1 -1
  15. package/dist/cjs/modules/device/parseConfiguration.d.ts +1 -1
  16. package/dist/cjs/modules/device/parseConfiguration.js +1 -1
  17. package/dist/cjs/modules/device/types/events.d.ts +1 -1
  18. package/dist/cjs/modules/device/types/module.d.ts +1 -1
  19. package/dist/cjs/modules/device/types/wrapper.d.ts +2 -2
  20. package/dist/cjs/modules/device/vendors/Sardine.js +1 -1
  21. package/dist/cjs/modules/frankie-client/DummyFrankieApiClient.d.ts +1 -1
  22. package/dist/cjs/modules/frankie-client/DummyFrankieApiClient.js +1 -1
  23. package/dist/cjs/modules/frankie-client/FrankieApiClient.d.ts +3 -3
  24. package/dist/cjs/modules/frankie-client/FrankieApiClient.js +3 -3
  25. package/dist/cjs/modules/frankie-client/clients/ApplicantClient.d.ts +3 -3
  26. package/dist/cjs/modules/frankie-client/clients/ApplicantClient.js +4 -4
  27. package/dist/cjs/modules/frankie-client/clients/BaseClient.d.ts +1 -1
  28. package/dist/cjs/modules/frankie-client/clients/OCRClient.d.ts +1 -1
  29. package/dist/cjs/modules/frankie-client/clients/OCRClient.js +1 -1
  30. package/dist/cjs/modules/frankie-client/index.d.ts +2 -2
  31. package/dist/cjs/modules/frankie-client/index.js +1 -1
  32. package/dist/cjs/modules/frankie-client/mocks/individual/loadIndividual.d.ts +3 -3
  33. package/dist/cjs/modules/frankie-client/mocks/individual/loadIndividual.js +3 -3
  34. package/dist/cjs/modules/frankie-client/mocks/ocr/ocrSubmission.d.ts +1 -1
  35. package/dist/cjs/modules/frankie-client/mocks/ocr/ocrSubmission.js +1 -1
  36. package/dist/cjs/modules/frankie-client/mocks/simplifier.d.ts +3 -3
  37. package/dist/cjs/modules/index.d.ts +6 -6
  38. package/dist/cjs/modules/index.js +6 -3
  39. package/dist/cjs/modules/index.js.map +1 -1
  40. package/dist/cjs/modules/individual/actions/consents.d.ts +1 -1
  41. package/dist/cjs/modules/individual/actions/documents.d.ts +2 -2
  42. package/dist/cjs/modules/individual/actions/emitEvents.d.ts +1 -1
  43. package/dist/cjs/modules/individual/actions/search.d.ts +4 -4
  44. package/dist/cjs/modules/individual/actions/search.js +2 -2
  45. package/dist/cjs/modules/individual/actions/submit.d.ts +4 -4
  46. package/dist/cjs/modules/individual/index.js +2 -2
  47. package/dist/cjs/modules/individual/types/events.d.ts +1 -1
  48. package/dist/cjs/modules/individual/types/module.d.ts +5 -5
  49. package/dist/cjs/modules/ocr/actions/start.d.ts +4 -4
  50. package/dist/cjs/modules/ocr/actions/start.js +2 -2
  51. package/dist/cjs/modules/ocr/index.d.ts +8 -8
  52. package/dist/cjs/modules/ocr/index.js +2 -2
  53. package/dist/cjs/modules/ocr/types/events.d.ts +2 -2
  54. package/dist/cjs/modules/ocr/types/module.d.ts +2 -2
  55. package/dist/cjs/modules/sdk/ComponentLoader.js +1 -1
  56. package/dist/cjs/modules/sdk/index.js +1 -1
  57. package/dist/cjs/modules/sdk/parseConfiguration.js +3 -3
  58. package/dist/cjs/modules/sdk/types/components.d.ts +2 -2
  59. package/dist/cjs/modules/sdk/types/configuration.d.ts +2 -2
  60. package/dist/cjs/modules/sdk/types/module.d.ts +2 -2
  61. package/dist/commit.txt +1 -1
  62. package/dist/esm/modules/index.js +3 -0
  63. package/dist/esm/modules/index.js.map +1 -1
  64. package/dist/umd/oneSdk.umd.js +1 -1
  65. package/dist/umd/oneSdk.umd.js.map +1 -1
  66. package/package.json +1 -1
@@ -36,7 +36,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.biometricsModule = void 0;
39
- const common_1 = require("@module/common");
39
+ const common_1 = require("../common");
40
40
  const types_1 = require("../sdk/types");
41
41
  const parseConfiguration_1 = require("./parseConfiguration");
42
42
  __exportStar(require("./constants"), exports);
@@ -1,4 +1,4 @@
1
- import { BaseModuleOptions } from "@module/sdk/types";
1
+ import { BaseModuleOptions } from "../sdk/types";
2
2
  declare type AllConfiguration = BaseModuleOptions;
3
3
  export declare function validateConfiguration(options: AllConfiguration): AllConfiguration;
4
4
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateConfiguration = void 0;
4
- const common_1 = require("@module/common");
4
+ const common_1 = require("../common");
5
5
  function validateConfiguration(options) {
6
6
  const { globalEventHub, recipe } = options;
7
7
  const interruptWithError = (0, common_1.mkErrorEmitter)(globalEventHub, options);
@@ -1,4 +1,4 @@
1
- import { BaseModuleOptions, ModuleContext } from "@module/sdk/types";
1
+ import { BaseModuleOptions, ModuleContext } from "../../sdk/types";
2
2
  import { Events } from "./events";
3
3
  export interface BiometricsModule {
4
4
  initialise: (o: BaseModuleOptions) => BiometricsModuleContext;
@@ -1,5 +1,5 @@
1
- import { EventHub } from "@module/common";
2
- import { BaseModuleOptions } from "@module/sdk/types";
1
+ import { EventHub } from "../../common";
2
+ import { BaseModuleOptions } from "../../sdk/types";
3
3
  import { Vendor } from "../constants";
4
4
  import { Events } from "./events";
5
5
  export interface WrapperModule {
@@ -1,6 +1,6 @@
1
1
  export declare const PublicModules: {
2
- readonly biometrics: import("@module/biometrics").BiometricsModule;
3
- readonly device: import("@module/device").DeviceModule;
2
+ readonly biometrics: import("../biometrics").BiometricsModule;
3
+ readonly device: import("../device").DeviceModule;
4
4
  readonly ocr: import("../ocr/types").OcrModule;
5
5
  };
6
6
  export declare type ModulesDictionary = typeof PublicModules;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PublicModules = void 0;
4
- const biometrics_1 = require("@module/biometrics");
5
- const device_1 = require("@module/device");
6
- const ocr_1 = require("@module/ocr");
4
+ const biometrics_1 = require("../biometrics");
5
+ const device_1 = require("../device");
6
+ const ocr_1 = require("../ocr");
7
7
  exports.PublicModules = {
8
8
  biometrics: biometrics_1.biometricsModule,
9
9
  device: device_1.deviceModule,
@@ -1,4 +1,4 @@
1
- import { KeyOf, MaybeTuple } from "@types";
1
+ import { KeyOf, MaybeTuple } from "../../../types/index.js";
2
2
  import { BehaviorSubject } from "rxjs";
3
3
  import { Accessors, ReadonlyAccessors } from "../types/Accessors";
4
4
  declare type ChangeDetector<T> = (a: T, b: T) => boolean;
@@ -1,3 +1,3 @@
1
- import { GlobalEvents } from "@module/sdk/types";
1
+ import { GlobalEvents } from "../../sdk/types";
2
2
  import { EventHub } from "./eventHub";
3
3
  export declare const mkErrorEmitter: (globalEventHub: EventHub<GlobalEvents>, options: unknown) => (message: string) => never;
@@ -1,4 +1,4 @@
1
- import { KeyOf } from "@types";
1
+ import { KeyOf } from "../../../types/index.js";
2
2
  export declare function mkEventHub<Events extends EventsDictionary>(): EventHub<Events>;
3
3
  export declare type EventsDictionary = Record<string, unknown[]>;
4
4
  export declare type CommonEvents = {
@@ -1,4 +1,4 @@
1
- import { Dictionary } from "@types";
1
+ import { Dictionary } from "../../../../types/index.js";
2
2
  import { RiskLevel } from "./ApplicantSummary";
3
3
  import { TAssociationRole } from "./AssociatedParty";
4
4
  import { Nullable } from "./general";
@@ -1,4 +1,4 @@
1
- import { Dictionary, KeyOf } from "@types";
1
+ import { Dictionary, KeyOf } from "../../../types/index.js";
2
2
  import { Observable, Subject } from "rxjs";
3
3
  import { ReadonlyKeys } from "ts-toolbelt/out/Object/ReadonlyKeys";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { Vendor as BiometricsVendor } from "@module/biometrics";
2
- import { Vendor as DeviceVendor } from "@module/device";
1
+ import { Vendor as BiometricsVendor } from "../../biometrics";
2
+ import { Vendor as DeviceVendor } from "../../device";
3
3
  export declare type RecipeConfiguration = {
4
4
  name?: string;
5
5
  biometrics?: {
@@ -36,7 +36,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.deviceModule = void 0;
39
- const common_1 = require("@module/common");
39
+ const common_1 = require("../common");
40
40
  const parseConfiguration_1 = require("./parseConfiguration");
41
41
  __exportStar(require("./constants"), exports);
42
42
  __exportStar(require("./types"), exports);
@@ -1,4 +1,4 @@
1
- import { BaseModuleOptions } from "@module/sdk/types";
1
+ import { BaseModuleOptions } from "../sdk/types";
2
2
  import { DeviceModuleOptions } from "./types";
3
3
  declare type AllConfiguration = BaseModuleOptions & DeviceModuleOptions;
4
4
  export declare function validateConfiguration(options: AllConfiguration): AllConfiguration;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateConfiguration = void 0;
4
- const types_1 = require("@module/sdk/types");
4
+ const types_1 = require("../sdk/types");
5
5
  function validateConfiguration(options) {
6
6
  var _a, _b, _c, _d;
7
7
  const { recipe } = options;
@@ -1,4 +1,4 @@
1
- import { RecipeConfiguration } from "@module/common";
1
+ import { RecipeConfiguration } from "../../common";
2
2
  import { ActivityType, Vendor } from "../constants";
3
3
  import { SessionData } from "./wrapper";
4
4
  export declare type Events = {
@@ -1,4 +1,4 @@
1
- import { BaseModuleOptions, ModuleContext } from "@module/sdk/types";
1
+ import { BaseModuleOptions, ModuleContext } from "../../sdk/types";
2
2
  import { ActivityType } from "../constants";
3
3
  import { Events } from "./events";
4
4
  export interface DeviceModule {
@@ -1,5 +1,5 @@
1
- import { EventHub } from "@module/common";
2
- import { BaseModuleOptions } from "@module/sdk/types";
1
+ import { EventHub } from "../../common";
2
+ import { BaseModuleOptions } from "../../sdk/types";
3
3
  import { ActivityType, Vendor } from "../constants";
4
4
  import { Events } from "./events";
5
5
  export interface WrapperModule {
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.wrapper = void 0;
13
- const common_1 = require("@module/common");
13
+ const common_1 = require("../../common");
14
14
  const uuid_1 = require("uuid");
15
15
  exports.wrapper = {
16
16
  vendor: "sardine",
@@ -1,4 +1,4 @@
1
- import { EventHub } from "@module/common";
1
+ import { EventHub } from "../common";
2
2
  import { AxiosRequestConfig, AxiosResponse } from "axios";
3
3
  import { FrankieApiClient } from "./FrankieApiClient";
4
4
  interface RequestResponse {
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.DummyFrankieApiClient = exports.URL_PARAM = void 0;
24
- const common_1 = require("@module/common");
24
+ const common_1 = require("../common");
25
25
  const axios_1 = require("axios");
26
26
  const FrankieApiClient_1 = require("./FrankieApiClient");
27
27
  const trimUrl = (url) => url.replace(/\/$/, "").replace(/^\//, "");
@@ -1,6 +1,6 @@
1
- import { ENVIRONMENTS } from "@module/common";
2
- import { ApplicantId } from "@module/common/types/Session";
3
- import { SessionMeta } from "@module/sdk/types";
1
+ import { ENVIRONMENTS } from "../common";
2
+ import { ApplicantId } from "../common/types/Session";
3
+ import { SessionMeta } from "../sdk/types";
4
4
  import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from "axios";
5
5
  import { ClientsConstructorDictionary, InstanceOf, OptionsFor } from "./ClientsDictionary";
6
6
  export declare type IFrankieClientCredentials = {
@@ -36,9 +36,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.FrankieApiClient = void 0;
39
- const common_1 = require("@module/common");
40
- const base64_1 = require("@module/common/modules/base64");
41
- const Session_1 = require("@module/common/types/Session");
39
+ const common_1 = require("../common");
40
+ const base64_1 = require("../common/modules/base64");
41
+ const Session_1 = require("../common/types/Session");
42
42
  const axios_1 = __importDefault(require("axios"));
43
43
  const jwt_decode_1 = __importDefault(require("jwt-decode"));
44
44
  class FrankieApiClient {
@@ -1,6 +1,6 @@
1
- import { Applicant } from "@module/common/shared/models/Applicant";
2
- import { CheckSummary } from "@module/common/shared/models/CheckSummary";
3
- import { Document } from "@module/common/shared/models/Document";
1
+ import { Applicant } from "../../common/shared/models/Applicant";
2
+ import { CheckSummary } from "../../common/shared/models/CheckSummary";
3
+ import { Document } from "../../common/shared/models/Document";
4
4
  import { BaseClient } from "./BaseClient";
5
5
  /**
6
6
  * Applicant client handles BFF Applicant and Document Operations
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ApplicantClient = void 0;
13
- const Applicant_1 = require("@module/common/shared/models/Applicant");
14
- const CheckSummary_1 = require("@module/common/shared/models/CheckSummary");
15
- const Document_1 = require("@module/common/shared/models/Document");
16
- const Session_1 = require("@module/common/types/Session");
13
+ const Applicant_1 = require("../../common/shared/models/Applicant");
14
+ const CheckSummary_1 = require("../../common/shared/models/CheckSummary");
15
+ const Document_1 = require("../../common/shared/models/Document");
16
+ const Session_1 = require("../../common/types/Session");
17
17
  const BaseClient_1 = require("./BaseClient");
18
18
  /**
19
19
  * Applicant client handles BFF Applicant and Document Operations
@@ -1,4 +1,4 @@
1
- import { ApplicantId } from "@module/common/types/Session";
1
+ import { ApplicantId } from "../../common/types/Session";
2
2
  import { ReadonlyDeep } from "type-fest";
3
3
  import { FrankieApiClient } from "../FrankieApiClient";
4
4
  export declare class BaseClient {
@@ -1,4 +1,4 @@
1
- import { Document } from "@module/common/shared/models/Document";
1
+ import { Document } from "../../common/shared/models/Document";
2
2
  import type { FrankieApiClient } from "../FrankieApiClient";
3
3
  import { BaseClient } from "./BaseClient";
4
4
  export declare class OCRClient extends BaseClient {
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.isFailedStatus = exports.isInputRequiredStatus = exports.isCompleteStatus = exports.Status = exports.OCRClient = void 0;
13
- const Document_1 = require("@module/common/shared/models/Document");
13
+ const Document_1 = require("../../common/shared/models/Document");
14
14
  const BaseClient_1 = require("./BaseClient");
15
15
  class OCRClient extends BaseClient_1.BaseClient {
16
16
  constructor(frankie) {
@@ -1,5 +1,5 @@
1
- import { EventHub } from "@module/common";
2
- import { GlobalEvents, OneSdkRootParameters } from "@module/sdk/types";
1
+ import { EventHub } from "../common";
2
+ import { GlobalEvents, OneSdkRootParameters } from "../sdk/types";
3
3
  import { DummyFrankieApiClient } from "./DummyFrankieApiClient";
4
4
  import { FrankieApiClient } from "./FrankieApiClient";
5
5
  declare type Options = Pick<OneSdkRootParameters, "mode" | "session"> & {
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DummyFrankieApiClient = exports.FrankieApiClient = exports.mkFrankieClient = void 0;
13
- const types_1 = require("@module/sdk/types");
13
+ const types_1 = require("../sdk/types");
14
14
  const OCRClient_1 = require("./clients/OCRClient");
15
15
  const DummyFrankieApiClient_1 = require("./DummyFrankieApiClient");
16
16
  Object.defineProperty(exports, "DummyFrankieApiClient", { enumerable: true, get: function () { return DummyFrankieApiClient_1.DummyFrankieApiClient; } });
@@ -1,6 +1,6 @@
1
- import { Applicant } from "@module/common/shared/models/Applicant";
2
- import { Document } from "@module/common/shared/models/Document";
3
- import { DummyFrankieApiClient } from "@module/frankie-client";
1
+ import { Applicant } from "../../../common/shared/models/Applicant";
2
+ import { Document } from "../../../common/shared/models/Document";
3
+ import { DummyFrankieApiClient } from "../../../frankie-client";
4
4
  import { MockOptions as MockOptionsPartial } from "..";
5
5
  import { DeepPartial } from "../../../common/shared/models/general";
6
6
  export declare type Options = {
@@ -4,9 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.loadSuccessfulCheckResults = exports.applicantNotFound = exports.loadExistingApplicant = exports.resolveIndividualDdata = void 0;
7
- const Applicant_1 = require("@module/common/shared/models/Applicant");
8
- const CheckSummary_1 = require("@module/common/shared/models/CheckSummary");
9
- const Document_1 = require("@module/common/shared/models/Document");
7
+ const Applicant_1 = require("../../../common/shared/models/Applicant");
8
+ const CheckSummary_1 = require("../../../common/shared/models/CheckSummary");
9
+ const Document_1 = require("../../../common/shared/models/Document");
10
10
  const lodash_merge_1 = __importDefault(require("lodash.merge"));
11
11
  const uuid_1 = require("uuid");
12
12
  const DummyFrankieApiClient_1 = require("../../DummyFrankieApiClient");
@@ -1,4 +1,4 @@
1
- import { Document, Scan } from "@module/common/shared/models/Document";
1
+ import { Document, Scan } from "../../../common/shared/models/Document";
2
2
  import { PartialDeep } from "type-fest";
3
3
  import { MockOptions as MockOptionsPartial } from "..";
4
4
  import { DeepPartial } from "../../../common/shared/models/general";
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.mkFullScanPayload = exports.updateOCRDocument = exports.createOCRDocument = exports.submitOCR = void 0;
7
- const Document_1 = require("@module/common/shared/models/Document");
7
+ const Document_1 = require("../../../common/shared/models/Document");
8
8
  const lodash_merge_1 = __importDefault(require("lodash.merge"));
9
9
  const uuid_1 = require("uuid");
10
10
  const DummyFrankieApiClient_1 = require("../../DummyFrankieApiClient");
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Exposes functions that offer a simplified conversion of MockOptions for external usage
3
3
  */
4
- import { Applicant } from "@module/common/shared/models/Applicant";
5
- import { Document, Scan, TScan } from "@module/common/shared/models/Document";
6
- import { DeepPartial } from "@module/common/shared/models/general";
4
+ import { Applicant } from "../../common/shared/models/Applicant";
5
+ import { Document, Scan, TScan } from "../../common/shared/models/Document";
6
+ import { DeepPartial } from "../../common/shared/models/general";
7
7
  import { MockOptions } from ".";
8
8
  import { OCRDocumentType, Status } from "../clients/OCRClient";
9
9
  export declare function resolveSimplifiedMockOptions(simplifiedOptions: SimplifiedMockOptions): MockOptions;
@@ -1,14 +1,14 @@
1
- import * as utils from "@module/common";
2
- import { FrankieApiClient } from "@module/frankie-client";
1
+ import * as utils from "./common";
2
+ import { FrankieApiClient } from "./frankie-client";
3
3
  import { SdkModes } from "./sdk/types";
4
4
  /**
5
5
  * Explicitly Export types (with type-only exports) and enums (without "type") at the root when importing into a typescript project via npm
6
6
  * https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
7
7
  */
8
- export type { Accessors } from "@module/common";
9
- export type { DeviceModule, DeviceModuleContext as DeviceModuleContext, Events as DeviceModuleEvents, } from "@module/device";
10
- export type { FrankieApiClient } from "@module/frankie-client";
11
- export { Status as OCRStatus } from "@module/ocr";
8
+ export type { Accessors } from "./common";
9
+ export type { DeviceModule, DeviceModuleContext as DeviceModuleContext, Events as DeviceModuleEvents, } from "./device";
10
+ export type { FrankieApiClient } from "./frankie-client";
11
+ export { Status as OCRStatus } from "./ocr";
12
12
  export type { OneSdkContext, OneSdkRootParameters as OneSdkConfiguration } from "./sdk";
13
13
  export { SdkModes as SdkMode };
14
14
  declare const _default: ((p: import("./sdk").OneSdkRootParameters) => Promise<import("./sdk").OneSdkContext>) & {
@@ -24,12 +24,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.SdkMode = exports.OCRStatus = void 0;
27
- const utils = __importStar(require("@module/common"));
28
- const frankie_client_1 = require("@module/frankie-client");
27
+ const utils = __importStar(require("./common"));
28
+ const frankie_client_1 = require("./frankie-client");
29
29
  const sdk_1 = require("./sdk");
30
30
  const types_1 = require("./sdk/types");
31
31
  Object.defineProperty(exports, "SdkMode", { enumerable: true, get: function () { return types_1.SdkModes; } });
32
- var ocr_1 = require("@module/ocr");
32
+ var ocr_1 = require("./ocr");
33
33
  Object.defineProperty(exports, "OCRStatus", { enumerable: true, get: function () { return ocr_1.Status; } });
34
34
  // Exported OneSdk object
35
35
  // Via CDN, it will be available globally as [window.]OneSdk
@@ -41,4 +41,7 @@ exports.default = Object.assign(sdk_1.oneSdk.initialise, {
41
41
  utils,
42
42
  modes: types_1.SdkModes,
43
43
  });
44
+ // Temporary fix for 'buffer' dependency. Buffer relies on the existence of a "global" object
45
+ // https://github.com/feross/buffer/issues/235
46
+ window.global = global !== null && global !== void 0 ? global : window;
44
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,2DAA0D;AAC1D,+BAA+B;AAC/B,uCAAuC;AAelB,wFAfZ,gBAAQ,OAeW;AAF5B,mCAAkD;AAAzC,gGAAA,MAAM,OAAa;AAI5B,yBAAyB;AACzB,4DAA4D;AAC5D,sDAAsD;AACtD,6BAA6B;AAC7B,oDAAoD;AACpD,kBAAe,MAAM,CAAC,MAAM,CAAC,YAAM,CAAC,UAAU,EAAE;IAC9C,gBAAgB,EAAhB,iCAAgB;IAChB,KAAK;IACL,KAAK,EAAE,gBAAQ;CAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAAwC;AACxC,2DAA0D;AAC1D,+BAA+B;AAC/B,uCAAuC;AAelB,wFAfZ,gBAAQ,OAeW;AAF5B,mCAAkD;AAAzC,gGAAA,MAAM,OAAa;AAI5B,yBAAyB;AACzB,4DAA4D;AAC5D,sDAAsD;AACtD,6BAA6B;AAC7B,oDAAoD;AACpD,kBAAe,MAAM,CAAC,MAAM,CAAC,YAAM,CAAC,UAAU,EAAE;IAC9C,gBAAgB,EAAhB,iCAAgB;IAChB,KAAK;IACL,KAAK,EAAE,gBAAQ;CAChB,CAAC,CAAC;AAEH,6FAA6F;AAC7F,8CAA8C;AAC9C,MAAM,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,MAAM,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Accessors } from "@module/common";
1
+ import { Accessors } from "../../common";
2
2
  export declare const mkAddConsents: (deps: {
3
3
  consentsGiven$: Accessors<string[]>;
4
4
  }) => (type: string) => void;
@@ -1,5 +1,5 @@
1
- import { Accessors } from "@module/common";
2
- import { Document } from "@module/common/shared/models/Document";
1
+ import { Accessors } from "../../common";
2
+ import { Document } from "../../common/shared/models/Document";
3
3
  import { IndividualModuleContext } from "../types";
4
4
  declare type MkAddDocumentOptions = {
5
5
  documents$: Accessors<Document[]>;
@@ -1,4 +1,4 @@
1
- import { EventHub } from "@module/common";
1
+ import { EventHub } from "../../common";
2
2
  import { Events, PublicAccessors } from "../types";
3
3
  export declare const subscribeAndEmitEvents: (deps: {
4
4
  publicAccessors: PublicAccessors;
@@ -1,7 +1,7 @@
1
- import { EventHub, ReactiveStore } from "@module/common";
2
- import { Applicant } from "@module/common/shared/models/Applicant";
3
- import { Document } from "@module/common/shared/models/Document";
4
- import { ApplicantClient } from "@module/frankie-client/clients/ApplicantClient";
1
+ import { EventHub, ReactiveStore } from "../../common";
2
+ import { Applicant } from "../../common/shared/models/Applicant";
3
+ import { Document } from "../../common/shared/models/Document";
4
+ import { ApplicantClient } from "../../frankie-client/clients/ApplicantClient";
5
5
  import { Events } from "../types/events";
6
6
  export declare const mkSearchMethod: (deps: {
7
7
  client: ApplicantClient;
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.mkSearchMethod = void 0;
13
- const Applicant_1 = require("@module/common/shared/models/Applicant");
14
- const Session_1 = require("@module/common/types/Session");
13
+ const Applicant_1 = require("../../common/shared/models/Applicant");
14
+ const Session_1 = require("../../common/types/Session");
15
15
  const Profile_1 = require("../../common/shared/models/Profile");
16
16
  const mkSearchMethod = (deps) => () => __awaiter(void 0, void 0, void 0, function* () {
17
17
  const { client, eventHub, state$, recipeName } = deps;
@@ -1,7 +1,7 @@
1
- import { Accessors, EventHub } from "@module/common";
2
- import { Applicant } from "@module/common/shared/models/Applicant";
3
- import { Document } from "@module/common/shared/models/Document";
4
- import { ApplicantClient } from "@module/frankie-client/clients/ApplicantClient";
1
+ import { Accessors, EventHub } from "../../common";
2
+ import { Applicant } from "../../common/shared/models/Applicant";
3
+ import { Document } from "../../common/shared/models/Document";
4
+ import { ApplicantClient } from "../../frankie-client/clients/ApplicantClient";
5
5
  import { PublicAccessors } from "../types";
6
6
  import { Events } from "../types/events";
7
7
  export declare const mkSubmitMethod: (deps: {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.individualModule = void 0;
4
- const common_1 = require("@module/common");
5
- const ApplicantClient_1 = require("@module/frankie-client/clients/ApplicantClient");
4
+ const common_1 = require("../common");
5
+ const ApplicantClient_1 = require("../frankie-client/clients/ApplicantClient");
6
6
  const consents_1 = require("./actions/consents");
7
7
  const documents_1 = require("./actions/documents");
8
8
  const emitEvents_1 = require("./actions/emitEvents");
@@ -1,4 +1,4 @@
1
- import { ApplicantId } from "@module/common/types/Session";
1
+ import { ApplicantId } from "../../common/types/Session";
2
2
  export declare type Events = {
3
3
  data_loaded: [ApplicantId & {
4
4
  isPreloaded: boolean;
@@ -1,8 +1,8 @@
1
- import type { Address } from "@module/common/shared/models/Address";
2
- import { Applicant } from "@module/common/shared/models/Applicant";
3
- import type { CheckSummary } from "@module/common/shared/models/CheckSummary";
4
- import type { Document } from "@module/common/shared/models/Document";
5
- import type { BaseModuleOptions, ModuleContext } from "@module/sdk/types";
1
+ import type { Address } from "../../common/shared/models/Address";
2
+ import { Applicant } from "../../common/shared/models/Applicant";
3
+ import type { CheckSummary } from "../../common/shared/models/CheckSummary";
4
+ import type { Document } from "../../common/shared/models/Document";
5
+ import type { BaseModuleOptions, ModuleContext } from "../../sdk/types";
6
6
  import { AccessFunction, AccessorsDictionary } from "../../common/types/Accessors";
7
7
  import { Events } from "./events";
8
8
  export interface IndividualModule {
@@ -1,7 +1,7 @@
1
- import { Accessors, EventHub, ReadonlyAccessors } from "@module/common";
2
- import { Document } from "@module/common/shared/models/Document";
3
- import { CompleteStatus, FailedStatus, InputRequiredStatus, OCRClient, OCRResults, Status } from "@module/frankie-client/clients/OCRClient";
4
- import { IndividualModuleContext } from "@module/individual/types";
1
+ import { Accessors, EventHub, ReadonlyAccessors } from "../../common";
2
+ import { Document } from "../../common/shared/models/Document";
3
+ import { CompleteStatus, FailedStatus, InputRequiredStatus, OCRClient, OCRResults, Status } from "../../frankie-client/clients/OCRClient";
4
+ import { IndividualModuleContext } from "../../individual/types";
5
5
  import { Events } from "../types";
6
6
  declare type Dependencies = {
7
7
  _expectedSide$: ReadonlyAccessors<"front" | "back">;
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.mkEvaluateResults = exports.mkProvideFile = exports.inputRequired = exports.completeOCR = exports.resetCurrentStatus = exports.isOcrPreloaded = exports.mkStartMethod = void 0;
13
- const Document_1 = require("@module/common/shared/models/Document");
14
- const OCRClient_1 = require("@module/frankie-client/clients/OCRClient");
13
+ const Document_1 = require("../../common/shared/models/Document");
14
+ const OCRClient_1 = require("../../frankie-client/clients/OCRClient");
15
15
  const rxjs_1 = require("rxjs");
16
16
  /**
17
17
  * Returns the start method called by customers to trigger the OCR flow
@@ -1,13 +1,13 @@
1
- import { ReactiveStore } from "@module/common";
2
- import { Status } from "@module/frankie-client/clients/OCRClient";
1
+ import { ReactiveStore } from "../common";
2
+ import { Status } from "../frankie-client/clients/OCRClient";
3
3
  import { OcrModule, State } from "./types";
4
4
  export { Status };
5
5
  export declare const ocrModule: OcrModule;
6
6
  export declare function initialiseLocalState(state$: ReactiveStore<State>): {
7
- status$: import("@module/common").Accessors<Status.COMPLETE | import("@module/frankie-client/clients/OCRClient").InputRequiredStatus, Status.COMPLETE | import("@module/frankie-client/clients/OCRClient").InputRequiredStatus>;
8
- failedStatus$: import("@module/common").Accessors<import("@module/frankie-client/clients/OCRClient").FailedStatus, import("@module/frankie-client/clients/OCRClient").FailedStatus>;
9
- document$: import("@module/common").Accessors<import("../common/shared/models/Document").Document, import("../common/shared/models/Document").Document>;
10
- files$: import("@module/common").Accessors<File[], File[]>;
11
- isPreloaded$: import("@module/common").Accessors<boolean, boolean>;
12
- _expectedSide$: import("@module/common").ReadonlyAccessors<"front" | "back">;
7
+ status$: import("../common").Accessors<Status.COMPLETE | import("../frankie-client/clients/OCRClient").InputRequiredStatus, Status.COMPLETE | import("../frankie-client/clients/OCRClient").InputRequiredStatus>;
8
+ failedStatus$: import("../common").Accessors<import("../frankie-client/clients/OCRClient").FailedStatus, import("../frankie-client/clients/OCRClient").FailedStatus>;
9
+ document$: import("../common").Accessors<import("../common/shared/models/Document").Document, import("../common/shared/models/Document").Document>;
10
+ files$: import("../common").Accessors<File[], File[]>;
11
+ isPreloaded$: import("../common").Accessors<boolean, boolean>;
12
+ _expectedSide$: import("../common").ReadonlyAccessors<"front" | "back">;
13
13
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initialiseLocalState = exports.ocrModule = exports.Status = void 0;
4
- const common_1 = require("@module/common");
5
- const OCRClient_1 = require("@module/frankie-client/clients/OCRClient");
4
+ const common_1 = require("../common");
5
+ const OCRClient_1 = require("../frankie-client/clients/OCRClient");
6
6
  Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return OCRClient_1.Status; } });
7
7
  const start_1 = require("./actions/start");
8
8
  exports.ocrModule = {
@@ -1,5 +1,5 @@
1
- import { Document } from "@module/common/shared/models/Document";
2
- import { Status } from "@module/frankie-client/clients/OCRClient";
1
+ import { Document } from "../../common/shared/models/Document";
2
+ import { Status } from "../../frankie-client/clients/OCRClient";
3
3
  export declare type Events = {
4
4
  input_required: [Info, Status, ProvideFile];
5
5
  results: [{
@@ -1,5 +1,5 @@
1
- import { FailedStatus, InputRequiredStatus, Status } from "@module/frankie-client/clients/OCRClient";
2
- import { BaseModuleOptions, ModuleContext } from "@module/sdk/types";
1
+ import { FailedStatus, InputRequiredStatus, Status } from "../../frankie-client/clients/OCRClient";
2
+ import { BaseModuleOptions, ModuleContext } from "../../sdk/types";
3
3
  import { Document } from "../../common/shared/models/Document";
4
4
  import { AccessFunction, AccessorsDictionary } from "../../common/types/Accessors";
5
5
  import { Events } from "./events";
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.mkComponentLoader = void 0;
4
- const common_1 = require("@module/common");
4
+ const common_1 = require("../common");
5
5
  /**
6
6
  * This factory will generate another function which will
7
7
  * 1) load a public module by module name, defined in the dictionary PublicModules;