diff --git a/CHANGELOG.md b/CHANGELOG.md index 242bd54d..69b04bba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 3.8.1 + +- Added `linkedStorageTerminals` and `linkedStorageTerminalsIds` fields to `Asset` model. +- Added `linkedStorageTerminalsIds` field to `AssetInput` model. +- Added `invoiceId` field to `AtsPurchaseOrder` model. +- Added `atsGetAllTerminals` and `atsStorageReceptionAccess` values to `ReferenceCategory` enum. + ## 3.8.0 - Added `gql_builder` module (`GqlQuery`, `GqlMutation`, `GqlFragment`, `GqlField`, `GqlVariable`) for composable, type-safe GraphQL query construction. diff --git a/lib/src/assets/assets.freezed.dart b/lib/src/assets/assets.freezed.dart index 164f7cc3..1ae9ad71 100644 --- a/lib/src/assets/assets.freezed.dart +++ b/lib/src/assets/assets.freezed.dart @@ -1112,7 +1112,11 @@ mixin _$Asset { /// Only used in ATS apps. List? get linkedSupplyPointAssets;/// [linkedSupplyPointAssetsIds] refers to the list of supply points assets IDs linked to this asset. /// Only used in ATS apps. - List? get linkedSupplyPointAssetsIds;/// [staticPosition] refers to the static position of the asset. + List? get linkedSupplyPointAssetsIds;/// [linkedStorageTerminals] refers to the list of storage terminals assets linked to this asset. +/// Only used in ATS apps. + List? get linkedStorageTerminals;/// [linkedStorageTerminalsIds] refers to the list of storage terminals assets IDs linked to this asset. +/// Only used in ATS apps. + List? get linkedStorageTerminalsIds;/// [staticPosition] refers to the static position of the asset. /// Only used when mode is [AssetMode.fixed]. StaticPosition? get staticPosition;/// [points] refers to the list of points of the zone. /// Only used when mode is [AssetMode.zone]. @@ -1143,16 +1147,16 @@ $AssetCopyWith get copyWith => _$AssetCopyWithImpl(this as Asset, @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is Asset&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.plate, plate) || other.plate == plate)&&(identical(other.vin, vin) || other.vin == vin)&&(identical(other.dynamicIcon, dynamicIcon) || other.dynamicIcon == dynamicIcon)&&(identical(other.mode, mode) || other.mode == mode)&&const DeepCollectionEquality().equals(other.childrenIds, childrenIds)&&const DeepCollectionEquality().equals(other.children, children)&&const DeepCollectionEquality().equals(other.commands, commands)&&const DeepCollectionEquality().equals(other.referencesIds, referencesIds)&&const DeepCollectionEquality().equals(other.references, references)&&const DeepCollectionEquality().equals(other.authenticatedAssetsIds, authenticatedAssetsIds)&&const DeepCollectionEquality().equals(other.authenticatedAssets, authenticatedAssets)&&const DeepCollectionEquality().equals(other.authenticatedUsersIds, authenticatedUsersIds)&&const DeepCollectionEquality().equals(other.authenticatedUsers, authenticatedUsers)&&(identical(other.kindId, kindId) || other.kindId == kindId)&&(identical(other.kind, kind) || other.kind == kind)&&const DeepCollectionEquality().equals(other.customFields, customFields)&&const DeepCollectionEquality().equals(other.sensors, sensors)&&(identical(other.primaryId, primaryId) || other.primaryId == primaryId)&&(identical(other.primary, primary) || other.primary == primary)&&const DeepCollectionEquality().equals(other.devicesIds, devicesIds)&&const DeepCollectionEquality().equals(other.devices, devices)&&(identical(other.qrCode, qrCode) || other.qrCode == qrCode)&&const DeepCollectionEquality().equals(other.externalIdentifiers, externalIdentifiers)&&(identical(other.connection, connection) || other.connection == connection)&&(identical(other.telemetry, telemetry) || other.telemetry == telemetry)&&const DeepCollectionEquality().equals(other.tags, tags)&&const DeepCollectionEquality().equals(other.access, access)&&const DeepCollectionEquality().equals(other.lastExits, lastExits)&&(identical(other.activeTime, activeTime) || other.activeTime == activeTime)&&const DeepCollectionEquality().equals(other.contacts, contacts)&&const DeepCollectionEquality().equals(other.mappitLaborHours, mappitLaborHours)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.loginInfo, loginInfo) || other.loginInfo == loginInfo)&&(identical(other.authenticationCard, authenticationCard) || other.authenticationCard == authenticationCard)&&(identical(other.authenticationCardId, authenticationCardId) || other.authenticationCardId == authenticationCardId)&&(identical(other.nfcIdentifier, nfcIdentifier) || other.nfcIdentifier == nfcIdentifier)&&const DeepCollectionEquality().equals(other.linkedSupplyPointAssets, linkedSupplyPointAssets)&&const DeepCollectionEquality().equals(other.linkedSupplyPointAssetsIds, linkedSupplyPointAssetsIds)&&(identical(other.staticPosition, staticPosition) || other.staticPosition == staticPosition)&&const DeepCollectionEquality().equals(other.points, points)&&const DeepCollectionEquality().equals(other.parameters, parameters)&&const DeepCollectionEquality().equals(other.globalSensors, globalSensors)&&(identical(other.mappitLaborStartTime, mappitLaborStartTime) || other.mappitLaborStartTime == mappitLaborStartTime)&&(identical(other.mappitLaborEndTime, mappitLaborEndTime) || other.mappitLaborEndTime == mappitLaborEndTime)&&const DeepCollectionEquality().equals(other.geofences, geofences)&&const DeepCollectionEquality().equals(other.mappitSecondaryRoutesIds, mappitSecondaryRoutesIds)&&(identical(other.isSuspended, isSuspended) || other.isSuspended == isSuspended)&&(identical(other.authenticationCardCardboardId, authenticationCardCardboardId) || other.authenticationCardCardboardId == authenticationCardCardboardId)&&(identical(other.authenticationCardTagId, authenticationCardTagId) || other.authenticationCardTagId == authenticationCardTagId)&&(identical(other.authenticationCardNfcId, authenticationCardNfcId) || other.authenticationCardNfcId == authenticationCardNfcId)&&(identical(other.authenticationCardCardboard, authenticationCardCardboard) || other.authenticationCardCardboard == authenticationCardCardboard)&&(identical(other.authenticationCardTag, authenticationCardTag) || other.authenticationCardTag == authenticationCardTag)&&(identical(other.authenticationCardNfc, authenticationCardNfc) || other.authenticationCardNfc == authenticationCardNfc)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is Asset&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.plate, plate) || other.plate == plate)&&(identical(other.vin, vin) || other.vin == vin)&&(identical(other.dynamicIcon, dynamicIcon) || other.dynamicIcon == dynamicIcon)&&(identical(other.mode, mode) || other.mode == mode)&&const DeepCollectionEquality().equals(other.childrenIds, childrenIds)&&const DeepCollectionEquality().equals(other.children, children)&&const DeepCollectionEquality().equals(other.commands, commands)&&const DeepCollectionEquality().equals(other.referencesIds, referencesIds)&&const DeepCollectionEquality().equals(other.references, references)&&const DeepCollectionEquality().equals(other.authenticatedAssetsIds, authenticatedAssetsIds)&&const DeepCollectionEquality().equals(other.authenticatedAssets, authenticatedAssets)&&const DeepCollectionEquality().equals(other.authenticatedUsersIds, authenticatedUsersIds)&&const DeepCollectionEquality().equals(other.authenticatedUsers, authenticatedUsers)&&(identical(other.kindId, kindId) || other.kindId == kindId)&&(identical(other.kind, kind) || other.kind == kind)&&const DeepCollectionEquality().equals(other.customFields, customFields)&&const DeepCollectionEquality().equals(other.sensors, sensors)&&(identical(other.primaryId, primaryId) || other.primaryId == primaryId)&&(identical(other.primary, primary) || other.primary == primary)&&const DeepCollectionEquality().equals(other.devicesIds, devicesIds)&&const DeepCollectionEquality().equals(other.devices, devices)&&(identical(other.qrCode, qrCode) || other.qrCode == qrCode)&&const DeepCollectionEquality().equals(other.externalIdentifiers, externalIdentifiers)&&(identical(other.connection, connection) || other.connection == connection)&&(identical(other.telemetry, telemetry) || other.telemetry == telemetry)&&const DeepCollectionEquality().equals(other.tags, tags)&&const DeepCollectionEquality().equals(other.access, access)&&const DeepCollectionEquality().equals(other.lastExits, lastExits)&&(identical(other.activeTime, activeTime) || other.activeTime == activeTime)&&const DeepCollectionEquality().equals(other.contacts, contacts)&&const DeepCollectionEquality().equals(other.mappitLaborHours, mappitLaborHours)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.loginInfo, loginInfo) || other.loginInfo == loginInfo)&&(identical(other.authenticationCard, authenticationCard) || other.authenticationCard == authenticationCard)&&(identical(other.authenticationCardId, authenticationCardId) || other.authenticationCardId == authenticationCardId)&&(identical(other.nfcIdentifier, nfcIdentifier) || other.nfcIdentifier == nfcIdentifier)&&const DeepCollectionEquality().equals(other.linkedSupplyPointAssets, linkedSupplyPointAssets)&&const DeepCollectionEquality().equals(other.linkedSupplyPointAssetsIds, linkedSupplyPointAssetsIds)&&const DeepCollectionEquality().equals(other.linkedStorageTerminals, linkedStorageTerminals)&&const DeepCollectionEquality().equals(other.linkedStorageTerminalsIds, linkedStorageTerminalsIds)&&(identical(other.staticPosition, staticPosition) || other.staticPosition == staticPosition)&&const DeepCollectionEquality().equals(other.points, points)&&const DeepCollectionEquality().equals(other.parameters, parameters)&&const DeepCollectionEquality().equals(other.globalSensors, globalSensors)&&(identical(other.mappitLaborStartTime, mappitLaborStartTime) || other.mappitLaborStartTime == mappitLaborStartTime)&&(identical(other.mappitLaborEndTime, mappitLaborEndTime) || other.mappitLaborEndTime == mappitLaborEndTime)&&const DeepCollectionEquality().equals(other.geofences, geofences)&&const DeepCollectionEquality().equals(other.mappitSecondaryRoutesIds, mappitSecondaryRoutesIds)&&(identical(other.isSuspended, isSuspended) || other.isSuspended == isSuspended)&&(identical(other.authenticationCardCardboardId, authenticationCardCardboardId) || other.authenticationCardCardboardId == authenticationCardCardboardId)&&(identical(other.authenticationCardTagId, authenticationCardTagId) || other.authenticationCardTagId == authenticationCardTagId)&&(identical(other.authenticationCardNfcId, authenticationCardNfcId) || other.authenticationCardNfcId == authenticationCardNfcId)&&(identical(other.authenticationCardCardboard, authenticationCardCardboard) || other.authenticationCardCardboard == authenticationCardCardboard)&&(identical(other.authenticationCardTag, authenticationCardTag) || other.authenticationCardTag == authenticationCardTag)&&(identical(other.authenticationCardNfc, authenticationCardNfc) || other.authenticationCardNfc == authenticationCardNfc)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,name,plate,vin,dynamicIcon,mode,const DeepCollectionEquality().hash(childrenIds),const DeepCollectionEquality().hash(children),const DeepCollectionEquality().hash(commands),const DeepCollectionEquality().hash(referencesIds),const DeepCollectionEquality().hash(references),const DeepCollectionEquality().hash(authenticatedAssetsIds),const DeepCollectionEquality().hash(authenticatedAssets),const DeepCollectionEquality().hash(authenticatedUsersIds),const DeepCollectionEquality().hash(authenticatedUsers),kindId,kind,const DeepCollectionEquality().hash(customFields),const DeepCollectionEquality().hash(sensors),primaryId,primary,const DeepCollectionEquality().hash(devicesIds),const DeepCollectionEquality().hash(devices),qrCode,const DeepCollectionEquality().hash(externalIdentifiers),connection,telemetry,const DeepCollectionEquality().hash(tags),const DeepCollectionEquality().hash(access),const DeepCollectionEquality().hash(lastExits),activeTime,const DeepCollectionEquality().hash(contacts),const DeepCollectionEquality().hash(mappitLaborHours),ownerId,loginInfo,authenticationCard,authenticationCardId,nfcIdentifier,const DeepCollectionEquality().hash(linkedSupplyPointAssets),const DeepCollectionEquality().hash(linkedSupplyPointAssetsIds),staticPosition,const DeepCollectionEquality().hash(points),const DeepCollectionEquality().hash(parameters),const DeepCollectionEquality().hash(globalSensors),mappitLaborStartTime,mappitLaborEndTime,const DeepCollectionEquality().hash(geofences),const DeepCollectionEquality().hash(mappitSecondaryRoutesIds),isSuspended,authenticationCardCardboardId,authenticationCardTagId,authenticationCardNfcId,authenticationCardCardboard,authenticationCardTag,authenticationCardNfc]); +int get hashCode => Object.hashAll([runtimeType,id,name,plate,vin,dynamicIcon,mode,const DeepCollectionEquality().hash(childrenIds),const DeepCollectionEquality().hash(children),const DeepCollectionEquality().hash(commands),const DeepCollectionEquality().hash(referencesIds),const DeepCollectionEquality().hash(references),const DeepCollectionEquality().hash(authenticatedAssetsIds),const DeepCollectionEquality().hash(authenticatedAssets),const DeepCollectionEquality().hash(authenticatedUsersIds),const DeepCollectionEquality().hash(authenticatedUsers),kindId,kind,const DeepCollectionEquality().hash(customFields),const DeepCollectionEquality().hash(sensors),primaryId,primary,const DeepCollectionEquality().hash(devicesIds),const DeepCollectionEquality().hash(devices),qrCode,const DeepCollectionEquality().hash(externalIdentifiers),connection,telemetry,const DeepCollectionEquality().hash(tags),const DeepCollectionEquality().hash(access),const DeepCollectionEquality().hash(lastExits),activeTime,const DeepCollectionEquality().hash(contacts),const DeepCollectionEquality().hash(mappitLaborHours),ownerId,loginInfo,authenticationCard,authenticationCardId,nfcIdentifier,const DeepCollectionEquality().hash(linkedSupplyPointAssets),const DeepCollectionEquality().hash(linkedSupplyPointAssetsIds),const DeepCollectionEquality().hash(linkedStorageTerminals),const DeepCollectionEquality().hash(linkedStorageTerminalsIds),staticPosition,const DeepCollectionEquality().hash(points),const DeepCollectionEquality().hash(parameters),const DeepCollectionEquality().hash(globalSensors),mappitLaborStartTime,mappitLaborEndTime,const DeepCollectionEquality().hash(geofences),const DeepCollectionEquality().hash(mappitSecondaryRoutesIds),isSuspended,authenticationCardCardboardId,authenticationCardTagId,authenticationCardNfcId,authenticationCardCardboard,authenticationCardTag,authenticationCardNfc]); @override String toString() { - return 'Asset(id: $id, name: $name, plate: $plate, vin: $vin, dynamicIcon: $dynamicIcon, mode: $mode, childrenIds: $childrenIds, children: $children, commands: $commands, referencesIds: $referencesIds, references: $references, authenticatedAssetsIds: $authenticatedAssetsIds, authenticatedAssets: $authenticatedAssets, authenticatedUsersIds: $authenticatedUsersIds, authenticatedUsers: $authenticatedUsers, kindId: $kindId, kind: $kind, customFields: $customFields, sensors: $sensors, primaryId: $primaryId, primary: $primary, devicesIds: $devicesIds, devices: $devices, qrCode: $qrCode, externalIdentifiers: $externalIdentifiers, connection: $connection, telemetry: $telemetry, tags: $tags, access: $access, lastExits: $lastExits, activeTime: $activeTime, contacts: $contacts, mappitLaborHours: $mappitLaborHours, ownerId: $ownerId, loginInfo: $loginInfo, authenticationCard: $authenticationCard, authenticationCardId: $authenticationCardId, nfcIdentifier: $nfcIdentifier, linkedSupplyPointAssets: $linkedSupplyPointAssets, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, staticPosition: $staticPosition, points: $points, parameters: $parameters, globalSensors: $globalSensors, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, geofences: $geofences, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds, isSuspended: $isSuspended, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, authenticationCardCardboard: $authenticationCardCardboard, authenticationCardTag: $authenticationCardTag, authenticationCardNfc: $authenticationCardNfc)'; + return 'Asset(id: $id, name: $name, plate: $plate, vin: $vin, dynamicIcon: $dynamicIcon, mode: $mode, childrenIds: $childrenIds, children: $children, commands: $commands, referencesIds: $referencesIds, references: $references, authenticatedAssetsIds: $authenticatedAssetsIds, authenticatedAssets: $authenticatedAssets, authenticatedUsersIds: $authenticatedUsersIds, authenticatedUsers: $authenticatedUsers, kindId: $kindId, kind: $kind, customFields: $customFields, sensors: $sensors, primaryId: $primaryId, primary: $primary, devicesIds: $devicesIds, devices: $devices, qrCode: $qrCode, externalIdentifiers: $externalIdentifiers, connection: $connection, telemetry: $telemetry, tags: $tags, access: $access, lastExits: $lastExits, activeTime: $activeTime, contacts: $contacts, mappitLaborHours: $mappitLaborHours, ownerId: $ownerId, loginInfo: $loginInfo, authenticationCard: $authenticationCard, authenticationCardId: $authenticationCardId, nfcIdentifier: $nfcIdentifier, linkedSupplyPointAssets: $linkedSupplyPointAssets, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, linkedStorageTerminals: $linkedStorageTerminals, linkedStorageTerminalsIds: $linkedStorageTerminalsIds, staticPosition: $staticPosition, points: $points, parameters: $parameters, globalSensors: $globalSensors, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, geofences: $geofences, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds, isSuspended: $isSuspended, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, authenticationCardCardboard: $authenticationCardCardboard, authenticationCardTag: $authenticationCardTag, authenticationCardNfc: $authenticationCardNfc)'; } @@ -1163,7 +1167,7 @@ abstract mixin class $AssetCopyWith<$Res> { factory $AssetCopyWith(Asset value, $Res Function(Asset) _then) = _$AssetCopyWithImpl; @useResult $Res call({ - String id, String name, String? plate, String? vin, Avatar? dynamicIcon,@AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc + String id, String name, String? plate, String? vin, Avatar? dynamicIcon,@AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, List? linkedStorageTerminals, List? linkedStorageTerminalsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc }); @@ -1180,7 +1184,7 @@ class _$AssetCopyWithImpl<$Res> /// Create a copy of Asset /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? name = null,Object? plate = freezed,Object? vin = freezed,Object? dynamicIcon = freezed,Object? mode = freezed,Object? childrenIds = freezed,Object? children = freezed,Object? commands = freezed,Object? referencesIds = freezed,Object? references = freezed,Object? authenticatedAssetsIds = freezed,Object? authenticatedAssets = freezed,Object? authenticatedUsersIds = freezed,Object? authenticatedUsers = freezed,Object? kindId = freezed,Object? kind = freezed,Object? customFields = freezed,Object? sensors = freezed,Object? primaryId = freezed,Object? primary = freezed,Object? devicesIds = freezed,Object? devices = freezed,Object? qrCode = freezed,Object? externalIdentifiers = freezed,Object? connection = freezed,Object? telemetry = freezed,Object? tags = freezed,Object? access = freezed,Object? lastExits = freezed,Object? activeTime = freezed,Object? contacts = freezed,Object? mappitLaborHours = freezed,Object? ownerId = freezed,Object? loginInfo = freezed,Object? authenticationCard = freezed,Object? authenticationCardId = freezed,Object? nfcIdentifier = freezed,Object? linkedSupplyPointAssets = freezed,Object? linkedSupplyPointAssetsIds = freezed,Object? staticPosition = freezed,Object? points = freezed,Object? parameters = null,Object? globalSensors = freezed,Object? mappitLaborStartTime = freezed,Object? mappitLaborEndTime = freezed,Object? geofences = freezed,Object? mappitSecondaryRoutesIds = freezed,Object? isSuspended = freezed,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? authenticationCardCardboard = freezed,Object? authenticationCardTag = freezed,Object? authenticationCardNfc = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = null,Object? name = null,Object? plate = freezed,Object? vin = freezed,Object? dynamicIcon = freezed,Object? mode = freezed,Object? childrenIds = freezed,Object? children = freezed,Object? commands = freezed,Object? referencesIds = freezed,Object? references = freezed,Object? authenticatedAssetsIds = freezed,Object? authenticatedAssets = freezed,Object? authenticatedUsersIds = freezed,Object? authenticatedUsers = freezed,Object? kindId = freezed,Object? kind = freezed,Object? customFields = freezed,Object? sensors = freezed,Object? primaryId = freezed,Object? primary = freezed,Object? devicesIds = freezed,Object? devices = freezed,Object? qrCode = freezed,Object? externalIdentifiers = freezed,Object? connection = freezed,Object? telemetry = freezed,Object? tags = freezed,Object? access = freezed,Object? lastExits = freezed,Object? activeTime = freezed,Object? contacts = freezed,Object? mappitLaborHours = freezed,Object? ownerId = freezed,Object? loginInfo = freezed,Object? authenticationCard = freezed,Object? authenticationCardId = freezed,Object? nfcIdentifier = freezed,Object? linkedSupplyPointAssets = freezed,Object? linkedSupplyPointAssetsIds = freezed,Object? linkedStorageTerminals = freezed,Object? linkedStorageTerminalsIds = freezed,Object? staticPosition = freezed,Object? points = freezed,Object? parameters = null,Object? globalSensors = freezed,Object? mappitLaborStartTime = freezed,Object? mappitLaborEndTime = freezed,Object? geofences = freezed,Object? mappitSecondaryRoutesIds = freezed,Object? isSuspended = freezed,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? authenticationCardCardboard = freezed,Object? authenticationCardTag = freezed,Object? authenticationCardNfc = freezed,}) { return _then(_self.copyWith( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable @@ -1222,6 +1226,8 @@ as AtsAuthenticationCard?,authenticationCardId: freezed == authenticationCardId as String?,nfcIdentifier: freezed == nfcIdentifier ? _self.nfcIdentifier : nfcIdentifier // ignore: cast_nullable_to_non_nullable as String?,linkedSupplyPointAssets: freezed == linkedSupplyPointAssets ? _self.linkedSupplyPointAssets : linkedSupplyPointAssets // ignore: cast_nullable_to_non_nullable as List?,linkedSupplyPointAssetsIds: freezed == linkedSupplyPointAssetsIds ? _self.linkedSupplyPointAssetsIds : linkedSupplyPointAssetsIds // ignore: cast_nullable_to_non_nullable +as List?,linkedStorageTerminals: freezed == linkedStorageTerminals ? _self.linkedStorageTerminals : linkedStorageTerminals // ignore: cast_nullable_to_non_nullable +as List?,linkedStorageTerminalsIds: freezed == linkedStorageTerminalsIds ? _self.linkedStorageTerminalsIds : linkedStorageTerminalsIds // ignore: cast_nullable_to_non_nullable as List?,staticPosition: freezed == staticPosition ? _self.staticPosition : staticPosition // ignore: cast_nullable_to_non_nullable as StaticPosition?,points: freezed == points ? _self.points : points // ignore: cast_nullable_to_non_nullable as List?,parameters: null == parameters ? _self.parameters : parameters // ignore: cast_nullable_to_non_nullable @@ -1454,10 +1460,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, List? linkedStorageTerminals, List? linkedStorageTerminalsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _Asset() when $default != null: -return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: +return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminals,_that.linkedStorageTerminalsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: return orElse(); } @@ -1475,10 +1481,10 @@ return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_tha /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, List? linkedStorageTerminals, List? linkedStorageTerminalsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc) $default,) {final _that = this; switch (_that) { case _Asset(): -return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: +return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminals,_that.linkedStorageTerminalsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: throw StateError('Unexpected subclass'); } @@ -1495,10 +1501,10 @@ return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_tha /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String id, String name, String? plate, String? vin, Avatar? dynamicIcon, @AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, List? linkedStorageTerminals, List? linkedStorageTerminalsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime, @TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc)? $default,) {final _that = this; switch (_that) { case _Asset() when $default != null: -return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: +return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_that.mode,_that.childrenIds,_that.children,_that.commands,_that.referencesIds,_that.references,_that.authenticatedAssetsIds,_that.authenticatedAssets,_that.authenticatedUsersIds,_that.authenticatedUsers,_that.kindId,_that.kind,_that.customFields,_that.sensors,_that.primaryId,_that.primary,_that.devicesIds,_that.devices,_that.qrCode,_that.externalIdentifiers,_that.connection,_that.telemetry,_that.tags,_that.access,_that.lastExits,_that.activeTime,_that.contacts,_that.mappitLaborHours,_that.ownerId,_that.loginInfo,_that.authenticationCard,_that.authenticationCardId,_that.nfcIdentifier,_that.linkedSupplyPointAssets,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminals,_that.linkedStorageTerminalsIds,_that.staticPosition,_that.points,_that.parameters,_that.globalSensors,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.geofences,_that.mappitSecondaryRoutesIds,_that.isSuspended,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.authenticationCardCardboard,_that.authenticationCardTag,_that.authenticationCardNfc);case _: return null; } @@ -1510,7 +1516,7 @@ return $default(_that.id,_that.name,_that.plate,_that.vin,_that.dynamicIcon,_tha @JsonSerializable() class _Asset extends Asset { - const _Asset({required this.id, required this.name, this.plate, this.vin, this.dynamicIcon, @AssetModeOrNullConverter() this.mode, final List? childrenIds, final List? children, final List? commands, final List? referencesIds, final List? references, final List? authenticatedAssetsIds, final List? authenticatedAssets, final List? authenticatedUsersIds, final List? authenticatedUsers, this.kindId, this.kind, final List? customFields, final List? sensors, this.primaryId, this.primary, final List? devicesIds, final List? devices, this.qrCode, final List? externalIdentifiers, this.connection, this.telemetry, final List? tags, final List? access, final List? lastExits, this.activeTime, final List? contacts, final List? mappitLaborHours, this.ownerId, this.loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') this.authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') this.authenticationCardId, this.nfcIdentifier, final List? linkedSupplyPointAssets, final List? linkedSupplyPointAssetsIds, this.staticPosition, final List? points, final List parameters = const [], final List? globalSensors, @TimeOfDayOrNullConverter() this.mappitLaborStartTime, @TimeOfDayOrNullConverter() this.mappitLaborEndTime, final List? geofences, final List? mappitSecondaryRoutesIds, this.isSuspended, this.authenticationCardCardboardId, this.authenticationCardTagId, this.authenticationCardNfcId, this.authenticationCardCardboard, this.authenticationCardTag, this.authenticationCardNfc}): _childrenIds = childrenIds,_children = children,_commands = commands,_referencesIds = referencesIds,_references = references,_authenticatedAssetsIds = authenticatedAssetsIds,_authenticatedAssets = authenticatedAssets,_authenticatedUsersIds = authenticatedUsersIds,_authenticatedUsers = authenticatedUsers,_customFields = customFields,_sensors = sensors,_devicesIds = devicesIds,_devices = devices,_externalIdentifiers = externalIdentifiers,_tags = tags,_access = access,_lastExits = lastExits,_contacts = contacts,_mappitLaborHours = mappitLaborHours,_linkedSupplyPointAssets = linkedSupplyPointAssets,_linkedSupplyPointAssetsIds = linkedSupplyPointAssetsIds,_points = points,_parameters = parameters,_globalSensors = globalSensors,_geofences = geofences,_mappitSecondaryRoutesIds = mappitSecondaryRoutesIds,super._(); + const _Asset({required this.id, required this.name, this.plate, this.vin, this.dynamicIcon, @AssetModeOrNullConverter() this.mode, final List? childrenIds, final List? children, final List? commands, final List? referencesIds, final List? references, final List? authenticatedAssetsIds, final List? authenticatedAssets, final List? authenticatedUsersIds, final List? authenticatedUsers, this.kindId, this.kind, final List? customFields, final List? sensors, this.primaryId, this.primary, final List? devicesIds, final List? devices, this.qrCode, final List? externalIdentifiers, this.connection, this.telemetry, final List? tags, final List? access, final List? lastExits, this.activeTime, final List? contacts, final List? mappitLaborHours, this.ownerId, this.loginInfo, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') this.authenticationCard, @Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') this.authenticationCardId, this.nfcIdentifier, final List? linkedSupplyPointAssets, final List? linkedSupplyPointAssetsIds, final List? linkedStorageTerminals, final List? linkedStorageTerminalsIds, this.staticPosition, final List? points, final List parameters = const [], final List? globalSensors, @TimeOfDayOrNullConverter() this.mappitLaborStartTime, @TimeOfDayOrNullConverter() this.mappitLaborEndTime, final List? geofences, final List? mappitSecondaryRoutesIds, this.isSuspended, this.authenticationCardCardboardId, this.authenticationCardTagId, this.authenticationCardNfcId, this.authenticationCardCardboard, this.authenticationCardTag, this.authenticationCardNfc}): _childrenIds = childrenIds,_children = children,_commands = commands,_referencesIds = referencesIds,_references = references,_authenticatedAssetsIds = authenticatedAssetsIds,_authenticatedAssets = authenticatedAssets,_authenticatedUsersIds = authenticatedUsersIds,_authenticatedUsers = authenticatedUsers,_customFields = customFields,_sensors = sensors,_devicesIds = devicesIds,_devices = devices,_externalIdentifiers = externalIdentifiers,_tags = tags,_access = access,_lastExits = lastExits,_contacts = contacts,_mappitLaborHours = mappitLaborHours,_linkedSupplyPointAssets = linkedSupplyPointAssets,_linkedSupplyPointAssetsIds = linkedSupplyPointAssetsIds,_linkedStorageTerminals = linkedStorageTerminals,_linkedStorageTerminalsIds = linkedStorageTerminalsIds,_points = points,_parameters = parameters,_globalSensors = globalSensors,_geofences = geofences,_mappitSecondaryRoutesIds = mappitSecondaryRoutesIds,super._(); factory _Asset.fromJson(Map json) => _$AssetFromJson(json); /// [id] of the asset entity. This ID is unique. @@ -1799,6 +1805,32 @@ class _Asset extends Asset { return EqualUnmodifiableListView(value); } +/// [linkedStorageTerminals] refers to the list of storage terminals assets linked to this asset. +/// Only used in ATS apps. + final List? _linkedStorageTerminals; +/// [linkedStorageTerminals] refers to the list of storage terminals assets linked to this asset. +/// Only used in ATS apps. +@override List? get linkedStorageTerminals { + final value = _linkedStorageTerminals; + if (value == null) return null; + if (_linkedStorageTerminals is EqualUnmodifiableListView) return _linkedStorageTerminals; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + +/// [linkedStorageTerminalsIds] refers to the list of storage terminals assets IDs linked to this asset. +/// Only used in ATS apps. + final List? _linkedStorageTerminalsIds; +/// [linkedStorageTerminalsIds] refers to the list of storage terminals assets IDs linked to this asset. +/// Only used in ATS apps. +@override List? get linkedStorageTerminalsIds { + final value = _linkedStorageTerminalsIds; + if (value == null) return null; + if (_linkedStorageTerminalsIds is EqualUnmodifiableListView) return _linkedStorageTerminalsIds; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); +} + /// [staticPosition] refers to the static position of the asset. /// Only used when mode is [AssetMode.fixed]. @override final StaticPosition? staticPosition; @@ -1891,16 +1923,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _Asset&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.plate, plate) || other.plate == plate)&&(identical(other.vin, vin) || other.vin == vin)&&(identical(other.dynamicIcon, dynamicIcon) || other.dynamicIcon == dynamicIcon)&&(identical(other.mode, mode) || other.mode == mode)&&const DeepCollectionEquality().equals(other._childrenIds, _childrenIds)&&const DeepCollectionEquality().equals(other._children, _children)&&const DeepCollectionEquality().equals(other._commands, _commands)&&const DeepCollectionEquality().equals(other._referencesIds, _referencesIds)&&const DeepCollectionEquality().equals(other._references, _references)&&const DeepCollectionEquality().equals(other._authenticatedAssetsIds, _authenticatedAssetsIds)&&const DeepCollectionEquality().equals(other._authenticatedAssets, _authenticatedAssets)&&const DeepCollectionEquality().equals(other._authenticatedUsersIds, _authenticatedUsersIds)&&const DeepCollectionEquality().equals(other._authenticatedUsers, _authenticatedUsers)&&(identical(other.kindId, kindId) || other.kindId == kindId)&&(identical(other.kind, kind) || other.kind == kind)&&const DeepCollectionEquality().equals(other._customFields, _customFields)&&const DeepCollectionEquality().equals(other._sensors, _sensors)&&(identical(other.primaryId, primaryId) || other.primaryId == primaryId)&&(identical(other.primary, primary) || other.primary == primary)&&const DeepCollectionEquality().equals(other._devicesIds, _devicesIds)&&const DeepCollectionEquality().equals(other._devices, _devices)&&(identical(other.qrCode, qrCode) || other.qrCode == qrCode)&&const DeepCollectionEquality().equals(other._externalIdentifiers, _externalIdentifiers)&&(identical(other.connection, connection) || other.connection == connection)&&(identical(other.telemetry, telemetry) || other.telemetry == telemetry)&&const DeepCollectionEquality().equals(other._tags, _tags)&&const DeepCollectionEquality().equals(other._access, _access)&&const DeepCollectionEquality().equals(other._lastExits, _lastExits)&&(identical(other.activeTime, activeTime) || other.activeTime == activeTime)&&const DeepCollectionEquality().equals(other._contacts, _contacts)&&const DeepCollectionEquality().equals(other._mappitLaborHours, _mappitLaborHours)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.loginInfo, loginInfo) || other.loginInfo == loginInfo)&&(identical(other.authenticationCard, authenticationCard) || other.authenticationCard == authenticationCard)&&(identical(other.authenticationCardId, authenticationCardId) || other.authenticationCardId == authenticationCardId)&&(identical(other.nfcIdentifier, nfcIdentifier) || other.nfcIdentifier == nfcIdentifier)&&const DeepCollectionEquality().equals(other._linkedSupplyPointAssets, _linkedSupplyPointAssets)&&const DeepCollectionEquality().equals(other._linkedSupplyPointAssetsIds, _linkedSupplyPointAssetsIds)&&(identical(other.staticPosition, staticPosition) || other.staticPosition == staticPosition)&&const DeepCollectionEquality().equals(other._points, _points)&&const DeepCollectionEquality().equals(other._parameters, _parameters)&&const DeepCollectionEquality().equals(other._globalSensors, _globalSensors)&&(identical(other.mappitLaborStartTime, mappitLaborStartTime) || other.mappitLaborStartTime == mappitLaborStartTime)&&(identical(other.mappitLaborEndTime, mappitLaborEndTime) || other.mappitLaborEndTime == mappitLaborEndTime)&&const DeepCollectionEquality().equals(other._geofences, _geofences)&&const DeepCollectionEquality().equals(other._mappitSecondaryRoutesIds, _mappitSecondaryRoutesIds)&&(identical(other.isSuspended, isSuspended) || other.isSuspended == isSuspended)&&(identical(other.authenticationCardCardboardId, authenticationCardCardboardId) || other.authenticationCardCardboardId == authenticationCardCardboardId)&&(identical(other.authenticationCardTagId, authenticationCardTagId) || other.authenticationCardTagId == authenticationCardTagId)&&(identical(other.authenticationCardNfcId, authenticationCardNfcId) || other.authenticationCardNfcId == authenticationCardNfcId)&&(identical(other.authenticationCardCardboard, authenticationCardCardboard) || other.authenticationCardCardboard == authenticationCardCardboard)&&(identical(other.authenticationCardTag, authenticationCardTag) || other.authenticationCardTag == authenticationCardTag)&&(identical(other.authenticationCardNfc, authenticationCardNfc) || other.authenticationCardNfc == authenticationCardNfc)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _Asset&&(identical(other.id, id) || other.id == id)&&(identical(other.name, name) || other.name == name)&&(identical(other.plate, plate) || other.plate == plate)&&(identical(other.vin, vin) || other.vin == vin)&&(identical(other.dynamicIcon, dynamicIcon) || other.dynamicIcon == dynamicIcon)&&(identical(other.mode, mode) || other.mode == mode)&&const DeepCollectionEquality().equals(other._childrenIds, _childrenIds)&&const DeepCollectionEquality().equals(other._children, _children)&&const DeepCollectionEquality().equals(other._commands, _commands)&&const DeepCollectionEquality().equals(other._referencesIds, _referencesIds)&&const DeepCollectionEquality().equals(other._references, _references)&&const DeepCollectionEquality().equals(other._authenticatedAssetsIds, _authenticatedAssetsIds)&&const DeepCollectionEquality().equals(other._authenticatedAssets, _authenticatedAssets)&&const DeepCollectionEquality().equals(other._authenticatedUsersIds, _authenticatedUsersIds)&&const DeepCollectionEquality().equals(other._authenticatedUsers, _authenticatedUsers)&&(identical(other.kindId, kindId) || other.kindId == kindId)&&(identical(other.kind, kind) || other.kind == kind)&&const DeepCollectionEquality().equals(other._customFields, _customFields)&&const DeepCollectionEquality().equals(other._sensors, _sensors)&&(identical(other.primaryId, primaryId) || other.primaryId == primaryId)&&(identical(other.primary, primary) || other.primary == primary)&&const DeepCollectionEquality().equals(other._devicesIds, _devicesIds)&&const DeepCollectionEquality().equals(other._devices, _devices)&&(identical(other.qrCode, qrCode) || other.qrCode == qrCode)&&const DeepCollectionEquality().equals(other._externalIdentifiers, _externalIdentifiers)&&(identical(other.connection, connection) || other.connection == connection)&&(identical(other.telemetry, telemetry) || other.telemetry == telemetry)&&const DeepCollectionEquality().equals(other._tags, _tags)&&const DeepCollectionEquality().equals(other._access, _access)&&const DeepCollectionEquality().equals(other._lastExits, _lastExits)&&(identical(other.activeTime, activeTime) || other.activeTime == activeTime)&&const DeepCollectionEquality().equals(other._contacts, _contacts)&&const DeepCollectionEquality().equals(other._mappitLaborHours, _mappitLaborHours)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.loginInfo, loginInfo) || other.loginInfo == loginInfo)&&(identical(other.authenticationCard, authenticationCard) || other.authenticationCard == authenticationCard)&&(identical(other.authenticationCardId, authenticationCardId) || other.authenticationCardId == authenticationCardId)&&(identical(other.nfcIdentifier, nfcIdentifier) || other.nfcIdentifier == nfcIdentifier)&&const DeepCollectionEquality().equals(other._linkedSupplyPointAssets, _linkedSupplyPointAssets)&&const DeepCollectionEquality().equals(other._linkedSupplyPointAssetsIds, _linkedSupplyPointAssetsIds)&&const DeepCollectionEquality().equals(other._linkedStorageTerminals, _linkedStorageTerminals)&&const DeepCollectionEquality().equals(other._linkedStorageTerminalsIds, _linkedStorageTerminalsIds)&&(identical(other.staticPosition, staticPosition) || other.staticPosition == staticPosition)&&const DeepCollectionEquality().equals(other._points, _points)&&const DeepCollectionEquality().equals(other._parameters, _parameters)&&const DeepCollectionEquality().equals(other._globalSensors, _globalSensors)&&(identical(other.mappitLaborStartTime, mappitLaborStartTime) || other.mappitLaborStartTime == mappitLaborStartTime)&&(identical(other.mappitLaborEndTime, mappitLaborEndTime) || other.mappitLaborEndTime == mappitLaborEndTime)&&const DeepCollectionEquality().equals(other._geofences, _geofences)&&const DeepCollectionEquality().equals(other._mappitSecondaryRoutesIds, _mappitSecondaryRoutesIds)&&(identical(other.isSuspended, isSuspended) || other.isSuspended == isSuspended)&&(identical(other.authenticationCardCardboardId, authenticationCardCardboardId) || other.authenticationCardCardboardId == authenticationCardCardboardId)&&(identical(other.authenticationCardTagId, authenticationCardTagId) || other.authenticationCardTagId == authenticationCardTagId)&&(identical(other.authenticationCardNfcId, authenticationCardNfcId) || other.authenticationCardNfcId == authenticationCardNfcId)&&(identical(other.authenticationCardCardboard, authenticationCardCardboard) || other.authenticationCardCardboard == authenticationCardCardboard)&&(identical(other.authenticationCardTag, authenticationCardTag) || other.authenticationCardTag == authenticationCardTag)&&(identical(other.authenticationCardNfc, authenticationCardNfc) || other.authenticationCardNfc == authenticationCardNfc)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,name,plate,vin,dynamicIcon,mode,const DeepCollectionEquality().hash(_childrenIds),const DeepCollectionEquality().hash(_children),const DeepCollectionEquality().hash(_commands),const DeepCollectionEquality().hash(_referencesIds),const DeepCollectionEquality().hash(_references),const DeepCollectionEquality().hash(_authenticatedAssetsIds),const DeepCollectionEquality().hash(_authenticatedAssets),const DeepCollectionEquality().hash(_authenticatedUsersIds),const DeepCollectionEquality().hash(_authenticatedUsers),kindId,kind,const DeepCollectionEquality().hash(_customFields),const DeepCollectionEquality().hash(_sensors),primaryId,primary,const DeepCollectionEquality().hash(_devicesIds),const DeepCollectionEquality().hash(_devices),qrCode,const DeepCollectionEquality().hash(_externalIdentifiers),connection,telemetry,const DeepCollectionEquality().hash(_tags),const DeepCollectionEquality().hash(_access),const DeepCollectionEquality().hash(_lastExits),activeTime,const DeepCollectionEquality().hash(_contacts),const DeepCollectionEquality().hash(_mappitLaborHours),ownerId,loginInfo,authenticationCard,authenticationCardId,nfcIdentifier,const DeepCollectionEquality().hash(_linkedSupplyPointAssets),const DeepCollectionEquality().hash(_linkedSupplyPointAssetsIds),staticPosition,const DeepCollectionEquality().hash(_points),const DeepCollectionEquality().hash(_parameters),const DeepCollectionEquality().hash(_globalSensors),mappitLaborStartTime,mappitLaborEndTime,const DeepCollectionEquality().hash(_geofences),const DeepCollectionEquality().hash(_mappitSecondaryRoutesIds),isSuspended,authenticationCardCardboardId,authenticationCardTagId,authenticationCardNfcId,authenticationCardCardboard,authenticationCardTag,authenticationCardNfc]); +int get hashCode => Object.hashAll([runtimeType,id,name,plate,vin,dynamicIcon,mode,const DeepCollectionEquality().hash(_childrenIds),const DeepCollectionEquality().hash(_children),const DeepCollectionEquality().hash(_commands),const DeepCollectionEquality().hash(_referencesIds),const DeepCollectionEquality().hash(_references),const DeepCollectionEquality().hash(_authenticatedAssetsIds),const DeepCollectionEquality().hash(_authenticatedAssets),const DeepCollectionEquality().hash(_authenticatedUsersIds),const DeepCollectionEquality().hash(_authenticatedUsers),kindId,kind,const DeepCollectionEquality().hash(_customFields),const DeepCollectionEquality().hash(_sensors),primaryId,primary,const DeepCollectionEquality().hash(_devicesIds),const DeepCollectionEquality().hash(_devices),qrCode,const DeepCollectionEquality().hash(_externalIdentifiers),connection,telemetry,const DeepCollectionEquality().hash(_tags),const DeepCollectionEquality().hash(_access),const DeepCollectionEquality().hash(_lastExits),activeTime,const DeepCollectionEquality().hash(_contacts),const DeepCollectionEquality().hash(_mappitLaborHours),ownerId,loginInfo,authenticationCard,authenticationCardId,nfcIdentifier,const DeepCollectionEquality().hash(_linkedSupplyPointAssets),const DeepCollectionEquality().hash(_linkedSupplyPointAssetsIds),const DeepCollectionEquality().hash(_linkedStorageTerminals),const DeepCollectionEquality().hash(_linkedStorageTerminalsIds),staticPosition,const DeepCollectionEquality().hash(_points),const DeepCollectionEquality().hash(_parameters),const DeepCollectionEquality().hash(_globalSensors),mappitLaborStartTime,mappitLaborEndTime,const DeepCollectionEquality().hash(_geofences),const DeepCollectionEquality().hash(_mappitSecondaryRoutesIds),isSuspended,authenticationCardCardboardId,authenticationCardTagId,authenticationCardNfcId,authenticationCardCardboard,authenticationCardTag,authenticationCardNfc]); @override String toString() { - return 'Asset(id: $id, name: $name, plate: $plate, vin: $vin, dynamicIcon: $dynamicIcon, mode: $mode, childrenIds: $childrenIds, children: $children, commands: $commands, referencesIds: $referencesIds, references: $references, authenticatedAssetsIds: $authenticatedAssetsIds, authenticatedAssets: $authenticatedAssets, authenticatedUsersIds: $authenticatedUsersIds, authenticatedUsers: $authenticatedUsers, kindId: $kindId, kind: $kind, customFields: $customFields, sensors: $sensors, primaryId: $primaryId, primary: $primary, devicesIds: $devicesIds, devices: $devices, qrCode: $qrCode, externalIdentifiers: $externalIdentifiers, connection: $connection, telemetry: $telemetry, tags: $tags, access: $access, lastExits: $lastExits, activeTime: $activeTime, contacts: $contacts, mappitLaborHours: $mappitLaborHours, ownerId: $ownerId, loginInfo: $loginInfo, authenticationCard: $authenticationCard, authenticationCardId: $authenticationCardId, nfcIdentifier: $nfcIdentifier, linkedSupplyPointAssets: $linkedSupplyPointAssets, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, staticPosition: $staticPosition, points: $points, parameters: $parameters, globalSensors: $globalSensors, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, geofences: $geofences, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds, isSuspended: $isSuspended, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, authenticationCardCardboard: $authenticationCardCardboard, authenticationCardTag: $authenticationCardTag, authenticationCardNfc: $authenticationCardNfc)'; + return 'Asset(id: $id, name: $name, plate: $plate, vin: $vin, dynamicIcon: $dynamicIcon, mode: $mode, childrenIds: $childrenIds, children: $children, commands: $commands, referencesIds: $referencesIds, references: $references, authenticatedAssetsIds: $authenticatedAssetsIds, authenticatedAssets: $authenticatedAssets, authenticatedUsersIds: $authenticatedUsersIds, authenticatedUsers: $authenticatedUsers, kindId: $kindId, kind: $kind, customFields: $customFields, sensors: $sensors, primaryId: $primaryId, primary: $primary, devicesIds: $devicesIds, devices: $devices, qrCode: $qrCode, externalIdentifiers: $externalIdentifiers, connection: $connection, telemetry: $telemetry, tags: $tags, access: $access, lastExits: $lastExits, activeTime: $activeTime, contacts: $contacts, mappitLaborHours: $mappitLaborHours, ownerId: $ownerId, loginInfo: $loginInfo, authenticationCard: $authenticationCard, authenticationCardId: $authenticationCardId, nfcIdentifier: $nfcIdentifier, linkedSupplyPointAssets: $linkedSupplyPointAssets, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, linkedStorageTerminals: $linkedStorageTerminals, linkedStorageTerminalsIds: $linkedStorageTerminalsIds, staticPosition: $staticPosition, points: $points, parameters: $parameters, globalSensors: $globalSensors, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, geofences: $geofences, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds, isSuspended: $isSuspended, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, authenticationCardCardboard: $authenticationCardCardboard, authenticationCardTag: $authenticationCardTag, authenticationCardNfc: $authenticationCardNfc)'; } @@ -1911,7 +1943,7 @@ abstract mixin class _$AssetCopyWith<$Res> implements $AssetCopyWith<$Res> { factory _$AssetCopyWith(_Asset value, $Res Function(_Asset) _then) = __$AssetCopyWithImpl; @override @useResult $Res call({ - String id, String name, String? plate, String? vin, Avatar? dynamicIcon,@AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc + String id, String name, String? plate, String? vin, Avatar? dynamicIcon,@AssetModeOrNullConverter() AssetMode? mode, List? childrenIds, List? children, List? commands, List? referencesIds, List? references, List? authenticatedAssetsIds, List? authenticatedAssets, List? authenticatedUsersIds, List? authenticatedUsers, String? kindId, Category? kind, List? customFields, List? sensors, String? primaryId, Device? primary, List? devicesIds, List? devices, String? qrCode, List? externalIdentifiers, Connection? connection, AssetTelemetry? telemetry, List? tags, List? access, List? lastExits, String? activeTime, List? contacts, List? mappitLaborHours, String? ownerId, AssetLoginInfo? loginInfo,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') AtsAuthenticationCard? authenticationCard,@Deprecated('Use authenticationCardCardboardId, authenticationCardTag and authenticationCardNfc instead') String? authenticationCardId, String? nfcIdentifier, List? linkedSupplyPointAssets, List? linkedSupplyPointAssetsIds, List? linkedStorageTerminals, List? linkedStorageTerminalsIds, StaticPosition? staticPosition, List? points, List parameters, List? globalSensors,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborStartTime,@TimeOfDayOrNullConverter() TimeOfDay? mappitLaborEndTime, List? geofences, List? mappitSecondaryRoutesIds, bool? isSuspended, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, AtsAuthenticationCard? authenticationCardCardboard, AtsAuthenticationCard? authenticationCardTag, AtsAuthenticationCard? authenticationCardNfc }); @@ -1928,7 +1960,7 @@ class __$AssetCopyWithImpl<$Res> /// Create a copy of Asset /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? name = null,Object? plate = freezed,Object? vin = freezed,Object? dynamicIcon = freezed,Object? mode = freezed,Object? childrenIds = freezed,Object? children = freezed,Object? commands = freezed,Object? referencesIds = freezed,Object? references = freezed,Object? authenticatedAssetsIds = freezed,Object? authenticatedAssets = freezed,Object? authenticatedUsersIds = freezed,Object? authenticatedUsers = freezed,Object? kindId = freezed,Object? kind = freezed,Object? customFields = freezed,Object? sensors = freezed,Object? primaryId = freezed,Object? primary = freezed,Object? devicesIds = freezed,Object? devices = freezed,Object? qrCode = freezed,Object? externalIdentifiers = freezed,Object? connection = freezed,Object? telemetry = freezed,Object? tags = freezed,Object? access = freezed,Object? lastExits = freezed,Object? activeTime = freezed,Object? contacts = freezed,Object? mappitLaborHours = freezed,Object? ownerId = freezed,Object? loginInfo = freezed,Object? authenticationCard = freezed,Object? authenticationCardId = freezed,Object? nfcIdentifier = freezed,Object? linkedSupplyPointAssets = freezed,Object? linkedSupplyPointAssetsIds = freezed,Object? staticPosition = freezed,Object? points = freezed,Object? parameters = null,Object? globalSensors = freezed,Object? mappitLaborStartTime = freezed,Object? mappitLaborEndTime = freezed,Object? geofences = freezed,Object? mappitSecondaryRoutesIds = freezed,Object? isSuspended = freezed,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? authenticationCardCardboard = freezed,Object? authenticationCardTag = freezed,Object? authenticationCardNfc = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = null,Object? name = null,Object? plate = freezed,Object? vin = freezed,Object? dynamicIcon = freezed,Object? mode = freezed,Object? childrenIds = freezed,Object? children = freezed,Object? commands = freezed,Object? referencesIds = freezed,Object? references = freezed,Object? authenticatedAssetsIds = freezed,Object? authenticatedAssets = freezed,Object? authenticatedUsersIds = freezed,Object? authenticatedUsers = freezed,Object? kindId = freezed,Object? kind = freezed,Object? customFields = freezed,Object? sensors = freezed,Object? primaryId = freezed,Object? primary = freezed,Object? devicesIds = freezed,Object? devices = freezed,Object? qrCode = freezed,Object? externalIdentifiers = freezed,Object? connection = freezed,Object? telemetry = freezed,Object? tags = freezed,Object? access = freezed,Object? lastExits = freezed,Object? activeTime = freezed,Object? contacts = freezed,Object? mappitLaborHours = freezed,Object? ownerId = freezed,Object? loginInfo = freezed,Object? authenticationCard = freezed,Object? authenticationCardId = freezed,Object? nfcIdentifier = freezed,Object? linkedSupplyPointAssets = freezed,Object? linkedSupplyPointAssetsIds = freezed,Object? linkedStorageTerminals = freezed,Object? linkedStorageTerminalsIds = freezed,Object? staticPosition = freezed,Object? points = freezed,Object? parameters = null,Object? globalSensors = freezed,Object? mappitLaborStartTime = freezed,Object? mappitLaborEndTime = freezed,Object? geofences = freezed,Object? mappitSecondaryRoutesIds = freezed,Object? isSuspended = freezed,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? authenticationCardCardboard = freezed,Object? authenticationCardTag = freezed,Object? authenticationCardNfc = freezed,}) { return _then(_Asset( id: null == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable @@ -1970,6 +2002,8 @@ as AtsAuthenticationCard?,authenticationCardId: freezed == authenticationCardId as String?,nfcIdentifier: freezed == nfcIdentifier ? _self.nfcIdentifier : nfcIdentifier // ignore: cast_nullable_to_non_nullable as String?,linkedSupplyPointAssets: freezed == linkedSupplyPointAssets ? _self._linkedSupplyPointAssets : linkedSupplyPointAssets // ignore: cast_nullable_to_non_nullable as List?,linkedSupplyPointAssetsIds: freezed == linkedSupplyPointAssetsIds ? _self._linkedSupplyPointAssetsIds : linkedSupplyPointAssetsIds // ignore: cast_nullable_to_non_nullable +as List?,linkedStorageTerminals: freezed == linkedStorageTerminals ? _self._linkedStorageTerminals : linkedStorageTerminals // ignore: cast_nullable_to_non_nullable +as List?,linkedStorageTerminalsIds: freezed == linkedStorageTerminalsIds ? _self._linkedStorageTerminalsIds : linkedStorageTerminalsIds // ignore: cast_nullable_to_non_nullable as List?,staticPosition: freezed == staticPosition ? _self.staticPosition : staticPosition // ignore: cast_nullable_to_non_nullable as StaticPosition?,points: freezed == points ? _self._points : points // ignore: cast_nullable_to_non_nullable as List?,parameters: null == parameters ? _self._parameters : parameters // ignore: cast_nullable_to_non_nullable @@ -2130,7 +2164,7 @@ mixin _$AssetInput { String? get id; set id(String? value); String get name; set name(String value); String? get kindId; set kindId(String? value); String get plate; set plate(String value); String get vin; set vin(String value); List get contacts; set contacts(List value); ConnectionInput get connection; set connection(ConnectionInput value);@AssetModeConverter() AssetMode get mode;@AssetModeConverter() set mode(AssetMode value); String? get primaryId; set primaryId(String? value); List get authenticatedUsersIds; set authenticatedUsersIds(List value); List get authenticatedAssetsIds; set authenticatedAssetsIds(List value); List get externalIdentifiers; set externalIdentifiers(List value); List get devicesIds; set devicesIds(List value); List get childrenIds; set childrenIds(List value); List get referencesIds; set referencesIds(List value); List get customFields; set customFields(List value); List get sensors; set sensors(List value); AvatarInput? get dynamicIcon; set dynamicIcon(AvatarInput? value); StaticPositionInput? get staticPosition; set staticPosition(StaticPositionInput? value); AssetLoginInfoInput? get loginInfo; set loginInfo(AssetLoginInfoInput? value); List? get points; set points(List? value);// ATS Specific fields String get nfcIdentifier;// ATS Specific fields - set nfcIdentifier(String value); String? get authenticationCardId; set authenticationCardId(String? value); List get linkedSupplyPointAssetsIds; set linkedSupplyPointAssetsIds(List value); List get geofencesIds; set geofencesIds(List value); String? get authenticationCardCardboardId; set authenticationCardCardboardId(String? value); String? get authenticationCardTagId; set authenticationCardTagId(String? value); String? get authenticationCardNfcId; set authenticationCardNfcId(String? value);// Mapppit specific fields + set nfcIdentifier(String value); String? get authenticationCardId; set authenticationCardId(String? value); List get linkedSupplyPointAssetsIds; set linkedSupplyPointAssetsIds(List value); List get linkedStorageTerminalsIds; set linkedStorageTerminalsIds(List value); List get geofencesIds; set geofencesIds(List value); String? get authenticationCardCardboardId; set authenticationCardCardboardId(String? value); String? get authenticationCardTagId; set authenticationCardTagId(String? value); String? get authenticationCardNfcId; set authenticationCardNfcId(String? value);// Mapppit specific fields List get mappitLaborHours;// Mapppit specific fields set mappitLaborHours(List value);@TimeOfDayConverter() TimeOfDay get mappitLaborStartTime;@TimeOfDayConverter() set mappitLaborStartTime(TimeOfDay value);@TimeOfDayConverter() TimeOfDay get mappitLaborEndTime;@TimeOfDayConverter() set mappitLaborEndTime(TimeOfDay value); List get mappitSecondaryRoutesIds; set mappitSecondaryRoutesIds(List value); /// Create a copy of AssetInput @@ -2147,7 +2181,7 @@ $AssetInputCopyWith get copyWith => _$AssetInputCopyWithImpl { factory $AssetInputCopyWith(AssetInput value, $Res Function(AssetInput) _then) = _$AssetInputCopyWithImpl; @useResult $Res call({ - String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection,@AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours,@TimeOfDayConverter() TimeOfDay mappitLaborStartTime,@TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds + String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection,@AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List linkedStorageTerminalsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours,@TimeOfDayConverter() TimeOfDay mappitLaborStartTime,@TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds }); @@ -2175,7 +2209,7 @@ class _$AssetInputCopyWithImpl<$Res> /// Create a copy of AssetInput /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? name = null,Object? kindId = freezed,Object? plate = null,Object? vin = null,Object? contacts = null,Object? connection = null,Object? mode = null,Object? primaryId = freezed,Object? authenticatedUsersIds = null,Object? authenticatedAssetsIds = null,Object? externalIdentifiers = null,Object? devicesIds = null,Object? childrenIds = null,Object? referencesIds = null,Object? customFields = null,Object? sensors = null,Object? dynamicIcon = freezed,Object? staticPosition = freezed,Object? loginInfo = freezed,Object? points = freezed,Object? nfcIdentifier = null,Object? authenticationCardId = freezed,Object? linkedSupplyPointAssetsIds = null,Object? geofencesIds = null,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? mappitLaborHours = null,Object? mappitLaborStartTime = null,Object? mappitLaborEndTime = null,Object? mappitSecondaryRoutesIds = null,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? name = null,Object? kindId = freezed,Object? plate = null,Object? vin = null,Object? contacts = null,Object? connection = null,Object? mode = null,Object? primaryId = freezed,Object? authenticatedUsersIds = null,Object? authenticatedAssetsIds = null,Object? externalIdentifiers = null,Object? devicesIds = null,Object? childrenIds = null,Object? referencesIds = null,Object? customFields = null,Object? sensors = null,Object? dynamicIcon = freezed,Object? staticPosition = freezed,Object? loginInfo = freezed,Object? points = freezed,Object? nfcIdentifier = null,Object? authenticationCardId = freezed,Object? linkedSupplyPointAssetsIds = null,Object? linkedStorageTerminalsIds = null,Object? geofencesIds = null,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? mappitLaborHours = null,Object? mappitLaborStartTime = null,Object? mappitLaborEndTime = null,Object? mappitSecondaryRoutesIds = null,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable @@ -2201,6 +2235,7 @@ as AssetLoginInfoInput?,points: freezed == points ? _self.points : points // ign as List?,nfcIdentifier: null == nfcIdentifier ? _self.nfcIdentifier : nfcIdentifier // ignore: cast_nullable_to_non_nullable as String,authenticationCardId: freezed == authenticationCardId ? _self.authenticationCardId : authenticationCardId // ignore: cast_nullable_to_non_nullable as String?,linkedSupplyPointAssetsIds: null == linkedSupplyPointAssetsIds ? _self.linkedSupplyPointAssetsIds : linkedSupplyPointAssetsIds // ignore: cast_nullable_to_non_nullable +as List,linkedStorageTerminalsIds: null == linkedStorageTerminalsIds ? _self.linkedStorageTerminalsIds : linkedStorageTerminalsIds // ignore: cast_nullable_to_non_nullable as List,geofencesIds: null == geofencesIds ? _self.geofencesIds : geofencesIds // ignore: cast_nullable_to_non_nullable as List,authenticationCardCardboardId: freezed == authenticationCardCardboardId ? _self.authenticationCardCardboardId : authenticationCardCardboardId // ignore: cast_nullable_to_non_nullable as String?,authenticationCardTagId: freezed == authenticationCardTagId ? _self.authenticationCardTagId : authenticationCardTagId // ignore: cast_nullable_to_non_nullable @@ -2339,10 +2374,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List linkedStorageTerminalsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _AssetInput() when $default != null: -return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: +return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminalsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: return orElse(); } @@ -2360,10 +2395,10 @@ return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.con /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List linkedStorageTerminalsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds) $default,) {final _that = this; switch (_that) { case _AssetInput(): -return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: +return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminalsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: throw StateError('Unexpected subclass'); } @@ -2380,10 +2415,10 @@ return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.con /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection, @AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List linkedStorageTerminalsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours, @TimeOfDayConverter() TimeOfDay mappitLaborStartTime, @TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds)? $default,) {final _that = this; switch (_that) { case _AssetInput() when $default != null: -return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: +return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.contacts,_that.connection,_that.mode,_that.primaryId,_that.authenticatedUsersIds,_that.authenticatedAssetsIds,_that.externalIdentifiers,_that.devicesIds,_that.childrenIds,_that.referencesIds,_that.customFields,_that.sensors,_that.dynamicIcon,_that.staticPosition,_that.loginInfo,_that.points,_that.nfcIdentifier,_that.authenticationCardId,_that.linkedSupplyPointAssetsIds,_that.linkedStorageTerminalsIds,_that.geofencesIds,_that.authenticationCardCardboardId,_that.authenticationCardTagId,_that.authenticationCardNfcId,_that.mappitLaborHours,_that.mappitLaborStartTime,_that.mappitLaborEndTime,_that.mappitSecondaryRoutesIds);case _: return null; } @@ -2395,7 +2430,7 @@ return $default(_that.id,_that.name,_that.kindId,_that.plate,_that.vin,_that.con @JsonSerializable() class _AssetInput extends AssetInput { - _AssetInput({this.id, this.name = '', this.kindId, this.plate = '', this.vin = '', this.contacts = const [], required this.connection, @AssetModeConverter() this.mode = AssetMode.single, this.primaryId, this.authenticatedUsersIds = const [], this.authenticatedAssetsIds = const [], this.externalIdentifiers = const [], this.devicesIds = const [], this.childrenIds = const [], this.referencesIds = const [], this.customFields = const [], this.sensors = const [], this.dynamicIcon, this.staticPosition, this.loginInfo, this.points, this.nfcIdentifier = '', this.authenticationCardId, this.linkedSupplyPointAssetsIds = const [], this.geofencesIds = const [], this.authenticationCardCardboardId, this.authenticationCardTagId, this.authenticationCardNfcId, this.mappitLaborHours = const [], @TimeOfDayConverter() this.mappitLaborStartTime = const TimeOfDay(hour: 9, minute: 0), @TimeOfDayConverter() this.mappitLaborEndTime = const TimeOfDay(hour: 18, minute: 0), this.mappitSecondaryRoutesIds = const []}): super._(); + _AssetInput({this.id, this.name = '', this.kindId, this.plate = '', this.vin = '', this.contacts = const [], required this.connection, @AssetModeConverter() this.mode = AssetMode.single, this.primaryId, this.authenticatedUsersIds = const [], this.authenticatedAssetsIds = const [], this.externalIdentifiers = const [], this.devicesIds = const [], this.childrenIds = const [], this.referencesIds = const [], this.customFields = const [], this.sensors = const [], this.dynamicIcon, this.staticPosition, this.loginInfo, this.points, this.nfcIdentifier = '', this.authenticationCardId, this.linkedSupplyPointAssetsIds = const [], this.linkedStorageTerminalsIds = const [], this.geofencesIds = const [], this.authenticationCardCardboardId, this.authenticationCardTagId, this.authenticationCardNfcId, this.mappitLaborHours = const [], @TimeOfDayConverter() this.mappitLaborStartTime = const TimeOfDay(hour: 9, minute: 0), @TimeOfDayConverter() this.mappitLaborEndTime = const TimeOfDay(hour: 18, minute: 0), this.mappitSecondaryRoutesIds = const []}): super._(); factory _AssetInput.fromJson(Map json) => _$AssetInputFromJson(json); @override String? id; @@ -2423,6 +2458,7 @@ class _AssetInput extends AssetInput { @override@JsonKey() String nfcIdentifier; @override String? authenticationCardId; @override@JsonKey() List linkedSupplyPointAssetsIds; +@override@JsonKey() List linkedStorageTerminalsIds; @override@JsonKey() List geofencesIds; @override String? authenticationCardCardboardId; @override String? authenticationCardTagId; @@ -2448,7 +2484,7 @@ Map toJson() { @override String toString() { - return 'AssetInput(id: $id, name: $name, kindId: $kindId, plate: $plate, vin: $vin, contacts: $contacts, connection: $connection, mode: $mode, primaryId: $primaryId, authenticatedUsersIds: $authenticatedUsersIds, authenticatedAssetsIds: $authenticatedAssetsIds, externalIdentifiers: $externalIdentifiers, devicesIds: $devicesIds, childrenIds: $childrenIds, referencesIds: $referencesIds, customFields: $customFields, sensors: $sensors, dynamicIcon: $dynamicIcon, staticPosition: $staticPosition, loginInfo: $loginInfo, points: $points, nfcIdentifier: $nfcIdentifier, authenticationCardId: $authenticationCardId, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, geofencesIds: $geofencesIds, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, mappitLaborHours: $mappitLaborHours, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds)'; + return 'AssetInput(id: $id, name: $name, kindId: $kindId, plate: $plate, vin: $vin, contacts: $contacts, connection: $connection, mode: $mode, primaryId: $primaryId, authenticatedUsersIds: $authenticatedUsersIds, authenticatedAssetsIds: $authenticatedAssetsIds, externalIdentifiers: $externalIdentifiers, devicesIds: $devicesIds, childrenIds: $childrenIds, referencesIds: $referencesIds, customFields: $customFields, sensors: $sensors, dynamicIcon: $dynamicIcon, staticPosition: $staticPosition, loginInfo: $loginInfo, points: $points, nfcIdentifier: $nfcIdentifier, authenticationCardId: $authenticationCardId, linkedSupplyPointAssetsIds: $linkedSupplyPointAssetsIds, linkedStorageTerminalsIds: $linkedStorageTerminalsIds, geofencesIds: $geofencesIds, authenticationCardCardboardId: $authenticationCardCardboardId, authenticationCardTagId: $authenticationCardTagId, authenticationCardNfcId: $authenticationCardNfcId, mappitLaborHours: $mappitLaborHours, mappitLaborStartTime: $mappitLaborStartTime, mappitLaborEndTime: $mappitLaborEndTime, mappitSecondaryRoutesIds: $mappitSecondaryRoutesIds)'; } @@ -2459,7 +2495,7 @@ abstract mixin class _$AssetInputCopyWith<$Res> implements $AssetInputCopyWith<$ factory _$AssetInputCopyWith(_AssetInput value, $Res Function(_AssetInput) _then) = __$AssetInputCopyWithImpl; @override @useResult $Res call({ - String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection,@AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours,@TimeOfDayConverter() TimeOfDay mappitLaborStartTime,@TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds + String? id, String name, String? kindId, String plate, String vin, List contacts, ConnectionInput connection,@AssetModeConverter() AssetMode mode, String? primaryId, List authenticatedUsersIds, List authenticatedAssetsIds, List externalIdentifiers, List devicesIds, List childrenIds, List referencesIds, List customFields, List sensors, AvatarInput? dynamicIcon, StaticPositionInput? staticPosition, AssetLoginInfoInput? loginInfo, List? points, String nfcIdentifier, String? authenticationCardId, List linkedSupplyPointAssetsIds, List linkedStorageTerminalsIds, List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, String? authenticationCardNfcId, List mappitLaborHours,@TimeOfDayConverter() TimeOfDay mappitLaborStartTime,@TimeOfDayConverter() TimeOfDay mappitLaborEndTime, List mappitSecondaryRoutesIds }); @@ -2476,7 +2512,7 @@ class __$AssetInputCopyWithImpl<$Res> /// Create a copy of AssetInput /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? name = null,Object? kindId = freezed,Object? plate = null,Object? vin = null,Object? contacts = null,Object? connection = null,Object? mode = null,Object? primaryId = freezed,Object? authenticatedUsersIds = null,Object? authenticatedAssetsIds = null,Object? externalIdentifiers = null,Object? devicesIds = null,Object? childrenIds = null,Object? referencesIds = null,Object? customFields = null,Object? sensors = null,Object? dynamicIcon = freezed,Object? staticPosition = freezed,Object? loginInfo = freezed,Object? points = freezed,Object? nfcIdentifier = null,Object? authenticationCardId = freezed,Object? linkedSupplyPointAssetsIds = null,Object? geofencesIds = null,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? mappitLaborHours = null,Object? mappitLaborStartTime = null,Object? mappitLaborEndTime = null,Object? mappitSecondaryRoutesIds = null,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? name = null,Object? kindId = freezed,Object? plate = null,Object? vin = null,Object? contacts = null,Object? connection = null,Object? mode = null,Object? primaryId = freezed,Object? authenticatedUsersIds = null,Object? authenticatedAssetsIds = null,Object? externalIdentifiers = null,Object? devicesIds = null,Object? childrenIds = null,Object? referencesIds = null,Object? customFields = null,Object? sensors = null,Object? dynamicIcon = freezed,Object? staticPosition = freezed,Object? loginInfo = freezed,Object? points = freezed,Object? nfcIdentifier = null,Object? authenticationCardId = freezed,Object? linkedSupplyPointAssetsIds = null,Object? linkedStorageTerminalsIds = null,Object? geofencesIds = null,Object? authenticationCardCardboardId = freezed,Object? authenticationCardTagId = freezed,Object? authenticationCardNfcId = freezed,Object? mappitLaborHours = null,Object? mappitLaborStartTime = null,Object? mappitLaborEndTime = null,Object? mappitSecondaryRoutesIds = null,}) { return _then(_AssetInput( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,name: null == name ? _self.name : name // ignore: cast_nullable_to_non_nullable @@ -2502,6 +2538,7 @@ as AssetLoginInfoInput?,points: freezed == points ? _self.points : points // ign as List?,nfcIdentifier: null == nfcIdentifier ? _self.nfcIdentifier : nfcIdentifier // ignore: cast_nullable_to_non_nullable as String,authenticationCardId: freezed == authenticationCardId ? _self.authenticationCardId : authenticationCardId // ignore: cast_nullable_to_non_nullable as String?,linkedSupplyPointAssetsIds: null == linkedSupplyPointAssetsIds ? _self.linkedSupplyPointAssetsIds : linkedSupplyPointAssetsIds // ignore: cast_nullable_to_non_nullable +as List,linkedStorageTerminalsIds: null == linkedStorageTerminalsIds ? _self.linkedStorageTerminalsIds : linkedStorageTerminalsIds // ignore: cast_nullable_to_non_nullable as List,geofencesIds: null == geofencesIds ? _self.geofencesIds : geofencesIds // ignore: cast_nullable_to_non_nullable as List,authenticationCardCardboardId: freezed == authenticationCardCardboardId ? _self.authenticationCardCardboardId : authenticationCardCardboardId // ignore: cast_nullable_to_non_nullable as String?,authenticationCardTagId: freezed == authenticationCardTagId ? _self.authenticationCardTagId : authenticationCardTagId // ignore: cast_nullable_to_non_nullable diff --git a/lib/src/assets/assets.g.dart b/lib/src/assets/assets.g.dart index 13789361..b87e77fe 100644 --- a/lib/src/assets/assets.g.dart +++ b/lib/src/assets/assets.g.dart @@ -163,6 +163,13 @@ _Asset _$AssetFromJson(Map json) => _Asset( (json['linkedSupplyPointAssetsIds'] as List?) ?.map((e) => e as String) .toList(), + linkedStorageTerminals: (json['linkedStorageTerminals'] as List?) + ?.map((e) => Asset.fromJson(e as Map)) + .toList(), + linkedStorageTerminalsIds: + (json['linkedStorageTerminalsIds'] as List?) + ?.map((e) => e as String) + .toList(), staticPosition: json['staticPosition'] == null ? null : StaticPosition.fromJson(json['staticPosition'] as Map), @@ -260,6 +267,10 @@ Map _$AssetToJson(_Asset instance) => { ?.map((e) => e.toJson()) .toList(), 'linkedSupplyPointAssetsIds': instance.linkedSupplyPointAssetsIds, + 'linkedStorageTerminals': instance.linkedStorageTerminals + ?.map((e) => e.toJson()) + .toList(), + 'linkedStorageTerminalsIds': instance.linkedStorageTerminalsIds, 'staticPosition': instance.staticPosition?.toJson(), 'points': instance.points?.map((e) => e.toJson()).toList(), 'parameters': instance.parameters, @@ -360,6 +371,11 @@ _AssetInput _$AssetInputFromJson(Map json) => _AssetInput( ?.map((e) => e as String) .toList() ?? const [], + linkedStorageTerminalsIds: + (json['linkedStorageTerminalsIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], geofencesIds: (json['geofencesIds'] as List?) ?.map((e) => e as String) @@ -418,6 +434,7 @@ Map _$AssetInputToJson( 'nfcIdentifier': instance.nfcIdentifier, 'authenticationCardId': instance.authenticationCardId, 'linkedSupplyPointAssetsIds': instance.linkedSupplyPointAssetsIds, + 'linkedStorageTerminalsIds': instance.linkedStorageTerminalsIds, 'geofencesIds': instance.geofencesIds, 'authenticationCardCardboardId': instance.authenticationCardCardboardId, 'authenticationCardTagId': instance.authenticationCardTagId, diff --git a/lib/src/assets/src/asset.dart b/lib/src/assets/src/asset.dart index 9882d6df..f23169ca 100644 --- a/lib/src/assets/src/asset.dart +++ b/lib/src/assets/src/asset.dart @@ -138,6 +138,14 @@ abstract class Asset with _$Asset { /// Only used in ATS apps. List? linkedSupplyPointAssetsIds, + /// [linkedStorageTerminals] refers to the list of storage terminals assets linked to this asset. + /// Only used in ATS apps. + List? linkedStorageTerminals, + + /// [linkedStorageTerminalsIds] refers to the list of storage terminals assets IDs linked to this asset. + /// Only used in ATS apps. + List? linkedStorageTerminalsIds, + /// [staticPosition] refers to the static position of the asset. /// Only used when mode is [AssetMode.fixed]. StaticPosition? staticPosition, @@ -223,6 +231,7 @@ abstract class AssetInput with _$AssetInput { @Default('') String nfcIdentifier, String? authenticationCardId, @Default([]) List linkedSupplyPointAssetsIds, + @Default([]) List linkedStorageTerminalsIds, @Default([]) List geofencesIds, String? authenticationCardCardboardId, String? authenticationCardTagId, diff --git a/lib/src/ats/ats.freezed.dart b/lib/src/ats/ats.freezed.dart index 68b75381..5d1e0dae 100644 --- a/lib/src/ats/ats.freezed.dart +++ b/lib/src/ats/ats.freezed.dart @@ -5582,7 +5582,8 @@ mixin _$AtsPurchaseOrder { bool? get hasReception;/// Legal information about the transport. Please read the comments of TransportInformation definition for more information. AtsTransportInformation? get transportInformation;/// True if the purchase order has a raw xml bool? get hasRawXml;/// Invoice type (NFe, CTe) - String? get invoiceType;/// Parent invoice + String? get invoiceType;/// Invoice identifier (chNFe/chCTe) + String? get invoiceId;/// Parent invoice AtsPurchaseOrder? get parentInvoice;/// Ide information AtsIdeInformation? get ideInformation;/// Unix of reception at. @TimestampOrNullConverter() DateTime? get receptionAt;/// Purchase order operation @@ -5610,16 +5611,16 @@ $AtsPurchaseOrderCopyWith get copyWith => _$AtsPurchaseOrderCo @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is AtsPurchaseOrder&&(identical(other.id, id) || other.id == id)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.orderId, orderId) || other.orderId == orderId)&&(identical(other.assetId, assetId) || other.assetId == assetId)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.receivedAt, receivedAt) || other.receivedAt == receivedAt)&&(identical(other.asset, asset) || other.asset == asset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.receiverInformation, receiverInformation) || other.receiverInformation == receiverInformation)&&const DeepCollectionEquality().equals(other.productsInformation, productsInformation)&&(identical(other.total, total) || other.total == total)&&(identical(other.isReceived, isReceived) || other.isReceived == isReceived)&&(identical(other.hasReception, hasReception) || other.hasReception == hasReception)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.hasRawXml, hasRawXml) || other.hasRawXml == hasRawXml)&&(identical(other.invoiceType, invoiceType) || other.invoiceType == invoiceType)&&(identical(other.parentInvoice, parentInvoice) || other.parentInvoice == parentInvoice)&&(identical(other.ideInformation, ideInformation) || other.ideInformation == ideInformation)&&(identical(other.receptionAt, receptionAt) || other.receptionAt == receptionAt)&&(identical(other.action, action) || other.action == action)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.inTransitAt, inTransitAt) || other.inTransitAt == inTransitAt)&&(identical(other.waitingToDispatchAt, waitingToDispatchAt) || other.waitingToDispatchAt == waitingToDispatchAt)&&(identical(other.deliveredAt, deliveredAt) || other.deliveredAt == deliveredAt)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&(identical(other.category, category) || other.category == category)&&(identical(other.operation, operation) || other.operation == operation)&&(identical(other.eta, eta) || other.eta == eta)&&(identical(other.etaUpdatedAt, etaUpdatedAt) || other.etaUpdatedAt == etaUpdatedAt)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is AtsPurchaseOrder&&(identical(other.id, id) || other.id == id)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.orderId, orderId) || other.orderId == orderId)&&(identical(other.assetId, assetId) || other.assetId == assetId)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.receivedAt, receivedAt) || other.receivedAt == receivedAt)&&(identical(other.asset, asset) || other.asset == asset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.receiverInformation, receiverInformation) || other.receiverInformation == receiverInformation)&&const DeepCollectionEquality().equals(other.productsInformation, productsInformation)&&(identical(other.total, total) || other.total == total)&&(identical(other.isReceived, isReceived) || other.isReceived == isReceived)&&(identical(other.hasReception, hasReception) || other.hasReception == hasReception)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.hasRawXml, hasRawXml) || other.hasRawXml == hasRawXml)&&(identical(other.invoiceType, invoiceType) || other.invoiceType == invoiceType)&&(identical(other.invoiceId, invoiceId) || other.invoiceId == invoiceId)&&(identical(other.parentInvoice, parentInvoice) || other.parentInvoice == parentInvoice)&&(identical(other.ideInformation, ideInformation) || other.ideInformation == ideInformation)&&(identical(other.receptionAt, receptionAt) || other.receptionAt == receptionAt)&&(identical(other.action, action) || other.action == action)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.inTransitAt, inTransitAt) || other.inTransitAt == inTransitAt)&&(identical(other.waitingToDispatchAt, waitingToDispatchAt) || other.waitingToDispatchAt == waitingToDispatchAt)&&(identical(other.deliveredAt, deliveredAt) || other.deliveredAt == deliveredAt)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&(identical(other.category, category) || other.category == category)&&(identical(other.operation, operation) || other.operation == operation)&&(identical(other.eta, eta) || other.eta == eta)&&(identical(other.etaUpdatedAt, etaUpdatedAt) || other.etaUpdatedAt == etaUpdatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,ownerId,orderId,assetId,sellerAssetId,transportAssetId,purchasedAt,receivedAt,asset,sellerInformation,receiverInformation,const DeepCollectionEquality().hash(productsInformation),total,isReceived,hasReception,transportInformation,hasRawXml,invoiceType,parentInvoice,ideInformation,receptionAt,action,transportAsset,sellerAsset,orderStatus,inTransitAt,waitingToDispatchAt,deliveredAt,deliverCategory,category,operation,eta,etaUpdatedAt]); +int get hashCode => Object.hashAll([runtimeType,id,ownerId,orderId,assetId,sellerAssetId,transportAssetId,purchasedAt,receivedAt,asset,sellerInformation,receiverInformation,const DeepCollectionEquality().hash(productsInformation),total,isReceived,hasReception,transportInformation,hasRawXml,invoiceType,invoiceId,parentInvoice,ideInformation,receptionAt,action,transportAsset,sellerAsset,orderStatus,inTransitAt,waitingToDispatchAt,deliveredAt,deliverCategory,category,operation,eta,etaUpdatedAt]); @override String toString() { - return 'AtsPurchaseOrder(id: $id, ownerId: $ownerId, orderId: $orderId, assetId: $assetId, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, purchasedAt: $purchasedAt, receivedAt: $receivedAt, asset: $asset, sellerInformation: $sellerInformation, receiverInformation: $receiverInformation, productsInformation: $productsInformation, total: $total, isReceived: $isReceived, hasReception: $hasReception, transportInformation: $transportInformation, hasRawXml: $hasRawXml, invoiceType: $invoiceType, parentInvoice: $parentInvoice, ideInformation: $ideInformation, receptionAt: $receptionAt, action: $action, transportAsset: $transportAsset, sellerAsset: $sellerAsset, orderStatus: $orderStatus, inTransitAt: $inTransitAt, waitingToDispatchAt: $waitingToDispatchAt, deliveredAt: $deliveredAt, deliverCategory: $deliverCategory, category: $category, operation: $operation, eta: $eta, etaUpdatedAt: $etaUpdatedAt)'; + return 'AtsPurchaseOrder(id: $id, ownerId: $ownerId, orderId: $orderId, assetId: $assetId, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, purchasedAt: $purchasedAt, receivedAt: $receivedAt, asset: $asset, sellerInformation: $sellerInformation, receiverInformation: $receiverInformation, productsInformation: $productsInformation, total: $total, isReceived: $isReceived, hasReception: $hasReception, transportInformation: $transportInformation, hasRawXml: $hasRawXml, invoiceType: $invoiceType, invoiceId: $invoiceId, parentInvoice: $parentInvoice, ideInformation: $ideInformation, receptionAt: $receptionAt, action: $action, transportAsset: $transportAsset, sellerAsset: $sellerAsset, orderStatus: $orderStatus, inTransitAt: $inTransitAt, waitingToDispatchAt: $waitingToDispatchAt, deliveredAt: $deliveredAt, deliverCategory: $deliverCategory, category: $category, operation: $operation, eta: $eta, etaUpdatedAt: $etaUpdatedAt)'; } @@ -5630,7 +5631,7 @@ abstract mixin class $AtsPurchaseOrderCopyWith<$Res> { factory $AtsPurchaseOrderCopyWith(AtsPurchaseOrder value, $Res Function(AtsPurchaseOrder) _then) = _$AtsPurchaseOrderCopyWithImpl; @useResult $Res call({ - String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation,@TimestampOrNullConverter() DateTime? receptionAt,@PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset,@AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus,@TimestampOrNullConverter() DateTime? inTransitAt,@TimestampOrNullConverter() DateTime? waitingToDispatchAt,@TimestampOrNullConverter() DateTime? deliveredAt,@AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory,@AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation,@TimestampOrNullConverter() DateTime? eta,@TimestampOrNullConverter() DateTime? etaUpdatedAt + String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, String? invoiceId, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation,@TimestampOrNullConverter() DateTime? receptionAt,@PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset,@AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus,@TimestampOrNullConverter() DateTime? inTransitAt,@TimestampOrNullConverter() DateTime? waitingToDispatchAt,@TimestampOrNullConverter() DateTime? deliveredAt,@AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory,@AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation,@TimestampOrNullConverter() DateTime? eta,@TimestampOrNullConverter() DateTime? etaUpdatedAt }); @@ -5647,7 +5648,7 @@ class _$AtsPurchaseOrderCopyWithImpl<$Res> /// Create a copy of AtsPurchaseOrder /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? ownerId = freezed,Object? orderId = freezed,Object? assetId = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? purchasedAt = freezed,Object? receivedAt = freezed,Object? asset = freezed,Object? sellerInformation = freezed,Object? receiverInformation = freezed,Object? productsInformation = freezed,Object? total = freezed,Object? isReceived = freezed,Object? hasReception = freezed,Object? transportInformation = freezed,Object? hasRawXml = freezed,Object? invoiceType = freezed,Object? parentInvoice = freezed,Object? ideInformation = freezed,Object? receptionAt = freezed,Object? action = freezed,Object? transportAsset = freezed,Object? sellerAsset = freezed,Object? orderStatus = freezed,Object? inTransitAt = freezed,Object? waitingToDispatchAt = freezed,Object? deliveredAt = freezed,Object? deliverCategory = freezed,Object? category = freezed,Object? operation = freezed,Object? eta = freezed,Object? etaUpdatedAt = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? ownerId = freezed,Object? orderId = freezed,Object? assetId = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? purchasedAt = freezed,Object? receivedAt = freezed,Object? asset = freezed,Object? sellerInformation = freezed,Object? receiverInformation = freezed,Object? productsInformation = freezed,Object? total = freezed,Object? isReceived = freezed,Object? hasReception = freezed,Object? transportInformation = freezed,Object? hasRawXml = freezed,Object? invoiceType = freezed,Object? invoiceId = freezed,Object? parentInvoice = freezed,Object? ideInformation = freezed,Object? receptionAt = freezed,Object? action = freezed,Object? transportAsset = freezed,Object? sellerAsset = freezed,Object? orderStatus = freezed,Object? inTransitAt = freezed,Object? waitingToDispatchAt = freezed,Object? deliveredAt = freezed,Object? deliverCategory = freezed,Object? category = freezed,Object? operation = freezed,Object? eta = freezed,Object? etaUpdatedAt = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,ownerId: freezed == ownerId ? _self.ownerId : ownerId // ignore: cast_nullable_to_non_nullable @@ -5667,6 +5668,7 @@ as bool?,hasReception: freezed == hasReception ? _self.hasReception : hasRecepti as bool?,transportInformation: freezed == transportInformation ? _self.transportInformation : transportInformation // ignore: cast_nullable_to_non_nullable as AtsTransportInformation?,hasRawXml: freezed == hasRawXml ? _self.hasRawXml : hasRawXml // ignore: cast_nullable_to_non_nullable as bool?,invoiceType: freezed == invoiceType ? _self.invoiceType : invoiceType // ignore: cast_nullable_to_non_nullable +as String?,invoiceId: freezed == invoiceId ? _self.invoiceId : invoiceId // ignore: cast_nullable_to_non_nullable as String?,parentInvoice: freezed == parentInvoice ? _self.parentInvoice : parentInvoice // ignore: cast_nullable_to_non_nullable as AtsPurchaseOrder?,ideInformation: freezed == ideInformation ? _self.ideInformation : ideInformation // ignore: cast_nullable_to_non_nullable as AtsIdeInformation?,receptionAt: freezed == receptionAt ? _self.receptionAt : receptionAt // ignore: cast_nullable_to_non_nullable @@ -5887,10 +5889,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, String? invoiceId, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _AtsPurchaseOrder() when $default != null: -return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: +return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.invoiceId,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: return orElse(); } @@ -5908,10 +5910,10 @@ return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerA /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, String? invoiceId, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt) $default,) {final _that = this; switch (_that) { case _AtsPurchaseOrder(): -return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: +return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.invoiceId,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: throw StateError('Unexpected subclass'); } @@ -5928,10 +5930,10 @@ return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerA /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, String? invoiceId, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation, @TimestampOrNullConverter() DateTime? receptionAt, @PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus, @TimestampOrNullConverter() DateTime? inTransitAt, @TimestampOrNullConverter() DateTime? waitingToDispatchAt, @TimestampOrNullConverter() DateTime? deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation, @TimestampOrNullConverter() DateTime? eta, @TimestampOrNullConverter() DateTime? etaUpdatedAt)? $default,) {final _that = this; switch (_that) { case _AtsPurchaseOrder() when $default != null: -return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: +return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerAssetId,_that.transportAssetId,_that.purchasedAt,_that.receivedAt,_that.asset,_that.sellerInformation,_that.receiverInformation,_that.productsInformation,_that.total,_that.isReceived,_that.hasReception,_that.transportInformation,_that.hasRawXml,_that.invoiceType,_that.invoiceId,_that.parentInvoice,_that.ideInformation,_that.receptionAt,_that.action,_that.transportAsset,_that.sellerAsset,_that.orderStatus,_that.inTransitAt,_that.waitingToDispatchAt,_that.deliveredAt,_that.deliverCategory,_that.category,_that.operation,_that.eta,_that.etaUpdatedAt);case _: return null; } @@ -5943,7 +5945,7 @@ return $default(_that.id,_that.ownerId,_that.orderId,_that.assetId,_that.sellerA @JsonSerializable() class _AtsPurchaseOrder implements AtsPurchaseOrder { - _AtsPurchaseOrder({this.id, this.ownerId, this.orderId, this.assetId, this.sellerAssetId, this.transportAssetId, @TimestampOrNullConverter() this.purchasedAt, @TimestampOrNullConverter() this.receivedAt, this.asset, this.sellerInformation, this.receiverInformation, final List? productsInformation, this.total, this.isReceived, this.hasReception, this.transportInformation, this.hasRawXml, this.invoiceType, this.parentInvoice, this.ideInformation, @TimestampOrNullConverter() this.receptionAt, @PurchaseOrderOperationOrNullConverter() this.action, this.transportAsset, this.sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() this.orderStatus, @TimestampOrNullConverter() this.inTransitAt, @TimestampOrNullConverter() this.waitingToDispatchAt, @TimestampOrNullConverter() this.deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() this.deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() this.category, this.operation, @TimestampOrNullConverter() this.eta, @TimestampOrNullConverter() this.etaUpdatedAt}): _productsInformation = productsInformation; + _AtsPurchaseOrder({this.id, this.ownerId, this.orderId, this.assetId, this.sellerAssetId, this.transportAssetId, @TimestampOrNullConverter() this.purchasedAt, @TimestampOrNullConverter() this.receivedAt, this.asset, this.sellerInformation, this.receiverInformation, final List? productsInformation, this.total, this.isReceived, this.hasReception, this.transportInformation, this.hasRawXml, this.invoiceType, this.invoiceId, this.parentInvoice, this.ideInformation, @TimestampOrNullConverter() this.receptionAt, @PurchaseOrderOperationOrNullConverter() this.action, this.transportAsset, this.sellerAsset, @AtsPurchaseOrderStatusOrNullConverter() this.orderStatus, @TimestampOrNullConverter() this.inTransitAt, @TimestampOrNullConverter() this.waitingToDispatchAt, @TimestampOrNullConverter() this.deliveredAt, @AtsPurchaseOrderSubCategoriesOrNullConverter() this.deliverCategory, @AtsPurchaseOrderCategoriesEntityOrNullConverter() this.category, this.operation, @TimestampOrNullConverter() this.eta, @TimestampOrNullConverter() this.etaUpdatedAt}): _productsInformation = productsInformation; factory _AtsPurchaseOrder.fromJson(Map json) => _$AtsPurchaseOrderFromJson(json); /// ID of the [Asset] entity. This ID is unique. @@ -5991,6 +5993,8 @@ class _AtsPurchaseOrder implements AtsPurchaseOrder { @override final bool? hasRawXml; /// Invoice type (NFe, CTe) @override final String? invoiceType; +/// Invoice identifier (chNFe/chCTe) +@override final String? invoiceId; /// Parent invoice @override final AtsPurchaseOrder? parentInvoice; /// Ide information @@ -6035,16 +6039,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AtsPurchaseOrder&&(identical(other.id, id) || other.id == id)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.orderId, orderId) || other.orderId == orderId)&&(identical(other.assetId, assetId) || other.assetId == assetId)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.receivedAt, receivedAt) || other.receivedAt == receivedAt)&&(identical(other.asset, asset) || other.asset == asset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.receiverInformation, receiverInformation) || other.receiverInformation == receiverInformation)&&const DeepCollectionEquality().equals(other._productsInformation, _productsInformation)&&(identical(other.total, total) || other.total == total)&&(identical(other.isReceived, isReceived) || other.isReceived == isReceived)&&(identical(other.hasReception, hasReception) || other.hasReception == hasReception)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.hasRawXml, hasRawXml) || other.hasRawXml == hasRawXml)&&(identical(other.invoiceType, invoiceType) || other.invoiceType == invoiceType)&&(identical(other.parentInvoice, parentInvoice) || other.parentInvoice == parentInvoice)&&(identical(other.ideInformation, ideInformation) || other.ideInformation == ideInformation)&&(identical(other.receptionAt, receptionAt) || other.receptionAt == receptionAt)&&(identical(other.action, action) || other.action == action)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.inTransitAt, inTransitAt) || other.inTransitAt == inTransitAt)&&(identical(other.waitingToDispatchAt, waitingToDispatchAt) || other.waitingToDispatchAt == waitingToDispatchAt)&&(identical(other.deliveredAt, deliveredAt) || other.deliveredAt == deliveredAt)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&(identical(other.category, category) || other.category == category)&&(identical(other.operation, operation) || other.operation == operation)&&(identical(other.eta, eta) || other.eta == eta)&&(identical(other.etaUpdatedAt, etaUpdatedAt) || other.etaUpdatedAt == etaUpdatedAt)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AtsPurchaseOrder&&(identical(other.id, id) || other.id == id)&&(identical(other.ownerId, ownerId) || other.ownerId == ownerId)&&(identical(other.orderId, orderId) || other.orderId == orderId)&&(identical(other.assetId, assetId) || other.assetId == assetId)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.receivedAt, receivedAt) || other.receivedAt == receivedAt)&&(identical(other.asset, asset) || other.asset == asset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.receiverInformation, receiverInformation) || other.receiverInformation == receiverInformation)&&const DeepCollectionEquality().equals(other._productsInformation, _productsInformation)&&(identical(other.total, total) || other.total == total)&&(identical(other.isReceived, isReceived) || other.isReceived == isReceived)&&(identical(other.hasReception, hasReception) || other.hasReception == hasReception)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.hasRawXml, hasRawXml) || other.hasRawXml == hasRawXml)&&(identical(other.invoiceType, invoiceType) || other.invoiceType == invoiceType)&&(identical(other.invoiceId, invoiceId) || other.invoiceId == invoiceId)&&(identical(other.parentInvoice, parentInvoice) || other.parentInvoice == parentInvoice)&&(identical(other.ideInformation, ideInformation) || other.ideInformation == ideInformation)&&(identical(other.receptionAt, receptionAt) || other.receptionAt == receptionAt)&&(identical(other.action, action) || other.action == action)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.inTransitAt, inTransitAt) || other.inTransitAt == inTransitAt)&&(identical(other.waitingToDispatchAt, waitingToDispatchAt) || other.waitingToDispatchAt == waitingToDispatchAt)&&(identical(other.deliveredAt, deliveredAt) || other.deliveredAt == deliveredAt)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&(identical(other.category, category) || other.category == category)&&(identical(other.operation, operation) || other.operation == operation)&&(identical(other.eta, eta) || other.eta == eta)&&(identical(other.etaUpdatedAt, etaUpdatedAt) || other.etaUpdatedAt == etaUpdatedAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,ownerId,orderId,assetId,sellerAssetId,transportAssetId,purchasedAt,receivedAt,asset,sellerInformation,receiverInformation,const DeepCollectionEquality().hash(_productsInformation),total,isReceived,hasReception,transportInformation,hasRawXml,invoiceType,parentInvoice,ideInformation,receptionAt,action,transportAsset,sellerAsset,orderStatus,inTransitAt,waitingToDispatchAt,deliveredAt,deliverCategory,category,operation,eta,etaUpdatedAt]); +int get hashCode => Object.hashAll([runtimeType,id,ownerId,orderId,assetId,sellerAssetId,transportAssetId,purchasedAt,receivedAt,asset,sellerInformation,receiverInformation,const DeepCollectionEquality().hash(_productsInformation),total,isReceived,hasReception,transportInformation,hasRawXml,invoiceType,invoiceId,parentInvoice,ideInformation,receptionAt,action,transportAsset,sellerAsset,orderStatus,inTransitAt,waitingToDispatchAt,deliveredAt,deliverCategory,category,operation,eta,etaUpdatedAt]); @override String toString() { - return 'AtsPurchaseOrder(id: $id, ownerId: $ownerId, orderId: $orderId, assetId: $assetId, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, purchasedAt: $purchasedAt, receivedAt: $receivedAt, asset: $asset, sellerInformation: $sellerInformation, receiverInformation: $receiverInformation, productsInformation: $productsInformation, total: $total, isReceived: $isReceived, hasReception: $hasReception, transportInformation: $transportInformation, hasRawXml: $hasRawXml, invoiceType: $invoiceType, parentInvoice: $parentInvoice, ideInformation: $ideInformation, receptionAt: $receptionAt, action: $action, transportAsset: $transportAsset, sellerAsset: $sellerAsset, orderStatus: $orderStatus, inTransitAt: $inTransitAt, waitingToDispatchAt: $waitingToDispatchAt, deliveredAt: $deliveredAt, deliverCategory: $deliverCategory, category: $category, operation: $operation, eta: $eta, etaUpdatedAt: $etaUpdatedAt)'; + return 'AtsPurchaseOrder(id: $id, ownerId: $ownerId, orderId: $orderId, assetId: $assetId, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, purchasedAt: $purchasedAt, receivedAt: $receivedAt, asset: $asset, sellerInformation: $sellerInformation, receiverInformation: $receiverInformation, productsInformation: $productsInformation, total: $total, isReceived: $isReceived, hasReception: $hasReception, transportInformation: $transportInformation, hasRawXml: $hasRawXml, invoiceType: $invoiceType, invoiceId: $invoiceId, parentInvoice: $parentInvoice, ideInformation: $ideInformation, receptionAt: $receptionAt, action: $action, transportAsset: $transportAsset, sellerAsset: $sellerAsset, orderStatus: $orderStatus, inTransitAt: $inTransitAt, waitingToDispatchAt: $waitingToDispatchAt, deliveredAt: $deliveredAt, deliverCategory: $deliverCategory, category: $category, operation: $operation, eta: $eta, etaUpdatedAt: $etaUpdatedAt)'; } @@ -6055,7 +6059,7 @@ abstract mixin class _$AtsPurchaseOrderCopyWith<$Res> implements $AtsPurchaseOrd factory _$AtsPurchaseOrderCopyWith(_AtsPurchaseOrder value, $Res Function(_AtsPurchaseOrder) _then) = __$AtsPurchaseOrderCopyWithImpl; @override @useResult $Res call({ - String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation,@TimestampOrNullConverter() DateTime? receptionAt,@PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset,@AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus,@TimestampOrNullConverter() DateTime? inTransitAt,@TimestampOrNullConverter() DateTime? waitingToDispatchAt,@TimestampOrNullConverter() DateTime? deliveredAt,@AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory,@AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation,@TimestampOrNullConverter() DateTime? eta,@TimestampOrNullConverter() DateTime? etaUpdatedAt + String? id, String? ownerId, String? orderId, String? assetId, String? sellerAssetId, String? transportAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? receivedAt, Asset? asset, AtsCompanyInformation? sellerInformation, AtsCompanyInformation? receiverInformation, List? productsInformation, AtsPurchaseTotal? total, bool? isReceived, bool? hasReception, AtsTransportInformation? transportInformation, bool? hasRawXml, String? invoiceType, String? invoiceId, AtsPurchaseOrder? parentInvoice, AtsIdeInformation? ideInformation,@TimestampOrNullConverter() DateTime? receptionAt,@PurchaseOrderOperationOrNullConverter() PurchaseOrderOperation? action, Asset? transportAsset, Asset? sellerAsset,@AtsPurchaseOrderStatusOrNullConverter() AtsPurchaseOrderStatus? orderStatus,@TimestampOrNullConverter() DateTime? inTransitAt,@TimestampOrNullConverter() DateTime? waitingToDispatchAt,@TimestampOrNullConverter() DateTime? deliveredAt,@AtsPurchaseOrderSubCategoriesOrNullConverter() AtsPurchaseOrderSubCategories? deliverCategory,@AtsPurchaseOrderCategoriesEntityOrNullConverter() AtsPurchaseOrderCategoriesEntity? category, AtsOperation? operation,@TimestampOrNullConverter() DateTime? eta,@TimestampOrNullConverter() DateTime? etaUpdatedAt }); @@ -6072,7 +6076,7 @@ class __$AtsPurchaseOrderCopyWithImpl<$Res> /// Create a copy of AtsPurchaseOrder /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? ownerId = freezed,Object? orderId = freezed,Object? assetId = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? purchasedAt = freezed,Object? receivedAt = freezed,Object? asset = freezed,Object? sellerInformation = freezed,Object? receiverInformation = freezed,Object? productsInformation = freezed,Object? total = freezed,Object? isReceived = freezed,Object? hasReception = freezed,Object? transportInformation = freezed,Object? hasRawXml = freezed,Object? invoiceType = freezed,Object? parentInvoice = freezed,Object? ideInformation = freezed,Object? receptionAt = freezed,Object? action = freezed,Object? transportAsset = freezed,Object? sellerAsset = freezed,Object? orderStatus = freezed,Object? inTransitAt = freezed,Object? waitingToDispatchAt = freezed,Object? deliveredAt = freezed,Object? deliverCategory = freezed,Object? category = freezed,Object? operation = freezed,Object? eta = freezed,Object? etaUpdatedAt = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? ownerId = freezed,Object? orderId = freezed,Object? assetId = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? purchasedAt = freezed,Object? receivedAt = freezed,Object? asset = freezed,Object? sellerInformation = freezed,Object? receiverInformation = freezed,Object? productsInformation = freezed,Object? total = freezed,Object? isReceived = freezed,Object? hasReception = freezed,Object? transportInformation = freezed,Object? hasRawXml = freezed,Object? invoiceType = freezed,Object? invoiceId = freezed,Object? parentInvoice = freezed,Object? ideInformation = freezed,Object? receptionAt = freezed,Object? action = freezed,Object? transportAsset = freezed,Object? sellerAsset = freezed,Object? orderStatus = freezed,Object? inTransitAt = freezed,Object? waitingToDispatchAt = freezed,Object? deliveredAt = freezed,Object? deliverCategory = freezed,Object? category = freezed,Object? operation = freezed,Object? eta = freezed,Object? etaUpdatedAt = freezed,}) { return _then(_AtsPurchaseOrder( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,ownerId: freezed == ownerId ? _self.ownerId : ownerId // ignore: cast_nullable_to_non_nullable @@ -6092,6 +6096,7 @@ as bool?,hasReception: freezed == hasReception ? _self.hasReception : hasRecepti as bool?,transportInformation: freezed == transportInformation ? _self.transportInformation : transportInformation // ignore: cast_nullable_to_non_nullable as AtsTransportInformation?,hasRawXml: freezed == hasRawXml ? _self.hasRawXml : hasRawXml // ignore: cast_nullable_to_non_nullable as bool?,invoiceType: freezed == invoiceType ? _self.invoiceType : invoiceType // ignore: cast_nullable_to_non_nullable +as String?,invoiceId: freezed == invoiceId ? _self.invoiceId : invoiceId // ignore: cast_nullable_to_non_nullable as String?,parentInvoice: freezed == parentInvoice ? _self.parentInvoice : parentInvoice // ignore: cast_nullable_to_non_nullable as AtsPurchaseOrder?,ideInformation: freezed == ideInformation ? _self.ideInformation : ideInformation // ignore: cast_nullable_to_non_nullable as AtsIdeInformation?,receptionAt: freezed == receptionAt ? _self.receptionAt : receptionAt // ignore: cast_nullable_to_non_nullable diff --git a/lib/src/ats/ats.g.dart b/lib/src/ats/ats.g.dart index abbaade8..b84dfd58 100644 --- a/lib/src/ats/ats.g.dart +++ b/lib/src/ats/ats.g.dart @@ -587,6 +587,7 @@ _AtsPurchaseOrder _$AtsPurchaseOrderFromJson(Map json) => ), hasRawXml: json['hasRawXml'] as bool?, invoiceType: json['invoiceType'] as String?, + invoiceId: json['invoiceId'] as String?, parentInvoice: json['parentInvoice'] == null ? null : AtsPurchaseOrder.fromJson( @@ -657,6 +658,7 @@ Map _$AtsPurchaseOrderToJson( 'transportInformation': instance.transportInformation?.toJson(), 'hasRawXml': instance.hasRawXml, 'invoiceType': instance.invoiceType, + 'invoiceId': instance.invoiceId, 'parentInvoice': instance.parentInvoice?.toJson(), 'ideInformation': instance.ideInformation?.toJson(), 'receptionAt': const TimestampOrNullConverter().toJson(instance.receptionAt), diff --git a/lib/src/ats/src/reception/purchase_order.dart b/lib/src/ats/src/reception/purchase_order.dart index 3db2ed95..e005ae80 100644 --- a/lib/src/ats/src/reception/purchase_order.dart +++ b/lib/src/ats/src/reception/purchase_order.dart @@ -113,6 +113,9 @@ abstract class AtsPurchaseOrder with _$AtsPurchaseOrder { /// Invoice type (NFe, CTe) String? invoiceType, + /// Invoice identifier (chNFe/chCTe) + String? invoiceId, + /// Parent invoice AtsPurchaseOrder? parentInvoice, diff --git a/lib/src/references/references.g.dart b/lib/src/references/references.g.dart index 726525be..51908abd 100644 --- a/lib/src/references/references.g.dart +++ b/lib/src/references/references.g.dart @@ -87,6 +87,8 @@ const _$ReferenceCategoryEnumMap = { ReferenceCategory.atsSupervisorioExportCacl: 'ATS_SUPERVISORIO_EXPORT_CACL', ReferenceCategory.atsPreventChangesInCaclTelemetryInputs: 'ATS_PREVENT_CHANGES_IN_CACL_TELEMETRY_INPUTS', + ReferenceCategory.atsGetAllTerminals: 'ATS_GET_ALL_TERMINALS', + ReferenceCategory.atsStorageReceptionAccess: 'ATS_STORAGE_RECEPTION_ACCESS', ReferenceCategory.mappitOperator: 'MAPPIT_OPERATOR', ReferenceCategory.mappitCustomer: 'MAPPIT_CUSTOMER', ReferenceCategory.mappitEmployee: 'MAPPIT_EMPLOYEE', diff --git a/lib/src/references/src/category.dart b/lib/src/references/src/category.dart index 156ab1dc..fc5d319f 100644 --- a/lib/src/references/src/category.dart +++ b/lib/src/references/src/category.dart @@ -270,6 +270,18 @@ enum ReferenceCategory { @JsonValue('ATS_PREVENT_CHANGES_IN_CACL_TELEMETRY_INPUTS') atsPreventChangesInCaclTelemetryInputs, + @JsonValue('ATS_GET_ALL_TERMINALS') + /// !ATS Reference + /// [AllTank Systems] Access to get all terminals in terminal operations module + /// Layrz API Reference: ATS_GET_ALL_TERMINALS + atsGetAllTerminals, + + @JsonValue('ATS_STORAGE_RECEPTION_ACCESS') + /// !ATS Reference + /// [AllTank Systems] Access to the storage reception module + /// Layrz API Reference: ATS_STORAGE_RECEPTION_ACCESS + atsStorageReceptionAccess, + /// !Mappit Reference /// Defines the access to the Mappit module as a operator or mappit employee /// Layrz API Reference: MAPPIT_OPERATOR diff --git a/pubspec.yaml b/pubspec.yaml index 27e0dc58..64ce25db 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ description: Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API. name: layrz_models -version: "3.8.0" +version: "3.8.1" repository: https://github.com/goldenm-software/layrz_models environment: