@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.
@@ -1,68 +1,89 @@
1
- export interface ICreateWorkSessionRequest {
1
+ import type { IChecklistExecution, IChecklistItemCompletion, ICompleteChecklistItemInput, ICreateWorkSessionInput, IWorkSession, IWorkSessionWithExecutions } from ".";
2
+ export interface IWorkSessionRouteParams {
3
+ sessionId: string;
2
4
  }
3
- export interface ICreateWorkSessionResponse {
5
+ export interface IWorkSessionPropertyRouteParams {
6
+ propertyId: string;
4
7
  }
5
- export interface IGetWorkSessionByIdRequest {
8
+ export interface IWorkSessionUserRouteParams {
9
+ userId: string;
6
10
  }
7
- export interface IGetWorkSessionByIdResponse {
11
+ export interface IWorkSessionExecutionRouteParams {
12
+ executionId: string;
8
13
  }
9
- export interface IGetWorkSessionWithExecutionsRequest {
14
+ export interface ILimitQuery {
15
+ limit?: string;
10
16
  }
11
- export interface IGetWorkSessionWithExecutionsResponse {
17
+ export interface ICreateWorkSessionRequest extends Omit<ICreateWorkSessionInput, "propertyId"> {
18
+ serviceProviderCompanyId: string;
19
+ performedBy: string;
12
20
  }
13
- export interface IUpdateWorkSessionRequest {
21
+ export interface ICreateWorkSessionResponse extends IWorkSession {
14
22
  }
15
- export interface IUpdateWorkSessionResponse {
23
+ export interface IGetWorkSessionByIdRequest extends IWorkSessionRouteParams {
16
24
  }
17
- export interface ICompleteWorkSessionRequest {
25
+ export interface IGetWorkSessionByIdResponse extends IWorkSession {
18
26
  }
19
- export interface ICompleteWorkSessionResponse {
27
+ export interface IGetWorkSessionWithExecutionsRequest extends IWorkSessionRouteParams {
20
28
  }
21
- export interface ICancelWorkSessionRequest {
29
+ export interface IGetWorkSessionWithExecutionsResponse extends IWorkSessionWithExecutions {
22
30
  }
23
- export interface ICancelWorkSessionResponse {
31
+ export interface IUpdateWorkSessionRequest extends Partial<IWorkSession> {
24
32
  }
25
- export interface IGetWorkSessionsByPropertyIdRequest {
33
+ export interface IUpdateWorkSessionResponse extends IWorkSession {
26
34
  }
27
- export interface IGetWorkSessionsByPropertyIdResponse {
35
+ export interface ICompleteWorkSessionRequest extends IWorkSessionRouteParams {
28
36
  }
29
- export interface IGetActiveWorkSessionRequest {
37
+ export interface ICompleteWorkSessionResponse extends IWorkSession {
30
38
  }
31
- export interface IGetActiveWorkSessionResponse {
39
+ export interface ICancelWorkSessionRequest extends IWorkSessionRouteParams {
32
40
  }
33
- export interface IGetWorkSessionsByUserIdRequest {
41
+ export interface ICancelWorkSessionResponse extends IWorkSession {
34
42
  }
35
- export interface IGetWorkSessionsByUserIdResponse {
43
+ export interface IGetWorkSessionsByPropertyIdRequest extends IWorkSessionPropertyRouteParams {
36
44
  }
37
- export interface IGetChecklistExecutionsRequest {
45
+ export type IGetWorkSessionsByPropertyIdResponse = IWorkSession[];
46
+ export interface IGetActiveWorkSessionRequest extends IWorkSessionPropertyRouteParams {
38
47
  }
39
- export interface IGetChecklistExecutionsResponse {
48
+ export interface IGetActiveWorkSessionResponse extends IWorkSession {
40
49
  }
41
- export interface IGetChecklistExecutionByIdRequest {
50
+ export interface IGetWorkSessionsByUserIdRequest extends IWorkSessionUserRouteParams {
42
51
  }
43
- export interface IGetChecklistExecutionByIdResponse {
52
+ export type IGetWorkSessionsByUserIdResponse = IWorkSession[];
53
+ export interface IGetChecklistExecutionsRequest extends IWorkSessionRouteParams {
44
54
  }
45
- export interface IStartChecklistExecutionRequest {
55
+ export type IGetChecklistExecutionsResponse = IChecklistExecution[];
56
+ export interface IGetChecklistExecutionByIdRequest extends IWorkSessionExecutionRouteParams {
46
57
  }
47
- export interface IStartChecklistExecutionResponse {
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 interface ICompleteExecutionItemRequest {
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
  }
@@ -1,2 +1 @@
1
- // work-session.interfaces.ts
2
1
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.1.20",
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.6.1",
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",