@reqquest/ui 1.1.0 → 1.1.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/api.js +20 -24
- package/dist/typed-client/schema.graphql +56 -11
- package/dist/typed-client/types.js +57 -11
- package/package.json +2 -2
package/dist/api.js
CHANGED
|
@@ -394,6 +394,10 @@ class API extends APIBase {
|
|
|
394
394
|
gatheredConfigData: true
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
+
},
|
|
398
|
+
actions: {
|
|
399
|
+
viewApplyUI: true,
|
|
400
|
+
viewAcceptUI: true
|
|
397
401
|
}
|
|
398
402
|
}
|
|
399
403
|
});
|
|
@@ -746,24 +750,21 @@ class API extends APIBase {
|
|
|
746
750
|
async getRequestActivity(appRequestId, filters, paged) {
|
|
747
751
|
const response = await this.client.query({
|
|
748
752
|
__name: 'GetRequestActivity',
|
|
749
|
-
|
|
750
|
-
__args: {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
data: true,
|
|
765
|
-
createdAt: true
|
|
766
|
-
}
|
|
753
|
+
appRequestActivity: {
|
|
754
|
+
__args: { id: appRequestId, filters, paged },
|
|
755
|
+
id: true,
|
|
756
|
+
user: {
|
|
757
|
+
login: true,
|
|
758
|
+
fullname: true
|
|
759
|
+
},
|
|
760
|
+
impersonatedBy: {
|
|
761
|
+
login: true,
|
|
762
|
+
fullname: true
|
|
763
|
+
},
|
|
764
|
+
action: true,
|
|
765
|
+
description: true,
|
|
766
|
+
data: true,
|
|
767
|
+
createdAt: true
|
|
767
768
|
},
|
|
768
769
|
pageInfo: {
|
|
769
770
|
appRequestsActivity: {
|
|
@@ -774,13 +775,8 @@ class API extends APIBase {
|
|
|
774
775
|
}
|
|
775
776
|
}
|
|
776
777
|
});
|
|
777
|
-
if (response.appRequests.length === 0)
|
|
778
|
-
return undefined;
|
|
779
778
|
return {
|
|
780
|
-
activity: response.
|
|
781
|
-
...activity,
|
|
782
|
-
createdAt: DateTime.fromISO(activity.createdAt)
|
|
783
|
-
})),
|
|
779
|
+
activity: response.appRequestActivity,
|
|
784
780
|
pageInfo: response.pageInfo.appRequestsActivity
|
|
785
781
|
};
|
|
786
782
|
}
|
|
@@ -278,17 +278,6 @@ Represents a group of applications all being applied for at the same time. As pa
|
|
|
278
278
|
type AppRequest {
|
|
279
279
|
"""Actions the user can take on this app request."""
|
|
280
280
|
actions: AppRequestActions!
|
|
281
|
-
|
|
282
|
-
"""
|
|
283
|
-
The activity log for this app request. This is a list of actions taken on the app request, such as submission, updating prompts, make an offer, add a note, etc. It will be sorted by the date of the activity in descending order.
|
|
284
|
-
"""
|
|
285
|
-
activity(
|
|
286
|
-
"""
|
|
287
|
-
Filters to apply to the activity log. This can be used to filter by action type, date range, etc.
|
|
288
|
-
"""
|
|
289
|
-
filters: AppRequestActivityFilters
|
|
290
|
-
paged: Pagination
|
|
291
|
-
): [AppRequestActivity!]!
|
|
292
281
|
applicant: AccessUser!
|
|
293
282
|
applications: [Application!]!
|
|
294
283
|
|
|
@@ -403,6 +392,16 @@ type AppRequestActions {
|
|
|
403
392
|
|
|
404
393
|
"""User may submit this app request either as or on behalf of the owner."""
|
|
405
394
|
submit: Boolean!
|
|
395
|
+
|
|
396
|
+
"""
|
|
397
|
+
User is able to see the acceptance UI. i.e. they are the applicant and the request is in the appropriate phase.
|
|
398
|
+
"""
|
|
399
|
+
viewAcceptUI: Boolean!
|
|
400
|
+
|
|
401
|
+
"""
|
|
402
|
+
User is able to see the applicant UI. i.e. they are the applicant and the request is in the appropriate phase.
|
|
403
|
+
"""
|
|
404
|
+
viewApplyUI: Boolean!
|
|
406
405
|
}
|
|
407
406
|
|
|
408
407
|
type AppRequestActivity {
|
|
@@ -538,13 +537,23 @@ type AppRequestIndexCategory {
|
|
|
538
537
|
If this is > 0, the index values should be shown on the applicant dashboard, sorted by this priority in descending order.
|
|
539
538
|
"""
|
|
540
539
|
applicantDashboardPriority: Float
|
|
540
|
+
|
|
541
|
+
"""
|
|
542
|
+
The internal category name for this index. Use this with any GraphQL filters.
|
|
543
|
+
"""
|
|
541
544
|
category: String!
|
|
545
|
+
|
|
546
|
+
"""A human-friendly label for this category that can be shown in the UI."""
|
|
542
547
|
categoryLabel: String!
|
|
543
548
|
|
|
544
549
|
"""
|
|
545
550
|
If this is > 0, the index values should be shown on the list filters, sorted by this priority in descending order.
|
|
546
551
|
"""
|
|
547
552
|
listFiltersPriority: Float
|
|
553
|
+
|
|
554
|
+
"""
|
|
555
|
+
If true, this category has few enough values that it is reasonable to list them all in a dropdown or similar UI control. If false, the list of values is likely to get very long and it would be better to use an autofill combobox or something.
|
|
556
|
+
"""
|
|
548
557
|
listable: Boolean!
|
|
549
558
|
|
|
550
559
|
"""
|
|
@@ -960,13 +969,23 @@ type IndexCategory {
|
|
|
960
969
|
If this is > 0, the index values should be shown on the applicant dashboard, sorted by this priority in descending order.
|
|
961
970
|
"""
|
|
962
971
|
applicantDashboardPriority: Float
|
|
972
|
+
|
|
973
|
+
"""
|
|
974
|
+
The internal category name for this index. Use this with any GraphQL filters.
|
|
975
|
+
"""
|
|
963
976
|
category: String!
|
|
977
|
+
|
|
978
|
+
"""A human-friendly label for this category that can be shown in the UI."""
|
|
964
979
|
categoryLabel: String!
|
|
965
980
|
|
|
966
981
|
"""
|
|
967
982
|
If this is > 0, the index values should be shown on the list filters, sorted by this priority in descending order.
|
|
968
983
|
"""
|
|
969
984
|
listFiltersPriority: Float
|
|
985
|
+
|
|
986
|
+
"""
|
|
987
|
+
If true, this category has few enough values that it is reasonable to list them all in a dropdown or similar UI control. If false, the list of values is likely to get very long and it would be better to use an autofill combobox or something.
|
|
988
|
+
"""
|
|
970
989
|
listable: Boolean!
|
|
971
990
|
|
|
972
991
|
"""
|
|
@@ -1057,6 +1076,9 @@ type Mutation {
|
|
|
1057
1076
|
"""Create a new app request."""
|
|
1058
1077
|
createAppRequest(login: String!, periodId: ID!, validateOnly: Boolean): ValidatedAppRequestResponse!
|
|
1059
1078
|
createPeriod(copyPeriodId: String, period: PeriodUpdate!, validateOnly: Boolean): ValidatedPeriodResponse!
|
|
1079
|
+
|
|
1080
|
+
"""Delete an existing note."""
|
|
1081
|
+
deleteNote(noteId: String!): Boolean!
|
|
1060
1082
|
deletePeriod(periodId: ID!): ValidatedResponse!
|
|
1061
1083
|
markPeriodReviewed(periodId: ID!, validateOnly: Boolean): ValidatedPeriodResponse!
|
|
1062
1084
|
|
|
@@ -1097,6 +1119,9 @@ type Mutation {
|
|
|
1097
1119
|
"""Submit the app request."""
|
|
1098
1120
|
submitAppRequest(appRequestId: ID!): ValidatedAppRequestResponse!
|
|
1099
1121
|
updateConfiguration(data: JsonData!, key: String!, periodId: ID!, validateOnly: Boolean): ValidatedConfigurationResponse!
|
|
1122
|
+
|
|
1123
|
+
"""Update the content of an existing note."""
|
|
1124
|
+
updateNote(content: String!, noteId: String!): Note!
|
|
1100
1125
|
updatePeriod(periodId: ID!, update: PeriodUpdate!, validateOnly: Boolean): ValidatedPeriodResponse!
|
|
1101
1126
|
updatePeriodRequirement(disabled: Boolean!, periodId: String!, requirementKey: String!): ValidatedResponse!
|
|
1102
1127
|
|
|
@@ -1159,10 +1184,12 @@ type Note {
|
|
|
1159
1184
|
content: String!
|
|
1160
1185
|
createdAt: DateTime!
|
|
1161
1186
|
id: ID!
|
|
1187
|
+
updatedAt: DateTime!
|
|
1162
1188
|
}
|
|
1163
1189
|
|
|
1164
1190
|
"""Actions that can be performed on a note."""
|
|
1165
1191
|
type NoteActions {
|
|
1192
|
+
delete: Boolean!
|
|
1166
1193
|
update: Boolean!
|
|
1167
1194
|
}
|
|
1168
1195
|
|
|
@@ -1426,6 +1453,18 @@ type Query {
|
|
|
1426
1453
|
"\n This is the global access object. Each field represents a global permission\n like the ability to view the role management interface.\n "
|
|
1427
1454
|
access: Access!
|
|
1428
1455
|
accessUsers(filter: AccessUserFilter, paged: Pagination): [AccessUser!]!
|
|
1456
|
+
|
|
1457
|
+
"""
|
|
1458
|
+
The activity log for this app request. This is a list of actions taken on the app request, such as submission, updating prompts, make an offer, add a note, etc. It will be sorted by the date of the activity in descending order.
|
|
1459
|
+
"""
|
|
1460
|
+
appRequestActivity(
|
|
1461
|
+
"""
|
|
1462
|
+
Filters to apply to the activity log. This can be used to filter by action type, date range, etc.
|
|
1463
|
+
"""
|
|
1464
|
+
filters: AppRequestActivityFilters
|
|
1465
|
+
id: String!
|
|
1466
|
+
paged: Pagination
|
|
1467
|
+
): [AppRequestActivity!]!
|
|
1429
1468
|
appRequestIndexes(
|
|
1430
1469
|
categories: [String!]
|
|
1431
1470
|
|
|
@@ -1449,6 +1488,12 @@ type Query {
|
|
|
1449
1488
|
A list of all possible scopes. Scopes are used to limit users when they are accessing the system through an alternate UI or login method. For instance, if you generate an authentication token to give to a third party, it may have a scope identifying that third party and limiting their access even though they are acting as you. Roles must match the token scope in order to apply permissions.
|
|
1450
1489
|
"""
|
|
1451
1490
|
scopes: [String!]!
|
|
1491
|
+
userIndexes(
|
|
1492
|
+
"""
|
|
1493
|
+
Returns indexes that are flagged to appear in this destination. Also sorts for this destination.
|
|
1494
|
+
"""
|
|
1495
|
+
for: AppRequestIndexDestination
|
|
1496
|
+
): [IndexCategory!]!
|
|
1452
1497
|
}
|
|
1453
1498
|
|
|
1454
1499
|
"""
|
|
@@ -405,17 +405,6 @@ export default {
|
|
|
405
405
|
"actions": [
|
|
406
406
|
23
|
|
407
407
|
],
|
|
408
|
-
"activity": [
|
|
409
|
-
24,
|
|
410
|
-
{
|
|
411
|
-
"filters": [
|
|
412
|
-
25
|
|
413
|
-
],
|
|
414
|
-
"paged": [
|
|
415
|
-
56
|
|
416
|
-
]
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
408
|
"applicant": [
|
|
420
409
|
17
|
|
421
410
|
],
|
|
@@ -531,6 +520,12 @@ export default {
|
|
|
531
520
|
"submit": [
|
|
532
521
|
37
|
|
533
522
|
],
|
|
523
|
+
"viewAcceptUI": [
|
|
524
|
+
37
|
|
525
|
+
],
|
|
526
|
+
"viewApplyUI": [
|
|
527
|
+
37
|
|
528
|
+
],
|
|
534
529
|
"__typename": [
|
|
535
530
|
77
|
|
536
531
|
]
|
|
@@ -1038,6 +1033,15 @@ export default {
|
|
|
1038
1033
|
]
|
|
1039
1034
|
}
|
|
1040
1035
|
],
|
|
1036
|
+
"deleteNote": [
|
|
1037
|
+
37,
|
|
1038
|
+
{
|
|
1039
|
+
"noteId": [
|
|
1040
|
+
77,
|
|
1041
|
+
"String!"
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
],
|
|
1041
1045
|
"deletePeriod": [
|
|
1042
1046
|
81,
|
|
1043
1047
|
{
|
|
@@ -1223,6 +1227,19 @@ export default {
|
|
|
1223
1227
|
]
|
|
1224
1228
|
}
|
|
1225
1229
|
],
|
|
1230
|
+
"updateNote": [
|
|
1231
|
+
54,
|
|
1232
|
+
{
|
|
1233
|
+
"content": [
|
|
1234
|
+
77,
|
|
1235
|
+
"String!"
|
|
1236
|
+
],
|
|
1237
|
+
"noteId": [
|
|
1238
|
+
77,
|
|
1239
|
+
"String!"
|
|
1240
|
+
]
|
|
1241
|
+
}
|
|
1242
|
+
],
|
|
1226
1243
|
"updatePeriod": [
|
|
1227
1244
|
80,
|
|
1228
1245
|
{
|
|
@@ -1313,11 +1330,17 @@ export default {
|
|
|
1313
1330
|
"id": [
|
|
1314
1331
|
45
|
|
1315
1332
|
],
|
|
1333
|
+
"updatedAt": [
|
|
1334
|
+
43
|
|
1335
|
+
],
|
|
1316
1336
|
"__typename": [
|
|
1317
1337
|
77
|
|
1318
1338
|
]
|
|
1319
1339
|
},
|
|
1320
1340
|
"NoteActions": {
|
|
1341
|
+
"delete": [
|
|
1342
|
+
37
|
|
1343
|
+
],
|
|
1321
1344
|
"update": [
|
|
1322
1345
|
37
|
|
1323
1346
|
],
|
|
@@ -1623,6 +1646,21 @@ export default {
|
|
|
1623
1646
|
]
|
|
1624
1647
|
}
|
|
1625
1648
|
],
|
|
1649
|
+
"appRequestActivity": [
|
|
1650
|
+
24,
|
|
1651
|
+
{
|
|
1652
|
+
"filters": [
|
|
1653
|
+
25
|
|
1654
|
+
],
|
|
1655
|
+
"id": [
|
|
1656
|
+
77,
|
|
1657
|
+
"String!"
|
|
1658
|
+
],
|
|
1659
|
+
"paged": [
|
|
1660
|
+
56
|
|
1661
|
+
]
|
|
1662
|
+
}
|
|
1663
|
+
],
|
|
1626
1664
|
"appRequestIndexes": [
|
|
1627
1665
|
46,
|
|
1628
1666
|
{
|
|
@@ -1679,6 +1717,14 @@ export default {
|
|
|
1679
1717
|
"scopes": [
|
|
1680
1718
|
77
|
|
1681
1719
|
],
|
|
1720
|
+
"userIndexes": [
|
|
1721
|
+
46,
|
|
1722
|
+
{
|
|
1723
|
+
"for": [
|
|
1724
|
+
28
|
|
1725
|
+
]
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1682
1728
|
"__typename": [
|
|
1683
1729
|
77
|
|
1684
1730
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reqquest/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@txstate-mws/fastify-shared": "^1.1.0",
|
|
31
31
|
"@txstate-mws/svelte-components": "^1.6.11",
|
|
32
32
|
"@txstate-mws/sveltekit-utils": "^1.0.2",
|
|
33
|
-
"carbon-components-svelte": ">=0.85.1 <
|
|
33
|
+
"carbon-components-svelte": ">=0.85.1 <0.96.0",
|
|
34
34
|
"carbon-icons-svelte": "^13.0.0",
|
|
35
35
|
"luxon": "^3.5.0",
|
|
36
36
|
"txstate-utils": "^1.8.15"
|