bruce-models 7.1.97 → 7.1.98

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.
@@ -16743,13 +16743,21 @@
16743
16743
  EType["DataLabQuery"] = "DataLabQuery";
16744
16744
  EType["WorkflowTicket"] = "WorkflowTicket";
16745
16745
  })(EType = EntityTypeTrigger.EType || (EntityTypeTrigger.EType = {}));
16746
+ /**
16747
+ * Builds the Settings payload for a WorkflowTicket trigger.
16748
+ * @param params
16749
+ */
16746
16750
  function BuildWorkflowTicketSettings(params) {
16747
16751
  var _a;
16748
16752
  const settings = Object.assign(Object.assign({}, ((_a = params.extraSettings) !== null && _a !== void 0 ? _a : {})), { Condition: params.condition, WorkflowTicket: {
16749
- "Workflow.ItemType.ID": params.workflowItemTypeId,
16750
- "Workflow.Queue.ID": params.queueId,
16751
- "Workflow.ItemStatus.ID": params.statusId
16753
+ "Workflow.ItemType.ID": params.workflowItemTypeId
16752
16754
  } });
16755
+ if (params.queueId != null && params.queueId !== "") {
16756
+ settings.WorkflowTicket["Workflow.Queue.ID"] = params.queueId;
16757
+ }
16758
+ if (params.statusId != null && params.statusId !== "") {
16759
+ settings.WorkflowTicket["Workflow.ItemStatus.ID"] = params.statusId;
16760
+ }
16753
16761
  if (params.description != null && params.description !== "") {
16754
16762
  settings.WorkflowTicket.Description = params.description;
16755
16763
  }
@@ -23270,7 +23278,7 @@
23270
23278
  })(exports.UrlUtils || (exports.UrlUtils = {}));
23271
23279
 
23272
23280
  // This is updated with the package.json version on build.
23273
- const VERSION = "7.1.97";
23281
+ const VERSION = "7.1.98";
23274
23282
 
23275
23283
  exports.VERSION = VERSION;
23276
23284
  exports.AbstractApi = AbstractApi;