idmission-web-sdk 1.0.250 → 1.0.252

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.
@@ -36,7 +36,7 @@ export interface CustomerBiometricsEnrollmentProps extends PropsWithChildren {
36
36
  sessionId: string | (() => Promise<string>);
37
37
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
38
38
  submissionUrl?: string;
39
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
39
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
40
40
  authUrl?: string;
41
41
  /** URL to upload captured documents to via Tus. */
42
42
  documentServiceUrl?: string;
@@ -43,7 +43,7 @@ export interface CustomerEnrollmentProps extends PropsWithChildren {
43
43
  sessionId: string | (() => Promise<string>);
44
44
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
45
45
  submissionUrl?: string;
46
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
46
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
47
47
  authUrl?: string;
48
48
  /** URL to upload captured documents to via Tus. */
49
49
  documentServiceUrl?: string;
@@ -11,7 +11,7 @@ export interface CustomerIdentificationProps extends PropsWithChildren {
11
11
  sessionId: string | (() => Promise<string>);
12
12
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
13
13
  submissionUrl?: string;
14
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
14
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
15
15
  authUrl?: string;
16
16
  /** URL to upload captured documents to via Tus. */
17
17
  documentServiceUrl?: string;
@@ -13,7 +13,7 @@ export interface CustomerVerificationProps extends PropsWithChildren {
13
13
  sessionId: string | (() => Promise<string>);
14
14
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
15
15
  submissionUrl?: string;
16
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
16
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
17
17
  authUrl?: string;
18
18
  /** URL to upload captured documents to via Tus. */
19
19
  documentServiceUrl?: string;
@@ -14,7 +14,7 @@ export interface DocumentCaptureProps extends PropsWithChildren {
14
14
  sessionId: string | (() => Promise<string>);
15
15
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
16
16
  submissionUrl?: string;
17
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
17
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
18
18
  authUrl?: string;
19
19
  /** URL to upload captured documents to via Tus. */
20
20
  documentServiceUrl?: string;
@@ -15,7 +15,7 @@ export interface FaceValidationProps extends PropsWithChildren {
15
15
  sessionId: string | (() => Promise<string>);
16
16
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
17
17
  submissionUrl?: string;
18
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
18
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
19
19
  authUrl?: string;
20
20
  /** URL to upload captured documents to via Tus. */
21
21
  documentServiceUrl?: string;
@@ -42,7 +42,7 @@ export interface IdAndFaceValidationProps extends PropsWithChildren {
42
42
  sessionId: string | (() => Promise<string>);
43
43
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
44
44
  submissionUrl?: string;
45
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
45
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
46
46
  authUrl?: string;
47
47
  /** URL to upload captured documents to via Tus. */
48
48
  documentServiceUrl?: string;
@@ -32,7 +32,7 @@ export interface IdValidationProps extends PropsWithChildren {
32
32
  sessionId: string | (() => Promise<string>);
33
33
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
34
34
  submissionUrl?: string;
35
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
35
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
36
36
  authUrl?: string;
37
37
  /** URL to upload captured documents to via Tus. */
38
38
  documentServiceUrl?: string;
@@ -11,7 +11,7 @@ export interface SignatureKYCProps extends PropsWithChildren {
11
11
  sessionId: string | (() => Promise<string>);
12
12
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
13
13
  submissionUrl?: string;
14
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
14
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
15
15
  authUrl?: string;
16
16
  /** URL to upload captured documents to via Tus. */
17
17
  documentServiceUrl?: string;
@@ -32,7 +32,7 @@ export interface VideoIdValidationProps extends PropsWithChildren {
32
32
  sessionId: string | (() => Promise<string>);
33
33
  /** URL to hit with all API requests. Defaults to the value specified in your decoded `submissionToken`. */
34
34
  submissionUrl?: string;
35
- /** URL to validate session against. Defaults to https://portal-api-dev.idmission.com. */
35
+ /** URL to validate session against. Defaults to https://portal-api.idmission.com. */
36
36
  authUrl?: string;
37
37
  /** URL to upload captured documents to via Tus. */
38
38
  documentServiceUrl?: string;
@@ -4,7 +4,8 @@ import { UploadedDocument } from '../additional_document_capture/AdditionalDocum
4
4
  import { SignatureData } from '../signature_capture/data';
5
5
  import { NetworkError, SubmissionError } from './Errors';
6
6
  import { CapturedDocuments } from '../id_capture/CapturedDocuments';
7
- export declare const defaultSubmissionUrl = "https://portal-api-dev.idmission.com/swagger";
7
+ export declare const defaultSubmissionUrl = "https://portal-api.idmission.com/swagger";
8
+ export declare const defaultDocumentServiceUrl = "https://portal-api.idmission.com/files/";
8
9
  export type DocumentMetadata = {
9
10
  filename?: string;
10
11
  filetype?: string;
@@ -1,6 +1,6 @@
1
1
  import React, { Dispatch, ReactNode } from 'react';
2
2
  import { SessionValidationFailedError } from '../components/submission/Errors';
3
- export declare const defaultAuthUrl = "https://portal-api-dev.idmission.com";
3
+ export declare const defaultAuthUrl = "https://portal-api.idmission.com";
4
4
  export declare const allowedAuthUrls: string[];
5
5
  export type SessionCheckState = 'READY' | 'RUNNING' | 'PASSED' | 'FAILED' | 'MISSING' | 'AUTH_URL_NOT_ALLOWED' | 'ERROR';
6
6
  export type AuthState = {
@@ -51,7 +51,7 @@ var LanguageDetector__default = /*#__PURE__*/_interopDefaultLegacy(LanguageDetec
51
51
  var i18n__default = /*#__PURE__*/_interopDefaultLegacy(i18n);
52
52
  var SignatureCanvas__default = /*#__PURE__*/_interopDefaultLegacy(SignatureCanvas);
53
53
 
54
- var webSdkVersion = '1.0.250';
54
+ var webSdkVersion = '1.0.252';
55
55
 
56
56
  function getPlatform() {
57
57
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -586,7 +586,7 @@ var Spinner = styled__default['default'].div(templateObject_1$y || (templateObje
586
586
  });
587
587
  var templateObject_1$y;
588
588
 
589
- var defaultAuthUrl = 'https://portal-api-dev.idmission.com';
589
+ var defaultAuthUrl = 'https://portal-api.idmission.com';
590
590
  var allowedAuthUrls = ['https://portal-api.idmission.com', 'https://portal-api-uat.idmission.com', 'https://portal-api-demo.idmission.com', 'https://portal-api-dev.idmission.com', 'http://localhost:10000'];
591
591
  var initialState$5 = {
592
592
  authUrl: defaultAuthUrl,
@@ -753,7 +753,8 @@ function AuthProvider(_a) {
753
753
  }, children));
754
754
  }
755
755
 
756
- var defaultSubmissionUrl = 'https://portal-api-dev.idmission.com/swagger';
756
+ var defaultSubmissionUrl = 'https://portal-api.idmission.com/swagger';
757
+ var defaultDocumentServiceUrl = 'https://portal-api.idmission.com/files/';
757
758
  var SubmissionContext = /*#__PURE__*/React.createContext({
758
759
  submit: function submit() {
759
760
  return tslib.__awaiter(void 0, void 0, void 0, function () {
@@ -876,7 +877,7 @@ var SubmissionProvider = function SubmissionProvider(_a) {
876
877
  webhooksFireOnReview = _u === void 0 ? false : _u,
877
878
  precapturedDocuments = _a.precapturedDocuments,
878
879
  _v = _a.documentServiceUrl,
879
- documentServiceUrl = _v === void 0 ? 'https://portal-api-dev.idmission.com/files/' : _v,
880
+ documentServiceUrl = _v === void 0 ? defaultDocumentServiceUrl : _v,
880
881
  onSubmit = _a.onSubmit,
881
882
  onBeforeSubmit = _a.onBeforeSubmit,
882
883
  onBeforeLivenessCheck = _a.onBeforeLivenessCheck,