@smartico/public-api 0.0.199 → 0.0.200
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/MiniGames/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -1
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/MiniGames/index.ts +1 -0
- package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/Store/StorItemPruchased.d.ts +0 -6
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
package/dist/util/Util.d.ts
DELETED
|
@@ -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 };
|