@gcforms/types 1.0.5 → 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 +6 -0
- package/dist/index.d.mts +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +10 -0
- package/dist/index.mjs +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ 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
|
+
|
|
8
14
|
## [1.0.5] - 2025-04-09
|
|
9
15
|
|
|
10
16
|
### 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";
|
|
@@ -173,6 +174,13 @@ declare const FormStatus: {
|
|
|
173
174
|
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
174
175
|
};
|
|
175
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];
|
|
176
184
|
|
|
177
185
|
type Responses = {
|
|
178
186
|
[key: string]: Response;
|
|
@@ -184,4 +192,4 @@ type FileInputResponse = {
|
|
|
184
192
|
based64EncodedFile: string | null;
|
|
185
193
|
};
|
|
186
194
|
|
|
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 };
|
|
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";
|
|
@@ -173,6 +174,13 @@ declare const FormStatus: {
|
|
|
173
174
|
readonly CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError";
|
|
174
175
|
};
|
|
175
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];
|
|
176
184
|
|
|
177
185
|
type Responses = {
|
|
178
186
|
[key: string]: Response;
|
|
@@ -184,4 +192,4 @@ type FileInputResponse = {
|
|
|
184
192
|
based64EncodedFile: string | null;
|
|
185
193
|
};
|
|
186
194
|
|
|
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 };
|
|
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);
|
|
@@ -59,9 +61,17 @@ var FormStatus = {
|
|
|
59
61
|
SERVER_ID_ERROR: "ServerIDError",
|
|
60
62
|
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
61
63
|
};
|
|
64
|
+
var NotificationsInterval = {
|
|
65
|
+
OFF: null,
|
|
66
|
+
DAY: 1440,
|
|
67
|
+
WEEK: 10080
|
|
68
|
+
};
|
|
69
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
62
70
|
// Annotate the CommonJS export names for ESM import in node:
|
|
63
71
|
0 && (module.exports = {
|
|
64
72
|
FormElementTypes,
|
|
65
73
|
FormStatus,
|
|
74
|
+
NotificationsInterval,
|
|
75
|
+
NotificationsIntervalDefault,
|
|
66
76
|
SortOption
|
|
67
77
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -31,8 +31,16 @@ var FormStatus = {
|
|
|
31
31
|
SERVER_ID_ERROR: "ServerIDError",
|
|
32
32
|
CAPTCHA_VERIFICATION_ERROR: "CaptchaVerificationError"
|
|
33
33
|
};
|
|
34
|
+
var NotificationsInterval = {
|
|
35
|
+
OFF: null,
|
|
36
|
+
DAY: 1440,
|
|
37
|
+
WEEK: 10080
|
|
38
|
+
};
|
|
39
|
+
var NotificationsIntervalDefault = NotificationsInterval.DAY;
|
|
34
40
|
export {
|
|
35
41
|
FormElementTypes,
|
|
36
42
|
FormStatus,
|
|
43
|
+
NotificationsInterval,
|
|
44
|
+
NotificationsIntervalDefault,
|
|
37
45
|
SortOption
|
|
38
46
|
};
|