@gcforms/types 1.0.14 → 1.0.16
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 +11 -0
- package/dist/index.d.mts +95 -2
- package/dist/index.d.ts +95 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ 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
|
+
|
|
9
|
+
## [1.0.16] - 2025-08-13
|
|
10
|
+
|
|
11
|
+
- Add DateObject to Response definition
|
|
12
|
+
|
|
13
|
+
## [1.0.15] - 2025-08-13
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Update fileInputResponse to migrate from base64 to BufferArray
|
|
18
|
+
|
|
8
19
|
## [1.0.14] - 2025-07-10
|
|
9
20
|
|
|
10
21
|
### Changed
|
package/dist/index.d.mts
CHANGED
|
@@ -20,6 +20,7 @@ type Group = {
|
|
|
20
20
|
exitUrlFr?: string;
|
|
21
21
|
};
|
|
22
22
|
type GroupsType = Record<string, Group>;
|
|
23
|
+
type FormValues = Record<string, string | string[]>;
|
|
23
24
|
type NextActionRule = {
|
|
24
25
|
groupId: string;
|
|
25
26
|
choiceId: string;
|
|
@@ -186,15 +187,107 @@ declare const NotificationsInterval: {
|
|
|
186
187
|
readonly WEEK: 10080;
|
|
187
188
|
};
|
|
188
189
|
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
190
|
+
type DateFormat = "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY";
|
|
191
|
+
interface DateObject {
|
|
192
|
+
YYYY: number;
|
|
193
|
+
MM: number;
|
|
194
|
+
DD: number;
|
|
195
|
+
}
|
|
196
|
+
declare enum DatePart {
|
|
197
|
+
DD = "day",
|
|
198
|
+
MM = "month",
|
|
199
|
+
YYYY = "year"
|
|
200
|
+
}
|
|
189
201
|
|
|
190
202
|
type Responses = {
|
|
191
203
|
[key: string]: Response;
|
|
192
204
|
};
|
|
193
|
-
type Response = string | string[] | number | Record<string, unknown>[] | FileInputResponse | FileInputResponse[] | Record<string, unknown>;
|
|
205
|
+
type Response = string | string[] | number | Record<string, unknown>[] | FileInputResponse | FileInputResponse[] | DateObject | Record<string, unknown>;
|
|
194
206
|
type FileInputResponse = {
|
|
195
207
|
name: string | null;
|
|
196
208
|
size: number | null;
|
|
197
209
|
content: ArrayBuffer | null;
|
|
198
210
|
};
|
|
199
211
|
|
|
200
|
-
|
|
212
|
+
interface InputFieldProps {
|
|
213
|
+
id?: string;
|
|
214
|
+
className?: string;
|
|
215
|
+
name: string;
|
|
216
|
+
label?: string;
|
|
217
|
+
required?: boolean;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
ariaDescribedBy?: string;
|
|
220
|
+
lang?: string;
|
|
221
|
+
}
|
|
222
|
+
interface AddressCompleteChoice {
|
|
223
|
+
Id: string;
|
|
224
|
+
Text: string;
|
|
225
|
+
Highlight: string;
|
|
226
|
+
Cursor: number;
|
|
227
|
+
Description: string;
|
|
228
|
+
Next: AddressCompleNext;
|
|
229
|
+
}
|
|
230
|
+
declare enum AddressCompleNext {
|
|
231
|
+
Find = "Find",
|
|
232
|
+
Retrieve = "Retrieve"
|
|
233
|
+
}
|
|
234
|
+
interface AddressCompleteResult {
|
|
235
|
+
Id: string;
|
|
236
|
+
DomesticId: string;
|
|
237
|
+
Language: string;
|
|
238
|
+
LanguageAlternatives: string;
|
|
239
|
+
Department: string;
|
|
240
|
+
Company: string;
|
|
241
|
+
SubBuilding: string;
|
|
242
|
+
BuildingNumber: string;
|
|
243
|
+
BuildingName: string;
|
|
244
|
+
SecondaryStreet: string;
|
|
245
|
+
Street: string;
|
|
246
|
+
Block: string;
|
|
247
|
+
Neighbourhood: string;
|
|
248
|
+
District: string;
|
|
249
|
+
City: string;
|
|
250
|
+
Line1: string;
|
|
251
|
+
Line2: string;
|
|
252
|
+
Line3: string;
|
|
253
|
+
Line4: string;
|
|
254
|
+
Line5: string;
|
|
255
|
+
AdminAreaName: string;
|
|
256
|
+
AdminAreaCode: string;
|
|
257
|
+
Province: string;
|
|
258
|
+
ProvinceName: string;
|
|
259
|
+
ProvinceCode: string;
|
|
260
|
+
PostalCode: string;
|
|
261
|
+
CountryName: string;
|
|
262
|
+
CountryIso2: string;
|
|
263
|
+
CountryIso3: string;
|
|
264
|
+
CountryIsoNumber: number;
|
|
265
|
+
SortingNumber1: string;
|
|
266
|
+
SortingNumber2: string;
|
|
267
|
+
Barcode: string;
|
|
268
|
+
POBoxNumber: string;
|
|
269
|
+
Label: string;
|
|
270
|
+
DataLevel: string;
|
|
271
|
+
}
|
|
272
|
+
interface AddressCompleteProps extends InputFieldProps {
|
|
273
|
+
canadianOnly?: boolean;
|
|
274
|
+
splitAddress?: boolean;
|
|
275
|
+
}
|
|
276
|
+
interface AddressElements {
|
|
277
|
+
streetAddress: string;
|
|
278
|
+
city: string;
|
|
279
|
+
province: string;
|
|
280
|
+
postalCode: string;
|
|
281
|
+
country: string;
|
|
282
|
+
}
|
|
283
|
+
interface AddressCompleteLabels {
|
|
284
|
+
streetAddress: string;
|
|
285
|
+
city: string;
|
|
286
|
+
province: string;
|
|
287
|
+
postalCode: string;
|
|
288
|
+
provinceOrState: string;
|
|
289
|
+
postalCodeOrZip: string;
|
|
290
|
+
country: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, type BrandProperties, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ type Group = {
|
|
|
20
20
|
exitUrlFr?: string;
|
|
21
21
|
};
|
|
22
22
|
type GroupsType = Record<string, Group>;
|
|
23
|
+
type FormValues = Record<string, string | string[]>;
|
|
23
24
|
type NextActionRule = {
|
|
24
25
|
groupId: string;
|
|
25
26
|
choiceId: string;
|
|
@@ -186,15 +187,107 @@ declare const NotificationsInterval: {
|
|
|
186
187
|
readonly WEEK: 10080;
|
|
187
188
|
};
|
|
188
189
|
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
190
|
+
type DateFormat = "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY";
|
|
191
|
+
interface DateObject {
|
|
192
|
+
YYYY: number;
|
|
193
|
+
MM: number;
|
|
194
|
+
DD: number;
|
|
195
|
+
}
|
|
196
|
+
declare enum DatePart {
|
|
197
|
+
DD = "day",
|
|
198
|
+
MM = "month",
|
|
199
|
+
YYYY = "year"
|
|
200
|
+
}
|
|
189
201
|
|
|
190
202
|
type Responses = {
|
|
191
203
|
[key: string]: Response;
|
|
192
204
|
};
|
|
193
|
-
type Response = string | string[] | number | Record<string, unknown>[] | FileInputResponse | FileInputResponse[] | Record<string, unknown>;
|
|
205
|
+
type Response = string | string[] | number | Record<string, unknown>[] | FileInputResponse | FileInputResponse[] | DateObject | Record<string, unknown>;
|
|
194
206
|
type FileInputResponse = {
|
|
195
207
|
name: string | null;
|
|
196
208
|
size: number | null;
|
|
197
209
|
content: ArrayBuffer | null;
|
|
198
210
|
};
|
|
199
211
|
|
|
200
|
-
|
|
212
|
+
interface InputFieldProps {
|
|
213
|
+
id?: string;
|
|
214
|
+
className?: string;
|
|
215
|
+
name: string;
|
|
216
|
+
label?: string;
|
|
217
|
+
required?: boolean;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
ariaDescribedBy?: string;
|
|
220
|
+
lang?: string;
|
|
221
|
+
}
|
|
222
|
+
interface AddressCompleteChoice {
|
|
223
|
+
Id: string;
|
|
224
|
+
Text: string;
|
|
225
|
+
Highlight: string;
|
|
226
|
+
Cursor: number;
|
|
227
|
+
Description: string;
|
|
228
|
+
Next: AddressCompleNext;
|
|
229
|
+
}
|
|
230
|
+
declare enum AddressCompleNext {
|
|
231
|
+
Find = "Find",
|
|
232
|
+
Retrieve = "Retrieve"
|
|
233
|
+
}
|
|
234
|
+
interface AddressCompleteResult {
|
|
235
|
+
Id: string;
|
|
236
|
+
DomesticId: string;
|
|
237
|
+
Language: string;
|
|
238
|
+
LanguageAlternatives: string;
|
|
239
|
+
Department: string;
|
|
240
|
+
Company: string;
|
|
241
|
+
SubBuilding: string;
|
|
242
|
+
BuildingNumber: string;
|
|
243
|
+
BuildingName: string;
|
|
244
|
+
SecondaryStreet: string;
|
|
245
|
+
Street: string;
|
|
246
|
+
Block: string;
|
|
247
|
+
Neighbourhood: string;
|
|
248
|
+
District: string;
|
|
249
|
+
City: string;
|
|
250
|
+
Line1: string;
|
|
251
|
+
Line2: string;
|
|
252
|
+
Line3: string;
|
|
253
|
+
Line4: string;
|
|
254
|
+
Line5: string;
|
|
255
|
+
AdminAreaName: string;
|
|
256
|
+
AdminAreaCode: string;
|
|
257
|
+
Province: string;
|
|
258
|
+
ProvinceName: string;
|
|
259
|
+
ProvinceCode: string;
|
|
260
|
+
PostalCode: string;
|
|
261
|
+
CountryName: string;
|
|
262
|
+
CountryIso2: string;
|
|
263
|
+
CountryIso3: string;
|
|
264
|
+
CountryIsoNumber: number;
|
|
265
|
+
SortingNumber1: string;
|
|
266
|
+
SortingNumber2: string;
|
|
267
|
+
Barcode: string;
|
|
268
|
+
POBoxNumber: string;
|
|
269
|
+
Label: string;
|
|
270
|
+
DataLevel: string;
|
|
271
|
+
}
|
|
272
|
+
interface AddressCompleteProps extends InputFieldProps {
|
|
273
|
+
canadianOnly?: boolean;
|
|
274
|
+
splitAddress?: boolean;
|
|
275
|
+
}
|
|
276
|
+
interface AddressElements {
|
|
277
|
+
streetAddress: string;
|
|
278
|
+
city: string;
|
|
279
|
+
province: string;
|
|
280
|
+
postalCode: string;
|
|
281
|
+
country: string;
|
|
282
|
+
}
|
|
283
|
+
interface AddressCompleteLabels {
|
|
284
|
+
streetAddress: string;
|
|
285
|
+
city: string;
|
|
286
|
+
province: string;
|
|
287
|
+
postalCode: string;
|
|
288
|
+
provinceOrState: string;
|
|
289
|
+
postalCodeOrZip: string;
|
|
290
|
+
country: string;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export { AddressCompleNext, type AddressCompleteChoice, type AddressCompleteLabels, type AddressCompleteProps, type AddressCompleteResult, type AddressComponents, type AddressElements, type BrandProperties, type ClosedDetails, type ConditionalRule, type DateFormat, type DateObject, DatePart, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type FormValues, type Group, type GroupsType, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
|