@deepintel-ltd/buildlink-api-contracts 0.2.25 → 0.2.26

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 (179) hide show
  1. package/README.md +1 -1
  2. package/contracts/auth.d.ts +32 -32
  3. package/contracts/boq.d.ts +117 -0
  4. package/contracts/boq.d.ts.map +1 -1
  5. package/contracts/boq.js +33 -5
  6. package/contracts/boq.js.map +1 -1
  7. package/contracts/client-progress.d.ts +493 -0
  8. package/contracts/client-progress.d.ts.map +1 -0
  9. package/contracts/client-progress.js +20 -0
  10. package/contracts/client-progress.js.map +1 -0
  11. package/contracts/commercial.d.ts +309 -310
  12. package/contracts/commercial.d.ts.map +1 -1
  13. package/contracts/commercial.js +44 -14
  14. package/contracts/commercial.js.map +1 -1
  15. package/contracts/communication.d.ts +64 -64
  16. package/contracts/contractor-ledger.d.ts +525 -8
  17. package/contracts/contractor-ledger.d.ts.map +1 -1
  18. package/contracts/contractor-ledger.js +61 -12
  19. package/contracts/contractor-ledger.js.map +1 -1
  20. package/contracts/daily-logs.d.ts +1288 -0
  21. package/contracts/daily-logs.d.ts.map +1 -1
  22. package/contracts/daily-logs.js.map +1 -1
  23. package/contracts/dashboard.d.ts +411 -0
  24. package/contracts/dashboard.d.ts.map +1 -0
  25. package/contracts/dashboard.js +16 -0
  26. package/contracts/dashboard.js.map +1 -0
  27. package/contracts/deficiencies.d.ts +110 -110
  28. package/contracts/documents.d.ts +600 -1
  29. package/contracts/documents.d.ts.map +1 -1
  30. package/contracts/documents.js +37 -2
  31. package/contracts/documents.js.map +1 -1
  32. package/contracts/drawings.d.ts +532 -532
  33. package/contracts/hub.d.ts.map +1 -1
  34. package/contracts/hub.js +37 -12
  35. package/contracts/hub.js.map +1 -1
  36. package/contracts/index.d.ts +25 -10
  37. package/contracts/index.d.ts.map +1 -1
  38. package/contracts/index.js +23 -8
  39. package/contracts/index.js.map +1 -1
  40. package/contracts/material-index.d.ts +560 -0
  41. package/contracts/material-index.d.ts.map +1 -0
  42. package/contracts/material-index.js +31 -0
  43. package/contracts/material-index.js.map +1 -0
  44. package/contracts/meetings.d.ts +136 -136
  45. package/contracts/projects.d.ts +141 -93
  46. package/contracts/projects.d.ts.map +1 -1
  47. package/contracts/proof.d.ts +24 -24
  48. package/contracts/proof.d.ts.map +1 -1
  49. package/contracts/proof.js +29 -10
  50. package/contracts/proof.js.map +1 -1
  51. package/contracts/qaqc.d.ts +18 -18
  52. package/contracts/qaqc.d.ts.map +1 -1
  53. package/contracts/qaqc.js +37 -11
  54. package/contracts/qaqc.js.map +1 -1
  55. package/contracts/rbac.d.ts +49 -49
  56. package/contracts/reports.d.ts +72 -624
  57. package/contracts/reports.d.ts.map +1 -1
  58. package/contracts/reports.js.map +1 -1
  59. package/contracts/resources.d.ts +10 -10
  60. package/contracts/safety.d.ts +164 -164
  61. package/contracts/schedule.d.ts +68 -68
  62. package/contracts/site-links.d.ts +641 -0
  63. package/contracts/site-links.d.ts.map +1 -0
  64. package/contracts/site-links.js +48 -0
  65. package/contracts/site-links.js.map +1 -0
  66. package/contracts/spec-equal.d.ts.map +1 -1
  67. package/contracts/spec-equal.js +23 -8
  68. package/contracts/spec-equal.js.map +1 -1
  69. package/contracts/specifications.d.ts +296 -296
  70. package/contracts/tasks.d.ts +110 -110
  71. package/contracts/tours.d.ts +503 -0
  72. package/contracts/tours.d.ts.map +1 -0
  73. package/contracts/tours.js +39 -0
  74. package/contracts/tours.js.map +1 -0
  75. package/contracts/transmittals.d.ts +64 -64
  76. package/contracts/valuations-extras.d.ts +758 -0
  77. package/contracts/valuations-extras.d.ts.map +1 -0
  78. package/contracts/valuations-extras.js +61 -0
  79. package/contracts/valuations-extras.js.map +1 -0
  80. package/contracts/valuations.d.ts +4425 -559
  81. package/contracts/valuations.d.ts.map +1 -1
  82. package/contracts/valuations.js +93 -2
  83. package/contracts/valuations.js.map +1 -1
  84. package/package.json +31 -1
  85. package/schemas/auth.d.ts +13 -13
  86. package/schemas/boq.d.ts +23 -0
  87. package/schemas/boq.d.ts.map +1 -1
  88. package/schemas/boq.js +2 -0
  89. package/schemas/boq.js.map +1 -1
  90. package/schemas/cash-flow.d.ts +99 -0
  91. package/schemas/cash-flow.d.ts.map +1 -0
  92. package/schemas/cash-flow.js +21 -0
  93. package/schemas/cash-flow.js.map +1 -0
  94. package/schemas/client-progress.d.ts +436 -0
  95. package/schemas/client-progress.d.ts.map +1 -0
  96. package/schemas/client-progress.js +45 -0
  97. package/schemas/client-progress.js.map +1 -0
  98. package/schemas/commercial.d.ts.map +1 -1
  99. package/schemas/commercial.js +56 -19
  100. package/schemas/commercial.js.map +1 -1
  101. package/schemas/common.d.ts +3 -3
  102. package/schemas/common.d.ts.map +1 -1
  103. package/schemas/common.js +8 -7
  104. package/schemas/common.js.map +1 -1
  105. package/schemas/communication.d.ts +10 -10
  106. package/schemas/contractor-ledger.d.ts +245 -8
  107. package/schemas/contractor-ledger.d.ts.map +1 -1
  108. package/schemas/contractor-ledger.js +108 -19
  109. package/schemas/contractor-ledger.js.map +1 -1
  110. package/schemas/cursor-pagination.d.ts +2 -2
  111. package/schemas/daily-logs.d.ts +420 -0
  112. package/schemas/daily-logs.d.ts.map +1 -1
  113. package/schemas/daily-logs.js +9 -0
  114. package/schemas/daily-logs.js.map +1 -1
  115. package/schemas/dashboard.d.ts +455 -0
  116. package/schemas/dashboard.d.ts.map +1 -0
  117. package/schemas/dashboard.js +47 -0
  118. package/schemas/dashboard.js.map +1 -0
  119. package/schemas/deficiencies.d.ts +22 -22
  120. package/schemas/documents.d.ts +86 -0
  121. package/schemas/documents.d.ts.map +1 -1
  122. package/schemas/documents.js +30 -0
  123. package/schemas/documents.js.map +1 -1
  124. package/schemas/drawings.d.ts +133 -133
  125. package/schemas/evidence.d.ts +75 -0
  126. package/schemas/evidence.d.ts.map +1 -0
  127. package/schemas/evidence.js +79 -0
  128. package/schemas/evidence.js.map +1 -0
  129. package/schemas/hub.d.ts.map +1 -1
  130. package/schemas/hub.js +52 -15
  131. package/schemas/hub.js.map +1 -1
  132. package/schemas/maps.d.ts.map +1 -1
  133. package/schemas/maps.js.map +1 -1
  134. package/schemas/material-index.d.ts +256 -0
  135. package/schemas/material-index.d.ts.map +1 -0
  136. package/schemas/material-index.js +47 -0
  137. package/schemas/material-index.js.map +1 -0
  138. package/schemas/meetings.d.ts +32 -32
  139. package/schemas/projects.d.ts +27 -16
  140. package/schemas/projects.d.ts.map +1 -1
  141. package/schemas/projects.js +4 -0
  142. package/schemas/projects.js.map +1 -1
  143. package/schemas/proof.d.ts +12 -12
  144. package/schemas/proof.d.ts.map +1 -1
  145. package/schemas/proof.js +30 -11
  146. package/schemas/proof.js.map +1 -1
  147. package/schemas/qaqc.d.ts +11 -6
  148. package/schemas/qaqc.d.ts.map +1 -1
  149. package/schemas/qaqc.js +5 -0
  150. package/schemas/qaqc.js.map +1 -1
  151. package/schemas/rbac.d.ts +28 -28
  152. package/schemas/rbac.d.ts.map +1 -1
  153. package/schemas/rbac.js +3 -0
  154. package/schemas/rbac.js.map +1 -1
  155. package/schemas/reports.d.ts +56 -236
  156. package/schemas/reports.d.ts.map +1 -1
  157. package/schemas/reports.js +0 -20
  158. package/schemas/reports.js.map +1 -1
  159. package/schemas/resources.d.ts +18 -18
  160. package/schemas/safety.d.ts +34 -34
  161. package/schemas/schedule.d.ts +48 -48
  162. package/schemas/site-links.d.ts +183 -0
  163. package/schemas/site-links.d.ts.map +1 -0
  164. package/schemas/site-links.js +40 -0
  165. package/schemas/site-links.js.map +1 -0
  166. package/schemas/spec-equal.d.ts.map +1 -1
  167. package/schemas/spec-equal.js +10 -4
  168. package/schemas/spec-equal.js.map +1 -1
  169. package/schemas/specifications.d.ts +108 -108
  170. package/schemas/tasks.d.ts +12 -12
  171. package/schemas/tours.d.ts +114 -0
  172. package/schemas/tours.d.ts.map +1 -0
  173. package/schemas/tours.js +29 -0
  174. package/schemas/tours.js.map +1 -0
  175. package/schemas/transmittals.d.ts +22 -22
  176. package/schemas/valuations.d.ts +556 -58
  177. package/schemas/valuations.d.ts.map +1 -1
  178. package/schemas/valuations.js +44 -3
  179. package/schemas/valuations.js.map +1 -1
@@ -0,0 +1,493 @@
1
+ import { z } from 'zod';
2
+ export declare const clientProgressContract: {
3
+ getClientProgress: {
4
+ pathParams: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ projectId: string;
8
+ }, {
9
+ projectId: string;
10
+ }>;
11
+ summary: "Diaspora/client read-only progress deck (rates shaped by clientSeesRates)";
12
+ method: "GET";
13
+ path: "/projects/:projectId/client-progress";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ data: z.ZodObject<{
17
+ type: z.ZodLiteral<"client-progress">;
18
+ id: z.ZodString;
19
+ attributes: z.ZodObject<{
20
+ projectId: z.ZodString;
21
+ projectName: z.ZodString;
22
+ progressPct: z.ZodNumber;
23
+ clientSeesRates: z.ZodBoolean;
24
+ totals: z.ZodObject<{
25
+ certified: z.ZodNumber;
26
+ released: z.ZodNumber;
27
+ paid: z.ZodNumber;
28
+ boqTotal: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ certified: number;
31
+ released: number;
32
+ paid: number;
33
+ boqTotal?: number | null | undefined;
34
+ }, {
35
+ certified: number;
36
+ released: number;
37
+ paid: number;
38
+ boqTotal?: number | null | undefined;
39
+ }>;
40
+ recentPhotos: z.ZodArray<z.ZodObject<{
41
+ url: z.ZodString;
42
+ caption: z.ZodOptional<z.ZodString>;
43
+ capturedAt: z.ZodOptional<z.ZodString>;
44
+ logDate: z.ZodOptional<z.ZodString>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ url: string;
47
+ caption?: string | undefined;
48
+ capturedAt?: string | undefined;
49
+ logDate?: string | undefined;
50
+ }, {
51
+ url: string;
52
+ caption?: string | undefined;
53
+ capturedAt?: string | undefined;
54
+ logDate?: string | undefined;
55
+ }>, "many">;
56
+ valuationTimeline: z.ZodArray<z.ZodObject<{
57
+ id: z.ZodString;
58
+ certificateNumber: z.ZodString;
59
+ status: z.ZodString;
60
+ periodEnd: z.ZodString;
61
+ grossAmount: z.ZodOptional<z.ZodNumber>;
62
+ netPayable: z.ZodOptional<z.ZodNumber>;
63
+ certifiedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ releasedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ paidAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ id: string;
68
+ status: string;
69
+ certificateNumber: string;
70
+ periodEnd: string;
71
+ paidAt?: string | null | undefined;
72
+ grossAmount?: number | undefined;
73
+ netPayable?: number | undefined;
74
+ certifiedAt?: string | null | undefined;
75
+ releasedAt?: string | null | undefined;
76
+ }, {
77
+ id: string;
78
+ status: string;
79
+ certificateNumber: string;
80
+ periodEnd: string;
81
+ paidAt?: string | null | undefined;
82
+ grossAmount?: number | undefined;
83
+ netPayable?: number | undefined;
84
+ certifiedAt?: string | null | undefined;
85
+ releasedAt?: string | null | undefined;
86
+ }>, "many">;
87
+ proofShareLinks: z.ZodArray<z.ZodObject<{
88
+ packId: z.ZodString;
89
+ title: z.ZodString;
90
+ token: z.ZodOptional<z.ZodString>;
91
+ sharePath: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ title: string;
94
+ packId: string;
95
+ token?: string | undefined;
96
+ sharePath?: string | undefined;
97
+ }, {
98
+ title: string;
99
+ packId: string;
100
+ token?: string | undefined;
101
+ sharePath?: string | undefined;
102
+ }>, "many">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ projectId: string;
105
+ projectName: string;
106
+ progressPct: number;
107
+ clientSeesRates: boolean;
108
+ totals: {
109
+ certified: number;
110
+ released: number;
111
+ paid: number;
112
+ boqTotal?: number | null | undefined;
113
+ };
114
+ recentPhotos: {
115
+ url: string;
116
+ caption?: string | undefined;
117
+ capturedAt?: string | undefined;
118
+ logDate?: string | undefined;
119
+ }[];
120
+ valuationTimeline: {
121
+ id: string;
122
+ status: string;
123
+ certificateNumber: string;
124
+ periodEnd: string;
125
+ paidAt?: string | null | undefined;
126
+ grossAmount?: number | undefined;
127
+ netPayable?: number | undefined;
128
+ certifiedAt?: string | null | undefined;
129
+ releasedAt?: string | null | undefined;
130
+ }[];
131
+ proofShareLinks: {
132
+ title: string;
133
+ packId: string;
134
+ token?: string | undefined;
135
+ sharePath?: string | undefined;
136
+ }[];
137
+ }, {
138
+ projectId: string;
139
+ projectName: string;
140
+ progressPct: number;
141
+ clientSeesRates: boolean;
142
+ totals: {
143
+ certified: number;
144
+ released: number;
145
+ paid: number;
146
+ boqTotal?: number | null | undefined;
147
+ };
148
+ recentPhotos: {
149
+ url: string;
150
+ caption?: string | undefined;
151
+ capturedAt?: string | undefined;
152
+ logDate?: string | undefined;
153
+ }[];
154
+ valuationTimeline: {
155
+ id: string;
156
+ status: string;
157
+ certificateNumber: string;
158
+ periodEnd: string;
159
+ paidAt?: string | null | undefined;
160
+ grossAmount?: number | undefined;
161
+ netPayable?: number | undefined;
162
+ certifiedAt?: string | null | undefined;
163
+ releasedAt?: string | null | undefined;
164
+ }[];
165
+ proofShareLinks: {
166
+ title: string;
167
+ packId: string;
168
+ token?: string | undefined;
169
+ sharePath?: string | undefined;
170
+ }[];
171
+ }>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ id: string;
174
+ type: "client-progress";
175
+ attributes: {
176
+ projectId: string;
177
+ projectName: string;
178
+ progressPct: number;
179
+ clientSeesRates: boolean;
180
+ totals: {
181
+ certified: number;
182
+ released: number;
183
+ paid: number;
184
+ boqTotal?: number | null | undefined;
185
+ };
186
+ recentPhotos: {
187
+ url: string;
188
+ caption?: string | undefined;
189
+ capturedAt?: string | undefined;
190
+ logDate?: string | undefined;
191
+ }[];
192
+ valuationTimeline: {
193
+ id: string;
194
+ status: string;
195
+ certificateNumber: string;
196
+ periodEnd: string;
197
+ paidAt?: string | null | undefined;
198
+ grossAmount?: number | undefined;
199
+ netPayable?: number | undefined;
200
+ certifiedAt?: string | null | undefined;
201
+ releasedAt?: string | null | undefined;
202
+ }[];
203
+ proofShareLinks: {
204
+ title: string;
205
+ packId: string;
206
+ token?: string | undefined;
207
+ sharePath?: string | undefined;
208
+ }[];
209
+ };
210
+ }, {
211
+ id: string;
212
+ type: "client-progress";
213
+ attributes: {
214
+ projectId: string;
215
+ projectName: string;
216
+ progressPct: number;
217
+ clientSeesRates: boolean;
218
+ totals: {
219
+ certified: number;
220
+ released: number;
221
+ paid: number;
222
+ boqTotal?: number | null | undefined;
223
+ };
224
+ recentPhotos: {
225
+ url: string;
226
+ caption?: string | undefined;
227
+ capturedAt?: string | undefined;
228
+ logDate?: string | undefined;
229
+ }[];
230
+ valuationTimeline: {
231
+ id: string;
232
+ status: string;
233
+ certificateNumber: string;
234
+ periodEnd: string;
235
+ paidAt?: string | null | undefined;
236
+ grossAmount?: number | undefined;
237
+ netPayable?: number | undefined;
238
+ certifiedAt?: string | null | undefined;
239
+ releasedAt?: string | null | undefined;
240
+ }[];
241
+ proofShareLinks: {
242
+ title: string;
243
+ packId: string;
244
+ token?: string | undefined;
245
+ sharePath?: string | undefined;
246
+ }[];
247
+ };
248
+ }>;
249
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
+ links: z.ZodOptional<z.ZodObject<{
251
+ self: z.ZodString;
252
+ first: z.ZodOptional<z.ZodString>;
253
+ last: z.ZodOptional<z.ZodString>;
254
+ prev: z.ZodOptional<z.ZodString>;
255
+ next: z.ZodOptional<z.ZodString>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ self: string;
258
+ first?: string | undefined;
259
+ last?: string | undefined;
260
+ prev?: string | undefined;
261
+ next?: string | undefined;
262
+ }, {
263
+ self: string;
264
+ first?: string | undefined;
265
+ last?: string | undefined;
266
+ prev?: string | undefined;
267
+ next?: string | undefined;
268
+ }>>;
269
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
+ status: z.ZodString;
271
+ title: z.ZodString;
272
+ detail: z.ZodOptional<z.ZodString>;
273
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
274
+ }, "strip", z.ZodTypeAny, {
275
+ status: string;
276
+ title: string;
277
+ detail?: string | undefined;
278
+ meta?: Record<string, unknown> | undefined;
279
+ }, {
280
+ status: string;
281
+ title: string;
282
+ detail?: string | undefined;
283
+ meta?: Record<string, unknown> | undefined;
284
+ }>, "many">>;
285
+ }, "strip", z.ZodTypeAny, {
286
+ data: {
287
+ id: string;
288
+ type: "client-progress";
289
+ attributes: {
290
+ projectId: string;
291
+ projectName: string;
292
+ progressPct: number;
293
+ clientSeesRates: boolean;
294
+ totals: {
295
+ certified: number;
296
+ released: number;
297
+ paid: number;
298
+ boqTotal?: number | null | undefined;
299
+ };
300
+ recentPhotos: {
301
+ url: string;
302
+ caption?: string | undefined;
303
+ capturedAt?: string | undefined;
304
+ logDate?: string | undefined;
305
+ }[];
306
+ valuationTimeline: {
307
+ id: string;
308
+ status: string;
309
+ certificateNumber: string;
310
+ periodEnd: string;
311
+ paidAt?: string | null | undefined;
312
+ grossAmount?: number | undefined;
313
+ netPayable?: number | undefined;
314
+ certifiedAt?: string | null | undefined;
315
+ releasedAt?: string | null | undefined;
316
+ }[];
317
+ proofShareLinks: {
318
+ title: string;
319
+ packId: string;
320
+ token?: string | undefined;
321
+ sharePath?: string | undefined;
322
+ }[];
323
+ };
324
+ };
325
+ meta?: Record<string, unknown> | undefined;
326
+ links?: {
327
+ self: string;
328
+ first?: string | undefined;
329
+ last?: string | undefined;
330
+ prev?: string | undefined;
331
+ next?: string | undefined;
332
+ } | undefined;
333
+ errors?: {
334
+ status: string;
335
+ title: string;
336
+ detail?: string | undefined;
337
+ meta?: Record<string, unknown> | undefined;
338
+ }[] | undefined;
339
+ }, {
340
+ data: {
341
+ id: string;
342
+ type: "client-progress";
343
+ attributes: {
344
+ projectId: string;
345
+ projectName: string;
346
+ progressPct: number;
347
+ clientSeesRates: boolean;
348
+ totals: {
349
+ certified: number;
350
+ released: number;
351
+ paid: number;
352
+ boqTotal?: number | null | undefined;
353
+ };
354
+ recentPhotos: {
355
+ url: string;
356
+ caption?: string | undefined;
357
+ capturedAt?: string | undefined;
358
+ logDate?: string | undefined;
359
+ }[];
360
+ valuationTimeline: {
361
+ id: string;
362
+ status: string;
363
+ certificateNumber: string;
364
+ periodEnd: string;
365
+ paidAt?: string | null | undefined;
366
+ grossAmount?: number | undefined;
367
+ netPayable?: number | undefined;
368
+ certifiedAt?: string | null | undefined;
369
+ releasedAt?: string | null | undefined;
370
+ }[];
371
+ proofShareLinks: {
372
+ title: string;
373
+ packId: string;
374
+ token?: string | undefined;
375
+ sharePath?: string | undefined;
376
+ }[];
377
+ };
378
+ };
379
+ meta?: Record<string, unknown> | undefined;
380
+ links?: {
381
+ self: string;
382
+ first?: string | undefined;
383
+ last?: string | undefined;
384
+ prev?: string | undefined;
385
+ next?: string | undefined;
386
+ } | undefined;
387
+ errors?: {
388
+ status: string;
389
+ title: string;
390
+ detail?: string | undefined;
391
+ meta?: Record<string, unknown> | undefined;
392
+ }[] | undefined;
393
+ }>;
394
+ 401: z.ZodObject<{
395
+ errors: z.ZodArray<z.ZodObject<{
396
+ status: z.ZodString;
397
+ title: z.ZodString;
398
+ detail: z.ZodOptional<z.ZodString>;
399
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ status: string;
402
+ title: string;
403
+ detail?: string | undefined;
404
+ meta?: Record<string, unknown> | undefined;
405
+ }, {
406
+ status: string;
407
+ title: string;
408
+ detail?: string | undefined;
409
+ meta?: Record<string, unknown> | undefined;
410
+ }>, "many">;
411
+ }, "strip", z.ZodTypeAny, {
412
+ errors: {
413
+ status: string;
414
+ title: string;
415
+ detail?: string | undefined;
416
+ meta?: Record<string, unknown> | undefined;
417
+ }[];
418
+ }, {
419
+ errors: {
420
+ status: string;
421
+ title: string;
422
+ detail?: string | undefined;
423
+ meta?: Record<string, unknown> | undefined;
424
+ }[];
425
+ }>;
426
+ 403: z.ZodObject<{
427
+ errors: z.ZodArray<z.ZodObject<{
428
+ status: z.ZodString;
429
+ title: z.ZodString;
430
+ detail: z.ZodOptional<z.ZodString>;
431
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
432
+ }, "strip", z.ZodTypeAny, {
433
+ status: string;
434
+ title: string;
435
+ detail?: string | undefined;
436
+ meta?: Record<string, unknown> | undefined;
437
+ }, {
438
+ status: string;
439
+ title: string;
440
+ detail?: string | undefined;
441
+ meta?: Record<string, unknown> | undefined;
442
+ }>, "many">;
443
+ }, "strip", z.ZodTypeAny, {
444
+ errors: {
445
+ status: string;
446
+ title: string;
447
+ detail?: string | undefined;
448
+ meta?: Record<string, unknown> | undefined;
449
+ }[];
450
+ }, {
451
+ errors: {
452
+ status: string;
453
+ title: string;
454
+ detail?: string | undefined;
455
+ meta?: Record<string, unknown> | undefined;
456
+ }[];
457
+ }>;
458
+ 404: z.ZodObject<{
459
+ errors: z.ZodArray<z.ZodObject<{
460
+ status: z.ZodString;
461
+ title: z.ZodString;
462
+ detail: z.ZodOptional<z.ZodString>;
463
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
464
+ }, "strip", z.ZodTypeAny, {
465
+ status: string;
466
+ title: string;
467
+ detail?: string | undefined;
468
+ meta?: Record<string, unknown> | undefined;
469
+ }, {
470
+ status: string;
471
+ title: string;
472
+ detail?: string | undefined;
473
+ meta?: Record<string, unknown> | undefined;
474
+ }>, "many">;
475
+ }, "strip", z.ZodTypeAny, {
476
+ errors: {
477
+ status: string;
478
+ title: string;
479
+ detail?: string | undefined;
480
+ meta?: Record<string, unknown> | undefined;
481
+ }[];
482
+ }, {
483
+ errors: {
484
+ status: string;
485
+ title: string;
486
+ detail?: string | undefined;
487
+ meta?: Record<string, unknown> | undefined;
488
+ }[];
489
+ }>;
490
+ };
491
+ };
492
+ };
493
+ //# sourceMappingURL=client-progress.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-progress.d.ts","sourceRoot":"","sources":["../../../src/contracts/client-progress.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAajC,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { initContract } from '@ts-rest/core';
2
+ import { z } from 'zod';
3
+ import { ClientProgressResourceSchema } from '../schemas/client-progress';
4
+ import { CuidSchema, JsonApiErrorResponseSchema, JsonApiResponseSchema } from '../schemas/common';
5
+ const c = initContract();
6
+ export const clientProgressContract = c.router({
7
+ getClientProgress: {
8
+ method: 'GET',
9
+ path: '/projects/:projectId/client-progress',
10
+ pathParams: z.object({ projectId: CuidSchema }),
11
+ responses: {
12
+ 200: JsonApiResponseSchema(ClientProgressResourceSchema),
13
+ 401: JsonApiErrorResponseSchema,
14
+ 403: JsonApiErrorResponseSchema,
15
+ 404: JsonApiErrorResponseSchema,
16
+ },
17
+ summary: 'Diaspora/client read-only progress deck (rates shaped by clientSeesRates)',
18
+ },
19
+ });
20
+ //# sourceMappingURL=client-progress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-progress.js","sourceRoot":"","sources":["../../../src/contracts/client-progress.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,4BAA4B,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAElG,MAAM,CAAC,GAAG,YAAY,EAAE,CAAC;AAEzB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,iBAAiB,EAAE;QACjB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sCAAsC;QAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;QAC/C,SAAS,EAAE;YACT,GAAG,EAAE,qBAAqB,CAAC,4BAA4B,CAAC;YACxD,GAAG,EAAE,0BAA0B;YAC/B,GAAG,EAAE,0BAA0B;YAC/B,GAAG,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE,2EAA2E;KACrF;CACF,CAAC,CAAC"}