@opexa/portal-components 0.0.450 → 0.0.452
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/client/hooks/useCreateGCashStandardCashInWithdrawal.d.ts +2 -2
- package/dist/client/hooks/useCreateGCashStandardCashInWithdrawal.js +2 -2
- package/dist/components/AccountInfo/GoogleDisconnect.d.ts +7 -0
- package/dist/components/AccountInfo/GoogleDisconnect.js +11 -0
- package/dist/components/DepositWithdrawal/Withdrawal/GCashWithdrawal/GCashWithdrawal.js +91 -83
- package/dist/components/DigitainLauncher/Loading.d.ts +1 -0
- package/dist/components/DigitainLauncher/Loading.js +5 -0
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -0
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -0
- package/dist/components/KYC/BasicInformation.d.ts +1 -0
- package/dist/components/KYC/BasicInformation.js +101 -0
- package/dist/components/KYC/IdentityVerification.d.ts +1 -0
- package/dist/components/KYC/IdentityVerification.js +120 -0
- package/dist/components/KYC/Indicator.d.ts +1 -0
- package/dist/components/KYC/Indicator.js +8 -0
- package/dist/components/KYC/KYC.lazy.d.ts +6 -0
- package/dist/components/KYC/KYC.lazy.js +45 -0
- package/dist/components/KYC/KYCContext.d.ts +6 -0
- package/dist/components/KYC/KYCContext.js +2 -0
- package/dist/components/KYC/PersonalInformation.d.ts +1 -0
- package/dist/components/KYC/PersonalInformation.js +122 -0
- package/dist/components/KYC/useKYC.d.ts +25 -0
- package/dist/components/KYC/useKYC.js +38 -0
- package/dist/components/PortalProvider/CXDTokenObserver.js +11 -11
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.d.ts +1 -0
- package/dist/components/PortalProvider/LinkGoogleAccountObserver.js +29 -0
- package/dist/components/Quests/JourneyQuest.js +9 -8
- package/dist/components/Quests/MultiWageringQuest.d.ts +1 -0
- package/dist/components/Quests/MultiWageringQuest.js +91 -0
- package/dist/components/Quests/Quests.client.js +7 -1
- package/dist/components/SessionWatcher/SessionWatcher.d.ts +1 -0
- package/dist/components/SessionWatcher/SessionWatcher.js +20 -0
- package/dist/components/SessionWatcher/index.d.ts +1 -0
- package/dist/components/SessionWatcher/index.js +1 -0
- package/dist/icons/LinkBrokenIcon.d.ts +2 -0
- package/dist/icons/LinkBrokenIcon.js +4 -0
- package/dist/images/responsible-gaming-yellow.png +0 -0
- package/dist/services/queries.d.ts +4 -3
- package/dist/services/queries.js +52 -1
- package/dist/services/wallet.d.ts +64 -51
- package/dist/services/wallet.js +72 -56
- package/dist/styles/theme.css +3 -0
- package/dist/types/index.d.ts +9 -1
- package/dist/ui/Badge/Badge.d.ts +12 -12
- package/dist/ui/Badge/badge.anatomy.d.ts +1 -1
- package/dist/ui/Badge/badge.recipe.d.ts +3 -3
- package/dist/ui/Carousel/Carousel.d.ts +99 -99
- package/dist/ui/Carousel/carousel.recipe.d.ts +11 -11
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/DatePicker/DatePicker.d.ts +72 -72
- package/dist/ui/DatePicker/datePicker.recipe.d.ts +3 -3
- package/dist/ui/Menu/Menu.d.ts +90 -90
- package/dist/ui/Menu/menu.recipe.d.ts +5 -5
- package/dist/ui/Popover/Popover.d.ts +55 -55
- package/dist/ui/Popover/popover.recipe.d.ts +5 -5
- package/dist/ui/QrCode/QrCode.d.ts +25 -25
- package/dist/ui/QrCode/qrCode.recipe.d.ts +5 -5
- package/dist/ui/SegmentGroup/SegmentGroup.d.ts +18 -18
- package/dist/ui/SegmentGroup/segmentGroup.recipe.d.ts +3 -3
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Simplify, SimplifyDeep } from
|
|
2
|
-
import type { Bonus, Cashback, CashbackBonus, DateFilterField, Deposit, EnumFilterField, FavoriteGame, GameSession, InstapayBank, MayaSession, ObjectIdFilterField, PointsWallet, Promo, PromoType, Wallet } from
|
|
3
|
-
import { type GraphQLRequestOptions } from
|
|
1
|
+
import type { Simplify, SimplifyDeep } from "type-fest";
|
|
2
|
+
import type { Bonus, Cashback, CashbackBonus, DateFilterField, Deposit, EnumFilterField, FavoriteGame, GameSession, InstapayBank, MayaSession, ObjectIdFilterField, PointsWallet, Promo, PromoType, Wallet } from "../types";
|
|
3
|
+
import { type GraphQLRequestOptions } from "./graphqlRequest";
|
|
4
4
|
export interface PromosQuery {
|
|
5
5
|
promos: Promo[];
|
|
6
6
|
}
|
|
@@ -23,7 +23,7 @@ export interface CashbackQueryVariables {
|
|
|
23
23
|
id: string;
|
|
24
24
|
}
|
|
25
25
|
export declare const getCashback: (id: string, options?: GraphQLRequestOptions) => Promise<Cashback | null>;
|
|
26
|
-
export type AvailablePromosInput = SimplifyDeep<AvailablePromosQueryVariables[
|
|
26
|
+
export type AvailablePromosInput = SimplifyDeep<AvailablePromosQueryVariables["filter"]>;
|
|
27
27
|
export interface AvailablePromosQuery {
|
|
28
28
|
availablePromos: Promo[];
|
|
29
29
|
}
|
|
@@ -44,7 +44,7 @@ export interface CashbackBonusIdsQuery {
|
|
|
44
44
|
}
|
|
45
45
|
export declare const getCashbackBonusesCount: (options?: GraphQLRequestOptions) => Promise<number>;
|
|
46
46
|
export type ClaimCashbackBonusError = {
|
|
47
|
-
name:
|
|
47
|
+
name: "CashbackBonusDoesNotExistError";
|
|
48
48
|
message: string;
|
|
49
49
|
};
|
|
50
50
|
export interface ClaimCashbackBonusMutation {
|
|
@@ -92,34 +92,34 @@ export interface DepositQueryVariables {
|
|
|
92
92
|
}
|
|
93
93
|
export declare const getDeposit: (id: string, options?: GraphQLRequestOptions) => Promise<Deposit | null>;
|
|
94
94
|
export type CreateDepositError = {
|
|
95
|
-
name:
|
|
95
|
+
name: "DepositPromoMaximumAmountExceededError";
|
|
96
96
|
message: string;
|
|
97
97
|
} | {
|
|
98
|
-
name:
|
|
98
|
+
name: "DepositPromoMinimumAmountNotMetError";
|
|
99
99
|
message: string;
|
|
100
100
|
} | {
|
|
101
|
-
name:
|
|
101
|
+
name: "MaximumDepositAmountExceededError";
|
|
102
102
|
message: string;
|
|
103
103
|
} | {
|
|
104
|
-
name:
|
|
104
|
+
name: "MinimumDepositAmountNotMetError";
|
|
105
105
|
message: string;
|
|
106
106
|
} | {
|
|
107
|
-
name:
|
|
107
|
+
name: "MinimumFirstDepositAmountNotMetError";
|
|
108
108
|
message: string;
|
|
109
109
|
} | {
|
|
110
|
-
name:
|
|
110
|
+
name: "PromoNotEnabledError";
|
|
111
111
|
message: string;
|
|
112
112
|
} | {
|
|
113
|
-
name:
|
|
113
|
+
name: "WalletDoesNotExistError";
|
|
114
114
|
message: string;
|
|
115
115
|
} | {
|
|
116
|
-
name:
|
|
116
|
+
name: "ReCAPTCHAVerificationFailedError";
|
|
117
117
|
message: string;
|
|
118
118
|
} | {
|
|
119
|
-
name:
|
|
119
|
+
name: "UPIReferenceNotAvailableError";
|
|
120
120
|
message: string;
|
|
121
121
|
} | {
|
|
122
|
-
name:
|
|
122
|
+
name: "GCashDirectApiRequestError";
|
|
123
123
|
message: string;
|
|
124
124
|
};
|
|
125
125
|
export interface CreateGCashDepositMutation {
|
|
@@ -132,7 +132,7 @@ export interface CreateGCashDepositMutationVariables {
|
|
|
132
132
|
promo?: string;
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
export type CreateGCashDepositInput = Simplify<CreateGCashDepositMutationVariables[
|
|
135
|
+
export type CreateGCashDepositInput = Simplify<CreateGCashDepositMutationVariables["input"]>;
|
|
136
136
|
export declare const createGCashDeposit: (input: CreateGCashDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
137
137
|
export interface CreateLibanganDepositMutationVariables {
|
|
138
138
|
input: {
|
|
@@ -142,7 +142,7 @@ export interface CreateLibanganDepositMutationVariables {
|
|
|
142
142
|
redirectUrl?: string;
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
export type CreateLibanganDepositInput = Simplify<CreateLibanganDepositMutationVariables[
|
|
145
|
+
export type CreateLibanganDepositInput = Simplify<CreateLibanganDepositMutationVariables["input"]>;
|
|
146
146
|
export interface CreateLibanganDepositMutation {
|
|
147
147
|
createLibanganPayInDeposit?: null | CreateDepositError;
|
|
148
148
|
}
|
|
@@ -155,7 +155,7 @@ export interface CreateLibanganDepositMutationVariables {
|
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
157
|
export declare const createLibanganDeposit: (input: CreateLibanganDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
158
|
-
export type CreatePisoPayDepositInput = Simplify<CreatePisoPayDepositMutationVariables[
|
|
158
|
+
export type CreatePisoPayDepositInput = Simplify<CreatePisoPayDepositMutationVariables["input"]>;
|
|
159
159
|
export interface CreatePisoPayDepositMutation {
|
|
160
160
|
createPisoPayDeposit?: null | CreateDepositError;
|
|
161
161
|
}
|
|
@@ -178,7 +178,7 @@ export interface CreateGCashDirectWebpayDepositMutationVariables {
|
|
|
178
178
|
promo?: string;
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
export type CreateGCashDirectWebpayDepositInput = Simplify<CreateGCashDirectWebpayDepositMutationVariables[
|
|
181
|
+
export type CreateGCashDirectWebpayDepositInput = Simplify<CreateGCashDirectWebpayDepositMutationVariables["input"]>;
|
|
182
182
|
export declare const createGCashDirectWebpayDeposit: (input: CreateGCashDirectWebpayDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
183
183
|
export interface CreateMayaDepositMutation {
|
|
184
184
|
createMayaDeposit?: null | CreateDepositError;
|
|
@@ -190,7 +190,7 @@ export interface CreateMayaDepositMutationVariables {
|
|
|
190
190
|
promo?: string;
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
export type CreateMayaDepositInput = Simplify<CreateMayaDepositMutationVariables[
|
|
193
|
+
export type CreateMayaDepositInput = Simplify<CreateMayaDepositMutationVariables["input"]>;
|
|
194
194
|
export declare const createMayaDeposit: (input: CreateMayaDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
195
195
|
export interface CreateAIOQRPHDepositMutation {
|
|
196
196
|
createAIOQRPHDeposit?: null | CreateDepositError;
|
|
@@ -202,7 +202,7 @@ export interface CreateAIOQRPHDepositMutationVariables {
|
|
|
202
202
|
promo?: string;
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
export type CreateAIOQRPHDepositInput = Simplify<CreateMayaAppDepositMutationVariables[
|
|
205
|
+
export type CreateAIOQRPHDepositInput = Simplify<CreateMayaAppDepositMutationVariables["input"]>;
|
|
206
206
|
export declare const createAIOQRPHDeposit: (input: CreateAIOQRPHDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
207
207
|
export interface CreateAIOOnlineBankDepositMutation {
|
|
208
208
|
createAIOOnlineBankDeposit?: null | CreateDepositError;
|
|
@@ -214,7 +214,7 @@ export interface CreateAIOOnlineBankDepositMutationVariables {
|
|
|
214
214
|
promo?: string;
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
export type CreateAIOOnlineBankDepositInput = Simplify<CreateAIOOnlineBankDepositMutationVariables[
|
|
217
|
+
export type CreateAIOOnlineBankDepositInput = Simplify<CreateAIOOnlineBankDepositMutationVariables["input"]>;
|
|
218
218
|
export declare const createAIOOnlineBankDeposit: (input: CreateAIOOnlineBankDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
219
219
|
export interface CreateManualBankDepositMutation {
|
|
220
220
|
createManualBankDeposit?: null | CreateDepositError;
|
|
@@ -227,7 +227,7 @@ export interface CreateManualBankDeposiMutationVariables {
|
|
|
227
227
|
promo?: string;
|
|
228
228
|
};
|
|
229
229
|
}
|
|
230
|
-
export type CreateManualBankDepositInput = Simplify<CreateManualBankDeposiMutationVariables[
|
|
230
|
+
export type CreateManualBankDepositInput = Simplify<CreateManualBankDeposiMutationVariables["input"]>;
|
|
231
231
|
export declare const createManualBankDeposit: (input: CreateManualBankDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
232
232
|
export interface CreateManualUPIDepositMutation {
|
|
233
233
|
createManualUPIDeposit?: null | CreateDepositError;
|
|
@@ -241,7 +241,7 @@ export interface CreateManualUPIDepositMutationVariables {
|
|
|
241
241
|
promo?: string;
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
|
-
export type CreateManualUPIDepositInput = Simplify<CreateManualUPIDepositMutationVariables[
|
|
244
|
+
export type CreateManualUPIDepositInput = Simplify<CreateManualUPIDepositMutationVariables["input"]>;
|
|
245
245
|
export declare const createManualUPIDeposit: (input: CreateManualUPIDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
246
246
|
export interface CreateMayaAppDepositMutation {
|
|
247
247
|
createMayaAppDeposit?: null | CreateDepositError;
|
|
@@ -253,36 +253,39 @@ export interface CreateMayaAppDepositMutationVariables {
|
|
|
253
253
|
promo?: string;
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
|
-
export type CreateMayaAppDepositInput = Simplify<CreateMayaAppDepositMutationVariables[
|
|
256
|
+
export type CreateMayaAppDepositInput = Simplify<CreateMayaAppDepositMutationVariables["input"]>;
|
|
257
257
|
export declare const createMayaAppDeposit: (input: CreateMayaAppDepositInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
258
258
|
export type CreateWithdrawalError = {
|
|
259
|
-
name:
|
|
259
|
+
name: "AccountNotVerifiedError";
|
|
260
260
|
message: string;
|
|
261
261
|
} | {
|
|
262
|
-
name:
|
|
262
|
+
name: "InvalidTransactionPasswordError";
|
|
263
263
|
message: string;
|
|
264
264
|
} | {
|
|
265
|
-
name:
|
|
265
|
+
name: "InvalidWithdrawalAmountError";
|
|
266
266
|
message: string;
|
|
267
267
|
} | {
|
|
268
|
-
name:
|
|
268
|
+
name: "MobileNumberNotVerifiedError";
|
|
269
269
|
message: string;
|
|
270
270
|
} | {
|
|
271
|
-
name:
|
|
271
|
+
name: "NotEnoughBalanceError";
|
|
272
272
|
message: string;
|
|
273
273
|
} | {
|
|
274
|
-
name:
|
|
274
|
+
name: "WithdrawalDailyLimitExceededError";
|
|
275
275
|
message: string;
|
|
276
276
|
} | {
|
|
277
|
-
name:
|
|
277
|
+
name: "ReCAPTCHAVerificationFailedError";
|
|
278
278
|
message: string;
|
|
279
279
|
} | {
|
|
280
|
-
name:
|
|
280
|
+
name: "WalletDoesNotExistError";
|
|
281
281
|
message: string;
|
|
282
282
|
};
|
|
283
283
|
export interface CreateGCashWithdrawalMutation {
|
|
284
284
|
createGCashWithdrawal?: null | CreateWithdrawalError;
|
|
285
285
|
}
|
|
286
|
+
export interface CreateGCashStandardCashInWithdrawalMutation {
|
|
287
|
+
createGCashStandardCashInWithdrawal?: null | CreateWithdrawalError;
|
|
288
|
+
}
|
|
286
289
|
export interface CreateGCashWithdrawalMutationVariables {
|
|
287
290
|
input: {
|
|
288
291
|
id: string;
|
|
@@ -291,8 +294,18 @@ export interface CreateGCashWithdrawalMutationVariables {
|
|
|
291
294
|
recipientMobileNumber: string;
|
|
292
295
|
};
|
|
293
296
|
}
|
|
294
|
-
export
|
|
297
|
+
export interface CreateGCashStandardCashInWithdrawalMutationVariables {
|
|
298
|
+
input: {
|
|
299
|
+
id: string;
|
|
300
|
+
amount: string;
|
|
301
|
+
transactionPassword: string;
|
|
302
|
+
recipientMobileNumber: string;
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
export type CreateGCashWithdrawalInput = Simplify<CreateGCashWithdrawalMutationVariables["input"]>;
|
|
306
|
+
export type CreateGCashStandardCashInWithdrawalInput = Simplify<CreateGCashStandardCashInWithdrawalMutationVariables["input"]>;
|
|
295
307
|
export declare const createGCashWithdrawal: (input: CreateGCashWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
308
|
+
export declare const createGCashStandardCashInWithdrawal: (input: CreateGCashStandardCashInWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
296
309
|
export interface CreatePisoPayWithdrawalMutation {
|
|
297
310
|
createPisopayWithdrawal?: null | CreateWithdrawalError;
|
|
298
311
|
}
|
|
@@ -305,7 +318,7 @@ export interface CreatePisoPayWithdrawalMutationVariables {
|
|
|
305
318
|
};
|
|
306
319
|
transactionPassword: string;
|
|
307
320
|
}
|
|
308
|
-
export type CreatePisoPayWithdrawalInput = Simplify<CreatePisoPayWithdrawalMutationVariables[
|
|
321
|
+
export type CreatePisoPayWithdrawalInput = Simplify<CreatePisoPayWithdrawalMutationVariables["input"] & {
|
|
309
322
|
transactionPassword: string;
|
|
310
323
|
}>;
|
|
311
324
|
export declare const createPisoPayWithdrawal: (input: CreatePisoPayWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
@@ -320,7 +333,7 @@ export interface CreateMayaWithdrawalMutationVariables {
|
|
|
320
333
|
recipientMobileNumber: string;
|
|
321
334
|
};
|
|
322
335
|
}
|
|
323
|
-
export type CreateMayaWithdrawalInput = Simplify<CreateMayaWithdrawalMutationVariables[
|
|
336
|
+
export type CreateMayaWithdrawalInput = Simplify<CreateMayaWithdrawalMutationVariables["input"]>;
|
|
324
337
|
export declare const createMayaWithdrawal: (input: CreateMayaWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
325
338
|
export interface CreateMayaAppWithdrawalMutation {
|
|
326
339
|
createMayaAppWithdrawal?: null | CreateWithdrawalError;
|
|
@@ -332,7 +345,7 @@ export interface CreateMayaAppWithdrawalMutationVariables {
|
|
|
332
345
|
transactionPassword: string;
|
|
333
346
|
};
|
|
334
347
|
}
|
|
335
|
-
export type CreateMayaAppWithdrawalInput = Simplify<CreateMayaAppWithdrawalMutationVariables[
|
|
348
|
+
export type CreateMayaAppWithdrawalInput = Simplify<CreateMayaAppWithdrawalMutationVariables["input"]>;
|
|
336
349
|
export declare const createMayaAppWithdrawal: (input: CreateMayaAppWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
337
350
|
export interface CreateBankWithdrawalMutation {
|
|
338
351
|
createBankWithdrawal?: null | CreateWithdrawalError;
|
|
@@ -344,7 +357,7 @@ export interface CreateBankWithdrawalMutationVariables {
|
|
|
344
357
|
transactionPassword: string;
|
|
345
358
|
};
|
|
346
359
|
}
|
|
347
|
-
export type CreateBankWithdrawalInput = Simplify<CreateBankWithdrawalMutationVariables[
|
|
360
|
+
export type CreateBankWithdrawalInput = Simplify<CreateBankWithdrawalMutationVariables["input"]>;
|
|
348
361
|
export declare const createBankWithdrawal: (input: CreateBankWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
349
362
|
export interface CreateAIOInstapayWithdrawalMutationVariables {
|
|
350
363
|
input: {
|
|
@@ -372,8 +385,8 @@ export interface CreateAIOInstapayWithdrawalMutation {
|
|
|
372
385
|
export interface CreateAIOInstapayWithdrawalNextMutation {
|
|
373
386
|
createAIOInstapayWithdrawal_next?: null | CreateWithdrawalError;
|
|
374
387
|
}
|
|
375
|
-
export type CreateAIOInstapayWithdrawalInput = Simplify<CreateAIOInstapayWithdrawalMutationVariables[
|
|
376
|
-
export type CreateAIOInstapayWithdrawalNextInput = Simplify<CreateAIOInstapayWithdrawalNextMutationVariables[
|
|
388
|
+
export type CreateAIOInstapayWithdrawalInput = Simplify<CreateAIOInstapayWithdrawalMutationVariables["input"]>;
|
|
389
|
+
export type CreateAIOInstapayWithdrawalNextInput = Simplify<CreateAIOInstapayWithdrawalNextMutationVariables["input"]>;
|
|
377
390
|
export declare const createAIOInstapayWithdrawal: (input: CreateAIOInstapayWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
378
391
|
export declare const createAIOInstapayWithdrawalNext: (input: CreateAIOInstapayWithdrawalNextInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
379
392
|
export interface CreateVentajaDisbursementWithdrawalVariables {
|
|
@@ -388,8 +401,8 @@ export interface CreateVentajaDisbursementWithdrawalVariables {
|
|
|
388
401
|
export interface CreateVentajaDisbursementWithdrawalMutation {
|
|
389
402
|
createVentajaDisbursementWithdrawal?: null | CreateWithdrawalError;
|
|
390
403
|
}
|
|
391
|
-
export type CreateVentajaDisbursementWithdrawalInput = Simplify<CreateVentajaDisbursementWithdrawalVariables[
|
|
392
|
-
export type CreateVentajaDisbursmentTransactionPasswordInput = Simplify<CreateVentajaDisbursementWithdrawalVariables[
|
|
404
|
+
export type CreateVentajaDisbursementWithdrawalInput = Simplify<CreateVentajaDisbursementWithdrawalVariables["input"]>;
|
|
405
|
+
export type CreateVentajaDisbursmentTransactionPasswordInput = Simplify<CreateVentajaDisbursementWithdrawalVariables["transactionPassword"]>;
|
|
393
406
|
export declare const createVentajaDisbursementWithdrawal: (input: CreateVentajaDisbursementWithdrawalInput, transactionPassword: CreateVentajaDisbursmentTransactionPasswordInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
394
407
|
export interface CreateManualUpiWithdrawalMutation {
|
|
395
408
|
createManualUpiWithdrawal?: null | CreateWithdrawalError;
|
|
@@ -401,7 +414,7 @@ export interface CreateManualUpiWithdrawalMutationVariables {
|
|
|
401
414
|
upiId: string;
|
|
402
415
|
};
|
|
403
416
|
}
|
|
404
|
-
export type CreateManualUpiWithdrawalInput = Simplify<CreateManualUpiWithdrawalMutationVariables[
|
|
417
|
+
export type CreateManualUpiWithdrawalInput = Simplify<CreateManualUpiWithdrawalMutationVariables["input"]>;
|
|
405
418
|
export declare const createManualUpiWithdrawal: (input: CreateManualUpiWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
406
419
|
export interface CreateManualBankWithdrawalMutation {
|
|
407
420
|
createManualBankWithdrawal?: null | CreateWithdrawalError;
|
|
@@ -416,7 +429,7 @@ export interface CreateManualBankWithdrawalMutationVariables {
|
|
|
416
429
|
promo?: string;
|
|
417
430
|
};
|
|
418
431
|
}
|
|
419
|
-
export type CreateManualBankWithdrawalInput = Simplify<CreateManualBankWithdrawalMutationVariables[
|
|
432
|
+
export type CreateManualBankWithdrawalInput = Simplify<CreateManualBankWithdrawalMutationVariables["input"]>;
|
|
420
433
|
export declare const createManualBankWithdrawal: (input: CreateManualBankWithdrawalInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
421
434
|
export interface InstapayBankListQuery {
|
|
422
435
|
instapayBankList: InstapayBank[];
|
|
@@ -436,10 +449,10 @@ export interface RedeemPointsToCashMutationVariables {
|
|
|
436
449
|
};
|
|
437
450
|
}
|
|
438
451
|
export type RedeemPointsToCashError = {
|
|
439
|
-
name:
|
|
452
|
+
name: "InsufficientPointsError";
|
|
440
453
|
message: string;
|
|
441
454
|
} | {
|
|
442
|
-
name:
|
|
455
|
+
name: "PointsNotDivisibleBy100Error";
|
|
443
456
|
message: string;
|
|
444
457
|
};
|
|
445
458
|
export interface RedeemPointsToCashMutation {
|
|
@@ -461,7 +474,7 @@ export interface GameSessionQueryVariables {
|
|
|
461
474
|
}
|
|
462
475
|
export declare const getGameSession: (id: string, options?: GraphQLRequestOptions) => Promise<GameSession | null>;
|
|
463
476
|
export type CreateGameSessionError = {
|
|
464
|
-
name:
|
|
477
|
+
name: "GameDoesNotExistError";
|
|
465
478
|
message: string;
|
|
466
479
|
};
|
|
467
480
|
export interface CreateGameSessionMutation {
|
|
@@ -473,7 +486,7 @@ export interface CreateGameSessionMutationVariables {
|
|
|
473
486
|
game: string;
|
|
474
487
|
};
|
|
475
488
|
}
|
|
476
|
-
export type CreateGameSessionInput = Simplify<CreateGameSessionMutationVariables[
|
|
489
|
+
export type CreateGameSessionInput = Simplify<CreateGameSessionMutationVariables["input"]>;
|
|
477
490
|
export declare const createGameSession: (input: CreateGameSessionInput, options?: GraphQLRequestOptions) => Promise<void>;
|
|
478
491
|
export interface EndGameSessionMutation {
|
|
479
492
|
endGameSession: boolean;
|
|
@@ -507,13 +520,13 @@ export interface BonusIdsQuery {
|
|
|
507
520
|
}
|
|
508
521
|
export declare const getBonusesCount: (options?: GraphQLRequestOptions) => Promise<number>;
|
|
509
522
|
export type ClaimSpotBonusError = {
|
|
510
|
-
name:
|
|
523
|
+
name: "InvalidPromoCodeError";
|
|
511
524
|
message: string;
|
|
512
525
|
} | {
|
|
513
|
-
name:
|
|
526
|
+
name: "MaximumBonusesCountLimitExceededError";
|
|
514
527
|
message: string;
|
|
515
528
|
} | {
|
|
516
|
-
name:
|
|
529
|
+
name: "SpotBonusAlreadyClaimedError";
|
|
517
530
|
message: string;
|
|
518
531
|
};
|
|
519
532
|
export interface ClaimSpotBonusMutationVariables {
|
package/dist/services/wallet.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { cache } from
|
|
2
|
-
import { WALLET_GRAPHQL_ENDPOINT } from
|
|
3
|
-
import { parseDecimal } from
|
|
4
|
-
import { graphqlRequest } from
|
|
5
|
-
import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, } from
|
|
6
|
-
import { sha256 } from
|
|
1
|
+
import { cache } from "react";
|
|
2
|
+
import { WALLET_GRAPHQL_ENDPOINT } from "../constants/index.js";
|
|
3
|
+
import { parseDecimal } from "../utils/parseDecimal.js";
|
|
4
|
+
import { graphqlRequest } from "./graphqlRequest.js";
|
|
5
|
+
import { AVAILABLE_PROMOS, BONUS, BONUS_BALANCES, BONUS_IDS, BONUSES, CASHBACK, CASHBACK_BONUS, CASHBACK_BONUS_IDS, CASHBACK_BONUSES, CASHBACKS, CLAIM_CASHBACK_BONUS, CLAIM_SPOT_BONUS, CREATE_AIO_INSTAPAY_WITHDRAWAL, CREATE_AIO_INSTAPAY_WITHDRAWAL_NEXT, CREATE_AIO_ONLINE_BANK_DEPOSIT, CREATE_AIO_QRPH_DEPOSIT, CREATE_BANK_WITHDRAWAL, CREATE_GAME_SESSION, CREATE_GCASH_DEPOSIT, CREATE_GCASH_DIRECT_WEBPAY_DEPOSIT, CREATE_GCASH_WITHDRAWAL, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, CREATE_LIBANGAN_DEPOSIT, CREATE_MANUAL_BANK_DEPOSIT, CREATE_MANUAL_BANK_WITHDRAWAL, CREATE_MANUAL_UPI_DEPOSIT, CREATE_MANUAL_UPI_WITHDRAWAL, CREATE_MAYA_APP_DEPOSIT, CREATE_MAYA_APP_WITHDRAWAL, CREATE_MAYA_DEPOSIT, CREATE_MAYA_WITHDRAWAL, CREATE_PISO_PAY_DEPOSIT, CREATE_PISO_PAY_WITHDRAWAL, CREATE_VENTAJA_WITHDRAWAL, DEPOSIT, END_GAME_SESSION, FAVORITE_GAMES, GAME_SESSION, INSTAPAY_BANK_LIST, MARK_GAME_AS_FAVORITE, MAYA_SESSION, POINTS_WALLET, PROMO, PROMOS, REDEEM_POINTS_TO_CASH, REMAINING_DAILY_WITHDRAWALS_COUNT, TOUCH_GCASH_DEPOSIT, TOUCH_QRPH_DEPOSIT, UNMARK_GAME_AS_FAVORITE, VALIDATE_MAYA_SESSION, WALLET, } from "./queries.js";
|
|
6
|
+
import { sha256 } from "./sha256.js";
|
|
7
7
|
export const getPromos = cache(async (options) => {
|
|
8
8
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMOS, undefined, {
|
|
9
|
-
cache:
|
|
9
|
+
cache: "force-cache",
|
|
10
10
|
...options,
|
|
11
11
|
next: {
|
|
12
|
-
tags: [
|
|
12
|
+
tags: ["promos"],
|
|
13
13
|
revalidate: 60,
|
|
14
14
|
...options?.next,
|
|
15
15
|
},
|
|
@@ -18,10 +18,10 @@ export const getPromos = cache(async (options) => {
|
|
|
18
18
|
});
|
|
19
19
|
export const getCashbacks = cache(async (options) => {
|
|
20
20
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACKS, undefined, {
|
|
21
|
-
cache:
|
|
21
|
+
cache: "force-cache",
|
|
22
22
|
...options,
|
|
23
23
|
next: {
|
|
24
|
-
tags: [
|
|
24
|
+
tags: ["cashbacks"],
|
|
25
25
|
revalidate: 60,
|
|
26
26
|
...options?.next,
|
|
27
27
|
},
|
|
@@ -30,10 +30,10 @@ export const getCashbacks = cache(async (options) => {
|
|
|
30
30
|
});
|
|
31
31
|
export const getPromo = cache(async (id, options) => {
|
|
32
32
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, PROMO, { id }, {
|
|
33
|
-
cache:
|
|
33
|
+
cache: "force-cache",
|
|
34
34
|
...options,
|
|
35
35
|
next: {
|
|
36
|
-
tags: [
|
|
36
|
+
tags: ["promo", id],
|
|
37
37
|
revalidate: 60,
|
|
38
38
|
...options?.next,
|
|
39
39
|
},
|
|
@@ -42,10 +42,10 @@ export const getPromo = cache(async (id, options) => {
|
|
|
42
42
|
});
|
|
43
43
|
export const getCashback = cache(async (id, options) => {
|
|
44
44
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CASHBACK, { id }, {
|
|
45
|
-
cache:
|
|
45
|
+
cache: "force-cache",
|
|
46
46
|
...options,
|
|
47
47
|
next: {
|
|
48
|
-
tags: [
|
|
48
|
+
tags: ["cashback", id],
|
|
49
49
|
revalidate: 60,
|
|
50
50
|
...options?.next,
|
|
51
51
|
},
|
|
@@ -88,12 +88,12 @@ export const getWallet = cache(async (options) => {
|
|
|
88
88
|
graphqlRequest(WALLET_GRAPHQL_ENDPOINT, BONUS_BALANCES, undefined, options),
|
|
89
89
|
]);
|
|
90
90
|
return {
|
|
91
|
-
balance: res0.status ===
|
|
92
|
-
bonus: res1.status ===
|
|
93
|
-
?
|
|
91
|
+
balance: res0.status === "fulfilled" ? res0.value.wallet?.balance ?? "0" : "0",
|
|
92
|
+
bonus: res1.status === "fulfilled"
|
|
93
|
+
? res1.value.bonuses
|
|
94
94
|
?.reduce((total, n) => total + parseDecimal(n.balance, 0), 0)
|
|
95
|
-
.toString() ??
|
|
96
|
-
:
|
|
95
|
+
.toString() ?? "0"
|
|
96
|
+
: "0",
|
|
97
97
|
};
|
|
98
98
|
});
|
|
99
99
|
export const getDeposit = cache(async (id, options) => {
|
|
@@ -218,6 +218,22 @@ export const createGCashWithdrawal = async (input, options) => {
|
|
|
218
218
|
throw error;
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
|
+
export const createGCashStandardCashInWithdrawal = async (input, options) => {
|
|
222
|
+
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_GCASH_STANDARD_CASH_IN_WITHDRAWAL, {
|
|
223
|
+
input: {
|
|
224
|
+
...input,
|
|
225
|
+
transactionPassword: await sha256(input.transactionPassword),
|
|
226
|
+
},
|
|
227
|
+
}, options);
|
|
228
|
+
if (res.createGCashStandardCashInWithdrawal) {
|
|
229
|
+
const error = new Error();
|
|
230
|
+
error.name = res.createGCashStandardCashInWithdrawal.name;
|
|
231
|
+
error.message =
|
|
232
|
+
ERROR_CODES_MESSAGE_MAP[res.createGCashStandardCashInWithdrawal.name];
|
|
233
|
+
Error.captureStackTrace?.(error, createGCashStandardCashInWithdrawal);
|
|
234
|
+
throw error;
|
|
235
|
+
}
|
|
236
|
+
};
|
|
221
237
|
export const createPisoPayWithdrawal = async (input, options) => {
|
|
222
238
|
const { transactionPassword, ...others } = input;
|
|
223
239
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, CREATE_PISO_PAY_WITHDRAWAL, {
|
|
@@ -343,11 +359,11 @@ export const createManualBankWithdrawal = async (input, options) => {
|
|
|
343
359
|
};
|
|
344
360
|
export const getInstapayBankList = cache(async (options) => {
|
|
345
361
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, INSTAPAY_BANK_LIST, undefined, {
|
|
346
|
-
cache:
|
|
362
|
+
cache: "force-cache",
|
|
347
363
|
...options,
|
|
348
364
|
next: {
|
|
349
365
|
revalidate: 60 * 60 * 4,
|
|
350
|
-
tags: [
|
|
366
|
+
tags: ["instapayBankList"],
|
|
351
367
|
},
|
|
352
368
|
});
|
|
353
369
|
return res.instapayBankList;
|
|
@@ -392,8 +408,8 @@ export const endGameSession = async (id, options) => {
|
|
|
392
408
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, END_GAME_SESSION, { input: { id } }, options);
|
|
393
409
|
if (!res.endGameSession) {
|
|
394
410
|
const error = new Error();
|
|
395
|
-
error.name =
|
|
396
|
-
error.message =
|
|
411
|
+
error.name = "UnknownError";
|
|
412
|
+
error.message = "Something went wrong";
|
|
397
413
|
Error.captureStackTrace?.(error, endGameSession);
|
|
398
414
|
throw error;
|
|
399
415
|
}
|
|
@@ -402,8 +418,8 @@ export const validateMayaSession = async (options) => {
|
|
|
402
418
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, VALIDATE_MAYA_SESSION, undefined, options);
|
|
403
419
|
if (!res.validateMayaSession) {
|
|
404
420
|
const error = new Error();
|
|
405
|
-
error.name =
|
|
406
|
-
error.message =
|
|
421
|
+
error.name = "UnknownError";
|
|
422
|
+
error.message = "Something went wrong";
|
|
407
423
|
Error.captureStackTrace?.(error, validateMayaSession);
|
|
408
424
|
throw error;
|
|
409
425
|
}
|
|
@@ -430,8 +446,8 @@ export const touchGCashDeposit = async (id, options) => {
|
|
|
430
446
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_GCASH_DEPOSIT, { input: { id } }, options);
|
|
431
447
|
if (!res.touchGCashDeposit) {
|
|
432
448
|
const error = new Error();
|
|
433
|
-
error.name =
|
|
434
|
-
error.message =
|
|
449
|
+
error.name = "UnknownError";
|
|
450
|
+
error.message = "Something went wrong";
|
|
435
451
|
Error.captureStackTrace?.(error, touchGCashDeposit);
|
|
436
452
|
throw error;
|
|
437
453
|
}
|
|
@@ -440,8 +456,8 @@ export const touchQRPHDeposit = async (id, options) => {
|
|
|
440
456
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, TOUCH_QRPH_DEPOSIT, { input: { id } }, options);
|
|
441
457
|
if (!res.touchQRPHDeposit) {
|
|
442
458
|
const error = new Error();
|
|
443
|
-
error.name =
|
|
444
|
-
error.message =
|
|
459
|
+
error.name = "UnknownError";
|
|
460
|
+
error.message = "Something went wrong";
|
|
445
461
|
Error.captureStackTrace?.(error, touchQRPHDeposit);
|
|
446
462
|
throw error;
|
|
447
463
|
}
|
|
@@ -450,8 +466,8 @@ export const markGameAsFavorite = async (id, options) => {
|
|
|
450
466
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, MARK_GAME_AS_FAVORITE, { input: { id } }, options);
|
|
451
467
|
if (!res.markGameAsFavorite) {
|
|
452
468
|
const error = new Error();
|
|
453
|
-
error.name =
|
|
454
|
-
error.message =
|
|
469
|
+
error.name = "UnknownError";
|
|
470
|
+
error.message = "Something went wrong";
|
|
455
471
|
Error.captureStackTrace?.(error, markGameAsFavorite);
|
|
456
472
|
throw error;
|
|
457
473
|
}
|
|
@@ -460,8 +476,8 @@ export const unmarkGameAsFavorite = async (id, options) => {
|
|
|
460
476
|
const res = await graphqlRequest(WALLET_GRAPHQL_ENDPOINT, UNMARK_GAME_AS_FAVORITE, { input: { id } }, options);
|
|
461
477
|
if (!res.unmarkGameAsFavorite) {
|
|
462
478
|
const error = new Error();
|
|
463
|
-
error.name =
|
|
464
|
-
error.message =
|
|
479
|
+
error.name = "UnknownError";
|
|
480
|
+
error.message = "Something went wrong";
|
|
465
481
|
Error.captureStackTrace?.(error, unmarkGameAsFavorite);
|
|
466
482
|
throw error;
|
|
467
483
|
}
|
|
@@ -471,27 +487,27 @@ export const getFavoriteGames = cache(async (options) => {
|
|
|
471
487
|
return res.favoriteGames;
|
|
472
488
|
});
|
|
473
489
|
const ERROR_CODES_MESSAGE_MAP = {
|
|
474
|
-
PointsNotDivisibleBy100Error:
|
|
475
|
-
MaximumBonusesCountLimitExceededError:
|
|
476
|
-
InvalidPromoCodeError:
|
|
477
|
-
SpotBonusAlreadyClaimedError:
|
|
478
|
-
AccountNotVerifiedError:
|
|
479
|
-
CashbackBonusDoesNotExistError:
|
|
480
|
-
DepositPromoMaximumAmountExceededError:
|
|
481
|
-
DepositPromoMinimumAmountNotMetError:
|
|
482
|
-
GameDoesNotExistError:
|
|
483
|
-
InsufficientPointsError:
|
|
484
|
-
InvalidTransactionPasswordError:
|
|
485
|
-
InvalidWithdrawalAmountError:
|
|
486
|
-
MaximumDepositAmountExceededError:
|
|
487
|
-
MinimumDepositAmountNotMetError:
|
|
488
|
-
MinimumFirstDepositAmountNotMetError:
|
|
489
|
-
MobileNumberNotVerifiedError:
|
|
490
|
-
NotEnoughBalanceError:
|
|
491
|
-
PromoNotEnabledError:
|
|
492
|
-
WalletDoesNotExistError:
|
|
493
|
-
WithdrawalDailyLimitExceededError:
|
|
494
|
-
ReCAPTCHAVerificationFailedError:
|
|
495
|
-
UPIReferenceNotAvailableError:
|
|
496
|
-
GCashDirectApiRequestError:
|
|
490
|
+
PointsNotDivisibleBy100Error: "Please input points that are multiples of 100.",
|
|
491
|
+
MaximumBonusesCountLimitExceededError: "Maximum bonuses reached",
|
|
492
|
+
InvalidPromoCodeError: "Invalid Promo Code",
|
|
493
|
+
SpotBonusAlreadyClaimedError: "This promo code has already been redeemed and cannot be used again",
|
|
494
|
+
AccountNotVerifiedError: "Account is not verified",
|
|
495
|
+
CashbackBonusDoesNotExistError: "Cashback bonus does not exists",
|
|
496
|
+
DepositPromoMaximumAmountExceededError: "Deposit amount exceeds maximum amount for selected promo",
|
|
497
|
+
DepositPromoMinimumAmountNotMetError: "Deposit amount does not meet minimum amount for selected promo",
|
|
498
|
+
GameDoesNotExistError: "Game does not exist",
|
|
499
|
+
InsufficientPointsError: "Insufficient points",
|
|
500
|
+
InvalidTransactionPasswordError: "Invalid transaction password",
|
|
501
|
+
InvalidWithdrawalAmountError: "Invalid withdrawal amount",
|
|
502
|
+
MaximumDepositAmountExceededError: "Maximum deposit amount exceeded",
|
|
503
|
+
MinimumDepositAmountNotMetError: "Minimum deposit amount not met",
|
|
504
|
+
MinimumFirstDepositAmountNotMetError: "Minimum first deposit amount not met",
|
|
505
|
+
MobileNumberNotVerifiedError: "Mobile number is not verified",
|
|
506
|
+
NotEnoughBalanceError: "Insufficient balance",
|
|
507
|
+
PromoNotEnabledError: "Promo is not enabled",
|
|
508
|
+
WalletDoesNotExistError: "Wallet does not exist",
|
|
509
|
+
WithdrawalDailyLimitExceededError: "Daily withdrawal limit exceeded",
|
|
510
|
+
ReCAPTCHAVerificationFailedError: "Invalid reCAPTCHA",
|
|
511
|
+
UPIReferenceNotAvailableError: "UPI reference is no longer available",
|
|
512
|
+
GCashDirectApiRequestError: "GCash direct API request error",
|
|
497
513
|
};
|
package/dist/styles/theme.css
CHANGED
|
@@ -274,6 +274,9 @@
|
|
|
274
274
|
|
|
275
275
|
--color-border-checkbox-primary: #373a41;
|
|
276
276
|
--color-bg-progress-bar-primary: var(--color-bg-primary);
|
|
277
|
+
--color-bg-lock: #161B26;
|
|
278
|
+
--color-border-lock: #333741;
|
|
279
|
+
--color-text-lock: #85888E;
|
|
277
280
|
|
|
278
281
|
|
|
279
282
|
--font-sans: var(--font-sans);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -693,7 +693,7 @@ export interface Message {
|
|
|
693
693
|
}
|
|
694
694
|
export type OnboardingStatus = 'PENDING' | 'SKIPPED' | 'COMPLETED';
|
|
695
695
|
export type OnboardingPlayerExperience = 'ROOKIE' | 'VETERAN';
|
|
696
|
-
export type QuestType = 'WAGERING' | 'DAILY_CHECKIN' | 'ONBOARDING' | 'JOURNEY';
|
|
696
|
+
export type QuestType = 'WAGERING' | 'DAILY_CHECKIN' | 'ONBOARDING' | 'JOURNEY' | 'MULTI_WAGERING';
|
|
697
697
|
export type QuestStatus = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED';
|
|
698
698
|
export type QuestProgramStatus = 'ACTIVE' | 'INACTIVE' | 'DELETED';
|
|
699
699
|
export interface QuestProgram {
|
|
@@ -712,6 +712,13 @@ export interface JourneyQuestMilestone {
|
|
|
712
712
|
cleared: boolean;
|
|
713
713
|
description: string;
|
|
714
714
|
}
|
|
715
|
+
export interface WageringQuestStage {
|
|
716
|
+
targetTurnover: string;
|
|
717
|
+
bonusTurnoverRequirementMultiplier: number;
|
|
718
|
+
bonusAmount: number;
|
|
719
|
+
cleared: boolean;
|
|
720
|
+
dateTimeCleared: Date;
|
|
721
|
+
}
|
|
715
722
|
export interface Quest {
|
|
716
723
|
id: string;
|
|
717
724
|
name: string;
|
|
@@ -736,6 +743,7 @@ export interface Quest {
|
|
|
736
743
|
firstDepositCompleted?: boolean;
|
|
737
744
|
accountVerificationCompleted?: boolean;
|
|
738
745
|
milestones?: JourneyQuestMilestone[];
|
|
746
|
+
stages?: WageringQuestStage[];
|
|
739
747
|
}
|
|
740
748
|
interface TopWinGame {
|
|
741
749
|
id: string;
|