@reqquest/ui 1.4.1 → 1.6.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.
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
$: effectiveIntroAlignment = introTextAlignment ?? align
|
|
31
31
|
</script>
|
|
32
32
|
{#if $$slots.intro}
|
|
33
|
-
<div id="questionnaire-intro" class="prompt-intro flow max-w-screen-md px-6" class:mx-auto={align === 'center'} class:text-center={effectiveIntroAlignment === 'center'} class:text-right={effectiveIntroAlignment === 'right'} style:color="var(--cds-text-02)">
|
|
33
|
+
<div id="questionnaire-intro" class="prompt-intro flow max-w-screen-md px-px-3 sm:px-6" class:mx-auto={align === 'center'} class:text-center={effectiveIntroAlignment === 'center'} class:text-right={effectiveIntroAlignment === 'right'} style:color="var(--cds-text-02)">
|
|
34
34
|
<slot name="intro" />
|
|
35
35
|
</div>
|
|
36
36
|
{/if}
|
|
37
37
|
{#if externalLinks.length > 0}
|
|
38
|
-
<div class="prompt-intro-links flow max-w-screen-md px-6" class:mx-auto={align === 'center'}>
|
|
38
|
+
<div class="prompt-intro-links flow max-w-screen-md px-3 sm:px-6" class:mx-auto={align === 'center'}>
|
|
39
39
|
<ul class="flex gap-4 flex-wrap mb-4" class:justify-center={align === 'center'}>
|
|
40
40
|
{#each externalLinks.slice(0, 3) as link (link.url)}
|
|
41
41
|
<li><Button kind="ghost" icon={Launch} href={link.url} target={link.target ?? '_blank'} rel={link.rel ?? 'noopener noreferrer'}>{link.label}{#if (link.target ?? '_blank') === '_blank'}<span class="sr-only"> (opens in a new tab)</span>{/if}</Button></li>
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
{/if}
|
|
46
46
|
|
|
47
|
-
<div class="
|
|
47
|
+
<div class="prompt-form flow px-3 sm:px-6" class:max-w-screen-md={!fullWidth} class:w-full={fullWidth} class:mx-auto={align === 'center'}>
|
|
48
48
|
<slot />
|
|
49
49
|
</div>
|
|
@@ -317,6 +317,7 @@ export interface ApplicationMetric {
|
|
|
317
317
|
}
|
|
318
318
|
/** Application metric entry */
|
|
319
319
|
export interface ApplicationMetricEntry {
|
|
320
|
+
appRequestId: Scalars['ID'];
|
|
320
321
|
applicantFullname: Scalars['String'];
|
|
321
322
|
applicantId: Scalars['ID'];
|
|
322
323
|
applicantLogin: Scalars['String'];
|
|
@@ -482,8 +483,6 @@ export interface Mutation {
|
|
|
482
483
|
roleDeleteGrant: AccessRoleValidatedResponse;
|
|
483
484
|
roleUpdate: AccessRoleValidatedResponse;
|
|
484
485
|
roleUpdateGrant: AccessRoleValidatedResponse;
|
|
485
|
-
/** Stage the data for a prompt in this app request. */
|
|
486
|
-
stagePrompt: ValidatedAppRequestResponse;
|
|
487
486
|
/** Submit the app request. */
|
|
488
487
|
submitAppRequest: ValidatedAppRequestResponse;
|
|
489
488
|
/** Toggle an existing note's persistent status. */
|
|
@@ -695,10 +694,11 @@ export interface RequirementPrompt {
|
|
|
695
694
|
moot: Scalars['Boolean'];
|
|
696
695
|
/** A human readable title for the prompt in the navigation. You probably want it to be shorter than the full title. If not provided, the title will be used. */
|
|
697
696
|
navTitle: Scalars['String'];
|
|
697
|
+
optOut: Scalars['Boolean'];
|
|
698
698
|
/** Preload data that has been generated according to the prompt definition. For example, a prompt might query the database for answers given in previous requests or query an external API to learn facts about the user. */
|
|
699
699
|
preloadData: (Scalars['JsonData'] | null);
|
|
700
|
-
/**
|
|
701
|
-
|
|
700
|
+
/** Prestage data that has been generated according to the prompt definition. A prompt might require data that should only be modified API side (not client manipulable), such as user specific info sourced from other systems. */
|
|
701
|
+
prestageData: (Scalars['JsonData'] | null);
|
|
702
702
|
/** The requirement that this prompt is associated with. */
|
|
703
703
|
requirement: ApplicationRequirement;
|
|
704
704
|
/** A human readable title for the prompt. This is what will be shown to users. */
|
|
@@ -1220,6 +1220,7 @@ export interface ApplicationMetricGenqlSelection {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
/** Application metric entry */
|
|
1222
1222
|
export interface ApplicationMetricEntryGenqlSelection {
|
|
1223
|
+
appRequestId?: boolean | number;
|
|
1223
1224
|
applicantFullname?: boolean | number;
|
|
1224
1225
|
applicantId?: boolean | number;
|
|
1225
1226
|
applicantLogin?: boolean | number;
|
|
@@ -1548,14 +1549,6 @@ export interface MutationGenqlSelection {
|
|
|
1548
1549
|
validateOnly?: (Scalars['Boolean'] | null);
|
|
1549
1550
|
};
|
|
1550
1551
|
});
|
|
1551
|
-
/** Stage the data for a prompt in this app request. */
|
|
1552
|
-
stagePrompt?: (ValidatedAppRequestResponseGenqlSelection & {
|
|
1553
|
-
__args: {
|
|
1554
|
-
/** The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime. */
|
|
1555
|
-
dataVersion?: (Scalars['Int'] | null);
|
|
1556
|
-
promptId: Scalars['ID'];
|
|
1557
|
-
};
|
|
1558
|
-
});
|
|
1559
1552
|
/** Submit the app request. */
|
|
1560
1553
|
submitAppRequest?: (ValidatedAppRequestResponseGenqlSelection & {
|
|
1561
1554
|
__args: {
|
|
@@ -1603,6 +1596,7 @@ export interface MutationGenqlSelection {
|
|
|
1603
1596
|
data: Scalars['JsonData'];
|
|
1604
1597
|
/** The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime. */
|
|
1605
1598
|
dataVersion?: (Scalars['Int'] | null);
|
|
1599
|
+
overrideInvalidated?: (Scalars['Boolean'] | null);
|
|
1606
1600
|
promptId: Scalars['ID'];
|
|
1607
1601
|
validateOnly?: (Scalars['Boolean'] | null);
|
|
1608
1602
|
};
|
|
@@ -1918,6 +1912,7 @@ export interface RequirementPromptGenqlSelection {
|
|
|
1918
1912
|
moot?: boolean | number;
|
|
1919
1913
|
/** A human readable title for the prompt in the navigation. You probably want it to be shorter than the full title. If not provided, the title will be used. */
|
|
1920
1914
|
navTitle?: boolean | number;
|
|
1915
|
+
optOut?: boolean | number;
|
|
1921
1916
|
/** Preload data that has been generated according to the prompt definition. For example, a prompt might query the database for answers given in previous requests or query an external API to learn facts about the user. */
|
|
1922
1917
|
preloadData?: {
|
|
1923
1918
|
__args: {
|
|
@@ -1925,8 +1920,13 @@ export interface RequirementPromptGenqlSelection {
|
|
|
1925
1920
|
schemaVersion?: (Scalars['String'] | null);
|
|
1926
1921
|
};
|
|
1927
1922
|
} | boolean | number;
|
|
1928
|
-
/**
|
|
1929
|
-
|
|
1923
|
+
/** Prestage data that has been generated according to the prompt definition. A prompt might require data that should only be modified API side (not client manipulable), such as user specific info sourced from other systems. */
|
|
1924
|
+
prestageData?: {
|
|
1925
|
+
__args: {
|
|
1926
|
+
/** Provide the schemaVersion at the time the UI was built. Will throw an error if the client is too old, so it knows to refresh. */
|
|
1927
|
+
schemaVersion?: (Scalars['String'] | null);
|
|
1928
|
+
};
|
|
1929
|
+
} | boolean | number;
|
|
1930
1930
|
/** The requirement that this prompt is associated with. */
|
|
1931
1931
|
requirement?: ApplicationRequirementGenqlSelection;
|
|
1932
1932
|
/** A human readable title for the prompt. This is what will be shown to users. */
|
|
@@ -803,6 +803,7 @@ type ApplicationMetric {
|
|
|
803
803
|
|
|
804
804
|
"""Application metric entry"""
|
|
805
805
|
type ApplicationMetricEntry {
|
|
806
|
+
appRequestId: ID!
|
|
806
807
|
applicantFullname: String!
|
|
807
808
|
applicantId: ID!
|
|
808
809
|
applicantLogin: String!
|
|
@@ -1285,15 +1286,6 @@ type Mutation {
|
|
|
1285
1286
|
roleUpdate(role: AccessRoleInput!, roleId: ID!, validateOnly: Boolean): AccessRoleValidatedResponse!
|
|
1286
1287
|
roleUpdateGrant(grant: AccessRoleGrantUpdate!, grantId: ID!, validateOnly: Boolean): AccessRoleValidatedResponse!
|
|
1287
1288
|
|
|
1288
|
-
"""Stage the data for a prompt in this app request."""
|
|
1289
|
-
stagePrompt(
|
|
1290
|
-
"""
|
|
1291
|
-
The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime.
|
|
1292
|
-
"""
|
|
1293
|
-
dataVersion: Int
|
|
1294
|
-
promptId: ID!
|
|
1295
|
-
): ValidatedAppRequestResponse!
|
|
1296
|
-
|
|
1297
1289
|
"""Submit the app request."""
|
|
1298
1290
|
submitAppRequest(appRequestId: ID!): ValidatedAppRequestResponse!
|
|
1299
1291
|
|
|
@@ -1314,6 +1306,7 @@ type Mutation {
|
|
|
1314
1306
|
The data version of the app request at the time this prompt was loaded. If provided, the API will perform an optimistic concurrency check and fail the update if someone else has updated the data in the meantime.
|
|
1315
1307
|
"""
|
|
1316
1308
|
dataVersion: Int
|
|
1309
|
+
overrideInvalidated: Boolean
|
|
1317
1310
|
promptId: ID!
|
|
1318
1311
|
validateOnly: Boolean
|
|
1319
1312
|
): ValidatedAppRequestResponse!
|
|
@@ -1760,6 +1753,7 @@ type RequirementPrompt {
|
|
|
1760
1753
|
A human readable title for the prompt in the navigation. You probably want it to be shorter than the full title. If not provided, the title will be used.
|
|
1761
1754
|
"""
|
|
1762
1755
|
navTitle: String!
|
|
1756
|
+
optOut: Boolean!
|
|
1763
1757
|
|
|
1764
1758
|
"""
|
|
1765
1759
|
Preload data that has been generated according to the prompt definition. For example, a prompt might query the database for answers given in previous requests or query an external API to learn facts about the user.
|
|
@@ -1771,8 +1765,15 @@ type RequirementPrompt {
|
|
|
1771
1765
|
schemaVersion: String
|
|
1772
1766
|
): JsonData
|
|
1773
1767
|
|
|
1774
|
-
"""
|
|
1775
|
-
|
|
1768
|
+
"""
|
|
1769
|
+
Prestage data that has been generated according to the prompt definition. A prompt might require data that should only be modified API side (not client manipulable), such as user specific info sourced from other systems.
|
|
1770
|
+
"""
|
|
1771
|
+
prestageData(
|
|
1772
|
+
"""
|
|
1773
|
+
Provide the schemaVersion at the time the UI was built. Will throw an error if the client is too old, so it knows to refresh.
|
|
1774
|
+
"""
|
|
1775
|
+
schemaVersion: String
|
|
1776
|
+
): JsonData
|
|
1776
1777
|
|
|
1777
1778
|
"""The requirement that this prompt is associated with."""
|
|
1778
1779
|
requirement: ApplicationRequirement!
|
|
@@ -312,6 +312,7 @@ declare const _default: {
|
|
|
312
312
|
__typename: number[];
|
|
313
313
|
};
|
|
314
314
|
ApplicationMetricEntry: {
|
|
315
|
+
appRequestId: number[];
|
|
315
316
|
applicantFullname: number[];
|
|
316
317
|
applicantId: number[];
|
|
317
318
|
applicantLogin: number[];
|
|
@@ -527,10 +528,6 @@ declare const _default: {
|
|
|
527
528
|
grantId: (string | number)[];
|
|
528
529
|
validateOnly: number[];
|
|
529
530
|
})[];
|
|
530
|
-
stagePrompt: (number | {
|
|
531
|
-
dataVersion: number[];
|
|
532
|
-
promptId: (string | number)[];
|
|
533
|
-
})[];
|
|
534
531
|
submitAppRequest: (number | {
|
|
535
532
|
appRequestId: (string | number)[];
|
|
536
533
|
})[];
|
|
@@ -560,6 +557,7 @@ declare const _default: {
|
|
|
560
557
|
updatePrompt: (number | {
|
|
561
558
|
data: (string | number)[];
|
|
562
559
|
dataVersion: number[];
|
|
560
|
+
overrideInvalidated: number[];
|
|
563
561
|
promptId: (string | number)[];
|
|
564
562
|
validateOnly: number[];
|
|
565
563
|
})[];
|
|
@@ -764,10 +762,13 @@ declare const _default: {
|
|
|
764
762
|
key: number[];
|
|
765
763
|
moot: number[];
|
|
766
764
|
navTitle: number[];
|
|
765
|
+
optOut: number[];
|
|
767
766
|
preloadData: (number | {
|
|
768
767
|
schemaVersion: number[];
|
|
769
768
|
})[];
|
|
770
|
-
|
|
769
|
+
prestageData: (number | {
|
|
770
|
+
schemaVersion: number[];
|
|
771
|
+
})[];
|
|
771
772
|
requirement: number[];
|
|
772
773
|
title: number[];
|
|
773
774
|
visibility: number[];
|
|
@@ -808,6 +808,9 @@ export default {
|
|
|
808
808
|
]
|
|
809
809
|
},
|
|
810
810
|
"ApplicationMetricEntry": {
|
|
811
|
+
"appRequestId": [
|
|
812
|
+
49
|
|
813
|
+
],
|
|
811
814
|
"applicantFullname": [
|
|
812
815
|
85
|
|
813
816
|
],
|
|
@@ -1127,7 +1130,7 @@ export default {
|
|
|
1127
1130
|
88,
|
|
1128
1131
|
{
|
|
1129
1132
|
"appRequestId": [
|
|
1130
|
-
|
|
1133
|
+
49,
|
|
1131
1134
|
"ID!"
|
|
1132
1135
|
],
|
|
1133
1136
|
"content": [
|
|
@@ -1386,18 +1389,6 @@ export default {
|
|
|
1386
1389
|
]
|
|
1387
1390
|
}
|
|
1388
1391
|
],
|
|
1389
|
-
"stagePrompt": [
|
|
1390
|
-
86,
|
|
1391
|
-
{
|
|
1392
|
-
"dataVersion": [
|
|
1393
|
-
53
|
|
1394
|
-
],
|
|
1395
|
-
"promptId": [
|
|
1396
|
-
49,
|
|
1397
|
-
"ID!"
|
|
1398
|
-
]
|
|
1399
|
-
}
|
|
1400
|
-
],
|
|
1401
1392
|
"submitAppRequest": [
|
|
1402
1393
|
86,
|
|
1403
1394
|
{
|
|
@@ -1492,6 +1483,9 @@ export default {
|
|
|
1492
1483
|
"dataVersion": [
|
|
1493
1484
|
53
|
|
1494
1485
|
],
|
|
1486
|
+
"overrideInvalidated": [
|
|
1487
|
+
41
|
|
1488
|
+
],
|
|
1495
1489
|
"promptId": [
|
|
1496
1490
|
49,
|
|
1497
1491
|
"ID!"
|
|
@@ -2013,6 +2007,9 @@ export default {
|
|
|
2013
2007
|
"navTitle": [
|
|
2014
2008
|
85
|
|
2015
2009
|
],
|
|
2010
|
+
"optOut": [
|
|
2011
|
+
41
|
|
2012
|
+
],
|
|
2016
2013
|
"preloadData": [
|
|
2017
2014
|
54,
|
|
2018
2015
|
{
|
|
@@ -2021,8 +2018,13 @@ export default {
|
|
|
2021
2018
|
]
|
|
2022
2019
|
}
|
|
2023
2020
|
],
|
|
2024
|
-
"
|
|
2025
|
-
|
|
2021
|
+
"prestageData": [
|
|
2022
|
+
54,
|
|
2023
|
+
{
|
|
2024
|
+
"schemaVersion": [
|
|
2025
|
+
85
|
|
2026
|
+
]
|
|
2027
|
+
}
|
|
2026
2028
|
],
|
|
2027
2029
|
"requirement": [
|
|
2028
2030
|
39
|
package/dist/types.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface AnsweredPrompt {
|
|
|
11
11
|
moot: boolean | null;
|
|
12
12
|
visibility: string;
|
|
13
13
|
optOut?: boolean | null;
|
|
14
|
+
prestageData: Record<string, any>;
|
|
14
15
|
configurationData: Record<string, any>;
|
|
15
16
|
gatheredConfigData: Record<string, any>;
|
|
16
17
|
statusReasons: {
|
|
@@ -49,6 +50,7 @@ export interface ApplicationForDetails {
|
|
|
49
50
|
hasWarning: boolean;
|
|
50
51
|
warningReasons: string[];
|
|
51
52
|
ineligibleReasons: string[];
|
|
53
|
+
metReasons: string[];
|
|
52
54
|
requirements: {
|
|
53
55
|
id: string;
|
|
54
56
|
type: RequirementType;
|