@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
@@ -1058,12 +1058,12 @@ export declare const contractorLedgerContract: {
1058
1058
  periodEnd: z.ZodString;
1059
1059
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1060
1060
  }, "strip", z.ZodTypeAny, {
1061
- periodStart: string;
1062
1061
  periodEnd: string;
1062
+ periodStart: string;
1063
1063
  payload: Record<string, unknown>;
1064
1064
  }, {
1065
- periodStart: string;
1066
1065
  periodEnd: string;
1066
+ periodStart: string;
1067
1067
  payload?: Record<string, unknown> | undefined;
1068
1068
  }>;
1069
1069
  path: "/projects/:projectId/contractor/payroll-exports";
@@ -1086,18 +1086,18 @@ export declare const contractorLedgerContract: {
1086
1086
  createdAt: string;
1087
1087
  companyId: string;
1088
1088
  projectId: string;
1089
+ periodEnd: string;
1089
1090
  createdById: string;
1090
1091
  periodStart: string;
1091
- periodEnd: string;
1092
1092
  payload: Record<string, unknown>;
1093
1093
  exportUrl?: string | null | undefined;
1094
1094
  }, {
1095
1095
  createdAt: string;
1096
1096
  companyId: string;
1097
1097
  projectId: string;
1098
+ periodEnd: string;
1098
1099
  createdById: string;
1099
1100
  periodStart: string;
1100
- periodEnd: string;
1101
1101
  payload: Record<string, unknown>;
1102
1102
  exportUrl?: string | null | undefined;
1103
1103
  }>;
@@ -1108,9 +1108,9 @@ export declare const contractorLedgerContract: {
1108
1108
  createdAt: string;
1109
1109
  companyId: string;
1110
1110
  projectId: string;
1111
+ periodEnd: string;
1111
1112
  createdById: string;
1112
1113
  periodStart: string;
1113
- periodEnd: string;
1114
1114
  payload: Record<string, unknown>;
1115
1115
  exportUrl?: string | null | undefined;
1116
1116
  };
@@ -1121,9 +1121,9 @@ export declare const contractorLedgerContract: {
1121
1121
  createdAt: string;
1122
1122
  companyId: string;
1123
1123
  projectId: string;
1124
+ periodEnd: string;
1124
1125
  createdById: string;
1125
1126
  periodStart: string;
1126
- periodEnd: string;
1127
1127
  payload: Record<string, unknown>;
1128
1128
  exportUrl?: string | null | undefined;
1129
1129
  };
@@ -1172,9 +1172,9 @@ export declare const contractorLedgerContract: {
1172
1172
  createdAt: string;
1173
1173
  companyId: string;
1174
1174
  projectId: string;
1175
+ periodEnd: string;
1175
1176
  createdById: string;
1176
1177
  periodStart: string;
1177
- periodEnd: string;
1178
1178
  payload: Record<string, unknown>;
1179
1179
  exportUrl?: string | null | undefined;
1180
1180
  };
@@ -1201,9 +1201,9 @@ export declare const contractorLedgerContract: {
1201
1201
  createdAt: string;
1202
1202
  companyId: string;
1203
1203
  projectId: string;
1204
+ periodEnd: string;
1204
1205
  createdById: string;
1205
1206
  periodStart: string;
1206
- periodEnd: string;
1207
1207
  payload: Record<string, unknown>;
1208
1208
  exportUrl?: string | null | undefined;
1209
1209
  };
@@ -1289,5 +1289,522 @@ export declare const contractorLedgerContract: {
1289
1289
  }>;
1290
1290
  };
1291
1291
  };
1292
+ createStockMovement: {
1293
+ pathParams: z.ZodObject<{
1294
+ projectId: z.ZodString;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ projectId: string;
1297
+ }, {
1298
+ projectId: string;
1299
+ }>;
1300
+ summary: "Record DELIVERED/USED/ADJUST stock movement";
1301
+ method: "POST";
1302
+ body: z.ZodObject<{
1303
+ sku: z.ZodString;
1304
+ type: z.ZodEnum<["DELIVERED", "USED", "ADJUST"]>;
1305
+ quantity: z.ZodNumber;
1306
+ note: z.ZodOptional<z.ZodString>;
1307
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ type: "DELIVERED" | "USED" | "ADJUST";
1310
+ quantity: number;
1311
+ sku: string;
1312
+ note?: string | undefined;
1313
+ idempotencyKey?: string | undefined;
1314
+ }, {
1315
+ type: "DELIVERED" | "USED" | "ADJUST";
1316
+ quantity: number;
1317
+ sku: string;
1318
+ note?: string | undefined;
1319
+ idempotencyKey?: string | undefined;
1320
+ }>;
1321
+ path: "/projects/:projectId/contractor/stock-movements";
1322
+ responses: {
1323
+ 201: z.ZodObject<{
1324
+ data: z.ZodObject<{
1325
+ type: z.ZodLiteral<"contractor-stock-movements">;
1326
+ id: z.ZodString;
1327
+ attributes: z.ZodObject<Omit<{
1328
+ id: z.ZodString;
1329
+ stockItemId: z.ZodString;
1330
+ type: z.ZodEnum<["DELIVERED", "USED", "ADJUST"]>;
1331
+ quantity: z.ZodNumber;
1332
+ note: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1333
+ idempotencyKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1334
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1335
+ createdAt: z.ZodString;
1336
+ }, "id">, "strip", z.ZodTypeAny, {
1337
+ createdAt: string;
1338
+ type: "DELIVERED" | "USED" | "ADJUST";
1339
+ quantity: number;
1340
+ stockItemId: string;
1341
+ createdById?: string | null | undefined;
1342
+ note?: string | null | undefined;
1343
+ idempotencyKey?: string | null | undefined;
1344
+ }, {
1345
+ createdAt: string;
1346
+ type: "DELIVERED" | "USED" | "ADJUST";
1347
+ quantity: number;
1348
+ stockItemId: string;
1349
+ createdById?: string | null | undefined;
1350
+ note?: string | null | undefined;
1351
+ idempotencyKey?: string | null | undefined;
1352
+ }>;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ id: string;
1355
+ type: "contractor-stock-movements";
1356
+ attributes: {
1357
+ createdAt: string;
1358
+ type: "DELIVERED" | "USED" | "ADJUST";
1359
+ quantity: number;
1360
+ stockItemId: string;
1361
+ createdById?: string | null | undefined;
1362
+ note?: string | null | undefined;
1363
+ idempotencyKey?: string | null | undefined;
1364
+ };
1365
+ }, {
1366
+ id: string;
1367
+ type: "contractor-stock-movements";
1368
+ attributes: {
1369
+ createdAt: string;
1370
+ type: "DELIVERED" | "USED" | "ADJUST";
1371
+ quantity: number;
1372
+ stockItemId: string;
1373
+ createdById?: string | null | undefined;
1374
+ note?: string | null | undefined;
1375
+ idempotencyKey?: string | null | undefined;
1376
+ };
1377
+ }>;
1378
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1379
+ links: z.ZodOptional<z.ZodObject<{
1380
+ self: z.ZodString;
1381
+ first: z.ZodOptional<z.ZodString>;
1382
+ last: z.ZodOptional<z.ZodString>;
1383
+ prev: z.ZodOptional<z.ZodString>;
1384
+ next: z.ZodOptional<z.ZodString>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ self: string;
1387
+ first?: string | undefined;
1388
+ last?: string | undefined;
1389
+ prev?: string | undefined;
1390
+ next?: string | undefined;
1391
+ }, {
1392
+ self: string;
1393
+ first?: string | undefined;
1394
+ last?: string | undefined;
1395
+ prev?: string | undefined;
1396
+ next?: string | undefined;
1397
+ }>>;
1398
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1399
+ status: z.ZodString;
1400
+ title: z.ZodString;
1401
+ detail: z.ZodOptional<z.ZodString>;
1402
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1403
+ }, "strip", z.ZodTypeAny, {
1404
+ status: string;
1405
+ title: string;
1406
+ detail?: string | undefined;
1407
+ meta?: Record<string, unknown> | undefined;
1408
+ }, {
1409
+ status: string;
1410
+ title: string;
1411
+ detail?: string | undefined;
1412
+ meta?: Record<string, unknown> | undefined;
1413
+ }>, "many">>;
1414
+ }, "strip", z.ZodTypeAny, {
1415
+ data: {
1416
+ id: string;
1417
+ type: "contractor-stock-movements";
1418
+ attributes: {
1419
+ createdAt: string;
1420
+ type: "DELIVERED" | "USED" | "ADJUST";
1421
+ quantity: number;
1422
+ stockItemId: string;
1423
+ createdById?: string | null | undefined;
1424
+ note?: string | null | undefined;
1425
+ idempotencyKey?: string | null | undefined;
1426
+ };
1427
+ };
1428
+ meta?: Record<string, unknown> | undefined;
1429
+ links?: {
1430
+ self: string;
1431
+ first?: string | undefined;
1432
+ last?: string | undefined;
1433
+ prev?: string | undefined;
1434
+ next?: string | undefined;
1435
+ } | undefined;
1436
+ errors?: {
1437
+ status: string;
1438
+ title: string;
1439
+ detail?: string | undefined;
1440
+ meta?: Record<string, unknown> | undefined;
1441
+ }[] | undefined;
1442
+ }, {
1443
+ data: {
1444
+ id: string;
1445
+ type: "contractor-stock-movements";
1446
+ attributes: {
1447
+ createdAt: string;
1448
+ type: "DELIVERED" | "USED" | "ADJUST";
1449
+ quantity: number;
1450
+ stockItemId: string;
1451
+ createdById?: string | null | undefined;
1452
+ note?: string | null | undefined;
1453
+ idempotencyKey?: string | null | undefined;
1454
+ };
1455
+ };
1456
+ meta?: Record<string, unknown> | undefined;
1457
+ links?: {
1458
+ self: string;
1459
+ first?: string | undefined;
1460
+ last?: string | undefined;
1461
+ prev?: string | undefined;
1462
+ next?: string | undefined;
1463
+ } | undefined;
1464
+ errors?: {
1465
+ status: string;
1466
+ title: string;
1467
+ detail?: string | undefined;
1468
+ meta?: Record<string, unknown> | undefined;
1469
+ }[] | undefined;
1470
+ }>;
1471
+ 401: z.ZodObject<{
1472
+ errors: z.ZodArray<z.ZodObject<{
1473
+ status: z.ZodString;
1474
+ title: z.ZodString;
1475
+ detail: z.ZodOptional<z.ZodString>;
1476
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ status: string;
1479
+ title: string;
1480
+ detail?: string | undefined;
1481
+ meta?: Record<string, unknown> | undefined;
1482
+ }, {
1483
+ status: string;
1484
+ title: string;
1485
+ detail?: string | undefined;
1486
+ meta?: Record<string, unknown> | undefined;
1487
+ }>, "many">;
1488
+ }, "strip", z.ZodTypeAny, {
1489
+ errors: {
1490
+ status: string;
1491
+ title: string;
1492
+ detail?: string | undefined;
1493
+ meta?: Record<string, unknown> | undefined;
1494
+ }[];
1495
+ }, {
1496
+ errors: {
1497
+ status: string;
1498
+ title: string;
1499
+ detail?: string | undefined;
1500
+ meta?: Record<string, unknown> | undefined;
1501
+ }[];
1502
+ }>;
1503
+ 403: z.ZodObject<{
1504
+ errors: z.ZodArray<z.ZodObject<{
1505
+ status: z.ZodString;
1506
+ title: z.ZodString;
1507
+ detail: z.ZodOptional<z.ZodString>;
1508
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ status: string;
1511
+ title: string;
1512
+ detail?: string | undefined;
1513
+ meta?: Record<string, unknown> | undefined;
1514
+ }, {
1515
+ status: string;
1516
+ title: string;
1517
+ detail?: string | undefined;
1518
+ meta?: Record<string, unknown> | undefined;
1519
+ }>, "many">;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ errors: {
1522
+ status: string;
1523
+ title: string;
1524
+ detail?: string | undefined;
1525
+ meta?: Record<string, unknown> | undefined;
1526
+ }[];
1527
+ }, {
1528
+ errors: {
1529
+ status: string;
1530
+ title: string;
1531
+ detail?: string | undefined;
1532
+ meta?: Record<string, unknown> | undefined;
1533
+ }[];
1534
+ }>;
1535
+ };
1536
+ };
1537
+ createPresenceCheckin: {
1538
+ pathParams: z.ZodObject<{
1539
+ projectId: z.ZodString;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ projectId: string;
1542
+ }, {
1543
+ projectId: string;
1544
+ }>;
1545
+ summary: "Labor presence check-in with photo/GPS";
1546
+ method: "POST";
1547
+ body: z.ZodObject<{
1548
+ workerName: z.ZodString;
1549
+ packageId: z.ZodOptional<z.ZodString>;
1550
+ photoUrl: z.ZodOptional<z.ZodString>;
1551
+ latitude: z.ZodOptional<z.ZodNumber>;
1552
+ longitude: z.ZodOptional<z.ZodNumber>;
1553
+ capturedAt: z.ZodOptional<z.ZodString>;
1554
+ idempotencyKey: z.ZodOptional<z.ZodString>;
1555
+ }, "strip", z.ZodTypeAny, {
1556
+ workerName: string;
1557
+ capturedAt?: string | undefined;
1558
+ idempotencyKey?: string | undefined;
1559
+ packageId?: string | undefined;
1560
+ photoUrl?: string | undefined;
1561
+ latitude?: number | undefined;
1562
+ longitude?: number | undefined;
1563
+ }, {
1564
+ workerName: string;
1565
+ capturedAt?: string | undefined;
1566
+ idempotencyKey?: string | undefined;
1567
+ packageId?: string | undefined;
1568
+ photoUrl?: string | undefined;
1569
+ latitude?: number | undefined;
1570
+ longitude?: number | undefined;
1571
+ }>;
1572
+ path: "/projects/:projectId/contractor/presence-checkins";
1573
+ responses: {
1574
+ 201: z.ZodObject<{
1575
+ data: z.ZodObject<{
1576
+ type: z.ZodLiteral<"presence-checkins">;
1577
+ id: z.ZodString;
1578
+ attributes: z.ZodObject<Omit<{
1579
+ id: z.ZodString;
1580
+ projectId: z.ZodString;
1581
+ companyId: z.ZodString;
1582
+ packageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1583
+ workerName: z.ZodString;
1584
+ photoUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1585
+ latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1586
+ longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1587
+ capturedAt: z.ZodString;
1588
+ createdById: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1589
+ createdAt: z.ZodString;
1590
+ }, "id">, "strip", z.ZodTypeAny, {
1591
+ createdAt: string;
1592
+ companyId: string;
1593
+ projectId: string;
1594
+ capturedAt: string;
1595
+ workerName: string;
1596
+ createdById?: string | null | undefined;
1597
+ packageId?: string | null | undefined;
1598
+ photoUrl?: string | null | undefined;
1599
+ latitude?: number | null | undefined;
1600
+ longitude?: number | null | undefined;
1601
+ }, {
1602
+ createdAt: string;
1603
+ companyId: string;
1604
+ projectId: string;
1605
+ capturedAt: string;
1606
+ workerName: string;
1607
+ createdById?: string | null | undefined;
1608
+ packageId?: string | null | undefined;
1609
+ photoUrl?: string | null | undefined;
1610
+ latitude?: number | null | undefined;
1611
+ longitude?: number | null | undefined;
1612
+ }>;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ id: string;
1615
+ type: "presence-checkins";
1616
+ attributes: {
1617
+ createdAt: string;
1618
+ companyId: string;
1619
+ projectId: string;
1620
+ capturedAt: string;
1621
+ workerName: string;
1622
+ createdById?: string | null | undefined;
1623
+ packageId?: string | null | undefined;
1624
+ photoUrl?: string | null | undefined;
1625
+ latitude?: number | null | undefined;
1626
+ longitude?: number | null | undefined;
1627
+ };
1628
+ }, {
1629
+ id: string;
1630
+ type: "presence-checkins";
1631
+ attributes: {
1632
+ createdAt: string;
1633
+ companyId: string;
1634
+ projectId: string;
1635
+ capturedAt: string;
1636
+ workerName: string;
1637
+ createdById?: string | null | undefined;
1638
+ packageId?: string | null | undefined;
1639
+ photoUrl?: string | null | undefined;
1640
+ latitude?: number | null | undefined;
1641
+ longitude?: number | null | undefined;
1642
+ };
1643
+ }>;
1644
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1645
+ links: z.ZodOptional<z.ZodObject<{
1646
+ self: z.ZodString;
1647
+ first: z.ZodOptional<z.ZodString>;
1648
+ last: z.ZodOptional<z.ZodString>;
1649
+ prev: z.ZodOptional<z.ZodString>;
1650
+ next: z.ZodOptional<z.ZodString>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ self: string;
1653
+ first?: string | undefined;
1654
+ last?: string | undefined;
1655
+ prev?: string | undefined;
1656
+ next?: string | undefined;
1657
+ }, {
1658
+ self: string;
1659
+ first?: string | undefined;
1660
+ last?: string | undefined;
1661
+ prev?: string | undefined;
1662
+ next?: string | undefined;
1663
+ }>>;
1664
+ errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
1665
+ status: z.ZodString;
1666
+ title: z.ZodString;
1667
+ detail: z.ZodOptional<z.ZodString>;
1668
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1669
+ }, "strip", z.ZodTypeAny, {
1670
+ status: string;
1671
+ title: string;
1672
+ detail?: string | undefined;
1673
+ meta?: Record<string, unknown> | undefined;
1674
+ }, {
1675
+ status: string;
1676
+ title: string;
1677
+ detail?: string | undefined;
1678
+ meta?: Record<string, unknown> | undefined;
1679
+ }>, "many">>;
1680
+ }, "strip", z.ZodTypeAny, {
1681
+ data: {
1682
+ id: string;
1683
+ type: "presence-checkins";
1684
+ attributes: {
1685
+ createdAt: string;
1686
+ companyId: string;
1687
+ projectId: string;
1688
+ capturedAt: string;
1689
+ workerName: string;
1690
+ createdById?: string | null | undefined;
1691
+ packageId?: string | null | undefined;
1692
+ photoUrl?: string | null | undefined;
1693
+ latitude?: number | null | undefined;
1694
+ longitude?: number | null | undefined;
1695
+ };
1696
+ };
1697
+ meta?: Record<string, unknown> | undefined;
1698
+ links?: {
1699
+ self: string;
1700
+ first?: string | undefined;
1701
+ last?: string | undefined;
1702
+ prev?: string | undefined;
1703
+ next?: string | undefined;
1704
+ } | undefined;
1705
+ errors?: {
1706
+ status: string;
1707
+ title: string;
1708
+ detail?: string | undefined;
1709
+ meta?: Record<string, unknown> | undefined;
1710
+ }[] | undefined;
1711
+ }, {
1712
+ data: {
1713
+ id: string;
1714
+ type: "presence-checkins";
1715
+ attributes: {
1716
+ createdAt: string;
1717
+ companyId: string;
1718
+ projectId: string;
1719
+ capturedAt: string;
1720
+ workerName: string;
1721
+ createdById?: string | null | undefined;
1722
+ packageId?: string | null | undefined;
1723
+ photoUrl?: string | null | undefined;
1724
+ latitude?: number | null | undefined;
1725
+ longitude?: number | null | undefined;
1726
+ };
1727
+ };
1728
+ meta?: Record<string, unknown> | undefined;
1729
+ links?: {
1730
+ self: string;
1731
+ first?: string | undefined;
1732
+ last?: string | undefined;
1733
+ prev?: string | undefined;
1734
+ next?: string | undefined;
1735
+ } | undefined;
1736
+ errors?: {
1737
+ status: string;
1738
+ title: string;
1739
+ detail?: string | undefined;
1740
+ meta?: Record<string, unknown> | undefined;
1741
+ }[] | undefined;
1742
+ }>;
1743
+ 401: z.ZodObject<{
1744
+ errors: z.ZodArray<z.ZodObject<{
1745
+ status: z.ZodString;
1746
+ title: z.ZodString;
1747
+ detail: z.ZodOptional<z.ZodString>;
1748
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ status: string;
1751
+ title: string;
1752
+ detail?: string | undefined;
1753
+ meta?: Record<string, unknown> | undefined;
1754
+ }, {
1755
+ status: string;
1756
+ title: string;
1757
+ detail?: string | undefined;
1758
+ meta?: Record<string, unknown> | undefined;
1759
+ }>, "many">;
1760
+ }, "strip", z.ZodTypeAny, {
1761
+ errors: {
1762
+ status: string;
1763
+ title: string;
1764
+ detail?: string | undefined;
1765
+ meta?: Record<string, unknown> | undefined;
1766
+ }[];
1767
+ }, {
1768
+ errors: {
1769
+ status: string;
1770
+ title: string;
1771
+ detail?: string | undefined;
1772
+ meta?: Record<string, unknown> | undefined;
1773
+ }[];
1774
+ }>;
1775
+ 403: z.ZodObject<{
1776
+ errors: z.ZodArray<z.ZodObject<{
1777
+ status: z.ZodString;
1778
+ title: z.ZodString;
1779
+ detail: z.ZodOptional<z.ZodString>;
1780
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1781
+ }, "strip", z.ZodTypeAny, {
1782
+ status: string;
1783
+ title: string;
1784
+ detail?: string | undefined;
1785
+ meta?: Record<string, unknown> | undefined;
1786
+ }, {
1787
+ status: string;
1788
+ title: string;
1789
+ detail?: string | undefined;
1790
+ meta?: Record<string, unknown> | undefined;
1791
+ }>, "many">;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ errors: {
1794
+ status: string;
1795
+ title: string;
1796
+ detail?: string | undefined;
1797
+ meta?: Record<string, unknown> | undefined;
1798
+ }[];
1799
+ }, {
1800
+ errors: {
1801
+ status: string;
1802
+ title: string;
1803
+ detail?: string | undefined;
1804
+ meta?: Record<string, unknown> | undefined;
1805
+ }[];
1806
+ }>;
1807
+ };
1808
+ };
1292
1809
  };
1293
1810
  //# sourceMappingURL=contractor-ledger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contractor-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