@omnia/fx-models 8.0.29-vnext → 8.0.31-vnext

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.
@@ -1,6 +1,6 @@
1
1
  import { TextAlignment, BorderPositions, IconPositions, IconSizes } from "./Enums";
2
2
  import { IIcon } from "./Icon";
3
- import { SpacingSettings } from "./SpacingSetting";
3
+ import { SpacingSettings } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
4
  import { BusinessProfileProperty } from "./BusinessProfile";
5
5
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
6
6
  export declare class BusinessProfileBlockTitleSettings extends BusinessProfileProperty implements BlockTitleSettings {
@@ -3,6 +3,7 @@ import { WebComponentDefinition } from "./ComponentComposer";
3
3
  import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
4
4
  import { OmniaNamedModel } from ".";
5
5
  export interface OmniaManifests {
6
+ omniaServiceId: GuidValue;
6
7
  webcomponent: Array<WebComponentBundleManifest>;
7
8
  resource: Array<ResourcesBundleManifest>;
8
9
  groupedResouresAndComponents: Array<GroupedBundleManifest>;
@@ -12,8 +13,10 @@ export interface OmniaManifests {
12
13
  export interface OmniaServiceManifests {
13
14
  [omniaServiceId: string]: OmniaManifests;
14
15
  }
16
+ export type ClientManifestTargetTypes = "admin" | "editor";
15
17
  export interface ClientManifest {
16
18
  manifestType: ClientManifestTypes;
19
+ target?: ClientManifestTargetTypes;
17
20
  }
18
21
  export interface RegiterApiConfiguration {
19
22
  disableAutoLoadingManifests?: boolean;
@@ -26,7 +29,7 @@ export interface BundleIdentity {
26
29
  /**
27
30
  The unique id of the omnia service to which the resource id belong.
28
31
  */
29
- omniaServiceId: string;
32
+ omniaServiceId?: string;
30
33
  }
31
34
  export interface BundleManifest extends ClientManifest, BundleIdentity {
32
35
  /**
@@ -37,6 +40,17 @@ export interface BundleManifest extends ClientManifest, BundleIdentity {
37
40
  export interface ClientManifestByTypeCollection {
38
41
  [manifestType: string]: Array<ClientManifest>;
39
42
  }
43
+ export type ClientManifestByTargetCollection = {
44
+ [target in ClientManifestTargetTypes]: {
45
+ target: ClientManifestTargetTypes;
46
+ omniaServiceId: GuidValue;
47
+ } | ClientManifestByTypeCollection;
48
+ } & {
49
+ public: {
50
+ target: string;
51
+ omniaServiceId: GuidValue;
52
+ } | ClientManifestByTypeCollection;
53
+ };
40
54
  export interface ManifestLoadResult {
41
55
  manifest: LoadableBundleManifest;
42
56
  status: ManifestLoadStatus;
@@ -45,7 +59,7 @@ export interface LoadableBundleManifest extends BundleManifest, ManifestSupporti
45
59
  version: {
46
60
  [bundleType: string]: string;
47
61
  };
48
- dependingOnManifests: Array<BundleIdentity>;
62
+ dependingOnManifests?: Array<BundleIdentity>;
49
63
  availableBundleTargetTypes: Array<BundleTargetTypes>;
50
64
  }
51
65
  export interface ApiBundleManifest {
@@ -72,7 +86,7 @@ export interface WebComponentBundleManifest extends LoadableBundleManifest, ApiB
72
86
  e.g. use project as prefix myuniqueprojectname-componentName.
73
87
  i.e. <myuniqueprojectname-componentName></myuniqueprojectname-componentName> */
74
88
  elementName: string;
75
- definition: WebComponentDefinition;
89
+ definition?: WebComponentDefinition;
76
90
  }
77
91
  export interface GroupedBundleManifest extends LoadableBundleManifest, SecurityBundleManifest {
78
92
  /** The manifest id's in this group */
@@ -118,7 +132,7 @@ export interface ClientResolvableLoadRule {
118
132
  resolver?: () => Promise<boolean>;
119
133
  }
120
134
  export interface ManifestSupportingCombinedLoadRules {
121
- combinedLoadRules: Array<ClientResolvableLoadRule>;
135
+ combinedLoadRules?: Array<ClientResolvableLoadRule>;
122
136
  }
123
137
  /**
124
138
  Rules applied clientside
package/Exposes.d.ts CHANGED
@@ -35,7 +35,6 @@ export * from "./Store";
35
35
  export * from "./SiteLogo";
36
36
  export * from "./PermissionInputSettings";
37
37
  export * from "./Security";
38
- export * from "./SpacingSetting";
39
38
  export * from "./SecurityContextParamRegistrationHandler";
40
39
  export * from "./TargetingProperty";
41
40
  export * from "./TimeZone";
package/Exposes.js CHANGED
@@ -41,7 +41,6 @@ tslib_1.__exportStar(require("./Store"), exports);
41
41
  tslib_1.__exportStar(require("./SiteLogo"), exports);
42
42
  tslib_1.__exportStar(require("./PermissionInputSettings"), exports);
43
43
  tslib_1.__exportStar(require("./Security"), exports);
44
- tslib_1.__exportStar(require("./SpacingSetting"), exports);
45
44
  tslib_1.__exportStar(require("./SecurityContextParamRegistrationHandler"), exports);
46
45
  tslib_1.__exportStar(require("./TargetingProperty"), exports);
47
46
  tslib_1.__exportStar(require("./TimeZone"), exports);
@@ -49,4 +49,5 @@ export declare const FilterEngineStyles: {
49
49
  smallerExpansionPanelHeader: types.NestedCSSProperties;
50
50
  customLabel: (color: string) => types.NestedCSSProperties;
51
51
  reactiveHighlightedBorder: (isDark: boolean) => types.NestedCSSProperties;
52
+ scrollableListContent: types.NestedCSSProperties;
52
53
  };
package/apps/App.d.ts CHANGED
@@ -98,8 +98,8 @@ export interface AppTemplate {
98
98
  features: GuidValue[];
99
99
  permissionIdentities: string[];
100
100
  properties: AppTemplateProperties;
101
- createdBy: string;
102
- modifiedBy: string;
101
+ createdBy: Identity;
102
+ modifiedBy: Identity;
103
103
  createdAt: Date;
104
104
  modifiedAt: Date;
105
105
  appDefinition: AppDefinition;
@@ -149,8 +149,8 @@ export interface AppInstance {
149
149
  [internalName: string]: any;
150
150
  };
151
151
  outputInfo: AppInstanceOutput;
152
- createdBy: string;
153
- modifiedBy: string;
152
+ createdBy: Identity;
153
+ modifiedBy: Identity;
154
154
  createdAt: Date;
155
155
  modifiedAt: Date;
156
156
  appTemplate: AppTemplate;
@@ -3,7 +3,7 @@ import { EnterprisePropertyDefinition } from "../enterprise-properties/Enterpris
3
3
  import { AppInstanceScopedQueryTypes, PropertyIndexedType } from "../Enums";
4
4
  import { MultilingualString } from "../MultilingualString";
5
5
  import { OrderBy, RollupEnums, RollupFilter } from "../RollupQuery";
6
- import { SpacingSettings } from "../SpacingSetting";
6
+ import { SpacingSettings } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
7
7
  import { AppInstance, AppInstanceInfo, AppInstanceInfoUser, AppInstanceTemplateFilter } from "./App";
8
8
  export declare class AppInstanceRollupConstants {
9
9
  static AppInstanceProperties: {
@@ -1,11 +1,12 @@
1
+ import { Guid, GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
2
  import { EnterpriseGlossaryInformationSourceSettings } from "./EnterpriseGlossaryInformationSourceSettings";
2
3
  export declare abstract class EnterpriseGlossaryBase {
3
- abstract readonly type: EnterpriseGlossaryTypes;
4
+ abstract readonly type: GuidValue;
4
5
  }
5
6
  export declare abstract class EnterpriseGlossary extends EnterpriseGlossaryBase {
6
7
  providerInformationSourceSettings: EnterpriseGlossaryInformationSourceSettings;
7
8
  constructor(providerInformationSourceSettings: EnterpriseGlossaryInformationSourceSettings);
8
9
  }
9
- export declare enum EnterpriseGlossaryTypes {
10
- SharepointTaxonomy = 1
10
+ export declare class EnterpriseGlossaryTypes {
11
+ static get SharepointTaxonomy(): Guid;
11
12
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnterpriseGlossaryTypes = exports.EnterpriseGlossary = exports.EnterpriseGlossaryBase = void 0;
4
+ const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
4
5
  class EnterpriseGlossaryBase {
5
6
  }
6
7
  exports.EnterpriseGlossaryBase = EnterpriseGlossaryBase;
@@ -11,8 +12,9 @@ class EnterpriseGlossary extends EnterpriseGlossaryBase {
11
12
  }
12
13
  }
13
14
  exports.EnterpriseGlossary = EnterpriseGlossary;
14
- var EnterpriseGlossaryTypes;
15
- (function (EnterpriseGlossaryTypes) {
16
- EnterpriseGlossaryTypes[EnterpriseGlossaryTypes["SharepointTaxonomy"] = 1] = "SharepointTaxonomy";
17
- // Future omnia taxonomy coming.
18
- })(EnterpriseGlossaryTypes = exports.EnterpriseGlossaryTypes || (exports.EnterpriseGlossaryTypes = {}));
15
+ class EnterpriseGlossaryTypes {
16
+ static get SharepointTaxonomy() {
17
+ return new models_1.Guid("4363bdaf-56fe-4680-a3f9-b5c82acd21a2");
18
+ }
19
+ }
20
+ exports.EnterpriseGlossaryTypes = EnterpriseGlossaryTypes;
@@ -1,5 +1,6 @@
1
- import { EnterpriseGlossaryBase, EnterpriseGlossaryTypes } from "./EnterpriseGlossary";
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ import { EnterpriseGlossaryBase } from "./EnterpriseGlossary";
2
3
  export declare abstract class EnterpriseGlossaryProvider {
3
- abstract readonly type: EnterpriseGlossaryTypes;
4
+ abstract readonly type: GuidValue;
4
5
  abstract getTitle: (enterpriseGlossary: EnterpriseGlossaryBase) => Promise<string>;
5
6
  }
@@ -1,5 +1,5 @@
1
- import { SpacingSettings } from "@omnia/fx-models";
2
1
  import { Guid } from "../Guid";
2
+ import { SpacingSettings } from "./SpacingSetting";
3
3
  import { ColorSchemaType, ColorSchemaTypes } from "./ThemeDefinitionV2";
4
4
  import { TypographyDefinition } from "./TypographyDefinition";
5
5
  export interface BoxDimensions extends SpacingSettings {
@@ -13,11 +13,12 @@ export interface BluePrintDefinitions {
13
13
  variant2: BlueprintDefinition;
14
14
  variant3: BlueprintDefinition;
15
15
  }
16
- export type WebBlueprintDefintionType = "button" | "block" | "typography";
16
+ export type WebBlueprintDefintionType = "button" | "block" | "typography" | "searchbox";
17
17
  export declare enum WebBlueprintDefintionTypes {
18
18
  button = "button",
19
19
  block = "block",
20
- typography = "typography"
20
+ typography = "typography",
21
+ searchbox = "searchbox"
21
22
  }
22
23
  export type VelcronBlueprintDefintionType = "button" | "typography";
23
24
  export declare enum VelcronBlueprintDefintionTypes {
@@ -29,6 +30,7 @@ export interface BlueprintItemDefinition {
29
30
  type: any;
30
31
  }
31
32
  export interface BlockBlueprint extends BlueprintItemDefinition {
33
+ type: "block";
32
34
  header?: {
33
35
  definitionId: Guid;
34
36
  };
@@ -41,8 +43,14 @@ export interface BlockBlueprint extends BlueprintItemDefinition {
41
43
  };
42
44
  }
43
45
  export interface TypographyBlueprint extends BlueprintItemDefinition {
46
+ type: "typography";
44
47
  definition: TypographyDefinition;
45
48
  }
49
+ export interface SearchBoxBlueprint extends BlueprintItemDefinition {
50
+ type: "searchbox";
51
+ borderRadius?: BoxDimensions;
52
+ variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
53
+ }
46
54
  export interface BlueprintDefinition {
47
55
  id: Guid;
48
56
  definitions: Array<BlueprintItemDefinition>;
@@ -6,6 +6,7 @@ var WebBlueprintDefintionTypes;
6
6
  WebBlueprintDefintionTypes["button"] = "button";
7
7
  WebBlueprintDefintionTypes["block"] = "block";
8
8
  WebBlueprintDefintionTypes["typography"] = "typography";
9
+ WebBlueprintDefintionTypes["searchbox"] = "searchbox";
9
10
  })(WebBlueprintDefintionTypes = exports.WebBlueprintDefintionTypes || (exports.WebBlueprintDefintionTypes = {}));
10
11
  var VelcronBlueprintDefintionTypes;
11
12
  (function (VelcronBlueprintDefintionTypes) {
@@ -3,3 +3,4 @@ export * from "./TypographyDefinition";
3
3
  export * from "./OmniaThemes";
4
4
  export * from "./UseThemeMethods";
5
5
  export * from "./BlueprintDefinition";
6
+ export * from "./SpacingSetting";
@@ -6,3 +6,4 @@ tslib_1.__exportStar(require("./TypographyDefinition"), exports);
6
6
  tslib_1.__exportStar(require("./OmniaThemes"), exports);
7
7
  tslib_1.__exportStar(require("./UseThemeMethods"), exports);
8
8
  tslib_1.__exportStar(require("./BlueprintDefinition"), exports);
9
+ tslib_1.__exportStar(require("./SpacingSetting"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.29-vnext",
4
+ "version": "8.0.31-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"