- Regenerate proto stubs from correct cqrs_services.proto file - Update GrpcCqrsApiClient to use DynamicQueryService and CommandService - Fix type conversions for deliveries, routes, and commands - Convert proto Timestamp to ISO8601 strings for model compatibility - Convert string amounts to doubles for delivery orders - Use Int64 for delivery IDs in gRPC commands Work in progress: Timestamp conversion extension needs finalization. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
68 lines
2.4 KiB
Dart
68 lines
2.4 KiB
Dart
// This is a generated file - do not edit.
|
|
//
|
|
// Generated from cqrs_services.proto.
|
|
|
|
// @dart = 3.3
|
|
|
|
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: curly_braces_in_flow_control_structures
|
|
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
|
// ignore_for_file: non_constant_identifier_names, prefer_relative_imports
|
|
|
|
import 'dart:core' as $core;
|
|
|
|
import 'package:protobuf/protobuf.dart' as $pb;
|
|
|
|
/// InvoiceReportFilter enum
|
|
class InvoiceReportFilter extends $pb.ProtobufEnum {
|
|
static const InvoiceReportFilter INVOICE_REPORT_FILTER_DELIVERY =
|
|
InvoiceReportFilter._(
|
|
0, _omitEnumNames ? '' : 'INVOICE_REPORT_FILTER_DELIVERY');
|
|
static const InvoiceReportFilter INVOICE_REPORT_FILTER_OTHERS =
|
|
InvoiceReportFilter._(
|
|
1, _omitEnumNames ? '' : 'INVOICE_REPORT_FILTER_OTHERS');
|
|
static const InvoiceReportFilter INVOICE_REPORT_FILTER_ALL =
|
|
InvoiceReportFilter._(
|
|
2, _omitEnumNames ? '' : 'INVOICE_REPORT_FILTER_ALL');
|
|
|
|
static const $core.List<InvoiceReportFilter> values = <InvoiceReportFilter>[
|
|
INVOICE_REPORT_FILTER_DELIVERY,
|
|
INVOICE_REPORT_FILTER_OTHERS,
|
|
INVOICE_REPORT_FILTER_ALL,
|
|
];
|
|
|
|
static final $core.List<InvoiceReportFilter?> _byValue =
|
|
$pb.ProtobufEnum.$_initByValueList(values, 2);
|
|
static InvoiceReportFilter? valueOf($core.int value) =>
|
|
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
|
|
const InvoiceReportFilter._(super.value, super.name);
|
|
}
|
|
|
|
/// UserRole enum
|
|
class UserRole extends $pb.ProtobufEnum {
|
|
static const UserRole USER_ROLE_OWNER =
|
|
UserRole._(0, _omitEnumNames ? '' : 'USER_ROLE_OWNER');
|
|
static const UserRole USER_ROLE_ADMIN =
|
|
UserRole._(1, _omitEnumNames ? '' : 'USER_ROLE_ADMIN');
|
|
static const UserRole USER_ROLE_DELIVERYMAN =
|
|
UserRole._(2, _omitEnumNames ? '' : 'USER_ROLE_DELIVERYMAN');
|
|
|
|
static const $core.List<UserRole> values = <UserRole>[
|
|
USER_ROLE_OWNER,
|
|
USER_ROLE_ADMIN,
|
|
USER_ROLE_DELIVERYMAN,
|
|
];
|
|
|
|
static final $core.List<UserRole?> _byValue =
|
|
$pb.ProtobufEnum.$_initByValueList(values, 2);
|
|
static UserRole? valueOf($core.int value) =>
|
|
value < 0 || value >= _byValue.length ? null : _byValue[value];
|
|
|
|
const UserRole._(super.value, super.name);
|
|
}
|
|
|
|
const $core.bool _omitEnumNames =
|
|
$core.bool.fromEnvironment('protobuf.omit_enum_names');
|