@contrail/entity-types 1.1.21 → 1.1.23
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/README.md +11 -11
- package/lib/app-api-key.d.ts +15 -15
- package/lib/app-api-key.js +2 -2
- package/lib/app-code-package.d.ts +17 -17
- package/lib/app-code-package.js +2 -2
- package/lib/app-extension-definition.d.ts +32 -31
- package/lib/app-extension-definition.js +35 -34
- package/lib/app-extension.d.ts +23 -23
- package/lib/app-extension.js +23 -23
- package/lib/app-org.d.ts +20 -20
- package/lib/app-org.js +11 -11
- package/lib/app-version.d.ts +57 -57
- package/lib/app-version.js +17 -17
- package/lib/app.d.ts +27 -27
- package/lib/app.js +2 -2
- package/lib/asset.d.ts +16 -16
- package/lib/asset.js +2 -2
- package/lib/base-managed-entity.d.ts +11 -11
- package/lib/base-managed-entity.js +2 -2
- package/lib/content-custom-size.d.ts +14 -14
- package/lib/content-custom-size.js +2 -2
- package/lib/content.d.ts +25 -25
- package/lib/content.js +2 -2
- package/lib/contentholder-content.d.ts +5 -5
- package/lib/contentholder-content.js +2 -2
- package/lib/file.d.ts +14 -14
- package/lib/file.js +2 -2
- package/lib/index.d.ts +21 -21
- package/lib/index.js +37 -37
- package/lib/item.d.ts +20 -20
- package/lib/item.js +2 -2
- package/lib/org-managed-entity.d.ts +5 -5
- package/lib/org-managed-entity.js +2 -2
- package/lib/org.d.ts +13 -13
- package/lib/org.js +16 -16
- package/lib/project-item.d.ts +9 -9
- package/lib/project-item.js +2 -2
- package/lib/project.d.ts +4 -4
- package/lib/project.js +2 -2
- package/lib/property-type.d.ts +31 -31
- package/lib/property-type.js +2 -2
- package/lib/type-managed-entity.d.ts +8 -8
- package/lib/type-managed-entity.js +2 -2
- package/lib/user.d.ts +49 -49
- package/lib/user.js +54 -54
- package/lib/workspace-managed-entity.d.ts +5 -5
- package/lib/workspace-managed-entity.js +2 -2
- package/package.json +23 -23
- package/lib/schedule.d.ts +0 -22
- package/lib/schedule.js +0 -26
package/lib/user.d.ts
CHANGED
|
@@ -1,49 +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
|
-
}
|
|
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
CHANGED
|
@@ -1,54 +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;
|
|
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,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.
|
|
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.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
|
+
}
|
package/lib/schedule.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { OrgManagedEntity } from "./org-managed-entity";
|
|
2
|
-
export declare enum RequestMethod {
|
|
3
|
-
POST = "POST"
|
|
4
|
-
}
|
|
5
|
-
export declare class ScheduledEvent implements OrgManagedEntity {
|
|
6
|
-
id: string;
|
|
7
|
-
createdOn?: Date;
|
|
8
|
-
updatedOn?: Date;
|
|
9
|
-
createdById?: string;
|
|
10
|
-
updatedById?: string;
|
|
11
|
-
createdBy?: any;
|
|
12
|
-
updatedBy?: any;
|
|
13
|
-
orgId?: string;
|
|
14
|
-
name: string;
|
|
15
|
-
cron: string;
|
|
16
|
-
requestMethod: RequestMethod;
|
|
17
|
-
entityName: string;
|
|
18
|
-
isActive: boolean;
|
|
19
|
-
payload?: any;
|
|
20
|
-
nextRun?: Date;
|
|
21
|
-
lastRan?: Date;
|
|
22
|
-
}
|
package/lib/schedule.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScheduledEvent = exports.RequestMethod = void 0;
|
|
4
|
-
var RequestMethod;
|
|
5
|
-
(function (RequestMethod) {
|
|
6
|
-
RequestMethod["POST"] = "POST";
|
|
7
|
-
})(RequestMethod = exports.RequestMethod || (exports.RequestMethod = {}));
|
|
8
|
-
class ScheduledEvent {
|
|
9
|
-
id;
|
|
10
|
-
createdOn;
|
|
11
|
-
updatedOn;
|
|
12
|
-
createdById;
|
|
13
|
-
updatedById;
|
|
14
|
-
createdBy;
|
|
15
|
-
updatedBy;
|
|
16
|
-
orgId;
|
|
17
|
-
name;
|
|
18
|
-
cron;
|
|
19
|
-
requestMethod;
|
|
20
|
-
entityName;
|
|
21
|
-
isActive;
|
|
22
|
-
payload;
|
|
23
|
-
nextRun;
|
|
24
|
-
lastRan;
|
|
25
|
-
}
|
|
26
|
-
exports.ScheduledEvent = ScheduledEvent;
|