@contrail/entity-types 1.1.23 → 1.1.25

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.
Files changed (52) hide show
  1. package/README.md +11 -11
  2. package/lib/app-api-key.d.ts +15 -15
  3. package/lib/app-api-key.js +2 -2
  4. package/lib/app-code-package.d.ts +17 -17
  5. package/lib/app-code-package.js +2 -2
  6. package/lib/app-extension-definition.d.ts +32 -32
  7. package/lib/app-extension-definition.js +35 -35
  8. package/lib/app-extension.d.ts +23 -23
  9. package/lib/app-extension.js +23 -23
  10. package/lib/app-org.d.ts +20 -20
  11. package/lib/app-org.js +11 -11
  12. package/lib/app-version.d.ts +57 -57
  13. package/lib/app-version.js +17 -17
  14. package/lib/app.d.ts +27 -27
  15. package/lib/app.js +2 -2
  16. package/lib/asset.d.ts +16 -16
  17. package/lib/asset.js +2 -2
  18. package/lib/base-managed-entity.d.ts +11 -11
  19. package/lib/base-managed-entity.js +2 -2
  20. package/lib/content-custom-size.d.ts +14 -14
  21. package/lib/content-custom-size.js +2 -2
  22. package/lib/content.d.ts +25 -25
  23. package/lib/content.js +2 -2
  24. package/lib/contentholder-content.d.ts +5 -5
  25. package/lib/contentholder-content.js +2 -2
  26. package/lib/file.d.ts +14 -14
  27. package/lib/file.js +2 -2
  28. package/lib/index.d.ts +21 -21
  29. package/lib/index.js +37 -37
  30. package/lib/item.d.ts +20 -20
  31. package/lib/item.js +2 -2
  32. package/lib/org-managed-entity.d.ts +5 -5
  33. package/lib/org-managed-entity.js +2 -2
  34. package/lib/org.d.ts +13 -13
  35. package/lib/org.js +16 -16
  36. package/lib/project-item.d.ts +9 -9
  37. package/lib/project-item.js +2 -2
  38. package/lib/project.d.ts +4 -4
  39. package/lib/project.js +2 -2
  40. package/lib/property-type.d.ts +31 -31
  41. package/lib/property-type.js +2 -2
  42. package/lib/schedule.d.ts +22 -0
  43. package/lib/schedule.js +26 -0
  44. package/lib/subscription.d.ts +35 -0
  45. package/lib/subscription.js +39 -0
  46. package/lib/type-managed-entity.d.ts +8 -8
  47. package/lib/type-managed-entity.js +2 -2
  48. package/lib/user.d.ts +75 -49
  49. package/lib/user.js +82 -54
  50. package/lib/workspace-managed-entity.d.ts +5 -5
  51. package/lib/workspace-managed-entity.js +2 -2
  52. package/package.json +23 -23
@@ -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;
@@ -1,8 +1,8 @@
1
- import { OrgManagedEntity } from "./org-managed-entity";
2
- export interface TypeManagedEntity extends OrgManagedEntity {
3
- typeId?: string;
4
- atts?: {
5
- [key: string]: any;
6
- };
7
- typePath?: string;
8
- }
1
+ import { OrgManagedEntity } from "./org-managed-entity";
2
+ export interface TypeManagedEntity extends OrgManagedEntity {
3
+ typeId?: string;
4
+ atts?: {
5
+ [key: string]: any;
6
+ };
7
+ typePath?: string;
8
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/user.d.ts CHANGED
@@ -1,49 +1,75 @@
1
- import { BaseManagedEntity } from "./base-managed-entity";
2
- import { Org } from "./org";
3
- import { OrgManagedEntity } from "./org-managed-entity";
4
- export declare enum UserOrgRole {
5
- admin = "ADMIN",
6
- member = "MEMBER"
7
- }
8
- export declare class UserOrg implements OrgManagedEntity {
9
- id?: string;
10
- createdOn?: Date;
11
- updatedOn?: Date;
12
- userId?: string;
13
- orgId?: string;
14
- role: UserOrgRole;
15
- userEmail?: string;
16
- orgSlug?: string;
17
- user?: User;
18
- first?: string;
19
- last?: string;
20
- domain?: string;
21
- full?: string;
22
- org?: Org;
23
- }
24
- export declare enum PlatformRole {
25
- PLATFORM_MANAGER = "PLATFORM_MANAGER",
26
- PLATFORM_OPS = "PLATFORM_OPS",
27
- PLATFORM_USER = "PLATFORM_USER",
28
- PLATFORM_ADMIN = "PLATFORM_ADMIN"
29
- }
30
- export declare class PlatformUser implements BaseManagedEntity {
31
- id?: string;
32
- createdOn?: Date;
33
- updatedOn?: Date;
34
- userId: string;
35
- roles: PlatformRole[];
36
- user?: User;
37
- }
38
- export declare class User implements BaseManagedEntity {
39
- id?: string;
40
- createdOn?: Date;
41
- updatedOn?: Date;
42
- firstName?: string;
43
- lastName?: string;
44
- email?: string;
45
- isAppUser?: boolean;
46
- isSsoUser?: boolean;
47
- platformRoles?: Array<PlatformRole>;
48
- orgs?: Array<UserOrg>;
49
- }
1
+ import { BaseManagedEntity } from "./base-managed-entity";
2
+ import { Org } from "./org";
3
+ import { OrgManagedEntity } from "./org-managed-entity";
4
+ export declare enum UserOrgRole {
5
+ admin = "ADMIN",
6
+ member = "MEMBER"
7
+ }
8
+ export declare class UserOrg implements OrgManagedEntity {
9
+ id?: string;
10
+ createdOn?: Date;
11
+ updatedOn?: Date;
12
+ userId?: string;
13
+ orgId?: string;
14
+ role: UserOrgRole;
15
+ userEmail?: string;
16
+ orgSlug?: string;
17
+ user?: User;
18
+ first?: string;
19
+ last?: string;
20
+ domain?: string;
21
+ full?: string;
22
+ org?: Org;
23
+ }
24
+ export declare enum PlatformRole {
25
+ PLATFORM_MANAGER = "PLATFORM_MANAGER",
26
+ PLATFORM_OPS = "PLATFORM_OPS",
27
+ PLATFORM_USER = "PLATFORM_USER",
28
+ PLATFORM_ADMIN = "PLATFORM_ADMIN"
29
+ }
30
+ export declare class PlatformUser implements BaseManagedEntity {
31
+ id?: string;
32
+ createdOn?: Date;
33
+ updatedOn?: Date;
34
+ userId: string;
35
+ roles: PlatformRole[];
36
+ user?: User;
37
+ }
38
+ export declare class User implements BaseManagedEntity {
39
+ id?: string;
40
+ createdOn?: Date;
41
+ updatedOn?: Date;
42
+ firstName?: string;
43
+ lastName?: string;
44
+ email?: string;
45
+ isAppUser?: boolean;
46
+ isSsoUser?: boolean;
47
+ platformRoles?: Array<PlatformRole>;
48
+ orgs?: Array<UserOrg>;
49
+ }
50
+ export declare class Group implements OrgManagedEntity {
51
+ id: string;
52
+ createdOn?: Date;
53
+ updatedOn?: Date;
54
+ createdById?: string;
55
+ updatedById?: string;
56
+ createdBy?: any;
57
+ updatedBy?: any;
58
+ orgId?: string;
59
+ name: string;
60
+ groupPrincipals?: GroupPrincipal[];
61
+ }
62
+ export declare class GroupPrincipal implements OrgManagedEntity {
63
+ id: string;
64
+ createdOn?: Date;
65
+ updatedOn?: Date;
66
+ createdById?: string;
67
+ updatedById?: string;
68
+ createdBy?: any;
69
+ updatedBy?: any;
70
+ orgId?: string;
71
+ groupId?: string;
72
+ group?: Group;
73
+ principalReference?: string;
74
+ principal?: any;
75
+ }
package/lib/user.js CHANGED
@@ -1,54 +1,82 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.User = exports.PlatformUser = exports.PlatformRole = exports.UserOrg = exports.UserOrgRole = void 0;
4
- var UserOrgRole;
5
- (function (UserOrgRole) {
6
- UserOrgRole["admin"] = "ADMIN";
7
- UserOrgRole["member"] = "MEMBER";
8
- })(UserOrgRole = exports.UserOrgRole || (exports.UserOrgRole = {}));
9
- class UserOrg {
10
- id;
11
- createdOn;
12
- updatedOn;
13
- userId;
14
- orgId;
15
- role;
16
- userEmail;
17
- orgSlug;
18
- user;
19
- first;
20
- last;
21
- domain;
22
- full;
23
- org;
24
- }
25
- exports.UserOrg = UserOrg;
26
- var PlatformRole;
27
- (function (PlatformRole) {
28
- PlatformRole["PLATFORM_MANAGER"] = "PLATFORM_MANAGER";
29
- PlatformRole["PLATFORM_OPS"] = "PLATFORM_OPS";
30
- PlatformRole["PLATFORM_USER"] = "PLATFORM_USER";
31
- PlatformRole["PLATFORM_ADMIN"] = "PLATFORM_ADMIN";
32
- })(PlatformRole = exports.PlatformRole || (exports.PlatformRole = {}));
33
- class PlatformUser {
34
- id;
35
- createdOn;
36
- updatedOn;
37
- userId;
38
- roles;
39
- user;
40
- }
41
- exports.PlatformUser = PlatformUser;
42
- class User {
43
- id;
44
- createdOn;
45
- updatedOn;
46
- firstName;
47
- lastName;
48
- email;
49
- isAppUser = false;
50
- isSsoUser = false;
51
- platformRoles;
52
- orgs;
53
- }
54
- exports.User = User;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GroupPrincipal = exports.Group = exports.User = exports.PlatformUser = exports.PlatformRole = exports.UserOrg = exports.UserOrgRole = void 0;
4
+ var UserOrgRole;
5
+ (function (UserOrgRole) {
6
+ UserOrgRole["admin"] = "ADMIN";
7
+ UserOrgRole["member"] = "MEMBER";
8
+ })(UserOrgRole = exports.UserOrgRole || (exports.UserOrgRole = {}));
9
+ class UserOrg {
10
+ id;
11
+ createdOn;
12
+ updatedOn;
13
+ userId;
14
+ orgId;
15
+ role;
16
+ userEmail;
17
+ orgSlug;
18
+ user;
19
+ first;
20
+ last;
21
+ domain;
22
+ full;
23
+ org;
24
+ }
25
+ exports.UserOrg = UserOrg;
26
+ var PlatformRole;
27
+ (function (PlatformRole) {
28
+ PlatformRole["PLATFORM_MANAGER"] = "PLATFORM_MANAGER";
29
+ PlatformRole["PLATFORM_OPS"] = "PLATFORM_OPS";
30
+ PlatformRole["PLATFORM_USER"] = "PLATFORM_USER";
31
+ PlatformRole["PLATFORM_ADMIN"] = "PLATFORM_ADMIN";
32
+ })(PlatformRole = exports.PlatformRole || (exports.PlatformRole = {}));
33
+ class PlatformUser {
34
+ id;
35
+ createdOn;
36
+ updatedOn;
37
+ userId;
38
+ roles;
39
+ user;
40
+ }
41
+ exports.PlatformUser = PlatformUser;
42
+ class User {
43
+ id;
44
+ createdOn;
45
+ updatedOn;
46
+ firstName;
47
+ lastName;
48
+ email;
49
+ isAppUser = false;
50
+ isSsoUser = false;
51
+ platformRoles;
52
+ orgs;
53
+ }
54
+ exports.User = User;
55
+ class Group {
56
+ id;
57
+ createdOn;
58
+ updatedOn;
59
+ createdById;
60
+ updatedById;
61
+ createdBy;
62
+ updatedBy;
63
+ orgId;
64
+ name;
65
+ groupPrincipals;
66
+ }
67
+ exports.Group = Group;
68
+ class GroupPrincipal {
69
+ id;
70
+ createdOn;
71
+ updatedOn;
72
+ createdById;
73
+ updatedById;
74
+ createdBy;
75
+ updatedBy;
76
+ orgId;
77
+ groupId;
78
+ group;
79
+ principalReference;
80
+ principal;
81
+ }
82
+ exports.GroupPrincipal = GroupPrincipal;
@@ -1,5 +1,5 @@
1
- import { TypeManagedEntity } from "./type-managed-entity";
2
- export interface WorkspaceManagedEntity extends TypeManagedEntity {
3
- workspaceId?: string;
4
- isTrashed?: boolean;
5
- }
1
+ import { TypeManagedEntity } from "./type-managed-entity";
2
+ export interface WorkspaceManagedEntity extends TypeManagedEntity {
3
+ workspaceId?: string;
4
+ isTrashed?: boolean;
5
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
- {
2
- "name": "@contrail/entity-types",
3
- "version": "1.1.23",
4
- "description": "A types library for Vibeiq entities.",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
10
- "lint": "tslint -p tsconfig.json"
11
- },
12
- "keywords": [
13
- "VibeIQ",
14
- "contrail"
15
- ],
16
- "author": "",
17
- "license": "ISC",
18
- "devDependencies": {
19
- "@types/node": "^18.15.11",
20
- "js-yaml": "^4.1.0",
21
- "typescript": "^4.0.0"
22
- }
23
- }
1
+ {
2
+ "name": "@contrail/entity-types",
3
+ "version": "1.1.25",
4
+ "description": "A types library for Vibeiq entities.",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
10
+ "lint": "tslint -p tsconfig.json"
11
+ },
12
+ "keywords": [
13
+ "VibeIQ",
14
+ "contrail"
15
+ ],
16
+ "author": "",
17
+ "license": "ISC",
18
+ "devDependencies": {
19
+ "@types/node": "^18.15.11",
20
+ "js-yaml": "^4.1.0",
21
+ "typescript": "^4.0.0"
22
+ }
23
+ }