diff --git a/README.md b/README.md index d9d8ad680..cf7c32eac 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,7 @@ grpcurl --plaintext \ | user-svc | 3002 | gRPC | | ory-svc | 3003 | gRPC | | tasks-svc | 3004 | gRPC | +| property-svc | 3005 | gRPC | | APISIX (dapr) | 3500 | http | | APISIX (dapr) | 35001 | grpc | | APISIX | 9080 | http (mostly grcp-web) | diff --git a/dev/dapr_run.yaml b/dev/dapr_run.yaml index 36e1a80b4..98320e000 100644 --- a/dev/dapr_run.yaml +++ b/dev/dapr_run.yaml @@ -20,7 +20,6 @@ common: REDIS_ADDR: redis:6379 INSECURE_REDIS_NO_TLS: true ORGANIZATION_ID: 3b25c6f5-4705-4074-9fc6-a50c28eba405 - EVENTSTORE_CS: esdb://admin:changeit@eventstore:2113?tls=false OTEL_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317 OTEL_EXPORTER_OTLP_INSECURE: true @@ -59,3 +58,11 @@ apps: SERVICE: tasks-svc POSTGRES_DB: tasks-svc command: ["air"] + + - appID: property-svc + appDirPath: ../services/property-svc + appPort: 3005 + env: + SERVICE: property-svc + POSTGRES_DB: property-svc + command: ["air"] diff --git a/dev/docker-compose.yaml b/dev/docker-compose.yaml index a2c61ee7d..070470684 100644 --- a/dev/docker-compose.yaml +++ b/dev/docker-compose.yaml @@ -151,4 +151,5 @@ services: - "3001:3001" # task-svc - "3002:3002" # user-svc - "3003:3003" # ory-svc - - "3004:3004" # property-svc + - "3004:3004" # tasks-svc + - "3005:3005" # property-svc diff --git a/gen/dart/lib/proto/services/property_svc/v1/property_svc.pb.dart b/gen/dart/lib/proto/services/property_svc/v1/property_svc.pb.dart index 1760baa16..fa094412d 100644 --- a/gen/dart/lib/proto/services/property_svc/v1/property_svc.pb.dart +++ b/gen/dart/lib/proto/services/property_svc/v1/property_svc.pb.dart @@ -13,7 +13,7 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import 'types.pbenum.dart' as $15; +import 'types.pbenum.dart' as $16; class CreatePropertyRequest_SelectData_SelectOption extends $pb.GeneratedMessage { factory CreatePropertyRequest_SelectData_SelectOption({ @@ -146,8 +146,8 @@ enum CreatePropertyRequest_FieldTypeData { /// CreateProperty class CreatePropertyRequest extends $pb.GeneratedMessage { factory CreatePropertyRequest({ - $15.SubjectType? subjectType, - $15.FieldType? fieldType, + $16.SubjectType? subjectType, + $16.FieldType? fieldType, $core.String? name, $core.String? description, $core.String? setId, @@ -184,8 +184,8 @@ class CreatePropertyRequest extends $pb.GeneratedMessage { }; static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreatePropertyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) ..oo(0, [9]) - ..e<$15.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $15.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $15.SubjectType.valueOf, enumValues: $15.SubjectType.values) - ..e<$15.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $15.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $15.FieldType.valueOf, enumValues: $15.FieldType.values) + ..e<$16.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $16.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $16.SubjectType.valueOf, enumValues: $16.SubjectType.values) + ..e<$16.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $16.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $16.FieldType.valueOf, enumValues: $16.FieldType.values) ..aOS(4, _omitFieldNames ? '' : 'name') ..aOS(5, _omitFieldNames ? '' : 'description') ..aOS(6, _omitFieldNames ? '' : 'setId') @@ -218,18 +218,18 @@ class CreatePropertyRequest extends $pb.GeneratedMessage { void clearFieldTypeData() => clearField($_whichOneof(0)); @$pb.TagNumber(2) - $15.SubjectType get subjectType => $_getN(0); + $16.SubjectType get subjectType => $_getN(0); @$pb.TagNumber(2) - set subjectType($15.SubjectType v) { setField(2, v); } + set subjectType($16.SubjectType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasSubjectType() => $_has(0); @$pb.TagNumber(2) void clearSubjectType() => clearField(2); @$pb.TagNumber(3) - $15.FieldType get fieldType => $_getN(1); + $16.FieldType get fieldType => $_getN(1); @$pb.TagNumber(3) - set fieldType($15.FieldType v) { setField(3, v); } + set fieldType($16.FieldType v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasFieldType() => $_has(1); @$pb.TagNumber(3) @@ -614,8 +614,8 @@ enum GetPropertyResponse_FieldTypeData { class GetPropertyResponse extends $pb.GeneratedMessage { factory GetPropertyResponse({ $core.String? id, - $15.SubjectType? subjectType, - $15.FieldType? fieldType, + $16.SubjectType? subjectType, + $16.FieldType? fieldType, $core.String? name, $core.String? description, $core.bool? isArchived, @@ -664,8 +664,8 @@ class GetPropertyResponse extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPropertyResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) ..oo(0, [10]) ..aOS(1, _omitFieldNames ? '' : 'id') - ..e<$15.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $15.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $15.SubjectType.valueOf, enumValues: $15.SubjectType.values) - ..e<$15.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $15.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $15.FieldType.valueOf, enumValues: $15.FieldType.values) + ..e<$16.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $16.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $16.SubjectType.valueOf, enumValues: $16.SubjectType.values) + ..e<$16.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $16.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $16.FieldType.valueOf, enumValues: $16.FieldType.values) ..aOS(4, _omitFieldNames ? '' : 'name') ..aOS(5, _omitFieldNames ? '' : 'description') ..aOB(6, _omitFieldNames ? '' : 'isArchived') @@ -709,18 +709,18 @@ class GetPropertyResponse extends $pb.GeneratedMessage { void clearId() => clearField(1); @$pb.TagNumber(2) - $15.SubjectType get subjectType => $_getN(1); + $16.SubjectType get subjectType => $_getN(1); @$pb.TagNumber(2) - set subjectType($15.SubjectType v) { setField(2, v); } + set subjectType($16.SubjectType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasSubjectType() => $_has(1); @$pb.TagNumber(2) void clearSubjectType() => clearField(2); @$pb.TagNumber(3) - $15.FieldType get fieldType => $_getN(2); + $16.FieldType get fieldType => $_getN(2); @$pb.TagNumber(3) - set fieldType($15.FieldType v) { setField(3, v); } + set fieldType($16.FieldType v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasFieldType() => $_has(2); @$pb.TagNumber(3) @@ -950,7 +950,7 @@ enum UpdatePropertyRequest_FieldTypeData { class UpdatePropertyRequest extends $pb.GeneratedMessage { factory UpdatePropertyRequest({ $core.String? id, - $15.SubjectType? subjectType, + $16.SubjectType? subjectType, $core.String? name, $core.String? description, $core.bool? isArchived, @@ -992,7 +992,7 @@ class UpdatePropertyRequest extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdatePropertyRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) ..oo(0, [10]) ..aOS(1, _omitFieldNames ? '' : 'id') - ..e<$15.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $15.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $15.SubjectType.valueOf, enumValues: $15.SubjectType.values) + ..e<$16.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $16.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $16.SubjectType.valueOf, enumValues: $16.SubjectType.values) ..aOS(4, _omitFieldNames ? '' : 'name') ..aOS(5, _omitFieldNames ? '' : 'description') ..aOB(6, _omitFieldNames ? '' : 'isArchived') @@ -1035,9 +1035,9 @@ class UpdatePropertyRequest extends $pb.GeneratedMessage { void clearId() => clearField(1); @$pb.TagNumber(2) - $15.SubjectType get subjectType => $_getN(1); + $16.SubjectType get subjectType => $_getN(1); @$pb.TagNumber(2) - set subjectType($15.SubjectType v) { setField(2, v); } + set subjectType($16.SubjectType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasSubjectType() => $_has(1); @$pb.TagNumber(2) @@ -1126,7 +1126,7 @@ class UpdatePropertyResponse extends $pb.GeneratedMessage { class GetPropertiesBySubjectTypeRequest extends $pb.GeneratedMessage { factory GetPropertiesBySubjectTypeRequest({ - $15.SubjectType? subjectType, + $16.SubjectType? subjectType, }) { final $result = create(); if (subjectType != null) { @@ -1139,7 +1139,7 @@ class GetPropertiesBySubjectTypeRequest extends $pb.GeneratedMessage { factory GetPropertiesBySubjectTypeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPropertiesBySubjectTypeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) - ..e<$15.SubjectType>(1, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $15.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $15.SubjectType.valueOf, enumValues: $15.SubjectType.values) + ..e<$16.SubjectType>(1, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $16.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $16.SubjectType.valueOf, enumValues: $16.SubjectType.values) ..hasRequiredFields = false ; @@ -1165,9 +1165,9 @@ class GetPropertiesBySubjectTypeRequest extends $pb.GeneratedMessage { static GetPropertiesBySubjectTypeRequest? _defaultInstance; @$pb.TagNumber(1) - $15.SubjectType get subjectType => $_getN(0); + $16.SubjectType get subjectType => $_getN(0); @$pb.TagNumber(1) - set subjectType($15.SubjectType v) { setField(1, v); } + set subjectType($16.SubjectType v) { setField(1, v); } @$pb.TagNumber(1) $core.bool hasSubjectType() => $_has(0); @$pb.TagNumber(1) @@ -1332,8 +1332,8 @@ enum GetPropertiesBySubjectTypeResponse_Property_FieldTypeData { class GetPropertiesBySubjectTypeResponse_Property extends $pb.GeneratedMessage { factory GetPropertiesBySubjectTypeResponse_Property({ $core.String? id, - $15.SubjectType? subjectType, - $15.FieldType? fieldType, + $16.SubjectType? subjectType, + $16.FieldType? fieldType, $core.String? name, $core.String? description, $core.bool? isArchived, @@ -1378,8 +1378,8 @@ class GetPropertiesBySubjectTypeResponse_Property extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetPropertiesBySubjectTypeResponse.Property', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) ..oo(0, [10]) ..aOS(1, _omitFieldNames ? '' : 'id') - ..e<$15.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $15.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $15.SubjectType.valueOf, enumValues: $15.SubjectType.values) - ..e<$15.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $15.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $15.FieldType.valueOf, enumValues: $15.FieldType.values) + ..e<$16.SubjectType>(2, _omitFieldNames ? '' : 'subjectType', $pb.PbFieldType.OE, defaultOrMaker: $16.SubjectType.SUBJECT_TYPE_UNSPECIFIED, valueOf: $16.SubjectType.valueOf, enumValues: $16.SubjectType.values) + ..e<$16.FieldType>(3, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $16.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $16.FieldType.valueOf, enumValues: $16.FieldType.values) ..aOS(4, _omitFieldNames ? '' : 'name') ..aOS(5, _omitFieldNames ? '' : 'description') ..aOB(6, _omitFieldNames ? '' : 'isArchived') @@ -1422,18 +1422,18 @@ class GetPropertiesBySubjectTypeResponse_Property extends $pb.GeneratedMessage { void clearId() => clearField(1); @$pb.TagNumber(2) - $15.SubjectType get subjectType => $_getN(1); + $16.SubjectType get subjectType => $_getN(1); @$pb.TagNumber(2) - set subjectType($15.SubjectType v) { setField(2, v); } + set subjectType($16.SubjectType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasSubjectType() => $_has(1); @$pb.TagNumber(2) void clearSubjectType() => clearField(2); @$pb.TagNumber(3) - $15.FieldType get fieldType => $_getN(2); + $16.FieldType get fieldType => $_getN(2); @$pb.TagNumber(3) - set fieldType($15.FieldType v) { setField(3, v); } + set fieldType($16.FieldType v) { setField(3, v); } @$pb.TagNumber(3) $core.bool hasFieldType() => $_has(2); @$pb.TagNumber(3) diff --git a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart index 74e0f4c9d..81ddec242 100644 --- a/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart +++ b/gen/dart/lib/proto/services/property_svc/v1/property_value_svc.pb.dart @@ -13,9 +13,9 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../../google/protobuf/timestamp.pb.dart' as $16; -import 'types.pb.dart' as $15; -import 'types.pbenum.dart' as $15; +import '../../../../google/protobuf/timestamp.pb.dart' as $17; +import 'types.pb.dart' as $16; +import 'types.pbenum.dart' as $16; enum AttachPropertyValueRequest_Value { textValue, @@ -36,8 +36,8 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, - $15.Date? dateValue, - $16.Timestamp? dateTimeValue, + $16.Date? dateValue, + $17.Timestamp? dateTimeValue, $core.String? selectValue, }) { final $result = create(); @@ -87,8 +87,8 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { ..aOS(3, _omitFieldNames ? '' : 'textValue') ..a<$core.double>(4, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOB(5, _omitFieldNames ? '' : 'boolValue') - ..aOM<$15.Date>(6, _omitFieldNames ? '' : 'dateValue', subBuilder: $15.Date.create) - ..aOM<$16.Timestamp>(7, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $16.Timestamp.create) + ..aOM<$16.Date>(6, _omitFieldNames ? '' : 'dateValue', subBuilder: $16.Date.create) + ..aOM<$17.Timestamp>(7, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $17.Timestamp.create) ..aOS(8, _omitFieldNames ? '' : 'selectValue') ..hasRequiredFields = false ; @@ -163,26 +163,26 @@ class AttachPropertyValueRequest extends $pb.GeneratedMessage { void clearBoolValue() => clearField(5); @$pb.TagNumber(6) - $15.Date get dateValue => $_getN(5); + $16.Date get dateValue => $_getN(5); @$pb.TagNumber(6) - set dateValue($15.Date v) { setField(6, v); } + set dateValue($16.Date v) { setField(6, v); } @$pb.TagNumber(6) $core.bool hasDateValue() => $_has(5); @$pb.TagNumber(6) void clearDateValue() => clearField(6); @$pb.TagNumber(6) - $15.Date ensureDateValue() => $_ensure(5); + $16.Date ensureDateValue() => $_ensure(5); @$pb.TagNumber(7) - $16.Timestamp get dateTimeValue => $_getN(6); + $17.Timestamp get dateTimeValue => $_getN(6); @$pb.TagNumber(7) - set dateTimeValue($16.Timestamp v) { setField(7, v); } + set dateTimeValue($17.Timestamp v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasDateTimeValue() => $_has(6); @$pb.TagNumber(7) void clearDateTimeValue() => clearField(7); @$pb.TagNumber(7) - $16.Timestamp ensureDateTimeValue() => $_ensure(6); + $17.Timestamp ensureDateTimeValue() => $_ensure(6); @$pb.TagNumber(8) $core.String get selectValue => $_getSZ(7); @@ -309,15 +309,15 @@ enum GetAttachedPropertyValuesResponse_Value_Value { class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { factory GetAttachedPropertyValuesResponse_Value({ $core.String? propertyId, - $15.FieldType? fieldType, + $16.FieldType? fieldType, $core.String? name, $core.String? description, $core.bool? isArchived, $core.String? textValue, $core.double? numberValue, $core.bool? boolValue, - $15.Date? dateValue, - $16.Timestamp? dateTimeValue, + $16.Date? dateValue, + $17.Timestamp? dateTimeValue, $core.String? selectValue, }) { final $result = create(); @@ -372,15 +372,15 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetAttachedPropertyValuesResponse.Value', package: const $pb.PackageName(_omitMessageNames ? '' : 'proto.services.property_svc.v1'), createEmptyInstance: create) ..oo(0, [6, 7, 8, 9, 10, 11]) ..aOS(1, _omitFieldNames ? '' : 'propertyId') - ..e<$15.FieldType>(2, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $15.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $15.FieldType.valueOf, enumValues: $15.FieldType.values) + ..e<$16.FieldType>(2, _omitFieldNames ? '' : 'fieldType', $pb.PbFieldType.OE, defaultOrMaker: $16.FieldType.FIELD_TYPE_UNSPECIFIED, valueOf: $16.FieldType.valueOf, enumValues: $16.FieldType.values) ..aOS(3, _omitFieldNames ? '' : 'name') ..aOS(4, _omitFieldNames ? '' : 'description') ..aOB(5, _omitFieldNames ? '' : 'isArchived') ..aOS(6, _omitFieldNames ? '' : 'textValue') ..a<$core.double>(7, _omitFieldNames ? '' : 'numberValue', $pb.PbFieldType.OD) ..aOB(8, _omitFieldNames ? '' : 'boolValue') - ..aOM<$15.Date>(9, _omitFieldNames ? '' : 'dateValue', subBuilder: $15.Date.create) - ..aOM<$16.Timestamp>(10, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $16.Timestamp.create) + ..aOM<$16.Date>(9, _omitFieldNames ? '' : 'dateValue', subBuilder: $16.Date.create) + ..aOM<$17.Timestamp>(10, _omitFieldNames ? '' : 'dateTimeValue', subBuilder: $17.Timestamp.create) ..aOS(11, _omitFieldNames ? '' : 'selectValue') ..hasRequiredFields = false ; @@ -419,9 +419,9 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { void clearPropertyId() => clearField(1); @$pb.TagNumber(2) - $15.FieldType get fieldType => $_getN(1); + $16.FieldType get fieldType => $_getN(1); @$pb.TagNumber(2) - set fieldType($15.FieldType v) { setField(2, v); } + set fieldType($16.FieldType v) { setField(2, v); } @$pb.TagNumber(2) $core.bool hasFieldType() => $_has(1); @$pb.TagNumber(2) @@ -482,26 +482,26 @@ class GetAttachedPropertyValuesResponse_Value extends $pb.GeneratedMessage { void clearBoolValue() => clearField(8); @$pb.TagNumber(9) - $15.Date get dateValue => $_getN(8); + $16.Date get dateValue => $_getN(8); @$pb.TagNumber(9) - set dateValue($15.Date v) { setField(9, v); } + set dateValue($16.Date v) { setField(9, v); } @$pb.TagNumber(9) $core.bool hasDateValue() => $_has(8); @$pb.TagNumber(9) void clearDateValue() => clearField(9); @$pb.TagNumber(9) - $15.Date ensureDateValue() => $_ensure(8); + $16.Date ensureDateValue() => $_ensure(8); @$pb.TagNumber(10) - $16.Timestamp get dateTimeValue => $_getN(9); + $17.Timestamp get dateTimeValue => $_getN(9); @$pb.TagNumber(10) - set dateTimeValue($16.Timestamp v) { setField(10, v); } + set dateTimeValue($17.Timestamp v) { setField(10, v); } @$pb.TagNumber(10) $core.bool hasDateTimeValue() => $_has(9); @$pb.TagNumber(10) void clearDateTimeValue() => clearField(10); @$pb.TagNumber(10) - $16.Timestamp ensureDateTimeValue() => $_ensure(9); + $17.Timestamp ensureDateTimeValue() => $_ensure(9); @$pb.TagNumber(11) $core.String get selectValue => $_getSZ(10); diff --git a/gen/dart/lib/proto/services/task_svc/v1/bed_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/bed_svc.pbgrpc.dart index fb9f9dbde..d196da3d8 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/bed_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/bed_svc.pbgrpc.dart @@ -15,44 +15,44 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'bed_svc.pb.dart' as $5; +import 'bed_svc.pb.dart' as $6; export 'bed_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.BedService') class BedServiceClient extends $grpc.Client { - static final _$createBed = $grpc.ClientMethod<$5.CreateBedRequest, $5.CreateBedResponse>( + static final _$createBed = $grpc.ClientMethod<$6.CreateBedRequest, $6.CreateBedResponse>( '/proto.services.task_svc.v1.BedService/CreateBed', - ($5.CreateBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.CreateBedResponse.fromBuffer(value)); - static final _$bulkCreateBeds = $grpc.ClientMethod<$5.BulkCreateBedsRequest, $5.BulkCreateBedsResponse>( + ($6.CreateBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.CreateBedResponse.fromBuffer(value)); + static final _$bulkCreateBeds = $grpc.ClientMethod<$6.BulkCreateBedsRequest, $6.BulkCreateBedsResponse>( '/proto.services.task_svc.v1.BedService/BulkCreateBeds', - ($5.BulkCreateBedsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.BulkCreateBedsResponse.fromBuffer(value)); - static final _$getBed = $grpc.ClientMethod<$5.GetBedRequest, $5.GetBedResponse>( + ($6.BulkCreateBedsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.BulkCreateBedsResponse.fromBuffer(value)); + static final _$getBed = $grpc.ClientMethod<$6.GetBedRequest, $6.GetBedResponse>( '/proto.services.task_svc.v1.BedService/GetBed', - ($5.GetBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.GetBedResponse.fromBuffer(value)); - static final _$getBedByPatient = $grpc.ClientMethod<$5.GetBedByPatientRequest, $5.GetBedByPatientResponse>( + ($6.GetBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.GetBedResponse.fromBuffer(value)); + static final _$getBedByPatient = $grpc.ClientMethod<$6.GetBedByPatientRequest, $6.GetBedByPatientResponse>( '/proto.services.task_svc.v1.BedService/GetBedByPatient', - ($5.GetBedByPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.GetBedByPatientResponse.fromBuffer(value)); - static final _$getBeds = $grpc.ClientMethod<$5.GetBedsRequest, $5.GetBedsResponse>( + ($6.GetBedByPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.GetBedByPatientResponse.fromBuffer(value)); + static final _$getBeds = $grpc.ClientMethod<$6.GetBedsRequest, $6.GetBedsResponse>( '/proto.services.task_svc.v1.BedService/GetBeds', - ($5.GetBedsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.GetBedsResponse.fromBuffer(value)); - static final _$getBedsByRoom = $grpc.ClientMethod<$5.GetBedsByRoomRequest, $5.GetBedsByRoomResponse>( + ($6.GetBedsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.GetBedsResponse.fromBuffer(value)); + static final _$getBedsByRoom = $grpc.ClientMethod<$6.GetBedsByRoomRequest, $6.GetBedsByRoomResponse>( '/proto.services.task_svc.v1.BedService/GetBedsByRoom', - ($5.GetBedsByRoomRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.GetBedsByRoomResponse.fromBuffer(value)); - static final _$updateBed = $grpc.ClientMethod<$5.UpdateBedRequest, $5.UpdateBedResponse>( + ($6.GetBedsByRoomRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.GetBedsByRoomResponse.fromBuffer(value)); + static final _$updateBed = $grpc.ClientMethod<$6.UpdateBedRequest, $6.UpdateBedResponse>( '/proto.services.task_svc.v1.BedService/UpdateBed', - ($5.UpdateBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.UpdateBedResponse.fromBuffer(value)); - static final _$deleteBed = $grpc.ClientMethod<$5.DeleteBedRequest, $5.DeleteBedResponse>( + ($6.UpdateBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.UpdateBedResponse.fromBuffer(value)); + static final _$deleteBed = $grpc.ClientMethod<$6.DeleteBedRequest, $6.DeleteBedResponse>( '/proto.services.task_svc.v1.BedService/DeleteBed', - ($5.DeleteBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $5.DeleteBedResponse.fromBuffer(value)); + ($6.DeleteBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $6.DeleteBedResponse.fromBuffer(value)); BedServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -60,35 +60,35 @@ class BedServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$5.CreateBedResponse> createBed($5.CreateBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.CreateBedResponse> createBed($6.CreateBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createBed, request, options: options); } - $grpc.ResponseFuture<$5.BulkCreateBedsResponse> bulkCreateBeds($5.BulkCreateBedsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.BulkCreateBedsResponse> bulkCreateBeds($6.BulkCreateBedsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$bulkCreateBeds, request, options: options); } - $grpc.ResponseFuture<$5.GetBedResponse> getBed($5.GetBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.GetBedResponse> getBed($6.GetBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBed, request, options: options); } - $grpc.ResponseFuture<$5.GetBedByPatientResponse> getBedByPatient($5.GetBedByPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.GetBedByPatientResponse> getBedByPatient($6.GetBedByPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBedByPatient, request, options: options); } - $grpc.ResponseFuture<$5.GetBedsResponse> getBeds($5.GetBedsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.GetBedsResponse> getBeds($6.GetBedsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBeds, request, options: options); } - $grpc.ResponseFuture<$5.GetBedsByRoomResponse> getBedsByRoom($5.GetBedsByRoomRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.GetBedsByRoomResponse> getBedsByRoom($6.GetBedsByRoomRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getBedsByRoom, request, options: options); } - $grpc.ResponseFuture<$5.UpdateBedResponse> updateBed($5.UpdateBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.UpdateBedResponse> updateBed($6.UpdateBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateBed, request, options: options); } - $grpc.ResponseFuture<$5.DeleteBedResponse> deleteBed($5.DeleteBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$6.DeleteBedResponse> deleteBed($6.DeleteBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteBed, request, options: options); } } @@ -98,102 +98,102 @@ abstract class BedServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.BedService'; BedServiceBase() { - $addMethod($grpc.ServiceMethod<$5.CreateBedRequest, $5.CreateBedResponse>( + $addMethod($grpc.ServiceMethod<$6.CreateBedRequest, $6.CreateBedResponse>( 'CreateBed', createBed_Pre, false, false, - ($core.List<$core.int> value) => $5.CreateBedRequest.fromBuffer(value), - ($5.CreateBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.BulkCreateBedsRequest, $5.BulkCreateBedsResponse>( + ($core.List<$core.int> value) => $6.CreateBedRequest.fromBuffer(value), + ($6.CreateBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.BulkCreateBedsRequest, $6.BulkCreateBedsResponse>( 'BulkCreateBeds', bulkCreateBeds_Pre, false, false, - ($core.List<$core.int> value) => $5.BulkCreateBedsRequest.fromBuffer(value), - ($5.BulkCreateBedsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.GetBedRequest, $5.GetBedResponse>( + ($core.List<$core.int> value) => $6.BulkCreateBedsRequest.fromBuffer(value), + ($6.BulkCreateBedsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetBedRequest, $6.GetBedResponse>( 'GetBed', getBed_Pre, false, false, - ($core.List<$core.int> value) => $5.GetBedRequest.fromBuffer(value), - ($5.GetBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.GetBedByPatientRequest, $5.GetBedByPatientResponse>( + ($core.List<$core.int> value) => $6.GetBedRequest.fromBuffer(value), + ($6.GetBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetBedByPatientRequest, $6.GetBedByPatientResponse>( 'GetBedByPatient', getBedByPatient_Pre, false, false, - ($core.List<$core.int> value) => $5.GetBedByPatientRequest.fromBuffer(value), - ($5.GetBedByPatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.GetBedsRequest, $5.GetBedsResponse>( + ($core.List<$core.int> value) => $6.GetBedByPatientRequest.fromBuffer(value), + ($6.GetBedByPatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetBedsRequest, $6.GetBedsResponse>( 'GetBeds', getBeds_Pre, false, false, - ($core.List<$core.int> value) => $5.GetBedsRequest.fromBuffer(value), - ($5.GetBedsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.GetBedsByRoomRequest, $5.GetBedsByRoomResponse>( + ($core.List<$core.int> value) => $6.GetBedsRequest.fromBuffer(value), + ($6.GetBedsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.GetBedsByRoomRequest, $6.GetBedsByRoomResponse>( 'GetBedsByRoom', getBedsByRoom_Pre, false, false, - ($core.List<$core.int> value) => $5.GetBedsByRoomRequest.fromBuffer(value), - ($5.GetBedsByRoomResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.UpdateBedRequest, $5.UpdateBedResponse>( + ($core.List<$core.int> value) => $6.GetBedsByRoomRequest.fromBuffer(value), + ($6.GetBedsByRoomResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.UpdateBedRequest, $6.UpdateBedResponse>( 'UpdateBed', updateBed_Pre, false, false, - ($core.List<$core.int> value) => $5.UpdateBedRequest.fromBuffer(value), - ($5.UpdateBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$5.DeleteBedRequest, $5.DeleteBedResponse>( + ($core.List<$core.int> value) => $6.UpdateBedRequest.fromBuffer(value), + ($6.UpdateBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$6.DeleteBedRequest, $6.DeleteBedResponse>( 'DeleteBed', deleteBed_Pre, false, false, - ($core.List<$core.int> value) => $5.DeleteBedRequest.fromBuffer(value), - ($5.DeleteBedResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $6.DeleteBedRequest.fromBuffer(value), + ($6.DeleteBedResponse value) => value.writeToBuffer())); } - $async.Future<$5.CreateBedResponse> createBed_Pre($grpc.ServiceCall call, $async.Future<$5.CreateBedRequest> request) async { + $async.Future<$6.CreateBedResponse> createBed_Pre($grpc.ServiceCall call, $async.Future<$6.CreateBedRequest> request) async { return createBed(call, await request); } - $async.Future<$5.BulkCreateBedsResponse> bulkCreateBeds_Pre($grpc.ServiceCall call, $async.Future<$5.BulkCreateBedsRequest> request) async { + $async.Future<$6.BulkCreateBedsResponse> bulkCreateBeds_Pre($grpc.ServiceCall call, $async.Future<$6.BulkCreateBedsRequest> request) async { return bulkCreateBeds(call, await request); } - $async.Future<$5.GetBedResponse> getBed_Pre($grpc.ServiceCall call, $async.Future<$5.GetBedRequest> request) async { + $async.Future<$6.GetBedResponse> getBed_Pre($grpc.ServiceCall call, $async.Future<$6.GetBedRequest> request) async { return getBed(call, await request); } - $async.Future<$5.GetBedByPatientResponse> getBedByPatient_Pre($grpc.ServiceCall call, $async.Future<$5.GetBedByPatientRequest> request) async { + $async.Future<$6.GetBedByPatientResponse> getBedByPatient_Pre($grpc.ServiceCall call, $async.Future<$6.GetBedByPatientRequest> request) async { return getBedByPatient(call, await request); } - $async.Future<$5.GetBedsResponse> getBeds_Pre($grpc.ServiceCall call, $async.Future<$5.GetBedsRequest> request) async { + $async.Future<$6.GetBedsResponse> getBeds_Pre($grpc.ServiceCall call, $async.Future<$6.GetBedsRequest> request) async { return getBeds(call, await request); } - $async.Future<$5.GetBedsByRoomResponse> getBedsByRoom_Pre($grpc.ServiceCall call, $async.Future<$5.GetBedsByRoomRequest> request) async { + $async.Future<$6.GetBedsByRoomResponse> getBedsByRoom_Pre($grpc.ServiceCall call, $async.Future<$6.GetBedsByRoomRequest> request) async { return getBedsByRoom(call, await request); } - $async.Future<$5.UpdateBedResponse> updateBed_Pre($grpc.ServiceCall call, $async.Future<$5.UpdateBedRequest> request) async { + $async.Future<$6.UpdateBedResponse> updateBed_Pre($grpc.ServiceCall call, $async.Future<$6.UpdateBedRequest> request) async { return updateBed(call, await request); } - $async.Future<$5.DeleteBedResponse> deleteBed_Pre($grpc.ServiceCall call, $async.Future<$5.DeleteBedRequest> request) async { + $async.Future<$6.DeleteBedResponse> deleteBed_Pre($grpc.ServiceCall call, $async.Future<$6.DeleteBedRequest> request) async { return deleteBed(call, await request); } - $async.Future<$5.CreateBedResponse> createBed($grpc.ServiceCall call, $5.CreateBedRequest request); - $async.Future<$5.BulkCreateBedsResponse> bulkCreateBeds($grpc.ServiceCall call, $5.BulkCreateBedsRequest request); - $async.Future<$5.GetBedResponse> getBed($grpc.ServiceCall call, $5.GetBedRequest request); - $async.Future<$5.GetBedByPatientResponse> getBedByPatient($grpc.ServiceCall call, $5.GetBedByPatientRequest request); - $async.Future<$5.GetBedsResponse> getBeds($grpc.ServiceCall call, $5.GetBedsRequest request); - $async.Future<$5.GetBedsByRoomResponse> getBedsByRoom($grpc.ServiceCall call, $5.GetBedsByRoomRequest request); - $async.Future<$5.UpdateBedResponse> updateBed($grpc.ServiceCall call, $5.UpdateBedRequest request); - $async.Future<$5.DeleteBedResponse> deleteBed($grpc.ServiceCall call, $5.DeleteBedRequest request); + $async.Future<$6.CreateBedResponse> createBed($grpc.ServiceCall call, $6.CreateBedRequest request); + $async.Future<$6.BulkCreateBedsResponse> bulkCreateBeds($grpc.ServiceCall call, $6.BulkCreateBedsRequest request); + $async.Future<$6.GetBedResponse> getBed($grpc.ServiceCall call, $6.GetBedRequest request); + $async.Future<$6.GetBedByPatientResponse> getBedByPatient($grpc.ServiceCall call, $6.GetBedByPatientRequest request); + $async.Future<$6.GetBedsResponse> getBeds($grpc.ServiceCall call, $6.GetBedsRequest request); + $async.Future<$6.GetBedsByRoomResponse> getBedsByRoom($grpc.ServiceCall call, $6.GetBedsByRoomRequest request); + $async.Future<$6.UpdateBedResponse> updateBed($grpc.ServiceCall call, $6.UpdateBedRequest request); + $async.Future<$6.DeleteBedResponse> deleteBed($grpc.ServiceCall call, $6.DeleteBedRequest request); } diff --git a/gen/dart/lib/proto/services/task_svc/v1/patient_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/patient_svc.pbgrpc.dart index 3f18b20d0..2d8e1d37a 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/patient_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/patient_svc.pbgrpc.dart @@ -15,68 +15,68 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'patient_svc.pb.dart' as $6; +import 'patient_svc.pb.dart' as $7; export 'patient_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.PatientService') class PatientServiceClient extends $grpc.Client { - static final _$createPatient = $grpc.ClientMethod<$6.CreatePatientRequest, $6.CreatePatientResponse>( + static final _$createPatient = $grpc.ClientMethod<$7.CreatePatientRequest, $7.CreatePatientResponse>( '/proto.services.task_svc.v1.PatientService/CreatePatient', - ($6.CreatePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.CreatePatientResponse.fromBuffer(value)); - static final _$getPatient = $grpc.ClientMethod<$6.GetPatientRequest, $6.GetPatientResponse>( + ($7.CreatePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.CreatePatientResponse.fromBuffer(value)); + static final _$getPatient = $grpc.ClientMethod<$7.GetPatientRequest, $7.GetPatientResponse>( '/proto.services.task_svc.v1.PatientService/GetPatient', - ($6.GetPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientResponse.fromBuffer(value)); - static final _$getPatientByBed = $grpc.ClientMethod<$6.GetPatientByBedRequest, $6.GetPatientByBedResponse>( + ($7.GetPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientResponse.fromBuffer(value)); + static final _$getPatientByBed = $grpc.ClientMethod<$7.GetPatientByBedRequest, $7.GetPatientByBedResponse>( '/proto.services.task_svc.v1.PatientService/GetPatientByBed', - ($6.GetPatientByBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientByBedResponse.fromBuffer(value)); - static final _$getPatientsByWard = $grpc.ClientMethod<$6.GetPatientsByWardRequest, $6.GetPatientsByWardResponse>( + ($7.GetPatientByBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientByBedResponse.fromBuffer(value)); + static final _$getPatientsByWard = $grpc.ClientMethod<$7.GetPatientsByWardRequest, $7.GetPatientsByWardResponse>( '/proto.services.task_svc.v1.PatientService/GetPatientsByWard', - ($6.GetPatientsByWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientsByWardResponse.fromBuffer(value)); - static final _$getPatientAssignmentByWard = $grpc.ClientMethod<$6.GetPatientAssignmentByWardRequest, $6.GetPatientAssignmentByWardResponse>( + ($7.GetPatientsByWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientsByWardResponse.fromBuffer(value)); + static final _$getPatientAssignmentByWard = $grpc.ClientMethod<$7.GetPatientAssignmentByWardRequest, $7.GetPatientAssignmentByWardResponse>( '/proto.services.task_svc.v1.PatientService/GetPatientAssignmentByWard', - ($6.GetPatientAssignmentByWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientAssignmentByWardResponse.fromBuffer(value)); - static final _$getRecentPatients = $grpc.ClientMethod<$6.GetRecentPatientsRequest, $6.GetRecentPatientsResponse>( + ($7.GetPatientAssignmentByWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientAssignmentByWardResponse.fromBuffer(value)); + static final _$getRecentPatients = $grpc.ClientMethod<$7.GetRecentPatientsRequest, $7.GetRecentPatientsResponse>( '/proto.services.task_svc.v1.PatientService/GetRecentPatients', - ($6.GetRecentPatientsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetRecentPatientsResponse.fromBuffer(value)); - static final _$updatePatient = $grpc.ClientMethod<$6.UpdatePatientRequest, $6.UpdatePatientResponse>( + ($7.GetRecentPatientsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetRecentPatientsResponse.fromBuffer(value)); + static final _$updatePatient = $grpc.ClientMethod<$7.UpdatePatientRequest, $7.UpdatePatientResponse>( '/proto.services.task_svc.v1.PatientService/UpdatePatient', - ($6.UpdatePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.UpdatePatientResponse.fromBuffer(value)); - static final _$assignBed = $grpc.ClientMethod<$6.AssignBedRequest, $6.AssignBedResponse>( + ($7.UpdatePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.UpdatePatientResponse.fromBuffer(value)); + static final _$assignBed = $grpc.ClientMethod<$7.AssignBedRequest, $7.AssignBedResponse>( '/proto.services.task_svc.v1.PatientService/AssignBed', - ($6.AssignBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.AssignBedResponse.fromBuffer(value)); - static final _$unassignBed = $grpc.ClientMethod<$6.UnassignBedRequest, $6.UnassignBedResponse>( + ($7.AssignBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.AssignBedResponse.fromBuffer(value)); + static final _$unassignBed = $grpc.ClientMethod<$7.UnassignBedRequest, $7.UnassignBedResponse>( '/proto.services.task_svc.v1.PatientService/UnassignBed', - ($6.UnassignBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.UnassignBedResponse.fromBuffer(value)); - static final _$dischargePatient = $grpc.ClientMethod<$6.DischargePatientRequest, $6.DischargePatientResponse>( + ($7.UnassignBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.UnassignBedResponse.fromBuffer(value)); + static final _$dischargePatient = $grpc.ClientMethod<$7.DischargePatientRequest, $7.DischargePatientResponse>( '/proto.services.task_svc.v1.PatientService/DischargePatient', - ($6.DischargePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.DischargePatientResponse.fromBuffer(value)); - static final _$getPatientDetails = $grpc.ClientMethod<$6.GetPatientDetailsRequest, $6.GetPatientDetailsResponse>( + ($7.DischargePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.DischargePatientResponse.fromBuffer(value)); + static final _$getPatientDetails = $grpc.ClientMethod<$7.GetPatientDetailsRequest, $7.GetPatientDetailsResponse>( '/proto.services.task_svc.v1.PatientService/GetPatientDetails', - ($6.GetPatientDetailsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientDetailsResponse.fromBuffer(value)); - static final _$getPatientList = $grpc.ClientMethod<$6.GetPatientListRequest, $6.GetPatientListResponse>( + ($7.GetPatientDetailsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientDetailsResponse.fromBuffer(value)); + static final _$getPatientList = $grpc.ClientMethod<$7.GetPatientListRequest, $7.GetPatientListResponse>( '/proto.services.task_svc.v1.PatientService/GetPatientList', - ($6.GetPatientListRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.GetPatientListResponse.fromBuffer(value)); - static final _$deletePatient = $grpc.ClientMethod<$6.DeletePatientRequest, $6.DeletePatientResponse>( + ($7.GetPatientListRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.GetPatientListResponse.fromBuffer(value)); + static final _$deletePatient = $grpc.ClientMethod<$7.DeletePatientRequest, $7.DeletePatientResponse>( '/proto.services.task_svc.v1.PatientService/DeletePatient', - ($6.DeletePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.DeletePatientResponse.fromBuffer(value)); - static final _$readmitPatient = $grpc.ClientMethod<$6.ReadmitPatientRequest, $6.ReadmitPatientResponse>( + ($7.DeletePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.DeletePatientResponse.fromBuffer(value)); + static final _$readmitPatient = $grpc.ClientMethod<$7.ReadmitPatientRequest, $7.ReadmitPatientResponse>( '/proto.services.task_svc.v1.PatientService/ReadmitPatient', - ($6.ReadmitPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $6.ReadmitPatientResponse.fromBuffer(value)); + ($7.ReadmitPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $7.ReadmitPatientResponse.fromBuffer(value)); PatientServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -84,59 +84,59 @@ class PatientServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$6.CreatePatientResponse> createPatient($6.CreatePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.CreatePatientResponse> createPatient($7.CreatePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createPatient, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientResponse> getPatient($6.GetPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientResponse> getPatient($7.GetPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatient, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientByBedResponse> getPatientByBed($6.GetPatientByBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientByBedResponse> getPatientByBed($7.GetPatientByBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatientByBed, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientsByWardResponse> getPatientsByWard($6.GetPatientsByWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientsByWardResponse> getPatientsByWard($7.GetPatientsByWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatientsByWard, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard($6.GetPatientAssignmentByWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard($7.GetPatientAssignmentByWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatientAssignmentByWard, request, options: options); } - $grpc.ResponseFuture<$6.GetRecentPatientsResponse> getRecentPatients($6.GetRecentPatientsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetRecentPatientsResponse> getRecentPatients($7.GetRecentPatientsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRecentPatients, request, options: options); } - $grpc.ResponseFuture<$6.UpdatePatientResponse> updatePatient($6.UpdatePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.UpdatePatientResponse> updatePatient($7.UpdatePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updatePatient, request, options: options); } - $grpc.ResponseFuture<$6.AssignBedResponse> assignBed($6.AssignBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.AssignBedResponse> assignBed($7.AssignBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$assignBed, request, options: options); } - $grpc.ResponseFuture<$6.UnassignBedResponse> unassignBed($6.UnassignBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.UnassignBedResponse> unassignBed($7.UnassignBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unassignBed, request, options: options); } - $grpc.ResponseFuture<$6.DischargePatientResponse> dischargePatient($6.DischargePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.DischargePatientResponse> dischargePatient($7.DischargePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$dischargePatient, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientDetailsResponse> getPatientDetails($6.GetPatientDetailsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientDetailsResponse> getPatientDetails($7.GetPatientDetailsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatientDetails, request, options: options); } - $grpc.ResponseFuture<$6.GetPatientListResponse> getPatientList($6.GetPatientListRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.GetPatientListResponse> getPatientList($7.GetPatientListRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatientList, request, options: options); } - $grpc.ResponseFuture<$6.DeletePatientResponse> deletePatient($6.DeletePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.DeletePatientResponse> deletePatient($7.DeletePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deletePatient, request, options: options); } - $grpc.ResponseFuture<$6.ReadmitPatientResponse> readmitPatient($6.ReadmitPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$7.ReadmitPatientResponse> readmitPatient($7.ReadmitPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$readmitPatient, request, options: options); } } @@ -146,174 +146,174 @@ abstract class PatientServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.PatientService'; PatientServiceBase() { - $addMethod($grpc.ServiceMethod<$6.CreatePatientRequest, $6.CreatePatientResponse>( + $addMethod($grpc.ServiceMethod<$7.CreatePatientRequest, $7.CreatePatientResponse>( 'CreatePatient', createPatient_Pre, false, false, - ($core.List<$core.int> value) => $6.CreatePatientRequest.fromBuffer(value), - ($6.CreatePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientRequest, $6.GetPatientResponse>( + ($core.List<$core.int> value) => $7.CreatePatientRequest.fromBuffer(value), + ($7.CreatePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientRequest, $7.GetPatientResponse>( 'GetPatient', getPatient_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientRequest.fromBuffer(value), - ($6.GetPatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientByBedRequest, $6.GetPatientByBedResponse>( + ($core.List<$core.int> value) => $7.GetPatientRequest.fromBuffer(value), + ($7.GetPatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientByBedRequest, $7.GetPatientByBedResponse>( 'GetPatientByBed', getPatientByBed_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientByBedRequest.fromBuffer(value), - ($6.GetPatientByBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientsByWardRequest, $6.GetPatientsByWardResponse>( + ($core.List<$core.int> value) => $7.GetPatientByBedRequest.fromBuffer(value), + ($7.GetPatientByBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientsByWardRequest, $7.GetPatientsByWardResponse>( 'GetPatientsByWard', getPatientsByWard_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientsByWardRequest.fromBuffer(value), - ($6.GetPatientsByWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientAssignmentByWardRequest, $6.GetPatientAssignmentByWardResponse>( + ($core.List<$core.int> value) => $7.GetPatientsByWardRequest.fromBuffer(value), + ($7.GetPatientsByWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientAssignmentByWardRequest, $7.GetPatientAssignmentByWardResponse>( 'GetPatientAssignmentByWard', getPatientAssignmentByWard_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientAssignmentByWardRequest.fromBuffer(value), - ($6.GetPatientAssignmentByWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetRecentPatientsRequest, $6.GetRecentPatientsResponse>( + ($core.List<$core.int> value) => $7.GetPatientAssignmentByWardRequest.fromBuffer(value), + ($7.GetPatientAssignmentByWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetRecentPatientsRequest, $7.GetRecentPatientsResponse>( 'GetRecentPatients', getRecentPatients_Pre, false, false, - ($core.List<$core.int> value) => $6.GetRecentPatientsRequest.fromBuffer(value), - ($6.GetRecentPatientsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.UpdatePatientRequest, $6.UpdatePatientResponse>( + ($core.List<$core.int> value) => $7.GetRecentPatientsRequest.fromBuffer(value), + ($7.GetRecentPatientsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.UpdatePatientRequest, $7.UpdatePatientResponse>( 'UpdatePatient', updatePatient_Pre, false, false, - ($core.List<$core.int> value) => $6.UpdatePatientRequest.fromBuffer(value), - ($6.UpdatePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.AssignBedRequest, $6.AssignBedResponse>( + ($core.List<$core.int> value) => $7.UpdatePatientRequest.fromBuffer(value), + ($7.UpdatePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.AssignBedRequest, $7.AssignBedResponse>( 'AssignBed', assignBed_Pre, false, false, - ($core.List<$core.int> value) => $6.AssignBedRequest.fromBuffer(value), - ($6.AssignBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.UnassignBedRequest, $6.UnassignBedResponse>( + ($core.List<$core.int> value) => $7.AssignBedRequest.fromBuffer(value), + ($7.AssignBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.UnassignBedRequest, $7.UnassignBedResponse>( 'UnassignBed', unassignBed_Pre, false, false, - ($core.List<$core.int> value) => $6.UnassignBedRequest.fromBuffer(value), - ($6.UnassignBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.DischargePatientRequest, $6.DischargePatientResponse>( + ($core.List<$core.int> value) => $7.UnassignBedRequest.fromBuffer(value), + ($7.UnassignBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.DischargePatientRequest, $7.DischargePatientResponse>( 'DischargePatient', dischargePatient_Pre, false, false, - ($core.List<$core.int> value) => $6.DischargePatientRequest.fromBuffer(value), - ($6.DischargePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientDetailsRequest, $6.GetPatientDetailsResponse>( + ($core.List<$core.int> value) => $7.DischargePatientRequest.fromBuffer(value), + ($7.DischargePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientDetailsRequest, $7.GetPatientDetailsResponse>( 'GetPatientDetails', getPatientDetails_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientDetailsRequest.fromBuffer(value), - ($6.GetPatientDetailsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.GetPatientListRequest, $6.GetPatientListResponse>( + ($core.List<$core.int> value) => $7.GetPatientDetailsRequest.fromBuffer(value), + ($7.GetPatientDetailsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.GetPatientListRequest, $7.GetPatientListResponse>( 'GetPatientList', getPatientList_Pre, false, false, - ($core.List<$core.int> value) => $6.GetPatientListRequest.fromBuffer(value), - ($6.GetPatientListResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.DeletePatientRequest, $6.DeletePatientResponse>( + ($core.List<$core.int> value) => $7.GetPatientListRequest.fromBuffer(value), + ($7.GetPatientListResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.DeletePatientRequest, $7.DeletePatientResponse>( 'DeletePatient', deletePatient_Pre, false, false, - ($core.List<$core.int> value) => $6.DeletePatientRequest.fromBuffer(value), - ($6.DeletePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$6.ReadmitPatientRequest, $6.ReadmitPatientResponse>( + ($core.List<$core.int> value) => $7.DeletePatientRequest.fromBuffer(value), + ($7.DeletePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$7.ReadmitPatientRequest, $7.ReadmitPatientResponse>( 'ReadmitPatient', readmitPatient_Pre, false, false, - ($core.List<$core.int> value) => $6.ReadmitPatientRequest.fromBuffer(value), - ($6.ReadmitPatientResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $7.ReadmitPatientRequest.fromBuffer(value), + ($7.ReadmitPatientResponse value) => value.writeToBuffer())); } - $async.Future<$6.CreatePatientResponse> createPatient_Pre($grpc.ServiceCall call, $async.Future<$6.CreatePatientRequest> request) async { + $async.Future<$7.CreatePatientResponse> createPatient_Pre($grpc.ServiceCall call, $async.Future<$7.CreatePatientRequest> request) async { return createPatient(call, await request); } - $async.Future<$6.GetPatientResponse> getPatient_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientRequest> request) async { + $async.Future<$7.GetPatientResponse> getPatient_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientRequest> request) async { return getPatient(call, await request); } - $async.Future<$6.GetPatientByBedResponse> getPatientByBed_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientByBedRequest> request) async { + $async.Future<$7.GetPatientByBedResponse> getPatientByBed_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientByBedRequest> request) async { return getPatientByBed(call, await request); } - $async.Future<$6.GetPatientsByWardResponse> getPatientsByWard_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientsByWardRequest> request) async { + $async.Future<$7.GetPatientsByWardResponse> getPatientsByWard_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientsByWardRequest> request) async { return getPatientsByWard(call, await request); } - $async.Future<$6.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientAssignmentByWardRequest> request) async { + $async.Future<$7.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientAssignmentByWardRequest> request) async { return getPatientAssignmentByWard(call, await request); } - $async.Future<$6.GetRecentPatientsResponse> getRecentPatients_Pre($grpc.ServiceCall call, $async.Future<$6.GetRecentPatientsRequest> request) async { + $async.Future<$7.GetRecentPatientsResponse> getRecentPatients_Pre($grpc.ServiceCall call, $async.Future<$7.GetRecentPatientsRequest> request) async { return getRecentPatients(call, await request); } - $async.Future<$6.UpdatePatientResponse> updatePatient_Pre($grpc.ServiceCall call, $async.Future<$6.UpdatePatientRequest> request) async { + $async.Future<$7.UpdatePatientResponse> updatePatient_Pre($grpc.ServiceCall call, $async.Future<$7.UpdatePatientRequest> request) async { return updatePatient(call, await request); } - $async.Future<$6.AssignBedResponse> assignBed_Pre($grpc.ServiceCall call, $async.Future<$6.AssignBedRequest> request) async { + $async.Future<$7.AssignBedResponse> assignBed_Pre($grpc.ServiceCall call, $async.Future<$7.AssignBedRequest> request) async { return assignBed(call, await request); } - $async.Future<$6.UnassignBedResponse> unassignBed_Pre($grpc.ServiceCall call, $async.Future<$6.UnassignBedRequest> request) async { + $async.Future<$7.UnassignBedResponse> unassignBed_Pre($grpc.ServiceCall call, $async.Future<$7.UnassignBedRequest> request) async { return unassignBed(call, await request); } - $async.Future<$6.DischargePatientResponse> dischargePatient_Pre($grpc.ServiceCall call, $async.Future<$6.DischargePatientRequest> request) async { + $async.Future<$7.DischargePatientResponse> dischargePatient_Pre($grpc.ServiceCall call, $async.Future<$7.DischargePatientRequest> request) async { return dischargePatient(call, await request); } - $async.Future<$6.GetPatientDetailsResponse> getPatientDetails_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientDetailsRequest> request) async { + $async.Future<$7.GetPatientDetailsResponse> getPatientDetails_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientDetailsRequest> request) async { return getPatientDetails(call, await request); } - $async.Future<$6.GetPatientListResponse> getPatientList_Pre($grpc.ServiceCall call, $async.Future<$6.GetPatientListRequest> request) async { + $async.Future<$7.GetPatientListResponse> getPatientList_Pre($grpc.ServiceCall call, $async.Future<$7.GetPatientListRequest> request) async { return getPatientList(call, await request); } - $async.Future<$6.DeletePatientResponse> deletePatient_Pre($grpc.ServiceCall call, $async.Future<$6.DeletePatientRequest> request) async { + $async.Future<$7.DeletePatientResponse> deletePatient_Pre($grpc.ServiceCall call, $async.Future<$7.DeletePatientRequest> request) async { return deletePatient(call, await request); } - $async.Future<$6.ReadmitPatientResponse> readmitPatient_Pre($grpc.ServiceCall call, $async.Future<$6.ReadmitPatientRequest> request) async { + $async.Future<$7.ReadmitPatientResponse> readmitPatient_Pre($grpc.ServiceCall call, $async.Future<$7.ReadmitPatientRequest> request) async { return readmitPatient(call, await request); } - $async.Future<$6.CreatePatientResponse> createPatient($grpc.ServiceCall call, $6.CreatePatientRequest request); - $async.Future<$6.GetPatientResponse> getPatient($grpc.ServiceCall call, $6.GetPatientRequest request); - $async.Future<$6.GetPatientByBedResponse> getPatientByBed($grpc.ServiceCall call, $6.GetPatientByBedRequest request); - $async.Future<$6.GetPatientsByWardResponse> getPatientsByWard($grpc.ServiceCall call, $6.GetPatientsByWardRequest request); - $async.Future<$6.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard($grpc.ServiceCall call, $6.GetPatientAssignmentByWardRequest request); - $async.Future<$6.GetRecentPatientsResponse> getRecentPatients($grpc.ServiceCall call, $6.GetRecentPatientsRequest request); - $async.Future<$6.UpdatePatientResponse> updatePatient($grpc.ServiceCall call, $6.UpdatePatientRequest request); - $async.Future<$6.AssignBedResponse> assignBed($grpc.ServiceCall call, $6.AssignBedRequest request); - $async.Future<$6.UnassignBedResponse> unassignBed($grpc.ServiceCall call, $6.UnassignBedRequest request); - $async.Future<$6.DischargePatientResponse> dischargePatient($grpc.ServiceCall call, $6.DischargePatientRequest request); - $async.Future<$6.GetPatientDetailsResponse> getPatientDetails($grpc.ServiceCall call, $6.GetPatientDetailsRequest request); - $async.Future<$6.GetPatientListResponse> getPatientList($grpc.ServiceCall call, $6.GetPatientListRequest request); - $async.Future<$6.DeletePatientResponse> deletePatient($grpc.ServiceCall call, $6.DeletePatientRequest request); - $async.Future<$6.ReadmitPatientResponse> readmitPatient($grpc.ServiceCall call, $6.ReadmitPatientRequest request); + $async.Future<$7.CreatePatientResponse> createPatient($grpc.ServiceCall call, $7.CreatePatientRequest request); + $async.Future<$7.GetPatientResponse> getPatient($grpc.ServiceCall call, $7.GetPatientRequest request); + $async.Future<$7.GetPatientByBedResponse> getPatientByBed($grpc.ServiceCall call, $7.GetPatientByBedRequest request); + $async.Future<$7.GetPatientsByWardResponse> getPatientsByWard($grpc.ServiceCall call, $7.GetPatientsByWardRequest request); + $async.Future<$7.GetPatientAssignmentByWardResponse> getPatientAssignmentByWard($grpc.ServiceCall call, $7.GetPatientAssignmentByWardRequest request); + $async.Future<$7.GetRecentPatientsResponse> getRecentPatients($grpc.ServiceCall call, $7.GetRecentPatientsRequest request); + $async.Future<$7.UpdatePatientResponse> updatePatient($grpc.ServiceCall call, $7.UpdatePatientRequest request); + $async.Future<$7.AssignBedResponse> assignBed($grpc.ServiceCall call, $7.AssignBedRequest request); + $async.Future<$7.UnassignBedResponse> unassignBed($grpc.ServiceCall call, $7.UnassignBedRequest request); + $async.Future<$7.DischargePatientResponse> dischargePatient($grpc.ServiceCall call, $7.DischargePatientRequest request); + $async.Future<$7.GetPatientDetailsResponse> getPatientDetails($grpc.ServiceCall call, $7.GetPatientDetailsRequest request); + $async.Future<$7.GetPatientListResponse> getPatientList($grpc.ServiceCall call, $7.GetPatientListRequest request); + $async.Future<$7.DeletePatientResponse> deletePatient($grpc.ServiceCall call, $7.DeletePatientRequest request); + $async.Future<$7.ReadmitPatientResponse> readmitPatient($grpc.ServiceCall call, $7.ReadmitPatientRequest request); } diff --git a/gen/dart/lib/proto/services/task_svc/v1/room_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/room_svc.pbgrpc.dart index abf6c5b7e..f12dbf764 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/room_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/room_svc.pbgrpc.dart @@ -15,40 +15,40 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'room_svc.pb.dart' as $7; +import 'room_svc.pb.dart' as $8; export 'room_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.RoomService') class RoomServiceClient extends $grpc.Client { - static final _$createRoom = $grpc.ClientMethod<$7.CreateRoomRequest, $7.CreateRoomResponse>( + static final _$createRoom = $grpc.ClientMethod<$8.CreateRoomRequest, $8.CreateRoomResponse>( '/proto.services.task_svc.v1.RoomService/CreateRoom', - ($7.CreateRoomRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.CreateRoomResponse.fromBuffer(value)); - static final _$getRoom = $grpc.ClientMethod<$7.GetRoomRequest, $7.GetRoomResponse>( + ($8.CreateRoomRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.CreateRoomResponse.fromBuffer(value)); + static final _$getRoom = $grpc.ClientMethod<$8.GetRoomRequest, $8.GetRoomResponse>( '/proto.services.task_svc.v1.RoomService/GetRoom', - ($7.GetRoomRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.GetRoomResponse.fromBuffer(value)); - static final _$getRooms = $grpc.ClientMethod<$7.GetRoomsRequest, $7.GetRoomsResponse>( + ($8.GetRoomRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.GetRoomResponse.fromBuffer(value)); + static final _$getRooms = $grpc.ClientMethod<$8.GetRoomsRequest, $8.GetRoomsResponse>( '/proto.services.task_svc.v1.RoomService/GetRooms', - ($7.GetRoomsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.GetRoomsResponse.fromBuffer(value)); - static final _$getRoomsByWard = $grpc.ClientMethod<$7.GetRoomsByWardRequest, $7.GetRoomsByWardResponse>( + ($8.GetRoomsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.GetRoomsResponse.fromBuffer(value)); + static final _$getRoomsByWard = $grpc.ClientMethod<$8.GetRoomsByWardRequest, $8.GetRoomsByWardResponse>( '/proto.services.task_svc.v1.RoomService/GetRoomsByWard', - ($7.GetRoomsByWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.GetRoomsByWardResponse.fromBuffer(value)); - static final _$updateRoom = $grpc.ClientMethod<$7.UpdateRoomRequest, $7.UpdateRoomResponse>( + ($8.GetRoomsByWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.GetRoomsByWardResponse.fromBuffer(value)); + static final _$updateRoom = $grpc.ClientMethod<$8.UpdateRoomRequest, $8.UpdateRoomResponse>( '/proto.services.task_svc.v1.RoomService/UpdateRoom', - ($7.UpdateRoomRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.UpdateRoomResponse.fromBuffer(value)); - static final _$deleteRoom = $grpc.ClientMethod<$7.DeleteRoomRequest, $7.DeleteRoomResponse>( + ($8.UpdateRoomRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.UpdateRoomResponse.fromBuffer(value)); + static final _$deleteRoom = $grpc.ClientMethod<$8.DeleteRoomRequest, $8.DeleteRoomResponse>( '/proto.services.task_svc.v1.RoomService/DeleteRoom', - ($7.DeleteRoomRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.DeleteRoomResponse.fromBuffer(value)); - static final _$getRoomOverviewsByWard = $grpc.ClientMethod<$7.GetRoomOverviewsByWardRequest, $7.GetRoomOverviewsByWardResponse>( + ($8.DeleteRoomRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.DeleteRoomResponse.fromBuffer(value)); + static final _$getRoomOverviewsByWard = $grpc.ClientMethod<$8.GetRoomOverviewsByWardRequest, $8.GetRoomOverviewsByWardResponse>( '/proto.services.task_svc.v1.RoomService/GetRoomOverviewsByWard', - ($7.GetRoomOverviewsByWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $7.GetRoomOverviewsByWardResponse.fromBuffer(value)); + ($8.GetRoomOverviewsByWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $8.GetRoomOverviewsByWardResponse.fromBuffer(value)); RoomServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -56,31 +56,31 @@ class RoomServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$7.CreateRoomResponse> createRoom($7.CreateRoomRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.CreateRoomResponse> createRoom($8.CreateRoomRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createRoom, request, options: options); } - $grpc.ResponseFuture<$7.GetRoomResponse> getRoom($7.GetRoomRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.GetRoomResponse> getRoom($8.GetRoomRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRoom, request, options: options); } - $grpc.ResponseFuture<$7.GetRoomsResponse> getRooms($7.GetRoomsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.GetRoomsResponse> getRooms($8.GetRoomsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRooms, request, options: options); } - $grpc.ResponseFuture<$7.GetRoomsByWardResponse> getRoomsByWard($7.GetRoomsByWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.GetRoomsByWardResponse> getRoomsByWard($8.GetRoomsByWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRoomsByWard, request, options: options); } - $grpc.ResponseFuture<$7.UpdateRoomResponse> updateRoom($7.UpdateRoomRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.UpdateRoomResponse> updateRoom($8.UpdateRoomRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateRoom, request, options: options); } - $grpc.ResponseFuture<$7.DeleteRoomResponse> deleteRoom($7.DeleteRoomRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.DeleteRoomResponse> deleteRoom($8.DeleteRoomRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteRoom, request, options: options); } - $grpc.ResponseFuture<$7.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard($7.GetRoomOverviewsByWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$8.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard($8.GetRoomOverviewsByWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRoomOverviewsByWard, request, options: options); } } @@ -90,90 +90,90 @@ abstract class RoomServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.RoomService'; RoomServiceBase() { - $addMethod($grpc.ServiceMethod<$7.CreateRoomRequest, $7.CreateRoomResponse>( + $addMethod($grpc.ServiceMethod<$8.CreateRoomRequest, $8.CreateRoomResponse>( 'CreateRoom', createRoom_Pre, false, false, - ($core.List<$core.int> value) => $7.CreateRoomRequest.fromBuffer(value), - ($7.CreateRoomResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetRoomRequest, $7.GetRoomResponse>( + ($core.List<$core.int> value) => $8.CreateRoomRequest.fromBuffer(value), + ($8.CreateRoomResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.GetRoomRequest, $8.GetRoomResponse>( 'GetRoom', getRoom_Pre, false, false, - ($core.List<$core.int> value) => $7.GetRoomRequest.fromBuffer(value), - ($7.GetRoomResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetRoomsRequest, $7.GetRoomsResponse>( + ($core.List<$core.int> value) => $8.GetRoomRequest.fromBuffer(value), + ($8.GetRoomResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.GetRoomsRequest, $8.GetRoomsResponse>( 'GetRooms', getRooms_Pre, false, false, - ($core.List<$core.int> value) => $7.GetRoomsRequest.fromBuffer(value), - ($7.GetRoomsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetRoomsByWardRequest, $7.GetRoomsByWardResponse>( + ($core.List<$core.int> value) => $8.GetRoomsRequest.fromBuffer(value), + ($8.GetRoomsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.GetRoomsByWardRequest, $8.GetRoomsByWardResponse>( 'GetRoomsByWard', getRoomsByWard_Pre, false, false, - ($core.List<$core.int> value) => $7.GetRoomsByWardRequest.fromBuffer(value), - ($7.GetRoomsByWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.UpdateRoomRequest, $7.UpdateRoomResponse>( + ($core.List<$core.int> value) => $8.GetRoomsByWardRequest.fromBuffer(value), + ($8.GetRoomsByWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.UpdateRoomRequest, $8.UpdateRoomResponse>( 'UpdateRoom', updateRoom_Pre, false, false, - ($core.List<$core.int> value) => $7.UpdateRoomRequest.fromBuffer(value), - ($7.UpdateRoomResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.DeleteRoomRequest, $7.DeleteRoomResponse>( + ($core.List<$core.int> value) => $8.UpdateRoomRequest.fromBuffer(value), + ($8.UpdateRoomResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.DeleteRoomRequest, $8.DeleteRoomResponse>( 'DeleteRoom', deleteRoom_Pre, false, false, - ($core.List<$core.int> value) => $7.DeleteRoomRequest.fromBuffer(value), - ($7.DeleteRoomResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$7.GetRoomOverviewsByWardRequest, $7.GetRoomOverviewsByWardResponse>( + ($core.List<$core.int> value) => $8.DeleteRoomRequest.fromBuffer(value), + ($8.DeleteRoomResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$8.GetRoomOverviewsByWardRequest, $8.GetRoomOverviewsByWardResponse>( 'GetRoomOverviewsByWard', getRoomOverviewsByWard_Pre, false, false, - ($core.List<$core.int> value) => $7.GetRoomOverviewsByWardRequest.fromBuffer(value), - ($7.GetRoomOverviewsByWardResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $8.GetRoomOverviewsByWardRequest.fromBuffer(value), + ($8.GetRoomOverviewsByWardResponse value) => value.writeToBuffer())); } - $async.Future<$7.CreateRoomResponse> createRoom_Pre($grpc.ServiceCall call, $async.Future<$7.CreateRoomRequest> request) async { + $async.Future<$8.CreateRoomResponse> createRoom_Pre($grpc.ServiceCall call, $async.Future<$8.CreateRoomRequest> request) async { return createRoom(call, await request); } - $async.Future<$7.GetRoomResponse> getRoom_Pre($grpc.ServiceCall call, $async.Future<$7.GetRoomRequest> request) async { + $async.Future<$8.GetRoomResponse> getRoom_Pre($grpc.ServiceCall call, $async.Future<$8.GetRoomRequest> request) async { return getRoom(call, await request); } - $async.Future<$7.GetRoomsResponse> getRooms_Pre($grpc.ServiceCall call, $async.Future<$7.GetRoomsRequest> request) async { + $async.Future<$8.GetRoomsResponse> getRooms_Pre($grpc.ServiceCall call, $async.Future<$8.GetRoomsRequest> request) async { return getRooms(call, await request); } - $async.Future<$7.GetRoomsByWardResponse> getRoomsByWard_Pre($grpc.ServiceCall call, $async.Future<$7.GetRoomsByWardRequest> request) async { + $async.Future<$8.GetRoomsByWardResponse> getRoomsByWard_Pre($grpc.ServiceCall call, $async.Future<$8.GetRoomsByWardRequest> request) async { return getRoomsByWard(call, await request); } - $async.Future<$7.UpdateRoomResponse> updateRoom_Pre($grpc.ServiceCall call, $async.Future<$7.UpdateRoomRequest> request) async { + $async.Future<$8.UpdateRoomResponse> updateRoom_Pre($grpc.ServiceCall call, $async.Future<$8.UpdateRoomRequest> request) async { return updateRoom(call, await request); } - $async.Future<$7.DeleteRoomResponse> deleteRoom_Pre($grpc.ServiceCall call, $async.Future<$7.DeleteRoomRequest> request) async { + $async.Future<$8.DeleteRoomResponse> deleteRoom_Pre($grpc.ServiceCall call, $async.Future<$8.DeleteRoomRequest> request) async { return deleteRoom(call, await request); } - $async.Future<$7.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard_Pre($grpc.ServiceCall call, $async.Future<$7.GetRoomOverviewsByWardRequest> request) async { + $async.Future<$8.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard_Pre($grpc.ServiceCall call, $async.Future<$8.GetRoomOverviewsByWardRequest> request) async { return getRoomOverviewsByWard(call, await request); } - $async.Future<$7.CreateRoomResponse> createRoom($grpc.ServiceCall call, $7.CreateRoomRequest request); - $async.Future<$7.GetRoomResponse> getRoom($grpc.ServiceCall call, $7.GetRoomRequest request); - $async.Future<$7.GetRoomsResponse> getRooms($grpc.ServiceCall call, $7.GetRoomsRequest request); - $async.Future<$7.GetRoomsByWardResponse> getRoomsByWard($grpc.ServiceCall call, $7.GetRoomsByWardRequest request); - $async.Future<$7.UpdateRoomResponse> updateRoom($grpc.ServiceCall call, $7.UpdateRoomRequest request); - $async.Future<$7.DeleteRoomResponse> deleteRoom($grpc.ServiceCall call, $7.DeleteRoomRequest request); - $async.Future<$7.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard($grpc.ServiceCall call, $7.GetRoomOverviewsByWardRequest request); + $async.Future<$8.CreateRoomResponse> createRoom($grpc.ServiceCall call, $8.CreateRoomRequest request); + $async.Future<$8.GetRoomResponse> getRoom($grpc.ServiceCall call, $8.GetRoomRequest request); + $async.Future<$8.GetRoomsResponse> getRooms($grpc.ServiceCall call, $8.GetRoomsRequest request); + $async.Future<$8.GetRoomsByWardResponse> getRoomsByWard($grpc.ServiceCall call, $8.GetRoomsByWardRequest request); + $async.Future<$8.UpdateRoomResponse> updateRoom($grpc.ServiceCall call, $8.UpdateRoomRequest request); + $async.Future<$8.DeleteRoomResponse> deleteRoom($grpc.ServiceCall call, $8.DeleteRoomRequest request); + $async.Future<$8.GetRoomOverviewsByWardResponse> getRoomOverviewsByWard($grpc.ServiceCall call, $8.GetRoomOverviewsByWardRequest request); } diff --git a/gen/dart/lib/proto/services/task_svc/v1/task_svc.pb.dart b/gen/dart/lib/proto/services/task_svc/v1/task_svc.pb.dart index d6e2c4bdf..ad665ee91 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/task_svc.pb.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/task_svc.pb.dart @@ -13,7 +13,7 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../../google/protobuf/timestamp.pb.dart' as $16; +import '../../../../google/protobuf/timestamp.pb.dart' as $17; import 'task_svc.pbenum.dart'; export 'task_svc.pbenum.dart'; @@ -24,7 +24,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { $core.String? description, $core.String? patientId, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, TaskStatus? initialStatus, }) { final $result = create(); @@ -57,7 +57,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'description') ..aOS(3, _omitFieldNames ? '' : 'patientId') ..aOB(4, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(5, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(5, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..e(6, _omitFieldNames ? '' : 'initialStatus', $pb.PbFieldType.OE, defaultOrMaker: TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: TaskStatus.valueOf, enumValues: TaskStatus.values) ..hasRequiredFields = false ; @@ -120,15 +120,15 @@ class CreateTaskRequest extends $pb.GeneratedMessage { void clearPublic() => clearField(4); @$pb.TagNumber(5) - $16.Timestamp get dueAt => $_getN(4); + $17.Timestamp get dueAt => $_getN(4); @$pb.TagNumber(5) - set dueAt($16.Timestamp v) { setField(5, v); } + set dueAt($17.Timestamp v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasDueAt() => $_has(4); @$pb.TagNumber(5) void clearDueAt() => clearField(5); @$pb.TagNumber(5) - $16.Timestamp ensureDueAt() => $_ensure(4); + $17.Timestamp ensureDueAt() => $_ensure(4); @$pb.TagNumber(6) TaskStatus get initialStatus => $_getN(5); @@ -405,7 +405,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { $core.String? assignedUserId, GetTaskResponse_Patient? patient, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, $core.String? createdBy, $core.Iterable? subtasks, $core.String? organizationId, @@ -458,7 +458,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOM(6, _omitFieldNames ? '' : 'patient', subBuilder: GetTaskResponse_Patient.create) ..aOB(7, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..aOS(9, _omitFieldNames ? '' : 'createdBy') ..pc(10, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetTaskResponse_SubTask.create) ..aOS(11, _omitFieldNames ? '' : 'organizationId') @@ -552,15 +552,15 @@ class GetTaskResponse extends $pb.GeneratedMessage { void clearPublic() => clearField(7); @$pb.TagNumber(8) - $16.Timestamp get dueAt => $_getN(7); + $17.Timestamp get dueAt => $_getN(7); @$pb.TagNumber(8) - set dueAt($16.Timestamp v) { setField(8, v); } + set dueAt($17.Timestamp v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasDueAt() => $_has(7); @$pb.TagNumber(8) void clearDueAt() => clearField(8); @$pb.TagNumber(8) - $16.Timestamp ensureDueAt() => $_ensure(7); + $17.Timestamp ensureDueAt() => $_ensure(7); @$pb.TagNumber(9) $core.String get createdBy => $_getSZ(8); @@ -735,7 +735,7 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { $core.String? assignedUserId, $core.String? patientId, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, $core.String? createdBy, $core.Iterable? subtasks, }) { @@ -784,7 +784,7 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOS(6, _omitFieldNames ? '' : 'patientId') ..aOB(7, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..aOS(9, _omitFieldNames ? '' : 'createdBy') ..pc(10, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetTasksByPatientResponse_Task_SubTask.create) ..hasRequiredFields = false @@ -875,15 +875,15 @@ class GetTasksByPatientResponse_Task extends $pb.GeneratedMessage { void clearPublic() => clearField(7); @$pb.TagNumber(8) - $16.Timestamp get dueAt => $_getN(7); + $17.Timestamp get dueAt => $_getN(7); @$pb.TagNumber(8) - set dueAt($16.Timestamp v) { setField(8, v); } + set dueAt($17.Timestamp v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasDueAt() => $_has(7); @$pb.TagNumber(8) void clearDueAt() => clearField(8); @$pb.TagNumber(8) - $16.Timestamp ensureDueAt() => $_ensure(7); + $17.Timestamp ensureDueAt() => $_ensure(7); @$pb.TagNumber(9) $core.String get createdBy => $_getSZ(8); @@ -1092,7 +1092,7 @@ class GetTasksByPatientSortedByStatusResponse_Task extends $pb.GeneratedMessage $core.String? assignedUserId, $core.String? patientId, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, $core.String? createdBy, $core.Iterable? subtasks, }) { @@ -1137,7 +1137,7 @@ class GetTasksByPatientSortedByStatusResponse_Task extends $pb.GeneratedMessage ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOS(6, _omitFieldNames ? '' : 'patientId') ..aOB(7, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..aOS(9, _omitFieldNames ? '' : 'createdBy') ..pc(10, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetTasksByPatientSortedByStatusResponse_Task_SubTask.create) ..hasRequiredFields = false @@ -1219,15 +1219,15 @@ class GetTasksByPatientSortedByStatusResponse_Task extends $pb.GeneratedMessage void clearPublic() => clearField(7); @$pb.TagNumber(8) - $16.Timestamp get dueAt => $_getN(6); + $17.Timestamp get dueAt => $_getN(6); @$pb.TagNumber(8) - set dueAt($16.Timestamp v) { setField(8, v); } + set dueAt($17.Timestamp v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasDueAt() => $_has(6); @$pb.TagNumber(8) void clearDueAt() => clearField(8); @$pb.TagNumber(8) - $16.Timestamp ensureDueAt() => $_ensure(6); + $17.Timestamp ensureDueAt() => $_ensure(6); @$pb.TagNumber(9) $core.String get createdBy => $_getSZ(7); @@ -1499,7 +1499,7 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { $core.String? assignedUserId, GetAssignedTasksResponse_Task_Patient? patient, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, $core.String? createdBy, $core.Iterable? subtasks, }) { @@ -1548,7 +1548,7 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { ..aOS(5, _omitFieldNames ? '' : 'assignedUserId') ..aOM(6, _omitFieldNames ? '' : 'patient', subBuilder: GetAssignedTasksResponse_Task_Patient.create) ..aOB(7, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(8, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..aOS(9, _omitFieldNames ? '' : 'createdBy') ..pc(10, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetAssignedTasksResponse_Task_SubTask.create) ..hasRequiredFields = false @@ -1641,15 +1641,15 @@ class GetAssignedTasksResponse_Task extends $pb.GeneratedMessage { void clearPublic() => clearField(7); @$pb.TagNumber(8) - $16.Timestamp get dueAt => $_getN(7); + $17.Timestamp get dueAt => $_getN(7); @$pb.TagNumber(8) - set dueAt($16.Timestamp v) { setField(8, v); } + set dueAt($17.Timestamp v) { setField(8, v); } @$pb.TagNumber(8) $core.bool hasDueAt() => $_has(7); @$pb.TagNumber(8) void clearDueAt() => clearField(8); @$pb.TagNumber(8) - $16.Timestamp ensureDueAt() => $_ensure(7); + $17.Timestamp ensureDueAt() => $_ensure(7); @$pb.TagNumber(9) $core.String get createdBy => $_getSZ(8); @@ -1713,7 +1713,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, $core.bool? public, }) { final $result = create(); @@ -1742,7 +1742,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..aOM<$16.Timestamp>(4, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(4, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..aOB(5, _omitFieldNames ? '' : 'public') ..hasRequiredFields = false ; @@ -1796,15 +1796,15 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $16.Timestamp get dueAt => $_getN(3); + $17.Timestamp get dueAt => $_getN(3); @$pb.TagNumber(4) - set dueAt($16.Timestamp v) { setField(4, v); } + set dueAt($17.Timestamp v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasDueAt() => $_has(3); @$pb.TagNumber(4) void clearDueAt() => clearField(4); @$pb.TagNumber(4) - $16.Timestamp ensureDueAt() => $_ensure(3); + $17.Timestamp ensureDueAt() => $_ensure(3); @$pb.TagNumber(5) $core.bool get public => $_getBF(4); diff --git a/gen/dart/lib/proto/services/task_svc/v1/task_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/task_svc.pbgrpc.dart index 37491f5fc..767d383e3 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/task_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/task_svc.pbgrpc.dart @@ -15,88 +15,88 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'task_svc.pb.dart' as $8; +import 'task_svc.pb.dart' as $9; export 'task_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.TaskService') class TaskServiceClient extends $grpc.Client { - static final _$createTask = $grpc.ClientMethod<$8.CreateTaskRequest, $8.CreateTaskResponse>( + static final _$createTask = $grpc.ClientMethod<$9.CreateTaskRequest, $9.CreateTaskResponse>( '/proto.services.task_svc.v1.TaskService/CreateTask', - ($8.CreateTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.CreateTaskResponse.fromBuffer(value)); - static final _$getTask = $grpc.ClientMethod<$8.GetTaskRequest, $8.GetTaskResponse>( + ($9.CreateTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.CreateTaskResponse.fromBuffer(value)); + static final _$getTask = $grpc.ClientMethod<$9.GetTaskRequest, $9.GetTaskResponse>( '/proto.services.task_svc.v1.TaskService/GetTask', - ($8.GetTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.GetTaskResponse.fromBuffer(value)); - static final _$getTasksByPatient = $grpc.ClientMethod<$8.GetTasksByPatientRequest, $8.GetTasksByPatientResponse>( + ($9.GetTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.GetTaskResponse.fromBuffer(value)); + static final _$getTasksByPatient = $grpc.ClientMethod<$9.GetTasksByPatientRequest, $9.GetTasksByPatientResponse>( '/proto.services.task_svc.v1.TaskService/GetTasksByPatient', - ($8.GetTasksByPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.GetTasksByPatientResponse.fromBuffer(value)); - static final _$getTasksByPatientSortedByStatus = $grpc.ClientMethod<$8.GetTasksByPatientSortedByStatusRequest, $8.GetTasksByPatientSortedByStatusResponse>( + ($9.GetTasksByPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.GetTasksByPatientResponse.fromBuffer(value)); + static final _$getTasksByPatientSortedByStatus = $grpc.ClientMethod<$9.GetTasksByPatientSortedByStatusRequest, $9.GetTasksByPatientSortedByStatusResponse>( '/proto.services.task_svc.v1.TaskService/GetTasksByPatientSortedByStatus', - ($8.GetTasksByPatientSortedByStatusRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.GetTasksByPatientSortedByStatusResponse.fromBuffer(value)); - static final _$getAssignedTasks = $grpc.ClientMethod<$8.GetAssignedTasksRequest, $8.GetAssignedTasksResponse>( + ($9.GetTasksByPatientSortedByStatusRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.GetTasksByPatientSortedByStatusResponse.fromBuffer(value)); + static final _$getAssignedTasks = $grpc.ClientMethod<$9.GetAssignedTasksRequest, $9.GetAssignedTasksResponse>( '/proto.services.task_svc.v1.TaskService/GetAssignedTasks', - ($8.GetAssignedTasksRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.GetAssignedTasksResponse.fromBuffer(value)); - static final _$updateTask = $grpc.ClientMethod<$8.UpdateTaskRequest, $8.UpdateTaskResponse>( + ($9.GetAssignedTasksRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.GetAssignedTasksResponse.fromBuffer(value)); + static final _$updateTask = $grpc.ClientMethod<$9.UpdateTaskRequest, $9.UpdateTaskResponse>( '/proto.services.task_svc.v1.TaskService/UpdateTask', - ($8.UpdateTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.UpdateTaskResponse.fromBuffer(value)); - static final _$addSubTask = $grpc.ClientMethod<$8.AddSubTaskRequest, $8.AddSubTaskResponse>( + ($9.UpdateTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.UpdateTaskResponse.fromBuffer(value)); + static final _$addSubTask = $grpc.ClientMethod<$9.AddSubTaskRequest, $9.AddSubTaskResponse>( '/proto.services.task_svc.v1.TaskService/AddSubTask', - ($8.AddSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.AddSubTaskResponse.fromBuffer(value)); - static final _$removeSubTask = $grpc.ClientMethod<$8.RemoveSubTaskRequest, $8.RemoveSubTaskResponse>( + ($9.AddSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.AddSubTaskResponse.fromBuffer(value)); + static final _$removeSubTask = $grpc.ClientMethod<$9.RemoveSubTaskRequest, $9.RemoveSubTaskResponse>( '/proto.services.task_svc.v1.TaskService/RemoveSubTask', - ($8.RemoveSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.RemoveSubTaskResponse.fromBuffer(value)); - static final _$updateSubTask = $grpc.ClientMethod<$8.UpdateSubTaskRequest, $8.UpdateSubTaskResponse>( + ($9.RemoveSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.RemoveSubTaskResponse.fromBuffer(value)); + static final _$updateSubTask = $grpc.ClientMethod<$9.UpdateSubTaskRequest, $9.UpdateSubTaskResponse>( '/proto.services.task_svc.v1.TaskService/UpdateSubTask', - ($8.UpdateSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.UpdateSubTaskResponse.fromBuffer(value)); - static final _$subTaskToToDo = $grpc.ClientMethod<$8.SubTaskToToDoRequest, $8.SubTaskToToDoResponse>( + ($9.UpdateSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.UpdateSubTaskResponse.fromBuffer(value)); + static final _$subTaskToToDo = $grpc.ClientMethod<$9.SubTaskToToDoRequest, $9.SubTaskToToDoResponse>( '/proto.services.task_svc.v1.TaskService/SubTaskToToDo', - ($8.SubTaskToToDoRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.SubTaskToToDoResponse.fromBuffer(value)); - static final _$subTaskToDone = $grpc.ClientMethod<$8.SubTaskToDoneRequest, $8.SubTaskToDoneResponse>( + ($9.SubTaskToToDoRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.SubTaskToToDoResponse.fromBuffer(value)); + static final _$subTaskToDone = $grpc.ClientMethod<$9.SubTaskToDoneRequest, $9.SubTaskToDoneResponse>( '/proto.services.task_svc.v1.TaskService/SubTaskToDone', - ($8.SubTaskToDoneRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.SubTaskToDoneResponse.fromBuffer(value)); - static final _$taskToToDo = $grpc.ClientMethod<$8.TaskToToDoRequest, $8.TaskToToDoResponse>( + ($9.SubTaskToDoneRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.SubTaskToDoneResponse.fromBuffer(value)); + static final _$taskToToDo = $grpc.ClientMethod<$9.TaskToToDoRequest, $9.TaskToToDoResponse>( '/proto.services.task_svc.v1.TaskService/TaskToToDo', - ($8.TaskToToDoRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.TaskToToDoResponse.fromBuffer(value)); - static final _$taskToInProgress = $grpc.ClientMethod<$8.TaskToInProgressRequest, $8.TaskToInProgressResponse>( + ($9.TaskToToDoRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.TaskToToDoResponse.fromBuffer(value)); + static final _$taskToInProgress = $grpc.ClientMethod<$9.TaskToInProgressRequest, $9.TaskToInProgressResponse>( '/proto.services.task_svc.v1.TaskService/TaskToInProgress', - ($8.TaskToInProgressRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.TaskToInProgressResponse.fromBuffer(value)); - static final _$taskToDone = $grpc.ClientMethod<$8.TaskToDoneRequest, $8.TaskToDoneResponse>( + ($9.TaskToInProgressRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.TaskToInProgressResponse.fromBuffer(value)); + static final _$taskToDone = $grpc.ClientMethod<$9.TaskToDoneRequest, $9.TaskToDoneResponse>( '/proto.services.task_svc.v1.TaskService/TaskToDone', - ($8.TaskToDoneRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.TaskToDoneResponse.fromBuffer(value)); - static final _$assignTaskToUser = $grpc.ClientMethod<$8.AssignTaskToUserRequest, $8.AssignTaskToUserResponse>( + ($9.TaskToDoneRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.TaskToDoneResponse.fromBuffer(value)); + static final _$assignTaskToUser = $grpc.ClientMethod<$9.AssignTaskToUserRequest, $9.AssignTaskToUserResponse>( '/proto.services.task_svc.v1.TaskService/AssignTaskToUser', - ($8.AssignTaskToUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.AssignTaskToUserResponse.fromBuffer(value)); - static final _$unassignTaskFromUser = $grpc.ClientMethod<$8.UnassignTaskFromUserRequest, $8.UnassignTaskFromUserResponse>( + ($9.AssignTaskToUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.AssignTaskToUserResponse.fromBuffer(value)); + static final _$unassignTaskFromUser = $grpc.ClientMethod<$9.UnassignTaskFromUserRequest, $9.UnassignTaskFromUserResponse>( '/proto.services.task_svc.v1.TaskService/UnassignTaskFromUser', - ($8.UnassignTaskFromUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.UnassignTaskFromUserResponse.fromBuffer(value)); - static final _$publishTask = $grpc.ClientMethod<$8.PublishTaskRequest, $8.PublishTaskResponse>( + ($9.UnassignTaskFromUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.UnassignTaskFromUserResponse.fromBuffer(value)); + static final _$publishTask = $grpc.ClientMethod<$9.PublishTaskRequest, $9.PublishTaskResponse>( '/proto.services.task_svc.v1.TaskService/PublishTask', - ($8.PublishTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.PublishTaskResponse.fromBuffer(value)); - static final _$unpublishTask = $grpc.ClientMethod<$8.UnpublishTaskRequest, $8.UnpublishTaskResponse>( + ($9.PublishTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.PublishTaskResponse.fromBuffer(value)); + static final _$unpublishTask = $grpc.ClientMethod<$9.UnpublishTaskRequest, $9.UnpublishTaskResponse>( '/proto.services.task_svc.v1.TaskService/UnpublishTask', - ($8.UnpublishTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.UnpublishTaskResponse.fromBuffer(value)); - static final _$deleteTask = $grpc.ClientMethod<$8.DeleteTaskRequest, $8.DeleteTaskResponse>( + ($9.UnpublishTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.UnpublishTaskResponse.fromBuffer(value)); + static final _$deleteTask = $grpc.ClientMethod<$9.DeleteTaskRequest, $9.DeleteTaskResponse>( '/proto.services.task_svc.v1.TaskService/DeleteTask', - ($8.DeleteTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $8.DeleteTaskResponse.fromBuffer(value)); + ($9.DeleteTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.DeleteTaskResponse.fromBuffer(value)); TaskServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -104,79 +104,79 @@ class TaskServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$8.CreateTaskResponse> createTask($8.CreateTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.CreateTaskResponse> createTask($9.CreateTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createTask, request, options: options); } - $grpc.ResponseFuture<$8.GetTaskResponse> getTask($8.GetTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.GetTaskResponse> getTask($9.GetTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getTask, request, options: options); } - $grpc.ResponseFuture<$8.GetTasksByPatientResponse> getTasksByPatient($8.GetTasksByPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.GetTasksByPatientResponse> getTasksByPatient($9.GetTasksByPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getTasksByPatient, request, options: options); } - $grpc.ResponseFuture<$8.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus($8.GetTasksByPatientSortedByStatusRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus($9.GetTasksByPatientSortedByStatusRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getTasksByPatientSortedByStatus, request, options: options); } - $grpc.ResponseFuture<$8.GetAssignedTasksResponse> getAssignedTasks($8.GetAssignedTasksRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.GetAssignedTasksResponse> getAssignedTasks($9.GetAssignedTasksRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getAssignedTasks, request, options: options); } - $grpc.ResponseFuture<$8.UpdateTaskResponse> updateTask($8.UpdateTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.UpdateTaskResponse> updateTask($9.UpdateTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateTask, request, options: options); } - $grpc.ResponseFuture<$8.AddSubTaskResponse> addSubTask($8.AddSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.AddSubTaskResponse> addSubTask($9.AddSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$addSubTask, request, options: options); } - $grpc.ResponseFuture<$8.RemoveSubTaskResponse> removeSubTask($8.RemoveSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.RemoveSubTaskResponse> removeSubTask($9.RemoveSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$removeSubTask, request, options: options); } - $grpc.ResponseFuture<$8.UpdateSubTaskResponse> updateSubTask($8.UpdateSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.UpdateSubTaskResponse> updateSubTask($9.UpdateSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateSubTask, request, options: options); } - $grpc.ResponseFuture<$8.SubTaskToToDoResponse> subTaskToToDo($8.SubTaskToToDoRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.SubTaskToToDoResponse> subTaskToToDo($9.SubTaskToToDoRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$subTaskToToDo, request, options: options); } - $grpc.ResponseFuture<$8.SubTaskToDoneResponse> subTaskToDone($8.SubTaskToDoneRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.SubTaskToDoneResponse> subTaskToDone($9.SubTaskToDoneRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$subTaskToDone, request, options: options); } - $grpc.ResponseFuture<$8.TaskToToDoResponse> taskToToDo($8.TaskToToDoRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.TaskToToDoResponse> taskToToDo($9.TaskToToDoRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$taskToToDo, request, options: options); } - $grpc.ResponseFuture<$8.TaskToInProgressResponse> taskToInProgress($8.TaskToInProgressRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.TaskToInProgressResponse> taskToInProgress($9.TaskToInProgressRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$taskToInProgress, request, options: options); } - $grpc.ResponseFuture<$8.TaskToDoneResponse> taskToDone($8.TaskToDoneRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.TaskToDoneResponse> taskToDone($9.TaskToDoneRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$taskToDone, request, options: options); } - $grpc.ResponseFuture<$8.AssignTaskToUserResponse> assignTaskToUser($8.AssignTaskToUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.AssignTaskToUserResponse> assignTaskToUser($9.AssignTaskToUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$assignTaskToUser, request, options: options); } - $grpc.ResponseFuture<$8.UnassignTaskFromUserResponse> unassignTaskFromUser($8.UnassignTaskFromUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.UnassignTaskFromUserResponse> unassignTaskFromUser($9.UnassignTaskFromUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unassignTaskFromUser, request, options: options); } - $grpc.ResponseFuture<$8.PublishTaskResponse> publishTask($8.PublishTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.PublishTaskResponse> publishTask($9.PublishTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$publishTask, request, options: options); } - $grpc.ResponseFuture<$8.UnpublishTaskResponse> unpublishTask($8.UnpublishTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.UnpublishTaskResponse> unpublishTask($9.UnpublishTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unpublishTask, request, options: options); } - $grpc.ResponseFuture<$8.DeleteTaskResponse> deleteTask($8.DeleteTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$9.DeleteTaskResponse> deleteTask($9.DeleteTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteTask, request, options: options); } } @@ -186,234 +186,234 @@ abstract class TaskServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.TaskService'; TaskServiceBase() { - $addMethod($grpc.ServiceMethod<$8.CreateTaskRequest, $8.CreateTaskResponse>( + $addMethod($grpc.ServiceMethod<$9.CreateTaskRequest, $9.CreateTaskResponse>( 'CreateTask', createTask_Pre, false, false, - ($core.List<$core.int> value) => $8.CreateTaskRequest.fromBuffer(value), - ($8.CreateTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.GetTaskRequest, $8.GetTaskResponse>( + ($core.List<$core.int> value) => $9.CreateTaskRequest.fromBuffer(value), + ($9.CreateTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.GetTaskRequest, $9.GetTaskResponse>( 'GetTask', getTask_Pre, false, false, - ($core.List<$core.int> value) => $8.GetTaskRequest.fromBuffer(value), - ($8.GetTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.GetTasksByPatientRequest, $8.GetTasksByPatientResponse>( + ($core.List<$core.int> value) => $9.GetTaskRequest.fromBuffer(value), + ($9.GetTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.GetTasksByPatientRequest, $9.GetTasksByPatientResponse>( 'GetTasksByPatient', getTasksByPatient_Pre, false, false, - ($core.List<$core.int> value) => $8.GetTasksByPatientRequest.fromBuffer(value), - ($8.GetTasksByPatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.GetTasksByPatientSortedByStatusRequest, $8.GetTasksByPatientSortedByStatusResponse>( + ($core.List<$core.int> value) => $9.GetTasksByPatientRequest.fromBuffer(value), + ($9.GetTasksByPatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.GetTasksByPatientSortedByStatusRequest, $9.GetTasksByPatientSortedByStatusResponse>( 'GetTasksByPatientSortedByStatus', getTasksByPatientSortedByStatus_Pre, false, false, - ($core.List<$core.int> value) => $8.GetTasksByPatientSortedByStatusRequest.fromBuffer(value), - ($8.GetTasksByPatientSortedByStatusResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.GetAssignedTasksRequest, $8.GetAssignedTasksResponse>( + ($core.List<$core.int> value) => $9.GetTasksByPatientSortedByStatusRequest.fromBuffer(value), + ($9.GetTasksByPatientSortedByStatusResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.GetAssignedTasksRequest, $9.GetAssignedTasksResponse>( 'GetAssignedTasks', getAssignedTasks_Pre, false, false, - ($core.List<$core.int> value) => $8.GetAssignedTasksRequest.fromBuffer(value), - ($8.GetAssignedTasksResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.UpdateTaskRequest, $8.UpdateTaskResponse>( + ($core.List<$core.int> value) => $9.GetAssignedTasksRequest.fromBuffer(value), + ($9.GetAssignedTasksResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.UpdateTaskRequest, $9.UpdateTaskResponse>( 'UpdateTask', updateTask_Pre, false, false, - ($core.List<$core.int> value) => $8.UpdateTaskRequest.fromBuffer(value), - ($8.UpdateTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.AddSubTaskRequest, $8.AddSubTaskResponse>( + ($core.List<$core.int> value) => $9.UpdateTaskRequest.fromBuffer(value), + ($9.UpdateTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.AddSubTaskRequest, $9.AddSubTaskResponse>( 'AddSubTask', addSubTask_Pre, false, false, - ($core.List<$core.int> value) => $8.AddSubTaskRequest.fromBuffer(value), - ($8.AddSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.RemoveSubTaskRequest, $8.RemoveSubTaskResponse>( + ($core.List<$core.int> value) => $9.AddSubTaskRequest.fromBuffer(value), + ($9.AddSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.RemoveSubTaskRequest, $9.RemoveSubTaskResponse>( 'RemoveSubTask', removeSubTask_Pre, false, false, - ($core.List<$core.int> value) => $8.RemoveSubTaskRequest.fromBuffer(value), - ($8.RemoveSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.UpdateSubTaskRequest, $8.UpdateSubTaskResponse>( + ($core.List<$core.int> value) => $9.RemoveSubTaskRequest.fromBuffer(value), + ($9.RemoveSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.UpdateSubTaskRequest, $9.UpdateSubTaskResponse>( 'UpdateSubTask', updateSubTask_Pre, false, false, - ($core.List<$core.int> value) => $8.UpdateSubTaskRequest.fromBuffer(value), - ($8.UpdateSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.SubTaskToToDoRequest, $8.SubTaskToToDoResponse>( + ($core.List<$core.int> value) => $9.UpdateSubTaskRequest.fromBuffer(value), + ($9.UpdateSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.SubTaskToToDoRequest, $9.SubTaskToToDoResponse>( 'SubTaskToToDo', subTaskToToDo_Pre, false, false, - ($core.List<$core.int> value) => $8.SubTaskToToDoRequest.fromBuffer(value), - ($8.SubTaskToToDoResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.SubTaskToDoneRequest, $8.SubTaskToDoneResponse>( + ($core.List<$core.int> value) => $9.SubTaskToToDoRequest.fromBuffer(value), + ($9.SubTaskToToDoResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.SubTaskToDoneRequest, $9.SubTaskToDoneResponse>( 'SubTaskToDone', subTaskToDone_Pre, false, false, - ($core.List<$core.int> value) => $8.SubTaskToDoneRequest.fromBuffer(value), - ($8.SubTaskToDoneResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.TaskToToDoRequest, $8.TaskToToDoResponse>( + ($core.List<$core.int> value) => $9.SubTaskToDoneRequest.fromBuffer(value), + ($9.SubTaskToDoneResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.TaskToToDoRequest, $9.TaskToToDoResponse>( 'TaskToToDo', taskToToDo_Pre, false, false, - ($core.List<$core.int> value) => $8.TaskToToDoRequest.fromBuffer(value), - ($8.TaskToToDoResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.TaskToInProgressRequest, $8.TaskToInProgressResponse>( + ($core.List<$core.int> value) => $9.TaskToToDoRequest.fromBuffer(value), + ($9.TaskToToDoResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.TaskToInProgressRequest, $9.TaskToInProgressResponse>( 'TaskToInProgress', taskToInProgress_Pre, false, false, - ($core.List<$core.int> value) => $8.TaskToInProgressRequest.fromBuffer(value), - ($8.TaskToInProgressResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.TaskToDoneRequest, $8.TaskToDoneResponse>( + ($core.List<$core.int> value) => $9.TaskToInProgressRequest.fromBuffer(value), + ($9.TaskToInProgressResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.TaskToDoneRequest, $9.TaskToDoneResponse>( 'TaskToDone', taskToDone_Pre, false, false, - ($core.List<$core.int> value) => $8.TaskToDoneRequest.fromBuffer(value), - ($8.TaskToDoneResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.AssignTaskToUserRequest, $8.AssignTaskToUserResponse>( + ($core.List<$core.int> value) => $9.TaskToDoneRequest.fromBuffer(value), + ($9.TaskToDoneResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.AssignTaskToUserRequest, $9.AssignTaskToUserResponse>( 'AssignTaskToUser', assignTaskToUser_Pre, false, false, - ($core.List<$core.int> value) => $8.AssignTaskToUserRequest.fromBuffer(value), - ($8.AssignTaskToUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.UnassignTaskFromUserRequest, $8.UnassignTaskFromUserResponse>( + ($core.List<$core.int> value) => $9.AssignTaskToUserRequest.fromBuffer(value), + ($9.AssignTaskToUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.UnassignTaskFromUserRequest, $9.UnassignTaskFromUserResponse>( 'UnassignTaskFromUser', unassignTaskFromUser_Pre, false, false, - ($core.List<$core.int> value) => $8.UnassignTaskFromUserRequest.fromBuffer(value), - ($8.UnassignTaskFromUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.PublishTaskRequest, $8.PublishTaskResponse>( + ($core.List<$core.int> value) => $9.UnassignTaskFromUserRequest.fromBuffer(value), + ($9.UnassignTaskFromUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.PublishTaskRequest, $9.PublishTaskResponse>( 'PublishTask', publishTask_Pre, false, false, - ($core.List<$core.int> value) => $8.PublishTaskRequest.fromBuffer(value), - ($8.PublishTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.UnpublishTaskRequest, $8.UnpublishTaskResponse>( + ($core.List<$core.int> value) => $9.PublishTaskRequest.fromBuffer(value), + ($9.PublishTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.UnpublishTaskRequest, $9.UnpublishTaskResponse>( 'UnpublishTask', unpublishTask_Pre, false, false, - ($core.List<$core.int> value) => $8.UnpublishTaskRequest.fromBuffer(value), - ($8.UnpublishTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$8.DeleteTaskRequest, $8.DeleteTaskResponse>( + ($core.List<$core.int> value) => $9.UnpublishTaskRequest.fromBuffer(value), + ($9.UnpublishTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.DeleteTaskRequest, $9.DeleteTaskResponse>( 'DeleteTask', deleteTask_Pre, false, false, - ($core.List<$core.int> value) => $8.DeleteTaskRequest.fromBuffer(value), - ($8.DeleteTaskResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $9.DeleteTaskRequest.fromBuffer(value), + ($9.DeleteTaskResponse value) => value.writeToBuffer())); } - $async.Future<$8.CreateTaskResponse> createTask_Pre($grpc.ServiceCall call, $async.Future<$8.CreateTaskRequest> request) async { + $async.Future<$9.CreateTaskResponse> createTask_Pre($grpc.ServiceCall call, $async.Future<$9.CreateTaskRequest> request) async { return createTask(call, await request); } - $async.Future<$8.GetTaskResponse> getTask_Pre($grpc.ServiceCall call, $async.Future<$8.GetTaskRequest> request) async { + $async.Future<$9.GetTaskResponse> getTask_Pre($grpc.ServiceCall call, $async.Future<$9.GetTaskRequest> request) async { return getTask(call, await request); } - $async.Future<$8.GetTasksByPatientResponse> getTasksByPatient_Pre($grpc.ServiceCall call, $async.Future<$8.GetTasksByPatientRequest> request) async { + $async.Future<$9.GetTasksByPatientResponse> getTasksByPatient_Pre($grpc.ServiceCall call, $async.Future<$9.GetTasksByPatientRequest> request) async { return getTasksByPatient(call, await request); } - $async.Future<$8.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus_Pre($grpc.ServiceCall call, $async.Future<$8.GetTasksByPatientSortedByStatusRequest> request) async { + $async.Future<$9.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus_Pre($grpc.ServiceCall call, $async.Future<$9.GetTasksByPatientSortedByStatusRequest> request) async { return getTasksByPatientSortedByStatus(call, await request); } - $async.Future<$8.GetAssignedTasksResponse> getAssignedTasks_Pre($grpc.ServiceCall call, $async.Future<$8.GetAssignedTasksRequest> request) async { + $async.Future<$9.GetAssignedTasksResponse> getAssignedTasks_Pre($grpc.ServiceCall call, $async.Future<$9.GetAssignedTasksRequest> request) async { return getAssignedTasks(call, await request); } - $async.Future<$8.UpdateTaskResponse> updateTask_Pre($grpc.ServiceCall call, $async.Future<$8.UpdateTaskRequest> request) async { + $async.Future<$9.UpdateTaskResponse> updateTask_Pre($grpc.ServiceCall call, $async.Future<$9.UpdateTaskRequest> request) async { return updateTask(call, await request); } - $async.Future<$8.AddSubTaskResponse> addSubTask_Pre($grpc.ServiceCall call, $async.Future<$8.AddSubTaskRequest> request) async { + $async.Future<$9.AddSubTaskResponse> addSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.AddSubTaskRequest> request) async { return addSubTask(call, await request); } - $async.Future<$8.RemoveSubTaskResponse> removeSubTask_Pre($grpc.ServiceCall call, $async.Future<$8.RemoveSubTaskRequest> request) async { + $async.Future<$9.RemoveSubTaskResponse> removeSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.RemoveSubTaskRequest> request) async { return removeSubTask(call, await request); } - $async.Future<$8.UpdateSubTaskResponse> updateSubTask_Pre($grpc.ServiceCall call, $async.Future<$8.UpdateSubTaskRequest> request) async { + $async.Future<$9.UpdateSubTaskResponse> updateSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.UpdateSubTaskRequest> request) async { return updateSubTask(call, await request); } - $async.Future<$8.SubTaskToToDoResponse> subTaskToToDo_Pre($grpc.ServiceCall call, $async.Future<$8.SubTaskToToDoRequest> request) async { + $async.Future<$9.SubTaskToToDoResponse> subTaskToToDo_Pre($grpc.ServiceCall call, $async.Future<$9.SubTaskToToDoRequest> request) async { return subTaskToToDo(call, await request); } - $async.Future<$8.SubTaskToDoneResponse> subTaskToDone_Pre($grpc.ServiceCall call, $async.Future<$8.SubTaskToDoneRequest> request) async { + $async.Future<$9.SubTaskToDoneResponse> subTaskToDone_Pre($grpc.ServiceCall call, $async.Future<$9.SubTaskToDoneRequest> request) async { return subTaskToDone(call, await request); } - $async.Future<$8.TaskToToDoResponse> taskToToDo_Pre($grpc.ServiceCall call, $async.Future<$8.TaskToToDoRequest> request) async { + $async.Future<$9.TaskToToDoResponse> taskToToDo_Pre($grpc.ServiceCall call, $async.Future<$9.TaskToToDoRequest> request) async { return taskToToDo(call, await request); } - $async.Future<$8.TaskToInProgressResponse> taskToInProgress_Pre($grpc.ServiceCall call, $async.Future<$8.TaskToInProgressRequest> request) async { + $async.Future<$9.TaskToInProgressResponse> taskToInProgress_Pre($grpc.ServiceCall call, $async.Future<$9.TaskToInProgressRequest> request) async { return taskToInProgress(call, await request); } - $async.Future<$8.TaskToDoneResponse> taskToDone_Pre($grpc.ServiceCall call, $async.Future<$8.TaskToDoneRequest> request) async { + $async.Future<$9.TaskToDoneResponse> taskToDone_Pre($grpc.ServiceCall call, $async.Future<$9.TaskToDoneRequest> request) async { return taskToDone(call, await request); } - $async.Future<$8.AssignTaskToUserResponse> assignTaskToUser_Pre($grpc.ServiceCall call, $async.Future<$8.AssignTaskToUserRequest> request) async { + $async.Future<$9.AssignTaskToUserResponse> assignTaskToUser_Pre($grpc.ServiceCall call, $async.Future<$9.AssignTaskToUserRequest> request) async { return assignTaskToUser(call, await request); } - $async.Future<$8.UnassignTaskFromUserResponse> unassignTaskFromUser_Pre($grpc.ServiceCall call, $async.Future<$8.UnassignTaskFromUserRequest> request) async { + $async.Future<$9.UnassignTaskFromUserResponse> unassignTaskFromUser_Pre($grpc.ServiceCall call, $async.Future<$9.UnassignTaskFromUserRequest> request) async { return unassignTaskFromUser(call, await request); } - $async.Future<$8.PublishTaskResponse> publishTask_Pre($grpc.ServiceCall call, $async.Future<$8.PublishTaskRequest> request) async { + $async.Future<$9.PublishTaskResponse> publishTask_Pre($grpc.ServiceCall call, $async.Future<$9.PublishTaskRequest> request) async { return publishTask(call, await request); } - $async.Future<$8.UnpublishTaskResponse> unpublishTask_Pre($grpc.ServiceCall call, $async.Future<$8.UnpublishTaskRequest> request) async { + $async.Future<$9.UnpublishTaskResponse> unpublishTask_Pre($grpc.ServiceCall call, $async.Future<$9.UnpublishTaskRequest> request) async { return unpublishTask(call, await request); } - $async.Future<$8.DeleteTaskResponse> deleteTask_Pre($grpc.ServiceCall call, $async.Future<$8.DeleteTaskRequest> request) async { + $async.Future<$9.DeleteTaskResponse> deleteTask_Pre($grpc.ServiceCall call, $async.Future<$9.DeleteTaskRequest> request) async { return deleteTask(call, await request); } - $async.Future<$8.CreateTaskResponse> createTask($grpc.ServiceCall call, $8.CreateTaskRequest request); - $async.Future<$8.GetTaskResponse> getTask($grpc.ServiceCall call, $8.GetTaskRequest request); - $async.Future<$8.GetTasksByPatientResponse> getTasksByPatient($grpc.ServiceCall call, $8.GetTasksByPatientRequest request); - $async.Future<$8.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus($grpc.ServiceCall call, $8.GetTasksByPatientSortedByStatusRequest request); - $async.Future<$8.GetAssignedTasksResponse> getAssignedTasks($grpc.ServiceCall call, $8.GetAssignedTasksRequest request); - $async.Future<$8.UpdateTaskResponse> updateTask($grpc.ServiceCall call, $8.UpdateTaskRequest request); - $async.Future<$8.AddSubTaskResponse> addSubTask($grpc.ServiceCall call, $8.AddSubTaskRequest request); - $async.Future<$8.RemoveSubTaskResponse> removeSubTask($grpc.ServiceCall call, $8.RemoveSubTaskRequest request); - $async.Future<$8.UpdateSubTaskResponse> updateSubTask($grpc.ServiceCall call, $8.UpdateSubTaskRequest request); - $async.Future<$8.SubTaskToToDoResponse> subTaskToToDo($grpc.ServiceCall call, $8.SubTaskToToDoRequest request); - $async.Future<$8.SubTaskToDoneResponse> subTaskToDone($grpc.ServiceCall call, $8.SubTaskToDoneRequest request); - $async.Future<$8.TaskToToDoResponse> taskToToDo($grpc.ServiceCall call, $8.TaskToToDoRequest request); - $async.Future<$8.TaskToInProgressResponse> taskToInProgress($grpc.ServiceCall call, $8.TaskToInProgressRequest request); - $async.Future<$8.TaskToDoneResponse> taskToDone($grpc.ServiceCall call, $8.TaskToDoneRequest request); - $async.Future<$8.AssignTaskToUserResponse> assignTaskToUser($grpc.ServiceCall call, $8.AssignTaskToUserRequest request); - $async.Future<$8.UnassignTaskFromUserResponse> unassignTaskFromUser($grpc.ServiceCall call, $8.UnassignTaskFromUserRequest request); - $async.Future<$8.PublishTaskResponse> publishTask($grpc.ServiceCall call, $8.PublishTaskRequest request); - $async.Future<$8.UnpublishTaskResponse> unpublishTask($grpc.ServiceCall call, $8.UnpublishTaskRequest request); - $async.Future<$8.DeleteTaskResponse> deleteTask($grpc.ServiceCall call, $8.DeleteTaskRequest request); + $async.Future<$9.CreateTaskResponse> createTask($grpc.ServiceCall call, $9.CreateTaskRequest request); + $async.Future<$9.GetTaskResponse> getTask($grpc.ServiceCall call, $9.GetTaskRequest request); + $async.Future<$9.GetTasksByPatientResponse> getTasksByPatient($grpc.ServiceCall call, $9.GetTasksByPatientRequest request); + $async.Future<$9.GetTasksByPatientSortedByStatusResponse> getTasksByPatientSortedByStatus($grpc.ServiceCall call, $9.GetTasksByPatientSortedByStatusRequest request); + $async.Future<$9.GetAssignedTasksResponse> getAssignedTasks($grpc.ServiceCall call, $9.GetAssignedTasksRequest request); + $async.Future<$9.UpdateTaskResponse> updateTask($grpc.ServiceCall call, $9.UpdateTaskRequest request); + $async.Future<$9.AddSubTaskResponse> addSubTask($grpc.ServiceCall call, $9.AddSubTaskRequest request); + $async.Future<$9.RemoveSubTaskResponse> removeSubTask($grpc.ServiceCall call, $9.RemoveSubTaskRequest request); + $async.Future<$9.UpdateSubTaskResponse> updateSubTask($grpc.ServiceCall call, $9.UpdateSubTaskRequest request); + $async.Future<$9.SubTaskToToDoResponse> subTaskToToDo($grpc.ServiceCall call, $9.SubTaskToToDoRequest request); + $async.Future<$9.SubTaskToDoneResponse> subTaskToDone($grpc.ServiceCall call, $9.SubTaskToDoneRequest request); + $async.Future<$9.TaskToToDoResponse> taskToToDo($grpc.ServiceCall call, $9.TaskToToDoRequest request); + $async.Future<$9.TaskToInProgressResponse> taskToInProgress($grpc.ServiceCall call, $9.TaskToInProgressRequest request); + $async.Future<$9.TaskToDoneResponse> taskToDone($grpc.ServiceCall call, $9.TaskToDoneRequest request); + $async.Future<$9.AssignTaskToUserResponse> assignTaskToUser($grpc.ServiceCall call, $9.AssignTaskToUserRequest request); + $async.Future<$9.UnassignTaskFromUserResponse> unassignTaskFromUser($grpc.ServiceCall call, $9.UnassignTaskFromUserRequest request); + $async.Future<$9.PublishTaskResponse> publishTask($grpc.ServiceCall call, $9.PublishTaskRequest request); + $async.Future<$9.UnpublishTaskResponse> unpublishTask($grpc.ServiceCall call, $9.UnpublishTaskRequest request); + $async.Future<$9.DeleteTaskResponse> deleteTask($grpc.ServiceCall call, $9.DeleteTaskRequest request); } diff --git a/gen/dart/lib/proto/services/task_svc/v1/task_template_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/task_template_svc.pbgrpc.dart index 133700e3f..46a38e0c3 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/task_template_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/task_template_svc.pbgrpc.dart @@ -15,48 +15,48 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'task_template_svc.pb.dart' as $9; +import 'task_template_svc.pb.dart' as $10; export 'task_template_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.TaskTemplateService') class TaskTemplateServiceClient extends $grpc.Client { - static final _$createTaskTemplate = $grpc.ClientMethod<$9.CreateTaskTemplateRequest, $9.CreateTaskTemplateResponse>( + static final _$createTaskTemplate = $grpc.ClientMethod<$10.CreateTaskTemplateRequest, $10.CreateTaskTemplateResponse>( '/proto.services.task_svc.v1.TaskTemplateService/CreateTaskTemplate', - ($9.CreateTaskTemplateRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.CreateTaskTemplateResponse.fromBuffer(value)); - static final _$getAllTaskTemplates = $grpc.ClientMethod<$9.GetAllTaskTemplatesRequest, $9.GetAllTaskTemplatesResponse>( + ($10.CreateTaskTemplateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.CreateTaskTemplateResponse.fromBuffer(value)); + static final _$getAllTaskTemplates = $grpc.ClientMethod<$10.GetAllTaskTemplatesRequest, $10.GetAllTaskTemplatesResponse>( '/proto.services.task_svc.v1.TaskTemplateService/GetAllTaskTemplates', - ($9.GetAllTaskTemplatesRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesResponse.fromBuffer(value)); - static final _$deleteTaskTemplate = $grpc.ClientMethod<$9.DeleteTaskTemplateRequest, $9.DeleteTaskTemplateResponse>( + ($10.GetAllTaskTemplatesRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesResponse.fromBuffer(value)); + static final _$deleteTaskTemplate = $grpc.ClientMethod<$10.DeleteTaskTemplateRequest, $10.DeleteTaskTemplateResponse>( '/proto.services.task_svc.v1.TaskTemplateService/DeleteTaskTemplate', - ($9.DeleteTaskTemplateRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.DeleteTaskTemplateResponse.fromBuffer(value)); - static final _$deleteTaskTemplateSubTask = $grpc.ClientMethod<$9.DeleteTaskTemplateSubTaskRequest, $9.DeleteTaskTemplateSubTaskResponse>( + ($10.DeleteTaskTemplateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.DeleteTaskTemplateResponse.fromBuffer(value)); + static final _$deleteTaskTemplateSubTask = $grpc.ClientMethod<$10.DeleteTaskTemplateSubTaskRequest, $10.DeleteTaskTemplateSubTaskResponse>( '/proto.services.task_svc.v1.TaskTemplateService/DeleteTaskTemplateSubTask', - ($9.DeleteTaskTemplateSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.DeleteTaskTemplateSubTaskResponse.fromBuffer(value)); - static final _$updateTaskTemplate = $grpc.ClientMethod<$9.UpdateTaskTemplateRequest, $9.UpdateTaskTemplateResponse>( + ($10.DeleteTaskTemplateSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.DeleteTaskTemplateSubTaskResponse.fromBuffer(value)); + static final _$updateTaskTemplate = $grpc.ClientMethod<$10.UpdateTaskTemplateRequest, $10.UpdateTaskTemplateResponse>( '/proto.services.task_svc.v1.TaskTemplateService/UpdateTaskTemplate', - ($9.UpdateTaskTemplateRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.UpdateTaskTemplateResponse.fromBuffer(value)); - static final _$updateTaskTemplateSubTask = $grpc.ClientMethod<$9.UpdateTaskTemplateSubTaskRequest, $9.UpdateTaskTemplateSubTaskResponse>( + ($10.UpdateTaskTemplateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.UpdateTaskTemplateResponse.fromBuffer(value)); + static final _$updateTaskTemplateSubTask = $grpc.ClientMethod<$10.UpdateTaskTemplateSubTaskRequest, $10.UpdateTaskTemplateSubTaskResponse>( '/proto.services.task_svc.v1.TaskTemplateService/UpdateTaskTemplateSubTask', - ($9.UpdateTaskTemplateSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.UpdateTaskTemplateSubTaskResponse.fromBuffer(value)); - static final _$createTaskTemplateSubTask = $grpc.ClientMethod<$9.CreateTaskTemplateSubTaskRequest, $9.CreateTaskTemplateSubTaskResponse>( + ($10.UpdateTaskTemplateSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.UpdateTaskTemplateSubTaskResponse.fromBuffer(value)); + static final _$createTaskTemplateSubTask = $grpc.ClientMethod<$10.CreateTaskTemplateSubTaskRequest, $10.CreateTaskTemplateSubTaskResponse>( '/proto.services.task_svc.v1.TaskTemplateService/CreateTaskTemplateSubTask', - ($9.CreateTaskTemplateSubTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.CreateTaskTemplateSubTaskResponse.fromBuffer(value)); - static final _$getAllTaskTemplatesByCreator = $grpc.ClientMethod<$9.GetAllTaskTemplatesByCreatorRequest, $9.GetAllTaskTemplatesByCreatorResponse>( + ($10.CreateTaskTemplateSubTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.CreateTaskTemplateSubTaskResponse.fromBuffer(value)); + static final _$getAllTaskTemplatesByCreator = $grpc.ClientMethod<$10.GetAllTaskTemplatesByCreatorRequest, $10.GetAllTaskTemplatesByCreatorResponse>( '/proto.services.task_svc.v1.TaskTemplateService/GetAllTaskTemplatesByCreator', - ($9.GetAllTaskTemplatesByCreatorRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesByCreatorResponse.fromBuffer(value)); - static final _$getAllTaskTemplatesByWard = $grpc.ClientMethod<$9.GetAllTaskTemplatesByWardRequest, $9.GetAllTaskTemplatesByWardResponse>( + ($10.GetAllTaskTemplatesByCreatorRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesByCreatorResponse.fromBuffer(value)); + static final _$getAllTaskTemplatesByWard = $grpc.ClientMethod<$10.GetAllTaskTemplatesByWardRequest, $10.GetAllTaskTemplatesByWardResponse>( '/proto.services.task_svc.v1.TaskTemplateService/GetAllTaskTemplatesByWard', - ($9.GetAllTaskTemplatesByWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesByWardResponse.fromBuffer(value)); + ($10.GetAllTaskTemplatesByWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesByWardResponse.fromBuffer(value)); TaskTemplateServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -64,39 +64,39 @@ class TaskTemplateServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$9.CreateTaskTemplateResponse> createTaskTemplate($9.CreateTaskTemplateRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.CreateTaskTemplateResponse> createTaskTemplate($10.CreateTaskTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createTaskTemplate, request, options: options); } - $grpc.ResponseFuture<$9.GetAllTaskTemplatesResponse> getAllTaskTemplates($9.GetAllTaskTemplatesRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.GetAllTaskTemplatesResponse> getAllTaskTemplates($10.GetAllTaskTemplatesRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getAllTaskTemplates, request, options: options); } - $grpc.ResponseFuture<$9.DeleteTaskTemplateResponse> deleteTaskTemplate($9.DeleteTaskTemplateRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.DeleteTaskTemplateResponse> deleteTaskTemplate($10.DeleteTaskTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteTaskTemplate, request, options: options); } - $grpc.ResponseFuture<$9.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask($9.DeleteTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask($10.DeleteTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteTaskTemplateSubTask, request, options: options); } - $grpc.ResponseFuture<$9.UpdateTaskTemplateResponse> updateTaskTemplate($9.UpdateTaskTemplateRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.UpdateTaskTemplateResponse> updateTaskTemplate($10.UpdateTaskTemplateRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateTaskTemplate, request, options: options); } - $grpc.ResponseFuture<$9.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask($9.UpdateTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask($10.UpdateTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateTaskTemplateSubTask, request, options: options); } - $grpc.ResponseFuture<$9.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask($9.CreateTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask($10.CreateTaskTemplateSubTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createTaskTemplateSubTask, request, options: options); } - $grpc.ResponseFuture<$9.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator($9.GetAllTaskTemplatesByCreatorRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator($10.GetAllTaskTemplatesByCreatorRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getAllTaskTemplatesByCreator, request, options: options); } - $grpc.ResponseFuture<$9.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard($9.GetAllTaskTemplatesByWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$10.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard($10.GetAllTaskTemplatesByWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getAllTaskTemplatesByWard, request, options: options); } } @@ -106,114 +106,114 @@ abstract class TaskTemplateServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.TaskTemplateService'; TaskTemplateServiceBase() { - $addMethod($grpc.ServiceMethod<$9.CreateTaskTemplateRequest, $9.CreateTaskTemplateResponse>( + $addMethod($grpc.ServiceMethod<$10.CreateTaskTemplateRequest, $10.CreateTaskTemplateResponse>( 'CreateTaskTemplate', createTaskTemplate_Pre, false, false, - ($core.List<$core.int> value) => $9.CreateTaskTemplateRequest.fromBuffer(value), - ($9.CreateTaskTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.GetAllTaskTemplatesRequest, $9.GetAllTaskTemplatesResponse>( + ($core.List<$core.int> value) => $10.CreateTaskTemplateRequest.fromBuffer(value), + ($10.CreateTaskTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetAllTaskTemplatesRequest, $10.GetAllTaskTemplatesResponse>( 'GetAllTaskTemplates', getAllTaskTemplates_Pre, false, false, - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesRequest.fromBuffer(value), - ($9.GetAllTaskTemplatesResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.DeleteTaskTemplateRequest, $9.DeleteTaskTemplateResponse>( + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesRequest.fromBuffer(value), + ($10.GetAllTaskTemplatesResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.DeleteTaskTemplateRequest, $10.DeleteTaskTemplateResponse>( 'DeleteTaskTemplate', deleteTaskTemplate_Pre, false, false, - ($core.List<$core.int> value) => $9.DeleteTaskTemplateRequest.fromBuffer(value), - ($9.DeleteTaskTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.DeleteTaskTemplateSubTaskRequest, $9.DeleteTaskTemplateSubTaskResponse>( + ($core.List<$core.int> value) => $10.DeleteTaskTemplateRequest.fromBuffer(value), + ($10.DeleteTaskTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.DeleteTaskTemplateSubTaskRequest, $10.DeleteTaskTemplateSubTaskResponse>( 'DeleteTaskTemplateSubTask', deleteTaskTemplateSubTask_Pre, false, false, - ($core.List<$core.int> value) => $9.DeleteTaskTemplateSubTaskRequest.fromBuffer(value), - ($9.DeleteTaskTemplateSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.UpdateTaskTemplateRequest, $9.UpdateTaskTemplateResponse>( + ($core.List<$core.int> value) => $10.DeleteTaskTemplateSubTaskRequest.fromBuffer(value), + ($10.DeleteTaskTemplateSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.UpdateTaskTemplateRequest, $10.UpdateTaskTemplateResponse>( 'UpdateTaskTemplate', updateTaskTemplate_Pre, false, false, - ($core.List<$core.int> value) => $9.UpdateTaskTemplateRequest.fromBuffer(value), - ($9.UpdateTaskTemplateResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.UpdateTaskTemplateSubTaskRequest, $9.UpdateTaskTemplateSubTaskResponse>( + ($core.List<$core.int> value) => $10.UpdateTaskTemplateRequest.fromBuffer(value), + ($10.UpdateTaskTemplateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.UpdateTaskTemplateSubTaskRequest, $10.UpdateTaskTemplateSubTaskResponse>( 'UpdateTaskTemplateSubTask', updateTaskTemplateSubTask_Pre, false, false, - ($core.List<$core.int> value) => $9.UpdateTaskTemplateSubTaskRequest.fromBuffer(value), - ($9.UpdateTaskTemplateSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.CreateTaskTemplateSubTaskRequest, $9.CreateTaskTemplateSubTaskResponse>( + ($core.List<$core.int> value) => $10.UpdateTaskTemplateSubTaskRequest.fromBuffer(value), + ($10.UpdateTaskTemplateSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.CreateTaskTemplateSubTaskRequest, $10.CreateTaskTemplateSubTaskResponse>( 'CreateTaskTemplateSubTask', createTaskTemplateSubTask_Pre, false, false, - ($core.List<$core.int> value) => $9.CreateTaskTemplateSubTaskRequest.fromBuffer(value), - ($9.CreateTaskTemplateSubTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.GetAllTaskTemplatesByCreatorRequest, $9.GetAllTaskTemplatesByCreatorResponse>( + ($core.List<$core.int> value) => $10.CreateTaskTemplateSubTaskRequest.fromBuffer(value), + ($10.CreateTaskTemplateSubTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetAllTaskTemplatesByCreatorRequest, $10.GetAllTaskTemplatesByCreatorResponse>( 'GetAllTaskTemplatesByCreator', getAllTaskTemplatesByCreator_Pre, false, false, - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesByCreatorRequest.fromBuffer(value), - ($9.GetAllTaskTemplatesByCreatorResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$9.GetAllTaskTemplatesByWardRequest, $9.GetAllTaskTemplatesByWardResponse>( + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesByCreatorRequest.fromBuffer(value), + ($10.GetAllTaskTemplatesByCreatorResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$10.GetAllTaskTemplatesByWardRequest, $10.GetAllTaskTemplatesByWardResponse>( 'GetAllTaskTemplatesByWard', getAllTaskTemplatesByWard_Pre, false, false, - ($core.List<$core.int> value) => $9.GetAllTaskTemplatesByWardRequest.fromBuffer(value), - ($9.GetAllTaskTemplatesByWardResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $10.GetAllTaskTemplatesByWardRequest.fromBuffer(value), + ($10.GetAllTaskTemplatesByWardResponse value) => value.writeToBuffer())); } - $async.Future<$9.CreateTaskTemplateResponse> createTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$9.CreateTaskTemplateRequest> request) async { + $async.Future<$10.CreateTaskTemplateResponse> createTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$10.CreateTaskTemplateRequest> request) async { return createTaskTemplate(call, await request); } - $async.Future<$9.GetAllTaskTemplatesResponse> getAllTaskTemplates_Pre($grpc.ServiceCall call, $async.Future<$9.GetAllTaskTemplatesRequest> request) async { + $async.Future<$10.GetAllTaskTemplatesResponse> getAllTaskTemplates_Pre($grpc.ServiceCall call, $async.Future<$10.GetAllTaskTemplatesRequest> request) async { return getAllTaskTemplates(call, await request); } - $async.Future<$9.DeleteTaskTemplateResponse> deleteTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$9.DeleteTaskTemplateRequest> request) async { + $async.Future<$10.DeleteTaskTemplateResponse> deleteTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$10.DeleteTaskTemplateRequest> request) async { return deleteTaskTemplate(call, await request); } - $async.Future<$9.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.DeleteTaskTemplateSubTaskRequest> request) async { + $async.Future<$10.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$10.DeleteTaskTemplateSubTaskRequest> request) async { return deleteTaskTemplateSubTask(call, await request); } - $async.Future<$9.UpdateTaskTemplateResponse> updateTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$9.UpdateTaskTemplateRequest> request) async { + $async.Future<$10.UpdateTaskTemplateResponse> updateTaskTemplate_Pre($grpc.ServiceCall call, $async.Future<$10.UpdateTaskTemplateRequest> request) async { return updateTaskTemplate(call, await request); } - $async.Future<$9.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.UpdateTaskTemplateSubTaskRequest> request) async { + $async.Future<$10.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$10.UpdateTaskTemplateSubTaskRequest> request) async { return updateTaskTemplateSubTask(call, await request); } - $async.Future<$9.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$9.CreateTaskTemplateSubTaskRequest> request) async { + $async.Future<$10.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask_Pre($grpc.ServiceCall call, $async.Future<$10.CreateTaskTemplateSubTaskRequest> request) async { return createTaskTemplateSubTask(call, await request); } - $async.Future<$9.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator_Pre($grpc.ServiceCall call, $async.Future<$9.GetAllTaskTemplatesByCreatorRequest> request) async { + $async.Future<$10.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator_Pre($grpc.ServiceCall call, $async.Future<$10.GetAllTaskTemplatesByCreatorRequest> request) async { return getAllTaskTemplatesByCreator(call, await request); } - $async.Future<$9.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard_Pre($grpc.ServiceCall call, $async.Future<$9.GetAllTaskTemplatesByWardRequest> request) async { + $async.Future<$10.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard_Pre($grpc.ServiceCall call, $async.Future<$10.GetAllTaskTemplatesByWardRequest> request) async { return getAllTaskTemplatesByWard(call, await request); } - $async.Future<$9.CreateTaskTemplateResponse> createTaskTemplate($grpc.ServiceCall call, $9.CreateTaskTemplateRequest request); - $async.Future<$9.GetAllTaskTemplatesResponse> getAllTaskTemplates($grpc.ServiceCall call, $9.GetAllTaskTemplatesRequest request); - $async.Future<$9.DeleteTaskTemplateResponse> deleteTaskTemplate($grpc.ServiceCall call, $9.DeleteTaskTemplateRequest request); - $async.Future<$9.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask($grpc.ServiceCall call, $9.DeleteTaskTemplateSubTaskRequest request); - $async.Future<$9.UpdateTaskTemplateResponse> updateTaskTemplate($grpc.ServiceCall call, $9.UpdateTaskTemplateRequest request); - $async.Future<$9.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask($grpc.ServiceCall call, $9.UpdateTaskTemplateSubTaskRequest request); - $async.Future<$9.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask($grpc.ServiceCall call, $9.CreateTaskTemplateSubTaskRequest request); - $async.Future<$9.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator($grpc.ServiceCall call, $9.GetAllTaskTemplatesByCreatorRequest request); - $async.Future<$9.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard($grpc.ServiceCall call, $9.GetAllTaskTemplatesByWardRequest request); + $async.Future<$10.CreateTaskTemplateResponse> createTaskTemplate($grpc.ServiceCall call, $10.CreateTaskTemplateRequest request); + $async.Future<$10.GetAllTaskTemplatesResponse> getAllTaskTemplates($grpc.ServiceCall call, $10.GetAllTaskTemplatesRequest request); + $async.Future<$10.DeleteTaskTemplateResponse> deleteTaskTemplate($grpc.ServiceCall call, $10.DeleteTaskTemplateRequest request); + $async.Future<$10.DeleteTaskTemplateSubTaskResponse> deleteTaskTemplateSubTask($grpc.ServiceCall call, $10.DeleteTaskTemplateSubTaskRequest request); + $async.Future<$10.UpdateTaskTemplateResponse> updateTaskTemplate($grpc.ServiceCall call, $10.UpdateTaskTemplateRequest request); + $async.Future<$10.UpdateTaskTemplateSubTaskResponse> updateTaskTemplateSubTask($grpc.ServiceCall call, $10.UpdateTaskTemplateSubTaskRequest request); + $async.Future<$10.CreateTaskTemplateSubTaskResponse> createTaskTemplateSubTask($grpc.ServiceCall call, $10.CreateTaskTemplateSubTaskRequest request); + $async.Future<$10.GetAllTaskTemplatesByCreatorResponse> getAllTaskTemplatesByCreator($grpc.ServiceCall call, $10.GetAllTaskTemplatesByCreatorRequest request); + $async.Future<$10.GetAllTaskTemplatesByWardResponse> getAllTaskTemplatesByWard($grpc.ServiceCall call, $10.GetAllTaskTemplatesByWardRequest request); } diff --git a/gen/dart/lib/proto/services/task_svc/v1/ward_svc.pbgrpc.dart b/gen/dart/lib/proto/services/task_svc/v1/ward_svc.pbgrpc.dart index 37f918b0c..fcacad3d3 100644 --- a/gen/dart/lib/proto/services/task_svc/v1/ward_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/task_svc/v1/ward_svc.pbgrpc.dart @@ -15,44 +15,44 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'ward_svc.pb.dart' as $10; +import 'ward_svc.pb.dart' as $11; export 'ward_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.task_svc.v1.WardService') class WardServiceClient extends $grpc.Client { - static final _$createWard = $grpc.ClientMethod<$10.CreateWardRequest, $10.CreateWardResponse>( + static final _$createWard = $grpc.ClientMethod<$11.CreateWardRequest, $11.CreateWardResponse>( '/proto.services.task_svc.v1.WardService/CreateWard', - ($10.CreateWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.CreateWardResponse.fromBuffer(value)); - static final _$getWard = $grpc.ClientMethod<$10.GetWardRequest, $10.GetWardResponse>( + ($11.CreateWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.CreateWardResponse.fromBuffer(value)); + static final _$getWard = $grpc.ClientMethod<$11.GetWardRequest, $11.GetWardResponse>( '/proto.services.task_svc.v1.WardService/GetWard', - ($10.GetWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.GetWardResponse.fromBuffer(value)); - static final _$getWards = $grpc.ClientMethod<$10.GetWardsRequest, $10.GetWardsResponse>( + ($11.GetWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.GetWardResponse.fromBuffer(value)); + static final _$getWards = $grpc.ClientMethod<$11.GetWardsRequest, $11.GetWardsResponse>( '/proto.services.task_svc.v1.WardService/GetWards', - ($10.GetWardsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.GetWardsResponse.fromBuffer(value)); - static final _$getRecentWards = $grpc.ClientMethod<$10.GetRecentWardsRequest, $10.GetRecentWardsResponse>( + ($11.GetWardsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.GetWardsResponse.fromBuffer(value)); + static final _$getRecentWards = $grpc.ClientMethod<$11.GetRecentWardsRequest, $11.GetRecentWardsResponse>( '/proto.services.task_svc.v1.WardService/GetRecentWards', - ($10.GetRecentWardsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.GetRecentWardsResponse.fromBuffer(value)); - static final _$updateWard = $grpc.ClientMethod<$10.UpdateWardRequest, $10.UpdateWardResponse>( + ($11.GetRecentWardsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.GetRecentWardsResponse.fromBuffer(value)); + static final _$updateWard = $grpc.ClientMethod<$11.UpdateWardRequest, $11.UpdateWardResponse>( '/proto.services.task_svc.v1.WardService/UpdateWard', - ($10.UpdateWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.UpdateWardResponse.fromBuffer(value)); - static final _$deleteWard = $grpc.ClientMethod<$10.DeleteWardRequest, $10.DeleteWardResponse>( + ($11.UpdateWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.UpdateWardResponse.fromBuffer(value)); + static final _$deleteWard = $grpc.ClientMethod<$11.DeleteWardRequest, $11.DeleteWardResponse>( '/proto.services.task_svc.v1.WardService/DeleteWard', - ($10.DeleteWardRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.DeleteWardResponse.fromBuffer(value)); - static final _$getWardOverviews = $grpc.ClientMethod<$10.GetWardOverviewsRequest, $10.GetWardOverviewsResponse>( + ($11.DeleteWardRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.DeleteWardResponse.fromBuffer(value)); + static final _$getWardOverviews = $grpc.ClientMethod<$11.GetWardOverviewsRequest, $11.GetWardOverviewsResponse>( '/proto.services.task_svc.v1.WardService/GetWardOverviews', - ($10.GetWardOverviewsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.GetWardOverviewsResponse.fromBuffer(value)); - static final _$getWardDetails = $grpc.ClientMethod<$10.GetWardDetailsRequest, $10.GetWardDetailsResponse>( + ($11.GetWardOverviewsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.GetWardOverviewsResponse.fromBuffer(value)); + static final _$getWardDetails = $grpc.ClientMethod<$11.GetWardDetailsRequest, $11.GetWardDetailsResponse>( '/proto.services.task_svc.v1.WardService/GetWardDetails', - ($10.GetWardDetailsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $10.GetWardDetailsResponse.fromBuffer(value)); + ($11.GetWardDetailsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $11.GetWardDetailsResponse.fromBuffer(value)); WardServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -60,35 +60,35 @@ class WardServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$10.CreateWardResponse> createWard($10.CreateWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.CreateWardResponse> createWard($11.CreateWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createWard, request, options: options); } - $grpc.ResponseFuture<$10.GetWardResponse> getWard($10.GetWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.GetWardResponse> getWard($11.GetWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWard, request, options: options); } - $grpc.ResponseFuture<$10.GetWardsResponse> getWards($10.GetWardsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.GetWardsResponse> getWards($11.GetWardsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWards, request, options: options); } - $grpc.ResponseFuture<$10.GetRecentWardsResponse> getRecentWards($10.GetRecentWardsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.GetRecentWardsResponse> getRecentWards($11.GetRecentWardsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRecentWards, request, options: options); } - $grpc.ResponseFuture<$10.UpdateWardResponse> updateWard($10.UpdateWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.UpdateWardResponse> updateWard($11.UpdateWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateWard, request, options: options); } - $grpc.ResponseFuture<$10.DeleteWardResponse> deleteWard($10.DeleteWardRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.DeleteWardResponse> deleteWard($11.DeleteWardRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteWard, request, options: options); } - $grpc.ResponseFuture<$10.GetWardOverviewsResponse> getWardOverviews($10.GetWardOverviewsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.GetWardOverviewsResponse> getWardOverviews($11.GetWardOverviewsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWardOverviews, request, options: options); } - $grpc.ResponseFuture<$10.GetWardDetailsResponse> getWardDetails($10.GetWardDetailsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$11.GetWardDetailsResponse> getWardDetails($11.GetWardDetailsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getWardDetails, request, options: options); } } @@ -98,102 +98,102 @@ abstract class WardServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.task_svc.v1.WardService'; WardServiceBase() { - $addMethod($grpc.ServiceMethod<$10.CreateWardRequest, $10.CreateWardResponse>( + $addMethod($grpc.ServiceMethod<$11.CreateWardRequest, $11.CreateWardResponse>( 'CreateWard', createWard_Pre, false, false, - ($core.List<$core.int> value) => $10.CreateWardRequest.fromBuffer(value), - ($10.CreateWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.GetWardRequest, $10.GetWardResponse>( + ($core.List<$core.int> value) => $11.CreateWardRequest.fromBuffer(value), + ($11.CreateWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.GetWardRequest, $11.GetWardResponse>( 'GetWard', getWard_Pre, false, false, - ($core.List<$core.int> value) => $10.GetWardRequest.fromBuffer(value), - ($10.GetWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.GetWardsRequest, $10.GetWardsResponse>( + ($core.List<$core.int> value) => $11.GetWardRequest.fromBuffer(value), + ($11.GetWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.GetWardsRequest, $11.GetWardsResponse>( 'GetWards', getWards_Pre, false, false, - ($core.List<$core.int> value) => $10.GetWardsRequest.fromBuffer(value), - ($10.GetWardsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.GetRecentWardsRequest, $10.GetRecentWardsResponse>( + ($core.List<$core.int> value) => $11.GetWardsRequest.fromBuffer(value), + ($11.GetWardsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.GetRecentWardsRequest, $11.GetRecentWardsResponse>( 'GetRecentWards', getRecentWards_Pre, false, false, - ($core.List<$core.int> value) => $10.GetRecentWardsRequest.fromBuffer(value), - ($10.GetRecentWardsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.UpdateWardRequest, $10.UpdateWardResponse>( + ($core.List<$core.int> value) => $11.GetRecentWardsRequest.fromBuffer(value), + ($11.GetRecentWardsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.UpdateWardRequest, $11.UpdateWardResponse>( 'UpdateWard', updateWard_Pre, false, false, - ($core.List<$core.int> value) => $10.UpdateWardRequest.fromBuffer(value), - ($10.UpdateWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.DeleteWardRequest, $10.DeleteWardResponse>( + ($core.List<$core.int> value) => $11.UpdateWardRequest.fromBuffer(value), + ($11.UpdateWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.DeleteWardRequest, $11.DeleteWardResponse>( 'DeleteWard', deleteWard_Pre, false, false, - ($core.List<$core.int> value) => $10.DeleteWardRequest.fromBuffer(value), - ($10.DeleteWardResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.GetWardOverviewsRequest, $10.GetWardOverviewsResponse>( + ($core.List<$core.int> value) => $11.DeleteWardRequest.fromBuffer(value), + ($11.DeleteWardResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.GetWardOverviewsRequest, $11.GetWardOverviewsResponse>( 'GetWardOverviews', getWardOverviews_Pre, false, false, - ($core.List<$core.int> value) => $10.GetWardOverviewsRequest.fromBuffer(value), - ($10.GetWardOverviewsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$10.GetWardDetailsRequest, $10.GetWardDetailsResponse>( + ($core.List<$core.int> value) => $11.GetWardOverviewsRequest.fromBuffer(value), + ($11.GetWardOverviewsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$11.GetWardDetailsRequest, $11.GetWardDetailsResponse>( 'GetWardDetails', getWardDetails_Pre, false, false, - ($core.List<$core.int> value) => $10.GetWardDetailsRequest.fromBuffer(value), - ($10.GetWardDetailsResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $11.GetWardDetailsRequest.fromBuffer(value), + ($11.GetWardDetailsResponse value) => value.writeToBuffer())); } - $async.Future<$10.CreateWardResponse> createWard_Pre($grpc.ServiceCall call, $async.Future<$10.CreateWardRequest> request) async { + $async.Future<$11.CreateWardResponse> createWard_Pre($grpc.ServiceCall call, $async.Future<$11.CreateWardRequest> request) async { return createWard(call, await request); } - $async.Future<$10.GetWardResponse> getWard_Pre($grpc.ServiceCall call, $async.Future<$10.GetWardRequest> request) async { + $async.Future<$11.GetWardResponse> getWard_Pre($grpc.ServiceCall call, $async.Future<$11.GetWardRequest> request) async { return getWard(call, await request); } - $async.Future<$10.GetWardsResponse> getWards_Pre($grpc.ServiceCall call, $async.Future<$10.GetWardsRequest> request) async { + $async.Future<$11.GetWardsResponse> getWards_Pre($grpc.ServiceCall call, $async.Future<$11.GetWardsRequest> request) async { return getWards(call, await request); } - $async.Future<$10.GetRecentWardsResponse> getRecentWards_Pre($grpc.ServiceCall call, $async.Future<$10.GetRecentWardsRequest> request) async { + $async.Future<$11.GetRecentWardsResponse> getRecentWards_Pre($grpc.ServiceCall call, $async.Future<$11.GetRecentWardsRequest> request) async { return getRecentWards(call, await request); } - $async.Future<$10.UpdateWardResponse> updateWard_Pre($grpc.ServiceCall call, $async.Future<$10.UpdateWardRequest> request) async { + $async.Future<$11.UpdateWardResponse> updateWard_Pre($grpc.ServiceCall call, $async.Future<$11.UpdateWardRequest> request) async { return updateWard(call, await request); } - $async.Future<$10.DeleteWardResponse> deleteWard_Pre($grpc.ServiceCall call, $async.Future<$10.DeleteWardRequest> request) async { + $async.Future<$11.DeleteWardResponse> deleteWard_Pre($grpc.ServiceCall call, $async.Future<$11.DeleteWardRequest> request) async { return deleteWard(call, await request); } - $async.Future<$10.GetWardOverviewsResponse> getWardOverviews_Pre($grpc.ServiceCall call, $async.Future<$10.GetWardOverviewsRequest> request) async { + $async.Future<$11.GetWardOverviewsResponse> getWardOverviews_Pre($grpc.ServiceCall call, $async.Future<$11.GetWardOverviewsRequest> request) async { return getWardOverviews(call, await request); } - $async.Future<$10.GetWardDetailsResponse> getWardDetails_Pre($grpc.ServiceCall call, $async.Future<$10.GetWardDetailsRequest> request) async { + $async.Future<$11.GetWardDetailsResponse> getWardDetails_Pre($grpc.ServiceCall call, $async.Future<$11.GetWardDetailsRequest> request) async { return getWardDetails(call, await request); } - $async.Future<$10.CreateWardResponse> createWard($grpc.ServiceCall call, $10.CreateWardRequest request); - $async.Future<$10.GetWardResponse> getWard($grpc.ServiceCall call, $10.GetWardRequest request); - $async.Future<$10.GetWardsResponse> getWards($grpc.ServiceCall call, $10.GetWardsRequest request); - $async.Future<$10.GetRecentWardsResponse> getRecentWards($grpc.ServiceCall call, $10.GetRecentWardsRequest request); - $async.Future<$10.UpdateWardResponse> updateWard($grpc.ServiceCall call, $10.UpdateWardRequest request); - $async.Future<$10.DeleteWardResponse> deleteWard($grpc.ServiceCall call, $10.DeleteWardRequest request); - $async.Future<$10.GetWardOverviewsResponse> getWardOverviews($grpc.ServiceCall call, $10.GetWardOverviewsRequest request); - $async.Future<$10.GetWardDetailsResponse> getWardDetails($grpc.ServiceCall call, $10.GetWardDetailsRequest request); + $async.Future<$11.CreateWardResponse> createWard($grpc.ServiceCall call, $11.CreateWardRequest request); + $async.Future<$11.GetWardResponse> getWard($grpc.ServiceCall call, $11.GetWardRequest request); + $async.Future<$11.GetWardsResponse> getWards($grpc.ServiceCall call, $11.GetWardsRequest request); + $async.Future<$11.GetRecentWardsResponse> getRecentWards($grpc.ServiceCall call, $11.GetRecentWardsRequest request); + $async.Future<$11.UpdateWardResponse> updateWard($grpc.ServiceCall call, $11.UpdateWardRequest request); + $async.Future<$11.DeleteWardResponse> deleteWard($grpc.ServiceCall call, $11.DeleteWardRequest request); + $async.Future<$11.GetWardOverviewsResponse> getWardOverviews($grpc.ServiceCall call, $11.GetWardOverviewsRequest request); + $async.Future<$11.GetWardDetailsResponse> getWardDetails($grpc.ServiceCall call, $11.GetWardDetailsRequest request); } diff --git a/gen/dart/lib/proto/services/tasks_svc/v1/patient_svc.pbgrpc.dart b/gen/dart/lib/proto/services/tasks_svc/v1/patient_svc.pbgrpc.dart index d2b1e0c0b..3add07b5a 100644 --- a/gen/dart/lib/proto/services/tasks_svc/v1/patient_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/tasks_svc/v1/patient_svc.pbgrpc.dart @@ -15,44 +15,44 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'patient_svc.pb.dart' as $11; +import 'patient_svc.pb.dart' as $12; export 'patient_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.tasks_svc.v1.PatientService') class PatientServiceClient extends $grpc.Client { - static final _$createPatient = $grpc.ClientMethod<$11.CreatePatientRequest, $11.CreatePatientResponse>( + static final _$createPatient = $grpc.ClientMethod<$12.CreatePatientRequest, $12.CreatePatientResponse>( '/proto.services.tasks_svc.v1.PatientService/CreatePatient', - ($11.CreatePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.CreatePatientResponse.fromBuffer(value)); - static final _$getPatient = $grpc.ClientMethod<$11.GetPatientRequest, $11.GetPatientResponse>( + ($12.CreatePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.CreatePatientResponse.fromBuffer(value)); + static final _$getPatient = $grpc.ClientMethod<$12.GetPatientRequest, $12.GetPatientResponse>( '/proto.services.tasks_svc.v1.PatientService/GetPatient', - ($11.GetPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.GetPatientResponse.fromBuffer(value)); - static final _$getRecentPatients = $grpc.ClientMethod<$11.GetRecentPatientsRequest, $11.GetRecentPatientsResponse>( + ($12.GetPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.GetPatientResponse.fromBuffer(value)); + static final _$getRecentPatients = $grpc.ClientMethod<$12.GetRecentPatientsRequest, $12.GetRecentPatientsResponse>( '/proto.services.tasks_svc.v1.PatientService/GetRecentPatients', - ($11.GetRecentPatientsRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.GetRecentPatientsResponse.fromBuffer(value)); - static final _$updatePatient = $grpc.ClientMethod<$11.UpdatePatientRequest, $11.UpdatePatientResponse>( + ($12.GetRecentPatientsRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.GetRecentPatientsResponse.fromBuffer(value)); + static final _$updatePatient = $grpc.ClientMethod<$12.UpdatePatientRequest, $12.UpdatePatientResponse>( '/proto.services.tasks_svc.v1.PatientService/UpdatePatient', - ($11.UpdatePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.UpdatePatientResponse.fromBuffer(value)); - static final _$assignBed = $grpc.ClientMethod<$11.AssignBedRequest, $11.AssignBedResponse>( + ($12.UpdatePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.UpdatePatientResponse.fromBuffer(value)); + static final _$assignBed = $grpc.ClientMethod<$12.AssignBedRequest, $12.AssignBedResponse>( '/proto.services.tasks_svc.v1.PatientService/AssignBed', - ($11.AssignBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.AssignBedResponse.fromBuffer(value)); - static final _$unassignBed = $grpc.ClientMethod<$11.UnassignBedRequest, $11.UnassignBedResponse>( + ($12.AssignBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.AssignBedResponse.fromBuffer(value)); + static final _$unassignBed = $grpc.ClientMethod<$12.UnassignBedRequest, $12.UnassignBedResponse>( '/proto.services.tasks_svc.v1.PatientService/UnassignBed', - ($11.UnassignBedRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.UnassignBedResponse.fromBuffer(value)); - static final _$dischargePatient = $grpc.ClientMethod<$11.DischargePatientRequest, $11.DischargePatientResponse>( + ($12.UnassignBedRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.UnassignBedResponse.fromBuffer(value)); + static final _$dischargePatient = $grpc.ClientMethod<$12.DischargePatientRequest, $12.DischargePatientResponse>( '/proto.services.tasks_svc.v1.PatientService/DischargePatient', - ($11.DischargePatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.DischargePatientResponse.fromBuffer(value)); - static final _$readmitPatient = $grpc.ClientMethod<$11.ReadmitPatientRequest, $11.ReadmitPatientResponse>( + ($12.DischargePatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.DischargePatientResponse.fromBuffer(value)); + static final _$readmitPatient = $grpc.ClientMethod<$12.ReadmitPatientRequest, $12.ReadmitPatientResponse>( '/proto.services.tasks_svc.v1.PatientService/ReadmitPatient', - ($11.ReadmitPatientRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $11.ReadmitPatientResponse.fromBuffer(value)); + ($12.ReadmitPatientRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $12.ReadmitPatientResponse.fromBuffer(value)); PatientServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -60,35 +60,35 @@ class PatientServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$11.CreatePatientResponse> createPatient($11.CreatePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.CreatePatientResponse> createPatient($12.CreatePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createPatient, request, options: options); } - $grpc.ResponseFuture<$11.GetPatientResponse> getPatient($11.GetPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.GetPatientResponse> getPatient($12.GetPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getPatient, request, options: options); } - $grpc.ResponseFuture<$11.GetRecentPatientsResponse> getRecentPatients($11.GetRecentPatientsRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.GetRecentPatientsResponse> getRecentPatients($12.GetRecentPatientsRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getRecentPatients, request, options: options); } - $grpc.ResponseFuture<$11.UpdatePatientResponse> updatePatient($11.UpdatePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.UpdatePatientResponse> updatePatient($12.UpdatePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updatePatient, request, options: options); } - $grpc.ResponseFuture<$11.AssignBedResponse> assignBed($11.AssignBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.AssignBedResponse> assignBed($12.AssignBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$assignBed, request, options: options); } - $grpc.ResponseFuture<$11.UnassignBedResponse> unassignBed($11.UnassignBedRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.UnassignBedResponse> unassignBed($12.UnassignBedRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unassignBed, request, options: options); } - $grpc.ResponseFuture<$11.DischargePatientResponse> dischargePatient($11.DischargePatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.DischargePatientResponse> dischargePatient($12.DischargePatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$dischargePatient, request, options: options); } - $grpc.ResponseFuture<$11.ReadmitPatientResponse> readmitPatient($11.ReadmitPatientRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$12.ReadmitPatientResponse> readmitPatient($12.ReadmitPatientRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$readmitPatient, request, options: options); } } @@ -98,102 +98,102 @@ abstract class PatientServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.tasks_svc.v1.PatientService'; PatientServiceBase() { - $addMethod($grpc.ServiceMethod<$11.CreatePatientRequest, $11.CreatePatientResponse>( + $addMethod($grpc.ServiceMethod<$12.CreatePatientRequest, $12.CreatePatientResponse>( 'CreatePatient', createPatient_Pre, false, false, - ($core.List<$core.int> value) => $11.CreatePatientRequest.fromBuffer(value), - ($11.CreatePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.GetPatientRequest, $11.GetPatientResponse>( + ($core.List<$core.int> value) => $12.CreatePatientRequest.fromBuffer(value), + ($12.CreatePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.GetPatientRequest, $12.GetPatientResponse>( 'GetPatient', getPatient_Pre, false, false, - ($core.List<$core.int> value) => $11.GetPatientRequest.fromBuffer(value), - ($11.GetPatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.GetRecentPatientsRequest, $11.GetRecentPatientsResponse>( + ($core.List<$core.int> value) => $12.GetPatientRequest.fromBuffer(value), + ($12.GetPatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.GetRecentPatientsRequest, $12.GetRecentPatientsResponse>( 'GetRecentPatients', getRecentPatients_Pre, false, false, - ($core.List<$core.int> value) => $11.GetRecentPatientsRequest.fromBuffer(value), - ($11.GetRecentPatientsResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.UpdatePatientRequest, $11.UpdatePatientResponse>( + ($core.List<$core.int> value) => $12.GetRecentPatientsRequest.fromBuffer(value), + ($12.GetRecentPatientsResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.UpdatePatientRequest, $12.UpdatePatientResponse>( 'UpdatePatient', updatePatient_Pre, false, false, - ($core.List<$core.int> value) => $11.UpdatePatientRequest.fromBuffer(value), - ($11.UpdatePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.AssignBedRequest, $11.AssignBedResponse>( + ($core.List<$core.int> value) => $12.UpdatePatientRequest.fromBuffer(value), + ($12.UpdatePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.AssignBedRequest, $12.AssignBedResponse>( 'AssignBed', assignBed_Pre, false, false, - ($core.List<$core.int> value) => $11.AssignBedRequest.fromBuffer(value), - ($11.AssignBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.UnassignBedRequest, $11.UnassignBedResponse>( + ($core.List<$core.int> value) => $12.AssignBedRequest.fromBuffer(value), + ($12.AssignBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.UnassignBedRequest, $12.UnassignBedResponse>( 'UnassignBed', unassignBed_Pre, false, false, - ($core.List<$core.int> value) => $11.UnassignBedRequest.fromBuffer(value), - ($11.UnassignBedResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.DischargePatientRequest, $11.DischargePatientResponse>( + ($core.List<$core.int> value) => $12.UnassignBedRequest.fromBuffer(value), + ($12.UnassignBedResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.DischargePatientRequest, $12.DischargePatientResponse>( 'DischargePatient', dischargePatient_Pre, false, false, - ($core.List<$core.int> value) => $11.DischargePatientRequest.fromBuffer(value), - ($11.DischargePatientResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$11.ReadmitPatientRequest, $11.ReadmitPatientResponse>( + ($core.List<$core.int> value) => $12.DischargePatientRequest.fromBuffer(value), + ($12.DischargePatientResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$12.ReadmitPatientRequest, $12.ReadmitPatientResponse>( 'ReadmitPatient', readmitPatient_Pre, false, false, - ($core.List<$core.int> value) => $11.ReadmitPatientRequest.fromBuffer(value), - ($11.ReadmitPatientResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $12.ReadmitPatientRequest.fromBuffer(value), + ($12.ReadmitPatientResponse value) => value.writeToBuffer())); } - $async.Future<$11.CreatePatientResponse> createPatient_Pre($grpc.ServiceCall call, $async.Future<$11.CreatePatientRequest> request) async { + $async.Future<$12.CreatePatientResponse> createPatient_Pre($grpc.ServiceCall call, $async.Future<$12.CreatePatientRequest> request) async { return createPatient(call, await request); } - $async.Future<$11.GetPatientResponse> getPatient_Pre($grpc.ServiceCall call, $async.Future<$11.GetPatientRequest> request) async { + $async.Future<$12.GetPatientResponse> getPatient_Pre($grpc.ServiceCall call, $async.Future<$12.GetPatientRequest> request) async { return getPatient(call, await request); } - $async.Future<$11.GetRecentPatientsResponse> getRecentPatients_Pre($grpc.ServiceCall call, $async.Future<$11.GetRecentPatientsRequest> request) async { + $async.Future<$12.GetRecentPatientsResponse> getRecentPatients_Pre($grpc.ServiceCall call, $async.Future<$12.GetRecentPatientsRequest> request) async { return getRecentPatients(call, await request); } - $async.Future<$11.UpdatePatientResponse> updatePatient_Pre($grpc.ServiceCall call, $async.Future<$11.UpdatePatientRequest> request) async { + $async.Future<$12.UpdatePatientResponse> updatePatient_Pre($grpc.ServiceCall call, $async.Future<$12.UpdatePatientRequest> request) async { return updatePatient(call, await request); } - $async.Future<$11.AssignBedResponse> assignBed_Pre($grpc.ServiceCall call, $async.Future<$11.AssignBedRequest> request) async { + $async.Future<$12.AssignBedResponse> assignBed_Pre($grpc.ServiceCall call, $async.Future<$12.AssignBedRequest> request) async { return assignBed(call, await request); } - $async.Future<$11.UnassignBedResponse> unassignBed_Pre($grpc.ServiceCall call, $async.Future<$11.UnassignBedRequest> request) async { + $async.Future<$12.UnassignBedResponse> unassignBed_Pre($grpc.ServiceCall call, $async.Future<$12.UnassignBedRequest> request) async { return unassignBed(call, await request); } - $async.Future<$11.DischargePatientResponse> dischargePatient_Pre($grpc.ServiceCall call, $async.Future<$11.DischargePatientRequest> request) async { + $async.Future<$12.DischargePatientResponse> dischargePatient_Pre($grpc.ServiceCall call, $async.Future<$12.DischargePatientRequest> request) async { return dischargePatient(call, await request); } - $async.Future<$11.ReadmitPatientResponse> readmitPatient_Pre($grpc.ServiceCall call, $async.Future<$11.ReadmitPatientRequest> request) async { + $async.Future<$12.ReadmitPatientResponse> readmitPatient_Pre($grpc.ServiceCall call, $async.Future<$12.ReadmitPatientRequest> request) async { return readmitPatient(call, await request); } - $async.Future<$11.CreatePatientResponse> createPatient($grpc.ServiceCall call, $11.CreatePatientRequest request); - $async.Future<$11.GetPatientResponse> getPatient($grpc.ServiceCall call, $11.GetPatientRequest request); - $async.Future<$11.GetRecentPatientsResponse> getRecentPatients($grpc.ServiceCall call, $11.GetRecentPatientsRequest request); - $async.Future<$11.UpdatePatientResponse> updatePatient($grpc.ServiceCall call, $11.UpdatePatientRequest request); - $async.Future<$11.AssignBedResponse> assignBed($grpc.ServiceCall call, $11.AssignBedRequest request); - $async.Future<$11.UnassignBedResponse> unassignBed($grpc.ServiceCall call, $11.UnassignBedRequest request); - $async.Future<$11.DischargePatientResponse> dischargePatient($grpc.ServiceCall call, $11.DischargePatientRequest request); - $async.Future<$11.ReadmitPatientResponse> readmitPatient($grpc.ServiceCall call, $11.ReadmitPatientRequest request); + $async.Future<$12.CreatePatientResponse> createPatient($grpc.ServiceCall call, $12.CreatePatientRequest request); + $async.Future<$12.GetPatientResponse> getPatient($grpc.ServiceCall call, $12.GetPatientRequest request); + $async.Future<$12.GetRecentPatientsResponse> getRecentPatients($grpc.ServiceCall call, $12.GetRecentPatientsRequest request); + $async.Future<$12.UpdatePatientResponse> updatePatient($grpc.ServiceCall call, $12.UpdatePatientRequest request); + $async.Future<$12.AssignBedResponse> assignBed($grpc.ServiceCall call, $12.AssignBedRequest request); + $async.Future<$12.UnassignBedResponse> unassignBed($grpc.ServiceCall call, $12.UnassignBedRequest request); + $async.Future<$12.DischargePatientResponse> dischargePatient($grpc.ServiceCall call, $12.DischargePatientRequest request); + $async.Future<$12.ReadmitPatientResponse> readmitPatient($grpc.ServiceCall call, $12.ReadmitPatientRequest request); } diff --git a/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pb.dart b/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pb.dart index dd4d2d8ab..d58b7d933 100644 --- a/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pb.dart +++ b/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pb.dart @@ -13,7 +13,7 @@ import 'dart:core' as $core; import 'package:protobuf/protobuf.dart' as $pb; -import '../../../../google/protobuf/timestamp.pb.dart' as $16; +import '../../../../google/protobuf/timestamp.pb.dart' as $17; import 'task_svc.pbenum.dart'; export 'task_svc.pbenum.dart'; @@ -24,7 +24,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { $core.String? description, $core.String? patientId, $core.bool? public, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, TaskStatus? initialStatus, }) { final $result = create(); @@ -57,7 +57,7 @@ class CreateTaskRequest extends $pb.GeneratedMessage { ..aOS(2, _omitFieldNames ? '' : 'description') ..aOS(3, _omitFieldNames ? '' : 'patientId') ..aOB(4, _omitFieldNames ? '' : 'public') - ..aOM<$16.Timestamp>(5, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(5, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..e(6, _omitFieldNames ? '' : 'initialStatus', $pb.PbFieldType.OE, defaultOrMaker: TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: TaskStatus.valueOf, enumValues: TaskStatus.values) ..hasRequiredFields = false ; @@ -120,15 +120,15 @@ class CreateTaskRequest extends $pb.GeneratedMessage { void clearPublic() => clearField(4); @$pb.TagNumber(5) - $16.Timestamp get dueAt => $_getN(4); + $17.Timestamp get dueAt => $_getN(4); @$pb.TagNumber(5) - set dueAt($16.Timestamp v) { setField(5, v); } + set dueAt($17.Timestamp v) { setField(5, v); } @$pb.TagNumber(5) $core.bool hasDueAt() => $_has(4); @$pb.TagNumber(5) void clearDueAt() => clearField(5); @$pb.TagNumber(5) - $16.Timestamp ensureDueAt() => $_ensure(4); + $17.Timestamp ensureDueAt() => $_ensure(4); @$pb.TagNumber(6) TaskStatus get initialStatus => $_getN(5); @@ -195,7 +195,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { $core.String? id, $core.String? name, $core.String? description, - $16.Timestamp? dueAt, + $17.Timestamp? dueAt, }) { final $result = create(); if (id != null) { @@ -220,7 +220,7 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { ..aOS(1, _omitFieldNames ? '' : 'id') ..aOS(2, _omitFieldNames ? '' : 'name') ..aOS(3, _omitFieldNames ? '' : 'description') - ..aOM<$16.Timestamp>(4, _omitFieldNames ? '' : 'dueAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(4, _omitFieldNames ? '' : 'dueAt', subBuilder: $17.Timestamp.create) ..hasRequiredFields = false ; @@ -273,15 +273,15 @@ class UpdateTaskRequest extends $pb.GeneratedMessage { void clearDescription() => clearField(3); @$pb.TagNumber(4) - $16.Timestamp get dueAt => $_getN(3); + $17.Timestamp get dueAt => $_getN(3); @$pb.TagNumber(4) - set dueAt($16.Timestamp v) { setField(4, v); } + set dueAt($17.Timestamp v) { setField(4, v); } @$pb.TagNumber(4) $core.bool hasDueAt() => $_has(3); @$pb.TagNumber(4) void clearDueAt() => clearField(4); @$pb.TagNumber(4) - $16.Timestamp ensureDueAt() => $_ensure(3); + $17.Timestamp ensureDueAt() => $_ensure(3); } class UpdateTaskResponse extends $pb.GeneratedMessage { @@ -452,7 +452,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { $core.Iterable<$core.String>? assignedUsers, $core.Iterable? subtasks, TaskStatus? status, - $16.Timestamp? createdAt, + $17.Timestamp? createdAt, }) { final $result = create(); if (id != null) { @@ -489,7 +489,7 @@ class GetTaskResponse extends $pb.GeneratedMessage { ..pPS(4, _omitFieldNames ? '' : 'assignedUsers') ..pc(5, _omitFieldNames ? '' : 'subtasks', $pb.PbFieldType.PM, subBuilder: GetTaskResponse_Subtask.create) ..e(6, _omitFieldNames ? '' : 'status', $pb.PbFieldType.OE, defaultOrMaker: TaskStatus.TASK_STATUS_UNSPECIFIED, valueOf: TaskStatus.valueOf, enumValues: TaskStatus.values) - ..aOM<$16.Timestamp>(7, _omitFieldNames ? '' : 'createdAt', subBuilder: $16.Timestamp.create) + ..aOM<$17.Timestamp>(7, _omitFieldNames ? '' : 'createdAt', subBuilder: $17.Timestamp.create) ..hasRequiredFields = false ; @@ -557,15 +557,15 @@ class GetTaskResponse extends $pb.GeneratedMessage { void clearStatus() => clearField(6); @$pb.TagNumber(7) - $16.Timestamp get createdAt => $_getN(6); + $17.Timestamp get createdAt => $_getN(6); @$pb.TagNumber(7) - set createdAt($16.Timestamp v) { setField(7, v); } + set createdAt($17.Timestamp v) { setField(7, v); } @$pb.TagNumber(7) $core.bool hasCreatedAt() => $_has(6); @$pb.TagNumber(7) void clearCreatedAt() => clearField(7); @$pb.TagNumber(7) - $16.Timestamp ensureCreatedAt() => $_ensure(6); + $17.Timestamp ensureCreatedAt() => $_ensure(6); } class AssignTaskRequest extends $pb.GeneratedMessage { diff --git a/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pbgrpc.dart b/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pbgrpc.dart index 6b39058fb..3823980f4 100644 --- a/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/tasks_svc/v1/task_svc.pbgrpc.dart @@ -15,52 +15,52 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'task_svc.pb.dart' as $12; +import 'task_svc.pb.dart' as $13; export 'task_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.tasks_svc.v1.TaskService') class TaskServiceClient extends $grpc.Client { - static final _$createTask = $grpc.ClientMethod<$12.CreateTaskRequest, $12.CreateTaskResponse>( + static final _$createTask = $grpc.ClientMethod<$13.CreateTaskRequest, $13.CreateTaskResponse>( '/proto.services.tasks_svc.v1.TaskService/CreateTask', - ($12.CreateTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.CreateTaskResponse.fromBuffer(value)); - static final _$updateTask = $grpc.ClientMethod<$12.UpdateTaskRequest, $12.UpdateTaskResponse>( + ($13.CreateTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.CreateTaskResponse.fromBuffer(value)); + static final _$updateTask = $grpc.ClientMethod<$13.UpdateTaskRequest, $13.UpdateTaskResponse>( '/proto.services.tasks_svc.v1.TaskService/UpdateTask', - ($12.UpdateTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.UpdateTaskResponse.fromBuffer(value)); - static final _$getTask = $grpc.ClientMethod<$12.GetTaskRequest, $12.GetTaskResponse>( + ($13.UpdateTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.UpdateTaskResponse.fromBuffer(value)); + static final _$getTask = $grpc.ClientMethod<$13.GetTaskRequest, $13.GetTaskResponse>( '/proto.services.tasks_svc.v1.TaskService/GetTask', - ($12.GetTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.GetTaskResponse.fromBuffer(value)); - static final _$assignTask = $grpc.ClientMethod<$12.AssignTaskRequest, $12.AssignTaskResponse>( + ($13.GetTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.GetTaskResponse.fromBuffer(value)); + static final _$assignTask = $grpc.ClientMethod<$13.AssignTaskRequest, $13.AssignTaskResponse>( '/proto.services.tasks_svc.v1.TaskService/AssignTask', - ($12.AssignTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.AssignTaskResponse.fromBuffer(value)); - static final _$unassignTask = $grpc.ClientMethod<$12.UnassignTaskRequest, $12.UnassignTaskResponse>( + ($13.AssignTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.AssignTaskResponse.fromBuffer(value)); + static final _$unassignTask = $grpc.ClientMethod<$13.UnassignTaskRequest, $13.UnassignTaskResponse>( '/proto.services.tasks_svc.v1.TaskService/UnassignTask', - ($12.UnassignTaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.UnassignTaskResponse.fromBuffer(value)); - static final _$createSubtask = $grpc.ClientMethod<$12.CreateSubtaskRequest, $12.CreateSubtaskResponse>( + ($13.UnassignTaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.UnassignTaskResponse.fromBuffer(value)); + static final _$createSubtask = $grpc.ClientMethod<$13.CreateSubtaskRequest, $13.CreateSubtaskResponse>( '/proto.services.tasks_svc.v1.TaskService/CreateSubtask', - ($12.CreateSubtaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.CreateSubtaskResponse.fromBuffer(value)); - static final _$updateSubtask = $grpc.ClientMethod<$12.UpdateSubtaskRequest, $12.UpdateSubtaskResponse>( + ($13.CreateSubtaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.CreateSubtaskResponse.fromBuffer(value)); + static final _$updateSubtask = $grpc.ClientMethod<$13.UpdateSubtaskRequest, $13.UpdateSubtaskResponse>( '/proto.services.tasks_svc.v1.TaskService/UpdateSubtask', - ($12.UpdateSubtaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.UpdateSubtaskResponse.fromBuffer(value)); - static final _$completeSubtask = $grpc.ClientMethod<$12.CompleteSubtaskRequest, $12.CompleteSubtaskResponse>( + ($13.UpdateSubtaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.UpdateSubtaskResponse.fromBuffer(value)); + static final _$completeSubtask = $grpc.ClientMethod<$13.CompleteSubtaskRequest, $13.CompleteSubtaskResponse>( '/proto.services.tasks_svc.v1.TaskService/CompleteSubtask', - ($12.CompleteSubtaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.CompleteSubtaskResponse.fromBuffer(value)); - static final _$uncompleteSubtask = $grpc.ClientMethod<$12.UncompleteSubtaskRequest, $12.UncompleteSubtaskResponse>( + ($13.CompleteSubtaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.CompleteSubtaskResponse.fromBuffer(value)); + static final _$uncompleteSubtask = $grpc.ClientMethod<$13.UncompleteSubtaskRequest, $13.UncompleteSubtaskResponse>( '/proto.services.tasks_svc.v1.TaskService/UncompleteSubtask', - ($12.UncompleteSubtaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.UncompleteSubtaskResponse.fromBuffer(value)); - static final _$deleteSubtask = $grpc.ClientMethod<$12.DeleteSubtaskRequest, $12.DeleteSubtaskResponse>( + ($13.UncompleteSubtaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.UncompleteSubtaskResponse.fromBuffer(value)); + static final _$deleteSubtask = $grpc.ClientMethod<$13.DeleteSubtaskRequest, $13.DeleteSubtaskResponse>( '/proto.services.tasks_svc.v1.TaskService/DeleteSubtask', - ($12.DeleteSubtaskRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $12.DeleteSubtaskResponse.fromBuffer(value)); + ($13.DeleteSubtaskRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $13.DeleteSubtaskResponse.fromBuffer(value)); TaskServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -68,43 +68,43 @@ class TaskServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$12.CreateTaskResponse> createTask($12.CreateTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.CreateTaskResponse> createTask($13.CreateTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createTask, request, options: options); } - $grpc.ResponseFuture<$12.UpdateTaskResponse> updateTask($12.UpdateTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.UpdateTaskResponse> updateTask($13.UpdateTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateTask, request, options: options); } - $grpc.ResponseFuture<$12.GetTaskResponse> getTask($12.GetTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.GetTaskResponse> getTask($13.GetTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getTask, request, options: options); } - $grpc.ResponseFuture<$12.AssignTaskResponse> assignTask($12.AssignTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.AssignTaskResponse> assignTask($13.AssignTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$assignTask, request, options: options); } - $grpc.ResponseFuture<$12.UnassignTaskResponse> unassignTask($12.UnassignTaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.UnassignTaskResponse> unassignTask($13.UnassignTaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$unassignTask, request, options: options); } - $grpc.ResponseFuture<$12.CreateSubtaskResponse> createSubtask($12.CreateSubtaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.CreateSubtaskResponse> createSubtask($13.CreateSubtaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createSubtask, request, options: options); } - $grpc.ResponseFuture<$12.UpdateSubtaskResponse> updateSubtask($12.UpdateSubtaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.UpdateSubtaskResponse> updateSubtask($13.UpdateSubtaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateSubtask, request, options: options); } - $grpc.ResponseFuture<$12.CompleteSubtaskResponse> completeSubtask($12.CompleteSubtaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.CompleteSubtaskResponse> completeSubtask($13.CompleteSubtaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$completeSubtask, request, options: options); } - $grpc.ResponseFuture<$12.UncompleteSubtaskResponse> uncompleteSubtask($12.UncompleteSubtaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.UncompleteSubtaskResponse> uncompleteSubtask($13.UncompleteSubtaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$uncompleteSubtask, request, options: options); } - $grpc.ResponseFuture<$12.DeleteSubtaskResponse> deleteSubtask($12.DeleteSubtaskRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$13.DeleteSubtaskResponse> deleteSubtask($13.DeleteSubtaskRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteSubtask, request, options: options); } } @@ -114,126 +114,126 @@ abstract class TaskServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.tasks_svc.v1.TaskService'; TaskServiceBase() { - $addMethod($grpc.ServiceMethod<$12.CreateTaskRequest, $12.CreateTaskResponse>( + $addMethod($grpc.ServiceMethod<$13.CreateTaskRequest, $13.CreateTaskResponse>( 'CreateTask', createTask_Pre, false, false, - ($core.List<$core.int> value) => $12.CreateTaskRequest.fromBuffer(value), - ($12.CreateTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.UpdateTaskRequest, $12.UpdateTaskResponse>( + ($core.List<$core.int> value) => $13.CreateTaskRequest.fromBuffer(value), + ($13.CreateTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.UpdateTaskRequest, $13.UpdateTaskResponse>( 'UpdateTask', updateTask_Pre, false, false, - ($core.List<$core.int> value) => $12.UpdateTaskRequest.fromBuffer(value), - ($12.UpdateTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.GetTaskRequest, $12.GetTaskResponse>( + ($core.List<$core.int> value) => $13.UpdateTaskRequest.fromBuffer(value), + ($13.UpdateTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.GetTaskRequest, $13.GetTaskResponse>( 'GetTask', getTask_Pre, false, false, - ($core.List<$core.int> value) => $12.GetTaskRequest.fromBuffer(value), - ($12.GetTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.AssignTaskRequest, $12.AssignTaskResponse>( + ($core.List<$core.int> value) => $13.GetTaskRequest.fromBuffer(value), + ($13.GetTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.AssignTaskRequest, $13.AssignTaskResponse>( 'AssignTask', assignTask_Pre, false, false, - ($core.List<$core.int> value) => $12.AssignTaskRequest.fromBuffer(value), - ($12.AssignTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.UnassignTaskRequest, $12.UnassignTaskResponse>( + ($core.List<$core.int> value) => $13.AssignTaskRequest.fromBuffer(value), + ($13.AssignTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.UnassignTaskRequest, $13.UnassignTaskResponse>( 'UnassignTask', unassignTask_Pre, false, false, - ($core.List<$core.int> value) => $12.UnassignTaskRequest.fromBuffer(value), - ($12.UnassignTaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.CreateSubtaskRequest, $12.CreateSubtaskResponse>( + ($core.List<$core.int> value) => $13.UnassignTaskRequest.fromBuffer(value), + ($13.UnassignTaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.CreateSubtaskRequest, $13.CreateSubtaskResponse>( 'CreateSubtask', createSubtask_Pre, false, false, - ($core.List<$core.int> value) => $12.CreateSubtaskRequest.fromBuffer(value), - ($12.CreateSubtaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.UpdateSubtaskRequest, $12.UpdateSubtaskResponse>( + ($core.List<$core.int> value) => $13.CreateSubtaskRequest.fromBuffer(value), + ($13.CreateSubtaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.UpdateSubtaskRequest, $13.UpdateSubtaskResponse>( 'UpdateSubtask', updateSubtask_Pre, false, false, - ($core.List<$core.int> value) => $12.UpdateSubtaskRequest.fromBuffer(value), - ($12.UpdateSubtaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.CompleteSubtaskRequest, $12.CompleteSubtaskResponse>( + ($core.List<$core.int> value) => $13.UpdateSubtaskRequest.fromBuffer(value), + ($13.UpdateSubtaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.CompleteSubtaskRequest, $13.CompleteSubtaskResponse>( 'CompleteSubtask', completeSubtask_Pre, false, false, - ($core.List<$core.int> value) => $12.CompleteSubtaskRequest.fromBuffer(value), - ($12.CompleteSubtaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.UncompleteSubtaskRequest, $12.UncompleteSubtaskResponse>( + ($core.List<$core.int> value) => $13.CompleteSubtaskRequest.fromBuffer(value), + ($13.CompleteSubtaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.UncompleteSubtaskRequest, $13.UncompleteSubtaskResponse>( 'UncompleteSubtask', uncompleteSubtask_Pre, false, false, - ($core.List<$core.int> value) => $12.UncompleteSubtaskRequest.fromBuffer(value), - ($12.UncompleteSubtaskResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$12.DeleteSubtaskRequest, $12.DeleteSubtaskResponse>( + ($core.List<$core.int> value) => $13.UncompleteSubtaskRequest.fromBuffer(value), + ($13.UncompleteSubtaskResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$13.DeleteSubtaskRequest, $13.DeleteSubtaskResponse>( 'DeleteSubtask', deleteSubtask_Pre, false, false, - ($core.List<$core.int> value) => $12.DeleteSubtaskRequest.fromBuffer(value), - ($12.DeleteSubtaskResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $13.DeleteSubtaskRequest.fromBuffer(value), + ($13.DeleteSubtaskResponse value) => value.writeToBuffer())); } - $async.Future<$12.CreateTaskResponse> createTask_Pre($grpc.ServiceCall call, $async.Future<$12.CreateTaskRequest> request) async { + $async.Future<$13.CreateTaskResponse> createTask_Pre($grpc.ServiceCall call, $async.Future<$13.CreateTaskRequest> request) async { return createTask(call, await request); } - $async.Future<$12.UpdateTaskResponse> updateTask_Pre($grpc.ServiceCall call, $async.Future<$12.UpdateTaskRequest> request) async { + $async.Future<$13.UpdateTaskResponse> updateTask_Pre($grpc.ServiceCall call, $async.Future<$13.UpdateTaskRequest> request) async { return updateTask(call, await request); } - $async.Future<$12.GetTaskResponse> getTask_Pre($grpc.ServiceCall call, $async.Future<$12.GetTaskRequest> request) async { + $async.Future<$13.GetTaskResponse> getTask_Pre($grpc.ServiceCall call, $async.Future<$13.GetTaskRequest> request) async { return getTask(call, await request); } - $async.Future<$12.AssignTaskResponse> assignTask_Pre($grpc.ServiceCall call, $async.Future<$12.AssignTaskRequest> request) async { + $async.Future<$13.AssignTaskResponse> assignTask_Pre($grpc.ServiceCall call, $async.Future<$13.AssignTaskRequest> request) async { return assignTask(call, await request); } - $async.Future<$12.UnassignTaskResponse> unassignTask_Pre($grpc.ServiceCall call, $async.Future<$12.UnassignTaskRequest> request) async { + $async.Future<$13.UnassignTaskResponse> unassignTask_Pre($grpc.ServiceCall call, $async.Future<$13.UnassignTaskRequest> request) async { return unassignTask(call, await request); } - $async.Future<$12.CreateSubtaskResponse> createSubtask_Pre($grpc.ServiceCall call, $async.Future<$12.CreateSubtaskRequest> request) async { + $async.Future<$13.CreateSubtaskResponse> createSubtask_Pre($grpc.ServiceCall call, $async.Future<$13.CreateSubtaskRequest> request) async { return createSubtask(call, await request); } - $async.Future<$12.UpdateSubtaskResponse> updateSubtask_Pre($grpc.ServiceCall call, $async.Future<$12.UpdateSubtaskRequest> request) async { + $async.Future<$13.UpdateSubtaskResponse> updateSubtask_Pre($grpc.ServiceCall call, $async.Future<$13.UpdateSubtaskRequest> request) async { return updateSubtask(call, await request); } - $async.Future<$12.CompleteSubtaskResponse> completeSubtask_Pre($grpc.ServiceCall call, $async.Future<$12.CompleteSubtaskRequest> request) async { + $async.Future<$13.CompleteSubtaskResponse> completeSubtask_Pre($grpc.ServiceCall call, $async.Future<$13.CompleteSubtaskRequest> request) async { return completeSubtask(call, await request); } - $async.Future<$12.UncompleteSubtaskResponse> uncompleteSubtask_Pre($grpc.ServiceCall call, $async.Future<$12.UncompleteSubtaskRequest> request) async { + $async.Future<$13.UncompleteSubtaskResponse> uncompleteSubtask_Pre($grpc.ServiceCall call, $async.Future<$13.UncompleteSubtaskRequest> request) async { return uncompleteSubtask(call, await request); } - $async.Future<$12.DeleteSubtaskResponse> deleteSubtask_Pre($grpc.ServiceCall call, $async.Future<$12.DeleteSubtaskRequest> request) async { + $async.Future<$13.DeleteSubtaskResponse> deleteSubtask_Pre($grpc.ServiceCall call, $async.Future<$13.DeleteSubtaskRequest> request) async { return deleteSubtask(call, await request); } - $async.Future<$12.CreateTaskResponse> createTask($grpc.ServiceCall call, $12.CreateTaskRequest request); - $async.Future<$12.UpdateTaskResponse> updateTask($grpc.ServiceCall call, $12.UpdateTaskRequest request); - $async.Future<$12.GetTaskResponse> getTask($grpc.ServiceCall call, $12.GetTaskRequest request); - $async.Future<$12.AssignTaskResponse> assignTask($grpc.ServiceCall call, $12.AssignTaskRequest request); - $async.Future<$12.UnassignTaskResponse> unassignTask($grpc.ServiceCall call, $12.UnassignTaskRequest request); - $async.Future<$12.CreateSubtaskResponse> createSubtask($grpc.ServiceCall call, $12.CreateSubtaskRequest request); - $async.Future<$12.UpdateSubtaskResponse> updateSubtask($grpc.ServiceCall call, $12.UpdateSubtaskRequest request); - $async.Future<$12.CompleteSubtaskResponse> completeSubtask($grpc.ServiceCall call, $12.CompleteSubtaskRequest request); - $async.Future<$12.UncompleteSubtaskResponse> uncompleteSubtask($grpc.ServiceCall call, $12.UncompleteSubtaskRequest request); - $async.Future<$12.DeleteSubtaskResponse> deleteSubtask($grpc.ServiceCall call, $12.DeleteSubtaskRequest request); + $async.Future<$13.CreateTaskResponse> createTask($grpc.ServiceCall call, $13.CreateTaskRequest request); + $async.Future<$13.UpdateTaskResponse> updateTask($grpc.ServiceCall call, $13.UpdateTaskRequest request); + $async.Future<$13.GetTaskResponse> getTask($grpc.ServiceCall call, $13.GetTaskRequest request); + $async.Future<$13.AssignTaskResponse> assignTask($grpc.ServiceCall call, $13.AssignTaskRequest request); + $async.Future<$13.UnassignTaskResponse> unassignTask($grpc.ServiceCall call, $13.UnassignTaskRequest request); + $async.Future<$13.CreateSubtaskResponse> createSubtask($grpc.ServiceCall call, $13.CreateSubtaskRequest request); + $async.Future<$13.UpdateSubtaskResponse> updateSubtask($grpc.ServiceCall call, $13.UpdateSubtaskRequest request); + $async.Future<$13.CompleteSubtaskResponse> completeSubtask($grpc.ServiceCall call, $13.CompleteSubtaskRequest request); + $async.Future<$13.UncompleteSubtaskResponse> uncompleteSubtask($grpc.ServiceCall call, $13.UncompleteSubtaskRequest request); + $async.Future<$13.DeleteSubtaskResponse> deleteSubtask($grpc.ServiceCall call, $13.DeleteSubtaskRequest request); } diff --git a/gen/dart/lib/proto/services/user_svc/v1/organization_svc.pbgrpc.dart b/gen/dart/lib/proto/services/user_svc/v1/organization_svc.pbgrpc.dart index 59db8ddd2..ecd50ea63 100644 --- a/gen/dart/lib/proto/services/user_svc/v1/organization_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/user_svc/v1/organization_svc.pbgrpc.dart @@ -15,76 +15,76 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'organization_svc.pb.dart' as $13; +import 'organization_svc.pb.dart' as $14; export 'organization_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.user_svc.v1.OrganizationService') class OrganizationServiceClient extends $grpc.Client { - static final _$createOrganization = $grpc.ClientMethod<$13.CreateOrganizationRequest, $13.CreateOrganizationResponse>( + static final _$createOrganization = $grpc.ClientMethod<$14.CreateOrganizationRequest, $14.CreateOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/CreateOrganization', - ($13.CreateOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.CreateOrganizationResponse.fromBuffer(value)); - static final _$createOrganizationForUser = $grpc.ClientMethod<$13.CreateOrganizationForUserRequest, $13.CreateOrganizationForUserResponse>( + ($14.CreateOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.CreateOrganizationResponse.fromBuffer(value)); + static final _$createOrganizationForUser = $grpc.ClientMethod<$14.CreateOrganizationForUserRequest, $14.CreateOrganizationForUserResponse>( '/proto.services.user_svc.v1.OrganizationService/CreateOrganizationForUser', - ($13.CreateOrganizationForUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.CreateOrganizationForUserResponse.fromBuffer(value)); - static final _$getOrganization = $grpc.ClientMethod<$13.GetOrganizationRequest, $13.GetOrganizationResponse>( + ($14.CreateOrganizationForUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.CreateOrganizationForUserResponse.fromBuffer(value)); + static final _$getOrganization = $grpc.ClientMethod<$14.GetOrganizationRequest, $14.GetOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/GetOrganization', - ($13.GetOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetOrganizationResponse.fromBuffer(value)); - static final _$getOrganizationsByUser = $grpc.ClientMethod<$13.GetOrganizationsByUserRequest, $13.GetOrganizationsByUserResponse>( + ($14.GetOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetOrganizationResponse.fromBuffer(value)); + static final _$getOrganizationsByUser = $grpc.ClientMethod<$14.GetOrganizationsByUserRequest, $14.GetOrganizationsByUserResponse>( '/proto.services.user_svc.v1.OrganizationService/GetOrganizationsByUser', - ($13.GetOrganizationsByUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetOrganizationsByUserResponse.fromBuffer(value)); - static final _$getOrganizationsForUser = $grpc.ClientMethod<$13.GetOrganizationsForUserRequest, $13.GetOrganizationsForUserResponse>( + ($14.GetOrganizationsByUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetOrganizationsByUserResponse.fromBuffer(value)); + static final _$getOrganizationsForUser = $grpc.ClientMethod<$14.GetOrganizationsForUserRequest, $14.GetOrganizationsForUserResponse>( '/proto.services.user_svc.v1.OrganizationService/GetOrganizationsForUser', - ($13.GetOrganizationsForUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetOrganizationsForUserResponse.fromBuffer(value)); - static final _$updateOrganization = $grpc.ClientMethod<$13.UpdateOrganizationRequest, $13.UpdateOrganizationResponse>( + ($14.GetOrganizationsForUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetOrganizationsForUserResponse.fromBuffer(value)); + static final _$updateOrganization = $grpc.ClientMethod<$14.UpdateOrganizationRequest, $14.UpdateOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/UpdateOrganization', - ($13.UpdateOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.UpdateOrganizationResponse.fromBuffer(value)); - static final _$deleteOrganization = $grpc.ClientMethod<$13.DeleteOrganizationRequest, $13.DeleteOrganizationResponse>( + ($14.UpdateOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.UpdateOrganizationResponse.fromBuffer(value)); + static final _$deleteOrganization = $grpc.ClientMethod<$14.DeleteOrganizationRequest, $14.DeleteOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/DeleteOrganization', - ($13.DeleteOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.DeleteOrganizationResponse.fromBuffer(value)); - static final _$getMembersByOrganization = $grpc.ClientMethod<$13.GetMembersByOrganizationRequest, $13.GetMembersByOrganizationResponse>( + ($14.DeleteOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.DeleteOrganizationResponse.fromBuffer(value)); + static final _$getMembersByOrganization = $grpc.ClientMethod<$14.GetMembersByOrganizationRequest, $14.GetMembersByOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/GetMembersByOrganization', - ($13.GetMembersByOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetMembersByOrganizationResponse.fromBuffer(value)); - static final _$addMember = $grpc.ClientMethod<$13.AddMemberRequest, $13.AddMemberResponse>( + ($14.GetMembersByOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetMembersByOrganizationResponse.fromBuffer(value)); + static final _$addMember = $grpc.ClientMethod<$14.AddMemberRequest, $14.AddMemberResponse>( '/proto.services.user_svc.v1.OrganizationService/AddMember', - ($13.AddMemberRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.AddMemberResponse.fromBuffer(value)); - static final _$removeMember = $grpc.ClientMethod<$13.RemoveMemberRequest, $13.RemoveMemberResponse>( + ($14.AddMemberRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.AddMemberResponse.fromBuffer(value)); + static final _$removeMember = $grpc.ClientMethod<$14.RemoveMemberRequest, $14.RemoveMemberResponse>( '/proto.services.user_svc.v1.OrganizationService/RemoveMember', - ($13.RemoveMemberRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.RemoveMemberResponse.fromBuffer(value)); - static final _$inviteMember = $grpc.ClientMethod<$13.InviteMemberRequest, $13.InviteMemberResponse>( + ($14.RemoveMemberRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.RemoveMemberResponse.fromBuffer(value)); + static final _$inviteMember = $grpc.ClientMethod<$14.InviteMemberRequest, $14.InviteMemberResponse>( '/proto.services.user_svc.v1.OrganizationService/InviteMember', - ($13.InviteMemberRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.InviteMemberResponse.fromBuffer(value)); - static final _$getInvitationsByOrganization = $grpc.ClientMethod<$13.GetInvitationsByOrganizationRequest, $13.GetInvitationsByOrganizationResponse>( + ($14.InviteMemberRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.InviteMemberResponse.fromBuffer(value)); + static final _$getInvitationsByOrganization = $grpc.ClientMethod<$14.GetInvitationsByOrganizationRequest, $14.GetInvitationsByOrganizationResponse>( '/proto.services.user_svc.v1.OrganizationService/GetInvitationsByOrganization', - ($13.GetInvitationsByOrganizationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetInvitationsByOrganizationResponse.fromBuffer(value)); - static final _$getInvitationsByUser = $grpc.ClientMethod<$13.GetInvitationsByUserRequest, $13.GetInvitationsByUserResponse>( + ($14.GetInvitationsByOrganizationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetInvitationsByOrganizationResponse.fromBuffer(value)); + static final _$getInvitationsByUser = $grpc.ClientMethod<$14.GetInvitationsByUserRequest, $14.GetInvitationsByUserResponse>( '/proto.services.user_svc.v1.OrganizationService/GetInvitationsByUser', - ($13.GetInvitationsByUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.GetInvitationsByUserResponse.fromBuffer(value)); - static final _$acceptInvitation = $grpc.ClientMethod<$13.AcceptInvitationRequest, $13.AcceptInvitationResponse>( + ($14.GetInvitationsByUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.GetInvitationsByUserResponse.fromBuffer(value)); + static final _$acceptInvitation = $grpc.ClientMethod<$14.AcceptInvitationRequest, $14.AcceptInvitationResponse>( '/proto.services.user_svc.v1.OrganizationService/AcceptInvitation', - ($13.AcceptInvitationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.AcceptInvitationResponse.fromBuffer(value)); - static final _$declineInvitation = $grpc.ClientMethod<$13.DeclineInvitationRequest, $13.DeclineInvitationResponse>( + ($14.AcceptInvitationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.AcceptInvitationResponse.fromBuffer(value)); + static final _$declineInvitation = $grpc.ClientMethod<$14.DeclineInvitationRequest, $14.DeclineInvitationResponse>( '/proto.services.user_svc.v1.OrganizationService/DeclineInvitation', - ($13.DeclineInvitationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.DeclineInvitationResponse.fromBuffer(value)); - static final _$revokeInvitation = $grpc.ClientMethod<$13.RevokeInvitationRequest, $13.RevokeInvitationResponse>( + ($14.DeclineInvitationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.DeclineInvitationResponse.fromBuffer(value)); + static final _$revokeInvitation = $grpc.ClientMethod<$14.RevokeInvitationRequest, $14.RevokeInvitationResponse>( '/proto.services.user_svc.v1.OrganizationService/RevokeInvitation', - ($13.RevokeInvitationRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $13.RevokeInvitationResponse.fromBuffer(value)); + ($14.RevokeInvitationRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $14.RevokeInvitationResponse.fromBuffer(value)); OrganizationServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -92,67 +92,67 @@ class OrganizationServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$13.CreateOrganizationResponse> createOrganization($13.CreateOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.CreateOrganizationResponse> createOrganization($14.CreateOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createOrganization, request, options: options); } - $grpc.ResponseFuture<$13.CreateOrganizationForUserResponse> createOrganizationForUser($13.CreateOrganizationForUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.CreateOrganizationForUserResponse> createOrganizationForUser($14.CreateOrganizationForUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createOrganizationForUser, request, options: options); } - $grpc.ResponseFuture<$13.GetOrganizationResponse> getOrganization($13.GetOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetOrganizationResponse> getOrganization($14.GetOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getOrganization, request, options: options); } - $grpc.ResponseFuture<$13.GetOrganizationsByUserResponse> getOrganizationsByUser($13.GetOrganizationsByUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetOrganizationsByUserResponse> getOrganizationsByUser($14.GetOrganizationsByUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getOrganizationsByUser, request, options: options); } - $grpc.ResponseFuture<$13.GetOrganizationsForUserResponse> getOrganizationsForUser($13.GetOrganizationsForUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetOrganizationsForUserResponse> getOrganizationsForUser($14.GetOrganizationsForUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getOrganizationsForUser, request, options: options); } - $grpc.ResponseFuture<$13.UpdateOrganizationResponse> updateOrganization($13.UpdateOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.UpdateOrganizationResponse> updateOrganization($14.UpdateOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateOrganization, request, options: options); } - $grpc.ResponseFuture<$13.DeleteOrganizationResponse> deleteOrganization($13.DeleteOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.DeleteOrganizationResponse> deleteOrganization($14.DeleteOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$deleteOrganization, request, options: options); } - $grpc.ResponseFuture<$13.GetMembersByOrganizationResponse> getMembersByOrganization($13.GetMembersByOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetMembersByOrganizationResponse> getMembersByOrganization($14.GetMembersByOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getMembersByOrganization, request, options: options); } - $grpc.ResponseFuture<$13.AddMemberResponse> addMember($13.AddMemberRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.AddMemberResponse> addMember($14.AddMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$addMember, request, options: options); } - $grpc.ResponseFuture<$13.RemoveMemberResponse> removeMember($13.RemoveMemberRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.RemoveMemberResponse> removeMember($14.RemoveMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$removeMember, request, options: options); } - $grpc.ResponseFuture<$13.InviteMemberResponse> inviteMember($13.InviteMemberRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.InviteMemberResponse> inviteMember($14.InviteMemberRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$inviteMember, request, options: options); } - $grpc.ResponseFuture<$13.GetInvitationsByOrganizationResponse> getInvitationsByOrganization($13.GetInvitationsByOrganizationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetInvitationsByOrganizationResponse> getInvitationsByOrganization($14.GetInvitationsByOrganizationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getInvitationsByOrganization, request, options: options); } - $grpc.ResponseFuture<$13.GetInvitationsByUserResponse> getInvitationsByUser($13.GetInvitationsByUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.GetInvitationsByUserResponse> getInvitationsByUser($14.GetInvitationsByUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$getInvitationsByUser, request, options: options); } - $grpc.ResponseFuture<$13.AcceptInvitationResponse> acceptInvitation($13.AcceptInvitationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.AcceptInvitationResponse> acceptInvitation($14.AcceptInvitationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$acceptInvitation, request, options: options); } - $grpc.ResponseFuture<$13.DeclineInvitationResponse> declineInvitation($13.DeclineInvitationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.DeclineInvitationResponse> declineInvitation($14.DeclineInvitationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$declineInvitation, request, options: options); } - $grpc.ResponseFuture<$13.RevokeInvitationResponse> revokeInvitation($13.RevokeInvitationRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$14.RevokeInvitationResponse> revokeInvitation($14.RevokeInvitationRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$revokeInvitation, request, options: options); } } @@ -162,198 +162,198 @@ abstract class OrganizationServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.user_svc.v1.OrganizationService'; OrganizationServiceBase() { - $addMethod($grpc.ServiceMethod<$13.CreateOrganizationRequest, $13.CreateOrganizationResponse>( + $addMethod($grpc.ServiceMethod<$14.CreateOrganizationRequest, $14.CreateOrganizationResponse>( 'CreateOrganization', createOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.CreateOrganizationRequest.fromBuffer(value), - ($13.CreateOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.CreateOrganizationForUserRequest, $13.CreateOrganizationForUserResponse>( + ($core.List<$core.int> value) => $14.CreateOrganizationRequest.fromBuffer(value), + ($14.CreateOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.CreateOrganizationForUserRequest, $14.CreateOrganizationForUserResponse>( 'CreateOrganizationForUser', createOrganizationForUser_Pre, false, false, - ($core.List<$core.int> value) => $13.CreateOrganizationForUserRequest.fromBuffer(value), - ($13.CreateOrganizationForUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetOrganizationRequest, $13.GetOrganizationResponse>( + ($core.List<$core.int> value) => $14.CreateOrganizationForUserRequest.fromBuffer(value), + ($14.CreateOrganizationForUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetOrganizationRequest, $14.GetOrganizationResponse>( 'GetOrganization', getOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.GetOrganizationRequest.fromBuffer(value), - ($13.GetOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetOrganizationsByUserRequest, $13.GetOrganizationsByUserResponse>( + ($core.List<$core.int> value) => $14.GetOrganizationRequest.fromBuffer(value), + ($14.GetOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetOrganizationsByUserRequest, $14.GetOrganizationsByUserResponse>( 'GetOrganizationsByUser', getOrganizationsByUser_Pre, false, false, - ($core.List<$core.int> value) => $13.GetOrganizationsByUserRequest.fromBuffer(value), - ($13.GetOrganizationsByUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetOrganizationsForUserRequest, $13.GetOrganizationsForUserResponse>( + ($core.List<$core.int> value) => $14.GetOrganizationsByUserRequest.fromBuffer(value), + ($14.GetOrganizationsByUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetOrganizationsForUserRequest, $14.GetOrganizationsForUserResponse>( 'GetOrganizationsForUser', getOrganizationsForUser_Pre, false, false, - ($core.List<$core.int> value) => $13.GetOrganizationsForUserRequest.fromBuffer(value), - ($13.GetOrganizationsForUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.UpdateOrganizationRequest, $13.UpdateOrganizationResponse>( + ($core.List<$core.int> value) => $14.GetOrganizationsForUserRequest.fromBuffer(value), + ($14.GetOrganizationsForUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.UpdateOrganizationRequest, $14.UpdateOrganizationResponse>( 'UpdateOrganization', updateOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.UpdateOrganizationRequest.fromBuffer(value), - ($13.UpdateOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.DeleteOrganizationRequest, $13.DeleteOrganizationResponse>( + ($core.List<$core.int> value) => $14.UpdateOrganizationRequest.fromBuffer(value), + ($14.UpdateOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.DeleteOrganizationRequest, $14.DeleteOrganizationResponse>( 'DeleteOrganization', deleteOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.DeleteOrganizationRequest.fromBuffer(value), - ($13.DeleteOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetMembersByOrganizationRequest, $13.GetMembersByOrganizationResponse>( + ($core.List<$core.int> value) => $14.DeleteOrganizationRequest.fromBuffer(value), + ($14.DeleteOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetMembersByOrganizationRequest, $14.GetMembersByOrganizationResponse>( 'GetMembersByOrganization', getMembersByOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.GetMembersByOrganizationRequest.fromBuffer(value), - ($13.GetMembersByOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.AddMemberRequest, $13.AddMemberResponse>( + ($core.List<$core.int> value) => $14.GetMembersByOrganizationRequest.fromBuffer(value), + ($14.GetMembersByOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.AddMemberRequest, $14.AddMemberResponse>( 'AddMember', addMember_Pre, false, false, - ($core.List<$core.int> value) => $13.AddMemberRequest.fromBuffer(value), - ($13.AddMemberResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.RemoveMemberRequest, $13.RemoveMemberResponse>( + ($core.List<$core.int> value) => $14.AddMemberRequest.fromBuffer(value), + ($14.AddMemberResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.RemoveMemberRequest, $14.RemoveMemberResponse>( 'RemoveMember', removeMember_Pre, false, false, - ($core.List<$core.int> value) => $13.RemoveMemberRequest.fromBuffer(value), - ($13.RemoveMemberResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.InviteMemberRequest, $13.InviteMemberResponse>( + ($core.List<$core.int> value) => $14.RemoveMemberRequest.fromBuffer(value), + ($14.RemoveMemberResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.InviteMemberRequest, $14.InviteMemberResponse>( 'InviteMember', inviteMember_Pre, false, false, - ($core.List<$core.int> value) => $13.InviteMemberRequest.fromBuffer(value), - ($13.InviteMemberResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetInvitationsByOrganizationRequest, $13.GetInvitationsByOrganizationResponse>( + ($core.List<$core.int> value) => $14.InviteMemberRequest.fromBuffer(value), + ($14.InviteMemberResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetInvitationsByOrganizationRequest, $14.GetInvitationsByOrganizationResponse>( 'GetInvitationsByOrganization', getInvitationsByOrganization_Pre, false, false, - ($core.List<$core.int> value) => $13.GetInvitationsByOrganizationRequest.fromBuffer(value), - ($13.GetInvitationsByOrganizationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.GetInvitationsByUserRequest, $13.GetInvitationsByUserResponse>( + ($core.List<$core.int> value) => $14.GetInvitationsByOrganizationRequest.fromBuffer(value), + ($14.GetInvitationsByOrganizationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.GetInvitationsByUserRequest, $14.GetInvitationsByUserResponse>( 'GetInvitationsByUser', getInvitationsByUser_Pre, false, false, - ($core.List<$core.int> value) => $13.GetInvitationsByUserRequest.fromBuffer(value), - ($13.GetInvitationsByUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.AcceptInvitationRequest, $13.AcceptInvitationResponse>( + ($core.List<$core.int> value) => $14.GetInvitationsByUserRequest.fromBuffer(value), + ($14.GetInvitationsByUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.AcceptInvitationRequest, $14.AcceptInvitationResponse>( 'AcceptInvitation', acceptInvitation_Pre, false, false, - ($core.List<$core.int> value) => $13.AcceptInvitationRequest.fromBuffer(value), - ($13.AcceptInvitationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.DeclineInvitationRequest, $13.DeclineInvitationResponse>( + ($core.List<$core.int> value) => $14.AcceptInvitationRequest.fromBuffer(value), + ($14.AcceptInvitationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.DeclineInvitationRequest, $14.DeclineInvitationResponse>( 'DeclineInvitation', declineInvitation_Pre, false, false, - ($core.List<$core.int> value) => $13.DeclineInvitationRequest.fromBuffer(value), - ($13.DeclineInvitationResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$13.RevokeInvitationRequest, $13.RevokeInvitationResponse>( + ($core.List<$core.int> value) => $14.DeclineInvitationRequest.fromBuffer(value), + ($14.DeclineInvitationResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$14.RevokeInvitationRequest, $14.RevokeInvitationResponse>( 'RevokeInvitation', revokeInvitation_Pre, false, false, - ($core.List<$core.int> value) => $13.RevokeInvitationRequest.fromBuffer(value), - ($13.RevokeInvitationResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $14.RevokeInvitationRequest.fromBuffer(value), + ($14.RevokeInvitationResponse value) => value.writeToBuffer())); } - $async.Future<$13.CreateOrganizationResponse> createOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.CreateOrganizationRequest> request) async { + $async.Future<$14.CreateOrganizationResponse> createOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.CreateOrganizationRequest> request) async { return createOrganization(call, await request); } - $async.Future<$13.CreateOrganizationForUserResponse> createOrganizationForUser_Pre($grpc.ServiceCall call, $async.Future<$13.CreateOrganizationForUserRequest> request) async { + $async.Future<$14.CreateOrganizationForUserResponse> createOrganizationForUser_Pre($grpc.ServiceCall call, $async.Future<$14.CreateOrganizationForUserRequest> request) async { return createOrganizationForUser(call, await request); } - $async.Future<$13.GetOrganizationResponse> getOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.GetOrganizationRequest> request) async { + $async.Future<$14.GetOrganizationResponse> getOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.GetOrganizationRequest> request) async { return getOrganization(call, await request); } - $async.Future<$13.GetOrganizationsByUserResponse> getOrganizationsByUser_Pre($grpc.ServiceCall call, $async.Future<$13.GetOrganizationsByUserRequest> request) async { + $async.Future<$14.GetOrganizationsByUserResponse> getOrganizationsByUser_Pre($grpc.ServiceCall call, $async.Future<$14.GetOrganizationsByUserRequest> request) async { return getOrganizationsByUser(call, await request); } - $async.Future<$13.GetOrganizationsForUserResponse> getOrganizationsForUser_Pre($grpc.ServiceCall call, $async.Future<$13.GetOrganizationsForUserRequest> request) async { + $async.Future<$14.GetOrganizationsForUserResponse> getOrganizationsForUser_Pre($grpc.ServiceCall call, $async.Future<$14.GetOrganizationsForUserRequest> request) async { return getOrganizationsForUser(call, await request); } - $async.Future<$13.UpdateOrganizationResponse> updateOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.UpdateOrganizationRequest> request) async { + $async.Future<$14.UpdateOrganizationResponse> updateOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.UpdateOrganizationRequest> request) async { return updateOrganization(call, await request); } - $async.Future<$13.DeleteOrganizationResponse> deleteOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.DeleteOrganizationRequest> request) async { + $async.Future<$14.DeleteOrganizationResponse> deleteOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.DeleteOrganizationRequest> request) async { return deleteOrganization(call, await request); } - $async.Future<$13.GetMembersByOrganizationResponse> getMembersByOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.GetMembersByOrganizationRequest> request) async { + $async.Future<$14.GetMembersByOrganizationResponse> getMembersByOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.GetMembersByOrganizationRequest> request) async { return getMembersByOrganization(call, await request); } - $async.Future<$13.AddMemberResponse> addMember_Pre($grpc.ServiceCall call, $async.Future<$13.AddMemberRequest> request) async { + $async.Future<$14.AddMemberResponse> addMember_Pre($grpc.ServiceCall call, $async.Future<$14.AddMemberRequest> request) async { return addMember(call, await request); } - $async.Future<$13.RemoveMemberResponse> removeMember_Pre($grpc.ServiceCall call, $async.Future<$13.RemoveMemberRequest> request) async { + $async.Future<$14.RemoveMemberResponse> removeMember_Pre($grpc.ServiceCall call, $async.Future<$14.RemoveMemberRequest> request) async { return removeMember(call, await request); } - $async.Future<$13.InviteMemberResponse> inviteMember_Pre($grpc.ServiceCall call, $async.Future<$13.InviteMemberRequest> request) async { + $async.Future<$14.InviteMemberResponse> inviteMember_Pre($grpc.ServiceCall call, $async.Future<$14.InviteMemberRequest> request) async { return inviteMember(call, await request); } - $async.Future<$13.GetInvitationsByOrganizationResponse> getInvitationsByOrganization_Pre($grpc.ServiceCall call, $async.Future<$13.GetInvitationsByOrganizationRequest> request) async { + $async.Future<$14.GetInvitationsByOrganizationResponse> getInvitationsByOrganization_Pre($grpc.ServiceCall call, $async.Future<$14.GetInvitationsByOrganizationRequest> request) async { return getInvitationsByOrganization(call, await request); } - $async.Future<$13.GetInvitationsByUserResponse> getInvitationsByUser_Pre($grpc.ServiceCall call, $async.Future<$13.GetInvitationsByUserRequest> request) async { + $async.Future<$14.GetInvitationsByUserResponse> getInvitationsByUser_Pre($grpc.ServiceCall call, $async.Future<$14.GetInvitationsByUserRequest> request) async { return getInvitationsByUser(call, await request); } - $async.Future<$13.AcceptInvitationResponse> acceptInvitation_Pre($grpc.ServiceCall call, $async.Future<$13.AcceptInvitationRequest> request) async { + $async.Future<$14.AcceptInvitationResponse> acceptInvitation_Pre($grpc.ServiceCall call, $async.Future<$14.AcceptInvitationRequest> request) async { return acceptInvitation(call, await request); } - $async.Future<$13.DeclineInvitationResponse> declineInvitation_Pre($grpc.ServiceCall call, $async.Future<$13.DeclineInvitationRequest> request) async { + $async.Future<$14.DeclineInvitationResponse> declineInvitation_Pre($grpc.ServiceCall call, $async.Future<$14.DeclineInvitationRequest> request) async { return declineInvitation(call, await request); } - $async.Future<$13.RevokeInvitationResponse> revokeInvitation_Pre($grpc.ServiceCall call, $async.Future<$13.RevokeInvitationRequest> request) async { + $async.Future<$14.RevokeInvitationResponse> revokeInvitation_Pre($grpc.ServiceCall call, $async.Future<$14.RevokeInvitationRequest> request) async { return revokeInvitation(call, await request); } - $async.Future<$13.CreateOrganizationResponse> createOrganization($grpc.ServiceCall call, $13.CreateOrganizationRequest request); - $async.Future<$13.CreateOrganizationForUserResponse> createOrganizationForUser($grpc.ServiceCall call, $13.CreateOrganizationForUserRequest request); - $async.Future<$13.GetOrganizationResponse> getOrganization($grpc.ServiceCall call, $13.GetOrganizationRequest request); - $async.Future<$13.GetOrganizationsByUserResponse> getOrganizationsByUser($grpc.ServiceCall call, $13.GetOrganizationsByUserRequest request); - $async.Future<$13.GetOrganizationsForUserResponse> getOrganizationsForUser($grpc.ServiceCall call, $13.GetOrganizationsForUserRequest request); - $async.Future<$13.UpdateOrganizationResponse> updateOrganization($grpc.ServiceCall call, $13.UpdateOrganizationRequest request); - $async.Future<$13.DeleteOrganizationResponse> deleteOrganization($grpc.ServiceCall call, $13.DeleteOrganizationRequest request); - $async.Future<$13.GetMembersByOrganizationResponse> getMembersByOrganization($grpc.ServiceCall call, $13.GetMembersByOrganizationRequest request); - $async.Future<$13.AddMemberResponse> addMember($grpc.ServiceCall call, $13.AddMemberRequest request); - $async.Future<$13.RemoveMemberResponse> removeMember($grpc.ServiceCall call, $13.RemoveMemberRequest request); - $async.Future<$13.InviteMemberResponse> inviteMember($grpc.ServiceCall call, $13.InviteMemberRequest request); - $async.Future<$13.GetInvitationsByOrganizationResponse> getInvitationsByOrganization($grpc.ServiceCall call, $13.GetInvitationsByOrganizationRequest request); - $async.Future<$13.GetInvitationsByUserResponse> getInvitationsByUser($grpc.ServiceCall call, $13.GetInvitationsByUserRequest request); - $async.Future<$13.AcceptInvitationResponse> acceptInvitation($grpc.ServiceCall call, $13.AcceptInvitationRequest request); - $async.Future<$13.DeclineInvitationResponse> declineInvitation($grpc.ServiceCall call, $13.DeclineInvitationRequest request); - $async.Future<$13.RevokeInvitationResponse> revokeInvitation($grpc.ServiceCall call, $13.RevokeInvitationRequest request); + $async.Future<$14.CreateOrganizationResponse> createOrganization($grpc.ServiceCall call, $14.CreateOrganizationRequest request); + $async.Future<$14.CreateOrganizationForUserResponse> createOrganizationForUser($grpc.ServiceCall call, $14.CreateOrganizationForUserRequest request); + $async.Future<$14.GetOrganizationResponse> getOrganization($grpc.ServiceCall call, $14.GetOrganizationRequest request); + $async.Future<$14.GetOrganizationsByUserResponse> getOrganizationsByUser($grpc.ServiceCall call, $14.GetOrganizationsByUserRequest request); + $async.Future<$14.GetOrganizationsForUserResponse> getOrganizationsForUser($grpc.ServiceCall call, $14.GetOrganizationsForUserRequest request); + $async.Future<$14.UpdateOrganizationResponse> updateOrganization($grpc.ServiceCall call, $14.UpdateOrganizationRequest request); + $async.Future<$14.DeleteOrganizationResponse> deleteOrganization($grpc.ServiceCall call, $14.DeleteOrganizationRequest request); + $async.Future<$14.GetMembersByOrganizationResponse> getMembersByOrganization($grpc.ServiceCall call, $14.GetMembersByOrganizationRequest request); + $async.Future<$14.AddMemberResponse> addMember($grpc.ServiceCall call, $14.AddMemberRequest request); + $async.Future<$14.RemoveMemberResponse> removeMember($grpc.ServiceCall call, $14.RemoveMemberRequest request); + $async.Future<$14.InviteMemberResponse> inviteMember($grpc.ServiceCall call, $14.InviteMemberRequest request); + $async.Future<$14.GetInvitationsByOrganizationResponse> getInvitationsByOrganization($grpc.ServiceCall call, $14.GetInvitationsByOrganizationRequest request); + $async.Future<$14.GetInvitationsByUserResponse> getInvitationsByUser($grpc.ServiceCall call, $14.GetInvitationsByUserRequest request); + $async.Future<$14.AcceptInvitationResponse> acceptInvitation($grpc.ServiceCall call, $14.AcceptInvitationRequest request); + $async.Future<$14.DeclineInvitationResponse> declineInvitation($grpc.ServiceCall call, $14.DeclineInvitationRequest request); + $async.Future<$14.RevokeInvitationResponse> revokeInvitation($grpc.ServiceCall call, $14.RevokeInvitationRequest request); } diff --git a/gen/dart/lib/proto/services/user_svc/v1/user_svc.pbgrpc.dart b/gen/dart/lib/proto/services/user_svc/v1/user_svc.pbgrpc.dart index 325bad3df..91ed1c756 100644 --- a/gen/dart/lib/proto/services/user_svc/v1/user_svc.pbgrpc.dart +++ b/gen/dart/lib/proto/services/user_svc/v1/user_svc.pbgrpc.dart @@ -15,28 +15,28 @@ import 'dart:core' as $core; import 'package:grpc/service_api.dart' as $grpc; import 'package:protobuf/protobuf.dart' as $pb; -import 'user_svc.pb.dart' as $14; +import 'user_svc.pb.dart' as $15; export 'user_svc.pb.dart'; @$pb.GrpcServiceName('proto.services.user_svc.v1.UserService') class UserServiceClient extends $grpc.Client { - static final _$createUser = $grpc.ClientMethod<$14.CreateUserRequest, $14.CreateUserResponse>( + static final _$createUser = $grpc.ClientMethod<$15.CreateUserRequest, $15.CreateUserResponse>( '/proto.services.user_svc.v1.UserService/CreateUser', - ($14.CreateUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $14.CreateUserResponse.fromBuffer(value)); - static final _$readSelf = $grpc.ClientMethod<$14.ReadSelfRequest, $14.ReadSelfResponse>( + ($15.CreateUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.CreateUserResponse.fromBuffer(value)); + static final _$readSelf = $grpc.ClientMethod<$15.ReadSelfRequest, $15.ReadSelfResponse>( '/proto.services.user_svc.v1.UserService/ReadSelf', - ($14.ReadSelfRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $14.ReadSelfResponse.fromBuffer(value)); - static final _$readPublicProfile = $grpc.ClientMethod<$14.ReadPublicProfileRequest, $14.ReadPublicProfileResponse>( + ($15.ReadSelfRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.ReadSelfResponse.fromBuffer(value)); + static final _$readPublicProfile = $grpc.ClientMethod<$15.ReadPublicProfileRequest, $15.ReadPublicProfileResponse>( '/proto.services.user_svc.v1.UserService/ReadPublicProfile', - ($14.ReadPublicProfileRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $14.ReadPublicProfileResponse.fromBuffer(value)); - static final _$updateUser = $grpc.ClientMethod<$14.UpdateUserRequest, $14.UpdateUserResponse>( + ($15.ReadPublicProfileRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.ReadPublicProfileResponse.fromBuffer(value)); + static final _$updateUser = $grpc.ClientMethod<$15.UpdateUserRequest, $15.UpdateUserResponse>( '/proto.services.user_svc.v1.UserService/UpdateUser', - ($14.UpdateUserRequest value) => value.writeToBuffer(), - ($core.List<$core.int> value) => $14.UpdateUserResponse.fromBuffer(value)); + ($15.UpdateUserRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $15.UpdateUserResponse.fromBuffer(value)); UserServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -44,19 +44,19 @@ class UserServiceClient extends $grpc.Client { : super(channel, options: options, interceptors: interceptors); - $grpc.ResponseFuture<$14.CreateUserResponse> createUser($14.CreateUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$15.CreateUserResponse> createUser($15.CreateUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$createUser, request, options: options); } - $grpc.ResponseFuture<$14.ReadSelfResponse> readSelf($14.ReadSelfRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$15.ReadSelfResponse> readSelf($15.ReadSelfRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$readSelf, request, options: options); } - $grpc.ResponseFuture<$14.ReadPublicProfileResponse> readPublicProfile($14.ReadPublicProfileRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$15.ReadPublicProfileResponse> readPublicProfile($15.ReadPublicProfileRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$readPublicProfile, request, options: options); } - $grpc.ResponseFuture<$14.UpdateUserResponse> updateUser($14.UpdateUserRequest request, {$grpc.CallOptions? options}) { + $grpc.ResponseFuture<$15.UpdateUserResponse> updateUser($15.UpdateUserRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$updateUser, request, options: options); } } @@ -66,54 +66,54 @@ abstract class UserServiceBase extends $grpc.Service { $core.String get $name => 'proto.services.user_svc.v1.UserService'; UserServiceBase() { - $addMethod($grpc.ServiceMethod<$14.CreateUserRequest, $14.CreateUserResponse>( + $addMethod($grpc.ServiceMethod<$15.CreateUserRequest, $15.CreateUserResponse>( 'CreateUser', createUser_Pre, false, false, - ($core.List<$core.int> value) => $14.CreateUserRequest.fromBuffer(value), - ($14.CreateUserResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$14.ReadSelfRequest, $14.ReadSelfResponse>( + ($core.List<$core.int> value) => $15.CreateUserRequest.fromBuffer(value), + ($15.CreateUserResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$15.ReadSelfRequest, $15.ReadSelfResponse>( 'ReadSelf', readSelf_Pre, false, false, - ($core.List<$core.int> value) => $14.ReadSelfRequest.fromBuffer(value), - ($14.ReadSelfResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$14.ReadPublicProfileRequest, $14.ReadPublicProfileResponse>( + ($core.List<$core.int> value) => $15.ReadSelfRequest.fromBuffer(value), + ($15.ReadSelfResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$15.ReadPublicProfileRequest, $15.ReadPublicProfileResponse>( 'ReadPublicProfile', readPublicProfile_Pre, false, false, - ($core.List<$core.int> value) => $14.ReadPublicProfileRequest.fromBuffer(value), - ($14.ReadPublicProfileResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$14.UpdateUserRequest, $14.UpdateUserResponse>( + ($core.List<$core.int> value) => $15.ReadPublicProfileRequest.fromBuffer(value), + ($15.ReadPublicProfileResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$15.UpdateUserRequest, $15.UpdateUserResponse>( 'UpdateUser', updateUser_Pre, false, false, - ($core.List<$core.int> value) => $14.UpdateUserRequest.fromBuffer(value), - ($14.UpdateUserResponse value) => value.writeToBuffer())); + ($core.List<$core.int> value) => $15.UpdateUserRequest.fromBuffer(value), + ($15.UpdateUserResponse value) => value.writeToBuffer())); } - $async.Future<$14.CreateUserResponse> createUser_Pre($grpc.ServiceCall call, $async.Future<$14.CreateUserRequest> request) async { + $async.Future<$15.CreateUserResponse> createUser_Pre($grpc.ServiceCall call, $async.Future<$15.CreateUserRequest> request) async { return createUser(call, await request); } - $async.Future<$14.ReadSelfResponse> readSelf_Pre($grpc.ServiceCall call, $async.Future<$14.ReadSelfRequest> request) async { + $async.Future<$15.ReadSelfResponse> readSelf_Pre($grpc.ServiceCall call, $async.Future<$15.ReadSelfRequest> request) async { return readSelf(call, await request); } - $async.Future<$14.ReadPublicProfileResponse> readPublicProfile_Pre($grpc.ServiceCall call, $async.Future<$14.ReadPublicProfileRequest> request) async { + $async.Future<$15.ReadPublicProfileResponse> readPublicProfile_Pre($grpc.ServiceCall call, $async.Future<$15.ReadPublicProfileRequest> request) async { return readPublicProfile(call, await request); } - $async.Future<$14.UpdateUserResponse> updateUser_Pre($grpc.ServiceCall call, $async.Future<$14.UpdateUserRequest> request) async { + $async.Future<$15.UpdateUserResponse> updateUser_Pre($grpc.ServiceCall call, $async.Future<$15.UpdateUserRequest> request) async { return updateUser(call, await request); } - $async.Future<$14.CreateUserResponse> createUser($grpc.ServiceCall call, $14.CreateUserRequest request); - $async.Future<$14.ReadSelfResponse> readSelf($grpc.ServiceCall call, $14.ReadSelfRequest request); - $async.Future<$14.ReadPublicProfileResponse> readPublicProfile($grpc.ServiceCall call, $14.ReadPublicProfileRequest request); - $async.Future<$14.UpdateUserResponse> updateUser($grpc.ServiceCall call, $14.UpdateUserRequest request); + $async.Future<$15.CreateUserResponse> createUser($grpc.ServiceCall call, $15.CreateUserRequest request); + $async.Future<$15.ReadSelfResponse> readSelf($grpc.ServiceCall call, $15.ReadSelfRequest request); + $async.Future<$15.ReadPublicProfileResponse> readPublicProfile($grpc.ServiceCall call, $15.ReadPublicProfileRequest request); + $async.Future<$15.UpdateUserResponse> updateUser($grpc.ServiceCall call, $15.UpdateUserRequest request); } diff --git a/gen/go/proto/services/property_svc/v1/property_views_svc.pb.go b/gen/go/proto/services/property_svc/v1/property_views_svc.pb.go new file mode 100644 index 000000000..28ff9a578 --- /dev/null +++ b/gen/go/proto/services/property_svc/v1/property_views_svc.pb.go @@ -0,0 +1,364 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.32.0 +// protoc (unknown) +// source: proto/services/property_svc/v1/property_views_svc.proto + +package property_svc + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type FilterUpdate struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // append property_id to the always_include list + // this means the property is shown, unless a more specific rule (including itself) + // puts it in its dont_always_include list + AppendToAlwaysInclude []string `protobuf:"bytes,1,rep,name=append_to_always_include,json=appendToAlwaysInclude,proto3" json:"append_to_always_include,omitempty" validate:"dive,uuid4"` // @gotags: validate:"dive,uuid4" + // remove property_id to the always_include list, also see append_to_always_include + RemoveFromAlwaysInclude []string `protobuf:"bytes,2,rep,name=remove_from_always_include,json=removeFromAlwaysInclude,proto3" json:"remove_from_always_include,omitempty" validate:"dive,uuid4"` // @gotags: validate:"dive,uuid4" + // append property_id to the dont_always_include list, also see append_to_always_include + AppendToDontAlwaysInclude []string `protobuf:"bytes,3,rep,name=append_to_dont_always_include,json=appendToDontAlwaysInclude,proto3" json:"append_to_dont_always_include,omitempty" validate:"dive,uuid4"` // @gotags: validate:"dive,uuid4" + // remove property_id to the dont_always_include list, also see append_to_always_include + RemoveFromDontAlwaysInclude []string `protobuf:"bytes,4,rep,name=remove_from_dont_always_include,json=removeFromDontAlwaysInclude,proto3" json:"remove_from_dont_always_include,omitempty" validate:"dive,uuid4"` // @gotags: validate:"dive,uuid4" +} + +func (x *FilterUpdate) Reset() { + *x = FilterUpdate{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FilterUpdate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FilterUpdate) ProtoMessage() {} + +func (x *FilterUpdate) ProtoReflect() protoreflect.Message { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FilterUpdate.ProtoReflect.Descriptor instead. +func (*FilterUpdate) Descriptor() ([]byte, []int) { + return file_proto_services_property_svc_v1_property_views_svc_proto_rawDescGZIP(), []int{0} +} + +func (x *FilterUpdate) GetAppendToAlwaysInclude() []string { + if x != nil { + return x.AppendToAlwaysInclude + } + return nil +} + +func (x *FilterUpdate) GetRemoveFromAlwaysInclude() []string { + if x != nil { + return x.RemoveFromAlwaysInclude + } + return nil +} + +func (x *FilterUpdate) GetAppendToDontAlwaysInclude() []string { + if x != nil { + return x.AppendToDontAlwaysInclude + } + return nil +} + +func (x *FilterUpdate) GetRemoveFromDontAlwaysInclude() []string { + if x != nil { + return x.RemoveFromDontAlwaysInclude + } + return nil +} + +type UpdateTaskPropertyViewRuleRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // task-specific matchers + WardId *string `protobuf:"bytes,1,opt,name=ward_id,json=wardId,proto3,oneof" json:"ward_id,omitempty" validate:"omitempty,omitnil,uuid4"` // @gotags: validate:"omitempty,omitnil,uuid4" + TaskId *string `protobuf:"bytes,2,opt,name=task_id,json=taskId,proto3,oneof" json:"task_id,omitempty" validate:"omitempty,omitnil,uuid4"` // @gotags: validate:"omitempty,omitnil,uuid4" + FilterUpdate *FilterUpdate `protobuf:"bytes,3,opt,name=filter_update,json=filterUpdate,proto3" json:"filter_update,omitempty" validate:"required"` // @gotags: validate:"required" +} + +func (x *UpdateTaskPropertyViewRuleRequest) Reset() { + *x = UpdateTaskPropertyViewRuleRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateTaskPropertyViewRuleRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTaskPropertyViewRuleRequest) ProtoMessage() {} + +func (x *UpdateTaskPropertyViewRuleRequest) ProtoReflect() protoreflect.Message { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTaskPropertyViewRuleRequest.ProtoReflect.Descriptor instead. +func (*UpdateTaskPropertyViewRuleRequest) Descriptor() ([]byte, []int) { + return file_proto_services_property_svc_v1_property_views_svc_proto_rawDescGZIP(), []int{1} +} + +func (x *UpdateTaskPropertyViewRuleRequest) GetWardId() string { + if x != nil && x.WardId != nil { + return *x.WardId + } + return "" +} + +func (x *UpdateTaskPropertyViewRuleRequest) GetTaskId() string { + if x != nil && x.TaskId != nil { + return *x.TaskId + } + return "" +} + +func (x *UpdateTaskPropertyViewRuleRequest) GetFilterUpdate() *FilterUpdate { + if x != nil { + return x.FilterUpdate + } + return nil +} + +type UpdateTaskPropertyViewRuleResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *UpdateTaskPropertyViewRuleResponse) Reset() { + *x = UpdateTaskPropertyViewRuleResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateTaskPropertyViewRuleResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTaskPropertyViewRuleResponse) ProtoMessage() {} + +func (x *UpdateTaskPropertyViewRuleResponse) ProtoReflect() protoreflect.Message { + mi := &file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTaskPropertyViewRuleResponse.ProtoReflect.Descriptor instead. +func (*UpdateTaskPropertyViewRuleResponse) Descriptor() ([]byte, []int) { + return file_proto_services_property_svc_v1_property_views_svc_proto_rawDescGZIP(), []int{2} +} + +var File_proto_services_property_svc_v1_property_views_svc_proto protoreflect.FileDescriptor + +var file_proto_services_property_svc_v1_property_views_svc_proto_rawDesc = []byte{ + 0x0a, 0x37, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2f, 0x76, 0x31, + 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x76, 0x69, 0x65, 0x77, 0x73, 0x5f, + 0x73, 0x76, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, + 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x22, 0x8c, 0x02, 0x0a, 0x0c, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x61, 0x70, + 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x5f, 0x69, + 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x15, 0x61, 0x70, + 0x70, 0x65, 0x6e, 0x64, 0x54, 0x6f, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x49, 0x6e, 0x63, 0x6c, + 0x75, 0x64, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x66, 0x72, + 0x6f, 0x6d, 0x5f, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x17, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x46, + 0x72, 0x6f, 0x6d, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, + 0x12, 0x40, 0x0a, 0x1d, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x6f, 0x5f, 0x64, 0x6f, + 0x6e, 0x74, 0x5f, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x5f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x19, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x54, + 0x6f, 0x44, 0x6f, 0x6e, 0x74, 0x41, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, + 0x64, 0x65, 0x12, 0x44, 0x0a, 0x1f, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x66, 0x72, 0x6f, + 0x6d, 0x5f, 0x64, 0x6f, 0x6e, 0x74, 0x5f, 0x61, 0x6c, 0x77, 0x61, 0x79, 0x73, 0x5f, 0x69, 0x6e, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x1b, 0x72, 0x65, 0x6d, + 0x6f, 0x76, 0x65, 0x46, 0x72, 0x6f, 0x6d, 0x44, 0x6f, 0x6e, 0x74, 0x41, 0x6c, 0x77, 0x61, 0x79, + 0x73, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x22, 0xca, 0x01, 0x0a, 0x21, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, + 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, + 0x0a, 0x07, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x06, 0x77, 0x61, 0x72, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, + 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x51, 0x0a, 0x0d, 0x66, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x2c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, 0x2e, + 0x76, 0x31, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, + 0x0c, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x0a, 0x0a, + 0x08, 0x5f, 0x77, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x61, + 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x22, 0x24, 0x0a, 0x22, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, + 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xbe, 0x01, 0x0a, 0x14, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, 0x77, 0x73, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0xa5, 0x01, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, + 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, + 0x75, 0x6c, 0x65, 0x12, 0x41, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, + 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x75, 0x6c, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, + 0x5f, 0x73, 0x76, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, + 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, 0x77, 0x52, 0x75, + 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xf3, 0x01, 0x0a, + 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x5f, 0x73, 0x76, 0x63, + 0x2e, 0x76, 0x31, 0x42, 0x15, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x56, 0x69, 0x65, + 0x77, 0x73, 0x53, 0x76, 0x63, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x1f, 0x67, 0x65, + 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, + 0x2f, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x2d, 0x73, 0x76, 0x63, 0xa2, 0x02, 0x03, + 0x50, 0x53, 0x50, 0xaa, 0x02, 0x1d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, + 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x29, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x5c, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x73, 0x5c, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x20, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x53, 0x76, 0x63, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_proto_services_property_svc_v1_property_views_svc_proto_rawDescOnce sync.Once + file_proto_services_property_svc_v1_property_views_svc_proto_rawDescData = file_proto_services_property_svc_v1_property_views_svc_proto_rawDesc +) + +func file_proto_services_property_svc_v1_property_views_svc_proto_rawDescGZIP() []byte { + file_proto_services_property_svc_v1_property_views_svc_proto_rawDescOnce.Do(func() { + file_proto_services_property_svc_v1_property_views_svc_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_services_property_svc_v1_property_views_svc_proto_rawDescData) + }) + return file_proto_services_property_svc_v1_property_views_svc_proto_rawDescData +} + +var file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_proto_services_property_svc_v1_property_views_svc_proto_goTypes = []interface{}{ + (*FilterUpdate)(nil), // 0: proto.services.property_svc.v1.FilterUpdate + (*UpdateTaskPropertyViewRuleRequest)(nil), // 1: proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest + (*UpdateTaskPropertyViewRuleResponse)(nil), // 2: proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse +} +var file_proto_services_property_svc_v1_property_views_svc_proto_depIdxs = []int32{ + 0, // 0: proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.filter_update:type_name -> proto.services.property_svc.v1.FilterUpdate + 1, // 1: proto.services.property_svc.v1.PropertyViewsService.UpdateTaskPropertyViewRule:input_type -> proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest + 2, // 2: proto.services.property_svc.v1.PropertyViewsService.UpdateTaskPropertyViewRule:output_type -> proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse + 2, // [2:3] is the sub-list for method output_type + 1, // [1:2] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_proto_services_property_svc_v1_property_views_svc_proto_init() } +func file_proto_services_property_svc_v1_property_views_svc_proto_init() { + if File_proto_services_property_svc_v1_property_views_svc_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FilterUpdate); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateTaskPropertyViewRuleRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateTaskPropertyViewRuleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes[1].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_proto_services_property_svc_v1_property_views_svc_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_proto_services_property_svc_v1_property_views_svc_proto_goTypes, + DependencyIndexes: file_proto_services_property_svc_v1_property_views_svc_proto_depIdxs, + MessageInfos: file_proto_services_property_svc_v1_property_views_svc_proto_msgTypes, + }.Build() + File_proto_services_property_svc_v1_property_views_svc_proto = out.File + file_proto_services_property_svc_v1_property_views_svc_proto_rawDesc = nil + file_proto_services_property_svc_v1_property_views_svc_proto_goTypes = nil + file_proto_services_property_svc_v1_property_views_svc_proto_depIdxs = nil +} diff --git a/gen/go/proto/services/property_svc/v1/property_views_svc_grpc.pb.go b/gen/go/proto/services/property_svc/v1/property_views_svc_grpc.pb.go new file mode 100644 index 000000000..4a6d8abbd --- /dev/null +++ b/gen/go/proto/services/property_svc/v1/property_views_svc_grpc.pb.go @@ -0,0 +1,109 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.3.0 +// - protoc (unknown) +// source: proto/services/property_svc/v1/property_views_svc.proto + +package property_svc + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +const ( + PropertyViewsService_UpdateTaskPropertyViewRule_FullMethodName = "/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule" +) + +// PropertyViewsServiceClient is the client API for PropertyViewsService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type PropertyViewsServiceClient interface { + UpdateTaskPropertyViewRule(ctx context.Context, in *UpdateTaskPropertyViewRuleRequest, opts ...grpc.CallOption) (*UpdateTaskPropertyViewRuleResponse, error) +} + +type propertyViewsServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewPropertyViewsServiceClient(cc grpc.ClientConnInterface) PropertyViewsServiceClient { + return &propertyViewsServiceClient{cc} +} + +func (c *propertyViewsServiceClient) UpdateTaskPropertyViewRule(ctx context.Context, in *UpdateTaskPropertyViewRuleRequest, opts ...grpc.CallOption) (*UpdateTaskPropertyViewRuleResponse, error) { + out := new(UpdateTaskPropertyViewRuleResponse) + err := c.cc.Invoke(ctx, PropertyViewsService_UpdateTaskPropertyViewRule_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// PropertyViewsServiceServer is the server API for PropertyViewsService service. +// All implementations must embed UnimplementedPropertyViewsServiceServer +// for forward compatibility +type PropertyViewsServiceServer interface { + UpdateTaskPropertyViewRule(context.Context, *UpdateTaskPropertyViewRuleRequest) (*UpdateTaskPropertyViewRuleResponse, error) + mustEmbedUnimplementedPropertyViewsServiceServer() +} + +// UnimplementedPropertyViewsServiceServer must be embedded to have forward compatible implementations. +type UnimplementedPropertyViewsServiceServer struct { +} + +func (UnimplementedPropertyViewsServiceServer) UpdateTaskPropertyViewRule(context.Context, *UpdateTaskPropertyViewRuleRequest) (*UpdateTaskPropertyViewRuleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTaskPropertyViewRule not implemented") +} +func (UnimplementedPropertyViewsServiceServer) mustEmbedUnimplementedPropertyViewsServiceServer() {} + +// UnsafePropertyViewsServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PropertyViewsServiceServer will +// result in compilation errors. +type UnsafePropertyViewsServiceServer interface { + mustEmbedUnimplementedPropertyViewsServiceServer() +} + +func RegisterPropertyViewsServiceServer(s grpc.ServiceRegistrar, srv PropertyViewsServiceServer) { + s.RegisterService(&PropertyViewsService_ServiceDesc, srv) +} + +func _PropertyViewsService_UpdateTaskPropertyViewRule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateTaskPropertyViewRuleRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(PropertyViewsServiceServer).UpdateTaskPropertyViewRule(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: PropertyViewsService_UpdateTaskPropertyViewRule_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(PropertyViewsServiceServer).UpdateTaskPropertyViewRule(ctx, req.(*UpdateTaskPropertyViewRuleRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// PropertyViewsService_ServiceDesc is the grpc.ServiceDesc for PropertyViewsService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var PropertyViewsService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "proto.services.property_svc.v1.PropertyViewsService", + HandlerType: (*PropertyViewsServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "UpdateTaskPropertyViewRule", + Handler: _PropertyViewsService_UpdateTaskPropertyViewRule_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "proto/services/property_svc/v1/property_views_svc.proto", +} diff --git a/gen/python/proto/services/property_svc/v1/property_views_svc_pb2.py b/gen/python/proto/services/property_svc/v1/property_views_svc_pb2.py new file mode 100644 index 000000000..396df4729 --- /dev/null +++ b/gen/python/proto/services/property_svc/v1/property_views_svc_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: proto/services/property_svc/v1/property_views_svc.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_views_svc.proto\x12\x1eproto.services.property_svc.v1\"\x8c\x02\n\x0c\x46ilterUpdate\x12\x37\n\x18\x61ppend_to_always_include\x18\x01 \x03(\tR\x15\x61ppendToAlwaysInclude\x12;\n\x1aremove_from_always_include\x18\x02 \x03(\tR\x17removeFromAlwaysInclude\x12@\n\x1d\x61ppend_to_dont_always_include\x18\x03 \x03(\tR\x19\x61ppendToDontAlwaysInclude\x12\x44\n\x1fremove_from_dont_always_include\x18\x04 \x03(\tR\x1bremoveFromDontAlwaysInclude\"\xca\x01\n!UpdateTaskPropertyViewRuleRequest\x12\x1c\n\x07ward_id\x18\x01 \x01(\tH\x00R\x06wardId\x88\x01\x01\x12\x1c\n\x07task_id\x18\x02 \x01(\tH\x01R\x06taskId\x88\x01\x01\x12Q\n\rfilter_update\x18\x03 \x01(\x0b\x32,.proto.services.property_svc.v1.FilterUpdateR\x0c\x66ilterUpdateB\n\n\x08_ward_idB\n\n\x08_task_id\"$\n\"UpdateTaskPropertyViewRuleResponse2\xbe\x01\n\x14PropertyViewsService\x12\xa5\x01\n\x1aUpdateTaskPropertyViewRule\x12\x41.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest\x1a\x42.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyViewsSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.services.property_svc.v1.property_views_svc_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\"com.proto.services.property_svc.v1B\025PropertyViewsSvcProtoP\001Z\037gen/proto/services/property-svc\242\002\003PSP\252\002\035Proto.Services.PropertySvc.V1\312\002\035Proto\\Services\\PropertySvc\\V1\342\002)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\352\002 Proto::Services::PropertySvc::V1' + _globals['_FILTERUPDATE']._serialized_start=92 + _globals['_FILTERUPDATE']._serialized_end=360 + _globals['_UPDATETASKPROPERTYVIEWRULEREQUEST']._serialized_start=363 + _globals['_UPDATETASKPROPERTYVIEWRULEREQUEST']._serialized_end=565 + _globals['_UPDATETASKPROPERTYVIEWRULERESPONSE']._serialized_start=567 + _globals['_UPDATETASKPROPERTYVIEWRULERESPONSE']._serialized_end=603 + _globals['_PROPERTYVIEWSSERVICE']._serialized_start=606 + _globals['_PROPERTYVIEWSSERVICE']._serialized_end=796 +# @@protoc_insertion_point(module_scope) diff --git a/gen/python/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py b/gen/python/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py new file mode 100644 index 000000000..2faa0e8bd --- /dev/null +++ b/gen/python/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py @@ -0,0 +1,66 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from proto.services.property_svc.v1 import property_views_svc_pb2 as proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2 + + +class PropertyViewsServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UpdateTaskPropertyViewRule = channel.unary_unary( + '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + request_serializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.SerializeToString, + response_deserializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.FromString, + ) + + +class PropertyViewsServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def UpdateTaskPropertyViewRule(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PropertyViewsServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UpdateTaskPropertyViewRule': grpc.unary_unary_rpc_method_handler( + servicer.UpdateTaskPropertyViewRule, + request_deserializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.FromString, + response_serializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'proto.services.property_svc.v1.PropertyViewsService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class PropertyViewsService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def UpdateTaskPropertyViewRule(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.SerializeToString, + proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.d.ts b/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.d.ts new file mode 100644 index 000000000..ceaf6a2d6 --- /dev/null +++ b/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.d.ts @@ -0,0 +1,31 @@ +import * as grpcWeb from 'grpc-web'; + +import * as proto_services_property_svc_v1_property_views_svc_pb from '../../../../proto/services/property_svc/v1/property_views_svc_pb'; // proto import: "proto/services/property_svc/v1/property_views_svc.proto" + + +export class PropertyViewsServiceClient { + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }); + + updateTaskPropertyViewRule( + request: proto_services_property_svc_v1_property_views_svc_pb.UpdateTaskPropertyViewRuleRequest, + metadata: grpcWeb.Metadata | undefined, + callback: (err: grpcWeb.RpcError, + response: proto_services_property_svc_v1_property_views_svc_pb.UpdateTaskPropertyViewRuleResponse) => void + ): grpcWeb.ClientReadableStream; + +} + +export class PropertyViewsServicePromiseClient { + constructor (hostname: string, + credentials?: null | { [index: string]: string; }, + options?: null | { [index: string]: any; }); + + updateTaskPropertyViewRule( + request: proto_services_property_svc_v1_property_views_svc_pb.UpdateTaskPropertyViewRuleRequest, + metadata?: grpcWeb.Metadata + ): Promise; + +} + diff --git a/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.js b/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.js new file mode 100644 index 000000000..970a2f4c9 --- /dev/null +++ b/gen/ts/proto/services/property_svc/v1/property_views_svc_grpc_web_pb.js @@ -0,0 +1,142 @@ +/** + * @fileoverview gRPC-Web generated client stub for proto.services.property_svc.v1 + * @enhanceable + * @public + */ + +// Code generated by protoc-gen-grpc-web. DO NOT EDIT. +// versions: +// protoc-gen-grpc-web v1.5.0 +// protoc v0.0.0 +// source: proto/services/property_svc/v1/property_views_svc.proto + + +/* eslint-disable */ +// @ts-nocheck + + + +const grpc = {}; +grpc.web = require('grpc-web'); + +const proto = {}; +proto.proto = {}; +proto.proto.services = {}; +proto.proto.services.property_svc = {}; +proto.proto.services.property_svc.v1 = require('./property_views_svc_pb.js'); + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.proto.services.property_svc.v1.PropertyViewsServiceClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @param {string} hostname + * @param {?Object} credentials + * @param {?grpc.web.ClientOptions} options + * @constructor + * @struct + * @final + */ +proto.proto.services.property_svc.v1.PropertyViewsServicePromiseClient = + function(hostname, credentials, options) { + if (!options) options = {}; + options.format = 'text'; + + /** + * @private @const {!grpc.web.GrpcWebClientBase} The client + */ + this.client_ = new grpc.web.GrpcWebClientBase(options); + + /** + * @private @const {string} The hostname + */ + this.hostname_ = hostname.replace(/\/+$/, ''); + +}; + + +/** + * @const + * @type {!grpc.web.MethodDescriptor< + * !proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest, + * !proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse>} + */ +const methodDescriptor_PropertyViewsService_UpdateTaskPropertyViewRule = new grpc.web.MethodDescriptor( + '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + grpc.web.MethodType.UNARY, + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest, + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse, + /** + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} request + * @return {!Uint8Array} + */ + function(request) { + return request.serializeBinary(); + }, + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.deserializeBinary +); + + +/** + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} request The + * request proto + * @param {?Object} metadata User defined + * call metadata + * @param {function(?grpc.web.RpcError, ?proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse)} + * callback The callback function(error, response) + * @return {!grpc.web.ClientReadableStream|undefined} + * The XHR Node Readable Stream + */ +proto.proto.services.property_svc.v1.PropertyViewsServiceClient.prototype.updateTaskPropertyViewRule = + function(request, metadata, callback) { + return this.client_.rpcCall(this.hostname_ + + '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + request, + metadata || {}, + methodDescriptor_PropertyViewsService_UpdateTaskPropertyViewRule, + callback); +}; + + +/** + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} request The + * request proto + * @param {?Object=} metadata User defined + * call metadata + * @return {!Promise} + * Promise that resolves to the response + */ +proto.proto.services.property_svc.v1.PropertyViewsServicePromiseClient.prototype.updateTaskPropertyViewRule = + function(request, metadata) { + return this.client_.unaryCall(this.hostname_ + + '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + request, + metadata || {}, + methodDescriptor_PropertyViewsService_UpdateTaskPropertyViewRule); +}; + + +module.exports = proto.proto.services.property_svc.v1; + diff --git a/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.d.ts b/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.d.ts new file mode 100644 index 000000000..55c745f5d --- /dev/null +++ b/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.d.ts @@ -0,0 +1,98 @@ +import * as jspb from 'google-protobuf' + + + +export class FilterUpdate extends jspb.Message { + getAppendToAlwaysIncludeList(): Array; + setAppendToAlwaysIncludeList(value: Array): FilterUpdate; + clearAppendToAlwaysIncludeList(): FilterUpdate; + addAppendToAlwaysInclude(value: string, index?: number): FilterUpdate; + + getRemoveFromAlwaysIncludeList(): Array; + setRemoveFromAlwaysIncludeList(value: Array): FilterUpdate; + clearRemoveFromAlwaysIncludeList(): FilterUpdate; + addRemoveFromAlwaysInclude(value: string, index?: number): FilterUpdate; + + getAppendToDontAlwaysIncludeList(): Array; + setAppendToDontAlwaysIncludeList(value: Array): FilterUpdate; + clearAppendToDontAlwaysIncludeList(): FilterUpdate; + addAppendToDontAlwaysInclude(value: string, index?: number): FilterUpdate; + + getRemoveFromDontAlwaysIncludeList(): Array; + setRemoveFromDontAlwaysIncludeList(value: Array): FilterUpdate; + clearRemoveFromDontAlwaysIncludeList(): FilterUpdate; + addRemoveFromDontAlwaysInclude(value: string, index?: number): FilterUpdate; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): FilterUpdate.AsObject; + static toObject(includeInstance: boolean, msg: FilterUpdate): FilterUpdate.AsObject; + static serializeBinaryToWriter(message: FilterUpdate, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): FilterUpdate; + static deserializeBinaryFromReader(message: FilterUpdate, reader: jspb.BinaryReader): FilterUpdate; +} + +export namespace FilterUpdate { + export type AsObject = { + appendToAlwaysIncludeList: Array, + removeFromAlwaysIncludeList: Array, + appendToDontAlwaysIncludeList: Array, + removeFromDontAlwaysIncludeList: Array, + } +} + +export class UpdateTaskPropertyViewRuleRequest extends jspb.Message { + getWardId(): string; + setWardId(value: string): UpdateTaskPropertyViewRuleRequest; + hasWardId(): boolean; + clearWardId(): UpdateTaskPropertyViewRuleRequest; + + getTaskId(): string; + setTaskId(value: string): UpdateTaskPropertyViewRuleRequest; + hasTaskId(): boolean; + clearTaskId(): UpdateTaskPropertyViewRuleRequest; + + getFilterUpdate(): FilterUpdate | undefined; + setFilterUpdate(value?: FilterUpdate): UpdateTaskPropertyViewRuleRequest; + hasFilterUpdate(): boolean; + clearFilterUpdate(): UpdateTaskPropertyViewRuleRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateTaskPropertyViewRuleRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateTaskPropertyViewRuleRequest): UpdateTaskPropertyViewRuleRequest.AsObject; + static serializeBinaryToWriter(message: UpdateTaskPropertyViewRuleRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateTaskPropertyViewRuleRequest; + static deserializeBinaryFromReader(message: UpdateTaskPropertyViewRuleRequest, reader: jspb.BinaryReader): UpdateTaskPropertyViewRuleRequest; +} + +export namespace UpdateTaskPropertyViewRuleRequest { + export type AsObject = { + wardId?: string, + taskId?: string, + filterUpdate?: FilterUpdate.AsObject, + } + + export enum WardIdCase { + _WARD_ID_NOT_SET = 0, + WARD_ID = 1, + } + + export enum TaskIdCase { + _TASK_ID_NOT_SET = 0, + TASK_ID = 2, + } +} + +export class UpdateTaskPropertyViewRuleResponse extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateTaskPropertyViewRuleResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateTaskPropertyViewRuleResponse): UpdateTaskPropertyViewRuleResponse.AsObject; + static serializeBinaryToWriter(message: UpdateTaskPropertyViewRuleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateTaskPropertyViewRuleResponse; + static deserializeBinaryFromReader(message: UpdateTaskPropertyViewRuleResponse, reader: jspb.BinaryReader): UpdateTaskPropertyViewRuleResponse; +} + +export namespace UpdateTaskPropertyViewRuleResponse { + export type AsObject = { + } +} + diff --git a/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.js b/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.js new file mode 100644 index 000000000..df95c32d3 --- /dev/null +++ b/gen/ts/proto/services/property_svc/v1/property_views_svc_pb.js @@ -0,0 +1,741 @@ +// source: proto/services/property_svc/v1/property_views_svc.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = + (typeof globalThis !== 'undefined' && globalThis) || + (typeof window !== 'undefined' && window) || + (typeof global !== 'undefined' && global) || + (typeof self !== 'undefined' && self) || + (function () { return this; }).call(null) || + Function('return this')(); + +goog.exportSymbol('proto.proto.services.property_svc.v1.FilterUpdate', null, global); +goog.exportSymbol('proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest', null, global); +goog.exportSymbol('proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.proto.services.property_svc.v1.FilterUpdate = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.proto.services.property_svc.v1.FilterUpdate.repeatedFields_, null); +}; +goog.inherits(proto.proto.services.property_svc.v1.FilterUpdate, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.proto.services.property_svc.v1.FilterUpdate.displayName = 'proto.proto.services.property_svc.v1.FilterUpdate'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.displayName = 'proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.displayName = 'proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse'; +} + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.proto.services.property_svc.v1.FilterUpdate.repeatedFields_ = [1,2,3,4]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.toObject = function(opt_includeInstance) { + return proto.proto.services.property_svc.v1.FilterUpdate.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.proto.services.property_svc.v1.FilterUpdate} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.FilterUpdate.toObject = function(includeInstance, msg) { + var f, obj = { + appendToAlwaysIncludeList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, + removeFromAlwaysIncludeList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, + appendToDontAlwaysIncludeList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f, + removeFromDontAlwaysIncludeList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} + */ +proto.proto.services.property_svc.v1.FilterUpdate.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.proto.services.property_svc.v1.FilterUpdate; + return proto.proto.services.property_svc.v1.FilterUpdate.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.proto.services.property_svc.v1.FilterUpdate} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} + */ +proto.proto.services.property_svc.v1.FilterUpdate.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.addAppendToAlwaysInclude(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.addRemoveFromAlwaysInclude(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addAppendToDontAlwaysInclude(value); + break; + case 4: + var value = /** @type {string} */ (reader.readString()); + msg.addRemoveFromDontAlwaysInclude(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.proto.services.property_svc.v1.FilterUpdate.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.proto.services.property_svc.v1.FilterUpdate} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.FilterUpdate.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getAppendToAlwaysIncludeList(); + if (f.length > 0) { + writer.writeRepeatedString( + 1, + f + ); + } + f = message.getRemoveFromAlwaysIncludeList(); + if (f.length > 0) { + writer.writeRepeatedString( + 2, + f + ); + } + f = message.getAppendToDontAlwaysIncludeList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } + f = message.getRemoveFromDontAlwaysIncludeList(); + if (f.length > 0) { + writer.writeRepeatedString( + 4, + f + ); + } +}; + + +/** + * repeated string append_to_always_include = 1; + * @return {!Array} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.getAppendToAlwaysIncludeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); +}; + + +/** + * @param {!Array} value + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.setAppendToAlwaysIncludeList = function(value) { + return jspb.Message.setField(this, 1, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.addAppendToAlwaysInclude = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 1, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.clearAppendToAlwaysIncludeList = function() { + return this.setAppendToAlwaysIncludeList([]); +}; + + +/** + * repeated string remove_from_always_include = 2; + * @return {!Array} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.getRemoveFromAlwaysIncludeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.setRemoveFromAlwaysIncludeList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.addRemoveFromAlwaysInclude = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.clearRemoveFromAlwaysIncludeList = function() { + return this.setRemoveFromAlwaysIncludeList([]); +}; + + +/** + * repeated string append_to_dont_always_include = 3; + * @return {!Array} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.getAppendToDontAlwaysIncludeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.setAppendToDontAlwaysIncludeList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.addAppendToDontAlwaysInclude = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.clearAppendToDontAlwaysIncludeList = function() { + return this.setAppendToDontAlwaysIncludeList([]); +}; + + +/** + * repeated string remove_from_dont_always_include = 4; + * @return {!Array} + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.getRemoveFromDontAlwaysIncludeList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); +}; + + +/** + * @param {!Array} value + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.setRemoveFromDontAlwaysIncludeList = function(value) { + return jspb.Message.setField(this, 4, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.addRemoveFromDontAlwaysInclude = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 4, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.proto.services.property_svc.v1.FilterUpdate} returns this + */ +proto.proto.services.property_svc.v1.FilterUpdate.prototype.clearRemoveFromDontAlwaysIncludeList = function() { + return this.setRemoveFromDontAlwaysIncludeList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.toObject = function(opt_includeInstance) { + return proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.toObject = function(includeInstance, msg) { + var f, obj = { + wardId: jspb.Message.getFieldWithDefault(msg, 1, ""), + taskId: jspb.Message.getFieldWithDefault(msg, 2, ""), + filterUpdate: (f = msg.getFilterUpdate()) && proto.proto.services.property_svc.v1.FilterUpdate.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest; + return proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setWardId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTaskId(value); + break; + case 3: + var value = new proto.proto.services.property_svc.v1.FilterUpdate; + reader.readMessage(value,proto.proto.services.property_svc.v1.FilterUpdate.deserializeBinaryFromReader); + msg.setFilterUpdate(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getFilterUpdate(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.proto.services.property_svc.v1.FilterUpdate.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string ward_id = 1; + * @return {string} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.getWardId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.setWardId = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.clearWardId = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.hasWardId = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string task_id = 2; + * @return {string} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.getTaskId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.setTaskId = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.clearTaskId = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.hasTaskId = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional FilterUpdate filter_update = 3; + * @return {?proto.proto.services.property_svc.v1.FilterUpdate} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.getFilterUpdate = function() { + return /** @type{?proto.proto.services.property_svc.v1.FilterUpdate} */ ( + jspb.Message.getWrapperField(this, proto.proto.services.property_svc.v1.FilterUpdate, 3)); +}; + + +/** + * @param {?proto.proto.services.property_svc.v1.FilterUpdate|undefined} value + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this +*/ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.setFilterUpdate = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest} returns this + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.clearFilterUpdate = function() { + return this.setFilterUpdate(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest.prototype.hasFilterUpdate = function() { + return jspb.Message.getField(this, 3) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse; + return proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +goog.object.extend(exports, proto.proto.services.property_svc.v1); diff --git a/libs/hwdb/go.mod b/libs/hwdb/go.mod index f12aaf791..740a24ada 100644 --- a/libs/hwdb/go.mod +++ b/libs/hwdb/go.mod @@ -51,6 +51,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/openzipkin/zipkin-go v0.4.2 // indirect github.com/pquerna/cachecontrol v0.1.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.25.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.25.0 // indirect diff --git a/libs/hwdb/go.sum b/libs/hwdb/go.sum index acff22fd3..d24963dc0 100644 --- a/libs/hwdb/go.sum +++ b/libs/hwdb/go.sum @@ -79,8 +79,8 @@ github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRI github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pquerna/cachecontrol v0.1.0 h1:yJMy84ti9h/+OEWa752kBTKv4XC30OtVVHYv/8cTqKc= github.com/pquerna/cachecontrol v0.1.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= -github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= diff --git a/libs/hwdb/setup.go b/libs/hwdb/setup.go index 10f6ea00a..ce9ecca2c 100644 --- a/libs/hwdb/setup.go +++ b/libs/hwdb/setup.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" "github.com/jackc/pgx/v5/pgxpool" "github.com/rs/zerolog/log" "hwdb/pgx_zerolog" @@ -12,8 +13,18 @@ import ( pgxUUID "github.com/vgarvardt/pgx-google-uuid/v5" ) +type DBTX interface { + Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow(context.Context, string, ...interface{}) pgx.Row + CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) + SendBatch(context.Context, *pgx.Batch) pgx.BatchResults + + Begin(ctx context.Context) (pgx.Tx, error) +} + // connectionPool is set in OpenDatabase() and allows for concurrent access to the database -var connectionPool *pgxpool.Pool = nil +var connectionPool DBTX = nil // SetupDatabaseFromEnv prefers the env POSTGRES_DSN and will be configured the database connection accordingly. // When this env does not exist, a fallback to the following envs with proper default values will take place. @@ -95,9 +106,14 @@ func openDatabasePool(ctx context.Context, dsn string) (*pgxpool.Pool, error) { return dbpool, nil } -func GetDB() *pgxpool.Pool { +func GetDB() DBTX { if connectionPool == nil { log.Error().Msg("GetDB called without set-up database, you will run into nil-pointers. Make sure to call SetupDatabaseFromEnv()!") } return connectionPool } + +// TestingSetDB should only be called by testing code +func TestingSetDB(pool DBTX) { + connectionPool = pool +} diff --git a/libs/hwes/event.go b/libs/hwes/event.go index 6ae53757e..2ba02cad8 100644 --- a/libs/hwes/event.go +++ b/libs/hwes/event.go @@ -5,12 +5,14 @@ import ( "context" "encoding/json" "fmt" - "github.com/EventStore/EventStore-Client-Go/v4/esdb" - "github.com/google/uuid" - "github.com/rs/zerolog" + "hwutil" "strings" "telemetry" "time" + + "github.com/EventStore/EventStore-Client-Go/v4/esdb" + "github.com/google/uuid" + "github.com/rs/zerolog" ) type Event struct { @@ -182,7 +184,15 @@ func (e *Event) SetData(data []byte) *Event { } func (e *Event) SetJsonData(data interface{}) error { - dataBytes, err := json.Marshal(data) + var dataBytes []byte + var err error + + if jsonable, ok := data.(hwutil.JSONAble); ok { + dataBytes, err = jsonable.ToJSON() + } else { + dataBytes, err = json.Marshal(data) + } + if err != nil { return err } @@ -191,6 +201,10 @@ func (e *Event) SetJsonData(data interface{}) error { } func (e *Event) GetJsonData(data interface{}) error { + if jsonable, ok := data.(hwutil.JSONAble); ok { + err := jsonable.FromJSON(e.Data) + return err + } return json.Unmarshal(e.Data, data) } diff --git a/libs/hwes/eventstoredb/projections/custom/custom.go b/libs/hwes/eventstoredb/projections/custom/custom.go index a1cf52b9f..49c39d064 100644 --- a/libs/hwes/eventstoredb/projections/custom/custom.go +++ b/libs/hwes/eventstoredb/projections/custom/custom.go @@ -11,6 +11,21 @@ import ( "telemetry" ) +// EventStoreClient is an interface that describes all methods of esdb.Client that are used by CustomProjection +type EventStoreClient interface { + SubscribeToPersistentSubscriptionToAll( + ctx context.Context, + groupName string, + options esdb.SubscribeToPersistentSubscriptionOptions, + ) (*esdb.PersistentSubscription, error) + + CreatePersistentSubscriptionToAll( + ctx context.Context, + groupName string, + options esdb.PersistentAllSubscriptionOptions, + ) error +} + type eventHandler func(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) // CustomProjection can be used to develop own projections @@ -27,7 +42,7 @@ type eventHandler func(ctx context.Context, evt hwes.Event) (error, *esdb.NackAc // *custom.CustomProjection // } // -// func NewProjection(es *esdb.Client) *Projection { +// func NewProjection(es EventStoreClient) *Projection { // subscriptionGroupName := "tasks-svc-echo-projection" // p := &Projection{custom.NewCustomProjection(es, subscriptionGroupName)} // p.RegisterEventListener(taskEventsV1.TaskCreated, p.onTaskCreated) @@ -47,13 +62,13 @@ type eventHandler func(ctx context.Context, evt hwes.Event) (error, *esdb.NackAc // return nil, esdb.Nack_Unknown // } type CustomProjection struct { - es *esdb.Client + es EventStoreClient eventHandlers map[string]eventHandler subscriptionGroupName string streamPrefixFilters *[]string } -func NewCustomProjection(esdbClient *esdb.Client, subscriptionGroupName string, streamPrefixFilters *[]string) *CustomProjection { +func NewCustomProjection(esdbClient EventStoreClient, subscriptionGroupName string, streamPrefixFilters *[]string) *CustomProjection { return &CustomProjection{ es: esdbClient, eventHandlers: make(map[string]eventHandler), diff --git a/libs/hwes/go.mod b/libs/hwes/go.mod index 5851a80e2..b4a260b3d 100644 --- a/libs/hwes/go.mod +++ b/libs/hwes/go.mod @@ -14,6 +14,7 @@ require ( github.com/EventStore/EventStore-Client-Go/v4 v4.0.0 github.com/google/uuid v1.6.0 github.com/rs/zerolog v1.32.0 + github.com/stretchr/testify v1.9.0 hwutil v0.0.0 telemetry v0.0.0 ) @@ -24,6 +25,7 @@ require ( github.com/coreos/go-oidc v2.2.1+incompatible // indirect github.com/dapr/dapr v1.13.2 // indirect github.com/dapr/go-sdk v1.10.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fatih/structs v1.1.0 // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/go-logr/logr v1.4.1 // indirect @@ -40,6 +42,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect github.com/openzipkin/zipkin-go v0.4.2 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/pquerna/cachecontrol v0.1.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/libs/hwes/test/memory_aggregate_store.go b/libs/hwes/test/memory_aggregate_store.go index 3ab5fa8f8..14c3acd2e 100644 --- a/libs/hwes/test/memory_aggregate_store.go +++ b/libs/hwes/test/memory_aggregate_store.go @@ -2,20 +2,22 @@ package test import ( "context" + "github.com/stretchr/testify/assert" "hwes" + "testing" ) -type aggregateStore struct { +type AggregateStore struct { streams map[string][]hwes.Event } // NewAggregateStore returns an in-memory Aggregate store // Very handy for testing -func NewAggregateStore() *aggregateStore { - return &aggregateStore{streams: make(map[string][]hwes.Event)} +func NewAggregateStore() *AggregateStore { + return &AggregateStore{streams: make(map[string][]hwes.Event)} } -func (a *aggregateStore) Load(ctx context.Context, aggregate hwes.Aggregate) error { +func (a *AggregateStore) Load(ctx context.Context, aggregate hwes.Aggregate) error { events := a.streams[aggregate.GetTypeID()] for _, event := range events { @@ -27,7 +29,7 @@ func (a *aggregateStore) Load(ctx context.Context, aggregate hwes.Aggregate) err return nil } -func (a *aggregateStore) Save(ctx context.Context, aggregate hwes.Aggregate) error { +func (a *AggregateStore) Save(ctx context.Context, aggregate hwes.Aggregate) error { if len(aggregate.GetUncommittedEvents()) == 0 { return nil } @@ -38,7 +40,37 @@ func (a *aggregateStore) Save(ctx context.Context, aggregate hwes.Aggregate) err return nil } -func (a *aggregateStore) Exists(ctx context.Context, aggregate hwes.Aggregate) (bool, error) { +func (a *AggregateStore) Exists(ctx context.Context, aggregate hwes.Aggregate) (bool, error) { _, exists := a.streams[aggregate.GetTypeID()] return exists, nil } + +func (a *AggregateStore) ExpectToBeEmpty(t *testing.T) bool { + return assert.Empty(t, a.streams) +} + +func (a *AggregateStore) ExpectStream(t *testing.T, expectedStream string, expectedFn func([]hwes.Event) bool) bool { + stream, ok := a.streams[expectedStream] + if !ok { + t.Errorf("stream %v does not exist on aggregate store", expectedStream) + return false + } + + res := expectedFn(stream) + return assert.Truef(t, res, "stream %v does not meet requirements", expectedStream) +} + +// ExpectAnyStream returns true, if at least one stream fulfills the expector function +func (a *AggregateStore) ExpectAnyStream(t *testing.T, expectedFn func(streamName string, events []hwes.Event) bool) bool { + for name, stream := range a.streams { + if expectedFn(name, stream) { + return true + } + } + t.Error("no stream fulfills expector function") + return false +} + +func (a *AggregateStore) SetStreams(streams map[string][]hwes.Event) { + a.streams = streams +} diff --git a/libs/hwutil/arrays.go b/libs/hwutil/arrays.go index cd3c2ee5a..1f212eeb7 100644 --- a/libs/hwutil/arrays.go +++ b/libs/hwutil/arrays.go @@ -81,3 +81,71 @@ func CountElements[K any](values []K, condition func(K) bool) int { func Prepend[T any](value T, slice []T) []T { return append([]T{value}, slice...) } + +func SliceToSet[T comparable](ts []T) map[T]bool { + unique := make(map[T]bool, len(ts)) + + for _, t := range ts { + unique[t] = true + } + return unique +} + +// MergeSlicesWithSet merges two slices, only keeping unique elements once, not stable the resulting order may be arbitrary +// unlike MergeSlices, also returns the set of unique values +func MergeSlicesWithSet[T comparable](as, bs []T) ([]T, map[T]bool) { + unique := make(map[T]bool, len(as)+len(bs)) + + for _, a := range as { + unique[a] = true + } + + for _, b := range bs { + unique[b] = true + } + + merged := make([]T, 0, len(unique)) + + for el := range unique { + merged = append(merged, el) + } + + return merged, unique +} + +// MergeSlices merges two slices, only keeping unique elements once, not stable the resulting order may be arbitrary +func MergeSlices[T comparable](as, bs []T) []T { + r, _ := MergeSlicesWithSet(as, bs) + return r +} + +func SliceAsStringSlice(as []interface{}) ([]string, bool) { + bs := make([]string, len(as)) + for i, v := range as { + s, ok := v.(string) + if !ok { + return nil, false + } + bs[i] = s + } + return bs, true +} + +func InterfaceAsStringSlice(a interface{}) ([]string, bool) { + if as, ok := a.([]interface{}); !ok { + if as == nil { + return make([]string, 0), true + } + return nil, false + } else { + return SliceAsStringSlice(as) + } +} + +// OrEmptySlice returns the slice or, if it is nil, an empty slice of its type +func OrEmptySlice[T any](as []T) []T { + if as != nil { + return as + } + return make([]T, 0) +} diff --git a/libs/hwutil/parse.go b/libs/hwutil/parse.go index 6df12b84e..7e9df403c 100644 --- a/libs/hwutil/parse.go +++ b/libs/hwutil/parse.go @@ -2,10 +2,11 @@ package hwutil import ( "encoding/json" + "strconv" + "github.com/go-playground/validator/v10" "github.com/google/uuid" "github.com/rs/zerolog/log" - "strconv" ) var validate *validator.Validate @@ -101,3 +102,12 @@ func ParseNullUUID(ptr *string) (uuid.NullUUID, error) { func PtrTo[T any](v T) *T { return &v } + +type JSONAble interface { + ToJSON() ([]byte, error) + FromJSON([]byte) error +} + +type MapAble interface { + ToMap() map[string]interface{} +} diff --git a/proto/services/property_svc/v1/property_views_svc.proto b/proto/services/property_svc/v1/property_views_svc.proto new file mode 100644 index 000000000..6d8020b02 --- /dev/null +++ b/proto/services/property_svc/v1/property_views_svc.proto @@ -0,0 +1,36 @@ +syntax = "proto3"; + +package proto.services.property_svc.v1; + +option go_package = "gen/proto/services/property-svc"; + + +message FilterUpdate { + // append property_id to the always_include list + // this means the property is shown, unless a more specific rule (including itself) + // puts it in its dont_always_include list + repeated string append_to_always_include = 1; // @gotags: validate:"dive,uuid4" + + // remove property_id to the always_include list, also see append_to_always_include + repeated string remove_from_always_include = 2; // @gotags: validate:"dive,uuid4" + + // append property_id to the dont_always_include list, also see append_to_always_include + repeated string append_to_dont_always_include = 3; // @gotags: validate:"dive,uuid4" + + // remove property_id to the dont_always_include list, also see append_to_always_include + repeated string remove_from_dont_always_include = 4; // @gotags: validate:"dive,uuid4" +} + +message UpdateTaskPropertyViewRuleRequest { + /* task-specific matchers */ + optional string ward_id = 1; // @gotags: validate:"omitempty,omitnil,uuid4" + optional string task_id = 2; // @gotags: validate:"omitempty,omitnil,uuid4" + + FilterUpdate filter_update = 3; // @gotags: validate:"required" +} + +message UpdateTaskPropertyViewRuleResponse {} + +service PropertyViewsService { + rpc UpdateTaskPropertyViewRule (UpdateTaskPropertyViewRuleRequest) returns (UpdateTaskPropertyViewRuleResponse) {} +} diff --git a/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2.py b/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2.py new file mode 100644 index 000000000..396df4729 --- /dev/null +++ b/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: proto/services/property_svc/v1/property_views_svc.proto +# Protobuf Python Version: 4.25.2 +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n7proto/services/property_svc/v1/property_views_svc.proto\x12\x1eproto.services.property_svc.v1\"\x8c\x02\n\x0c\x46ilterUpdate\x12\x37\n\x18\x61ppend_to_always_include\x18\x01 \x03(\tR\x15\x61ppendToAlwaysInclude\x12;\n\x1aremove_from_always_include\x18\x02 \x03(\tR\x17removeFromAlwaysInclude\x12@\n\x1d\x61ppend_to_dont_always_include\x18\x03 \x03(\tR\x19\x61ppendToDontAlwaysInclude\x12\x44\n\x1fremove_from_dont_always_include\x18\x04 \x03(\tR\x1bremoveFromDontAlwaysInclude\"\xca\x01\n!UpdateTaskPropertyViewRuleRequest\x12\x1c\n\x07ward_id\x18\x01 \x01(\tH\x00R\x06wardId\x88\x01\x01\x12\x1c\n\x07task_id\x18\x02 \x01(\tH\x01R\x06taskId\x88\x01\x01\x12Q\n\rfilter_update\x18\x03 \x01(\x0b\x32,.proto.services.property_svc.v1.FilterUpdateR\x0c\x66ilterUpdateB\n\n\x08_ward_idB\n\n\x08_task_id\"$\n\"UpdateTaskPropertyViewRuleResponse2\xbe\x01\n\x14PropertyViewsService\x12\xa5\x01\n\x1aUpdateTaskPropertyViewRule\x12\x41.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleRequest\x1a\x42.proto.services.property_svc.v1.UpdateTaskPropertyViewRuleResponse\"\x00\x42\xf3\x01\n\"com.proto.services.property_svc.v1B\x15PropertyViewsSvcProtoP\x01Z\x1fgen/proto/services/property-svc\xa2\x02\x03PSP\xaa\x02\x1dProto.Services.PropertySvc.V1\xca\x02\x1dProto\\Services\\PropertySvc\\V1\xe2\x02)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\xea\x02 Proto::Services::PropertySvc::V1b\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'proto.services.property_svc.v1.property_views_svc_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + _globals['DESCRIPTOR']._options = None + _globals['DESCRIPTOR']._serialized_options = b'\n\"com.proto.services.property_svc.v1B\025PropertyViewsSvcProtoP\001Z\037gen/proto/services/property-svc\242\002\003PSP\252\002\035Proto.Services.PropertySvc.V1\312\002\035Proto\\Services\\PropertySvc\\V1\342\002)Proto\\Services\\PropertySvc\\V1\\GPBMetadata\352\002 Proto::Services::PropertySvc::V1' + _globals['_FILTERUPDATE']._serialized_start=92 + _globals['_FILTERUPDATE']._serialized_end=360 + _globals['_UPDATETASKPROPERTYVIEWRULEREQUEST']._serialized_start=363 + _globals['_UPDATETASKPROPERTYVIEWRULEREQUEST']._serialized_end=565 + _globals['_UPDATETASKPROPERTYVIEWRULERESPONSE']._serialized_start=567 + _globals['_UPDATETASKPROPERTYVIEWRULERESPONSE']._serialized_end=603 + _globals['_PROPERTYVIEWSSERVICE']._serialized_start=606 + _globals['_PROPERTYVIEWSSERVICE']._serialized_end=796 +# @@protoc_insertion_point(module_scope) diff --git a/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py b/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py new file mode 100644 index 000000000..2faa0e8bd --- /dev/null +++ b/services/impulse_svc/gen/proto/services/property_svc/v1/property_views_svc_pb2_grpc.py @@ -0,0 +1,66 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +from proto.services.property_svc.v1 import property_views_svc_pb2 as proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2 + + +class PropertyViewsServiceStub(object): + """Missing associated documentation comment in .proto file.""" + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.UpdateTaskPropertyViewRule = channel.unary_unary( + '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + request_serializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.SerializeToString, + response_deserializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.FromString, + ) + + +class PropertyViewsServiceServicer(object): + """Missing associated documentation comment in .proto file.""" + + def UpdateTaskPropertyViewRule(self, request, context): + """Missing associated documentation comment in .proto file.""" + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_PropertyViewsServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'UpdateTaskPropertyViewRule': grpc.unary_unary_rpc_method_handler( + servicer.UpdateTaskPropertyViewRule, + request_deserializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.FromString, + response_serializer=proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'proto.services.property_svc.v1.PropertyViewsService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class PropertyViewsService(object): + """Missing associated documentation comment in .proto file.""" + + @staticmethod + def UpdateTaskPropertyViewRule(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/proto.services.property_svc.v1.PropertyViewsService/UpdateTaskPropertyViewRule', + proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleRequest.SerializeToString, + proto_dot_services_dot_property__svc_dot_v1_dot_property__views__svc__pb2.UpdateTaskPropertyViewRuleResponse.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/services/property-svc/go.mod b/services/property-svc/go.mod index 9b1a61993..52abf6d32 100644 --- a/services/property-svc/go.mod +++ b/services/property-svc/go.mod @@ -17,9 +17,14 @@ require ( gen v0.0.0 github.com/EventStore/EventStore-Client-Go/v4 v4.0.0 github.com/dapr/go-sdk v1.10.1 + github.com/fatih/structs v1.1.0 github.com/google/uuid v1.6.0 github.com/jackc/pgx/v5 v5.5.5 + github.com/pashagolub/pgxmock/v3 v3.4.0 github.com/rs/zerolog v1.32.0 + github.com/stretchr/testify v1.9.0 + google.golang.org/grpc v1.63.2 + google.golang.org/protobuf v1.33.0 hwdb v0.0.0 hwes v0.0.0 hwutil v0.0.0 @@ -30,7 +35,7 @@ require ( github.com/cenkalti/backoff/v4 v4.3.0 // indirect github.com/coreos/go-oidc v2.2.1+incompatible // indirect github.com/dapr/dapr v1.13.2 // indirect - github.com/fatih/structs v1.1.0 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-logr/stdr v1.2.2 // indirect @@ -50,6 +55,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect github.com/openzipkin/zipkin-go v0.4.2 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/pquerna/cachecontrol v0.1.0 // indirect github.com/vgarvardt/pgx-google-uuid/v5 v5.0.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect @@ -70,8 +76,6 @@ require ( golang.org/x/text v0.14.0 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect - google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect hwlocale v0.0.0 // indirect diff --git a/services/property-svc/go.sum b/services/property-svc/go.sum index fadc3f19d..156d17979 100644 --- a/services/property-svc/go.sum +++ b/services/property-svc/go.sum @@ -2360,6 +2360,8 @@ github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFSt github.com/openzipkin/zipkin-go v0.4.2 h1:zjqfqHjUpPmB3c1GlCvvgsM1G4LkvqQbBDueDOCg/jA= github.com/openzipkin/zipkin-go v0.4.2/go.mod h1:ZeVkFjuuBiSy13y8vpSDCjMi9GoI3hPpCJSBx/EYFhY= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pashagolub/pgxmock/v3 v3.4.0 h1:87VMr2q7m2+6VzXo4Tsp9kMklGlj6mMN19Hp/bp2Rwo= +github.com/pashagolub/pgxmock/v3 v3.4.0/go.mod h1:FvCl7xqPbLLI3XohihJ1NzXnikjM3q/NWSixg4t9hrU= github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= @@ -2442,8 +2444,9 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= diff --git a/services/property-svc/internal/property-value/projections/property_value_postgres_projection/property_value_postgres_projection.go b/services/property-svc/internal/property-value/projections/property_value_postgres_projection/property_value_postgres_projection.go index b67897bab..dddebacce 100644 --- a/services/property-svc/internal/property-value/projections/property_value_postgres_projection/property_value_postgres_projection.go +++ b/services/property-svc/internal/property-value/projections/property_value_postgres_projection/property_value_postgres_projection.go @@ -6,7 +6,6 @@ import ( pb "gen/proto/services/property_svc/v1" "github.com/EventStore/EventStore-Client-Go/v4/esdb" "github.com/google/uuid" - "github.com/jackc/pgx/v5/pgxpool" zlog "github.com/rs/zerolog/log" "hwdb" "hwes" @@ -21,7 +20,7 @@ import ( type Projection struct { *custom.CustomProjection - db *pgxpool.Pool + db hwdb.DBTX propertyRepo *property_repo.Queries propertyValueRepo *property_value_repo.Queries } diff --git a/services/property-svc/internal/property-view/aggregate/actions.go b/services/property-svc/internal/property-view/aggregate/actions.go new file mode 100644 index 000000000..0d38ebdbc --- /dev/null +++ b/services/property-svc/internal/property-view/aggregate/actions.go @@ -0,0 +1,27 @@ +package aggregate + +import ( + "context" + "github.com/google/uuid" + events "property-svc/internal/property-view/events/v1" + "property-svc/internal/property-view/models" +) + +func (a *PropertyViewRuleAggregate) Create(ctx context.Context, rule models.PropertyViewRule) error { + event, err := events.NewPropertyRuleCreatedEvent(ctx, a, rule) + if err != nil { + return err + } + + return a.Apply(event) +} + +func (a *PropertyViewRuleAggregate) UpdateLists(ctx context.Context, ruleId uuid.UUID, appendToAlwaysInclude, removeFromAlwaysInclude, appendToDontAlwaysInclude, removeFromDontAlwaysInclude []uuid.UUID) error { + + event, err := events.NewPropertyRuleListsUpdatedEvent(ctx, a, ruleId, appendToAlwaysInclude, removeFromAlwaysInclude, appendToDontAlwaysInclude, removeFromDontAlwaysInclude) + if err != nil { + return err + } + + return a.Apply(event) +} diff --git a/services/property-svc/internal/property-view/aggregate/aggregate.go b/services/property-svc/internal/property-view/aggregate/aggregate.go new file mode 100644 index 000000000..da9738980 --- /dev/null +++ b/services/property-svc/internal/property-view/aggregate/aggregate.go @@ -0,0 +1,87 @@ +package aggregate + +import ( + "context" + "errors" + "github.com/google/uuid" + "hwes" + "hwutil" + propertyViewEventsV1 "property-svc/internal/property-view/events/v1" + "property-svc/internal/property-view/models" +) + +const PropertyViewRuleAggregateType = "property_view_rule" + +type PropertyViewRuleAggregate struct { + *hwes.AggregateBase + PropertyViewRule *models.PropertyViewRule +} + +func NewPropertyViewRuleAggregate(id uuid.UUID) *PropertyViewRuleAggregate { + aggregate := &PropertyViewRuleAggregate{ + AggregateBase: hwes.NewAggregateBase(PropertyViewRuleAggregateType, id), + PropertyViewRule: &models.PropertyViewRule{RuleId: id}, + } + aggregate.initEventListeners() + return aggregate +} + +func LoadPropertyViewRuleAggregate(ctx context.Context, as hwes.AggregateStore, id uuid.UUID) (*PropertyViewRuleAggregate, error) { + propertyView := NewPropertyViewRuleAggregate(id) + if err := as.Load(ctx, propertyView); err != nil { + return nil, err + } + return propertyView, nil +} + +func (a *PropertyViewRuleAggregate) initEventListeners() { + a.RegisterEventListener(propertyViewEventsV1.PropertyRuleCreated, a.onPropertyRuleCreated) + a.RegisterEventListener(propertyViewEventsV1.PropertyRuleListsUpdated, a.onPropertyRuleListsUpdated) +} + +func (a *PropertyViewRuleAggregate) onPropertyRuleCreated(event hwes.Event) error { + var payload propertyViewEventsV1.PropertyRuleCreatedEvent + if err := event.GetJsonData(&payload); err != nil { + return err + } + + // json unmarshaller sets uuid.Nil for missing uuids + // if they are set, they have to be valid + if payload.RuleId == uuid.Nil { + return errors.New("RuleID missing") + } + if a.GetID() != payload.RuleId { + return errors.New("RuleID not AggregateID") + } + a.PropertyViewRule = &payload.PropertyViewRule + return nil +} + +func (a *PropertyViewRuleAggregate) onPropertyRuleListsUpdated(event hwes.Event) error { + var payload propertyViewEventsV1.PropertyRuleListsUpdatedEvent + if err := event.GetJsonData(&payload); err != nil { + return err + } + + mergedInclude := hwutil.MergeSlices(payload.AppendToAlwaysInclude, a.PropertyViewRule.AlwaysInclude) + mergedDontInclude, dontIncludeSet := hwutil.MergeSlicesWithSet(payload.AppendToDontAlwaysInclude, a.PropertyViewRule.DontAlwaysInclude) + + removeFromAlwaysInclude := hwutil.SliceToSet(payload.RemoveFromAlwaysInclude) + removeFromDontAlwaysInclude := hwutil.SliceToSet(payload.RemoveFromDontAlwaysInclude) + + a.PropertyViewRule.AlwaysInclude = hwutil.Filter(mergedInclude, func(id uuid.UUID) bool { + // the intent of being in the "don't list" is stronger + // if an id is in both lists, it gets removed from the "always list" + _, inDontInclude := dontIncludeSet[id] + _, inRemove := removeFromAlwaysInclude[id] + _, inRemoveFromDont := removeFromDontAlwaysInclude[id] + + return !inRemove && (!inDontInclude || inRemoveFromDont) + }) + a.PropertyViewRule.DontAlwaysInclude = hwutil.Filter(mergedDontInclude, func(id uuid.UUID) bool { + _, inRemove := removeFromDontAlwaysInclude[id] + return inRemove + }) + + return nil +} diff --git a/services/property-svc/internal/property-view/api/grpc.go b/services/property-svc/internal/property-view/api/grpc.go new file mode 100644 index 000000000..86b030bd0 --- /dev/null +++ b/services/property-svc/internal/property-view/api/grpc.go @@ -0,0 +1,77 @@ +package api + +import ( + "context" + pb "gen/proto/services/property_svc/v1" + "hwes" + "hwutil" + commandsV1 "property-svc/internal/property-view/commands/v1" + "property-svc/internal/property-view/models" +) + +type PropertyViewGrpcService struct { + pb.UnimplementedPropertyViewsServiceServer + as hwes.AggregateStore +} + +func NewPropertyViewService(aggregateStore hwes.AggregateStore) *PropertyViewGrpcService { + return &PropertyViewGrpcService{as: aggregateStore} +} + +func (s PropertyViewGrpcService) UpdateTaskPropertyViewRule(ctx context.Context, req *pb.UpdateTaskPropertyViewRuleRequest) (*pb.UpdateTaskPropertyViewRuleResponse, error) { + wardID, err := hwutil.ParseNullUUID(req.WardId) + if err != nil { + return nil, err + } + taskID, err := hwutil.ParseNullUUID(req.TaskId) + if err != nil { + return nil, err + } + + if req.FilterUpdate == nil { + // nothing to update + return &pb.UpdateTaskPropertyViewRuleResponse{}, nil + } + + // when writing another view rule handler, move this into a common function + appendToAlwaysInclude, err := hwutil.StringsToUUIDs(hwutil.OrEmptySlice(req.FilterUpdate.AppendToAlwaysInclude)) + if err != nil { + return nil, err + } + + removeFromAlwaysInclude, err := hwutil.StringsToUUIDs(hwutil.OrEmptySlice(req.FilterUpdate.RemoveFromAlwaysInclude)) + if err != nil { + return nil, err + } + + appendToDontAlwaysInclude, err := hwutil.StringsToUUIDs(hwutil.OrEmptySlice(req.FilterUpdate.AppendToDontAlwaysInclude)) + if err != nil { + return nil, err + } + + removeFromDontAlwaysInclude, err := hwutil.StringsToUUIDs(hwutil.OrEmptySlice(req.FilterUpdate.RemoveFromDontAlwaysInclude)) + if err != nil { + return nil, err + } + + if len(appendToAlwaysInclude) == 0 && len(removeFromAlwaysInclude) == 0 && len(appendToDontAlwaysInclude) == 0 && len(removeFromDontAlwaysInclude) == 0 { + // nothing to update + return &pb.UpdateTaskPropertyViewRuleResponse{}, nil + } + + // --- + + if err := commandsV1.NewUpdatePropertyViewRuleCommandHandler(s.as)(ctx, models.TaskPropertyMatchers{ + WardID: wardID, + TaskID: taskID, + }, + appendToAlwaysInclude, + removeFromAlwaysInclude, + appendToDontAlwaysInclude, + removeFromDontAlwaysInclude, + ); err != nil { + return nil, err + } + + return &pb.UpdateTaskPropertyViewRuleResponse{}, nil +} diff --git a/services/property-svc/internal/property-view/api/grpc_test.go b/services/property-svc/internal/property-view/api/grpc_test.go new file mode 100644 index 000000000..fbd5e8e78 --- /dev/null +++ b/services/property-svc/internal/property-view/api/grpc_test.go @@ -0,0 +1,313 @@ +package api_test + +import ( + "bytes" + "common" + common_test "common/test" + "context" + pb "gen/proto/services/property_svc/v1" + "github.com/google/uuid" + "github.com/pashagolub/pgxmock/v3" + "github.com/stretchr/testify/assert" + "google.golang.org/grpc" + "hwdb" + "hwes" + hwes_test "hwes/test" + "hwutil" + "property-svc/internal/property-view/aggregate" + "property-svc/internal/property-view/api" + v1 "property-svc/internal/property-view/events/v1" + "strings" + "testing" + "text/template" + "time" +) + +func server(ctx context.Context) (pb.PropertyViewsServiceClient, *hwes_test.AggregateStore, func()) { + // Build gRPC service + aggregateStore := hwes_test.NewAggregateStore() + grpcService := api.NewPropertyViewService(aggregateStore) + + common.Setup("property-svc", "test", common.WithFakeAuthOnly()) + + // Start Server + grpcServer := grpc.NewServer(common.DefaultInterceptorChain()) + pb.RegisterPropertyViewsServiceServer(grpcServer, grpcService) + conn, closer := common_test.StartGRPCServer(ctx, grpcServer) + + client := pb.NewPropertyViewsServiceClient(conn) + + return client, aggregateStore, closer +} + +func setup(t *testing.T) (ctx context.Context, client pb.PropertyViewsServiceClient, as *hwes_test.AggregateStore, dbMock pgxmock.PgxPoolIface, teardown func()) { + ctx = context.Background() + client, as, closer := server(ctx) + ctx = common_test.AuthenticatedUserContext(ctx, uuid.NewString()) + + dbMock, err := pgxmock.NewPool() + if err != nil { + panic(err) + } + hwdb.TestingSetDB(dbMock) + + teardown = func() { + closer() + dbMock.Close() + } + + return ctx, client, as, dbMock, teardown +} + +func TestPropertyViewGrpcService_UpdateTaskPropertyViewRule_Validation(t *testing.T) { + ctx, client, _, dbMock, teardown := setup(t) + defer teardown() + + // Empty Request + _, err := client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: nil, + FilterUpdate: nil, + }) + assert.Error(t, err, "accepts empty requests") + + // Semi-Empty Request + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: nil, + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: nil, + AppendToDontAlwaysInclude: nil, + RemoveFromDontAlwaysInclude: nil, + }, + }) + assert.NoError(t, err, "rejects semi-empty requests") + + // Array-based Semi-Empty Request + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: nil, + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: make([]string, 0), + RemoveFromAlwaysInclude: make([]string, 0), + AppendToDontAlwaysInclude: make([]string, 0), + RemoveFromDontAlwaysInclude: make([]string, 0), + }, + }) + assert.NoError(t, err, "rejects array based semi-empty requests") + + // Invalid WardID + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: hwutil.PtrTo("asdasdads"), + TaskId: nil, + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: nil, + AppendToDontAlwaysInclude: nil, + RemoveFromDontAlwaysInclude: nil, + }, + }) + assert.Error(t, err, "accepts invalid ward_id") + + // Invalid TaskID + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: hwutil.PtrTo("asdasdads"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: nil, + AppendToDontAlwaysInclude: nil, + RemoveFromDontAlwaysInclude: nil, + }, + }) + assert.Error(t, err, "accepts invalid task_id") + + // Valid IDs + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: hwutil.PtrTo("e602f938-66c5-4a08-a251-4aef94a98060"), + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: nil, + AppendToDontAlwaysInclude: nil, + RemoveFromDontAlwaysInclude: nil, + }, + }) + assert.NoError(t, err, "rejects valid matchers") + + // Invalid updates + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: hwutil.PtrTo("e602f938-66c5-4a08-a251-4aef94a98060"), + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: []string{"asdasdasda"}, + AppendToDontAlwaysInclude: nil, + RemoveFromDontAlwaysInclude: nil, + }, + }) + assert.Error(t, err, "accepts invalid updates") + + // Fully valid request + + dbMock.ExpectQuery(".*"). + WithArgs(uuid.NullUUID{}, uuid.NullUUID{UUID: uuid.MustParse("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), Valid: true}). + WillReturnRows(pgxmock.NewRows([]string{})) + + _, err = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: []string{"a7ff7a87-7787-42b4-9aa8-037293ac9d90", "08b23992-9489-41d2-b80d-d7d49c4c9168"}, + AppendToDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168", "db59dd1b-fd1c-488e-a73c-6926abe68c34"}, + RemoveFromDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168"}, + }, + }) + assert.NoError(t, err, "rejects fully valid request") +} + +func TestPropertyViewGrpcService_UpdateTaskPropertyViewRule_AllEmptyNoEffect(t *testing.T) { + ctx, client, as, _, teardown := setup(t) + defer teardown() + + // Valid IDs + _, _ = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: hwutil.PtrTo("e602f938-66c5-4a08-a251-4aef94a98060"), + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: []string{}, + RemoveFromAlwaysInclude: []string{}, + AppendToDontAlwaysInclude: []string{}, + RemoveFromDontAlwaysInclude: []string{}, + }, + }) + + as.ExpectToBeEmpty(t) +} + +func TestPropertyViewGrpcService_UpdateTaskPropertyViewRule_GreenPath_Created(t *testing.T) { + ctx, client, as, dbMock, teardown := setup(t) + defer teardown() + + // Mock Empty Row response from database + dbMock.ExpectQuery(".*"). + WithArgs(uuid.NullUUID{}, uuid.NullUUID{UUID: uuid.MustParse("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), Valid: true}). + WillReturnRows(pgxmock.NewRows([]string{})) + + _, _ = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: []string{"a7ff7a87-7787-42b4-9aa8-037293ac9d90", "08b23992-9489-41d2-b80d-d7d49c4c9168"}, + AppendToDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168", "db59dd1b-fd1c-488e-a73c-6926abe68c34"}, + RemoveFromDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168"}, + }, + }) + + as.ExpectAnyStream(t, func(streamName string, events []hwes.Event) bool { + if !assert.NotEmpty(t, events) { + return false + } + event := events[0] + + expData := `{ + "AlwaysInclude":[], + "DontAlwaysInclude": [ + "08b23992-9489-41d2-b80d-d7d49c4c9168", + "db59dd1b-fd1c-488e-a73c-6926abe68c34" + ], + "Matchers":{ + "TaskId":"bca23ec4-e8fd-407d-8e7d-0d0a52ba097f", + "WardId":null + }, + "RuleId": "{{ . }}" + }` + s := "" + buf := bytes.NewBufferString(s) + tmplt, _ := template.New("").Parse(expData) + _ = tmplt.ExecuteTemplate(buf, "", strings.Split(streamName, aggregate.PropertyViewRuleAggregateType+"-")[1]) + s = buf.String() + + return assert.Equal(t, v1.PropertyRuleCreated, event.EventType) && + assert.Equal(t, hwes.AggregateType(aggregate.PropertyViewRuleAggregateType), event.AggregateType) && + assert.JSONEq(t, s, string(event.Data)) + }) +} + +func TestPropertyViewGrpcService_UpdateTaskPropertyViewRule_GreenPath_Updated(t *testing.T) { + ctx, client, as, dbMock, teardown := setup(t) + defer teardown() + + // Mock Existing Row response from database + dbMock.ExpectQuery(".*"). + WithArgs(uuid.NullUUID{}, uuid.NullUUID{UUID: uuid.MustParse("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), Valid: true}). + WillReturnRows(pgxmock.NewRows([]string{"property_view_rules"}).AddRow("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273")) + + streamsPrior := make(map[string][]hwes.Event) + + priorData := []byte(`{ + "Matchers": { + "WardId": null, + "TaskId": "bca23ec4-e8fd-407d-8e7d-0d0a52ba097f" + }, + "AlwaysInclude": ["a7ff7a87-7787-42b4-9aa8-037293ac9d90"], + "DontAlwaysInclude": [], + "RuleId": "96e7ffe9-8b18-4e58-b2e1-a756fdbe1273" + }`) + + nameOfRelevantStream := aggregate.PropertyViewRuleAggregateType + "-96e7ffe9-8b18-4e58-b2e1-a756fdbe1273" + streamsPrior[nameOfRelevantStream] = []hwes.Event{ + { + EventID: uuid.MustParse("227592bd-7aa0-4018-bcd4-c68fb06090ee"), + EventType: v1.PropertyRuleCreated, + AggregateID: uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), + AggregateType: aggregate.PropertyViewRuleAggregateType, + Data: priorData, + Timestamp: time.Time{}, // warning: nonsensical default value, but not relevant for this test + Version: 0, // warning: nonsensical default value, but not relevant for this test + CommitterUserID: nil, // warning: nonsensical default value, but not relevant for this test + }, + } + as.SetStreams(streamsPrior) + + _, _ = client.UpdateTaskPropertyViewRule(ctx, &pb.UpdateTaskPropertyViewRuleRequest{ + WardId: nil, + TaskId: hwutil.PtrTo("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), + FilterUpdate: &pb.FilterUpdate{ + AppendToAlwaysInclude: nil, + RemoveFromAlwaysInclude: []string{"a7ff7a87-7787-42b4-9aa8-037293ac9d90", "08b23992-9489-41d2-b80d-d7d49c4c9168"}, + AppendToDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168", "db59dd1b-fd1c-488e-a73c-6926abe68c34"}, + RemoveFromDontAlwaysInclude: []string{"08b23992-9489-41d2-b80d-d7d49c4c9168"}, + }, + }) + + as.ExpectAnyStream(t, func(streamName string, events []hwes.Event) bool { + if streamName != nameOfRelevantStream { + return false + } + if !assert.Len(t, events, 2, "updated event was not created") { + return false + } + event := events[1] // new event + + expData := `{ + "AppendToAlwaysInclude":[], + "RemoveFromAlwaysInclude":["a7ff7a87-7787-42b4-9aa8-037293ac9d90", "08b23992-9489-41d2-b80d-d7d49c4c9168"], + "AppendToDontAlwaysInclude":["08b23992-9489-41d2-b80d-d7d49c4c9168", "db59dd1b-fd1c-488e-a73c-6926abe68c34"], + "RemoveFromDontAlwaysInclude": ["08b23992-9489-41d2-b80d-d7d49c4c9168"], + "RuleId": "{{ . }}" + }` + s := "" + buf := bytes.NewBufferString(s) + tmplt, _ := template.New("").Parse(expData) + _ = tmplt.ExecuteTemplate(buf, "", strings.Split(streamName, aggregate.PropertyViewRuleAggregateType+"-")[1]) + s = buf.String() + + return assert.Equal(t, v1.PropertyRuleListsUpdated, event.EventType) && + assert.Equal(t, hwes.AggregateType(aggregate.PropertyViewRuleAggregateType), event.AggregateType) && + assert.JSONEq(t, s, string(event.Data)) + }) +} diff --git a/services/property-svc/internal/property-view/commands/v1/update_property_view_rule.go b/services/property-svc/internal/property-view/commands/v1/update_property_view_rule.go new file mode 100644 index 000000000..65ec177a5 --- /dev/null +++ b/services/property-svc/internal/property-view/commands/v1/update_property_view_rule.go @@ -0,0 +1,52 @@ +package v1 + +import ( + "context" + "github.com/google/uuid" + "hwes" + "property-svc/internal/property-view/aggregate" + "property-svc/internal/property-view/models" +) + +type UpdatePropertyViewRuleCommandHandler func(context.Context, models.PropertyMatchers, []uuid.UUID, []uuid.UUID, []uuid.UUID, []uuid.UUID) error + +func NewUpdatePropertyViewRuleCommandHandler(as hwes.AggregateStore) UpdatePropertyViewRuleCommandHandler { + return func(ctx context.Context, matchers models.PropertyMatchers, appendToAlwaysInclude, removeFromAlwaysInclude, appendToDontAlwaysInclude, removeFromDontAlwaysInclude []uuid.UUID) error { + + ruleID, err := matchers.FindExactRuleId(ctx) + if err != nil { + return err + } + + // upsert + var ruleAgg *aggregate.PropertyViewRuleAggregate + if ruleID != nil { + // update + + if ruleAgg, err = aggregate.LoadPropertyViewRuleAggregate(ctx, as, *ruleID); err != nil { + return err + } + + + if err := ruleAgg.UpdateLists(ctx, *ruleID, appendToAlwaysInclude, removeFromAlwaysInclude, appendToDontAlwaysInclude, removeFromDontAlwaysInclude); err != nil { + return err + } + } else { + // create + ruleID := uuid.New() + ruleAgg = aggregate.NewPropertyViewRuleAggregate(ruleID) + rule := models.PropertyViewRule{ + Matchers: matchers, + RuleId: ruleID, + AlwaysInclude: appendToAlwaysInclude, + DontAlwaysInclude: appendToDontAlwaysInclude, + // remove makes no sense, ignoring + } + if err := ruleAgg.Create(ctx, rule); err != nil { + return err + } + } + + return as.Save(ctx, ruleAgg) + } +} diff --git a/services/property-svc/internal/property-view/events/v1/events.go b/services/property-svc/internal/property-view/events/v1/events.go new file mode 100644 index 000000000..cd96bf424 --- /dev/null +++ b/services/property-svc/internal/property-view/events/v1/events.go @@ -0,0 +1,108 @@ +package v1 + +import ( + "context" + "encoding/json" + "errors" + "hwes" + "hwutil" + "property-svc/internal/property-view/models" + + "github.com/fatih/structs" + "github.com/google/uuid" +) + +const ( + PropertyRuleCreated = "PROPERTY_RULE_CREATED_v1" + PropertyRuleListsUpdated = "PROPERTY_RULE_LISTS_UPDATED_v1" +) + +type PropertyRuleCreatedEvent struct { + models.PropertyViewRule +} + +func (m *PropertyRuleCreatedEvent) ToJSON() ([]byte, error) { + inter := structs.Map(m.PropertyViewRule) + inter["Matchers"] = m.PropertyViewRule.Matchers.ToMap() + return json.Marshal(inter) +} + +func (m *PropertyRuleCreatedEvent) FromJSON(data []byte) error { + var inter map[string]interface{} + if err := json.Unmarshal(data, &inter); err != nil { + return err + } + + ruleIdRaw, ok := inter["RuleId"].(string) + if !ok { + return errors.New("rule_id is not a string") + } + + ruleId, err := uuid.Parse(ruleIdRaw) + if err != nil { + return err + } + + alwaysInclude, ok := hwutil.InterfaceAsStringSlice(inter["AlwaysInclude"]) + if !ok { + return errors.New("AlwaysInclude is not a string[]") + } + + alwaysIncludeUUIDs, err := hwutil.StringsToUUIDs(alwaysInclude) + if err != nil { + return err + } + + dontAlwaysInclude, ok := hwutil.InterfaceAsStringSlice(inter["DontAlwaysInclude"]) + if !ok { + return errors.New("DontAlwaysInclude is not a string[]") + } + + dontAlwaysIncludeUUIDs, err := hwutil.StringsToUUIDs(dontAlwaysInclude) + if err != nil { + return err + } + + rule := models.PropertyViewRule{ + RuleId: ruleId, + Matchers: nil, // will be set below + AlwaysInclude: alwaysIncludeUUIDs, + DontAlwaysInclude: dontAlwaysIncludeUUIDs, + } + + if taskMatchers, ok := models.TaskPropertyMatchersFromMap(inter["Matchers"]); ok { + rule.Matchers = taskMatchers + m.PropertyViewRule = rule + return nil + } + + // add other matchers once we have more + + return errors.New("could not find matcher in event") +} + +func NewPropertyRuleCreatedEvent(ctx context.Context, a hwes.Aggregate, rule models.PropertyViewRule) (hwes.Event, error) { + payload := PropertyRuleCreatedEvent{ + rule, + } + return hwes.NewEvent(a, PropertyRuleCreated, hwes.WithData(&payload), hwes.WithContext(ctx)) +} + +type PropertyRuleListsUpdatedEvent struct { + RuleId uuid.UUID + AppendToAlwaysInclude []uuid.UUID + RemoveFromAlwaysInclude []uuid.UUID + AppendToDontAlwaysInclude []uuid.UUID + RemoveFromDontAlwaysInclude []uuid.UUID +} + +func NewPropertyRuleListsUpdatedEvent(ctx context.Context, a hwes.Aggregate, ruleId uuid.UUID, appendToAlwaysInclude, removeFromAlwaysInclude, appendToDontAlwaysInclude, removeFromDontAlwaysInclude []uuid.UUID) (hwes.Event, error) { + payload := PropertyRuleListsUpdatedEvent{ + RuleId: ruleId, + AppendToAlwaysInclude: appendToAlwaysInclude, + RemoveFromAlwaysInclude: removeFromAlwaysInclude, + AppendToDontAlwaysInclude: appendToDontAlwaysInclude, + RemoveFromDontAlwaysInclude: removeFromDontAlwaysInclude, + } + return hwes.NewEvent(a, PropertyRuleListsUpdated, hwes.WithData(&payload), hwes.WithContext(ctx)) +} diff --git a/services/property-svc/internal/property-view/models/property_view_rule.go b/services/property-svc/internal/property-view/models/property_view_rule.go new file mode 100644 index 000000000..d731e351e --- /dev/null +++ b/services/property-svc/internal/property-view/models/property_view_rule.go @@ -0,0 +1,26 @@ +package models + +import ( + "context" + "github.com/google/uuid" + "hwutil" +) + +type PropertyMatchers interface { + hwutil.MapAble + // FindExactRuleId queries (presumably the projection) for the one rule that has these matchers + // MUST return (nil, nil) if no such rule exists + FindExactRuleId(context.Context) (*uuid.UUID, error) +} + +type PropertyViewRule struct { + RuleId uuid.UUID + + /* matchers */ + Matchers PropertyMatchers + + /* filters */ + // TODO: softRequired *bool /* show all softRequired, don't show all softRequired, no-rule (parent might have one) */ + AlwaysInclude []uuid.UUID /* add properties to always show */ + DontAlwaysInclude []uuid.UUID /* remove property from include list, which got added by a parent to it */ +} diff --git a/services/property-svc/internal/property-view/models/task_property_matchers.go b/services/property-svc/internal/property-view/models/task_property_matchers.go new file mode 100644 index 000000000..74b01b9af --- /dev/null +++ b/services/property-svc/internal/property-view/models/task_property_matchers.go @@ -0,0 +1,70 @@ +package models + +import ( + "context" + "hwdb" + "hwutil" + "property-svc/repos/task_views_repo" + + "github.com/google/uuid" +) + +// TaskPropertyMatchers implements PropertyMatchers +type TaskPropertyMatchers struct { + WardID uuid.NullUUID `json:"ward_id,omitempty"` + TaskID uuid.NullUUID `json:"task_id,omitempty"` +} + +func (m TaskPropertyMatchers) FindExactRuleId(ctx context.Context) (*uuid.UUID, error) { + taskViews := task_views_repo.New(hwdb.GetDB()) + return hwdb.Optional(taskViews.GetTaskRuleIdUsingExactMatchers)(ctx, task_views_repo.GetTaskRuleIdUsingExactMatchersParams{ + WardID: m.WardID, + TaskID: m.TaskID, + }) +} + +func (m TaskPropertyMatchers) ToMap() map[string]interface{} { + mp := make(map[string]interface{}) + if m.WardID.Valid { + mp["WardId"] = m.WardID.UUID.String() + } else { + mp["WardId"] = nil + } + if m.TaskID.Valid { + mp["TaskId"] = m.TaskID.UUID.String() + } else { + mp["TaskId"] = nil + } + return mp +} + +func TaskPropertyMatchersFromMap(m interface{}) (TaskPropertyMatchers, bool) { + mp, ok := m.(map[string]interface{}) + if !ok { + // not even a map + return TaskPropertyMatchers{}, false + } + + matcher := TaskPropertyMatchers{} + + if wardIdRaw, ok := mp["WardId"].(string); ok { + parsed, err := hwutil.ParseNullUUID(&wardIdRaw) + if err != nil { + return TaskPropertyMatchers{}, false + } + matcher.WardID = parsed + } else { + matcher.WardID = uuid.NullUUID{Valid: false} + } + if taskIdRaw, ok := mp["TaskId"].(string); ok { + parsed, err := hwutil.ParseNullUUID(&taskIdRaw) + if err != nil { + return TaskPropertyMatchers{}, false + } + matcher.TaskID = parsed + } else { + matcher.TaskID = uuid.NullUUID{Valid: false} + } + + return matcher, true +} diff --git a/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres.go b/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres.go new file mode 100644 index 000000000..e2fd33e43 --- /dev/null +++ b/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres.go @@ -0,0 +1,216 @@ +package task_views_postgres + +import ( + "context" + "errors" + "fmt" + "github.com/EventStore/EventStore-Client-Go/v4/esdb" + "github.com/google/uuid" + "github.com/jackc/pgx/v5" + zlog "github.com/rs/zerolog/log" + "hwdb" + "hwes" + "hwes/eventstoredb/projections/custom" + "hwutil" + "property-svc/internal/property-view/aggregate" + eventsV1 "property-svc/internal/property-view/events/v1" + "property-svc/internal/property-view/models" + "property-svc/repos/task_views_repo" + "property-svc/repos/views_repo" + "slices" +) + +type Projection struct { + *custom.CustomProjection + db hwdb.DBTX + taskViewsRepo *task_views_repo.Queries + viewsRepo *views_repo.Queries +} + +func NewProjection(es custom.EventStoreClient, serviceName string) *Projection { + subscriptionGroupName := fmt.Sprintf("%s-task-views-postgres-projection", serviceName) + p := &Projection{ + CustomProjection: custom.NewCustomProjection(es, subscriptionGroupName, &[]string{fmt.Sprintf("%s-", aggregate.PropertyViewRuleAggregateType)}), + db: hwdb.GetDB(), + taskViewsRepo: task_views_repo.New(hwdb.GetDB()), + viewsRepo: views_repo.New(hwdb.GetDB()), + } + p.initEventListeners() + return p +} +func (p *Projection) initEventListeners() { + p.RegisterEventListener(eventsV1.PropertyRuleCreated, p.onPropertyRuleCreated) + p.RegisterEventListener(eventsV1.PropertyRuleListsUpdated, p.onPropertyRuleListsUpdated) +} + +func (p *Projection) onPropertyRuleCreated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { + log := zlog.Ctx(ctx) + + var payload eventsV1.PropertyRuleCreatedEvent + if err := evt.GetJsonData(&payload); err != nil { + log.Error().Err(err).Msg("unmarshal failed") + return err, hwutil.PtrTo(esdb.NackActionPark) + } + + log.Debug().Any("payload", payload).Msg("payload") + + if payload.RuleId == uuid.Nil { + return fmt.Errorf("ruleID missing"), hwutil.PtrTo(esdb.NackActionSkip) + } + + // TODO: add more matchers + + matchers, ok := payload.Matchers.(models.TaskPropertyMatchers) + if !ok { + return fmt.Errorf("wrong type, expected TaskPropertyMatcher, got %T", payload.Matchers), hwutil.PtrTo(esdb.NackActionSkip) + } + + tx, err := p.db.Begin(ctx) + if err != nil { + log.Error().Err(err).Msg("failed to begin transaction") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + defer func() { + err := tx.Rollback(ctx) + if !errors.Is(err, pgx.ErrTxClosed) { + log.Error().Err(err).Msg("rollback failed") + } + }() + + taskViewsQuery := p.taskViewsRepo.WithTx(tx) + viewsQuery := p.viewsRepo.WithTx(tx) + + err = viewsQuery.CreateRule(ctx, payload.RuleId) + if err != nil { + log.Error().Err(err).Msg("could not create view rule") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + err = taskViewsQuery.CreateTaskRule(ctx, task_views_repo.CreateTaskRuleParams{ + RuleID: payload.RuleId, + WardID: matchers.WardID, + TaskID: matchers.TaskID, + }) + if err != nil { + log.Error().Err(err).Msg("could not create task rule") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + mapper := func(dontAlwaysInclude bool) func(uuid.UUID) views_repo.AddToAlwaysIncludeParams { + return func(propertyId uuid.UUID) views_repo.AddToAlwaysIncludeParams { + return views_repo.AddToAlwaysIncludeParams{ + RuleID: payload.RuleId, + PropertyID: propertyId, + DontAlwaysInclude: dontAlwaysInclude, + } + } + } + + _, err = viewsQuery.AddToAlwaysInclude(ctx, hwutil.Map(payload.AlwaysInclude, mapper(false))) + if err != nil { + log.Error().Err(err).Msg("could not insert always include list") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + _, err = viewsQuery.AddToAlwaysInclude(ctx, hwutil.Map(payload.DontAlwaysInclude, mapper(true))) + if err != nil { + log.Error().Err(err).Msg("could not insert dont always include list") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + err = tx.Commit(ctx) + if err != nil { + log.Error().Err(err).Msg("could not commit") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + return nil, nil +} + +func (p *Projection) onPropertyRuleListsUpdated(ctx context.Context, evt hwes.Event) (error, *esdb.NackAction) { + log := zlog.Ctx(ctx) + + var payload eventsV1.PropertyRuleListsUpdatedEvent + if err := evt.GetJsonData(&payload); err != nil { + log.Error().Err(err).Msg("unmarshal failed") + return err, hwutil.PtrTo(esdb.NackActionSkip) + } + + tx, err := p.db.Begin(ctx) + if err != nil { + log.Error().Err(err).Msg("failed to begin transaction") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + defer func() { + err := tx.Rollback(ctx) + if !errors.Is(err, pgx.ErrTxClosed) { + log.Error().Err(err).Msg("rollback failed") + } + }() + + viewsQuery := p.viewsRepo.WithTx(tx) + + removeFromAlwaysInclude := hwutil.SliceToSet(payload.RemoveFromAlwaysInclude) + removeFromDontAlwaysInclude := hwutil.SliceToSet(payload.RemoveFromDontAlwaysInclude) + + appendToAlwaysIncludeFiltered := hwutil.Filter(payload.AppendToAlwaysInclude, func(id uuid.UUID) bool { + // the intent of being in the "don't list" is stronger + // if an id is in both lists, it gets removed from the "always list" + _, inRemove := removeFromAlwaysInclude[id] + _, inRemoveFromDont := removeFromDontAlwaysInclude[id] + + return !inRemove && inRemoveFromDont + }) + + mapper := func(dontAlwaysInclude bool) func(uuid.UUID) views_repo.AddToAlwaysIncludeParams { + return func(propertyId uuid.UUID) views_repo.AddToAlwaysIncludeParams { + return views_repo.AddToAlwaysIncludeParams{ + RuleID: payload.RuleId, + PropertyID: propertyId, + DontAlwaysInclude: dontAlwaysInclude, + } + } + } + + appendToAlwaysInclude := hwutil.Map(appendToAlwaysIncludeFiltered, mapper(false)) + appendToDontAlwaysInclude := hwutil.Map(payload.AppendToDontAlwaysInclude, mapper(true)) + toAppend := slices.Concat(appendToAlwaysInclude, appendToDontAlwaysInclude) + + // before we can add new items, we have to make sure they don't already exist, or the whole copy operation will be canceled + err = viewsQuery.DeleteFromAlwaysInclude(ctx, views_repo.DeleteFromAlwaysIncludeParams{ + RuleID: payload.RuleId, + PropertyIds: hwutil.Map(toAppend, func(p views_repo.AddToAlwaysIncludeParams) uuid.UUID { + return p.PropertyID + }), + }) + if err != nil { + log.Error().Err(err).Msg("failed to clean up before appending to dont always include list") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + // now, add the new items + _, err = viewsQuery.AddToAlwaysInclude(ctx, toAppend) + if err != nil { + log.Error().Err(err).Msg("failed to append to lists") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + // finally, remove things from the lists + // we can not merge this with above queries, as we might have to remove things we just added + err = viewsQuery.DeleteFromAlwaysInclude(ctx, views_repo.DeleteFromAlwaysIncludeParams{ + RuleID: payload.RuleId, + PropertyIds: append(payload.RemoveFromAlwaysInclude, payload.RemoveFromDontAlwaysInclude...), + }) + + if err != nil { + log.Error().Err(err).Msg("failed to delete from always include list") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + err = tx.Commit(ctx) + if err != nil { + log.Error().Err(err).Msg("could not commit") + return err, hwutil.PtrTo(esdb.NackActionRetry) + } + + return nil, nil +} diff --git a/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres_test.go b/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres_test.go new file mode 100644 index 000000000..e3f19ebe4 --- /dev/null +++ b/services/property-svc/internal/property-view/projections/task_views_postgres/task_views_postgres_test.go @@ -0,0 +1,140 @@ +package task_views_postgres + +import ( + "bytes" + "context" + "github.com/EventStore/EventStore-Client-Go/v4/esdb" + "github.com/google/uuid" + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" + "github.com/pashagolub/pgxmock/v3" + "github.com/stretchr/testify/assert" + "hwdb" + "hwes" + "property-svc/internal/property-view/aggregate" + v1 "property-svc/internal/property-view/events/v1" + "strings" + "testing" + "text/template" + "time" +) + +type esClientStub struct{} + +func (e esClientStub) SubscribeToPersistentSubscriptionToAll(ctx context.Context, groupName string, options esdb.SubscribeToPersistentSubscriptionOptions) (*esdb.PersistentSubscription, error) { + return nil, nil +} + +func (e esClientStub) CreatePersistentSubscriptionToAll(ctx context.Context, groupName string, options esdb.PersistentAllSubscriptionOptions) error { + return nil +} + +func setup() (ctx context.Context, projection *Projection, dbMock pgxmock.PgxPoolIface, teardown func()) { + dbMock, err := pgxmock.NewPool() + if err != nil { + panic(err) + } + hwdb.TestingSetDB(dbMock) + teardown = dbMock.Close + + projection = NewProjection(esClientStub{}, "testing") + + ctx = context.Background() + + return ctx, projection, dbMock, teardown +} + +func TestPropertyViewTaskViewsProjection_Create_GreenPath(t *testing.T) { + ctx, projection, dbMock, teardown := setup() + defer teardown() + + dbMock.ExpectBeginTx(pgx.TxOptions{}) + dbMock.ExpectExec(`.*INSERT INTO property_view_rules.*`). + WithArgs(uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273")). + WillReturnResult(pgconn.NewCommandTag("INSERT 1")) + dbMock.ExpectExec(`.*INSERT INTO task_property_view_rules.*`). + WithArgs(uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), uuid.NullUUID{}, uuid.NullUUID{UUID: uuid.MustParse("bca23ec4-e8fd-407d-8e7d-0d0a52ba097f"), Valid: true}). + WillReturnResult(pgconn.NewCommandTag("INSERT 1")) + + dbMock.ExpectCopyFrom(pgx.Identifier{"property_view_filter_always_include_items"}, []string{"rule_id", "property_id", "dont_always_include"}).WillReturnResult(1) + dbMock.ExpectCopyFrom(pgx.Identifier{"property_view_filter_always_include_items"}, []string{"rule_id", "property_id", "dont_always_include"}).WillReturnResult(0) + + dbMock.ExpectCommit() + + data := []byte(`{ + "Matchers": { + "WardId": null, + "TaskId": "bca23ec4-e8fd-407d-8e7d-0d0a52ba097f" + }, + "AlwaysInclude": ["a7ff7a87-7787-42b4-9aa8-037293ac9d90"], + "DontAlwaysInclude": [], + "RuleId": "96e7ffe9-8b18-4e58-b2e1-a756fdbe1273" + }`) + + err, action := projection.onPropertyRuleCreated(ctx, hwes.Event{ + EventID: uuid.MustParse("227592bd-7aa0-4018-bcd4-c68fb06090ee"), + EventType: v1.PropertyRuleCreated, + AggregateID: uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), + AggregateType: aggregate.PropertyViewRuleAggregateType, + Data: data, + Timestamp: time.Time{}, // warning: nonsensical default value, but not relevant for this test + Version: 0, // warning: nonsensical default value, but not relevant for this test + CommitterUserID: nil, // warning: nonsensical default value, but not relevant for this test + }) + + assert.NoError(t, err) + assert.Nil(t, action) +} + +func TestPropertyViewTaskViewsProjection_Update_GreenPath(t *testing.T) { + ctx, projection, dbMock, teardown := setup() + defer teardown() + + dbMock.ExpectBeginTx(pgx.TxOptions{}) + dbMock.ExpectExec("DELETE FROM property_view_filter_always_include_items.*"). + WithArgs( + uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), + []uuid.UUID{uuid.MustParse("08b23992-9489-41d2-b80d-d7d49c4c9168"), uuid.MustParse("db59dd1b-fd1c-488e-a73c-6926abe68c34")}, + ). + WillReturnResult(pgconn.NewCommandTag("DELETE 1")) + + dbMock.ExpectCopyFrom(pgx.Identifier{"property_view_filter_always_include_items"}, []string{"rule_id", "property_id", "dont_always_include"}) + dbMock.ExpectExec("DELETE FROM property_view_filter_always_include_items.*"). + WithArgs( + uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), + []uuid.UUID{ + uuid.MustParse("a7ff7a87-7787-42b4-9aa8-037293ac9d90"), + uuid.MustParse("08b23992-9489-41d2-b80d-d7d49c4c9168"), + uuid.MustParse("08b23992-9489-41d2-b80d-d7d49c4c9168"), + }, + ). + WillReturnResult(pgconn.NewCommandTag("DELETE 1")) + dbMock.ExpectCommit() + + expData := `{ + "AppendToAlwaysInclude":[], + "RemoveFromAlwaysInclude":["a7ff7a87-7787-42b4-9aa8-037293ac9d90", "08b23992-9489-41d2-b80d-d7d49c4c9168"], + "AppendToDontAlwaysInclude":["08b23992-9489-41d2-b80d-d7d49c4c9168", "db59dd1b-fd1c-488e-a73c-6926abe68c34"], + "RemoveFromDontAlwaysInclude": ["08b23992-9489-41d2-b80d-d7d49c4c9168"], + "RuleId": "{{ . }}" + }` + s := "" + buf := bytes.NewBufferString(s) + tmplt, _ := template.New("").Parse(expData) + _ = tmplt.ExecuteTemplate(buf, "", strings.Split(aggregate.PropertyViewRuleAggregateType+"-96e7ffe9-8b18-4e58-b2e1-a756fdbe1273", aggregate.PropertyViewRuleAggregateType+"-")[1]) + data := buf.Bytes() + + err, action := projection.onPropertyRuleListsUpdated(ctx, hwes.Event{ + EventID: uuid.MustParse("227592bd-7aa0-4018-bcd4-c68fb06090ee"), + EventType: v1.PropertyRuleListsUpdated, + AggregateID: uuid.MustParse("96e7ffe9-8b18-4e58-b2e1-a756fdbe1273"), + AggregateType: aggregate.PropertyViewRuleAggregateType, + Data: data, + Timestamp: time.Time{}, // warning: nonsensical default value, but not relevant for this test + Version: 0, // warning: nonsensical default value, but not relevant for this test + CommitterUserID: nil, // warning: nonsensical default value, but not relevant for this test + }) + + assert.NoError(t, err) + assert.Nil(t, action) +} diff --git a/services/property-svc/internal/property/projections/property_postgres_projection/property_postgres_projection.go b/services/property-svc/internal/property/projections/property_postgres_projection/property_postgres_projection.go index 36cc8699d..563eba260 100644 --- a/services/property-svc/internal/property/projections/property_postgres_projection/property_postgres_projection.go +++ b/services/property-svc/internal/property/projections/property_postgres_projection/property_postgres_projection.go @@ -8,7 +8,6 @@ import ( "github.com/EventStore/EventStore-Client-Go/v4/esdb" "github.com/google/uuid" "github.com/jackc/pgx/v5" - "github.com/jackc/pgx/v5/pgxpool" zlog "github.com/rs/zerolog/log" "hwdb" "hwes" @@ -22,7 +21,7 @@ import ( type Projection struct { *custom.CustomProjection - db *pgxpool.Pool + db hwdb.DBTX propertyRepo *property_repo.Queries } diff --git a/services/property-svc/main.go b/services/property-svc/main.go index bd0c50202..ab5d82a5e 100644 --- a/services/property-svc/main.go +++ b/services/property-svc/main.go @@ -4,15 +4,18 @@ import ( "common" "context" pb "gen/proto/services/property_svc/v1" - daprd "github.com/dapr/go-sdk/service/grpc" - "github.com/rs/zerolog/log" "hwdb" "hwes/eventstoredb" propertySet "property-svc/internal/property-set/api" propertyValue "property-svc/internal/property-value/api" "property-svc/internal/property-value/projections/property_value_postgres_projection" + propertyViews "property-svc/internal/property-view/api" + "property-svc/internal/property-view/projections/task_views_postgres" property "property-svc/internal/property/api" "property-svc/internal/property/projections/property_postgres_projection" + + daprd "github.com/dapr/go-sdk/service/grpc" + "github.com/rs/zerolog/log" ) const ServiceName = "property-svc" @@ -46,12 +49,21 @@ func main() { } }() + go func() { + taskViewsPostgresProjection := task_views_postgres.NewProjection(eventStore, ServiceName) + if err := taskViewsPostgresProjection.Subscribe(ctx); err != nil { + log.Err(err).Msg("error during taskViewsPostgresProjection subscription") + cancel() + } + }() + common.StartNewGRPCServer(context.Background(), common.ResolveAddrFromEnv(), func(server *daprd.Server) { grpcServer := server.GrpcServer() pb.RegisterPropertyServiceServer(grpcServer, property.NewPropertyService(aggregateStore)) pb.RegisterPropertySetServiceServer(grpcServer, propertySet.NewPropertySetService(aggregateStore)) pb.RegisterPropertyValueServiceServer(grpcServer, propertyValue.NewPropertyValueService(aggregateStore)) + pb.RegisterPropertyViewsServiceServer(grpcServer, propertyViews.NewPropertyViewService(aggregateStore)) }) cancel() diff --git a/services/property-svc/migrations/000003_filters.down.sql b/services/property-svc/migrations/000003_filters.down.sql new file mode 100644 index 000000000..8d5a68063 --- /dev/null +++ b/services/property-svc/migrations/000003_filters.down.sql @@ -0,0 +1,3 @@ +DROP INDEX IF EXISTS idx_property_view_filter_always_include_items_rule_id; +DROP TABLE IF EXISTS property_view_filter_always_include_items; +DROP TABLE IF EXISTS property_view_rules; diff --git a/services/property-svc/migrations/000003_filters.up.sql b/services/property-svc/migrations/000003_filters.up.sql new file mode 100644 index 000000000..de53b8302 --- /dev/null +++ b/services/property-svc/migrations/000003_filters.up.sql @@ -0,0 +1,26 @@ + +-- the only purpose of this table is to keep track of all rule ids +-- when creating a new rule, an entry should be made not just in the specific matcher table, +-- but also here +-- more importantly, they should also be deleted together, +-- thus the filters have something to reference and can cascade-delete +CREATE TABLE IF NOT EXISTS property_view_rules (rule_id uuid PRIMARY KEY DEFAULT uuid_generate_v4()); + +CREATE TABLE IF NOT EXISTS property_view_filter_always_include_items ( + dont_always_include boolean NOT NULL, + -- true = this is an item in the dont_always_include list of the rule + -- false = this is an item in the always_include list of the rule + rule_id uuid NOT NULL, -- the rule this always_includes item belongs to + property_id uuid NOT NULL, -- the property to (not) always include + FOREIGN KEY (property_id) + REFERENCES properties (id) + ON DELETE CASCADE, + FOREIGN KEY (rule_id) + REFERENCES property_view_rules (rule_id) + ON DELETE CASCADE, + UNIQUE (rule_id, property_id) -- unique prevents a property to be in both lists (or in one multiple times) +); + +-- we will make lookups by rule_id, it cant be a PK, as it is not unique +CREATE INDEX IF NOT EXISTS idx_property_view_filter_always_include_items_rule_id + ON property_view_filter_always_include_items (rule_id); diff --git a/services/property-svc/migrations/000004_task_views.down.sql b/services/property-svc/migrations/000004_task_views.down.sql new file mode 100644 index 000000000..f7e9218fe --- /dev/null +++ b/services/property-svc/migrations/000004_task_views.down.sql @@ -0,0 +1 @@ +DROP TABLE IF EXISTS task_property_view_rules; diff --git a/services/property-svc/migrations/000004_task_views.up.sql b/services/property-svc/migrations/000004_task_views.up.sql new file mode 100644 index 000000000..ccff2d7e7 --- /dev/null +++ b/services/property-svc/migrations/000004_task_views.up.sql @@ -0,0 +1,9 @@ + +CREATE TABLE IF NOT EXISTS task_property_view_rules ( + ward_id uuid, + task_id uuid, + UNIQUE (ward_id, task_id) -- for one set of matchers, there can only be one rule + -- always_include and dont_always_include + -- are managed in property_view_filter_always_include_items +) INHERITS (property_view_rules); -- causes (non-ONLY) DELETE commands on this table to cascade to the rules table + -- WARNING: this does not apply to the INSERT command. YOU NEED TO DO A MANUAL INSERT INTO THE RULES TABLE! diff --git a/services/property-svc/migrations/000005_specificity.down.sql b/services/property-svc/migrations/000005_specificity.down.sql new file mode 100644 index 000000000..11e8d3432 --- /dev/null +++ b/services/property-svc/migrations/000005_specificity.down.sql @@ -0,0 +1 @@ +DROP FUNCTION IF EXISTS calc_rule_specificity; diff --git a/services/property-svc/migrations/000005_specificity.up.sql b/services/property-svc/migrations/000005_specificity.up.sql new file mode 100644 index 000000000..79ed4160f --- /dev/null +++ b/services/property-svc/migrations/000005_specificity.up.sql @@ -0,0 +1,29 @@ +-- calc_rule_specificity calculates a specificity akin to CSS' specificity [1] +-- matchers are provided in decreasing order of precedence +-- +-- ACCEPTS AT MOST 31 ARGUMENTS FOR THE LOVE OF GOD DONT GO OVER THAT LIMIT +-- +-- INTEGER is a number, but more importantly it's a string of 32 bits +-- the first bit is for signage (+/-), we keep it on 0. +-- this way we treat the result as a number, high precedent bit set -> number is greater +-- +-- +-- USAGE: +-- SELECT ..., calc_rule_specificity(highest_prio_field1 IS NOT NULL, highest_prio_field2 IS NOT NULL) as specificity FROM ...; +-- +-- [1]: https://developer.mozilla.org/en-US/docs/Web/CSS/Specificity +CREATE OR REPLACE FUNCTION calc_rule_specificity(VARIADIC args boolean[]) +RETURNS INTEGER AS +$$ +DECLARE + result INTEGER := 0; + i INT; +BEGIN + FOR i IN 1..COALESCE(array_length(args, 1), 0) + LOOP + result := result | args[i] :: integer << (31 - i); + END LOOP; + RETURN result; +END; +$$ +LANGUAGE plpgsql; diff --git a/services/property-svc/repos/property_repo/models.go b/services/property-svc/repos/property_repo/models.go index a3cd33b54..b97237228 100644 --- a/services/property-svc/repos/property_repo/models.go +++ b/services/property-svc/repos/property_repo/models.go @@ -32,6 +32,16 @@ type PropertyValue struct { SelectValue uuid.NullUUID } +type PropertyViewFilterAlwaysIncludeItem struct { + DontAlwaysInclude bool + RuleID uuid.UUID + PropertyID uuid.UUID +} + +type PropertyViewRule struct { + RuleID uuid.UUID +} + type SchemaMigration struct { Version int64 Dirty bool @@ -49,3 +59,9 @@ type SelectOption struct { IsCustom bool SelectDataID uuid.UUID } + +type TaskPropertyViewRule struct { + RuleID uuid.UUID + WardID uuid.NullUUID + TaskID uuid.NullUUID +} diff --git a/services/property-svc/repos/property_value_repo/models.go b/services/property-svc/repos/property_value_repo/models.go index 1f60aab6c..e40dbe98f 100644 --- a/services/property-svc/repos/property_value_repo/models.go +++ b/services/property-svc/repos/property_value_repo/models.go @@ -32,6 +32,16 @@ type PropertyValue struct { SelectValue uuid.NullUUID } +type PropertyViewFilterAlwaysIncludeItem struct { + DontAlwaysInclude bool + RuleID uuid.UUID + PropertyID uuid.UUID +} + +type PropertyViewRule struct { + RuleID uuid.UUID +} + type SchemaMigration struct { Version int64 Dirty bool @@ -49,3 +59,9 @@ type SelectOption struct { IsCustom bool SelectDataID uuid.UUID } + +type TaskPropertyViewRule struct { + RuleID uuid.UUID + WardID uuid.NullUUID + TaskID uuid.NullUUID +} diff --git a/services/property-svc/repos/task_views_repo.sql b/services/property-svc/repos/task_views_repo.sql new file mode 100644 index 000000000..5c79494d4 --- /dev/null +++ b/services/property-svc/repos/task_views_repo.sql @@ -0,0 +1,12 @@ +-- name: CreateTaskRule :exec +INSERT INTO task_property_view_rules (rule_id, ward_id, task_id) +VALUES (@rule_id, sqlc.narg('ward_id'), sqlc.narg('task_id')); -- NOTE: views_repo.CreateRule MUST be invoked with the same id in the same transaction!! + + +-- name: GetTaskRuleIdUsingExactMatchers :one +SELECT + rules.rule_id as rule_id + FROM task_property_view_rules as rules + WHERE + (rules.ward_id = sqlc.narg('ward_id') OR (rules.ward_id IS NULL AND sqlc.narg('ward_id') IS NULL)) + AND ((rules.task_id = sqlc.narg('task_id')) OR (rules.task_id IS NULL AND sqlc.narg('task_id') IS NULL)); diff --git a/services/property-svc/repos/task_views_repo/db.go b/services/property-svc/repos/task_views_repo/db.go new file mode 100644 index 000000000..21e5dd0c6 --- /dev/null +++ b/services/property-svc/repos/task_views_repo/db.go @@ -0,0 +1,32 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 + +package task_views_repo + +import ( + "context" + + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" +) + +type DBTX interface { + Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow(context.Context, string, ...interface{}) pgx.Row +} + +func New(db DBTX) *Queries { + return &Queries{db: db} +} + +type Queries struct { + db DBTX +} + +func (q *Queries) WithTx(tx pgx.Tx) *Queries { + return &Queries{ + db: tx, + } +} diff --git a/services/property-svc/repos/task_views_repo/models.go b/services/property-svc/repos/task_views_repo/models.go new file mode 100644 index 000000000..48c9438d3 --- /dev/null +++ b/services/property-svc/repos/task_views_repo/models.go @@ -0,0 +1,67 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 + +package task_views_repo + +import ( + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" +) + +type Property struct { + ID uuid.UUID + SubjectType int32 + FieldType int32 + Name string + Description string + IsArchived bool + SetID uuid.NullUUID + SelectDataID uuid.NullUUID +} + +type PropertyValue struct { + ID uuid.UUID + PropertyID uuid.UUID + SubjectID uuid.UUID + TextValue *string + NumberValue *float64 + BoolValue *bool + DateValue pgtype.Date + DateTimeValue pgtype.Timestamp + SelectValue uuid.NullUUID +} + +type PropertyViewFilterAlwaysIncludeItem struct { + DontAlwaysInclude bool + RuleID uuid.UUID + PropertyID uuid.UUID +} + +type PropertyViewRule struct { + RuleID uuid.UUID +} + +type SchemaMigration struct { + Version int64 + Dirty bool +} + +type SelectData struct { + ID uuid.UUID + AllowFreetext bool +} + +type SelectOption struct { + ID uuid.UUID + Name string + Description string + IsCustom bool + SelectDataID uuid.UUID +} + +type TaskPropertyViewRule struct { + RuleID uuid.UUID + WardID uuid.NullUUID + TaskID uuid.NullUUID +} diff --git a/services/property-svc/repos/task_views_repo/task_views_repo.sql.go b/services/property-svc/repos/task_views_repo/task_views_repo.sql.go new file mode 100644 index 000000000..335ac9958 --- /dev/null +++ b/services/property-svc/repos/task_views_repo/task_views_repo.sql.go @@ -0,0 +1,52 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 +// source: task_views_repo.sql + +package task_views_repo + +import ( + "context" + + "github.com/google/uuid" +) + +const createTaskRule = `-- name: CreateTaskRule :exec +INSERT INTO task_property_view_rules (rule_id, ward_id, task_id) +VALUES ($1, $2, $3) +` + +type CreateTaskRuleParams struct { + RuleID uuid.UUID + WardID uuid.NullUUID + TaskID uuid.NullUUID +} + +func (q *Queries) CreateTaskRule(ctx context.Context, arg CreateTaskRuleParams) error { + _, err := q.db.Exec(ctx, createTaskRule, arg.RuleID, arg.WardID, arg.TaskID) + return err +} + +const getTaskRuleIdUsingExactMatchers = `-- name: GetTaskRuleIdUsingExactMatchers :one + + +SELECT + rules.rule_id as rule_id + FROM task_property_view_rules as rules + WHERE + (rules.ward_id = $1 OR (rules.ward_id IS NULL AND $1 IS NULL)) + AND ((rules.task_id = $2) OR (rules.task_id IS NULL AND $2 IS NULL)) +` + +type GetTaskRuleIdUsingExactMatchersParams struct { + WardID uuid.NullUUID + TaskID uuid.NullUUID +} + +// NOTE: views_repo.CreateRule MUST be invoked with the same id in the same transaction!! +func (q *Queries) GetTaskRuleIdUsingExactMatchers(ctx context.Context, arg GetTaskRuleIdUsingExactMatchersParams) (uuid.UUID, error) { + row := q.db.QueryRow(ctx, getTaskRuleIdUsingExactMatchers, arg.WardID, arg.TaskID) + var rule_id uuid.UUID + err := row.Scan(&rule_id) + return rule_id, err +} diff --git a/services/property-svc/repos/views_repo.sql b/services/property-svc/repos/views_repo.sql new file mode 100644 index 000000000..bc53550f4 --- /dev/null +++ b/services/property-svc/repos/views_repo.sql @@ -0,0 +1,13 @@ + +-- name: CreateRule :exec +INSERT INTO property_view_rules (rule_id) VALUES (@id); + +-- name: AddToAlwaysInclude :copyfrom +INSERT INTO property_view_filter_always_include_items (rule_id, property_id, dont_always_include) VALUES ($1, $2, $3); + +-- name: DeleteFromAlwaysInclude :exec +DELETE FROM property_view_filter_always_include_items + WHERE ( + rule_id = @rule_id AND + property_id = ANY(@property_ids :: uuid[]) + ); diff --git a/services/property-svc/repos/views_repo/copyfrom.go b/services/property-svc/repos/views_repo/copyfrom.go new file mode 100644 index 000000000..efb66a954 --- /dev/null +++ b/services/property-svc/repos/views_repo/copyfrom.go @@ -0,0 +1,44 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 +// source: copyfrom.go + +package views_repo + +import ( + "context" +) + +// iteratorForAddToAlwaysInclude implements pgx.CopyFromSource. +type iteratorForAddToAlwaysInclude struct { + rows []AddToAlwaysIncludeParams + skippedFirstNextCall bool +} + +func (r *iteratorForAddToAlwaysInclude) Next() bool { + if len(r.rows) == 0 { + return false + } + if !r.skippedFirstNextCall { + r.skippedFirstNextCall = true + return true + } + r.rows = r.rows[1:] + return len(r.rows) > 0 +} + +func (r iteratorForAddToAlwaysInclude) Values() ([]interface{}, error) { + return []interface{}{ + r.rows[0].RuleID, + r.rows[0].PropertyID, + r.rows[0].DontAlwaysInclude, + }, nil +} + +func (r iteratorForAddToAlwaysInclude) Err() error { + return nil +} + +func (q *Queries) AddToAlwaysInclude(ctx context.Context, arg []AddToAlwaysIncludeParams) (int64, error) { + return q.db.CopyFrom(ctx, []string{"property_view_filter_always_include_items"}, []string{"rule_id", "property_id", "dont_always_include"}, &iteratorForAddToAlwaysInclude{rows: arg}) +} diff --git a/services/property-svc/repos/views_repo/db.go b/services/property-svc/repos/views_repo/db.go new file mode 100644 index 000000000..1a1328fa2 --- /dev/null +++ b/services/property-svc/repos/views_repo/db.go @@ -0,0 +1,33 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 + +package views_repo + +import ( + "context" + + "github.com/jackc/pgx/v5" + "github.com/jackc/pgx/v5/pgconn" +) + +type DBTX interface { + Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow(context.Context, string, ...interface{}) pgx.Row + CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) +} + +func New(db DBTX) *Queries { + return &Queries{db: db} +} + +type Queries struct { + db DBTX +} + +func (q *Queries) WithTx(tx pgx.Tx) *Queries { + return &Queries{ + db: tx, + } +} diff --git a/services/property-svc/repos/views_repo/models.go b/services/property-svc/repos/views_repo/models.go new file mode 100644 index 000000000..eabdba9c9 --- /dev/null +++ b/services/property-svc/repos/views_repo/models.go @@ -0,0 +1,67 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 + +package views_repo + +import ( + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" +) + +type Property struct { + ID uuid.UUID + SubjectType int32 + FieldType int32 + Name string + Description string + IsArchived bool + SetID uuid.NullUUID + SelectDataID uuid.NullUUID +} + +type PropertyValue struct { + ID uuid.UUID + PropertyID uuid.UUID + SubjectID uuid.UUID + TextValue *string + NumberValue *float64 + BoolValue *bool + DateValue pgtype.Date + DateTimeValue pgtype.Timestamp + SelectValue uuid.NullUUID +} + +type PropertyViewFilterAlwaysIncludeItem struct { + DontAlwaysInclude bool + RuleID uuid.UUID + PropertyID uuid.UUID +} + +type PropertyViewRule struct { + RuleID uuid.UUID +} + +type SchemaMigration struct { + Version int64 + Dirty bool +} + +type SelectData struct { + ID uuid.UUID + AllowFreetext bool +} + +type SelectOption struct { + ID uuid.UUID + Name string + Description string + IsCustom bool + SelectDataID uuid.UUID +} + +type TaskPropertyViewRule struct { + RuleID uuid.UUID + WardID uuid.NullUUID + TaskID uuid.NullUUID +} diff --git a/services/property-svc/repos/views_repo/views_repo.sql.go b/services/property-svc/repos/views_repo/views_repo.sql.go new file mode 100644 index 000000000..570ec0f18 --- /dev/null +++ b/services/property-svc/repos/views_repo/views_repo.sql.go @@ -0,0 +1,45 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.26.0 +// source: views_repo.sql + +package views_repo + +import ( + "context" + + "github.com/google/uuid" +) + +type AddToAlwaysIncludeParams struct { + RuleID uuid.UUID + PropertyID uuid.UUID + DontAlwaysInclude bool +} + +const createRule = `-- name: CreateRule :exec +INSERT INTO property_view_rules (rule_id) VALUES ($1) +` + +func (q *Queries) CreateRule(ctx context.Context, id uuid.UUID) error { + _, err := q.db.Exec(ctx, createRule, id) + return err +} + +const deleteFromAlwaysInclude = `-- name: DeleteFromAlwaysInclude :exec +DELETE FROM property_view_filter_always_include_items + WHERE ( + rule_id = $1 AND + property_id = ANY($2 :: uuid[]) + ) +` + +type DeleteFromAlwaysIncludeParams struct { + RuleID uuid.UUID + PropertyIds []uuid.UUID +} + +func (q *Queries) DeleteFromAlwaysInclude(ctx context.Context, arg DeleteFromAlwaysIncludeParams) error { + _, err := q.db.Exec(ctx, deleteFromAlwaysInclude, arg.RuleID, arg.PropertyIds) + return err +} diff --git a/services/property-svc/schema.sql b/services/property-svc/schema.sql index fe974004c..07bf65533 100644 --- a/services/property-svc/schema.sql +++ b/services/property-svc/schema.sql @@ -3,7 +3,7 @@ -- -- Dumped from database version 15.6 --- Dumped by pg_dump version 15.6 +-- Dumped by pg_dump version 15.7 SET statement_timeout = 0; SET lock_timeout = 0; @@ -30,6 +30,26 @@ CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)'; +-- +-- Name: calc_rule_specificity(boolean[]); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.calc_rule_specificity(VARIADIC args boolean[]) RETURNS integer + LANGUAGE plpgsql + AS $$ +DECLARE + result INTEGER := 0; + i INT; +BEGIN + FOR i IN 1..COALESCE(array_length(args, 1), 0) + LOOP + result := result | args[i] :: integer << (31 - i); + END LOOP; + RETURN result; +END; +$$; + + -- -- Name: does_select_option_belong_to_property(uuid, uuid); Type: FUNCTION; Schema: public; Owner: - -- @@ -92,6 +112,26 @@ CREATE TABLE public.property_values ( ); +-- +-- Name: property_view_filter_always_include_items; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.property_view_filter_always_include_items ( + dont_always_include boolean NOT NULL, + rule_id uuid NOT NULL, + property_id uuid NOT NULL +); + + +-- +-- Name: property_view_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.property_view_rules ( + rule_id uuid DEFAULT public.uuid_generate_v4() NOT NULL +); + + -- -- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - -- @@ -125,6 +165,24 @@ CREATE TABLE public.select_options ( ); +-- +-- Name: task_property_view_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.task_property_view_rules ( + ward_id uuid, + task_id uuid +) +INHERITS (public.property_view_rules); + + +-- +-- Name: task_property_view_rules rule_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.task_property_view_rules ALTER COLUMN rule_id SET DEFAULT public.uuid_generate_v4(); + + -- -- Name: properties properties_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -149,6 +207,22 @@ ALTER TABLE ONLY public.property_values ADD CONSTRAINT property_values_property_id_subject_id_key UNIQUE (property_id, subject_id); +-- +-- Name: property_view_filter_always_include_items property_view_filter_always_include_ite_rule_id_property_id_key; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.property_view_filter_always_include_items + ADD CONSTRAINT property_view_filter_always_include_ite_rule_id_property_id_key UNIQUE (rule_id, property_id); + + +-- +-- Name: property_view_rules property_view_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.property_view_rules + ADD CONSTRAINT property_view_rules_pkey PRIMARY KEY (rule_id); + + -- -- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- @@ -173,6 +247,14 @@ ALTER TABLE ONLY public.select_options ADD CONSTRAINT select_options_pkey PRIMARY KEY (id); +-- +-- Name: task_property_view_rules task_property_view_rules_ward_id_task_id_key; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.task_property_view_rules + ADD CONSTRAINT task_property_view_rules_ward_id_task_id_key UNIQUE (ward_id, task_id); + + -- -- Name: idx_property_subject; Type: INDEX; Schema: public; Owner: - -- @@ -180,6 +262,13 @@ ALTER TABLE ONLY public.select_options CREATE INDEX idx_property_subject ON public.property_values USING btree (property_id, subject_id); +-- +-- Name: idx_property_view_filter_always_include_items_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_property_view_filter_always_include_items_rule_id ON public.property_view_filter_always_include_items USING btree (rule_id); + + -- -- Name: properties properties_select_data_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- @@ -204,6 +293,22 @@ ALTER TABLE ONLY public.property_values ADD CONSTRAINT property_values_select_value_fkey FOREIGN KEY (select_value) REFERENCES public.select_options(id) ON DELETE CASCADE; +-- +-- Name: property_view_filter_always_include_items property_view_filter_always_include_items_property_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.property_view_filter_always_include_items + ADD CONSTRAINT property_view_filter_always_include_items_property_id_fkey FOREIGN KEY (property_id) REFERENCES public.properties(id) ON DELETE CASCADE; + + +-- +-- Name: property_view_filter_always_include_items property_view_filter_always_include_items_rule_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.property_view_filter_always_include_items + ADD CONSTRAINT property_view_filter_always_include_items_rule_id_fkey FOREIGN KEY (rule_id) REFERENCES public.property_view_rules(rule_id) ON DELETE CASCADE; + + -- -- Name: select_options select_options_select_data_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - -- diff --git a/services/property-svc/sqlc.yaml b/services/property-svc/sqlc.yaml index d1a05a67b..dc28b01eb 100644 --- a/services/property-svc/sqlc.yaml +++ b/services/property-svc/sqlc.yaml @@ -18,6 +18,20 @@ sql: - db_type: "uuid" go_type: "github.com/google/uuid.NullUUID" nullable: true + - <<: *repo + queries: "./repos/views_repo.sql" + gen: + go: + <<: *repo-go + package: "views_repo" + out: "repos/views_repo" + - <<: *repo + queries: "./repos/task_views_repo.sql" + gen: + go: + <<: *repo-go + package: "task_views_repo" + out: "repos/task_views_repo" - <<: *repo queries: "./repos/property_value_repo.sql" gen: diff --git a/services/task-svc/go.mod b/services/task-svc/go.mod index 68f3f4820..ed5de0956 100644 --- a/services/task-svc/go.mod +++ b/services/task-svc/go.mod @@ -58,7 +58,6 @@ require ( github.com/openzipkin/zipkin-go v0.4.2 // indirect github.com/pquerna/cachecontrol v0.2.0 // indirect github.com/redis/go-redis/v9 v9.5.1 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/vgarvardt/pgx-google-uuid/v5 v5.0.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/services/task-svc/repos/bed_repo/bed_repo.sql.go b/services/task-svc/repos/bed_repo/bed_repo.sql.go index dbf3d8a8c..8e43c742d 100644 --- a/services/task-svc/repos/bed_repo/bed_repo.sql.go +++ b/services/task-svc/repos/bed_repo/bed_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: bed_repo.sql package bed_repo diff --git a/services/task-svc/repos/bed_repo/db.go b/services/task-svc/repos/bed_repo/db.go index 71289875c..910986357 100644 --- a/services/task-svc/repos/bed_repo/db.go +++ b/services/task-svc/repos/bed_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package bed_repo diff --git a/services/task-svc/repos/bed_repo/models.go b/services/task-svc/repos/bed_repo/models.go index 93295bc17..2bcd54ef1 100644 --- a/services/task-svc/repos/bed_repo/models.go +++ b/services/task-svc/repos/bed_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package bed_repo diff --git a/services/task-svc/repos/patient_repo/db.go b/services/task-svc/repos/patient_repo/db.go index 1a1654d75..b280f8ba6 100644 --- a/services/task-svc/repos/patient_repo/db.go +++ b/services/task-svc/repos/patient_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package patient_repo diff --git a/services/task-svc/repos/patient_repo/models.go b/services/task-svc/repos/patient_repo/models.go index 6ec94a290..fc9df777d 100644 --- a/services/task-svc/repos/patient_repo/models.go +++ b/services/task-svc/repos/patient_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package patient_repo diff --git a/services/task-svc/repos/patient_repo/patient_repo.sql.go b/services/task-svc/repos/patient_repo/patient_repo.sql.go index cf1aa9ef0..12c07733a 100644 --- a/services/task-svc/repos/patient_repo/patient_repo.sql.go +++ b/services/task-svc/repos/patient_repo/patient_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: patient_repo.sql package patient_repo diff --git a/services/task-svc/repos/room_repo/db.go b/services/task-svc/repos/room_repo/db.go index 699606e53..149ece68e 100644 --- a/services/task-svc/repos/room_repo/db.go +++ b/services/task-svc/repos/room_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package room_repo diff --git a/services/task-svc/repos/room_repo/models.go b/services/task-svc/repos/room_repo/models.go index c883ac7d9..f3e32b937 100644 --- a/services/task-svc/repos/room_repo/models.go +++ b/services/task-svc/repos/room_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package room_repo diff --git a/services/task-svc/repos/room_repo/room_repo.sql.go b/services/task-svc/repos/room_repo/room_repo.sql.go index 911b39bd9..16abba87f 100644 --- a/services/task-svc/repos/room_repo/room_repo.sql.go +++ b/services/task-svc/repos/room_repo/room_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: room_repo.sql package room_repo diff --git a/services/task-svc/repos/task_repo/db.go b/services/task-svc/repos/task_repo/db.go index d2c138526..dacb50c87 100644 --- a/services/task-svc/repos/task_repo/db.go +++ b/services/task-svc/repos/task_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package task_repo diff --git a/services/task-svc/repos/task_repo/models.go b/services/task-svc/repos/task_repo/models.go index df62527f1..a5f0f5bbd 100644 --- a/services/task-svc/repos/task_repo/models.go +++ b/services/task-svc/repos/task_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package task_repo diff --git a/services/task-svc/repos/task_repo/task_repo.sql.go b/services/task-svc/repos/task_repo/task_repo.sql.go index ae83f4525..945ac6e55 100644 --- a/services/task-svc/repos/task_repo/task_repo.sql.go +++ b/services/task-svc/repos/task_repo/task_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: task_repo.sql package task_repo diff --git a/services/task-svc/repos/task_template_repo/copyfrom.go b/services/task-svc/repos/task_template_repo/copyfrom.go index f297bd252..401fd66cf 100644 --- a/services/task-svc/repos/task_template_repo/copyfrom.go +++ b/services/task-svc/repos/task_template_repo/copyfrom.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: copyfrom.go package task_template_repo diff --git a/services/task-svc/repos/task_template_repo/db.go b/services/task-svc/repos/task_template_repo/db.go index baf77e198..0c9dafb54 100644 --- a/services/task-svc/repos/task_template_repo/db.go +++ b/services/task-svc/repos/task_template_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package task_template_repo diff --git a/services/task-svc/repos/task_template_repo/models.go b/services/task-svc/repos/task_template_repo/models.go index 760b0ae88..9a9841fa4 100644 --- a/services/task-svc/repos/task_template_repo/models.go +++ b/services/task-svc/repos/task_template_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package task_template_repo diff --git a/services/task-svc/repos/task_template_repo/task_template_repo.sql.go b/services/task-svc/repos/task_template_repo/task_template_repo.sql.go index 78cdf0e9f..727ded5cc 100644 --- a/services/task-svc/repos/task_template_repo/task_template_repo.sql.go +++ b/services/task-svc/repos/task_template_repo/task_template_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: task_template_repo.sql package task_template_repo diff --git a/services/task-svc/repos/ward_repo/db.go b/services/task-svc/repos/ward_repo/db.go index 336e1c951..8f99a6ab7 100644 --- a/services/task-svc/repos/ward_repo/db.go +++ b/services/task-svc/repos/ward_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package ward_repo diff --git a/services/task-svc/repos/ward_repo/models.go b/services/task-svc/repos/ward_repo/models.go index 96b572874..6ce2a493f 100644 --- a/services/task-svc/repos/ward_repo/models.go +++ b/services/task-svc/repos/ward_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package ward_repo diff --git a/services/task-svc/repos/ward_repo/ward_repo.sql.go b/services/task-svc/repos/ward_repo/ward_repo.sql.go index e043b8952..c9b0339ac 100644 --- a/services/task-svc/repos/ward_repo/ward_repo.sql.go +++ b/services/task-svc/repos/ward_repo/ward_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: ward_repo.sql package ward_repo diff --git a/services/tasks-svc/go.sum b/services/tasks-svc/go.sum index e9cda4c0f..17361db00 100644 --- a/services/tasks-svc/go.sum +++ b/services/tasks-svc/go.sum @@ -2460,8 +2460,9 @@ github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= -github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ= github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= diff --git a/services/tasks-svc/schema.sql b/services/tasks-svc/schema.sql index e3c835f82..0f159297e 100644 --- a/services/tasks-svc/schema.sql +++ b/services/tasks-svc/schema.sql @@ -16,248 +16,6 @@ SET xmloption = content; SET client_min_messages = warning; SET row_security = off; --- --- Name: uuid-ossp; Type: EXTENSION; Schema: -; Owner: - --- - -CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; - - --- --- Name: EXTENSION "uuid-ossp"; Type: COMMENT; Schema: -; Owner: - --- - -COMMENT ON EXTENSION "uuid-ossp" IS 'generate universally unique identifiers (UUIDs)'; - - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: beds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.beds ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - room_id uuid NOT NULL, - name text DEFAULT 'Unnamed Bed'::text NOT NULL -); - - --- --- Name: patients; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.patients ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - human_readable_identifier text NOT NULL, - notes text DEFAULT ''::text NOT NULL, - bed_id uuid, - is_discharged integer DEFAULT 0 NOT NULL, - created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL, - updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL -); - - --- --- Name: rooms; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.rooms ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - name text NOT NULL, - ward_id uuid NOT NULL -); - - --- --- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.schema_migrations ( - version bigint NOT NULL, - dirty boolean NOT NULL -); - - --- --- Name: subtasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.subtasks ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - task_id uuid NOT NULL, - name text NOT NULL, - done boolean DEFAULT false NOT NULL, - created_by uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL, - creation_date timestamp without time zone DEFAULT CURRENT_TIMESTAMP -); - - --- --- Name: task_template_subtasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.task_template_subtasks ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - task_template_id uuid NOT NULL, - name text NOT NULL -); - - --- --- Name: task_templates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.task_templates ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - name text NOT NULL, - description text NOT NULL, - ward_id uuid, - created_by uuid NOT NULL -); - - --- --- Name: tasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.tasks ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - name text NOT NULL, - description text DEFAULT ''::text NOT NULL, - status integer NOT NULL, - assigned_user_id uuid DEFAULT public.uuid_nil(), - patient_id uuid NOT NULL, - public boolean DEFAULT false NOT NULL, - created_by uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL, - due_at timestamp without time zone DEFAULT '1970-01-01 00:00:00'::timestamp without time zone NOT NULL -); - - --- --- Name: wards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.wards ( - id uuid DEFAULT public.uuid_generate_v4() NOT NULL, - name text NOT NULL -); - - --- --- Name: beds beds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.beds - ADD CONSTRAINT beds_pkey PRIMARY KEY (id); - - --- --- Name: patients patients_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.patients - ADD CONSTRAINT patients_pkey PRIMARY KEY (id); - - --- --- Name: rooms rooms_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.rooms - ADD CONSTRAINT rooms_pkey PRIMARY KEY (id); - - --- --- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.schema_migrations - ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); - - --- --- Name: subtasks subtasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subtasks - ADD CONSTRAINT subtasks_pkey PRIMARY KEY (id); - - --- --- Name: task_template_subtasks task_template_subtasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.task_template_subtasks - ADD CONSTRAINT task_template_subtasks_pkey PRIMARY KEY (id); - - --- --- Name: task_templates task_templates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.task_templates - ADD CONSTRAINT task_templates_pkey PRIMARY KEY (id); - - --- --- Name: tasks tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.tasks - ADD CONSTRAINT tasks_pkey PRIMARY KEY (id); - - --- --- Name: wards wards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wards - ADD CONSTRAINT wards_pkey PRIMARY KEY (id); - - --- --- Name: beds beds_room_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.beds - ADD CONSTRAINT beds_room_id_fkey FOREIGN KEY (room_id) REFERENCES public.rooms(id) ON DELETE CASCADE; - - --- --- Name: rooms rooms_ward_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.rooms - ADD CONSTRAINT rooms_ward_id_fk FOREIGN KEY (ward_id) REFERENCES public.wards(id) ON DELETE CASCADE; - - --- --- Name: subtasks subtasks_task_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subtasks - ADD CONSTRAINT subtasks_task_id_fkey FOREIGN KEY (task_id) REFERENCES public.tasks(id) ON DELETE CASCADE; - - --- --- Name: task_template_subtasks task_template_subtasks_task_template_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.task_template_subtasks - ADD CONSTRAINT task_template_subtasks_task_template_id_fkey FOREIGN KEY (task_template_id) REFERENCES public.task_templates(id) ON DELETE CASCADE; - - --- --- Name: task_templates task_templates_ward_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.task_templates - ADD CONSTRAINT task_templates_ward_id_fkey FOREIGN KEY (ward_id) REFERENCES public.wards(id) ON DELETE CASCADE; - - -- -- PostgreSQL database dump complete -- diff --git a/services/user-svc/go.mod b/services/user-svc/go.mod index 00bb8487c..0f44fe33d 100644 --- a/services/user-svc/go.mod +++ b/services/user-svc/go.mod @@ -50,7 +50,6 @@ require ( github.com/nicksnyder/go-i18n/v2 v2.4.0 // indirect github.com/openzipkin/zipkin-go v0.4.2 // indirect github.com/pquerna/cachecontrol v0.2.0 // indirect - github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/vgarvardt/pgx-google-uuid/v5 v5.0.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.50.0 // indirect go.opentelemetry.io/otel v1.25.0 // indirect diff --git a/services/user-svc/repos/organization_repo/db.go b/services/user-svc/repos/organization_repo/db.go index 4c5c34075..8f3da632a 100644 --- a/services/user-svc/repos/organization_repo/db.go +++ b/services/user-svc/repos/organization_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package organization_repo diff --git a/services/user-svc/repos/organization_repo/models.go b/services/user-svc/repos/organization_repo/models.go index 4f3ff4517..7159cc04c 100644 --- a/services/user-svc/repos/organization_repo/models.go +++ b/services/user-svc/repos/organization_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package organization_repo diff --git a/services/user-svc/repos/organization_repo/organization_repo.sql.go b/services/user-svc/repos/organization_repo/organization_repo.sql.go index 0abcb04f9..211c052f9 100644 --- a/services/user-svc/repos/organization_repo/organization_repo.sql.go +++ b/services/user-svc/repos/organization_repo/organization_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: organization_repo.sql package organization_repo diff --git a/services/user-svc/repos/user_repo/db.go b/services/user-svc/repos/user_repo/db.go index 92d9c1c38..27c888550 100644 --- a/services/user-svc/repos/user_repo/db.go +++ b/services/user-svc/repos/user_repo/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package user_repo diff --git a/services/user-svc/repos/user_repo/models.go b/services/user-svc/repos/user_repo/models.go index 5d9c90025..4325a8d42 100644 --- a/services/user-svc/repos/user_repo/models.go +++ b/services/user-svc/repos/user_repo/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package user_repo diff --git a/services/user-svc/repos/user_repo/user_repo.sql.go b/services/user-svc/repos/user_repo/user_repo.sql.go index b814ec187..ed49a850e 100644 --- a/services/user-svc/repos/user_repo/user_repo.sql.go +++ b/services/user-svc/repos/user_repo/user_repo.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: user_repo.sql package user_repo