react-memory-optimization 0.0.73 → 0.0.74

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.
@@ -0,0 +1,2 @@
1
+ import { RequestCommands } from 'binary/types';
2
+ export declare const FLASH_CALL_REQUESTS: RequestCommands;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLASH_CALL_REQUESTS = void 0;
4
+ const types_1 = require("binary/types");
5
+ exports.FLASH_CALL_REQUESTS = {
6
+ '\\09x_flash_call': {
7
+ command: 'ClientFlashCall',
8
+ responseKey: '-',
9
+ writeScheme: [
10
+ {
11
+ type: 0 /* EWriteModifiedDataType.Usual */,
12
+ binary: types_1.EWriteDataType.UTF,
13
+ key: 'value',
14
+ },
15
+ {
16
+ type: 0 /* EWriteModifiedDataType.Usual */,
17
+ binary: types_1.EWriteDataType.Byte,
18
+ key: 'appType',
19
+ },
20
+ {
21
+ type: 0 /* EWriteModifiedDataType.Usual */,
22
+ binary: types_1.EWriteDataType.Byte,
23
+ key: 'section', // 3 ?
24
+ },
25
+ {
26
+ type: 0 /* EWriteModifiedDataType.Usual */,
27
+ binary: types_1.EWriteDataType.Byte,
28
+ key: 'requestId',
29
+ },
30
+ ],
31
+ },
32
+ '\\31x_flash_call_code_check': {
33
+ command: 'СlientСode',
34
+ responseKey: '-',
35
+ writeScheme: [
36
+ {
37
+ type: 0 /* EWriteModifiedDataType.Usual */,
38
+ binary: types_1.EWriteDataType.UTF,
39
+ key: 'sms',
40
+ },
41
+ {
42
+ type: 0 /* EWriteModifiedDataType.Usual */,
43
+ binary: types_1.EWriteDataType.Byte,
44
+ key: 'requestId',
45
+ },
46
+ ],
47
+ },
48
+ };
@@ -8,7 +8,8 @@ const PlixoTryRequests_1 = require("./requestModules/PlixoTryRequests");
8
8
  const PlixoCreedo_1 = require("./requestModules/PlixoCreedo");
9
9
  const PlixoPkr_1 = require("./requestModules/PlixoPkr");
10
10
  const Registration_1 = require("./requestModules/Registration");
11
- exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '\\x0': {
11
+ const FlashCall_1 = require("./requestModules/FlashCall");
12
+ exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ '\\x0': {
12
13
  command: 'GeoProviders',
13
14
  responseKey: '-',
14
15
  writeScheme: [],
@@ -2991,4 +2992,4 @@ exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assi
2991
2992
  key: 'requestId',
2992
2993
  },
2993
2994
  ],
2994
- } }, Registration_1.REGISTRATION_REQUESTS), PlixoRequests_1.PLIXO_REQUESTS), APayRequest_1.APAY_REQUESTS), PlixoTryRequests_1.PLIXO_TRY_REQUESTS), PlixoCreedo_1.PLIXO_CREEDO_REQUESTS), PlixoPkr_1.PLIXO_CASHX_REQUESTS);
2995
+ } }, FlashCall_1.FLASH_CALL_REQUESTS), Registration_1.REGISTRATION_REQUESTS), PlixoRequests_1.PLIXO_REQUESTS), APayRequest_1.APAY_REQUESTS), PlixoTryRequests_1.PLIXO_TRY_REQUESTS), PlixoCreedo_1.PLIXO_CREEDO_REQUESTS), PlixoPkr_1.PLIXO_CASHX_REQUESTS);
@@ -242,7 +242,8 @@ export declare enum ERequestIds {
242
242
  LastWinners = 55,
243
243
  RequestLotteries = 56,
244
244
  ReferralWithdraw = 57,
245
- WalletAzn = 58
245
+ WalletAzn = 58,
246
+ FlashCall = 59
246
247
  }
247
248
  export declare enum RegistrationSubType {
248
249
  UpdateUserInfo = 6,
@@ -116,6 +116,7 @@ var ERequestIds;
116
116
  ERequestIds[ERequestIds["RequestLotteries"] = 56] = "RequestLotteries";
117
117
  ERequestIds[ERequestIds["ReferralWithdraw"] = 57] = "ReferralWithdraw";
118
118
  ERequestIds[ERequestIds["WalletAzn"] = 58] = "WalletAzn";
119
+ ERequestIds[ERequestIds["FlashCall"] = 59] = "FlashCall";
119
120
  })(ERequestIds || (exports.ERequestIds = ERequestIds = {}));
120
121
  // REGISTRATION SUB ID
121
122
  var RegistrationSubType;
@@ -37,5 +37,6 @@ export declare class ResponseAdapter {
37
37
  private handleAdditionalUserInfo;
38
38
  handleBackOfficeSettings(result: HandleBackOfficeResponse): void;
39
39
  handleRunCasinoGameResponse(result: HandleRunGameResponse): void;
40
+ private handleSmsCodeSended;
40
41
  handleCasinoTournament(result: AdaptedCasinoTournamentProps, isInitial?: boolean): void;
41
42
  }
@@ -178,4 +178,8 @@ export type HandleRunGameResponse = {
178
178
  requestId: ERequestIds;
179
179
  url: string;
180
180
  };
181
+ export type HandleSmsCodeSendedProps = {
182
+ requestId: number;
183
+ code: string;
184
+ };
181
185
  export {};
@@ -125,7 +125,8 @@ export declare enum ERequestCommand {
125
125
  RublesDeposit = "bet_payment_create_deposit",
126
126
  BetPaymentCreateWithdraw = "bet_payment_create_withdraw",
127
127
  BetPaymentCreateDeposit = "bet_payment_create_deposit",
128
- ClientAfterRegister = "client_after_register"
128
+ ClientAfterRegister = "client_after_register",
129
+ ClientFlashCall = "clientflashcall"
129
130
  }
130
131
  export type SendCommand = (key: string, data: {
131
132
  [key: string]: string | number | any[];
@@ -73,6 +73,7 @@ var ERequestCommand;
73
73
  ERequestCommand["BetPaymentCreateWithdraw"] = "bet_payment_create_withdraw";
74
74
  ERequestCommand["BetPaymentCreateDeposit"] = "bet_payment_create_deposit";
75
75
  ERequestCommand["ClientAfterRegister"] = "client_after_register";
76
+ ERequestCommand["ClientFlashCall"] = "clientflashcall";
76
77
  })(ERequestCommand || (exports.ERequestCommand = ERequestCommand = {}));
77
78
  // ============== END MARKETS ==============
78
79
  var ERequestStatus;
@@ -3,17 +3,18 @@ export declare enum ENotifications {
3
3
  ReplacedBet = 1,
4
4
  TicketFinished = 2,
5
5
  SmsCodeSended = 3,
6
- ReferralWithdrawSuccess = 4,
7
- ReferralWithdrawError = 5,
8
- OperationCanMayAFewMinutes = 6,
9
- UserInNotAuthorize = 7,
10
- LootBoxBetNotFound = 8,
11
- AmountIsNotEnough = 9,
12
- WheelIsNotAvailable = 10,
13
- BalanceIsNotAvailable = 11,
14
- PromoCodeError = 12,
15
- PromoCodeSuccess = 13,
16
- LootBoxTakeMonthly = 14,
17
- AccrualHistoryError = 15,
18
- SendCodeResponse = 16
6
+ FlashCallSended = 4,
7
+ ReferralWithdrawSuccess = 5,
8
+ ReferralWithdrawError = 6,
9
+ OperationCanMayAFewMinutes = 7,
10
+ UserInNotAuthorize = 8,
11
+ LootBoxBetNotFound = 9,
12
+ AmountIsNotEnough = 10,
13
+ WheelIsNotAvailable = 11,
14
+ BalanceIsNotAvailable = 12,
15
+ PromoCodeError = 13,
16
+ PromoCodeSuccess = 14,
17
+ LootBoxTakeMonthly = 15,
18
+ AccrualHistoryError = 16,
19
+ SendCodeResponse = 17
19
20
  }
@@ -7,17 +7,18 @@ var ENotifications;
7
7
  ENotifications[ENotifications["ReplacedBet"] = 1] = "ReplacedBet";
8
8
  ENotifications[ENotifications["TicketFinished"] = 2] = "TicketFinished";
9
9
  ENotifications[ENotifications["SmsCodeSended"] = 3] = "SmsCodeSended";
10
- ENotifications[ENotifications["ReferralWithdrawSuccess"] = 4] = "ReferralWithdrawSuccess";
11
- ENotifications[ENotifications["ReferralWithdrawError"] = 5] = "ReferralWithdrawError";
12
- ENotifications[ENotifications["OperationCanMayAFewMinutes"] = 6] = "OperationCanMayAFewMinutes";
13
- ENotifications[ENotifications["UserInNotAuthorize"] = 7] = "UserInNotAuthorize";
14
- ENotifications[ENotifications["LootBoxBetNotFound"] = 8] = "LootBoxBetNotFound";
15
- ENotifications[ENotifications["AmountIsNotEnough"] = 9] = "AmountIsNotEnough";
16
- ENotifications[ENotifications["WheelIsNotAvailable"] = 10] = "WheelIsNotAvailable";
17
- ENotifications[ENotifications["BalanceIsNotAvailable"] = 11] = "BalanceIsNotAvailable";
18
- ENotifications[ENotifications["PromoCodeError"] = 12] = "PromoCodeError";
19
- ENotifications[ENotifications["PromoCodeSuccess"] = 13] = "PromoCodeSuccess";
20
- ENotifications[ENotifications["LootBoxTakeMonthly"] = 14] = "LootBoxTakeMonthly";
21
- ENotifications[ENotifications["AccrualHistoryError"] = 15] = "AccrualHistoryError";
22
- ENotifications[ENotifications["SendCodeResponse"] = 16] = "SendCodeResponse";
10
+ ENotifications[ENotifications["FlashCallSended"] = 4] = "FlashCallSended";
11
+ ENotifications[ENotifications["ReferralWithdrawSuccess"] = 5] = "ReferralWithdrawSuccess";
12
+ ENotifications[ENotifications["ReferralWithdrawError"] = 6] = "ReferralWithdrawError";
13
+ ENotifications[ENotifications["OperationCanMayAFewMinutes"] = 7] = "OperationCanMayAFewMinutes";
14
+ ENotifications[ENotifications["UserInNotAuthorize"] = 8] = "UserInNotAuthorize";
15
+ ENotifications[ENotifications["LootBoxBetNotFound"] = 9] = "LootBoxBetNotFound";
16
+ ENotifications[ENotifications["AmountIsNotEnough"] = 10] = "AmountIsNotEnough";
17
+ ENotifications[ENotifications["WheelIsNotAvailable"] = 11] = "WheelIsNotAvailable";
18
+ ENotifications[ENotifications["BalanceIsNotAvailable"] = 12] = "BalanceIsNotAvailable";
19
+ ENotifications[ENotifications["PromoCodeError"] = 13] = "PromoCodeError";
20
+ ENotifications[ENotifications["PromoCodeSuccess"] = 14] = "PromoCodeSuccess";
21
+ ENotifications[ENotifications["LootBoxTakeMonthly"] = 15] = "LootBoxTakeMonthly";
22
+ ENotifications[ENotifications["AccrualHistoryError"] = 16] = "AccrualHistoryError";
23
+ ENotifications[ENotifications["SendCodeResponse"] = 17] = "SendCodeResponse";
23
24
  })(ENotifications || (exports.ENotifications = ENotifications = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.73",
3
+ "version": "0.0.74",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [