UNPKG

bitsnap-checkout

Version:

This is Bitsnap Checkout React library for easy integration with any website which is using React framework

1 lines 115 kB
{"version":3,"sources":["../src/backend.ts","../src/gen/proto/public/v1/public_api_pb.ts","../src/gen/proto/common/v1/push_notifications_pb.ts","../src/gen/proto/dashboard/v1/audiobooks_pb.ts","../src/public.api.client.ts"],"sourcesContent":["import { create } from \"@bufbuild/protobuf\";\nimport zod from \"zod\";\nimport {\n NotifyUserAboutProductAvailabilityRequest,\n NotifyUserAboutProductAvailabilityRequestSchema,\n} from \"./gen/proto/public/v1/public_api_pb\";\nimport { BitsnapModels } from \"./models\";\nimport { PublicApiClient } from \"./public.api.client\";\n\nlet BACKEND_HOST = \"https://bitsnap.pl\";\nlet API_KEY: string | undefined;\n\nexport namespace BitsnapBackend {\n export async function setCustomHost(host: string) {\n BACKEND_HOST = host;\n }\n export function getHost() {\n return BACKEND_HOST;\n }\n export async function setApiKey(apiKey: string) {\n API_KEY = apiKey;\n }\n\n export async function getProduct(\n projectID: string,\n id: string,\n requestInit?: RequestInit,\n ) {\n const payload = {\n \"0\": {\n projectID: projectID,\n id: id,\n },\n };\n\n const encodedPayload = new URLSearchParams();\n encodedPayload.set(\"batch\", \"1\");\n encodedPayload.set(\"input\", JSON.stringify(payload));\n\n const result = await fetch(\n BACKEND_HOST +\n \"/api/trpc/product.getProductById?\" +\n encodedPayload.toString(),\n {\n ...(requestInit ?? {}),\n headers: {\n ...(requestInit?.headers ?? {}),\n \"Content-Type\": \"application/json\",\n Priority: \"u=3, i\",\n },\n },\n );\n\n const downloadedPayload = await result.json();\n\n const parsedResult =\n await BitsnapModels.ProductResultSchema.parseAsync(downloadedPayload);\n\n if (parsedResult.length == 0) {\n return undefined;\n }\n const parsed = parsedResult[0];\n\n return parsed.result;\n }\n\n export async function getProducts(\n projectID: string,\n limit: number,\n offset: number,\n requestInit?: RequestInit,\n opts?: {\n groupVariants?: boolean;\n },\n ) {\n const productsPayload: { [key: string]: any } = {\n \"0\": {\n projectID: projectID,\n limit: limit,\n offset: offset,\n },\n };\n\n if (opts) {\n if (opts.groupVariants != null) {\n productsPayload[0][\"groupVariants\"] = opts.groupVariants;\n }\n }\n\n const encodedPayload = new URLSearchParams();\n encodedPayload.set(\"batch\", \"1\");\n encodedPayload.set(\"input\", JSON.stringify(productsPayload));\n\n const result = await fetch(\n BACKEND_HOST +\n \"/api/trpc/product.getProductGrid?\" +\n encodedPayload.toString(),\n {\n ...(requestInit ?? {}),\n headers: {\n ...(requestInit?.headers ?? {}),\n \"Content-Type\": \"application/json\",\n Priority: \"u=3, i\",\n },\n },\n );\n\n const downloadedPayload = await result.json();\n\n const parsedResult =\n await BitsnapModels.ProductsResultElementSchema.parseAsync(\n downloadedPayload,\n );\n if (parsedResult.length == 0) {\n return {\n categories: undefined,\n products: undefined,\n };\n }\n const parsed = parsedResult[0];\n\n return parsed.result;\n }\n\n export async function sendNotification(\n request: NotificationRequest,\n requestInit?: RequestInit,\n ) {\n if (API_KEY == null || API_KEY == \"\") {\n throw new Error(\n 'use BitsnapBackend.setApiKey(\"{{API_KEY}} to setup api key before using this method.\")',\n );\n }\n const result = await fetch(BACKEND_HOST + \"/api/notification/send\", {\n ...(requestInit ?? {}),\n method: \"POST\",\n body: JSON.stringify(request),\n headers: {\n ...(requestInit?.headers ?? {}),\n \"Content-Type\": \"application/json\",\n Authorization: \"Bearer \" + API_KEY,\n },\n });\n\n if (result.status != 200) {\n console.warn(\n \"error while sending notification\",\n result.status,\n await result.text(),\n );\n return \"failure\";\n }\n return \"success\";\n }\n\n export async function notifyProductAvailability(\n request: Pick<\n NotifyUserAboutProductAvailabilityRequest,\n \"productId\" | \"email\" | \"projectId\"\n >,\n opts?: {\n headers?: Headers;\n signal?: AbortSignal;\n timeoutMs?: number;\n },\n ): Promise<{\n status: \"success\" | \"failure\";\n message?: \"failed-to-notify\";\n }> {\n const req = create(NotifyUserAboutProductAvailabilityRequestSchema, {\n productId: request.productId,\n email: request.email,\n projectId: request.projectId,\n });\n\n try {\n await PublicApiClient.get(\n BACKEND_HOST,\n ).notifyUserAboutProductAvailability(req, opts);\n return {\n status: \"success\",\n };\n } catch (e: any) {\n console.log(\"error while sending notification\", e);\n return {\n status: \"failure\",\n message: \"failed-to-notify\",\n };\n }\n }\n}\n\nconst notificationTypes = zod.enum([\"push\", \"email\", \"sms\"]);\n\nconst notificationRequestSchema = zod.object({\n to: zod.array(zod.string()),\n title: zod.string(),\n body: zod.string().optional(),\n type: zod\n .union([notificationTypes, zod.array(notificationTypes)])\n .default(\"push\"),\n emailOptions: zod\n .object({\n subject: zod.string().optional(),\n replyTo: zod.string().optional(),\n\n htmlText: zod.string().optional(),\n })\n .optional(),\n});\nexport type NotificationRequest = zod.infer<typeof notificationRequestSchema>;\n","// @generated by protoc-gen-es v2.2.3 with parameter \"target=ts\"\n// @generated from file public/v1/public_api.proto (package public_api.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv1\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { Empty, EmptySchema, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_empty, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { Gateway } from \"../../common/v1/gateway_pb\";\nimport { file_common_v1_gateway } from \"../../common/v1/gateway_pb\";\nimport type { NotificationEvent, NotificationGroupHowOften, PushNotificationDeviceToken } from \"../../common/v1/push_notifications_pb\";\nimport { file_common_v1_push_notifications } from \"../../common/v1/push_notifications_pb\";\nimport type { Audiobook as Audiobook$1 } from \"../../dashboard/v1/audiobooks_pb\";\nimport { file_dashboard_v1_audiobooks } from \"../../dashboard/v1/audiobooks_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file public/v1/public_api.proto.\n */\nexport const file_public_v1_public_api: GenFile = /*@__PURE__*/\n fileDesc(\"ChpwdWJsaWMvdjEvcHVibGljX2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FwaS52MS5VcGRhdGVOb3RpZmljYXRpb25TZXR0aW5nc1JlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHkShAEKG0dldEF2YWlsYWJsZUNvdW50Rm9yUHJvZHVjdBIxLnB1YmxpY19hcGkudjEuR2V0QXZhaWxhYmxlQ291bnRGb3JQcm9kdWN0UmVxdWVzdBoyLnB1YmxpY19hcGkudjEuR2V0QXZhaWxhYmxlQ291bnRGb3JQcm9kdWN0UmVzcG9uc2USewoYQXBwbGVQYXlWYWxpZGF0ZU1lcmNoYW50Ei4ucHVibGljX2FwaS52MS5BcHBsZVBheVZhbGlkYXRlTWVyY2hhbnRSZXF1ZXN0Gi8ucHVibGljX2FwaS52MS5BcHBsZVBheVZhbGlkYXRlTWVyY2hhbnRSZXNwb25zZRJ2CiJOb3RpZnlVc2VyQWJvdXRQcm9kdWN0QXZhaWxhYmlsaXR5EjgucHVibGljX2FwaS52MS5Ob3RpZnlVc2VyQWJvdXRQcm9kdWN0QXZhaWxhYmlsaXR5UmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_common_v1_gateway, file_common_v1_push_notifications, file_google_protobuf_empty, file_dashboard_v1_audiobooks]);\n\n/**\n * @generated from message public_api.v1.NotifyUserAboutProductAvailabilityRequest\n */\nexport type NotifyUserAboutProductAvailabilityRequest = Message<\"public_api.v1.NotifyUserAboutProductAvailabilityRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n};\n\n/**\n * Describes the message public_api.v1.NotifyUserAboutProductAvailabilityRequest.\n * Use `create(NotifyUserAboutProductAvailabilityRequestSchema)` to create a new message.\n */\nexport const NotifyUserAboutProductAvailabilityRequestSchema: GenMessage<NotifyUserAboutProductAvailabilityRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 0);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantRequest\n */\nexport type ApplePayValidateMerchantRequest = Message<\"public_api.v1.ApplePayValidateMerchantRequest\"> & {\n /**\n * @generated from field: string validate_url = 1;\n */\n validateUrl: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantRequest.\n * Use `create(ApplePayValidateMerchantRequestSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantRequestSchema: GenMessage<ApplePayValidateMerchantRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 1);\n\n/**\n * @generated from message public_api.v1.ApplePayValidateMerchantResponse\n */\nexport type ApplePayValidateMerchantResponse = Message<\"public_api.v1.ApplePayValidateMerchantResponse\"> & {\n /**\n * @generated from field: string merchant_session = 1;\n */\n merchantSession: string;\n};\n\n/**\n * Describes the message public_api.v1.ApplePayValidateMerchantResponse.\n * Use `create(ApplePayValidateMerchantResponseSchema)` to create a new message.\n */\nexport const ApplePayValidateMerchantResponseSchema: GenMessage<ApplePayValidateMerchantResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 2);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductRequest\n */\nexport type GetAvailableCountForProductRequest = Message<\"public_api.v1.GetAvailableCountForProductRequest\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string all_variants = 2;\n */\n allVariants: string[];\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductRequest.\n * Use `create(GetAvailableCountForProductRequestSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductRequestSchema: GenMessage<GetAvailableCountForProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 3);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse\n */\nexport type GetAvailableCountForProductResponse = Message<\"public_api.v1.GetAvailableCountForProductResponse\"> & {\n /**\n * @generated from field: map<string, public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct> available_counts = 1;\n */\n availableCounts: { [key: string]: GetAvailableCountForProductResponse_AvailableCountForProduct };\n\n /**\n * @generated from field: optional public_api.v1.GetAvailableCountForProductResponse.Error error = 2;\n */\n error?: GetAvailableCountForProductResponse_Error;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.\n * Use `create(GetAvailableCountForProductResponseSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponseSchema: GenMessage<GetAvailableCountForProductResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 4);\n\n/**\n * @generated from message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\n */\nexport type GetAvailableCountForProductResponse_AvailableCountForProduct = Message<\"public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct\"> & {\n /**\n * @generated from field: int32 available_quantity_to_order = 1;\n */\n availableQuantityToOrder: number;\n\n /**\n * @generated from field: bool can_back = 2;\n */\n canBack: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetAvailableCountForProductResponse.AvailableCountForProduct.\n * Use `create(GetAvailableCountForProductResponse_AvailableCountForProductSchema)` to create a new message.\n */\nexport const GetAvailableCountForProductResponse_AvailableCountForProductSchema: GenMessage<GetAvailableCountForProductResponse_AvailableCountForProduct> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 4, 0);\n\n/**\n * @generated from enum public_api.v1.GetAvailableCountForProductResponse.Error\n */\nexport enum GetAvailableCountForProductResponse_Error {\n /**\n * @generated from enum value: ERROR_UNKNOWN = 0;\n */\n UNKNOWN = 0,\n\n /**\n * @generated from enum value: ERROR_PROJECT_NOT_FOUND = 1;\n */\n PROJECT_NOT_FOUND = 1,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE = 2;\n */\n PRODUCT_NOT_AVAILABLE = 2,\n\n /**\n * @generated from enum value: ERROR_PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3;\n */\n PRODUCT_NOT_AVAILABLE_BUT_CAN_BACK = 3,\n}\n\n/**\n * Describes the enum public_api.v1.GetAvailableCountForProductResponse.Error.\n */\nexport const GetAvailableCountForProductResponse_ErrorSchema: GenEnum<GetAvailableCountForProductResponse_Error> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 4, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelDeleteAccountRequest\n */\nexport type UserPanelDeleteAccountRequest = Message<\"public_api.v1.UserPanelDeleteAccountRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelDeleteAccountRequest.\n * Use `create(UserPanelDeleteAccountRequestSchema)` to create a new message.\n */\nexport const UserPanelDeleteAccountRequestSchema: GenMessage<UserPanelDeleteAccountRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 5);\n\n/**\n * @generated from message public_api.v1.DidBuyProductRequest\n */\nexport type DidBuyProductRequest = Message<\"public_api.v1.DidBuyProductRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string product_id = 2;\n */\n productId: string;\n};\n\n/**\n * Describes the message public_api.v1.DidBuyProductRequest.\n * Use `create(DidBuyProductRequestSchema)` to create a new message.\n */\nexport const DidBuyProductRequestSchema: GenMessage<DidBuyProductRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 6);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest\n */\nexport type UpdateNotificationSettingsRequest = Message<\"public_api.v1.UpdateNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated public_api.v1.UpdateNotificationSettingsRequest.Group modifications = 3;\n */\n modifications: UpdateNotificationSettingsRequest_Group[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 4;\n */\n enabledMethods: NotificationMethod[];\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.\n * Use `create(UpdateNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequestSchema: GenMessage<UpdateNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7);\n\n/**\n * @generated from message public_api.v1.UpdateNotificationSettingsRequest.Group\n */\nexport type UpdateNotificationSettingsRequest_Group = Message<\"public_api.v1.UpdateNotificationSettingsRequest.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: bool enabled = 2;\n */\n enabled: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateNotificationSettingsRequest.Group.\n * Use `create(UpdateNotificationSettingsRequest_GroupSchema)` to create a new message.\n */\nexport const UpdateNotificationSettingsRequest_GroupSchema: GenMessage<UpdateNotificationSettingsRequest_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 7, 0);\n\n/**\n * @generated from message public_api.v1.UpdateGlobalNotificationSettingsRequest\n */\nexport type UpdateGlobalNotificationSettingsRequest = Message<\"public_api.v1.UpdateGlobalNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.UpdateGlobalNotificationSettingsRequest.\n * Use `create(UpdateGlobalNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const UpdateGlobalNotificationSettingsRequestSchema: GenMessage<UpdateGlobalNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 8);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsRequest\n */\nexport type GetNotificationSettingsDetailsRequest = Message<\"public_api.v1.GetNotificationSettingsDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string project_id = 2;\n */\n projectId: string;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsRequest.\n * Use `create(GetNotificationSettingsDetailsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsRequestSchema: GenMessage<GetNotificationSettingsDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 9);\n\n/**\n * @generated from message public_api.v1.NotificationGroup\n */\nexport type NotificationGroup = Message<\"public_api.v1.NotificationGroup\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: bool enabled = 4;\n */\n enabled: boolean;\n\n /**\n * @generated from field: common.v1.NotificationGroupHowOften how_often = 5;\n */\n howOften: NotificationGroupHowOften;\n};\n\n/**\n * Describes the message public_api.v1.NotificationGroup.\n * Use `create(NotificationGroupSchema)` to create a new message.\n */\nexport const NotificationGroupSchema: GenMessage<NotificationGroup> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 10);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsDetailsResponse\n */\nexport type GetNotificationSettingsDetailsResponse = Message<\"public_api.v1.GetNotificationSettingsDetailsResponse\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 3;\n */\n theme?: ProjectTheme;\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod available_methods = 4;\n */\n availableMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationMethod enabled_methods = 5;\n */\n enabledMethods: NotificationMethod[];\n\n /**\n * @generated from field: repeated public_api.v1.NotificationGroup groups = 6;\n */\n groups: NotificationGroup[];\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsDetailsResponse.\n * Use `create(GetNotificationSettingsDetailsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsDetailsResponseSchema: GenMessage<GetNotificationSettingsDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 11);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsRequest\n */\nexport type GetNotificationSettingsRequest = Message<\"public_api.v1.GetNotificationSettingsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: bool all = 2;\n */\n all: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsRequest.\n * Use `create(GetNotificationSettingsRequestSchema)` to create a new message.\n */\nexport const GetNotificationSettingsRequestSchema: GenMessage<GetNotificationSettingsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 12);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse\n */\nexport type GetNotificationSettingsResponse = Message<\"public_api.v1.GetNotificationSettingsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetNotificationSettingsResponse.Project projects = 1;\n */\n projects: GetNotificationSettingsResponse_Project[];\n\n /**\n * @generated from field: bool is_muted = 2;\n */\n isMuted: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.\n * Use `create(GetNotificationSettingsResponseSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponseSchema: GenMessage<GetNotificationSettingsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 13);\n\n/**\n * @generated from message public_api.v1.GetNotificationSettingsResponse.Project\n */\nexport type GetNotificationSettingsResponse_Project = Message<\"public_api.v1.GetNotificationSettingsResponse.Project\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: public_api.v1.GetNotificationSettingsResponse.Status status = 3;\n */\n status: GetNotificationSettingsResponse_Status;\n\n /**\n * @generated from field: optional public_api.v1.ProjectTheme theme = 4;\n */\n theme?: ProjectTheme;\n};\n\n/**\n * Describes the message public_api.v1.GetNotificationSettingsResponse.Project.\n * Use `create(GetNotificationSettingsResponse_ProjectSchema)` to create a new message.\n */\nexport const GetNotificationSettingsResponse_ProjectSchema: GenMessage<GetNotificationSettingsResponse_Project> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 13, 0);\n\n/**\n * @generated from enum public_api.v1.GetNotificationSettingsResponse.Status\n */\nexport enum GetNotificationSettingsResponse_Status {\n /**\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * @generated from enum value: STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * @generated from enum value: STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n}\n\n/**\n * Describes the enum public_api.v1.GetNotificationSettingsResponse.Status.\n */\nexport const GetNotificationSettingsResponse_StatusSchema: GenEnum<GetNotificationSettingsResponse_Status> = /*@__PURE__*/\n enumDesc(file_public_v1_public_api, 13, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesRequest\n */\nexport type UserPanelPushGetAvailableCompaniesRequest = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesRequest.\n * Use `create(UserPanelPushGetAvailableCompaniesRequestSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesRequestSchema: GenMessage<UserPanelPushGetAvailableCompaniesRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 14);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse\n */\nexport type UserPanelPushGetAvailableCompaniesResponse = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company companies = 1;\n */\n companies: UserPanelPushGetAvailableCompaniesResponse_Company[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.\n * Use `create(UserPanelPushGetAvailableCompaniesResponseSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponseSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Group = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: optional string description = 3;\n */\n description?: string;\n\n /**\n * @generated from field: optional string how_often = 4;\n */\n howOften?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_GroupSchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_GroupSchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Group> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\n */\nexport type UserPanelPushGetAvailableCompaniesResponse_Company = Message<\"public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: repeated public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Group groups = 3;\n */\n groups: UserPanelPushGetAvailableCompaniesResponse_Group[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelPushGetAvailableCompaniesResponse.Company.\n * Use `create(UserPanelPushGetAvailableCompaniesResponse_CompanySchema)` to create a new message.\n */\nexport const UserPanelPushGetAvailableCompaniesResponse_CompanySchema: GenMessage<UserPanelPushGetAvailableCompaniesResponse_Company> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 15, 1);\n\n/**\n * @generated from message public_api.v1.ShouldShopProductsResponse\n */\nexport type ShouldShopProductsResponse = Message<\"public_api.v1.ShouldShopProductsResponse\"> & {\n /**\n * @generated from field: bool is_visible = 1;\n */\n isVisible: boolean;\n};\n\n/**\n * Describes the message public_api.v1.ShouldShopProductsResponse.\n * Use `create(ShouldShopProductsResponseSchema)` to create a new message.\n */\nexport const ShouldShopProductsResponseSchema: GenMessage<ShouldShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 16);\n\n/**\n * @generated from message public_api.v1.GetShopProductsRequest\n */\nexport type GetShopProductsRequest = Message<\"public_api.v1.GetShopProductsRequest\"> & {\n /**\n * @generated from field: optional string access_token = 1;\n */\n accessToken?: string;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsRequest.\n * Use `create(GetShopProductsRequestSchema)` to create a new message.\n */\nexport const GetShopProductsRequestSchema: GenMessage<GetShopProductsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 17);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse\n */\nexport type GetShopProductsResponse = Message<\"public_api.v1.GetShopProductsResponse\"> & {\n /**\n * @generated from field: repeated public_api.v1.GetShopProductsResponse.Product products = 5;\n */\n products: GetShopProductsResponse_Product[];\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.\n * Use `create(GetShopProductsResponseSchema)` to create a new message.\n */\nexport const GetShopProductsResponseSchema: GenMessage<GetShopProductsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 18);\n\n/**\n * @generated from message public_api.v1.GetShopProductsResponse.Product\n */\nexport type GetShopProductsResponse_Product = Message<\"public_api.v1.GetShopProductsResponse.Product\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string image_url = 3;\n */\n imageUrl: string;\n\n /**\n * @generated from field: string price = 4;\n */\n price: string;\n\n /**\n * @generated from field: optional bool is_already_bought = 5;\n */\n isAlreadyBought?: boolean;\n};\n\n/**\n * Describes the message public_api.v1.GetShopProductsResponse.Product.\n * Use `create(GetShopProductsResponse_ProductSchema)` to create a new message.\n */\nexport const GetShopProductsResponse_ProductSchema: GenMessage<GetShopProductsResponse_Product> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 18, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse\n */\nexport type UserPanelGetFileDetailsResponse = Message<\"public_api.v1.UserPanelGetFileDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetFileDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetFileDetailsResponse.Result success = 1;\n */\n value: UserPanelGetFileDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.\n * Use `create(UserPanelGetFileDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponseSchema: GenMessage<UserPanelGetFileDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsResponse.Result\n */\nexport type UserPanelGetFileDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetFileDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: repeated string files = 2;\n */\n files: string[];\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsResponse.Result.\n * Use `create(UserPanelGetFileDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsResponse_ResultSchema: GenMessage<UserPanelGetFileDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 19, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetFileDetailsRequest\n */\nexport type UserPanelGetFileDetailsRequest = Message<\"public_api.v1.UserPanelGetFileDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetFileDetailsRequest.\n * Use `create(UserPanelGetFileDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetFileDetailsRequestSchema: GenMessage<UserPanelGetFileDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 20);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse\n */\nexport type UserPanelGetTicketDetailsResponse = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetTicketDetailsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetTicketDetailsResponse.Result success = 1;\n */\n value: UserPanelGetTicketDetailsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.\n * Use `create(UserPanelGetTicketDetailsResponseSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponseSchema: GenMessage<UserPanelGetTicketDetailsResponse> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 21);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsResponse.Result\n */\nexport type UserPanelGetTicketDetailsResponse_Result = Message<\"public_api.v1.UserPanelGetTicketDetailsResponse.Result\"> & {\n /**\n * @generated from field: string project_id = 1;\n */\n projectId: string;\n\n /**\n * @generated from field: string ticket_url = 2;\n */\n ticketUrl: string;\n\n /**\n * @generated from field: string product_name = 3;\n */\n productName: string;\n\n /**\n * @generated from field: string product_image_url = 4;\n */\n productImageUrl: string;\n\n /**\n * @generated from field: optional string google_wallet_url = 5;\n */\n googleWalletUrl?: string;\n\n /**\n * @generated from field: optional string apple_wallet_url = 6;\n */\n appleWalletUrl?: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsResponse.Result.\n * Use `create(UserPanelGetTicketDetailsResponse_ResultSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsResponse_ResultSchema: GenMessage<UserPanelGetTicketDetailsResponse_Result> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 21, 0);\n\n/**\n * @generated from message public_api.v1.UserPanelGetTicketDetailsRequest\n */\nexport type UserPanelGetTicketDetailsRequest = Message<\"public_api.v1.UserPanelGetTicketDetailsRequest\"> & {\n /**\n * @generated from field: string access_token = 1;\n */\n accessToken: string;\n\n /**\n * @generated from field: string access_id = 2;\n */\n accessId: string;\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetTicketDetailsRequest.\n * Use `create(UserPanelGetTicketDetailsRequestSchema)` to create a new message.\n */\nexport const UserPanelGetTicketDetailsRequestSchema: GenMessage<UserPanelGetTicketDetailsRequest> = /*@__PURE__*/\n messageDesc(file_public_v1_public_api, 22);\n\n/**\n * @generated from message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\n */\nexport type UserPanelGetAudiobookDetailsDownloadURLsResponse = Message<\"public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse\"> & {\n /**\n * @generated from oneof public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.result\n */\n result: {\n /**\n * @generated from field: public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.Result success = 1;\n */\n value: UserPanelGetAudiobookDetailsDownloadURLsResponse_Result;\n case: \"success\";\n } | {\n /**\n * @generated from field: public_api.v1.FailureMessage failure = 2;\n */\n value: FailureMessage;\n case: \"failure\";\n } | { case: undefined; value?: undefined };\n};\n\n/**\n * Describes the message public_api.v1.UserPanelGetAudiobookDetailsDownloadURLsResponse.\n * Use `create(UserPanelGetAudiobookDetailsDow