gs2 1.3.125 → 1.3.126
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/package.json +1 -1
- package/watch/model/AccountMetrics.d.ts +14 -0
- package/watch/model/AccountMetrics.js +56 -0
- package/watch/model/AccountMetrics.js.map +1 -0
- package/watch/model/AccountMetrics.ts +56 -0
- package/watch/model/AccountNamespace.d.ts +18 -0
- package/watch/model/AccountNamespace.js +70 -0
- package/watch/model/AccountNamespace.js.map +1 -0
- package/watch/model/AccountNamespace.ts +69 -0
- package/watch/model/AccountTakeOver.d.ts +17 -0
- package/watch/model/AccountTakeOver.js +62 -0
- package/watch/model/AccountTakeOver.js.map +1 -0
- package/watch/model/AccountTakeOver.ts +60 -0
- package/watch/model/ExchangeMetrics.d.ts +14 -0
- package/watch/model/ExchangeMetrics.js +56 -0
- package/watch/model/ExchangeMetrics.js.map +1 -0
- package/watch/model/ExchangeMetrics.ts +56 -0
- package/watch/model/ExchangeNamespace.d.ts +18 -0
- package/watch/model/ExchangeNamespace.js +70 -0
- package/watch/model/ExchangeNamespace.js.map +1 -0
- package/watch/model/ExchangeNamespace.ts +69 -0
- package/watch/model/ExchangeRate.d.ts +17 -0
- package/watch/model/ExchangeRate.js +62 -0
- package/watch/model/ExchangeRate.js.map +1 -0
- package/watch/model/ExchangeRate.ts +60 -0
- package/watch/model/ExperienceExperience.d.ts +18 -0
- package/watch/model/ExperienceExperience.js +70 -0
- package/watch/model/ExperienceExperience.js.map +1 -0
- package/watch/model/ExperienceExperience.ts +69 -0
- package/watch/model/ExperienceMetrics.d.ts +14 -0
- package/watch/model/ExperienceMetrics.js +56 -0
- package/watch/model/ExperienceMetrics.js.map +1 -0
- package/watch/model/ExperienceMetrics.ts +57 -0
- package/watch/model/ExperienceNamespace.d.ts +18 -0
- package/watch/model/ExperienceNamespace.js +70 -0
- package/watch/model/ExperienceNamespace.js.map +1 -0
- package/watch/model/ExperienceNamespace.ts +70 -0
- package/watch/model/ExperienceRankDistribution.d.ts +17 -0
- package/watch/model/ExperienceRankDistribution.js +62 -0
- package/watch/model/ExperienceRankDistribution.js.map +1 -0
- package/watch/model/ExperienceRankDistribution.ts +60 -0
- package/watch/model/FirstWeekLoginDays.d.ts +29 -0
- package/watch/model/FirstWeekLoginDays.js +104 -0
- package/watch/model/FirstWeekLoginDays.js.map +1 -0
- package/watch/model/FirstWeekLoginDays.ts +102 -0
- package/watch/model/GeneralMetrics.d.ts +42 -0
- package/watch/model/GeneralMetrics.js +139 -0
- package/watch/model/GeneralMetrics.js.map +1 -0
- package/watch/model/GeneralMetrics.ts +137 -0
- package/watch/model/InboxMetrics.d.ts +14 -0
- package/watch/model/InboxMetrics.js +56 -0
- package/watch/model/InboxMetrics.js.map +1 -0
- package/watch/model/InboxMetrics.ts +58 -0
- package/watch/model/InboxNamespace.d.ts +18 -0
- package/watch/model/InboxNamespace.js +65 -0
- package/watch/model/InboxNamespace.js.map +1 -0
- package/watch/model/InboxNamespace.ts +63 -0
- package/watch/model/InboxStatisticOpenMinutes.d.ts +29 -0
- package/watch/model/InboxStatisticOpenMinutes.js +104 -0
- package/watch/model/InboxStatisticOpenMinutes.js.map +1 -0
- package/watch/model/InboxStatisticOpenMinutes.ts +102 -0
- package/watch/model/InboxStatisticSummary.d.ts +21 -0
- package/watch/model/InboxStatisticSummary.js +76 -0
- package/watch/model/InboxStatisticSummary.js.map +1 -0
- package/watch/model/InboxStatisticSummary.ts +74 -0
- package/watch/model/InboxStatistics.d.ts +19 -0
- package/watch/model/InboxStatistics.js +66 -0
- package/watch/model/InboxStatistics.js.map +1 -0
- package/watch/model/InboxStatistics.ts +62 -0
- package/watch/model/InventoryInventory.d.ts +23 -0
- package/watch/model/InventoryInventory.js +91 -0
- package/watch/model/InventoryInventory.js.map +1 -0
- package/watch/model/InventoryInventory.ts +94 -0
- package/watch/model/InventoryInventoryStatistics.d.ts +17 -0
- package/watch/model/InventoryInventoryStatistics.js +62 -0
- package/watch/model/InventoryInventoryStatistics.js.map +1 -0
- package/watch/model/InventoryInventoryStatistics.ts +60 -0
- package/watch/model/InventoryInventoryStatisticsDistribution.d.ts +21 -0
- package/watch/model/InventoryInventoryStatisticsDistribution.js +76 -0
- package/watch/model/InventoryInventoryStatisticsDistribution.js.map +1 -0
- package/watch/model/InventoryInventoryStatisticsDistribution.ts +74 -0
- package/watch/model/InventoryItem.d.ts +23 -0
- package/watch/model/InventoryItem.js +86 -0
- package/watch/model/InventoryItem.js.map +1 -0
- package/watch/model/InventoryItem.ts +84 -0
- package/watch/model/InventoryItemDistribution.d.ts +21 -0
- package/watch/model/InventoryItemDistribution.js +76 -0
- package/watch/model/InventoryItemDistribution.js.map +1 -0
- package/watch/model/InventoryItemDistribution.ts +74 -0
- package/watch/model/InventoryItemStatistics.d.ts +21 -0
- package/watch/model/InventoryItemStatistics.js +76 -0
- package/watch/model/InventoryItemStatistics.js.map +1 -0
- package/watch/model/InventoryItemStatistics.ts +74 -0
- package/watch/model/InventoryMetrics.d.ts +14 -0
- package/watch/model/InventoryMetrics.js +56 -0
- package/watch/model/InventoryMetrics.js.map +1 -0
- package/watch/model/InventoryMetrics.ts +60 -0
- package/watch/model/InventoryNamespace.d.ts +18 -0
- package/watch/model/InventoryNamespace.js +70 -0
- package/watch/model/InventoryNamespace.js.map +1 -0
- package/watch/model/InventoryNamespace.ts +73 -0
- package/watch/model/LimitCounter.d.ts +18 -0
- package/watch/model/LimitCounter.js +70 -0
- package/watch/model/LimitCounter.js.map +1 -0
- package/watch/model/LimitCounter.ts +70 -0
- package/watch/model/LimitCounterDistribution.d.ts +18 -0
- package/watch/model/LimitCounterDistribution.js +70 -0
- package/watch/model/LimitCounterDistribution.js.map +1 -0
- package/watch/model/LimitCounterDistribution.ts +69 -0
- package/watch/model/LimitCounterDistributionUsage.d.ts +21 -0
- package/watch/model/LimitCounterDistributionUsage.js +76 -0
- package/watch/model/LimitCounterDistributionUsage.js.map +1 -0
- package/watch/model/LimitCounterDistributionUsage.ts +74 -0
- package/watch/model/LimitLimit.d.ts +18 -0
- package/watch/model/LimitLimit.js +70 -0
- package/watch/model/LimitLimit.js.map +1 -0
- package/watch/model/LimitLimit.ts +71 -0
- package/watch/model/LimitMetrics.d.ts +14 -0
- package/watch/model/LimitMetrics.js +56 -0
- package/watch/model/LimitMetrics.js.map +1 -0
- package/watch/model/LimitMetrics.ts +59 -0
- package/watch/model/LimitNamespace.d.ts +18 -0
- package/watch/model/LimitNamespace.js +70 -0
- package/watch/model/LimitNamespace.js.map +1 -0
- package/watch/model/LimitNamespace.ts +72 -0
- package/watch/model/MatchmakingDurationSeconds.d.ts +29 -0
- package/watch/model/MatchmakingDurationSeconds.js +104 -0
- package/watch/model/MatchmakingDurationSeconds.js.map +1 -0
- package/watch/model/MatchmakingDurationSeconds.ts +102 -0
- package/watch/model/MatchmakingMetrics.d.ts +14 -0
- package/watch/model/MatchmakingMetrics.js +56 -0
- package/watch/model/MatchmakingMetrics.js.map +1 -0
- package/watch/model/MatchmakingMetrics.ts +58 -0
- package/watch/model/MatchmakingNamespace.d.ts +23 -0
- package/watch/model/MatchmakingNamespace.js +86 -0
- package/watch/model/MatchmakingNamespace.js.map +1 -0
- package/watch/model/MatchmakingNamespace.ts +85 -0
- package/watch/model/MatchmakingRole.d.ts +30 -0
- package/watch/model/MatchmakingRole.js +107 -0
- package/watch/model/MatchmakingRole.js.map +1 -0
- package/watch/model/MatchmakingRole.ts +103 -0
- package/watch/model/MatchmakingStatistics.d.ts +26 -0
- package/watch/model/MatchmakingStatistics.js +93 -0
- package/watch/model/MatchmakingStatistics.js.map +1 -0
- package/watch/model/MatchmakingStatistics.ts +89 -0
- package/watch/model/MoneyBalanceDistribution.d.ts +21 -0
- package/watch/model/MoneyBalanceDistribution.js +76 -0
- package/watch/model/MoneyBalanceDistribution.js.map +1 -0
- package/watch/model/MoneyBalanceDistribution.ts +74 -0
- package/watch/model/MoneyBillingDistribution.d.ts +21 -0
- package/watch/model/MoneyBillingDistribution.js +76 -0
- package/watch/model/MoneyBillingDistribution.js.map +1 -0
- package/watch/model/MoneyBillingDistribution.ts +74 -0
- package/watch/model/MoneyMetrics.d.ts +14 -0
- package/watch/model/MoneyMetrics.js +56 -0
- package/watch/model/MoneyMetrics.js.map +1 -0
- package/watch/model/MoneyMetrics.ts +58 -0
- package/watch/model/MoneyNamespace.d.ts +28 -0
- package/watch/model/MoneyNamespace.js +107 -0
- package/watch/model/MoneyNamespace.js.map +1 -0
- package/watch/model/MoneyNamespace.ts +107 -0
- package/watch/model/MoneyStatistics.d.ts +21 -0
- package/watch/model/MoneyStatistics.js +76 -0
- package/watch/model/MoneyStatistics.js.map +1 -0
- package/watch/model/MoneyStatistics.ts +74 -0
- package/watch/model/MonthlyActiveUsers.d.ts +17 -0
- package/watch/model/MonthlyActiveUsers.js +62 -0
- package/watch/model/MonthlyActiveUsers.js.map +1 -0
- package/watch/model/MonthlyActiveUsers.ts +60 -0
- package/watch/model/QuestMetrics.d.ts +14 -0
- package/watch/model/QuestMetrics.js +56 -0
- package/watch/model/QuestMetrics.js.map +1 -0
- package/watch/model/QuestMetrics.ts +59 -0
- package/watch/model/QuestNamespace.d.ts +18 -0
- package/watch/model/QuestNamespace.js +70 -0
- package/watch/model/QuestNamespace.js.map +1 -0
- package/watch/model/QuestNamespace.ts +72 -0
- package/watch/model/QuestQuest.d.ts +18 -0
- package/watch/model/QuestQuest.js +65 -0
- package/watch/model/QuestQuest.js.map +1 -0
- package/watch/model/QuestQuest.ts +62 -0
- package/watch/model/QuestQuestDurationSeconds.d.ts +29 -0
- package/watch/model/QuestQuestDurationSeconds.js +104 -0
- package/watch/model/QuestQuestDurationSeconds.js.map +1 -0
- package/watch/model/QuestQuestDurationSeconds.ts +102 -0
- package/watch/model/QuestQuestGroup.d.ts +18 -0
- package/watch/model/QuestQuestGroup.js +70 -0
- package/watch/model/QuestQuestGroup.js.map +1 -0
- package/watch/model/QuestQuestGroup.ts +71 -0
- package/watch/model/QuestQuestReward.d.ts +26 -0
- package/watch/model/QuestQuestReward.js +93 -0
- package/watch/model/QuestQuestReward.js.map +1 -0
- package/watch/model/QuestQuestReward.ts +89 -0
- package/watch/model/QuestQuestRewardStatistics.d.ts +29 -0
- package/watch/model/QuestQuestRewardStatistics.js +104 -0
- package/watch/model/QuestQuestRewardStatistics.js.map +1 -0
- package/watch/model/QuestQuestRewardStatistics.ts +102 -0
- package/watch/model/QuestQuestStatistics.d.ts +22 -0
- package/watch/model/QuestQuestStatistics.js +79 -0
- package/watch/model/QuestQuestStatistics.js.map +1 -0
- package/watch/model/QuestQuestStatistics.ts +75 -0
- package/watch/model/RankingCategory.d.ts +18 -0
- package/watch/model/RankingCategory.js +70 -0
- package/watch/model/RankingCategory.js.map +1 -0
- package/watch/model/RankingCategory.ts +69 -0
- package/watch/model/RankingCategoryScoreDistribution.d.ts +21 -0
- package/watch/model/RankingCategoryScoreDistribution.js +76 -0
- package/watch/model/RankingCategoryScoreDistribution.js.map +1 -0
- package/watch/model/RankingCategoryScoreDistribution.ts +74 -0
- package/watch/model/RankingMetrics.d.ts +14 -0
- package/watch/model/RankingMetrics.js +56 -0
- package/watch/model/RankingMetrics.js.map +1 -0
- package/watch/model/RankingMetrics.ts +57 -0
- package/watch/model/RankingNamespace.d.ts +18 -0
- package/watch/model/RankingNamespace.js +70 -0
- package/watch/model/RankingNamespace.js.map +1 -0
- package/watch/model/RankingNamespace.ts +70 -0
- package/watch/model/ReturningUserRatio.d.ts +21 -0
- package/watch/model/ReturningUserRatio.js +76 -0
- package/watch/model/ReturningUserRatio.js.map +1 -0
- package/watch/model/ReturningUserRatio.ts +74 -0
- package/watch/model/SessionDuration.d.ts +19 -0
- package/watch/model/SessionDuration.js +72 -0
- package/watch/model/SessionDuration.js.map +1 -0
- package/watch/model/SessionDuration.ts +70 -0
- package/watch/model/SessionDurationDistribution.d.ts +21 -0
- package/watch/model/SessionDurationDistribution.js +76 -0
- package/watch/model/SessionDurationDistribution.js.map +1 -0
- package/watch/model/SessionDurationDistribution.ts +74 -0
- package/watch/model/SessionDurationStatistics.d.ts +29 -0
- package/watch/model/SessionDurationStatistics.js +104 -0
- package/watch/model/SessionDurationStatistics.js.map +1 -0
- package/watch/model/SessionDurationStatistics.ts +102 -0
- package/watch/model/ShowcaseBuyQuantityDistribution.d.ts +21 -0
- package/watch/model/ShowcaseBuyQuantityDistribution.js +76 -0
- package/watch/model/ShowcaseBuyQuantityDistribution.js.map +1 -0
- package/watch/model/ShowcaseBuyQuantityDistribution.ts +74 -0
- package/watch/model/ShowcaseDisplayItem.d.ts +18 -0
- package/watch/model/ShowcaseDisplayItem.js +70 -0
- package/watch/model/ShowcaseDisplayItem.js.map +1 -0
- package/watch/model/ShowcaseDisplayItem.ts +69 -0
- package/watch/model/ShowcaseMetrics.d.ts +14 -0
- package/watch/model/ShowcaseMetrics.js +56 -0
- package/watch/model/ShowcaseMetrics.js.map +1 -0
- package/watch/model/ShowcaseMetrics.ts +58 -0
- package/watch/model/ShowcaseNamespace.d.ts +18 -0
- package/watch/model/ShowcaseNamespace.js +70 -0
- package/watch/model/ShowcaseNamespace.js.map +1 -0
- package/watch/model/ShowcaseNamespace.ts +71 -0
- package/watch/model/ShowcaseShowcase.d.ts +18 -0
- package/watch/model/ShowcaseShowcase.js +70 -0
- package/watch/model/ShowcaseShowcase.js.map +1 -0
- package/watch/model/ShowcaseShowcase.ts +70 -0
- package/watch/model/WeeklyActiveUsers.d.ts +21 -0
- package/watch/model/WeeklyActiveUsers.js +76 -0
- package/watch/model/WeeklyActiveUsers.js.map +1 -0
- package/watch/model/WeeklyActiveUsers.ts +74 -0
- package/watch/model/index.d.ts +65 -1
- package/watch/model/index.js +130 -1
- package/watch/model/index.js.map +1 -1
- package/watch/model/index.ts +128 -0
- package/watch/request/GetAccountMetricsRequest.d.ts +17 -0
- package/watch/request/GetAccountMetricsRequest.js +54 -0
- package/watch/request/GetAccountMetricsRequest.js.map +1 -0
- package/watch/request/GetAccountMetricsRequest.ts +62 -0
- package/watch/request/GetExchangeMetricsRequest.d.ts +17 -0
- package/watch/request/GetExchangeMetricsRequest.js +54 -0
- package/watch/request/GetExchangeMetricsRequest.js.map +1 -0
- package/watch/request/GetExchangeMetricsRequest.ts +62 -0
- package/watch/request/GetExperienceMetricsRequest.d.ts +17 -0
- package/watch/request/GetExperienceMetricsRequest.js +54 -0
- package/watch/request/GetExperienceMetricsRequest.js.map +1 -0
- package/watch/request/GetExperienceMetricsRequest.ts +62 -0
- package/watch/request/GetGeneralMetricsRequest.d.ts +17 -0
- package/watch/request/GetGeneralMetricsRequest.js +54 -0
- package/watch/request/GetGeneralMetricsRequest.js.map +1 -0
- package/watch/request/GetGeneralMetricsRequest.ts +62 -0
- package/watch/request/GetInboxMetricsRequest.d.ts +17 -0
- package/watch/request/GetInboxMetricsRequest.js +54 -0
- package/watch/request/GetInboxMetricsRequest.js.map +1 -0
- package/watch/request/GetInboxMetricsRequest.ts +62 -0
- package/watch/request/GetInventoryMetricsRequest.d.ts +17 -0
- package/watch/request/GetInventoryMetricsRequest.js +54 -0
- package/watch/request/GetInventoryMetricsRequest.js.map +1 -0
- package/watch/request/GetInventoryMetricsRequest.ts +62 -0
- package/watch/request/GetLimitMetricsRequest.d.ts +17 -0
- package/watch/request/GetLimitMetricsRequest.js +54 -0
- package/watch/request/GetLimitMetricsRequest.js.map +1 -0
- package/watch/request/GetLimitMetricsRequest.ts +62 -0
- package/watch/request/GetMatchmakingMetricsRequest.d.ts +17 -0
- package/watch/request/GetMatchmakingMetricsRequest.js +54 -0
- package/watch/request/GetMatchmakingMetricsRequest.js.map +1 -0
- package/watch/request/GetMatchmakingMetricsRequest.ts +62 -0
- package/watch/request/GetMoneyMetricsRequest.d.ts +17 -0
- package/watch/request/GetMoneyMetricsRequest.js +54 -0
- package/watch/request/GetMoneyMetricsRequest.js.map +1 -0
- package/watch/request/GetMoneyMetricsRequest.ts +62 -0
- package/watch/request/GetQuestMetricsRequest.d.ts +17 -0
- package/watch/request/GetQuestMetricsRequest.js +54 -0
- package/watch/request/GetQuestMetricsRequest.js.map +1 -0
- package/watch/request/GetQuestMetricsRequest.ts +62 -0
- package/watch/request/GetRankingMetricsRequest.d.ts +17 -0
- package/watch/request/GetRankingMetricsRequest.js +54 -0
- package/watch/request/GetRankingMetricsRequest.js.map +1 -0
- package/watch/request/GetRankingMetricsRequest.ts +62 -0
- package/watch/request/GetShowcaseMetricsRequest.d.ts +17 -0
- package/watch/request/GetShowcaseMetricsRequest.js +54 -0
- package/watch/request/GetShowcaseMetricsRequest.js.map +1 -0
- package/watch/request/GetShowcaseMetricsRequest.ts +62 -0
- package/watch/request/index.d.ts +13 -1
- package/watch/request/index.js +25 -1
- package/watch/request/index.js.map +1 -1
- package/watch/request/index.ts +24 -0
- package/watch/rest.d.ts +12 -0
- package/watch/rest.js +252 -0
- package/watch/rest.js.map +1 -1
- package/watch/rest.ts +300 -0
- package/watch/result/GetAccountMetricsResult.d.ts +14 -0
- package/watch/result/GetAccountMetricsResult.js +48 -0
- package/watch/result/GetAccountMetricsResult.js.map +1 -0
- package/watch/result/GetAccountMetricsResult.ts +48 -0
- package/watch/result/GetExchangeMetricsResult.d.ts +14 -0
- package/watch/result/GetExchangeMetricsResult.js +48 -0
- package/watch/result/GetExchangeMetricsResult.js.map +1 -0
- package/watch/result/GetExchangeMetricsResult.ts +48 -0
- package/watch/result/GetExperienceMetricsResult.d.ts +14 -0
- package/watch/result/GetExperienceMetricsResult.js +48 -0
- package/watch/result/GetExperienceMetricsResult.js.map +1 -0
- package/watch/result/GetExperienceMetricsResult.ts +48 -0
- package/watch/result/GetGeneralMetricsResult.d.ts +14 -0
- package/watch/result/GetGeneralMetricsResult.js +48 -0
- package/watch/result/GetGeneralMetricsResult.js.map +1 -0
- package/watch/result/GetGeneralMetricsResult.ts +48 -0
- package/watch/result/GetInboxMetricsResult.d.ts +14 -0
- package/watch/result/GetInboxMetricsResult.js +48 -0
- package/watch/result/GetInboxMetricsResult.js.map +1 -0
- package/watch/result/GetInboxMetricsResult.ts +48 -0
- package/watch/result/GetInventoryMetricsResult.d.ts +14 -0
- package/watch/result/GetInventoryMetricsResult.js +48 -0
- package/watch/result/GetInventoryMetricsResult.js.map +1 -0
- package/watch/result/GetInventoryMetricsResult.ts +48 -0
- package/watch/result/GetLimitMetricsResult.d.ts +14 -0
- package/watch/result/GetLimitMetricsResult.js +48 -0
- package/watch/result/GetLimitMetricsResult.js.map +1 -0
- package/watch/result/GetLimitMetricsResult.ts +48 -0
- package/watch/result/GetMatchmakingMetricsResult.d.ts +14 -0
- package/watch/result/GetMatchmakingMetricsResult.js +48 -0
- package/watch/result/GetMatchmakingMetricsResult.js.map +1 -0
- package/watch/result/GetMatchmakingMetricsResult.ts +48 -0
- package/watch/result/GetMoneyMetricsResult.d.ts +14 -0
- package/watch/result/GetMoneyMetricsResult.js +48 -0
- package/watch/result/GetMoneyMetricsResult.js.map +1 -0
- package/watch/result/GetMoneyMetricsResult.ts +48 -0
- package/watch/result/GetQuestMetricsResult.d.ts +14 -0
- package/watch/result/GetQuestMetricsResult.js +48 -0
- package/watch/result/GetQuestMetricsResult.js.map +1 -0
- package/watch/result/GetQuestMetricsResult.ts +48 -0
- package/watch/result/GetRankingMetricsResult.d.ts +14 -0
- package/watch/result/GetRankingMetricsResult.js +48 -0
- package/watch/result/GetRankingMetricsResult.js.map +1 -0
- package/watch/result/GetRankingMetricsResult.ts +48 -0
- package/watch/result/GetShowcaseMetricsResult.d.ts +14 -0
- package/watch/result/GetShowcaseMetricsResult.js +48 -0
- package/watch/result/GetShowcaseMetricsResult.js.map +1 -0
- package/watch/result/GetShowcaseMetricsResult.ts +48 -0
- package/watch/result/index.d.ts +13 -1
- package/watch/result/index.js +25 -1
- package/watch/result/index.js.map +1 -1
- package/watch/result/index.ts +24 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var InventoryItemStatistics = /** @class */ (function () {
|
|
19
|
+
function InventoryItemStatistics() {
|
|
20
|
+
this.acquired = null;
|
|
21
|
+
this.consumed = null;
|
|
22
|
+
this.consumedRate = null;
|
|
23
|
+
}
|
|
24
|
+
InventoryItemStatistics.prototype.getAcquired = function () {
|
|
25
|
+
return this.acquired;
|
|
26
|
+
};
|
|
27
|
+
InventoryItemStatistics.prototype.setAcquired = function (acquired) {
|
|
28
|
+
this.acquired = acquired;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
InventoryItemStatistics.prototype.withAcquired = function (acquired) {
|
|
32
|
+
this.acquired = acquired;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
InventoryItemStatistics.prototype.getConsumed = function () {
|
|
36
|
+
return this.consumed;
|
|
37
|
+
};
|
|
38
|
+
InventoryItemStatistics.prototype.setConsumed = function (consumed) {
|
|
39
|
+
this.consumed = consumed;
|
|
40
|
+
return this;
|
|
41
|
+
};
|
|
42
|
+
InventoryItemStatistics.prototype.withConsumed = function (consumed) {
|
|
43
|
+
this.consumed = consumed;
|
|
44
|
+
return this;
|
|
45
|
+
};
|
|
46
|
+
InventoryItemStatistics.prototype.getConsumedRate = function () {
|
|
47
|
+
return this.consumedRate;
|
|
48
|
+
};
|
|
49
|
+
InventoryItemStatistics.prototype.setConsumedRate = function (consumedRate) {
|
|
50
|
+
this.consumedRate = consumedRate;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
InventoryItemStatistics.prototype.withConsumedRate = function (consumedRate) {
|
|
54
|
+
this.consumedRate = consumedRate;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
InventoryItemStatistics.fromDict = function (data) {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new InventoryItemStatistics()
|
|
62
|
+
.withAcquired(data["acquired"])
|
|
63
|
+
.withConsumed(data["consumed"])
|
|
64
|
+
.withConsumedRate(data["consumedRate"]);
|
|
65
|
+
};
|
|
66
|
+
InventoryItemStatistics.prototype.toDict = function () {
|
|
67
|
+
return {
|
|
68
|
+
"acquired": this.getAcquired(),
|
|
69
|
+
"consumed": this.getConsumed(),
|
|
70
|
+
"consumedRate": this.getConsumedRate(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
return InventoryItemStatistics;
|
|
74
|
+
}());
|
|
75
|
+
exports.default = InventoryItemStatistics;
|
|
76
|
+
//# sourceMappingURL=InventoryItemStatistics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InventoryItemStatistics.js","sourceRoot":"","sources":["InventoryItemStatistics.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,aAAQ,GAAgB,IAAI,CAAC;QAC7B,aAAQ,GAAgB,IAAI,CAAC;QAC7B,iBAAY,GAAgB,IAAI,CAAC;IAoD7C,CAAC;IAnDU,6CAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,6CAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6CAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,6CAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iDAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACM,iDAAe,GAAtB,UAAuB,YAAyB;QAC5C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,kDAAgB,GAAvB,UAAwB,YAAyB;QAC7C,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,gCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,uBAAuB,EAAE;aAC/B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,gBAAgB,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;IAChD,CAAC;IAEM,wCAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE;SACzC,CAAC;IACN,CAAC;IACL,8BAAC;AAAD,CAAC,AAvDD,IAuDC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class InventoryItemStatistics implements IModel {
|
|
20
|
+
private acquired: number|null = null;
|
|
21
|
+
private consumed: number|null = null;
|
|
22
|
+
private consumedRate: number|null = null;
|
|
23
|
+
public getAcquired(): number|null {
|
|
24
|
+
return this.acquired;
|
|
25
|
+
}
|
|
26
|
+
public setAcquired(acquired: number|null) {
|
|
27
|
+
this.acquired = acquired;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withAcquired(acquired: number|null): this {
|
|
31
|
+
this.acquired = acquired;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getConsumed(): number|null {
|
|
35
|
+
return this.consumed;
|
|
36
|
+
}
|
|
37
|
+
public setConsumed(consumed: number|null) {
|
|
38
|
+
this.consumed = consumed;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withConsumed(consumed: number|null): this {
|
|
42
|
+
this.consumed = consumed;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
public getConsumedRate(): number|null {
|
|
46
|
+
return this.consumedRate;
|
|
47
|
+
}
|
|
48
|
+
public setConsumedRate(consumedRate: number|null) {
|
|
49
|
+
this.consumedRate = consumedRate;
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
public withConsumedRate(consumedRate: number|null): this {
|
|
53
|
+
this.consumedRate = consumedRate;
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
public static fromDict(data: {[key: string]: any}): InventoryItemStatistics|null {
|
|
58
|
+
if (data == undefined || data == null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return new InventoryItemStatistics()
|
|
62
|
+
.withAcquired(data["acquired"])
|
|
63
|
+
.withConsumed(data["consumed"])
|
|
64
|
+
.withConsumedRate(data["consumedRate"]);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
public toDict(): {[key: string]: any} {
|
|
68
|
+
return {
|
|
69
|
+
"acquired": this.getAcquired(),
|
|
70
|
+
"consumed": this.getConsumed(),
|
|
71
|
+
"consumedRate": this.getConsumedRate(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import InventoryNamespace from './InventoryNamespace';
|
|
3
|
+
export default class InventoryMetrics implements IModel {
|
|
4
|
+
private namespaces;
|
|
5
|
+
getNamespaces(): InventoryNamespace[] | null;
|
|
6
|
+
setNamespaces(namespaces: InventoryNamespace[] | null): this;
|
|
7
|
+
withNamespaces(namespaces: InventoryNamespace[] | null): this;
|
|
8
|
+
static fromDict(data: {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}): InventoryMetrics | null;
|
|
11
|
+
toDict(): {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var InventoryNamespace_1 = tslib_1.__importDefault(require("./InventoryNamespace"));
|
|
20
|
+
var InventoryMetrics = /** @class */ (function () {
|
|
21
|
+
function InventoryMetrics() {
|
|
22
|
+
this.namespaces = null;
|
|
23
|
+
}
|
|
24
|
+
InventoryMetrics.prototype.getNamespaces = function () {
|
|
25
|
+
return this.namespaces;
|
|
26
|
+
};
|
|
27
|
+
InventoryMetrics.prototype.setNamespaces = function (namespaces) {
|
|
28
|
+
this.namespaces = namespaces;
|
|
29
|
+
return this;
|
|
30
|
+
};
|
|
31
|
+
InventoryMetrics.prototype.withNamespaces = function (namespaces) {
|
|
32
|
+
this.namespaces = namespaces;
|
|
33
|
+
return this;
|
|
34
|
+
};
|
|
35
|
+
InventoryMetrics.fromDict = function (data) {
|
|
36
|
+
if (data == undefined || data == null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return new InventoryMetrics()
|
|
40
|
+
.withNamespaces(data.namespaces ?
|
|
41
|
+
data.namespaces.map(function (item) {
|
|
42
|
+
return InventoryNamespace_1.default.fromDict(item);
|
|
43
|
+
}) : []);
|
|
44
|
+
};
|
|
45
|
+
InventoryMetrics.prototype.toDict = function () {
|
|
46
|
+
return {
|
|
47
|
+
"namespaces": this.getNamespaces() ?
|
|
48
|
+
this.getNamespaces().map(function (item) {
|
|
49
|
+
return item.toDict();
|
|
50
|
+
}) : [],
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
return InventoryMetrics;
|
|
54
|
+
}());
|
|
55
|
+
exports.default = InventoryMetrics;
|
|
56
|
+
//# sourceMappingURL=InventoryMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InventoryMetrics.js","sourceRoot":"","sources":["InventoryMetrics.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAQH,oFAAsD;AAEtD;IAAA;QACY,eAAU,GAA8B,IAAI,CAAC;IAkCzD,CAAC;IAjCU,wCAAa,GAApB;QACI,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IACM,wCAAa,GAApB,UAAqB,UAAqC;QACtD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAc,GAArB,UAAsB,UAAqC;QACvD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,yBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,gBAAgB,EAAE;aACxB,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7B,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC3C,OAAO,4BAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC7C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,iCAAM,GAAb;QACI,OAAO;YACH,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;gBAChC,IAAI,CAAC,aAAa,EAAG,CAAC,GAAG,CAAC,UAAC,IAAwB;oBAC/C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,uBAAC;AAAD,CAAC,AAnCD,IAmCC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import InventoryInventoryStatistics from './InventoryInventoryStatistics';
|
|
19
|
+
import InventoryItemStatistics from './InventoryItemStatistics';
|
|
20
|
+
import InventoryItemDistribution from './InventoryItemDistribution';
|
|
21
|
+
import InventoryItem from './InventoryItem';
|
|
22
|
+
import InventoryInventory from './InventoryInventory';
|
|
23
|
+
import InventoryNamespace from './InventoryNamespace';
|
|
24
|
+
|
|
25
|
+
export default class InventoryMetrics implements IModel {
|
|
26
|
+
private namespaces: InventoryNamespace[]|null = null;
|
|
27
|
+
public getNamespaces(): InventoryNamespace[]|null {
|
|
28
|
+
return this.namespaces;
|
|
29
|
+
}
|
|
30
|
+
public setNamespaces(namespaces: InventoryNamespace[]|null) {
|
|
31
|
+
this.namespaces = namespaces;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public withNamespaces(namespaces: InventoryNamespace[]|null): this {
|
|
35
|
+
this.namespaces = namespaces;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
public static fromDict(data: {[key: string]: any}): InventoryMetrics|null {
|
|
40
|
+
if (data == undefined || data == null) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return new InventoryMetrics()
|
|
44
|
+
.withNamespaces(data.namespaces ?
|
|
45
|
+
data.namespaces.map((item: {[key: string]: any}) => {
|
|
46
|
+
return InventoryNamespace.fromDict(item);
|
|
47
|
+
}
|
|
48
|
+
) : []);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public toDict(): {[key: string]: any} {
|
|
52
|
+
return {
|
|
53
|
+
"namespaces": this.getNamespaces() ?
|
|
54
|
+
this.getNamespaces()!.map((item: InventoryNamespace) => {
|
|
55
|
+
return item.toDict();
|
|
56
|
+
}
|
|
57
|
+
) : [],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import InventoryInventory from './InventoryInventory';
|
|
3
|
+
export default class InventoryNamespace implements IModel {
|
|
4
|
+
private namespaceName;
|
|
5
|
+
private inventory;
|
|
6
|
+
getNamespaceName(): string | null;
|
|
7
|
+
setNamespaceName(namespaceName: string | null): this;
|
|
8
|
+
withNamespaceName(namespaceName: string | null): this;
|
|
9
|
+
getInventory(): InventoryInventory[] | null;
|
|
10
|
+
setInventory(inventory: InventoryInventory[] | null): this;
|
|
11
|
+
withInventory(inventory: InventoryInventory[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): InventoryNamespace | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var InventoryInventory_1 = tslib_1.__importDefault(require("./InventoryInventory"));
|
|
20
|
+
var InventoryNamespace = /** @class */ (function () {
|
|
21
|
+
function InventoryNamespace() {
|
|
22
|
+
this.namespaceName = null;
|
|
23
|
+
this.inventory = null;
|
|
24
|
+
}
|
|
25
|
+
InventoryNamespace.prototype.getNamespaceName = function () {
|
|
26
|
+
return this.namespaceName;
|
|
27
|
+
};
|
|
28
|
+
InventoryNamespace.prototype.setNamespaceName = function (namespaceName) {
|
|
29
|
+
this.namespaceName = namespaceName;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
InventoryNamespace.prototype.withNamespaceName = function (namespaceName) {
|
|
33
|
+
this.namespaceName = namespaceName;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
InventoryNamespace.prototype.getInventory = function () {
|
|
37
|
+
return this.inventory;
|
|
38
|
+
};
|
|
39
|
+
InventoryNamespace.prototype.setInventory = function (inventory) {
|
|
40
|
+
this.inventory = inventory;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
InventoryNamespace.prototype.withInventory = function (inventory) {
|
|
44
|
+
this.inventory = inventory;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
InventoryNamespace.fromDict = function (data) {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new InventoryNamespace()
|
|
52
|
+
.withNamespaceName(data["namespaceName"])
|
|
53
|
+
.withInventory(data.inventory ?
|
|
54
|
+
data.inventory.map(function (item) {
|
|
55
|
+
return InventoryInventory_1.default.fromDict(item);
|
|
56
|
+
}) : []);
|
|
57
|
+
};
|
|
58
|
+
InventoryNamespace.prototype.toDict = function () {
|
|
59
|
+
return {
|
|
60
|
+
"namespaceName": this.getNamespaceName(),
|
|
61
|
+
"inventory": this.getInventory() ?
|
|
62
|
+
this.getInventory().map(function (item) {
|
|
63
|
+
return item.toDict();
|
|
64
|
+
}) : [],
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
return InventoryNamespace;
|
|
68
|
+
}());
|
|
69
|
+
exports.default = InventoryNamespace;
|
|
70
|
+
//# sourceMappingURL=InventoryNamespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InventoryNamespace.js","sourceRoot":"","sources":["InventoryNamespace.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAOH,oFAAsD;AAEtD;IAAA;QACY,kBAAa,GAAgB,IAAI,CAAC;QAClC,cAAS,GAA8B,IAAI,CAAC;IA+CxD,CAAC;IA9CU,6CAAgB,GAAvB;QACI,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC;IACM,6CAAgB,GAAvB,UAAwB,aAA0B;QAC9C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8CAAiB,GAAxB,UAAyB,aAA0B;QAC/C,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,yCAAY,GAAnB;QACI,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IACM,yCAAY,GAAnB,UAAoB,SAAoC;QACpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,0CAAa,GAApB,UAAqB,SAAoC;QACrD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,2BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,kBAAkB,EAAE;aAC1B,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;aACxC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC1C,OAAO,4BAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC7C,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,mCAAM,GAAb;QACI,OAAO;YACH,eAAe,EAAE,IAAI,CAAC,gBAAgB,EAAE;YACxC,WAAW,EAAE,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;gBAC9B,IAAI,CAAC,YAAY,EAAG,CAAC,GAAG,CAAC,UAAC,IAAwB;oBAC9C,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,yBAAC;AAAD,CAAC,AAjDD,IAiDC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import InventoryInventoryStatistics from './InventoryInventoryStatistics';
|
|
19
|
+
import InventoryItemStatistics from './InventoryItemStatistics';
|
|
20
|
+
import InventoryItemDistribution from './InventoryItemDistribution';
|
|
21
|
+
import InventoryItem from './InventoryItem';
|
|
22
|
+
import InventoryInventory from './InventoryInventory';
|
|
23
|
+
|
|
24
|
+
export default class InventoryNamespace implements IModel {
|
|
25
|
+
private namespaceName: string|null = null;
|
|
26
|
+
private inventory: InventoryInventory[]|null = null;
|
|
27
|
+
public getNamespaceName(): string|null {
|
|
28
|
+
return this.namespaceName;
|
|
29
|
+
}
|
|
30
|
+
public setNamespaceName(namespaceName: string|null) {
|
|
31
|
+
this.namespaceName = namespaceName;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public withNamespaceName(namespaceName: string|null): this {
|
|
35
|
+
this.namespaceName = namespaceName;
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
public getInventory(): InventoryInventory[]|null {
|
|
39
|
+
return this.inventory;
|
|
40
|
+
}
|
|
41
|
+
public setInventory(inventory: InventoryInventory[]|null) {
|
|
42
|
+
this.inventory = inventory;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
public withInventory(inventory: InventoryInventory[]|null): this {
|
|
46
|
+
this.inventory = inventory;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public static fromDict(data: {[key: string]: any}): InventoryNamespace|null {
|
|
51
|
+
if (data == undefined || data == null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return new InventoryNamespace()
|
|
55
|
+
.withNamespaceName(data["namespaceName"])
|
|
56
|
+
.withInventory(data.inventory ?
|
|
57
|
+
data.inventory.map((item: {[key: string]: any}) => {
|
|
58
|
+
return InventoryInventory.fromDict(item);
|
|
59
|
+
}
|
|
60
|
+
) : []);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public toDict(): {[key: string]: any} {
|
|
64
|
+
return {
|
|
65
|
+
"namespaceName": this.getNamespaceName(),
|
|
66
|
+
"inventory": this.getInventory() ?
|
|
67
|
+
this.getInventory()!.map((item: InventoryInventory) => {
|
|
68
|
+
return item.toDict();
|
|
69
|
+
}
|
|
70
|
+
) : [],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import LimitCounterDistribution from './LimitCounterDistribution';
|
|
3
|
+
export default class LimitCounter implements IModel {
|
|
4
|
+
private counterName;
|
|
5
|
+
private distribution;
|
|
6
|
+
getCounterName(): string | null;
|
|
7
|
+
setCounterName(counterName: string | null): this;
|
|
8
|
+
withCounterName(counterName: string | null): this;
|
|
9
|
+
getDistribution(): LimitCounterDistribution[] | null;
|
|
10
|
+
setDistribution(distribution: LimitCounterDistribution[] | null): this;
|
|
11
|
+
withDistribution(distribution: LimitCounterDistribution[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): LimitCounter | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var LimitCounterDistribution_1 = tslib_1.__importDefault(require("./LimitCounterDistribution"));
|
|
20
|
+
var LimitCounter = /** @class */ (function () {
|
|
21
|
+
function LimitCounter() {
|
|
22
|
+
this.counterName = null;
|
|
23
|
+
this.distribution = null;
|
|
24
|
+
}
|
|
25
|
+
LimitCounter.prototype.getCounterName = function () {
|
|
26
|
+
return this.counterName;
|
|
27
|
+
};
|
|
28
|
+
LimitCounter.prototype.setCounterName = function (counterName) {
|
|
29
|
+
this.counterName = counterName;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
LimitCounter.prototype.withCounterName = function (counterName) {
|
|
33
|
+
this.counterName = counterName;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
LimitCounter.prototype.getDistribution = function () {
|
|
37
|
+
return this.distribution;
|
|
38
|
+
};
|
|
39
|
+
LimitCounter.prototype.setDistribution = function (distribution) {
|
|
40
|
+
this.distribution = distribution;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
LimitCounter.prototype.withDistribution = function (distribution) {
|
|
44
|
+
this.distribution = distribution;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
LimitCounter.fromDict = function (data) {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new LimitCounter()
|
|
52
|
+
.withCounterName(data["counterName"])
|
|
53
|
+
.withDistribution(data.distribution ?
|
|
54
|
+
data.distribution.map(function (item) {
|
|
55
|
+
return LimitCounterDistribution_1.default.fromDict(item);
|
|
56
|
+
}) : []);
|
|
57
|
+
};
|
|
58
|
+
LimitCounter.prototype.toDict = function () {
|
|
59
|
+
return {
|
|
60
|
+
"counterName": this.getCounterName(),
|
|
61
|
+
"distribution": this.getDistribution() ?
|
|
62
|
+
this.getDistribution().map(function (item) {
|
|
63
|
+
return item.toDict();
|
|
64
|
+
}) : [],
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
return LimitCounter;
|
|
68
|
+
}());
|
|
69
|
+
exports.default = LimitCounter;
|
|
70
|
+
//# sourceMappingURL=LimitCounter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LimitCounter.js","sourceRoot":"","sources":["LimitCounter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,gGAAkE;AAElE;IAAA;QACY,gBAAW,GAAgB,IAAI,CAAC;QAChC,iBAAY,GAAoC,IAAI,CAAC;IA+CjE,CAAC;IA9CU,qCAAc,GAArB;QACI,OAAO,IAAI,CAAC,WAAW,CAAC;IAC5B,CAAC;IACM,qCAAc,GAArB,UAAsB,WAAwB;QAC1C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,sCAAe,GAAtB,UAAuB,WAAwB;QAC3C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,sCAAe,GAAtB;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IACM,sCAAe,GAAtB,UAAuB,YAA6C;QAChE,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,uCAAgB,GAAvB,UAAwB,YAA6C;QACjE,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,YAAY,EAAE;aACpB,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,gBAAgB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;YACjC,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,UAAC,IAA0B;gBAC7C,OAAO,kCAAwB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,6BAAM,GAAb;QACI,OAAO;YACH,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,cAAc,EAAE,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC;gBACpC,IAAI,CAAC,eAAe,EAAG,CAAC,GAAG,CAAC,UAAC,IAA8B;oBACvD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AAjDD,IAiDC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import LimitCounterDistributionUsage from './LimitCounterDistributionUsage';
|
|
19
|
+
import LimitCounterDistribution from './LimitCounterDistribution';
|
|
20
|
+
|
|
21
|
+
export default class LimitCounter implements IModel {
|
|
22
|
+
private counterName: string|null = null;
|
|
23
|
+
private distribution: LimitCounterDistribution[]|null = null;
|
|
24
|
+
public getCounterName(): string|null {
|
|
25
|
+
return this.counterName;
|
|
26
|
+
}
|
|
27
|
+
public setCounterName(counterName: string|null) {
|
|
28
|
+
this.counterName = counterName;
|
|
29
|
+
return this;
|
|
30
|
+
}
|
|
31
|
+
public withCounterName(counterName: string|null): this {
|
|
32
|
+
this.counterName = counterName;
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
public getDistribution(): LimitCounterDistribution[]|null {
|
|
36
|
+
return this.distribution;
|
|
37
|
+
}
|
|
38
|
+
public setDistribution(distribution: LimitCounterDistribution[]|null) {
|
|
39
|
+
this.distribution = distribution;
|
|
40
|
+
return this;
|
|
41
|
+
}
|
|
42
|
+
public withDistribution(distribution: LimitCounterDistribution[]|null): this {
|
|
43
|
+
this.distribution = distribution;
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public static fromDict(data: {[key: string]: any}): LimitCounter|null {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new LimitCounter()
|
|
52
|
+
.withCounterName(data["counterName"])
|
|
53
|
+
.withDistribution(data.distribution ?
|
|
54
|
+
data.distribution.map((item: {[key: string]: any}) => {
|
|
55
|
+
return LimitCounterDistribution.fromDict(item);
|
|
56
|
+
}
|
|
57
|
+
) : []);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
public toDict(): {[key: string]: any} {
|
|
61
|
+
return {
|
|
62
|
+
"counterName": this.getCounterName(),
|
|
63
|
+
"distribution": this.getDistribution() ?
|
|
64
|
+
this.getDistribution()!.map((item: LimitCounterDistribution) => {
|
|
65
|
+
return item.toDict();
|
|
66
|
+
}
|
|
67
|
+
) : [],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import LimitCounterDistributionUsage from './LimitCounterDistributionUsage';
|
|
3
|
+
export default class LimitCounterDistribution implements IModel {
|
|
4
|
+
private maxValue;
|
|
5
|
+
private usage;
|
|
6
|
+
getMaxValue(): number | null;
|
|
7
|
+
setMaxValue(maxValue: number | null): this;
|
|
8
|
+
withMaxValue(maxValue: number | null): this;
|
|
9
|
+
getUsage(): LimitCounterDistributionUsage[] | null;
|
|
10
|
+
setUsage(usage: LimitCounterDistributionUsage[] | null): this;
|
|
11
|
+
withUsage(usage: LimitCounterDistributionUsage[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): LimitCounterDistribution | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|