@layer-drone/protocol 2.9.0 → 2.9.1
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/index.d.mts +33 -2
- package/dist/index.d.ts +33 -2
- package/dist/index.js +21 -0
- package/dist/index.mjs +21 -0
- package/package.json +1 -1
- package/src/client/transformers.gen.ts +21 -0
- package/src/client/types.gen.ts +71 -4
package/dist/index.d.mts
CHANGED
|
@@ -1362,6 +1362,16 @@ type CreateMissionsResponse = {
|
|
|
1362
1362
|
created_at: Date;
|
|
1363
1363
|
updated_at: Date;
|
|
1364
1364
|
} | null;
|
|
1365
|
+
flights?: Array<{
|
|
1366
|
+
id: string;
|
|
1367
|
+
mission_id: string;
|
|
1368
|
+
zone_id: string;
|
|
1369
|
+
pilot_address: string;
|
|
1370
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1371
|
+
timezone_offset: string | null;
|
|
1372
|
+
created_at: Date;
|
|
1373
|
+
updated_at: Date;
|
|
1374
|
+
}>;
|
|
1365
1375
|
closed_at: Date | null;
|
|
1366
1376
|
created_at: Date;
|
|
1367
1377
|
updated_at: Date;
|
|
@@ -1492,6 +1502,16 @@ type ListMissionsResponse = {
|
|
|
1492
1502
|
created_at: Date;
|
|
1493
1503
|
updated_at: Date;
|
|
1494
1504
|
} | null;
|
|
1505
|
+
flights?: Array<{
|
|
1506
|
+
id: string;
|
|
1507
|
+
mission_id: string;
|
|
1508
|
+
zone_id: string;
|
|
1509
|
+
pilot_address: string;
|
|
1510
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1511
|
+
timezone_offset: string | null;
|
|
1512
|
+
created_at: Date;
|
|
1513
|
+
updated_at: Date;
|
|
1514
|
+
}>;
|
|
1495
1515
|
closed_at: Date | null;
|
|
1496
1516
|
created_at: Date;
|
|
1497
1517
|
updated_at: Date;
|
|
@@ -1605,6 +1625,16 @@ type MissionResponse = {
|
|
|
1605
1625
|
created_at: Date;
|
|
1606
1626
|
updated_at: Date;
|
|
1607
1627
|
} | null;
|
|
1628
|
+
flights?: Array<{
|
|
1629
|
+
id: string;
|
|
1630
|
+
mission_id: string;
|
|
1631
|
+
zone_id: string;
|
|
1632
|
+
pilot_address: string;
|
|
1633
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1634
|
+
timezone_offset: string | null;
|
|
1635
|
+
created_at: Date;
|
|
1636
|
+
updated_at: Date;
|
|
1637
|
+
}>;
|
|
1608
1638
|
closed_at: Date | null;
|
|
1609
1639
|
created_at: Date;
|
|
1610
1640
|
updated_at: Date;
|
|
@@ -4106,7 +4136,8 @@ type MissionsControllerGetMissionsV2V2Data = {
|
|
|
4106
4136
|
source?: "chain" | "archived";
|
|
4107
4137
|
include_unconfirmed?: string;
|
|
4108
4138
|
held_by?: string;
|
|
4109
|
-
|
|
4139
|
+
touched_by?: string;
|
|
4140
|
+
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights";
|
|
4110
4141
|
};
|
|
4111
4142
|
url: "/v2/missions";
|
|
4112
4143
|
};
|
|
@@ -4141,7 +4172,7 @@ type MissionsControllerGetMissionV2V2Data = {
|
|
|
4141
4172
|
id: string;
|
|
4142
4173
|
};
|
|
4143
4174
|
query?: {
|
|
4144
|
-
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan";
|
|
4175
|
+
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights";
|
|
4145
4176
|
};
|
|
4146
4177
|
url: "/v2/missions/{id}";
|
|
4147
4178
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1362,6 +1362,16 @@ type CreateMissionsResponse = {
|
|
|
1362
1362
|
created_at: Date;
|
|
1363
1363
|
updated_at: Date;
|
|
1364
1364
|
} | null;
|
|
1365
|
+
flights?: Array<{
|
|
1366
|
+
id: string;
|
|
1367
|
+
mission_id: string;
|
|
1368
|
+
zone_id: string;
|
|
1369
|
+
pilot_address: string;
|
|
1370
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1371
|
+
timezone_offset: string | null;
|
|
1372
|
+
created_at: Date;
|
|
1373
|
+
updated_at: Date;
|
|
1374
|
+
}>;
|
|
1365
1375
|
closed_at: Date | null;
|
|
1366
1376
|
created_at: Date;
|
|
1367
1377
|
updated_at: Date;
|
|
@@ -1492,6 +1502,16 @@ type ListMissionsResponse = {
|
|
|
1492
1502
|
created_at: Date;
|
|
1493
1503
|
updated_at: Date;
|
|
1494
1504
|
} | null;
|
|
1505
|
+
flights?: Array<{
|
|
1506
|
+
id: string;
|
|
1507
|
+
mission_id: string;
|
|
1508
|
+
zone_id: string;
|
|
1509
|
+
pilot_address: string;
|
|
1510
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1511
|
+
timezone_offset: string | null;
|
|
1512
|
+
created_at: Date;
|
|
1513
|
+
updated_at: Date;
|
|
1514
|
+
}>;
|
|
1495
1515
|
closed_at: Date | null;
|
|
1496
1516
|
created_at: Date;
|
|
1497
1517
|
updated_at: Date;
|
|
@@ -1605,6 +1625,16 @@ type MissionResponse = {
|
|
|
1605
1625
|
created_at: Date;
|
|
1606
1626
|
updated_at: Date;
|
|
1607
1627
|
} | null;
|
|
1628
|
+
flights?: Array<{
|
|
1629
|
+
id: string;
|
|
1630
|
+
mission_id: string;
|
|
1631
|
+
zone_id: string;
|
|
1632
|
+
pilot_address: string;
|
|
1633
|
+
status: "awaiting_provenance_submission" | "awaiting_file_submission" | "in_review" | "verified" | "failed" | "paid" | "taken" | "cancelled";
|
|
1634
|
+
timezone_offset: string | null;
|
|
1635
|
+
created_at: Date;
|
|
1636
|
+
updated_at: Date;
|
|
1637
|
+
}>;
|
|
1608
1638
|
closed_at: Date | null;
|
|
1609
1639
|
created_at: Date;
|
|
1610
1640
|
updated_at: Date;
|
|
@@ -4106,7 +4136,8 @@ type MissionsControllerGetMissionsV2V2Data = {
|
|
|
4106
4136
|
source?: "chain" | "archived";
|
|
4107
4137
|
include_unconfirmed?: string;
|
|
4108
4138
|
held_by?: string;
|
|
4109
|
-
|
|
4139
|
+
touched_by?: string;
|
|
4140
|
+
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights";
|
|
4110
4141
|
};
|
|
4111
4142
|
url: "/v2/missions";
|
|
4112
4143
|
};
|
|
@@ -4141,7 +4172,7 @@ type MissionsControllerGetMissionV2V2Data = {
|
|
|
4141
4172
|
id: string;
|
|
4142
4173
|
};
|
|
4143
4174
|
query?: {
|
|
4144
|
-
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan";
|
|
4175
|
+
expand?: Array<"confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights"> | "confirmations" | "hold" | "reservation" | "campaigns" | "flight_plan" | "flights";
|
|
4145
4176
|
};
|
|
4146
4177
|
url: "/v2/missions/{id}";
|
|
4147
4178
|
};
|
package/dist/index.js
CHANGED
|
@@ -1419,6 +1419,13 @@ var listMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data
|
|
|
1419
1419
|
item.reservation.created_at = new Date(item.reservation.created_at);
|
|
1420
1420
|
item.reservation.updated_at = new Date(item.reservation.updated_at);
|
|
1421
1421
|
}
|
|
1422
|
+
if (item.flights) {
|
|
1423
|
+
item.flights = item.flights.map((item2) => {
|
|
1424
|
+
item2.created_at = new Date(item2.created_at);
|
|
1425
|
+
item2.updated_at = new Date(item2.updated_at);
|
|
1426
|
+
return item2;
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1422
1429
|
if (item.closed_at) {
|
|
1423
1430
|
item.closed_at = new Date(item.closed_at);
|
|
1424
1431
|
}
|
|
@@ -1478,6 +1485,13 @@ var createMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((da
|
|
|
1478
1485
|
item.mission.reservation.created_at = new Date(item.mission.reservation.created_at);
|
|
1479
1486
|
item.mission.reservation.updated_at = new Date(item.mission.reservation.updated_at);
|
|
1480
1487
|
}
|
|
1488
|
+
if (item.mission.flights) {
|
|
1489
|
+
item.mission.flights = item.mission.flights.map((item2) => {
|
|
1490
|
+
item2.created_at = new Date(item2.created_at);
|
|
1491
|
+
item2.updated_at = new Date(item2.updated_at);
|
|
1492
|
+
return item2;
|
|
1493
|
+
});
|
|
1494
|
+
}
|
|
1481
1495
|
if (item.mission.closed_at) {
|
|
1482
1496
|
item.mission.closed_at = new Date(item.mission.closed_at);
|
|
1483
1497
|
}
|
|
@@ -1536,6 +1550,13 @@ var missionResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) =>
|
|
|
1536
1550
|
data.reservation.created_at = new Date(data.reservation.created_at);
|
|
1537
1551
|
data.reservation.updated_at = new Date(data.reservation.updated_at);
|
|
1538
1552
|
}
|
|
1553
|
+
if (data.flights) {
|
|
1554
|
+
data.flights = data.flights.map((item) => {
|
|
1555
|
+
item.created_at = new Date(item.created_at);
|
|
1556
|
+
item.updated_at = new Date(item.updated_at);
|
|
1557
|
+
return item;
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1539
1560
|
if (data.closed_at) {
|
|
1540
1561
|
data.closed_at = new Date(data.closed_at);
|
|
1541
1562
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1224,6 +1224,13 @@ var listMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data
|
|
|
1224
1224
|
item.reservation.created_at = new Date(item.reservation.created_at);
|
|
1225
1225
|
item.reservation.updated_at = new Date(item.reservation.updated_at);
|
|
1226
1226
|
}
|
|
1227
|
+
if (item.flights) {
|
|
1228
|
+
item.flights = item.flights.map((item2) => {
|
|
1229
|
+
item2.created_at = new Date(item2.created_at);
|
|
1230
|
+
item2.updated_at = new Date(item2.updated_at);
|
|
1231
|
+
return item2;
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1227
1234
|
if (item.closed_at) {
|
|
1228
1235
|
item.closed_at = new Date(item.closed_at);
|
|
1229
1236
|
}
|
|
@@ -1283,6 +1290,13 @@ var createMissionsResponseSchemaResponseTransformer = /* @__PURE__ */ __name((da
|
|
|
1283
1290
|
item.mission.reservation.created_at = new Date(item.mission.reservation.created_at);
|
|
1284
1291
|
item.mission.reservation.updated_at = new Date(item.mission.reservation.updated_at);
|
|
1285
1292
|
}
|
|
1293
|
+
if (item.mission.flights) {
|
|
1294
|
+
item.mission.flights = item.mission.flights.map((item2) => {
|
|
1295
|
+
item2.created_at = new Date(item2.created_at);
|
|
1296
|
+
item2.updated_at = new Date(item2.updated_at);
|
|
1297
|
+
return item2;
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1286
1300
|
if (item.mission.closed_at) {
|
|
1287
1301
|
item.mission.closed_at = new Date(item.mission.closed_at);
|
|
1288
1302
|
}
|
|
@@ -1341,6 +1355,13 @@ var missionResponseSchemaResponseTransformer = /* @__PURE__ */ __name((data) =>
|
|
|
1341
1355
|
data.reservation.created_at = new Date(data.reservation.created_at);
|
|
1342
1356
|
data.reservation.updated_at = new Date(data.reservation.updated_at);
|
|
1343
1357
|
}
|
|
1358
|
+
if (data.flights) {
|
|
1359
|
+
data.flights = data.flights.map((item) => {
|
|
1360
|
+
item.created_at = new Date(item.created_at);
|
|
1361
|
+
item.updated_at = new Date(item.updated_at);
|
|
1362
|
+
return item;
|
|
1363
|
+
});
|
|
1364
|
+
}
|
|
1344
1365
|
if (data.closed_at) {
|
|
1345
1366
|
data.closed_at = new Date(data.closed_at);
|
|
1346
1367
|
}
|
package/package.json
CHANGED
|
@@ -864,6 +864,13 @@ const listMissionsResponseSchemaResponseTransformer = (data: any) => {
|
|
|
864
864
|
item.reservation.created_at = new Date(item.reservation.created_at);
|
|
865
865
|
item.reservation.updated_at = new Date(item.reservation.updated_at);
|
|
866
866
|
}
|
|
867
|
+
if (item.flights) {
|
|
868
|
+
item.flights = item.flights.map((item: any) => {
|
|
869
|
+
item.created_at = new Date(item.created_at);
|
|
870
|
+
item.updated_at = new Date(item.updated_at);
|
|
871
|
+
return item;
|
|
872
|
+
});
|
|
873
|
+
}
|
|
867
874
|
if (item.closed_at) {
|
|
868
875
|
item.closed_at = new Date(item.closed_at);
|
|
869
876
|
}
|
|
@@ -939,6 +946,13 @@ const createMissionsResponseSchemaResponseTransformer = (data: any) => {
|
|
|
939
946
|
item.mission.reservation.updated_at,
|
|
940
947
|
);
|
|
941
948
|
}
|
|
949
|
+
if (item.mission.flights) {
|
|
950
|
+
item.mission.flights = item.mission.flights.map((item: any) => {
|
|
951
|
+
item.created_at = new Date(item.created_at);
|
|
952
|
+
item.updated_at = new Date(item.updated_at);
|
|
953
|
+
return item;
|
|
954
|
+
});
|
|
955
|
+
}
|
|
942
956
|
if (item.mission.closed_at) {
|
|
943
957
|
item.mission.closed_at = new Date(item.mission.closed_at);
|
|
944
958
|
}
|
|
@@ -1001,6 +1015,13 @@ const missionResponseSchemaResponseTransformer = (data: any) => {
|
|
|
1001
1015
|
data.reservation.created_at = new Date(data.reservation.created_at);
|
|
1002
1016
|
data.reservation.updated_at = new Date(data.reservation.updated_at);
|
|
1003
1017
|
}
|
|
1018
|
+
if (data.flights) {
|
|
1019
|
+
data.flights = data.flights.map((item: any) => {
|
|
1020
|
+
item.created_at = new Date(item.created_at);
|
|
1021
|
+
item.updated_at = new Date(item.updated_at);
|
|
1022
|
+
return item;
|
|
1023
|
+
});
|
|
1024
|
+
}
|
|
1004
1025
|
if (data.closed_at) {
|
|
1005
1026
|
data.closed_at = new Date(data.closed_at);
|
|
1006
1027
|
}
|
package/src/client/types.gen.ts
CHANGED
|
@@ -1738,6 +1738,24 @@ export type CreateMissionsResponse = {
|
|
|
1738
1738
|
created_at: Date;
|
|
1739
1739
|
updated_at: Date;
|
|
1740
1740
|
} | null;
|
|
1741
|
+
flights?: Array<{
|
|
1742
|
+
id: string;
|
|
1743
|
+
mission_id: string;
|
|
1744
|
+
zone_id: string;
|
|
1745
|
+
pilot_address: string;
|
|
1746
|
+
status:
|
|
1747
|
+
| "awaiting_provenance_submission"
|
|
1748
|
+
| "awaiting_file_submission"
|
|
1749
|
+
| "in_review"
|
|
1750
|
+
| "verified"
|
|
1751
|
+
| "failed"
|
|
1752
|
+
| "paid"
|
|
1753
|
+
| "taken"
|
|
1754
|
+
| "cancelled";
|
|
1755
|
+
timezone_offset: string | null;
|
|
1756
|
+
created_at: Date;
|
|
1757
|
+
updated_at: Date;
|
|
1758
|
+
}>;
|
|
1741
1759
|
closed_at: Date | null;
|
|
1742
1760
|
created_at: Date;
|
|
1743
1761
|
updated_at: Date;
|
|
@@ -1890,6 +1908,24 @@ export type ListMissionsResponse = {
|
|
|
1890
1908
|
created_at: Date;
|
|
1891
1909
|
updated_at: Date;
|
|
1892
1910
|
} | null;
|
|
1911
|
+
flights?: Array<{
|
|
1912
|
+
id: string;
|
|
1913
|
+
mission_id: string;
|
|
1914
|
+
zone_id: string;
|
|
1915
|
+
pilot_address: string;
|
|
1916
|
+
status:
|
|
1917
|
+
| "awaiting_provenance_submission"
|
|
1918
|
+
| "awaiting_file_submission"
|
|
1919
|
+
| "in_review"
|
|
1920
|
+
| "verified"
|
|
1921
|
+
| "failed"
|
|
1922
|
+
| "paid"
|
|
1923
|
+
| "taken"
|
|
1924
|
+
| "cancelled";
|
|
1925
|
+
timezone_offset: string | null;
|
|
1926
|
+
created_at: Date;
|
|
1927
|
+
updated_at: Date;
|
|
1928
|
+
}>;
|
|
1893
1929
|
closed_at: Date | null;
|
|
1894
1930
|
created_at: Date;
|
|
1895
1931
|
updated_at: Date;
|
|
@@ -2021,6 +2057,24 @@ export type MissionResponse = {
|
|
|
2021
2057
|
created_at: Date;
|
|
2022
2058
|
updated_at: Date;
|
|
2023
2059
|
} | null;
|
|
2060
|
+
flights?: Array<{
|
|
2061
|
+
id: string;
|
|
2062
|
+
mission_id: string;
|
|
2063
|
+
zone_id: string;
|
|
2064
|
+
pilot_address: string;
|
|
2065
|
+
status:
|
|
2066
|
+
| "awaiting_provenance_submission"
|
|
2067
|
+
| "awaiting_file_submission"
|
|
2068
|
+
| "in_review"
|
|
2069
|
+
| "verified"
|
|
2070
|
+
| "failed"
|
|
2071
|
+
| "paid"
|
|
2072
|
+
| "taken"
|
|
2073
|
+
| "cancelled";
|
|
2074
|
+
timezone_offset: string | null;
|
|
2075
|
+
created_at: Date;
|
|
2076
|
+
updated_at: Date;
|
|
2077
|
+
}>;
|
|
2024
2078
|
closed_at: Date | null;
|
|
2025
2079
|
created_at: Date;
|
|
2026
2080
|
updated_at: Date;
|
|
@@ -5669,15 +5723,22 @@ export type MissionsControllerGetMissionsV2V2Data = {
|
|
|
5669
5723
|
source?: "chain" | "archived";
|
|
5670
5724
|
include_unconfirmed?: string;
|
|
5671
5725
|
held_by?: string;
|
|
5726
|
+
touched_by?: string;
|
|
5672
5727
|
expand?:
|
|
5673
5728
|
| Array<
|
|
5674
|
-
|
|
5729
|
+
| "confirmations"
|
|
5730
|
+
| "hold"
|
|
5731
|
+
| "reservation"
|
|
5732
|
+
| "campaigns"
|
|
5733
|
+
| "flight_plan"
|
|
5734
|
+
| "flights"
|
|
5675
5735
|
>
|
|
5676
5736
|
| "confirmations"
|
|
5677
5737
|
| "hold"
|
|
5678
5738
|
| "reservation"
|
|
5679
5739
|
| "campaigns"
|
|
5680
|
-
| "flight_plan"
|
|
5740
|
+
| "flight_plan"
|
|
5741
|
+
| "flights";
|
|
5681
5742
|
};
|
|
5682
5743
|
url: "/v2/missions";
|
|
5683
5744
|
};
|
|
@@ -5727,13 +5788,19 @@ export type MissionsControllerGetMissionV2V2Data = {
|
|
|
5727
5788
|
query?: {
|
|
5728
5789
|
expand?:
|
|
5729
5790
|
| Array<
|
|
5730
|
-
|
|
5791
|
+
| "confirmations"
|
|
5792
|
+
| "hold"
|
|
5793
|
+
| "reservation"
|
|
5794
|
+
| "campaigns"
|
|
5795
|
+
| "flight_plan"
|
|
5796
|
+
| "flights"
|
|
5731
5797
|
>
|
|
5732
5798
|
| "confirmations"
|
|
5733
5799
|
| "hold"
|
|
5734
5800
|
| "reservation"
|
|
5735
5801
|
| "campaigns"
|
|
5736
|
-
| "flight_plan"
|
|
5802
|
+
| "flight_plan"
|
|
5803
|
+
| "flights";
|
|
5737
5804
|
};
|
|
5738
5805
|
url: "/v2/missions/{id}";
|
|
5739
5806
|
};
|