@contrail/entity-types 1.5.0 → 1.5.1

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.
@@ -14,6 +14,24 @@ export declare enum AppExtensionUserApps {
14
14
  ADMIN_CONSOLE = "ADMIN_CONSOLE",
15
15
  ALL = "ALL"
16
16
  }
17
+ export type AppExtensionDisplayType = 'modal' | 'side-menu';
18
+ export interface AppExtensionDisplayDimensions {
19
+ width?: string;
20
+ height?: string;
21
+ maxWidth?: string;
22
+ }
23
+ export interface AppExtensionDisplayPosition {
24
+ left?: string;
25
+ right?: string;
26
+ top?: string;
27
+ bottom?: string;
28
+ }
29
+ export interface AppExtensionDisplayConfiguration {
30
+ type: AppExtensionDisplayType;
31
+ dimensions?: AppExtensionDisplayDimensions;
32
+ position?: AppExtensionDisplayPosition;
33
+ }
34
+ export type ModalDimensions = AppExtensionDisplayDimensions & AppExtensionDisplayPosition;
17
35
  export interface AppExtensionDefinition extends BaseManagedEntity {
18
36
  id?: string;
19
37
  createdOn?: Date;
@@ -28,7 +46,8 @@ export interface AppExtensionDefinition extends BaseManagedEntity {
28
46
  appVersion?: AppVersion;
29
47
  extensionType?: AppExtensionType;
30
48
  userApps?: AppExtensionUserApps[];
31
- modalDimensions?: any;
49
+ display?: AppExtensionDisplayConfiguration;
50
+ modalDimensions?: ModalDimensions;
32
51
  iframeUrl?: string;
33
52
  widgetHeight?: any;
34
53
  }
@@ -1,5 +1,5 @@
1
1
  import { App } from './app';
2
- import { AppExtensionType, AppExtensionUserApps } from './app-extension-definition';
2
+ import { AppExtensionDisplayConfiguration, AppExtensionType, AppExtensionUserApps, ModalDimensions } from './app-extension-definition';
3
3
  import { AppVersion } from './app-version';
4
4
  import { OrgManagedEntity } from './org-managed-entity';
5
5
  export interface AppExtension extends OrgManagedEntity {
@@ -18,6 +18,7 @@ export interface AppExtension extends OrgManagedEntity {
18
18
  appVersion?: AppVersion;
19
19
  extensionType?: AppExtensionType;
20
20
  userApps?: AppExtensionUserApps[];
21
- modalDimensions?: any;
21
+ display?: AppExtensionDisplayConfiguration;
22
+ modalDimensions?: ModalDimensions;
22
23
  iframeUrl?: string;
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A types library for Vibeiq entities.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,32 +0,0 @@
1
- export declare enum PropertyType {
2
- Text = "text",
3
- String = "string",
4
- Number = "number",
5
- Date = "date",
6
- Boolean = "boolean",
7
- MultiSelect = "multi_select",
8
- SingleSelect = "choice",
9
- Url = "url",
10
- Currency = "currency",
11
- Percent = "percent",
12
- Rating = "rating",
13
- Formula = "formula",
14
- ObjectReference = "object_reference",
15
- ObjectReferenceList = "object_ref_list",
16
- TypeReference = "type_reference",
17
- DataGrid = "data_grid",
18
- CascadingSelect = "cascading_select",
19
- Sequence = "sequence",
20
- Constant = "constant",
21
- Composite = "composite",
22
- UserList = "userList",
23
- Image = "image",
24
- Json = "json",
25
- Password = "password",
26
- SizeRange = "size_range"
27
- }
28
- export interface PropertyTypeMetaData {
29
- label: string;
30
- propertyType: PropertyType;
31
- createable?: boolean;
32
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyType = void 0;
4
- var PropertyType;
5
- (function (PropertyType) {
6
- PropertyType["Text"] = "text";
7
- PropertyType["String"] = "string";
8
- PropertyType["Number"] = "number";
9
- PropertyType["Date"] = "date";
10
- PropertyType["Boolean"] = "boolean";
11
- PropertyType["MultiSelect"] = "multi_select";
12
- PropertyType["SingleSelect"] = "choice";
13
- PropertyType["Url"] = "url";
14
- PropertyType["Currency"] = "currency";
15
- PropertyType["Percent"] = "percent";
16
- PropertyType["Rating"] = "rating";
17
- PropertyType["Formula"] = "formula";
18
- PropertyType["ObjectReference"] = "object_reference";
19
- PropertyType["ObjectReferenceList"] = "object_ref_list";
20
- PropertyType["TypeReference"] = "type_reference";
21
- PropertyType["DataGrid"] = "data_grid";
22
- PropertyType["CascadingSelect"] = "cascading_select";
23
- PropertyType["Sequence"] = "sequence";
24
- PropertyType["Constant"] = "constant";
25
- PropertyType["Composite"] = "composite";
26
- PropertyType["UserList"] = "userList";
27
- PropertyType["Image"] = "image";
28
- PropertyType["Json"] = "json";
29
- PropertyType["Password"] = "password";
30
- PropertyType["SizeRange"] = "size_range";
31
- })(PropertyType = exports.PropertyType || (exports.PropertyType = {}));