@coast/core-types 0.0.66 → 0.0.68

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,4 +1,5 @@
1
1
  export declare enum AccessLevelType {
2
+ CREATE = "CREATE",
2
3
  EDIT = "EDIT",
3
4
  FULL = "FULL",
4
5
  PERSONAL = "PERSONAL",
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AccessLevelType = void 0;
4
4
  var AccessLevelType;
5
5
  (function (AccessLevelType) {
6
+ AccessLevelType["CREATE"] = "CREATE";
6
7
  AccessLevelType["EDIT"] = "EDIT";
7
8
  AccessLevelType["FULL"] = "FULL";
8
9
  AccessLevelType["PERSONAL"] = "PERSONAL";
@@ -1 +1 @@
1
- {"version":3,"file":"AccessLevelType.js","sourceRoot":"","sources":["../../src/auth/AccessLevelType.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,wCAAqB,CAAA;IACrB,gCAAa,CAAA;AACjB,CAAC,EALW,eAAe,aAAf,eAAe,GAAf,eAAe,QAK1B"}
1
+ {"version":3,"file":"AccessLevelType.js","sourceRoot":"","sources":["../../src/auth/AccessLevelType.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,oCAAiB,CAAA;IACjB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,wCAAqB,CAAA;IACrB,gCAAa,CAAA;AACjB,CAAC,EANW,eAAe,aAAf,eAAe,GAAf,eAAe,QAM1B"}
@@ -5,6 +5,7 @@ import { IntegrationErrorCode } from '../integration/error/IntegrationErrorCode'
5
5
  import { MessagingErrorCode } from '../messaging/error/MessagingErrorCode';
6
6
  import { UserErrorCode } from '../user/error/UserErrorCode';
7
7
  import { ConstEnum } from '../utils/ConstEnum';
8
+ import { ViewTemplateLayoutErrorCode } from '../view-template-layout/error/ViewTemplateLayoutErrorCode';
8
9
  import { ViewTemplateErrorCode } from '../view-template/error/ViewTemplateErrorCode';
9
10
  import { WorkspaceDuplicationErrorCode } from '../workflow-app/error/WorkspaceDuplicationErrorCode';
10
11
  import { ComponentDataErrorCode } from '../workflow-entity/error/ComponentDataErrorCode';
@@ -14,5 +15,5 @@ import { WorkflowEntitySearchErrorCode } from '../workflow-entity/search/error/W
14
15
  import { ComponentErrorCode } from '../workflow-template/components/error/ComponentErrorCode';
15
16
  import { WorkflowTemplateErrorCode } from '../workflow-template/error/WorkflowTemplateErrorCode';
16
17
  import { GeneralErrorCode } from './GeneralErrorCode';
17
- export declare const ErrorCode: typeof AutomationErrorCode & typeof BundleListingErrorCode & typeof DashboardErrorCode & typeof IntegrationErrorCode & typeof MessagingErrorCode & typeof UserErrorCode & typeof ViewTemplateErrorCode & typeof WorkspaceDuplicationErrorCode & typeof ComponentDataErrorCode & typeof WorkflowEntityErrorCode & typeof RecurringEntitiesErrorCode & typeof WorkflowEntitySearchErrorCode & typeof ComponentErrorCode & typeof WorkflowTemplateErrorCode & typeof GeneralErrorCode;
18
+ export declare const ErrorCode: typeof AutomationErrorCode & typeof BundleListingErrorCode & typeof DashboardErrorCode & typeof IntegrationErrorCode & typeof MessagingErrorCode & typeof UserErrorCode & typeof ViewTemplateLayoutErrorCode & typeof ViewTemplateErrorCode & typeof WorkspaceDuplicationErrorCode & typeof ComponentDataErrorCode & typeof WorkflowEntityErrorCode & typeof RecurringEntitiesErrorCode & typeof WorkflowEntitySearchErrorCode & typeof ComponentErrorCode & typeof WorkflowTemplateErrorCode & typeof GeneralErrorCode;
18
19
  export type ErrorCode = ConstEnum<typeof ErrorCode>;
@@ -8,6 +8,7 @@ const IntegrationErrorCode_1 = require("../integration/error/IntegrationErrorCod
8
8
  const MessagingErrorCode_1 = require("../messaging/error/MessagingErrorCode");
9
9
  const UserErrorCode_1 = require("../user/error/UserErrorCode");
10
10
  const MultiEnum_1 = require("../utils/MultiEnum");
11
+ const ViewTemplateLayoutErrorCode_1 = require("../view-template-layout/error/ViewTemplateLayoutErrorCode");
11
12
  const ViewTemplateErrorCode_1 = require("../view-template/error/ViewTemplateErrorCode");
12
13
  const WorkspaceDuplicationErrorCode_1 = require("../workflow-app/error/WorkspaceDuplicationErrorCode");
13
14
  const ComponentDataErrorCode_1 = require("../workflow-entity/error/ComponentDataErrorCode");
@@ -17,5 +18,5 @@ const WorkflowEntitySearchErrorCode_1 = require("../workflow-entity/search/error
17
18
  const ComponentErrorCode_1 = require("../workflow-template/components/error/ComponentErrorCode");
18
19
  const WorkflowTemplateErrorCode_1 = require("../workflow-template/error/WorkflowTemplateErrorCode");
19
20
  const GeneralErrorCode_1 = require("./GeneralErrorCode");
20
- exports.ErrorCode = (0, MultiEnum_1.MultiEnum)(AutomationErrorCode_1.AutomationErrorCode, BundleListingErrorCode_1.BundleListingErrorCode, ComponentDataErrorCode_1.ComponentDataErrorCode, ComponentErrorCode_1.ComponentErrorCode, DashboardErrorCode_1.DashboardErrorCode, GeneralErrorCode_1.GeneralErrorCode, IntegrationErrorCode_1.IntegrationErrorCode, MessagingErrorCode_1.MessagingErrorCode, RecurringEntitiesErrorCode_1.RecurringEntitiesErrorCode, UserErrorCode_1.UserErrorCode, ViewTemplateErrorCode_1.ViewTemplateErrorCode, WorkflowEntityErrorCode_1.WorkflowEntityErrorCode, WorkflowEntitySearchErrorCode_1.WorkflowEntitySearchErrorCode, WorkflowTemplateErrorCode_1.WorkflowTemplateErrorCode, WorkspaceDuplicationErrorCode_1.WorkspaceDuplicationErrorCode);
21
+ exports.ErrorCode = (0, MultiEnum_1.MultiEnum)(AutomationErrorCode_1.AutomationErrorCode, BundleListingErrorCode_1.BundleListingErrorCode, ComponentDataErrorCode_1.ComponentDataErrorCode, ComponentErrorCode_1.ComponentErrorCode, DashboardErrorCode_1.DashboardErrorCode, GeneralErrorCode_1.GeneralErrorCode, IntegrationErrorCode_1.IntegrationErrorCode, MessagingErrorCode_1.MessagingErrorCode, RecurringEntitiesErrorCode_1.RecurringEntitiesErrorCode, UserErrorCode_1.UserErrorCode, ViewTemplateErrorCode_1.ViewTemplateErrorCode, ViewTemplateLayoutErrorCode_1.ViewTemplateLayoutErrorCode, WorkflowEntityErrorCode_1.WorkflowEntityErrorCode, WorkflowEntitySearchErrorCode_1.WorkflowEntitySearchErrorCode, WorkflowTemplateErrorCode_1.WorkflowTemplateErrorCode, WorkspaceDuplicationErrorCode_1.WorkspaceDuplicationErrorCode);
21
22
  //# sourceMappingURL=ErrorCode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../../src/error/ErrorCode.ts"],"names":[],"mappings":";;;AAAA,kFAA+E;AAC/E,mFAAgF;AAChF,8EAA2E;AAC3E,oFAAiF;AACjF,8EAA2E;AAC3E,+DAA4D;AAE5D,kDAA+C;AAC/C,wFAAqF;AACrF,uGAAoG;AACpG,4FAAyF;AACzF,8FAA2F;AAC3F,8GAA2G;AAC3G,iHAA8G;AAC9G,iGAA8F;AAC9F,oGAAiG;AACjG,yDAAsD;AAEzC,QAAA,SAAS,GAAG,IAAA,qBAAS,EAC9B,yCAAmB,EACnB,+CAAsB,EACtB,+CAAsB,EACtB,uCAAkB,EAClB,uCAAkB,EAClB,mCAAgB,EAChB,2CAAoB,EACpB,uCAAkB,EAClB,uDAA0B,EAC1B,6BAAa,EACb,6CAAqB,EACrB,iDAAuB,EACvB,6DAA6B,EAC7B,qDAAyB,EACzB,6DAA6B,CAChC,CAAC"}
1
+ {"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../../src/error/ErrorCode.ts"],"names":[],"mappings":";;;AAAA,kFAA+E;AAC/E,mFAAgF;AAChF,8EAA2E;AAC3E,oFAAiF;AACjF,8EAA2E;AAC3E,+DAA4D;AAE5D,kDAA+C;AAC/C,2GAAwG;AACxG,wFAAqF;AACrF,uGAAoG;AACpG,4FAAyF;AACzF,8FAA2F;AAC3F,8GAA2G;AAC3G,iHAA8G;AAC9G,iGAA8F;AAC9F,oGAAiG;AACjG,yDAAsD;AAEzC,QAAA,SAAS,GAAG,IAAA,qBAAS,EAC9B,yCAAmB,EACnB,+CAAsB,EACtB,+CAAsB,EACtB,uCAAkB,EAClB,uCAAkB,EAClB,mCAAgB,EAChB,2CAAoB,EACpB,uCAAkB,EAClB,uDAA0B,EAC1B,6BAAa,EACb,6CAAqB,EACrB,yDAA2B,EAC3B,iDAAuB,EACvB,6DAA6B,EAC7B,qDAAyB,EACzB,6DAA6B,CAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare enum ViewTemplateLayoutErrorCode {
2
+ VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS = "VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS"
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewTemplateLayoutErrorCode = void 0;
4
+ var ViewTemplateLayoutErrorCode;
5
+ (function (ViewTemplateLayoutErrorCode) {
6
+ ViewTemplateLayoutErrorCode["VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS"] = "VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS";
7
+ })(ViewTemplateLayoutErrorCode || (exports.ViewTemplateLayoutErrorCode = ViewTemplateLayoutErrorCode = {}));
8
+ //# sourceMappingURL=ViewTemplateLayoutErrorCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ViewTemplateLayoutErrorCode.js","sourceRoot":"","sources":["../../../src/view-template-layout/error/ViewTemplateLayoutErrorCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAEX;AAFD,WAAY,2BAA2B;IACnC,wHAAyF,CAAA;AAC7F,CAAC,EAFW,2BAA2B,aAA3B,2BAA2B,GAA3B,2BAA2B,QAEtC"}
@@ -1,7 +1,9 @@
1
+ import { EntityType } from '../../../common/EntityType';
1
2
  import { CompensationType } from '../CompensationType';
2
3
  import { TAutomationActionReference } from '../TAutomationActionReference';
3
4
  import { TAutomationCompensation } from './TAutomationCompensation';
4
5
  export interface TClearWorkflowTemplateReferenceAutomationActionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE> {
5
6
  sourceAction: TAutomationActionReference;
6
7
  newAction: TAutomationActionReference;
8
+ clearedReferenceType: EntityType.AUTOMATION | EntityType.WORKFLOW_TEMPLATE;
7
9
  }
@@ -2,6 +2,7 @@ export declare enum WorkflowTemplateErrorCode {
2
2
  WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED = "WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED",
3
3
  WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE = "WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE",
4
4
  WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS = "WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS",
5
+ WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS = "WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS",
5
6
  WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS = "WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS",
6
7
  WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN = "WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN",
7
8
  WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED = "WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED",
@@ -6,6 +6,7 @@ var WorkflowTemplateErrorCode;
6
6
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED"] = "WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED";
7
7
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE"] = "WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE";
8
8
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS"] = "WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS";
9
+ WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS"] = "WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS";
9
10
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS"] = "WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS";
10
11
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN"] = "WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN";
11
12
  WorkflowTemplateErrorCode["WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED"] = "WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED";
@@ -1 +1 @@
1
- {"version":3,"file":"WorkflowTemplateErrorCode.js","sourceRoot":"","sources":["../../../src/workflow-template/error/WorkflowTemplateErrorCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAgBX;AAhBD,WAAY,yBAAyB;IACjC,8HAAiG,CAAA;IACjG,8HAAiG,CAAA;IACjG,sHAAyF,CAAA;IACzF,oJAAuH,CAAA;IACvH,oJAAuH,CAAA;IACvH,gHAAmF,CAAA;IACnF,gIAAmG,CAAA;IACnG,wJAA2H,CAAA;IAC3H,kJAAqH,CAAA;IACrH,4IAA+G,CAAA;IAC/G,oKAAuI,CAAA;IACvI,oIAAuG,CAAA;IACvG,oHAAuF,CAAA;IACvF,oLAAuJ,CAAA;IACvJ,wLAA2J,CAAA;AAC/J,CAAC,EAhBW,yBAAyB,aAAzB,yBAAyB,GAAzB,yBAAyB,QAgBpC"}
1
+ {"version":3,"file":"WorkflowTemplateErrorCode.js","sourceRoot":"","sources":["../../../src/workflow-template/error/WorkflowTemplateErrorCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAiBX;AAjBD,WAAY,yBAAyB;IACjC,8HAAiG,CAAA;IACjG,8HAAiG,CAAA;IACjG,sHAAyF,CAAA;IACzF,wHAA2F,CAAA;IAC3F,oJAAuH,CAAA;IACvH,oJAAuH,CAAA;IACvH,gHAAmF,CAAA;IACnF,gIAAmG,CAAA;IACnG,wJAA2H,CAAA;IAC3H,kJAAqH,CAAA;IACrH,4IAA+G,CAAA;IAC/G,oKAAuI,CAAA;IACvI,oIAAuG,CAAA;IACvG,oHAAuF,CAAA;IACvF,oLAAuJ,CAAA;IACvJ,wLAA2J,CAAA;AAC/J,CAAC,EAjBW,yBAAyB,aAAzB,yBAAyB,GAAzB,yBAAyB,QAiBpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coast/core-types",
3
- "version": "0.0.66",
3
+ "version": "0.0.68",
4
4
  "author": "Coast Engineering",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -1,4 +1,5 @@
1
1
  export enum AccessLevelType {
2
+ CREATE = 'CREATE',
2
3
  EDIT = 'EDIT',
3
4
  FULL = 'FULL',
4
5
  PERSONAL = 'PERSONAL',
@@ -6,6 +6,7 @@ import { MessagingErrorCode } from '../messaging/error/MessagingErrorCode';
6
6
  import { UserErrorCode } from '../user/error/UserErrorCode';
7
7
  import { ConstEnum } from '../utils/ConstEnum';
8
8
  import { MultiEnum } from '../utils/MultiEnum';
9
+ import { ViewTemplateLayoutErrorCode } from '../view-template-layout/error/ViewTemplateLayoutErrorCode';
9
10
  import { ViewTemplateErrorCode } from '../view-template/error/ViewTemplateErrorCode';
10
11
  import { WorkspaceDuplicationErrorCode } from '../workflow-app/error/WorkspaceDuplicationErrorCode';
11
12
  import { ComponentDataErrorCode } from '../workflow-entity/error/ComponentDataErrorCode';
@@ -28,6 +29,7 @@ export const ErrorCode = MultiEnum(
28
29
  RecurringEntitiesErrorCode,
29
30
  UserErrorCode,
30
31
  ViewTemplateErrorCode,
32
+ ViewTemplateLayoutErrorCode,
31
33
  WorkflowEntityErrorCode,
32
34
  WorkflowEntitySearchErrorCode,
33
35
  WorkflowTemplateErrorCode,
@@ -0,0 +1,3 @@
1
+ export enum ViewTemplateLayoutErrorCode {
2
+ VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS = 'VIEW_TEMPLATE_LAYOUT_UNKNOWN_COMPONENT_IDS',
3
+ }
@@ -1,3 +1,4 @@
1
+ import { EntityType } from '../../../common/EntityType';
1
2
  import { CompensationType } from '../CompensationType';
2
3
  import { TAutomationActionReference } from '../TAutomationActionReference';
3
4
  import { TAutomationCompensation } from './TAutomationCompensation';
@@ -5,4 +6,5 @@ import { TAutomationCompensation } from './TAutomationCompensation';
5
6
  export interface TClearWorkflowTemplateReferenceAutomationActionCompensation extends TAutomationCompensation<CompensationType.CLEAR_AUTOMATION_ACTION_WORKFLOW_TEMPLATE_REFERENCE> {
6
7
  sourceAction: TAutomationActionReference;
7
8
  newAction: TAutomationActionReference;
9
+ clearedReferenceType: EntityType.AUTOMATION | EntityType.WORKFLOW_TEMPLATE;
8
10
  }
@@ -2,6 +2,7 @@ export enum WorkflowTemplateErrorCode {
2
2
  WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED = 'WORKFLOW_TEMPLATE_ACTIVE_COMPONENT_IS_ARCHIVED',
3
3
  WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE = 'WORKFLOW_TEMPLATE_ARCHIVED_COMPONENT_REFERENCE',
4
4
  WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS = 'WORKFLOW_TEMPLATE_CANNOT_DELETE_COMPONENTS',
5
+ WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS = 'WORKFLOW_TEMPLATE_CANNOT_DELETE_TAG_OPTIONS',
5
6
  WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS = 'WORKFLOW_TEMPLATE_CANNOT_HAVE_MULTIPLE_SUBFORM_COMPONENTS',
6
7
  WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN = 'WORKFLOW_TEMPLATE_COMPONENT_CANNOT_BE_REQUIRED_AND_HIDDEN',
7
8
  WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED = 'WORKFLOW_TEMPLATE_COMPONENT_NOT_ALLOWED',