skyflow-js 1.23.0 → 1.24.0
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.
- package/README.md +432 -433
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +9 -0
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +3 -3
- package/types/core/constants.d.ts +24 -0
- package/types/core/external/collect/collect-container.d.ts +1 -0
- package/types/core/external/collect/collect-element.d.ts +3 -1
- package/types/core/external/collect/compose-collect-container.d.ts +32 -0
- package/types/core/external/collect/compose-collect-element.d.ts +7 -0
- package/types/core/external/reveal/reveal-container.d.ts +1 -0
- package/types/core/external/skyflow-container.d.ts +2 -1
- package/types/core/internal/iframe-form/index.d.ts +1 -0
- package/types/core-utils/reveal.d.ts +2 -1
- package/types/skyflow.d.ts +6 -4
- package/types/utils/common/index.d.ts +9 -1
- package/types/utils/constants.d.ts +88 -0
- package/types/utils/helpers/index.d.ts +2 -0
- package/types/utils/logs.d.ts +27 -0
- package/types/utils/validators/index.d.ts +3 -1
|
@@ -4,3 +4,12 @@
|
|
|
4
4
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Lodash <https://lodash.com/>
|
|
11
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
|
+
* Released under MIT license <https://lodash.com/license>
|
|
13
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
+
*/
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "skyflow-js",
|
|
3
3
|
"preferGlobal": true,
|
|
4
4
|
"analyze": false,
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.24.0",
|
|
6
6
|
"author": "Skyflow",
|
|
7
7
|
"description": "Skyflow JavaScript SDK",
|
|
8
8
|
"homepage": "https://github.com/skyflowapi/skyflow-js",
|
|
@@ -67,13 +67,13 @@
|
|
|
67
67
|
"@types/node": "^14.0.5",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^4.31.2",
|
|
69
69
|
"@typescript-eslint/parser": "^4.31.2",
|
|
70
|
-
"babel-loader": "^
|
|
70
|
+
"babel-loader": "^9.1.2",
|
|
71
71
|
"clean-webpack-plugin": "^4.0.0-alpha.0",
|
|
72
72
|
"compression-webpack-plugin": "^8.0.1",
|
|
73
73
|
"eslint": "^7.32.0",
|
|
74
74
|
"eslint-config-airbnb-base": "^14.2.1",
|
|
75
75
|
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
76
|
-
"eslint-plugin-import": "^2.
|
|
76
|
+
"eslint-plugin-import": "^2.26.0",
|
|
77
77
|
"fork-ts-checker-webpack-plugin": "^6.3.2",
|
|
78
78
|
"html-webpack-plugin": "^5.5.0",
|
|
79
79
|
"jest": "^27.2.1",
|
|
@@ -7,6 +7,7 @@ export declare const PUREJS_TYPES: {
|
|
|
7
7
|
INSERT: string;
|
|
8
8
|
DETOKENIZE: string;
|
|
9
9
|
GET_BY_SKYFLOWID: string;
|
|
10
|
+
GET: string;
|
|
10
11
|
};
|
|
11
12
|
export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
12
13
|
CHANGE: string;
|
|
@@ -406,3 +407,26 @@ export declare enum ContentType {
|
|
|
406
407
|
FORMURLENCODED = "application/x-www-form-urlencoded",
|
|
407
408
|
FORMDATA = "multipart/form-data"
|
|
408
409
|
}
|
|
410
|
+
export declare const ALLOWED_FOCUS_AUTO_SHIFT_ELEMENT_TYPES: ElementType[];
|
|
411
|
+
export declare const DEFAULT_ERROR_TEXT_ELEMENT_TYPES: {
|
|
412
|
+
CVV: string;
|
|
413
|
+
EXPIRATION_DATE: string;
|
|
414
|
+
CARD_NUMBER: string;
|
|
415
|
+
CARDHOLDER_NAME: string;
|
|
416
|
+
INPUT_FIELD: string;
|
|
417
|
+
PIN: string;
|
|
418
|
+
EXPIRATION_MONTH: string;
|
|
419
|
+
EXPIRATION_YEAR: string;
|
|
420
|
+
FILE_INPUT: string;
|
|
421
|
+
};
|
|
422
|
+
export declare const DEFAULT_REQUIRED_TEXT_ELEMENT_TYPES: {
|
|
423
|
+
CVV: string;
|
|
424
|
+
EXPIRATION_DATE: string;
|
|
425
|
+
CARD_NUMBER: string;
|
|
426
|
+
CARDHOLDER_NAME: string;
|
|
427
|
+
INPUT_FIELD: string;
|
|
428
|
+
PIN: string;
|
|
429
|
+
EXPIRATION_MONTH: string;
|
|
430
|
+
EXPIRATION_YEAR: string;
|
|
431
|
+
FILE_INPUT: string;
|
|
432
|
+
};
|
|
@@ -23,6 +23,7 @@ interface ICollectOptions {
|
|
|
23
23
|
}
|
|
24
24
|
declare class CollectContainer extends Container {
|
|
25
25
|
#private;
|
|
26
|
+
type: string;
|
|
26
27
|
constructor(options: any, metaData: any, skyflowElements: any, context: any);
|
|
27
28
|
create: (input: CollectElementInput, options?: any) => CollectElement;
|
|
28
29
|
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import EventEmitter from '../../../event-emitter';
|
|
1
2
|
import { Context } from '../../../utils/common';
|
|
2
3
|
import SkyflowElement from '../common/skyflow-element';
|
|
3
4
|
declare class CollectElement extends SkyflowElement {
|
|
4
5
|
#private;
|
|
5
6
|
elementType: string;
|
|
7
|
+
type: string;
|
|
6
8
|
containerId: string;
|
|
7
|
-
constructor(elementId: string, elementGroup: any, metaData: any, containerId: string, isSingleElementAPI: boolean | undefined, destroyCallback: Function, updateCallback: Function, context: Context);
|
|
9
|
+
constructor(elementId: string, elementGroup: any, metaData: any, containerId: string, isSingleElementAPI: boolean | undefined, destroyCallback: Function, updateCallback: Function, context: Context, groupEventEmitter?: EventEmitter);
|
|
8
10
|
getID: () => string;
|
|
9
11
|
mount: (domElement: any) => void;
|
|
10
12
|
unmount: () => void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { IUpsertOptions } from '../../../core-utils/collect';
|
|
2
|
+
import { IValidationRule, IInsertRecordInput } from '../../../utils/common';
|
|
3
|
+
import { ElementType } from '../../constants';
|
|
4
|
+
import Container from '../common/container';
|
|
5
|
+
import ComposableElement from './compose-collect-element';
|
|
6
|
+
export interface CollectElementInput {
|
|
7
|
+
table?: string;
|
|
8
|
+
column?: string;
|
|
9
|
+
inputStyles?: object;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelStyles?: object;
|
|
12
|
+
errorTextStyles?: object;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
type: ElementType;
|
|
15
|
+
altText?: string;
|
|
16
|
+
validations?: IValidationRule[];
|
|
17
|
+
skyflowID?: string;
|
|
18
|
+
}
|
|
19
|
+
interface ICollectOptions {
|
|
20
|
+
tokens?: boolean;
|
|
21
|
+
additionalFields?: IInsertRecordInput;
|
|
22
|
+
upsert?: Array<IUpsertOptions>;
|
|
23
|
+
}
|
|
24
|
+
declare class ComposableContainer extends Container {
|
|
25
|
+
#private;
|
|
26
|
+
type: string;
|
|
27
|
+
constructor(options: any, metaData: any, skyflowElements: any, context: any);
|
|
28
|
+
create: (input: CollectElementInput, options?: any) => ComposableElement;
|
|
29
|
+
mount: (domElement: any) => void;
|
|
30
|
+
collect: (options?: ICollectOptions) => Promise<unknown>;
|
|
31
|
+
}
|
|
32
|
+
export default ComposableContainer;
|
|
@@ -15,6 +15,7 @@ export interface IRevealElementOptions {
|
|
|
15
15
|
}
|
|
16
16
|
declare class RevealContainer extends Container {
|
|
17
17
|
#private;
|
|
18
|
+
type: string;
|
|
18
19
|
constructor(metaData: any, skyflowElements: any, context: any);
|
|
19
20
|
create(record: IRevealElementInput, options?: IRevealElementOptions): RevealElement;
|
|
20
21
|
reveal(): Promise<unknown>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IDetokenizeInput, IGetByIdInput, IInsertOptions } from '../../utils/common';
|
|
1
|
+
import { IDetokenizeInput, IGetInput, IGetByIdInput, IInsertOptions } from '../../utils/common';
|
|
2
2
|
declare class SkyflowContainer {
|
|
3
3
|
#private;
|
|
4
4
|
constructor(client: any, context: any);
|
|
5
5
|
detokenize(detokenizeInput: IDetokenizeInput): Promise<any>;
|
|
6
6
|
insert(records: any, options: IInsertOptions): Promise<any>;
|
|
7
7
|
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
8
|
+
get(getInput: IGetInput): Promise<unknown>;
|
|
8
9
|
}
|
|
9
10
|
export default SkyflowContainer;
|
|
@@ -27,6 +27,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
27
27
|
clientErrorText: string | undefined;
|
|
28
28
|
format: string;
|
|
29
29
|
skyflowID?: string;
|
|
30
|
+
containerType: string;
|
|
30
31
|
constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
|
|
31
32
|
onFocusChange: (focus: boolean) => void;
|
|
32
33
|
changeFocus: (focus: boolean) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Client from '../client';
|
|
2
|
-
import {
|
|
2
|
+
import { IRevealRecord, IRevealResponseType, IGetRecord, ISkyflowIdRecord } from '../utils/common';
|
|
3
3
|
export declare const fetchRecordsByTokenId: (tokenIdRecords: IRevealRecord[], client: Client) => Promise<IRevealResponseType>;
|
|
4
4
|
export declare const formatRecordsForIframe: (response: IRevealResponseType) => Record<string, string>;
|
|
5
5
|
export declare const formatRecordsForClient: (response: IRevealResponseType) => {
|
|
@@ -16,4 +16,5 @@ export declare const formatRecordsForClient: (response: IRevealResponseType) =>
|
|
|
16
16
|
errors: Record<string, any>[] | undefined;
|
|
17
17
|
success?: undefined;
|
|
18
18
|
};
|
|
19
|
+
export declare const fetchRecordsGET: (skyflowIdRecords: IGetRecord[], client: Client) => Promise<unknown>;
|
|
19
20
|
export declare const fetchRecordsBySkyflowID: (skyflowIdRecords: ISkyflowIdRecord[], client: Client) => Promise<unknown>;
|
package/types/skyflow.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ElementType } from './core/constants';
|
|
2
2
|
import RevealContainer from './core/external/reveal/reveal-container';
|
|
3
3
|
import CollectContainer from './core/external/collect/collect-container';
|
|
4
|
-
import { IRevealResponseType, RequestMethod, IInsertRecordInput, IDetokenizeInput,
|
|
4
|
+
import { IRevealResponseType, RequestMethod, IInsertRecordInput, IDetokenizeInput, IGetInput, RedactionType, EventName, Env, LogLevel, ValidationRuleType, IGetByIdInput, IInsertOptions } from './utils/common';
|
|
5
|
+
import ComposableContainer from './core/external/collect/compose-collect-container';
|
|
5
6
|
export declare enum ContainerType {
|
|
6
7
|
COLLECT = "COLLECT",
|
|
7
|
-
REVEAL = "REVEAL"
|
|
8
|
+
REVEAL = "REVEAL",
|
|
9
|
+
COMPOSABLE = "COMPOSABLE"
|
|
8
10
|
}
|
|
9
11
|
export interface ISkyflow {
|
|
10
12
|
vaultID?: string;
|
|
@@ -16,11 +18,11 @@ declare class Skyflow {
|
|
|
16
18
|
#private;
|
|
17
19
|
constructor(config: ISkyflow);
|
|
18
20
|
static init(config: ISkyflow): Skyflow;
|
|
19
|
-
container(type: ContainerType, options?: Record<string, any>): CollectContainer | RevealContainer;
|
|
21
|
+
container(type: ContainerType, options?: Record<string, any>): CollectContainer | RevealContainer | ComposableContainer;
|
|
20
22
|
insert(records: IInsertRecordInput, options: IInsertOptions): Promise<any>;
|
|
21
23
|
detokenize(detokenizeInput: IDetokenizeInput): Promise<IRevealResponseType>;
|
|
22
24
|
getById(getByIdInput: IGetByIdInput): Promise<unknown>;
|
|
23
|
-
get(
|
|
25
|
+
get(getInput: IGetInput): Promise<unknown>;
|
|
24
26
|
static get ContainerType(): typeof ContainerType;
|
|
25
27
|
static get ElementType(): typeof ElementType;
|
|
26
28
|
static get RedactionType(): typeof RedactionType;
|
|
@@ -55,13 +55,21 @@ export interface IRevealResponseType {
|
|
|
55
55
|
export interface IDetokenizeInput {
|
|
56
56
|
records: IRevealRecord[];
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
58
|
+
export interface IGetRecord {
|
|
59
59
|
ids?: string[];
|
|
60
60
|
redaction: RedactionType;
|
|
61
61
|
table: string;
|
|
62
62
|
columnName?: string;
|
|
63
63
|
columnValues?: string[];
|
|
64
64
|
}
|
|
65
|
+
export interface IGetInput {
|
|
66
|
+
records: IGetRecord[];
|
|
67
|
+
}
|
|
68
|
+
export interface ISkyflowIdRecord {
|
|
69
|
+
ids: string[];
|
|
70
|
+
redaction: RedactionType;
|
|
71
|
+
table: string;
|
|
72
|
+
}
|
|
65
73
|
export interface IGetByIdInput {
|
|
66
74
|
records: ISkyflowIdRecord[];
|
|
67
75
|
}
|
|
@@ -443,5 +443,93 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
443
443
|
code: number;
|
|
444
444
|
description: string;
|
|
445
445
|
};
|
|
446
|
+
RECORDS_KEY_NOT_FOUND_GETBYID: {
|
|
447
|
+
code: number;
|
|
448
|
+
description: string;
|
|
449
|
+
};
|
|
450
|
+
INVALID_RECORDS_IN_GETBYID: {
|
|
451
|
+
code: number;
|
|
452
|
+
description: string;
|
|
453
|
+
};
|
|
454
|
+
EMPTY_RECORDS_GETBYID: {
|
|
455
|
+
code: number;
|
|
456
|
+
description: string;
|
|
457
|
+
};
|
|
458
|
+
MISSING_IDS_IN_GETBYID: {
|
|
459
|
+
code: number;
|
|
460
|
+
description: string;
|
|
461
|
+
};
|
|
462
|
+
INVALID_IDS_IN_GETBYID: {
|
|
463
|
+
code: number;
|
|
464
|
+
description: string;
|
|
465
|
+
};
|
|
466
|
+
EMPTY_IDS_IN_GETBYID: {
|
|
467
|
+
code: number;
|
|
468
|
+
description: string;
|
|
469
|
+
};
|
|
470
|
+
INVALID_SKYFLOWID_TYPE_IN_GETBYID: {
|
|
471
|
+
code: number;
|
|
472
|
+
description: string;
|
|
473
|
+
};
|
|
474
|
+
MISSING_TABLE_IN_GETBYID: {
|
|
475
|
+
code: number;
|
|
476
|
+
description: string;
|
|
477
|
+
};
|
|
478
|
+
INVALID_TABLE_IN_GETBYID: {
|
|
479
|
+
code: number;
|
|
480
|
+
description: string;
|
|
481
|
+
};
|
|
482
|
+
MISSING_REDACTION_IN_GETBYID: {
|
|
483
|
+
code: number;
|
|
484
|
+
description: string;
|
|
485
|
+
};
|
|
486
|
+
INVALID_REDACTION_TYPE_IN_GETBYID: {
|
|
487
|
+
code: number;
|
|
488
|
+
description: string;
|
|
489
|
+
};
|
|
490
|
+
EMPTY_SKYFLOWID_IN_GETBYID: {
|
|
491
|
+
code: number;
|
|
492
|
+
description: string;
|
|
493
|
+
};
|
|
494
|
+
EMPTY_TABLE_IN_GETBYID: {
|
|
495
|
+
code: number;
|
|
496
|
+
description: string;
|
|
497
|
+
};
|
|
498
|
+
EMPTY_REDACTION_TYPE_IN_GETBYID: {
|
|
499
|
+
code: number;
|
|
500
|
+
description: string;
|
|
501
|
+
};
|
|
502
|
+
MISSING_COMPOSABLE_LAYOUT_KEY: {
|
|
503
|
+
code: number;
|
|
504
|
+
description: string;
|
|
505
|
+
};
|
|
506
|
+
EMPTY_COMPOSABLE_LAYOUT_ARRAY: {
|
|
507
|
+
code: number;
|
|
508
|
+
description: string;
|
|
509
|
+
};
|
|
510
|
+
INVALID_COMPOSABLE_LAYOUT_TYPE: {
|
|
511
|
+
code: number;
|
|
512
|
+
description: string;
|
|
513
|
+
};
|
|
514
|
+
NEGATIVE_VALUES_COMPOSABLE_LAYOUT: {
|
|
515
|
+
code: number;
|
|
516
|
+
description: string;
|
|
517
|
+
};
|
|
518
|
+
MISMATCH_ELEMENT_COUNT_LAYOUT_SUM: {
|
|
519
|
+
code: number;
|
|
520
|
+
description: string;
|
|
521
|
+
};
|
|
522
|
+
MISSING_COMPOSABLE_CONTAINER_OPTIONS: {
|
|
523
|
+
code: number;
|
|
524
|
+
description: string;
|
|
525
|
+
};
|
|
526
|
+
INVALID_COMPOSABLE_CONTAINER_OPTIONS: {
|
|
527
|
+
code: number;
|
|
528
|
+
description: string;
|
|
529
|
+
};
|
|
530
|
+
COMPOSABLE_CONTAINER_NOT_MOUNTED: {
|
|
531
|
+
code: number;
|
|
532
|
+
description: string;
|
|
533
|
+
};
|
|
446
534
|
};
|
|
447
535
|
export default SKYFLOW_ERROR_CODE;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ContainerType } from '../../skyflow';
|
|
1
2
|
export declare const flattenObject: (obj: any, roots?: any, sep?: string) => any;
|
|
2
3
|
export declare function formatFrameNameToId(name: string): string;
|
|
3
4
|
export declare function removeSpaces(inputString: string): string;
|
|
@@ -9,3 +10,4 @@ export declare const copyToClipboard: (text: string) => void;
|
|
|
9
10
|
export declare const handleCopyIconClick: (textToCopy: string, domCopy: any) => void;
|
|
10
11
|
export declare const fileValidation: (value: any) => boolean;
|
|
11
12
|
export declare const styleToString: (style: any) => string;
|
|
13
|
+
export declare const getContainerType: (frameName: string) => ContainerType;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ declare const logs: {
|
|
|
29
29
|
INSERT_TRIGGERED: string;
|
|
30
30
|
DETOKENIZE_TRIGGERED: string;
|
|
31
31
|
GET_TRIGGERED: string;
|
|
32
|
+
GET_BY_ID_TRIGGERED: string;
|
|
32
33
|
EMIT_PURE_JS_REQUEST: string;
|
|
33
34
|
CAPTURE_PURE_JS_REQUEST: string;
|
|
34
35
|
LISTEN_PURE_JS_REQUEST: string;
|
|
@@ -36,6 +37,7 @@ declare const logs: {
|
|
|
36
37
|
FETCH_RECORDS_RESOLVED: string;
|
|
37
38
|
INSERT_RECORDS_RESOLVED: string;
|
|
38
39
|
GET_RESOLVED: string;
|
|
40
|
+
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
39
41
|
EMIT_EVENT: string;
|
|
40
42
|
CAPTURE_EVENT: string;
|
|
41
43
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
@@ -58,6 +60,7 @@ declare const logs: {
|
|
|
58
60
|
IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER: string;
|
|
59
61
|
CURRENT_ENV: string;
|
|
60
62
|
CURRENT_LOG_LEVEL: string;
|
|
63
|
+
VALIDATE_GET_BY_ID_INPUT: string;
|
|
61
64
|
};
|
|
62
65
|
errorLogs: {
|
|
63
66
|
CLIENT_CONNECTION: string;
|
|
@@ -186,6 +189,30 @@ declare const logs: {
|
|
|
186
189
|
EMPTY_COLUMN_VALUE: string;
|
|
187
190
|
MISSING_IDS_OR_COLUMN_VALUES_IN_GET: string;
|
|
188
191
|
SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED: string;
|
|
192
|
+
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
193
|
+
RECORDS_KEY_NOT_FOUND_GETBYID: string;
|
|
194
|
+
INVALID_RECORDS_IN_GETBYID: string;
|
|
195
|
+
EMPTY_RECORDS_GETBYID: string;
|
|
196
|
+
MISSING_IDS_IN_GETBYID: string;
|
|
197
|
+
INVALID_IDS_IN_GETBYID: string;
|
|
198
|
+
EMPTY_IDS_IN_GETBYID: string;
|
|
199
|
+
INVALID_SKYFLOWID_TYPE_IN_GETBYID: string;
|
|
200
|
+
MISSING_TABLE_IN_GETBYID: string;
|
|
201
|
+
INVALID_TABLE_IN_GETBYID: string;
|
|
202
|
+
MISSING_REDACTION_IN_GETBYID: string;
|
|
203
|
+
INVALID_REDACTION_TYPE_IN_GETBYID: string;
|
|
204
|
+
EMPTY_SKYFLOWID_IN_GETBYID: string;
|
|
205
|
+
EMPTY_TABLE_IN_GETBYID: string;
|
|
206
|
+
EMPTY_REDACTION_TYPE_IN_GETBYID: string;
|
|
207
|
+
GET_BY_SKYFLOWID_REJECTED: string;
|
|
208
|
+
MISSING_COMPOSABLE_LAYOUT_KEY: string;
|
|
209
|
+
EMPTY_COMPOSABLE_LAYOUT_ARRAY: string;
|
|
210
|
+
INVALID_COMPOSABLE_LAYOUT_TYPE: string;
|
|
211
|
+
NEGATIVE_VALUES_COMPOSABLE_LAYOUT: string;
|
|
212
|
+
MISMATCH_ELEMENT_COUNT_LAYOUT_SUM: string;
|
|
213
|
+
MISSING_COMPOSABLE_CONTAINER_OPTIONS: string;
|
|
214
|
+
INVALID_COMPOSABLE_CONTAINER_OPTIONS: string;
|
|
215
|
+
COMPOSABLE_CONTAINER_NOT_MOUNTED: string;
|
|
189
216
|
};
|
|
190
217
|
warnLogs: {
|
|
191
218
|
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
@@ -2,7 +2,7 @@ import { CardType } from '../../core/constants';
|
|
|
2
2
|
import { CollectElementInput } from '../../core/external/collect/collect-container';
|
|
3
3
|
import { IRevealElementInput } from '../../core/external/reveal/reveal-container';
|
|
4
4
|
import { ISkyflow } from '../../skyflow';
|
|
5
|
-
import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput } from '../common';
|
|
5
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetInput, IGetByIdInput } from '../common';
|
|
6
6
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
7
7
|
export declare const detectCardType: (cardNumber?: string) => CardType.DEFAULT;
|
|
8
8
|
export declare const validateExpiryDate: (date: string, format: string) => boolean;
|
|
@@ -13,6 +13,7 @@ export declare const isValidExpiryYearFormat: (format: string) => boolean;
|
|
|
13
13
|
export declare const validateInsertRecords: (recordObj: IInsertRecordInput, options: any) => void;
|
|
14
14
|
export declare const validateAdditionalFieldsInCollect: (recordObj: IInsertRecordInput) => void;
|
|
15
15
|
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|
|
16
|
+
export declare const validateGetInput: (getInput: IGetInput) => void;
|
|
16
17
|
export declare const validateGetByIdInput: (getByIdInput: IGetByIdInput) => void;
|
|
17
18
|
export declare const validateRevealElementRecords: (records: IRevealElementInput[]) => void;
|
|
18
19
|
export declare const isValidURL: (url: string) => boolean;
|
|
@@ -21,3 +22,4 @@ export declare const validateCardNumberLengthCheck: (cardNumber?: string) => boo
|
|
|
21
22
|
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
22
23
|
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: any) => void;
|
|
23
24
|
export declare const validateUpsertOptions: (upsertOptions: any) => void;
|
|
25
|
+
export declare const validateComposableContainerOptions: (options: any) => void;
|