@gcforms/types 1.0.2 → 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 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 {
@@ -176,4 +183,4 @@ type FileInputResponse = {
176
183
  based64EncodedFile: string | null;
177
184
  };
178
185
 
179
- 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, 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 {
@@ -176,4 +183,4 @@ type FileInputResponse = {
176
183
  based64EncodedFile: string | null;
177
184
  };
178
185
 
179
- 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, 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
@@ -21,7 +21,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
23
  FormElementTypes: () => FormElementTypes,
24
- FormStatus: () => FormStatus
24
+ FormStatus: () => FormStatus,
25
+ SortOption: () => SortOption
25
26
  });
26
27
  module.exports = __toCommonJS(index_exports);
27
28
 
@@ -46,6 +47,11 @@ var FormElementTypes = /* @__PURE__ */ ((FormElementTypes2) => {
46
47
  FormElementTypes2["formattedDate"] = "formattedDate";
47
48
  return FormElementTypes2;
48
49
  })(FormElementTypes || {});
50
+ var SortOption = {
51
+ NONE: "none",
52
+ ASCENDING: "ascending",
53
+ DESCENDING: "descending"
54
+ };
49
55
  var FormStatus = {
50
56
  ERROR: "Error",
51
57
  FILE_ERROR: "FileError",
@@ -55,5 +61,6 @@ var FormStatus = {
55
61
  // Annotate the CommonJS export names for ESM import in node:
56
62
  0 && (module.exports = {
57
63
  FormElementTypes,
58
- FormStatus
64
+ FormStatus,
65
+ SortOption
59
66
  });
package/dist/index.mjs CHANGED
@@ -19,6 +19,11 @@ 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
+ };
22
27
  var FormStatus = {
23
28
  ERROR: "Error",
24
29
  FILE_ERROR: "FileError",
@@ -27,5 +32,6 @@ var FormStatus = {
27
32
  };
28
33
  export {
29
34
  FormElementTypes,
30
- FormStatus
35
+ FormStatus,
36
+ SortOption
31
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gcforms/types",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "author": "Canadian Digital Service",
5
5
  "license": "MIT",
6
6
  "publishConfig": {