bruce-models 7.1.104 → 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.
@@ -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.104",
3
+ "version": "7.1.105",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/bruce-models.umd.js",