react-memory-optimization 0.0.105 → 0.0.107

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.
@@ -22,4 +22,13 @@ exports.PAYMENT_REQUEST_PATHS = {
22
22
  path: types_1.EApiPath.CreateProdWithdraw,
23
23
  adapterFn: utils_1.restAdapterWithdraw,
24
24
  },
25
+ // PKR
26
+ [types_1.EPaymentRequestPath.PiqPayPkDeposit]: {
27
+ path: types_1.EApiPath.CreateProdDeposit,
28
+ adapterFn: utils_1.restAdapterDeposit,
29
+ },
30
+ [types_1.EPaymentRequestPath.PiqPayPkWithdraw]: {
31
+ path: types_1.EApiPath.CreateProdWithdraw,
32
+ adapterFn: utils_1.restAdapterWithdraw,
33
+ },
25
34
  };
@@ -18,7 +18,9 @@ export declare enum EPaymentRequestPath {
18
18
  FlashPayUpiDeposit = "flash_pay_upi_deposit",
19
19
  FlashPayImpusWithdraw = "flash_pay_impus_withdraw",
20
20
  PicoPayBkashNagadDeposit = "pico_pay_bkash_nagad_deposit",
21
- PicoPayBkashNagadWithdraw = "pico_pay_bkash_nagad_withdraw"
21
+ PicoPayBkashNagadWithdraw = "pico_pay_bkash_nagad_withdraw",
22
+ PiqPayPkDeposit = "piq_pay_pk_deposit",
23
+ PiqPayPkWithdraw = "piq_pay_pk_withdraw"
22
24
  }
23
25
  export type ApiList = {
24
26
  [key: string]: {
@@ -22,6 +22,8 @@ var EPaymentRequestPath;
22
22
  EPaymentRequestPath["FlashPayImpusWithdraw"] = "flash_pay_impus_withdraw";
23
23
  EPaymentRequestPath["PicoPayBkashNagadDeposit"] = "pico_pay_bkash_nagad_deposit";
24
24
  EPaymentRequestPath["PicoPayBkashNagadWithdraw"] = "pico_pay_bkash_nagad_withdraw";
25
+ EPaymentRequestPath["PiqPayPkDeposit"] = "piq_pay_pk_deposit";
26
+ EPaymentRequestPath["PiqPayPkWithdraw"] = "piq_pay_pk_withdraw";
25
27
  })(EPaymentRequestPath || (exports.EPaymentRequestPath = EPaymentRequestPath = {}));
26
28
  // FlashPayUpiDeposit
27
29
  var EPaymentStatusCode;
@@ -114,6 +114,8 @@ export declare class Socket implements SocketInterface {
114
114
  uid: string;
115
115
  isActive: boolean;
116
116
  }): boolean;
117
+ subscribeBonusBackgroundCard(props: BaseObservableSubscriber): boolean;
118
+ unsubscribeBonusBackgroundCard(uid: string): boolean;
117
119
  subscribeCashBonuses(props: BaseObservableSubscriber & {
118
120
  channelType?: CashBonusChannelType;
119
121
  }): boolean;
@@ -171,6 +171,8 @@ export interface SocketInterface {
171
171
  uid: string;
172
172
  isActive: boolean;
173
173
  }) => boolean;
174
+ subscribeBonusBackgroundCard: (props: BaseObservableSubscriber) => boolean;
175
+ unsubscribeBonusBackgroundCard: (uid: string) => boolean;
174
176
  subscribeCashBonuses: (props: BaseObservableSubscriber & {
175
177
  channelType?: CashBonusChannelType;
176
178
  }) => boolean;
@@ -0,0 +1,17 @@
1
+ import { ObservableEntity } from 'service/observableEntity';
2
+ import { UIService } from 'store/ui/service';
3
+ import { BonusOnDepositBackgroundCardService } from './service';
4
+ import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
5
+ export declare class BonusOnDepositBackgroundCard extends ObservableEntity<undefined> {
6
+ service: BonusOnDepositBackgroundCardService;
7
+ _settings: string | null;
8
+ _depositPath: string | null;
9
+ constructor(services: UIService);
10
+ set settings(settings: string);
11
+ get settings(): string | null;
12
+ set depositPath(path: string);
13
+ get depositPath(): string | null;
14
+ sendUpdateEntity(d: BaseObservableSubscriber & {
15
+ [key: string]: unknown;
16
+ }): UpdateData | null;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { UIService } from 'store/ui/service';
2
+ import { BonusOnDepositBackgroundCard } from '.';
3
+ export declare class BonusOnDepositBackgroundCardService {
4
+ private readonly parent;
5
+ private readonly services;
6
+ constructor(parent: BonusOnDepositBackgroundCard, services: UIService);
7
+ getCustomBonusPath(path: string): Promise<void>;
8
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BonusOnDepositBackgroundCardService = void 0;
4
+ class BonusOnDepositBackgroundCardService {
5
+ constructor(parent, services) {
6
+ this.parent = parent;
7
+ this.services = services;
8
+ this.parent = parent;
9
+ this.services = services;
10
+ }
11
+ async getCustomBonusPath(path) {
12
+ try {
13
+ const response = await fetch(path, {
14
+ method: 'GET',
15
+ cache: 'no-cache',
16
+ headers: {
17
+ 'Cache-Control': 'no-cache',
18
+ Pragma: 'no-cache',
19
+ },
20
+ });
21
+ if (!response.ok) {
22
+ return;
23
+ }
24
+ const data = (await response.json());
25
+ this.parent.depositPath = data.deposit;
26
+ }
27
+ catch (error) {
28
+ console.error('🚀 ERROR WITH HOME CATEGORIES CONFIG', error);
29
+ }
30
+ }
31
+ }
32
+ exports.BonusOnDepositBackgroundCardService = BonusOnDepositBackgroundCardService;
@@ -4,9 +4,11 @@ import { ObservableEntity } from 'service/observableEntity';
4
4
  import { HomeBanners } from './home/entity/banners';
5
5
  import { UIService } from './service';
6
6
  import { UIEntitiesSettings } from './types';
7
+ import { BonusOnDepositBackgroundCard } from './Bonuses/Deposit';
7
8
  export declare class UIEntities extends ObservableEntity<undefined> {
8
9
  homePage: HomePage;
9
10
  homeBanners: HomeBanners;
11
+ bonusOnDepositCard: BonusOnDepositBackgroundCard;
10
12
  _settings: UIEntitiesSettings | null;
11
13
  service: UIService;
12
14
  constructor(uiSettings: UIEntitiesSettings, services: ResponseAdapterService);
@@ -2,4 +2,5 @@ export interface UIEntitiesSettings {
2
2
  homeBanners: string;
3
3
  betting: string;
4
4
  homeCategories: string;
5
+ bonusOnDepositCardPath: string;
5
6
  }
@@ -177,6 +177,7 @@ export declare enum PaymentChannelType {
177
177
  NagadWellexPay = 77,
178
178
  PicPayBkashThree = 79,
179
179
  PicPayBkashTwo = 80,
180
+ PicPayPkr = 83,
180
181
  EasypaisaFast = 86,
181
182
  Easypaisa = 87,
182
183
  JazzCash = 88,
@@ -66,6 +66,7 @@ var PaymentChannelType;
66
66
  PaymentChannelType[PaymentChannelType["NagadWellexPay"] = 77] = "NagadWellexPay";
67
67
  PaymentChannelType[PaymentChannelType["PicPayBkashThree"] = 79] = "PicPayBkashThree";
68
68
  PaymentChannelType[PaymentChannelType["PicPayBkashTwo"] = 80] = "PicPayBkashTwo";
69
+ PaymentChannelType[PaymentChannelType["PicPayPkr"] = 83] = "PicPayPkr";
69
70
  // Pakistan
70
71
  PaymentChannelType[PaymentChannelType["EasypaisaFast"] = 86] = "EasypaisaFast";
71
72
  PaymentChannelType[PaymentChannelType["Easypaisa"] = 87] = "Easypaisa";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [