@omnia/fx-sp-models 7.10.0-preview.7 → 7.10.0-preview.71

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.
@@ -0,0 +1,5 @@
1
+ import { GuidValue } from "@omnia/fx-models";
2
+ export interface SharePointTermWssIdQuery {
3
+ siteUrl: string;
4
+ termIds: GuidValue[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { Identity } from "@omnia/fx-models";
2
+ export interface SharePointUserLookupQuery {
3
+ siteUrl: string;
4
+ identities: Identity[];
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { FilterBuilder, FilterConditionComponent, IIntFilterOperatorBuilder } from "@omnia/fx-models";
2
+ export declare class SharePointFilterBuilder extends FilterBuilder {
3
+ static readonly LOOKUP_PREFIX = "$$SharePointLookUp$$";
4
+ addSharePointLookupFilter(filterComponent: FilterConditionComponent): void;
5
+ sharePointLookup(propertyName: string): IIntFilterOperatorBuilder;
6
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SharePointFilterBuilder = void 0;
4
+ const fx_models_1 = require("@omnia/fx-models");
5
+ class SharePointFilterBuilder extends fx_models_1.FilterBuilder {
6
+ addSharePointLookupFilter(filterComponent) {
7
+ filterComponent.propertyName = SharePointFilterBuilder.LOOKUP_PREFIX + filterComponent.propertyName;
8
+ this.filters.push(filterComponent);
9
+ this.propertyName = undefined;
10
+ this.filterLogicalOperator = fx_models_1.FilterLogicalOperator.And;
11
+ }
12
+ sharePointLookup(propertyName) {
13
+ this.propertyName = SharePointFilterBuilder.LOOKUP_PREFIX + propertyName;
14
+ this.intFilterOperatorBuilder =
15
+ this.intFilterOperatorBuilder || new fx_models_1.IntFilterOperatorBuilder(this);
16
+ return this.intFilterOperatorBuilder;
17
+ }
18
+ }
19
+ exports.SharePointFilterBuilder = SharePointFilterBuilder;
20
+ SharePointFilterBuilder.LOOKUP_PREFIX = "$$SharePointLookUp$$";
@@ -0,0 +1,6 @@
1
+ import { FilterComponent } from "@omnia/fx-models";
2
+ import { SharePointFilterBuilder } from "../SharePointFilterBuilder";
3
+ export declare class SharePointFilterBuilderFactory {
4
+ static createFilterBuilder(): SharePointFilterBuilder;
5
+ static createFilterBuilderWithExisting(filters: FilterComponent[]): SharePointFilterBuilder;
6
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SharePointFilterBuilderFactory = void 0;
4
+ const SharePointFilterBuilder_1 = require("../SharePointFilterBuilder");
5
+ class SharePointFilterBuilderFactory {
6
+ static createFilterBuilder() {
7
+ return new SharePointFilterBuilder_1.SharePointFilterBuilder();
8
+ }
9
+ static createFilterBuilderWithExisting(filters) {
10
+ return new SharePointFilterBuilder_1.SharePointFilterBuilder(filters);
11
+ }
12
+ }
13
+ exports.SharePointFilterBuilderFactory = SharePointFilterBuilderFactory;
@@ -0,0 +1,2 @@
1
+ export * from "./SharePointFilterBuilder";
2
+ export * from "./helper/FilterHelper";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./SharePointFilterBuilder"), exports);
5
+ tslib_1.__exportStar(require("./helper/FilterHelper"), exports);
package/index.d.ts CHANGED
@@ -18,3 +18,6 @@ export * from "./FilterEngine";
18
18
  export * from "./SharePointUserProfilePropertyValue";
19
19
  export * from "./Feature";
20
20
  export * from "./ListTree";
21
+ export * from "./filterbuilder";
22
+ export * from "./SharePointUserLookupQuery";
23
+ export * from "./SharePointTermWssIdQuery";
package/index.js CHANGED
@@ -22,3 +22,6 @@ tslib_1.__exportStar(require("./FilterEngine"), exports);
22
22
  tslib_1.__exportStar(require("./SharePointUserProfilePropertyValue"), exports);
23
23
  tslib_1.__exportStar(require("./Feature"), exports);
24
24
  tslib_1.__exportStar(require("./ListTree"), exports);
25
+ tslib_1.__exportStar(require("./filterbuilder"), exports);
26
+ tslib_1.__exportStar(require("./SharePointUserLookupQuery"), exports);
27
+ tslib_1.__exportStar(require("./SharePointTermWssIdQuery"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-sp-models",
3
3
  "license": "MIT",
4
- "version": "7.10.0-preview.7",
4
+ "version": "7.10.0-preview.71",
5
5
  "description": "Provide Omnia Fx Sharepoint Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,7 +19,7 @@
19
19
  ],
20
20
  "author": "Omnia Digital Workplace AB",
21
21
  "dependencies": {
22
- "@omnia/fx-models": "7.10.0-preview.7"
22
+ "@omnia/fx-models": "7.10.0-preview.71"
23
23
  },
24
24
  "typings": "./index.d.ts",
25
25
  "bugs": {