skyflow-js 2.5.0-beta.6 → 2.5.0-beta.7
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/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt +1 -1
- package/dist/sdkNodeBuild/index.js.LICENSE.txt.gz +0 -0
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +14 -1
- package/types/core/external/collect/compose-collect-element.d.ts +3 -2
- package/types/core/external/reveal/composable-reveal-element.d.ts +2 -0
- package/types/core/external/reveal/composable-reveal-internal.d.ts +1 -1
- package/types/core/internal/frame-element-init.d.ts +5 -0
- package/types/core-utils/collect.d.ts +1 -0
- package/types/utils/common/index.d.ts +3 -0
- package/types/utils/constants.d.ts +4 -0
- package/types/utils/logs.d.ts +3 -0
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/
|
|
8
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -89,10 +89,12 @@ export declare const ELEMENT_EVENTS_TO_CLIENT: {
|
|
|
89
89
|
HEIGHT: string;
|
|
90
90
|
};
|
|
91
91
|
export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
92
|
+
MULTIPLE_UPLOAD_FILES_RESPONSE: string;
|
|
92
93
|
RENDER_MOUNTED: string;
|
|
93
94
|
HEIGHT_CALLBACK: string;
|
|
94
95
|
HEIGHT_CALLBACK_COMPOSABLE: string;
|
|
95
96
|
COMPOSABLE_REVEAL: string;
|
|
97
|
+
MULTIPLE_UPLOAD_FILES: string;
|
|
96
98
|
COLLECT_CALL_REQUESTS: string;
|
|
97
99
|
COMPOSABLE_CALL_REQUESTS: string;
|
|
98
100
|
COMPOSABLE_CALL_RESPONSE: string;
|
|
@@ -152,7 +154,8 @@ export declare enum ElementType {
|
|
|
152
154
|
PIN = "PIN",
|
|
153
155
|
EXPIRATION_MONTH = "EXPIRATION_MONTH",
|
|
154
156
|
EXPIRATION_YEAR = "EXPIRATION_YEAR",
|
|
155
|
-
FILE_INPUT = "FILE_INPUT"
|
|
157
|
+
FILE_INPUT = "FILE_INPUT",
|
|
158
|
+
MULTI_FILE_INPUT = "MULTI_FILE_INPUT"
|
|
156
159
|
}
|
|
157
160
|
export declare enum CardType {
|
|
158
161
|
VISA = "VISA",
|
|
@@ -334,6 +337,14 @@ export declare const ELEMENTS: {
|
|
|
334
337
|
type: string;
|
|
335
338
|
};
|
|
336
339
|
};
|
|
340
|
+
MULTI_FILE_INPUT: {
|
|
341
|
+
name: string;
|
|
342
|
+
sensitive: boolean;
|
|
343
|
+
attributes: {
|
|
344
|
+
type: string;
|
|
345
|
+
multiple: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
337
348
|
};
|
|
338
349
|
export declare const CARDNUMBER_INPUT_FORMAT: {
|
|
339
350
|
SPACE_FORMAT: string;
|
|
@@ -562,6 +573,7 @@ export declare const DEFAULT_ERROR_TEXT_ELEMENT_TYPES: {
|
|
|
562
573
|
EXPIRATION_MONTH: string;
|
|
563
574
|
EXPIRATION_YEAR: string;
|
|
564
575
|
FILE_INPUT: string;
|
|
576
|
+
MULTI_FILE_INPUT: string;
|
|
565
577
|
};
|
|
566
578
|
export declare const DEFAULT_REQUIRED_TEXT_ELEMENT_TYPES: {
|
|
567
579
|
CVV: string;
|
|
@@ -573,6 +585,7 @@ export declare const DEFAULT_REQUIRED_TEXT_ELEMENT_TYPES: {
|
|
|
573
585
|
EXPIRATION_MONTH: string;
|
|
574
586
|
EXPIRATION_YEAR: string;
|
|
575
587
|
FILE_INPUT: string;
|
|
588
|
+
MULTI_FILE_INPUT: string;
|
|
576
589
|
};
|
|
577
590
|
export declare const INPUT_KEYBOARD_EVENTS: {
|
|
578
591
|
ENTER: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { CollectElementUpdateOptions } from '../../../utils/common';
|
|
1
|
+
import { CollectElementUpdateOptions, MetaData } from '../../../utils/common';
|
|
2
2
|
declare class ComposableElement {
|
|
3
3
|
#private;
|
|
4
4
|
type: string;
|
|
5
|
-
constructor(name: any, eventEmitter: any, iframeName: any);
|
|
5
|
+
constructor(name: any, eventEmitter: any, iframeName: any, metaData: any);
|
|
6
6
|
on(eventName: string, handler: Function): void;
|
|
7
7
|
iframeName(): string;
|
|
8
8
|
getID(): string;
|
|
9
9
|
update: (options: CollectElementUpdateOptions) => void;
|
|
10
|
+
uploadMultipleFiles: (metaData?: MetaData) => Promise<unknown>;
|
|
10
11
|
}
|
|
11
12
|
export default ComposableElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RenderFileResponse } from '../../../utils/common';
|
|
2
|
+
import { IRevealElementInput, IRevealElementOptions } from './reveal-container';
|
|
2
3
|
declare class ComposableRevealElement {
|
|
3
4
|
#private;
|
|
4
5
|
type: string;
|
|
@@ -6,5 +7,6 @@ declare class ComposableRevealElement {
|
|
|
6
7
|
iframeName(): string;
|
|
7
8
|
getID(): string;
|
|
8
9
|
renderFile(): Promise<RenderFileResponse>;
|
|
10
|
+
update: (options: IRevealElementInput | IRevealElementOptions) => void;
|
|
9
11
|
}
|
|
10
12
|
export default ComposableRevealElement;
|
|
@@ -24,6 +24,6 @@ declare class ComposableRevealInternalElement extends SkyflowElement {
|
|
|
24
24
|
clearAltText(): void;
|
|
25
25
|
setToken(token: string): void;
|
|
26
26
|
unmount(): void;
|
|
27
|
-
update(options: IRevealElementInput): void;
|
|
27
|
+
update(options: IRevealElementInput | IRevealElementOptions, record: any): void;
|
|
28
28
|
}
|
|
29
29
|
export default ComposableRevealInternalElement;
|
|
@@ -17,6 +17,11 @@ export default class FrameElementInit {
|
|
|
17
17
|
private parallelUploadFiles;
|
|
18
18
|
uploadFiles: (fileElement: any, clientConfig: any) => Promise<unknown>;
|
|
19
19
|
private tokenize;
|
|
20
|
+
private multipleUploadFiles;
|
|
21
|
+
private validateFiles;
|
|
22
|
+
private createInsertRequest;
|
|
23
|
+
private extractSkyflowIDs;
|
|
24
|
+
private insertDataCallInMultiFiles;
|
|
20
25
|
updateGroupData: () => void;
|
|
21
26
|
createIframeElement: (frameName: any, label: any, skyflowID: any, isRequired: any) => IFrameFormElement;
|
|
22
27
|
static startFrameElement: () => void;
|
|
@@ -30,5 +30,6 @@ export declare const constructElementsInsertReq: (req: any, update: any, options
|
|
|
30
30
|
export declare const updateRecordsBySkyflowID: (skyflowIdRecords: any, client: Client, options: any) => Promise<unknown>;
|
|
31
31
|
export declare const updateRecordsBySkyflowIDComposable: (skyflowIdRecords: any, client: Client, options: any, authToken: string) => Promise<unknown>;
|
|
32
32
|
export declare const insertDataInCollect: (records: any, client: Client, options: any, finalInsertRecords: any, authToken: string) => Promise<unknown>;
|
|
33
|
+
export declare const insertDataInMultipleFiles: (records: any, client: Client, options: any, finalInsertRecords: any, authToken: string) => Promise<unknown>;
|
|
33
34
|
export declare const checkForElementMatchRule: (validations: IValidationRule[]) => boolean;
|
|
34
35
|
export declare const checkForValueMatch: (validations: IValidationRule[], element: IFrameFormElement) => boolean;
|
|
@@ -268,6 +268,9 @@ export interface ICollectOptions {
|
|
|
268
268
|
additionalFields?: IInsertRecordInput;
|
|
269
269
|
upsert?: Array<IUpsertOptions>;
|
|
270
270
|
}
|
|
271
|
+
export interface MetaData {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
}
|
|
271
274
|
export interface UploadFilesResponse {
|
|
272
275
|
fileUploadResponse: [{
|
|
273
276
|
skyflow_id: string;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ declare const logs: {
|
|
|
19
19
|
ELEMENT_REVEALED: string;
|
|
20
20
|
FILE_RENDERED: string;
|
|
21
21
|
COLLECT_SUBMIT_SUCCESS: string;
|
|
22
|
+
UPLOAD_FILES_SUCCESS: string;
|
|
23
|
+
MULTI_UPLOAD_FILES_SUCCESS: string;
|
|
22
24
|
REVEAL_SUBMIT_SUCCESS: string;
|
|
23
25
|
RENDER_SUBMIT_SUCCESS: string;
|
|
24
26
|
INSERT_DATA_SUCCESS: string;
|
|
@@ -75,6 +77,7 @@ declare const logs: {
|
|
|
75
77
|
VALIDATE_GET_BY_ID_INPUT: string;
|
|
76
78
|
};
|
|
77
79
|
errorLogs: {
|
|
80
|
+
MULTI_FILE_NOT_SUPPORTED: string;
|
|
78
81
|
INVALID_REVEAL_COMPOSABLE_INPUT: string;
|
|
79
82
|
NO_ELEMENTS_IN_COLLECT: string;
|
|
80
83
|
NO_ELEMENTS_IN_COMPOSABLE: string;
|