@omnia/fx-models 8.0.159-dev → 8.0.161-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/Constants.d.ts CHANGED
@@ -111,6 +111,7 @@ export declare const Constants: {
111
111
  namespaces: {
112
112
  App: string;
113
113
  User: string;
114
+ Identities: string;
114
115
  };
115
116
  };
116
117
  apps: {
@@ -162,6 +163,7 @@ export declare const Constants: {
162
163
  legacyUserProfileCard: Guid;
163
164
  legacyAppPermissions: Guid;
164
165
  appOnlyReadAccessToSharePointTermstore: Guid;
166
+ provisionOmniaSearchUserData: Guid;
165
167
  };
166
168
  app: {
167
169
  tableName: string;
package/Constants.js CHANGED
@@ -142,6 +142,7 @@ exports.Constants = {
142
142
  namespaces: {
143
143
  App: "Omnia.Ux.App",
144
144
  User: "Omnia.Ux.User",
145
+ Identities: "Omnia.Ux.Identities",
145
146
  },
146
147
  },
147
148
  apps: {
@@ -192,7 +193,8 @@ exports.Constants = {
192
193
  brokenLinkDetection: new models_1.Guid("d1b958e2-8023-4324-a538-157b8f2c57b3"),
193
194
  legacyUserProfileCard: new models_1.Guid("01586ffc-5987-40d2-bf06-f97ab955a965"),
194
195
  legacyAppPermissions: new models_1.Guid("36c6fe6a-d79e-4f87-9349-cff9d3e1ab71"),
195
- appOnlyReadAccessToSharePointTermstore: new models_1.Guid("8095f802-38f0-426c-8d81-22cb22a2a019")
196
+ appOnlyReadAccessToSharePointTermstore: new models_1.Guid("8095f802-38f0-426c-8d81-22cb22a2a019"),
197
+ provisionOmniaSearchUserData: new models_1.Guid("8fc1325d-4196-406e-8dca-ebb78824896f")
196
198
  },
197
199
  app: {
198
200
  tableName: "AppInstances",
@@ -313,6 +313,7 @@ export declare abstract class FilterEngineContext {
313
313
  getExcludedPropertyTypeIds(): GuidValue[];
314
314
  readonly abstract uniqueId: string;
315
315
  readonly supportFullTextSearch: boolean;
316
+ readonly isSortableRefinementValue: boolean;
316
317
  }
317
318
  export declare abstract class DbQueryFilterEngineContext extends FilterEngineContext {
318
319
  componentId: string;
@@ -86,6 +86,7 @@ class FilterEngineContext {
86
86
  constructor(componentId) {
87
87
  this.componentId = componentId;
88
88
  this.supportFullTextSearch = false;
89
+ this.isSortableRefinementValue = true;
89
90
  }
90
91
  isRefinable(prop) {
91
92
  return false;
@@ -1,6 +1,6 @@
1
1
  import { IFontAwesomeIcon } from "@omnia/fx-models";
2
2
  import { DynamicState } from "../DynamicState";
3
- import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
3
+ import { VelcronEvent, VelcronOnActiveEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
4
4
  /**
5
5
  * Velcron definition base
6
6
  */
@@ -31,9 +31,11 @@ export interface VelcronSpacing {
31
31
  bottom?: number | string;
32
32
  left?: number | string;
33
33
  }
34
+ export type VelcronSpacingTypes = "inner" | "layout";
34
35
  interface VelcronDimensionStyling {
35
36
  margin?: VelcronSpacing;
36
37
  padding?: VelcronSpacing;
38
+ spacingType?: VelcronSpacingTypes;
37
39
  }
38
40
  export interface VelcronStyling {
39
41
  margin?: number;
@@ -75,7 +77,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
75
77
  version?: string;
76
78
  name?: string;
77
79
  body?: Array<VelcronDefinition>;
78
- events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSavingEvent & VelcronOnPersistingStateEvent;
80
+ events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSavingEvent & VelcronOnPersistingStateEvent & VelcronOnActiveEvent;
79
81
  actions?: {
80
82
  [name: string]: Array<string>;
81
83
  };
@@ -7,6 +7,9 @@ export type VelcronOnLoadEvent = {
7
7
  export type VelcronOnSavingEvent = {
8
8
  onSaving?: Array<string>;
9
9
  };
10
+ export type VelcronOnActiveEvent = {
11
+ onActive?: Array<string>;
12
+ };
10
13
  export type VelcronOnPersistingStateEvent = {
11
14
  onPersistState?: Array<string>;
12
15
  onRestoreState?: Array<string>;
@@ -1,4 +1,4 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, ContainerBlueprint, BackgroundDefinition } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
+ import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, ContainerBlueprint, BackgroundDefinition, VelcronStateEditor } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
2
  import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
3
3
  import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
4
4
  import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
@@ -35,6 +35,7 @@ export interface BuiltInComponentRenderers {
35
35
  "rive": unknown;
36
36
  "lottie": unknown;
37
37
  "slide-panel": unknown;
38
+ "editor": unknown;
38
39
  }
39
40
  export interface ColorSchemaReference {
40
41
  name: string;
@@ -63,7 +64,8 @@ export interface VelcronRenderContext {
63
64
  parent?: VelcronRenderContext;
64
65
  hooks?: VelcronRenderContextHooks;
65
66
  eventHandlers?: VelcronRenderContextEventHandlersInstance;
66
- editMode?: boolean;
67
+ $editmode?: boolean;
68
+ $active?: boolean;
67
69
  disposers: Array<() => void>;
68
70
  subApp?: boolean;
69
71
  }
@@ -293,6 +295,12 @@ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
293
295
  style?: VelcronCardStyling;
294
296
  events?: VelcronOnPressEvent;
295
297
  }
298
+ export interface VelcronEditorDefinition extends VelcronDefinition {
299
+ type: "editor";
300
+ editor: VelcronStateEditor;
301
+ value: VelcronBindableProp<string>;
302
+ events?: VelcronOnUpdatedEvent;
303
+ }
296
304
  export interface VelcronDimensions {
297
305
  top: number | string;
298
306
  right: number | string;
@@ -0,0 +1,8 @@
1
+ export interface OmniaRefinement {
2
+ refinementValue: string;
3
+ refinementCount: number;
4
+ }
5
+ export interface OmniaRefiner {
6
+ entries: Array<OmniaRefinement>;
7
+ name: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ import { Identity } from "../Exposes";
2
+ export interface ReindexOmniaSearchUser {
3
+ id: number;
4
+ status: ReindexOmniaSearchUserStatus;
5
+ createdAt: string;
6
+ createdBy: Identity;
7
+ modifiedAt: string;
8
+ modifiedBy: Identity;
9
+ error?: string;
10
+ resourceId?: string;
11
+ content: ReindexOmniaSearchUserLogContent;
12
+ }
13
+ export declare enum ReindexOmniaSearchUserStatus {
14
+ Unassigned = 0,
15
+ Assigned = 1,
16
+ Success = 2,
17
+ Exception = 3
18
+ }
19
+ export interface ReindexOmniaSearchUserLogResult {
20
+ total: number;
21
+ value: ReindexOmniaSearchUser[];
22
+ }
23
+ export declare enum ReindexOmniaSearchUserLogSortColumn {
24
+ Started = 1,
25
+ Ended = 2,
26
+ Status = 3
27
+ }
28
+ export interface ReindexOmniaSearchUserLogContent {
29
+ totalUserChanges: number;
30
+ totalUpdatedUsers: number;
31
+ totalDeletedUsers: number;
32
+ totalUpdatedUsersSuccess: number;
33
+ totalDeletedUsersSuccess: number;
34
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReindexOmniaSearchUserLogSortColumn = exports.ReindexOmniaSearchUserStatus = void 0;
4
+ var ReindexOmniaSearchUserStatus;
5
+ (function (ReindexOmniaSearchUserStatus) {
6
+ ReindexOmniaSearchUserStatus[ReindexOmniaSearchUserStatus["Unassigned"] = 0] = "Unassigned";
7
+ ReindexOmniaSearchUserStatus[ReindexOmniaSearchUserStatus["Assigned"] = 1] = "Assigned";
8
+ ReindexOmniaSearchUserStatus[ReindexOmniaSearchUserStatus["Success"] = 2] = "Success";
9
+ ReindexOmniaSearchUserStatus[ReindexOmniaSearchUserStatus["Exception"] = 3] = "Exception";
10
+ })(ReindexOmniaSearchUserStatus || (exports.ReindexOmniaSearchUserStatus = ReindexOmniaSearchUserStatus = {}));
11
+ var ReindexOmniaSearchUserLogSortColumn;
12
+ (function (ReindexOmniaSearchUserLogSortColumn) {
13
+ ReindexOmniaSearchUserLogSortColumn[ReindexOmniaSearchUserLogSortColumn["Started"] = 1] = "Started";
14
+ ReindexOmniaSearchUserLogSortColumn[ReindexOmniaSearchUserLogSortColumn["Ended"] = 2] = "Ended";
15
+ ReindexOmniaSearchUserLogSortColumn[ReindexOmniaSearchUserLogSortColumn["Status"] = 3] = "Status";
16
+ })(ReindexOmniaSearchUserLogSortColumn || (exports.ReindexOmniaSearchUserLogSortColumn = ReindexOmniaSearchUserLogSortColumn = {}));
@@ -1,7 +1,9 @@
1
+ import { OmniaRefiner } from "./OmniaRefiner";
1
2
  export interface PagedOmniaSearchResult<T> {
2
3
  hits: Array<T>;
3
4
  processingTimeMs: number;
4
5
  totalHits: number;
5
6
  page: number;
6
7
  totalPages: number;
8
+ omniaRefiners: Array<OmniaRefiner>;
7
9
  }
@@ -4,14 +4,14 @@ export interface SearchUserQuery {
4
4
  hitsPerPage: number;
5
5
  nextPage?: number;
6
6
  sorts?: Array<SourceRelatedOmniaSortProperty>;
7
- targetings?: Array<Array<TargetingSearchProperty>>;
7
+ filters?: Array<Array<ConditionalSearchProperty>>;
8
8
  refiners?: Array<SourceRelatedOmniaRefinerProperty>;
9
9
  }
10
- export interface TargetingSearchProperty {
11
- operator: TargetingOperator;
10
+ export interface ConditionalSearchProperty {
11
+ operator: ConditionalOperator;
12
12
  sourceRelatedOmniaSearchProperty: SourceRelatedOmniaSearchProperty;
13
13
  }
14
- export declare enum TargetingOperator {
14
+ export declare enum ConditionalOperator {
15
15
  Equals = 0,
16
16
  GreaterThan = 1,
17
17
  GreaterThanOrEqual = 2,
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TargetingOperator = void 0;
4
- var TargetingOperator;
5
- (function (TargetingOperator) {
6
- TargetingOperator[TargetingOperator["Equals"] = 0] = "Equals";
7
- TargetingOperator[TargetingOperator["GreaterThan"] = 1] = "GreaterThan";
8
- TargetingOperator[TargetingOperator["GreaterThanOrEqual"] = 2] = "GreaterThanOrEqual";
9
- TargetingOperator[TargetingOperator["LessThan"] = 3] = "LessThan";
10
- TargetingOperator[TargetingOperator["LessThanOrEqual"] = 4] = "LessThanOrEqual";
11
- })(TargetingOperator || (exports.TargetingOperator = TargetingOperator = {}));
3
+ exports.ConditionalOperator = void 0;
4
+ var ConditionalOperator;
5
+ (function (ConditionalOperator) {
6
+ ConditionalOperator[ConditionalOperator["Equals"] = 0] = "Equals";
7
+ ConditionalOperator[ConditionalOperator["GreaterThan"] = 1] = "GreaterThan";
8
+ ConditionalOperator[ConditionalOperator["GreaterThanOrEqual"] = 2] = "GreaterThanOrEqual";
9
+ ConditionalOperator[ConditionalOperator["LessThan"] = 3] = "LessThan";
10
+ ConditionalOperator[ConditionalOperator["LessThanOrEqual"] = 4] = "LessThanOrEqual";
11
+ })(ConditionalOperator || (exports.ConditionalOperator = ConditionalOperator = {}));
@@ -16,3 +16,5 @@ export * from "./RefinerProperty";
16
16
  export * from "./SearchUserIdentity";
17
17
  export * from "./PagedOmniaSearchResult";
18
18
  export * from "./SearchUserQuery";
19
+ export * from "./OmniaRefiner";
20
+ export * from "./OmniaSearchUser";
@@ -19,3 +19,5 @@ tslib_1.__exportStar(require("./RefinerProperty"), exports);
19
19
  tslib_1.__exportStar(require("./SearchUserIdentity"), exports);
20
20
  tslib_1.__exportStar(require("./PagedOmniaSearchResult"), exports);
21
21
  tslib_1.__exportStar(require("./SearchUserQuery"), exports);
22
+ tslib_1.__exportStar(require("./OmniaRefiner"), exports);
23
+ tslib_1.__exportStar(require("./OmniaSearchUser"), 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.159-dev",
4
+ "version": "8.0.161-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,5 +1,5 @@
1
1
  import { DynamicState, GuidValue, ThemeDefinitionV2, VelcronAppDefinition } from "..";
2
- export type VelcronDefitinionRegistrationsTypes = "content" | "card" | "header" | "general" | "property" | "block-header" | "social";
2
+ export type VelcronDefitinionRegistrationsTypes = "content" | "card" | "header" | "general" | "property" | "block-header" | "social" | "spacing";
3
3
  export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicState = DynamicState> {
4
4
  id: GuidValue;
5
5
  definition: VelcronAppDefinition<TDefinitionState>;