@reqquest/ui 1.9.1 → 1.11.0

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.
@@ -275,8 +275,12 @@ export type AppRequestStatus = 'ACCEPTANCE' | 'ACCEPTED' | 'APPROVAL' | 'APPROVE
275
275
  /** An application represents the applicant applying to a specific program. Each appRequest has multiple applications - one per program defined in the system. Some applications are mutually exclusive and/or will be eliminated early based on PREQUAL requirements, but they all technically exist in the data model - there is no concept of picking one application over another, just two applications where one dies and the other survives. */
276
276
  export interface Application {
277
277
  actions: ApplicationActions;
278
+ /** A brief description, written for applicants, of the program this application is for. */
279
+ applicantDescription: (Scalars['String'] | null);
278
280
  /** True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding. */
279
281
  awaitingCorrection: Scalars['Boolean'];
282
+ /** A prose summary of the applicant-side requirements of the program this application is for. Intended to be shown alongside statusReason when the application becomes ineligible before submission, since an applicant disqualified early may never have seen the program's prompts and the statusReason alone lacks context. */
283
+ eligibilityDescription: (Scalars['String'] | null);
280
284
  id: Scalars['ID'];
281
285
  /** The phase in which this application became ineligible for benefits. Useful for reporting / filtering. Null if the application is not (yet) ineligible. */
282
286
  ineligiblePhase: (IneligiblePhases | null);
@@ -291,6 +295,12 @@ export interface Application {
291
295
  /** The program key this application corresponds to. */
292
296
  programKey: Scalars['String'];
293
297
  requirements: ApplicationRequirement[];
298
+ /** The reason the application was rescinded */
299
+ rescindedReason: (Scalars['String'] | null);
300
+ /** The application rescinded status */
301
+ rescindedStatus: (ApplicationRescindedStatus | null);
302
+ /** The reason the application was restored after previously being rescinded */
303
+ restoredReason: (Scalars['String'] | null);
294
304
  status: ApplicationStatus;
295
305
  /** When one of the application's requirements is failing or throwing a warning, its reason will be copied here for convenience. If there is a warning and then later a failure, the failure reason will win. */
296
306
  statusReason: (Scalars['String'] | null);
@@ -304,6 +314,8 @@ export interface Application {
304
314
  }
305
315
  export interface ApplicationActions {
306
316
  advanceWorkflow: Scalars['Boolean'];
317
+ rescindApplication: Scalars['Boolean'];
318
+ restoreApplication: Scalars['Boolean'];
307
319
  reverseWorkflow: Scalars['Boolean'];
308
320
  viewAsReviewer: Scalars['Boolean'];
309
321
  __typename: 'ApplicationActions';
@@ -314,6 +326,7 @@ export interface ApplicationMetric {
314
326
  closed: Scalars['Float'];
315
327
  denied: Scalars['Float'];
316
328
  entries: ApplicationMetricEntry[];
329
+ rescinded: Scalars['Float'];
317
330
  started: Scalars['Float'];
318
331
  submitted: Scalars['Float'];
319
332
  toDecision: ApplicationMetricTiming;
@@ -381,6 +394,12 @@ export interface ApplicationRequirement {
381
394
  workflowStage: (PeriodWorkflowStage | null);
382
395
  __typename: 'ApplicationRequirement';
383
396
  }
397
+ /**
398
+ *
399
+ * The rescinded status of an application.
400
+ *
401
+ */
402
+ export type ApplicationRescindedStatus = 'RESCINDED' | 'RESTORED';
384
403
  /**
385
404
  *
386
405
  * The status of an application. This is usually a computed field, not stored in the database. The status
@@ -389,7 +408,7 @@ export interface ApplicationRequirement {
389
408
  * closure / cancellation.
390
409
  *
391
410
  */
392
- export type ApplicationStatus = 'ACCEPTED' | 'ELIGIBLE' | 'INELIGIBLE' | 'PENDING' | 'REJECTED';
411
+ export type ApplicationStatus = 'ACCEPTED' | 'ELIGIBLE' | 'INELIGIBLE' | 'PENDING' | 'REJECTED' | 'RESCINDED';
393
412
  export interface Category {
394
413
  /** This is indexed name of the category. Categories are indexed to allow for quick filtering of a list of items. e.g. institutionalRoles */
395
414
  category: Scalars['String'];
@@ -472,6 +491,10 @@ export interface Mutation {
472
491
  markPeriodReviewed: ValidatedPeriodResponse;
473
492
  /** Reopen the app request. This is only available if the app request is in a state that allows reopening. */
474
493
  reopenAppRequest: ValidatedAppRequestResponse;
494
+ /** Rescinds the approved and/or accepted application. */
495
+ rescind: ValidatedAppRequestResponse;
496
+ /** Restores a previously rescinded application to its previous state. */
497
+ restore: ValidatedAppRequestResponse;
475
498
  /** Return the app request to the applicant phase. This is only available if the app request is in a state that allows returning. */
476
499
  returnToApplicant: ValidatedAppRequestResponse;
477
500
  /** If request is complete, undo and return to non-blocking workflow. */
@@ -582,6 +605,10 @@ export interface PeriodActions {
582
605
  }
583
606
  export interface PeriodProgram {
584
607
  actions: PeriodProgramActions;
608
+ /** A brief description of the program, written for applicants. */
609
+ applicantDescription: (Scalars['String'] | null);
610
+ /** A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts. */
611
+ eligibilityDescription: (Scalars['String'] | null);
585
612
  /** Whether the program is enabled in this period. This is set by the system administrator. */
586
613
  enabled: Scalars['Boolean'];
587
614
  key: Scalars['ID'];
@@ -637,6 +664,10 @@ export interface PeriodWorkflowStage {
637
664
  __typename: 'PeriodWorkflowStage';
638
665
  }
639
666
  export interface Program {
667
+ /** A brief description of the program, written for applicants. */
668
+ applicantDescription: (Scalars['String'] | null);
669
+ /** A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts. */
670
+ eligibilityDescription: (Scalars['String'] | null);
640
671
  key: Scalars['ID'];
641
672
  navTitle: Scalars['String'];
642
673
  title: Scalars['String'];
@@ -1133,6 +1164,8 @@ export interface AppRequestFilter {
1133
1164
  /** Only return appRequests that are owned by the current user. */
1134
1165
  own?: (Scalars['Boolean'] | null);
1135
1166
  periodIds?: (Scalars['ID'][] | null);
1167
+ /** Only return appRequests where at least one application is in one of the given rescinded states. Rescinding is per-application, so this is independent of the appRequest status. */
1168
+ rescindedStatus?: (ApplicationRescindedStatus[] | null);
1136
1169
  /** Only return appRequests that have had their review started. true -> return review started, false -> return not started. Note that this is NOT mutually exclusive with complete or closed, it very simply means that a non-applicant has taken an action on it. */
1137
1170
  reviewStarted?: (Scalars['Boolean'] | null);
1138
1171
  /** Search for appRequests that match this search term. This will do a prefix search across all fields that are indexed. */
@@ -1182,8 +1215,12 @@ export interface AppRequestNoteFilters {
1182
1215
  /** An application represents the applicant applying to a specific program. Each appRequest has multiple applications - one per program defined in the system. Some applications are mutually exclusive and/or will be eliminated early based on PREQUAL requirements, but they all technically exist in the data model - there is no concept of picking one application over another, just two applications where one dies and the other survives. */
1183
1216
  export interface ApplicationGenqlSelection {
1184
1217
  actions?: ApplicationActionsGenqlSelection;
1218
+ /** A brief description, written for applicants, of the program this application is for. */
1219
+ applicantDescription?: boolean | number;
1185
1220
  /** True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding. */
1186
1221
  awaitingCorrection?: boolean | number;
1222
+ /** A prose summary of the applicant-side requirements of the program this application is for. Intended to be shown alongside statusReason when the application becomes ineligible before submission, since an applicant disqualified early may never have seen the program's prompts and the statusReason alone lacks context. */
1223
+ eligibilityDescription?: boolean | number;
1187
1224
  id?: boolean | number;
1188
1225
  /** The phase in which this application became ineligible for benefits. Useful for reporting / filtering. Null if the application is not (yet) ineligible. */
1189
1226
  ineligiblePhase?: boolean | number;
@@ -1198,6 +1235,12 @@ export interface ApplicationGenqlSelection {
1198
1235
  /** The program key this application corresponds to. */
1199
1236
  programKey?: boolean | number;
1200
1237
  requirements?: ApplicationRequirementGenqlSelection;
1238
+ /** The reason the application was rescinded */
1239
+ rescindedReason?: boolean | number;
1240
+ /** The application rescinded status */
1241
+ rescindedStatus?: boolean | number;
1242
+ /** The reason the application was restored after previously being rescinded */
1243
+ restoredReason?: boolean | number;
1201
1244
  status?: boolean | number;
1202
1245
  /** When one of the application's requirements is failing or throwing a warning, its reason will be copied here for convenience. If there is a warning and then later a failure, the failure reason will win. */
1203
1246
  statusReason?: boolean | number;
@@ -1212,6 +1255,8 @@ export interface ApplicationGenqlSelection {
1212
1255
  }
1213
1256
  export interface ApplicationActionsGenqlSelection {
1214
1257
  advanceWorkflow?: boolean | number;
1258
+ rescindApplication?: boolean | number;
1259
+ restoreApplication?: boolean | number;
1215
1260
  reverseWorkflow?: boolean | number;
1216
1261
  viewAsReviewer?: boolean | number;
1217
1262
  __typename?: boolean | number;
@@ -1223,6 +1268,7 @@ export interface ApplicationMetricGenqlSelection {
1223
1268
  closed?: boolean | number;
1224
1269
  denied?: boolean | number;
1225
1270
  entries?: ApplicationMetricEntryGenqlSelection;
1271
+ rescinded?: boolean | number;
1226
1272
  started?: boolean | number;
1227
1273
  submitted?: boolean | number;
1228
1274
  toDecision?: ApplicationMetricTimingGenqlSelection;
@@ -1493,6 +1539,22 @@ export interface MutationGenqlSelection {
1493
1539
  appRequestId: Scalars['ID'];
1494
1540
  };
1495
1541
  });
1542
+ /** Rescinds the approved and/or accepted application. */
1543
+ rescind?: (ValidatedAppRequestResponseGenqlSelection & {
1544
+ __args: {
1545
+ applicationId: Scalars['ID'];
1546
+ reason: Scalars['String'];
1547
+ validateOnly?: (Scalars['Boolean'] | null);
1548
+ };
1549
+ });
1550
+ /** Restores a previously rescinded application to its previous state. */
1551
+ restore?: (ValidatedAppRequestResponseGenqlSelection & {
1552
+ __args: {
1553
+ applicationId: Scalars['ID'];
1554
+ reason: Scalars['String'];
1555
+ validateOnly?: (Scalars['Boolean'] | null);
1556
+ };
1557
+ });
1496
1558
  /** Return the app request to the applicant phase. This is only available if the app request is in a state that allows returning. */
1497
1559
  returnToApplicant?: (ValidatedAppRequestResponseGenqlSelection & {
1498
1560
  __args: {
@@ -1734,6 +1796,10 @@ export interface PeriodFilters {
1734
1796
  }
1735
1797
  export interface PeriodProgramGenqlSelection {
1736
1798
  actions?: PeriodProgramActionsGenqlSelection;
1799
+ /** A brief description of the program, written for applicants. */
1800
+ applicantDescription?: boolean | number;
1801
+ /** A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts. */
1802
+ eligibilityDescription?: boolean | number;
1737
1803
  /** Whether the program is enabled in this period. This is set by the system administrator. */
1738
1804
  enabled?: boolean | number;
1739
1805
  key?: boolean | number;
@@ -1801,6 +1867,10 @@ export interface PeriodWorkflowStageGenqlSelection {
1801
1867
  __scalar?: boolean | number;
1802
1868
  }
1803
1869
  export interface ProgramGenqlSelection {
1870
+ /** A brief description of the program, written for applicants. */
1871
+ applicantDescription?: boolean | number;
1872
+ /** A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts. */
1873
+ eligibilityDescription?: boolean | number;
1804
1874
  key?: boolean | number;
1805
1875
  navTitle?: boolean | number;
1806
1876
  title?: boolean | number;
@@ -2215,12 +2285,17 @@ export declare const enumApplicationPhase: {
2215
2285
  WORKFLOW_BLOCKING: "WORKFLOW_BLOCKING";
2216
2286
  WORKFLOW_NONBLOCKING: "WORKFLOW_NONBLOCKING";
2217
2287
  };
2288
+ export declare const enumApplicationRescindedStatus: {
2289
+ RESCINDED: "RESCINDED";
2290
+ RESTORED: "RESTORED";
2291
+ };
2218
2292
  export declare const enumApplicationStatus: {
2219
2293
  ACCEPTED: "ACCEPTED";
2220
2294
  ELIGIBLE: "ELIGIBLE";
2221
2295
  INELIGIBLE: "INELIGIBLE";
2222
2296
  PENDING: "PENDING";
2223
2297
  REJECTED: "REJECTED";
2298
+ RESCINDED: "RESCINDED";
2224
2299
  };
2225
2300
  export declare const enumIneligiblePhases: {
2226
2301
  ACCEPTANCE: "ACCEPTANCE";
@@ -533,6 +533,11 @@ input AppRequestFilter {
533
533
  own: Boolean
534
534
  periodIds: [ID!]
535
535
 
536
+ """
537
+ Only return appRequests where at least one application is in one of the given rescinded states. Rescinding is per-application, so this is independent of the appRequest status.
538
+ """
539
+ rescindedStatus: [ApplicationRescindedStatus!]
540
+
536
541
  """
537
542
  Only return appRequests that have had their review started. true -> return review started, false -> return not started. Note that this is NOT mutually exclusive with complete or closed, it very simply means that a non-applicant has taken an action on it.
538
543
  """
@@ -749,10 +754,20 @@ An application represents the applicant applying to a specific program. Each app
749
754
  type Application {
750
755
  actions: ApplicationActions!
751
756
 
757
+ """
758
+ A brief description, written for applicants, of the program this application is for.
759
+ """
760
+ applicantDescription: String
761
+
752
762
  """
753
763
  True when at least one reachable prompt on this application has been invalidated and must be re-answered. Status is still computed from the answers on file, so pair status displays with this flag to indicate that a correction is outstanding.
754
764
  """
755
765
  awaitingCorrection: Boolean!
766
+
767
+ """
768
+ A prose summary of the applicant-side requirements of the program this application is for. Intended to be shown alongside statusReason when the application becomes ineligible before submission, since an applicant disqualified early may never have seen the program's prompts and the statusReason alone lacks context.
769
+ """
770
+ eligibilityDescription: String
756
771
  id: ID!
757
772
 
758
773
  """
@@ -781,6 +796,17 @@ type Application {
781
796
  """The program key this application corresponds to."""
782
797
  programKey: String!
783
798
  requirements: [ApplicationRequirement!]!
799
+
800
+ """The reason the application was rescinded"""
801
+ rescindedReason: String
802
+
803
+ """The application rescinded status"""
804
+ rescindedStatus: ApplicationRescindedStatus
805
+
806
+ """
807
+ The reason the application was restored after previously being rescinded
808
+ """
809
+ restoredReason: String
784
810
  status: ApplicationStatus!
785
811
 
786
812
  """
@@ -804,6 +830,8 @@ type Application {
804
830
 
805
831
  type ApplicationActions {
806
832
  advanceWorkflow: Boolean!
833
+ rescindApplication: Boolean!
834
+ restoreApplication: Boolean!
807
835
  reverseWorkflow: Boolean!
808
836
  viewAsReviewer: Boolean!
809
837
  }
@@ -814,6 +842,7 @@ type ApplicationMetric {
814
842
  closed: Float!
815
843
  denied: Float!
816
844
  entries: [ApplicationMetricEntry!]!
845
+ rescinded: Float!
817
846
  started: Float!
818
847
  submitted: Float!
819
848
  toDecision: ApplicationMetricTiming!
@@ -977,6 +1006,19 @@ type ApplicationRequirement {
977
1006
  workflowStage: PeriodWorkflowStage
978
1007
  }
979
1008
 
1009
+ "\n The rescinded status of an application.\n "
1010
+ enum ApplicationRescindedStatus {
1011
+ """
1012
+ The application has been rescinded (pulled back from applicant) post approval.
1013
+ """
1014
+ RESCINDED
1015
+
1016
+ """
1017
+ The application, which was previously rescinded, has now been restored to its state prior to rescinding.
1018
+ """
1019
+ RESTORED
1020
+ }
1021
+
980
1022
  "\n The status of an application. This is usually a computed field, not stored in the database. The status\n is computed based on the status of the appRequest and of the requirements for the program. If\n the appRequest is CLOSED or CANCELLED, this status will remain frozen wherever it was before the\n closure / cancellation.\n "
981
1023
  enum ApplicationStatus {
982
1024
  """
@@ -1003,6 +1045,11 @@ enum ApplicationStatus {
1003
1045
  An offer was made to the applicant and at least one ACCEPTANCE requirement is not met (the applicant rejected the offer).
1004
1046
  """
1005
1047
  REJECTED
1048
+
1049
+ """
1050
+ The application has been rescinded (pulled back from applicant) post approval.
1051
+ """
1052
+ RESCINDED
1006
1053
  }
1007
1054
 
1008
1055
  type Category {
@@ -1281,6 +1328,12 @@ type Mutation {
1281
1328
  """
1282
1329
  reopenAppRequest(appRequestId: ID!): ValidatedAppRequestResponse!
1283
1330
 
1331
+ """Rescinds the approved and/or accepted application."""
1332
+ rescind(applicationId: ID!, reason: String!, validateOnly: Boolean): ValidatedAppRequestResponse!
1333
+
1334
+ """Restores a previously rescinded application to its previous state."""
1335
+ restore(applicationId: ID!, reason: String!, validateOnly: Boolean): ValidatedAppRequestResponse!
1336
+
1284
1337
  """
1285
1338
  Return the app request to the applicant phase. This is only available if the app request is in a state that allows returning.
1286
1339
  """
@@ -1518,6 +1571,14 @@ input PeriodFilters {
1518
1571
  type PeriodProgram {
1519
1572
  actions: PeriodProgramActions!
1520
1573
 
1574
+ """A brief description of the program, written for applicants."""
1575
+ applicantDescription: String
1576
+
1577
+ """
1578
+ A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts.
1579
+ """
1580
+ eligibilityDescription: String
1581
+
1521
1582
  """
1522
1583
  Whether the program is enabled in this period. This is set by the system administrator.
1523
1584
  """
@@ -1619,6 +1680,13 @@ type PeriodWorkflowStage {
1619
1680
  }
1620
1681
 
1621
1682
  type Program {
1683
+ """A brief description of the program, written for applicants."""
1684
+ applicantDescription: String
1685
+
1686
+ """
1687
+ A prose summary of the applicant-side requirements of the program. Intended to be shown to applicants who become ineligible before submission, since they may never have seen the program's prompts.
1688
+ """
1689
+ eligibilityDescription: String
1622
1690
  key: ID!
1623
1691
  navTitle: String!
1624
1692
  title: String!
@@ -366,12 +366,17 @@ export const enumApplicationPhase = {
366
366
  WORKFLOW_BLOCKING: 'WORKFLOW_BLOCKING',
367
367
  WORKFLOW_NONBLOCKING: 'WORKFLOW_NONBLOCKING'
368
368
  };
369
+ export const enumApplicationRescindedStatus = {
370
+ RESCINDED: 'RESCINDED',
371
+ RESTORED: 'RESTORED'
372
+ };
369
373
  export const enumApplicationStatus = {
370
374
  ACCEPTED: 'ACCEPTED',
371
375
  ELIGIBLE: 'ELIGIBLE',
372
376
  INELIGIBLE: 'INELIGIBLE',
373
377
  PENDING: 'PENDING',
374
- REJECTED: 'REJECTED'
378
+ REJECTED: 'REJECTED',
379
+ RESCINDED: 'RESCINDED'
375
380
  };
376
381
  export const enumIneligiblePhases = {
377
382
  ACCEPTANCE: 'ACCEPTANCE',
@@ -246,6 +246,7 @@ declare const _default: {
246
246
  logins: number[];
247
247
  own: number[];
248
248
  periodIds: number[];
249
+ rescindedStatus: number[];
249
250
  reviewStarted: number[];
250
251
  search: number[];
251
252
  status: number[];
@@ -282,7 +283,9 @@ declare const _default: {
282
283
  AppRequestStatus: {};
283
284
  Application: {
284
285
  actions: number[];
286
+ applicantDescription: number[];
285
287
  awaitingCorrection: number[];
288
+ eligibilityDescription: number[];
286
289
  id: number[];
287
290
  ineligiblePhase: number[];
288
291
  navTitle: number[];
@@ -291,6 +294,9 @@ declare const _default: {
291
294
  previousWorkflowStage: number[];
292
295
  programKey: number[];
293
296
  requirements: number[];
297
+ rescindedReason: number[];
298
+ rescindedStatus: number[];
299
+ restoredReason: number[];
294
300
  status: number[];
295
301
  statusReason: number[];
296
302
  title: number[];
@@ -300,6 +306,8 @@ declare const _default: {
300
306
  };
301
307
  ApplicationActions: {
302
308
  advanceWorkflow: number[];
309
+ rescindApplication: number[];
310
+ restoreApplication: number[];
303
311
  reverseWorkflow: number[];
304
312
  viewAsReviewer: number[];
305
313
  __typename: number[];
@@ -309,6 +317,7 @@ declare const _default: {
309
317
  closed: number[];
310
318
  denied: number[];
311
319
  entries: number[];
320
+ rescinded: number[];
312
321
  started: number[];
313
322
  submitted: number[];
314
323
  toDecision: number[];
@@ -359,6 +368,7 @@ declare const _default: {
359
368
  workflowStage: number[];
360
369
  __typename: number[];
361
370
  };
371
+ ApplicationRescindedStatus: {};
362
372
  ApplicationStatus: {};
363
373
  Boolean: {};
364
374
  Category: {
@@ -491,6 +501,16 @@ declare const _default: {
491
501
  reopenAppRequest: (number | {
492
502
  appRequestId: (string | number)[];
493
503
  })[];
504
+ rescind: (number | {
505
+ applicationId: (string | number)[];
506
+ reason: (string | number)[];
507
+ validateOnly: number[];
508
+ })[];
509
+ restore: (number | {
510
+ applicationId: (string | number)[];
511
+ reason: (string | number)[];
512
+ validateOnly: number[];
513
+ })[];
494
514
  returnToApplicant: (number | {
495
515
  appRequestId: (string | number)[];
496
516
  })[];
@@ -648,6 +668,8 @@ declare const _default: {
648
668
  };
649
669
  PeriodProgram: {
650
670
  actions: number[];
671
+ applicantDescription: number[];
672
+ eligibilityDescription: number[];
651
673
  enabled: number[];
652
674
  key: number[];
653
675
  navTitle: number[];
@@ -695,6 +717,8 @@ declare const _default: {
695
717
  __typename: number[];
696
718
  };
697
719
  Program: {
720
+ applicantDescription: number[];
721
+ eligibilityDescription: number[];
698
722
  key: number[];
699
723
  navTitle: number[];
700
724
  title: number[];