quantum-component-library 1.4.64 → 1.4.66

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.
@@ -28,7 +28,7 @@ type Documents = {
28
28
  "\n fragment UserGroup on Group {\n id\n name\n imageUrl\n }\n": typeof types.UserGroupFragmentDoc;
29
29
  "\n fragment MetadataGroup on MetadataGroup {\n key\n data {\n ...MetadataItem\n }\n }\n": typeof types.MetadataGroupFragmentDoc;
30
30
  "\n fragment MetadataItem on MetadataItem {\n id\n label\n value\n sort\n }\n": typeof types.MetadataItemFragmentDoc;
31
- "\n fragment LibraryModuleAction on ModuleAction {\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n": typeof types.LibraryModuleActionFragmentDoc;
31
+ "\n fragment LibraryModuleAction on ModuleAction {\n id\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n": typeof types.LibraryModuleActionFragmentDoc;
32
32
  "\n fragment LibraryActionModule on ActionModule {\n id\n name\n description\n moduleActions {\n ...LibraryModuleAction\n }\n categories {\n ...LibraryModuleCategory\n }\n quantumOwned\n # metadataGroups can be empty if no metadata is associated with this module\n metadataGroups {\n ...MetadataGroup\n }\n }\n": typeof types.LibraryActionModuleFragmentDoc;
33
33
  "\n fragment LibraryModuleCategory on ModuleCategory {\n id\n name\n description\n sortOrder\n }\n": typeof types.LibraryModuleCategoryFragmentDoc;
34
34
  "\n fragment PoseTask on PoseTask {\n id\n taskId\n status\n attempts\n maxAttempts\n }\n": typeof types.PoseTaskFragmentDoc;
@@ -148,7 +148,7 @@ export declare function graphql(source: "\n fragment MetadataItem on MetadataIt
148
148
  /**
149
149
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
150
150
  */
151
- export declare function graphql(source: "\n fragment LibraryModuleAction on ModuleAction {\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n"): (typeof documents)["\n fragment LibraryModuleAction on ModuleAction {\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n"];
151
+ export declare function graphql(source: "\n fragment LibraryModuleAction on ModuleAction {\n id\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n"): (typeof documents)["\n fragment LibraryModuleAction on ModuleAction {\n id\n moduleId\n actionId\n sortOrder\n action {\n ...AssessmentAction\n }\n reportId\n report {\n ...Report\n }\n }\n"];
152
152
  /**
153
153
  * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
154
154
  */
@@ -62,6 +62,18 @@ export type Scalars = {
62
62
  output: any;
63
63
  };
64
64
  };
65
+ export type AcceptInvitationInput = {
66
+ firstName: Scalars['String']['input'];
67
+ lastName: Scalars['String']['input'];
68
+ password: Scalars['String']['input'];
69
+ token: Scalars['String']['input'];
70
+ username?: InputMaybe<Scalars['String']['input']>;
71
+ };
72
+ export type AcceptInvitationResult = {
73
+ __typename?: 'AcceptInvitationResult';
74
+ session: AuthSession;
75
+ user: CurrentUser;
76
+ };
65
77
  export type Action = {
66
78
  __typename?: 'Action';
67
79
  activityKind: ActionActivityKind;
@@ -211,14 +223,6 @@ export type ComparativeMetricInput = {
211
223
  valueA: Scalars['Float']['input'];
212
224
  valueB: Scalars['Float']['input'];
213
225
  };
214
- export type CompleteLoginChallengeInput = {
215
- address?: InputMaybe<Scalars['String']['input']>;
216
- gender?: InputMaybe<Scalars['String']['input']>;
217
- name?: InputMaybe<Scalars['String']['input']>;
218
- newPassword: Scalars['String']['input'];
219
- session: Scalars['String']['input'];
220
- username: Scalars['String']['input'];
221
- };
222
226
  export type CopyActionsInput = {
223
227
  actionIds: Array<Scalars['ID']['input']>;
224
228
  sourceGroupId: Scalars['ID']['input'];
@@ -235,7 +239,6 @@ export type CreateAccountInput = {
235
239
  groupId?: InputMaybe<Scalars['ID']['input']>;
236
240
  lastName: Scalars['String']['input'];
237
241
  password: Scalars['String']['input'];
238
- roles?: InputMaybe<Array<Scalars['String']['input']>>;
239
242
  username: Scalars['String']['input'];
240
243
  };
241
244
  export type CreateAccountResult = {
@@ -273,6 +276,13 @@ export type CreateAnalysisMetricInput = {
273
276
  export type CreateGroupInput = {
274
277
  name: Scalars['String']['input'];
275
278
  };
279
+ export type CreateInvitationInput = {
280
+ email: Scalars['String']['input'];
281
+ firstName?: InputMaybe<Scalars['String']['input']>;
282
+ groupId: Scalars['ID']['input'];
283
+ isAdmin?: InputMaybe<Scalars['Boolean']['input']>;
284
+ lastName?: InputMaybe<Scalars['String']['input']>;
285
+ };
276
286
  export type CreateKeypointGroupInput = {
277
287
  activity?: InputMaybe<Scalars['String']['input']>;
278
288
  keypoints: Array<KeypointInput>;
@@ -281,10 +291,11 @@ export type CreateKeypointGroupInput = {
281
291
  };
282
292
  export type CreateModuleInput = {
283
293
  actionReports?: InputMaybe<Array<ActionReportInModuleInput>>;
284
- actions: Array<Scalars['ID']['input']>;
294
+ actions?: InputMaybe<Array<Scalars['ID']['input']>>;
285
295
  categories?: InputMaybe<Array<Scalars['ID']['input']>>;
286
296
  description?: InputMaybe<Scalars['String']['input']>;
287
297
  metadataItemIds?: InputMaybe<Array<Scalars['ID']['input']>>;
298
+ moduleActions?: InputMaybe<Array<ModuleActionInput>>;
288
299
  name: Scalars['String']['input'];
289
300
  quantumOwned?: InputMaybe<Scalars['Boolean']['input']>;
290
301
  };
@@ -298,6 +309,12 @@ export type CreateSessionInput = {
298
309
  name?: InputMaybe<Scalars['String']['input']>;
299
310
  startedAt?: InputMaybe<Scalars['DateString']['input']>;
300
311
  };
312
+ export type CreateTeamInvitationInput = {
313
+ email: Scalars['String']['input'];
314
+ firstName?: InputMaybe<Scalars['String']['input']>;
315
+ isAccountAdmin?: InputMaybe<Scalars['Boolean']['input']>;
316
+ lastName?: InputMaybe<Scalars['String']['input']>;
317
+ };
301
318
  export type CreateTestAnalysisInput = {
302
319
  actionId?: InputMaybe<Scalars['ID']['input']>;
303
320
  actionSide?: InputMaybe<AnalysisActionSide>;
@@ -398,6 +415,44 @@ export type ImageMetric = {
398
415
  __typename?: 'ImageMetric';
399
416
  path: Scalars['String']['output'];
400
417
  };
418
+ export type Invitation = {
419
+ __typename?: 'Invitation';
420
+ createdAt: Scalars['String']['output'];
421
+ email: Scalars['String']['output'];
422
+ expiresAt: Scalars['String']['output'];
423
+ firstName?: Maybe<Scalars['String']['output']>;
424
+ groupId: Scalars['ID']['output'];
425
+ groupName?: Maybe<Scalars['String']['output']>;
426
+ id: Scalars['ID']['output'];
427
+ invitedBy?: Maybe<InvitationInviter>;
428
+ isAdmin: Scalars['Boolean']['output'];
429
+ lastName?: Maybe<Scalars['String']['output']>;
430
+ status: InvitationStatus;
431
+ type: InvitationType;
432
+ };
433
+ export type InvitationInviter = {
434
+ __typename?: 'InvitationInviter';
435
+ email: Scalars['String']['output'];
436
+ id: Scalars['ID']['output'];
437
+ username: Scalars['String']['output'];
438
+ };
439
+ export declare enum InvitationStatus {
440
+ Accepted = "ACCEPTED",
441
+ Cancelled = "CANCELLED",
442
+ Expired = "EXPIRED",
443
+ Pending = "PENDING"
444
+ }
445
+ export declare enum InvitationType {
446
+ AdminPortal = "ADMIN_PORTAL",
447
+ MobileAppAccess = "MOBILE_APP_ACCESS",
448
+ TeamMember = "TEAM_MEMBER"
449
+ }
450
+ export type InvitationValidation = {
451
+ __typename?: 'InvitationValidation';
452
+ errorMessage?: Maybe<Scalars['String']['output']>;
453
+ invitation?: Maybe<Invitation>;
454
+ valid: Scalars['Boolean']['output'];
455
+ };
401
456
  export type Keypoint = {
402
457
  __typename?: 'Keypoint';
403
458
  activityStep?: Maybe<Scalars['String']['output']>;
@@ -461,10 +516,8 @@ export type LoginInput = {
461
516
  };
462
517
  export type LoginResult = {
463
518
  __typename?: 'LoginResult';
464
- challengeName?: Maybe<Scalars['String']['output']>;
465
- challengeSession?: Maybe<Scalars['String']['output']>;
466
- session?: Maybe<AuthSession>;
467
- user?: Maybe<CurrentUser>;
519
+ session: AuthSession;
520
+ user: CurrentUser;
468
521
  };
469
522
  export type MetadataGroup = {
470
523
  __typename?: 'MetadataGroup';
@@ -491,11 +544,16 @@ export type ModuleAction = {
491
544
  __typename?: 'ModuleAction';
492
545
  action: Action;
493
546
  actionId: Scalars['ID']['output'];
547
+ id: Scalars['ID']['output'];
494
548
  moduleId: Scalars['ID']['output'];
495
549
  report?: Maybe<Report>;
496
550
  reportId?: Maybe<Scalars['ID']['output']>;
497
551
  sortOrder: Scalars['Int']['output'];
498
552
  };
553
+ export type ModuleActionInput = {
554
+ actionId: Scalars['ID']['input'];
555
+ reportId?: InputMaybe<Scalars['ID']['input']>;
556
+ };
499
557
  export type ModuleCategory = {
500
558
  __typename?: 'ModuleCategory';
501
559
  description?: Maybe<Scalars['String']['output']>;
@@ -512,14 +570,14 @@ export type MovementCoordinationReport = {
512
570
  };
513
571
  export type Mutation = {
514
572
  __typename?: 'Mutation';
515
- activateUser: Scalars['Boolean']['output'];
573
+ acceptInvitation: AcceptInvitationResult;
516
574
  addActionToModule: ActionModule;
517
575
  archiveUser: Scalars['Boolean']['output'];
576
+ assignActionToProfile: Scalars['Boolean']['output'];
577
+ assignRoutineToProfile: Scalars['Boolean']['output'];
518
578
  assignTestToRoutine: Scalars['Boolean']['output'];
519
- assignUserRole: Scalars['Boolean']['output'];
579
+ cancelInvitation: Scalars['Boolean']['output'];
520
580
  changePassword: Scalars['Boolean']['output'];
521
- completeLoginChallenge: LoginResult;
522
- confirmForgotPassword: Scalars['Boolean']['output'];
523
581
  convertActionToQuantumOwned: Action;
524
582
  copyActions: Scalars['Boolean']['output'];
525
583
  copyModules: Scalars['Boolean']['output'];
@@ -529,6 +587,7 @@ export type Mutation = {
529
587
  createGeneralActivityReport: GeneralActivityReport;
530
588
  createGeneralActivityTrial: Trial;
531
589
  createGroup: Group;
590
+ createInvitation: Invitation;
532
591
  createKeypointGroup: KeypointGroup;
533
592
  createModule: ActionModule;
534
593
  createMovementCoordinationReport: MovementCoordinationReport;
@@ -547,7 +606,6 @@ export type Mutation = {
547
606
  createTrial: Trial;
548
607
  createTrialParameter: TrialParameter;
549
608
  createUserProfile: UserProfile;
550
- deactivateUser: Scalars['Boolean']['output'];
551
609
  deleteAction: Scalars['Boolean']['output'];
552
610
  deleteModule: Scalars['Boolean']['output'];
553
611
  deleteRoutine: Scalars['Boolean']['output'];
@@ -558,14 +616,18 @@ export type Mutation = {
558
616
  deleteTrialParameter: Scalars['Boolean']['output'];
559
617
  deleteUserProfile: Scalars['Boolean']['output'];
560
618
  duplicateAction: Scalars['Boolean']['output'];
561
- forgotPassword: Scalars['Boolean']['output'];
619
+ inviteMobileAppUser: Scalars['Boolean']['output'];
620
+ inviteTeamMember: Invitation;
562
621
  login?: Maybe<LoginResult>;
563
622
  refresh: LoginResult;
564
623
  removeActionFromModule: ActionModule;
565
- removeUserRole: Scalars['Boolean']['output'];
624
+ removeMobileAppAccess: Scalars['Boolean']['output'];
566
625
  replaceTrialParameters: Array<TrialParameter>;
567
626
  requestPoseProcessing: Scalars['Boolean']['output'];
627
+ resendInvitation: Invitation;
568
628
  unarchiveUserProfile: UserProfile;
629
+ unassignActionFromProfile: Scalars['Boolean']['output'];
630
+ unassignRoutineFromProfile: Scalars['Boolean']['output'];
569
631
  updateAction: Action;
570
632
  updateGroup: Group;
571
633
  updateModule: ActionModule;
@@ -577,35 +639,35 @@ export type Mutation = {
577
639
  updateUserProfile: UserProfile;
578
640
  updateVideoDataOffset: TestFile;
579
641
  };
580
- export type MutationActivateUserArgs = {
581
- id: Scalars['ID']['input'];
642
+ export type MutationAcceptInvitationArgs = {
643
+ input: AcceptInvitationInput;
582
644
  };
583
645
  export type MutationAddActionToModuleArgs = {
584
646
  actionId: Scalars['ID']['input'];
585
647
  moduleId: Scalars['ID']['input'];
648
+ reportId?: InputMaybe<Scalars['ID']['input']>;
586
649
  };
587
650
  export type MutationArchiveUserArgs = {
588
651
  id: Scalars['ID']['input'];
589
652
  };
653
+ export type MutationAssignActionToProfileArgs = {
654
+ actionId: Scalars['ID']['input'];
655
+ profileId: Scalars['ID']['input'];
656
+ };
657
+ export type MutationAssignRoutineToProfileArgs = {
658
+ profileId: Scalars['ID']['input'];
659
+ routineId: Scalars['ID']['input'];
660
+ };
590
661
  export type MutationAssignTestToRoutineArgs = {
591
662
  routineId?: InputMaybe<Scalars['ID']['input']>;
592
663
  testId: Scalars['ID']['input'];
593
664
  };
594
- export type MutationAssignUserRoleArgs = {
595
- roleName: Scalars['String']['input'];
596
- userId: Scalars['ID']['input'];
665
+ export type MutationCancelInvitationArgs = {
666
+ invitationId: Scalars['ID']['input'];
597
667
  };
598
668
  export type MutationChangePasswordArgs = {
599
669
  input: ChangePasswordInput;
600
670
  };
601
- export type MutationCompleteLoginChallengeArgs = {
602
- input: CompleteLoginChallengeInput;
603
- };
604
- export type MutationConfirmForgotPasswordArgs = {
605
- code: Scalars['String']['input'];
606
- email: Scalars['String']['input'];
607
- newPassword: Scalars['String']['input'];
608
- };
609
671
  export type MutationConvertActionToQuantumOwnedArgs = {
610
672
  id: Scalars['ID']['input'];
611
673
  };
@@ -636,6 +698,9 @@ export type MutationCreateGeneralActivityTrialArgs = {
636
698
  export type MutationCreateGroupArgs = {
637
699
  input: CreateGroupInput;
638
700
  };
701
+ export type MutationCreateInvitationArgs = {
702
+ input: CreateInvitationInput;
703
+ };
639
704
  export type MutationCreateKeypointGroupArgs = {
640
705
  input: CreateKeypointGroupInput;
641
706
  };
@@ -696,9 +761,6 @@ export type MutationCreateTrialParameterArgs = {
696
761
  export type MutationCreateUserProfileArgs = {
697
762
  input: CreateUserProfileInput;
698
763
  };
699
- export type MutationDeactivateUserArgs = {
700
- id: Scalars['ID']['input'];
701
- };
702
764
  export type MutationDeleteActionArgs = {
703
765
  id: Scalars['ID']['input'];
704
766
  };
@@ -729,8 +791,12 @@ export type MutationDeleteUserProfileArgs = {
729
791
  export type MutationDuplicateActionArgs = {
730
792
  id: Scalars['ID']['input'];
731
793
  };
732
- export type MutationForgotPasswordArgs = {
794
+ export type MutationInviteMobileAppUserArgs = {
733
795
  email: Scalars['String']['input'];
796
+ profileId: Scalars['ID']['input'];
797
+ };
798
+ export type MutationInviteTeamMemberArgs = {
799
+ input: CreateTeamInvitationInput;
734
800
  };
735
801
  export type MutationLoginArgs = {
736
802
  input: LoginInput;
@@ -739,12 +805,11 @@ export type MutationRefreshArgs = {
739
805
  refreshToken: Scalars['String']['input'];
740
806
  };
741
807
  export type MutationRemoveActionFromModuleArgs = {
742
- actionId: Scalars['ID']['input'];
808
+ moduleActionId: Scalars['ID']['input'];
743
809
  moduleId: Scalars['ID']['input'];
744
810
  };
745
- export type MutationRemoveUserRoleArgs = {
746
- roleName: Scalars['String']['input'];
747
- userId: Scalars['ID']['input'];
811
+ export type MutationRemoveMobileAppAccessArgs = {
812
+ profileId: Scalars['ID']['input'];
748
813
  };
749
814
  export type MutationReplaceTrialParametersArgs = {
750
815
  input: Array<ReplaceTrialParameterInput>;
@@ -753,9 +818,20 @@ export type MutationReplaceTrialParametersArgs = {
753
818
  export type MutationRequestPoseProcessingArgs = {
754
819
  testFileId: Scalars['ID']['input'];
755
820
  };
821
+ export type MutationResendInvitationArgs = {
822
+ invitationId: Scalars['ID']['input'];
823
+ };
756
824
  export type MutationUnarchiveUserProfileArgs = {
757
825
  id: Scalars['ID']['input'];
758
826
  };
827
+ export type MutationUnassignActionFromProfileArgs = {
828
+ actionId: Scalars['ID']['input'];
829
+ profileId: Scalars['ID']['input'];
830
+ };
831
+ export type MutationUnassignRoutineFromProfileArgs = {
832
+ profileId: Scalars['ID']['input'];
833
+ routineId: Scalars['ID']['input'];
834
+ };
759
835
  export type MutationUpdateActionArgs = {
760
836
  id: Scalars['ID']['input'];
761
837
  input: UpdateActionInput;
@@ -851,6 +927,7 @@ export type Query = {
851
927
  group?: Maybe<Group>;
852
928
  groups: Array<Group>;
853
929
  historicalMetrics: Array<AnalysisMetric>;
930
+ invitations: Array<Invitation>;
854
931
  keypoints: Array<Keypoint>;
855
932
  me?: Maybe<CurrentUser>;
856
933
  module?: Maybe<ActionModule>;
@@ -867,12 +944,14 @@ export type Query = {
867
944
  sessionsCreatedByProfile: Array<Session>;
868
945
  sessionsForProfile: Array<Session>;
869
946
  stabilityBalanceReport?: Maybe<StabilityBalanceReport>;
947
+ teamInvitations: Array<Invitation>;
870
948
  testReport?: Maybe<TestReportUnion>;
871
949
  trial?: Maybe<Trial>;
872
950
  /** @deprecated This defaults to a report within a test, use the report-specific queries instead. */
873
951
  trialsForTest: Array<Trial>;
874
952
  useCases: Array<UseCase>;
875
953
  userProfile?: Maybe<UserProfile>;
954
+ validateInvitation: InvitationValidation;
876
955
  };
877
956
  export type QueryActionsArgs = {
878
957
  groupId?: InputMaybe<Scalars['ID']['input']>;
@@ -915,6 +994,9 @@ export type QueryHistoricalMetricsArgs = {
915
994
  start?: InputMaybe<Scalars['Date']['input']>;
916
995
  thresholdFilter?: InputMaybe<ThresholdFilter>;
917
996
  };
997
+ export type QueryInvitationsArgs = {
998
+ groupId: Scalars['ID']['input'];
999
+ };
918
1000
  export type QueryKeypointsArgs = {
919
1001
  keypointGroupId: Scalars['ID']['input'];
920
1002
  };
@@ -974,6 +1056,9 @@ export type QueryUseCasesArgs = {
974
1056
  export type QueryUserProfileArgs = {
975
1057
  id: Scalars['ID']['input'];
976
1058
  };
1059
+ export type QueryValidateInvitationArgs = {
1060
+ token: Scalars['String']['input'];
1061
+ };
977
1062
  export type RangeReport = {
978
1063
  __typename?: 'RangeReport';
979
1064
  averageParameterScores: Array<TestAverageParameterScore>;
@@ -1367,10 +1452,11 @@ export type UpdateGroupInput = {
1367
1452
  };
1368
1453
  export type UpdateModuleInput = {
1369
1454
  actionReports?: InputMaybe<Array<ActionReportInModuleInput>>;
1370
- actions: Array<Scalars['ID']['input']>;
1455
+ actions?: InputMaybe<Array<Scalars['ID']['input']>>;
1371
1456
  categories?: InputMaybe<Array<Scalars['ID']['input']>>;
1372
1457
  description?: InputMaybe<Scalars['String']['input']>;
1373
1458
  metadataItemIds?: InputMaybe<Array<Scalars['ID']['input']>>;
1459
+ moduleActions?: InputMaybe<Array<ModuleActionInput>>;
1374
1460
  name: Scalars['String']['input'];
1375
1461
  quantumOwned?: InputMaybe<Scalars['Boolean']['input']>;
1376
1462
  };
@@ -1435,15 +1521,19 @@ export type User = {
1435
1521
  export type UserProfile = {
1436
1522
  __typename?: 'UserProfile';
1437
1523
  age?: Maybe<Scalars['Int']['output']>;
1524
+ assignedActions: Array<Action>;
1525
+ assignedRoutines: Array<Routine>;
1438
1526
  createdAt: Scalars['Date']['output'];
1439
1527
  date_of_birth?: Maybe<Scalars['Date']['output']>;
1440
1528
  deletedAt?: Maybe<Scalars['Date']['output']>;
1441
1529
  firstName: Scalars['String']['output'];
1442
1530
  gender?: Maybe<Scalars['String']['output']>;
1443
1531
  group?: Maybe<GroupInfo>;
1532
+ hasMobileAccess: Scalars['Boolean']['output'];
1444
1533
  height?: Maybe<Scalars['Float']['output']>;
1445
1534
  id: Scalars['ID']['output'];
1446
1535
  lastName: Scalars['String']['output'];
1536
+ mobileAccessEmail?: Maybe<Scalars['String']['output']>;
1447
1537
  updatedAt: Scalars['Date']['output'];
1448
1538
  weight?: Maybe<Scalars['Float']['output']>;
1449
1539
  };
@@ -1837,6 +1927,7 @@ export type MetadataItemFragment = {
1837
1927
  };
1838
1928
  export type LibraryModuleActionFragment = {
1839
1929
  __typename?: 'ModuleAction';
1930
+ id: string;
1840
1931
  moduleId: string;
1841
1932
  actionId: string;
1842
1933
  sortOrder: number;