@turndown/library 0.1.23 → 0.1.28
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/dist/index.cjs +1355 -0
- package/dist/index.d.cts +2820 -0
- package/dist/index.d.ts +2820 -2
- package/dist/index.js +1190 -2
- package/package.json +3 -2
- package/dist/helpers/date/index.d.ts +0 -113
- package/dist/helpers/date/index.js +0 -171
- package/dist/helpers/index.d.ts +0 -4
- package/dist/helpers/index.js +0 -3
- package/dist/helpers/object/index.d.ts +0 -298
- package/dist/helpers/object/index.js +0 -540
- package/dist/helpers/string/index.d.ts +0 -258
- package/dist/helpers/string/index.js +0 -496
- package/dist/types/api/index.d.ts +0 -70
- package/dist/types/api/index.js +0 -53
- package/dist/types/auth/index.d.ts +0 -107
- package/dist/types/auth/index.js +0 -8
- package/dist/types/auth/routes.d.ts +0 -160
- package/dist/types/auth/routes.js +0 -1
- package/dist/types/base/index.d.ts +0 -200
- package/dist/types/base/index.js +0 -177
- package/dist/types/base/paging.types.d.ts +0 -47
- package/dist/types/base/paging.types.js +0 -1
- package/dist/types/checklist-template/index.d.ts +0 -48
- package/dist/types/checklist-template/index.js +0 -1
- package/dist/types/checklist-template/routes.d.ts +0 -85
- package/dist/types/checklist-template/routes.js +0 -1
- package/dist/types/company/index.d.ts +0 -22
- package/dist/types/company/index.js +0 -7
- package/dist/types/company/routes.d.ts +0 -100
- package/dist/types/company/routes.js +0 -1
- package/dist/types/damage-report/index.d.ts +0 -57
- package/dist/types/damage-report/index.js +0 -16
- package/dist/types/damage-report/routes.d.ts +0 -153
- package/dist/types/damage-report/routes.js +0 -1
- package/dist/types/errors/index.d.ts +0 -66
- package/dist/types/errors/index.js +0 -41
- package/dist/types/health/index.d.ts +0 -20
- package/dist/types/health/index.js +0 -1
- package/dist/types/health/routes.d.ts +0 -10
- package/dist/types/health/routes.js +0 -1
- package/dist/types/image/index.d.ts +0 -34
- package/dist/types/image/index.js +0 -11
- package/dist/types/image/routes.d.ts +0 -32
- package/dist/types/image/routes.js +0 -1
- package/dist/types/index.d.ts +0 -21
- package/dist/types/index.js +0 -21
- package/dist/types/inventory/index.d.ts +0 -124
- package/dist/types/inventory/index.js +0 -30
- package/dist/types/inventory/routes.d.ts +0 -109
- package/dist/types/inventory/routes.js +0 -1
- package/dist/types/job/index.d.ts +0 -7
- package/dist/types/job/index.js +0 -1
- package/dist/types/property/index.d.ts +0 -113
- package/dist/types/property/index.js +0 -25
- package/dist/types/property/routes.d.ts +0 -54
- package/dist/types/property/routes.js +0 -1
- package/dist/types/room/index.d.ts +0 -28
- package/dist/types/room/index.js +0 -17
- package/dist/types/room/routes.d.ts +0 -35
- package/dist/types/room/routes.js +0 -1
- package/dist/types/room-checklist/index.d.ts +0 -43
- package/dist/types/room-checklist/index.js +0 -1
- package/dist/types/room-checklist/routes.d.ts +0 -78
- package/dist/types/room-checklist/routes.js +0 -1
- package/dist/types/user/index.d.ts +0 -59
- package/dist/types/user/index.js +0 -20
- package/dist/types/user/routes.d.ts +0 -46
- package/dist/types/user/routes.js +0 -1
- package/dist/types/work-session/index.d.ts +0 -97
- package/dist/types/work-session/index.js +0 -18
- package/dist/types/work-session/routes.d.ts +0 -89
- package/dist/types/work-session/routes.js +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IMetaData } from "../index";
|
|
2
|
-
import { IChecklistTemplateItem } from "../checklist-template";
|
|
3
|
-
export * from "./routes";
|
|
4
|
-
export interface IRoomChecklist extends IMetaData {
|
|
5
|
-
id: string;
|
|
6
|
-
roomId: string;
|
|
7
|
-
templateId?: string;
|
|
8
|
-
name: string;
|
|
9
|
-
isActive: boolean;
|
|
10
|
-
items: IRoomChecklistItem[];
|
|
11
|
-
}
|
|
12
|
-
export interface IRoomChecklistItem extends IChecklistTemplateItem {
|
|
13
|
-
roomChecklistId: string;
|
|
14
|
-
templateItemId?: string;
|
|
15
|
-
isCustom: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Room checklist with items
|
|
19
|
-
*/
|
|
20
|
-
export interface IRoomChecklistWithItems extends IRoomChecklist {
|
|
21
|
-
items: IRoomChecklistItem[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Input for creating a room checklist
|
|
25
|
-
*/
|
|
26
|
-
export interface ICreateRoomChecklistInput {
|
|
27
|
-
roomId: string;
|
|
28
|
-
templateId?: string;
|
|
29
|
-
name: string;
|
|
30
|
-
isActive?: boolean;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Input for creating room checklist items
|
|
34
|
-
*/
|
|
35
|
-
export interface ICreateRoomChecklistItemInput {
|
|
36
|
-
title: string;
|
|
37
|
-
description?: string;
|
|
38
|
-
displayOrder: number;
|
|
39
|
-
requiresPhoto?: boolean;
|
|
40
|
-
isRequired?: boolean;
|
|
41
|
-
estimatedTimeMinutes?: number;
|
|
42
|
-
isCustom?: boolean;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import type { ICreateRoomChecklistInput, ICreateRoomChecklistItemInput, IRoomChecklist, IRoomChecklistItem, IRoomChecklistWithItems } from ".";
|
|
2
|
-
import type { IMessageResponse } from "../base";
|
|
3
|
-
export interface IRoomChecklistRoomRouteParams {
|
|
4
|
-
roomId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IChecklistIdParams {
|
|
7
|
-
checklistId: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IChecklistAndItemIdParams {
|
|
10
|
-
checklistId: string;
|
|
11
|
-
itemId: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ICreateChecklistRequest extends Omit<ICreateRoomChecklistInput, "roomId"> {
|
|
14
|
-
name: string;
|
|
15
|
-
}
|
|
16
|
-
export interface ICreateChecklistResponse extends IRoomChecklist {
|
|
17
|
-
}
|
|
18
|
-
export interface ICreateCustomChecklistRequest {
|
|
19
|
-
roomId: string;
|
|
20
|
-
name: string;
|
|
21
|
-
items: ICreateRoomChecklistItemInput[];
|
|
22
|
-
}
|
|
23
|
-
export interface ICreateCustomChecklistResponse extends IRoomChecklistWithItems {
|
|
24
|
-
}
|
|
25
|
-
export interface IGetChecklistByRoomIdRequest extends IRoomChecklistRoomRouteParams {
|
|
26
|
-
}
|
|
27
|
-
export interface IGetChecklistByRoomIdResponse extends IRoomChecklist {
|
|
28
|
-
}
|
|
29
|
-
export interface IGetChecklistByIdRequest extends IChecklistIdParams {
|
|
30
|
-
}
|
|
31
|
-
export interface IGetChecklistByIdResponse extends IRoomChecklist {
|
|
32
|
-
}
|
|
33
|
-
export interface IGetChecklistWithItemsRequest extends IChecklistIdParams {
|
|
34
|
-
}
|
|
35
|
-
export interface IGetChecklistWithItemsResponse extends IRoomChecklistWithItems {
|
|
36
|
-
}
|
|
37
|
-
export interface IUpdateChecklistRequest extends Partial<ICreateRoomChecklistInput> {
|
|
38
|
-
}
|
|
39
|
-
export interface IUpdateChecklistResponse extends IRoomChecklist {
|
|
40
|
-
}
|
|
41
|
-
export interface IDeleteChecklistRequest extends IChecklistIdParams {
|
|
42
|
-
}
|
|
43
|
-
export interface IDeleteChecklistResponse extends IMessageResponse {
|
|
44
|
-
}
|
|
45
|
-
export interface ICloneChecklistRequest {
|
|
46
|
-
targetRoomId: string;
|
|
47
|
-
}
|
|
48
|
-
export interface ICloneChecklistResponse extends IRoomChecklistWithItems {
|
|
49
|
-
}
|
|
50
|
-
export interface IGetChecklistItemsRequest extends IChecklistIdParams {
|
|
51
|
-
}
|
|
52
|
-
export type IGetChecklistItemsResponse = IRoomChecklistItem[];
|
|
53
|
-
export interface IGetCustomChecklistItemsRequest extends IChecklistIdParams {
|
|
54
|
-
}
|
|
55
|
-
export type IGetCustomChecklistItemsResponse = IRoomChecklistItem[];
|
|
56
|
-
export interface IAddChecklistItemRequest extends ICreateRoomChecklistItemInput {
|
|
57
|
-
title: string;
|
|
58
|
-
displayOrder: number;
|
|
59
|
-
}
|
|
60
|
-
export interface IAddChecklistItemResponse extends IRoomChecklistItem {
|
|
61
|
-
}
|
|
62
|
-
export interface IUpdateChecklistItemRequest extends Partial<ICreateRoomChecklistItemInput> {
|
|
63
|
-
}
|
|
64
|
-
export interface IUpdateChecklistItemResponse extends IRoomChecklistItem {
|
|
65
|
-
}
|
|
66
|
-
export interface IDeleteChecklistItemRequest extends IChecklistAndItemIdParams {
|
|
67
|
-
}
|
|
68
|
-
export interface IDeleteChecklistItemResponse extends IMessageResponse {
|
|
69
|
-
}
|
|
70
|
-
export interface IChecklistItemOrder {
|
|
71
|
-
itemId: string;
|
|
72
|
-
displayOrder: number;
|
|
73
|
-
}
|
|
74
|
-
export interface IReorderChecklistItemsRequest {
|
|
75
|
-
itemOrders: IChecklistItemOrder[];
|
|
76
|
-
}
|
|
77
|
-
export interface IReorderChecklistItemsResponse extends IMessageResponse {
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { IMetaData, TRecordValue } from "../index";
|
|
2
|
-
export * from "./routes";
|
|
3
|
-
export interface IUser extends IMetaData {
|
|
4
|
-
id: string;
|
|
5
|
-
firstName: string;
|
|
6
|
-
lastName?: string;
|
|
7
|
-
mi?: string;
|
|
8
|
-
username?: string;
|
|
9
|
-
email: string;
|
|
10
|
-
profilePhoto?: string;
|
|
11
|
-
passwordHash?: string;
|
|
12
|
-
loginAttempts?: number;
|
|
13
|
-
locked?: boolean;
|
|
14
|
-
passwordLastReset?: string;
|
|
15
|
-
passwordResetRequired?: boolean;
|
|
16
|
-
lastLogin?: string;
|
|
17
|
-
accountType: TAccountType;
|
|
18
|
-
status: TAccountStatus;
|
|
19
|
-
phoneNumber?: string;
|
|
20
|
-
phoneFormat?: string;
|
|
21
|
-
preferredLanguage?: TLanguage;
|
|
22
|
-
companyId?: string;
|
|
23
|
-
biometrics?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IUserSafe extends Omit<IUser, "passwordHash" | "loginAttempts" | "biometrics"> {
|
|
26
|
-
}
|
|
27
|
-
export declare const ACCOUNT_TYPE: {
|
|
28
|
-
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
29
|
-
readonly ACCOUNT_ADMIN: "ACCOUNT_ADMIN";
|
|
30
|
-
readonly MANAGER: "MANAGER";
|
|
31
|
-
readonly STAFF: "STAFF";
|
|
32
|
-
readonly GUEST: "GUEST";
|
|
33
|
-
};
|
|
34
|
-
export type TAccountType = TRecordValue<typeof ACCOUNT_TYPE>;
|
|
35
|
-
export declare const ACCOUNT_STATUS: {
|
|
36
|
-
readonly ACTIVE: "ACTIVE";
|
|
37
|
-
readonly INACTIVE: "INACTIVE";
|
|
38
|
-
readonly SUSPENDED: "SUSPENDED";
|
|
39
|
-
readonly PENDING: "PENDING";
|
|
40
|
-
};
|
|
41
|
-
export type TAccountStatus = TRecordValue<typeof ACCOUNT_STATUS>;
|
|
42
|
-
export declare const LANGUAGE: {
|
|
43
|
-
readonly ENGLISH: "ENGLISH";
|
|
44
|
-
readonly FRENCH: "FRENCH";
|
|
45
|
-
readonly SPANISH: "SPANISH";
|
|
46
|
-
readonly GERMAN: "GERMAN";
|
|
47
|
-
};
|
|
48
|
-
export type TLanguage = TRecordValue<typeof LANGUAGE>;
|
|
49
|
-
export interface IDeviceInfo {
|
|
50
|
-
userAgent?: string;
|
|
51
|
-
ip?: string;
|
|
52
|
-
deviceName?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface IUserSession {
|
|
55
|
-
id: number;
|
|
56
|
-
deviceInfo?: IDeviceInfo | null;
|
|
57
|
-
createdAt: string;
|
|
58
|
-
lastUsedAt: string;
|
|
59
|
-
}
|
package/dist/types/user/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
export const ACCOUNT_TYPE = {
|
|
3
|
-
TURNDOWN_ADMIN: "TURNDOWN_ADMIN",
|
|
4
|
-
ACCOUNT_ADMIN: "ACCOUNT_ADMIN",
|
|
5
|
-
MANAGER: "MANAGER",
|
|
6
|
-
STAFF: "STAFF",
|
|
7
|
-
GUEST: "GUEST",
|
|
8
|
-
};
|
|
9
|
-
export const ACCOUNT_STATUS = {
|
|
10
|
-
ACTIVE: "ACTIVE",
|
|
11
|
-
INACTIVE: "INACTIVE",
|
|
12
|
-
SUSPENDED: "SUSPENDED",
|
|
13
|
-
PENDING: "PENDING",
|
|
14
|
-
};
|
|
15
|
-
export const LANGUAGE = {
|
|
16
|
-
ENGLISH: "ENGLISH",
|
|
17
|
-
FRENCH: "FRENCH",
|
|
18
|
-
SPANISH: "SPANISH",
|
|
19
|
-
GERMAN: "GERMAN",
|
|
20
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { TAccountType, TLanguage, IUserSafe } from ".";
|
|
2
|
-
export interface IUserIdParams {
|
|
3
|
-
id: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IGetUserResponse {
|
|
6
|
-
user: IUserSafe | null;
|
|
7
|
-
}
|
|
8
|
-
export interface IGetCurrentUserRequest {
|
|
9
|
-
}
|
|
10
|
-
export interface IGetCurrentUserResponse extends IGetUserResponse {
|
|
11
|
-
}
|
|
12
|
-
export interface IGetUserByIdRequest extends IUserIdParams {
|
|
13
|
-
}
|
|
14
|
-
export interface IGetUserByIdResponse extends IGetUserResponse {
|
|
15
|
-
}
|
|
16
|
-
export interface IGetUserByEmailRequest {
|
|
17
|
-
email: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IGetUserByEmailResponse extends IGetUserResponse {
|
|
20
|
-
}
|
|
21
|
-
export interface IGetCleanersRequest {
|
|
22
|
-
}
|
|
23
|
-
export interface IGetCleanersResponse {
|
|
24
|
-
cleaners: IUserSafe[];
|
|
25
|
-
}
|
|
26
|
-
export interface IUpdateUserRequest {
|
|
27
|
-
firstName?: string;
|
|
28
|
-
lastName?: string;
|
|
29
|
-
mi?: string;
|
|
30
|
-
username?: string;
|
|
31
|
-
email?: string;
|
|
32
|
-
phoneNumber?: string;
|
|
33
|
-
phoneFormat?: string;
|
|
34
|
-
preferredLanguage?: TLanguage;
|
|
35
|
-
}
|
|
36
|
-
export interface IUpdateUserResponse {
|
|
37
|
-
user: IUserSafe;
|
|
38
|
-
}
|
|
39
|
-
export interface IDeleteUserRequest {
|
|
40
|
-
}
|
|
41
|
-
export interface IDeleteUserResponse {
|
|
42
|
-
message: string;
|
|
43
|
-
}
|
|
44
|
-
export interface IGetUsersByAccountTypeRequest {
|
|
45
|
-
accountType: TAccountType;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { TRecordValue } from "../base";
|
|
2
|
-
export * from "./routes";
|
|
3
|
-
/**
|
|
4
|
-
* Work session status enum
|
|
5
|
-
*/
|
|
6
|
-
export declare const WORK_SESSION_STATUS: {
|
|
7
|
-
IN_PROGRESS: string;
|
|
8
|
-
COMPLETED: string;
|
|
9
|
-
CANCELLED: string;
|
|
10
|
-
};
|
|
11
|
-
export type TWorkSessionStatus = TRecordValue<typeof WORK_SESSION_STATUS>;
|
|
12
|
-
/**
|
|
13
|
-
* Checklist execution status enum
|
|
14
|
-
*/
|
|
15
|
-
export declare const CHECKLIST_EXECUTION_STATUS: {
|
|
16
|
-
PENDING: string;
|
|
17
|
-
IN_PROGRESS: string;
|
|
18
|
-
COMPLETED: string;
|
|
19
|
-
SKIPPED: string;
|
|
20
|
-
};
|
|
21
|
-
export type TChecklistExecutionStatus = TRecordValue<typeof CHECKLIST_EXECUTION_STATUS>;
|
|
22
|
-
/**
|
|
23
|
-
* Work session
|
|
24
|
-
*/
|
|
25
|
-
export interface IWorkSession {
|
|
26
|
-
id: string;
|
|
27
|
-
propertyId: string;
|
|
28
|
-
serviceProviderCompanyId: string;
|
|
29
|
-
performedBy: string;
|
|
30
|
-
status: TWorkSessionStatus;
|
|
31
|
-
scheduledDate: Date | null;
|
|
32
|
-
startedAt: Date;
|
|
33
|
-
completedAt: Date | null;
|
|
34
|
-
totalTimeMinutes: number | null;
|
|
35
|
-
notes: string | null;
|
|
36
|
-
createdAt: Date;
|
|
37
|
-
updatedAt: Date;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Checklist execution
|
|
41
|
-
*/
|
|
42
|
-
export interface IChecklistExecution {
|
|
43
|
-
id: string;
|
|
44
|
-
workSessionId: string;
|
|
45
|
-
roomChecklistId: string;
|
|
46
|
-
roomId: string;
|
|
47
|
-
workerId: string;
|
|
48
|
-
status: TChecklistExecutionStatus;
|
|
49
|
-
startedAt: Date | null;
|
|
50
|
-
completedAt: Date | null;
|
|
51
|
-
timeSpentMinutes: number | null;
|
|
52
|
-
notes: string | null;
|
|
53
|
-
createdAt: Date;
|
|
54
|
-
updatedAt: Date;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Checklist item completion
|
|
58
|
-
*/
|
|
59
|
-
export interface IChecklistItemCompletion {
|
|
60
|
-
id: string;
|
|
61
|
-
checklistExecutionId: string;
|
|
62
|
-
roomChecklistItemId: string;
|
|
63
|
-
completedBy: string;
|
|
64
|
-
completedAt: Date;
|
|
65
|
-
photoId: string | null;
|
|
66
|
-
notes: string | null;
|
|
67
|
-
skipped: boolean;
|
|
68
|
-
skipReason: string | null;
|
|
69
|
-
createdAt: Date;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Work session with executions
|
|
73
|
-
*/
|
|
74
|
-
export interface IWorkSessionWithExecutions extends IWorkSession {
|
|
75
|
-
executions: IChecklistExecution[];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Input for creating a work session
|
|
79
|
-
*/
|
|
80
|
-
export interface ICreateWorkSessionInput {
|
|
81
|
-
propertyId: string;
|
|
82
|
-
serviceProviderCompanyId: string;
|
|
83
|
-
performedBy: string;
|
|
84
|
-
scheduledDate?: Date;
|
|
85
|
-
notes?: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Input for completing a checklist item
|
|
89
|
-
*/
|
|
90
|
-
export interface ICompleteChecklistItemInput {
|
|
91
|
-
roomChecklistItemId: string;
|
|
92
|
-
completedBy: string;
|
|
93
|
-
photoId?: string;
|
|
94
|
-
notes?: string;
|
|
95
|
-
skipped?: boolean;
|
|
96
|
-
skipReason?: string;
|
|
97
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from "./routes";
|
|
2
|
-
/**
|
|
3
|
-
* Work session status enum
|
|
4
|
-
*/
|
|
5
|
-
export const WORK_SESSION_STATUS = {
|
|
6
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
7
|
-
COMPLETED: "COMPLETED",
|
|
8
|
-
CANCELLED: "CANCELLED",
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Checklist execution status enum
|
|
12
|
-
*/
|
|
13
|
-
export const CHECKLIST_EXECUTION_STATUS = {
|
|
14
|
-
PENDING: "PENDING",
|
|
15
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
16
|
-
COMPLETED: "COMPLETED",
|
|
17
|
-
SKIPPED: "SKIPPED",
|
|
18
|
-
};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { IChecklistExecution, IChecklistItemCompletion, ICompleteChecklistItemInput, ICreateWorkSessionInput, IWorkSession, IWorkSessionWithExecutions } from ".";
|
|
2
|
-
export interface IWorkSessionRouteParams {
|
|
3
|
-
sessionId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IWorkSessionPropertyRouteParams {
|
|
6
|
-
propertyId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IWorkSessionUserRouteParams {
|
|
9
|
-
userId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IWorkSessionExecutionRouteParams {
|
|
12
|
-
executionId: string;
|
|
13
|
-
}
|
|
14
|
-
export interface ILimitQuery {
|
|
15
|
-
limit?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ICreateWorkSessionRequest extends Omit<ICreateWorkSessionInput, "propertyId"> {
|
|
18
|
-
serviceProviderCompanyId: string;
|
|
19
|
-
performedBy: string;
|
|
20
|
-
}
|
|
21
|
-
export interface ICreateWorkSessionResponse extends IWorkSession {
|
|
22
|
-
}
|
|
23
|
-
export interface IGetWorkSessionByIdRequest extends IWorkSessionRouteParams {
|
|
24
|
-
}
|
|
25
|
-
export interface IGetWorkSessionByIdResponse extends IWorkSession {
|
|
26
|
-
}
|
|
27
|
-
export interface IGetWorkSessionWithExecutionsRequest extends IWorkSessionRouteParams {
|
|
28
|
-
}
|
|
29
|
-
export interface IGetWorkSessionWithExecutionsResponse extends IWorkSessionWithExecutions {
|
|
30
|
-
}
|
|
31
|
-
export interface IUpdateWorkSessionRequest extends Partial<IWorkSession> {
|
|
32
|
-
}
|
|
33
|
-
export interface IUpdateWorkSessionResponse extends IWorkSession {
|
|
34
|
-
}
|
|
35
|
-
export interface ICompleteWorkSessionRequest extends IWorkSessionRouteParams {
|
|
36
|
-
}
|
|
37
|
-
export interface ICompleteWorkSessionResponse extends IWorkSession {
|
|
38
|
-
}
|
|
39
|
-
export interface ICancelWorkSessionRequest extends IWorkSessionRouteParams {
|
|
40
|
-
}
|
|
41
|
-
export interface ICancelWorkSessionResponse extends IWorkSession {
|
|
42
|
-
}
|
|
43
|
-
export interface IGetWorkSessionsByPropertyIdRequest extends IWorkSessionPropertyRouteParams {
|
|
44
|
-
}
|
|
45
|
-
export type IGetWorkSessionsByPropertyIdResponse = IWorkSession[];
|
|
46
|
-
export interface IGetActiveWorkSessionRequest extends IWorkSessionPropertyRouteParams {
|
|
47
|
-
}
|
|
48
|
-
export interface IGetActiveWorkSessionResponse extends IWorkSession {
|
|
49
|
-
}
|
|
50
|
-
export interface IGetWorkSessionsByUserIdRequest extends IWorkSessionUserRouteParams {
|
|
51
|
-
}
|
|
52
|
-
export type IGetWorkSessionsByUserIdResponse = IWorkSession[];
|
|
53
|
-
export interface IGetChecklistExecutionsRequest extends IWorkSessionRouteParams {
|
|
54
|
-
}
|
|
55
|
-
export type IGetChecklistExecutionsResponse = IChecklistExecution[];
|
|
56
|
-
export interface IGetChecklistExecutionByIdRequest extends IWorkSessionExecutionRouteParams {
|
|
57
|
-
}
|
|
58
|
-
export interface IGetChecklistExecutionByIdResponse extends IChecklistExecution {
|
|
59
|
-
}
|
|
60
|
-
export interface IStartChecklistExecutionRequest extends IWorkSessionExecutionRouteParams {
|
|
61
|
-
}
|
|
62
|
-
export interface IStartChecklistExecutionResponse extends IChecklistExecution {
|
|
63
|
-
}
|
|
64
|
-
export interface ICompleteChecklistExecutionRequest {
|
|
65
|
-
notes?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface ICompleteChecklistExecutionResponse extends IChecklistExecution {
|
|
68
|
-
}
|
|
69
|
-
export interface ISkipChecklistExecutionRequest {
|
|
70
|
-
notes?: string;
|
|
71
|
-
}
|
|
72
|
-
export interface ISkipChecklistExecutionResponse extends IChecklistExecution {
|
|
73
|
-
}
|
|
74
|
-
export interface IGetExecutionProgressRequest extends IWorkSessionExecutionRouteParams {
|
|
75
|
-
}
|
|
76
|
-
export interface IGetExecutionProgressResponse {
|
|
77
|
-
totalItems: number;
|
|
78
|
-
completedItems: number;
|
|
79
|
-
skippedItems: number;
|
|
80
|
-
progressPercentage: number;
|
|
81
|
-
}
|
|
82
|
-
export interface IGetExecutionItemsRequest extends IWorkSessionExecutionRouteParams {
|
|
83
|
-
}
|
|
84
|
-
export type IGetExecutionItemsResponse = IChecklistItemCompletion[];
|
|
85
|
-
export interface ICompleteExecutionItemRequest extends ICompleteChecklistItemInput {
|
|
86
|
-
roomChecklistItemId: string;
|
|
87
|
-
}
|
|
88
|
-
export interface ICompleteExecutionItemResponse extends IChecklistItemCompletion {
|
|
89
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|