diff --git a/lib/src/gen/app/v1/app.pb.dart b/lib/src/gen/app/v1/app.pb.dart index 543caee9d96..888c882e06c 100644 --- a/lib/src/gen/app/v1/app.pb.dart +++ b/lib/src/gen/app/v1/app.pb.dart @@ -2499,6 +2499,150 @@ class UpdateBillingServiceResponse extends $pb.GeneratedMessage { static UpdateBillingServiceResponse? _defaultInstance; } +class GetBillingServiceConfigRequest extends $pb.GeneratedMessage { + factory GetBillingServiceConfigRequest({ + $core.String? orgId, + }) { + final $result = create(); + if (orgId != null) { + $result.orgId = orgId; + } + return $result; + } + GetBillingServiceConfigRequest._() : super(); + factory GetBillingServiceConfigRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetBillingServiceConfigRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBillingServiceConfigRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOS(1, _omitFieldNames ? '' : 'orgId') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetBillingServiceConfigRequest clone() => GetBillingServiceConfigRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBillingServiceConfigRequest copyWith(void Function(GetBillingServiceConfigRequest) updates) => super.copyWith((message) => updates(message as GetBillingServiceConfigRequest)) as GetBillingServiceConfigRequest; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetBillingServiceConfigRequest create() => GetBillingServiceConfigRequest._(); + GetBillingServiceConfigRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetBillingServiceConfigRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBillingServiceConfigRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get orgId => $_getSZ(0); + @$pb.TagNumber(1) + set orgId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasOrgId() => $_has(0); + @$pb.TagNumber(1) + void clearOrgId() => clearField(1); +} + +class GetBillingServiceConfigResponse extends $pb.GeneratedMessage { + factory GetBillingServiceConfigResponse({ + BillingAddress? billingAddress, + $core.String? supportEmail, + $core.String? logoUrl, + $core.String? billingDashboardUrl, + }) { + final $result = create(); + if (billingAddress != null) { + $result.billingAddress = billingAddress; + } + if (supportEmail != null) { + $result.supportEmail = supportEmail; + } + if (logoUrl != null) { + $result.logoUrl = logoUrl; + } + if (billingDashboardUrl != null) { + $result.billingDashboardUrl = billingDashboardUrl; + } + return $result; + } + GetBillingServiceConfigResponse._() : super(); + factory GetBillingServiceConfigResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetBillingServiceConfigResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetBillingServiceConfigResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'viam.app.v1'), createEmptyInstance: create) + ..aOM(1, _omitFieldNames ? '' : 'billingAddress', subBuilder: BillingAddress.create) + ..aOS(2, _omitFieldNames ? '' : 'supportEmail') + ..aOS(3, _omitFieldNames ? '' : 'logoUrl') + ..aOS(4, _omitFieldNames ? '' : 'billingDashboardUrl') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + GetBillingServiceConfigResponse clone() => GetBillingServiceConfigResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + GetBillingServiceConfigResponse copyWith(void Function(GetBillingServiceConfigResponse) updates) => super.copyWith((message) => updates(message as GetBillingServiceConfigResponse)) as GetBillingServiceConfigResponse; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static GetBillingServiceConfigResponse create() => GetBillingServiceConfigResponse._(); + GetBillingServiceConfigResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static GetBillingServiceConfigResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetBillingServiceConfigResponse? _defaultInstance; + + @$pb.TagNumber(1) + BillingAddress get billingAddress => $_getN(0); + @$pb.TagNumber(1) + set billingAddress(BillingAddress v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasBillingAddress() => $_has(0); + @$pb.TagNumber(1) + void clearBillingAddress() => clearField(1); + @$pb.TagNumber(1) + BillingAddress ensureBillingAddress() => $_ensure(0); + + @$pb.TagNumber(2) + $core.String get supportEmail => $_getSZ(1); + @$pb.TagNumber(2) + set supportEmail($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasSupportEmail() => $_has(1); + @$pb.TagNumber(2) + void clearSupportEmail() => clearField(2); + + @$pb.TagNumber(3) + $core.String get logoUrl => $_getSZ(2); + @$pb.TagNumber(3) + set logoUrl($core.String v) { $_setString(2, v); } + @$pb.TagNumber(3) + $core.bool hasLogoUrl() => $_has(2); + @$pb.TagNumber(3) + void clearLogoUrl() => clearField(3); + + @$pb.TagNumber(4) + $core.String get billingDashboardUrl => $_getSZ(3); + @$pb.TagNumber(4) + set billingDashboardUrl($core.String v) { $_setString(3, v); } + @$pb.TagNumber(4) + $core.bool hasBillingDashboardUrl() => $_has(3); + @$pb.TagNumber(4) + void clearBillingDashboardUrl() => clearField(4); +} + class DisableBillingServiceRequest extends $pb.GeneratedMessage { factory DisableBillingServiceRequest({ $core.String? orgId, diff --git a/lib/src/gen/app/v1/app.pbgrpc.dart b/lib/src/gen/app/v1/app.pbgrpc.dart index 79a7aaec304..a4922c6828c 100644 --- a/lib/src/gen/app/v1/app.pbgrpc.dart +++ b/lib/src/gen/app/v1/app.pbgrpc.dart @@ -93,6 +93,10 @@ class AppServiceClient extends $grpc.Client { '/viam.app.v1.AppService/UpdateBillingService', ($9.UpdateBillingServiceRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $9.UpdateBillingServiceResponse.fromBuffer(value)); + static final _$getBillingServiceConfig = $grpc.ClientMethod<$9.GetBillingServiceConfigRequest, $9.GetBillingServiceConfigResponse>( + '/viam.app.v1.AppService/GetBillingServiceConfig', + ($9.GetBillingServiceConfigRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $9.GetBillingServiceConfigResponse.fromBuffer(value)); static final _$organizationSetSupportEmail = $grpc.ClientMethod<$9.OrganizationSetSupportEmailRequest, $9.OrganizationSetSupportEmailResponse>( '/viam.app.v1.AppService/OrganizationSetSupportEmail', ($9.OrganizationSetSupportEmailRequest value) => value.writeToBuffer(), @@ -412,6 +416,10 @@ class AppServiceClient extends $grpc.Client { return $createUnaryCall(_$updateBillingService, request, options: options); } + $grpc.ResponseFuture<$9.GetBillingServiceConfigResponse> getBillingServiceConfig($9.GetBillingServiceConfigRequest request, {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getBillingServiceConfig, request, options: options); + } + $grpc.ResponseFuture<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail($9.OrganizationSetSupportEmailRequest request, {$grpc.CallOptions? options}) { return $createUnaryCall(_$organizationSetSupportEmail, request, options: options); } @@ -784,6 +792,13 @@ abstract class AppServiceBase extends $grpc.Service { false, ($core.List<$core.int> value) => $9.UpdateBillingServiceRequest.fromBuffer(value), ($9.UpdateBillingServiceResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$9.GetBillingServiceConfigRequest, $9.GetBillingServiceConfigResponse>( + 'GetBillingServiceConfig', + getBillingServiceConfig_Pre, + false, + false, + ($core.List<$core.int> value) => $9.GetBillingServiceConfigRequest.fromBuffer(value), + ($9.GetBillingServiceConfigResponse value) => value.writeToBuffer())); $addMethod($grpc.ServiceMethod<$9.OrganizationSetSupportEmailRequest, $9.OrganizationSetSupportEmailResponse>( 'OrganizationSetSupportEmail', organizationSetSupportEmail_Pre, @@ -1278,6 +1293,10 @@ abstract class AppServiceBase extends $grpc.Service { return updateBillingService(call, await request); } + $async.Future<$9.GetBillingServiceConfigResponse> getBillingServiceConfig_Pre($grpc.ServiceCall call, $async.Future<$9.GetBillingServiceConfigRequest> request) async { + return getBillingServiceConfig(call, await request); + } + $async.Future<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail_Pre($grpc.ServiceCall call, $async.Future<$9.OrganizationSetSupportEmailRequest> request) async { return organizationSetSupportEmail(call, await request); } @@ -1532,6 +1551,7 @@ abstract class AppServiceBase extends $grpc.Service { $async.Future<$9.EnableBillingServiceResponse> enableBillingService($grpc.ServiceCall call, $9.EnableBillingServiceRequest request); $async.Future<$9.DisableBillingServiceResponse> disableBillingService($grpc.ServiceCall call, $9.DisableBillingServiceRequest request); $async.Future<$9.UpdateBillingServiceResponse> updateBillingService($grpc.ServiceCall call, $9.UpdateBillingServiceRequest request); + $async.Future<$9.GetBillingServiceConfigResponse> getBillingServiceConfig($grpc.ServiceCall call, $9.GetBillingServiceConfigRequest request); $async.Future<$9.OrganizationSetSupportEmailResponse> organizationSetSupportEmail($grpc.ServiceCall call, $9.OrganizationSetSupportEmailRequest request); $async.Future<$9.OrganizationGetSupportEmailResponse> organizationGetSupportEmail($grpc.ServiceCall call, $9.OrganizationGetSupportEmailRequest request); $async.Future<$9.CreateLocationResponse> createLocation($grpc.ServiceCall call, $9.CreateLocationRequest request); diff --git a/lib/src/gen/app/v1/app.pbjson.dart b/lib/src/gen/app/v1/app.pbjson.dart index 63118b5d2aa..b218e057c80 100644 --- a/lib/src/gen/app/v1/app.pbjson.dart +++ b/lib/src/gen/app/v1/app.pbjson.dart @@ -668,6 +668,37 @@ const UpdateBillingServiceResponse$json = { final $typed_data.Uint8List updateBillingServiceResponseDescriptor = $convert.base64Decode( 'ChxVcGRhdGVCaWxsaW5nU2VydmljZVJlc3BvbnNl'); +@$core.Deprecated('Use getBillingServiceConfigRequestDescriptor instead') +const GetBillingServiceConfigRequest$json = { + '1': 'GetBillingServiceConfigRequest', + '2': [ + {'1': 'org_id', '3': 1, '4': 1, '5': 9, '10': 'orgId'}, + ], +}; + +/// Descriptor for `GetBillingServiceConfigRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getBillingServiceConfigRequestDescriptor = $convert.base64Decode( + 'Ch5HZXRCaWxsaW5nU2VydmljZUNvbmZpZ1JlcXVlc3QSFQoGb3JnX2lkGAEgASgJUgVvcmdJZA' + '=='); + +@$core.Deprecated('Use getBillingServiceConfigResponseDescriptor instead') +const GetBillingServiceConfigResponse$json = { + '1': 'GetBillingServiceConfigResponse', + '2': [ + {'1': 'billing_address', '3': 1, '4': 1, '5': 11, '6': '.viam.app.v1.BillingAddress', '10': 'billingAddress'}, + {'1': 'support_email', '3': 2, '4': 1, '5': 9, '10': 'supportEmail'}, + {'1': 'logo_url', '3': 3, '4': 1, '5': 9, '10': 'logoUrl'}, + {'1': 'billing_dashboard_url', '3': 4, '4': 1, '5': 9, '10': 'billingDashboardUrl'}, + ], +}; + +/// Descriptor for `GetBillingServiceConfigResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getBillingServiceConfigResponseDescriptor = $convert.base64Decode( + 'Ch9HZXRCaWxsaW5nU2VydmljZUNvbmZpZ1Jlc3BvbnNlEkQKD2JpbGxpbmdfYWRkcmVzcxgBIA' + 'EoCzIbLnZpYW0uYXBwLnYxLkJpbGxpbmdBZGRyZXNzUg5iaWxsaW5nQWRkcmVzcxIjCg1zdXBw' + 'b3J0X2VtYWlsGAIgASgJUgxzdXBwb3J0RW1haWwSGQoIbG9nb191cmwYAyABKAlSB2xvZ29Vcm' + 'wSMgoVYmlsbGluZ19kYXNoYm9hcmRfdXJsGAQgASgJUhNiaWxsaW5nRGFzaGJvYXJkVXJs'); + @$core.Deprecated('Use disableBillingServiceRequestDescriptor instead') const DisableBillingServiceRequest$json = { '1': 'DisableBillingServiceRequest', diff --git a/lib/src/utils.dart b/lib/src/utils.dart index 432360e51fa..327f81a9a98 100644 --- a/lib/src/utils.dart +++ b/lib/src/utils.dart @@ -94,7 +94,7 @@ grpc_duration.Duration durationToProto(Duration duration) { String getVersionMetadata() { const String sdkVersion = 'v0.0.26'; - const String apiTag = 'v0.1.360'; + const String apiTag = 'v0.1.361'; return 'flutter;$sdkVersion;$apiTag'; }