diff --git a/history/.eslintrc.json b/history/.eslintrc.json index e559f11..c14412e 100644 --- a/history/.eslintrc.json +++ b/history/.eslintrc.json @@ -1,3 +1,4 @@ { - "extends": "../eslintrc.base.json" + "extends": "../eslintrc.base.json", + "ignorePatterns": ["proto"] } diff --git a/history/package.json b/history/package.json index 09a4e87..b702f98 100644 --- a/history/package.json +++ b/history/package.json @@ -19,7 +19,8 @@ "db:migrate": "knex --knexfile ./src/config/database.ts migrate:latest", "db:rollback": "knex --knexfile ./src/config/database.ts migrate:rollback", "db:create:seed": "knex --knexfile ./src/config/database.ts seed:make -x ts", - "db:seed": "knex --knexfile ./src/config/database.ts seed:run" + "db:seed": "knex --knexfile ./src/config/database.ts seed:run", + "codegen:notifications": "cd src/services/notifications/proto && buf generate" }, "dependencies": { "@grpc/grpc-js": "^1.9.12", @@ -39,6 +40,7 @@ "ajv": "^8.12.0", "ccxt": "^4.1.70", "dotenv": "^16.0.3", + "google-protobuf": "^3.21.2", "grpc-health-check": "^2.0.0", "js-yaml": "^4.1.0", "knex": "^3.0.1", @@ -46,5 +48,10 @@ "node-cron": "^3.0.3", "pg": "^8.11.0", "pino": "^8.16.2" + }, + "devDependencies": { + "grpc-tools": "^1.12.4", + "grpc_tools_node_protoc_ts": "^5.3.3", + "protoc-gen-js": "^3.21.2" } } diff --git a/history/src/app/history/index.ts b/history/src/app/history/index.ts index 24398cc..7fe9098 100644 --- a/history/src/app/history/index.ts +++ b/history/src/app/history/index.ts @@ -1,2 +1,3 @@ export * from "./get-price-history" export * from "./update-price-history" +export * from "./notify-price-change" diff --git a/history/src/app/history/notify-price-change.ts b/history/src/app/history/notify-price-change.ts new file mode 100644 index 0000000..26be930 --- /dev/null +++ b/history/src/app/history/notify-price-change.ts @@ -0,0 +1,36 @@ +import { defaultBaseCurrency } from "@config" +import { PriceRange, PriceRepositoryError } from "@domain/price" +import { checkedToCurrency } from "@domain/primitives" +import { PriceRepository } from "@services/database" +import { NotificationsService } from "@services/notifications" + +export const notifyPriceChange = async (): Promise => { + const quote = checkedToCurrency("USD") + + if (quote instanceof Error) { + return quote + } + + const rangeToQuery = PriceRange.OneDay + const prices = await PriceRepository().listPrices({ + base: defaultBaseCurrency, + quote, + range: rangeToQuery, + }) + + if (prices instanceof PriceRepositoryError) { + return prices + } + + if (prices.length < 2) { + return false + } + + const notificationsService = NotificationsService() + + return notificationsService.priceChanged({ + initialPrice: prices[0], + finalPrice: prices[prices.length - 1], + range: rangeToQuery, + }) +} diff --git a/history/src/config/process.ts b/history/src/config/process.ts index 05cf061..7c21b42 100644 --- a/history/src/config/process.ts +++ b/history/src/config/process.ts @@ -12,3 +12,6 @@ export const databaseConfig = { poolMax: parseInt(process.env.DB_POOL_MAX || "", 10) || 5, debug: process.env.DB_DEBUG === "true", } + +export const notificationsEndpoint = + process.env.NOTIFICATIONS_ENDPOINT || "localhost:6685" diff --git a/history/src/domain/notifications/errors.ts b/history/src/domain/notifications/errors.ts new file mode 100644 index 0000000..be9dd72 --- /dev/null +++ b/history/src/domain/notifications/errors.ts @@ -0,0 +1,6 @@ +import { ErrorLevel, ServiceError } from "../errors" + +export class NotificationsServiceError extends ServiceError {} +export class UnknownNotificationServiceError extends NotificationsServiceError { + level = ErrorLevel.Critical +} diff --git a/history/src/domain/notifications/index.ts b/history/src/domain/notifications/index.ts new file mode 100644 index 0000000..a079f46 --- /dev/null +++ b/history/src/domain/notifications/index.ts @@ -0,0 +1 @@ +export * from "./errors" diff --git a/history/src/domain/notifications/index.types.d.ts b/history/src/domain/notifications/index.types.d.ts new file mode 100644 index 0000000..d94cca6 --- /dev/null +++ b/history/src/domain/notifications/index.types.d.ts @@ -0,0 +1,11 @@ +type NotificationsServiceError = import("./errors").NotificationsServiceError + +interface INotificationsService { + priceChanged(args: PriceChangedArgs): Promise +} + +type PriceChangedArgs = { + range: PriceRange + initialPrice: Tick + finalPrice: Tick +} diff --git a/history/src/servers/history/cron.ts b/history/src/servers/history/cron.ts index 6f4065b..80c3a0f 100644 --- a/history/src/servers/history/cron.ts +++ b/history/src/servers/history/cron.ts @@ -8,6 +8,7 @@ dotenv.config() const startServer = async () => { await History.updatePriceHistory() + await History.notifyPriceChange() await closeDbConnections() } diff --git a/history/src/services/notifications/grpc-client.ts b/history/src/services/notifications/grpc-client.ts new file mode 100644 index 0000000..2a9b535 --- /dev/null +++ b/history/src/services/notifications/grpc-client.ts @@ -0,0 +1,38 @@ +import { promisify } from "util" + +import { credentials, Metadata } from "@grpc/grpc-js" + +import { NotificationsServiceClient } from "./proto/notifications_grpc_pb" +import { + HandleNotificationEventRequest, + HandleNotificationEventResponse, +} from "./proto/notifications_pb" + +export type GrpcNotificationsClientConfig = { + notificationsApi: string +} + +export const GrpcNotificationsClient = ({ + notificationsApi, +}: GrpcNotificationsClientConfig) => { + const notificationsClient = new NotificationsServiceClient( + notificationsApi, + credentials.createInsecure(), + ) + const metadata = new Metadata() + + const handleNotificationEvent = (request: HandleNotificationEventRequest) => { + return promisify< + HandleNotificationEventRequest, + Metadata, + HandleNotificationEventResponse + >(notificationsClient.handleNotificationEvent.bind(notificationsClient))( + request, + metadata, + ) + } + + return { + handleNotificationEvent, + } +} diff --git a/history/src/services/notifications/index.ts b/history/src/services/notifications/index.ts new file mode 100644 index 0000000..35ee0a2 --- /dev/null +++ b/history/src/services/notifications/index.ts @@ -0,0 +1,40 @@ +import { notificationsEndpoint } from "@config" +import { + NotificationsServiceError, + UnknownNotificationServiceError, +} from "@domain/notifications" + +import { GrpcNotificationsClient } from "./grpc-client" +import { createPriceChangedEvent } from "./price-changed-event" +import { + HandleNotificationEventRequest, + NotificationEvent, +} from "./proto/notifications_pb" + +export const NotificationsService = (): INotificationsService => { + const grpcClient = GrpcNotificationsClient({ + notificationsApi: notificationsEndpoint, + }) + + const priceChanged = async ( + args: PriceChangedArgs, + ): Promise => { + try { + const req = new HandleNotificationEventRequest() + const event = new NotificationEvent() + const priceChangedEvent = createPriceChangedEvent(args) + event.setPrice(priceChangedEvent) + req.setEvent(event) + await grpcClient.handleNotificationEvent(req) + return true + } catch (err) { + if (err instanceof Error) { + return new NotificationsServiceError(err.message) + } + return new UnknownNotificationServiceError(err.toString()) + } + } + return { + priceChanged, + } +} diff --git a/history/src/services/notifications/price-changed-event.ts b/history/src/services/notifications/price-changed-event.ts new file mode 100644 index 0000000..ffa9f76 --- /dev/null +++ b/history/src/services/notifications/price-changed-event.ts @@ -0,0 +1,28 @@ +import { Money, PriceChangeDirection, PriceChanged } from "./proto/notifications_pb" + +export const createPriceChangedEvent = ({ + initialPrice, + finalPrice, +}: PriceChangedArgs) => { + const priceChange = calculatePriceChangePercentage(initialPrice.price, finalPrice.price) + + const priceOfOneBitcoin = new Money() + priceOfOneBitcoin.setMinorUnits(usdMajorUnitToMinorUnit(finalPrice.price)) + priceOfOneBitcoin.setCurrencyCode("USD") + + const priceChangedEvent = new PriceChanged() + priceChangedEvent.setPriceOfOneBitcoin(priceOfOneBitcoin) + priceChangedEvent.setDirection(priceChange.direction) + priceChangedEvent.setPriceChangePercentage(priceChange.percentage) + return priceChangedEvent +} + +const usdMajorUnitToMinorUnit = (usd: number) => usd * 100 + +const calculatePriceChangePercentage = (initialPrice: Price, finalPrice: Price) => { + const percentage = Math.abs(((finalPrice - initialPrice) / initialPrice) * 100) + + const direction = + finalPrice > initialPrice ? PriceChangeDirection.UP : PriceChangeDirection.DOWN + return { percentage, direction } +} diff --git a/history/src/services/notifications/proto/buf.gen.yaml b/history/src/services/notifications/proto/buf.gen.yaml new file mode 100644 index 0000000..4afda94 --- /dev/null +++ b/history/src/services/notifications/proto/buf.gen.yaml @@ -0,0 +1,15 @@ +# /proto/buf.gen.yaml +version: v1 + +plugins: + - name: js + out: . + opt: import_style=commonjs,binary + - name: grpc + out: . + opt: grpc_js + path: grpc_tools_node_protoc_plugin + - name: ts + out: . + opt: grpc_js + path: protoc-gen-ts diff --git a/history/src/services/notifications/proto/notifications.proto b/history/src/services/notifications/proto/notifications.proto new file mode 100644 index 0000000..0c8aff0 --- /dev/null +++ b/history/src/services/notifications/proto/notifications.proto @@ -0,0 +1,236 @@ +syntax = "proto3"; + +import "google/protobuf/struct.proto"; + +package services.notifications.v1; + +service NotificationsService { + rpc ShouldSendNotification (ShouldSendNotificationRequest) returns (ShouldSendNotificationResponse) {} + rpc EnableNotificationChannel (EnableNotificationChannelRequest) returns (EnableNotificationChannelResponse) {} + rpc DisableNotificationChannel (DisableNotificationChannelRequest) returns (DisableNotificationChannelResponse) {} + rpc EnableNotificationCategory (EnableNotificationCategoryRequest) returns (EnableNotificationCategoryResponse) {} + rpc DisableNotificationCategory (DisableNotificationCategoryRequest) returns (DisableNotificationCategoryResponse) {} + rpc GetNotificationSettings (GetNotificationSettingsRequest) returns (GetNotificationSettingsResponse) {} + rpc UpdateUserLocale (UpdateUserLocaleRequest) returns (UpdateUserLocaleResponse) {} + rpc AddPushDeviceToken (AddPushDeviceTokenRequest) returns (AddPushDeviceTokenResponse) {} + rpc RemovePushDeviceToken (RemovePushDeviceTokenRequest) returns (RemovePushDeviceTokenResponse) {} + rpc UpdateEmailAddress (UpdateEmailAddressRequest) returns (UpdateEmailAddressResponse) {} + rpc RemoveEmailAddress (RemoveEmailAddressRequest) returns (RemoveEmailAddressResponse) {} + rpc HandleNotificationEvent (HandleNotificationEventRequest) returns (HandleNotificationEventResponse) {} +} + +enum NotificationChannel { + PUSH = 0; +} + +enum NotificationCategory { + CIRCLES = 0; + PAYMENTS = 1; + BALANCE = 2; + ADMIN_NOTIFICATION = 3; +} + +message ShouldSendNotificationRequest { + string user_id = 1; + NotificationChannel channel = 2; + NotificationCategory category = 3; +} + +message ShouldSendNotificationResponse { + string user_id = 1; + bool should_send = 2; +} + +message EnableNotificationChannelRequest { + string user_id = 1; + NotificationChannel channel = 2; +} + +message EnableNotificationChannelResponse { + NotificationSettings notification_settings = 1; +} + +message NotificationSettings { + ChannelNotificationSettings push = 1; + optional string locale = 2; + repeated string push_device_tokens = 3; +} + +message ChannelNotificationSettings { + bool enabled = 1; + repeated NotificationCategory disabled_categories = 2; +} + +message DisableNotificationChannelRequest { + string user_id = 1; + NotificationChannel channel = 2; +} + +message DisableNotificationChannelResponse { + NotificationSettings notification_settings = 1; +} + +message DisableNotificationCategoryRequest { + string user_id = 1; + NotificationChannel channel = 2; + NotificationCategory category = 3; +} + +message DisableNotificationCategoryResponse { + NotificationSettings notification_settings = 1; +} + +message EnableNotificationCategoryRequest { + string user_id = 1; + NotificationChannel channel = 2; + NotificationCategory category = 3; +} + +message EnableNotificationCategoryResponse { + NotificationSettings notification_settings = 1; +} + +message GetNotificationSettingsRequest { + string user_id = 1; +} + +message GetNotificationSettingsResponse { + NotificationSettings notification_settings = 1; +} + +message UpdateUserLocaleRequest { + string user_id = 1; + string locale = 2; +} + +message UpdateUserLocaleResponse { + NotificationSettings notification_settings = 1; +} + +message AddPushDeviceTokenRequest { + string user_id = 1; + string device_token = 2; +} + +message AddPushDeviceTokenResponse { + NotificationSettings notification_settings = 1; +} + +message RemovePushDeviceTokenRequest { + string user_id = 1; + string device_token = 2; +} + +message RemovePushDeviceTokenResponse { + NotificationSettings notification_settings = 1; +} + +message UpdateEmailAddressRequest { + string user_id = 1; + string email_address = 2; +} + +message UpdateEmailAddressResponse { } + +message RemoveEmailAddressRequest { + string user_id = 1; +} + +message RemoveEmailAddressResponse { } + +message HandleNotificationEventRequest { + NotificationEvent event = 1; +} + +message HandleNotificationEventResponse { } + +message NotificationEvent { + oneof data { + CircleGrew circle_grew = 1; + CircleThresholdReached circle_threshold_reached = 2; + IdentityVerificationApproved identity_verification_approved = 3; + IdentityVerificationDeclined identity_verification_declined = 4; + IdentityVerificationReviewStarted identity_verification_review_started = 5; + TransactionInfo transaction = 6; + PriceChanged price = 7; + } +} + +enum CircleType { + INNER = 0; + OUTER = 1; +} + +message CircleGrew { + string user_id = 1; + CircleType circle_type = 2; + uint32 this_month_circle_size = 3; + uint32 all_time_circle_size = 4; +} + +enum CircleTimeFrame { + MONTH = 0; + ALL_TIME = 1; +} + +message CircleThresholdReached { + string user_id = 1; + CircleType circle_type = 2; + CircleTimeFrame time_frame = 3; + uint32 threshold = 4; +} + +message IdentityVerificationApproved { + string user_id = 1; +} + +enum DeclinedReason { + DOCUMENTS_NOT_CLEAR = 0; + VERIFICATION_PHOTO_NOT_CLEAR = 1; + DOCUMENTS_NOT_SUPPORTED = 2; + DOCUMENTS_EXPIRED = 3; + DOCUMENTS_DO_NOT_MATCH = 4; + OTHER = 5; +} + +message IdentityVerificationDeclined { + string user_id = 1; + DeclinedReason declined_reason = 2; +} + +message IdentityVerificationReviewStarted { + string user_id = 1; +} + +message TransactionInfo { + string user_id = 1; + TransactionType type = 2; + Money settlement_amount = 3; + optional Money display_amount = 4; +} + +enum TransactionType { + INTRA_LEDGER_RECEIPT = 0; + INTRA_LEDGER_PAYMENT= 1; + ONCHAIN_RECEIPT = 2; + ONCHAIN_RECEIPT_PENDING = 3; + ONCHAIN_PAYMENT = 4; + LIGHTNING_RECEIPT = 5; + LIGHTNING_PAYMENT = 6; +} + +message Money { + string currency_code = 1; + uint64 minor_units = 2; +} + +enum PriceChangeDirection { + UP = 0; + DOWN = 1; +} + +message PriceChanged { + Money price_of_one_bitcoin = 1; + PriceChangeDirection direction = 2; + double price_change_percentage = 3; +} diff --git a/history/src/services/notifications/proto/notifications_grpc_pb.d.ts b/history/src/services/notifications/proto/notifications_grpc_pb.d.ts new file mode 100644 index 0000000..1f4d233 --- /dev/null +++ b/history/src/services/notifications/proto/notifications_grpc_pb.d.ts @@ -0,0 +1,229 @@ +// package: services.notifications.v1 +// file: notifications.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as grpc from "@grpc/grpc-js"; +import * as notifications_pb from "./notifications_pb"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +interface INotificationsServiceService extends grpc.ServiceDefinition { + shouldSendNotification: INotificationsServiceService_IShouldSendNotification; + enableNotificationChannel: INotificationsServiceService_IEnableNotificationChannel; + disableNotificationChannel: INotificationsServiceService_IDisableNotificationChannel; + enableNotificationCategory: INotificationsServiceService_IEnableNotificationCategory; + disableNotificationCategory: INotificationsServiceService_IDisableNotificationCategory; + getNotificationSettings: INotificationsServiceService_IGetNotificationSettings; + updateUserLocale: INotificationsServiceService_IUpdateUserLocale; + addPushDeviceToken: INotificationsServiceService_IAddPushDeviceToken; + removePushDeviceToken: INotificationsServiceService_IRemovePushDeviceToken; + updateEmailAddress: INotificationsServiceService_IUpdateEmailAddress; + removeEmailAddress: INotificationsServiceService_IRemoveEmailAddress; + handleNotificationEvent: INotificationsServiceService_IHandleNotificationEvent; +} + +interface INotificationsServiceService_IShouldSendNotification extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/ShouldSendNotification"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IEnableNotificationChannel extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/EnableNotificationChannel"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IDisableNotificationChannel extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/DisableNotificationChannel"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IEnableNotificationCategory extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/EnableNotificationCategory"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IDisableNotificationCategory extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/DisableNotificationCategory"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IGetNotificationSettings extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/GetNotificationSettings"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IUpdateUserLocale extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/UpdateUserLocale"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IAddPushDeviceToken extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/AddPushDeviceToken"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IRemovePushDeviceToken extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/RemovePushDeviceToken"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IUpdateEmailAddress extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/UpdateEmailAddress"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IRemoveEmailAddress extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/RemoveEmailAddress"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} +interface INotificationsServiceService_IHandleNotificationEvent extends grpc.MethodDefinition { + path: "/services.notifications.v1.NotificationsService/HandleNotificationEvent"; + requestStream: false; + responseStream: false; + requestSerialize: grpc.serialize; + requestDeserialize: grpc.deserialize; + responseSerialize: grpc.serialize; + responseDeserialize: grpc.deserialize; +} + +export const NotificationsServiceService: INotificationsServiceService; + +export interface INotificationsServiceServer extends grpc.UntypedServiceImplementation { + shouldSendNotification: grpc.handleUnaryCall; + enableNotificationChannel: grpc.handleUnaryCall; + disableNotificationChannel: grpc.handleUnaryCall; + enableNotificationCategory: grpc.handleUnaryCall; + disableNotificationCategory: grpc.handleUnaryCall; + getNotificationSettings: grpc.handleUnaryCall; + updateUserLocale: grpc.handleUnaryCall; + addPushDeviceToken: grpc.handleUnaryCall; + removePushDeviceToken: grpc.handleUnaryCall; + updateEmailAddress: grpc.handleUnaryCall; + removeEmailAddress: grpc.handleUnaryCall; + handleNotificationEvent: grpc.handleUnaryCall; +} + +export interface INotificationsServiceClient { + shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; + handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; + handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; +} + +export class NotificationsServiceClient extends grpc.Client implements INotificationsServiceClient { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial); + public shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + public shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + public shouldSendNotification(request: notifications_pb.ShouldSendNotificationRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.ShouldSendNotificationResponse) => void): grpc.ClientUnaryCall; + public enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public enableNotificationChannel(request: notifications_pb.EnableNotificationChannelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public disableNotificationChannel(request: notifications_pb.DisableNotificationChannelRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationChannelResponse) => void): grpc.ClientUnaryCall; + public enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public enableNotificationCategory(request: notifications_pb.EnableNotificationCategoryRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.EnableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public disableNotificationCategory(request: notifications_pb.DisableNotificationCategoryRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.DisableNotificationCategoryResponse) => void): grpc.ClientUnaryCall; + public getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + public getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + public getNotificationSettings(request: notifications_pb.GetNotificationSettingsRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.GetNotificationSettingsResponse) => void): grpc.ClientUnaryCall; + public updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + public updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + public updateUserLocale(request: notifications_pb.UpdateUserLocaleRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateUserLocaleResponse) => void): grpc.ClientUnaryCall; + public addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public addPushDeviceToken(request: notifications_pb.AddPushDeviceTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.AddPushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public removePushDeviceToken(request: notifications_pb.RemovePushDeviceTokenRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemovePushDeviceTokenResponse) => void): grpc.ClientUnaryCall; + public updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + public updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + public updateEmailAddress(request: notifications_pb.UpdateEmailAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.UpdateEmailAddressResponse) => void): grpc.ClientUnaryCall; + public removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + public removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + public removeEmailAddress(request: notifications_pb.RemoveEmailAddressRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.RemoveEmailAddressResponse) => void): grpc.ClientUnaryCall; + public handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; + public handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; + public handleNotificationEvent(request: notifications_pb.HandleNotificationEventRequest, metadata: grpc.Metadata, options: Partial, callback: (error: grpc.ServiceError | null, response: notifications_pb.HandleNotificationEventResponse) => void): grpc.ClientUnaryCall; +} diff --git a/history/src/services/notifications/proto/notifications_grpc_pb.js b/history/src/services/notifications/proto/notifications_grpc_pb.js new file mode 100644 index 0000000..c6c5c4d --- /dev/null +++ b/history/src/services/notifications/proto/notifications_grpc_pb.js @@ -0,0 +1,408 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('@grpc/grpc-js'); +var notifications_pb = require('./notifications_pb.js'); +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); + +function serialize_services_notifications_v1_AddPushDeviceTokenRequest(arg) { + if (!(arg instanceof notifications_pb.AddPushDeviceTokenRequest)) { + throw new Error('Expected argument of type services.notifications.v1.AddPushDeviceTokenRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_AddPushDeviceTokenRequest(buffer_arg) { + return notifications_pb.AddPushDeviceTokenRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_AddPushDeviceTokenResponse(arg) { + if (!(arg instanceof notifications_pb.AddPushDeviceTokenResponse)) { + throw new Error('Expected argument of type services.notifications.v1.AddPushDeviceTokenResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_AddPushDeviceTokenResponse(buffer_arg) { + return notifications_pb.AddPushDeviceTokenResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_DisableNotificationCategoryRequest(arg) { + if (!(arg instanceof notifications_pb.DisableNotificationCategoryRequest)) { + throw new Error('Expected argument of type services.notifications.v1.DisableNotificationCategoryRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_DisableNotificationCategoryRequest(buffer_arg) { + return notifications_pb.DisableNotificationCategoryRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_DisableNotificationCategoryResponse(arg) { + if (!(arg instanceof notifications_pb.DisableNotificationCategoryResponse)) { + throw new Error('Expected argument of type services.notifications.v1.DisableNotificationCategoryResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_DisableNotificationCategoryResponse(buffer_arg) { + return notifications_pb.DisableNotificationCategoryResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_DisableNotificationChannelRequest(arg) { + if (!(arg instanceof notifications_pb.DisableNotificationChannelRequest)) { + throw new Error('Expected argument of type services.notifications.v1.DisableNotificationChannelRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_DisableNotificationChannelRequest(buffer_arg) { + return notifications_pb.DisableNotificationChannelRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_DisableNotificationChannelResponse(arg) { + if (!(arg instanceof notifications_pb.DisableNotificationChannelResponse)) { + throw new Error('Expected argument of type services.notifications.v1.DisableNotificationChannelResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_DisableNotificationChannelResponse(buffer_arg) { + return notifications_pb.DisableNotificationChannelResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_EnableNotificationCategoryRequest(arg) { + if (!(arg instanceof notifications_pb.EnableNotificationCategoryRequest)) { + throw new Error('Expected argument of type services.notifications.v1.EnableNotificationCategoryRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_EnableNotificationCategoryRequest(buffer_arg) { + return notifications_pb.EnableNotificationCategoryRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_EnableNotificationCategoryResponse(arg) { + if (!(arg instanceof notifications_pb.EnableNotificationCategoryResponse)) { + throw new Error('Expected argument of type services.notifications.v1.EnableNotificationCategoryResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_EnableNotificationCategoryResponse(buffer_arg) { + return notifications_pb.EnableNotificationCategoryResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_EnableNotificationChannelRequest(arg) { + if (!(arg instanceof notifications_pb.EnableNotificationChannelRequest)) { + throw new Error('Expected argument of type services.notifications.v1.EnableNotificationChannelRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_EnableNotificationChannelRequest(buffer_arg) { + return notifications_pb.EnableNotificationChannelRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_EnableNotificationChannelResponse(arg) { + if (!(arg instanceof notifications_pb.EnableNotificationChannelResponse)) { + throw new Error('Expected argument of type services.notifications.v1.EnableNotificationChannelResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_EnableNotificationChannelResponse(buffer_arg) { + return notifications_pb.EnableNotificationChannelResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_GetNotificationSettingsRequest(arg) { + if (!(arg instanceof notifications_pb.GetNotificationSettingsRequest)) { + throw new Error('Expected argument of type services.notifications.v1.GetNotificationSettingsRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_GetNotificationSettingsRequest(buffer_arg) { + return notifications_pb.GetNotificationSettingsRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_GetNotificationSettingsResponse(arg) { + if (!(arg instanceof notifications_pb.GetNotificationSettingsResponse)) { + throw new Error('Expected argument of type services.notifications.v1.GetNotificationSettingsResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_GetNotificationSettingsResponse(buffer_arg) { + return notifications_pb.GetNotificationSettingsResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_HandleNotificationEventRequest(arg) { + if (!(arg instanceof notifications_pb.HandleNotificationEventRequest)) { + throw new Error('Expected argument of type services.notifications.v1.HandleNotificationEventRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_HandleNotificationEventRequest(buffer_arg) { + return notifications_pb.HandleNotificationEventRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_HandleNotificationEventResponse(arg) { + if (!(arg instanceof notifications_pb.HandleNotificationEventResponse)) { + throw new Error('Expected argument of type services.notifications.v1.HandleNotificationEventResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_HandleNotificationEventResponse(buffer_arg) { + return notifications_pb.HandleNotificationEventResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_RemoveEmailAddressRequest(arg) { + if (!(arg instanceof notifications_pb.RemoveEmailAddressRequest)) { + throw new Error('Expected argument of type services.notifications.v1.RemoveEmailAddressRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_RemoveEmailAddressRequest(buffer_arg) { + return notifications_pb.RemoveEmailAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_RemoveEmailAddressResponse(arg) { + if (!(arg instanceof notifications_pb.RemoveEmailAddressResponse)) { + throw new Error('Expected argument of type services.notifications.v1.RemoveEmailAddressResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_RemoveEmailAddressResponse(buffer_arg) { + return notifications_pb.RemoveEmailAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_RemovePushDeviceTokenRequest(arg) { + if (!(arg instanceof notifications_pb.RemovePushDeviceTokenRequest)) { + throw new Error('Expected argument of type services.notifications.v1.RemovePushDeviceTokenRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_RemovePushDeviceTokenRequest(buffer_arg) { + return notifications_pb.RemovePushDeviceTokenRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_RemovePushDeviceTokenResponse(arg) { + if (!(arg instanceof notifications_pb.RemovePushDeviceTokenResponse)) { + throw new Error('Expected argument of type services.notifications.v1.RemovePushDeviceTokenResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_RemovePushDeviceTokenResponse(buffer_arg) { + return notifications_pb.RemovePushDeviceTokenResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_ShouldSendNotificationRequest(arg) { + if (!(arg instanceof notifications_pb.ShouldSendNotificationRequest)) { + throw new Error('Expected argument of type services.notifications.v1.ShouldSendNotificationRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_ShouldSendNotificationRequest(buffer_arg) { + return notifications_pb.ShouldSendNotificationRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_ShouldSendNotificationResponse(arg) { + if (!(arg instanceof notifications_pb.ShouldSendNotificationResponse)) { + throw new Error('Expected argument of type services.notifications.v1.ShouldSendNotificationResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_ShouldSendNotificationResponse(buffer_arg) { + return notifications_pb.ShouldSendNotificationResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_UpdateEmailAddressRequest(arg) { + if (!(arg instanceof notifications_pb.UpdateEmailAddressRequest)) { + throw new Error('Expected argument of type services.notifications.v1.UpdateEmailAddressRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_UpdateEmailAddressRequest(buffer_arg) { + return notifications_pb.UpdateEmailAddressRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_UpdateEmailAddressResponse(arg) { + if (!(arg instanceof notifications_pb.UpdateEmailAddressResponse)) { + throw new Error('Expected argument of type services.notifications.v1.UpdateEmailAddressResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_UpdateEmailAddressResponse(buffer_arg) { + return notifications_pb.UpdateEmailAddressResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_UpdateUserLocaleRequest(arg) { + if (!(arg instanceof notifications_pb.UpdateUserLocaleRequest)) { + throw new Error('Expected argument of type services.notifications.v1.UpdateUserLocaleRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_UpdateUserLocaleRequest(buffer_arg) { + return notifications_pb.UpdateUserLocaleRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_services_notifications_v1_UpdateUserLocaleResponse(arg) { + if (!(arg instanceof notifications_pb.UpdateUserLocaleResponse)) { + throw new Error('Expected argument of type services.notifications.v1.UpdateUserLocaleResponse'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_services_notifications_v1_UpdateUserLocaleResponse(buffer_arg) { + return notifications_pb.UpdateUserLocaleResponse.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +var NotificationsServiceService = exports.NotificationsServiceService = { + shouldSendNotification: { + path: '/services.notifications.v1.NotificationsService/ShouldSendNotification', + requestStream: false, + responseStream: false, + requestType: notifications_pb.ShouldSendNotificationRequest, + responseType: notifications_pb.ShouldSendNotificationResponse, + requestSerialize: serialize_services_notifications_v1_ShouldSendNotificationRequest, + requestDeserialize: deserialize_services_notifications_v1_ShouldSendNotificationRequest, + responseSerialize: serialize_services_notifications_v1_ShouldSendNotificationResponse, + responseDeserialize: deserialize_services_notifications_v1_ShouldSendNotificationResponse, + }, + enableNotificationChannel: { + path: '/services.notifications.v1.NotificationsService/EnableNotificationChannel', + requestStream: false, + responseStream: false, + requestType: notifications_pb.EnableNotificationChannelRequest, + responseType: notifications_pb.EnableNotificationChannelResponse, + requestSerialize: serialize_services_notifications_v1_EnableNotificationChannelRequest, + requestDeserialize: deserialize_services_notifications_v1_EnableNotificationChannelRequest, + responseSerialize: serialize_services_notifications_v1_EnableNotificationChannelResponse, + responseDeserialize: deserialize_services_notifications_v1_EnableNotificationChannelResponse, + }, + disableNotificationChannel: { + path: '/services.notifications.v1.NotificationsService/DisableNotificationChannel', + requestStream: false, + responseStream: false, + requestType: notifications_pb.DisableNotificationChannelRequest, + responseType: notifications_pb.DisableNotificationChannelResponse, + requestSerialize: serialize_services_notifications_v1_DisableNotificationChannelRequest, + requestDeserialize: deserialize_services_notifications_v1_DisableNotificationChannelRequest, + responseSerialize: serialize_services_notifications_v1_DisableNotificationChannelResponse, + responseDeserialize: deserialize_services_notifications_v1_DisableNotificationChannelResponse, + }, + enableNotificationCategory: { + path: '/services.notifications.v1.NotificationsService/EnableNotificationCategory', + requestStream: false, + responseStream: false, + requestType: notifications_pb.EnableNotificationCategoryRequest, + responseType: notifications_pb.EnableNotificationCategoryResponse, + requestSerialize: serialize_services_notifications_v1_EnableNotificationCategoryRequest, + requestDeserialize: deserialize_services_notifications_v1_EnableNotificationCategoryRequest, + responseSerialize: serialize_services_notifications_v1_EnableNotificationCategoryResponse, + responseDeserialize: deserialize_services_notifications_v1_EnableNotificationCategoryResponse, + }, + disableNotificationCategory: { + path: '/services.notifications.v1.NotificationsService/DisableNotificationCategory', + requestStream: false, + responseStream: false, + requestType: notifications_pb.DisableNotificationCategoryRequest, + responseType: notifications_pb.DisableNotificationCategoryResponse, + requestSerialize: serialize_services_notifications_v1_DisableNotificationCategoryRequest, + requestDeserialize: deserialize_services_notifications_v1_DisableNotificationCategoryRequest, + responseSerialize: serialize_services_notifications_v1_DisableNotificationCategoryResponse, + responseDeserialize: deserialize_services_notifications_v1_DisableNotificationCategoryResponse, + }, + getNotificationSettings: { + path: '/services.notifications.v1.NotificationsService/GetNotificationSettings', + requestStream: false, + responseStream: false, + requestType: notifications_pb.GetNotificationSettingsRequest, + responseType: notifications_pb.GetNotificationSettingsResponse, + requestSerialize: serialize_services_notifications_v1_GetNotificationSettingsRequest, + requestDeserialize: deserialize_services_notifications_v1_GetNotificationSettingsRequest, + responseSerialize: serialize_services_notifications_v1_GetNotificationSettingsResponse, + responseDeserialize: deserialize_services_notifications_v1_GetNotificationSettingsResponse, + }, + updateUserLocale: { + path: '/services.notifications.v1.NotificationsService/UpdateUserLocale', + requestStream: false, + responseStream: false, + requestType: notifications_pb.UpdateUserLocaleRequest, + responseType: notifications_pb.UpdateUserLocaleResponse, + requestSerialize: serialize_services_notifications_v1_UpdateUserLocaleRequest, + requestDeserialize: deserialize_services_notifications_v1_UpdateUserLocaleRequest, + responseSerialize: serialize_services_notifications_v1_UpdateUserLocaleResponse, + responseDeserialize: deserialize_services_notifications_v1_UpdateUserLocaleResponse, + }, + addPushDeviceToken: { + path: '/services.notifications.v1.NotificationsService/AddPushDeviceToken', + requestStream: false, + responseStream: false, + requestType: notifications_pb.AddPushDeviceTokenRequest, + responseType: notifications_pb.AddPushDeviceTokenResponse, + requestSerialize: serialize_services_notifications_v1_AddPushDeviceTokenRequest, + requestDeserialize: deserialize_services_notifications_v1_AddPushDeviceTokenRequest, + responseSerialize: serialize_services_notifications_v1_AddPushDeviceTokenResponse, + responseDeserialize: deserialize_services_notifications_v1_AddPushDeviceTokenResponse, + }, + removePushDeviceToken: { + path: '/services.notifications.v1.NotificationsService/RemovePushDeviceToken', + requestStream: false, + responseStream: false, + requestType: notifications_pb.RemovePushDeviceTokenRequest, + responseType: notifications_pb.RemovePushDeviceTokenResponse, + requestSerialize: serialize_services_notifications_v1_RemovePushDeviceTokenRequest, + requestDeserialize: deserialize_services_notifications_v1_RemovePushDeviceTokenRequest, + responseSerialize: serialize_services_notifications_v1_RemovePushDeviceTokenResponse, + responseDeserialize: deserialize_services_notifications_v1_RemovePushDeviceTokenResponse, + }, + updateEmailAddress: { + path: '/services.notifications.v1.NotificationsService/UpdateEmailAddress', + requestStream: false, + responseStream: false, + requestType: notifications_pb.UpdateEmailAddressRequest, + responseType: notifications_pb.UpdateEmailAddressResponse, + requestSerialize: serialize_services_notifications_v1_UpdateEmailAddressRequest, + requestDeserialize: deserialize_services_notifications_v1_UpdateEmailAddressRequest, + responseSerialize: serialize_services_notifications_v1_UpdateEmailAddressResponse, + responseDeserialize: deserialize_services_notifications_v1_UpdateEmailAddressResponse, + }, + removeEmailAddress: { + path: '/services.notifications.v1.NotificationsService/RemoveEmailAddress', + requestStream: false, + responseStream: false, + requestType: notifications_pb.RemoveEmailAddressRequest, + responseType: notifications_pb.RemoveEmailAddressResponse, + requestSerialize: serialize_services_notifications_v1_RemoveEmailAddressRequest, + requestDeserialize: deserialize_services_notifications_v1_RemoveEmailAddressRequest, + responseSerialize: serialize_services_notifications_v1_RemoveEmailAddressResponse, + responseDeserialize: deserialize_services_notifications_v1_RemoveEmailAddressResponse, + }, + handleNotificationEvent: { + path: '/services.notifications.v1.NotificationsService/HandleNotificationEvent', + requestStream: false, + responseStream: false, + requestType: notifications_pb.HandleNotificationEventRequest, + responseType: notifications_pb.HandleNotificationEventResponse, + requestSerialize: serialize_services_notifications_v1_HandleNotificationEventRequest, + requestDeserialize: deserialize_services_notifications_v1_HandleNotificationEventRequest, + responseSerialize: serialize_services_notifications_v1_HandleNotificationEventResponse, + responseDeserialize: deserialize_services_notifications_v1_HandleNotificationEventResponse, + }, +}; + +exports.NotificationsServiceClient = grpc.makeGenericClientConstructor(NotificationsServiceService); diff --git a/history/src/services/notifications/proto/notifications_pb.d.ts b/history/src/services/notifications/proto/notifications_pb.d.ts new file mode 100644 index 0000000..46ee23d --- /dev/null +++ b/history/src/services/notifications/proto/notifications_pb.d.ts @@ -0,0 +1,930 @@ +// package: services.notifications.v1 +// file: notifications.proto + +/* tslint:disable */ +/* eslint-disable */ + +import * as jspb from "google-protobuf"; +import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb"; + +export class ShouldSendNotificationRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): ShouldSendNotificationRequest; + getChannel(): NotificationChannel; + setChannel(value: NotificationChannel): ShouldSendNotificationRequest; + getCategory(): NotificationCategory; + setCategory(value: NotificationCategory): ShouldSendNotificationRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ShouldSendNotificationRequest.AsObject; + static toObject(includeInstance: boolean, msg: ShouldSendNotificationRequest): ShouldSendNotificationRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ShouldSendNotificationRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ShouldSendNotificationRequest; + static deserializeBinaryFromReader(message: ShouldSendNotificationRequest, reader: jspb.BinaryReader): ShouldSendNotificationRequest; +} + +export namespace ShouldSendNotificationRequest { + export type AsObject = { + userId: string, + channel: NotificationChannel, + category: NotificationCategory, + } +} + +export class ShouldSendNotificationResponse extends jspb.Message { + getUserId(): string; + setUserId(value: string): ShouldSendNotificationResponse; + getShouldSend(): boolean; + setShouldSend(value: boolean): ShouldSendNotificationResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ShouldSendNotificationResponse.AsObject; + static toObject(includeInstance: boolean, msg: ShouldSendNotificationResponse): ShouldSendNotificationResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ShouldSendNotificationResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ShouldSendNotificationResponse; + static deserializeBinaryFromReader(message: ShouldSendNotificationResponse, reader: jspb.BinaryReader): ShouldSendNotificationResponse; +} + +export namespace ShouldSendNotificationResponse { + export type AsObject = { + userId: string, + shouldSend: boolean, + } +} + +export class EnableNotificationChannelRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): EnableNotificationChannelRequest; + getChannel(): NotificationChannel; + setChannel(value: NotificationChannel): EnableNotificationChannelRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableNotificationChannelRequest.AsObject; + static toObject(includeInstance: boolean, msg: EnableNotificationChannelRequest): EnableNotificationChannelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableNotificationChannelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableNotificationChannelRequest; + static deserializeBinaryFromReader(message: EnableNotificationChannelRequest, reader: jspb.BinaryReader): EnableNotificationChannelRequest; +} + +export namespace EnableNotificationChannelRequest { + export type AsObject = { + userId: string, + channel: NotificationChannel, + } +} + +export class EnableNotificationChannelResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): EnableNotificationChannelResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableNotificationChannelResponse.AsObject; + static toObject(includeInstance: boolean, msg: EnableNotificationChannelResponse): EnableNotificationChannelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableNotificationChannelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableNotificationChannelResponse; + static deserializeBinaryFromReader(message: EnableNotificationChannelResponse, reader: jspb.BinaryReader): EnableNotificationChannelResponse; +} + +export namespace EnableNotificationChannelResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class NotificationSettings extends jspb.Message { + + hasPush(): boolean; + clearPush(): void; + getPush(): ChannelNotificationSettings | undefined; + setPush(value?: ChannelNotificationSettings): NotificationSettings; + + hasLocale(): boolean; + clearLocale(): void; + getLocale(): string | undefined; + setLocale(value: string): NotificationSettings; + clearPushDeviceTokensList(): void; + getPushDeviceTokensList(): Array; + setPushDeviceTokensList(value: Array): NotificationSettings; + addPushDeviceTokens(value: string, index?: number): string; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NotificationSettings.AsObject; + static toObject(includeInstance: boolean, msg: NotificationSettings): NotificationSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NotificationSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NotificationSettings; + static deserializeBinaryFromReader(message: NotificationSettings, reader: jspb.BinaryReader): NotificationSettings; +} + +export namespace NotificationSettings { + export type AsObject = { + push?: ChannelNotificationSettings.AsObject, + locale?: string, + pushDeviceTokensList: Array, + } +} + +export class ChannelNotificationSettings extends jspb.Message { + getEnabled(): boolean; + setEnabled(value: boolean): ChannelNotificationSettings; + clearDisabledCategoriesList(): void; + getDisabledCategoriesList(): Array; + setDisabledCategoriesList(value: Array): ChannelNotificationSettings; + addDisabledCategories(value: NotificationCategory, index?: number): NotificationCategory; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ChannelNotificationSettings.AsObject; + static toObject(includeInstance: boolean, msg: ChannelNotificationSettings): ChannelNotificationSettings.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ChannelNotificationSettings, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ChannelNotificationSettings; + static deserializeBinaryFromReader(message: ChannelNotificationSettings, reader: jspb.BinaryReader): ChannelNotificationSettings; +} + +export namespace ChannelNotificationSettings { + export type AsObject = { + enabled: boolean, + disabledCategoriesList: Array, + } +} + +export class DisableNotificationChannelRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): DisableNotificationChannelRequest; + getChannel(): NotificationChannel; + setChannel(value: NotificationChannel): DisableNotificationChannelRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableNotificationChannelRequest.AsObject; + static toObject(includeInstance: boolean, msg: DisableNotificationChannelRequest): DisableNotificationChannelRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableNotificationChannelRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableNotificationChannelRequest; + static deserializeBinaryFromReader(message: DisableNotificationChannelRequest, reader: jspb.BinaryReader): DisableNotificationChannelRequest; +} + +export namespace DisableNotificationChannelRequest { + export type AsObject = { + userId: string, + channel: NotificationChannel, + } +} + +export class DisableNotificationChannelResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): DisableNotificationChannelResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableNotificationChannelResponse.AsObject; + static toObject(includeInstance: boolean, msg: DisableNotificationChannelResponse): DisableNotificationChannelResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableNotificationChannelResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableNotificationChannelResponse; + static deserializeBinaryFromReader(message: DisableNotificationChannelResponse, reader: jspb.BinaryReader): DisableNotificationChannelResponse; +} + +export namespace DisableNotificationChannelResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class DisableNotificationCategoryRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): DisableNotificationCategoryRequest; + getChannel(): NotificationChannel; + setChannel(value: NotificationChannel): DisableNotificationCategoryRequest; + getCategory(): NotificationCategory; + setCategory(value: NotificationCategory): DisableNotificationCategoryRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableNotificationCategoryRequest.AsObject; + static toObject(includeInstance: boolean, msg: DisableNotificationCategoryRequest): DisableNotificationCategoryRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableNotificationCategoryRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableNotificationCategoryRequest; + static deserializeBinaryFromReader(message: DisableNotificationCategoryRequest, reader: jspb.BinaryReader): DisableNotificationCategoryRequest; +} + +export namespace DisableNotificationCategoryRequest { + export type AsObject = { + userId: string, + channel: NotificationChannel, + category: NotificationCategory, + } +} + +export class DisableNotificationCategoryResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): DisableNotificationCategoryResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): DisableNotificationCategoryResponse.AsObject; + static toObject(includeInstance: boolean, msg: DisableNotificationCategoryResponse): DisableNotificationCategoryResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: DisableNotificationCategoryResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DisableNotificationCategoryResponse; + static deserializeBinaryFromReader(message: DisableNotificationCategoryResponse, reader: jspb.BinaryReader): DisableNotificationCategoryResponse; +} + +export namespace DisableNotificationCategoryResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class EnableNotificationCategoryRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): EnableNotificationCategoryRequest; + getChannel(): NotificationChannel; + setChannel(value: NotificationChannel): EnableNotificationCategoryRequest; + getCategory(): NotificationCategory; + setCategory(value: NotificationCategory): EnableNotificationCategoryRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableNotificationCategoryRequest.AsObject; + static toObject(includeInstance: boolean, msg: EnableNotificationCategoryRequest): EnableNotificationCategoryRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableNotificationCategoryRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableNotificationCategoryRequest; + static deserializeBinaryFromReader(message: EnableNotificationCategoryRequest, reader: jspb.BinaryReader): EnableNotificationCategoryRequest; +} + +export namespace EnableNotificationCategoryRequest { + export type AsObject = { + userId: string, + channel: NotificationChannel, + category: NotificationCategory, + } +} + +export class EnableNotificationCategoryResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): EnableNotificationCategoryResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): EnableNotificationCategoryResponse.AsObject; + static toObject(includeInstance: boolean, msg: EnableNotificationCategoryResponse): EnableNotificationCategoryResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: EnableNotificationCategoryResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): EnableNotificationCategoryResponse; + static deserializeBinaryFromReader(message: EnableNotificationCategoryResponse, reader: jspb.BinaryReader): EnableNotificationCategoryResponse; +} + +export namespace EnableNotificationCategoryResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class GetNotificationSettingsRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): GetNotificationSettingsRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNotificationSettingsRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetNotificationSettingsRequest): GetNotificationSettingsRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNotificationSettingsRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNotificationSettingsRequest; + static deserializeBinaryFromReader(message: GetNotificationSettingsRequest, reader: jspb.BinaryReader): GetNotificationSettingsRequest; +} + +export namespace GetNotificationSettingsRequest { + export type AsObject = { + userId: string, + } +} + +export class GetNotificationSettingsResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): GetNotificationSettingsResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetNotificationSettingsResponse.AsObject; + static toObject(includeInstance: boolean, msg: GetNotificationSettingsResponse): GetNotificationSettingsResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetNotificationSettingsResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetNotificationSettingsResponse; + static deserializeBinaryFromReader(message: GetNotificationSettingsResponse, reader: jspb.BinaryReader): GetNotificationSettingsResponse; +} + +export namespace GetNotificationSettingsResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class UpdateUserLocaleRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): UpdateUserLocaleRequest; + getLocale(): string; + setLocale(value: string): UpdateUserLocaleRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateUserLocaleRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateUserLocaleRequest): UpdateUserLocaleRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateUserLocaleRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateUserLocaleRequest; + static deserializeBinaryFromReader(message: UpdateUserLocaleRequest, reader: jspb.BinaryReader): UpdateUserLocaleRequest; +} + +export namespace UpdateUserLocaleRequest { + export type AsObject = { + userId: string, + locale: string, + } +} + +export class UpdateUserLocaleResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): UpdateUserLocaleResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateUserLocaleResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateUserLocaleResponse): UpdateUserLocaleResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateUserLocaleResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateUserLocaleResponse; + static deserializeBinaryFromReader(message: UpdateUserLocaleResponse, reader: jspb.BinaryReader): UpdateUserLocaleResponse; +} + +export namespace UpdateUserLocaleResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class AddPushDeviceTokenRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): AddPushDeviceTokenRequest; + getDeviceToken(): string; + setDeviceToken(value: string): AddPushDeviceTokenRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddPushDeviceTokenRequest.AsObject; + static toObject(includeInstance: boolean, msg: AddPushDeviceTokenRequest): AddPushDeviceTokenRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddPushDeviceTokenRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddPushDeviceTokenRequest; + static deserializeBinaryFromReader(message: AddPushDeviceTokenRequest, reader: jspb.BinaryReader): AddPushDeviceTokenRequest; +} + +export namespace AddPushDeviceTokenRequest { + export type AsObject = { + userId: string, + deviceToken: string, + } +} + +export class AddPushDeviceTokenResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): AddPushDeviceTokenResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): AddPushDeviceTokenResponse.AsObject; + static toObject(includeInstance: boolean, msg: AddPushDeviceTokenResponse): AddPushDeviceTokenResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: AddPushDeviceTokenResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): AddPushDeviceTokenResponse; + static deserializeBinaryFromReader(message: AddPushDeviceTokenResponse, reader: jspb.BinaryReader): AddPushDeviceTokenResponse; +} + +export namespace AddPushDeviceTokenResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class RemovePushDeviceTokenRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): RemovePushDeviceTokenRequest; + getDeviceToken(): string; + setDeviceToken(value: string): RemovePushDeviceTokenRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemovePushDeviceTokenRequest.AsObject; + static toObject(includeInstance: boolean, msg: RemovePushDeviceTokenRequest): RemovePushDeviceTokenRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemovePushDeviceTokenRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemovePushDeviceTokenRequest; + static deserializeBinaryFromReader(message: RemovePushDeviceTokenRequest, reader: jspb.BinaryReader): RemovePushDeviceTokenRequest; +} + +export namespace RemovePushDeviceTokenRequest { + export type AsObject = { + userId: string, + deviceToken: string, + } +} + +export class RemovePushDeviceTokenResponse extends jspb.Message { + + hasNotificationSettings(): boolean; + clearNotificationSettings(): void; + getNotificationSettings(): NotificationSettings | undefined; + setNotificationSettings(value?: NotificationSettings): RemovePushDeviceTokenResponse; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemovePushDeviceTokenResponse.AsObject; + static toObject(includeInstance: boolean, msg: RemovePushDeviceTokenResponse): RemovePushDeviceTokenResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemovePushDeviceTokenResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemovePushDeviceTokenResponse; + static deserializeBinaryFromReader(message: RemovePushDeviceTokenResponse, reader: jspb.BinaryReader): RemovePushDeviceTokenResponse; +} + +export namespace RemovePushDeviceTokenResponse { + export type AsObject = { + notificationSettings?: NotificationSettings.AsObject, + } +} + +export class UpdateEmailAddressRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): UpdateEmailAddressRequest; + getEmailAddress(): string; + setEmailAddress(value: string): UpdateEmailAddressRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateEmailAddressRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateEmailAddressRequest): UpdateEmailAddressRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateEmailAddressRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateEmailAddressRequest; + static deserializeBinaryFromReader(message: UpdateEmailAddressRequest, reader: jspb.BinaryReader): UpdateEmailAddressRequest; +} + +export namespace UpdateEmailAddressRequest { + export type AsObject = { + userId: string, + emailAddress: string, + } +} + +export class UpdateEmailAddressResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateEmailAddressResponse.AsObject; + static toObject(includeInstance: boolean, msg: UpdateEmailAddressResponse): UpdateEmailAddressResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateEmailAddressResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateEmailAddressResponse; + static deserializeBinaryFromReader(message: UpdateEmailAddressResponse, reader: jspb.BinaryReader): UpdateEmailAddressResponse; +} + +export namespace UpdateEmailAddressResponse { + export type AsObject = { + } +} + +export class RemoveEmailAddressRequest extends jspb.Message { + getUserId(): string; + setUserId(value: string): RemoveEmailAddressRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveEmailAddressRequest.AsObject; + static toObject(includeInstance: boolean, msg: RemoveEmailAddressRequest): RemoveEmailAddressRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemoveEmailAddressRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveEmailAddressRequest; + static deserializeBinaryFromReader(message: RemoveEmailAddressRequest, reader: jspb.BinaryReader): RemoveEmailAddressRequest; +} + +export namespace RemoveEmailAddressRequest { + export type AsObject = { + userId: string, + } +} + +export class RemoveEmailAddressResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): RemoveEmailAddressResponse.AsObject; + static toObject(includeInstance: boolean, msg: RemoveEmailAddressResponse): RemoveEmailAddressResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: RemoveEmailAddressResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): RemoveEmailAddressResponse; + static deserializeBinaryFromReader(message: RemoveEmailAddressResponse, reader: jspb.BinaryReader): RemoveEmailAddressResponse; +} + +export namespace RemoveEmailAddressResponse { + export type AsObject = { + } +} + +export class HandleNotificationEventRequest extends jspb.Message { + + hasEvent(): boolean; + clearEvent(): void; + getEvent(): NotificationEvent | undefined; + setEvent(value?: NotificationEvent): HandleNotificationEventRequest; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HandleNotificationEventRequest.AsObject; + static toObject(includeInstance: boolean, msg: HandleNotificationEventRequest): HandleNotificationEventRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HandleNotificationEventRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HandleNotificationEventRequest; + static deserializeBinaryFromReader(message: HandleNotificationEventRequest, reader: jspb.BinaryReader): HandleNotificationEventRequest; +} + +export namespace HandleNotificationEventRequest { + export type AsObject = { + event?: NotificationEvent.AsObject, + } +} + +export class HandleNotificationEventResponse extends jspb.Message { + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): HandleNotificationEventResponse.AsObject; + static toObject(includeInstance: boolean, msg: HandleNotificationEventResponse): HandleNotificationEventResponse.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: HandleNotificationEventResponse, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): HandleNotificationEventResponse; + static deserializeBinaryFromReader(message: HandleNotificationEventResponse, reader: jspb.BinaryReader): HandleNotificationEventResponse; +} + +export namespace HandleNotificationEventResponse { + export type AsObject = { + } +} + +export class NotificationEvent extends jspb.Message { + + hasCircleGrew(): boolean; + clearCircleGrew(): void; + getCircleGrew(): CircleGrew | undefined; + setCircleGrew(value?: CircleGrew): NotificationEvent; + + hasCircleThresholdReached(): boolean; + clearCircleThresholdReached(): void; + getCircleThresholdReached(): CircleThresholdReached | undefined; + setCircleThresholdReached(value?: CircleThresholdReached): NotificationEvent; + + hasIdentityVerificationApproved(): boolean; + clearIdentityVerificationApproved(): void; + getIdentityVerificationApproved(): IdentityVerificationApproved | undefined; + setIdentityVerificationApproved(value?: IdentityVerificationApproved): NotificationEvent; + + hasIdentityVerificationDeclined(): boolean; + clearIdentityVerificationDeclined(): void; + getIdentityVerificationDeclined(): IdentityVerificationDeclined | undefined; + setIdentityVerificationDeclined(value?: IdentityVerificationDeclined): NotificationEvent; + + hasIdentityVerificationReviewStarted(): boolean; + clearIdentityVerificationReviewStarted(): void; + getIdentityVerificationReviewStarted(): IdentityVerificationReviewStarted | undefined; + setIdentityVerificationReviewStarted(value?: IdentityVerificationReviewStarted): NotificationEvent; + + hasTransaction(): boolean; + clearTransaction(): void; + getTransaction(): TransactionInfo | undefined; + setTransaction(value?: TransactionInfo): NotificationEvent; + + hasPrice(): boolean; + clearPrice(): void; + getPrice(): PriceChanged | undefined; + setPrice(value?: PriceChanged): NotificationEvent; + + getDataCase(): NotificationEvent.DataCase; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): NotificationEvent.AsObject; + static toObject(includeInstance: boolean, msg: NotificationEvent): NotificationEvent.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: NotificationEvent, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): NotificationEvent; + static deserializeBinaryFromReader(message: NotificationEvent, reader: jspb.BinaryReader): NotificationEvent; +} + +export namespace NotificationEvent { + export type AsObject = { + circleGrew?: CircleGrew.AsObject, + circleThresholdReached?: CircleThresholdReached.AsObject, + identityVerificationApproved?: IdentityVerificationApproved.AsObject, + identityVerificationDeclined?: IdentityVerificationDeclined.AsObject, + identityVerificationReviewStarted?: IdentityVerificationReviewStarted.AsObject, + transaction?: TransactionInfo.AsObject, + price?: PriceChanged.AsObject, + } + + export enum DataCase { + DATA_NOT_SET = 0, + CIRCLE_GREW = 1, + CIRCLE_THRESHOLD_REACHED = 2, + IDENTITY_VERIFICATION_APPROVED = 3, + IDENTITY_VERIFICATION_DECLINED = 4, + IDENTITY_VERIFICATION_REVIEW_STARTED = 5, + TRANSACTION = 6, + PRICE = 7, + } + +} + +export class CircleGrew extends jspb.Message { + getUserId(): string; + setUserId(value: string): CircleGrew; + getCircleType(): CircleType; + setCircleType(value: CircleType): CircleGrew; + getThisMonthCircleSize(): number; + setThisMonthCircleSize(value: number): CircleGrew; + getAllTimeCircleSize(): number; + setAllTimeCircleSize(value: number): CircleGrew; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CircleGrew.AsObject; + static toObject(includeInstance: boolean, msg: CircleGrew): CircleGrew.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CircleGrew, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CircleGrew; + static deserializeBinaryFromReader(message: CircleGrew, reader: jspb.BinaryReader): CircleGrew; +} + +export namespace CircleGrew { + export type AsObject = { + userId: string, + circleType: CircleType, + thisMonthCircleSize: number, + allTimeCircleSize: number, + } +} + +export class CircleThresholdReached extends jspb.Message { + getUserId(): string; + setUserId(value: string): CircleThresholdReached; + getCircleType(): CircleType; + setCircleType(value: CircleType): CircleThresholdReached; + getTimeFrame(): CircleTimeFrame; + setTimeFrame(value: CircleTimeFrame): CircleThresholdReached; + getThreshold(): number; + setThreshold(value: number): CircleThresholdReached; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CircleThresholdReached.AsObject; + static toObject(includeInstance: boolean, msg: CircleThresholdReached): CircleThresholdReached.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CircleThresholdReached, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CircleThresholdReached; + static deserializeBinaryFromReader(message: CircleThresholdReached, reader: jspb.BinaryReader): CircleThresholdReached; +} + +export namespace CircleThresholdReached { + export type AsObject = { + userId: string, + circleType: CircleType, + timeFrame: CircleTimeFrame, + threshold: number, + } +} + +export class IdentityVerificationApproved extends jspb.Message { + getUserId(): string; + setUserId(value: string): IdentityVerificationApproved; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IdentityVerificationApproved.AsObject; + static toObject(includeInstance: boolean, msg: IdentityVerificationApproved): IdentityVerificationApproved.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IdentityVerificationApproved, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IdentityVerificationApproved; + static deserializeBinaryFromReader(message: IdentityVerificationApproved, reader: jspb.BinaryReader): IdentityVerificationApproved; +} + +export namespace IdentityVerificationApproved { + export type AsObject = { + userId: string, + } +} + +export class IdentityVerificationDeclined extends jspb.Message { + getUserId(): string; + setUserId(value: string): IdentityVerificationDeclined; + getDeclinedReason(): DeclinedReason; + setDeclinedReason(value: DeclinedReason): IdentityVerificationDeclined; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IdentityVerificationDeclined.AsObject; + static toObject(includeInstance: boolean, msg: IdentityVerificationDeclined): IdentityVerificationDeclined.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IdentityVerificationDeclined, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IdentityVerificationDeclined; + static deserializeBinaryFromReader(message: IdentityVerificationDeclined, reader: jspb.BinaryReader): IdentityVerificationDeclined; +} + +export namespace IdentityVerificationDeclined { + export type AsObject = { + userId: string, + declinedReason: DeclinedReason, + } +} + +export class IdentityVerificationReviewStarted extends jspb.Message { + getUserId(): string; + setUserId(value: string): IdentityVerificationReviewStarted; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): IdentityVerificationReviewStarted.AsObject; + static toObject(includeInstance: boolean, msg: IdentityVerificationReviewStarted): IdentityVerificationReviewStarted.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: IdentityVerificationReviewStarted, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): IdentityVerificationReviewStarted; + static deserializeBinaryFromReader(message: IdentityVerificationReviewStarted, reader: jspb.BinaryReader): IdentityVerificationReviewStarted; +} + +export namespace IdentityVerificationReviewStarted { + export type AsObject = { + userId: string, + } +} + +export class TransactionInfo extends jspb.Message { + getUserId(): string; + setUserId(value: string): TransactionInfo; + getType(): TransactionType; + setType(value: TransactionType): TransactionInfo; + + hasSettlementAmount(): boolean; + clearSettlementAmount(): void; + getSettlementAmount(): Money | undefined; + setSettlementAmount(value?: Money): TransactionInfo; + + hasDisplayAmount(): boolean; + clearDisplayAmount(): void; + getDisplayAmount(): Money | undefined; + setDisplayAmount(value?: Money): TransactionInfo; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): TransactionInfo.AsObject; + static toObject(includeInstance: boolean, msg: TransactionInfo): TransactionInfo.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: TransactionInfo, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): TransactionInfo; + static deserializeBinaryFromReader(message: TransactionInfo, reader: jspb.BinaryReader): TransactionInfo; +} + +export namespace TransactionInfo { + export type AsObject = { + userId: string, + type: TransactionType, + settlementAmount?: Money.AsObject, + displayAmount?: Money.AsObject, + } +} + +export class Money extends jspb.Message { + getCurrencyCode(): string; + setCurrencyCode(value: string): Money; + getMinorUnits(): number; + setMinorUnits(value: number): Money; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Money.AsObject; + static toObject(includeInstance: boolean, msg: Money): Money.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Money, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Money; + static deserializeBinaryFromReader(message: Money, reader: jspb.BinaryReader): Money; +} + +export namespace Money { + export type AsObject = { + currencyCode: string, + minorUnits: number, + } +} + +export class PriceChanged extends jspb.Message { + + hasPriceOfOneBitcoin(): boolean; + clearPriceOfOneBitcoin(): void; + getPriceOfOneBitcoin(): Money | undefined; + setPriceOfOneBitcoin(value?: Money): PriceChanged; + getDirection(): PriceChangeDirection; + setDirection(value: PriceChangeDirection): PriceChanged; + getPriceChangePercentage(): number; + setPriceChangePercentage(value: number): PriceChanged; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): PriceChanged.AsObject; + static toObject(includeInstance: boolean, msg: PriceChanged): PriceChanged.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: PriceChanged, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): PriceChanged; + static deserializeBinaryFromReader(message: PriceChanged, reader: jspb.BinaryReader): PriceChanged; +} + +export namespace PriceChanged { + export type AsObject = { + priceOfOneBitcoin?: Money.AsObject, + direction: PriceChangeDirection, + priceChangePercentage: number, + } +} + +export enum NotificationChannel { + PUSH = 0, +} + +export enum NotificationCategory { + CIRCLES = 0, + PAYMENTS = 1, + BALANCE = 2, + ADMIN_NOTIFICATION = 3, +} + +export enum CircleType { + INNER = 0, + OUTER = 1, +} + +export enum CircleTimeFrame { + MONTH = 0, + ALL_TIME = 1, +} + +export enum DeclinedReason { + DOCUMENTS_NOT_CLEAR = 0, + VERIFICATION_PHOTO_NOT_CLEAR = 1, + DOCUMENTS_NOT_SUPPORTED = 2, + DOCUMENTS_EXPIRED = 3, + DOCUMENTS_DO_NOT_MATCH = 4, + OTHER = 5, +} + +export enum TransactionType { + INTRA_LEDGER_RECEIPT = 0, + INTRA_LEDGER_PAYMENT = 1, + ONCHAIN_RECEIPT = 2, + ONCHAIN_RECEIPT_PENDING = 3, + ONCHAIN_PAYMENT = 4, + LIGHTNING_RECEIPT = 5, + LIGHTNING_PAYMENT = 6, +} + +export enum PriceChangeDirection { + UP = 0, + DOWN = 1, +} diff --git a/history/src/services/notifications/proto/notifications_pb.js b/history/src/services/notifications/proto/notifications_pb.js new file mode 100644 index 0000000..2e8e0e2 --- /dev/null +++ b/history/src/services/notifications/proto/notifications_pb.js @@ -0,0 +1,6906 @@ +// source: notifications.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')(); + +var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); +goog.object.extend(proto, google_protobuf_struct_pb); +goog.exportSymbol('proto.services.notifications.v1.AddPushDeviceTokenRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.AddPushDeviceTokenResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.ChannelNotificationSettings', null, global); +goog.exportSymbol('proto.services.notifications.v1.CircleGrew', null, global); +goog.exportSymbol('proto.services.notifications.v1.CircleThresholdReached', null, global); +goog.exportSymbol('proto.services.notifications.v1.CircleTimeFrame', null, global); +goog.exportSymbol('proto.services.notifications.v1.CircleType', null, global); +goog.exportSymbol('proto.services.notifications.v1.DeclinedReason', null, global); +goog.exportSymbol('proto.services.notifications.v1.DisableNotificationCategoryRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.DisableNotificationCategoryResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.DisableNotificationChannelRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.DisableNotificationChannelResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.EnableNotificationCategoryRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.EnableNotificationCategoryResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.EnableNotificationChannelRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.EnableNotificationChannelResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.GetNotificationSettingsRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.GetNotificationSettingsResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.HandleNotificationEventRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.HandleNotificationEventResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.IdentityVerificationApproved', null, global); +goog.exportSymbol('proto.services.notifications.v1.IdentityVerificationDeclined', null, global); +goog.exportSymbol('proto.services.notifications.v1.IdentityVerificationReviewStarted', null, global); +goog.exportSymbol('proto.services.notifications.v1.Money', null, global); +goog.exportSymbol('proto.services.notifications.v1.NotificationCategory', null, global); +goog.exportSymbol('proto.services.notifications.v1.NotificationChannel', null, global); +goog.exportSymbol('proto.services.notifications.v1.NotificationEvent', null, global); +goog.exportSymbol('proto.services.notifications.v1.NotificationEvent.DataCase', null, global); +goog.exportSymbol('proto.services.notifications.v1.NotificationSettings', null, global); +goog.exportSymbol('proto.services.notifications.v1.PriceChangeDirection', null, global); +goog.exportSymbol('proto.services.notifications.v1.PriceChanged', null, global); +goog.exportSymbol('proto.services.notifications.v1.RemoveEmailAddressRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.RemoveEmailAddressResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.RemovePushDeviceTokenRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.RemovePushDeviceTokenResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.ShouldSendNotificationRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.ShouldSendNotificationResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.TransactionInfo', null, global); +goog.exportSymbol('proto.services.notifications.v1.TransactionType', null, global); +goog.exportSymbol('proto.services.notifications.v1.UpdateEmailAddressRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.UpdateEmailAddressResponse', null, global); +goog.exportSymbol('proto.services.notifications.v1.UpdateUserLocaleRequest', null, global); +goog.exportSymbol('proto.services.notifications.v1.UpdateUserLocaleResponse', 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.services.notifications.v1.ShouldSendNotificationRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.ShouldSendNotificationRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.ShouldSendNotificationRequest.displayName = 'proto.services.notifications.v1.ShouldSendNotificationRequest'; +} +/** + * 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.services.notifications.v1.ShouldSendNotificationResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.ShouldSendNotificationResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.ShouldSendNotificationResponse.displayName = 'proto.services.notifications.v1.ShouldSendNotificationResponse'; +} +/** + * 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.services.notifications.v1.EnableNotificationChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.EnableNotificationChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.EnableNotificationChannelRequest.displayName = 'proto.services.notifications.v1.EnableNotificationChannelRequest'; +} +/** + * 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.services.notifications.v1.EnableNotificationChannelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.EnableNotificationChannelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.EnableNotificationChannelResponse.displayName = 'proto.services.notifications.v1.EnableNotificationChannelResponse'; +} +/** + * 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.services.notifications.v1.NotificationSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.services.notifications.v1.NotificationSettings.repeatedFields_, null); +}; +goog.inherits(proto.services.notifications.v1.NotificationSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.NotificationSettings.displayName = 'proto.services.notifications.v1.NotificationSettings'; +} +/** + * 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.services.notifications.v1.ChannelNotificationSettings = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.services.notifications.v1.ChannelNotificationSettings.repeatedFields_, null); +}; +goog.inherits(proto.services.notifications.v1.ChannelNotificationSettings, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.ChannelNotificationSettings.displayName = 'proto.services.notifications.v1.ChannelNotificationSettings'; +} +/** + * 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.services.notifications.v1.DisableNotificationChannelRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.DisableNotificationChannelRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.DisableNotificationChannelRequest.displayName = 'proto.services.notifications.v1.DisableNotificationChannelRequest'; +} +/** + * 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.services.notifications.v1.DisableNotificationChannelResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.DisableNotificationChannelResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.DisableNotificationChannelResponse.displayName = 'proto.services.notifications.v1.DisableNotificationChannelResponse'; +} +/** + * 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.services.notifications.v1.DisableNotificationCategoryRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.DisableNotificationCategoryRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.DisableNotificationCategoryRequest.displayName = 'proto.services.notifications.v1.DisableNotificationCategoryRequest'; +} +/** + * 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.services.notifications.v1.DisableNotificationCategoryResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.DisableNotificationCategoryResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.DisableNotificationCategoryResponse.displayName = 'proto.services.notifications.v1.DisableNotificationCategoryResponse'; +} +/** + * 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.services.notifications.v1.EnableNotificationCategoryRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.EnableNotificationCategoryRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.EnableNotificationCategoryRequest.displayName = 'proto.services.notifications.v1.EnableNotificationCategoryRequest'; +} +/** + * 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.services.notifications.v1.EnableNotificationCategoryResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.EnableNotificationCategoryResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.EnableNotificationCategoryResponse.displayName = 'proto.services.notifications.v1.EnableNotificationCategoryResponse'; +} +/** + * 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.services.notifications.v1.GetNotificationSettingsRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.GetNotificationSettingsRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.GetNotificationSettingsRequest.displayName = 'proto.services.notifications.v1.GetNotificationSettingsRequest'; +} +/** + * 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.services.notifications.v1.GetNotificationSettingsResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.GetNotificationSettingsResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.GetNotificationSettingsResponse.displayName = 'proto.services.notifications.v1.GetNotificationSettingsResponse'; +} +/** + * 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.services.notifications.v1.UpdateUserLocaleRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.UpdateUserLocaleRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.UpdateUserLocaleRequest.displayName = 'proto.services.notifications.v1.UpdateUserLocaleRequest'; +} +/** + * 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.services.notifications.v1.UpdateUserLocaleResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.UpdateUserLocaleResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.UpdateUserLocaleResponse.displayName = 'proto.services.notifications.v1.UpdateUserLocaleResponse'; +} +/** + * 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.services.notifications.v1.AddPushDeviceTokenRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.AddPushDeviceTokenRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.AddPushDeviceTokenRequest.displayName = 'proto.services.notifications.v1.AddPushDeviceTokenRequest'; +} +/** + * 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.services.notifications.v1.AddPushDeviceTokenResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.AddPushDeviceTokenResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.AddPushDeviceTokenResponse.displayName = 'proto.services.notifications.v1.AddPushDeviceTokenResponse'; +} +/** + * 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.services.notifications.v1.RemovePushDeviceTokenRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.RemovePushDeviceTokenRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.RemovePushDeviceTokenRequest.displayName = 'proto.services.notifications.v1.RemovePushDeviceTokenRequest'; +} +/** + * 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.services.notifications.v1.RemovePushDeviceTokenResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.RemovePushDeviceTokenResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.RemovePushDeviceTokenResponse.displayName = 'proto.services.notifications.v1.RemovePushDeviceTokenResponse'; +} +/** + * 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.services.notifications.v1.UpdateEmailAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.UpdateEmailAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.UpdateEmailAddressRequest.displayName = 'proto.services.notifications.v1.UpdateEmailAddressRequest'; +} +/** + * 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.services.notifications.v1.UpdateEmailAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.UpdateEmailAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.UpdateEmailAddressResponse.displayName = 'proto.services.notifications.v1.UpdateEmailAddressResponse'; +} +/** + * 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.services.notifications.v1.RemoveEmailAddressRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.RemoveEmailAddressRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.RemoveEmailAddressRequest.displayName = 'proto.services.notifications.v1.RemoveEmailAddressRequest'; +} +/** + * 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.services.notifications.v1.RemoveEmailAddressResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.RemoveEmailAddressResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.RemoveEmailAddressResponse.displayName = 'proto.services.notifications.v1.RemoveEmailAddressResponse'; +} +/** + * 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.services.notifications.v1.HandleNotificationEventRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.HandleNotificationEventRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.HandleNotificationEventRequest.displayName = 'proto.services.notifications.v1.HandleNotificationEventRequest'; +} +/** + * 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.services.notifications.v1.HandleNotificationEventResponse = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.HandleNotificationEventResponse, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.HandleNotificationEventResponse.displayName = 'proto.services.notifications.v1.HandleNotificationEventResponse'; +} +/** + * 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.services.notifications.v1.NotificationEvent = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, proto.services.notifications.v1.NotificationEvent.oneofGroups_); +}; +goog.inherits(proto.services.notifications.v1.NotificationEvent, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.NotificationEvent.displayName = 'proto.services.notifications.v1.NotificationEvent'; +} +/** + * 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.services.notifications.v1.CircleGrew = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.CircleGrew, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.CircleGrew.displayName = 'proto.services.notifications.v1.CircleGrew'; +} +/** + * 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.services.notifications.v1.CircleThresholdReached = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.CircleThresholdReached, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.CircleThresholdReached.displayName = 'proto.services.notifications.v1.CircleThresholdReached'; +} +/** + * 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.services.notifications.v1.IdentityVerificationApproved = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.IdentityVerificationApproved, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.IdentityVerificationApproved.displayName = 'proto.services.notifications.v1.IdentityVerificationApproved'; +} +/** + * 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.services.notifications.v1.IdentityVerificationDeclined = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.IdentityVerificationDeclined, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.IdentityVerificationDeclined.displayName = 'proto.services.notifications.v1.IdentityVerificationDeclined'; +} +/** + * 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.services.notifications.v1.IdentityVerificationReviewStarted = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.IdentityVerificationReviewStarted, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.IdentityVerificationReviewStarted.displayName = 'proto.services.notifications.v1.IdentityVerificationReviewStarted'; +} +/** + * 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.services.notifications.v1.TransactionInfo = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.TransactionInfo, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.TransactionInfo.displayName = 'proto.services.notifications.v1.TransactionInfo'; +} +/** + * 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.services.notifications.v1.Money = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.Money, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.Money.displayName = 'proto.services.notifications.v1.Money'; +} +/** + * 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.services.notifications.v1.PriceChanged = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.services.notifications.v1.PriceChanged, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.services.notifications.v1.PriceChanged.displayName = 'proto.services.notifications.v1.PriceChanged'; +} + + + +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.services.notifications.v1.ShouldSendNotificationRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.ShouldSendNotificationRequest.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.services.notifications.v1.ShouldSendNotificationRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channel: jspb.Message.getFieldWithDefault(msg, 2, 0), + category: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.ShouldSendNotificationRequest} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.ShouldSendNotificationRequest; + return proto.services.notifications.v1.ShouldSendNotificationRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.ShouldSendNotificationRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.ShouldSendNotificationRequest} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.NotificationChannel} */ (reader.readEnum()); + msg.setChannel(value); + break; + case 3: + var value = /** @type {!proto.services.notifications.v1.NotificationCategory} */ (reader.readEnum()); + msg.setCategory(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.ShouldSendNotificationRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.ShouldSendNotificationRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannel(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getCategory(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.ShouldSendNotificationRequest} returns this + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional NotificationChannel channel = 2; + * @return {!proto.services.notifications.v1.NotificationChannel} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.getChannel = function() { + return /** @type {!proto.services.notifications.v1.NotificationChannel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationChannel} value + * @return {!proto.services.notifications.v1.ShouldSendNotificationRequest} returns this + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.setChannel = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional NotificationCategory category = 3; + * @return {!proto.services.notifications.v1.NotificationCategory} + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.getCategory = function() { + return /** @type {!proto.services.notifications.v1.NotificationCategory} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationCategory} value + * @return {!proto.services.notifications.v1.ShouldSendNotificationRequest} returns this + */ +proto.services.notifications.v1.ShouldSendNotificationRequest.prototype.setCategory = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + + + + +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.services.notifications.v1.ShouldSendNotificationResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.ShouldSendNotificationResponse.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.services.notifications.v1.ShouldSendNotificationResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + shouldSend: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.ShouldSendNotificationResponse} + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.ShouldSendNotificationResponse; + return proto.services.notifications.v1.ShouldSendNotificationResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.ShouldSendNotificationResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.ShouldSendNotificationResponse} + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.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.setUserId(value); + break; + case 2: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setShouldSend(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.ShouldSendNotificationResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.ShouldSendNotificationResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getShouldSend(); + if (f) { + writer.writeBool( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.ShouldSendNotificationResponse} returns this + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional bool should_send = 2; + * @return {boolean} + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.prototype.getShouldSend = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.services.notifications.v1.ShouldSendNotificationResponse} returns this + */ +proto.services.notifications.v1.ShouldSendNotificationResponse.prototype.setShouldSend = function(value) { + return jspb.Message.setProto3BooleanField(this, 2, value); +}; + + + + + +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.services.notifications.v1.EnableNotificationChannelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.EnableNotificationChannelRequest.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.services.notifications.v1.EnableNotificationChannelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channel: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.EnableNotificationChannelRequest} + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.EnableNotificationChannelRequest; + return proto.services.notifications.v1.EnableNotificationChannelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.EnableNotificationChannelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.EnableNotificationChannelRequest} + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.NotificationChannel} */ (reader.readEnum()); + msg.setChannel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.EnableNotificationChannelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.EnableNotificationChannelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannel(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.EnableNotificationChannelRequest} returns this + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional NotificationChannel channel = 2; + * @return {!proto.services.notifications.v1.NotificationChannel} + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.prototype.getChannel = function() { + return /** @type {!proto.services.notifications.v1.NotificationChannel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationChannel} value + * @return {!proto.services.notifications.v1.EnableNotificationChannelRequest} returns this + */ +proto.services.notifications.v1.EnableNotificationChannelRequest.prototype.setChannel = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +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.services.notifications.v1.EnableNotificationChannelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.EnableNotificationChannelResponse.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.services.notifications.v1.EnableNotificationChannelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.EnableNotificationChannelResponse} + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.EnableNotificationChannelResponse; + return proto.services.notifications.v1.EnableNotificationChannelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.EnableNotificationChannelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.EnableNotificationChannelResponse} + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.EnableNotificationChannelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.EnableNotificationChannelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.EnableNotificationChannelResponse} returns this +*/ +proto.services.notifications.v1.EnableNotificationChannelResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.EnableNotificationChannelResponse} returns this + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.EnableNotificationChannelResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.services.notifications.v1.NotificationSettings.repeatedFields_ = [3]; + + + +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.services.notifications.v1.NotificationSettings.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.NotificationSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.NotificationSettings.toObject = function(includeInstance, msg) { + var f, obj = { + push: (f = msg.getPush()) && proto.services.notifications.v1.ChannelNotificationSettings.toObject(includeInstance, f), + locale: jspb.Message.getFieldWithDefault(msg, 2, ""), + pushDeviceTokensList: (f = jspb.Message.getRepeatedField(msg, 3)) == 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.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.NotificationSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.NotificationSettings; + return proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.NotificationSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.ChannelNotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.ChannelNotificationSettings.deserializeBinaryFromReader); + msg.setPush(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLocale(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.addPushDeviceTokens(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.NotificationSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.NotificationSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPush(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.ChannelNotificationSettings.serializeBinaryToWriter + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getPushDeviceTokensList(); + if (f.length > 0) { + writer.writeRepeatedString( + 3, + f + ); + } +}; + + +/** + * optional ChannelNotificationSettings push = 1; + * @return {?proto.services.notifications.v1.ChannelNotificationSettings} + */ +proto.services.notifications.v1.NotificationSettings.prototype.getPush = function() { + return /** @type{?proto.services.notifications.v1.ChannelNotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.ChannelNotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.ChannelNotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.NotificationSettings} returns this +*/ +proto.services.notifications.v1.NotificationSettings.prototype.setPush = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.clearPush = function() { + return this.setPush(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationSettings.prototype.hasPush = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional string locale = 2; + * @return {string} + */ +proto.services.notifications.v1.NotificationSettings.prototype.getLocale = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.setLocale = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.clearLocale = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationSettings.prototype.hasLocale = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * repeated string push_device_tokens = 3; + * @return {!Array} + */ +proto.services.notifications.v1.NotificationSettings.prototype.getPushDeviceTokensList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 3)); +}; + + +/** + * @param {!Array} value + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.setPushDeviceTokensList = function(value) { + return jspb.Message.setField(this, 3, value || []); +}; + + +/** + * @param {string} value + * @param {number=} opt_index + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.addPushDeviceTokens = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 3, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.services.notifications.v1.NotificationSettings} returns this + */ +proto.services.notifications.v1.NotificationSettings.prototype.clearPushDeviceTokensList = function() { + return this.setPushDeviceTokensList([]); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.services.notifications.v1.ChannelNotificationSettings.repeatedFields_ = [2]; + + + +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.services.notifications.v1.ChannelNotificationSettings.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.ChannelNotificationSettings.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.services.notifications.v1.ChannelNotificationSettings} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ChannelNotificationSettings.toObject = function(includeInstance, msg) { + var f, obj = { + enabled: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), + disabledCategoriesList: (f = jspb.Message.getRepeatedField(msg, 2)) == 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.services.notifications.v1.ChannelNotificationSettings} + */ +proto.services.notifications.v1.ChannelNotificationSettings.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.ChannelNotificationSettings; + return proto.services.notifications.v1.ChannelNotificationSettings.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.ChannelNotificationSettings} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.ChannelNotificationSettings} + */ +proto.services.notifications.v1.ChannelNotificationSettings.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {boolean} */ (reader.readBool()); + msg.setEnabled(value); + break; + case 2: + var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); + for (var i = 0; i < values.length; i++) { + msg.addDisabledCategories(values[i]); + } + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.ChannelNotificationSettings.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.ChannelNotificationSettings} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.ChannelNotificationSettings.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEnabled(); + if (f) { + writer.writeBool( + 1, + f + ); + } + f = message.getDisabledCategoriesList(); + if (f.length > 0) { + writer.writePackedEnum( + 2, + f + ); + } +}; + + +/** + * optional bool enabled = 1; + * @return {boolean} + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.getEnabled = function() { + return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); +}; + + +/** + * @param {boolean} value + * @return {!proto.services.notifications.v1.ChannelNotificationSettings} returns this + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.setEnabled = function(value) { + return jspb.Message.setProto3BooleanField(this, 1, value); +}; + + +/** + * repeated NotificationCategory disabled_categories = 2; + * @return {!Array} + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.getDisabledCategoriesList = function() { + return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); +}; + + +/** + * @param {!Array} value + * @return {!proto.services.notifications.v1.ChannelNotificationSettings} returns this + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.setDisabledCategoriesList = function(value) { + return jspb.Message.setField(this, 2, value || []); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationCategory} value + * @param {number=} opt_index + * @return {!proto.services.notifications.v1.ChannelNotificationSettings} returns this + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.addDisabledCategories = function(value, opt_index) { + return jspb.Message.addToRepeatedField(this, 2, value, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.services.notifications.v1.ChannelNotificationSettings} returns this + */ +proto.services.notifications.v1.ChannelNotificationSettings.prototype.clearDisabledCategoriesList = function() { + return this.setDisabledCategoriesList([]); +}; + + + + + +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.services.notifications.v1.DisableNotificationChannelRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.DisableNotificationChannelRequest.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.services.notifications.v1.DisableNotificationChannelRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channel: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.DisableNotificationChannelRequest} + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.DisableNotificationChannelRequest; + return proto.services.notifications.v1.DisableNotificationChannelRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.DisableNotificationChannelRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.DisableNotificationChannelRequest} + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.NotificationChannel} */ (reader.readEnum()); + msg.setChannel(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.DisableNotificationChannelRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.DisableNotificationChannelRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannel(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.DisableNotificationChannelRequest} returns this + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional NotificationChannel channel = 2; + * @return {!proto.services.notifications.v1.NotificationChannel} + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.prototype.getChannel = function() { + return /** @type {!proto.services.notifications.v1.NotificationChannel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationChannel} value + * @return {!proto.services.notifications.v1.DisableNotificationChannelRequest} returns this + */ +proto.services.notifications.v1.DisableNotificationChannelRequest.prototype.setChannel = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +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.services.notifications.v1.DisableNotificationChannelResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.DisableNotificationChannelResponse.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.services.notifications.v1.DisableNotificationChannelResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.DisableNotificationChannelResponse} + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.DisableNotificationChannelResponse; + return proto.services.notifications.v1.DisableNotificationChannelResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.DisableNotificationChannelResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.DisableNotificationChannelResponse} + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.DisableNotificationChannelResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.DisableNotificationChannelResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.DisableNotificationChannelResponse} returns this +*/ +proto.services.notifications.v1.DisableNotificationChannelResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.DisableNotificationChannelResponse} returns this + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.DisableNotificationChannelResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.DisableNotificationCategoryRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.DisableNotificationCategoryRequest.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.services.notifications.v1.DisableNotificationCategoryRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channel: jspb.Message.getFieldWithDefault(msg, 2, 0), + category: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.DisableNotificationCategoryRequest} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.DisableNotificationCategoryRequest; + return proto.services.notifications.v1.DisableNotificationCategoryRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.DisableNotificationCategoryRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.DisableNotificationCategoryRequest} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.NotificationChannel} */ (reader.readEnum()); + msg.setChannel(value); + break; + case 3: + var value = /** @type {!proto.services.notifications.v1.NotificationCategory} */ (reader.readEnum()); + msg.setCategory(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.DisableNotificationCategoryRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.DisableNotificationCategoryRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannel(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getCategory(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.DisableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional NotificationChannel channel = 2; + * @return {!proto.services.notifications.v1.NotificationChannel} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.getChannel = function() { + return /** @type {!proto.services.notifications.v1.NotificationChannel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationChannel} value + * @return {!proto.services.notifications.v1.DisableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.setChannel = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional NotificationCategory category = 3; + * @return {!proto.services.notifications.v1.NotificationCategory} + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.getCategory = function() { + return /** @type {!proto.services.notifications.v1.NotificationCategory} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationCategory} value + * @return {!proto.services.notifications.v1.DisableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.DisableNotificationCategoryRequest.prototype.setCategory = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + + + + +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.services.notifications.v1.DisableNotificationCategoryResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.DisableNotificationCategoryResponse.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.services.notifications.v1.DisableNotificationCategoryResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.DisableNotificationCategoryResponse} + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.DisableNotificationCategoryResponse; + return proto.services.notifications.v1.DisableNotificationCategoryResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.DisableNotificationCategoryResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.DisableNotificationCategoryResponse} + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.DisableNotificationCategoryResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.DisableNotificationCategoryResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.DisableNotificationCategoryResponse} returns this +*/ +proto.services.notifications.v1.DisableNotificationCategoryResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.DisableNotificationCategoryResponse} returns this + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.DisableNotificationCategoryResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.EnableNotificationCategoryRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.EnableNotificationCategoryRequest.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.services.notifications.v1.EnableNotificationCategoryRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + channel: jspb.Message.getFieldWithDefault(msg, 2, 0), + category: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.EnableNotificationCategoryRequest} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.EnableNotificationCategoryRequest; + return proto.services.notifications.v1.EnableNotificationCategoryRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.EnableNotificationCategoryRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.EnableNotificationCategoryRequest} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.NotificationChannel} */ (reader.readEnum()); + msg.setChannel(value); + break; + case 3: + var value = /** @type {!proto.services.notifications.v1.NotificationCategory} */ (reader.readEnum()); + msg.setCategory(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.EnableNotificationCategoryRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.EnableNotificationCategoryRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getChannel(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getCategory(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.EnableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional NotificationChannel channel = 2; + * @return {!proto.services.notifications.v1.NotificationChannel} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.getChannel = function() { + return /** @type {!proto.services.notifications.v1.NotificationChannel} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationChannel} value + * @return {!proto.services.notifications.v1.EnableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.setChannel = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional NotificationCategory category = 3; + * @return {!proto.services.notifications.v1.NotificationCategory} + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.getCategory = function() { + return /** @type {!proto.services.notifications.v1.NotificationCategory} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.NotificationCategory} value + * @return {!proto.services.notifications.v1.EnableNotificationCategoryRequest} returns this + */ +proto.services.notifications.v1.EnableNotificationCategoryRequest.prototype.setCategory = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + + + + +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.services.notifications.v1.EnableNotificationCategoryResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.EnableNotificationCategoryResponse.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.services.notifications.v1.EnableNotificationCategoryResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.EnableNotificationCategoryResponse} + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.EnableNotificationCategoryResponse; + return proto.services.notifications.v1.EnableNotificationCategoryResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.EnableNotificationCategoryResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.EnableNotificationCategoryResponse} + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.EnableNotificationCategoryResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.EnableNotificationCategoryResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.EnableNotificationCategoryResponse} returns this +*/ +proto.services.notifications.v1.EnableNotificationCategoryResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.EnableNotificationCategoryResponse} returns this + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.EnableNotificationCategoryResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.GetNotificationSettingsRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.GetNotificationSettingsRequest.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.services.notifications.v1.GetNotificationSettingsRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.GetNotificationSettingsRequest} + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.GetNotificationSettingsRequest; + return proto.services.notifications.v1.GetNotificationSettingsRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.GetNotificationSettingsRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.GetNotificationSettingsRequest} + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.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.setUserId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.GetNotificationSettingsRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.GetNotificationSettingsRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.GetNotificationSettingsRequest} returns this + */ +proto.services.notifications.v1.GetNotificationSettingsRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +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.services.notifications.v1.GetNotificationSettingsResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.GetNotificationSettingsResponse.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.services.notifications.v1.GetNotificationSettingsResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.GetNotificationSettingsResponse} + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.GetNotificationSettingsResponse; + return proto.services.notifications.v1.GetNotificationSettingsResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.GetNotificationSettingsResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.GetNotificationSettingsResponse} + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.GetNotificationSettingsResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.GetNotificationSettingsResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.GetNotificationSettingsResponse} returns this +*/ +proto.services.notifications.v1.GetNotificationSettingsResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.GetNotificationSettingsResponse} returns this + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.GetNotificationSettingsResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.UpdateUserLocaleRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.UpdateUserLocaleRequest.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.services.notifications.v1.UpdateUserLocaleRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + locale: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.UpdateUserLocaleRequest} + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.UpdateUserLocaleRequest; + return proto.services.notifications.v1.UpdateUserLocaleRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.UpdateUserLocaleRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.UpdateUserLocaleRequest} + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setLocale(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.UpdateUserLocaleRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.UpdateUserLocaleRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getLocale(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.UpdateUserLocaleRequest} returns this + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string locale = 2; + * @return {string} + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.prototype.getLocale = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.UpdateUserLocaleRequest} returns this + */ +proto.services.notifications.v1.UpdateUserLocaleRequest.prototype.setLocale = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +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.services.notifications.v1.UpdateUserLocaleResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.UpdateUserLocaleResponse.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.services.notifications.v1.UpdateUserLocaleResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.UpdateUserLocaleResponse} + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.UpdateUserLocaleResponse; + return proto.services.notifications.v1.UpdateUserLocaleResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.UpdateUserLocaleResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.UpdateUserLocaleResponse} + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.UpdateUserLocaleResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.UpdateUserLocaleResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.UpdateUserLocaleResponse} returns this +*/ +proto.services.notifications.v1.UpdateUserLocaleResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.UpdateUserLocaleResponse} returns this + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.UpdateUserLocaleResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.AddPushDeviceTokenRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.AddPushDeviceTokenRequest.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.services.notifications.v1.AddPushDeviceTokenRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + deviceToken: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.AddPushDeviceTokenRequest} + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.AddPushDeviceTokenRequest; + return proto.services.notifications.v1.AddPushDeviceTokenRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.AddPushDeviceTokenRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.AddPushDeviceTokenRequest} + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDeviceToken(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.AddPushDeviceTokenRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.AddPushDeviceTokenRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDeviceToken(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.AddPushDeviceTokenRequest} returns this + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string device_token = 2; + * @return {string} + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.prototype.getDeviceToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.AddPushDeviceTokenRequest} returns this + */ +proto.services.notifications.v1.AddPushDeviceTokenRequest.prototype.setDeviceToken = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +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.services.notifications.v1.AddPushDeviceTokenResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.AddPushDeviceTokenResponse.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.services.notifications.v1.AddPushDeviceTokenResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.AddPushDeviceTokenResponse} + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.AddPushDeviceTokenResponse; + return proto.services.notifications.v1.AddPushDeviceTokenResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.AddPushDeviceTokenResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.AddPushDeviceTokenResponse} + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.AddPushDeviceTokenResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.AddPushDeviceTokenResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.AddPushDeviceTokenResponse} returns this +*/ +proto.services.notifications.v1.AddPushDeviceTokenResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.AddPushDeviceTokenResponse} returns this + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.AddPushDeviceTokenResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.RemovePushDeviceTokenRequest.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.services.notifications.v1.RemovePushDeviceTokenRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + deviceToken: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.RemovePushDeviceTokenRequest; + return proto.services.notifications.v1.RemovePushDeviceTokenRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setDeviceToken(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.RemovePushDeviceTokenRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDeviceToken(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} returns this + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string device_token = 2; + * @return {string} + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.getDeviceToken = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenRequest} returns this + */ +proto.services.notifications.v1.RemovePushDeviceTokenRequest.prototype.setDeviceToken = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +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.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.RemovePushDeviceTokenResponse.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.services.notifications.v1.RemovePushDeviceTokenResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.toObject = function(includeInstance, msg) { + var f, obj = { + notificationSettings: (f = msg.getNotificationSettings()) && proto.services.notifications.v1.NotificationSettings.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.services.notifications.v1.RemovePushDeviceTokenResponse} + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.RemovePushDeviceTokenResponse; + return proto.services.notifications.v1.RemovePushDeviceTokenResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.RemovePushDeviceTokenResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenResponse} + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationSettings; + reader.readMessage(value,proto.services.notifications.v1.NotificationSettings.deserializeBinaryFromReader); + msg.setNotificationSettings(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.RemovePushDeviceTokenResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.RemovePushDeviceTokenResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getNotificationSettings(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationSettings.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationSettings notification_settings = 1; + * @return {?proto.services.notifications.v1.NotificationSettings} + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.getNotificationSettings = function() { + return /** @type{?proto.services.notifications.v1.NotificationSettings} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationSettings, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationSettings|undefined} value + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenResponse} returns this +*/ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.setNotificationSettings = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.RemovePushDeviceTokenResponse} returns this + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.clearNotificationSettings = function() { + return this.setNotificationSettings(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.RemovePushDeviceTokenResponse.prototype.hasNotificationSettings = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.UpdateEmailAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.UpdateEmailAddressRequest.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.services.notifications.v1.UpdateEmailAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + emailAddress: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.UpdateEmailAddressRequest} + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.UpdateEmailAddressRequest; + return proto.services.notifications.v1.UpdateEmailAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.UpdateEmailAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.UpdateEmailAddressRequest} + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.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.setUserId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setEmailAddress(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.UpdateEmailAddressRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.UpdateEmailAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getEmailAddress(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.UpdateEmailAddressRequest} returns this + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string email_address = 2; + * @return {string} + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.prototype.getEmailAddress = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.UpdateEmailAddressRequest} returns this + */ +proto.services.notifications.v1.UpdateEmailAddressRequest.prototype.setEmailAddress = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + + + + +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.services.notifications.v1.UpdateEmailAddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.UpdateEmailAddressResponse.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.services.notifications.v1.UpdateEmailAddressResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateEmailAddressResponse.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.services.notifications.v1.UpdateEmailAddressResponse} + */ +proto.services.notifications.v1.UpdateEmailAddressResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.UpdateEmailAddressResponse; + return proto.services.notifications.v1.UpdateEmailAddressResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.UpdateEmailAddressResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.UpdateEmailAddressResponse} + */ +proto.services.notifications.v1.UpdateEmailAddressResponse.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.services.notifications.v1.UpdateEmailAddressResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.UpdateEmailAddressResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.UpdateEmailAddressResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.UpdateEmailAddressResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +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.services.notifications.v1.RemoveEmailAddressRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.RemoveEmailAddressRequest.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.services.notifications.v1.RemoveEmailAddressRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.RemoveEmailAddressRequest} + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.RemoveEmailAddressRequest; + return proto.services.notifications.v1.RemoveEmailAddressRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.RemoveEmailAddressRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.RemoveEmailAddressRequest} + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.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.setUserId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.RemoveEmailAddressRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.RemoveEmailAddressRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.RemoveEmailAddressRequest} returns this + */ +proto.services.notifications.v1.RemoveEmailAddressRequest.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +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.services.notifications.v1.RemoveEmailAddressResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.RemoveEmailAddressResponse.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.services.notifications.v1.RemoveEmailAddressResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemoveEmailAddressResponse.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.services.notifications.v1.RemoveEmailAddressResponse} + */ +proto.services.notifications.v1.RemoveEmailAddressResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.RemoveEmailAddressResponse; + return proto.services.notifications.v1.RemoveEmailAddressResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.RemoveEmailAddressResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.RemoveEmailAddressResponse} + */ +proto.services.notifications.v1.RemoveEmailAddressResponse.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.services.notifications.v1.RemoveEmailAddressResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.RemoveEmailAddressResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.RemoveEmailAddressResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.RemoveEmailAddressResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + + + +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.services.notifications.v1.HandleNotificationEventRequest.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.HandleNotificationEventRequest.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.services.notifications.v1.HandleNotificationEventRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.HandleNotificationEventRequest.toObject = function(includeInstance, msg) { + var f, obj = { + event: (f = msg.getEvent()) && proto.services.notifications.v1.NotificationEvent.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.services.notifications.v1.HandleNotificationEventRequest} + */ +proto.services.notifications.v1.HandleNotificationEventRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.HandleNotificationEventRequest; + return proto.services.notifications.v1.HandleNotificationEventRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.HandleNotificationEventRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.HandleNotificationEventRequest} + */ +proto.services.notifications.v1.HandleNotificationEventRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.NotificationEvent; + reader.readMessage(value,proto.services.notifications.v1.NotificationEvent.deserializeBinaryFromReader); + msg.setEvent(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.HandleNotificationEventRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.HandleNotificationEventRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.HandleNotificationEventRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.HandleNotificationEventRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getEvent(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.NotificationEvent.serializeBinaryToWriter + ); + } +}; + + +/** + * optional NotificationEvent event = 1; + * @return {?proto.services.notifications.v1.NotificationEvent} + */ +proto.services.notifications.v1.HandleNotificationEventRequest.prototype.getEvent = function() { + return /** @type{?proto.services.notifications.v1.NotificationEvent} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.NotificationEvent, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.NotificationEvent|undefined} value + * @return {!proto.services.notifications.v1.HandleNotificationEventRequest} returns this +*/ +proto.services.notifications.v1.HandleNotificationEventRequest.prototype.setEvent = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.HandleNotificationEventRequest} returns this + */ +proto.services.notifications.v1.HandleNotificationEventRequest.prototype.clearEvent = function() { + return this.setEvent(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.HandleNotificationEventRequest.prototype.hasEvent = function() { + return jspb.Message.getField(this, 1) != 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.services.notifications.v1.HandleNotificationEventResponse.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.HandleNotificationEventResponse.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.services.notifications.v1.HandleNotificationEventResponse} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.HandleNotificationEventResponse.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.services.notifications.v1.HandleNotificationEventResponse} + */ +proto.services.notifications.v1.HandleNotificationEventResponse.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.HandleNotificationEventResponse; + return proto.services.notifications.v1.HandleNotificationEventResponse.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.HandleNotificationEventResponse} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.HandleNotificationEventResponse} + */ +proto.services.notifications.v1.HandleNotificationEventResponse.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.services.notifications.v1.HandleNotificationEventResponse.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.HandleNotificationEventResponse.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.HandleNotificationEventResponse} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.HandleNotificationEventResponse.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + + +/** + * Oneof group definitions for this message. Each group defines the field + * numbers belonging to that group. When of these fields' value is set, all + * other fields in the group are cleared. During deserialization, if multiple + * fields are encountered for a group, only the last value seen will be kept. + * @private {!Array>} + * @const + */ +proto.services.notifications.v1.NotificationEvent.oneofGroups_ = [[1,2,3,4,5,6,7]]; + +/** + * @enum {number} + */ +proto.services.notifications.v1.NotificationEvent.DataCase = { + DATA_NOT_SET: 0, + CIRCLE_GREW: 1, + CIRCLE_THRESHOLD_REACHED: 2, + IDENTITY_VERIFICATION_APPROVED: 3, + IDENTITY_VERIFICATION_DECLINED: 4, + IDENTITY_VERIFICATION_REVIEW_STARTED: 5, + TRANSACTION: 6, + PRICE: 7 +}; + +/** + * @return {proto.services.notifications.v1.NotificationEvent.DataCase} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getDataCase = function() { + return /** @type {proto.services.notifications.v1.NotificationEvent.DataCase} */(jspb.Message.computeOneofCase(this, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0])); +}; + + + +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.services.notifications.v1.NotificationEvent.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.NotificationEvent.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.services.notifications.v1.NotificationEvent} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.NotificationEvent.toObject = function(includeInstance, msg) { + var f, obj = { + circleGrew: (f = msg.getCircleGrew()) && proto.services.notifications.v1.CircleGrew.toObject(includeInstance, f), + circleThresholdReached: (f = msg.getCircleThresholdReached()) && proto.services.notifications.v1.CircleThresholdReached.toObject(includeInstance, f), + identityVerificationApproved: (f = msg.getIdentityVerificationApproved()) && proto.services.notifications.v1.IdentityVerificationApproved.toObject(includeInstance, f), + identityVerificationDeclined: (f = msg.getIdentityVerificationDeclined()) && proto.services.notifications.v1.IdentityVerificationDeclined.toObject(includeInstance, f), + identityVerificationReviewStarted: (f = msg.getIdentityVerificationReviewStarted()) && proto.services.notifications.v1.IdentityVerificationReviewStarted.toObject(includeInstance, f), + transaction: (f = msg.getTransaction()) && proto.services.notifications.v1.TransactionInfo.toObject(includeInstance, f), + price: (f = msg.getPrice()) && proto.services.notifications.v1.PriceChanged.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.services.notifications.v1.NotificationEvent} + */ +proto.services.notifications.v1.NotificationEvent.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.NotificationEvent; + return proto.services.notifications.v1.NotificationEvent.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.NotificationEvent} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.NotificationEvent} + */ +proto.services.notifications.v1.NotificationEvent.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.CircleGrew; + reader.readMessage(value,proto.services.notifications.v1.CircleGrew.deserializeBinaryFromReader); + msg.setCircleGrew(value); + break; + case 2: + var value = new proto.services.notifications.v1.CircleThresholdReached; + reader.readMessage(value,proto.services.notifications.v1.CircleThresholdReached.deserializeBinaryFromReader); + msg.setCircleThresholdReached(value); + break; + case 3: + var value = new proto.services.notifications.v1.IdentityVerificationApproved; + reader.readMessage(value,proto.services.notifications.v1.IdentityVerificationApproved.deserializeBinaryFromReader); + msg.setIdentityVerificationApproved(value); + break; + case 4: + var value = new proto.services.notifications.v1.IdentityVerificationDeclined; + reader.readMessage(value,proto.services.notifications.v1.IdentityVerificationDeclined.deserializeBinaryFromReader); + msg.setIdentityVerificationDeclined(value); + break; + case 5: + var value = new proto.services.notifications.v1.IdentityVerificationReviewStarted; + reader.readMessage(value,proto.services.notifications.v1.IdentityVerificationReviewStarted.deserializeBinaryFromReader); + msg.setIdentityVerificationReviewStarted(value); + break; + case 6: + var value = new proto.services.notifications.v1.TransactionInfo; + reader.readMessage(value,proto.services.notifications.v1.TransactionInfo.deserializeBinaryFromReader); + msg.setTransaction(value); + break; + case 7: + var value = new proto.services.notifications.v1.PriceChanged; + reader.readMessage(value,proto.services.notifications.v1.PriceChanged.deserializeBinaryFromReader); + msg.setPrice(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.NotificationEvent.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.NotificationEvent.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.NotificationEvent} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.NotificationEvent.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCircleGrew(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.CircleGrew.serializeBinaryToWriter + ); + } + f = message.getCircleThresholdReached(); + if (f != null) { + writer.writeMessage( + 2, + f, + proto.services.notifications.v1.CircleThresholdReached.serializeBinaryToWriter + ); + } + f = message.getIdentityVerificationApproved(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.services.notifications.v1.IdentityVerificationApproved.serializeBinaryToWriter + ); + } + f = message.getIdentityVerificationDeclined(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.services.notifications.v1.IdentityVerificationDeclined.serializeBinaryToWriter + ); + } + f = message.getIdentityVerificationReviewStarted(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.services.notifications.v1.IdentityVerificationReviewStarted.serializeBinaryToWriter + ); + } + f = message.getTransaction(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.services.notifications.v1.TransactionInfo.serializeBinaryToWriter + ); + } + f = message.getPrice(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.services.notifications.v1.PriceChanged.serializeBinaryToWriter + ); + } +}; + + +/** + * optional CircleGrew circle_grew = 1; + * @return {?proto.services.notifications.v1.CircleGrew} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getCircleGrew = function() { + return /** @type{?proto.services.notifications.v1.CircleGrew} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.CircleGrew, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.CircleGrew|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setCircleGrew = function(value) { + return jspb.Message.setOneofWrapperField(this, 1, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearCircleGrew = function() { + return this.setCircleGrew(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasCircleGrew = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional CircleThresholdReached circle_threshold_reached = 2; + * @return {?proto.services.notifications.v1.CircleThresholdReached} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getCircleThresholdReached = function() { + return /** @type{?proto.services.notifications.v1.CircleThresholdReached} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.CircleThresholdReached, 2)); +}; + + +/** + * @param {?proto.services.notifications.v1.CircleThresholdReached|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setCircleThresholdReached = function(value) { + return jspb.Message.setOneofWrapperField(this, 2, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearCircleThresholdReached = function() { + return this.setCircleThresholdReached(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasCircleThresholdReached = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional IdentityVerificationApproved identity_verification_approved = 3; + * @return {?proto.services.notifications.v1.IdentityVerificationApproved} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getIdentityVerificationApproved = function() { + return /** @type{?proto.services.notifications.v1.IdentityVerificationApproved} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.IdentityVerificationApproved, 3)); +}; + + +/** + * @param {?proto.services.notifications.v1.IdentityVerificationApproved|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setIdentityVerificationApproved = function(value) { + return jspb.Message.setOneofWrapperField(this, 3, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearIdentityVerificationApproved = function() { + return this.setIdentityVerificationApproved(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasIdentityVerificationApproved = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional IdentityVerificationDeclined identity_verification_declined = 4; + * @return {?proto.services.notifications.v1.IdentityVerificationDeclined} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getIdentityVerificationDeclined = function() { + return /** @type{?proto.services.notifications.v1.IdentityVerificationDeclined} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.IdentityVerificationDeclined, 4)); +}; + + +/** + * @param {?proto.services.notifications.v1.IdentityVerificationDeclined|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setIdentityVerificationDeclined = function(value) { + return jspb.Message.setOneofWrapperField(this, 4, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearIdentityVerificationDeclined = function() { + return this.setIdentityVerificationDeclined(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasIdentityVerificationDeclined = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional IdentityVerificationReviewStarted identity_verification_review_started = 5; + * @return {?proto.services.notifications.v1.IdentityVerificationReviewStarted} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getIdentityVerificationReviewStarted = function() { + return /** @type{?proto.services.notifications.v1.IdentityVerificationReviewStarted} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.IdentityVerificationReviewStarted, 5)); +}; + + +/** + * @param {?proto.services.notifications.v1.IdentityVerificationReviewStarted|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setIdentityVerificationReviewStarted = function(value) { + return jspb.Message.setOneofWrapperField(this, 5, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearIdentityVerificationReviewStarted = function() { + return this.setIdentityVerificationReviewStarted(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasIdentityVerificationReviewStarted = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional TransactionInfo transaction = 6; + * @return {?proto.services.notifications.v1.TransactionInfo} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getTransaction = function() { + return /** @type{?proto.services.notifications.v1.TransactionInfo} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.TransactionInfo, 6)); +}; + + +/** + * @param {?proto.services.notifications.v1.TransactionInfo|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setTransaction = function(value) { + return jspb.Message.setOneofWrapperField(this, 6, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearTransaction = function() { + return this.setTransaction(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasTransaction = function() { + return jspb.Message.getField(this, 6) != null; +}; + + +/** + * optional PriceChanged price = 7; + * @return {?proto.services.notifications.v1.PriceChanged} + */ +proto.services.notifications.v1.NotificationEvent.prototype.getPrice = function() { + return /** @type{?proto.services.notifications.v1.PriceChanged} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.PriceChanged, 7)); +}; + + +/** + * @param {?proto.services.notifications.v1.PriceChanged|undefined} value + * @return {!proto.services.notifications.v1.NotificationEvent} returns this +*/ +proto.services.notifications.v1.NotificationEvent.prototype.setPrice = function(value) { + return jspb.Message.setOneofWrapperField(this, 7, proto.services.notifications.v1.NotificationEvent.oneofGroups_[0], value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.NotificationEvent} returns this + */ +proto.services.notifications.v1.NotificationEvent.prototype.clearPrice = function() { + return this.setPrice(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.NotificationEvent.prototype.hasPrice = function() { + return jspb.Message.getField(this, 7) != 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.services.notifications.v1.CircleGrew.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.CircleGrew.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.services.notifications.v1.CircleGrew} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.CircleGrew.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + circleType: jspb.Message.getFieldWithDefault(msg, 2, 0), + thisMonthCircleSize: jspb.Message.getFieldWithDefault(msg, 3, 0), + allTimeCircleSize: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.CircleGrew} + */ +proto.services.notifications.v1.CircleGrew.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.CircleGrew; + return proto.services.notifications.v1.CircleGrew.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.CircleGrew} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.CircleGrew} + */ +proto.services.notifications.v1.CircleGrew.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.CircleType} */ (reader.readEnum()); + msg.setCircleType(value); + break; + case 3: + var value = /** @type {number} */ (reader.readUint32()); + msg.setThisMonthCircleSize(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setAllTimeCircleSize(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.CircleGrew.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.CircleGrew.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.CircleGrew} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.CircleGrew.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCircleType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getThisMonthCircleSize(); + if (f !== 0) { + writer.writeUint32( + 3, + f + ); + } + f = message.getAllTimeCircleSize(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.CircleGrew.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.CircleGrew} returns this + */ +proto.services.notifications.v1.CircleGrew.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional CircleType circle_type = 2; + * @return {!proto.services.notifications.v1.CircleType} + */ +proto.services.notifications.v1.CircleGrew.prototype.getCircleType = function() { + return /** @type {!proto.services.notifications.v1.CircleType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.CircleType} value + * @return {!proto.services.notifications.v1.CircleGrew} returns this + */ +proto.services.notifications.v1.CircleGrew.prototype.setCircleType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional uint32 this_month_circle_size = 3; + * @return {number} + */ +proto.services.notifications.v1.CircleGrew.prototype.getThisMonthCircleSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.notifications.v1.CircleGrew} returns this + */ +proto.services.notifications.v1.CircleGrew.prototype.setThisMonthCircleSize = function(value) { + return jspb.Message.setProto3IntField(this, 3, value); +}; + + +/** + * optional uint32 all_time_circle_size = 4; + * @return {number} + */ +proto.services.notifications.v1.CircleGrew.prototype.getAllTimeCircleSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.notifications.v1.CircleGrew} returns this + */ +proto.services.notifications.v1.CircleGrew.prototype.setAllTimeCircleSize = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +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.services.notifications.v1.CircleThresholdReached.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.CircleThresholdReached.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.services.notifications.v1.CircleThresholdReached} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.CircleThresholdReached.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + circleType: jspb.Message.getFieldWithDefault(msg, 2, 0), + timeFrame: jspb.Message.getFieldWithDefault(msg, 3, 0), + threshold: jspb.Message.getFieldWithDefault(msg, 4, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.CircleThresholdReached} + */ +proto.services.notifications.v1.CircleThresholdReached.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.CircleThresholdReached; + return proto.services.notifications.v1.CircleThresholdReached.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.CircleThresholdReached} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.CircleThresholdReached} + */ +proto.services.notifications.v1.CircleThresholdReached.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.CircleType} */ (reader.readEnum()); + msg.setCircleType(value); + break; + case 3: + var value = /** @type {!proto.services.notifications.v1.CircleTimeFrame} */ (reader.readEnum()); + msg.setTimeFrame(value); + break; + case 4: + var value = /** @type {number} */ (reader.readUint32()); + msg.setThreshold(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.CircleThresholdReached.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.CircleThresholdReached} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.CircleThresholdReached.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getCircleType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getTimeFrame(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getThreshold(); + if (f !== 0) { + writer.writeUint32( + 4, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.CircleThresholdReached} returns this + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional CircleType circle_type = 2; + * @return {!proto.services.notifications.v1.CircleType} + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.getCircleType = function() { + return /** @type {!proto.services.notifications.v1.CircleType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.CircleType} value + * @return {!proto.services.notifications.v1.CircleThresholdReached} returns this + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.setCircleType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional CircleTimeFrame time_frame = 3; + * @return {!proto.services.notifications.v1.CircleTimeFrame} + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.getTimeFrame = function() { + return /** @type {!proto.services.notifications.v1.CircleTimeFrame} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.CircleTimeFrame} value + * @return {!proto.services.notifications.v1.CircleThresholdReached} returns this + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.setTimeFrame = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional uint32 threshold = 4; + * @return {number} + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.getThreshold = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.notifications.v1.CircleThresholdReached} returns this + */ +proto.services.notifications.v1.CircleThresholdReached.prototype.setThreshold = function(value) { + return jspb.Message.setProto3IntField(this, 4, value); +}; + + + + + +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.services.notifications.v1.IdentityVerificationApproved.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.IdentityVerificationApproved.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.services.notifications.v1.IdentityVerificationApproved} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationApproved.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.IdentityVerificationApproved} + */ +proto.services.notifications.v1.IdentityVerificationApproved.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.IdentityVerificationApproved; + return proto.services.notifications.v1.IdentityVerificationApproved.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.IdentityVerificationApproved} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.IdentityVerificationApproved} + */ +proto.services.notifications.v1.IdentityVerificationApproved.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.setUserId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.IdentityVerificationApproved.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.IdentityVerificationApproved.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.IdentityVerificationApproved} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationApproved.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.IdentityVerificationApproved.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.IdentityVerificationApproved} returns this + */ +proto.services.notifications.v1.IdentityVerificationApproved.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +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.services.notifications.v1.IdentityVerificationDeclined.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.IdentityVerificationDeclined.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.services.notifications.v1.IdentityVerificationDeclined} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationDeclined.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + declinedReason: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.IdentityVerificationDeclined} + */ +proto.services.notifications.v1.IdentityVerificationDeclined.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.IdentityVerificationDeclined; + return proto.services.notifications.v1.IdentityVerificationDeclined.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.IdentityVerificationDeclined} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.IdentityVerificationDeclined} + */ +proto.services.notifications.v1.IdentityVerificationDeclined.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.DeclinedReason} */ (reader.readEnum()); + msg.setDeclinedReason(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.IdentityVerificationDeclined.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.IdentityVerificationDeclined.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.IdentityVerificationDeclined} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationDeclined.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getDeclinedReason(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.IdentityVerificationDeclined.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.IdentityVerificationDeclined} returns this + */ +proto.services.notifications.v1.IdentityVerificationDeclined.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional DeclinedReason declined_reason = 2; + * @return {!proto.services.notifications.v1.DeclinedReason} + */ +proto.services.notifications.v1.IdentityVerificationDeclined.prototype.getDeclinedReason = function() { + return /** @type {!proto.services.notifications.v1.DeclinedReason} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.DeclinedReason} value + * @return {!proto.services.notifications.v1.IdentityVerificationDeclined} returns this + */ +proto.services.notifications.v1.IdentityVerificationDeclined.prototype.setDeclinedReason = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + + + + +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.services.notifications.v1.IdentityVerificationReviewStarted.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.IdentityVerificationReviewStarted.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.services.notifications.v1.IdentityVerificationReviewStarted} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.IdentityVerificationReviewStarted} + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.IdentityVerificationReviewStarted; + return proto.services.notifications.v1.IdentityVerificationReviewStarted.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.IdentityVerificationReviewStarted} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.IdentityVerificationReviewStarted} + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.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.setUserId(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.IdentityVerificationReviewStarted.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.IdentityVerificationReviewStarted} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.IdentityVerificationReviewStarted} returns this + */ +proto.services.notifications.v1.IdentityVerificationReviewStarted.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + + + + +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.services.notifications.v1.TransactionInfo.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.TransactionInfo.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.services.notifications.v1.TransactionInfo} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.TransactionInfo.toObject = function(includeInstance, msg) { + var f, obj = { + userId: jspb.Message.getFieldWithDefault(msg, 1, ""), + type: jspb.Message.getFieldWithDefault(msg, 2, 0), + settlementAmount: (f = msg.getSettlementAmount()) && proto.services.notifications.v1.Money.toObject(includeInstance, f), + displayAmount: (f = msg.getDisplayAmount()) && proto.services.notifications.v1.Money.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.services.notifications.v1.TransactionInfo} + */ +proto.services.notifications.v1.TransactionInfo.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.TransactionInfo; + return proto.services.notifications.v1.TransactionInfo.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.TransactionInfo} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.TransactionInfo} + */ +proto.services.notifications.v1.TransactionInfo.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.setUserId(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.TransactionType} */ (reader.readEnum()); + msg.setType(value); + break; + case 3: + var value = new proto.services.notifications.v1.Money; + reader.readMessage(value,proto.services.notifications.v1.Money.deserializeBinaryFromReader); + msg.setSettlementAmount(value); + break; + case 4: + var value = new proto.services.notifications.v1.Money; + reader.readMessage(value,proto.services.notifications.v1.Money.deserializeBinaryFromReader); + msg.setDisplayAmount(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.TransactionInfo.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.TransactionInfo.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.TransactionInfo} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.TransactionInfo.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getUserId(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getType(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getSettlementAmount(); + if (f != null) { + writer.writeMessage( + 3, + f, + proto.services.notifications.v1.Money.serializeBinaryToWriter + ); + } + f = message.getDisplayAmount(); + if (f != null) { + writer.writeMessage( + 4, + f, + proto.services.notifications.v1.Money.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string user_id = 1; + * @return {string} + */ +proto.services.notifications.v1.TransactionInfo.prototype.getUserId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.TransactionInfo} returns this + */ +proto.services.notifications.v1.TransactionInfo.prototype.setUserId = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional TransactionType type = 2; + * @return {!proto.services.notifications.v1.TransactionType} + */ +proto.services.notifications.v1.TransactionInfo.prototype.getType = function() { + return /** @type {!proto.services.notifications.v1.TransactionType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.TransactionType} value + * @return {!proto.services.notifications.v1.TransactionInfo} returns this + */ +proto.services.notifications.v1.TransactionInfo.prototype.setType = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional Money settlement_amount = 3; + * @return {?proto.services.notifications.v1.Money} + */ +proto.services.notifications.v1.TransactionInfo.prototype.getSettlementAmount = function() { + return /** @type{?proto.services.notifications.v1.Money} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.Money, 3)); +}; + + +/** + * @param {?proto.services.notifications.v1.Money|undefined} value + * @return {!proto.services.notifications.v1.TransactionInfo} returns this +*/ +proto.services.notifications.v1.TransactionInfo.prototype.setSettlementAmount = function(value) { + return jspb.Message.setWrapperField(this, 3, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.TransactionInfo} returns this + */ +proto.services.notifications.v1.TransactionInfo.prototype.clearSettlementAmount = function() { + return this.setSettlementAmount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.TransactionInfo.prototype.hasSettlementAmount = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional Money display_amount = 4; + * @return {?proto.services.notifications.v1.Money} + */ +proto.services.notifications.v1.TransactionInfo.prototype.getDisplayAmount = function() { + return /** @type{?proto.services.notifications.v1.Money} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.Money, 4)); +}; + + +/** + * @param {?proto.services.notifications.v1.Money|undefined} value + * @return {!proto.services.notifications.v1.TransactionInfo} returns this +*/ +proto.services.notifications.v1.TransactionInfo.prototype.setDisplayAmount = function(value) { + return jspb.Message.setWrapperField(this, 4, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.TransactionInfo} returns this + */ +proto.services.notifications.v1.TransactionInfo.prototype.clearDisplayAmount = function() { + return this.setDisplayAmount(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.TransactionInfo.prototype.hasDisplayAmount = function() { + return jspb.Message.getField(this, 4) != 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.services.notifications.v1.Money.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.Money.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.services.notifications.v1.Money} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.Money.toObject = function(includeInstance, msg) { + var f, obj = { + currencyCode: jspb.Message.getFieldWithDefault(msg, 1, ""), + minorUnits: jspb.Message.getFieldWithDefault(msg, 2, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.Money} + */ +proto.services.notifications.v1.Money.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.Money; + return proto.services.notifications.v1.Money.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.Money} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.Money} + */ +proto.services.notifications.v1.Money.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.setCurrencyCode(value); + break; + case 2: + var value = /** @type {number} */ (reader.readUint64()); + msg.setMinorUnits(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.Money.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.Money.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.Money} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.Money.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getCurrencyCode(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = message.getMinorUnits(); + if (f !== 0) { + writer.writeUint64( + 2, + f + ); + } +}; + + +/** + * optional string currency_code = 1; + * @return {string} + */ +proto.services.notifications.v1.Money.prototype.getCurrencyCode = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.services.notifications.v1.Money} returns this + */ +proto.services.notifications.v1.Money.prototype.setCurrencyCode = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional uint64 minor_units = 2; + * @return {number} + */ +proto.services.notifications.v1.Money.prototype.getMinorUnits = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.notifications.v1.Money} returns this + */ +proto.services.notifications.v1.Money.prototype.setMinorUnits = function(value) { + return jspb.Message.setProto3IntField(this, 2, value); +}; + + + + + +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.services.notifications.v1.PriceChanged.prototype.toObject = function(opt_includeInstance) { + return proto.services.notifications.v1.PriceChanged.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.services.notifications.v1.PriceChanged} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.PriceChanged.toObject = function(includeInstance, msg) { + var f, obj = { + priceOfOneBitcoin: (f = msg.getPriceOfOneBitcoin()) && proto.services.notifications.v1.Money.toObject(includeInstance, f), + direction: jspb.Message.getFieldWithDefault(msg, 2, 0), + priceChangePercentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.services.notifications.v1.PriceChanged} + */ +proto.services.notifications.v1.PriceChanged.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.services.notifications.v1.PriceChanged; + return proto.services.notifications.v1.PriceChanged.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.services.notifications.v1.PriceChanged} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.services.notifications.v1.PriceChanged} + */ +proto.services.notifications.v1.PriceChanged.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = new proto.services.notifications.v1.Money; + reader.readMessage(value,proto.services.notifications.v1.Money.deserializeBinaryFromReader); + msg.setPriceOfOneBitcoin(value); + break; + case 2: + var value = /** @type {!proto.services.notifications.v1.PriceChangeDirection} */ (reader.readEnum()); + msg.setDirection(value); + break; + case 3: + var value = /** @type {number} */ (reader.readDouble()); + msg.setPriceChangePercentage(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.services.notifications.v1.PriceChanged.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.services.notifications.v1.PriceChanged.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.services.notifications.v1.PriceChanged} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.services.notifications.v1.PriceChanged.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getPriceOfOneBitcoin(); + if (f != null) { + writer.writeMessage( + 1, + f, + proto.services.notifications.v1.Money.serializeBinaryToWriter + ); + } + f = message.getDirection(); + if (f !== 0.0) { + writer.writeEnum( + 2, + f + ); + } + f = message.getPriceChangePercentage(); + if (f !== 0.0) { + writer.writeDouble( + 3, + f + ); + } +}; + + +/** + * optional Money price_of_one_bitcoin = 1; + * @return {?proto.services.notifications.v1.Money} + */ +proto.services.notifications.v1.PriceChanged.prototype.getPriceOfOneBitcoin = function() { + return /** @type{?proto.services.notifications.v1.Money} */ ( + jspb.Message.getWrapperField(this, proto.services.notifications.v1.Money, 1)); +}; + + +/** + * @param {?proto.services.notifications.v1.Money|undefined} value + * @return {!proto.services.notifications.v1.PriceChanged} returns this +*/ +proto.services.notifications.v1.PriceChanged.prototype.setPriceOfOneBitcoin = function(value) { + return jspb.Message.setWrapperField(this, 1, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.services.notifications.v1.PriceChanged} returns this + */ +proto.services.notifications.v1.PriceChanged.prototype.clearPriceOfOneBitcoin = function() { + return this.setPriceOfOneBitcoin(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.services.notifications.v1.PriceChanged.prototype.hasPriceOfOneBitcoin = function() { + return jspb.Message.getField(this, 1) != null; +}; + + +/** + * optional PriceChangeDirection direction = 2; + * @return {!proto.services.notifications.v1.PriceChangeDirection} + */ +proto.services.notifications.v1.PriceChanged.prototype.getDirection = function() { + return /** @type {!proto.services.notifications.v1.PriceChangeDirection} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +}; + + +/** + * @param {!proto.services.notifications.v1.PriceChangeDirection} value + * @return {!proto.services.notifications.v1.PriceChanged} returns this + */ +proto.services.notifications.v1.PriceChanged.prototype.setDirection = function(value) { + return jspb.Message.setProto3EnumField(this, 2, value); +}; + + +/** + * optional double price_change_percentage = 3; + * @return {number} + */ +proto.services.notifications.v1.PriceChanged.prototype.getPriceChangePercentage = function() { + return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0)); +}; + + +/** + * @param {number} value + * @return {!proto.services.notifications.v1.PriceChanged} returns this + */ +proto.services.notifications.v1.PriceChanged.prototype.setPriceChangePercentage = function(value) { + return jspb.Message.setProto3FloatField(this, 3, value); +}; + + +/** + * @enum {number} + */ +proto.services.notifications.v1.NotificationChannel = { + PUSH: 0 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.NotificationCategory = { + CIRCLES: 0, + PAYMENTS: 1, + BALANCE: 2, + ADMIN_NOTIFICATION: 3 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.CircleType = { + INNER: 0, + OUTER: 1 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.CircleTimeFrame = { + MONTH: 0, + ALL_TIME: 1 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.DeclinedReason = { + DOCUMENTS_NOT_CLEAR: 0, + VERIFICATION_PHOTO_NOT_CLEAR: 1, + DOCUMENTS_NOT_SUPPORTED: 2, + DOCUMENTS_EXPIRED: 3, + DOCUMENTS_DO_NOT_MATCH: 4, + OTHER: 5 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.TransactionType = { + INTRA_LEDGER_RECEIPT: 0, + INTRA_LEDGER_PAYMENT: 1, + ONCHAIN_RECEIPT: 2, + ONCHAIN_RECEIPT_PENDING: 3, + ONCHAIN_PAYMENT: 4, + LIGHTNING_RECEIPT: 5, + LIGHTNING_PAYMENT: 6 +}; + +/** + * @enum {number} + */ +proto.services.notifications.v1.PriceChangeDirection = { + UP: 0, + DOWN: 1 +}; + +goog.object.extend(exports, proto.services.notifications.v1); diff --git a/history/test/unit/.DS_Store b/history/test/unit/.DS_Store new file mode 100644 index 0000000..26c154e Binary files /dev/null and b/history/test/unit/.DS_Store differ diff --git a/history/test/unit/utils/services/notifications/index.spec.ts b/history/test/unit/utils/services/notifications/index.spec.ts new file mode 100644 index 0000000..84aa667 --- /dev/null +++ b/history/test/unit/utils/services/notifications/index.spec.ts @@ -0,0 +1,17 @@ +import { PriceRange } from "@domain/price" +import { createPriceChangedEvent } from "@services/notifications/price-changed-event" +import { PriceChangeDirection } from "@services/notifications/proto/notifications_pb" + +describe("createPriceChangedEvent", () => { + it("should create a price changed event", () => { + const range = PriceRange.OneDay + const initialPrice = { price: 50, timestamp: 0 } as Tick + const finalPrice = { price: 75, timestamp: 100 } as Tick + const event = createPriceChangedEvent({ range, initialPrice, finalPrice }) + + expect(event.getDirection()).toEqual(PriceChangeDirection.UP) + expect(event.getPriceChangePercentage()).toEqual(50) + expect(event.getPriceOfOneBitcoin()?.getMinorUnits()).toEqual(7500) + expect(event.getPriceOfOneBitcoin()?.getCurrencyCode()).toEqual("USD") + }) +}) diff --git a/yarn.lock b/yarn.lock index 3721938..77ee317 100644 --- a/yarn.lock +++ b/yarn.lock @@ -626,6 +626,21 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" +"@mapbox/node-pre-gyp@^1.0.5": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz#417db42b7f5323d79e93b34a6d7a2a12c0df43fa" + integrity sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ== + dependencies: + detect-libc "^2.0.0" + https-proxy-agent "^5.0.0" + make-dir "^3.1.0" + node-fetch "^2.6.7" + nopt "^5.0.0" + npmlog "^5.0.1" + rimraf "^3.0.2" + semver "^7.3.5" + tar "^6.1.11" + "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" @@ -892,6 +907,11 @@ resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== +"@sindresorhus/is@^0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.7.0.tgz#9a06f4f137ee84d7df0460c1fdb1135ffa6c50fd" + integrity sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow== + "@sinonjs/commons@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.0.tgz#beb434fe875d965265e04722ccfc21df7f755d72" @@ -1173,6 +1193,11 @@ resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -1200,6 +1225,18 @@ acorn@^8.4.1, acorn@^8.8.2, acorn@^8.9.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.10.0.tgz#8be5b3907a67221a81ab23c7889c4c5526b62ec5" integrity sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw== +adm-zip@^0.5.10: + version "0.5.10" + resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.5.10.tgz#4a51d5ab544b1f5ce51e1b9043139b639afff45b" + integrity sha512-x0HvcHqVJNTPk/Bw8JbLWlWoo6Wwnsug0fnYYro1HBrjxZ3G7/AZk7Ahv8JwDe1uIcz8eBqvu86FuF1POiG7vQ== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + ajv@^6.12.4: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" @@ -1259,6 +1296,26 @@ anymatch@^3.0.3, anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" +"aproba@^1.0.3 || ^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" + integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== + +archive-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/archive-type/-/archive-type-4.0.0.tgz#f92e72233056dfc6969472749c267bdb046b1d70" + integrity sha512-zV4Ky0v1F8dBrdYElwTvQhweQ0P7Kwc1aluqJsYtOBP01jXcWCyW2IEfI1YiqsG+Iy7ZR+o5LF1N+PGECBxHWA== + dependencies: + file-type "^4.2.0" + +are-we-there-yet@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz#372e0e7bd279d8e94c653aaa1f67200884bf3e1c" + integrity sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + arg@^4.1.0: version "4.1.3" resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" @@ -1510,6 +1567,14 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== +bl@^1.0.0: + version "1.2.3" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.3.tgz#1e8dd80142eac80d7158c9dccc047fb620e035e7" + integrity sha512-pvcNpa0UU69UT341rO6AYy4FVAIkUHuZXRIWbq+zHnsVcRzDDjIAhGuuYoi0d//cwIwtt4pkpKycWEfjdV+vww== + dependencies: + readable-stream "^2.3.5" + safe-buffer "^5.1.1" + bplist-parser@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.2.0.tgz#43a9d183e5bf9d545200ceac3e712f79ebbe8d0e" @@ -1579,6 +1644,29 @@ bser@2.1.1: dependencies: node-int64 "^0.4.0" +buffer-alloc-unsafe@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz#bd7dc26ae2972d0eda253be061dba992349c19f0" + integrity sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg== + +buffer-alloc@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/buffer-alloc/-/buffer-alloc-1.2.0.tgz#890dd90d923a873e08e10e5fd51a57e5b7cce0ec" + integrity sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow== + dependencies: + buffer-alloc-unsafe "^1.1.0" + buffer-fill "^1.0.0" + +buffer-crc32@~0.2.3: + version "0.2.13" + resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" + integrity sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ== + +buffer-fill@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-fill/-/buffer-fill-1.0.0.tgz#f8f78b76789888ef39f205cd637f68e702122b2c" + integrity sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ== + buffer-from@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" @@ -1589,6 +1677,14 @@ buffer-writer@2.0.0: resolved "https://registry.yarnpkg.com/buffer-writer/-/buffer-writer-2.0.0.tgz#ce7eb81a38f7829db09c873f2fbb792c0c98ec04" integrity sha512-a7ZpuTZU1TRtnwyCNW3I5dc0wWNC3VR9S++Ewyk2HHZdrO3CQJqSpd+95Us590V6AL7JqUAH2IwZ/398PmNFgw== +buffer@^5.2.1: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + buffer@^6.0.3: version "6.0.3" resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6" @@ -1619,6 +1715,19 @@ cache-base@^1.0.1: union-value "^1.0.0" unset-value "^1.0.0" +cacheable-request@^2.1.1: + version "2.1.4" + resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-2.1.4.tgz#0d808801b6342ad33c91df9d0b44dc09b91e5c3d" + integrity sha512-vag0O2LKZ/najSoUwDbVlnlCFvhBE/7mGTY2B5FgCBDcRD+oVV1HYTOwM6JZfMg/hIcM6IwnTZ1uQQL5/X3xIQ== + dependencies: + clone-response "1.0.2" + get-stream "3.0.0" + http-cache-semantics "3.8.1" + keyv "3.0.0" + lowercase-keys "1.0.0" + normalize-url "2.0.1" + responselike "1.0.2" + call-bind@^1.0.0, call-bind@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" @@ -1696,6 +1805,11 @@ chokidar@^3.5.1: optionalDependencies: fsevents "~2.3.2" +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== + ci-info@^3.2.0: version "3.8.0" resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.8.0.tgz#81408265a5380c929f0bc665d62256628ce9ef91" @@ -1725,6 +1839,13 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" +clone-response@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" + integrity sha512-yjLXh88P599UOyPTFX0POsd7WxnbsVsGohcwzHOLspIhhpalPw1BcqED8NblyZLKcGrL8dTgMlcaZxV2jAD41Q== + dependencies: + mimic-response "^1.0.0" + clone@2.x: version "2.1.2" resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" @@ -1772,6 +1893,11 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-support@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + colorette@2.0.19: version "2.0.19" resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.19.tgz#cdf044f47ad41a0f4b56b3a0d5b4e6e1a2d5a798" @@ -1794,7 +1920,7 @@ commander@^10.0.0: resolved "https://registry.yarnpkg.com/commander/-/commander-10.0.1.tgz#881ee46b4f77d1c1dccc5823433aa39b022cbe06" integrity sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug== -commander@^2.20.0: +commander@^2.20.0, commander@^2.8.1: version "2.20.3" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== @@ -1809,6 +1935,18 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +console-control-strings@^1.0.0, console-control-strings@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" + integrity sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ== + +content-disposition@^0.5.2: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + convert-source-map@^1.6.0, convert-source-map@^1.7.0: version "1.9.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" @@ -1824,6 +1962,11 @@ copy-descriptor@^0.1.0: resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + create-jest@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" @@ -1856,7 +1999,7 @@ dateformat@^4.6.3: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-4.6.3.tgz#556fa6497e5217fedb78821424f8a1c22fa3f4b5" integrity sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA== -debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: +debug@4, debug@4.3.4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== @@ -1882,6 +2025,66 @@ decode-uri-component@^0.2.0: resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== +decompress-response@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" + integrity sha512-BzRPQuY1ip+qDonAOz42gRm/pg9F768C+npV/4JOsxRC2sq+Rlk+Q4ZCAsOhnIaMrgarILY+RMUIvMmmX1qAEA== + dependencies: + mimic-response "^1.0.0" + +decompress-tar@^4.0.0, decompress-tar@^4.1.0, decompress-tar@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tar/-/decompress-tar-4.1.1.tgz#718cbd3fcb16209716e70a26b84e7ba4592e5af1" + integrity sha512-JdJMaCrGpB5fESVyxwpCx4Jdj2AagLmv3y58Qy4GE6HMVjWz1FeVQk1Ct4Kye7PftcdOo/7U7UKzYBJgqnGeUQ== + dependencies: + file-type "^5.2.0" + is-stream "^1.1.0" + tar-stream "^1.5.2" + +decompress-tarbz2@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-tarbz2/-/decompress-tarbz2-4.1.1.tgz#3082a5b880ea4043816349f378b56c516be1a39b" + integrity sha512-s88xLzf1r81ICXLAVQVzaN6ZmX4A6U4z2nMbOwobxkLoIIfjVMBg7TeguTUXkKeXni795B6y5rnvDw7rxhAq9A== + dependencies: + decompress-tar "^4.1.0" + file-type "^6.1.0" + is-stream "^1.1.0" + seek-bzip "^1.0.5" + unbzip2-stream "^1.0.9" + +decompress-targz@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/decompress-targz/-/decompress-targz-4.1.1.tgz#c09bc35c4d11f3de09f2d2da53e9de23e7ce1eee" + integrity sha512-4z81Znfr6chWnRDNfFNqLwPvm4db3WuZkqV+UgXQzSngG3CEKdBkw5jrv3axjjL96glyiiKjsxJG3X6WBZwX3w== + dependencies: + decompress-tar "^4.1.1" + file-type "^5.2.0" + is-stream "^1.1.0" + +decompress-unzip@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/decompress-unzip/-/decompress-unzip-4.0.1.tgz#deaaccdfd14aeaf85578f733ae8210f9b4848f69" + integrity sha512-1fqeluvxgnn86MOh66u8FjbtJpAFv5wgCT9Iw8rcBqQcCo5tO8eiJw7NNTrvt9n4CRBVq7CstiS922oPgyGLrw== + dependencies: + file-type "^3.8.0" + get-stream "^2.2.0" + pify "^2.3.0" + yauzl "^2.4.2" + +decompress@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/decompress/-/decompress-4.2.1.tgz#007f55cc6a62c055afa37c07eb6a4ee1b773f118" + integrity sha512-e48kc2IjU+2Zw8cTb6VZcJQ3lgVbS4uuB1TfCHbiZIP/haNXm+SVyhu+87jts5/3ROpd82GSVCoNs/z8l4ZOaQ== + dependencies: + decompress-tar "^4.0.0" + decompress-tarbz2 "^4.0.0" + decompress-targz "^4.0.0" + decompress-unzip "^4.0.1" + graceful-fs "^4.1.10" + make-dir "^1.0.0" + pify "^2.3.0" + strip-dirs "^2.0.0" + dedent@^1.0.0: version "1.5.1" resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.1.tgz#4f3fc94c8b711e9bb2800d185cd6ad20f2a90aff" @@ -1965,6 +2168,16 @@ delayed-stream@~1.0.0: resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== +delegates@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delegates/-/delegates-1.0.0.tgz#84c6e159b81904fdca59a0ef44cd870d31250f9a" + integrity sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ== + +detect-libc@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.2.tgz#8ccf2ba9315350e1241b88d0ac3b0e1fbd99605d" + integrity sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw== + detect-newline@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" @@ -2013,6 +2226,28 @@ dotenv@^16.0.3: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.1.tgz#369034de7d7e5b120972693352a3bf112172cc3e" integrity sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ== +download@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/download/-/download-8.0.0.tgz#afc0b309730811731aae9f5371c9f46be73e51b1" + integrity sha512-ASRY5QhDk7FK+XrQtQyvhpDKanLluEEQtWl/J7Lxuf/b+i8RYh997QeXvL85xitrmRKVlx9c7eTrcRdq2GS4eA== + dependencies: + archive-type "^4.0.0" + content-disposition "^0.5.2" + decompress "^4.2.1" + ext-name "^5.0.0" + file-type "^11.1.0" + filenamify "^3.0.0" + get-stream "^4.1.0" + got "^8.3.1" + make-dir "^2.1.0" + p-event "^2.1.0" + pify "^4.0.1" + +duplexer3@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.5.tgz#0b5e4d7bad5de8901ea4440624c8e1d20099217e" + integrity sha512-1A8za6ws41LQgv9HrE/66jyC5yuSjQ3L/KOpFtoBilsAK2iA2wuS5rTt1OCzIvtS2V7nVmedsUU+DGRcjBmOYA== + dynamic-dedupe@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz#06e44c223f5e4e94d78ef9db23a6515ce2f962a1" @@ -2035,7 +2270,7 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -end-of-stream@^1.1.0: +end-of-stream@^1.0.0, end-of-stream@^1.1.0: version "1.4.4" resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== @@ -2124,7 +2359,7 @@ escalade@^3.1.1: resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== -escape-string-regexp@^1.0.5: +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== @@ -2360,6 +2595,21 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" +ext-list@^2.0.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/ext-list/-/ext-list-2.2.2.tgz#0b98e64ed82f5acf0f2931babf69212ef52ddd37" + integrity sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA== + dependencies: + mime-db "^1.28.0" + +ext-name@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ext-name/-/ext-name-5.0.0.tgz#70781981d183ee15d13993c8822045c506c8f0a6" + integrity sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ== + dependencies: + ext-list "^2.0.0" + sort-keys-length "^1.0.0" + extend-shallow@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" @@ -2461,6 +2711,13 @@ fb-watchman@^2.0.0: dependencies: bser "2.1.1" +fd-slicer@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.1.0.tgz#25c7c89cb1f9077f8891bbe61d8f390eae256f1e" + integrity sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g== + dependencies: + pend "~1.2.0" + file-entry-cache@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" @@ -2468,6 +2725,45 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" +file-type@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-11.1.0.tgz#93780f3fed98b599755d846b99a1617a2ad063b8" + integrity sha512-rM0UO7Qm9K7TWTtA6AShI/t7H5BPjDeGVDaNyg9BjHAj3PysKy7+8C8D137R88jnR3rFJZQB/tFgydl5sN5m7g== + +file-type@^3.8.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9" + integrity sha512-RLoqTXE8/vPmMuTI88DAzhMYC99I8BWv7zYP4A1puo5HIjEJ5EX48ighy4ZyKMG9EDXxBgW6e++cn7d1xuFghA== + +file-type@^4.2.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-4.4.0.tgz#1b600e5fca1fbdc6e80c0a70c71c8dba5f7906c5" + integrity sha512-f2UbFQEk7LXgWpi5ntcO86OeA/cC80fuDDDaX/fZ2ZGel+AF7leRQqBBW1eJNiiQkrZlAoM6P+VYP5P6bOlDEQ== + +file-type@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-5.2.0.tgz#2ddbea7c73ffe36368dfae49dc338c058c2b8ad6" + integrity sha512-Iq1nJ6D2+yIO4c8HHg4fyVb8mAJieo1Oloy1mLLaB2PvezNedhBVm+QU7g0qM42aiMbRXTxKKwGD17rjKNJYVQ== + +file-type@^6.1.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-6.2.0.tgz#e50cd75d356ffed4e306dc4f5bcf52a79903a919" + integrity sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg== + +filename-reserved-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229" + integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ== + +filenamify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-3.0.0.tgz#9603eb688179f8c5d40d828626dcbb92c3a4672c" + integrity sha512-5EFZ//MsvJgXjBAFJ+Bh2YaCTRF/VP1YOmGrgt+KJ4SFRLjI87EIdwLLuT6wQX0I4F9W41xutobzczjsOKlI/g== + dependencies: + filename-reserved-regex "^2.0.0" + strip-outer "^1.0.0" + trim-repeated "^1.0.0" + fill-range@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" @@ -2548,6 +2844,26 @@ fragment-cache@^0.2.1: dependencies: map-cache "^0.2.2" +from2@^2.1.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/from2/-/from2-2.3.0.tgz#8bfb5502bde4a4d36cfdeea007fcca21d7e382af" + integrity sha512-OMcX/4IC/uqEPVgGeyfN22LJk6AZrMkRZHxcHBMBvHScDGgwTm2GT2Wkgtocyd3JfZffjj2kYUDXXII0Fk9W0g== + dependencies: + inherits "^2.0.1" + readable-stream "^2.0.0" + +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" @@ -2583,6 +2899,21 @@ functions-have-names@^1.2.3: resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== +gauge@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-3.0.2.tgz#03bf4441c044383908bcfa0656ad91803259b395" + integrity sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.2" + console-control-strings "^1.0.0" + has-unicode "^2.0.1" + object-assign "^4.1.1" + signal-exit "^3.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.2" + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -2608,6 +2939,26 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-stream@3.0.0, get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ== + +get-stream@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-2.3.1.tgz#5f38f93f346009666ee0150a054167f91bdd95de" + integrity sha512-AUGhbbemXxrZJRD5cDvKtQxLuYaIbNtDTK8YqupCI393Q2KSTreEsLUN3ZxAWFGiKTzL6nKuzfcIvieflUX9qA== + dependencies: + object-assign "^4.0.1" + pinkie-promise "^2.0.0" + +get-stream@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" + integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== + dependencies: + pump "^3.0.0" + get-stream@^6.0.0, get-stream@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" @@ -2726,6 +3077,16 @@ globby@^9.2.0: pify "^4.0.1" slash "^2.0.0" +google-protobuf@3.15.8: + version "3.15.8" + resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.15.8.tgz#5f3948905e4951c867d6bc143f385a80e2a39efe" + integrity sha512-2jtfdqTaSxk0cuBJBtTTWsot4WtR9RVr2rXg7x7OoqiuOKopPrwXpM1G4dXIkLcUNRh3RKzz76C8IOkksZSeOw== + +google-protobuf@^3.21.2: + version "3.21.2" + resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.21.2.tgz#4580a2bea8bbb291ee579d1fefb14d6fa3070ea4" + integrity sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA== + gopd@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" @@ -2733,7 +3094,30 @@ gopd@^1.0.1: dependencies: get-intrinsic "^1.1.3" -graceful-fs@^4.2.9: +got@^8.3.1: + version "8.3.2" + resolved "https://registry.yarnpkg.com/got/-/got-8.3.2.tgz#1d23f64390e97f776cac52e5b936e5f514d2e937" + integrity sha512-qjUJ5U/hawxosMryILofZCkm3C84PLJS/0grRIpjAwu+Lkxxj5cxeCU25BG0/3mDSpXKTyZr8oh8wIgLaH0QCw== + dependencies: + "@sindresorhus/is" "^0.7.0" + cacheable-request "^2.1.1" + decompress-response "^3.3.0" + duplexer3 "^0.1.4" + get-stream "^3.0.0" + into-stream "^3.1.0" + is-retry-allowed "^1.1.0" + isurl "^1.0.0-alpha5" + lowercase-keys "^1.0.0" + mimic-response "^1.0.0" + p-cancelable "^0.4.0" + p-timeout "^2.0.1" + pify "^3.0.0" + safe-buffer "^5.1.1" + timed-out "^4.0.1" + url-parse-lax "^3.0.0" + url-to-options "^1.0.1" + +graceful-fs@^4.1.10, graceful-fs@^4.2.9: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -2751,6 +3135,33 @@ grpc-health-check@^2.0.0: "@grpc/proto-loader" "^0.7.10" typescript "^5.2.2" +grpc-tools@^1.12.4: + version "1.12.4" + resolved "https://registry.yarnpkg.com/grpc-tools/-/grpc-tools-1.12.4.tgz#a044c9e8157941033ea7a5f144c2dc9dc4501de4" + integrity sha512-5+mLAJJma3BjnW/KQp6JBjUMgvu7Mu3dBvBPd1dcbNIb+qiR0817zDpgPjS7gRb+l/8EVNIa3cB02xI9JLToKg== + dependencies: + "@mapbox/node-pre-gyp" "^1.0.5" + +grpc_tools_node_protoc_ts@^5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/grpc_tools_node_protoc_ts/-/grpc_tools_node_protoc_ts-5.3.3.tgz#9a6c1c2f41563a1ab259c0177496d7dfed30dbfe" + integrity sha512-M/YrklvVXMtuuj9kb42PxeouZhs7Ul+R4e/31XwrankUcKL8cQQP50Q9q+KEHGyHQaPt6VtKKsxMgLaKbCxeww== + dependencies: + google-protobuf "3.15.8" + handlebars "4.7.7" + +handlebars@4.7.7: + version "4.7.7" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1" + integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA== + dependencies: + minimist "^1.2.5" + neo-async "^2.6.0" + source-map "^0.6.1" + wordwrap "^1.0.0" + optionalDependencies: + uglify-js "^3.1.4" + has-bigints@^1.0.1, has-bigints@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" @@ -2778,11 +3189,23 @@ has-proto@^1.0.1: resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.1.tgz#1885c1305538958aff469fef37937c22795408e0" integrity sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg== +has-symbol-support-x@^1.4.1: + version "1.4.2" + resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" + integrity sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw== + has-symbols@^1.0.2, has-symbols@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== +has-to-string-tag-x@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz#a045ab383d7b4b2012a00148ab0aa5f290044d4d" + integrity sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw== + dependencies: + has-symbol-support-x "^1.4.1" + has-tostringtag@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" @@ -2790,6 +3213,11 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" +has-unicode@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" + integrity sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ== + has-value@^0.3.1: version "0.3.1" resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" @@ -2848,6 +3276,19 @@ html-escaper@^2.0.0: resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== +http-cache-semantics@3.8.1: + version "3.8.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" + integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== + +https-proxy-agent@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + human-signals@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" @@ -2858,7 +3299,7 @@ human-signals@^4.3.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== -ieee754@^1.2.1: +ieee754@^1.1.13, ieee754@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== @@ -2912,7 +3353,7 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@2, inherits@^2.0.3: +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: version "2.0.4" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== @@ -2931,6 +3372,14 @@ interpret@^2.2.0: resolved "https://registry.yarnpkg.com/interpret/-/interpret-2.2.0.tgz#1a78a0b5965c40a5416d007ad6f50ad27c417df9" integrity sha512-Ju0Bz/cEia55xDwUWEa8+olFpCiQoypjnQySseKtmjNrnps3P+xfpUmGr90T7yjlVJmOtybRvPXhKMbHr+fWnw== +into-stream@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/into-stream/-/into-stream-3.1.0.tgz#96fb0a936c12babd6ff1752a17d05616abd094c6" + integrity sha512-TcdjPibTksa1NQximqep2r17ISRiNE9fwlfbg3F8ANdvP5/yrFTew86VcO//jk4QTaMlbjypPBq76HN2zaKfZQ== + dependencies: + from2 "^2.1.1" + p-is-promise "^1.1.0" + is-accessor-descriptor@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz#a9e12cb3ae8d876727eeef3843f8a0897b5c98d6" @@ -3102,6 +3551,11 @@ is-inside-container@^1.0.0: dependencies: is-docker "^3.0.0" +is-natural-number@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-natural-number/-/is-natural-number-4.0.1.tgz#ab9d76e1db4ced51e35de0c72ebecf09f734cde8" + integrity sha512-Y4LTamMe0DDQIIAlaer9eKebAlDSV6huy+TWhJVPlzZh2o4tRP5SQWFlLn5N0To4mDD22/qdOq+veo1cSISLgQ== + is-negative-zero@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" @@ -3126,11 +3580,21 @@ is-number@^7.0.0: resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== +is-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf" + integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA== + is-path-inside@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== +is-plain-obj@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== + is-plain-object@^2.0.3, is-plain-object@^2.0.4: version "2.0.4" resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" @@ -3146,6 +3610,11 @@ is-regex@^1.1.4: call-bind "^1.0.2" has-tostringtag "^1.0.0" +is-retry-allowed@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/is-retry-allowed/-/is-retry-allowed-1.2.0.tgz#d778488bd0a4666a3be8a1482b9f2baafedea8b4" + integrity sha512-RUbUeKwvm3XG2VYamhJL1xFktgjvPzL0Hq8C+6yrWIswDy3BIXGqCxhxkc30N9jqK311gVU137K8Ei55/zVJRg== + is-shared-array-buffer@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz#8f259c573b60b6a32d4058a1a07430c0a7344c79" @@ -3153,6 +3622,11 @@ is-shared-array-buffer@^1.0.2: dependencies: call-bind "^1.0.2" +is-stream@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ== + is-stream@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" @@ -3203,7 +3677,7 @@ is-wsl@^2.2.0: dependencies: is-docker "^2.0.0" -isarray@1.0.0: +isarray@1.0.0, isarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== @@ -3283,6 +3757,14 @@ istanbul-reports@^3.1.3: html-escaper "^2.0.0" istanbul-lib-report "^3.0.0" +isurl@^1.0.0-alpha5: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isurl/-/isurl-1.0.0.tgz#b27f4f49f3cdaa3ea44a0a5b7f3462e6edc39d67" + integrity sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w== + dependencies: + has-to-string-tag-x "^1.2.0" + is-object "^1.0.1" + jest-changed-files@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" @@ -3671,6 +4153,11 @@ jsesc@^2.5.1: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +json-buffer@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" + integrity sha512-CuUqjv0FUZIdXkHPI8MezCnFCdaTAacej1TZYulLoAg1h/PhwkdXFN4V/gzY4g+fMBCOV2xF+rp7t2XD2ns/NQ== + json-buffer@3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" @@ -3708,6 +4195,13 @@ json5@^2.2.3: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== +keyv@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.0.0.tgz#44923ba39e68b12a7cec7df6c3268c031f2ef373" + integrity sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA== + dependencies: + json-buffer "3.0.0" + keyv@^4.5.3: version "4.5.3" resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.3.tgz#00873d2b046df737963157bd04f294ca818c9c25" @@ -3821,6 +4315,16 @@ long@^5.0.0: resolved "https://registry.yarnpkg.com/long/-/long-5.2.3.tgz#a3ba97f3877cf1d778eccbcb048525ebb77499e1" integrity sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q== +lowercase-keys@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.0.tgz#4e3366b39e7f5457e35f1324bdf6f88d0bfc7306" + integrity sha512-RPlX0+PHuvxVDZ7xX+EBVAp4RsVxP/TdDSN2mJYdiq1Lc4Hz7EUSjUI7RZrKKlmrIzVhf6Jo2stj7++gVarS0A== + +lowercase-keys@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" + integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -3835,6 +4339,28 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" +make-dir@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-1.3.0.tgz#79c1033b80515bd6d24ec9933e860ca75ee27f0c" + integrity sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ== + dependencies: + pify "^3.0.0" + +make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +make-dir@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + make-dir@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" @@ -3903,7 +4429,7 @@ micromatch@^4.0.4: braces "^3.0.2" picomatch "^2.3.1" -mime-db@1.52.0: +mime-db@1.52.0, mime-db@^1.28.0: version "1.52.0" resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== @@ -3925,6 +4451,11 @@ mimic-fn@^4.0.0: resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== +mimic-response@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" + integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== + minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" @@ -3939,11 +4470,31 @@ minimatch@^5.0.1: dependencies: brace-expansion "^2.0.1" -minimist@^1.2.0, minimist@^1.2.6: +minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== +minipass@^3.0.0: + version "3.3.6" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" + integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== + dependencies: + yallist "^4.0.0" + +minipass@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" + integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== + +minizlib@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== + dependencies: + minipass "^3.0.0" + yallist "^4.0.0" + mixin-deep@^1.2.0: version "1.3.2" resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" @@ -3952,7 +4503,7 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@^1.0.4: +mkdirp@^1.0.3, mkdirp@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== @@ -3999,6 +4550,11 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== +neo-async@^2.6.0: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + node-cache@^5.1.2: version "5.1.2" resolved "https://registry.yarnpkg.com/node-cache/-/node-cache-5.1.2.tgz#f264dc2ccad0a780e76253a694e9fd0ed19c398d" @@ -4013,6 +4569,13 @@ node-cron@^3.0.3: dependencies: uuid "8.3.2" +node-fetch@^2.6.7: + version "2.7.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + node-int64@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" @@ -4023,11 +4586,27 @@ node-releases@^2.0.13: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d" integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ== +nopt@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-5.0.0.tgz#530942bb58a512fccafe53fe210f13a25355dc88" + integrity sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ== + dependencies: + abbrev "1" + normalize-path@^3.0.0, normalize-path@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== +normalize-url@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-2.0.1.tgz#835a9da1551fa26f70e92329069a23aa6574d7e6" + integrity sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw== + dependencies: + prepend-http "^2.0.0" + query-string "^5.0.1" + sort-keys "^2.0.0" + npm-run-path@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" @@ -4042,6 +4621,21 @@ npm-run-path@^5.1.0: dependencies: path-key "^4.0.0" +npmlog@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-5.0.1.tgz#f06678e80e29419ad67ab964e0fa69959c1eb8b0" + integrity sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw== + dependencies: + are-we-there-yet "^2.0.0" + console-control-strings "^1.1.0" + gauge "^3.0.0" + set-blocking "^2.0.0" + +object-assign@^4.0.1, object-assign@^4.1.0, object-assign@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + object-copy@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" @@ -4161,6 +4755,28 @@ optionator@^0.9.3: prelude-ls "^1.2.1" type-check "^0.4.0" +p-cancelable@^0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-0.4.1.tgz#35f363d67d52081c8d9585e37bcceb7e0bbcb2a0" + integrity sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ== + +p-event@^2.1.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/p-event/-/p-event-2.3.1.tgz#596279ef169ab2c3e0cae88c1cfbb08079993ef6" + integrity sha512-NQCqOFhbpVTMX4qMe8PF8lbGtzZ+LCiN7pcNrb/413Na7+TRoe1xkKUzuWa/YEJdGQ0FvKtj35EEbDoVPO2kbA== + dependencies: + p-timeout "^2.0.1" + +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow== + +p-is-promise@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e" + integrity sha512-zL7VE4JVS2IFSkR2GQKDSPEVxkoH43/p7oEnwpdCndKYJO0HVeRB7fA8TJwuLOTBREtK0ea8eHaxdwcpob5dmg== + p-limit@^2.2.0: version "2.3.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" @@ -4189,6 +4805,13 @@ p-locate@^5.0.0: dependencies: p-limit "^3.0.2" +p-timeout@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/p-timeout/-/p-timeout-2.0.1.tgz#d8dd1979595d2dc0139e1fe46b8b646cb3cdf038" + integrity sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA== + dependencies: + p-finally "^1.0.0" + p-try@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" @@ -4263,6 +4886,11 @@ path-type@^4.0.0: resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== +pend@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" + integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== + pg-cloudflare@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/pg-cloudflare/-/pg-cloudflare-1.1.1.tgz#e6d5833015b170e23ae819e8c5d7eaedb472ca98" @@ -4336,6 +4964,11 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== +pify@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + pify@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" @@ -4346,6 +4979,18 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== + pino-abstract-transport@^1.0.0, pino-abstract-transport@v1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz#083d98f966262164504afb989bccd05f665937a8" @@ -4440,6 +5085,11 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prepend-http@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" + integrity sha512-ravE6m9Atw9Z/jjttRUZ+clIXogdghyZAuWJ3qEzjT+jI/dL1ifAqhZeC5VHzQp1MSt1+jxKkFNemj/iO7tVUA== + prettier-linter-helpers@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" @@ -4461,6 +5111,11 @@ pretty-format@^29.0.0, pretty-format@^29.7.0: ansi-styles "^5.0.0" react-is "^18.0.0" +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + process-warning@^2.0.0: version "2.2.0" resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-2.2.0.tgz#008ec76b579820a8e5c35d81960525ca64feb626" @@ -4497,6 +5152,14 @@ protobufjs@^7.2.4: "@types/node" ">=13.7.0" long "^5.0.0" +protoc-gen-js@^3.21.2: + version "3.21.2" + resolved "https://registry.yarnpkg.com/protoc-gen-js/-/protoc-gen-js-3.21.2.tgz#d92f37cb8ebf4403656515ab424983c77f07a804" + integrity sha512-nSpiXulygg0vUv05uFeATuZSbgMQMeoef0BhB5266Y6HmsqVtIrbSkK/Z2Yk0KLE+BirRNjsTKDUJxg3OPO9pQ== + dependencies: + adm-zip "^0.5.10" + download "^8.0.0" + proxy-from-env@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" @@ -4520,6 +5183,15 @@ pure-rand@^6.0.0: resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.0.3.tgz#3c9e6b53c09e52ac3cedffc85ab7c1c7094b38cb" integrity sha512-KddyFewCsO0j3+np81IQ+SweXLDnDQTs5s67BOnrYmYe/yNmUhttQyGsYzy8yUnoljGAQ9sl38YB4vH8ur7Y+w== +query-string@^5.0.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/query-string/-/query-string-5.1.1.tgz#a78c012b71c17e05f2e3fa2319dd330682efb3cb" + integrity sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw== + dependencies: + decode-uri-component "^0.2.0" + object-assign "^4.1.0" + strict-uri-encode "^1.0.0" + queue-microtask@^1.2.2: version "1.2.3" resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" @@ -4535,6 +5207,19 @@ react-is@^18.0.0: resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.2.0.tgz#199431eeaaa2e09f86427efbb4f1473edb47609b" integrity sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w== +readable-stream@^2.0.0, readable-stream@^2.3.0, readable-stream@^2.3.5: + version "2.3.8" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" + integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + readable-stream@^3.6.0: version "3.6.2" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" @@ -4656,6 +5341,13 @@ resolve@^1.0.0, resolve@^1.20.0, resolve@^1.22.1, resolve@^1.22.4: path-parse "^1.0.7" supports-preserve-symlinks-flag "^1.0.0" +responselike@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" + integrity sha512-/Fpe5guzJk1gPqdJLJR5u7eG/gNY4nImjbRDaVWVMRhne55TCmj2i9Q+54PBRfatRC8v/rIiv9BN0pMd9OV5EQ== + dependencies: + lowercase-keys "^1.0.0" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -4704,11 +5396,16 @@ safe-array-concat@^1.0.1: has-symbols "^1.0.3" isarray "^2.0.5" -safe-buffer@~5.2.0: +safe-buffer@5.2.1, safe-buffer@^5.1.1, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + safe-regex-test@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.0.tgz#793b874d524eb3640d1873aad03596db2d4f2295" @@ -4735,11 +5432,30 @@ secure-json-parse@^2.4.0: resolved "https://registry.yarnpkg.com/secure-json-parse/-/secure-json-parse-2.7.0.tgz#5a5f9cd6ae47df23dba3151edd06855d47e09862" integrity sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw== -semver@^6.3.0, semver@^6.3.1: +seek-bzip@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/seek-bzip/-/seek-bzip-1.0.6.tgz#35c4171f55a680916b52a07859ecf3b5857f21c4" + integrity sha512-e1QtP3YL5tWww8uKaOCQ18UxIT2laNBXHjV/S2WYCiK4udiv8lkG89KRIoCjUagnAmCBurjF4zEVX2ByBbnCjQ== + dependencies: + commander "^2.8.1" + +semver@^5.6.0: + version "5.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== +semver@^7.3.5: + version "7.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== + dependencies: + lru-cache "^6.0.0" + semver@^7.5.2, semver@^7.5.3, semver@^7.5.4: version "7.5.4" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e" @@ -4747,6 +5463,11 @@ semver@^7.5.2, semver@^7.5.3, semver@^7.5.4: dependencies: lru-cache "^6.0.0" +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== + set-function-name@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.1.tgz#12ce38b7954310b9f61faa12701620a0c882793a" @@ -4792,7 +5513,7 @@ side-channel@^1.0.4: get-intrinsic "^1.0.2" object-inspect "^1.9.0" -signal-exit@^3.0.3, signal-exit@^3.0.7: +signal-exit@^3.0.0, signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== @@ -4856,6 +5577,27 @@ sonic-boom@^3.7.0: dependencies: atomic-sleep "^1.0.0" +sort-keys-length@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/sort-keys-length/-/sort-keys-length-1.0.1.tgz#9cb6f4f4e9e48155a6aa0671edd336ff1479a188" + integrity sha512-GRbEOUqCxemTAk/b32F2xa8wDTs+Z1QHOkbhJDQTvv/6G3ZkbJ+frYWsTcc7cBB3Fu4wy4XlLCuNtJuMn7Gsvw== + dependencies: + sort-keys "^1.0.0" + +sort-keys@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad" + integrity sha512-vzn8aSqKgytVik0iwdBEi+zevbTYZogewTUM6dtpmGwEcdzbub/TX4bCzRhebDCRC3QzXgJsLRKB2V/Oof7HXg== + dependencies: + is-plain-obj "^1.0.0" + +sort-keys@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128" + integrity sha512-/dPCrG1s3ePpWm6yBbxZq5Be1dXGLyLn9Z791chDC3NFrpkVbWGzkBwPN1knaciexFXgRJ7hzdnwZ4stHSDmjg== + dependencies: + is-plain-obj "^1.0.0" + source-map-resolve@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" @@ -4930,6 +5672,11 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" +strict-uri-encode@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz#279b225df1d582b1f54e65addd4352e18faa0713" + integrity sha512-R3f198pcvnB+5IpnBlRkphuE9n46WyVl8I39W/ZUTZLz4nqSP/oLYUrcnJrw462Ds8he4YKMov2efsTIw1BDGQ== + string-length@^4.0.1: version "4.0.2" resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" @@ -4938,7 +5685,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4981,6 +5728,13 @@ string_decoder@^1.1.1, string_decoder@^1.3.0: dependencies: safe-buffer "~5.2.0" +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" @@ -4998,6 +5752,13 @@ strip-bom@^4.0.0: resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== +strip-dirs@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/strip-dirs/-/strip-dirs-2.1.0.tgz#4987736264fc344cf20f6c34aca9d13d1d4ed6c5" + integrity sha512-JOCxOeKLm2CAS73y/U4ZeZPTkE+gNVCzKt7Eox84Iej1LT/2pTWYpZKJuxwQpvX1LiZb1xokNR7RLfuBAa7T3g== + dependencies: + is-natural-number "^4.0.1" + strip-final-newline@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" @@ -5018,6 +5779,13 @@ strip-json-comments@^3.1.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +strip-outer@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" + integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== + dependencies: + escape-string-regexp "^1.0.2" + supports-color@^5.3.0: version "5.5.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" @@ -5052,6 +5820,31 @@ synckit@^0.8.5: "@pkgr/utils" "^2.3.1" tslib "^2.5.0" +tar-stream@^1.5.2: + version "1.6.2" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-1.6.2.tgz#8ea55dab37972253d9a9af90fdcd559ae435c555" + integrity sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A== + dependencies: + bl "^1.0.0" + buffer-alloc "^1.2.0" + end-of-stream "^1.0.0" + fs-constants "^1.0.0" + readable-stream "^2.3.0" + to-buffer "^1.1.1" + xtend "^4.0.0" + +tar@^6.1.11: + version "6.2.0" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.0.tgz#b14ce49a79cb1cd23bc9b016302dea5474493f73" + integrity sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^5.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + tarn@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/tarn/-/tarn-3.0.2.tgz#73b6140fbb881b71559c4f8bfde3d9a4b3d27693" @@ -5078,11 +5871,21 @@ thread-stream@^2.0.0: dependencies: real-require "^0.2.0" +through@^2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + tildify@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/tildify/-/tildify-2.0.0.tgz#f205f3674d677ce698b7067a99e949ce03b4754a" integrity sha512-Cc+OraorugtXNfs50hU9KS369rFXCfgGLpfCfvlc+Ud5u6VWmUQsOAa9HbTvheQdYnrdJqqv1e5oIqXppMYnSw== +timed-out@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/timed-out/-/timed-out-4.0.1.tgz#f32eacac5a175bea25d7fab565ab3ed8741ef56f" + integrity sha512-G7r3AhovYtr5YKOWQkta8RKAPb+J9IsO4uVmzjl8AZwfhs8UcUwTiD6gcJYSgOtzyjvQKrKYn41syHbUWMkafA== + titleize@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/titleize/-/titleize-3.0.0.tgz#71c12eb7fdd2558aa8a44b0be83b8a76694acd53" @@ -5093,6 +5896,11 @@ tmpl@1.0.5: resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== +to-buffer@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/to-buffer/-/to-buffer-1.1.1.tgz#493bd48f62d7c43fcded313a03dcadb2e1213a80" + integrity sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg== + to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" @@ -5130,11 +5938,23 @@ to-regex@^3.0.1, to-regex@^3.0.2: regex-not "^1.0.2" safe-regex "^1.1.0" +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + tree-kill@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== +trim-repeated@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" + integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== + dependencies: + escape-string-regexp "^1.0.2" + ts-api-utils@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.0.3.tgz#f12c1c781d04427313dbac808f453f050e54a331" @@ -5293,6 +6113,11 @@ typescript@^5.3.2: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.2.tgz#00d1c7c1c46928c5845c1ee8d0cc2791031d4c43" integrity sha512-6l+RyNy7oAHDfxC4FzSJcz9vnjTKxrLpDG5M2Vu4SHRVNg6xzqZp6LYSR9zjqQTu8DU/f5xwxUdADOkbrIX2gQ== +uglify-js@^3.1.4: + version "3.17.4" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.17.4.tgz#61678cf5fa3f5b7eb789bb345df29afb8257c22c" + integrity sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g== + unbox-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" @@ -5303,6 +6128,14 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +unbzip2-stream@^1.0.9: + version "1.4.3" + resolved "https://registry.yarnpkg.com/unbzip2-stream/-/unbzip2-stream-1.4.3.tgz#b0da04c4371311df771cdc215e87f2130991ace7" + integrity sha512-mlExGW4w71ebDJviH16lQLtZS32VKqsSfk80GCfUlwT/4/hNRFsoscrF/c++9xinkMzECL1uL9DDwXqFWkruPg== + dependencies: + buffer "^5.2.1" + through "^2.3.8" + undici-types@~5.26.4: version "5.26.5" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" @@ -5351,12 +6184,24 @@ urix@^0.1.0: resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== +url-parse-lax@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" + integrity sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ== + dependencies: + prepend-http "^2.0.0" + +url-to-options@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/url-to-options/-/url-to-options-1.0.1.tgz#1505a03a289a48cbd7a434efbaeec5055f5633a9" + integrity sha512-0kQLIzG4fdk/G5NONku64rSH/x32NOA39LVQqlK8Le6lvTF6GGRJpqaQFGgU+CLwySIqBSMdwYM0sYcW9f6P4A== + use@^3.1.0: version "3.1.1" resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== -util-deprecate@^1.0.1: +util-deprecate@^1.0.1, util-deprecate@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== @@ -5387,6 +6232,19 @@ walker@^1.0.8: dependencies: makeerror "1.0.12" +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" @@ -5416,6 +6274,18 @@ which@^2.0.1: dependencies: isexe "^2.0.0" +wide-align@^1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" + integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== + dependencies: + string-width "^1.0.2 || 2 || 3 || 4" + +wordwrap@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q== + wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" @@ -5481,6 +6351,14 @@ yargs@^17.3.1, yargs@^17.7.2: y18n "^5.0.5" yargs-parser "^21.1.1" +yauzl@^2.4.2: + version "2.10.0" + resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9" + integrity sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g== + dependencies: + buffer-crc32 "~0.2.3" + fd-slicer "~1.1.0" + yn@3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"