@opexa/portal-sdk 0.0.25 → 0.0.27
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/index.js +76 -96
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +335 -341
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/types.d.ts +18 -3
- package/dist/services/queries.d.ts +2 -2
- package/dist/services/types.d.ts +14 -10
- package/package.json +1 -1
package/dist/sdk/types.d.ts
CHANGED
|
@@ -478,7 +478,11 @@ export type AnnouncementsReturn = OperationResult<never, PaginatedQueryResult<'a
|
|
|
478
478
|
export type BetRecordStatus = UnionAlias<Internal.BetRecordStatus>;
|
|
479
479
|
export interface BetRecord {
|
|
480
480
|
id: string;
|
|
481
|
-
game:
|
|
481
|
+
game: {
|
|
482
|
+
name: string;
|
|
483
|
+
type: GameType;
|
|
484
|
+
provider: GameProvider;
|
|
485
|
+
};
|
|
482
486
|
status: BetRecordStatus;
|
|
483
487
|
serialCode: string;
|
|
484
488
|
vendorRoundId?: string;
|
|
@@ -499,15 +503,26 @@ export interface BetRecord {
|
|
|
499
503
|
};
|
|
500
504
|
}
|
|
501
505
|
export interface BetRecordsInput extends Internal.BetRecordsQueryVariables {
|
|
506
|
+
filter?: {
|
|
507
|
+
status?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['status'];
|
|
508
|
+
serialCode?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['serialCode'];
|
|
509
|
+
gameType?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['game__type'];
|
|
510
|
+
gameProvider?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['game__provider'];
|
|
511
|
+
vendorRoundId?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['vendorRoundId'];
|
|
512
|
+
dateTimeCreated?: NonNullable<Internal.BetRecordsQueryVariables['filter']>['dateTimeCreated'];
|
|
513
|
+
};
|
|
502
514
|
}
|
|
503
515
|
export type BetRecordsReturn = OperationResult<never, PaginatedQueryResult<'betRecords', BetRecord>>;
|
|
504
516
|
export interface LatestBetRecord {
|
|
505
517
|
id: string;
|
|
506
518
|
member: {
|
|
507
|
-
id: string;
|
|
508
519
|
name: string;
|
|
509
520
|
};
|
|
510
|
-
game:
|
|
521
|
+
game: {
|
|
522
|
+
name: string;
|
|
523
|
+
type: GameType;
|
|
524
|
+
provider: GameProvider;
|
|
525
|
+
};
|
|
511
526
|
bet: number;
|
|
512
527
|
payout: number;
|
|
513
528
|
validBet: number;
|
|
@@ -4,13 +4,13 @@ export declare const UPLOAD_PRIVATE_IMAGE_FILE_MUTATION: string;
|
|
|
4
4
|
export declare const WALLET_QUERY: string;
|
|
5
5
|
export declare const POINTS_WALLET_QUERY: string;
|
|
6
6
|
export declare const POINTS_TO_CASH_CONVERSION_MUTATION: string;
|
|
7
|
-
|
|
7
|
+
/** @deprecated */
|
|
8
8
|
export declare const GAMES_QUERY: string;
|
|
9
|
+
/** @deprecated */
|
|
9
10
|
export declare const GAMES_BY_NAME_QUERY: string;
|
|
10
11
|
export declare const GAME_SESSION_QUERY: string;
|
|
11
12
|
export declare const CREATE_GAME_SESSION_MUTATION: string;
|
|
12
13
|
export declare const END_GAME_SESSION_MUTATION: string;
|
|
13
|
-
export declare const GAME_SESSION_QUERY_LEGACY: string;
|
|
14
14
|
export declare const END_GAME_SESSION_MUTATION__LEGACY: string;
|
|
15
15
|
export declare const ANNOUNCEMENTS_QUERY: string;
|
|
16
16
|
export declare const WITHDRAWAL_RECORDS_QUERY: string;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export interface StringFilterField {
|
|
|
29
29
|
notEqual?: string;
|
|
30
30
|
in?: string[];
|
|
31
31
|
notIn?: string[];
|
|
32
|
-
contains?: string;
|
|
33
32
|
}
|
|
34
33
|
export interface NumberFilterField {
|
|
35
34
|
equal?: number;
|
|
@@ -147,8 +146,8 @@ export interface GameQuery {
|
|
|
147
146
|
export interface GamesQueryVariables {
|
|
148
147
|
after?: string;
|
|
149
148
|
first?: number;
|
|
149
|
+
search?: string;
|
|
150
150
|
filter?: {
|
|
151
|
-
name?: StringFilterField;
|
|
152
151
|
type?: EnumFilterField<GameType>;
|
|
153
152
|
provider?: EnumFilterField<GameProvider>;
|
|
154
153
|
};
|
|
@@ -156,6 +155,7 @@ export interface GamesQueryVariables {
|
|
|
156
155
|
/** @deprecated */
|
|
157
156
|
export interface GamesQuery extends PaginatedQuery<'games', Game> {
|
|
158
157
|
}
|
|
158
|
+
/** @deprecated */
|
|
159
159
|
export interface GamesByNameQueryVariables {
|
|
160
160
|
first?: number;
|
|
161
161
|
search: string;
|
|
@@ -168,7 +168,7 @@ export interface GamesByNameQuery {
|
|
|
168
168
|
export interface GamesQuery__Next {
|
|
169
169
|
data: Game__Next[];
|
|
170
170
|
next?: string | null;
|
|
171
|
-
totalCount
|
|
171
|
+
totalCount?: number | null;
|
|
172
172
|
}
|
|
173
173
|
export interface GameQuery__Next {
|
|
174
174
|
data?: Game__Next | null;
|
|
@@ -176,7 +176,6 @@ export interface GameQuery__Next {
|
|
|
176
176
|
export type GameSessionStatus = 'PENDING' | 'STARTING' | 'READY' | 'ENDED' | 'CANCELLED';
|
|
177
177
|
export interface GameSession {
|
|
178
178
|
id: string;
|
|
179
|
-
game: string;
|
|
180
179
|
status: GameSessionStatus;
|
|
181
180
|
launchUrl?: string | null;
|
|
182
181
|
dateTimeCreated: DateString;
|
|
@@ -233,7 +232,11 @@ export interface BetRecordMetadata {
|
|
|
233
232
|
}
|
|
234
233
|
export interface BetRecord {
|
|
235
234
|
id: string;
|
|
236
|
-
game:
|
|
235
|
+
game: {
|
|
236
|
+
name: string;
|
|
237
|
+
type: GameType;
|
|
238
|
+
provider: GameProvider;
|
|
239
|
+
};
|
|
237
240
|
status: BetRecordStatus;
|
|
238
241
|
serialCode: string;
|
|
239
242
|
vendorRoundId?: string | null;
|
|
@@ -259,11 +262,9 @@ export interface BetRecordsQueryVariables {
|
|
|
259
262
|
after?: string;
|
|
260
263
|
sort?: SortOrder;
|
|
261
264
|
filter?: {
|
|
262
|
-
serialCode?: StringFilterField;
|
|
263
|
-
game?: ObjectIdFilterField;
|
|
264
|
-
game__externalId?: StringFilterField;
|
|
265
265
|
game__type?: EnumFilterField<GameType>;
|
|
266
266
|
game__provider?: EnumFilterField<string>;
|
|
267
|
+
serialCode?: StringFilterField;
|
|
267
268
|
dateTimeCreated?: DateFilterField;
|
|
268
269
|
vendorRoundId?: StringFilterField;
|
|
269
270
|
status?: EnumFilterField<BetRecordStatus>;
|
|
@@ -274,10 +275,13 @@ export interface BetRecordsQueryVariables {
|
|
|
274
275
|
export interface LatestBetRecord {
|
|
275
276
|
id: string;
|
|
276
277
|
member: {
|
|
277
|
-
id: string;
|
|
278
278
|
name: string;
|
|
279
279
|
};
|
|
280
|
-
game:
|
|
280
|
+
game: {
|
|
281
|
+
name: string;
|
|
282
|
+
type: GameType;
|
|
283
|
+
provider: GameProvider;
|
|
284
|
+
};
|
|
281
285
|
bet: Decimal;
|
|
282
286
|
payout: Decimal;
|
|
283
287
|
validBet: Decimal;
|