@gcforms/types 1.0.24 → 1.0.26
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 +4 -0
- package/dist/index.d.mts +33 -32
- package/dist/index.d.ts +33 -32
- package/dist/index.js +21 -23
- package/dist/index.mjs +21 -23
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ 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.25] - 2025-10-17
|
|
9
|
+
|
|
10
|
+
- Remove File Upload as a beta option
|
|
11
|
+
|
|
8
12
|
|
|
9
13
|
## [1.0.23] - 2025-10-01
|
|
10
14
|
|
package/dist/index.d.mts
CHANGED
|
@@ -40,33 +40,31 @@ type NextActionRule = {
|
|
|
40
40
|
choiceId: string;
|
|
41
41
|
};
|
|
42
42
|
type HTMLTextInputTypeAttribute = "text" | "email" | "name" | "number" | "password" | "search" | "tel" | "url";
|
|
43
|
-
declare
|
|
44
|
-
textField
|
|
45
|
-
textArea
|
|
46
|
-
dropdown
|
|
47
|
-
radio
|
|
48
|
-
checkbox
|
|
49
|
-
fileInput
|
|
50
|
-
richText
|
|
51
|
-
dynamicRow
|
|
52
|
-
attestation
|
|
53
|
-
address
|
|
54
|
-
addressComplete
|
|
55
|
-
name
|
|
56
|
-
firstMiddleLastName
|
|
57
|
-
departments
|
|
58
|
-
contact
|
|
59
|
-
combobox
|
|
60
|
-
formattedDate
|
|
61
|
-
customJson
|
|
62
|
-
}
|
|
43
|
+
declare const FormElementTypes: {
|
|
44
|
+
readonly textField: "textField";
|
|
45
|
+
readonly textArea: "textArea";
|
|
46
|
+
readonly dropdown: "dropdown";
|
|
47
|
+
readonly radio: "radio";
|
|
48
|
+
readonly checkbox: "checkbox";
|
|
49
|
+
readonly fileInput: "fileInput";
|
|
50
|
+
readonly richText: "richText";
|
|
51
|
+
readonly dynamicRow: "dynamicRow";
|
|
52
|
+
readonly attestation: "attestation";
|
|
53
|
+
readonly address: "address";
|
|
54
|
+
readonly addressComplete: "addressComplete";
|
|
55
|
+
readonly name: "name";
|
|
56
|
+
readonly firstMiddleLastName: "firstMiddleLastName";
|
|
57
|
+
readonly departments: "departments";
|
|
58
|
+
readonly contact: "contact";
|
|
59
|
+
readonly combobox: "combobox";
|
|
60
|
+
readonly formattedDate: "formattedDate";
|
|
61
|
+
readonly customJson: "customJson";
|
|
62
|
+
};
|
|
63
|
+
type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
|
|
63
64
|
declare const BetaFormElementTypes: {
|
|
64
65
|
addressComplete: {
|
|
65
66
|
flag: string;
|
|
66
67
|
};
|
|
67
|
-
fileInput: {
|
|
68
|
-
flag: string;
|
|
69
|
-
};
|
|
70
68
|
};
|
|
71
69
|
type ConditionalRule = {
|
|
72
70
|
choiceId: string;
|
|
@@ -121,6 +119,7 @@ interface ElementProperties {
|
|
|
121
119
|
autoComplete?: string;
|
|
122
120
|
dateFormat?: string;
|
|
123
121
|
allowNegativeNumbers?: boolean;
|
|
122
|
+
stepCount?: number;
|
|
124
123
|
conditionalRules?: ConditionalRule[];
|
|
125
124
|
full?: boolean;
|
|
126
125
|
addressComponents?: AddressComponents | undefined;
|
|
@@ -217,11 +216,12 @@ interface DateObject {
|
|
|
217
216
|
MM: number;
|
|
218
217
|
DD: number;
|
|
219
218
|
}
|
|
220
|
-
declare
|
|
221
|
-
DD
|
|
222
|
-
MM
|
|
223
|
-
YYYY
|
|
224
|
-
}
|
|
219
|
+
declare const DatePart: {
|
|
220
|
+
readonly DD: "day";
|
|
221
|
+
readonly MM: "month";
|
|
222
|
+
readonly YYYY: "year";
|
|
223
|
+
};
|
|
224
|
+
type DatePart = (typeof DatePart)[keyof typeof DatePart];
|
|
225
225
|
interface FileInput extends FileInputResponse {
|
|
226
226
|
name: string;
|
|
227
227
|
size: number;
|
|
@@ -246,10 +246,11 @@ interface AddressCompleteChoice {
|
|
|
246
246
|
Description: string;
|
|
247
247
|
Next: AddressCompleNext;
|
|
248
248
|
}
|
|
249
|
-
declare
|
|
250
|
-
Find
|
|
251
|
-
Retrieve
|
|
252
|
-
}
|
|
249
|
+
declare const AddressCompleNext: {
|
|
250
|
+
readonly Find: "Find";
|
|
251
|
+
readonly Retrieve: "Retrieve";
|
|
252
|
+
};
|
|
253
|
+
type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
|
|
253
254
|
interface AddressCompleteResult {
|
|
254
255
|
Id: string;
|
|
255
256
|
DomesticId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -40,33 +40,31 @@ type NextActionRule = {
|
|
|
40
40
|
choiceId: string;
|
|
41
41
|
};
|
|
42
42
|
type HTMLTextInputTypeAttribute = "text" | "email" | "name" | "number" | "password" | "search" | "tel" | "url";
|
|
43
|
-
declare
|
|
44
|
-
textField
|
|
45
|
-
textArea
|
|
46
|
-
dropdown
|
|
47
|
-
radio
|
|
48
|
-
checkbox
|
|
49
|
-
fileInput
|
|
50
|
-
richText
|
|
51
|
-
dynamicRow
|
|
52
|
-
attestation
|
|
53
|
-
address
|
|
54
|
-
addressComplete
|
|
55
|
-
name
|
|
56
|
-
firstMiddleLastName
|
|
57
|
-
departments
|
|
58
|
-
contact
|
|
59
|
-
combobox
|
|
60
|
-
formattedDate
|
|
61
|
-
customJson
|
|
62
|
-
}
|
|
43
|
+
declare const FormElementTypes: {
|
|
44
|
+
readonly textField: "textField";
|
|
45
|
+
readonly textArea: "textArea";
|
|
46
|
+
readonly dropdown: "dropdown";
|
|
47
|
+
readonly radio: "radio";
|
|
48
|
+
readonly checkbox: "checkbox";
|
|
49
|
+
readonly fileInput: "fileInput";
|
|
50
|
+
readonly richText: "richText";
|
|
51
|
+
readonly dynamicRow: "dynamicRow";
|
|
52
|
+
readonly attestation: "attestation";
|
|
53
|
+
readonly address: "address";
|
|
54
|
+
readonly addressComplete: "addressComplete";
|
|
55
|
+
readonly name: "name";
|
|
56
|
+
readonly firstMiddleLastName: "firstMiddleLastName";
|
|
57
|
+
readonly departments: "departments";
|
|
58
|
+
readonly contact: "contact";
|
|
59
|
+
readonly combobox: "combobox";
|
|
60
|
+
readonly formattedDate: "formattedDate";
|
|
61
|
+
readonly customJson: "customJson";
|
|
62
|
+
};
|
|
63
|
+
type FormElementTypes = (typeof FormElementTypes)[keyof typeof FormElementTypes];
|
|
63
64
|
declare const BetaFormElementTypes: {
|
|
64
65
|
addressComplete: {
|
|
65
66
|
flag: string;
|
|
66
67
|
};
|
|
67
|
-
fileInput: {
|
|
68
|
-
flag: string;
|
|
69
|
-
};
|
|
70
68
|
};
|
|
71
69
|
type ConditionalRule = {
|
|
72
70
|
choiceId: string;
|
|
@@ -121,6 +119,7 @@ interface ElementProperties {
|
|
|
121
119
|
autoComplete?: string;
|
|
122
120
|
dateFormat?: string;
|
|
123
121
|
allowNegativeNumbers?: boolean;
|
|
122
|
+
stepCount?: number;
|
|
124
123
|
conditionalRules?: ConditionalRule[];
|
|
125
124
|
full?: boolean;
|
|
126
125
|
addressComponents?: AddressComponents | undefined;
|
|
@@ -217,11 +216,12 @@ interface DateObject {
|
|
|
217
216
|
MM: number;
|
|
218
217
|
DD: number;
|
|
219
218
|
}
|
|
220
|
-
declare
|
|
221
|
-
DD
|
|
222
|
-
MM
|
|
223
|
-
YYYY
|
|
224
|
-
}
|
|
219
|
+
declare const DatePart: {
|
|
220
|
+
readonly DD: "day";
|
|
221
|
+
readonly MM: "month";
|
|
222
|
+
readonly YYYY: "year";
|
|
223
|
+
};
|
|
224
|
+
type DatePart = (typeof DatePart)[keyof typeof DatePart];
|
|
225
225
|
interface FileInput extends FileInputResponse {
|
|
226
226
|
name: string;
|
|
227
227
|
size: number;
|
|
@@ -246,10 +246,11 @@ interface AddressCompleteChoice {
|
|
|
246
246
|
Description: string;
|
|
247
247
|
Next: AddressCompleNext;
|
|
248
248
|
}
|
|
249
|
-
declare
|
|
250
|
-
Find
|
|
251
|
-
Retrieve
|
|
252
|
-
}
|
|
249
|
+
declare const AddressCompleNext: {
|
|
250
|
+
readonly Find: "Find";
|
|
251
|
+
readonly Retrieve: "Retrieve";
|
|
252
|
+
};
|
|
253
|
+
type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
|
|
253
254
|
interface AddressCompleteResult {
|
|
254
255
|
Id: string;
|
|
255
256
|
DomesticId: string;
|
package/dist/index.js
CHANGED
|
@@ -30,30 +30,28 @@ __export(index_exports, {
|
|
|
30
30
|
module.exports = __toCommonJS(index_exports);
|
|
31
31
|
|
|
32
32
|
// src/form-types.ts
|
|
33
|
-
var FormElementTypes =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
})(FormElementTypes || {});
|
|
33
|
+
var FormElementTypes = {
|
|
34
|
+
textField: "textField",
|
|
35
|
+
textArea: "textArea",
|
|
36
|
+
dropdown: "dropdown",
|
|
37
|
+
radio: "radio",
|
|
38
|
+
checkbox: "checkbox",
|
|
39
|
+
fileInput: "fileInput",
|
|
40
|
+
richText: "richText",
|
|
41
|
+
dynamicRow: "dynamicRow",
|
|
42
|
+
attestation: "attestation",
|
|
43
|
+
address: "address",
|
|
44
|
+
addressComplete: "addressComplete",
|
|
45
|
+
name: "name",
|
|
46
|
+
firstMiddleLastName: "firstMiddleLastName",
|
|
47
|
+
departments: "departments",
|
|
48
|
+
contact: "contact",
|
|
49
|
+
combobox: "combobox",
|
|
50
|
+
formattedDate: "formattedDate",
|
|
51
|
+
customJson: "customJson"
|
|
52
|
+
};
|
|
54
53
|
var BetaFormElementTypes = {
|
|
55
|
-
[
|
|
56
|
-
["fileInput" /* fileInput */]: { flag: "fileUpload" }
|
|
54
|
+
[FormElementTypes.addressComplete]: { flag: "addressComplete" }
|
|
57
55
|
};
|
|
58
56
|
var SortOption = {
|
|
59
57
|
NONE: "none",
|
package/dist/index.mjs
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
// src/form-types.ts
|
|
2
|
-
var FormElementTypes =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})(FormElementTypes || {});
|
|
2
|
+
var FormElementTypes = {
|
|
3
|
+
textField: "textField",
|
|
4
|
+
textArea: "textArea",
|
|
5
|
+
dropdown: "dropdown",
|
|
6
|
+
radio: "radio",
|
|
7
|
+
checkbox: "checkbox",
|
|
8
|
+
fileInput: "fileInput",
|
|
9
|
+
richText: "richText",
|
|
10
|
+
dynamicRow: "dynamicRow",
|
|
11
|
+
attestation: "attestation",
|
|
12
|
+
address: "address",
|
|
13
|
+
addressComplete: "addressComplete",
|
|
14
|
+
name: "name",
|
|
15
|
+
firstMiddleLastName: "firstMiddleLastName",
|
|
16
|
+
departments: "departments",
|
|
17
|
+
contact: "contact",
|
|
18
|
+
combobox: "combobox",
|
|
19
|
+
formattedDate: "formattedDate",
|
|
20
|
+
customJson: "customJson"
|
|
21
|
+
};
|
|
23
22
|
var BetaFormElementTypes = {
|
|
24
|
-
[
|
|
25
|
-
["fileInput" /* fileInput */]: { flag: "fileUpload" }
|
|
23
|
+
[FormElementTypes.addressComplete]: { flag: "addressComplete" }
|
|
26
24
|
};
|
|
27
25
|
var SortOption = {
|
|
28
26
|
NONE: "none",
|