@clxmedia/types 1.0.179 → 1.0.181

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.
@@ -48,8 +48,8 @@ export type CLXForm = {
48
48
  description?: string;
49
49
  settings?: CLXFormSettings;
50
50
  };
51
- export type CLXFormResponseType = "STRING" | "NUMBER" | "STRING_ARRAY" | "CONTACT" | "CONTACT_ARRAY" | "BOOLEAN" | "FILE" | "DATE" | "SCHEDULE" | "COMPOUND" | "MULTI_COMPOUND" | "ANY";
52
- export type CLXFormFieldType = "text" | "textarea" | "credential" | "boolean" | "select" | "multiselect" | "file" | "contact" | "date" | "schedule" | "compound";
51
+ export type CLXFormResponseType = "STRING" | "NUMBER" | "STRING_ARRAY" | "GRID" | "CONTACT" | "CONTACT_ARRAY" | "BOOLEAN" | "FILE" | "DATE" | "SCHEDULE" | "COMPOUND" | "MULTI_COMPOUND" | "ANY";
52
+ export type CLXFormFieldType = "text" | "textarea" | "credential" | "grid" | "boolean" | "select" | "multiselect" | "file" | "contact" | "date" | "schedule" | "compound";
53
53
  export type CLXFormSelectType = "select" | "radio" | "checkbox" | "freeform";
54
54
  export type CLXFormConditionSubjectEntry = {
55
55
  value: string;
@@ -84,6 +84,18 @@ export type CLXContactCard = {
84
84
  email: string | null;
85
85
  phone: string | null;
86
86
  };
87
+ export type CLXGridColumnType = "string" | "number" | "boolean";
88
+ export type CLXGridColumn = {
89
+ title: string;
90
+ slug: string;
91
+ type: CLXGridColumnType;
92
+ width: number;
93
+ required?: boolean;
94
+ };
95
+ export type CLXGridRow = {
96
+ [x: string]: string | number | boolean;
97
+ };
98
+ export type CLXGridData = CLXGridRow[];
87
99
  export type CLXFormResponseStringValue = CLXFormResponseValueBase & {
88
100
  type: "STRING";
89
101
  value: string;
@@ -146,7 +158,11 @@ export type CLXFormResponseContactArrayValue = CLXFormResponseValueBase & {
146
158
  type: "CONTACT_ARRAY";
147
159
  value: CLXContactCard[];
148
160
  };
149
- export type CLXFormResponseValue = CLXFormResponseStringValue | CLXFormResponseStringArrayValue | CLXFormResponseNumberValue | CLXFormResponseDateValue | CLXFormResponseContactValue | CLXFormResponseContactArrayValue | CLXFormResponseCompoundValue | CLXFormResponseSingleCompoundValue | CLXFormResponseScheduleValue | CLXFormResponseFileValue | CLXFormResponseBooleanValue | CLXFormResponseAnyValue;
161
+ export type CLXFormResponseGridValue = CLXFormResponseValueBase & {
162
+ type: "GRID";
163
+ value: CLXGridData;
164
+ };
165
+ export type CLXFormResponseValue = CLXFormResponseStringValue | CLXFormResponseStringArrayValue | CLXFormResponseNumberValue | CLXFormResponseDateValue | CLXFormResponseGridValue | CLXFormResponseContactValue | CLXFormResponseContactArrayValue | CLXFormResponseCompoundValue | CLXFormResponseSingleCompoundValue | CLXFormResponseScheduleValue | CLXFormResponseFileValue | CLXFormResponseBooleanValue | CLXFormResponseAnyValue;
150
166
  export type CLXFormResponses = {
151
167
  [questionSlug: string]: CLXFormResponseValue;
152
168
  };
@@ -196,6 +212,11 @@ export type CLXCredentialFormField = CLXFormField & {
196
212
  type: "credential";
197
213
  response_type: "STRING";
198
214
  };
215
+ export type CLXGridFormField = CLXFormField & {
216
+ type: "grid";
217
+ response_type: "GRID";
218
+ columns: CLXGridColumn[];
219
+ };
199
220
  export type CLXContactFormFieldBase = CLXFormField & {
200
221
  type: "contact";
201
222
  response_type: "CONTACT" | "CONTACT_ARRAY";
@@ -284,7 +305,7 @@ export type CLXSingleCompoundFormField = CLXFormField & {
284
305
  compound_fields: CLXCompoundableFormField[];
285
306
  };
286
307
  export type CLXFormQuestionResponseOptions = {
287
- field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXCredentialFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
308
+ field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXCredentialFormField | CLXGridFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
288
309
  has_parent?: boolean;
289
310
  allow_reset?: boolean;
290
311
  tags?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.179",
3
+ "version": "1.0.181",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -106,4 +106,4 @@
106
106
  "url": "git+https://github.com/adsupnow/clxmedia-type-definitions.git"
107
107
  },
108
108
  "bugs": "https://github.com/adsupnow/clxmedia-type-definitions"
109
- }
109
+ }