@opexa/portal-sdk 0.0.148 → 0.0.149
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 +74 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +264 -259
- package/dist/index.mjs.map +1 -1
- package/dist/sdk/const.d.ts +1 -0
- package/dist/sdk/types.d.ts +10 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NEW_GAME_PROVIDERS: string[];
|
package/dist/sdk/types.d.ts
CHANGED
|
@@ -349,10 +349,19 @@ export type GameSession = {
|
|
|
349
349
|
dateTimeLastUpdated: Date;
|
|
350
350
|
};
|
|
351
351
|
export type GameSessionReturn = OperationResult<never, GameSession | null>;
|
|
352
|
-
export interface
|
|
352
|
+
export interface CreateGameSessionByReferenceInput {
|
|
353
|
+
id?: string;
|
|
354
|
+
game?: never;
|
|
355
|
+
provider: GameProvider;
|
|
356
|
+
reference: string;
|
|
357
|
+
}
|
|
358
|
+
export interface CreateGameSessionByIdInput {
|
|
353
359
|
id?: string;
|
|
354
360
|
game: `SPORTS:${Extract<GameProvider, 'BTI' | 'SABA'>}` | (string & {});
|
|
361
|
+
provider?: never;
|
|
362
|
+
reference?: never;
|
|
355
363
|
}
|
|
364
|
+
export type CreateGameSessionInput = CreateGameSessionByReferenceInput | CreateGameSessionByIdInput;
|
|
356
365
|
export type CreateGameSessionError = UnionAlias<Internal.CreateGameSessionError>;
|
|
357
366
|
export type CreateGameSessionReturn = OperationResult<CreateGameSessionError, {
|
|
358
367
|
id: string;
|