@tap-payments/auth-jsconnect 2.9.7-development → 2.9.8-development

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.
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PaymentProvider, SettingAsyncData } from './config';
2
+ import { PaymentProvider, SDKNotification, SettingAsyncData } from './config';
3
3
  import { LanguageMode, DialogEdgeFormat } from './theme';
4
4
  export interface CountryCode {
5
5
  created: number;
@@ -242,6 +242,7 @@ export interface LibConfig extends LibCallbacks {
242
242
  redirectUrl?: string;
243
243
  data?: Array<string>;
244
244
  mode?: 'popup' | 'page' | 'content';
245
+ notification?: SDKNotification;
245
246
  boardMaturity?: boolean;
246
247
  settingData?: SettingAsyncData;
247
248
  }
@@ -18,6 +18,10 @@ export interface PaymentProvider {
18
18
  interface Redirect {
19
19
  url: string;
20
20
  }
21
+ export interface SDKNotification {
22
+ email: boolean;
23
+ mobile?: boolean;
24
+ }
21
25
  interface Interface {
22
26
  locale?: 'dynamic' | 'ar' | 'en';
23
27
  edges?: 'straight' | 'curved';
@@ -1,4 +1,4 @@
1
- import { PaymentProvider } from '../@types';
1
+ import { PaymentProvider, SDKNotification } from '../@types';
2
2
  export type CreateAccountBody = {
3
3
  lead_id: string;
4
4
  notify: {
@@ -14,6 +14,7 @@ export type ExpressCreateAccountBody = {
14
14
  lead_id: string;
15
15
  platforms?: string[];
16
16
  payment_provider?: PaymentProvider;
17
+ notification?: SDKNotification;
17
18
  };
18
19
  declare const accountService: {
19
20
  createAccount: (data: CreateAccountBody) => Promise<any>;
@@ -840,14 +840,14 @@ export var checkBrandNameAvailabilityAsync = createAsyncThunk('connectExpress/ch
840
840
  export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAsync', function (_a, thunkApi) {
841
841
  var isRetry = _a.isRetry;
842
842
  return __awaiter(void 0, void 0, void 0, function () {
843
- var _b, connectExpress, settings, responseData, _c, postURL, scope, redirectUrl, mode, showBoard, platforms, payment_provider, leadId, authId, bi, leadData, accountData, data, body, data, urlQueryStart;
843
+ var _b, connectExpress, settings, responseData, _c, postURL, scope, redirectUrl, mode, showBoard, notification, platforms, payment_provider, leadId, authId, bi, leadData, accountData, data, body, data, urlQueryStart;
844
844
  var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
845
845
  return __generator(this, function (_v) {
846
846
  switch (_v.label) {
847
847
  case 0:
848
848
  _b = thunkApi.getState(), connectExpress = _b.connectExpress, settings = _b.settings;
849
849
  responseData = connectExpress.data.responseData;
850
- _c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode, showBoard = _c.showBoard;
850
+ _c = settings.data.appConfig, postURL = _c.postURL, scope = _c.scope, redirectUrl = _c.redirectUrl, mode = _c.mode, showBoard = _c.showBoard, notification = _c.notification;
851
851
  platforms = (_e = (_d = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _d === void 0 ? void 0 : _d.platforms) !== null && _e !== void 0 ? _e : settings.data.appConfig.platforms;
852
852
  payment_provider = (_g = (_f = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _f === void 0 ? void 0 : _f.payment_provider) !== null && _g !== void 0 ? _g : settings.data.appConfig.paymentProvider;
853
853
  leadId = (_h = responseData === null || responseData === void 0 ? void 0 : responseData.leadData) === null || _h === void 0 ? void 0 : _h.id;
@@ -868,7 +868,8 @@ export var createAccountAsync = createAsyncThunk('connectExpress/createAccountAs
868
868
  lead_id: leadId,
869
869
  post_url: scope === SCOPE_AUTH ? '' : postURL || '',
870
870
  platforms: platforms,
871
- payment_provider: payment_provider
871
+ payment_provider: payment_provider,
872
+ notification: notification
872
873
  };
873
874
  if (!!(leadData === null || leadData === void 0 ? void 0 : leadData.board_id)) return [3, 4];
874
875
  return [4, API.accountService.expressCreateAccount(body)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tap-payments/auth-jsconnect",
3
- "version": "2.9.7-development",
3
+ "version": "2.9.8-development",
4
4
  "description": "connect library, auth",
5
5
  "private": false,
6
6
  "main": "build/index.js",