skyflow-js 2.5.0-beta.9 → 2.6.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 +142 -1
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/client/index.d.ts +9 -7
- package/types/core/constants.d.ts +1 -0
- package/types/core/external/collect/collect-container.d.ts +29 -3
- package/types/core/external/collect/collect-element.d.ts +5 -2
- package/types/core/external/collect/compose-collect-container.d.ts +8 -2
- package/types/core/external/common/iframe.d.ts +4 -2
- package/types/core/external/common/skyflow-element.d.ts +7 -7
- package/types/core/external/reveal/composable-reveal-container.d.ts +4 -2
- package/types/core/external/reveal/composable-reveal-element.d.ts +2 -1
- package/types/core/external/reveal/composable-reveal-internal.d.ts +4 -4
- package/types/core/external/reveal/reveal-container.d.ts +3 -2
- package/types/core/external/reveal/reveal-element.d.ts +2 -1
- package/types/core/external/skyflow-container.d.ts +4 -2
- package/types/core/internal/composable-frame-element-init.d.ts +1 -1
- package/types/core/internal/internal-types/index.d.ts +75 -0
- package/types/core/internal/reveal/reveal-frame.d.ts +2 -1
- package/types/core/internal/skyflow-frame/skyflow-frame-controller.d.ts +11 -8
- package/types/core-utils/collect.d.ts +10 -4
- package/types/core-utils/delete.d.ts +2 -2
- package/types/core-utils/reveal.d.ts +4 -19
- package/types/index-node.d.ts +3 -1
- package/types/libs/element-options.d.ts +4 -2
- package/types/libs/jss-styles.d.ts +1 -1
- package/types/skyflow.d.ts +10 -2
- package/types/utils/bus-events/index.d.ts +1 -1
- package/types/utils/common/index.d.ts +27 -10
- package/types/utils/constants.d.ts +64 -0
- package/types/utils/helpers/index.d.ts +8 -8
- package/types/utils/logs.d.ts +19 -0
- package/types/utils/validators/index.d.ts +4 -3
|
@@ -267,6 +267,50 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
267
267
|
code: number;
|
|
268
268
|
description: string;
|
|
269
269
|
};
|
|
270
|
+
INVALID_RECORD_KEY_UPDATE: {
|
|
271
|
+
code: number;
|
|
272
|
+
description: string;
|
|
273
|
+
};
|
|
274
|
+
MISSING_TABLE_IN_UPDATE: {
|
|
275
|
+
code: number;
|
|
276
|
+
description: string;
|
|
277
|
+
};
|
|
278
|
+
EMPTY_TABLE_IN_UPDATE: {
|
|
279
|
+
code: number;
|
|
280
|
+
description: string;
|
|
281
|
+
};
|
|
282
|
+
INVALID_TABLE_IN_UPDATE: {
|
|
283
|
+
code: number;
|
|
284
|
+
description: string;
|
|
285
|
+
};
|
|
286
|
+
MISSING_FIELDS_IN_UPDATE: {
|
|
287
|
+
code: number;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
EMPTY_FIELDS_IN_UPDATE: {
|
|
291
|
+
code: number;
|
|
292
|
+
description: string;
|
|
293
|
+
};
|
|
294
|
+
INVALID_FIELDS_IN_UPDATE: {
|
|
295
|
+
code: number;
|
|
296
|
+
description: string;
|
|
297
|
+
};
|
|
298
|
+
MISSING_SKYFLOWID_IN_UPDATE: {
|
|
299
|
+
code: number;
|
|
300
|
+
description: string;
|
|
301
|
+
};
|
|
302
|
+
EMPTY_SKYFLOWID_IN_UPDATE: {
|
|
303
|
+
code: number;
|
|
304
|
+
description: string;
|
|
305
|
+
};
|
|
306
|
+
INVALID_SKYFLOWID_IN_UPDATE: {
|
|
307
|
+
code: number;
|
|
308
|
+
description: string;
|
|
309
|
+
};
|
|
310
|
+
INVALID_TOKENS_IN_UPDATE: {
|
|
311
|
+
code: number;
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
270
314
|
EMPTY_RECORDS_IN_DELETE: {
|
|
271
315
|
code: number;
|
|
272
316
|
description: string;
|
|
@@ -451,6 +495,22 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
451
495
|
code: number;
|
|
452
496
|
description: string;
|
|
453
497
|
};
|
|
498
|
+
OFFLINE_ERROR: {
|
|
499
|
+
code: number;
|
|
500
|
+
description: string;
|
|
501
|
+
};
|
|
502
|
+
TIMEOUT_ERROR: {
|
|
503
|
+
code: number;
|
|
504
|
+
description: string;
|
|
505
|
+
};
|
|
506
|
+
ABORT_ERROR: {
|
|
507
|
+
code: number;
|
|
508
|
+
description: string;
|
|
509
|
+
};
|
|
510
|
+
GENERIC_ERROR: {
|
|
511
|
+
code: number;
|
|
512
|
+
description: string;
|
|
513
|
+
};
|
|
454
514
|
COMPLETE_AND_VALID_INPUTS: {
|
|
455
515
|
code: number;
|
|
456
516
|
description: string;
|
|
@@ -739,5 +799,9 @@ declare const SKYFLOW_ERROR_CODE: {
|
|
|
739
799
|
code: number;
|
|
740
800
|
description: string;
|
|
741
801
|
};
|
|
802
|
+
NO_FILE_ELEMENT_FOUND: {
|
|
803
|
+
code: number;
|
|
804
|
+
description: string;
|
|
805
|
+
};
|
|
742
806
|
};
|
|
743
807
|
export default SKYFLOW_ERROR_CODE;
|
|
@@ -4,19 +4,19 @@ import { ContainerType, ISkyflow } from '../../skyflow';
|
|
|
4
4
|
export declare const flattenObject: (obj: any, roots?: any, sep?: string) => any;
|
|
5
5
|
export declare function formatFrameNameToId(name: string): string;
|
|
6
6
|
export declare function removeSpaces(inputString: string): string;
|
|
7
|
-
export declare function formatVaultURL(vaultURL
|
|
7
|
+
export declare function formatVaultURL(vaultURL?: string): string | undefined;
|
|
8
8
|
export declare function checkIfDuplicateExists(arr: any): boolean;
|
|
9
|
-
export declare const appendZeroToOne: (value:
|
|
9
|
+
export declare const appendZeroToOne: (value: string) => {
|
|
10
10
|
isAppended: boolean;
|
|
11
|
-
value:
|
|
11
|
+
value: string;
|
|
12
12
|
};
|
|
13
|
-
export declare const appendMonthFourDigitYears: (value:
|
|
13
|
+
export declare const appendMonthFourDigitYears: (value: string) => {
|
|
14
14
|
isAppended: boolean;
|
|
15
|
-
value:
|
|
15
|
+
value: string;
|
|
16
16
|
};
|
|
17
|
-
export declare const appendMonthTwoDigitYears: (value:
|
|
17
|
+
export declare const appendMonthTwoDigitYears: (value: string) => {
|
|
18
18
|
isAppended: boolean;
|
|
19
|
-
value:
|
|
19
|
+
value: string;
|
|
20
20
|
};
|
|
21
21
|
export declare const getReturnValue: (value: string | Blob, element: string, doesReturnValue: boolean) => string | Blob | undefined;
|
|
22
22
|
export declare function domReady(fn: any): void;
|
|
@@ -27,7 +27,7 @@ export declare const getMaskedOutput: (input: string, format: string, translatio
|
|
|
27
27
|
export declare const copyToClipboard: (text: string) => void;
|
|
28
28
|
export declare const handleCopyIconClick: (textToCopy: string, domCopy: any) => void;
|
|
29
29
|
export declare const fileValidation: (value: any, required: Boolean | undefined, fileElement: any) => boolean;
|
|
30
|
-
export declare const vaildateFileName: (name:
|
|
30
|
+
export declare const vaildateFileName: (name: string) => boolean;
|
|
31
31
|
export declare const styleToString: (style: any) => string;
|
|
32
32
|
export declare const getContainerType: (frameName: string) => ContainerType;
|
|
33
33
|
export declare const addSeperatorToCardNumberMask: (cardNumberMask: any, seperator?: string) => any;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ declare const logs: {
|
|
|
35
35
|
PUREJS_LISTENER_READY: string;
|
|
36
36
|
EMIT_PURE_JS_CONTROLLER: string;
|
|
37
37
|
INSERT_TRIGGERED: string;
|
|
38
|
+
UPDATE_TRIGGERED: string;
|
|
38
39
|
DETOKENIZE_TRIGGERED: string;
|
|
39
40
|
GET_TRIGGERED: string;
|
|
40
41
|
GET_BY_ID_TRIGGERED: string;
|
|
@@ -45,6 +46,7 @@ declare const logs: {
|
|
|
45
46
|
CAPTURE_PUREJS_FRAME: string;
|
|
46
47
|
FETCH_RECORDS_RESOLVED: string;
|
|
47
48
|
INSERT_RECORDS_RESOLVED: string;
|
|
49
|
+
UPDATE_RECORD_RESOLVED: string;
|
|
48
50
|
GET_RESOLVED: string;
|
|
49
51
|
GET_BY_SKYFLOWID_RESOLVED: string;
|
|
50
52
|
DELETE_RESOLVED: string;
|
|
@@ -110,6 +112,17 @@ declare const logs: {
|
|
|
110
112
|
INVALID_FIELDS_IN_INSERT: string;
|
|
111
113
|
INVALID_TOKENS_IN_INSERT: string;
|
|
112
114
|
RECORDS_KEY_NOT_FOUND_DELETE: string;
|
|
115
|
+
INVALID_RECORD_KEY_UPDATE: string;
|
|
116
|
+
MISSING_TABLE_IN_UPDATE: string;
|
|
117
|
+
EMPTY_TABLE_IN_UPDATE: string;
|
|
118
|
+
INVALID_TABLE_IN_UPDATE: string;
|
|
119
|
+
MISSING_FIELDS_IN_UPDATE: string;
|
|
120
|
+
EMPTY_FIELDS_IN_UPDATE: string;
|
|
121
|
+
INVALID_FIELDS_IN_UPDATE: string;
|
|
122
|
+
MISSING_SKYFLOWID_IN_UPDATE: string;
|
|
123
|
+
EMPTY_SKYFLOWID_IN_UPDATE: string;
|
|
124
|
+
INVALID_SKYFLOWID_IN_UPDATE: string;
|
|
125
|
+
INVALID_TOKENS_IN_UPDATE: string;
|
|
113
126
|
INVALID_RECORDS_IN_DELETE: string;
|
|
114
127
|
EMPTY_RECORDS_IN_DELETE: string;
|
|
115
128
|
MISSING_TABLE_IN_DELETE: string;
|
|
@@ -178,6 +191,7 @@ declare const logs: {
|
|
|
178
191
|
EMPTY_TOKEN_ID_REVEAL: string;
|
|
179
192
|
FETCH_RECORDS_REJECTED: string;
|
|
180
193
|
INSERT_RECORDS_REJECTED: string;
|
|
194
|
+
UPDATE_RECORD_REJECTED: string;
|
|
181
195
|
GET_REJECTED: string;
|
|
182
196
|
FAILED_REVEAL: string;
|
|
183
197
|
FAILED_RENDER: string;
|
|
@@ -212,6 +226,10 @@ declare const logs: {
|
|
|
212
226
|
INVALID_HANDLER_IN_EVENT_LISTENER: string;
|
|
213
227
|
UNKNOWN_ERROR: string;
|
|
214
228
|
NETWORK_ERROR: string;
|
|
229
|
+
TIMEOUT_ERROR: string;
|
|
230
|
+
ABORT_ERROR: string;
|
|
231
|
+
GENERIC_ERROR: string;
|
|
232
|
+
OFFLINE_ERROR: string;
|
|
215
233
|
CONNECTION_ERROR: string;
|
|
216
234
|
ERROR_OCCURED: string;
|
|
217
235
|
INVALID_VALIDATIONS_TYPE: string;
|
|
@@ -282,6 +300,7 @@ declare const logs: {
|
|
|
282
300
|
INVALID_OPTION_CARD_METADATA: string;
|
|
283
301
|
INVALID_OPTION_CARD_SCHEME: string;
|
|
284
302
|
INVALID_FIELD_SHOW_3DS_CHALLEGNGE: string;
|
|
303
|
+
NO_FILE_ELEMENT_FOUND: string;
|
|
285
304
|
};
|
|
286
305
|
warnLogs: {
|
|
287
306
|
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CardType } from '../../core/constants';
|
|
2
2
|
import { IRevealElementInput } from '../../core/external/reveal/reveal-container';
|
|
3
3
|
import { ISkyflow } from '../../skyflow';
|
|
4
|
-
import { IInsertRecordInput, IDetokenizeInput, IGetInput, IGetByIdInput, IDeleteRecordInput, IGetOptions, CollectElementInput } from '../common';
|
|
4
|
+
import { IInsertRecordInput, IDetokenizeInput, IGetInput, IGetByIdInput, IDeleteRecordInput, IGetOptions, CollectElementInput, LogLevel, ContainerOptions, IUpdateRequest, IUpdateOptions } from '../common';
|
|
5
5
|
export declare const validateCreditCardNumber: (cardNumber: string) => boolean;
|
|
6
6
|
export declare const detectCardType: (cardNumber?: string) => CardType.DEFAULT;
|
|
7
7
|
export declare const validateExpiryDate: (date: string, format: string) => boolean;
|
|
@@ -10,6 +10,7 @@ export declare const validateExpiryMonth: (month: string) => boolean;
|
|
|
10
10
|
export declare const isValidExpiryDateFormat: (format: string) => boolean;
|
|
11
11
|
export declare const isValidExpiryYearFormat: (format: string) => boolean;
|
|
12
12
|
export declare const validateInsertRecords: (recordObj: IInsertRecordInput, options: any) => void;
|
|
13
|
+
export declare const validateUpdateRecord: (recordObj: IUpdateRequest, options?: IUpdateOptions) => void;
|
|
13
14
|
export declare const validateAdditionalFieldsInCollect: (recordObj: IInsertRecordInput) => void;
|
|
14
15
|
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|
|
15
16
|
export declare const validateGetInput: (getInput: IGetInput, options?: IGetOptions) => void;
|
|
@@ -21,8 +22,8 @@ export declare const isValidURL: (url: string) => boolean;
|
|
|
21
22
|
export declare const isValidRegExp: (input: any) => boolean;
|
|
22
23
|
export declare const validateCardNumberLengthCheck: (cardNumber?: string) => boolean;
|
|
23
24
|
export declare const validateInitConfig: (initConfig: ISkyflow) => void;
|
|
24
|
-
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel:
|
|
25
|
+
export declare const validateCollectElementInput: (input: CollectElementInput, logLevel: LogLevel) => void;
|
|
25
26
|
export declare const validateUpsertOptions: (upsertOptions: any) => void;
|
|
26
|
-
export declare const validateComposableContainerOptions: (options:
|
|
27
|
+
export declare const validateComposableContainerOptions: (options: ContainerOptions) => void;
|
|
27
28
|
export declare const validateBooleanOptions: (option: any) => boolean;
|
|
28
29
|
export declare const validateInputFormatOptions: (options: any) => void;
|