@gcforms/types 1.0.4 → 1.0.6
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 +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +12 -1
- package/dist/index.mjs +10 -1
- 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
|
+
## [1.0.6] - 2025-04-29
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- New type `NotificationsInterval` also added in FormRecord
|
|
13
|
+
|
|
14
|
+
## [1.0.5] - 2025-04-09
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- New type in formStatus `CAPTCHA_VERIFICATION_ERROR`
|
|
19
|
+
|
|
8
20
|
## [1.0.4] - 2025-04-07
|
|
9
21
|
|
|
10
22
|
### Added
|
package/dist/index.d.mts
CHANGED
|
@@ -156,7 +156,8 @@ type FormRecord = {
|
|
|
156
156
|
closingDate?: string;
|
|
157
157
|
closedDetails?: ClosedDetails;
|
|
158
158
|
saveAndResume?: boolean;
|
|
159
|
-
|
|
159
|
+
notificationsInterval?: NotificationsInterval;
|
|
160
|
+
[key: string]: string | boolean | number | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
|
|
160
161
|
};
|
|
161
162
|
type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
|
|
162
163
|
type FormPurpose = "" | "admin" | "nonAdmin";
|
|
@@ -170,8 +171,16 @@ declare const FormStatus: {
|
|
|
170
171
|
readonly FILE_ERROR: "FileError";
|
|
171
172
|
readonly FORM_CLOSED_ERROR: "FormClosedError";
|
|
172
173
|
readonly SERVER_ID_ERROR: "ServerIDError";
|
|
174
|
+
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
173
175
|
};
|
|
174
176
|
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
177
|
+
declare const NotificationsIntervalDefault: 1440;
|
|
178
|
+
declare const NotificationsInterval: {
|
|
179
|
+
readonly OFF: null;
|
|
180
|
+
readonly DAY: 1440;
|
|
181
|
+
readonly WEEK: 10080;
|
|
182
|
+
};
|
|
183
|
+
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
175
184
|
|
|
176
185
|
type Responses = {
|
|
177
186
|
[key: string]: Response;
|
|
@@ -183,4 +192,4 @@ type FileInputResponse = {
|
|
|
183
192
|
based64EncodedFile: string | null;
|
|
184
193
|
};
|
|
185
194
|
|
|
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 };
|
|
195
|
+
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
|
@@ -156,7 +156,8 @@ type FormRecord = {
|
|
|
156
156
|
closingDate?: string;
|
|
157
157
|
closedDetails?: ClosedDetails;
|
|
158
158
|
saveAndResume?: boolean;
|
|
159
|
-
|
|
159
|
+
notificationsInterval?: NotificationsInterval;
|
|
160
|
+
[key: string]: string | boolean | number | FormProperties | DeliveryOption | ClosedDetails | undefined | null;
|
|
160
161
|
};
|
|
161
162
|
type SecurityAttribute = "Unclassified" | "Protected A" | "Protected B";
|
|
162
163
|
type FormPurpose = "" | "admin" | "nonAdmin";
|
|
@@ -170,8 +171,16 @@ declare const FormStatus: {
|
|
|
170
171
|
readonly FILE_ERROR: "FileError";
|
|
171
172
|
readonly FORM_CLOSED_ERROR: "FormClosedError";
|
|
172
173
|
readonly SERVER_ID_ERROR: "ServerIDError";
|
|
174
|
+
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
173
175
|
};
|
|
174
176
|
type FormStatus = (typeof FormStatus)[keyof typeof FormStatus];
|
|
177
|
+
declare const NotificationsIntervalDefault: 1440;
|
|
178
|
+
declare const NotificationsInterval: {
|
|
179
|
+
readonly OFF: null;
|
|
180
|
+
readonly DAY: 1440;
|
|
181
|
+
readonly WEEK: 10080;
|
|
182
|
+
};
|
|
183
|
+
type NotificationsInterval = (typeof NotificationsInterval)[keyof typeof NotificationsInterval];
|
|
175
184
|
|
|
176
185
|
type Responses = {
|
|
177
186
|
[key: string]: Response;
|
|
@@ -183,4 +192,4 @@ type FileInputResponse = {
|
|
|
183
192
|
based64EncodedFile: string | null;
|
|
184
193
|
};
|
|
185
194
|
|
|
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 };
|
|
195
|
+
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);
|
|
@@ -56,11 +58,20 @@ var FormStatus = {
|
|
|
56
58
|
ERROR: "Error",
|
|
57
59
|
FILE_ERROR: "FileError",
|
|
58
60
|
FORM_CLOSED_ERROR: "FormClosedError",
|
|
59
|
-
SERVER_ID_ERROR: "ServerIDError"
|
|
61
|
+
SERVER_ID_ERROR: "ServerIDError",
|
|
62
|
+
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
60
63
|
};
|
|
64
|
+
var NotificationsInterval = {
|
|
65
|
+
OFF: null,
|
|
66
|
+
DAY: 1440,
|
|
67
|
+
WEEK: 10080
|
|
68
|
+
};
|
|
69
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
61
70
|
// Annotate the CommonJS export names for ESM import in node:
|
|
62
71
|
0 && (module.exports = {
|
|
63
72
|
FormElementTypes,
|
|
64
73
|
FormStatus,
|
|
74
|
+
NotificationsInterval,
|
|
75
|
+
NotificationsIntervalDefault,
|
|
65
76
|
SortOption
|
|
66
77
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -28,10 +28,19 @@ var FormStatus = {
|
|
|
28
28
|
ERROR: "Error",
|
|
29
29
|
FILE_ERROR: "FileError",
|
|
30
30
|
FORM_CLOSED_ERROR: "FormClosedError",
|
|
31
|
-
SERVER_ID_ERROR: "ServerIDError"
|
|
31
|
+
SERVER_ID_ERROR: "ServerIDError",
|
|
32
|
+
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
32
33
|
};
|
|
34
|
+
var NotificationsInterval = {
|
|
35
|
+
OFF: null,
|
|
36
|
+
DAY: 1440,
|
|
37
|
+
WEEK: 10080
|
|
38
|
+
};
|
|
39
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
33
40
|
export {
|
|
34
41
|
FormElementTypes,
|
|
35
42
|
FormStatus,
|
|
43
|
+
NotificationsInterval,
|
|
44
|
+
NotificationsIntervalDefault,
|
|
36
45
|
SortOption
|
|
37
46
|
};
|