@gamelobby/common 1.0.323 → 1.0.324
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.
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export declare enum CurrencyType {
|
|
2
|
+
COINS = "coins",
|
|
3
|
+
GEMS = "gems",
|
|
4
|
+
PREMIUM_TOKENS = "premium_tokens",
|
|
5
|
+
EVENT_TOKENS = "event_tokens"
|
|
6
|
+
}
|
|
1
7
|
export interface ICurrency {
|
|
2
8
|
id: number;
|
|
3
9
|
code: string;
|
|
@@ -46,6 +52,13 @@ export declare enum TransactionStatus {
|
|
|
46
52
|
DISPUTED = "disputed",
|
|
47
53
|
REFUNDED = "refunded"
|
|
48
54
|
}
|
|
55
|
+
export declare enum HoldStatus {
|
|
56
|
+
ACTIVE = "active",
|
|
57
|
+
RELEASED = "released",
|
|
58
|
+
REFUNDED = "refunded",
|
|
59
|
+
DISPUTED = "disputed",
|
|
60
|
+
EXPIRED = "expired"
|
|
61
|
+
}
|
|
49
62
|
export interface ITransaction {
|
|
50
63
|
id: number;
|
|
51
64
|
fromWalletId?: number;
|
|
@@ -68,6 +81,13 @@ export declare enum LoyaltyTierCode {
|
|
|
68
81
|
PLATINUM = "platinum",
|
|
69
82
|
DIAMOND = "diamond"
|
|
70
83
|
}
|
|
84
|
+
export declare enum LoyaltyTransactionType {
|
|
85
|
+
EARNED = "earned",
|
|
86
|
+
SPENT = "spent",
|
|
87
|
+
EXPIRED = "expired",
|
|
88
|
+
BONUS = "bonus",
|
|
89
|
+
ADJUSTED = "adjusted"
|
|
90
|
+
}
|
|
71
91
|
export interface ILoyaltyTier {
|
|
72
92
|
id: number;
|
|
73
93
|
code: LoyaltyTierCode;
|
|
@@ -135,6 +155,45 @@ export declare enum PromotionType {
|
|
|
135
155
|
LOYALTY_TIER_BONUS = "loyalty_tier_bonus",
|
|
136
156
|
BUNDLE_DISCOUNT = "bundle_discount"
|
|
137
157
|
}
|
|
158
|
+
export declare enum PromotionStatus {
|
|
159
|
+
DRAFT = "draft",
|
|
160
|
+
ACTIVE = "active",
|
|
161
|
+
PAUSED = "paused",
|
|
162
|
+
EXPIRED = "expired",
|
|
163
|
+
ENDED = "ended"
|
|
164
|
+
}
|
|
165
|
+
export declare enum PromoCodeStatus {
|
|
166
|
+
ACTIVE = "active",
|
|
167
|
+
INACTIVE = "inactive",
|
|
168
|
+
EXPIRED = "expired",
|
|
169
|
+
DEPLETED = "depleted"
|
|
170
|
+
}
|
|
171
|
+
export declare enum DiscountRuleCondition {
|
|
172
|
+
MIN_PURCHASE = "min_purchase",
|
|
173
|
+
USER_TIER = "user_tier",
|
|
174
|
+
FIRST_PURCHASE = "first_purchase",
|
|
175
|
+
TIME_RANGE = "time_range",
|
|
176
|
+
SPECIFIC_CURRENCY = "specific_currency"
|
|
177
|
+
}
|
|
178
|
+
export declare enum RewardType {
|
|
179
|
+
CURRENCY = "currency",
|
|
180
|
+
DISCOUNT_COUPON = "discount_coupon",
|
|
181
|
+
VIP_ACCESS = "vip_access",
|
|
182
|
+
COSMETIC = "cosmetic",
|
|
183
|
+
SPECIAL_EVENT = "special_event",
|
|
184
|
+
BONUS_MULTIPLIER = "bonus_multiplier"
|
|
185
|
+
}
|
|
186
|
+
export declare enum UserRewardStatus {
|
|
187
|
+
ACTIVE = "active",
|
|
188
|
+
USED = "used",
|
|
189
|
+
EXPIRED = "expired"
|
|
190
|
+
}
|
|
191
|
+
export declare enum UserMissionStatus {
|
|
192
|
+
IN_PROGRESS = "in_progress",
|
|
193
|
+
COMPLETED = "completed",
|
|
194
|
+
CLAIMED = "claimed",
|
|
195
|
+
EXPIRED = "expired"
|
|
196
|
+
}
|
|
138
197
|
export interface IPromotion {
|
|
139
198
|
id: number;
|
|
140
199
|
name: string;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Wallet & Loyalty Interfaces
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.PromotionType = exports.MissionRequirementType = exports.MissionType = exports.LoyaltyTierCode = exports.TransactionStatus = exports.TransactionType = void 0;
|
|
4
|
+
exports.UserMissionStatus = exports.UserRewardStatus = exports.RewardType = exports.DiscountRuleCondition = exports.PromoCodeStatus = exports.PromotionStatus = exports.PromotionType = exports.MissionRequirementType = exports.MissionType = exports.LoyaltyTransactionType = exports.LoyaltyTierCode = exports.HoldStatus = exports.TransactionStatus = exports.TransactionType = exports.CurrencyType = void 0;
|
|
5
|
+
// Currency Enums
|
|
6
|
+
var CurrencyType;
|
|
7
|
+
(function (CurrencyType) {
|
|
8
|
+
CurrencyType["COINS"] = "coins";
|
|
9
|
+
CurrencyType["GEMS"] = "gems";
|
|
10
|
+
CurrencyType["PREMIUM_TOKENS"] = "premium_tokens";
|
|
11
|
+
CurrencyType["EVENT_TOKENS"] = "event_tokens";
|
|
12
|
+
})(CurrencyType = exports.CurrencyType || (exports.CurrencyType = {}));
|
|
5
13
|
var TransactionType;
|
|
6
14
|
(function (TransactionType) {
|
|
7
15
|
TransactionType["DEPOSIT"] = "deposit";
|
|
@@ -27,6 +35,15 @@ var TransactionStatus;
|
|
|
27
35
|
TransactionStatus["DISPUTED"] = "disputed";
|
|
28
36
|
TransactionStatus["REFUNDED"] = "refunded";
|
|
29
37
|
})(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
|
|
38
|
+
// Transaction Hold Enums
|
|
39
|
+
var HoldStatus;
|
|
40
|
+
(function (HoldStatus) {
|
|
41
|
+
HoldStatus["ACTIVE"] = "active";
|
|
42
|
+
HoldStatus["RELEASED"] = "released";
|
|
43
|
+
HoldStatus["REFUNDED"] = "refunded";
|
|
44
|
+
HoldStatus["DISPUTED"] = "disputed";
|
|
45
|
+
HoldStatus["EXPIRED"] = "expired";
|
|
46
|
+
})(HoldStatus = exports.HoldStatus || (exports.HoldStatus = {}));
|
|
30
47
|
var LoyaltyTierCode;
|
|
31
48
|
(function (LoyaltyTierCode) {
|
|
32
49
|
LoyaltyTierCode["BRONZE"] = "bronze";
|
|
@@ -35,6 +52,15 @@ var LoyaltyTierCode;
|
|
|
35
52
|
LoyaltyTierCode["PLATINUM"] = "platinum";
|
|
36
53
|
LoyaltyTierCode["DIAMOND"] = "diamond";
|
|
37
54
|
})(LoyaltyTierCode = exports.LoyaltyTierCode || (exports.LoyaltyTierCode = {}));
|
|
55
|
+
// Loyalty Transaction Enums
|
|
56
|
+
var LoyaltyTransactionType;
|
|
57
|
+
(function (LoyaltyTransactionType) {
|
|
58
|
+
LoyaltyTransactionType["EARNED"] = "earned";
|
|
59
|
+
LoyaltyTransactionType["SPENT"] = "spent";
|
|
60
|
+
LoyaltyTransactionType["EXPIRED"] = "expired";
|
|
61
|
+
LoyaltyTransactionType["BONUS"] = "bonus";
|
|
62
|
+
LoyaltyTransactionType["ADJUSTED"] = "adjusted";
|
|
63
|
+
})(LoyaltyTransactionType = exports.LoyaltyTransactionType || (exports.LoyaltyTransactionType = {}));
|
|
38
64
|
var MissionType;
|
|
39
65
|
(function (MissionType) {
|
|
40
66
|
MissionType["DAILY"] = "daily";
|
|
@@ -63,3 +89,52 @@ var PromotionType;
|
|
|
63
89
|
PromotionType["LOYALTY_TIER_BONUS"] = "loyalty_tier_bonus";
|
|
64
90
|
PromotionType["BUNDLE_DISCOUNT"] = "bundle_discount";
|
|
65
91
|
})(PromotionType = exports.PromotionType || (exports.PromotionType = {}));
|
|
92
|
+
var PromotionStatus;
|
|
93
|
+
(function (PromotionStatus) {
|
|
94
|
+
PromotionStatus["DRAFT"] = "draft";
|
|
95
|
+
PromotionStatus["ACTIVE"] = "active";
|
|
96
|
+
PromotionStatus["PAUSED"] = "paused";
|
|
97
|
+
PromotionStatus["EXPIRED"] = "expired";
|
|
98
|
+
PromotionStatus["ENDED"] = "ended";
|
|
99
|
+
})(PromotionStatus = exports.PromotionStatus || (exports.PromotionStatus = {}));
|
|
100
|
+
// PromoCode Enums
|
|
101
|
+
var PromoCodeStatus;
|
|
102
|
+
(function (PromoCodeStatus) {
|
|
103
|
+
PromoCodeStatus["ACTIVE"] = "active";
|
|
104
|
+
PromoCodeStatus["INACTIVE"] = "inactive";
|
|
105
|
+
PromoCodeStatus["EXPIRED"] = "expired";
|
|
106
|
+
PromoCodeStatus["DEPLETED"] = "depleted";
|
|
107
|
+
})(PromoCodeStatus = exports.PromoCodeStatus || (exports.PromoCodeStatus = {}));
|
|
108
|
+
// Discount Rule Enums
|
|
109
|
+
var DiscountRuleCondition;
|
|
110
|
+
(function (DiscountRuleCondition) {
|
|
111
|
+
DiscountRuleCondition["MIN_PURCHASE"] = "min_purchase";
|
|
112
|
+
DiscountRuleCondition["USER_TIER"] = "user_tier";
|
|
113
|
+
DiscountRuleCondition["FIRST_PURCHASE"] = "first_purchase";
|
|
114
|
+
DiscountRuleCondition["TIME_RANGE"] = "time_range";
|
|
115
|
+
DiscountRuleCondition["SPECIFIC_CURRENCY"] = "specific_currency";
|
|
116
|
+
})(DiscountRuleCondition = exports.DiscountRuleCondition || (exports.DiscountRuleCondition = {}));
|
|
117
|
+
// Reward Enums
|
|
118
|
+
var RewardType;
|
|
119
|
+
(function (RewardType) {
|
|
120
|
+
RewardType["CURRENCY"] = "currency";
|
|
121
|
+
RewardType["DISCOUNT_COUPON"] = "discount_coupon";
|
|
122
|
+
RewardType["VIP_ACCESS"] = "vip_access";
|
|
123
|
+
RewardType["COSMETIC"] = "cosmetic";
|
|
124
|
+
RewardType["SPECIAL_EVENT"] = "special_event";
|
|
125
|
+
RewardType["BONUS_MULTIPLIER"] = "bonus_multiplier";
|
|
126
|
+
})(RewardType = exports.RewardType || (exports.RewardType = {}));
|
|
127
|
+
var UserRewardStatus;
|
|
128
|
+
(function (UserRewardStatus) {
|
|
129
|
+
UserRewardStatus["ACTIVE"] = "active";
|
|
130
|
+
UserRewardStatus["USED"] = "used";
|
|
131
|
+
UserRewardStatus["EXPIRED"] = "expired";
|
|
132
|
+
})(UserRewardStatus = exports.UserRewardStatus || (exports.UserRewardStatus = {}));
|
|
133
|
+
// User Mission Enums
|
|
134
|
+
var UserMissionStatus;
|
|
135
|
+
(function (UserMissionStatus) {
|
|
136
|
+
UserMissionStatus["IN_PROGRESS"] = "in_progress";
|
|
137
|
+
UserMissionStatus["COMPLETED"] = "completed";
|
|
138
|
+
UserMissionStatus["CLAIMED"] = "claimed";
|
|
139
|
+
UserMissionStatus["EXPIRED"] = "expired";
|
|
140
|
+
})(UserMissionStatus = exports.UserMissionStatus || (exports.UserMissionStatus = {}));
|