@omnia/management-system 7.11.11 → 7.11.12

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,4 +1,7 @@
1
1
  import { PagingRequest } from "..";
2
+ import { SearchCriterion } from "./SearchCriterion";
2
3
  export interface BulkUpdatePagingRequest extends PagingRequest {
3
4
  searchProperty: string;
5
+ searchCriteria?: SearchCriterion[];
6
+ isKqlAdvanced?: boolean;
4
7
  }
@@ -1,9 +1,20 @@
1
1
  import { DocumentBulkUpdate } from "./DocumentBulkUpdate";
2
2
  import { SharePointField } from "../sharepoint";
3
- export interface DocumentBulkUpdateQuery {
3
+ export type DocumentBulkUpdateOperation = "set" | "clear" | "replace" | "add" | "remove";
4
+ type DocumentBulkUpdateTargetedOperation = "replace" | "remove";
5
+ type DocumentBulkUpdateUntargetedOperation = "set" | "clear" | "add";
6
+ interface DocumentBulkUpdateQueryBase {
4
7
  documentBulkUpdates: Array<DocumentBulkUpdate>;
5
8
  newValueField: SharePointField;
6
9
  system: string;
7
10
  modifiedBy: string;
8
11
  value: string;
9
12
  }
13
+ export type DocumentBulkUpdateQuery = DocumentBulkUpdateQueryBase & ({
14
+ updateOperation: DocumentBulkUpdateTargetedOperation;
15
+ targetValueField: SharePointField;
16
+ } | {
17
+ updateOperation: DocumentBulkUpdateUntargetedOperation;
18
+ targetValueField?: never;
19
+ });
20
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface SearchCriterion {
2
+ propertyInternalName: string;
3
+ kqlFragment: string;
4
+ displayValue?: string;
5
+ personIdentityIds?: string[];
6
+ /** True when the criterion is "any value" or "empty" — set by the client. */
7
+ isAnyOrEmpty?: boolean;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
1
  export * from "./DocumentBulkUpdate";
2
2
  export * from "./DocumentBulkUpdateQuery";
3
3
  export * from "./BulkUpdatePagingRequest";
4
+ export * from "./SearchCriterion";
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DocumentBulkUpdate"), exports);
5
5
  tslib_1.__exportStar(require("./DocumentBulkUpdateQuery"), exports);
6
6
  tslib_1.__exportStar(require("./BulkUpdatePagingRequest"), exports);
7
+ tslib_1.__exportStar(require("./SearchCriterion"), exports);
@@ -4,7 +4,7 @@ export declare class DocumentTypeService {
4
4
  private httpClient;
5
5
  constructor();
6
6
  refreshServerCache: () => Promise<void>;
7
- getByIds: (ids: Array<GuidValue>) => Promise<Array<DocumentType>>;
7
+ getByIds: (ids: Array<GuidValue>, includeDeleted?: boolean) => Promise<Array<DocumentType>>;
8
8
  getChildren: (parentId?: GuidValue) => Promise<Array<DocumentType>>;
9
9
  getDocumentTypeTermSetId: () => Promise<GuidValue>;
10
10
  create: (documentType: DocumentType) => Promise<DocumentType>;
@@ -32,6 +32,7 @@ export declare class DocumentTypeStore extends Store {
32
32
  updateDocumentType: import("@omnia/fx/stores").StoreAction<unknown, (documentType: DocumentType) => void, (result: DocumentType, documentType: DocumentType) => void, (failureReason: any, documentType: DocumentType) => void, (documentType: DocumentType) => Promise<DocumentType>>;
33
33
  removeDocumentType: import("@omnia/fx/stores").StoreAction<unknown, (documentType: DocumentType) => void, (result: any, documentType: DocumentType) => void, (failureReason: any, documentType: DocumentType) => void, (documentType: DocumentType) => Promise<any>>;
34
34
  ensureDocumentTypes: import("@omnia/fx/stores").StoreAction<unknown, (documentTypeIds: GuidValue[]) => void, (result: any, documentTypeIds: GuidValue[]) => void, (failureReason: any, documentTypeIds: GuidValue[]) => void, (documentTypeIds: Array<GuidValue>) => Promise<any>>;
35
+ ensureDocumentTypesIncludeDeleted: import("@omnia/fx/stores").StoreAction<unknown, (documentTypeIds: GuidValue[]) => void, (result: any, documentTypeIds: GuidValue[]) => void, (failureReason: any, documentTypeIds: GuidValue[]) => void, (documentTypeIds: Array<GuidValue>) => Promise<any>>;
35
36
  refreshCache: import("@omnia/fx/stores").StoreAction<unknown, (trackingNumber: number) => void, (result: null, trackingNumber: number) => void, (failureReason: any, trackingNumber: number) => void, (trackingNumber: number) => Promise<null>>;
36
37
  ensureDocumentTypeByDocumentTemplate: import("@omnia/fx/stores").StoreAction<unknown, (documentTemplateId: GuidValue) => void, (result: DocumentType[], documentTemplateId: GuidValue) => void, (failureReason: any, documentTemplateId: GuidValue) => void, (documentTemplateId: GuidValue) => Promise<DocumentType[]>>;
37
38
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/management-system/models",
3
3
  "license": "MIT",
4
- "version": "$version$",
4
+ "version": "7.11.11",
5
5
  "description": "Omnia Management System.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/management-system",
3
3
  "license": "SEE LICENSE IN LICENSE.txt",
4
- "version": "7.11.11",
4
+ "version": "7.11.12",
5
5
  "description": "Omnia Management System.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"