@quesmed/types 2.6.246 → 2.6.247

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.
@@ -227,3 +227,23 @@ export declare const optimisticSetOsceMarksheetFeedback: (marksheet: IOsceMarksh
227
227
  };
228
228
  };
229
229
  };
230
+ export interface ICreateVoiceSessionVars {
231
+ osceMarksheetId: Id;
232
+ }
233
+ export interface IVoiceSessionData {
234
+ sessionId: string;
235
+ roomName: string;
236
+ url: string;
237
+ token: string;
238
+ }
239
+ export type ICreateVoiceSessionData = RestrictedData<{
240
+ createVoiceSession: ICreateVoiceSessionData;
241
+ }, 'createVoiceSession'>;
242
+ export declare const CREATE_VOICE_SESSION: import("@apollo/client").DocumentNode;
243
+ export interface IEndVoiceSessionVars {
244
+ osceMarksheetId: Id;
245
+ }
246
+ export type IEnVoiceSessionData = RestrictedData<{
247
+ endVoiceSession: boolean;
248
+ }, 'endVoiceSession'>;
249
+ export declare const END_VOICE_SESSION: import("@apollo/client").DocumentNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.optimisticSetOsceMarksheetFeedback = exports.updateCacheOnSetOsceMarksheetFeedback = exports.SET_OSCE_MARKSHEET_FEEDBACK = exports.updateCacheOnAutoMarkOsceMarksheet = exports.AUTO_MARK_OSCE_MARKSHEET = exports.STREAM_OSCE_CHAT_MESSAGE = exports.LEAVE_OSCE_MARKSHEET = exports.optimisticEndOsceMarksheet = exports.updateCacheOnEndOsceMarksheet = exports.END_OSCE_MARKSHEET = exports.MODIFY_OSCE_MARKSHEET = exports.SAVE_OSCE_MARKSHEET = exports.PRESTART_OSCE_MARKSHEET = exports.START_OSCE_TIMER = exports.START_OSCE_MARKSHEET = exports.SELECT_OSCE_STATION = exports.optimisticMarkOsceMarksheetMark = exports.MARK_OSCE_MARKSHEET_MARK = exports.CHANGE_OSCE_ROLE = exports.BUILD_OSCE_MARKSHEET = exports.CREATE_OR_JOIN_OSCE_MARKSHEET = exports.CANCEL_OSCE_MATCHMAKING = exports.CHECK_OSCE_MATCHMAKING = exports.ACCEPT_OSCE_MATCHMAKING = exports.START_OSCE_MATCHMAKING = void 0;
3
+ exports.END_VOICE_SESSION = exports.CREATE_VOICE_SESSION = exports.optimisticSetOsceMarksheetFeedback = exports.updateCacheOnSetOsceMarksheetFeedback = exports.SET_OSCE_MARKSHEET_FEEDBACK = exports.updateCacheOnAutoMarkOsceMarksheet = exports.AUTO_MARK_OSCE_MARKSHEET = exports.STREAM_OSCE_CHAT_MESSAGE = exports.LEAVE_OSCE_MARKSHEET = exports.optimisticEndOsceMarksheet = exports.updateCacheOnEndOsceMarksheet = exports.END_OSCE_MARKSHEET = exports.MODIFY_OSCE_MARKSHEET = exports.SAVE_OSCE_MARKSHEET = exports.PRESTART_OSCE_MARKSHEET = exports.START_OSCE_TIMER = exports.START_OSCE_MARKSHEET = exports.SELECT_OSCE_STATION = exports.optimisticMarkOsceMarksheetMark = exports.MARK_OSCE_MARKSHEET_MARK = exports.CHANGE_OSCE_ROLE = exports.BUILD_OSCE_MARKSHEET = exports.CREATE_OR_JOIN_OSCE_MARKSHEET = exports.CANCEL_OSCE_MATCHMAKING = exports.CHECK_OSCE_MATCHMAKING = exports.ACCEPT_OSCE_MATCHMAKING = exports.START_OSCE_MATCHMAKING = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const models_1 = require("../../../models");
6
6
  const fragments_1 = require("../../fragments");
@@ -422,3 +422,25 @@ const optimisticSetOsceMarksheetFeedback = (marksheet, feedbackReaction) => ({
422
422
  },
423
423
  });
424
424
  exports.optimisticSetOsceMarksheetFeedback = optimisticSetOsceMarksheetFeedback;
425
+ exports.CREATE_VOICE_SESSION = (0, client_1.gql) `
426
+ mutation CreateVoiceSession(
427
+ $osceMarksheetId: Int!
428
+ $phase: OsceStationPhase!
429
+ ) {
430
+ restricted {
431
+ createVoiceSession(osceMarksheetId: $osceMarksheetId, phase: $phase) {
432
+ sessionId
433
+ roomName
434
+ url
435
+ token
436
+ }
437
+ }
438
+ }
439
+ `;
440
+ exports.END_VOICE_SESSION = (0, client_1.gql) `
441
+ mutation EndVoiceSession($osceMarksheetId: Int!) {
442
+ restricted {
443
+ endVoiceSession(osceMarksheetId: $osceMarksheetId)
444
+ }
445
+ }
446
+ `;
@@ -227,3 +227,23 @@ export declare const optimisticSetOsceMarksheetFeedback: (marksheet: IOsceMarksh
227
227
  };
228
228
  };
229
229
  };
230
+ export interface ICreateVoiceSessionVars {
231
+ osceMarksheetId: Id;
232
+ }
233
+ export interface IVoiceSessionData {
234
+ sessionId: string;
235
+ roomName: string;
236
+ url: string;
237
+ token: string;
238
+ }
239
+ export type ICreateVoiceSessionData = RestrictedData<{
240
+ createVoiceSession: ICreateVoiceSessionData;
241
+ }, 'createVoiceSession'>;
242
+ export declare const CREATE_VOICE_SESSION: import("@apollo/client").DocumentNode;
243
+ export interface IEndVoiceSessionVars {
244
+ osceMarksheetId: Id;
245
+ }
246
+ export type IEnVoiceSessionData = RestrictedData<{
247
+ endVoiceSession: boolean;
248
+ }, 'endVoiceSession'>;
249
+ export declare const END_VOICE_SESSION: import("@apollo/client").DocumentNode;
@@ -413,3 +413,25 @@ export const optimisticSetOsceMarksheetFeedback = (marksheet, feedbackReaction)
413
413
  },
414
414
  },
415
415
  });
416
+ export const CREATE_VOICE_SESSION = gql `
417
+ mutation CreateVoiceSession(
418
+ $osceMarksheetId: Int!
419
+ $phase: OsceStationPhase!
420
+ ) {
421
+ restricted {
422
+ createVoiceSession(osceMarksheetId: $osceMarksheetId, phase: $phase) {
423
+ sessionId
424
+ roomName
425
+ url
426
+ token
427
+ }
428
+ }
429
+ }
430
+ `;
431
+ export const END_VOICE_SESSION = gql `
432
+ mutation EndVoiceSession($osceMarksheetId: Int!) {
433
+ restricted {
434
+ endVoiceSession(osceMarksheetId: $osceMarksheetId)
435
+ }
436
+ }
437
+ `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.6.246",
3
+ "version": "2.6.247",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",