@tap-payments/auth-jsconnect 2.11.6-sandbox → 2.11.7-sandbox
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/build/@types/terminal.d.ts +32 -44
- package/build/api/auth.d.ts +7 -1
- package/build/api/index.d.ts +2 -2
- package/build/api/terminal.d.ts +3 -6
- package/build/api/terminal.js +22 -12
- package/build/components/DeviceCard/DeviceCard.js +8 -9
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.d.ts +7 -0
- package/build/components/TruncatedTooltipText/TruncatedTooltipText.js +33 -0
- package/build/components/TruncatedTooltipText/index.d.ts +2 -0
- package/build/components/TruncatedTooltipText/index.js +2 -0
- package/build/constants/app.d.ts +2 -2
- package/build/constants/app.js +32 -21
- package/build/constants/flows.d.ts +1 -1
- package/build/constants/flows.js +1 -1
- package/build/features/app/terminal/terminalStore.d.ts +7 -7
- package/build/features/app/terminal/terminalStore.js +51 -51
- package/build/features/entity/screens/EntityName/EntityName.js +14 -14
- package/build/features/entity/screens/EntityName/validation.d.ts +44 -42
- package/build/features/entity/screens/EntityName/validation.js +98 -79
- package/build/features/featuresScreens.js +3 -3
- package/build/features/terminal/Terminal.js +2 -2
- package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +8 -9
- package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +5 -6
- package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +9 -9
- package/build/features/terminal/screens/{TerminalListPage/TerminalListPage.js → POSDeviceListPage/POSDeviceListPage.js} +9 -9
- package/build/features/terminal/screens/POSDeviceListPage/index.d.ts +2 -0
- package/build/features/terminal/screens/POSDeviceListPage/index.js +2 -0
- package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +1 -1
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +3 -3
- package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +1 -1
- package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +15 -15
- package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +5 -7
- package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +12 -11
- package/build/features/terminal/screens/shared/POSDeviceList.d.ts +11 -0
- package/build/features/terminal/screens/shared/POSDeviceList.js +28 -0
- package/build/features/terminal/screens/shared/index.d.ts +2 -2
- package/build/features/terminal/screens/shared/index.js +2 -2
- package/build/features/terminal/screens/shared/styles.d.ts +1 -1
- package/build/features/terminal/screens/shared/styles.js +1 -1
- package/build/features/terminal/screens/shared/utils.d.ts +4 -4
- package/build/features/terminal/screens/shared/utils.js +8 -9
- package/package.json +1 -1
- package/build/features/terminal/screens/TerminalListPage/index.d.ts +0 -2
- package/build/features/terminal/screens/TerminalListPage/index.js +0 -2
- package/build/features/terminal/screens/shared/TerminalList.d.ts +0 -11
- package/build/features/terminal/screens/shared/TerminalList.js +0 -25
- /package/build/features/terminal/screens/{TerminalListPage/TerminalListPage.d.ts → POSDeviceListPage/POSDeviceListPage.d.ts} +0 -0
|
@@ -49,7 +49,7 @@ var _a;
|
|
|
49
49
|
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit';
|
|
50
50
|
import { handlePublicKey, handleSetCountryByIso2, onCloseComplete } from '../../../app/settings';
|
|
51
51
|
import { FlowsTypes } from '../../../@types';
|
|
52
|
-
import { CONNECT_FLOWS, NAFATH_PACI_TIMEOUT_DURATION,
|
|
52
|
+
import { CONNECT_FLOWS, NAFATH_PACI_TIMEOUT_DURATION, SELECTED_POS_DEFAULT_INFO, SELECTED_TERMINAL_DEFAULT_INFO, TERMINAL_PUSH_NOTIFICATION_DURATION, TERMINAL_PUSH_NOTIFICATION_FAILED, TERMINAL_STEP_NAMES } from '../../../constants';
|
|
53
53
|
import API from '../../../api';
|
|
54
54
|
import { isNetworkError, isTimeoutError, retrieveIndividualData, sleep } from '../../../utils';
|
|
55
55
|
export var verifyToken = createAsyncThunk('terminal/verifyLeadToken', function (_a, thunkApi) {
|
|
@@ -79,10 +79,10 @@ export var verifyToken = createAsyncThunk('terminal/verifyLeadToken', function (
|
|
|
79
79
|
if (step_name === TERMINAL_STEP_NAMES.PHONE_AUTH) {
|
|
80
80
|
return [2, { data: data, token: token, nextScreen: CONNECT_FLOWS.terminal.verify }];
|
|
81
81
|
}
|
|
82
|
-
return [4, API.terminalService.
|
|
82
|
+
return [4, API.terminalService.retrieveTerminalList([merchant_id])];
|
|
83
83
|
case 2:
|
|
84
84
|
terminalData = _d.sent();
|
|
85
|
-
nextScreen = ((_c = terminalData === null || terminalData === void 0 ? void 0 : terminalData.
|
|
85
|
+
nextScreen = ((_c = terminalData === null || terminalData === void 0 ? void 0 : terminalData.list) === null || _c === void 0 ? void 0 : _c.length) ? CONNECT_FLOWS.terminal.terminalDeviceList : CONNECT_FLOWS.terminal.noTerminalLinked;
|
|
86
86
|
return [2, {
|
|
87
87
|
data: data,
|
|
88
88
|
token: token,
|
|
@@ -135,27 +135,28 @@ export var verifyTokenOTP = createAsyncThunk('terminal/verifyOtp', function (par
|
|
|
135
135
|
thunkApi.dispatch(handlePublicKey(publicKey));
|
|
136
136
|
if (countryIso2)
|
|
137
137
|
thunkApi.dispatch(handleSetCountryByIso2(countryIso2));
|
|
138
|
-
return [4, API.terminalService.
|
|
138
|
+
return [4, API.terminalService.retrieveTerminalList([merchant_id])];
|
|
139
139
|
case 2:
|
|
140
140
|
terminalData = _g.sent();
|
|
141
|
-
nextScreen = ((_d = terminalData === null || terminalData === void 0 ? void 0 : terminalData.
|
|
141
|
+
nextScreen = ((_d = terminalData === null || terminalData === void 0 ? void 0 : terminalData.list) === null || _d === void 0 ? void 0 : _d.length) ? CONNECT_FLOWS.terminal.terminalDeviceList : CONNECT_FLOWS.terminal.noTerminalLinked;
|
|
142
142
|
(_f = (_e = settings.data.appConfig).onStepCompleted) === null || _f === void 0 ? void 0 : _f.call(_e, settings.data.activeScreen.name, { otp: params.otp });
|
|
143
143
|
return [2, { data: data, terminalData: terminalData, formData: params, nextScreen: nextScreen }];
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
}); });
|
|
147
147
|
export var linkNewTerminal = createAsyncThunk('terminal/linkNewTerminal', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
148
|
-
var _a,
|
|
149
|
-
return __generator(this, function (
|
|
150
|
-
switch (
|
|
148
|
+
var _a, _b, selectedPOS, responseData, _c, language, businessCountry, scope, authData, payload, data;
|
|
149
|
+
return __generator(this, function (_d) {
|
|
150
|
+
switch (_d.label) {
|
|
151
151
|
case 0:
|
|
152
|
-
_a = thunkApi.getState(),
|
|
153
|
-
|
|
152
|
+
_a = thunkApi.getState(), _b = _a.terminal.data, selectedPOS = _b.terminalInfo.selectedPOS, responseData = _b.responseData, _c = _a.settings.data, language = _c.language, businessCountry = _c.businessCountry, scope = _c.appConfig.scope;
|
|
153
|
+
authData = (responseData || {}).authData;
|
|
154
154
|
payload = {
|
|
155
155
|
user_credentail: {
|
|
156
|
-
|
|
157
|
-
id:
|
|
158
|
-
}
|
|
156
|
+
merchant: {
|
|
157
|
+
id: authData === null || authData === void 0 ? void 0 : authData.merchant_id
|
|
158
|
+
},
|
|
159
|
+
device: { id: selectedPOS === null || selectedPOS === void 0 ? void 0 : selectedPOS.id }
|
|
159
160
|
},
|
|
160
161
|
country: businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2,
|
|
161
162
|
scope: scope,
|
|
@@ -167,12 +168,12 @@ export var linkNewTerminal = createAsyncThunk('terminal/linkNewTerminal', functi
|
|
|
167
168
|
};
|
|
168
169
|
return [4, API.authService.createAuth(payload)];
|
|
169
170
|
case 1:
|
|
170
|
-
data =
|
|
171
|
+
data = _d.sent();
|
|
171
172
|
return [2, { data: data, nextScreen: CONNECT_FLOWS.terminal.terminalLinkNew }];
|
|
172
173
|
}
|
|
173
174
|
});
|
|
174
175
|
}); });
|
|
175
|
-
export var
|
|
176
|
+
export var retrievePOSDevices = createAsyncThunk('terminal/retrievePOSDevices', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
176
177
|
var terminal, merchant_id, data;
|
|
177
178
|
var _a;
|
|
178
179
|
return __generator(this, function (_b) {
|
|
@@ -180,7 +181,7 @@ export var retrieveTerminalList = createAsyncThunk('terminal/retrieveTerminalLis
|
|
|
180
181
|
case 0:
|
|
181
182
|
terminal = thunkApi.getState().terminal;
|
|
182
183
|
merchant_id = (((_a = terminal.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).merchant_id;
|
|
183
|
-
return [4, API.terminalService.
|
|
184
|
+
return [4, API.terminalService.retrievePOSDevices([merchant_id])];
|
|
184
185
|
case 1:
|
|
185
186
|
data = _b.sent();
|
|
186
187
|
return [2, { data: data }];
|
|
@@ -247,20 +248,16 @@ export var pushNotificationLinkNewTerminal = createAsyncThunk('terminal/pushNoti
|
|
|
247
248
|
});
|
|
248
249
|
});
|
|
249
250
|
export var unlinkTerminalDevice = createAsyncThunk('terminal/unlinkTerminalDevice', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
-
var
|
|
251
|
+
var _a, id, device, payload, data;
|
|
251
252
|
return __generator(this, function (_b) {
|
|
252
253
|
switch (_b.label) {
|
|
253
254
|
case 0:
|
|
254
|
-
|
|
255
|
-
_a = terminal.data.terminalInfo.selectedTerminalDevice, id = _a.id, terminalInfo = _a.terminal, merchant = _a.merchant;
|
|
255
|
+
_a = thunkApi.getState().terminal.data.terminalInfo.selectedTerminal, id = _a.id, device = _a.device;
|
|
256
256
|
payload = {
|
|
257
257
|
deviceId: id,
|
|
258
258
|
initiator: 'connect',
|
|
259
|
-
|
|
260
|
-
id: (
|
|
261
|
-
},
|
|
262
|
-
merchant: {
|
|
263
|
-
id: (merchant === null || merchant === void 0 ? void 0 : merchant.id) || ''
|
|
259
|
+
device: {
|
|
260
|
+
id: (device === null || device === void 0 ? void 0 : device.id) || ''
|
|
264
261
|
}
|
|
265
262
|
};
|
|
266
263
|
return [4, API.terminalService.unlinkTerminalDevice(payload)];
|
|
@@ -271,18 +268,21 @@ export var unlinkTerminalDevice = createAsyncThunk('terminal/unlinkTerminalDevic
|
|
|
271
268
|
});
|
|
272
269
|
}); });
|
|
273
270
|
export var linkTerminalDevice = createAsyncThunk('terminal/linkTerminalDevice', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
274
|
-
var _a, _b,
|
|
275
|
-
return __generator(this, function (
|
|
276
|
-
switch (
|
|
271
|
+
var _a, _b, posId, _c, id, terminal_device, _d, businessCountry, language, scope, payload, data;
|
|
272
|
+
return __generator(this, function (_e) {
|
|
273
|
+
switch (_e.label) {
|
|
277
274
|
case 0:
|
|
278
|
-
_a = thunkApi.getState(), _b = _a.terminal.data.terminalInfo,
|
|
275
|
+
_a = thunkApi.getState(), _b = _a.terminal.data.terminalInfo, posId = _b.selectedPOS.id, _c = _b.selectedTerminal, id = _c.id, terminal_device = _c.terminal_device, _d = _a.settings.data, businessCountry = _d.businessCountry, language = _d.language, scope = _d.appConfig.scope;
|
|
279
276
|
payload = {
|
|
280
277
|
user_credentail: {
|
|
281
278
|
terminal: {
|
|
282
|
-
id:
|
|
279
|
+
id: id,
|
|
283
280
|
terminal_device: {
|
|
284
|
-
id:
|
|
281
|
+
id: terminal_device.id
|
|
285
282
|
}
|
|
283
|
+
},
|
|
284
|
+
device: {
|
|
285
|
+
id: posId
|
|
286
286
|
}
|
|
287
287
|
},
|
|
288
288
|
country: businessCountry === null || businessCountry === void 0 ? void 0 : businessCountry.iso2,
|
|
@@ -295,7 +295,7 @@ export var linkTerminalDevice = createAsyncThunk('terminal/linkTerminalDevice',
|
|
|
295
295
|
};
|
|
296
296
|
return [4, API.authService.createAuth(payload)];
|
|
297
297
|
case 1:
|
|
298
|
-
data =
|
|
298
|
+
data = _e.sent();
|
|
299
299
|
return [2, { data: data }];
|
|
300
300
|
}
|
|
301
301
|
});
|
|
@@ -342,7 +342,7 @@ export var retrieveBoardStatus = createAsyncThunk('terminal/retrieveBoardStatus'
|
|
|
342
342
|
});
|
|
343
343
|
});
|
|
344
344
|
});
|
|
345
|
-
export var
|
|
345
|
+
export var retrieveTerminalList = createAsyncThunk('terminal/retrieveTerminalList', function (_, thunkApi) { return __awaiter(void 0, void 0, void 0, function () {
|
|
346
346
|
var terminal, merchant_id, data;
|
|
347
347
|
var _a;
|
|
348
348
|
return __generator(this, function (_b) {
|
|
@@ -350,7 +350,7 @@ export var retrieveTerminalDeviceList = createAsyncThunk('terminal/retrieveTermi
|
|
|
350
350
|
case 0:
|
|
351
351
|
terminal = thunkApi.getState().terminal;
|
|
352
352
|
merchant_id = (((_a = terminal.data.responseData) === null || _a === void 0 ? void 0 : _a.authData) || {}).merchant_id;
|
|
353
|
-
return [4, API.terminalService.
|
|
353
|
+
return [4, API.terminalService.retrieveTerminalList([merchant_id])];
|
|
354
354
|
case 1:
|
|
355
355
|
data = _b.sent();
|
|
356
356
|
return [2, { data: data }];
|
|
@@ -434,7 +434,7 @@ var initialState = {
|
|
|
434
434
|
error: null,
|
|
435
435
|
loading: false,
|
|
436
436
|
customLoading: false,
|
|
437
|
-
|
|
437
|
+
posDevicesLoading: false,
|
|
438
438
|
data: {
|
|
439
439
|
flowName: FlowsTypes.TERMINAL,
|
|
440
440
|
verify: {
|
|
@@ -444,8 +444,8 @@ var initialState = {
|
|
|
444
444
|
otp: ''
|
|
445
445
|
},
|
|
446
446
|
terminalInfo: {
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
selectedTerminal: SELECTED_TERMINAL_DEFAULT_INFO,
|
|
448
|
+
selectedPOS: SELECTED_POS_DEFAULT_INFO
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
};
|
|
@@ -465,12 +465,12 @@ export var terminalSlice = createSlice({
|
|
|
465
465
|
resetOTPScreen: function (state) {
|
|
466
466
|
state.data.otpData.otp = '';
|
|
467
467
|
},
|
|
468
|
-
storeSelectedTerminalDevice: function (state, action) {
|
|
469
|
-
state.data.terminalInfo.selectedTerminalDevice = action.payload;
|
|
470
|
-
},
|
|
471
468
|
storeSelectedTerminal: function (state, action) {
|
|
472
469
|
state.data.terminalInfo.selectedTerminal = action.payload;
|
|
473
470
|
},
|
|
471
|
+
storeSelectedPOS: function (state, action) {
|
|
472
|
+
state.data.terminalInfo.selectedPOS = action.payload;
|
|
473
|
+
},
|
|
474
474
|
resetTerminalLinkResponse: function (state) {
|
|
475
475
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { linkTerminalDeviceData: undefined, pushNotificationLinkedNewTerminalData: undefined, linkNewTerminalData: undefined });
|
|
476
476
|
}
|
|
@@ -532,32 +532,32 @@ export var terminalSlice = createSlice({
|
|
|
532
532
|
state.loading = false;
|
|
533
533
|
state.error = action.error.message;
|
|
534
534
|
})
|
|
535
|
-
.addCase(
|
|
535
|
+
.addCase(retrievePOSDevices.fulfilled, function (state, action) {
|
|
536
536
|
var _a, _b;
|
|
537
|
-
state.
|
|
537
|
+
state.posDevicesLoading = false;
|
|
538
538
|
state.error = null;
|
|
539
539
|
var data = action.payload.data;
|
|
540
540
|
if ((_a = data === null || data === void 0 ? void 0 : data.list) === null || _a === void 0 ? void 0 : _a.length)
|
|
541
|
-
state.data.terminalInfo.
|
|
542
|
-
state.data.responseData = __assign(__assign({}, state.data.responseData), {
|
|
541
|
+
state.data.terminalInfo.selectedPOS = data.list[0];
|
|
542
|
+
state.data.responseData = __assign(__assign({}, state.data.responseData), { posDevices: (_b = data === null || data === void 0 ? void 0 : data.list) !== null && _b !== void 0 ? _b : [] });
|
|
543
543
|
})
|
|
544
|
-
.addCase(
|
|
545
|
-
state.
|
|
544
|
+
.addCase(retrievePOSDevices.rejected, function (state, action) {
|
|
545
|
+
state.posDevicesLoading = false;
|
|
546
546
|
state.error = action.error.message;
|
|
547
547
|
})
|
|
548
|
-
.addCase(
|
|
549
|
-
state.
|
|
548
|
+
.addCase(retrievePOSDevices.pending, function (state) {
|
|
549
|
+
state.posDevicesLoading = true;
|
|
550
550
|
state.error = null;
|
|
551
551
|
})
|
|
552
|
-
.addCase(
|
|
552
|
+
.addCase(retrieveTerminalList.pending, function (state) {
|
|
553
553
|
state.error = null;
|
|
554
554
|
})
|
|
555
|
-
.addCase(
|
|
555
|
+
.addCase(retrieveTerminalList.fulfilled, function (state, action) {
|
|
556
556
|
state.error = null;
|
|
557
557
|
var data = action.payload.data;
|
|
558
558
|
state.data.responseData = __assign(__assign({}, state.data.responseData), { terminalData: data });
|
|
559
559
|
})
|
|
560
|
-
.addCase(
|
|
560
|
+
.addCase(retrieveTerminalList.rejected, function (state, action) {
|
|
561
561
|
state.error = action.error.message;
|
|
562
562
|
})
|
|
563
563
|
.addCase(pushNotificationLinkNewTerminal.pending, function (state) {
|
|
@@ -671,6 +671,6 @@ export var terminalSlice = createSlice({
|
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
673
|
});
|
|
674
|
-
export var clearError = (_a = terminalSlice.actions, _a.clearError), setError = _a.setError, stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen,
|
|
674
|
+
export var clearError = (_a = terminalSlice.actions, _a.clearError), setError = _a.setError, stopLoader = _a.stopLoader, resetOTPScreen = _a.resetOTPScreen, storeSelectedTerminal = _a.storeSelectedTerminal, storeSelectedPOS = _a.storeSelectedPOS, resetTerminalLinkResponse = _a.resetTerminalLinkResponse;
|
|
675
675
|
export default terminalSlice.reducer;
|
|
676
676
|
export var terminalSelector = function (state) { return state.terminal; };
|
|
@@ -54,12 +54,23 @@ var EntityName = function (_a) {
|
|
|
54
54
|
var isCR = licenseType === BusinessType.CR;
|
|
55
55
|
var _j = data.verify.responseBody || {}, entity = _j.entity, flows = _j.flows, entityTypes = _j.entityTypes;
|
|
56
56
|
var _k = entity || {}, AOA_file = _k.AOA_file, id = _k.id, documents = _k.documents, data_status = _k.data_status, data_verification = _k.data_verification, legal_name = _k.legal_name, type = _k.type, license = _k.license;
|
|
57
|
+
var noneEditable = useDataNoneEditable(data_status, [
|
|
58
|
+
'legal_name.en',
|
|
59
|
+
'legal_name.ar',
|
|
60
|
+
'type',
|
|
61
|
+
'license.number',
|
|
62
|
+
'license.additional_info',
|
|
63
|
+
'license.issuing_date',
|
|
64
|
+
'license.expiry_date',
|
|
65
|
+
'documents',
|
|
66
|
+
'AOA_file_id'
|
|
67
|
+
]);
|
|
57
68
|
var getSchema = function () {
|
|
58
69
|
if (isSACountry)
|
|
59
|
-
return EntityNameValidationSchema();
|
|
70
|
+
return EntityNameValidationSchema(noneEditable);
|
|
60
71
|
if (isKWCountry)
|
|
61
|
-
return EntityNameKWValidationSchema();
|
|
62
|
-
return EntityNameOtherCountryValidationSchema();
|
|
72
|
+
return EntityNameKWValidationSchema(noneEditable);
|
|
73
|
+
return EntityNameOtherCountryValidationSchema(noneEditable);
|
|
63
74
|
};
|
|
64
75
|
var methods = useForm({
|
|
65
76
|
resolver: yupResolver(getSchema()),
|
|
@@ -93,17 +104,6 @@ var EntityName = function (_a) {
|
|
|
93
104
|
articleId: defaultArticleFile === null || defaultArticleFile === void 0 ? void 0 : defaultArticleFile.id
|
|
94
105
|
}).isDirty;
|
|
95
106
|
var originalReadOnly = useFormReadOnly(methods, { certificateId: defaultCertificateFiles, articleId: defaultArticleFile });
|
|
96
|
-
var noneEditable = useDataNoneEditable(data_status, [
|
|
97
|
-
'legal_name.en',
|
|
98
|
-
'legal_name.ar',
|
|
99
|
-
'type',
|
|
100
|
-
'license.number',
|
|
101
|
-
'license.additional_info',
|
|
102
|
-
'license.issuing_date',
|
|
103
|
-
'license.expiry_date',
|
|
104
|
-
'documents',
|
|
105
|
-
'AOA_file_id'
|
|
106
|
-
]);
|
|
107
107
|
var readOnly = useFormErrorAndUpdateReadOnly(methods, originalReadOnly, noneEditable);
|
|
108
108
|
var getFelids = useExcludeReadOnlyFelids(methods, readOnly).getFelids;
|
|
109
109
|
var dataVerified = useDataVerified(data_verification, [
|
|
@@ -1,88 +1,90 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare type NonEditableMap = Record<string, boolean>;
|
|
3
|
+
export declare const EntityNameValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
4
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
4
5
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
5
|
-
entityType:
|
|
6
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
6
7
|
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
7
8
|
unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
8
|
-
issuingDate:
|
|
9
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
9
10
|
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
10
11
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
11
12
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
12
13
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
13
|
-
legalName:
|
|
14
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
14
15
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
15
|
-
entityType:
|
|
16
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
16
17
|
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
17
18
|
unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
18
|
-
issuingDate:
|
|
19
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
19
20
|
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
20
21
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
21
22
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
22
23
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
23
|
-
legalName:
|
|
24
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
24
25
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
25
|
-
entityType:
|
|
26
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
26
27
|
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
27
28
|
unifiedNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
28
|
-
issuingDate:
|
|
29
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
29
30
|
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
30
31
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
31
32
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
32
33
|
}>>>;
|
|
33
|
-
export declare const EntityNameKWValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
34
|
-
legalName:
|
|
34
|
+
export declare const EntityNameKWValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
35
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
35
36
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
36
|
-
entityType:
|
|
37
|
-
licenseNumber:
|
|
38
|
-
issuingDate:
|
|
39
|
-
expiryDate:
|
|
37
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
38
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
39
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
40
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
40
41
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
41
42
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
42
43
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
43
|
-
legalName:
|
|
44
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
44
45
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
45
|
-
entityType:
|
|
46
|
-
licenseNumber:
|
|
47
|
-
issuingDate:
|
|
48
|
-
expiryDate:
|
|
46
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
47
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
48
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
49
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
49
50
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
50
51
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
51
52
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
52
|
-
legalName:
|
|
53
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
53
54
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
54
|
-
entityType:
|
|
55
|
-
licenseNumber:
|
|
56
|
-
issuingDate:
|
|
57
|
-
expiryDate:
|
|
55
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
56
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
57
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
58
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
58
59
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
59
60
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
60
61
|
}>>>;
|
|
61
|
-
export declare const EntityNameOtherCountryValidationSchema: () => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
62
|
-
legalName:
|
|
62
|
+
export declare const EntityNameOtherCountryValidationSchema: (noneEditable: NonEditableMap) => yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
63
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
63
64
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
64
|
-
entityType:
|
|
65
|
-
licenseNumber:
|
|
66
|
-
issuingDate:
|
|
67
|
-
expiryDate:
|
|
65
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
66
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
67
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
68
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
68
69
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
69
70
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
70
71
|
}>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
71
|
-
legalName:
|
|
72
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
72
73
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
73
|
-
entityType:
|
|
74
|
-
licenseNumber:
|
|
75
|
-
issuingDate:
|
|
76
|
-
expiryDate:
|
|
74
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
75
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
76
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
77
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
77
78
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
78
79
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
79
80
|
}>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
|
80
|
-
legalName:
|
|
81
|
+
legalName: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
81
82
|
licenseType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
82
|
-
entityType:
|
|
83
|
-
licenseNumber:
|
|
84
|
-
issuingDate:
|
|
85
|
-
expiryDate:
|
|
83
|
+
entityType: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
84
|
+
licenseNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
85
|
+
issuingDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
86
|
+
expiryDate: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
86
87
|
certificateId: yup.ArraySchema<yup.AnySchema<any, any, any>, import("yup/lib/types").AnyObject, any[] | undefined, any[] | undefined>;
|
|
87
88
|
articleId: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
|
|
88
89
|
}>>>;
|
|
90
|
+
export {};
|