@turndown/library 0.1.20 → 0.1.22
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/types/auth/routes.d.ts +27 -7
- package/dist/types/base/index.d.ts +12 -0
- package/dist/types/checklist-template/routes.d.ts +55 -26
- package/dist/types/checklist-template/routes.js +0 -1
- package/dist/types/company/routes.d.ts +77 -29
- package/dist/types/company/routes.js +0 -1
- package/dist/types/damage-report/index.d.ts +2 -2
- package/dist/types/damage-report/routes.d.ts +122 -45
- package/dist/types/damage-report/routes.js +0 -1
- package/dist/types/health/index.d.ts +20 -0
- package/dist/types/health/index.js +1 -0
- package/dist/types/health/routes.d.ts +10 -0
- package/dist/types/health/routes.js +1 -0
- package/dist/types/image/index.d.ts +34 -0
- package/dist/types/image/index.js +11 -0
- package/dist/types/image/routes.d.ts +32 -0
- package/dist/types/image/routes.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/inventory/index.d.ts +0 -74
- package/dist/types/inventory/routes.d.ts +72 -35
- package/dist/types/inventory/routes.js +0 -1
- package/dist/types/property/routes.d.ts +27 -28
- package/dist/types/room/routes.d.ts +26 -7
- package/dist/types/room/routes.js +0 -1
- package/dist/types/room-checklist/routes.d.ts +48 -26
- package/dist/types/room-checklist/routes.js +0 -1
- package/dist/types/user/routes.d.ts +13 -3
- package/dist/types/user/routes.js +0 -1
- package/dist/types/work-session/routes.d.ts +53 -32
- package/dist/types/work-session/routes.js +0 -1
- package/package.json +2 -2
|
@@ -1,68 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
import type { IChecklistExecution, IChecklistItemCompletion, ICompleteChecklistItemInput, ICreateWorkSessionInput, IWorkSession, IWorkSessionWithExecutions } from ".";
|
|
2
|
+
export interface IWorkSessionRouteParams {
|
|
3
|
+
sessionId: string;
|
|
2
4
|
}
|
|
3
|
-
export interface
|
|
5
|
+
export interface IWorkSessionPropertyRouteParams {
|
|
6
|
+
propertyId: string;
|
|
4
7
|
}
|
|
5
|
-
export interface
|
|
8
|
+
export interface IWorkSessionUserRouteParams {
|
|
9
|
+
userId: string;
|
|
6
10
|
}
|
|
7
|
-
export interface
|
|
11
|
+
export interface IWorkSessionExecutionRouteParams {
|
|
12
|
+
executionId: string;
|
|
8
13
|
}
|
|
9
|
-
export interface
|
|
14
|
+
export interface ILimitQuery {
|
|
15
|
+
limit?: string;
|
|
10
16
|
}
|
|
11
|
-
export interface
|
|
17
|
+
export interface ICreateWorkSessionRequest extends Omit<ICreateWorkSessionInput, "propertyId"> {
|
|
18
|
+
serviceProviderCompanyId: string;
|
|
19
|
+
performedBy: string;
|
|
12
20
|
}
|
|
13
|
-
export interface
|
|
21
|
+
export interface ICreateWorkSessionResponse extends IWorkSession {
|
|
14
22
|
}
|
|
15
|
-
export interface
|
|
23
|
+
export interface IGetWorkSessionByIdRequest extends IWorkSessionRouteParams {
|
|
16
24
|
}
|
|
17
|
-
export interface
|
|
25
|
+
export interface IGetWorkSessionByIdResponse extends IWorkSession {
|
|
18
26
|
}
|
|
19
|
-
export interface
|
|
27
|
+
export interface IGetWorkSessionWithExecutionsRequest extends IWorkSessionRouteParams {
|
|
20
28
|
}
|
|
21
|
-
export interface
|
|
29
|
+
export interface IGetWorkSessionWithExecutionsResponse extends IWorkSessionWithExecutions {
|
|
22
30
|
}
|
|
23
|
-
export interface
|
|
31
|
+
export interface IUpdateWorkSessionRequest extends Partial<IWorkSession> {
|
|
24
32
|
}
|
|
25
|
-
export interface
|
|
33
|
+
export interface IUpdateWorkSessionResponse extends IWorkSession {
|
|
26
34
|
}
|
|
27
|
-
export interface
|
|
35
|
+
export interface ICompleteWorkSessionRequest extends IWorkSessionRouteParams {
|
|
28
36
|
}
|
|
29
|
-
export interface
|
|
37
|
+
export interface ICompleteWorkSessionResponse extends IWorkSession {
|
|
30
38
|
}
|
|
31
|
-
export interface
|
|
39
|
+
export interface ICancelWorkSessionRequest extends IWorkSessionRouteParams {
|
|
32
40
|
}
|
|
33
|
-
export interface
|
|
41
|
+
export interface ICancelWorkSessionResponse extends IWorkSession {
|
|
34
42
|
}
|
|
35
|
-
export interface
|
|
43
|
+
export interface IGetWorkSessionsByPropertyIdRequest extends IWorkSessionPropertyRouteParams {
|
|
36
44
|
}
|
|
37
|
-
export
|
|
45
|
+
export type IGetWorkSessionsByPropertyIdResponse = IWorkSession[];
|
|
46
|
+
export interface IGetActiveWorkSessionRequest extends IWorkSessionPropertyRouteParams {
|
|
38
47
|
}
|
|
39
|
-
export interface
|
|
48
|
+
export interface IGetActiveWorkSessionResponse extends IWorkSession {
|
|
40
49
|
}
|
|
41
|
-
export interface
|
|
50
|
+
export interface IGetWorkSessionsByUserIdRequest extends IWorkSessionUserRouteParams {
|
|
42
51
|
}
|
|
43
|
-
export
|
|
52
|
+
export type IGetWorkSessionsByUserIdResponse = IWorkSession[];
|
|
53
|
+
export interface IGetChecklistExecutionsRequest extends IWorkSessionRouteParams {
|
|
44
54
|
}
|
|
45
|
-
export
|
|
55
|
+
export type IGetChecklistExecutionsResponse = IChecklistExecution[];
|
|
56
|
+
export interface IGetChecklistExecutionByIdRequest extends IWorkSessionExecutionRouteParams {
|
|
46
57
|
}
|
|
47
|
-
export interface
|
|
58
|
+
export interface IGetChecklistExecutionByIdResponse extends IChecklistExecution {
|
|
59
|
+
}
|
|
60
|
+
export interface IStartChecklistExecutionRequest extends IWorkSessionExecutionRouteParams {
|
|
61
|
+
}
|
|
62
|
+
export interface IStartChecklistExecutionResponse extends IChecklistExecution {
|
|
48
63
|
}
|
|
49
64
|
export interface ICompleteChecklistExecutionRequest {
|
|
65
|
+
notes?: string;
|
|
50
66
|
}
|
|
51
|
-
export interface ICompleteChecklistExecutionResponse {
|
|
67
|
+
export interface ICompleteChecklistExecutionResponse extends IChecklistExecution {
|
|
52
68
|
}
|
|
53
69
|
export interface ISkipChecklistExecutionRequest {
|
|
70
|
+
notes?: string;
|
|
54
71
|
}
|
|
55
|
-
export interface ISkipChecklistExecutionResponse {
|
|
72
|
+
export interface ISkipChecklistExecutionResponse extends IChecklistExecution {
|
|
56
73
|
}
|
|
57
|
-
export interface IGetExecutionProgressRequest {
|
|
74
|
+
export interface IGetExecutionProgressRequest extends IWorkSessionExecutionRouteParams {
|
|
58
75
|
}
|
|
59
76
|
export interface IGetExecutionProgressResponse {
|
|
77
|
+
totalItems: number;
|
|
78
|
+
completedItems: number;
|
|
79
|
+
skippedItems: number;
|
|
80
|
+
progressPercentage: number;
|
|
60
81
|
}
|
|
61
|
-
export interface IGetExecutionItemsRequest {
|
|
62
|
-
}
|
|
63
|
-
export interface IGetExecutionItemsResponse {
|
|
82
|
+
export interface IGetExecutionItemsRequest extends IWorkSessionExecutionRouteParams {
|
|
64
83
|
}
|
|
65
|
-
export
|
|
84
|
+
export type IGetExecutionItemsResponse = IChecklistItemCompletion[];
|
|
85
|
+
export interface ICompleteExecutionItemRequest extends ICompleteChecklistItemInput {
|
|
86
|
+
roomChecklistItemId: string;
|
|
66
87
|
}
|
|
67
|
-
export interface ICompleteExecutionItemResponse {
|
|
88
|
+
export interface ICompleteExecutionItemResponse extends IChecklistItemCompletion {
|
|
68
89
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turndown/library",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Shared TypeScript library for the Turndown suite.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/jest": "^30.0.0",
|
|
43
|
-
"@types/node": "^24.
|
|
43
|
+
"@types/node": "^24.12.4",
|
|
44
44
|
"jest": "^30.4.2",
|
|
45
45
|
"rimraf": "^6.0.1",
|
|
46
46
|
"ts-jest": "^29.4.9",
|