@smartico/public-api 0.0.239 → 0.0.241

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.
Files changed (58) hide show
  1. package/dist/WSAPI/WSAPITypes.d.ts +11 -1
  2. package/dist/index.js +3 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.modern.mjs +3 -2
  5. package/dist/index.modern.mjs.map +1 -1
  6. package/docs/interfaces/TBuyStoreItemResult.md +10 -1
  7. package/docs/interfaces/TUICustomSection.md +8 -0
  8. package/package.json +1 -1
  9. package/src/SmarticoAPI.ts +3 -2
  10. package/src/WSAPI/WSAPITypes.ts +11 -1
  11. package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
  12. package/dist/Raffle/GetDrawResponse.d.ts +0 -5
  13. package/dist/SmarticoPublicAPI.d.ts +0 -23
  14. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  15. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  16. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  17. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  18. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  19. package/dist/Store/ShopCategory.d.ts +0 -5
  20. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  21. package/dist/Store/ShopItem.d.ts +0 -9
  22. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  23. package/dist/Store/ShopItemType.d.ts +0 -4
  24. package/dist/Store/StorItemPruchased.d.ts +0 -6
  25. package/dist/service/index.d.ts +0 -5
  26. package/dist/service/types/ErrorCodes.d.ts +0 -13
  27. package/dist/service/types/GRequest.d.ts +0 -16
  28. package/dist/service/types/GResponse.d.ts +0 -10
  29. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  30. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  31. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  32. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  33. package/dist/service/types/Game/GamePick.d.ts +0 -90
  34. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  35. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  36. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  37. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  38. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  39. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  40. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  41. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  42. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  43. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  44. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  45. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  46. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  47. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  48. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  49. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  50. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  51. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  52. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  53. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  54. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  55. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  56. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  57. package/dist/service/types/User/UserInfo.d.ts +0 -10
  58. package/dist/util/Util.d.ts +0 -51
@@ -1,31 +0,0 @@
1
- export declare enum AskForUsername {
2
- NOASK = "no-ask",
3
- ONSUMBIT = "on-submit"
4
- }
5
- export interface SAWTemplateUI {
6
- skin: string;
7
- name: string;
8
- description?: string;
9
- over_limit_message?: string;
10
- no_attempts_message?: string;
11
- thumbnail?: string;
12
- sectors_count: number;
13
- priority: number;
14
- flow_builder_only: boolean;
15
- background_image?: string;
16
- background_image_mobile?: string;
17
- background_sound?: string;
18
- scratch_logo?: string;
19
- scratch_cover?: string;
20
- scratch_bg_desktop?: string;
21
- scratch_bg_mobile?: string;
22
- scratch_cursor?: string;
23
- custom_css?: string;
24
- custom_skin_folder?: string;
25
- jackpot_symbol?: string;
26
- promo_image?: string;
27
- promo_text?: string;
28
- ask_for_username?: AskForUsername;
29
- show_prize_board?: boolean;
30
- max_spins_period_ms?: number;
31
- }
@@ -1,12 +0,0 @@
1
- export declare enum SAWWinSoundType {
2
- Disappointing = 1,
3
- Positive = 2,
4
- HighlyPositive = 3,
5
- NoSound = 4
6
- }
7
- export declare const SAWWinSoundFiles: {
8
- 4: any;
9
- 1: string;
10
- 2: string;
11
- 3: string;
12
- };
@@ -1,9 +0,0 @@
1
- declare enum TranslationArea {
2
- Casino = 1,
3
- Gamification = 2,
4
- Trading = 3,
5
- Archived = 4,
6
- Affiliation = 5,
7
- RetentionGames = 6
8
- }
9
- export { TranslationArea };
@@ -1,10 +0,0 @@
1
- interface UserInfo {
2
- ext_user_id: string;
3
- int_user_id: number;
4
- public_username: string;
5
- avatar_url: string;
6
- last_wallet_sync_time?: Date;
7
- ach_points_balance?: number;
8
- pubic_username_set?: boolean;
9
- }
10
- export { UserInfo };
@@ -1,51 +0,0 @@
1
- import { TSMap } from "typescript-map";
2
- declare class Util {
3
- private constructor();
4
- static isNumber(value: string): boolean;
5
- static parseNumber(v: string): number | null;
6
- static parseBoolean(v: string | boolean): boolean | null;
7
- static escapeRegExp(v: string): string;
8
- static nullToEmpty(val: string): string;
9
- static nullTo0(val: number): number;
10
- static isNotEmpty(val: string): boolean;
11
- static isNotNull(val: any): boolean;
12
- static isNull(val: any): boolean;
13
- static isArrayNotEmpty(val: any[]): boolean;
14
- static isArrayEmpty(val: any[]): boolean;
15
- static isObjectEmpty(val: any): boolean;
16
- static isMapNotEmpty(val: TSMap<any, any>): boolean;
17
- static isMapEmpty(val: TSMap<any, any>): boolean;
18
- static objectToMap<K, V>(obj: any): TSMap<K, V> | null;
19
- static keyByValue(obj: any, value: any): string | null;
20
- static greaterThen0(val: number): boolean;
21
- static not0(val: number): boolean;
22
- static lessThen0(val: number): boolean;
23
- static compareUndefined(o1: any, o2: any): number;
24
- static compareArrayLength<T>(o1: T[], o2: T[]): number;
25
- static compareObject(a: {
26
- [key: string]: any;
27
- }, b: {
28
- [key: string]: any;
29
- }): boolean;
30
- static compareArrays<T>(arr1: T[], arr2: T[], comparator: (t1: T, t2: T) => number): number;
31
- static compareBool(o1: boolean, o2: boolean): number;
32
- static compareNumber(o1: number, o2: number): number;
33
- static compareString(o1: string, o2: string): number;
34
- static range(from: number, to: number): number[];
35
- static has(array: any[], val: any): boolean;
36
- static isEmpty(val: string): boolean;
37
- static checkNotNull<T>(reference: T, msg?: string): T;
38
- static randomInt(min: number, max: number): number;
39
- static randomArr<T>(arr: T[]): T | undefined;
40
- static remove<T>(arr: T[], item: T): boolean;
41
- static replaceAll(value: string, regex: string, replacement: string | number): string;
42
- static to<T, U = any>(promise: Promise<T>, errorExt?: object): Promise<[U | null, T | undefined]>;
43
- static isObject(item: any): boolean;
44
- static merge(target: any, ...sources: any[]): any;
45
- static deepCopy(source: object): object;
46
- static uuid: () => string;
47
- static getStackTrace(): string | undefined;
48
- static shuffleArray(array: any[]): any[];
49
- static buildValidationHash(ext_user_id: string, ext_game_id: number, customer_id: string, secretKey: string): string;
50
- }
51
- export { Util };