@gcforms/types 1.0.25 → 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/dist/index.d.mts +33 -29
- package/dist/index.d.ts +33 -29
- package/dist/index.js +21 -22
- package/dist/index.mjs +21 -22
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -40,26 +40,27 @@ 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;
|
|
@@ -118,6 +119,7 @@ interface ElementProperties {
|
|
|
118
119
|
autoComplete?: string;
|
|
119
120
|
dateFormat?: string;
|
|
120
121
|
allowNegativeNumbers?: boolean;
|
|
122
|
+
stepCount?: number;
|
|
121
123
|
conditionalRules?: ConditionalRule[];
|
|
122
124
|
full?: boolean;
|
|
123
125
|
addressComponents?: AddressComponents | undefined;
|
|
@@ -214,11 +216,12 @@ interface DateObject {
|
|
|
214
216
|
MM: number;
|
|
215
217
|
DD: number;
|
|
216
218
|
}
|
|
217
|
-
declare
|
|
218
|
-
DD
|
|
219
|
-
MM
|
|
220
|
-
YYYY
|
|
221
|
-
}
|
|
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];
|
|
222
225
|
interface FileInput extends FileInputResponse {
|
|
223
226
|
name: string;
|
|
224
227
|
size: number;
|
|
@@ -243,10 +246,11 @@ interface AddressCompleteChoice {
|
|
|
243
246
|
Description: string;
|
|
244
247
|
Next: AddressCompleNext;
|
|
245
248
|
}
|
|
246
|
-
declare
|
|
247
|
-
Find
|
|
248
|
-
Retrieve
|
|
249
|
-
}
|
|
249
|
+
declare const AddressCompleNext: {
|
|
250
|
+
readonly Find: "Find";
|
|
251
|
+
readonly Retrieve: "Retrieve";
|
|
252
|
+
};
|
|
253
|
+
type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
|
|
250
254
|
interface AddressCompleteResult {
|
|
251
255
|
Id: string;
|
|
252
256
|
DomesticId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -40,26 +40,27 @@ 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;
|
|
@@ -118,6 +119,7 @@ interface ElementProperties {
|
|
|
118
119
|
autoComplete?: string;
|
|
119
120
|
dateFormat?: string;
|
|
120
121
|
allowNegativeNumbers?: boolean;
|
|
122
|
+
stepCount?: number;
|
|
121
123
|
conditionalRules?: ConditionalRule[];
|
|
122
124
|
full?: boolean;
|
|
123
125
|
addressComponents?: AddressComponents | undefined;
|
|
@@ -214,11 +216,12 @@ interface DateObject {
|
|
|
214
216
|
MM: number;
|
|
215
217
|
DD: number;
|
|
216
218
|
}
|
|
217
|
-
declare
|
|
218
|
-
DD
|
|
219
|
-
MM
|
|
220
|
-
YYYY
|
|
221
|
-
}
|
|
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];
|
|
222
225
|
interface FileInput extends FileInputResponse {
|
|
223
226
|
name: string;
|
|
224
227
|
size: number;
|
|
@@ -243,10 +246,11 @@ interface AddressCompleteChoice {
|
|
|
243
246
|
Description: string;
|
|
244
247
|
Next: AddressCompleNext;
|
|
245
248
|
}
|
|
246
|
-
declare
|
|
247
|
-
Find
|
|
248
|
-
Retrieve
|
|
249
|
-
}
|
|
249
|
+
declare const AddressCompleNext: {
|
|
250
|
+
readonly Find: "Find";
|
|
251
|
+
readonly Retrieve: "Retrieve";
|
|
252
|
+
};
|
|
253
|
+
type AddressCompleNext = (typeof AddressCompleNext)[keyof typeof AddressCompleNext];
|
|
250
254
|
interface AddressCompleteResult {
|
|
251
255
|
Id: string;
|
|
252
256
|
DomesticId: string;
|
package/dist/index.js
CHANGED
|
@@ -30,29 +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
|
-
[
|
|
54
|
+
[FormElementTypes.addressComplete]: { flag: "addressComplete" }
|
|
56
55
|
};
|
|
57
56
|
var SortOption = {
|
|
58
57
|
NONE: "none",
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +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
|
-
[
|
|
23
|
+
[FormElementTypes.addressComplete]: { flag: "addressComplete" }
|
|
25
24
|
};
|
|
26
25
|
var SortOption = {
|
|
27
26
|
NONE: "none",
|