@omnia/fx-models 8.0.3-dev → 8.0.4-dev

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.3-dev",
4
+ "version": "8.0.4-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,12 @@
1
+ import { GuidValue } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models/Guid";
2
+ import { PropertyBindingId } from "../PropertyBinding";
3
+ import { PropertyDataSourceId } from "./DataSourceId";
4
+ import { DataSourceProperty } from "./DataSourceProperty";
5
+ export declare class UserDataSourceProperty extends DataSourceProperty {
6
+ readonly enterprisePropertyBindingId?: PropertyBindingId;
7
+ readonly userPropertyBindingId?: PropertyBindingId;
8
+ readonly builtInId?: GuidValue;
9
+ readonly builtInInternalName?: string;
10
+ constructor(dataSourceId: PropertyDataSourceId, enterprisePropertyBindingId?: PropertyBindingId, userPropertyBindingId?: PropertyBindingId, builtInId?: GuidValue, builtInInternalName?: string);
11
+ isEqual: (property: UserDataSourceProperty) => boolean;
12
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserDataSourceProperty = void 0;
4
+ const DataSourceProperty_1 = require("./DataSourceProperty");
5
+ class UserDataSourceProperty extends DataSourceProperty_1.DataSourceProperty {
6
+ constructor(dataSourceId, enterprisePropertyBindingId, userPropertyBindingId, builtInId, builtInInternalName) {
7
+ super(dataSourceId);
8
+ this.enterprisePropertyBindingId = enterprisePropertyBindingId;
9
+ this.userPropertyBindingId = userPropertyBindingId;
10
+ this.builtInId = builtInId;
11
+ this.builtInInternalName = builtInInternalName;
12
+ this.isEqual = (property) => {
13
+ return this.dataSourceId == property.dataSourceId &&
14
+ this.enterprisePropertyBindingId == property.enterprisePropertyBindingId &&
15
+ this.userPropertyBindingId == property.userPropertyBindingId &&
16
+ this.builtInInternalName == property.builtInInternalName;
17
+ };
18
+ }
19
+ }
20
+ exports.UserDataSourceProperty = UserDataSourceProperty;
@@ -1,3 +1,4 @@
1
1
  export * from "./DataSourceProperty";
2
2
  export * from "./DataSourceId";
3
3
  export * from "./DataSourcePropertyDisplayInformation";
4
+ export * from "./UserDataSourceProperty";
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DataSourceProperty"), exports);
5
5
  tslib_1.__exportStar(require("./DataSourceId"), exports);
6
6
  tslib_1.__exportStar(require("./DataSourcePropertyDisplayInformation"), exports);
7
+ tslib_1.__exportStar(require("./UserDataSourceProperty"), exports);