@everymatrix/player-rglimits 1.28.3 → 1.28.5

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.
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 386 193" fill="none">
2
+ <path d="M4 193a189 189 0 0 1 379 0" stroke="url(#a)" stroke-width="6" stroke-dasharray="2 2"/>
3
+ <path d="M49 193a144 144 0 1 1 288 0" stroke="#C4C4C4" stroke-width="30" stroke-dasharray="2 2"/>
4
+ <defs><linearGradient id="a" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%"/><stop offset="100%" stop-opacity=".2"/></linearGradient></defs>
5
+ </svg>
@@ -1,7 +1,9 @@
1
1
  export const TRANSLATIONS = {
2
2
  "en": {
3
- "noLimitToDisplay": "The user has not set a deposit limit...",
3
+ "noLimitToDisplay": "The user has not set a limit...",
4
4
  "depositLimitHeader": "Deposit limit",
5
+ "lossLimitHeader": "Loss limit",
6
+ "wageringLimitHeader": "Wagering limit",
5
7
  "spentAmount": "Spent amount",
6
8
  "remainingAmount": "Remaining amount",
7
9
  "limitPeriod": "Limit period",
@@ -12,7 +14,10 @@ export const TRANSLATIONS = {
12
14
  "limitRemoved": "This limit has been removed and is valid until",
13
15
  "limitUpdated": "This limit will be applied beginning with",
14
16
  "changeLimitLabel": "Change limit",
15
- "futureAmount": "Future amount"
17
+ "futureAmount": "Future amount",
18
+ "limitTypeLabel": "Limit type",
19
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
20
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
16
21
  },
17
22
  "zh-hk": {
18
23
  "noLimitToDisplay": "使用者尚未設定儲值限額...",
@@ -27,7 +32,10 @@ export const TRANSLATIONS = {
27
32
  "limitRemoved": "This limit has been removed and is valid until",
28
33
  "limitUpdated": "This limit will be applied beginning with",
29
34
  "changeLimitLabel": "Change limit",
30
- "futureAmount": "Future amount"
35
+ "futureAmount": "Future amount",
36
+ "limitTypeLabel": "Limit type",
37
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
38
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
31
39
  },
32
40
  "de": {
33
41
  "noLimitToDisplay": "Der Benutzer hat kein Einzahlungslimit festgelegt...",
@@ -42,7 +50,10 @@ export const TRANSLATIONS = {
42
50
  "limitRemoved": "This limit has been removed and is valid until",
43
51
  "limitUpdated": "This limit will be applied beginning with",
44
52
  "changeLimitLabel": "Change limit",
45
- "futureAmount": "Future amount"
53
+ "futureAmount": "Future amount",
54
+ "limitTypeLabel": "Limit type",
55
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
56
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
46
57
  },
47
58
  "it": {
48
59
  "noLimitToDisplay": "L'utente non ha impostato un limite di deposito...",
@@ -57,7 +68,10 @@ export const TRANSLATIONS = {
57
68
  "limitRemoved": "This limit has been removed and is valid until",
58
69
  "limitUpdated": "This limit will be applied beginning with",
59
70
  "changeLimitLabel": "Change limit",
60
- "futureAmount": "Future amount"
71
+ "futureAmount": "Future amount",
72
+ "limitTypeLabel": "Limit type",
73
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
74
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
61
75
  },
62
76
  "fr": {
63
77
  "noLimitToDisplay": "L'utilisateur n'a pas fixé de limite de dépôt...",
@@ -72,11 +86,16 @@ export const TRANSLATIONS = {
72
86
  "limitRemoved": "This limit has been removed and is valid until",
73
87
  "limitUpdated": "This limit will be applied beginning with",
74
88
  "changeLimitLabel": "Change limit",
75
- "futureAmount": "Future amount"
89
+ "futureAmount": "Future amount",
90
+ "limitTypeLabel": "Limit type",
91
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
92
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
76
93
  },
77
94
  "es": {
78
- "noLimitToDisplay": "The user has not set a deposit limit...",
95
+ "noLimitToDisplay": "The user has not set a limit...",
79
96
  "depositLimitHeader": "Deposit limit",
97
+ "lossLimitHeader": "Loss limit",
98
+ "wageringLimitHeader": "Wagering limit",
80
99
  "spentAmount": "Spent amount",
81
100
  "remainingAmount": "Remaining amount",
82
101
  "limitPeriod": "Limit period",
@@ -87,11 +106,16 @@ export const TRANSLATIONS = {
87
106
  "limitRemoved": "This limit has been removed and is valid until",
88
107
  "limitUpdated": "This limit will be applied beginning with",
89
108
  "changeLimitLabel": "Change limit",
90
- "futureAmount": "Future amount"
109
+ "futureAmount": "Future amount",
110
+ "limitTypeLabel": "Limit type",
111
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
112
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
91
113
  },
92
114
  "el": {
93
- "noLimitToDisplay": "The user has not set a deposit limit...",
115
+ "noLimitToDisplay": "The user has not set a limit...",
94
116
  "depositLimitHeader": "Deposit limit",
117
+ "lossLimitHeader": "Loss limit",
118
+ "wageringLimitHeader": "Wagering limit",
95
119
  "spentAmount": "Spent amount",
96
120
  "remainingAmount": "Remaining amount",
97
121
  "limitPeriod": "Limit period",
@@ -102,11 +126,16 @@ export const TRANSLATIONS = {
102
126
  "limitRemoved": "This limit has been removed and is valid until",
103
127
  "limitUpdated": "This limit will be applied beginning with",
104
128
  "changeLimitLabel": "Change limit",
105
- "futureAmount": "Future amount"
129
+ "futureAmount": "Future amount",
130
+ "limitTypeLabel": "Limit type",
131
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
132
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
106
133
  },
107
134
  "tr": {
108
- "noLimitToDisplay": "The user has not set a deposit limit...",
135
+ "noLimitToDisplay": "The user has not set a limit...",
109
136
  "depositLimitHeader": "Deposit limit",
137
+ "lossLimitHeader": "Loss limit",
138
+ "wageringLimitHeader": "Wagering limit",
110
139
  "spentAmount": "Spent amount",
111
140
  "remainingAmount": "Remaining amount",
112
141
  "limitPeriod": "Limit period",
@@ -117,11 +146,16 @@ export const TRANSLATIONS = {
117
146
  "limitRemoved": "This limit has been removed and is valid until",
118
147
  "limitUpdated": "This limit will be applied beginning with",
119
148
  "changeLimitLabel": "Change limit",
120
- "futureAmount": "Future amount"
149
+ "futureAmount": "Future amount",
150
+ "limitTypeLabel": "Limit type",
151
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
152
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
121
153
  },
122
154
  "ru": {
123
- "noLimitToDisplay": "The user has not set a deposit limit...",
155
+ "noLimitToDisplay": "The user has not set a limit...",
124
156
  "depositLimitHeader": "Deposit limit",
157
+ "lossLimitHeader": "Loss limit",
158
+ "wageringLimitHeader": "Wagering limit",
125
159
  "spentAmount": "Spent amount",
126
160
  "remainingAmount": "Remaining amount",
127
161
  "limitPeriod": "Limit period",
@@ -132,11 +166,16 @@ export const TRANSLATIONS = {
132
166
  "limitRemoved": "This limit has been removed and is valid until",
133
167
  "limitUpdated": "This limit will be applied beginning with",
134
168
  "changeLimitLabel": "Change limit",
135
- "futureAmount": "Future amount"
169
+ "futureAmount": "Future amount",
170
+ "limitTypeLabel": "Limit type",
171
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
172
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
136
173
  },
137
174
  "ro": {
138
- "noLimitToDisplay": "The user has not set a deposit limit...",
175
+ "noLimitToDisplay": "The user has not set a limit...",
139
176
  "depositLimitHeader": "Deposit limit",
177
+ "lossLimitHeader": "Loss limit",
178
+ "wageringLimitHeader": "Wagering limit",
140
179
  "spentAmount": "Spent amount",
141
180
  "remainingAmount": "Remaining amount",
142
181
  "limitPeriod": "Limit period",
@@ -147,11 +186,16 @@ export const TRANSLATIONS = {
147
186
  "limitRemoved": "This limit has been removed and is valid until",
148
187
  "limitUpdated": "This limit will be applied beginning with",
149
188
  "changeLimitLabel": "Change limit",
150
- "futureAmount": "Future amount"
189
+ "futureAmount": "Future amount",
190
+ "limitTypeLabel": "Limit type",
191
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
192
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
151
193
  },
152
194
  "hr": {
153
- "noLimitToDisplay": "The user has not set a deposit limit...",
195
+ "noLimitToDisplay": "The user has not set a limit...",
154
196
  "depositLimitHeader": "Deposit limit",
197
+ "lossLimitHeader": "Loss limit",
198
+ "wageringLimitHeader": "Wagering limit",
155
199
  "spentAmount": "Spent amount",
156
200
  "remainingAmount": "Remaining amount",
157
201
  "limitPeriod": "Limit period",
@@ -162,11 +206,16 @@ export const TRANSLATIONS = {
162
206
  "limitRemoved": "This limit has been removed and is valid until",
163
207
  "limitUpdated": "This limit will be applied beginning with",
164
208
  "changeLimitLabel": "Change limit",
165
- "futureAmount": "Future amount"
209
+ "futureAmount": "Future amount",
210
+ "limitTypeLabel": "Limit type",
211
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
212
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
166
213
  },
167
214
  "hu": {
168
- "noLimitToDisplay": "The user has not set a deposit limit...",
215
+ "noLimitToDisplay": "The user has not set a limit...",
169
216
  "depositLimitHeader": "Deposit limit",
217
+ "lossLimitHeader": "Loss limit",
218
+ "wageringLimitHeader": "Wagering limit",
170
219
  "spentAmount": "Spent amount",
171
220
  "remainingAmount": "Remaining amount",
172
221
  "limitPeriod": "Limit period",
@@ -177,11 +226,16 @@ export const TRANSLATIONS = {
177
226
  "limitRemoved": "This limit has been removed and is valid until",
178
227
  "limitUpdated": "This limit will be applied beginning with",
179
228
  "changeLimitLabel": "Change limit",
180
- "futureAmount": "Future amount"
229
+ "futureAmount": "Future amount",
230
+ "limitTypeLabel": "Limit type",
231
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
232
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
181
233
  },
182
234
  "pl": {
183
- "noLimitToDisplay": "The user has not set a deposit limit...",
235
+ "noLimitToDisplay": "The user has not set a limit...",
184
236
  "depositLimitHeader": "Deposit limit",
237
+ "lossLimitHeader": "Loss limit",
238
+ "wageringLimitHeader": "Wagering limit",
185
239
  "spentAmount": "Spent amount",
186
240
  "remainingAmount": "Remaining amount",
187
241
  "limitPeriod": "Limit period",
@@ -192,11 +246,16 @@ export const TRANSLATIONS = {
192
246
  "limitRemoved": "This limit has been removed and is valid until",
193
247
  "limitUpdated": "This limit will be applied beginning with",
194
248
  "changeLimitLabel": "Change limit",
195
- "futureAmount": "Future amount"
249
+ "futureAmount": "Future amount",
250
+ "limitTypeLabel": "Limit type",
251
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
252
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
196
253
  },
197
254
  "pt": {
198
- "noLimitToDisplay": "The user has not set a deposit limit...",
255
+ "noLimitToDisplay": "The user has not set a limit...",
199
256
  "depositLimitHeader": "Deposit limit",
257
+ "lossLimitHeader": "Loss limit",
258
+ "wageringLimitHeader": "Wagering limit",
200
259
  "spentAmount": "Spent amount",
201
260
  "remainingAmount": "Remaining amount",
202
261
  "limitPeriod": "Limit period",
@@ -207,11 +266,16 @@ export const TRANSLATIONS = {
207
266
  "limitRemoved": "This limit has been removed and is valid until",
208
267
  "limitUpdated": "This limit will be applied beginning with",
209
268
  "changeLimitLabel": "Change limit",
210
- "futureAmount": "Future amount"
269
+ "futureAmount": "Future amount",
270
+ "limitTypeLabel": "Limit type",
271
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
272
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
211
273
  },
212
274
  "sl": {
213
- "noLimitToDisplay": "The user has not set a deposit limit...",
275
+ "noLimitToDisplay": "The user has not set a limit...",
214
276
  "depositLimitHeader": "Deposit limit",
277
+ "lossLimitHeader": "Loss limit",
278
+ "wageringLimitHeader": "Wagering limit",
215
279
  "spentAmount": "Spent amount",
216
280
  "remainingAmount": "Remaining amount",
217
281
  "limitPeriod": "Limit period",
@@ -222,11 +286,16 @@ export const TRANSLATIONS = {
222
286
  "limitRemoved": "This limit has been removed and is valid until",
223
287
  "limitUpdated": "This limit will be applied beginning with",
224
288
  "changeLimitLabel": "Change limit",
225
- "futureAmount": "Future amount"
289
+ "futureAmount": "Future amount",
290
+ "limitTypeLabel": "Limit type",
291
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
292
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
226
293
  },
227
294
  "sr": {
228
- "noLimitToDisplay": "The user has not set a deposit limit...",
295
+ "noLimitToDisplay": "The user has not set a limit...",
229
296
  "depositLimitHeader": "Deposit limit",
297
+ "lossLimitHeader": "Loss limit",
298
+ "wageringLimitHeader": "Wagering limit",
230
299
  "spentAmount": "Spent amount",
231
300
  "remainingAmount": "Remaining amount",
232
301
  "limitPeriod": "Limit period",
@@ -237,6 +306,9 @@ export const TRANSLATIONS = {
237
306
  "limitRemoved": "This limit has been removed and is valid until",
238
307
  "limitUpdated": "This limit will be applied beginning with",
239
308
  "changeLimitLabel": "Change limit",
240
- "futureAmount": "Future amount"
309
+ "futureAmount": "Future amount",
310
+ "limitTypeLabel": "Limit type",
311
+ "fetchLimitDefError": "Failed to fetch limit definitions.",
312
+ "fetchLimitBalanceError": "Failed to fetch limit balance."
241
313
  }
242
314
  }
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "extends": "@tsconfig/svelte/tsconfig.json",
3
3
 
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
4
+ "include": ["src/**/*", "./types"],
5
+ "exclude": ["node_modules/*", "__sapper__/*", "public/*"],
6
6
  }
@@ -0,0 +1 @@
1
+ declare module '@everymatrix/general-animation-loading';
package/types/types.ts ADDED
@@ -0,0 +1,57 @@
1
+ export type MonetaryLimitType = {
2
+ id: string;
3
+ playerId: string;
4
+ domainId: string;
5
+ amount: number;
6
+ currency: string;
7
+ period: string;
8
+ type: string;
9
+ products: string[];
10
+ walletTypes: string[];
11
+ schedules: ScheduleType[];
12
+ };
13
+
14
+ export type LimitDefinition = {
15
+ id: string;
16
+ limitDefinitionId: string;
17
+ limitType: string;
18
+ limitPeriod: string;
19
+ limitCurrency: string;
20
+ limitAmount: number;
21
+ limitProducts: string[];
22
+ limitWalletTypes: string[];
23
+ from: string;
24
+ to: string;
25
+ spentBalance: {
26
+ amount: number;
27
+ currency: string;
28
+ };
29
+ };
30
+
31
+ export type ScheduleType = {
32
+ id: string;
33
+ ins: string;
34
+ playerLimitId: string;
35
+ applyAt: string;
36
+ updateStatus: string;
37
+ updateAmount: number;
38
+ }
39
+
40
+ export type FormattedSchedule = {
41
+ updateAmount: string | number;
42
+ expires: string;
43
+ expiresString: string;
44
+ id: string;
45
+ isRemoved: boolean;
46
+ isUpdated: boolean;
47
+ };
48
+
49
+ export type DisplayedLimit = {
50
+ totalAmount: number;
51
+ spentAmount: string;
52
+ limitCurrency: string;
53
+ remainingAmount: string;
54
+ limitPeriod: string;
55
+ limitProducts: string;
56
+ formattedSchedule?: FormattedSchedule;
57
+ };