@gcforms/types 1.0.31 → 1.0.33

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,6 +5,14 @@ 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.33] - 2026-06-03
9
+
10
+ - Add users and invitations to the FormRecord type
11
+
12
+ ## [1.0.32] - 2026-05-01
13
+
14
+ - Add types for template versions
15
+
8
16
  ## [1.0.31] - 2026-04-23
9
17
 
10
18
  - Add Element properties to support Advanced number inputs
package/dist/index.d.mts CHANGED
@@ -188,13 +188,23 @@ type FormRecord = {
188
188
  name: string;
189
189
  form: FormProperties;
190
190
  isPublished: boolean;
191
+ currentPublishedVersionId?: string | null;
192
+ currentDraftVersionId?: string | null;
193
+ versionNumber?: number | null;
191
194
  deliveryOption?: DeliveryOption;
192
195
  securityAttribute: SecurityAttribute;
193
196
  closingDate?: string;
194
197
  closedDetails?: ClosedDetails;
195
198
  saveAndResume?: boolean;
196
199
  notificationsInterval?: NotificationsInterval;
197
- [key: string]: string | boolean | number | Date | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
200
+ _count?: {
201
+ users: number;
202
+ invitations: number;
203
+ };
204
+ [key: string]: string | boolean | number | Date | FormProperties | DeliveryOption | ClosedDetails | {
205
+ users: number;
206
+ invitations: number;
207
+ } | undefined | null;
198
208
  };
199
209
  type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
200
210
  type FormPurpose = "" | "admin" | "nonAdmin";
package/dist/index.d.ts CHANGED
@@ -188,13 +188,23 @@ type FormRecord = {
188
188
  name: string;
189
189
  form: FormProperties;
190
190
  isPublished: boolean;
191
+ currentPublishedVersionId?: string | null;
192
+ currentDraftVersionId?: string | null;
193
+ versionNumber?: number | null;
191
194
  deliveryOption?: DeliveryOption;
192
195
  securityAttribute: SecurityAttribute;
193
196
  closingDate?: string;
194
197
  closedDetails?: ClosedDetails;
195
198
  saveAndResume?: boolean;
196
199
  notificationsInterval?: NotificationsInterval;
197
- [key: string]: string | boolean | number | Date | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
200
+ _count?: {
201
+ users: number;
202
+ invitations: number;
203
+ };
204
+ [key: string]: string | boolean | number | Date | FormProperties | DeliveryOption | ClosedDetails | {
205
+ users: number;
206
+ invitations: number;
207
+ } | undefined | null;
198
208
  };
199
209
  type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
200
210
  type FormPurpose = "" | "admin" | "nonAdmin";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {