@gcforms/types 1.0.5 → 1.0.7
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 +12 -0
- package/dist/index.d.mts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +11 -0
- package/dist/index.mjs +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ 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.7] - 2025-04-09
|
|
10
|
+
|
|
11
|
+
Add form element type for custom json
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.0.6] - 2025-04-29
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- New type `NotificationsInterval` also added in FormRecord
|
|
19
|
+
|
|
8
20
|
## [1.0.5] - 2025-04-09
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -42,7 +42,8 @@ declare enum FormElementTypes {
|
|
|
42
42
|
departments = "departments",
|
|
43
43
|
contact = "contact",
|
|
44
44
|
combobox = "combobox",
|
|
45
|
-
formattedDate = "formattedDate"
|
|
45
|
+
formattedDate = "formattedDate",
|
|
46
|
+
customJson = "customJson"
|
|
46
47
|
}
|
|
47
48
|
type ConditionalRule = {
|
|
48
49
|
choiceId: string;
|
|
@@ -156,7 +157,8 @@ type FormRecord = {
|
|
|
156
157
|
closingDate?: string;
|
|
157
158
|
closedDetails?: ClosedDetails;
|
|
158
159
|
saveAndResume?: boolean;
|
|
159
|
-
|
|
160
|
+
notificationsInterval?: NotificationsInterval;
|
|
161
|
+
[key: string]: string | boolean | number | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
|
|
160
162
|
};
|
|
161
163
|
type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
|
|
162
164
|
type FormPurpose = "" | "admin" | "nonAdmin";
|
|
@@ -173,6 +175,13 @@ declare const FormStatus: {
|
|
|
173
175
|
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
174
176
|
};
|
|
175
177
|
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
178
|
+
declare const NotificationsIntervalDefault: 1440;
|
|
179
|
+
declare const NotificationsInterval: {
|
|
180
|
+
readonly OFF: null;
|
|
181
|
+
readonly DAY: 1440;
|
|
182
|
+
readonly WEEK: 10080;
|
|
183
|
+
};
|
|
184
|
+
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
176
185
|
|
|
177
186
|
type Responses = {
|
|
178
187
|
[key: string]: Response;
|
|
@@ -184,4 +193,4 @@ type FileInputResponse = {
|
|
|
184
193
|
based64EncodedFile: string | null;
|
|
185
194
|
};
|
|
186
195
|
|
|
187
|
-
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 };
|
|
196
|
+
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, 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
|
@@ -42,7 +42,8 @@ declare enum FormElementTypes {
|
|
|
42
42
|
departments = "departments",
|
|
43
43
|
contact = "contact",
|
|
44
44
|
combobox = "combobox",
|
|
45
|
-
formattedDate = "formattedDate"
|
|
45
|
+
formattedDate = "formattedDate",
|
|
46
|
+
customJson = "customJson"
|
|
46
47
|
}
|
|
47
48
|
type ConditionalRule = {
|
|
48
49
|
choiceId: string;
|
|
@@ -156,7 +157,8 @@ type FormRecord = {
|
|
|
156
157
|
closingDate?: string;
|
|
157
158
|
closedDetails?: ClosedDetails;
|
|
158
159
|
saveAndResume?: boolean;
|
|
159
|
-
|
|
160
|
+
notificationsInterval?: NotificationsInterval;
|
|
161
|
+
[key: string]: string | boolean | number | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
|
|
160
162
|
};
|
|
161
163
|
type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
|
|
162
164
|
type FormPurpose = "" | "admin" | "nonAdmin";
|
|
@@ -173,6 +175,13 @@ declare const FormStatus: {
|
|
|
173
175
|
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
174
176
|
};
|
|
175
177
|
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
178
|
+
declare const NotificationsIntervalDefault: 1440;
|
|
179
|
+
declare const NotificationsInterval: {
|
|
180
|
+
readonly OFF: null;
|
|
181
|
+
readonly DAY: 1440;
|
|
182
|
+
readonly WEEK: 10080;
|
|
183
|
+
};
|
|
184
|
+
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
176
185
|
|
|
177
186
|
type Responses = {
|
|
178
187
|
[key: string]: Response;
|
|
@@ -184,4 +193,4 @@ type FileInputResponse = {
|
|
|
184
193
|
based64EncodedFile: string | null;
|
|
185
194
|
};
|
|
186
195
|
|
|
187
|
-
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 };
|
|
196
|
+
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, NotificationsInterval, NotificationsIntervalDefault, type PropertyChoices, type PublicFormRecord, type Response, type Responses, type SecurityAttribute, SortOption, type SortValue, type ValidationProperties, type dynamicRowType };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,8 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
FormElementTypes: () => FormElementTypes,
|
|
24
24
|
FormStatus: () => FormStatus,
|
|
25
|
+
NotificationsInterval: () => NotificationsInterval,
|
|
26
|
+
NotificationsIntervalDefault: () => NotificationsIntervalDefault,
|
|
25
27
|
SortOption: () => SortOption
|
|
26
28
|
});
|
|
27
29
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -45,6 +47,7 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
45
47
|
FormElementTypes2["contact"] = "contact";
|
|
46
48
|
FormElementTypes2["combobox"] = "combobox";
|
|
47
49
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
50
|
+
FormElementTypes2["customJson"] = "customJson";
|
|
48
51
|
return FormElementTypes2;
|
|
49
52
|
})(FormElementTypes || {});
|
|
50
53
|
var SortOption = {
|
|
@@ -59,9 +62,17 @@ var FormStatus = {
|
|
|
59
62
|
SERVER_ID_ERROR: "ServerIDError",
|
|
60
63
|
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
61
64
|
};
|
|
65
|
+
var NotificationsInterval = {
|
|
66
|
+
OFF: null,
|
|
67
|
+
DAY: 1440,
|
|
68
|
+
WEEK: 10080
|
|
69
|
+
};
|
|
70
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
62
71
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
72
|
0 && (module.exports = {
|
|
64
73
|
FormElementTypes,
|
|
65
74
|
FormStatus,
|
|
75
|
+
NotificationsInterval,
|
|
76
|
+
NotificationsIntervalDefault,
|
|
66
77
|
SortOption
|
|
67
78
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -17,6 +17,7 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
|
|
|
17
17
|
FormElementTypes2["contact"] = "contact";
|
|
18
18
|
FormElementTypes2["combobox"] = "combobox";
|
|
19
19
|
FormElementTypes2["formattedDate"] = "formattedDate";
|
|
20
|
+
FormElementTypes2["customJson"] = "customJson";
|
|
20
21
|
return FormElementTypes2;
|
|
21
22
|
})(FormElementTypes || {});
|
|
22
23
|
var SortOption = {
|
|
@@ -31,8 +32,16 @@ var FormStatus = {
|
|
|
31
32
|
SERVER_ID_ERROR: "ServerIDError",
|
|
32
33
|
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
33
34
|
};
|
|
35
|
+
var NotificationsInterval = {
|
|
36
|
+
OFF: null,
|
|
37
|
+
DAY: 1440,
|
|
38
|
+
WEEK: 10080
|
|
39
|
+
};
|
|
40
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
34
41
|
export {
|
|
35
42
|
FormElementTypes,
|
|
36
43
|
FormStatus,
|
|
44
|
+
NotificationsInterval,
|
|
45
|
+
NotificationsIntervalDefault,
|
|
37
46
|
SortOption
|
|
38
47
|
};
|