skyflow-js 1.13.0 → 1.14.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 +7 -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 +34 -5
- package/types/core/internal/iFrameForm/index.d.ts +2 -2
- package/types/utils/busEvents/index.d.ts +1 -0
- package/types/utils/logs.d.ts +1 -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",
|
|
@@ -161,6 +163,27 @@ export declare const ELEMENTS: {
|
|
|
161
163
|
};
|
|
162
164
|
sensitive: boolean;
|
|
163
165
|
};
|
|
166
|
+
EXPIRATION_MONTH: {
|
|
167
|
+
name: string;
|
|
168
|
+
attributes: {
|
|
169
|
+
maxLength: number;
|
|
170
|
+
type: string;
|
|
171
|
+
autocomplete: string;
|
|
172
|
+
};
|
|
173
|
+
sensitive: boolean;
|
|
174
|
+
mask: (string | {
|
|
175
|
+
X: string;
|
|
176
|
+
})[];
|
|
177
|
+
};
|
|
178
|
+
EXPIRATION_YEAR: {
|
|
179
|
+
name: string;
|
|
180
|
+
attributes: {
|
|
181
|
+
maxLength: number;
|
|
182
|
+
type: string;
|
|
183
|
+
autocomplete: string;
|
|
184
|
+
};
|
|
185
|
+
sensitive: boolean;
|
|
186
|
+
};
|
|
164
187
|
CVV: {
|
|
165
188
|
name: string;
|
|
166
189
|
attributes: {
|
|
@@ -334,24 +357,30 @@ export declare const CARD_ENCODED_ICONS: {
|
|
|
334
357
|
};
|
|
335
358
|
export declare const EXPIRY_DATE_MASK: {
|
|
336
359
|
'MM/YYYY': (string | {
|
|
337
|
-
X: string;
|
|
338
360
|
Y: string;
|
|
339
361
|
})[];
|
|
340
362
|
'MM/YY': (string | {
|
|
341
|
-
X: string;
|
|
342
363
|
Y: string;
|
|
343
364
|
})[];
|
|
344
365
|
'YYYY/MM': (string | {
|
|
345
|
-
X: string;
|
|
346
366
|
Y: string;
|
|
347
367
|
})[];
|
|
348
368
|
'YY/MM': (string | {
|
|
349
|
-
|
|
369
|
+
Y: string;
|
|
370
|
+
})[];
|
|
371
|
+
};
|
|
372
|
+
export declare const EXPIRY_YEAR_MASK: {
|
|
373
|
+
YYYY: (string | {
|
|
374
|
+
Y: string;
|
|
375
|
+
})[];
|
|
376
|
+
YY: (string | {
|
|
350
377
|
Y: string;
|
|
351
378
|
})[];
|
|
352
379
|
};
|
|
353
380
|
export declare const DEFAULT_EXPIRATION_DATE_FORMAT = "MM/YY";
|
|
354
381
|
export declare const ALLOWED_EXPIRY_DATE_FORMATS: string[];
|
|
382
|
+
export declare const DEFAULT_EXPIRATION_YEAR_FORMAT = "YY";
|
|
383
|
+
export declare const ALLOWED_EXPIRY_YEAR_FORMATS: string[];
|
|
355
384
|
export declare const soapReqXmlErrors: {
|
|
356
385
|
code: number;
|
|
357
386
|
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;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ 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;
|
|
@@ -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;
|