@clxmedia/types 1.0.56 → 1.0.58

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.
@@ -1,3 +1,4 @@
1
+ import { XperienceAbility } from "../auth";
1
2
  export type CLXFormSelectOption = {
2
3
  value: string;
3
4
  label: string;
@@ -14,11 +15,28 @@ export type CLXFormQuestionLocator = {
14
15
  sectionPosition: number;
15
16
  questionSlug?: string;
16
17
  };
18
+ export type CLXFormState = {
19
+ rights: XperienceAbility;
20
+ mode: CLXFormMode;
21
+ locked: boolean;
22
+ };
23
+ export type CLXFormSettings = {
24
+ allowShare?: boolean;
25
+ allowReset?: boolean;
26
+ onSubmit?: 'lock' | 'reset';
27
+ notifyEmailsOnSubmit?: string[];
28
+ sectionFormat?: 'tabs' | 'accordion';
29
+ hideNavButtons?: boolean;
30
+ hideLocationHeader?: boolean;
31
+ hideFormTitle?: boolean;
32
+ hideProcessBar?: boolean;
33
+ };
17
34
  export type CLXForm = {
18
35
  id: number;
19
36
  slug: string;
20
37
  name: string;
21
38
  description?: string;
39
+ settings?: CLXFormSettings;
22
40
  };
23
41
  export type CLXFormResponseType = 'STRING' | 'NUMBER' | 'STRING_ARRAY' | 'CONTACT' | 'CONTACT_ARRAY' | 'BOOLEAN' | 'FILE' | 'DATE' | 'SCHEDULE' | 'COMPOUND' | 'MULTI_COMPOUND' | 'ANY';
24
42
  export type CLXFormFieldType = 'text' | 'textarea' | 'boolean' | 'select' | 'multiselect' | 'file' | 'contact' | 'date' | 'schedule' | 'compound';
@@ -374,11 +392,7 @@ export type FormStats = {
374
392
  required: FormStatCount;
375
393
  };
376
394
  export type CLXFormLayout = {
377
- form: {
378
- slug: string;
379
- name: string;
380
- description?: string;
381
- };
395
+ form: CLXForm;
382
396
  steps: CLXFormStep[];
383
397
  stats?: FormStats;
384
398
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",