@coast/core-types 0.0.38 → 0.0.40
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.
- package/dist/bundle/BundleListingId.js.map +1 -0
- package/dist/bundle/error/BundleHasActiveListingException.d.ts +10 -0
- package/dist/bundle/error/BundleHasActiveListingException.js +19 -0
- package/dist/bundle/error/BundleHasActiveListingException.js.map +1 -0
- package/dist/bundle/error/BundleListingErrorCode.d.ts +5 -0
- package/dist/{workflow-library → bundle}/error/BundleListingErrorCode.js +2 -0
- package/dist/bundle/error/BundleListingErrorCode.js.map +1 -0
- package/dist/bundle/error/CannotListDisabledBundleException.d.ts +9 -0
- package/dist/bundle/error/CannotListDisabledBundleException.js +19 -0
- package/dist/bundle/error/CannotListDisabledBundleException.js.map +1 -0
- package/dist/bundle/error/MultipleBundleListingsException.js.map +1 -0
- package/dist/common/EntityIdMap.d.ts +4 -0
- package/dist/common/EntityIdMap.js.map +1 -1
- package/dist/common/EntityType.d.ts +2 -0
- package/dist/common/EntityType.js +2 -0
- package/dist/common/EntityType.js.map +1 -1
- package/dist/common/EntityTypeLabels.js +2 -0
- package/dist/common/EntityTypeLabels.js.map +1 -1
- package/dist/error/ErrorCode.d.ts +2 -2
- package/dist/error/ErrorCode.js +1 -1
- package/dist/error/ErrorCode.js.map +1 -1
- package/dist/workflow-library/Industry.d.ts +11 -5
- package/dist/workflow-library/Industry.js +11 -5
- package/dist/workflow-library/Industry.js.map +1 -1
- package/dist/workflow-library/IndustryIconNames.d.ts +3 -0
- package/dist/workflow-library/IndustryIconNames.js +19 -0
- package/dist/workflow-library/IndustryIconNames.js.map +1 -0
- package/dist/workflow-library/IndustryLabels.d.ts +2 -0
- package/dist/workflow-library/IndustryLabels.js +19 -0
- package/dist/workflow-library/IndustryLabels.js.map +1 -0
- package/dist/workflow-library/TagType.d.ts +2 -2
- package/dist/workflow-library/TagType.js +1 -1
- package/dist/workflow-library/TagType.js.map +1 -1
- package/dist/workflow-library/TagValue.d.ts +2 -2
- package/dist/workflow-library/TagValue.js +2 -2
- package/dist/workflow-library/TagValue.js.map +1 -1
- package/dist/workflow-library/UseCase.d.ts +11 -0
- package/dist/workflow-library/UseCase.js +16 -0
- package/dist/workflow-library/UseCase.js.map +1 -0
- package/dist/workflow-library/UseCaseIconNames.d.ts +3 -0
- package/dist/workflow-library/UseCaseIconNames.js +16 -0
- package/dist/workflow-library/UseCaseIconNames.js.map +1 -0
- package/dist/workflow-library/UseCaseLabels.d.ts +2 -0
- package/dist/workflow-library/UseCaseLabels.js +16 -0
- package/dist/workflow-library/UseCaseLabels.js.map +1 -0
- package/dist/workflow-template/components/SortableComponentType.d.ts +2 -0
- package/dist/workflow-template/components/SortableComponentType.js +3 -0
- package/dist/workflow-template/components/SortableComponentType.js.map +1 -0
- package/dist/workflow-template/components/SortableComponentTypes.d.ts +2 -0
- package/dist/workflow-template/components/SortableComponentTypes.js +6 -0
- package/dist/workflow-template/components/SortableComponentTypes.js.map +1 -0
- package/package.json +1 -1
- package/src/bundle/error/BundleHasActiveListingException.ts +26 -0
- package/src/bundle/error/BundleListingErrorCode.ts +5 -0
- package/src/bundle/error/CannotListDisabledBundleException.ts +21 -0
- package/src/common/EntityIdMap.ts +4 -0
- package/src/common/EntityType.ts +2 -0
- package/src/common/EntityTypeLabels.ts +2 -0
- package/src/error/ErrorCode.ts +1 -1
- package/src/workflow-library/Industry.ts +11 -5
- package/src/workflow-library/IndustryIconNames.ts +18 -0
- package/src/workflow-library/IndustryLabels.ts +16 -0
- package/src/workflow-library/TagType.ts +1 -1
- package/src/workflow-library/TagValue.ts +2 -2
- package/src/workflow-library/UseCase.ts +11 -0
- package/src/workflow-library/UseCaseIconNames.ts +15 -0
- package/src/workflow-library/UseCaseLabels.ts +13 -0
- package/src/workflow-template/components/SortableComponentType.ts +3 -0
- package/src/workflow-template/components/SortableComponentTypes.ts +3 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow-library/BundleListingId.js.map +0 -1
- package/dist/workflow-library/Category.d.ts +0 -8
- package/dist/workflow-library/Category.js +0 -13
- package/dist/workflow-library/Category.js.map +0 -1
- package/dist/workflow-library/error/BundleListingErrorCode.d.ts +0 -3
- package/dist/workflow-library/error/BundleListingErrorCode.js.map +0 -1
- package/dist/workflow-library/error/MultipleBundleListingsException.js.map +0 -1
- package/src/workflow-library/Category.ts +0 -8
- package/src/workflow-library/error/BundleListingErrorCode.ts +0 -3
- /package/dist/{workflow-library → bundle}/BundleListingId.d.ts +0 -0
- /package/dist/{workflow-library → bundle}/BundleListingId.js +0 -0
- /package/dist/{workflow-library → bundle}/error/MultipleBundleListingsException.d.ts +0 -0
- /package/dist/{workflow-library → bundle}/error/MultipleBundleListingsException.js +0 -0
- /package/src/{workflow-library → bundle}/BundleListingId.ts +0 -0
- /package/src/{workflow-library → bundle}/error/MultipleBundleListingsException.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleListingId.js","sourceRoot":"","sources":["../../src/bundle/BundleListingId.ts"],"names":[],"mappings":";;;AAKA,yBAAgC,EAAU;IACtC,OAAO,EAAqB,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CoastException } from '../../exception/CoastException';
|
|
2
|
+
type Options = {
|
|
3
|
+
bundleId: string;
|
|
4
|
+
bundleListingId: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class BundleHasActiveListingException extends CoastException {
|
|
8
|
+
constructor(options: Options);
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BundleHasActiveListingException = void 0;
|
|
4
|
+
const CoastException_1 = require("../../exception/CoastException");
|
|
5
|
+
const HttpStatus_1 = require("../../utils/HttpStatus");
|
|
6
|
+
const BundleListingErrorCode_1 = require("./BundleListingErrorCode");
|
|
7
|
+
class BundleHasActiveListingException extends CoastException_1.CoastException {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
const { bundleId, bundleListingId, message = 'Bundle cannot be un-shared while it has an active BundleListing. Delete the BundleListing first.', } = options;
|
|
10
|
+
super({
|
|
11
|
+
code: BundleListingErrorCode_1.BundleListingErrorCode.BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE,
|
|
12
|
+
status: HttpStatus_1.HttpStatus.BAD_REQUEST,
|
|
13
|
+
message,
|
|
14
|
+
additionalData: { bundleId, bundleListingId },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.BundleHasActiveListingException = BundleHasActiveListingException;
|
|
19
|
+
//# sourceMappingURL=BundleHasActiveListingException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleHasActiveListingException.js","sourceRoot":"","sources":["../../../src/bundle/error/BundleHasActiveListingException.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,uDAAoD;AACpD,qEAAkE;AAQlE,qCAA6C,SAAQ,+BAAc;IAC/D,YAAmB,OAAgB;QAC/B,MAAM,EACF,QAAQ,EACR,eAAe,EACf,OAAO,GAAG,kGAAkG,GAC/G,GAAG,OAAO,CAAC;QAEZ,KAAK,CAAC;YACF,IAAI,EAAE,+CAAsB,CAAC,sCAAsC;YACnE,MAAM,EAAE,uBAAU,CAAC,WAAW;YAC9B,OAAO;YACP,cAAc,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE;SAChD,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare enum BundleListingErrorCode {
|
|
2
|
+
BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE = "BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE",
|
|
3
|
+
BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE = "BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE",
|
|
4
|
+
BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE = "BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE"
|
|
5
|
+
}
|
|
@@ -4,5 +4,7 @@ exports.BundleListingErrorCode = void 0;
|
|
|
4
4
|
var BundleListingErrorCode;
|
|
5
5
|
(function (BundleListingErrorCode) {
|
|
6
6
|
BundleListingErrorCode["BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE"] = "BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE";
|
|
7
|
+
BundleListingErrorCode["BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE"] = "BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE";
|
|
8
|
+
BundleListingErrorCode["BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE"] = "BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE";
|
|
7
9
|
})(BundleListingErrorCode || (exports.BundleListingErrorCode = BundleListingErrorCode = {}));
|
|
8
10
|
//# sourceMappingURL=BundleListingErrorCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BundleListingErrorCode.js","sourceRoot":"","sources":["../../../src/bundle/error/BundleListingErrorCode.ts"],"names":[],"mappings":";;;AAAA,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAC9B,mIAAyG,CAAA;IACzG,2GAAiF,CAAA;IACjF,2GAAiF,CAAA;AACrF,CAAC,EAJW,sBAAsB,aAAtB,sBAAsB,GAAtB,sBAAsB,QAIjC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CannotListDisabledBundleException = void 0;
|
|
4
|
+
const CoastException_1 = require("../../exception/CoastException");
|
|
5
|
+
const HttpStatus_1 = require("../../utils/HttpStatus");
|
|
6
|
+
const BundleListingErrorCode_1 = require("./BundleListingErrorCode");
|
|
7
|
+
class CannotListDisabledBundleException extends CoastException_1.CoastException {
|
|
8
|
+
constructor(options) {
|
|
9
|
+
const { bundleId, message = 'Cannot create a BundleListing for a disabled Bundle. Share the Bundle first.' } = options;
|
|
10
|
+
super({
|
|
11
|
+
code: BundleListingErrorCode_1.BundleListingErrorCode.BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE,
|
|
12
|
+
status: HttpStatus_1.HttpStatus.BAD_REQUEST,
|
|
13
|
+
message,
|
|
14
|
+
additionalData: { bundleId },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.CannotListDisabledBundleException = CannotListDisabledBundleException;
|
|
19
|
+
//# sourceMappingURL=CannotListDisabledBundleException.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CannotListDisabledBundleException.js","sourceRoot":"","sources":["../../../src/bundle/error/CannotListDisabledBundleException.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,uDAAoD;AACpD,qEAAkE;AAOlE,uCAA+C,SAAQ,+BAAc;IACjE,YAAmB,OAAgB;QAC/B,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,8EAA8E,EAAE,GAAG,OAAO,CAAC;QAEvH,KAAK,CAAC;YACF,IAAI,EAAE,+CAAsB,CAAC,sCAAsC;YACnE,MAAM,EAAE,uBAAU,CAAC,WAAW;YAC9B,OAAO;YACP,cAAc,EAAE,EAAE,QAAQ,EAAE;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultipleBundleListingsException.js","sourceRoot":"","sources":["../../../src/bundle/error/MultipleBundleListingsException.ts"],"names":[],"mappings":";;;AAAA,mEAAgE;AAChE,uDAAoD;AACpD,qEAAkE;AAOlE,qCAA6C,SAAQ,+BAAc;IAC/D,YAAmB,OAAgB;QAC/B,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,iDAAiD,EAAE,GAAG,OAAO,CAAC;QAE1F,KAAK,CAAC;YACF,IAAI,EAAE,+CAAsB,CAAC,kDAAkD;YAC/E,MAAM,EAAE,uBAAU,CAAC,WAAW;YAC9B,OAAO;YACP,cAAc,EAAE,EAAE,QAAQ,EAAE;SAC/B,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -2,6 +2,8 @@ import { AutomationActionId } from '../automations/action/AutomationActionId';
|
|
|
2
2
|
import { AutomationId } from '../automations/AutomationId';
|
|
3
3
|
import { WorkspaceId } from '../channel/WorkspaceId';
|
|
4
4
|
import { UserId } from '../user/UserId';
|
|
5
|
+
import { ViewTemplateLayoutId } from '../view-template-layout/ViewTemplateLayoutId';
|
|
6
|
+
import { ViewTemplateLayoutItemId } from '../view-template-layout/ViewTemplateLayoutItemId';
|
|
5
7
|
import { ViewTemplateId } from '../view-template/ViewTemplateId';
|
|
6
8
|
import { RecurringEntitiesScheduleId } from '../workflow-entity/recurring/RecurringEntitiesScheduleId';
|
|
7
9
|
import { ComponentId } from '../workflow-template/components/ComponentId';
|
|
@@ -17,6 +19,8 @@ export type EntityIdMap = Record<EntityType, unknown> & {
|
|
|
17
19
|
[EntityType.RECURRING_ENTITIES_SCHEDULE]: RecurringEntitiesScheduleId;
|
|
18
20
|
[EntityType.USER]: UserId;
|
|
19
21
|
[EntityType.VIEW_TEMPLATE]: ViewTemplateId;
|
|
22
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT]: ViewTemplateLayoutId;
|
|
23
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT_ITEM]: ViewTemplateLayoutItemId;
|
|
20
24
|
[EntityType.WORKFLOW_ENTITY]: string;
|
|
21
25
|
[EntityType.WORKFLOW_TEMPLATE]: WorkflowTemplateId;
|
|
22
26
|
[EntityType.WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION]: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityIdMap.js","sourceRoot":"","sources":["../../src/common/EntityIdMap.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"EntityIdMap.js","sourceRoot":"","sources":["../../src/common/EntityIdMap.ts"],"names":[],"mappings":";;AAUA,6CAA0C"}
|
|
@@ -10,6 +10,8 @@ export declare enum EntityType {
|
|
|
10
10
|
RECURRING_ENTITIES_SCHEDULE = "RECURRING_ENTITIES_SCHEDULE",
|
|
11
11
|
USER = "USER",
|
|
12
12
|
VIEW_TEMPLATE = "VIEW_TEMPLATE",
|
|
13
|
+
VIEW_TEMPLATE_LAYOUT = "VIEW_TEMPLATE_LAYOUT",
|
|
14
|
+
VIEW_TEMPLATE_LAYOUT_ITEM = "VIEW_TEMPLATE_LAYOUT_ITEM",
|
|
13
15
|
WORKFLOW_ENTITY = "WORKFLOW_ENTITY",
|
|
14
16
|
WORKFLOW_TEMPLATE = "WORKFLOW_TEMPLATE",
|
|
15
17
|
WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION = "WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION"
|
|
@@ -14,6 +14,8 @@ var EntityType;
|
|
|
14
14
|
EntityType["RECURRING_ENTITIES_SCHEDULE"] = "RECURRING_ENTITIES_SCHEDULE";
|
|
15
15
|
EntityType["USER"] = "USER";
|
|
16
16
|
EntityType["VIEW_TEMPLATE"] = "VIEW_TEMPLATE";
|
|
17
|
+
EntityType["VIEW_TEMPLATE_LAYOUT"] = "VIEW_TEMPLATE_LAYOUT";
|
|
18
|
+
EntityType["VIEW_TEMPLATE_LAYOUT_ITEM"] = "VIEW_TEMPLATE_LAYOUT_ITEM";
|
|
17
19
|
EntityType["WORKFLOW_ENTITY"] = "WORKFLOW_ENTITY";
|
|
18
20
|
EntityType["WORKFLOW_TEMPLATE"] = "WORKFLOW_TEMPLATE";
|
|
19
21
|
EntityType["WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION"] = "WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityType.js","sourceRoot":"","sources":["../../src/common/EntityType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"EntityType.js","sourceRoot":"","sources":["../../src/common/EntityType.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAiBX;AAjBD,WAAY,UAAU;IAClB,uCAAyB,CAAA;IACzB,qDAAuC,CAAA;IACvC,+BAAiB,CAAA;IACjB,+CAAiC,CAAA;IACjC,2BAAa,CAAA;IACb,iDAAmC,CAAA;IACnC,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;IACvB,yEAA2D,CAAA;IAC3D,2BAAa,CAAA;IACb,6CAA+B,CAAA;IAC/B,2DAA6C,CAAA;IAC7C,qEAAuD,CAAA;IACvD,iDAAmC,CAAA;IACnC,qDAAuC,CAAA;IACvC,mGAAqF,CAAA;AACzF,CAAC,EAjBW,UAAU,aAAV,UAAU,GAAV,UAAU,QAiBrB"}
|
|
@@ -13,6 +13,8 @@ exports.EntityTypeLabels = {
|
|
|
13
13
|
[EntityType_1.EntityType.CHANNEL]: 'Channel',
|
|
14
14
|
[EntityType_1.EntityType.RECURRING_ENTITIES_SCHEDULE]: 'Recurrence Schedule',
|
|
15
15
|
[EntityType_1.EntityType.VIEW_TEMPLATE]: 'View Template',
|
|
16
|
+
[EntityType_1.EntityType.VIEW_TEMPLATE_LAYOUT]: 'View Template Layout',
|
|
17
|
+
[EntityType_1.EntityType.VIEW_TEMPLATE_LAYOUT_ITEM]: 'View Template Layout Item',
|
|
16
18
|
[EntityType_1.EntityType.WORKFLOW_ENTITY]: 'Workflow Entity',
|
|
17
19
|
[EntityType_1.EntityType.WORKFLOW_TEMPLATE]: 'Workflow Template',
|
|
18
20
|
[EntityType_1.EntityType.WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION]: 'Workflow Template Automation Association',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityTypeLabels.js","sourceRoot":"","sources":["../../src/common/EntityTypeLabels.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE7B,QAAA,gBAAgB,GAA+B;IACxD,CAAC,uBAAU,CAAC,UAAU,CAAC,EAAE,YAAY;IACrC,CAAC,uBAAU,CAAC,iBAAiB,CAAC,EAAE,mBAAmB;IACnD,CAAC,uBAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,uBAAU,CAAC,cAAc,CAAC,EAAE,gBAAgB;IAC7C,CAAC,uBAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,uBAAU,CAAC,eAAe,CAAC,EAAE,iBAAiB;IAC/C,CAAC,uBAAU,CAAC,SAAS,CAAC,EAAE,WAAW;IACnC,CAAC,uBAAU,CAAC,OAAO,CAAC,EAAE,SAAS;IAC/B,CAAC,uBAAU,CAAC,2BAA2B,CAAC,EAAE,qBAAqB;IAC/D,CAAC,uBAAU,CAAC,aAAa,CAAC,EAAE,eAAe;IAC3C,CAAC,uBAAU,CAAC,eAAe,CAAC,EAAE,iBAAiB;IAC/C,CAAC,uBAAU,CAAC,iBAAiB,CAAC,EAAE,mBAAmB;IACnD,CAAC,uBAAU,CAAC,wCAAwC,CAAC,EAAE,0CAA0C;IACjG,CAAC,uBAAU,CAAC,IAAI,CAAC,EAAE,MAAM;CACnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"EntityTypeLabels.js","sourceRoot":"","sources":["../../src/common/EntityTypeLabels.ts"],"names":[],"mappings":";;;AAAA,6CAA0C;AAE7B,QAAA,gBAAgB,GAA+B;IACxD,CAAC,uBAAU,CAAC,UAAU,CAAC,EAAE,YAAY;IACrC,CAAC,uBAAU,CAAC,iBAAiB,CAAC,EAAE,mBAAmB;IACnD,CAAC,uBAAU,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC7B,CAAC,uBAAU,CAAC,cAAc,CAAC,EAAE,gBAAgB;IAC7C,CAAC,uBAAU,CAAC,IAAI,CAAC,EAAE,MAAM;IACzB,CAAC,uBAAU,CAAC,eAAe,CAAC,EAAE,iBAAiB;IAC/C,CAAC,uBAAU,CAAC,SAAS,CAAC,EAAE,WAAW;IACnC,CAAC,uBAAU,CAAC,OAAO,CAAC,EAAE,SAAS;IAC/B,CAAC,uBAAU,CAAC,2BAA2B,CAAC,EAAE,qBAAqB;IAC/D,CAAC,uBAAU,CAAC,aAAa,CAAC,EAAE,eAAe;IAC3C,CAAC,uBAAU,CAAC,oBAAoB,CAAC,EAAE,sBAAsB;IACzD,CAAC,uBAAU,CAAC,yBAAyB,CAAC,EAAE,2BAA2B;IACnE,CAAC,uBAAU,CAAC,eAAe,CAAC,EAAE,iBAAiB;IAC/C,CAAC,uBAAU,CAAC,iBAAiB,CAAC,EAAE,mBAAmB;IACnD,CAAC,uBAAU,CAAC,wCAAwC,CAAC,EAAE,0CAA0C;IACjG,CAAC,uBAAU,CAAC,IAAI,CAAC,EAAE,MAAM;CACnB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AutomationErrorCode } from '../automations/error/AutomationErrorCode';
|
|
2
|
+
import { BundleListingErrorCode } from '../bundle/error/BundleListingErrorCode';
|
|
2
3
|
import { DashboardErrorCode } from '../dashboard/error/DashboardErrorCode';
|
|
3
4
|
import { IntegrationErrorCode } from '../integration/error/IntegrationErrorCode';
|
|
4
5
|
import { UserErrorCode } from '../user/error/UserErrorCode';
|
|
@@ -9,9 +10,8 @@ import { ComponentDataErrorCode } from '../workflow-entity/error/ComponentDataEr
|
|
|
9
10
|
import { WorkflowEntityErrorCode } from '../workflow-entity/error/WorkflowEntityErrorCode';
|
|
10
11
|
import { RecurringEntitiesErrorCode } from '../workflow-entity/recurring/error/RecurringEntitiesErrorCode';
|
|
11
12
|
import { WorkflowEntitySearchErrorCode } from '../workflow-entity/search/error/WorkflowEntitySearchErrorCode';
|
|
12
|
-
import { BundleListingErrorCode } from '../workflow-library/error/BundleListingErrorCode';
|
|
13
13
|
import { ComponentErrorCode } from '../workflow-template/components/error/ComponentErrorCode';
|
|
14
14
|
import { WorkflowTemplateErrorCode } from '../workflow-template/error/WorkflowTemplateErrorCode';
|
|
15
15
|
import { GeneralErrorCode } from './GeneralErrorCode';
|
|
16
|
-
export declare const ErrorCode: typeof AutomationErrorCode & typeof DashboardErrorCode & typeof IntegrationErrorCode & typeof UserErrorCode & typeof ViewTemplateErrorCode & typeof WorkspaceDuplicationErrorCode & typeof ComponentDataErrorCode & typeof WorkflowEntityErrorCode & typeof RecurringEntitiesErrorCode & typeof WorkflowEntitySearchErrorCode & typeof
|
|
16
|
+
export declare const ErrorCode: typeof AutomationErrorCode & typeof BundleListingErrorCode & typeof DashboardErrorCode & typeof IntegrationErrorCode & typeof UserErrorCode & typeof ViewTemplateErrorCode & typeof WorkspaceDuplicationErrorCode & typeof ComponentDataErrorCode & typeof WorkflowEntityErrorCode & typeof RecurringEntitiesErrorCode & typeof WorkflowEntitySearchErrorCode & typeof ComponentErrorCode & typeof WorkflowTemplateErrorCode & typeof GeneralErrorCode;
|
|
17
17
|
export type ErrorCode = ConstEnum<typeof ErrorCode>;
|
package/dist/error/ErrorCode.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ErrorCode = void 0;
|
|
4
4
|
const AutomationErrorCode_1 = require("../automations/error/AutomationErrorCode");
|
|
5
|
+
const BundleListingErrorCode_1 = require("../bundle/error/BundleListingErrorCode");
|
|
5
6
|
const DashboardErrorCode_1 = require("../dashboard/error/DashboardErrorCode");
|
|
6
7
|
const IntegrationErrorCode_1 = require("../integration/error/IntegrationErrorCode");
|
|
7
8
|
const UserErrorCode_1 = require("../user/error/UserErrorCode");
|
|
@@ -12,7 +13,6 @@ const ComponentDataErrorCode_1 = require("../workflow-entity/error/ComponentData
|
|
|
12
13
|
const WorkflowEntityErrorCode_1 = require("../workflow-entity/error/WorkflowEntityErrorCode");
|
|
13
14
|
const RecurringEntitiesErrorCode_1 = require("../workflow-entity/recurring/error/RecurringEntitiesErrorCode");
|
|
14
15
|
const WorkflowEntitySearchErrorCode_1 = require("../workflow-entity/search/error/WorkflowEntitySearchErrorCode");
|
|
15
|
-
const BundleListingErrorCode_1 = require("../workflow-library/error/BundleListingErrorCode");
|
|
16
16
|
const ComponentErrorCode_1 = require("../workflow-template/components/error/ComponentErrorCode");
|
|
17
17
|
const WorkflowTemplateErrorCode_1 = require("../workflow-template/error/WorkflowTemplateErrorCode");
|
|
18
18
|
const GeneralErrorCode_1 = require("./GeneralErrorCode");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../../src/error/ErrorCode.ts"],"names":[],"mappings":";;;AAAA,kFAA+E;AAC/E,8EAA2E;AAC3E,oFAAiF;AACjF,+DAA4D;AAE5D,kDAA+C;AAC/C,wFAAqF;AACrF,uGAAoG;AACpG,4FAAyF;AACzF,8FAA2F;AAC3F,8GAA2G;AAC3G,iHAA8G;AAC9G,
|
|
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,+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,uDAA0B,EAC1B,6BAAa,EACb,6CAAqB,EACrB,iDAAuB,EACvB,6DAA6B,EAC7B,qDAAyB,EACzB,6DAA6B,CAChC,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
export declare enum Industry {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
AGRICULTURE = "AGRICULTURE",
|
|
3
|
+
EDUCATION = "EDUCATION",
|
|
4
|
+
ENERGY_AND_UTILITIES = "ENERGY_AND_UTILITIES",
|
|
5
|
+
FACILITIES_MANAGEMENT = "FACILITIES_MANAGEMENT",
|
|
6
|
+
GOVERNMENT = "GOVERNMENT",
|
|
7
|
+
HEALTHCARE_AND_LIFE_SCIENCES = "HEALTHCARE_AND_LIFE_SCIENCES",
|
|
8
|
+
HOTELS_AND_LODGING = "HOTELS_AND_LODGING",
|
|
5
9
|
MANUFACTURING = "MANUFACTURING",
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
PROPERTY_MANAGEMENT = "PROPERTY_MANAGEMENT",
|
|
11
|
+
RELIGIOUS_ORGANIZATIONS = "RELIGIOUS_ORGANIZATIONS",
|
|
12
|
+
RESTAURANTS = "RESTAURANTS",
|
|
13
|
+
RETAIL = "RETAIL"
|
|
8
14
|
}
|
|
@@ -3,11 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Industry = void 0;
|
|
4
4
|
var Industry;
|
|
5
5
|
(function (Industry) {
|
|
6
|
-
Industry["
|
|
7
|
-
Industry["
|
|
8
|
-
Industry["
|
|
6
|
+
Industry["AGRICULTURE"] = "AGRICULTURE";
|
|
7
|
+
Industry["EDUCATION"] = "EDUCATION";
|
|
8
|
+
Industry["ENERGY_AND_UTILITIES"] = "ENERGY_AND_UTILITIES";
|
|
9
|
+
Industry["FACILITIES_MANAGEMENT"] = "FACILITIES_MANAGEMENT";
|
|
10
|
+
Industry["GOVERNMENT"] = "GOVERNMENT";
|
|
11
|
+
Industry["HEALTHCARE_AND_LIFE_SCIENCES"] = "HEALTHCARE_AND_LIFE_SCIENCES";
|
|
12
|
+
Industry["HOTELS_AND_LODGING"] = "HOTELS_AND_LODGING";
|
|
9
13
|
Industry["MANUFACTURING"] = "MANUFACTURING";
|
|
10
|
-
Industry["
|
|
11
|
-
Industry["
|
|
14
|
+
Industry["PROPERTY_MANAGEMENT"] = "PROPERTY_MANAGEMENT";
|
|
15
|
+
Industry["RELIGIOUS_ORGANIZATIONS"] = "RELIGIOUS_ORGANIZATIONS";
|
|
16
|
+
Industry["RESTAURANTS"] = "RESTAURANTS";
|
|
17
|
+
Industry["RETAIL"] = "RETAIL";
|
|
12
18
|
})(Industry || (exports.Industry = Industry = {}));
|
|
13
19
|
//# sourceMappingURL=Industry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Industry.js","sourceRoot":"","sources":["../../src/workflow-library/Industry.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"Industry.js","sourceRoot":"","sources":["../../src/workflow-library/Industry.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAaX;AAbD,WAAY,QAAQ;IAChB,uCAA2B,CAAA;IAC3B,mCAAuB,CAAA;IACvB,yDAA6C,CAAA;IAC7C,2DAA+C,CAAA;IAC/C,qCAAyB,CAAA;IACzB,yEAA6D,CAAA;IAC7D,qDAAyC,CAAA;IACzC,2CAA+B,CAAA;IAC/B,uDAA2C,CAAA;IAC3C,+DAAmD,CAAA;IACnD,uCAA2B,CAAA;IAC3B,6BAAiB,CAAA;AACrB,CAAC,EAbW,QAAQ,aAAR,QAAQ,GAAR,QAAQ,QAanB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IndustryIconNames = void 0;
|
|
4
|
+
const Industry_1 = require("./Industry");
|
|
5
|
+
exports.IndustryIconNames = {
|
|
6
|
+
[Industry_1.Industry.AGRICULTURE]: 'grain',
|
|
7
|
+
[Industry_1.Industry.EDUCATION]: 'hat-graduation',
|
|
8
|
+
[Industry_1.Industry.ENERGY_AND_UTILITIES]: 'lightning-bolt',
|
|
9
|
+
[Industry_1.Industry.FACILITIES_MANAGEMENT]: 'layout',
|
|
10
|
+
[Industry_1.Industry.GOVERNMENT]: 'building-capitol',
|
|
11
|
+
[Industry_1.Industry.HEALTHCARE_AND_LIFE_SCIENCES]: 'heartbeat',
|
|
12
|
+
[Industry_1.Industry.HOTELS_AND_LODGING]: 'bed',
|
|
13
|
+
[Industry_1.Industry.MANUFACTURING]: 'gear',
|
|
14
|
+
[Industry_1.Industry.PROPERTY_MANAGEMENT]: 'building-hotel',
|
|
15
|
+
[Industry_1.Industry.RELIGIOUS_ORGANIZATIONS]: 'church-cross',
|
|
16
|
+
[Industry_1.Industry.RESTAURANTS]: 'cutlery-fork-knife',
|
|
17
|
+
[Industry_1.Industry.RETAIL]: 'bag-shopping',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=IndustryIconNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndustryIconNames.js","sourceRoot":"","sources":["../../src/workflow-library/IndustryIconNames.ts"],"names":[],"mappings":";;;AAEA,yCAAsC;AAEzB,QAAA,iBAAiB,GAA2B;IACrD,CAAC,mBAAQ,CAAC,WAAW,CAAC,EAAE,OAAO;IAC/B,CAAC,mBAAQ,CAAC,SAAS,CAAC,EAAE,gBAAgB;IACtC,CAAC,mBAAQ,CAAC,oBAAoB,CAAC,EAAE,gBAAgB;IACjD,CAAC,mBAAQ,CAAC,qBAAqB,CAAC,EAAE,QAAQ;IAC1C,CAAC,mBAAQ,CAAC,UAAU,CAAC,EAAE,kBAAkB;IACzC,CAAC,mBAAQ,CAAC,4BAA4B,CAAC,EAAE,WAAW;IACpD,CAAC,mBAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK;IACpC,CAAC,mBAAQ,CAAC,aAAa,CAAC,EAAE,MAAM;IAChC,CAAC,mBAAQ,CAAC,mBAAmB,CAAC,EAAE,gBAAgB;IAChD,CAAC,mBAAQ,CAAC,uBAAuB,CAAC,EAAE,cAAc;IAClD,CAAC,mBAAQ,CAAC,WAAW,CAAC,EAAE,oBAAoB;IAC5C,CAAC,mBAAQ,CAAC,MAAM,CAAC,EAAE,cAAc;CAC3B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IndustryLabels = void 0;
|
|
4
|
+
const Industry_1 = require("./Industry");
|
|
5
|
+
exports.IndustryLabels = {
|
|
6
|
+
[Industry_1.Industry.AGRICULTURE]: 'Agriculture',
|
|
7
|
+
[Industry_1.Industry.EDUCATION]: 'Education',
|
|
8
|
+
[Industry_1.Industry.ENERGY_AND_UTILITIES]: 'Energy & Utilities',
|
|
9
|
+
[Industry_1.Industry.FACILITIES_MANAGEMENT]: 'Facilities Management',
|
|
10
|
+
[Industry_1.Industry.GOVERNMENT]: 'Government',
|
|
11
|
+
[Industry_1.Industry.HEALTHCARE_AND_LIFE_SCIENCES]: 'Healthcare & Life Sciences',
|
|
12
|
+
[Industry_1.Industry.HOTELS_AND_LODGING]: 'Hotels & Lodging',
|
|
13
|
+
[Industry_1.Industry.MANUFACTURING]: 'Manufacturing',
|
|
14
|
+
[Industry_1.Industry.PROPERTY_MANAGEMENT]: 'Property Management',
|
|
15
|
+
[Industry_1.Industry.RELIGIOUS_ORGANIZATIONS]: 'Religious Organizations',
|
|
16
|
+
[Industry_1.Industry.RESTAURANTS]: 'Restaurants',
|
|
17
|
+
[Industry_1.Industry.RETAIL]: 'Retail',
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=IndustryLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IndustryLabels.js","sourceRoot":"","sources":["../../src/workflow-library/IndustryLabels.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEzB,QAAA,cAAc,GAA6B;IACpD,CAAC,mBAAQ,CAAC,WAAW,CAAC,EAAE,aAAa;IACrC,CAAC,mBAAQ,CAAC,SAAS,CAAC,EAAE,WAAW;IACjC,CAAC,mBAAQ,CAAC,oBAAoB,CAAC,EAAE,oBAAoB;IACrD,CAAC,mBAAQ,CAAC,qBAAqB,CAAC,EAAE,uBAAuB;IACzD,CAAC,mBAAQ,CAAC,UAAU,CAAC,EAAE,YAAY;IACnC,CAAC,mBAAQ,CAAC,4BAA4B,CAAC,EAAE,4BAA4B;IACrE,CAAC,mBAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB;IACjD,CAAC,mBAAQ,CAAC,aAAa,CAAC,EAAE,eAAe;IACzC,CAAC,mBAAQ,CAAC,mBAAmB,CAAC,EAAE,qBAAqB;IACrD,CAAC,mBAAQ,CAAC,uBAAuB,CAAC,EAAE,yBAAyB;IAC7D,CAAC,mBAAQ,CAAC,WAAW,CAAC,EAAE,aAAa;IACrC,CAAC,mBAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ;CACrB,CAAC"}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TagType = void 0;
|
|
4
4
|
var TagType;
|
|
5
5
|
(function (TagType) {
|
|
6
|
-
TagType["CATEGORY"] = "CATEGORY";
|
|
7
6
|
TagType["INDUSTRY"] = "INDUSTRY";
|
|
8
7
|
TagType["PACKAGE_TYPE"] = "PACKAGE_TYPE";
|
|
8
|
+
TagType["USE_CASE"] = "USE_CASE";
|
|
9
9
|
})(TagType || (exports.TagType = TagType = {}));
|
|
10
10
|
//# sourceMappingURL=TagType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagType.js","sourceRoot":"","sources":["../../src/workflow-library/TagType.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACf,gCAAqB,CAAA;IACrB,
|
|
1
|
+
{"version":3,"file":"TagType.js","sourceRoot":"","sources":["../../src/workflow-library/TagType.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACf,gCAAqB,CAAA;IACrB,wCAA6B,CAAA;IAC7B,gCAAqB,CAAA;AACzB,CAAC,EAJW,OAAO,aAAP,OAAO,GAAP,OAAO,QAIlB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConstEnum } from '../utils/ConstEnum';
|
|
2
|
-
import { Category } from './Category';
|
|
3
2
|
import { Industry } from './Industry';
|
|
4
3
|
import { PackageType } from './PackageType';
|
|
5
|
-
|
|
4
|
+
import { UseCase } from './UseCase';
|
|
5
|
+
export declare const TagValue: typeof Industry & typeof PackageType & typeof UseCase;
|
|
6
6
|
export type TagValue = ConstEnum<typeof TagValue>;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TagValue = void 0;
|
|
4
4
|
const MultiEnum_1 = require("../utils/MultiEnum");
|
|
5
|
-
const Category_1 = require("./Category");
|
|
6
5
|
const Industry_1 = require("./Industry");
|
|
7
6
|
const PackageType_1 = require("./PackageType");
|
|
8
|
-
|
|
7
|
+
const UseCase_1 = require("./UseCase");
|
|
8
|
+
exports.TagValue = (0, MultiEnum_1.MultiEnum)(UseCase_1.UseCase, Industry_1.Industry, PackageType_1.PackageType);
|
|
9
9
|
//# sourceMappingURL=TagValue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagValue.js","sourceRoot":"","sources":["../../src/workflow-library/TagValue.ts"],"names":[],"mappings":";;;AACA,kDAA+C;AAC/C,yCAAsC;AACtC
|
|
1
|
+
{"version":3,"file":"TagValue.js","sourceRoot":"","sources":["../../src/workflow-library/TagValue.ts"],"names":[],"mappings":";;;AACA,kDAA+C;AAC/C,yCAAsC;AACtC,+CAA4C;AAC5C,uCAAoC;AAEvB,QAAA,QAAQ,GAAG,IAAA,qBAAS,EAAC,iBAAO,EAAE,mBAAQ,EAAE,yBAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum UseCase {
|
|
2
|
+
ASSET_MANAGEMENT = "ASSET_MANAGEMENT",
|
|
3
|
+
DOCUMENTS_AND_KNOWLEDGE = "DOCUMENTS_AND_KNOWLEDGE",
|
|
4
|
+
INSPECTIONS_AND_AUDITS = "INSPECTIONS_AND_AUDITS",
|
|
5
|
+
INVENTORY_MANAGEMENT = "INVENTORY_MANAGEMENT",
|
|
6
|
+
MAINTENANCE = "MAINTENANCE",
|
|
7
|
+
PROCUREMENT_AND_PURCHASING = "PROCUREMENT_AND_PURCHASING",
|
|
8
|
+
PROJECT_MANAGEMENT = "PROJECT_MANAGEMENT",
|
|
9
|
+
SAFETY_AND_COMPLIANCE = "SAFETY_AND_COMPLIANCE",
|
|
10
|
+
WORKFORCE_AND_SCHEDULING = "WORKFORCE_AND_SCHEDULING"
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseCase = void 0;
|
|
4
|
+
var UseCase;
|
|
5
|
+
(function (UseCase) {
|
|
6
|
+
UseCase["ASSET_MANAGEMENT"] = "ASSET_MANAGEMENT";
|
|
7
|
+
UseCase["DOCUMENTS_AND_KNOWLEDGE"] = "DOCUMENTS_AND_KNOWLEDGE";
|
|
8
|
+
UseCase["INSPECTIONS_AND_AUDITS"] = "INSPECTIONS_AND_AUDITS";
|
|
9
|
+
UseCase["INVENTORY_MANAGEMENT"] = "INVENTORY_MANAGEMENT";
|
|
10
|
+
UseCase["MAINTENANCE"] = "MAINTENANCE";
|
|
11
|
+
UseCase["PROCUREMENT_AND_PURCHASING"] = "PROCUREMENT_AND_PURCHASING";
|
|
12
|
+
UseCase["PROJECT_MANAGEMENT"] = "PROJECT_MANAGEMENT";
|
|
13
|
+
UseCase["SAFETY_AND_COMPLIANCE"] = "SAFETY_AND_COMPLIANCE";
|
|
14
|
+
UseCase["WORKFORCE_AND_SCHEDULING"] = "WORKFORCE_AND_SCHEDULING";
|
|
15
|
+
})(UseCase || (exports.UseCase = UseCase = {}));
|
|
16
|
+
//# sourceMappingURL=UseCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseCase.js","sourceRoot":"","sources":["../../src/workflow-library/UseCase.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAUX;AAVD,WAAY,OAAO;IACf,gDAAqC,CAAA;IACrC,8DAAmD,CAAA;IACnD,4DAAiD,CAAA;IACjD,wDAA6C,CAAA;IAC7C,sCAA2B,CAAA;IAC3B,oEAAyD,CAAA;IACzD,oDAAyC,CAAA;IACzC,0DAA+C,CAAA;IAC/C,gEAAqD,CAAA;AACzD,CAAC,EAVW,OAAO,aAAP,OAAO,GAAP,OAAO,QAUlB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseCaseIconNames = void 0;
|
|
4
|
+
const UseCase_1 = require("./UseCase");
|
|
5
|
+
exports.UseCaseIconNames = {
|
|
6
|
+
[UseCase_1.UseCase.ASSET_MANAGEMENT]: 'plug',
|
|
7
|
+
[UseCase_1.UseCase.DOCUMENTS_AND_KNOWLEDGE]: 'book-open',
|
|
8
|
+
[UseCase_1.UseCase.INSPECTIONS_AND_AUDITS]: 'clipboard-list',
|
|
9
|
+
[UseCase_1.UseCase.INVENTORY_MANAGEMENT]: 'box-cube',
|
|
10
|
+
[UseCase_1.UseCase.MAINTENANCE]: 'wrench',
|
|
11
|
+
[UseCase_1.UseCase.PROCUREMENT_AND_PURCHASING]: 'delivery-cart',
|
|
12
|
+
[UseCase_1.UseCase.PROJECT_MANAGEMENT]: 'check-todo',
|
|
13
|
+
[UseCase_1.UseCase.SAFETY_AND_COMPLIANCE]: 'check-shield',
|
|
14
|
+
[UseCase_1.UseCase.WORKFORCE_AND_SCHEDULING]: 'calendar',
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=UseCaseIconNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseCaseIconNames.js","sourceRoot":"","sources":["../../src/workflow-library/UseCaseIconNames.ts"],"names":[],"mappings":";;;AAEA,uCAAoC;AAEvB,QAAA,gBAAgB,GAA0B;IACnD,CAAC,iBAAO,CAAC,gBAAgB,CAAC,EAAE,MAAM;IAClC,CAAC,iBAAO,CAAC,uBAAuB,CAAC,EAAE,WAAW;IAC9C,CAAC,iBAAO,CAAC,sBAAsB,CAAC,EAAE,gBAAgB;IAClD,CAAC,iBAAO,CAAC,oBAAoB,CAAC,EAAE,UAAU;IAC1C,CAAC,iBAAO,CAAC,WAAW,CAAC,EAAE,QAAQ;IAC/B,CAAC,iBAAO,CAAC,0BAA0B,CAAC,EAAE,eAAe;IACrD,CAAC,iBAAO,CAAC,kBAAkB,CAAC,EAAE,YAAY;IAC1C,CAAC,iBAAO,CAAC,qBAAqB,CAAC,EAAE,cAAc;IAC/C,CAAC,iBAAO,CAAC,wBAAwB,CAAC,EAAE,UAAU;CACxC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UseCaseLabels = void 0;
|
|
4
|
+
const UseCase_1 = require("./UseCase");
|
|
5
|
+
exports.UseCaseLabels = {
|
|
6
|
+
[UseCase_1.UseCase.MAINTENANCE]: 'Maintenance',
|
|
7
|
+
[UseCase_1.UseCase.ASSET_MANAGEMENT]: 'Asset Management',
|
|
8
|
+
[UseCase_1.UseCase.INVENTORY_MANAGEMENT]: 'Inventory Management',
|
|
9
|
+
[UseCase_1.UseCase.PROCUREMENT_AND_PURCHASING]: 'Procurement & Purchasing',
|
|
10
|
+
[UseCase_1.UseCase.SAFETY_AND_COMPLIANCE]: 'Safety & Compliance',
|
|
11
|
+
[UseCase_1.UseCase.INSPECTIONS_AND_AUDITS]: 'Inspections & Audits',
|
|
12
|
+
[UseCase_1.UseCase.PROJECT_MANAGEMENT]: 'Project Management',
|
|
13
|
+
[UseCase_1.UseCase.WORKFORCE_AND_SCHEDULING]: 'Workforce & Scheduling',
|
|
14
|
+
[UseCase_1.UseCase.DOCUMENTS_AND_KNOWLEDGE]: 'Documents & Knowledge',
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=UseCaseLabels.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UseCaseLabels.js","sourceRoot":"","sources":["../../src/workflow-library/UseCaseLabels.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEvB,QAAA,aAAa,GAA4B;IAClD,CAAC,iBAAO,CAAC,WAAW,CAAC,EAAE,aAAa;IACpC,CAAC,iBAAO,CAAC,gBAAgB,CAAC,EAAE,kBAAkB;IAC9C,CAAC,iBAAO,CAAC,oBAAoB,CAAC,EAAE,sBAAsB;IACtD,CAAC,iBAAO,CAAC,0BAA0B,CAAC,EAAE,0BAA0B;IAChE,CAAC,iBAAO,CAAC,qBAAqB,CAAC,EAAE,qBAAqB;IACtD,CAAC,iBAAO,CAAC,sBAAsB,CAAC,EAAE,sBAAsB;IACxD,CAAC,iBAAO,CAAC,kBAAkB,CAAC,EAAE,oBAAoB;IAClD,CAAC,iBAAO,CAAC,wBAAwB,CAAC,EAAE,wBAAwB;IAC5D,CAAC,iBAAO,CAAC,uBAAuB,CAAC,EAAE,uBAAuB;CACpD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableComponentType.js","sourceRoot":"","sources":["../../../src/workflow-template/components/SortableComponentType.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SortableComponentTypes = void 0;
|
|
4
|
+
const ComponentType_1 = require("./ComponentType");
|
|
5
|
+
exports.SortableComponentTypes = [ComponentType_1.ComponentType.DATE, ComponentType_1.ComponentType.NUMBER, ComponentType_1.ComponentType.TEXT];
|
|
6
|
+
//# sourceMappingURL=SortableComponentTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableComponentTypes.js","sourceRoot":"","sources":["../../../src/workflow-template/components/SortableComponentTypes.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEnC,QAAA,sBAAsB,GAAG,CAAC,6BAAa,CAAC,IAAI,EAAE,6BAAa,CAAC,MAAM,EAAE,6BAAa,CAAC,IAAI,CAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CoastException } from '../../exception/CoastException';
|
|
2
|
+
import { HttpStatus } from '../../utils/HttpStatus';
|
|
3
|
+
import { BundleListingErrorCode } from './BundleListingErrorCode';
|
|
4
|
+
|
|
5
|
+
type Options = {
|
|
6
|
+
bundleId: string;
|
|
7
|
+
bundleListingId: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export class BundleHasActiveListingException extends CoastException {
|
|
12
|
+
public constructor(options: Options) {
|
|
13
|
+
const {
|
|
14
|
+
bundleId,
|
|
15
|
+
bundleListingId,
|
|
16
|
+
message = 'Bundle cannot be un-shared while it has an active BundleListing. Delete the BundleListing first.',
|
|
17
|
+
} = options;
|
|
18
|
+
|
|
19
|
+
super({
|
|
20
|
+
code: BundleListingErrorCode.BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE,
|
|
21
|
+
status: HttpStatus.BAD_REQUEST,
|
|
22
|
+
message,
|
|
23
|
+
additionalData: { bundleId, bundleListingId },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export enum BundleListingErrorCode {
|
|
2
|
+
BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE = 'BUNDLE_LISTING_MULTIPLE_ACTIVE_LISTINGS_PER_BUNDLE',
|
|
3
|
+
BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE = 'BUNDLE_LISTING_PREVENTS_BUNDLE_UNSHARE',
|
|
4
|
+
BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE = 'BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE',
|
|
5
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CoastException } from '../../exception/CoastException';
|
|
2
|
+
import { HttpStatus } from '../../utils/HttpStatus';
|
|
3
|
+
import { BundleListingErrorCode } from './BundleListingErrorCode';
|
|
4
|
+
|
|
5
|
+
type Options = {
|
|
6
|
+
bundleId: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export class CannotListDisabledBundleException extends CoastException {
|
|
11
|
+
public constructor(options: Options) {
|
|
12
|
+
const { bundleId, message = 'Cannot create a BundleListing for a disabled Bundle. Share the Bundle first.' } = options;
|
|
13
|
+
|
|
14
|
+
super({
|
|
15
|
+
code: BundleListingErrorCode.BUNDLE_LISTING_REQUIRES_ENABLED_BUNDLE,
|
|
16
|
+
status: HttpStatus.BAD_REQUEST,
|
|
17
|
+
message,
|
|
18
|
+
additionalData: { bundleId },
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -2,6 +2,8 @@ import { AutomationActionId } from '../automations/action/AutomationActionId';
|
|
|
2
2
|
import { AutomationId } from '../automations/AutomationId';
|
|
3
3
|
import { WorkspaceId } from '../channel/WorkspaceId';
|
|
4
4
|
import { UserId } from '../user/UserId';
|
|
5
|
+
import { ViewTemplateLayoutId } from '../view-template-layout/ViewTemplateLayoutId';
|
|
6
|
+
import { ViewTemplateLayoutItemId } from '../view-template-layout/ViewTemplateLayoutItemId';
|
|
5
7
|
import { ViewTemplateId } from '../view-template/ViewTemplateId';
|
|
6
8
|
import { RecurringEntitiesScheduleId } from '../workflow-entity/recurring/RecurringEntitiesScheduleId';
|
|
7
9
|
import { ComponentId } from '../workflow-template/components/ComponentId';
|
|
@@ -18,6 +20,8 @@ export type EntityIdMap = Record<EntityType, unknown> & {
|
|
|
18
20
|
[EntityType.RECURRING_ENTITIES_SCHEDULE]: RecurringEntitiesScheduleId;
|
|
19
21
|
[EntityType.USER]: UserId;
|
|
20
22
|
[EntityType.VIEW_TEMPLATE]: ViewTemplateId;
|
|
23
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT]: ViewTemplateLayoutId;
|
|
24
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT_ITEM]: ViewTemplateLayoutItemId;
|
|
21
25
|
[EntityType.WORKFLOW_ENTITY]: string;
|
|
22
26
|
[EntityType.WORKFLOW_TEMPLATE]: WorkflowTemplateId;
|
|
23
27
|
[EntityType.WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION]: string; // not *really* an id for this, its a compound key
|
package/src/common/EntityType.ts
CHANGED
|
@@ -10,6 +10,8 @@ export enum EntityType {
|
|
|
10
10
|
RECURRING_ENTITIES_SCHEDULE = 'RECURRING_ENTITIES_SCHEDULE',
|
|
11
11
|
USER = 'USER',
|
|
12
12
|
VIEW_TEMPLATE = 'VIEW_TEMPLATE',
|
|
13
|
+
VIEW_TEMPLATE_LAYOUT = 'VIEW_TEMPLATE_LAYOUT',
|
|
14
|
+
VIEW_TEMPLATE_LAYOUT_ITEM = 'VIEW_TEMPLATE_LAYOUT_ITEM',
|
|
13
15
|
WORKFLOW_ENTITY = 'WORKFLOW_ENTITY',
|
|
14
16
|
WORKFLOW_TEMPLATE = 'WORKFLOW_TEMPLATE',
|
|
15
17
|
WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION = 'WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION',
|
|
@@ -11,6 +11,8 @@ export const EntityTypeLabels: Record<EntityType, string> = {
|
|
|
11
11
|
[EntityType.CHANNEL]: 'Channel',
|
|
12
12
|
[EntityType.RECURRING_ENTITIES_SCHEDULE]: 'Recurrence Schedule',
|
|
13
13
|
[EntityType.VIEW_TEMPLATE]: 'View Template',
|
|
14
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT]: 'View Template Layout',
|
|
15
|
+
[EntityType.VIEW_TEMPLATE_LAYOUT_ITEM]: 'View Template Layout Item',
|
|
14
16
|
[EntityType.WORKFLOW_ENTITY]: 'Workflow Entity',
|
|
15
17
|
[EntityType.WORKFLOW_TEMPLATE]: 'Workflow Template',
|
|
16
18
|
[EntityType.WORKFLOW_TEMPLATE_AUTOMATION_ASSOCIATION]: 'Workflow Template Automation Association',
|