@contractspec/example.service-business-os 1.56.1 → 1.58.0

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.
Files changed (155) hide show
  1. package/dist/browser/client/client.operations.js +72 -0
  2. package/dist/browser/client/client.schema.js +31 -0
  3. package/dist/browser/client/index.js +74 -0
  4. package/dist/browser/docs/index.js +96 -0
  5. package/dist/browser/docs/service-business-os.docblock.js +96 -0
  6. package/dist/browser/entities/index.js +246 -0
  7. package/dist/browser/events.js +135 -0
  8. package/dist/browser/example.js +39 -0
  9. package/dist/browser/handlers/index.js +5 -0
  10. package/dist/browser/index.js +752 -0
  11. package/dist/browser/invoice/index.js +77 -0
  12. package/dist/browser/invoice/invoice.operations.js +75 -0
  13. package/dist/browser/invoice/invoice.schema.js +34 -0
  14. package/dist/browser/job/index.js +175 -0
  15. package/dist/browser/job/job.operations.js +172 -0
  16. package/dist/browser/job/job.schema.js +41 -0
  17. package/dist/browser/operations/index.js +506 -0
  18. package/dist/browser/payment/index.js +69 -0
  19. package/dist/browser/payment/payment.operations.js +67 -0
  20. package/dist/browser/payment/payment.schema.js +30 -0
  21. package/dist/browser/presentations/index.js +13 -0
  22. package/dist/browser/presentations.js +172 -0
  23. package/dist/browser/quote/index.js +122 -0
  24. package/dist/browser/quote/quote.operations.js +119 -0
  25. package/dist/browser/quote/quote.schema.js +45 -0
  26. package/dist/browser/service-business-os.capability.js +28 -0
  27. package/dist/browser/service.feature.js +74 -0
  28. package/dist/client/client.operations.d.ts +54 -60
  29. package/dist/client/client.operations.d.ts.map +1 -1
  30. package/dist/client/client.operations.js +71 -51
  31. package/dist/client/client.schema.d.ts +54 -59
  32. package/dist/client/client.schema.d.ts.map +1 -1
  33. package/dist/client/client.schema.js +30 -75
  34. package/dist/client/index.d.ts +6 -3
  35. package/dist/client/index.d.ts.map +1 -0
  36. package/dist/client/index.js +74 -3
  37. package/dist/docs/index.d.ts +2 -1
  38. package/dist/docs/index.d.ts.map +1 -0
  39. package/dist/docs/index.js +97 -1
  40. package/dist/docs/service-business-os.docblock.d.ts +2 -1
  41. package/dist/docs/service-business-os.docblock.d.ts.map +1 -0
  42. package/dist/docs/service-business-os.docblock.js +52 -64
  43. package/dist/entities/index.d.ts +156 -161
  44. package/dist/entities/index.d.ts.map +1 -1
  45. package/dist/entities/index.js +236 -278
  46. package/dist/events.d.ts +253 -259
  47. package/dist/events.d.ts.map +1 -1
  48. package/dist/events.js +123 -217
  49. package/dist/example.d.ts +2 -6
  50. package/dist/example.d.ts.map +1 -1
  51. package/dist/example.js +37 -50
  52. package/dist/handlers/index.d.ts +11 -16
  53. package/dist/handlers/index.d.ts.map +1 -1
  54. package/dist/handlers/index.js +5 -5
  55. package/dist/index.d.ts +13 -18
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +752 -18
  58. package/dist/invoice/index.d.ts +6 -3
  59. package/dist/invoice/index.d.ts.map +1 -0
  60. package/dist/invoice/index.js +77 -3
  61. package/dist/invoice/invoice.operations.d.ts +54 -60
  62. package/dist/invoice/invoice.operations.d.ts.map +1 -1
  63. package/dist/invoice/invoice.operations.js +74 -55
  64. package/dist/invoice/invoice.schema.d.ts +54 -59
  65. package/dist/invoice/invoice.schema.d.ts.map +1 -1
  66. package/dist/invoice/invoice.schema.js +33 -75
  67. package/dist/job/index.d.ts +6 -3
  68. package/dist/job/index.d.ts.map +1 -0
  69. package/dist/job/index.js +175 -3
  70. package/dist/job/job.operations.d.ts +220 -226
  71. package/dist/job/job.operations.d.ts.map +1 -1
  72. package/dist/job/job.operations.js +167 -169
  73. package/dist/job/job.schema.d.ts +67 -72
  74. package/dist/job/job.schema.d.ts.map +1 -1
  75. package/dist/job/job.schema.js +39 -95
  76. package/dist/node/client/client.operations.js +72 -0
  77. package/dist/node/client/client.schema.js +31 -0
  78. package/dist/node/client/index.js +74 -0
  79. package/dist/node/docs/index.js +96 -0
  80. package/dist/node/docs/service-business-os.docblock.js +96 -0
  81. package/dist/node/entities/index.js +246 -0
  82. package/dist/node/events.js +135 -0
  83. package/dist/node/example.js +39 -0
  84. package/dist/node/handlers/index.js +5 -0
  85. package/dist/node/index.js +752 -0
  86. package/dist/node/invoice/index.js +77 -0
  87. package/dist/node/invoice/invoice.operations.js +75 -0
  88. package/dist/node/invoice/invoice.schema.js +34 -0
  89. package/dist/node/job/index.js +175 -0
  90. package/dist/node/job/job.operations.js +172 -0
  91. package/dist/node/job/job.schema.js +41 -0
  92. package/dist/node/operations/index.js +506 -0
  93. package/dist/node/payment/index.js +69 -0
  94. package/dist/node/payment/payment.operations.js +67 -0
  95. package/dist/node/payment/payment.schema.js +30 -0
  96. package/dist/node/presentations/index.js +13 -0
  97. package/dist/node/presentations.js +172 -0
  98. package/dist/node/quote/index.js +122 -0
  99. package/dist/node/quote/quote.operations.js +119 -0
  100. package/dist/node/quote/quote.schema.js +45 -0
  101. package/dist/node/service-business-os.capability.js +28 -0
  102. package/dist/node/service.feature.js +74 -0
  103. package/dist/operations/index.d.ts +6 -16
  104. package/dist/operations/index.d.ts.map +1 -0
  105. package/dist/operations/index.js +506 -16
  106. package/dist/payment/index.d.ts +6 -3
  107. package/dist/payment/index.d.ts.map +1 -0
  108. package/dist/payment/index.js +69 -3
  109. package/dist/payment/payment.operations.d.ts +50 -56
  110. package/dist/payment/payment.operations.d.ts.map +1 -1
  111. package/dist/payment/payment.operations.js +66 -51
  112. package/dist/payment/payment.schema.d.ts +50 -55
  113. package/dist/payment/payment.schema.d.ts.map +1 -1
  114. package/dist/payment/payment.schema.js +29 -71
  115. package/dist/presentations/index.d.ts +1 -4
  116. package/dist/presentations/index.d.ts.map +1 -1
  117. package/dist/presentations/index.js +13 -17
  118. package/dist/presentations.d.ts +7 -12
  119. package/dist/presentations.d.ts.map +1 -1
  120. package/dist/presentations.js +166 -172
  121. package/dist/quote/index.d.ts +6 -3
  122. package/dist/quote/index.d.ts.map +1 -0
  123. package/dist/quote/index.js +122 -3
  124. package/dist/quote/quote.operations.d.ts +120 -126
  125. package/dist/quote/quote.operations.d.ts.map +1 -1
  126. package/dist/quote/quote.operations.js +117 -96
  127. package/dist/quote/quote.schema.d.ts +83 -88
  128. package/dist/quote/quote.schema.d.ts.map +1 -1
  129. package/dist/quote/quote.schema.js +43 -111
  130. package/dist/service-business-os.capability.d.ts +2 -7
  131. package/dist/service-business-os.capability.d.ts.map +1 -1
  132. package/dist/service-business-os.capability.js +29 -29
  133. package/dist/service.feature.d.ts +1 -6
  134. package/dist/service.feature.d.ts.map +1 -1
  135. package/dist/service.feature.js +73 -164
  136. package/package.json +301 -64
  137. package/dist/client/client.operations.js.map +0 -1
  138. package/dist/client/client.schema.js.map +0 -1
  139. package/dist/docs/service-business-os.docblock.js.map +0 -1
  140. package/dist/entities/index.js.map +0 -1
  141. package/dist/events.js.map +0 -1
  142. package/dist/example.js.map +0 -1
  143. package/dist/handlers/index.js.map +0 -1
  144. package/dist/invoice/invoice.operations.js.map +0 -1
  145. package/dist/invoice/invoice.schema.js.map +0 -1
  146. package/dist/job/job.operations.js.map +0 -1
  147. package/dist/job/job.schema.js.map +0 -1
  148. package/dist/payment/payment.operations.js.map +0 -1
  149. package/dist/payment/payment.schema.js.map +0 -1
  150. package/dist/presentations/index.js.map +0 -1
  151. package/dist/presentations.js.map +0 -1
  152. package/dist/quote/quote.operations.js.map +0 -1
  153. package/dist/quote/quote.schema.js.map +0 -1
  154. package/dist/service-business-os.capability.js.map +0 -1
  155. package/dist/service.feature.js.map +0 -1
package/dist/job/index.js CHANGED
@@ -1,4 +1,176 @@
1
- import { CompleteJobInputModel, JobModel, ScheduleJobInputModel } from "./job.schema.js";
2
- import { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract } from "./job.operations.js";
1
+ // @bun
2
+ // src/job/job.schema.ts
3
+ import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
4
+ var JobModel = defineSchemaModel({
5
+ name: "Job",
6
+ description: "Scheduled job",
7
+ fields: {
8
+ id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
9
+ quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
10
+ clientId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
11
+ title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
12
+ status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
13
+ scheduledAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
14
+ completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
15
+ assignedTo: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
16
+ }
17
+ });
18
+ var ScheduleJobInputModel = defineSchemaModel({
19
+ name: "ScheduleJobInput",
20
+ description: "Input for scheduling a job",
21
+ fields: {
22
+ quoteId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
23
+ scheduledAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },
24
+ assignedTo: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
25
+ location: { type: ScalarTypeEnum.JSON(), isOptional: true },
26
+ title: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
27
+ }
28
+ });
29
+ var CompleteJobInputModel = defineSchemaModel({
30
+ name: "CompleteJobInput",
31
+ description: "Input for completing a job",
32
+ fields: {
33
+ jobId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
34
+ completedAt: { type: ScalarTypeEnum.DateTime(), isOptional: true },
35
+ notes: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
36
+ }
37
+ });
3
38
 
4
- export { CompleteJobContract, CompleteJobInputModel, JobModel, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract, ScheduleJobInputModel };
39
+ // src/job/job.operations.ts
40
+ import { defineCommand, defineQuery } from "@contractspec/lib.contracts";
41
+ import { defineSchemaModel as defineSchemaModel2, ScalarTypeEnum as ScalarTypeEnum2 } from "@contractspec/lib.schema";
42
+ var OWNERS = ["@examples.service-business-os"];
43
+ var ListJobsInputModel = defineSchemaModel2({
44
+ name: "ListJobsInput",
45
+ description: "Input for listing jobs",
46
+ fields: {
47
+ status: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
48
+ clientId: { type: ScalarTypeEnum2.String_unsecure(), isOptional: true },
49
+ limit: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true },
50
+ offset: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: true }
51
+ }
52
+ });
53
+ var ListJobsOutputModel = defineSchemaModel2({
54
+ name: "ListJobsOutput",
55
+ description: "Output for listing jobs",
56
+ fields: {
57
+ jobs: { type: JobModel, isOptional: false, isList: true },
58
+ total: { type: ScalarTypeEnum2.Int_unsecure(), isOptional: false }
59
+ }
60
+ });
61
+ var ListJobsOperation = defineQuery({
62
+ meta: {
63
+ key: "service.job.list",
64
+ version: "1.0.0",
65
+ stability: "stable",
66
+ owners: [...OWNERS],
67
+ tags: ["service-business-os", "job", "list", "query"],
68
+ description: "List all jobs with filtering",
69
+ goal: "Retrieve list of jobs",
70
+ context: "Job management"
71
+ },
72
+ io: {
73
+ input: ListJobsInputModel,
74
+ output: ListJobsOutputModel
75
+ },
76
+ policy: { auth: "user" },
77
+ acceptance: {
78
+ scenarios: [
79
+ {
80
+ key: "list-jobs-happy-path",
81
+ given: ["Jobs exist"],
82
+ when: ["User lists jobs"],
83
+ then: ["List of jobs is returned"]
84
+ }
85
+ ],
86
+ examples: [
87
+ {
88
+ key: "list-active",
89
+ input: { status: "scheduled", limit: 10 },
90
+ output: { jobs: [], total: 5 }
91
+ }
92
+ ]
93
+ }
94
+ });
95
+ var ScheduleJobContract = defineCommand({
96
+ meta: {
97
+ key: "service.job.schedule",
98
+ version: "1.0.0",
99
+ stability: "stable",
100
+ owners: [...OWNERS],
101
+ tags: ["service-business-os", "job", "schedule"],
102
+ description: "Schedule a job.",
103
+ goal: "Schedule work.",
104
+ context: "Job scheduling."
105
+ },
106
+ io: {
107
+ input: ScheduleJobInputModel,
108
+ output: JobModel
109
+ },
110
+ policy: { auth: "user" },
111
+ acceptance: {
112
+ scenarios: [
113
+ {
114
+ key: "schedule-job-happy-path",
115
+ given: ["Client exists"],
116
+ when: ["User schedules job"],
117
+ then: ["Job is created with status SCHEDULED"]
118
+ }
119
+ ],
120
+ examples: [
121
+ {
122
+ key: "schedule-repair",
123
+ input: {
124
+ clientId: "client-123",
125
+ date: "2025-01-20T10:00:00Z",
126
+ type: "repair"
127
+ },
128
+ output: { id: "job-456", status: "scheduled" }
129
+ }
130
+ ]
131
+ }
132
+ });
133
+ var CompleteJobContract = defineCommand({
134
+ meta: {
135
+ key: "service.job.complete",
136
+ version: "1.0.0",
137
+ stability: "stable",
138
+ owners: [...OWNERS],
139
+ tags: ["service-business-os", "job", "complete"],
140
+ description: "Mark a job as complete.",
141
+ goal: "Record job completion.",
142
+ context: "Job management."
143
+ },
144
+ io: {
145
+ input: CompleteJobInputModel,
146
+ output: JobModel
147
+ },
148
+ policy: { auth: "user" },
149
+ acceptance: {
150
+ scenarios: [
151
+ {
152
+ key: "complete-job-happy-path",
153
+ given: ["Job is scheduled"],
154
+ when: ["User completes job"],
155
+ then: ["Job status becomes COMPLETED"]
156
+ }
157
+ ],
158
+ examples: [
159
+ {
160
+ key: "mark-complete",
161
+ input: { jobId: "job-456", notes: "Done successfully" },
162
+ output: { id: "job-456", status: "completed" }
163
+ }
164
+ ]
165
+ }
166
+ });
167
+ export {
168
+ ScheduleJobInputModel,
169
+ ScheduleJobContract,
170
+ ListJobsOutputModel,
171
+ ListJobsOperation,
172
+ ListJobsInputModel,
173
+ JobModel,
174
+ CompleteJobInputModel,
175
+ CompleteJobContract
176
+ };
@@ -1,238 +1,232 @@
1
- import * as _contractspec_lib_schema324 from "@contractspec/lib.schema";
2
- import * as _contractspec_lib_contracts24 from "@contractspec/lib.contracts";
3
-
4
- //#region src/job/job.operations.d.ts
5
- declare const ListJobsInputModel: _contractspec_lib_schema324.SchemaModel<{
6
- status: {
7
- type: _contractspec_lib_schema324.FieldType<string, string>;
8
- isOptional: true;
9
- };
10
- clientId: {
11
- type: _contractspec_lib_schema324.FieldType<string, string>;
12
- isOptional: true;
13
- };
14
- limit: {
15
- type: _contractspec_lib_schema324.FieldType<number, number>;
16
- isOptional: true;
17
- };
18
- offset: {
19
- type: _contractspec_lib_schema324.FieldType<number, number>;
20
- isOptional: true;
21
- };
1
+ export declare const ListJobsInputModel: import("@contractspec/lib.schema").SchemaModel<{
2
+ status: {
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: true;
5
+ };
6
+ clientId: {
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: true;
9
+ };
10
+ limit: {
11
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
12
+ isOptional: true;
13
+ };
14
+ offset: {
15
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
16
+ isOptional: true;
17
+ };
22
18
  }>;
23
- declare const ListJobsOutputModel: _contractspec_lib_schema324.SchemaModel<{
24
- jobs: {
25
- type: _contractspec_lib_schema324.SchemaModel<{
26
- id: {
27
- type: _contractspec_lib_schema324.FieldType<string, string>;
28
- isOptional: false;
29
- };
30
- quoteId: {
31
- type: _contractspec_lib_schema324.FieldType<string, string>;
32
- isOptional: false;
33
- };
34
- clientId: {
35
- type: _contractspec_lib_schema324.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- title: {
39
- type: _contractspec_lib_schema324.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- status: {
43
- type: _contractspec_lib_schema324.FieldType<string, string>;
44
- isOptional: false;
45
- };
46
- scheduledAt: {
47
- type: _contractspec_lib_schema324.FieldType<Date, string>;
48
- isOptional: true;
49
- };
50
- completedAt: {
51
- type: _contractspec_lib_schema324.FieldType<Date, string>;
52
- isOptional: true;
53
- };
54
- assignedTo: {
55
- type: _contractspec_lib_schema324.FieldType<string, string>;
56
- isOptional: true;
57
- };
58
- }>;
59
- isOptional: false;
60
- isList: boolean;
61
- };
62
- total: {
63
- type: _contractspec_lib_schema324.FieldType<number, number>;
64
- isOptional: false;
65
- };
19
+ export declare const ListJobsOutputModel: import("@contractspec/lib.schema").SchemaModel<{
20
+ jobs: {
21
+ type: import("@contractspec/lib.schema").SchemaModel<{
22
+ id: {
23
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
24
+ isOptional: false;
25
+ };
26
+ quoteId: {
27
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
28
+ isOptional: false;
29
+ };
30
+ clientId: {
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
33
+ };
34
+ title: {
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
37
+ };
38
+ status: {
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ scheduledAt: {
43
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
44
+ isOptional: true;
45
+ };
46
+ completedAt: {
47
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
48
+ isOptional: true;
49
+ };
50
+ assignedTo: {
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: true;
53
+ };
54
+ }>;
55
+ isOptional: false;
56
+ isList: boolean;
57
+ };
58
+ total: {
59
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
60
+ isOptional: false;
61
+ };
66
62
  }>;
67
- declare const ListJobsOperation: _contractspec_lib_contracts24.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
68
- status: {
69
- type: _contractspec_lib_schema324.FieldType<string, string>;
70
- isOptional: true;
71
- };
72
- clientId: {
73
- type: _contractspec_lib_schema324.FieldType<string, string>;
74
- isOptional: true;
75
- };
76
- limit: {
77
- type: _contractspec_lib_schema324.FieldType<number, number>;
78
- isOptional: true;
79
- };
80
- offset: {
81
- type: _contractspec_lib_schema324.FieldType<number, number>;
82
- isOptional: true;
83
- };
84
- }>, _contractspec_lib_schema324.SchemaModel<{
85
- jobs: {
86
- type: _contractspec_lib_schema324.SchemaModel<{
87
- id: {
88
- type: _contractspec_lib_schema324.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- quoteId: {
92
- type: _contractspec_lib_schema324.FieldType<string, string>;
93
- isOptional: false;
94
- };
95
- clientId: {
96
- type: _contractspec_lib_schema324.FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- title: {
100
- type: _contractspec_lib_schema324.FieldType<string, string>;
101
- isOptional: false;
102
- };
103
- status: {
104
- type: _contractspec_lib_schema324.FieldType<string, string>;
105
- isOptional: false;
106
- };
107
- scheduledAt: {
108
- type: _contractspec_lib_schema324.FieldType<Date, string>;
109
- isOptional: true;
110
- };
111
- completedAt: {
112
- type: _contractspec_lib_schema324.FieldType<Date, string>;
113
- isOptional: true;
114
- };
115
- assignedTo: {
116
- type: _contractspec_lib_schema324.FieldType<string, string>;
117
- isOptional: true;
118
- };
119
- }>;
120
- isOptional: false;
121
- isList: boolean;
122
- };
123
- total: {
124
- type: _contractspec_lib_schema324.FieldType<number, number>;
125
- isOptional: false;
126
- };
63
+ export declare const ListJobsOperation: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
64
+ status: {
65
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
66
+ isOptional: true;
67
+ };
68
+ clientId: {
69
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
70
+ isOptional: true;
71
+ };
72
+ limit: {
73
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
74
+ isOptional: true;
75
+ };
76
+ offset: {
77
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
78
+ isOptional: true;
79
+ };
80
+ }>, import("@contractspec/lib.schema").SchemaModel<{
81
+ jobs: {
82
+ type: import("@contractspec/lib.schema").SchemaModel<{
83
+ id: {
84
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ quoteId: {
88
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ clientId: {
92
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ title: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ status: {
100
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ scheduledAt: {
104
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
105
+ isOptional: true;
106
+ };
107
+ completedAt: {
108
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
109
+ isOptional: true;
110
+ };
111
+ assignedTo: {
112
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
113
+ isOptional: true;
114
+ };
115
+ }>;
116
+ isOptional: false;
117
+ isList: boolean;
118
+ };
119
+ total: {
120
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
121
+ isOptional: false;
122
+ };
127
123
  }>, undefined>;
128
124
  /**
129
125
  * Schedule a job.
130
126
  */
131
- declare const ScheduleJobContract: _contractspec_lib_contracts24.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
132
- quoteId: {
133
- type: _contractspec_lib_schema324.FieldType<string, string>;
134
- isOptional: false;
135
- };
136
- scheduledAt: {
137
- type: _contractspec_lib_schema324.FieldType<Date, string>;
138
- isOptional: false;
139
- };
140
- assignedTo: {
141
- type: _contractspec_lib_schema324.FieldType<string, string>;
142
- isOptional: true;
143
- };
144
- location: {
145
- type: _contractspec_lib_schema324.FieldType<unknown, unknown>;
146
- isOptional: true;
147
- };
148
- title: {
149
- type: _contractspec_lib_schema324.FieldType<string, string>;
150
- isOptional: true;
151
- };
152
- }>, _contractspec_lib_schema324.SchemaModel<{
153
- id: {
154
- type: _contractspec_lib_schema324.FieldType<string, string>;
155
- isOptional: false;
156
- };
157
- quoteId: {
158
- type: _contractspec_lib_schema324.FieldType<string, string>;
159
- isOptional: false;
160
- };
161
- clientId: {
162
- type: _contractspec_lib_schema324.FieldType<string, string>;
163
- isOptional: false;
164
- };
165
- title: {
166
- type: _contractspec_lib_schema324.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- status: {
170
- type: _contractspec_lib_schema324.FieldType<string, string>;
171
- isOptional: false;
172
- };
173
- scheduledAt: {
174
- type: _contractspec_lib_schema324.FieldType<Date, string>;
175
- isOptional: true;
176
- };
177
- completedAt: {
178
- type: _contractspec_lib_schema324.FieldType<Date, string>;
179
- isOptional: true;
180
- };
181
- assignedTo: {
182
- type: _contractspec_lib_schema324.FieldType<string, string>;
183
- isOptional: true;
184
- };
127
+ export declare const ScheduleJobContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
128
+ quoteId: {
129
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ scheduledAt: {
133
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
134
+ isOptional: false;
135
+ };
136
+ assignedTo: {
137
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
138
+ isOptional: true;
139
+ };
140
+ location: {
141
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
142
+ isOptional: true;
143
+ };
144
+ title: {
145
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
146
+ isOptional: true;
147
+ };
148
+ }>, import("@contractspec/lib.schema").SchemaModel<{
149
+ id: {
150
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ quoteId: {
154
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ clientId: {
158
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ title: {
162
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ status: {
166
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ scheduledAt: {
170
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
171
+ isOptional: true;
172
+ };
173
+ completedAt: {
174
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
175
+ isOptional: true;
176
+ };
177
+ assignedTo: {
178
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
179
+ isOptional: true;
180
+ };
185
181
  }>, undefined>;
186
182
  /**
187
183
  * Complete a job.
188
184
  */
189
- declare const CompleteJobContract: _contractspec_lib_contracts24.OperationSpec<_contractspec_lib_schema324.SchemaModel<{
190
- jobId: {
191
- type: _contractspec_lib_schema324.FieldType<string, string>;
192
- isOptional: false;
193
- };
194
- completedAt: {
195
- type: _contractspec_lib_schema324.FieldType<Date, string>;
196
- isOptional: true;
197
- };
198
- notes: {
199
- type: _contractspec_lib_schema324.FieldType<string, string>;
200
- isOptional: true;
201
- };
202
- }>, _contractspec_lib_schema324.SchemaModel<{
203
- id: {
204
- type: _contractspec_lib_schema324.FieldType<string, string>;
205
- isOptional: false;
206
- };
207
- quoteId: {
208
- type: _contractspec_lib_schema324.FieldType<string, string>;
209
- isOptional: false;
210
- };
211
- clientId: {
212
- type: _contractspec_lib_schema324.FieldType<string, string>;
213
- isOptional: false;
214
- };
215
- title: {
216
- type: _contractspec_lib_schema324.FieldType<string, string>;
217
- isOptional: false;
218
- };
219
- status: {
220
- type: _contractspec_lib_schema324.FieldType<string, string>;
221
- isOptional: false;
222
- };
223
- scheduledAt: {
224
- type: _contractspec_lib_schema324.FieldType<Date, string>;
225
- isOptional: true;
226
- };
227
- completedAt: {
228
- type: _contractspec_lib_schema324.FieldType<Date, string>;
229
- isOptional: true;
230
- };
231
- assignedTo: {
232
- type: _contractspec_lib_schema324.FieldType<string, string>;
233
- isOptional: true;
234
- };
185
+ export declare const CompleteJobContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
186
+ jobId: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: false;
189
+ };
190
+ completedAt: {
191
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
192
+ isOptional: true;
193
+ };
194
+ notes: {
195
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
196
+ isOptional: true;
197
+ };
198
+ }>, import("@contractspec/lib.schema").SchemaModel<{
199
+ id: {
200
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
201
+ isOptional: false;
202
+ };
203
+ quoteId: {
204
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
205
+ isOptional: false;
206
+ };
207
+ clientId: {
208
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
209
+ isOptional: false;
210
+ };
211
+ title: {
212
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
213
+ isOptional: false;
214
+ };
215
+ status: {
216
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
217
+ isOptional: false;
218
+ };
219
+ scheduledAt: {
220
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
221
+ isOptional: true;
222
+ };
223
+ completedAt: {
224
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
225
+ isOptional: true;
226
+ };
227
+ assignedTo: {
228
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
229
+ isOptional: true;
230
+ };
235
231
  }>, undefined>;
236
- //#endregion
237
- export { CompleteJobContract, ListJobsInputModel, ListJobsOperation, ListJobsOutputModel, ScheduleJobContract };
238
232
  //# sourceMappingURL=job.operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"job.operations.d.ts","names":[],"sources":["../../src/job/job.operations.ts"],"sourcesContent":[],"mappings":";;;;cAYa,gDAAkB;;UAS7B,2BAAA,CAAA;;EATW,CAAA;EASX,QAAA,EAAA;;;;;IAT6B,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAWlB,UAAA,EAAA,IAAA;EAOX,CAAA;;;;;;cAPW,iDAAmB;;;;cAO9B,2BAAA,CAAA;;;MAP8B,OAAA,EAAA;QASnB,IAAA,uCAiCX,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;;;;yBAjC4B;MAAA,CAAA;;;;;;;;;;;;;;QAAA,IAAA,uCAAA,KAAA,EAAA,MAAA,CAAA;QAwCjB,UAqCX,EAAA,IAAA;MAAA,CAAA;;;;;;;IArC8B,MAAA,EAAA,OAAA;;;;;;;cAxCnB,iDAAiB,0CAAA;;UAiC5B,2BAAA,CAAA;;;EAO8B,QAAA,EAAA;IA0CnB,IAAA,uCAiCX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;EAjC8B,CAAA;;;;;;;;;cAlFF,2BAAA,CAAA;;;MAkFE,OAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA1CnB,mDAAmB,0CAAA;;UAqC9B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;UArC8B,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA0CnB,mDAAmB,0CAAA;;UAiC9B,2BAAA,CAAA;;;;;;;;;;;;;UAjC8B,2BAAA,CAAA"}
1
+ {"version":3,"file":"job.operations.d.ts","sourceRoot":"","sources":["../../src/job/job.operations.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;EAS7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC5B,CAAC;AAIH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqC9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiC9B,CAAC"}