Skip to content

Commit 2356f01

Browse files
authored
Merge pull request #200 from goldenm-software/development
feat: add executedAt timestamp to Manifest and ManifestInput models
2 parents 1837938 + 2a2cbe2 commit 2356f01

7 files changed

Lines changed: 104 additions & 54 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.8.19
4+
5+
- Added new value `executedAt` in `ManifestInput` and `Manifest` models
6+
- Added new values `sampleTemperature` and `tankTemperature` in `TankMeasurement` models, and deprecated `temperature` value
7+
38
## 3.8.18
49

510
- Added `purchaseOrderIds` field (`List<String>?`) to `AtsReceptionInput` to align with the GraphQL `ReceptionInput` schema.

lib/src/ats/ats.freezed.dart

Lines changed: 73 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/ats.g.dart

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/src/manifest/entity/manifest.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ abstract class Manifest with _$Manifest {
3636
/// The [createdAt] parameter is the date of the manifest entity.
3737
@TimestampOrNullConverter() DateTime? createdAt,
3838

39+
/// [executedAt] is the timestamp when the manifest was executed.
40+
@TimestampOrNullConverter() DateTime? executedAt,
41+
3942
/// The [trim] parameter is the trim of the manifest entity.
4043
double? trim,
4144

lib/src/ats/src/manifest/entity/tank_measurement.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class TankMeasurement with _$TankMeasurement {
1616
double? height,
1717

1818
/// The [temperature] parameter is the temperature of the tank measurement.
19-
double? temperature,
19+
@Deprecated('Use sampleTemperature instead') double? temperature,
2020

2121
/// The [volume] parameter is the volume of the tank measurement.
2222
double? volume,
@@ -32,6 +32,12 @@ abstract class TankMeasurement with _$TankMeasurement {
3232

3333
/// The [convertedVolume] parameter is the converted volume of the tank measurement.
3434
double? convertedVolume,
35+
36+
/// The [sampleTemperature] parameter is the sample temperature of the tank measurement.
37+
double? sampleTemperature,
38+
39+
/// The [tankTemperature] parameter is the tank temperature of the tank measurement.
40+
double? tankTemperature,
3541
}) = _TankMeasurement;
3642

3743
/// Creates a new [TankMeasurement] instance from a JSON map.

lib/src/ats/src/manifest/input/manifest.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ abstract class ManifestInput with _$ManifestInput {
2929

3030
/// [createdAt] is the timestamp when the manifest was created.
3131
@TimestampOrNullConverter() DateTime? createdAt,
32+
33+
/// [executedAt] is the timestamp when the manifest was executed.
34+
@TimestampOrNullConverter() DateTime? executedAt,
3235
}) = _ManifestInput;
3336

3437
/// Creates a new [ManifestInput] instance from a JSON map.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
description: Layrz API models for Dart/Flutter. This package contains the models
22
used by the Layrz API.
33
name: layrz_models
4-
version: "3.8.18"
4+
version: "3.8.19"
55
repository: https://github.com/goldenm-software/layrz_models
66

77
environment:

0 commit comments

Comments
 (0)