react-memory-optimization 0.0.68 → 0.0.70
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/dist/bundle.js +1 -1
- package/dist/lib/binary/constants/requestModules/Registration.d.ts +2 -0
- package/dist/lib/binary/constants/requestModules/Registration.js +648 -0
- package/dist/lib/binary/constants/requests.js +3 -352
- package/dist/lib/binary/types.d.ts +4 -1
- package/dist/lib/binary/types.js +3 -0
- package/dist/lib/socket/index.d.ts +2 -3
- package/dist/lib/socket/types/socket.d.ts +2 -3
- package/dist/lib/store/user/entities/{avatar → avatars}/index.d.ts +13 -13
- package/dist/lib/store/user/entities/{avatar → avatars}/types.d.ts +14 -9
- package/dist/lib/store/user/entities/favorites/constants.js +1 -4
- package/dist/lib/store/user/entities/favorites/types.d.ts +3 -6
- package/dist/lib/store/user/index.d.ts +2 -2
- package/dist/lib/store/user/services/index.d.ts +3 -2
- package/package.json +1 -1
- package/dist/lib/store/user/entities/avatar/constants.d.ts +0 -2
- package/dist/lib/store/user/entities/avatar/constants.js +0 -75
- /package/dist/lib/store/user/entities/{avatar → avatars}/types.js +0 -0
|
@@ -7,7 +7,8 @@ const APayRequest_1 = require("./requestModules/APayRequest");
|
|
|
7
7
|
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
12
|
command: 'GeoProviders',
|
|
12
13
|
responseKey: '-',
|
|
13
14
|
writeScheme: [],
|
|
@@ -135,251 +136,6 @@ exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assi
|
|
|
135
136
|
key: 'requestId',
|
|
136
137
|
},
|
|
137
138
|
],
|
|
138
|
-
}, '\\05x': {
|
|
139
|
-
command: 'Registration',
|
|
140
|
-
responseKey: '-',
|
|
141
|
-
writeScheme: [
|
|
142
|
-
{
|
|
143
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
144
|
-
binary: types_1.EWriteDataType.Byte,
|
|
145
|
-
key: 'registrationType',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
149
|
-
binary: types_1.EWriteDataType.Byte,
|
|
150
|
-
key: 'appType',
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
154
|
-
binary: types_1.EWriteDataType.Short,
|
|
155
|
-
key: 'currencyId',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
159
|
-
binary: types_1.EWriteDataType.UTF,
|
|
160
|
-
key: 'countryName',
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
164
|
-
binary: types_1.EWriteDataType.Int,
|
|
165
|
-
key: 'countryId',
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
169
|
-
binary: types_1.EWriteDataType.Byte,
|
|
170
|
-
key: 'gmt',
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
174
|
-
binary: types_1.EWriteDataType.UTF,
|
|
175
|
-
key: 'location',
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
179
|
-
binary: types_1.EWriteDataType.UTF,
|
|
180
|
-
key: 'promoCode',
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
184
|
-
binary: types_1.EWriteDataType.UTF,
|
|
185
|
-
key: 'utmMedium',
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
189
|
-
binary: types_1.EWriteDataType.UTF,
|
|
190
|
-
key: 'utmSource',
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
194
|
-
binary: types_1.EWriteDataType.UTF,
|
|
195
|
-
key: 'utmCampaign',
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
199
|
-
binary: types_1.EWriteDataType.UTF,
|
|
200
|
-
key: 'language',
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
204
|
-
binary: types_1.EWriteDataType.UTF,
|
|
205
|
-
key: 'clickId',
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
209
|
-
binary: types_1.EWriteDataType.Byte,
|
|
210
|
-
key: 'deviceType',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
214
|
-
binary: types_1.EWriteDataType.Byte,
|
|
215
|
-
key: 'requestId',
|
|
216
|
-
},
|
|
217
|
-
],
|
|
218
|
-
}, '\\06x': {
|
|
219
|
-
command: 'Registration',
|
|
220
|
-
responseKey: '-',
|
|
221
|
-
writeScheme: [
|
|
222
|
-
{
|
|
223
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
224
|
-
binary: types_1.EWriteDataType.Byte,
|
|
225
|
-
key: 'registrationType',
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
229
|
-
binary: types_1.EWriteDataType.Byte,
|
|
230
|
-
key: 'appType',
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
234
|
-
binary: types_1.EWriteDataType.UTF,
|
|
235
|
-
key: 'email',
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
239
|
-
binary: types_1.EWriteDataType.UTF,
|
|
240
|
-
key: 'password',
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
244
|
-
binary: types_1.EWriteDataType.Short,
|
|
245
|
-
key: 'currencyId',
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
249
|
-
binary: types_1.EWriteDataType.Byte,
|
|
250
|
-
key: 'letters',
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
254
|
-
binary: types_1.EWriteDataType.Byte,
|
|
255
|
-
key: 'gmt',
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
259
|
-
binary: types_1.EWriteDataType.UTF,
|
|
260
|
-
key: 'location',
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
264
|
-
binary: types_1.EWriteDataType.UTF,
|
|
265
|
-
key: 'utmMedium',
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
269
|
-
binary: types_1.EWriteDataType.UTF,
|
|
270
|
-
key: 'utmSource',
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
274
|
-
binary: types_1.EWriteDataType.UTF,
|
|
275
|
-
key: 'utmCampaign',
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
279
|
-
binary: types_1.EWriteDataType.UTF,
|
|
280
|
-
key: 'language',
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
284
|
-
binary: types_1.EWriteDataType.UTF,
|
|
285
|
-
key: 'clickId',
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
289
|
-
binary: types_1.EWriteDataType.Byte,
|
|
290
|
-
key: 'deviceType',
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
294
|
-
binary: types_1.EWriteDataType.Byte,
|
|
295
|
-
key: 'requestId',
|
|
296
|
-
},
|
|
297
|
-
],
|
|
298
|
-
}, '\\06x_with_promo': {
|
|
299
|
-
command: 'Registration',
|
|
300
|
-
responseKey: '-',
|
|
301
|
-
writeScheme: [
|
|
302
|
-
{
|
|
303
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
304
|
-
binary: types_1.EWriteDataType.Byte,
|
|
305
|
-
key: 'registrationType',
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
309
|
-
binary: types_1.EWriteDataType.Byte,
|
|
310
|
-
key: 'appType',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
314
|
-
binary: types_1.EWriteDataType.UTF,
|
|
315
|
-
key: 'email',
|
|
316
|
-
},
|
|
317
|
-
{
|
|
318
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
319
|
-
binary: types_1.EWriteDataType.UTF,
|
|
320
|
-
key: 'password',
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
324
|
-
binary: types_1.EWriteDataType.Short,
|
|
325
|
-
key: 'currencyId',
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
329
|
-
binary: types_1.EWriteDataType.Byte,
|
|
330
|
-
key: 'letters',
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
334
|
-
binary: types_1.EWriteDataType.Byte,
|
|
335
|
-
key: 'gmt',
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
339
|
-
binary: types_1.EWriteDataType.UTF,
|
|
340
|
-
key: 'location',
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
344
|
-
binary: types_1.EWriteDataType.UTF,
|
|
345
|
-
key: 'promoCode',
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
349
|
-
binary: types_1.EWriteDataType.UTF,
|
|
350
|
-
key: 'utmMedium',
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
354
|
-
binary: types_1.EWriteDataType.UTF,
|
|
355
|
-
key: 'utmSource',
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
359
|
-
binary: types_1.EWriteDataType.UTF,
|
|
360
|
-
key: 'utmCampaign',
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
364
|
-
binary: types_1.EWriteDataType.UTF,
|
|
365
|
-
key: 'language',
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
369
|
-
binary: types_1.EWriteDataType.UTF,
|
|
370
|
-
key: 'clickId',
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
374
|
-
binary: types_1.EWriteDataType.Byte,
|
|
375
|
-
key: 'deviceType',
|
|
376
|
-
},
|
|
377
|
-
{
|
|
378
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
379
|
-
binary: types_1.EWriteDataType.Byte,
|
|
380
|
-
key: 'requestId',
|
|
381
|
-
},
|
|
382
|
-
],
|
|
383
139
|
}, '\\07x': {
|
|
384
140
|
command: 'Registration',
|
|
385
141
|
responseKey: '-',
|
|
@@ -405,111 +161,6 @@ exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assi
|
|
|
405
161
|
key: 'requestId',
|
|
406
162
|
},
|
|
407
163
|
],
|
|
408
|
-
}, '\\08x': {
|
|
409
|
-
command: 'Registration',
|
|
410
|
-
responseKey: '-',
|
|
411
|
-
writeScheme: [
|
|
412
|
-
{
|
|
413
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
414
|
-
binary: types_1.EWriteDataType.Byte,
|
|
415
|
-
key: 'registrationType',
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
419
|
-
binary: types_1.EWriteDataType.Byte,
|
|
420
|
-
key: 'appType',
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
424
|
-
binary: types_1.EWriteDataType.UTF,
|
|
425
|
-
key: 'login',
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
429
|
-
binary: types_1.EWriteDataType.UTF,
|
|
430
|
-
key: 'email',
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
434
|
-
binary: types_1.EWriteDataType.UTF,
|
|
435
|
-
key: 'password',
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
439
|
-
binary: types_1.EWriteDataType.Short,
|
|
440
|
-
key: 'currencyId',
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
444
|
-
binary: types_1.EWriteDataType.UTF,
|
|
445
|
-
key: 'sms',
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
449
|
-
binary: types_1.EWriteDataType.UTF,
|
|
450
|
-
key: 'countryName',
|
|
451
|
-
},
|
|
452
|
-
{
|
|
453
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
454
|
-
binary: types_1.EWriteDataType.Int,
|
|
455
|
-
key: 'countryId',
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
459
|
-
binary: types_1.EWriteDataType.Byte,
|
|
460
|
-
key: 'letter',
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
464
|
-
binary: types_1.EWriteDataType.Byte,
|
|
465
|
-
key: 'gmt',
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
469
|
-
binary: types_1.EWriteDataType.UTF,
|
|
470
|
-
key: 'location',
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
474
|
-
binary: types_1.EWriteDataType.UTF,
|
|
475
|
-
key: 'promoCode',
|
|
476
|
-
},
|
|
477
|
-
{
|
|
478
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
479
|
-
binary: types_1.EWriteDataType.UTF,
|
|
480
|
-
key: 'utmMedium',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
484
|
-
binary: types_1.EWriteDataType.UTF,
|
|
485
|
-
key: 'utmSource',
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
489
|
-
binary: types_1.EWriteDataType.UTF,
|
|
490
|
-
key: 'utmCampaign',
|
|
491
|
-
},
|
|
492
|
-
{
|
|
493
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
494
|
-
binary: types_1.EWriteDataType.UTF,
|
|
495
|
-
key: 'language',
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
499
|
-
binary: types_1.EWriteDataType.UTF,
|
|
500
|
-
key: 'clickId',
|
|
501
|
-
},
|
|
502
|
-
{
|
|
503
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
504
|
-
binary: types_1.EWriteDataType.Byte,
|
|
505
|
-
key: 'deviceType',
|
|
506
|
-
},
|
|
507
|
-
{
|
|
508
|
-
type: 0 /* EWriteModifiedDataType.Usual */,
|
|
509
|
-
binary: types_1.EWriteDataType.Byte,
|
|
510
|
-
key: 'requestId',
|
|
511
|
-
},
|
|
512
|
-
],
|
|
513
164
|
}, '\\09x': {
|
|
514
165
|
command: 'ClientSms',
|
|
515
166
|
responseKey: '-',
|
|
@@ -3340,4 +2991,4 @@ exports.REQUEST_COMMANDS = Object.assign(Object.assign(Object.assign(Object.assi
|
|
|
3340
2991
|
key: 'requestId',
|
|
3341
2992
|
},
|
|
3342
2993
|
],
|
|
3343
|
-
} }, PlixoRequests_1.PLIXO_REQUESTS), APayRequest_1.APAY_REQUESTS), PlixoTryRequests_1.PLIXO_TRY_REQUESTS), PlixoCreedo_1.PLIXO_CREEDO_REQUESTS), PlixoPkr_1.PLIXO_CASHX_REQUESTS);
|
|
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);
|
|
@@ -250,7 +250,10 @@ export declare enum RegistrationSubType {
|
|
|
250
250
|
Phone = 17,
|
|
251
251
|
OneClick = 19,
|
|
252
252
|
PromoEmail = 26,
|
|
253
|
-
PhoneWithoutCode = 27
|
|
253
|
+
PhoneWithoutCode = 27,
|
|
254
|
+
ReferrerEmail = 36,
|
|
255
|
+
ReferrerPhone = 37,
|
|
256
|
+
ReferrerOneClick = 38
|
|
254
257
|
}
|
|
255
258
|
export declare enum RecoverySubType {
|
|
256
259
|
Phone = 5,
|
package/dist/lib/binary/types.js
CHANGED
|
@@ -126,6 +126,9 @@ var RegistrationSubType;
|
|
|
126
126
|
RegistrationSubType[RegistrationSubType["OneClick"] = 19] = "OneClick";
|
|
127
127
|
RegistrationSubType[RegistrationSubType["PromoEmail"] = 26] = "PromoEmail";
|
|
128
128
|
RegistrationSubType[RegistrationSubType["PhoneWithoutCode"] = 27] = "PhoneWithoutCode";
|
|
129
|
+
RegistrationSubType[RegistrationSubType["ReferrerEmail"] = 36] = "ReferrerEmail";
|
|
130
|
+
RegistrationSubType[RegistrationSubType["ReferrerPhone"] = 37] = "ReferrerPhone";
|
|
131
|
+
RegistrationSubType[RegistrationSubType["ReferrerOneClick"] = 38] = "ReferrerOneClick";
|
|
129
132
|
})(RegistrationSubType || (exports.RegistrationSubType = RegistrationSubType = {}));
|
|
130
133
|
var RecoverySubType;
|
|
131
134
|
(function (RecoverySubType) {
|
|
@@ -20,7 +20,7 @@ import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
|
|
|
20
20
|
import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
|
|
21
21
|
import { ExperimentalFeatures } from 'service/experimental';
|
|
22
22
|
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
23
|
-
import { AvatarType, BuyAvatarProps } from 'store/user/entities/
|
|
23
|
+
import { AvatarType, BuyAvatarProps, SubscribeAvatars } from 'store/user/entities/avatars/types';
|
|
24
24
|
import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
|
|
25
25
|
import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
|
|
26
26
|
import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
|
|
@@ -127,8 +127,7 @@ export declare class Socket implements SocketInterface {
|
|
|
127
127
|
handleSaveUserAvatar(info: AvatarType | null): boolean;
|
|
128
128
|
handleBuyAvatar(info: BuyAvatarProps): boolean;
|
|
129
129
|
handleBuyHero(info: BuyHeroAvatar): boolean;
|
|
130
|
-
|
|
131
|
-
subscribeAvatars(props: BaseObservableSubscriber): boolean;
|
|
130
|
+
subscribeAvatars(props: SubscribeAvatars): boolean;
|
|
132
131
|
unsubscribeAvatarEntity(uid: string): boolean;
|
|
133
132
|
subscribeLotteryFreeCash(props: SubscribeFreeCashTickets): boolean;
|
|
134
133
|
unsubscribeLotteryFreeCash(uid: string): boolean;
|
|
@@ -16,7 +16,7 @@ import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
|
|
|
16
16
|
import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
|
|
17
17
|
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
18
18
|
import { ExperimentalFeatures } from 'service/experimental';
|
|
19
|
-
import { AvatarType, BuyAvatarProps } from 'store/user/entities/
|
|
19
|
+
import { AvatarType, BuyAvatarProps, SubscribeAvatars } from 'store/user/entities/avatars/types';
|
|
20
20
|
import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
|
|
21
21
|
import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
|
|
22
22
|
import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
|
|
@@ -189,8 +189,7 @@ export interface SocketInterface {
|
|
|
189
189
|
unsubscribeFavoriteEntity: (uid: string) => void;
|
|
190
190
|
handleSaveUserAvatar: (props: null | AvatarType) => void;
|
|
191
191
|
handleBuyAvatar: (props: BuyAvatarProps) => void;
|
|
192
|
-
|
|
193
|
-
subscribeAvatars: (props: BaseObservableSubscriber) => void;
|
|
192
|
+
subscribeAvatars: (props: SubscribeAvatars) => void;
|
|
194
193
|
unsubscribeAvatarEntity: (uid: string) => void;
|
|
195
194
|
getLootBoxResult: (bet: number) => void;
|
|
196
195
|
getLootBoxGameSettings: () => void;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
2
2
|
import { ObservableEntity } from 'service/observableEntity';
|
|
3
3
|
import { UserServices } from 'store/user/services';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export declare class Avatar extends ObservableEntity<undefined> {
|
|
4
|
+
import { AvatarType, BuyAvatarProps, EAvatarRequestStatus } from './types';
|
|
5
|
+
export declare class Avatars extends ObservableEntity<undefined> {
|
|
7
6
|
service: UserServices;
|
|
8
|
-
_avatarInfo:
|
|
7
|
+
_avatarInfo: AvatarType | null;
|
|
9
8
|
_avatars: AvatarType[];
|
|
10
9
|
_requestStatus: EAvatarRequestStatus;
|
|
11
10
|
constructor(service: UserServices);
|
|
12
|
-
set avatarInfo(avatarInfo: null |
|
|
13
|
-
get avatarInfo(): null |
|
|
11
|
+
set avatarInfo(avatarInfo: null | AvatarType);
|
|
12
|
+
get avatarInfo(): null | AvatarType;
|
|
14
13
|
set requestStatus(status: EAvatarRequestStatus);
|
|
15
14
|
get requestStatus(): EAvatarRequestStatus;
|
|
16
|
-
set avatars(avatars:
|
|
17
|
-
get avatars():
|
|
18
|
-
revalidateAvatarsInfo(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
set avatars(avatars: AvatarType[]);
|
|
16
|
+
get avatars(): AvatarType[];
|
|
17
|
+
revalidateAvatarsInfo(avatar: AvatarType | null): void;
|
|
18
|
+
handleFavoriteSubscribes(data: {
|
|
19
|
+
isAvatar: boolean;
|
|
20
|
+
payload: AvatarType | null;
|
|
21
|
+
}): void;
|
|
23
22
|
handleBuyAvatar(info: BuyAvatarProps): void;
|
|
24
23
|
handleChangeUserAvatar(avatarInfo: AvatarType | null): void;
|
|
24
|
+
handleUserAvatar(): UpdateData | null;
|
|
25
25
|
sendUpdateEntity(info: BaseObservableSubscriber & {
|
|
26
26
|
isAvatar?: boolean;
|
|
27
27
|
isAvatars?: boolean;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
activeAvatar: number | null;
|
|
3
|
-
avatars: AvatarCollectionType[];
|
|
4
|
-
};
|
|
5
|
-
export type AvatarCollectionType = {
|
|
6
|
-
name: string;
|
|
7
|
-
avatars: AvatarType[];
|
|
8
|
-
};
|
|
1
|
+
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
9
2
|
export declare enum EAvatarRequestStatus {
|
|
10
3
|
Unknown = 0,
|
|
11
4
|
Requesting = 1,
|
|
12
5
|
Success = 2,
|
|
13
6
|
Rejected = 3
|
|
14
7
|
}
|
|
15
|
-
export type AvatarType =
|
|
8
|
+
export type AvatarType = {
|
|
9
|
+
id: number;
|
|
10
|
+
path: string;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
16
13
|
export type BuyAvatarProps = {
|
|
17
14
|
price: number;
|
|
18
15
|
id: number;
|
|
@@ -29,3 +26,11 @@ export declare const enum EAvatarId {
|
|
|
29
26
|
SlothCarton = 8,
|
|
30
27
|
SlothRealistic = 9
|
|
31
28
|
}
|
|
29
|
+
export type SubscribeAvatarParams = {
|
|
30
|
+
isAvatar: true;
|
|
31
|
+
isAvatars?: never;
|
|
32
|
+
} | {
|
|
33
|
+
isAvatars: true;
|
|
34
|
+
isAvatar?: never;
|
|
35
|
+
};
|
|
36
|
+
export type SubscribeAvatars = BaseObservableSubscriber & SubscribeAvatarParams;
|
|
@@ -3,6 +3,7 @@ import { CasinoServices } from 'store/casino/services';
|
|
|
3
3
|
import { HamsterInfo } from '../hamster/types';
|
|
4
4
|
import { WheelResultInfo } from '../bonusWheel/types';
|
|
5
5
|
import { CasinoCategory } from 'store/casino/entities/categories/types';
|
|
6
|
+
import { AvatarType } from '../avatars/types';
|
|
6
7
|
export type ObservableSettings = {
|
|
7
8
|
[uid: string]: ObservableSettingIsFavoriteGame | ObservableSettingHasFavoriteGames | ObservableSettingFavoriteGames;
|
|
8
9
|
};
|
|
@@ -33,17 +34,13 @@ export type UserFavoritesEntities = {
|
|
|
33
34
|
'3'?: string;
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
avatar: AvatarType | null;
|
|
37
38
|
betting: FavoriteBetting;
|
|
38
39
|
hamster: HamsterInfo;
|
|
39
40
|
bonusCoins: number;
|
|
40
41
|
wheelInfo: null | WheelResultInfo;
|
|
41
42
|
clickId: string | null;
|
|
42
43
|
};
|
|
43
|
-
export type FavAvatarInfo = {
|
|
44
|
-
activeAvatar: number | null;
|
|
45
|
-
availableAvatars: number[];
|
|
46
|
-
};
|
|
47
44
|
type FavoriteBetting = {
|
|
48
45
|
events: FavoriteEvents;
|
|
49
46
|
sports: FavoriteSports;
|
|
@@ -69,7 +66,7 @@ type PrepareFavoriteEntitiesForWheelResultProps = {
|
|
|
69
66
|
};
|
|
70
67
|
type PrepareFavoriteEntitiesForAvatarProps = {
|
|
71
68
|
isUserAvatar: boolean;
|
|
72
|
-
userAvatar:
|
|
69
|
+
userAvatar: AvatarType | null;
|
|
73
70
|
};
|
|
74
71
|
type PrepareFavoriteEntitiesUserAddAvatarProps = {
|
|
75
72
|
isUserAddAvailableAvatar: boolean;
|
|
@@ -11,7 +11,7 @@ import { Hamster } from './entities/hamster';
|
|
|
11
11
|
import { LootBox } from './entities/lootBox';
|
|
12
12
|
import { BonusWheel } from './entities/bonusWheel';
|
|
13
13
|
import { DailyActivities } from './entities/daily';
|
|
14
|
-
import {
|
|
14
|
+
import { Avatars } from './entities/avatars';
|
|
15
15
|
import { PromoCode } from './entities/promoCode';
|
|
16
16
|
import { Stories } from './entities/stories';
|
|
17
17
|
import { ObservableEntity } from 'service/observableEntity';
|
|
@@ -27,7 +27,7 @@ export declare class User extends ObservableEntity<undefined> {
|
|
|
27
27
|
bonusWheel: BonusWheel;
|
|
28
28
|
lootBox: LootBox;
|
|
29
29
|
dailyActivities: DailyActivities;
|
|
30
|
-
avatars:
|
|
30
|
+
avatars: Avatars;
|
|
31
31
|
promoCode: PromoCode;
|
|
32
32
|
storiesInstance: Stories;
|
|
33
33
|
_availableCurrencies: CurrencyInfo[];
|
|
@@ -3,6 +3,7 @@ import { HamsterInfo } from '../entities/hamster/types';
|
|
|
3
3
|
import { EReferralPath } from '../entities/referral/types';
|
|
4
4
|
import { CallbackInfo, SendCommand } from './types';
|
|
5
5
|
import { Operation } from 'store/operations/types';
|
|
6
|
+
import { AvatarType } from '../entities/avatars/types';
|
|
6
7
|
export declare class UserServices {
|
|
7
8
|
parent: User;
|
|
8
9
|
callbackInfo: CallbackInfo;
|
|
@@ -21,10 +22,10 @@ export declare class UserServices {
|
|
|
21
22
|
getBonusBalance(): number;
|
|
22
23
|
revalidateDailyTasks(): void;
|
|
23
24
|
updateWheelResult(): void;
|
|
24
|
-
updateAvatarInfo(userAvatar:
|
|
25
|
+
updateAvatarInfo(userAvatar: AvatarType | null): void;
|
|
25
26
|
getHamsterBalance(): number;
|
|
26
27
|
unlockAvatar(id: number): void;
|
|
27
|
-
avatarRevalidateAvailable(
|
|
28
|
+
avatarRevalidateAvailable(avatar: AvatarType | null): void;
|
|
28
29
|
activatePromoCode(promocode: string): Promise<any>;
|
|
29
30
|
getMonthlyBonus(): Operation | null;
|
|
30
31
|
getUserRatio(): number;
|
package/package.json
CHANGED