@tap-payments/auth-jsconnect 2.2.1-test → 2.3.1-test
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.
|
@@ -329,20 +329,18 @@ export var updateBrandActivities = createAsyncThunk('brandUpdateBrandActivities'
|
|
|
329
329
|
isCustomerLocationEditable = true;
|
|
330
330
|
isSalesRangeEditable = true;
|
|
331
331
|
activities = params.activities, customerLocations = params.customerLocations, expectedCustomer = params.expectedCustomer, expectedSale = params.expectedSale;
|
|
332
|
-
customerLocation =
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
customerBase = { id: (expectedCustomer === null || expectedCustomer === void 0 ? void 0 : expectedCustomer.id) || '', period: 'monthly', locations: customerLocation };
|
|
338
|
-
sales = isSalesRangeEditable ? { id: (expectedSale === null || expectedSale === void 0 ? void 0 : expectedSale.id) || '', period: 'monthly' } : undefined;
|
|
332
|
+
customerLocation = customerLocations.map(function (location) { return ({
|
|
333
|
+
id: location.id
|
|
334
|
+
}); });
|
|
335
|
+
customerBase = ((expectedCustomer === null || expectedCustomer === void 0 ? void 0 : expectedCustomer.id) || customerLocation) && __assign(__assign({}, ((expectedCustomer === null || expectedCustomer === void 0 ? void 0 : expectedCustomer.id) && { id: expectedCustomer.id, period: 'monthly' })), (isCustomerLocationEditable && { location: customerLocation }));
|
|
336
|
+
sales = (expectedSale === null || expectedSale === void 0 ? void 0 : expectedSale.id) && { id: expectedSale.id, period: 'monthly' };
|
|
339
337
|
stepName = BRAND_STEP_NAMES.BRAND_ACTIVITIES;
|
|
340
338
|
requestBody = {
|
|
341
339
|
id: id,
|
|
342
|
-
activities: isActivitiesEditable
|
|
340
|
+
activities: isActivitiesEditable && activities,
|
|
343
341
|
operations: {
|
|
344
342
|
customer_base: customerBase,
|
|
345
|
-
sales: sales
|
|
343
|
+
sales: (isSalesRangeEditable && sales)
|
|
346
344
|
},
|
|
347
345
|
term: ['general', 'refund', 'chargeback'],
|
|
348
346
|
step_name: stepName
|
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
import './i18n';
|
|
3
3
|
import { ConnectElement, ConnectLibProps } from './features/connect';
|
|
4
|
-
import { ConnectExpressElement,
|
|
4
|
+
import { ConnectExpressElement, ConnectExpressLibProps } from './features/connectExpress';
|
|
5
5
|
import { BusinessElement, BusinessLibProps } from './features/business';
|
|
6
6
|
import { PasswordElement, PasswordLibProps } from './features/password';
|
|
7
7
|
import { IndividualElement, IndividualLibProps } from './features/individual';
|
|
@@ -11,4 +11,4 @@ import { SignInElement, SignInLibProps } from './features/signIn';
|
|
|
11
11
|
import { EntityElement, EntityLibProps } from './features/entity';
|
|
12
12
|
import { BrandElement, BrandLibProps } from './features/brand';
|
|
13
13
|
export type { ConnectLibProps, ConnectExpressLibProps, BusinessLibProps, PasswordLibProps, IndividualLibProps, BankLibProps, TaxLibProps, EntityLibProps, BrandLibProps, SignInLibProps };
|
|
14
|
-
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement
|
|
14
|
+
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement };
|
package/build/index.js
CHANGED
|
@@ -7,10 +7,10 @@ import { PasswordElement, renderPasswordLib } from './features/password';
|
|
|
7
7
|
import { IndividualElement, renderIndividualLib } from './features/individual';
|
|
8
8
|
import { BankElement, renderBankLib } from './features/bank';
|
|
9
9
|
import { TaxElement, renderTaxLib } from './features/tax';
|
|
10
|
-
import { SignInElement } from './features/signIn';
|
|
10
|
+
import { SignInElement, renderSignInLib } from './features/signIn';
|
|
11
11
|
import { EntityElement, renderEntityLib } from './features/entity';
|
|
12
12
|
import { BrandElement, renderBrandLib } from './features/brand';
|
|
13
|
-
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement
|
|
13
|
+
export { ConnectElement, ConnectExpressElement, BusinessElement, PasswordElement, IndividualElement, BankElement, TaxElement, EntityElement, BrandElement, SignInElement };
|
|
14
14
|
window['TapAuth'] = {
|
|
15
15
|
renderConnectLib: renderConnectLib,
|
|
16
16
|
renderConnectExpressLib: renderConnectExpressLib,
|
|
@@ -20,6 +20,7 @@ window['TapAuth'] = {
|
|
|
20
20
|
renderBankLib: renderBankLib,
|
|
21
21
|
renderTaxLib: renderTaxLib,
|
|
22
22
|
renderEntityLib: renderEntityLib,
|
|
23
|
-
renderBrandLib: renderBrandLib
|
|
23
|
+
renderBrandLib: renderBrandLib,
|
|
24
|
+
renderSignInLib: renderSignInLib
|
|
24
25
|
};
|
|
25
26
|
console.log("TapAuth version: ".concat(require('../package.json').version));
|