@gcforms/types 1.0.7 → 1.0.9

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/CHANGELOG.md CHANGED
@@ -5,12 +5,24 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.9] - 2025-05-28
9
+
10
+ ### Changed
11
+
12
+ - Update NotificationsIntervalDefault to off
13
+
14
+
15
+ ## [1.0.8] - 2025-05-20
16
+
17
+ ### Changed
18
+
19
+ - Add questionId and tags to ElementProperties
20
+ - Add uuid to FormElement
8
21
 
9
22
  ## [1.0.7] - 2025-04-09
10
23
 
11
24
  Add form element type for custom json
12
25
 
13
-
14
26
  ## [1.0.6] - 2025-04-29
15
27
 
16
28
  ### Added
package/dist/index.d.mts CHANGED
@@ -79,6 +79,8 @@ declare const SortOption: {
79
79
  };
80
80
  type SortValue = (typeof SortOption)[keyof typeof SortOption];
81
81
  interface ElementProperties {
82
+ questionId?: string;
83
+ tags?: string[];
82
84
  titleEn: string;
83
85
  titleFr: string;
84
86
  placeholderEn?: string;
@@ -100,7 +102,7 @@ interface ElementProperties {
100
102
  addressComponents?: AddressComponents | undefined;
101
103
  dynamicRow?: dynamicRowType;
102
104
  sortOrder?: SortValue;
103
- [key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
105
+ [key: string]: string | string[] | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
104
106
  }
105
107
  interface BrandProperties {
106
108
  name?: string;
@@ -115,6 +117,7 @@ interface BrandProperties {
115
117
  }
116
118
  interface FormElement {
117
119
  id: number;
120
+ uuid?: string;
118
121
  subId?: string;
119
122
  type: FormElementTypes;
120
123
  properties: ElementProperties;
@@ -175,7 +178,7 @@ declare const FormStatus: {
175
178
  readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
176
179
  };
177
180
  type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
178
- declare const NotificationsIntervalDefault: 1440;
181
+ declare const NotificationsIntervalDefault: null;
179
182
  declare const NotificationsInterval: {
180
183
  readonly OFF: null;
181
184
  readonly DAY: 1440;
package/dist/index.d.ts CHANGED
@@ -79,6 +79,8 @@ declare const SortOption: {
79
79
  };
80
80
  type SortValue = (typeof SortOption)[keyof typeof SortOption];
81
81
  interface ElementProperties {
82
+ questionId?: string;
83
+ tags?: string[];
82
84
  titleEn: string;
83
85
  titleFr: string;
84
86
  placeholderEn?: string;
@@ -100,7 +102,7 @@ interface ElementProperties {
100
102
  addressComponents?: AddressComponents | undefined;
101
103
  dynamicRow?: dynamicRowType;
102
104
  sortOrder?: SortValue;
103
- [key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
105
+ [key: string]: string | string[] | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
104
106
  }
105
107
  interface BrandProperties {
106
108
  name?: string;
@@ -115,6 +117,7 @@ interface BrandProperties {
115
117
  }
116
118
  interface FormElement {
117
119
  id: number;
120
+ uuid?: string;
118
121
  subId?: string;
119
122
  type: FormElementTypes;
120
123
  properties: ElementProperties;
@@ -175,7 +178,7 @@ declare const FormStatus: {
175
178
  readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
176
179
  };
177
180
  type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
178
- declare const NotificationsIntervalDefault: 1440;
181
+ declare const NotificationsIntervalDefault: null;
179
182
  declare const NotificationsInterval: {
180
183
  readonly OFF: null;
181
184
  readonly DAY: 1440;
package/dist/index.js CHANGED
@@ -67,7 +67,7 @@ var NotificationsInterval = {
67
67
  DAY: 1440,
68
68
  WEEK: 10080
69
69
  };
70
- var NotificationsIntervalDefault = NotificationsInterval.DAY;
70
+ var NotificationsIntervalDefault = NotificationsInterval.OFF;
71
71
  // Annotate the CommonJS export names for ESM import in node:
72
72
  0 && (module.exports = {
73
73
  FormElementTypes,
package/dist/index.mjs CHANGED
@@ -37,7 +37,7 @@ var NotificationsInterval = {
37
37
  DAY: 1440,
38
38
  WEEK: 10080
39
39
  };
40
- var NotificationsIntervalDefault = NotificationsInterval.DAY;
40
+ var NotificationsIntervalDefault = NotificationsInterval.OFF;
41
41
  export {
42
42
  FormElementTypes,
43
43
  FormStatus,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {