|
| 1 | +// Copyright (c) 2021 Systemathics |
| 2 | +// |
| 3 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 | +// of this software and associated documentation files (the "Software"), to deal |
| 5 | +// in the Software without restriction, including without limitation the rights |
| 6 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 7 | +// copies of the Software, and to permit persons to whom the Software is |
| 8 | +// furnished to do so, subject to the following conditions: |
| 9 | +// |
| 10 | +// The above copyright notice and this permission notice shall be included in all |
| 11 | +// copies or substantial portions of the Software. |
| 12 | +// |
| 13 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 | +// SOFTWARE. |
| 20 | + |
| 21 | +// Up-to-date symbol changes annoucements including effective date, old and new symbols. |
| 22 | + |
| 23 | +// @generated by protoc-gen-es v2.7.0 with parameter "target=ts" |
| 24 | +// @generated from file systemathics/apis/services/corporate_actions/v1/changes.proto (package systemathics.apis.services.corporate_actions.v1, syntax proto3) |
| 25 | +/* eslint-disable */ |
| 26 | + |
| 27 | +import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; |
| 28 | +import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; |
| 29 | +import { file_google_api_annotations } from "../../../../../google/api/annotations_pb"; |
| 30 | +import type { Date } from "../../../../../google/type/date_pb"; |
| 31 | +import { file_google_type_date } from "../../../../../google/type/date_pb"; |
| 32 | +import type { Identifier } from "../../../type/shared/v1/identifier_pb"; |
| 33 | +import { file_systemathics_apis_type_shared_v1_identifier } from "../../../type/shared/v1/identifier_pb"; |
| 34 | +import type { DateInterval } from "../../../type/shared/v1/date_interval_pb"; |
| 35 | +import { file_systemathics_apis_type_shared_v1_date_interval } from "../../../type/shared/v1/date_interval_pb"; |
| 36 | +import type { Message } from "@bufbuild/protobuf"; |
| 37 | + |
| 38 | +/** |
| 39 | + * Describes the file systemathics/apis/services/corporate_actions/v1/changes.proto. |
| 40 | + */ |
| 41 | +export const file_systemathics_apis_services_corporate_actions_v1_changes: GenFile = /*@__PURE__*/ |
| 42 | + fileDesc("Cj1zeXN0ZW1hdGhpY3MvYXBpcy9zZXJ2aWNlcy9jb3Jwb3JhdGVfYWN0aW9ucy92MS9jaGFuZ2VzLnByb3RvEi9zeXN0ZW1hdGhpY3MuYXBpcy5zZXJ2aWNlcy5jb3Jwb3JhdGVfYWN0aW9ucy52MSKZAQoOQ2hhbmdlc1JlcXVlc3QSQAoKaWRlbnRpZmllchgBIAEoCzIsLnN5c3RlbWF0aGljcy5hcGlzLnR5cGUuc2hhcmVkLnYxLklkZW50aWZpZXISRQoNZGF0ZV9pbnRlcnZhbBgCIAEoCzIuLnN5c3RlbWF0aGljcy5hcGlzLnR5cGUuc2hhcmVkLnYxLkRhdGVJbnRlcnZhbCJYCg9DaGFuZ2VzUmVzcG9uc2USRQoEZGF0YRgBIAMoCzI3LnN5c3RlbWF0aGljcy5hcGlzLnNlcnZpY2VzLmNvcnBvcmF0ZV9hY3Rpb25zLnYxLkNoYW5nZSJRCgZDaGFuZ2USHwoEZGF0ZRgBIAEoCzIRLmdvb2dsZS50eXBlLkRhdGUSEgoKbmV3X3N5bWJvbBgCIAEoCRISCgpvbGRfc3ltYm9sGAMgASgJMsYBCg5DaGFuZ2VzU2VydmljZRKzAQoHQ2hhbmdlcxI/LnN5c3RlbWF0aGljcy5hcGlzLnNlcnZpY2VzLmNvcnBvcmF0ZV9hY3Rpb25zLnYxLkNoYW5nZXNSZXF1ZXN0GkAuc3lzdGVtYXRoaWNzLmFwaXMuc2VydmljZXMuY29ycG9yYXRlX2FjdGlvbnMudjEuQ2hhbmdlc1Jlc3BvbnNlIiWC0+STAh8SHS92MS9jb3Jwb3JhdGUtYWN0aW9ucy9jaGFuZ2VzYgZwcm90bzM", [file_google_api_annotations, file_google_type_date, file_systemathics_apis_type_shared_v1_identifier, file_systemathics_apis_type_shared_v1_date_interval]); |
| 43 | + |
| 44 | +/** |
| 45 | + * The required input to request the ChangesService |
| 46 | + * |
| 47 | + * @generated from message systemathics.apis.services.corporate_actions.v1.ChangesRequest |
| 48 | + */ |
| 49 | +export type ChangesRequest = Message<"systemathics.apis.services.corporate_actions.v1.ChangesRequest"> & { |
| 50 | + /** |
| 51 | + * [Mandatory] The instrument identifier |
| 52 | + * |
| 53 | + * @generated from field: systemathics.apis.type.shared.v1.Identifier identifier = 1; |
| 54 | + */ |
| 55 | + identifier?: Identifier; |
| 56 | + |
| 57 | + /** |
| 58 | + * [Optional] The time date interval used to define the look-back period. |
| 59 | + * If empty, then all the available data is retrieved. |
| 60 | + * |
| 61 | + * @generated from field: systemathics.apis.type.shared.v1.DateInterval date_interval = 2; |
| 62 | + */ |
| 63 | + dateInterval?: DateInterval; |
| 64 | +}; |
| 65 | + |
| 66 | +/** |
| 67 | + * Describes the message systemathics.apis.services.corporate_actions.v1.ChangesRequest. |
| 68 | + * Use `create(ChangesRequestSchema)` to create a new message. |
| 69 | + */ |
| 70 | +export const ChangesRequestSchema: GenMessage<ChangesRequest> = /*@__PURE__*/ |
| 71 | + messageDesc(file_systemathics_apis_services_corporate_actions_v1_changes, 0); |
| 72 | + |
| 73 | +/** |
| 74 | + * Represents a change response. |
| 75 | + * |
| 76 | + * @generated from message systemathics.apis.services.corporate_actions.v1.ChangesResponse |
| 77 | + */ |
| 78 | +export type ChangesResponse = Message<"systemathics.apis.services.corporate_actions.v1.ChangesResponse"> & { |
| 79 | + /** |
| 80 | + * The changes: an array of symbol change objects |
| 81 | + * |
| 82 | + * @generated from field: repeated systemathics.apis.services.corporate_actions.v1.Change data = 1; |
| 83 | + */ |
| 84 | + data: Change[]; |
| 85 | +}; |
| 86 | + |
| 87 | +/** |
| 88 | + * Describes the message systemathics.apis.services.corporate_actions.v1.ChangesResponse. |
| 89 | + * Use `create(ChangesResponseSchema)` to create a new message. |
| 90 | + */ |
| 91 | +export const ChangesResponseSchema: GenMessage<ChangesResponse> = /*@__PURE__*/ |
| 92 | + messageDesc(file_systemathics_apis_services_corporate_actions_v1_changes, 1); |
| 93 | + |
| 94 | +/** |
| 95 | + * Contains the symbol changes data: date, old and new symbols. |
| 96 | + * |
| 97 | + * @generated from message systemathics.apis.services.corporate_actions.v1.Change |
| 98 | + */ |
| 99 | +export type Change = Message<"systemathics.apis.services.corporate_actions.v1.Change"> & { |
| 100 | + /** |
| 101 | + * Effective date |
| 102 | + * |
| 103 | + * @generated from field: google.type.Date date = 1; |
| 104 | + */ |
| 105 | + date?: Date; |
| 106 | + |
| 107 | + /** |
| 108 | + * New symbol |
| 109 | + * |
| 110 | + * @generated from field: string new_symbol = 2; |
| 111 | + */ |
| 112 | + newSymbol: string; |
| 113 | + |
| 114 | + /** |
| 115 | + * Old symbol |
| 116 | + * |
| 117 | + * @generated from field: string old_symbol = 3; |
| 118 | + */ |
| 119 | + oldSymbol: string; |
| 120 | +}; |
| 121 | + |
| 122 | +/** |
| 123 | + * Describes the message systemathics.apis.services.corporate_actions.v1.Change. |
| 124 | + * Use `create(ChangeSchema)` to create a new message. |
| 125 | + */ |
| 126 | +export const ChangeSchema: GenMessage<Change> = /*@__PURE__*/ |
| 127 | + messageDesc(file_systemathics_apis_services_corporate_actions_v1_changes, 2); |
| 128 | + |
| 129 | +/** |
| 130 | + * Called to request symbol changes data. |
| 131 | + * |
| 132 | + * @generated from service systemathics.apis.services.corporate_actions.v1.ChangesService |
| 133 | + */ |
| 134 | +export const ChangesService: GenService<{ |
| 135 | + /** |
| 136 | + * Gets symbol changes historical data |
| 137 | + * |
| 138 | + * @generated from rpc systemathics.apis.services.corporate_actions.v1.ChangesService.Changes |
| 139 | + */ |
| 140 | + changes: { |
| 141 | + methodKind: "unary"; |
| 142 | + input: typeof ChangesRequestSchema; |
| 143 | + output: typeof ChangesResponseSchema; |
| 144 | + }, |
| 145 | +}> = /*@__PURE__*/ |
| 146 | + serviceDesc(file_systemathics_apis_services_corporate_actions_v1_changes, 0); |
| 147 | + |
0 commit comments