skyflow-js 1.10.0 → 1.11.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.
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.10.0",
5
+ "version": "1.11.0",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -104,13 +104,6 @@ export declare const CARD_NUMBER_MASK: {
104
104
  })[];
105
105
  };
106
106
  export declare const ELEMENTS: {
107
- text: {
108
- name: string;
109
- attributes: {
110
- type: string;
111
- };
112
- sensitive: boolean;
113
- };
114
107
  textarea: {
115
108
  name: string;
116
109
  attributes: {
@@ -132,20 +125,6 @@ export declare const ELEMENTS: {
132
125
  };
133
126
  sensitive: boolean;
134
127
  };
135
- password: {
136
- name: string;
137
- attributes: {
138
- type: string;
139
- };
140
- sensitive: boolean;
141
- };
142
- number: {
143
- name: string;
144
- attributes: {
145
- type: string;
146
- };
147
- sensitive: boolean;
148
- };
149
128
  dropdown: {
150
129
  name: string;
151
130
  attributes: {
@@ -153,107 +132,6 @@ export declare const ELEMENTS: {
153
132
  };
154
133
  sensitive: boolean;
155
134
  };
156
- firstName: {
157
- name: string;
158
- attributes: {
159
- type: string;
160
- };
161
- sensitive: boolean;
162
- replacePattern: string[];
163
- regex: RegExp;
164
- };
165
- lastName: {
166
- name: string;
167
- attributes: {
168
- type: string;
169
- };
170
- sensitive: boolean;
171
- replacePattern: string[];
172
- regex: RegExp;
173
- };
174
- email: {
175
- name: string;
176
- attributes: {
177
- type: string;
178
- };
179
- sensitive: boolean;
180
- regex: RegExp;
181
- };
182
- dob: {
183
- name: string;
184
- attributes: {
185
- type: string;
186
- pattern: string;
187
- };
188
- sensitive: boolean;
189
- regex: RegExp;
190
- };
191
- mobileNumber: {
192
- name: string;
193
- attributes: {
194
- type: string;
195
- };
196
- replacePattern: string[];
197
- sensitive: boolean;
198
- regex: RegExp;
199
- };
200
- ssn: {
201
- name: string;
202
- attributes: {
203
- type: string;
204
- };
205
- sensitive: boolean;
206
- replacePattern: string[];
207
- regex: RegExp;
208
- };
209
- address: {
210
- name: string;
211
- attributes: {
212
- type: string;
213
- };
214
- sensitive: boolean;
215
- regex: RegExp;
216
- };
217
- street: {
218
- name: string;
219
- attributes: {
220
- type: string;
221
- };
222
- sensitive: boolean;
223
- };
224
- zipCode: {
225
- name: string;
226
- attributes: {
227
- type: string;
228
- };
229
- sensitive: boolean;
230
- replacePattern: string[];
231
- regex: RegExp;
232
- };
233
- city: {
234
- name: string;
235
- attributes: {
236
- type: string;
237
- };
238
- sensitive: boolean;
239
- regex: RegExp;
240
- };
241
- state: {
242
- name: string;
243
- attributes: {
244
- type: string;
245
- };
246
- sensitive: boolean;
247
- regex: RegExp;
248
- };
249
- income: {
250
- name: string;
251
- attributes: {
252
- type: string;
253
- };
254
- sensitive: boolean;
255
- regex: RegExp;
256
- };
257
135
  CARDHOLDER_NAME: {
258
136
  name: string;
259
137
  attributes: {
@@ -480,4 +358,4 @@ export declare const soapResXmlErrors: {
480
358
  }[];
481
359
  export declare const PATH_NOT_FOUND_IN_RES_XML = "skyflow: Path not found";
482
360
  export declare const FORMAT_REGEX = ":FORMAT_REGEX:";
483
- export declare const INVALID_FORMAT_REGEX_OPTION = "Invalid formatRegex";
361
+ export declare const REPLACE_TEXT = ":REPLACE_TEXT:";
@@ -12,6 +12,7 @@ export interface IRevealElementInput {
12
12
  }
13
13
  export interface IRevealElementOptions {
14
14
  formatRegex?: string | object;
15
+ replaceText?: string;
15
16
  }
16
17
  declare class RevealContainer extends Container {
17
18
  #private;
@@ -11,7 +11,6 @@ declare class RevealElement extends SkyflowElement {
11
11
  hasToken(): boolean;
12
12
  isClientSetError(): boolean;
13
13
  getRecordData(): any;
14
- getFormatRegex(): any;
15
14
  setError(clientErrorText: string): void;
16
15
  resetError(): void;
17
16
  setAltText(altText: string): void;
@@ -3,11 +3,15 @@ import { ISkyflowIdRecord, IRevealRecord, IRevealResponseType } from '../utils/c
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 applyFormatRegex: (formattedResult: object, revealRecords: any) => {};
6
- export declare const formatRecordsForClient: (response: IRevealResponseType, formattedResults: any) => {
7
- success: any[];
8
- errors: any;
6
+ export declare const formatRecordsForClient: (response: IRevealResponseType) => {
7
+ success: {
8
+ token: string;
9
+ }[];
10
+ errors: Record<string, any>[];
9
11
  } | {
10
- success: any[];
12
+ success: {
13
+ token: string;
14
+ }[];
11
15
  errors?: undefined;
12
16
  } | {
13
17
  errors: Record<string, any>[] | undefined;
@@ -487,11 +487,11 @@ declare const SKYFLOW_ERROR_CODE: {
487
487
  code: number;
488
488
  description: string;
489
489
  };
490
- NO_MATCH_FOUND_FOR_FORMAT_REGEX: {
490
+ INVALID_FORMAT_REGEX: {
491
491
  code: number;
492
492
  description: string;
493
493
  };
494
- INVALID_FORMAT_REGEX: {
494
+ INVALID_REPLACE_TEXT_TYPE: {
495
495
  code: number;
496
496
  description: string;
497
497
  };
@@ -202,14 +202,15 @@ declare const logs: {
202
202
  INVALID_SOAP_RESPONSE_XML: string;
203
203
  INVALID_PATH_IN_RES_XML: string;
204
204
  INVALID_PATH_IN_ARRAY_RES_XML: string;
205
- NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
206
205
  INVALID_FORMAT_REGEX: string;
206
+ INVALID_REPLACE_TEXT_TYPE: string;
207
207
  };
208
208
  warnLogs: {
209
209
  INVALID_EXPIRATION_DATE_FORMAT: string;
210
210
  UNABLE_TO_SET_VALUE_IN_PROD_ENV: string;
211
211
  UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV: string;
212
212
  COLLECT_ALT_TEXT_DEPERECATED: string;
213
+ NO_MATCH_FOUND_FOR_FORMAT_REGEX: string;
213
214
  };
214
215
  };
215
216
  export default logs;