@smartico/public-api 0.0.211 → 0.0.212
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/SAWPrizeUI.d.ts +1 -0
- package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
- package/dist/SmarticoPublicAPI.d.ts +23 -0
- package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
- package/dist/Store/BuyShopItemRequest.d.ts +4 -0
- package/dist/Store/BuyShopItemResponse.d.ts +4 -0
- package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- package/dist/Store/ShopCategory.d.ts +5 -0
- package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
- package/dist/Store/ShopItem.d.ts +9 -0
- package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
- package/dist/Store/ShopItemType.d.ts +4 -0
- package/dist/Store/StorItemPruchased.d.ts +6 -0
- package/dist/WSAPI/WSAPITypes.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3 -1
- package/dist/index.modern.mjs.map +1 -1
- package/dist/service/index.d.ts +5 -0
- package/dist/service/types/ErrorCodes.d.ts +13 -0
- package/dist/service/types/GRequest.d.ts +16 -0
- package/dist/service/types/GResponse.d.ts +10 -0
- package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
- package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
- package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
- package/dist/service/types/Game/GameInfo.d.ts +9 -0
- package/dist/service/types/Game/GamePick.d.ts +90 -0
- package/dist/service/types/Game/GameUtil.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
- package/dist/service/types/User/UserInfo.d.ts +10 -0
- package/dist/util/Util.d.ts +51 -0
- package/docs/enums/MiniGamePrizeTypeName.md +2 -2
- package/docs/interfaces/TMiniGamePrize.md +15 -16
- package/docs/interfaces/TMiniGameTemplate.md +11 -9
- package/docs/interfaces/TTournament.md +0 -4
- package/package.json +1 -1
- package/src/MiniGames/SAWGetTemplatesResponse.ts +2 -0
- package/src/MiniGames/SAWPrizeUI.ts +3 -0
- package/src/WSAPI/WSAPITypes.ts +6 -1
|
@@ -278,12 +278,8 @@ ___
|
|
|
278
278
|
|
|
279
279
|
• `Optional` **min\_scores\_win**: `number`
|
|
280
280
|
|
|
281
|
-
The minimum amount of score points that the user should get in order to be qualified for the prize
|
|
282
|
-
|
|
283
281
|
___
|
|
284
282
|
|
|
285
283
|
### hide\_leaderboard\_min\_scores
|
|
286
284
|
|
|
287
285
|
• `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
|
|
288
|
-
|
|
289
|
-
When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
|
package/package.json
CHANGED
|
@@ -41,6 +41,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
41
41
|
next_available_spin_ts: r.next_available_spin_ts,
|
|
42
42
|
steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
|
|
43
43
|
custom_section_id: r.saw_template_ui_definition.custom_section_id,
|
|
44
|
+
saw_template_ui_definition: r.saw_template_ui_definition,
|
|
44
45
|
|
|
45
46
|
prizes: r.prizes.map((p) => {
|
|
46
47
|
const y: TMiniGamePrize = {
|
|
@@ -71,6 +72,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
|
|
|
71
72
|
custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
|
|
72
73
|
prize_modifiers: p.saw_prize_ui_definition.prize_modifiers,
|
|
73
74
|
allow_split_decimal: p.saw_prize_ui_definition.allow_split_decimal,
|
|
75
|
+
hide_prize_from_history: p.saw_prize_ui_definition.hide_prize_from_history
|
|
74
76
|
};
|
|
75
77
|
return y;
|
|
76
78
|
}),
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuyStoreItemErrorCode } from '../Store';
|
|
2
|
-
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate } from '../MiniGames';
|
|
2
|
+
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI } from '../MiniGames';
|
|
3
3
|
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
|
|
4
4
|
import { AchCategory, AchievementAvailabilityStatus } from '../Missions';
|
|
5
5
|
import { LeaderBoardPeriodType } from '../Leaderboard';
|
|
@@ -68,6 +68,8 @@ export interface TMiniGamePrize {
|
|
|
68
68
|
prize_modifiers?: PrizeModifiers[];
|
|
69
69
|
/** When enabled, you can split prize value by decimal values */
|
|
70
70
|
allow_split_decimal?: boolean;
|
|
71
|
+
/** When enabled, you can hide prize from prize history */
|
|
72
|
+
hide_prize_from_history?:boolean;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
/**
|
|
@@ -160,6 +162,9 @@ export interface TMiniGameTemplate {
|
|
|
160
162
|
steps_to_finish_game?: number;
|
|
161
163
|
/* Hold the id of the custom section */
|
|
162
164
|
custom_section_id?: number;
|
|
165
|
+
|
|
166
|
+
/** The UI definition of the mini-game */
|
|
167
|
+
saw_template_ui_definition: SAWTemplateUI;
|
|
163
168
|
}
|
|
164
169
|
|
|
165
170
|
/**
|