@clxmedia/types 1.0.178 → 1.0.180

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.
@@ -8,6 +8,7 @@ export type XperienceRightsData = {
8
8
  master_id: number;
9
9
  type?: "company" | "person" | "owner" | "management";
10
10
  name?: string;
11
+ is_active?: boolean;
11
12
  }[];
12
13
  commonQualifiers: number[];
13
14
  rights: {
@@ -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,21 @@ 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 = {
99
+ columns: CLXGridColumn[];
100
+ rows: CLXGridRow[];
101
+ };
87
102
  export type CLXFormResponseStringValue = CLXFormResponseValueBase & {
88
103
  type: "STRING";
89
104
  value: string;
@@ -146,7 +161,11 @@ export type CLXFormResponseContactArrayValue = CLXFormResponseValueBase & {
146
161
  type: "CONTACT_ARRAY";
147
162
  value: CLXContactCard[];
148
163
  };
149
- export type CLXFormResponseValue = CLXFormResponseStringValue | CLXFormResponseStringArrayValue | CLXFormResponseNumberValue | CLXFormResponseDateValue | CLXFormResponseContactValue | CLXFormResponseContactArrayValue | CLXFormResponseCompoundValue | CLXFormResponseSingleCompoundValue | CLXFormResponseScheduleValue | CLXFormResponseFileValue | CLXFormResponseBooleanValue | CLXFormResponseAnyValue;
164
+ export type CLXFormResponseGridValue = CLXFormResponseValueBase & {
165
+ type: "GRID";
166
+ value: CLXGridData;
167
+ };
168
+ export type CLXFormResponseValue = CLXFormResponseStringValue | CLXFormResponseStringArrayValue | CLXFormResponseNumberValue | CLXFormResponseDateValue | CLXFormResponseGridValue | CLXFormResponseContactValue | CLXFormResponseContactArrayValue | CLXFormResponseCompoundValue | CLXFormResponseSingleCompoundValue | CLXFormResponseScheduleValue | CLXFormResponseFileValue | CLXFormResponseBooleanValue | CLXFormResponseAnyValue;
150
169
  export type CLXFormResponses = {
151
170
  [questionSlug: string]: CLXFormResponseValue;
152
171
  };
@@ -196,6 +215,10 @@ export type CLXCredentialFormField = CLXFormField & {
196
215
  type: "credential";
197
216
  response_type: "STRING";
198
217
  };
218
+ export type CLXGridFormField = CLXFormField & {
219
+ type: "grid";
220
+ response_type: "GRID";
221
+ };
199
222
  export type CLXContactFormFieldBase = CLXFormField & {
200
223
  type: "contact";
201
224
  response_type: "CONTACT" | "CONTACT_ARRAY";
@@ -284,7 +307,7 @@ export type CLXSingleCompoundFormField = CLXFormField & {
284
307
  compound_fields: CLXCompoundableFormField[];
285
308
  };
286
309
  export type CLXFormQuestionResponseOptions = {
287
- field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXCredentialFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
310
+ field: CLXTextFormField | CLXNumberFormField | CLXDateFormField | CLXScheduleFormField | CLXCredentialFormField | CLXGridFormField | CLXContactFormField | CLXMultipleContactFormField | CLXSingleCompoundFormField | CLXFileFormField | CLXCompoundFormField | CLXTextAreaFormField | CLXBooleanFormField | CLXSelectFormField | CLXMultiSelectFormField | CLXMultipleTextFormField;
288
311
  has_parent?: boolean;
289
312
  allow_reset?: boolean;
290
313
  tags?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.178",
3
+ "version": "1.0.180",
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
+ }