@opexa/portal-sdk 0.0.22 → 0.0.23
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 +65 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +168 -150
- package/dist/index.mjs.map +1 -1
- package/dist/services/game.service.d.ts +2 -2
- package/dist/services/queries.d.ts +1 -0
- package/dist/services/types.d.ts +13 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLClient } from '../utils/graphql-client';
|
|
2
2
|
import { OperationResult } from '../utils/types';
|
|
3
|
-
import { CreateGameSessionError, CreateGameSessionMutationVariables, EndGameSessionError__Legacy, EndGameSessionMutationVariables, Game, GamesByNameQueryVariables,
|
|
3
|
+
import { CreateGameSessionError, CreateGameSessionMutationVariables, EndGameSessionError__Legacy, EndGameSessionMutationVariables, Game, GamesByNameQueryVariables, GameSession__Legacy, GameSessionQueryVariables, GamesQueryVariables, PaginatedQueryResult } from './types';
|
|
4
4
|
|
|
5
5
|
export declare class GameService {
|
|
6
6
|
private client;
|
|
@@ -14,7 +14,7 @@ export declare class GameService {
|
|
|
14
14
|
ok: true;
|
|
15
15
|
data: Game[];
|
|
16
16
|
}>;
|
|
17
|
-
gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never,
|
|
17
|
+
gameSession(variables: GameSessionQueryVariables): Promise<OperationResult<never, GameSession__Legacy | null | undefined>>;
|
|
18
18
|
createGameSession(variables: CreateGameSessionMutationVariables): Promise<OperationResult<CreateGameSessionError>>;
|
|
19
19
|
endGameSession(variables: EndGameSessionMutationVariables): Promise<OperationResult<EndGameSessionError__Legacy>>;
|
|
20
20
|
}
|
|
@@ -10,6 +10,7 @@ export declare const GAMES_BY_NAME_QUERY: string;
|
|
|
10
10
|
export declare const GAME_SESSION_QUERY: string;
|
|
11
11
|
export declare const CREATE_GAME_SESSION_MUTATION: string;
|
|
12
12
|
export declare const END_GAME_SESSION_MUTATION: string;
|
|
13
|
+
export declare const GAME_SESSION_QUERY_LEGACY: string;
|
|
13
14
|
export declare const END_GAME_SESSION_MUTATION__LEGACY: string;
|
|
14
15
|
export declare const ANNOUNCEMENTS_QUERY: string;
|
|
15
16
|
export declare const WITHDRAWAL_RECORDS_QUERY: string;
|
package/dist/services/types.d.ts
CHANGED
|
@@ -185,6 +185,19 @@ export interface EndGameSessionMutationVariables {
|
|
|
185
185
|
id: string;
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
+
export interface GameSession__Legacy {
|
|
189
|
+
id: string;
|
|
190
|
+
game: {
|
|
191
|
+
id: string;
|
|
192
|
+
};
|
|
193
|
+
status: GameSessionStatus;
|
|
194
|
+
launchUrl?: string | null;
|
|
195
|
+
dateTimeCreated: DateString;
|
|
196
|
+
dateTimeLastUpdated: DateString;
|
|
197
|
+
}
|
|
198
|
+
export interface GameSessionQuery__Legacy {
|
|
199
|
+
node?: GameSession__Legacy | null;
|
|
200
|
+
}
|
|
188
201
|
export type EndGameSessionError__Legacy = 'GameSessionDoesNotExistError' | 'GameSessionAlreadyClosedError' | 'GameProviderError';
|
|
189
202
|
export interface EndGameSessionMutation__Legacy {
|
|
190
203
|
endGameSession?: null | {
|