@gcforms/types 1.0.1 → 1.0.3
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 +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +17 -2
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -71,6 +71,12 @@ interface DeliveryOption {
|
|
|
71
71
|
emailSubjectFr?: string;
|
|
72
72
|
[key: string]: string | undefined;
|
|
73
73
|
}
|
|
74
|
+
declare const SortOption: {
|
|
75
|
+
readonly NONE: "none";
|
|
76
|
+
readonly ASCENDING: "ascending";
|
|
77
|
+
readonly DESCENDING: "descending";
|
|
78
|
+
};
|
|
79
|
+
type SortValue = (typeof SortOption)[keyof typeof SortOption];
|
|
74
80
|
interface ElementProperties {
|
|
75
81
|
titleEn: string;
|
|
76
82
|
titleFr: string;
|
|
@@ -92,6 +98,7 @@ interface ElementProperties {
|
|
|
92
98
|
full?: boolean;
|
|
93
99
|
addressComponents?: AddressComponents | undefined;
|
|
94
100
|
dynamicRow?: dynamicRowType;
|
|
101
|
+
sortOrder?: SortValue;
|
|
95
102
|
[key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
96
103
|
}
|
|
97
104
|
interface BrandProperties {
|
|
@@ -158,6 +165,13 @@ type ClosedDetails = {
|
|
|
158
165
|
messageFr?: string;
|
|
159
166
|
};
|
|
160
167
|
type PublicFormRecord = TypeOmit<FormRecord, "name" | "deliveryOption">;
|
|
168
|
+
declare const FormStatus: {
|
|
169
|
+
readonly ERROR: "Error";
|
|
170
|
+
readonly FILE_ERROR: "FileError";
|
|
171
|
+
readonly FORM_CLOSED_ERROR: "FormClosedError";
|
|
172
|
+
readonly SERVER_ID_ERROR: "ServerIDError";
|
|
173
|
+
};
|
|
174
|
+
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
161
175
|
|
|
162
176
|
type Responses = {
|
|
163
177
|
[key: string]: Response;
|
|
@@ -169,4 +183,4 @@ type FileInputResponse = {
|
|
|
169
183
|
based64EncodedFile: string | null;
|
|
170
184
|
};
|
|
171
185
|
|
|
172
|
-
export { type AddressComponents, type BrandProperties, type ClosedDetails, type ConditionalRule, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, type Group, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, type ValidationProperties, type dynamicRowType };
|
|
186
|
+
export { type AddressComponents, type BrandProperties, type ClosedDetails, type ConditionalRule, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type Group, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,12 @@ interface DeliveryOption {
|
|
|
71
71
|
emailSubjectFr?: string;
|
|
72
72
|
[key: string]: string | undefined;
|
|
73
73
|
}
|
|
74
|
+
declare const SortOption: {
|
|
75
|
+
readonly NONE: "none";
|
|
76
|
+
readonly ASCENDING: "ascending";
|
|
77
|
+
readonly DESCENDING: "descending";
|
|
78
|
+
};
|
|
79
|
+
type SortValue = (typeof SortOption)[keyof typeof SortOption];
|
|
74
80
|
interface ElementProperties {
|
|
75
81
|
titleEn: string;
|
|
76
82
|
titleFr: string;
|
|
@@ -92,6 +98,7 @@ interface ElementProperties {
|
|
|
92
98
|
full?: boolean;
|
|
93
99
|
addressComponents?: AddressComponents | undefined;
|
|
94
100
|
dynamicRow?: dynamicRowType;
|
|
101
|
+
sortOrder?: SortValue;
|
|
95
102
|
[key: string]: string | number | boolean | Array<PropertyChoices> | Array<FormElement> | ValidationProperties | Array<ConditionalRule> | AddressComponents | dynamicRowType | undefined;
|
|
96
103
|
}
|
|
97
104
|
interface BrandProperties {
|
|
@@ -158,6 +165,13 @@ type ClosedDetails = {
|
|
|
158
165
|
messageFr?: string;
|
|
159
166
|
};
|
|
160
167
|
type PublicFormRecord = TypeOmit<FormRecord, "name" | "deliveryOption">;
|
|
168
|
+
declare const FormStatus: {
|
|
169
|
+
readonly ERROR: "Error";
|
|
170
|
+
readonly FILE_ERROR: "FileError";
|
|
171
|
+
readonly FORM_CLOSED_ERROR: "FormClosedError";
|
|
172
|
+
readonly SERVER_ID_ERROR: "ServerIDError";
|
|
173
|
+
};
|
|
174
|
+
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
161
175
|
|
|
162
176
|
type Responses = {
|
|
163
177
|
[key: string]: Response;
|
|
@@ -169,4 +183,4 @@ type FileInputResponse = {
|
|
|
169
183
|
based64EncodedFile: string | null;
|
|
170
184
|
};
|
|
171
185
|
|
|
172
|
-
export { type AddressComponents, type BrandProperties, type ClosedDetails, type ConditionalRule, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, type Group, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, type ValidationProperties, type dynamicRowType };
|
|
186
|
+
export { type AddressComponents, type BrandProperties, type ClosedDetails, type ConditionalRule, type DeliveryOption, type ElementProperties, type FileInputResponse, type FormElement, FormElementTypes, type FormProperties, type FormPurpose, type FormRecord, FormStatus, type Group, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
|
package/dist/index.js
CHANGED
|
@@ -20,7 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
|
-
FormElementTypes: () => FormElementTypes
|
|
23
|
+
FormElementTypes: () => FormElementTypes,
|
|
24
|
+
FormStatus: () => FormStatus,
|
|
25
|
+
SortOption: () => SortOption
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(index_exports);
|
|
26
28
|
|
|
@@ -45,7 +47,20 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
45
47
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
46
48
|
return FormElementTypes2;
|
|
47
49
|
})(FormElementTypes || {});
|
|
50
|
+
var SortOption = {
|
|
51
|
+
NONE: "none",
|
|
52
|
+
ASCENDING: "ascending",
|
|
53
|
+
DESCENDING: "descending"
|
|
54
|
+
};
|
|
55
|
+
var FormStatus = {
|
|
56
|
+
ERROR: "Error",
|
|
57
|
+
FILE_ERROR: "FileError",
|
|
58
|
+
FORM_CLOSED_ERROR: "FormClosedError",
|
|
59
|
+
SERVER_ID_ERROR: "ServerIDError"
|
|
60
|
+
};
|
|
48
61
|
// Annotate the CommonJS export names for ESM import in node:
|
|
49
62
|
0 && (module.exports = {
|
|
50
|
-
FormElementTypes
|
|
63
|
+
FormElementTypes,
|
|
64
|
+
FormStatus,
|
|
65
|
+
SortOption
|
|
51
66
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -19,6 +19,19 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
19
19
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
20
20
|
return FormElementTypes2;
|
|
21
21
|
})(FormElementTypes || {});
|
|
22
|
+
var SortOption = {
|
|
23
|
+
NONE: "none",
|
|
24
|
+
ASCENDING: "ascending",
|
|
25
|
+
DESCENDING: "descending"
|
|
26
|
+
};
|
|
27
|
+
var FormStatus = {
|
|
28
|
+
ERROR: "Error",
|
|
29
|
+
FILE_ERROR: "FileError",
|
|
30
|
+
FORM_CLOSED_ERROR: "FormClosedError",
|
|
31
|
+
SERVER_ID_ERROR: "ServerIDError"
|
|
32
|
+
};
|
|
22
33
|
export {
|
|
23
|
-
FormElementTypes
|
|
34
|
+
FormElementTypes,
|
|
35
|
+
FormStatus,
|
|
36
|
+
SortOption
|
|
24
37
|
};
|