@planning-inspectorate/dynamic-forms 3.19.1 → 3.20.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/dynamic-forms",
3
- "version": "3.19.1",
3
+ "version": "3.20.0",
4
4
  "description": "This package is for building GDS forms using a configuration-based approach.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -1,16 +1,17 @@
1
1
  /**
2
2
  * Defines a response to a journey, a set of Answers to the questions
3
3
  * @class
4
+ * @template {object} [Answers=import("#typedefs/journey-types.d.ts").JourneyAnswers]
4
5
  */
5
- export class JourneyResponse {
6
+ export class JourneyResponse<Answers extends object = import("#typedefs/journey-types.d.ts").JourneyAnswers> {
6
7
  /**
7
8
  * creates an instance of a JourneyResponse
8
9
  * @param {string} journeyId
9
10
  * @param {string} referenceId
10
- * @param {import('#typedefs/journey-types.d.ts').JourneyAnswers | null} answers
11
+ * @param {Answers | null} answers
11
12
  * @param {string} [lpaCode]
12
13
  */
13
- constructor(journeyId: string, referenceId: string, answers: import("#typedefs/journey-types.d.ts").JourneyAnswers | null, lpaCode?: string);
14
+ constructor(journeyId: string, referenceId: string, answers: Answers | null, lpaCode?: string);
14
15
  /**
15
16
  * @type {string} - reference id used in the url for the journey e.g. appeal id - provides a unique lookup for responses in combination with formId
16
17
  */
@@ -20,9 +21,9 @@ export class JourneyResponse {
20
21
  */
21
22
  journeyId: string;
22
23
  /**
23
- * @type {import('#typedefs/journey-types.d.ts').JourneyAnswers} - answers to the journey
24
+ * @type {Answers} - answers to the journey
24
25
  */
25
- answers: import("#typedefs/journey-types.d.ts").JourneyAnswers;
26
+ answers: Answers;
26
27
  LPACode: string | undefined;
27
28
  }
28
29
  //# sourceMappingURL=journey-response.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"journey-response.d.ts","sourceRoot":"","sources":["journey-response.js"],"names":[],"mappings":"AAAA;;;GAGG;AACH;IAgBC;;;;;;OAMG;IACH,uBALW,MAAM,eACN,MAAM,WACN,OAAO,8BAA8B,EAAE,cAAc,GAAG,IAAI,YAC5D,MAAM,EAWhB;IA/BD;;OAEG;IACH,aAFU,MAAM,CAEJ;IAEZ;;OAEG;IACH,WAFU,MAAM,CAEN;IAEV;;OAEG;IACH,SAFU,OAAO,8BAA8B,EAAE,cAAc,CAEvD;IAiBP,4BAAsB;CAEvB"}
1
+ {"version":3,"file":"journey-response.d.ts","sourceRoot":"","sources":["journey-response.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,6BAFuB,OAAO,SAAjB,MAAQ;IAkBpB;;;;;;OAMG;IACH,uBALW,MAAM,eACN,MAAM,WACN,OAAO,GAAG,IAAI,YACd,MAAM,EAWhB;IA/BD;;OAEG;IACH,aAFU,MAAM,CAEJ;IAEZ;;OAEG;IACH,WAFU,MAAM,CAEN;IAEV;;OAEG;IACH,SAFU,OAAO,CAET;IAiBP,4BAAsB;CAEvB"}
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Defines a response to a journey, a set of Answers to the questions
3
3
  * @class
4
+ * @template {object} [Answers=import("#typedefs/journey-types.d.ts").JourneyAnswers]
4
5
  */
5
6
  export class JourneyResponse {
6
7
  /**
@@ -14,7 +15,7 @@ export class JourneyResponse {
14
15
  journeyId;
15
16
 
16
17
  /**
17
- * @type {import('#typedefs/journey-types.d.ts').JourneyAnswers} - answers to the journey
18
+ * @type {Answers} - answers to the journey
18
19
  */
19
20
  answers;
20
21
 
@@ -22,7 +23,7 @@ export class JourneyResponse {
22
23
  * creates an instance of a JourneyResponse
23
24
  * @param {string} journeyId
24
25
  * @param {string} referenceId
25
- * @param {import('#typedefs/journey-types.d.ts').JourneyAnswers | null} answers
26
+ * @param {Answers | null} answers
26
27
  * @param {string} [lpaCode]
27
28
  */
28
29
  constructor(journeyId, referenceId, answers, lpaCode) {