@contrail/entity-types 1.1.24 → 1.1.26

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/lib/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './app-extension-definition';
6
6
  export * from './app-extension';
7
7
  export * from './app';
8
8
  export * from './asset';
9
+ export * from './base-managed-entity';
9
10
  export * from './content';
10
11
  export * from './contentholder-content';
11
12
  export * from './file';
@@ -15,7 +16,7 @@ export * from './project-item';
15
16
  export * from './project';
16
17
  export * from './property-type';
17
18
  export * from './org-managed-entity';
18
- export * from './base-managed-entity';
19
+ export * from './subscription';
19
20
  export * from './type-managed-entity';
20
21
  export * from './user';
21
22
  export * from './workspace-managed-entity';
package/lib/index.js CHANGED
@@ -22,6 +22,7 @@ __exportStar(require("./app-extension-definition"), exports);
22
22
  __exportStar(require("./app-extension"), exports);
23
23
  __exportStar(require("./app"), exports);
24
24
  __exportStar(require("./asset"), exports);
25
+ __exportStar(require("./base-managed-entity"), exports);
25
26
  __exportStar(require("./content"), exports);
26
27
  __exportStar(require("./contentholder-content"), exports);
27
28
  __exportStar(require("./file"), exports);
@@ -31,7 +32,7 @@ __exportStar(require("./project-item"), exports);
31
32
  __exportStar(require("./project"), exports);
32
33
  __exportStar(require("./property-type"), exports);
33
34
  __exportStar(require("./org-managed-entity"), exports);
34
- __exportStar(require("./base-managed-entity"), exports);
35
+ __exportStar(require("./subscription"), exports);
35
36
  __exportStar(require("./type-managed-entity"), exports);
36
37
  __exportStar(require("./user"), exports);
37
38
  __exportStar(require("./workspace-managed-entity"), exports);
@@ -0,0 +1,35 @@
1
+ import { OrgManagedEntity } from "./org-managed-entity";
2
+ import { Group, User } from "./user";
3
+ export declare enum SubscriptionType {
4
+ COMMENT = "COMMENT",
5
+ MENTION = "MENTION",
6
+ REPLY = "REPLY",
7
+ FAILURE = "FAILURE",
8
+ DELETE = "DELETE",
9
+ SUCCESS = "SUCCESS"
10
+ }
11
+ export declare enum Channel {
12
+ SLACK = "SLACK",
13
+ EMAIL = "EMAIL",
14
+ TEAMS = "TEAMS"
15
+ }
16
+ export declare const SHOWCASE_APP_SUBSCRIBED_TO_CONST = "showcase-app";
17
+ export declare const PLAN_APP_SUBSCRIBED_TO_CONST = "plan-app";
18
+ export declare const BOARD_APP_SUBSCRIBED_TO_CONST = "board-app";
19
+ export declare class Subscription implements OrgManagedEntity {
20
+ id: string;
21
+ name?: string;
22
+ createdOn?: Date;
23
+ updatedOn?: Date;
24
+ createdById?: string;
25
+ updatedById?: string;
26
+ createdBy?: any;
27
+ updatedBy?: any;
28
+ orgId?: string;
29
+ subscriberRef: string;
30
+ subscriber?: Group | User;
31
+ subscribedToRef: string;
32
+ subscribedTo?: any;
33
+ channels: Channel[];
34
+ subscriptionTypes: SubscriptionType[];
35
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Subscription = exports.BOARD_APP_SUBSCRIBED_TO_CONST = exports.PLAN_APP_SUBSCRIBED_TO_CONST = exports.SHOWCASE_APP_SUBSCRIBED_TO_CONST = exports.Channel = exports.SubscriptionType = void 0;
4
+ var SubscriptionType;
5
+ (function (SubscriptionType) {
6
+ SubscriptionType["COMMENT"] = "COMMENT";
7
+ SubscriptionType["MENTION"] = "MENTION";
8
+ SubscriptionType["REPLY"] = "REPLY";
9
+ SubscriptionType["FAILURE"] = "FAILURE";
10
+ SubscriptionType["DELETE"] = "DELETE";
11
+ SubscriptionType["SUCCESS"] = "SUCCESS";
12
+ })(SubscriptionType = exports.SubscriptionType || (exports.SubscriptionType = {}));
13
+ var Channel;
14
+ (function (Channel) {
15
+ Channel["SLACK"] = "SLACK";
16
+ Channel["EMAIL"] = "EMAIL";
17
+ Channel["TEAMS"] = "TEAMS";
18
+ })(Channel = exports.Channel || (exports.Channel = {}));
19
+ exports.SHOWCASE_APP_SUBSCRIBED_TO_CONST = 'showcase-app';
20
+ exports.PLAN_APP_SUBSCRIBED_TO_CONST = 'plan-app';
21
+ exports.BOARD_APP_SUBSCRIBED_TO_CONST = 'board-app';
22
+ class Subscription {
23
+ id;
24
+ name;
25
+ createdOn;
26
+ updatedOn;
27
+ createdById;
28
+ updatedById;
29
+ createdBy;
30
+ updatedBy;
31
+ orgId;
32
+ subscriberRef;
33
+ subscriber;
34
+ subscribedToRef;
35
+ subscribedTo;
36
+ channels;
37
+ subscriptionTypes;
38
+ }
39
+ exports.Subscription = Subscription;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",