skyflow-js 1.13.0 → 1.16.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/CHANGELOG.md +18 -1
- package/README.md +12 -6
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +40 -7
- package/types/core/internal/iFrameForm/index.d.ts +2 -2
- package/types/utils/busEvents/index.d.ts +1 -0
- package/types/utils/helpers/index.d.ts +2 -0
- package/types/utils/logs.d.ts +2 -0
- package/types/utils/validators/index.d.ts +3 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -57,7 +57,9 @@ export declare enum ElementType {
|
|
|
57
57
|
CARD_NUMBER = "CARD_NUMBER",
|
|
58
58
|
CARDHOLDER_NAME = "CARDHOLDER_NAME",
|
|
59
59
|
INPUT_FIELD = "INPUT_FIELD",
|
|
60
|
-
PIN = "PIN"
|
|
60
|
+
PIN = "PIN",
|
|
61
|
+
EXPIRATION_MONTH = "EXPIRATION_MONTH",
|
|
62
|
+
EXPIRATION_YEAR = "EXPIRATION_YEAR"
|
|
61
63
|
}
|
|
62
64
|
export declare enum CardType {
|
|
63
65
|
VISA = "VISA",
|
|
@@ -69,7 +71,8 @@ export declare enum CardType {
|
|
|
69
71
|
MAESTRO = "MAESTRO",
|
|
70
72
|
UNIONPAY = "UNIONPAY",
|
|
71
73
|
HIPERCARD = "HIPERCARD",
|
|
72
|
-
DEFAULT = "DEFAULT"
|
|
74
|
+
DEFAULT = "DEFAULT",
|
|
75
|
+
UNKNOWN = "UNKNOWN"
|
|
73
76
|
}
|
|
74
77
|
export declare const CARD_NUMBER_MASK: {
|
|
75
78
|
AMEX: (string | {
|
|
@@ -102,6 +105,9 @@ export declare const CARD_NUMBER_MASK: {
|
|
|
102
105
|
DEFAULT: (string | {
|
|
103
106
|
X: string;
|
|
104
107
|
})[];
|
|
108
|
+
UNKNOWN: (string | {
|
|
109
|
+
X: string;
|
|
110
|
+
})[];
|
|
105
111
|
};
|
|
106
112
|
export declare const ELEMENTS: {
|
|
107
113
|
textarea: {
|
|
@@ -161,6 +167,27 @@ export declare const ELEMENTS: {
|
|
|
161
167
|
};
|
|
162
168
|
sensitive: boolean;
|
|
163
169
|
};
|
|
170
|
+
EXPIRATION_MONTH: {
|
|
171
|
+
name: string;
|
|
172
|
+
attributes: {
|
|
173
|
+
maxLength: number;
|
|
174
|
+
type: string;
|
|
175
|
+
autocomplete: string;
|
|
176
|
+
};
|
|
177
|
+
sensitive: boolean;
|
|
178
|
+
mask: (string | {
|
|
179
|
+
X: string;
|
|
180
|
+
})[];
|
|
181
|
+
};
|
|
182
|
+
EXPIRATION_YEAR: {
|
|
183
|
+
name: string;
|
|
184
|
+
attributes: {
|
|
185
|
+
maxLength: number;
|
|
186
|
+
type: string;
|
|
187
|
+
autocomplete: string;
|
|
188
|
+
};
|
|
189
|
+
sensitive: boolean;
|
|
190
|
+
};
|
|
164
191
|
CVV: {
|
|
165
192
|
name: string;
|
|
166
193
|
attributes: {
|
|
@@ -226,7 +253,7 @@ export declare const INPUT_WITH_ICON_DEFAULT_STYLES: {
|
|
|
226
253
|
'text-indent': string;
|
|
227
254
|
padding: string;
|
|
228
255
|
};
|
|
229
|
-
export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; top:calc(50% -
|
|
256
|
+
export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; top:calc(50% - 12px)";
|
|
230
257
|
export declare const ERROR_TEXT_STYLES: {
|
|
231
258
|
color: string;
|
|
232
259
|
padding: string;
|
|
@@ -334,24 +361,30 @@ export declare const CARD_ENCODED_ICONS: {
|
|
|
334
361
|
};
|
|
335
362
|
export declare const EXPIRY_DATE_MASK: {
|
|
336
363
|
'MM/YYYY': (string | {
|
|
337
|
-
X: string;
|
|
338
364
|
Y: string;
|
|
339
365
|
})[];
|
|
340
366
|
'MM/YY': (string | {
|
|
341
|
-
X: string;
|
|
342
367
|
Y: string;
|
|
343
368
|
})[];
|
|
344
369
|
'YYYY/MM': (string | {
|
|
345
|
-
X: string;
|
|
346
370
|
Y: string;
|
|
347
371
|
})[];
|
|
348
372
|
'YY/MM': (string | {
|
|
349
|
-
|
|
373
|
+
Y: string;
|
|
374
|
+
})[];
|
|
375
|
+
};
|
|
376
|
+
export declare const EXPIRY_YEAR_MASK: {
|
|
377
|
+
YYYY: (string | {
|
|
378
|
+
Y: string;
|
|
379
|
+
})[];
|
|
380
|
+
YY: (string | {
|
|
350
381
|
Y: string;
|
|
351
382
|
})[];
|
|
352
383
|
};
|
|
353
384
|
export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
|
|
354
385
|
export declare const ALLOWED_EXPIRY_DATE_FORMATS: string[];
|
|
386
|
+
export declare const DEFAULT_EXPIRATION_YEAR_FORMAT = "YY";
|
|
387
|
+
export declare const ALLOWED_EXPIRY_YEAR_FORMATS: string[];
|
|
355
388
|
export declare const soapReqXmlErrors: {
|
|
356
389
|
code: number;
|
|
357
390
|
description: string;
|
|
@@ -24,14 +24,14 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
24
24
|
label?: string;
|
|
25
25
|
doesClientHasError: boolean;
|
|
26
26
|
clientErrorText: string | undefined;
|
|
27
|
-
|
|
27
|
+
format: string;
|
|
28
28
|
constructor(name: string, label: string, metaData: any, context: Context);
|
|
29
29
|
onFocusChange: (focus: boolean) => void;
|
|
30
30
|
changeFocus: (focus: boolean) => void;
|
|
31
31
|
setReplacePattern(pattern: string[]): void;
|
|
32
32
|
setMask(mask: string[]): void;
|
|
33
33
|
setValidation(validations: IValidationRule[] | undefined): void;
|
|
34
|
-
|
|
34
|
+
setFormat(format: string): void;
|
|
35
35
|
setSensitive(sensitive?: boolean): void;
|
|
36
36
|
setValue: (value?: string, valid?: boolean) => void;
|
|
37
37
|
getValue: () => string | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare function getCollectElementValue(key: any, elementIframename: any): Promise<unknown>;
|
|
2
2
|
export declare function getRevealElementValue(key: any, revealFrameName: any, client: any): Promise<unknown>;
|
|
3
3
|
export declare function getAccessToken(clientId: any): Promise<unknown>;
|
|
4
|
+
export declare function updateElementState(frameName: string, value: any): void;
|
|
@@ -23,3 +23,5 @@ export declare function updateRequestBodyInConnection(config: IConnectionConfig)
|
|
|
23
23
|
requestHeader?: any;
|
|
24
24
|
responseBody?: any;
|
|
25
25
|
};
|
|
26
|
+
export declare const appendZeroToOne: (value: any) => any;
|
|
27
|
+
export declare const getReturnValue: (value: string, element: string, doesReturnValue: boolean) => string | undefined;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -208,10 +208,12 @@ declare const logs: {
|
|
|
208
208
|
};
|
|
209
209
|
warnLogs: {
|
|
210
210
|
INVALID_EXPIRATION_DATE_FORMAT: string;
|
|
211
|
+
INVALID_EXPIRATION_YEAR_FORMAT: string;
|
|
211
212
|
UNABLE_TO_SET_VALUE_IN_PROD_ENV: string;
|
|
212
213
|
UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
|
|
213
214
|
COLLECT_ALT_TEXT_DEPERECATED: string;
|
|
214
215
|
NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
|
|
216
|
+
DEPRECATE_INVOKE_CONNECTION: string;
|
|
215
217
|
};
|
|
216
218
|
};
|
|
217
219
|
export default logs;
|
|
@@ -6,7 +6,10 @@ import { IInsertRecordInput, IDetokenizeInput, IGetByIdInput, IConnectionConfig,
|
|
|
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;
|
|
9
|
+
export declare const validateExpiryYear: (year: string, format: string) => boolean;
|
|
10
|
+
export declare const validateExpiryMonth: (month: string) => boolean;
|
|
9
11
|
export declare const isValidExpiryDateFormat: (format: string) => boolean;
|
|
12
|
+
export declare const isValidExpiryYearFormat: (format: string) => boolean;
|
|
10
13
|
export declare const validateInsertRecords: (recordObj: IInsertRecordInput, options: any) => void;
|
|
11
14
|
export declare const validateAdditionalFieldsInCollect: (recordObj: IInsertRecordInput) => void;
|
|
12
15
|
export declare const validateDetokenizeInput: (detokenizeInput: IDetokenizeInput) => void;
|