dimescheduler 0.1.0

Official Rust client library for the Dime.Scheduler API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
// @generated by scripts/codegen.py — do not edit. Regenerate with scripts/codegen.sh.
#![allow(
    clippy::doc_lazy_continuation,
    clippy::doc_markdown,
    clippy::struct_excessive_bools,
    rustdoc::broken_intra_doc_links,
    rustdoc::bare_urls,
    rustdoc::invalid_html_tags
)]
#[allow(unused_imports)]
use std::collections::HashMap;

/// OpenAPI schema: `Entities.ActionUri`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ActionUri {
    /// When true, marks this URI as the default link for the record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub default: Option<bool>,
    /// The description of the URI.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub request_type: Option<crate::entities::HttpRequestType>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// The URI.
    pub uri: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri_type: Option<crate::types::UriType>,
}

/// OpenAPI schema: `Entities.Appointment`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Appointment {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    pub appointment_id: i64,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Identifier assigned to the appointment by the back-office system.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub back_office_id: Option<String>,
    /// Identifier of the parent record in the back-office system.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub back_office_parent_id: Option<String>,
    /// Multi-line body text for the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// Category code used to group and color the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub category: Option<String>,
    /// Exclusive end date and time of the appointment.
    ///
    /// Format: `date-time`.
    pub end: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub importance: Option<crate::entities::Importance>,
    /// When true, the appointment spans entire days.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub is_all_day: Option<bool>,
    /// When true, the appointment is manually planned.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub is_manual_appointment: Option<bool>,
    /// Identifier of the parent job.
    pub job_no: String,
    /// When true, the appointment is locked against edits.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub locked: Option<bool>,
    /// Non-working time within the appointment window, expressed in seconds. Subtracted from the duration when the planning quantity is calculated.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub non_working_time: Option<f64>,
    /// Planned quantity expressed in UnitOfMeasure.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub planning_quantity: Option<f64>,
    /// Travel or wrap-up time after the appointment ends, expressed in seconds.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub postamble: Option<i32>,
    /// Travel or preparation time before the appointment starts, expressed in seconds.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub preamble: Option<i32>,
    /// When true, replaces the assigned resource instead of adding another assignment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replace_resource: Option<bool>,
    /// Identifier of the resource the appointment is assigned to.
    pub resource_no: String,
    /// When true, planned quantities are rounded up to the nearest whole unit.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub round_to_unit_of_measure: Option<bool>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Inclusive start date and time of the appointment.
    ///
    /// Format: `date-time`.
    pub start: String,
    /// Short headline for the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    /// Delimited list of tag codes applied to the appointment (e.g. "URGENT;NIGHTSHIFT").
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tags: Option<String>,
    /// Identifier of the task being scheduled.
    pub task_no: String,
    /// Code of the time marker applied to the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time_marker: Option<String>,
    /// Code of the unit of measure used to express the planning quantity.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub unit_of_measure: Option<String>,
    /// Conversion factor that translates one UnitOfMeasure into the base unit.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub unit_of_measure_conversion: Option<f64>,
    /// When true, the planning quantity is locked and ignores duration changes.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub use_fixed_planning_quantity: Option<bool>,
}

/// OpenAPI schema: `Entities.AppointmentCategory`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentCategory {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Category code applied to the appointment.
    pub category: String,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentContainer`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentContainer {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    pub appointment: String,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Name of the container the appointment is placed in.
    pub container: String,
}

/// OpenAPI schema: `Entities.AppointmentContent`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentContent {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Multi-line body text for the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Short headline for the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentFieldValue`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentFieldValue {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Code of the custom field.
    pub field_code: String,
    /// Value to assign to the custom field.
    pub field_value: String,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentImportance`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentImportance {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub importance: Option<crate::entities::Importance>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentLocked`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentLocked {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// When true, the appointment is locked against edits.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub locked: Option<bool>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentPlanningQuantity`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentPlanningQuantity {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Planned quantity expressed in the appointment's UnitOfMeasure.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub quantity: Option<f64>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
}

/// OpenAPI schema: `Entities.AppointmentTimeMarker`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentTimeMarker {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Code of the time marker applied to the appointment.
    pub time_marker: String,
}

/// OpenAPI schema: `Entities.AppointmentUri`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AppointmentUri {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Display label for the URI.
    pub description: String,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Hyperlink that points back to the source record.
    pub uri: String,
}

/// OpenAPI schema: `Entities.Assignment`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Assignment {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    pub appointment_id: i64,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Identifier of the resource being assigned.
    pub resource_no: String,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
}

/// OpenAPI schema: `Entities.BudgetEntrySource`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum BudgetEntrySource {
    #[default]
    Planning = 0,
    Timesheet = 1,
    Manual = 2,
    Budget = 3,
    External = 4,
}

/// OpenAPI schema: `Entities.Caption`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Caption {
    /// Identifier of the application context the caption applies to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub context: Option<i32>,
    /// Field whose label is being overridden.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub field_name: Option<String>,
    /// Two-letter language code that scopes the caption.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub language: Option<String>,
    /// Back-office table that owns the field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_table: Option<String>,
    /// Localized caption text shown in place of the default label.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
}

/// OpenAPI schema: `Entities.Category`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Category {
    /// Hex color string used to render the category.
    pub color: String,
    /// Friendly label shown on the planning board.
    pub display_name: String,
    /// Stable code that identifies the category.
    pub name: String,
}

/// OpenAPI schema: `Entities.Container`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Container {
    /// Date by which records in the container should be handled.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub handle_date: Option<String>,
    /// When true, the handle date is locked against recalculation.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub handle_locked: Option<bool>,
    /// Display name of the container.
    pub name: String,
}

/// OpenAPI schema: `Entities.FilterGroup`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FilterGroup {
    /// Column position the filter group occupies on the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub column_no: Option<i32>,
    /// When true, the group is treated as a data filter rather than a display filter.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub data_filter: Option<bool>,
    /// Numeric identifier of the filter group.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// Display name of the filter group.
    pub name: String,
}

/// OpenAPI schema: `Entities.FilterValue`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct FilterValue {
    /// Name of the parent filter group.
    pub group: String,
    /// Filter value text used when tagging records.
    pub value: String,
}

/// OpenAPI schema: `Entities.HttpRequestType`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum HttpRequestType {
    #[default]
    Get = 1,
    Post = 2,
}

/// OpenAPI schema: `Entities.Importance`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum Importance {
    #[default]
    Medium = 0,
    High = 1,
    Low = 2,
}

/// OpenAPI schema: `Entities.Job`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Job {
    /// When true, tasks under this job may declare predecessor/successor dependencies.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allow_dependencies: Option<bool>,
    /// When true, the job is shown in the Gantt view.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub available_in_gantt: Option<bool>,
    /// Full street address of the bill-to party.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_address: Option<String>,
    /// Latitude (WGS84) of the bill-to address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the bill-to address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_address_geo_long: Option<f64>,
    /// Email address of the bill-to party.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_email: Option<String>,
    /// Display name of the bill-to party.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_name: Option<String>,
    /// Identifier of the customer this job is billed to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_no: Option<String>,
    /// Phone number of the bill-to party.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_phone: Option<String>,
    /// Regional code of the bill-to address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bill_region: Option<String>,
    /// Category code used to group and color the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub category: Option<String>,
    /// When true on delete, refuses deletion if appointments are still attached.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub check_appointments: Option<bool>,
    /// Full street address of the contact.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_address: Option<String>,
    /// Latitude (WGS84) of the contact's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the contact's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_address_geo_long: Option<f64>,
    /// Primary email address of the contact.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_email: Option<String>,
    /// Display name of the contact.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_name: Option<String>,
    /// Identifier of the primary contact at the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_no: Option<String>,
    /// Primary phone number of the contact.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contact_phone: Option<String>,
    /// Date and time the job was first created.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub creation_date_time: Option<String>,
    /// Identifier of the user who created the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub creator: Option<String>,
    /// Full street address of the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_address: Option<String>,
    /// Latitude (WGS84) of the customer's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the customer's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_address_geo_long: Option<f64>,
    /// Primary email address of the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_email: Option<String>,
    /// Mobile phone number of the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_mobile_phone: Option<String>,
    /// Display name of the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_name: Option<String>,
    /// Identifier of the customer this job is performed for.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_no: Option<String>,
    /// Primary phone number of the customer.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_phone: Option<String>,
    /// Customer-supplied reference for the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub customer_reference: Option<String>,
    /// Long-form description of the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// When true, the job can be selected manually in the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub enable_manual_selection: Option<bool>,
    /// Inclusive end date of the job's planning window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit1: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit2: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit3: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit4: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit5: Option<bool>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date1: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date2: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date3: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date4: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date5: Option<String>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal1: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal2: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal3: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal4: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal5: Option<f64>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text1: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text10: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text11: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text12: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text13: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text14: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text15: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text16: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text17: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text18: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text19: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text2: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text20: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text3: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text4: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text5: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text6: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text7: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text8: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text9: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub importance: Option<crate::entities::Importance>,
    /// Identifier of the job.
    pub job_no: String,
    /// Two-letter language code that drives generated text and notifications.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub language: Option<String>,
    /// Display name of the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Free-form note attached to the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// When true, manually placed appointments override Gantt scheduler constraints.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub over_rule_gantt_planning: Option<bool>,
    /// Code of the pin (status flag) applied to the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pin: Option<String>,
    /// When true, the job cannot be edited from the planner UI.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub read_only: Option<bool>,
    /// Identifier of the user or role responsible for the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub responsible: Option<String>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Brief, single-line description of the job.
    pub short_description: String,
    /// Full street address of the site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_address: Option<String>,
    /// Latitude (WGS84) of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_address_geo_long: Option<f64>,
    /// City of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_city: Option<String>,
    /// Country of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_country: Option<String>,
    /// County of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_county: Option<String>,
    /// Primary email address of the site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_email: Option<String>,
    /// Full street address of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_address: Option<String>,
    /// Latitude (WGS84) of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_address_geo_long: Option<f64>,
    /// City of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_city: Option<String>,
    /// Country of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_country: Option<String>,
    /// County of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_county: Option<String>,
    /// Primary email address of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_email: Option<String>,
    /// Display name of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_name: Option<String>,
    /// Identifier of the origin site the resource departs from.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_no: Option<String>,
    /// Primary phone number of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_phone: Option<String>,
    /// Postal code of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_postcode: Option<String>,
    /// Regional code of the origin site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_region: Option<String>,
    /// State or province of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_state: Option<String>,
    /// Street name of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_street: Option<String>,
    /// House number of the origin site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_from_street_no: Option<String>,
    /// Display name of the site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_name: Option<String>,
    /// Identifier of the site where the job is performed.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_no: Option<String>,
    /// Primary phone number of the site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_phone: Option<String>,
    /// Postal code of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_postcode: Option<String>,
    /// Regional code of the site.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_region: Option<String>,
    /// State or province of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_state: Option<String>,
    /// Street name component of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_street: Option<String>,
    /// House or building number of the site's address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub site_street_no: Option<String>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Inclusive start date of the job's planning window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    /// Code of the time marker applied to the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time_marker: Option<String>,
    /// Free-form type code that further classifies the job.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
}

/// OpenAPI schema: `Entities.Message`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Message {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub severity: Option<crate::types::Severity>,
    /// Human-readable text of the message.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    /// Name of the user the message is addressed to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub user: Option<String>,
}

/// OpenAPI schema: `Entities.Notification`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Notification {
    /// Globally unique identifier of the appointment.
    ///
    /// Format: `uuid`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_guid: Option<String>,
    /// Internal appointment id. Prefer AppointmentNo for cross-system references.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_id: Option<i64>,
    /// External identifier of the appointment.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_no: Option<String>,
    /// Short code that identifies the notification.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// Identifier of the connector instance that produced this notification.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connector_id: Option<String>,
    /// Date and time the notification was raised.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
    /// Identifier of the job this notification relates to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub job_no: Option<String>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Identifier of the task this notification relates to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_no: Option<String>,
    /// Human-readable message body of the notification.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub text: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<crate::types::NotificationType>,
}

/// OpenAPI schema: `Entities.Pin`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Pin {
    /// Hex color string used to render the pin.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub color: Option<String>,
    /// Stable code that identifies the pin.
    pub name: String,
}

/// OpenAPI schema: `Entities.ProjectMember`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ProjectMember {
    /// Date the resource leaves the project team. Empty means open-ended; an existing membership keeps its value when omitted.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
    /// Identifier of the project the resource is staffed on.
    pub job_no: String,
    /// Identifier of the member resource.
    pub resource_no: String,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Date the resource joins the project team. Empty means no explicit start; an existing membership keeps its value when omitted.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
}

/// OpenAPI schema: `Entities.Resource`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Resource {
    /// Effective capacity multiplier when bulk planning is enabled.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bulk_capacity: Option<f64>,
    /// When true, the resource can be booked beyond its 1.0 capacity.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bulk_planning: Option<bool>,
    /// When true on delete, refuses deletion while the resource is still assigned to appointments. When false, the assignments are removed and only the appointments left with no resource at all are deleted; appointments shared with other resources are kept.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub check_appointments: Option<bool>,
    /// Code of the department the resource belongs to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub department: Option<String>,
    /// Friendly name shown on the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    /// When true, the resource is hidden from the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub do_not_show: Option<bool>,
    /// Primary email address of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// When true, the resource's calendar is synchronized with Exchange.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exchange_integration_enabled: Option<bool>,
    /// Email address used for field-service routing.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub field_service_email: Option<String>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit1: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit2: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit3: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit4: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit5: Option<bool>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date1: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date2: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date3: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date4: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date5: Option<String>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal1: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal2: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal3: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal4: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal5: Option<f64>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text1: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text10: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text11: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text12: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text13: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text14: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text15: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text16: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text17: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text18: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text19: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text2: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text20: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text3: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text4: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text5: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text6: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text7: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text8: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text9: Option<String>,
    /// Identifier used by the GPS tracking provider for this resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gps_tracking_resource_no: Option<String>,
    /// Full home address of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_address: Option<String>,
    /// Latitude (WGS84) of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_address_geo_lat: Option<f64>,
    /// Longitude (WGS84) of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_address_geo_long: Option<f64>,
    /// City of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_city: Option<String>,
    /// Country of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_country: Option<String>,
    /// County of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_county: Option<String>,
    /// Home email address of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_email: Option<String>,
    /// Home phone number of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_phone: Option<String>,
    /// Postal code of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_postcode: Option<String>,
    /// Regional code of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_region: Option<String>,
    /// State or province of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_state: Option<String>,
    /// Street name of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_street: Option<String>,
    /// House number of the resource's home address.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub home_street_no: Option<String>,
    /// Date and time the resource becomes bookable.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub in_service_from: Option<String>,
    /// Date and time the resource is retired.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub in_service_till: Option<String>,
    /// Mobile phone number of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub mobile_phone: Option<String>,
    /// Personal (non-business) email address of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub personal_email: Option<String>,
    /// Primary phone number of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub phone: Option<String>,
    /// Code of the pin (status flag) applied to the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pin: Option<String>,
    /// When true, this resource may stand in for others during re-planning.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replacement_resource: Option<bool>,
    /// When true, the resource's location is updated from the GPS tracking provider.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_gps_tracking_enabled: Option<bool>,
    /// Full name of the resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_name: Option<String>,
    /// Identifier of the resource.
    pub resource_no: String,
    /// Code of the resource type.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_type: Option<String>,
    /// Numeric identifier of the resource type.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_type_id: Option<i32>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// Code of the team this resource belongs to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_code: Option<String>,
    /// Sort order of the resource within its team.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_member_sort: Option<i32>,
    /// Role the resource plays inside its team (LEAD, MEMBER, etc.).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_member_type: Option<String>,
    /// Display name of the resource's team.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_name: Option<String>,
    /// Sort order of the team on the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_sort: Option<i32>,
    /// Team kind (for example, CREW or SHIFT).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub team_type: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url1: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url2: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url3: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description1: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description2: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description3: Option<String>,
}

/// OpenAPI schema: `Entities.ResourceCalendar`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceCalendar {
    /// Code of the working-time calendar applied to the resource.
    pub calendar_code: String,
    /// Code of the resource-calendar mapping.
    pub code: String,
    /// Inclusive end date of the calendar assignment.
    ///
    /// Format: `date-time`.
    pub end_date: String,
    /// Identifier of the resource.
    pub resource_no: String,
    /// Inclusive start date of the calendar assignment.
    ///
    /// Format: `date-time`.
    pub start_date: String,
}

/// OpenAPI schema: `Entities.ResourceCapacity`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceCapacity {
    /// Available capacity for the day, in seconds.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub capacity_in_seconds: Option<i64>,
    /// Date the capacity record applies to.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
    /// Available capacity for the day, in UnitOfMeasure.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub quantity: Option<f64>,
    /// Identifier of the resource.
    pub resource_no: String,
    /// Code of the unit of measure for the capacity quantity.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub unit_of_measure: Option<String>,
    /// Conversion factor for the capacity unit of measure.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub unit_of_measure_conversion: Option<f64>,
}

/// OpenAPI schema: `Entities.ResourceCertificate`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceCertificate {
    /// Date the resource last took the certificate.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub last_score_date: Option<String>,
    /// Identifier of the certificate.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub no: Option<String>,
    /// Identifier of the resource that holds the certificate.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_no: Option<String>,
    /// Score the resource achieved on the certificate.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub score: Option<String>,
    /// Date the certificate expires.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub valid_until: Option<String>,
}

/// OpenAPI schema: `Entities.ResourceFilterValue`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceFilterValue {
    /// Name of the parent filter group.
    pub filter_group: String,
    /// Filter value applied to the resource.
    pub filter_value: String,
    /// Identifier of the resource being tagged.
    pub resource_no: String,
    /// Originating system identifier (paired with SourceType).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_app: Option<String>,
    /// Originating system record type (paired with SourceApp).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source_type: Option<String>,
    /// When true, the value is staged in a temporary table before being applied.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transfer_to_temp: Option<bool>,
}

/// OpenAPI schema: `Entities.ResourceGpsTracking`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceGpsTracking {
    /// Date and time the position sample was captured.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
    /// Identifier used by the GPS tracking provider for this resource.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub gps_tracking_resource_no: Option<String>,
    /// Latitude (WGS84) reported by the tracker.
    pub latitude: f64,
    /// Longitude (WGS84) reported by the tracker.
    pub longitude: f64,
    /// Power state reported by the tracker.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power: Option<String>,
    /// Identifier of the resource being tracked.
    pub resource_no: String,
    /// Provider-supplied identifier of the position sample.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub row_id: Option<String>,
    /// Speed reported by the tracker.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub speed: Option<i32>,
}

/// OpenAPI schema: `Entities.ResourceUri`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ResourceUri {
    /// Display label for the URI.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Identifier of the resource.
    pub resource_no: String,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub uri: Option<String>,
}

/// OpenAPI schema: `Entities.SchedulingMode`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum SchedulingMode {
    #[default]
    Normal = 0,
    FixedDuration = 1,
    EffortDriven = 2,
    DynamicAssignment = 3,
}

/// OpenAPI schema: `Entities.Tag`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Tag {
    /// Stable code that identifies the tag. Tasks and appointments reference this code in their delimited tag lists.
    pub code: String,
    /// Hex color string used to render the tag.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub color: Option<String>,
    /// Name of the icon within the icon set.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub icon_name: Option<String>,
    /// Icon set the icon belongs to (e.g. fontawesome).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub icon_set: Option<String>,
    /// Display name of the tag. Defaults to the code when empty.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

/// OpenAPI schema: `Entities.Task`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Task {
    /// Date the work actually finished.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actual_end_date: Option<String>,
    /// Date and time a resource actually picked up the task.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actual_response_date_time: Option<String>,
    /// Date the work actually started.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub actual_start_date: Option<String>,
    /// Earliest date and time at which an appointment for this task may start.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_earliest_allowed: Option<String>,
    /// Latest date and time at which an appointment for this task may end.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_latest_allowed: Option<String>,
    /// Code of the appointment template applied when creating appointments.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub appointment_template: Option<String>,
    /// Original planned end date stored as a baseline.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub base_line_end_date: Option<String>,
    /// Original planned completion percentage stored as a baseline.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub base_line_percent_done: Option<i32>,
    /// Original planned start date stored as a baseline.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub base_line_start_date: Option<String>,
    /// Multi-line body text.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub body: Option<String>,
    /// Planning quantity used when the task is scheduled through bulk planning.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bulk_planning_qty: Option<f64>,
    /// Code of the calendar that defines working time for this task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub calendar_code: Option<String>,
    /// Category code used to group and color the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub category: Option<String>,
    /// Identifier of a certificate (skill or qualification) required for this task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub certificate_no: Option<String>,
    /// When true on delete, refuses deletion if appointments are still attached.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub check_appointments: Option<bool>,
    /// Date agreed with the customer for the work to be finished.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub confirmed_end_date: Option<String>,
    /// Date agreed with the customer for the work to start.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub confirmed_start_date: Option<String>,
    /// Date associated with the Gantt constraint type.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub constraint_date: Option<String>,
    /// Gantt constraint kind applied to the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub constraint_type: Option<i32>,
    /// Position of the task inside its container (zero-based).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container_index: Option<i32>,
    /// Name of the visual container used to group the task on the planning board.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub container_name: Option<String>,
    /// Long-form description of the contract.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contract_description: Option<String>,
    /// Inclusive end date of the contract's coverage.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contract_end_date: Option<String>,
    /// Identifier of the service contract that covers this task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contract_no: Option<String>,
    /// Inclusive start date of the contract's coverage.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contract_start_date: Option<String>,
    /// Contract kind (warranty, billable, prepaid).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub contract_type: Option<String>,
    /// When true, ensures the parent job exists before the task is appended.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub create_job: Option<bool>,
    /// Hard deadline for the task; slipping past it raises a Gantt warning.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dead_line: Option<String>,
    /// Long-form description of the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// When true, appointments on this task do not consume the resource's capacity.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub do_not_count_appointment_resource: Option<bool>,
    /// Estimated work duration of the task.
    ///
    /// Format: `date-span`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration: Option<String>,
    /// Estimated work duration of the task, in seconds.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration_in_seconds: Option<i64>,
    /// End date of the task bar in the Gantt chart. Honored exactly when sent with StartDate and ManuallyScheduled. Sent without a start date, supply a required duration so the start can be derived, or the import is rejected.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub end_date: Option<String>,
    /// Date and time the task is expected to be picked up (SLA target).
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub expected_response_date_time: Option<String>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit1: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit2: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit3: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit4: Option<bool>,
    /// A boolean property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_bit5: Option<bool>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date1: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date2: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date3: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date4: Option<String>,
    /// A date property which can be used at your discretion.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_date5: Option<String>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal1: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal2: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal3: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal4: Option<f64>,
    /// A decimal property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_decimal5: Option<f64>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text1: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text10: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text11: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text12: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text13: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text14: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text15: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text16: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text17: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text18: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text19: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text2: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text20: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text3: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text4: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text5: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text6: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text7: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text8: Option<String>,
    /// A text property which can be used at your discretion.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub free_text9: Option<String>,
    /// When true, the task is scheduled around the clock and ignores calendar working time.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub ignore_calendars: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub importance: Option<crate::entities::Importance>,
    /// Position of the task in its parent's child list (zero-based).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub index: Option<i32>,
    /// When true, the task has no fixed end and may be planned indefinitely.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub infinite_task: Option<bool>,
    /// IRIS area code (where on the asset the fault occurred).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iris_area: Option<String>,
    /// IRIS fault code (the observed problem).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iris_fault: Option<String>,
    /// IRIS reason code (root cause).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iris_reason: Option<String>,
    /// IRIS resolution code (how it was fixed).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iris_resolution: Option<String>,
    /// IRIS symptom code (how the fault manifested).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub iris_symptom: Option<String>,
    /// When true, the task is closed and excluded from open-work reports.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub is_complete: Option<bool>,
    /// Identifier of the parent job.
    pub job_no: String,
    /// Inclusive end date of the labor-warranty window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub labor_warranty_end_date: Option<String>,
    /// Inclusive start date of the labor-warranty window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub labor_warranty_start_date: Option<String>,
    /// Free-form description of where the work is performed.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub location_description: Option<String>,
    /// When true, the task's dates are pinned and ignored by the auto-scheduler. Left unset, the task keeps the flag it already has, so a partial update does not have to resend it.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub manually_scheduled: Option<bool>,
    /// Display name of the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Free-form note attached to the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// When true, manually placed appointments override Gantt scheduler constraints.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub over_rule_gantt_planning: Option<bool>,
    /// Identifier of the parent task in a hierarchical breakdown.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parent_task_no: Option<String>,
    /// Inclusive end date of the parts-warranty window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parts_warranty_end_date: Option<String>,
    /// Inclusive start date of the parts-warranty window.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub parts_warranty_start_date: Option<String>,
    /// Percentage of the task that has been completed (0-100).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub percent_done: Option<i32>,
    /// Duration of the task's bar in the Gantt chart, in seconds of working time on the task calendar, independent of the effort. Omit (0) to keep the stored value. Ignored for a manually scheduled task that has both StartDate and EndDate, whose bar spans its dates.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub perpetuation_in_seconds: Option<i64>,
    /// Code of the pin (status flag) applied to the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pin: Option<String>,
    /// Planned quantity expressed in PlanningUOM.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub planning_qty: Option<f64>,
    /// Code of the unit of measure used to express the planning quantity.
    #[serde(
        rename = "planningUOM",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub planning_uom: Option<String>,
    /// Conversion factor that translates one PlanningUOM into the base unit.
    #[serde(
        rename = "planningUOMConversion",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub planning_uom_conversion: Option<f64>,
    /// Lag between predecessor finish and this task's start, in working days.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub predecessor_lag: Option<i32>,
    /// Identifier of the predecessor task this one depends on.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub predecessor_task_no: Option<String>,
    /// Date the customer asked the work to be finished by.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub requested_end_date: Option<String>,
    /// Time of day the customer asked the work to be finished by.
    ///
    /// Format: `date-span`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub requested_end_time: Option<String>,
    /// Date the customer asked the work to start on.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub requested_start_date: Option<String>,
    /// Time of day the customer asked the work to start at.
    ///
    /// Format: `date-span`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub requested_start_time: Option<String>,
    /// Number of resources the task expects to have assigned.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub required_no_resources: Option<i32>,
    /// Total work duration the task expects.
    ///
    /// Format: `date-span`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub required_total_duration: Option<String>,
    /// Total work duration the task expects, in seconds. Shown as effort in the Gantt chart; also defines the bar's duration unless PerpetuationInSeconds is supplied, or the task is manually scheduled with both StartDate and EndDate. Leave it unset to keep the stored value; send 0 to clear the budget.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub required_total_duration_in_seconds: Option<i64>,
    /// When true, planned quantities are rounded up to the nearest whole unit.
    #[serde(
        rename = "roundToUOM",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub round_to_uom: Option<bool>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub scheduling_mode: Option<crate::entities::SchedulingMode>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Code of the service class the asset belongs to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_class: Option<String>,
    /// Code of the service group the asset belongs to.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_group: Option<String>,
    /// Display name of the asset.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_name: Option<String>,
    /// Identifier of the serviceable item the task is performed on.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_no: Option<String>,
    /// Serial number of the asset.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_serial_no: Option<String>,
    /// Brief, single-line description of the task.
    pub short_description: String,
    /// First skill code required to perform the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub skill1: Option<String>,
    /// Second skill code required to perform the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub skill2: Option<String>,
    /// Third skill code required to perform the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub skill3: Option<String>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Start date of the task bar in the Gantt chart. Sent with EndDate and ManuallyScheduled, the bar spans exactly those dates. Sent without ManuallyScheduled, the finish is scheduled from the required duration across the calendar and the end date is not used.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub start_date: Option<String>,
    /// Current status code of the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Short headline shown as the title in calendar and detail views.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub subject: Option<String>,
    /// Delimited list of tag codes applied to the task (e.g. "URGENT;NIGHTSHIFT").
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tags: Option<String>,
    /// Identifier of the task within its job.
    pub task_no: String,
    /// Date and time from which the task accepts new appointments.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_open_as_of: Option<String>,
    /// Date and time after which the task no longer accepts new appointments.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_open_till: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_type: Option<crate::entities::TaskType>,
    /// Code of the time marker applied to the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time_marker: Option<String>,
    /// Free-form type code that further classifies the task.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url1: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url2: Option<String>,
    /// Hyperlink that points back to the source record.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url3: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description1: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description2: Option<String>,
    /// Display label for the matching URL field.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub url_description3: Option<String>,
    /// When true, the planning quantity is locked and ignores duration changes.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub use_fix_planning_qty: Option<bool>,
}

/// OpenAPI schema: `Entities.TaskBudgetEntry`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskBudgetEntry {
    /// The signed number of seconds the budget moved by. Negative uses budget, positive adds to it. Never zero.
    pub delta_in_seconds: i64,
    /// Free-text note on the entry.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// Caller-supplied identity of the entry. Makes a repeated import rewrite the same row, and names the entry to delete.
    ///
    /// Format: `uuid`.
    pub external_id: String,
    /// Identifier of the parent job.
    pub job_no: String,
    /// The last day the entry covers. Equal to PeriodStart for a single day, never earlier.
    ///
    /// Format: `date-time`.
    pub period_end: String,
    /// The first day the entry covers. Only the date part is used.
    ///
    /// Format: `date-time`.
    pub period_start: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub source: Option<crate::entities::BudgetEntrySource>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the task.
    pub task_no: String,
}

/// OpenAPI schema: `Entities.TaskContainer`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskContainer {
    /// Position of the task inside its container (zero-based).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub index: Option<i32>,
    /// Identifier of the parent job.
    pub job_no: String,
    /// Name of the container the task belongs to.
    pub name: String,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the task.
    pub task_no: String,
}

/// OpenAPI schema: `Entities.TaskDependency`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskDependency {
    /// Identifier of the job that holds the predecessor task.
    pub from_job_no: String,
    /// Identifier of the predecessor task.
    pub from_task_no: String,
    /// Lag between the predecessor's end and the successor's start, expressed in the lag unit.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lag: Option<i32>,
    /// Unit of the lag value.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub lag_unit: Option<String>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the job that holds the successor task.
    pub to_job_no: String,
    /// Identifier of the successor task.
    pub to_task_no: String,
    /// Dependency type: 0 (start-to-start), 1 (start-to-end), 2 (end-to-start) or 3 (end-to-end).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<i32>,
}

/// OpenAPI schema: `Entities.TaskFilterValue`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskFilterValue {
    /// Name of the parent filter group.
    pub filter_group: String,
    /// Filter value applied to the task.
    pub filter_value: String,
    /// Identifier of the parent job.
    pub job_no: String,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the task.
    pub task_no: String,
    /// When true, the value is staged in a temporary table before being applied.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transfer_to_temp: Option<bool>,
}

/// OpenAPI schema: `Entities.TaskLocked`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskLocked {
    /// Identifier of the parent job.
    pub job_no: String,
    /// When true, the task is locked against edits in the planner UI.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub locked: Option<bool>,
    /// When true, the request originated in the back office.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub sent_from_back_office: Option<bool>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the task.
    pub task_no: String,
}

/// OpenAPI schema: `Entities.TaskType`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum TaskType {
    #[default]
    Planning = 0,
    Project = 1,
}

/// OpenAPI schema: `Entities.TaskUri`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TaskUri {
    /// Display label for the URI.
    pub description: String,
    /// Identifier of the parent job.
    pub job_no: String,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// Identifier of the task.
    pub task_no: String,
    /// Hyperlink that points back to the source record.
    pub uri: String,
}

/// OpenAPI schema: `Entities.TimeEntry`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TimeEntry {
    /// Back office reference of the time sheet line. Identifies the entry when no TimeEntryId is given.
    #[serde(
        rename = "backofficeID",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub backoffice_id: Option<String>,
    /// The day the time was spent on. Only the date part is used. Required when creating an entry.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
    /// Free-text description of the work.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    /// The claimed time, in seconds. Required when creating an entry.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub duration_in_seconds: Option<i64>,
    /// Whether the time is billable.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub is_billable: Option<bool>,
    /// Identifier of the job the time was spent on. Required when creating an entry.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub job_no: Option<String>,
    /// Back office round-trip message, for example why a release failed.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
    /// Identifier of the resource whose time it is. Required when creating an entry.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_no: Option<String>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub status: Option<crate::entities::TimeEntryStatus>,
    /// Identifier of the task the time was spent on. Required when creating an entry.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_no: Option<String>,
    /// Identifier of the time entry in Dime.Scheduler. Names the entry to update or delete; leave empty to create one.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time_entry_id: Option<i64>,
}

/// OpenAPI schema: `Entities.TimeEntryStatus`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum TimeEntryStatus {
    #[default]
    Draft = 0,
    Submitting = 1,
    Accepted = 2,
    Failed = 3,
    Approved = 4,
    Rejected = 5,
}

/// OpenAPI schema: `Entities.TimeMarker`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TimeMarker {
    /// Hex color string used to render the time marker.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub color: Option<String>,
    /// Stable code that identifies the time marker.
    pub name: String,
}

/// OpenAPI schema: `Entities.TimeSession`
#[derive(Debug, Clone, PartialEq, Default, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct TimeSession {
    /// The caller's own reference for the session. Identifies the session when no TimeSessionId is given; makes a create idempotent.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub external_id: Option<String>,
    /// Identifier of the job the session belongs to. Required when creating a session.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub job_no: Option<String>,
    /// A short note on the observation.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub note: Option<String>,
    /// Identifier of the resource that was observed. Required when creating a session.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub resource_no: Option<String>,
    /// Originating system identifier (paired with SourceType).
    pub source_app: String,
    /// Originating system record type (paired with SourceApp).
    pub source_type: String,
    /// The moment the session started, in the resource's local wall clock. Required when creating a session.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub started_at: Option<String>,
    /// The moment the session stopped, in the resource's local wall clock. Leave empty on create to start a running session.
    ///
    /// Format: `date-time`.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub stopped_at: Option<String>,
    /// Identifier of the task the session belongs to. Required when creating a session.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub task_no: Option<String>,
    /// Identifier of the time session in Dime.Scheduler. Names the session to update or delete; leave empty to create one.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub time_session_id: Option<i64>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub type_: Option<crate::entities::TimeSessionType>,
}

/// OpenAPI schema: `Entities.TimeSessionType`
#[derive(
    Debug,
    Clone,
    Copy,
    PartialEq,
    Eq,
    Hash,
    Default,
    serde_repr::Serialize_repr,
    serde_repr::Deserialize_repr,
)]
#[repr(i32)]
pub enum TimeSessionType {
    #[default]
    Work = 0,
    Travel = 1,
    Waiting = 2,
}