@contrail/entity-types 1.5.1-alpha.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/lib/loader.d.ts CHANGED
@@ -146,7 +146,6 @@ export declare class LoaderProcess implements OrgManagedEntity {
146
146
  assortmentSplit?: AssortmentSplit;
147
147
  partialAssortmentUpdate?: boolean;
148
148
  assortmentItemDropField?: string;
149
- directAssortmentItemLoad?: boolean;
150
149
  workspaceIdentifier?: string;
151
150
  propertiesToRemove?: string[];
152
151
  badRowsCount?: number;
package/lib/loader.js CHANGED
@@ -75,7 +75,6 @@ class LoaderProcess {
75
75
  assortmentSplit;
76
76
  partialAssortmentUpdate;
77
77
  assortmentItemDropField;
78
- directAssortmentItemLoad;
79
78
  workspaceIdentifier;
80
79
  propertiesToRemove;
81
80
  badRowsCount;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/entity-types",
3
- "version": "1.5.1-alpha.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",