@clxmedia/types 1.11.0 → 1.12.1

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.
@@ -27,13 +27,13 @@ export type XperienceRightsData = {
27
27
  };
28
28
  /** Entity specialist roles mapped to company master IDs where the user has that specialist role */
29
29
  entitySpecialistRoles: {
30
- [K in SpecialistRole]?: CompanyMasterIds;
30
+ [K in CLiQTeamRole]?: CompanyMasterIds;
31
31
  };
32
32
  };
33
- export type SpecialistRole = "account_mgr" | "implementation" | "search" | "media" | "performance" | "organic_content" | "tcc" | "cat" | "chat";
34
33
  export type CompanyMasterIds = number[];
35
34
  export type CLiQUserLocatorType = "user" | "group" | "role";
36
- export type CLiQUserLocatorRoles = `entity_specialist_${SpecialistRole}` | "entity_cs_project_manager" | "entity_cs_stager" | "task_assignee";
35
+ export type CLiQTeamRole = 'account_manager' | 'search_specialist' | 'media_specialist' | 'implementation_specialist' | 'performance_specialist' | 'client_service_lead' | 'ad_operations_lead' | 'project_manager' | 'content_specialist' | 'tcc' | 'cat' | 'chat' | 'stager' | 'digital_strategist';
36
+ export type CLiQUserLocatorRoles = `entity_role_${CLiQTeamRole}` | "task_assignee";
37
37
  export type CLiQUserLocatorBase = {
38
38
  type: CLiQUserLocatorType;
39
39
  value: string;
@@ -41,6 +41,7 @@ export type CLXFormSettings = {
41
41
  allow: CLXFormAllowable[];
42
42
  submit: CLXFormSubmitConfig;
43
43
  display: CLXFormSettingsDisplay;
44
+ gateSatisfiedResponseSlug?: string;
44
45
  };
45
46
  export type CLXForm = {
46
47
  id: number;
@@ -396,6 +397,11 @@ export type CLXFormRuleNumberComparisonInstance = CLXFormRuleInstanceBase & {
396
397
  comparisonType: "numberEquals" | "numberGreaterThan" | "numberLessThan";
397
398
  };
398
399
  export type CLXFormRuleInstance = CLXFormRuleStringComparisonInstance | CLXFormRuleStringExistsComparisonInstance | CLXFormRuleStringInListInstance | CLXFormRuleFileExistsInstance | CLXFormRuleDateComparisonInstance | CLXFormRuleStringListToStringListInstance | CLXFormRuleStringListComparisonInstance | CLXFormRuleBooleanEqualsInstance | CLXFormRuleNumberComparisonInstance;
400
+ /**
401
+ * A form rule set is a collection of rules/conditions to evaluate.
402
+ *
403
+ * The rule set can contain a single rule, a combination of multiple rules, or nested rule sets.
404
+ */
399
405
  export type CLXFormRuleSet = {
400
406
  rules: (CLXFormRuleDefinition | CLXFormRuleSet)[];
401
407
  combinator?: "and" | "or";
@@ -409,6 +415,10 @@ export type CLXConditionalOverrides = {
409
415
  override: number;
410
416
  })[];
411
417
  };
418
+ /**
419
+ * Defines the behavior of a question (identified by a question slug) within a form.
420
+ * E.g. Indicates whether the question is required or if any conditions must be met to enable the question.
421
+ */
412
422
  export type CLXFormQuestionLayout = {
413
423
  id: number;
414
424
  form_question_slug: string;
@@ -419,6 +429,11 @@ export type CLXFormQuestionLayout = {
419
429
  is_complete?: boolean;
420
430
  scope?: CLXResponseStoreTarget;
421
431
  };
432
+ /**
433
+ * A form section is a grouping of form questions.
434
+ *
435
+ * Conditions can determine whether or not a section is enabled.
436
+ */
422
437
  export type CLXFormSection = {
423
438
  id: number;
424
439
  name: string;
@@ -430,6 +445,12 @@ export type CLXFormQuestionBundle = {
430
445
  question: CLXFormQuestion;
431
446
  layout: CLXFormQuestionLayout;
432
447
  };
448
+ /**
449
+ * A form step is composed of one or more form sections.
450
+ *
451
+ * Steps are in a defined order, but one form step does not necessarily block the next.
452
+ * Conditions can determine whether or not a form step is enabled.
453
+ */
433
454
  export type CLXFormStep = {
434
455
  id: number;
435
456
  name: string;
@@ -446,6 +467,9 @@ export type FormStats = {
446
467
  optional: FormStatCount;
447
468
  required: FormStatCount;
448
469
  };
470
+ /**
471
+ * Defines the top-level layout of a form, with questions grouped into one or more steps.
472
+ */
449
473
  export type CLXFormLayout = {
450
474
  form: CLXForm;
451
475
  steps: CLXFormStep[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.11.0",
3
+ "version": "1.12.1",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",