@contrail/entity-types 1.1.19 → 1.1.20

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
@@ -9,10 +9,12 @@ export * from './content';
9
9
  export * from './contentholder-content';
10
10
  export * from './file';
11
11
  export * from './item';
12
+ export * from './org';
12
13
  export * from './project-item';
13
14
  export * from './project';
14
15
  export * from './property-type';
15
16
  export * from './org-managed-entity';
16
17
  export * from './base-managed-entity';
17
18
  export * from './type-managed-entity';
19
+ export * from './user';
18
20
  export * from './workspace-managed-entity';
package/lib/index.js CHANGED
@@ -25,10 +25,12 @@ __exportStar(require("./content"), exports);
25
25
  __exportStar(require("./contentholder-content"), exports);
26
26
  __exportStar(require("./file"), exports);
27
27
  __exportStar(require("./item"), exports);
28
+ __exportStar(require("./org"), exports);
28
29
  __exportStar(require("./project-item"), exports);
29
30
  __exportStar(require("./project"), exports);
30
31
  __exportStar(require("./property-type"), exports);
31
32
  __exportStar(require("./org-managed-entity"), exports);
32
33
  __exportStar(require("./base-managed-entity"), exports);
33
34
  __exportStar(require("./type-managed-entity"), exports);
35
+ __exportStar(require("./user"), exports);
34
36
  __exportStar(require("./workspace-managed-entity"), exports);
package/lib/org.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ import { BaseManagedEntity } from "./base-managed-entity";
2
+ export declare class Org implements BaseManagedEntity {
3
+ id?: string;
4
+ name: string;
5
+ slug: string;
6
+ thumbnail?: string;
7
+ url?: string;
8
+ description?: string;
9
+ isArchived?: boolean;
10
+ domainWhitelist?: Array<string>;
11
+ createdOn?: Date;
12
+ updatedOn?: Date;
13
+ }
package/lib/org.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Org = void 0;
4
+ class Org {
5
+ id;
6
+ name;
7
+ slug;
8
+ thumbnail;
9
+ url;
10
+ description;
11
+ isArchived;
12
+ domainWhitelist;
13
+ createdOn;
14
+ updatedOn;
15
+ }
16
+ exports.Org = Org;
package/lib/user.d.ts ADDED
@@ -0,0 +1,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
+ }
package/lib/user.js ADDED
@@ -0,0 +1,54 @@
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",