@reqquest/ui 1.2.1 → 1.3.1
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/components/CommentCard.svelte +3 -2
- package/dist/components/CommentCard.svelte.d.ts +1 -1
- package/dist/registry.d.ts +10 -1
- package/dist/registry.js +2 -0
- package/dist/typed-client/schema.d.ts +138 -1
- package/dist/typed-client/schema.graphql +120 -1
- package/dist/typed-client/schema.js +18 -0
- package/dist/typed-client/types.d.ts +64 -0
- package/dist/typed-client/types.js +674 -506
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { DateTime } from 'luxon'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
6
|
+
* The TEXT content of the comment.
|
|
7
7
|
* @type {string}
|
|
8
8
|
*/
|
|
9
9
|
export let content: string
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
|
|
45
45
|
<div class="comment-card">
|
|
46
46
|
<div class="comment-box" class:noborder class:hasactions={actions.length > 0}>
|
|
47
|
-
<div class="comment-content">{
|
|
47
|
+
<div class="comment-content"><p>{content}</p></div>
|
|
48
48
|
{#if actions.length}
|
|
49
49
|
<div class="comment-actions">
|
|
50
50
|
<ActionSet {actions} noPrimaryAction small forceOverflow />
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
.comment-content :global(p) {
|
|
82
82
|
margin: 0;
|
|
83
83
|
font-size: 100%;
|
|
84
|
+
white-space: pre-line;
|
|
84
85
|
}
|
|
85
86
|
.comment-actions {
|
|
86
87
|
position: absolute;
|
|
@@ -15,7 +15,7 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
|
|
|
15
15
|
}
|
|
16
16
|
declare const CommentCard: $$__sveltets_2_IsomorphicComponent<{
|
|
17
17
|
/**
|
|
18
|
-
* The
|
|
18
|
+
* The TEXT content of the comment.
|
|
19
19
|
* @type {string}
|
|
20
20
|
*/ content: string;
|
|
21
21
|
/**
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LayoutStructureNode, LayoutStructureNodeRoot } from '@txstate-mws/carbon-svelte';
|
|
1
|
+
import type { LayoutStructureNode, LayoutStructureNodeRoot, UserProfile } from '@txstate-mws/carbon-svelte';
|
|
2
2
|
import type { Component } from 'svelte';
|
|
3
3
|
export interface ProgramDefinition {
|
|
4
4
|
/**
|
|
@@ -125,6 +125,14 @@ export interface UIConfig {
|
|
|
125
125
|
programs: ProgramDefinition[];
|
|
126
126
|
requirements: RequirementDefinition[];
|
|
127
127
|
prompts: PromptDefinition[];
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @param login
|
|
131
|
+
* @returns UserProfile | undefined
|
|
132
|
+
* UserLookup is required to support impersonation search functionality. If you want to support impersonation,
|
|
133
|
+
* provide a function here that takes a login and returns the user's profile. If you don't need impersonation, you can leave this out.
|
|
134
|
+
*/
|
|
135
|
+
userLookup?: (login: string) => Promise<UserProfile | undefined>;
|
|
128
136
|
appName: string;
|
|
129
137
|
applicantDashboardTitle?: string;
|
|
130
138
|
applicantDashboardNavTitle?: string;
|
|
@@ -205,6 +213,7 @@ export declare class UIRegistry {
|
|
|
205
213
|
protected promptMap: Record<string, PromptDefinition>;
|
|
206
214
|
protected requirementMap: Record<string, RequirementDefinition>;
|
|
207
215
|
protected programMap: Record<string, ProgramDefinition>;
|
|
216
|
+
protected userLookup?: (login: string) => Promise<UserProfile | undefined>;
|
|
208
217
|
protected lang: Required<Terminologies>;
|
|
209
218
|
protected plural: Required<Terminologies>;
|
|
210
219
|
constructor(config: UIConfig);
|
package/dist/registry.js
CHANGED
|
@@ -4,6 +4,7 @@ export class UIRegistry {
|
|
|
4
4
|
promptMap = {};
|
|
5
5
|
requirementMap = {};
|
|
6
6
|
programMap = {};
|
|
7
|
+
userLookup;
|
|
7
8
|
lang;
|
|
8
9
|
plural;
|
|
9
10
|
constructor(config) {
|
|
@@ -14,6 +15,7 @@ export class UIRegistry {
|
|
|
14
15
|
this.requirementMap[requirement.key] = requirement;
|
|
15
16
|
for (const program of config.programs)
|
|
16
17
|
this.programMap[program.key] = program;
|
|
18
|
+
this.userLookup = config.userLookup;
|
|
17
19
|
this.lang = {
|
|
18
20
|
appRequest: config.terminology?.appRequest ?? (config.programs.length > 1 ? 'App Request' : 'Application'),
|
|
19
21
|
login: config.terminology?.login ?? 'Login',
|
|
@@ -22,6 +22,8 @@ export interface Access {
|
|
|
22
22
|
viewAppRequestList: Scalars['Boolean'];
|
|
23
23
|
/** Current user is permitted to view the applicant dashboard. */
|
|
24
24
|
viewApplicantDashboard: Scalars['Boolean'];
|
|
25
|
+
/** Current user is permitted to view the metrics UI. */
|
|
26
|
+
viewMetrics: Scalars['Boolean'];
|
|
25
27
|
/** Current user is permitted to view the period management UI. */
|
|
26
28
|
viewPeriodManagement: Scalars['Boolean'];
|
|
27
29
|
/** Current user is permitted to view the reviewer dashboard. */
|
|
@@ -301,6 +303,44 @@ export interface ApplicationActions {
|
|
|
301
303
|
viewAsReviewer: Scalars['Boolean'];
|
|
302
304
|
__typename: 'ApplicationActions';
|
|
303
305
|
}
|
|
306
|
+
/** Calculated application metrics */
|
|
307
|
+
export interface ApplicationMetric {
|
|
308
|
+
approved: Scalars['Float'];
|
|
309
|
+
closed: Scalars['Float'];
|
|
310
|
+
denied: Scalars['Float'];
|
|
311
|
+
entries: ApplicationMetricEntry[];
|
|
312
|
+
started: Scalars['Float'];
|
|
313
|
+
submitted: Scalars['Float'];
|
|
314
|
+
toDecision: ApplicationMetricTiming;
|
|
315
|
+
toSubmit: ApplicationMetricTiming;
|
|
316
|
+
__typename: 'ApplicationMetric';
|
|
317
|
+
}
|
|
318
|
+
/** Application metric entry */
|
|
319
|
+
export interface ApplicationMetricEntry {
|
|
320
|
+
applicantFullname: Scalars['String'];
|
|
321
|
+
applicantId: Scalars['ID'];
|
|
322
|
+
applicantLogin: Scalars['String'];
|
|
323
|
+
applicationId: Scalars['ID'];
|
|
324
|
+
closedAt: (Scalars['DateTime'] | null);
|
|
325
|
+
createdAt: Scalars['DateTime'];
|
|
326
|
+
ineligiblePhase: (Scalars['String'] | null);
|
|
327
|
+
periodCode: Scalars['String'];
|
|
328
|
+
periodId: Scalars['ID'];
|
|
329
|
+
periodName: Scalars['String'];
|
|
330
|
+
phase: Scalars['String'];
|
|
331
|
+
programKey: Scalars['String'];
|
|
332
|
+
status: Scalars['String'];
|
|
333
|
+
submittedAt: (Scalars['DateTime'] | null);
|
|
334
|
+
updatedAt: Scalars['DateTime'];
|
|
335
|
+
__typename: 'ApplicationMetricEntry';
|
|
336
|
+
}
|
|
337
|
+
/** Application metric timings */
|
|
338
|
+
export interface ApplicationMetricTiming {
|
|
339
|
+
avg: (Scalars['Float'] | null);
|
|
340
|
+
max: (Scalars['Float'] | null);
|
|
341
|
+
min: (Scalars['Float'] | null);
|
|
342
|
+
__typename: 'ApplicationMetricTiming';
|
|
343
|
+
}
|
|
304
344
|
/**
|
|
305
345
|
*
|
|
306
346
|
* The phase of the application. This is usually a computed field, not stored in the database. The phase
|
|
@@ -613,6 +653,7 @@ export interface Query {
|
|
|
613
653
|
appRequestActivity: AppRequestActivity[];
|
|
614
654
|
appRequestIndexes: IndexCategory[];
|
|
615
655
|
appRequests: AppRequest[];
|
|
656
|
+
applicationMetrics: ApplicationMetric;
|
|
616
657
|
/** This is where you get information about the authorization system. Each grant will be associated with one of these controlGroups, one or more controls in the group, and an optional set of tags. The tags are used to limit the scope of the grant. */
|
|
617
658
|
controlGroups: AccessControlGroup[];
|
|
618
659
|
countAppRequests: Scalars['Int'];
|
|
@@ -693,7 +734,8 @@ export interface ValidatedConfigurationResponse {
|
|
|
693
734
|
}
|
|
694
735
|
export interface ValidatedNoteResponse {
|
|
695
736
|
messages: MutationMessage[];
|
|
696
|
-
note
|
|
737
|
+
/** The created or updated note. Null when validateOnly was true or when validation errors prevented the operation. */
|
|
738
|
+
note: (Note | null);
|
|
697
739
|
/** True if the mutation succeeded (e.g. saved data or passed validation), even if there were warnings. */
|
|
698
740
|
success: Scalars['Boolean'];
|
|
699
741
|
__typename: 'ValidatedNoteResponse';
|
|
@@ -726,6 +768,8 @@ export interface AccessGenqlSelection {
|
|
|
726
768
|
viewAppRequestList?: boolean | number;
|
|
727
769
|
/** Current user is permitted to view the applicant dashboard. */
|
|
728
770
|
viewApplicantDashboard?: boolean | number;
|
|
771
|
+
/** Current user is permitted to view the metrics UI. */
|
|
772
|
+
viewMetrics?: boolean | number;
|
|
729
773
|
/** Current user is permitted to view the period management UI. */
|
|
730
774
|
viewPeriodManagement?: boolean | number;
|
|
731
775
|
/** Current user is permitted to view the reviewer dashboard. */
|
|
@@ -1161,6 +1205,47 @@ export interface ApplicationActionsGenqlSelection {
|
|
|
1161
1205
|
__typename?: boolean | number;
|
|
1162
1206
|
__scalar?: boolean | number;
|
|
1163
1207
|
}
|
|
1208
|
+
/** Calculated application metrics */
|
|
1209
|
+
export interface ApplicationMetricGenqlSelection {
|
|
1210
|
+
approved?: boolean | number;
|
|
1211
|
+
closed?: boolean | number;
|
|
1212
|
+
denied?: boolean | number;
|
|
1213
|
+
entries?: ApplicationMetricEntryGenqlSelection;
|
|
1214
|
+
started?: boolean | number;
|
|
1215
|
+
submitted?: boolean | number;
|
|
1216
|
+
toDecision?: ApplicationMetricTimingGenqlSelection;
|
|
1217
|
+
toSubmit?: ApplicationMetricTimingGenqlSelection;
|
|
1218
|
+
__typename?: boolean | number;
|
|
1219
|
+
__scalar?: boolean | number;
|
|
1220
|
+
}
|
|
1221
|
+
/** Application metric entry */
|
|
1222
|
+
export interface ApplicationMetricEntryGenqlSelection {
|
|
1223
|
+
applicantFullname?: boolean | number;
|
|
1224
|
+
applicantId?: boolean | number;
|
|
1225
|
+
applicantLogin?: boolean | number;
|
|
1226
|
+
applicationId?: boolean | number;
|
|
1227
|
+
closedAt?: boolean | number;
|
|
1228
|
+
createdAt?: boolean | number;
|
|
1229
|
+
ineligiblePhase?: boolean | number;
|
|
1230
|
+
periodCode?: boolean | number;
|
|
1231
|
+
periodId?: boolean | number;
|
|
1232
|
+
periodName?: boolean | number;
|
|
1233
|
+
phase?: boolean | number;
|
|
1234
|
+
programKey?: boolean | number;
|
|
1235
|
+
status?: boolean | number;
|
|
1236
|
+
submittedAt?: boolean | number;
|
|
1237
|
+
updatedAt?: boolean | number;
|
|
1238
|
+
__typename?: boolean | number;
|
|
1239
|
+
__scalar?: boolean | number;
|
|
1240
|
+
}
|
|
1241
|
+
/** Application metric timings */
|
|
1242
|
+
export interface ApplicationMetricTimingGenqlSelection {
|
|
1243
|
+
avg?: boolean | number;
|
|
1244
|
+
max?: boolean | number;
|
|
1245
|
+
min?: boolean | number;
|
|
1246
|
+
__typename?: boolean | number;
|
|
1247
|
+
__scalar?: boolean | number;
|
|
1248
|
+
}
|
|
1164
1249
|
/** The specific instance of a requirement on a particular application. Stores the status of the requirement, e.g. being satisfied or not. */
|
|
1165
1250
|
export interface ApplicationRequirementGenqlSelection {
|
|
1166
1251
|
application?: ApplicationGenqlSelection;
|
|
@@ -1272,6 +1357,42 @@ export interface IndexValueGenqlSelection {
|
|
|
1272
1357
|
__typename?: boolean | number;
|
|
1273
1358
|
__scalar?: boolean | number;
|
|
1274
1359
|
}
|
|
1360
|
+
export interface MetricAccessUserFilters {
|
|
1361
|
+
/** Return application metrics from users that have any of these fullnames. */
|
|
1362
|
+
fullnames?: (Scalars['String'][] | null);
|
|
1363
|
+
/** Return application metrics from users that have any of these IDs. */
|
|
1364
|
+
ids?: (Scalars['ID'][] | null);
|
|
1365
|
+
/** Return application metrics from users that have any of these logins. */
|
|
1366
|
+
logins?: (Scalars['String'][] | null);
|
|
1367
|
+
}
|
|
1368
|
+
export interface MetricApplicationFilters {
|
|
1369
|
+
/** Return application metrics from applicants that match any of these filters. */
|
|
1370
|
+
applicants?: (MetricAccessUserFilters | null);
|
|
1371
|
+
/** Return application metrics for applications that have any of these IDs. */
|
|
1372
|
+
applicationIds?: (Scalars['ID'][] | null);
|
|
1373
|
+
/** Return application metrics for applications that were closed after this date. */
|
|
1374
|
+
closedAfterDateTime?: (Scalars['DateTime'] | null);
|
|
1375
|
+
/** Return application metrics for applications that were closed before this date. */
|
|
1376
|
+
closedBeforeDateTime?: (Scalars['DateTime'] | null);
|
|
1377
|
+
/** Return application metrics from periods that match any of these filters. */
|
|
1378
|
+
periods?: (MetricPeriodFilters | null);
|
|
1379
|
+
/** Return application metrics for applications that started after this date. */
|
|
1380
|
+
startedAfterDateTime?: (Scalars['DateTime'] | null);
|
|
1381
|
+
/** Return application metrics for applications that started before this date. */
|
|
1382
|
+
startedBeforeDateTime?: (Scalars['DateTime'] | null);
|
|
1383
|
+
/** Return application metrics for applications that were submitted after this date. */
|
|
1384
|
+
submittedAfterDateTime?: (Scalars['DateTime'] | null);
|
|
1385
|
+
/** Return application metrics for applications that were submitted before this date. */
|
|
1386
|
+
submittedBeforeDateTime?: (Scalars['DateTime'] | null);
|
|
1387
|
+
}
|
|
1388
|
+
export interface MetricPeriodFilters {
|
|
1389
|
+
/** Return application metrics from periods that have any of these codes. */
|
|
1390
|
+
codes?: (Scalars['String'][] | null);
|
|
1391
|
+
/** Return application metrics from periods that have any of these IDs. */
|
|
1392
|
+
ids?: (Scalars['ID'][] | null);
|
|
1393
|
+
/** Return rapplication metrics from periods that have any of these names. */
|
|
1394
|
+
names?: (Scalars['String'][] | null);
|
|
1395
|
+
}
|
|
1275
1396
|
export interface MutationGenqlSelection {
|
|
1276
1397
|
/** This is for the applicant to accept or reject the offer that was made based on their app request. The difference between accept and reject is determined by the status of the acceptance requirements. They will still "accept offer" after they answer that they do not want the offer. If there is non-blocking workflow on any applications, the first one in each will begin. Applications without non-blocking workflow will be advanced to the COMPLETE phase. If all applications are complete, the app request will be closed. */
|
|
1277
1398
|
acceptOffer?: (ValidatedAppRequestResponseGenqlSelection & {
|
|
@@ -1282,6 +1403,7 @@ export interface MutationGenqlSelection {
|
|
|
1282
1403
|
/** Add a note to the app request. */
|
|
1283
1404
|
addNote?: (ValidatedNoteResponseGenqlSelection & {
|
|
1284
1405
|
__args: {
|
|
1406
|
+
appRequestId: Scalars['ID'];
|
|
1285
1407
|
/** The content of the note. HTML is expected. */
|
|
1286
1408
|
content: Scalars['String'];
|
|
1287
1409
|
persistent?: (Scalars['Boolean'] | null);
|
|
@@ -1718,6 +1840,11 @@ export interface QueryGenqlSelection {
|
|
|
1718
1840
|
paged?: (Pagination | null);
|
|
1719
1841
|
};
|
|
1720
1842
|
});
|
|
1843
|
+
applicationMetrics?: (ApplicationMetricGenqlSelection & {
|
|
1844
|
+
__args?: {
|
|
1845
|
+
filter?: (MetricApplicationFilters | null);
|
|
1846
|
+
};
|
|
1847
|
+
});
|
|
1721
1848
|
/** This is where you get information about the authorization system. Each grant will be associated with one of these controlGroups, one or more controls in the group, and an optional set of tags. The tags are used to limit the scope of the grant. */
|
|
1722
1849
|
controlGroups?: AccessControlGroupGenqlSelection;
|
|
1723
1850
|
countAppRequests?: {
|
|
@@ -1849,6 +1976,7 @@ export interface ValidatedConfigurationResponseGenqlSelection {
|
|
|
1849
1976
|
}
|
|
1850
1977
|
export interface ValidatedNoteResponseGenqlSelection {
|
|
1851
1978
|
messages?: MutationMessageGenqlSelection;
|
|
1979
|
+
/** The created or updated note. Null when validateOnly was true or when validation errors prevented the operation. */
|
|
1852
1980
|
note?: NoteGenqlSelection;
|
|
1853
1981
|
/** True if the mutation succeeded (e.g. saved data or passed validation), even if there were warnings. */
|
|
1854
1982
|
success?: boolean | number;
|
|
@@ -1930,6 +2058,15 @@ export declare const isApplication: (obj?: {
|
|
|
1930
2058
|
export declare const isApplicationActions: (obj?: {
|
|
1931
2059
|
__typename?: any;
|
|
1932
2060
|
} | null) => obj is ApplicationActions;
|
|
2061
|
+
export declare const isApplicationMetric: (obj?: {
|
|
2062
|
+
__typename?: any;
|
|
2063
|
+
} | null) => obj is ApplicationMetric;
|
|
2064
|
+
export declare const isApplicationMetricEntry: (obj?: {
|
|
2065
|
+
__typename?: any;
|
|
2066
|
+
} | null) => obj is ApplicationMetricEntry;
|
|
2067
|
+
export declare const isApplicationMetricTiming: (obj?: {
|
|
2068
|
+
__typename?: any;
|
|
2069
|
+
} | null) => obj is ApplicationMetricTiming;
|
|
1933
2070
|
export declare const isApplicationRequirement: (obj?: {
|
|
1934
2071
|
__typename?: any;
|
|
1935
2072
|
} | null) => obj is ApplicationRequirement;
|
|
@@ -28,6 +28,9 @@ type Access {
|
|
|
28
28
|
"""Current user is permitted to view the applicant dashboard."""
|
|
29
29
|
viewApplicantDashboard: Boolean!
|
|
30
30
|
|
|
31
|
+
"""Current user is permitted to view the metrics UI."""
|
|
32
|
+
viewMetrics: Boolean!
|
|
33
|
+
|
|
31
34
|
"""Current user is permitted to view the period management UI."""
|
|
32
35
|
viewPeriodManagement: Boolean!
|
|
33
36
|
|
|
@@ -786,6 +789,44 @@ type ApplicationActions {
|
|
|
786
789
|
viewAsReviewer: Boolean!
|
|
787
790
|
}
|
|
788
791
|
|
|
792
|
+
"""Calculated application metrics"""
|
|
793
|
+
type ApplicationMetric {
|
|
794
|
+
approved: Float!
|
|
795
|
+
closed: Float!
|
|
796
|
+
denied: Float!
|
|
797
|
+
entries: [ApplicationMetricEntry!]!
|
|
798
|
+
started: Float!
|
|
799
|
+
submitted: Float!
|
|
800
|
+
toDecision: ApplicationMetricTiming!
|
|
801
|
+
toSubmit: ApplicationMetricTiming!
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
"""Application metric entry"""
|
|
805
|
+
type ApplicationMetricEntry {
|
|
806
|
+
applicantFullname: String!
|
|
807
|
+
applicantId: ID!
|
|
808
|
+
applicantLogin: String!
|
|
809
|
+
applicationId: ID!
|
|
810
|
+
closedAt: DateTime
|
|
811
|
+
createdAt: DateTime!
|
|
812
|
+
ineligiblePhase: String
|
|
813
|
+
periodCode: String!
|
|
814
|
+
periodId: ID!
|
|
815
|
+
periodName: String!
|
|
816
|
+
phase: String!
|
|
817
|
+
programKey: String!
|
|
818
|
+
status: String!
|
|
819
|
+
submittedAt: DateTime
|
|
820
|
+
updatedAt: DateTime!
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
"""Application metric timings"""
|
|
824
|
+
type ApplicationMetricTiming {
|
|
825
|
+
avg: Float
|
|
826
|
+
max: Float
|
|
827
|
+
min: Float
|
|
828
|
+
}
|
|
829
|
+
|
|
789
830
|
"\n The phase of the application. This is usually a computed field, not stored in the database. The phase\n is computed based on the status of the appRequest and of the requirements for the program.\n "
|
|
790
831
|
enum ApplicationPhase {
|
|
791
832
|
"""
|
|
@@ -1082,6 +1123,77 @@ enum IneligiblePhases {
|
|
|
1082
1123
|
"""Unstructured JSON data."""
|
|
1083
1124
|
scalar JsonData
|
|
1084
1125
|
|
|
1126
|
+
input MetricAccessUserFilters {
|
|
1127
|
+
"""
|
|
1128
|
+
Return application metrics from users that have any of these fullnames.
|
|
1129
|
+
"""
|
|
1130
|
+
fullnames: [String!]
|
|
1131
|
+
|
|
1132
|
+
"""Return application metrics from users that have any of these IDs."""
|
|
1133
|
+
ids: [ID!]
|
|
1134
|
+
|
|
1135
|
+
"""Return application metrics from users that have any of these logins."""
|
|
1136
|
+
logins: [String!]
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
input MetricApplicationFilters {
|
|
1140
|
+
"""
|
|
1141
|
+
Return application metrics from applicants that match any of these filters.
|
|
1142
|
+
"""
|
|
1143
|
+
applicants: MetricAccessUserFilters
|
|
1144
|
+
|
|
1145
|
+
"""
|
|
1146
|
+
Return application metrics for applications that have any of these IDs.
|
|
1147
|
+
"""
|
|
1148
|
+
applicationIds: [ID!]
|
|
1149
|
+
|
|
1150
|
+
"""
|
|
1151
|
+
Return application metrics for applications that were closed after this date.
|
|
1152
|
+
"""
|
|
1153
|
+
closedAfterDateTime: DateTime
|
|
1154
|
+
|
|
1155
|
+
"""
|
|
1156
|
+
Return application metrics for applications that were closed before this date.
|
|
1157
|
+
"""
|
|
1158
|
+
closedBeforeDateTime: DateTime
|
|
1159
|
+
|
|
1160
|
+
"""
|
|
1161
|
+
Return application metrics from periods that match any of these filters.
|
|
1162
|
+
"""
|
|
1163
|
+
periods: MetricPeriodFilters
|
|
1164
|
+
|
|
1165
|
+
"""
|
|
1166
|
+
Return application metrics for applications that started after this date.
|
|
1167
|
+
"""
|
|
1168
|
+
startedAfterDateTime: DateTime
|
|
1169
|
+
|
|
1170
|
+
"""
|
|
1171
|
+
Return application metrics for applications that started before this date.
|
|
1172
|
+
"""
|
|
1173
|
+
startedBeforeDateTime: DateTime
|
|
1174
|
+
|
|
1175
|
+
"""
|
|
1176
|
+
Return application metrics for applications that were submitted after this date.
|
|
1177
|
+
"""
|
|
1178
|
+
submittedAfterDateTime: DateTime
|
|
1179
|
+
|
|
1180
|
+
"""
|
|
1181
|
+
Return application metrics for applications that were submitted before this date.
|
|
1182
|
+
"""
|
|
1183
|
+
submittedBeforeDateTime: DateTime
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
input MetricPeriodFilters {
|
|
1187
|
+
"""Return application metrics from periods that have any of these codes."""
|
|
1188
|
+
codes: [String!]
|
|
1189
|
+
|
|
1190
|
+
"""Return application metrics from periods that have any of these IDs."""
|
|
1191
|
+
ids: [ID!]
|
|
1192
|
+
|
|
1193
|
+
"""Return rapplication metrics from periods that have any of these names."""
|
|
1194
|
+
names: [String!]
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1085
1197
|
type Mutation {
|
|
1086
1198
|
"""
|
|
1087
1199
|
This is for the applicant to accept or reject the offer that was made based on their app request. The difference between accept and reject is determined by the status of the acceptance requirements. They will still "accept offer" after they answer that they do not want the offer. If there is non-blocking workflow on any applications, the first one in each will begin. Applications without non-blocking workflow will be advanced to the COMPLETE phase. If all applications are complete, the app request will be closed.
|
|
@@ -1090,6 +1202,8 @@ type Mutation {
|
|
|
1090
1202
|
|
|
1091
1203
|
"""Add a note to the app request."""
|
|
1092
1204
|
addNote(
|
|
1205
|
+
appRequestId: ID!
|
|
1206
|
+
|
|
1093
1207
|
"""The content of the note. HTML is expected."""
|
|
1094
1208
|
content: String!
|
|
1095
1209
|
persistent: Boolean
|
|
@@ -1547,6 +1661,7 @@ type Query {
|
|
|
1547
1661
|
for: AppRequestIndexDestination
|
|
1548
1662
|
): [IndexCategory!]!
|
|
1549
1663
|
appRequests(filter: AppRequestFilter, paged: Pagination): [AppRequest!]!
|
|
1664
|
+
applicationMetrics(filter: MetricApplicationFilters): ApplicationMetric!
|
|
1550
1665
|
|
|
1551
1666
|
"""
|
|
1552
1667
|
This is where you get information about the authorization system. Each grant will be associated with one of these controlGroups, one or more controls in the group, and an optional set of tags. The tags are used to limit the scope of the grant.
|
|
@@ -1779,7 +1894,11 @@ type ValidatedConfigurationResponse {
|
|
|
1779
1894
|
|
|
1780
1895
|
type ValidatedNoteResponse {
|
|
1781
1896
|
messages: [MutationMessage!]!
|
|
1782
|
-
|
|
1897
|
+
|
|
1898
|
+
"""
|
|
1899
|
+
The created or updated note. Null when validateOnly was true or when validation errors prevented the operation.
|
|
1900
|
+
"""
|
|
1901
|
+
note: Note
|
|
1783
1902
|
|
|
1784
1903
|
"""
|
|
1785
1904
|
True if the mutation succeeded (e.g. saved data or passed validation), even if there were warnings.
|
|
@@ -122,6 +122,24 @@ export const isApplicationActions = (obj) => {
|
|
|
122
122
|
throw new Error('__typename is missing in "isApplicationActions"');
|
|
123
123
|
return ApplicationActions_possibleTypes.includes(obj.__typename);
|
|
124
124
|
};
|
|
125
|
+
const ApplicationMetric_possibleTypes = ['ApplicationMetric'];
|
|
126
|
+
export const isApplicationMetric = (obj) => {
|
|
127
|
+
if (!obj?.__typename)
|
|
128
|
+
throw new Error('__typename is missing in "isApplicationMetric"');
|
|
129
|
+
return ApplicationMetric_possibleTypes.includes(obj.__typename);
|
|
130
|
+
};
|
|
131
|
+
const ApplicationMetricEntry_possibleTypes = ['ApplicationMetricEntry'];
|
|
132
|
+
export const isApplicationMetricEntry = (obj) => {
|
|
133
|
+
if (!obj?.__typename)
|
|
134
|
+
throw new Error('__typename is missing in "isApplicationMetricEntry"');
|
|
135
|
+
return ApplicationMetricEntry_possibleTypes.includes(obj.__typename);
|
|
136
|
+
};
|
|
137
|
+
const ApplicationMetricTiming_possibleTypes = ['ApplicationMetricTiming'];
|
|
138
|
+
export const isApplicationMetricTiming = (obj) => {
|
|
139
|
+
if (!obj?.__typename)
|
|
140
|
+
throw new Error('__typename is missing in "isApplicationMetricTiming"');
|
|
141
|
+
return ApplicationMetricTiming_possibleTypes.includes(obj.__typename);
|
|
142
|
+
};
|
|
125
143
|
const ApplicationRequirement_possibleTypes = ['ApplicationRequirement'];
|
|
126
144
|
export const isApplicationRequirement = (obj) => {
|
|
127
145
|
if (!obj?.__typename)
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
user: number[];
|
|
10
10
|
viewAppRequestList: number[];
|
|
11
11
|
viewApplicantDashboard: number[];
|
|
12
|
+
viewMetrics: number[];
|
|
12
13
|
viewPeriodManagement: number[];
|
|
13
14
|
viewReviewerInterface: number[];
|
|
14
15
|
viewRoleManagement: number[];
|
|
@@ -299,6 +300,41 @@ declare const _default: {
|
|
|
299
300
|
viewAsReviewer: number[];
|
|
300
301
|
__typename: number[];
|
|
301
302
|
};
|
|
303
|
+
ApplicationMetric: {
|
|
304
|
+
approved: number[];
|
|
305
|
+
closed: number[];
|
|
306
|
+
denied: number[];
|
|
307
|
+
entries: number[];
|
|
308
|
+
started: number[];
|
|
309
|
+
submitted: number[];
|
|
310
|
+
toDecision: number[];
|
|
311
|
+
toSubmit: number[];
|
|
312
|
+
__typename: number[];
|
|
313
|
+
};
|
|
314
|
+
ApplicationMetricEntry: {
|
|
315
|
+
applicantFullname: number[];
|
|
316
|
+
applicantId: number[];
|
|
317
|
+
applicantLogin: number[];
|
|
318
|
+
applicationId: number[];
|
|
319
|
+
closedAt: number[];
|
|
320
|
+
createdAt: number[];
|
|
321
|
+
ineligiblePhase: number[];
|
|
322
|
+
periodCode: number[];
|
|
323
|
+
periodId: number[];
|
|
324
|
+
periodName: number[];
|
|
325
|
+
phase: number[];
|
|
326
|
+
programKey: number[];
|
|
327
|
+
status: number[];
|
|
328
|
+
submittedAt: number[];
|
|
329
|
+
updatedAt: number[];
|
|
330
|
+
__typename: number[];
|
|
331
|
+
};
|
|
332
|
+
ApplicationMetricTiming: {
|
|
333
|
+
avg: number[];
|
|
334
|
+
max: number[];
|
|
335
|
+
min: number[];
|
|
336
|
+
__typename: number[];
|
|
337
|
+
};
|
|
302
338
|
ApplicationPhase: {};
|
|
303
339
|
ApplicationRequirement: {
|
|
304
340
|
application: number[];
|
|
@@ -377,11 +413,36 @@ declare const _default: {
|
|
|
377
413
|
IneligiblePhases: {};
|
|
378
414
|
Int: {};
|
|
379
415
|
JsonData: {};
|
|
416
|
+
MetricAccessUserFilters: {
|
|
417
|
+
fullnames: number[];
|
|
418
|
+
ids: number[];
|
|
419
|
+
logins: number[];
|
|
420
|
+
__typename: number[];
|
|
421
|
+
};
|
|
422
|
+
MetricApplicationFilters: {
|
|
423
|
+
applicants: number[];
|
|
424
|
+
applicationIds: number[];
|
|
425
|
+
closedAfterDateTime: number[];
|
|
426
|
+
closedBeforeDateTime: number[];
|
|
427
|
+
periods: number[];
|
|
428
|
+
startedAfterDateTime: number[];
|
|
429
|
+
startedBeforeDateTime: number[];
|
|
430
|
+
submittedAfterDateTime: number[];
|
|
431
|
+
submittedBeforeDateTime: number[];
|
|
432
|
+
__typename: number[];
|
|
433
|
+
};
|
|
434
|
+
MetricPeriodFilters: {
|
|
435
|
+
codes: number[];
|
|
436
|
+
ids: number[];
|
|
437
|
+
names: number[];
|
|
438
|
+
__typename: number[];
|
|
439
|
+
};
|
|
380
440
|
Mutation: {
|
|
381
441
|
acceptOffer: (number | {
|
|
382
442
|
appRequestId: (string | number)[];
|
|
383
443
|
})[];
|
|
384
444
|
addNote: (number | {
|
|
445
|
+
appRequestId: (string | number)[];
|
|
385
446
|
content: (string | number)[];
|
|
386
447
|
persistent: number[];
|
|
387
448
|
validateOnly: number[];
|
|
@@ -661,6 +722,9 @@ declare const _default: {
|
|
|
661
722
|
filter: number[];
|
|
662
723
|
paged: number[];
|
|
663
724
|
})[];
|
|
725
|
+
applicationMetrics: (number | {
|
|
726
|
+
filter: number[];
|
|
727
|
+
})[];
|
|
664
728
|
controlGroups: number[];
|
|
665
729
|
countAppRequests: (number | {
|
|
666
730
|
filter: number[];
|