bruce-models 7.1.103 → 7.1.105

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.
@@ -65,7 +65,11 @@ export declare namespace Api {
65
65
  EntityHistoricDataAnalysis = "entityhistoricdataanalysis",
66
66
  EntityHistoricDataPage = "entityhistoricdatapage",
67
67
  AccountLimits = "accountlimits",
68
- WorkflowType = "workflowtype"
68
+ WorkflowType = "workflowtype",
69
+ WorkflowStatus = "workflowstatus",
70
+ WorkflowQueue = "workflowqueue",
71
+ WorkflowItem = "workflowitem",
72
+ WorkflowSchedule = "workflowschedule"
69
73
  }
70
74
  let DEFAULT_CACHE_DURATION: number;
71
75
  let TEMPLATE_ACCOUNT_ID: string;
@@ -118,5 +118,7 @@ export * from "./util/math-utils";
118
118
  export * from "./util/object-utils";
119
119
  export * from "./util/path-utils";
120
120
  export * from "./util/url-utils";
121
+ export * from "./workflow/workflow-item";
122
+ export * from "./workflow/workflow-schedule";
121
123
  export * from "./workflow/workflow-type";
122
- export declare const VERSION = "7.1.103";
124
+ export declare const VERSION = "7.1.105";
@@ -38,7 +38,18 @@ export declare namespace ProjectViewBookmark {
38
38
  Draft?: boolean;
39
39
  }
40
40
  type Settings = ISettings | IWeb3dSettings | IWeb2dSettings;
41
+ /**
42
+ * Configuration for "Ask Nextspace", the chat assistant.
43
+ * Currently only set at a Project View level, through
44
+ * `view.Settings.defaults.settings.llms`. It is declared on the shared
45
+ * bookmark settings so a Bookmark can override it later without a new type.
46
+ */
47
+ interface ILlms {
48
+ starters?: string[];
49
+ ontologyId?: number;
50
+ }
41
51
  interface ISettings {
52
+ llms?: ILlms;
42
53
  }
43
54
  /**
44
55
  * Describes the content of a bookmark.
@@ -0,0 +1,99 @@
1
+ import { Api } from "../api/api";
2
+ import { BruceApi } from "../api/bruce-api";
3
+ type WorkflowItemId = number | string;
4
+ type WorkflowSettingId = number | string;
5
+ export declare namespace WorkflowItem {
6
+ interface IItem {
7
+ ID?: number;
8
+ "Entity.ID"?: string;
9
+ Created?: string;
10
+ Updated?: string;
11
+ DueDate?: string | null;
12
+ "CreatedBy.User.ID"?: string;
13
+ "ItemType.ID"?: number;
14
+ "ItemStatus.ID"?: number;
15
+ "Queue.ID"?: number;
16
+ "Workflow.Schedule.ID"?: number | null;
17
+ Description?: string;
18
+ "UI.Slide.ID"?: string;
19
+ "Thumbnail.ClientFile.ID"?: string;
20
+ Entity?: any;
21
+ EntityType?: any;
22
+ [key: string]: any;
23
+ }
24
+ interface ICreateItem extends IItem {
25
+ "EntityType.ID"?: string;
26
+ "Workflow.ItemType.ID"?: WorkflowSettingId;
27
+ WorkflowItemTypeID?: WorkflowSettingId;
28
+ ItemTypeID?: WorkflowSettingId;
29
+ }
30
+ interface IListParams {
31
+ api?: BruceApi.Api;
32
+ pageSize?: number;
33
+ pageIndex?: number;
34
+ orderBy?: string;
35
+ sortOrder?: Api.ESortOrderStr | "ASC" | "DESC" | string;
36
+ statusEnd?: boolean;
37
+ assignedToMe?: boolean;
38
+ itemTypeId?: WorkflowSettingId | WorkflowSettingId[];
39
+ queueId?: WorkflowSettingId | WorkflowSettingId[];
40
+ scheduleId?: WorkflowSettingId | WorkflowSettingId[];
41
+ workflowScheduleId?: WorkflowSettingId | WorkflowSettingId[];
42
+ statusId?: WorkflowSettingId | WorkflowSettingId[];
43
+ createdByUserId?: string | string[];
44
+ dueDate?: string | string[];
45
+ dueDateFrom?: string;
46
+ dueDateTo?: string;
47
+ slideId?: string | string[];
48
+ entityId?: string | string[];
49
+ subjectEntityId?: string | string[];
50
+ description?: string | string[];
51
+ search?: string;
52
+ req?: Api.IReqParams;
53
+ }
54
+ interface IListResponse {
55
+ items: IItem[];
56
+ totalCount?: number;
57
+ nextPage?: boolean;
58
+ nextPageUrl?: string;
59
+ }
60
+ function Get(params: {
61
+ api?: BruceApi.Api;
62
+ workflowItemId: WorkflowItemId;
63
+ req?: Api.IReqParams;
64
+ }): Promise<{
65
+ workflowItem: IItem;
66
+ }>;
67
+ function GetList(params?: IListParams): Promise<IListResponse>;
68
+ function Create(params: {
69
+ api?: BruceApi.Api;
70
+ workflowItemTypeId?: WorkflowSettingId;
71
+ entityTypeId?: string;
72
+ workflowItem: ICreateItem;
73
+ req?: Api.IReqParams;
74
+ }): Promise<{
75
+ workflowItem: IItem;
76
+ entity?: any;
77
+ }>;
78
+ function Update(params: {
79
+ api?: BruceApi.Api;
80
+ workflowItem: IItem;
81
+ req?: Api.IReqParams;
82
+ }): Promise<{
83
+ workflowItem: IItem;
84
+ }>;
85
+ function Delete(params: {
86
+ api?: BruceApi.Api;
87
+ workflowItemId: WorkflowItemId;
88
+ req?: Api.IReqParams;
89
+ }): Promise<void>;
90
+ function BuildListUrl(params?: IListParams): string;
91
+ function ParseResponse(response: IItem | {
92
+ WorkflowItem?: IItem;
93
+ Result?: IItem | string;
94
+ } | string | any): IItem;
95
+ function ParseListResponse(response: Api.IList<IItem> | IItem[] | string | any): IListResponse;
96
+ function GetCacheKey(id: WorkflowItemId): string;
97
+ function GetListCacheKey(params?: IListParams): string;
98
+ }
99
+ export {};
@@ -0,0 +1,57 @@
1
+ import { Api } from "../api/api";
2
+ import { BruceApi } from "../api/bruce-api";
3
+ type WorkflowScheduleId = number | string;
4
+ export declare namespace WorkflowSchedule {
5
+ interface ISchedule {
6
+ ID?: number;
7
+ Name?: string;
8
+ Description?: string;
9
+ "Start.DateTime"?: string;
10
+ "Recurrence.Days"?: number;
11
+ "Reset.Workflow.Item.ID"?: number;
12
+ "Reset.On"?: boolean;
13
+ "Workflow.ItemType.ID"?: number;
14
+ "Workflow.ItemStatus.ID"?: number;
15
+ "Workflow.Queue.ID"?: number;
16
+ "Subject.Entity.InternalID"?: number[];
17
+ "UI.Slide.ID"?: string;
18
+ "Thumbnail.ClientFile.ID"?: string;
19
+ "Created.DateTime"?: string;
20
+ "Created.ByUser.ID"?: string;
21
+ "DueDate.Interval.Days"?: number | null;
22
+ [key: string]: any;
23
+ }
24
+ function Get(params: {
25
+ api?: BruceApi.Api;
26
+ workflowScheduleId: WorkflowScheduleId;
27
+ req?: Api.IReqParams;
28
+ }): Promise<{
29
+ workflowSchedule: ISchedule;
30
+ }>;
31
+ function GetList(params?: {
32
+ api?: BruceApi.Api;
33
+ req?: Api.IReqParams;
34
+ }): Promise<{
35
+ workflowSchedules: ISchedule[];
36
+ }>;
37
+ function Update(params: {
38
+ api?: BruceApi.Api;
39
+ workflowSchedule: ISchedule;
40
+ req?: Api.IReqParams;
41
+ }): Promise<{
42
+ workflowSchedule: ISchedule;
43
+ }>;
44
+ function Delete(params: {
45
+ api?: BruceApi.Api;
46
+ workflowScheduleId: WorkflowScheduleId;
47
+ req?: Api.IReqParams;
48
+ }): Promise<void>;
49
+ function ParseResponse(response: ISchedule | {
50
+ WorkflowSchedule?: ISchedule;
51
+ Result?: ISchedule | string;
52
+ } | string | any): ISchedule;
53
+ function ParseListResponse(response: Api.IList<ISchedule> | ISchedule[] | string | any): ISchedule[];
54
+ function GetCacheKey(id: WorkflowScheduleId): string;
55
+ function GetListCacheKey(): string;
56
+ }
57
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bruce-models",
3
- "version": "7.1.103",
3
+ "version": "7.1.105",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",