@contrail/entity-types 1.1.37 → 1.1.38
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/app-access-grant.d.ts +7 -3
- package/lib/app-access-grant.js +5 -0
- package/lib/app.d.ts +7 -6
- package/lib/project-configuration.d.ts +39 -0
- package/lib/project-configuration.js +9 -0
- package/lib/user.d.ts +5 -1
- package/lib/user.js +6 -1
- package/package.json +1 -1
- package/lib/app-installation-permission-grant.d.ts +0 -11
- package/lib/app-installation-permission-grant.js +0 -2
- package/lib/app-installation.d.ts +0 -20
- package/lib/app-installation.js +0 -11
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { App } from './app';
|
|
2
2
|
import { BaseManagedEntity } from './base-managed-entity';
|
|
3
3
|
import { Org } from './org';
|
|
4
|
-
export interface
|
|
5
|
-
|
|
4
|
+
export interface AppAccessGrant extends BaseManagedEntity {
|
|
5
|
+
issuerReference: string;
|
|
6
6
|
issuer?: Org;
|
|
7
|
-
|
|
7
|
+
recipientReference: string;
|
|
8
8
|
recipient?: Org;
|
|
9
9
|
appId: string;
|
|
10
10
|
app?: App;
|
|
11
|
+
scope: AppAccessGrantScope;
|
|
12
|
+
}
|
|
13
|
+
export declare enum AppAccessGrantScope {
|
|
14
|
+
INSTALL = "INSTALL"
|
|
11
15
|
}
|
package/lib/app-access-grant.js
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppAccessGrantScope = void 0;
|
|
4
|
+
var AppAccessGrantScope;
|
|
5
|
+
(function (AppAccessGrantScope) {
|
|
6
|
+
AppAccessGrantScope["INSTALL"] = "INSTALL";
|
|
7
|
+
})(AppAccessGrantScope = exports.AppAccessGrantScope || (exports.AppAccessGrantScope = {}));
|
package/lib/app.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { AppAccessGrant } from './app-access-grant';
|
|
2
|
+
import { AppCodePackage } from './app-code-package';
|
|
3
|
+
import { AppOrg } from './app-org';
|
|
4
|
+
import { AppVersion, ConfigProperty, TriggerKeyDefinition } from './app-version';
|
|
5
|
+
import { BaseManagedEntity } from './base-managed-entity';
|
|
5
6
|
export interface App extends BaseManagedEntity {
|
|
7
|
+
ownerReference: string;
|
|
6
8
|
name: string;
|
|
7
9
|
identifier: string;
|
|
8
10
|
installable?: boolean;
|
|
@@ -13,8 +15,6 @@ export interface App extends BaseManagedEntity {
|
|
|
13
15
|
description?: string;
|
|
14
16
|
publisher: string;
|
|
15
17
|
public: boolean;
|
|
16
|
-
hidden?: boolean;
|
|
17
|
-
privateOrgId?: string;
|
|
18
18
|
eventWorkflowTriggerKeyMapping: string;
|
|
19
19
|
configProperties?: ConfigProperty[];
|
|
20
20
|
appOrgs?: AppOrg[];
|
|
@@ -22,4 +22,5 @@ export interface App extends BaseManagedEntity {
|
|
|
22
22
|
appCodePackageId?: string;
|
|
23
23
|
appCodePackage?: AppCodePackage;
|
|
24
24
|
frameworkVersion?: number;
|
|
25
|
+
appAccessGrants?: AppAccessGrant[];
|
|
25
26
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OrgManagedEntity } from "./org-managed-entity";
|
|
2
|
+
export interface ProjectConfiguration extends OrgManagedEntity {
|
|
3
|
+
projectName: string;
|
|
4
|
+
identifier: string;
|
|
5
|
+
commonConfig: CommonConfiguration;
|
|
6
|
+
principals: string[];
|
|
7
|
+
assortments: AssortmentConfiguration[];
|
|
8
|
+
subFolders: Folder[];
|
|
9
|
+
}
|
|
10
|
+
interface CommonConfiguration {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}
|
|
13
|
+
declare enum AssortmentType {
|
|
14
|
+
ASSORTMENT = "ASSORTMENT",
|
|
15
|
+
BOARD = "BOARD",
|
|
16
|
+
PLAN = "PLAN",
|
|
17
|
+
SHOWCASE = "SHOWCASE"
|
|
18
|
+
}
|
|
19
|
+
interface AssortmentConfiguration {
|
|
20
|
+
identifier: string;
|
|
21
|
+
name: string;
|
|
22
|
+
type: AssortmentType;
|
|
23
|
+
sourceAssortmentIdentifier?: string;
|
|
24
|
+
composedFromAssortmentIdentifiers?: string[];
|
|
25
|
+
ownerAtts?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
assortmentAtts?: {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
interface Folder {
|
|
33
|
+
identifier: string;
|
|
34
|
+
name: string;
|
|
35
|
+
principals: string[];
|
|
36
|
+
assortments: AssortmentConfiguration[];
|
|
37
|
+
subFolders: Folder[];
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var AssortmentType;
|
|
4
|
+
(function (AssortmentType) {
|
|
5
|
+
AssortmentType["ASSORTMENT"] = "ASSORTMENT";
|
|
6
|
+
AssortmentType["BOARD"] = "BOARD";
|
|
7
|
+
AssortmentType["PLAN"] = "PLAN";
|
|
8
|
+
AssortmentType["SHOWCASE"] = "SHOWCASE";
|
|
9
|
+
})(AssortmentType || (AssortmentType = {}));
|
package/lib/user.d.ts
CHANGED
|
@@ -3,7 +3,11 @@ import { Org } from "./org";
|
|
|
3
3
|
import { OrgManagedEntity } from "./org-managed-entity";
|
|
4
4
|
export declare enum UserOrgRole {
|
|
5
5
|
admin = "ADMIN",
|
|
6
|
-
member = "MEMBER"
|
|
6
|
+
member = "MEMBER",
|
|
7
|
+
guest = "GUEST"
|
|
8
|
+
}
|
|
9
|
+
export declare enum SystemRole {
|
|
10
|
+
SYSTEM = "SYSTEM"
|
|
7
11
|
}
|
|
8
12
|
export interface UserOrg extends OrgManagedEntity {
|
|
9
13
|
id?: string;
|
package/lib/user.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PlatformRole = exports.UserOrgRole = void 0;
|
|
3
|
+
exports.PlatformRole = exports.SystemRole = exports.UserOrgRole = void 0;
|
|
4
4
|
var UserOrgRole;
|
|
5
5
|
(function (UserOrgRole) {
|
|
6
6
|
UserOrgRole["admin"] = "ADMIN";
|
|
7
7
|
UserOrgRole["member"] = "MEMBER";
|
|
8
|
+
UserOrgRole["guest"] = "GUEST";
|
|
8
9
|
})(UserOrgRole = exports.UserOrgRole || (exports.UserOrgRole = {}));
|
|
10
|
+
var SystemRole;
|
|
11
|
+
(function (SystemRole) {
|
|
12
|
+
SystemRole["SYSTEM"] = "SYSTEM";
|
|
13
|
+
})(SystemRole = exports.SystemRole || (exports.SystemRole = {}));
|
|
9
14
|
var PlatformRole;
|
|
10
15
|
(function (PlatformRole) {
|
|
11
16
|
PlatformRole["PLATFORM_MANAGER"] = "PLATFORM_MANAGER";
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { App } from "./app";
|
|
2
|
-
import { BaseManagedEntity } from "./base-managed-entity";
|
|
3
|
-
import { Org, OrgId } from "./org";
|
|
4
|
-
export interface AppInstallationPermissionGrant extends BaseManagedEntity {
|
|
5
|
-
issuerId: OrgId;
|
|
6
|
-
issue: Org;
|
|
7
|
-
recipientId: OrgId;
|
|
8
|
-
recipient: Org;
|
|
9
|
-
appId: string;
|
|
10
|
-
app: App;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OrgManagedEntity } from "./org-managed-entity";
|
|
2
|
-
import { App } from "./app";
|
|
3
|
-
import { AppVersion } from "./app-version";
|
|
4
|
-
import { AppApiKey } from "./app-api-key";
|
|
5
|
-
export declare enum AppInstallationStatus {
|
|
6
|
-
INSTALLING = "INSTALLING",
|
|
7
|
-
FAILED_INSTALLING = "FAILED_INSTALLING",
|
|
8
|
-
READY = "READY",
|
|
9
|
-
DELETING = "DELETING",
|
|
10
|
-
FAILED_DELETING = "FAILED_DELETING"
|
|
11
|
-
}
|
|
12
|
-
export interface AppInstallation extends OrgManagedEntity {
|
|
13
|
-
status: AppInstallationStatus;
|
|
14
|
-
appId?: string;
|
|
15
|
-
app?: App;
|
|
16
|
-
apiKey?: AppApiKey;
|
|
17
|
-
appVersionId?: string;
|
|
18
|
-
appVersion?: AppVersion;
|
|
19
|
-
appConfig?: any;
|
|
20
|
-
}
|
package/lib/app-installation.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AppInstallationStatus = void 0;
|
|
4
|
-
var AppInstallationStatus;
|
|
5
|
-
(function (AppInstallationStatus) {
|
|
6
|
-
AppInstallationStatus["INSTALLING"] = "INSTALLING";
|
|
7
|
-
AppInstallationStatus["FAILED_INSTALLING"] = "FAILED_INSTALLING";
|
|
8
|
-
AppInstallationStatus["READY"] = "READY";
|
|
9
|
-
AppInstallationStatus["DELETING"] = "DELETING";
|
|
10
|
-
AppInstallationStatus["FAILED_DELETING"] = "FAILED_DELETING";
|
|
11
|
-
})(AppInstallationStatus = exports.AppInstallationStatus || (exports.AppInstallationStatus = {}));
|