@alexochihua/protos 1.0.9 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/generated/google/protobuf/struct.d.ts +97 -0
  2. package/dist/generated/google/protobuf/struct.js +348 -0
  3. package/dist/generated/google/protobuf/struct.js.map +1 -0
  4. package/dist/generated/kapital/disputes/v1/disputes.d.ts +198 -0
  5. package/dist/generated/kapital/disputes/v1/disputes.js +1207 -0
  6. package/dist/generated/kapital/disputes/v1/disputes.js.map +1 -0
  7. package/dist/generated/kapital/disputes/v1/disputes_types.d.ts +73 -0
  8. package/dist/generated/kapital/disputes/v1/disputes_types.js +697 -0
  9. package/dist/generated/kapital/disputes/v1/disputes_types.js.map +1 -0
  10. package/dist/generated/kapital/frauds/v1/frauds.d.ts +28 -2
  11. package/dist/generated/kapital/frauds/v1/frauds.js +131 -6
  12. package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -1
  13. package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +3 -19
  14. package/dist/generated/kapital/frauds/v1/frauds_types.js +5 -217
  15. package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -1
  16. package/dist/generated/kapital/transactions/v1/transactions.d.ts +26 -0
  17. package/dist/generated/kapital/transactions/v1/transactions.js +138 -1
  18. package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -1
  19. package/dist/index.d.ts +2 -0
  20. package/dist/index.js +3 -1
  21. package/dist/index.js.map +1 -1
  22. package/package.json +15 -1
  23. package/proto/kapital/disputes/v1/disputes.proto +121 -0
  24. package/proto/kapital/disputes/v1/disputes_types.proto +65 -0
  25. package/proto/kapital/frauds/v1/frauds.proto +14 -1
  26. package/proto/kapital/frauds/v1/frauds_types.proto +4 -19
  27. package/proto/kapital/transactions/v1/transactions.proto +84 -70
@@ -0,0 +1,97 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "google.protobuf";
3
+ /**
4
+ * `NullValue` is a singleton enumeration to represent the null value for the
5
+ * `Value` type union.
6
+ *
7
+ * The JSON representation for `NullValue` is JSON `null`.
8
+ */
9
+ export declare enum NullValue {
10
+ /** NULL_VALUE - Null value. */
11
+ NULL_VALUE = 0,
12
+ UNRECOGNIZED = -1
13
+ }
14
+ /**
15
+ * `Struct` represents a structured data value, consisting of fields
16
+ * which map to dynamically typed values. In some languages, `Struct`
17
+ * might be supported by a native representation. For example, in
18
+ * scripting languages like JS a struct is represented as an
19
+ * object. The details of that representation are described together
20
+ * with the proto support for the language.
21
+ *
22
+ * The JSON representation for `Struct` is JSON object.
23
+ */
24
+ export interface Struct {
25
+ /** Unordered map of dynamically typed values. */
26
+ fields: {
27
+ [key: string]: any | undefined;
28
+ };
29
+ }
30
+ export interface Struct_FieldsEntry {
31
+ key: string;
32
+ value: any | undefined;
33
+ }
34
+ /**
35
+ * `Value` represents a dynamically typed value which can be either
36
+ * null, a number, a string, a boolean, a recursive struct value, or a
37
+ * list of values. A producer of value is expected to set one of these
38
+ * variants. Absence of any variant indicates an error.
39
+ *
40
+ * The JSON representation for `Value` is JSON value.
41
+ */
42
+ export interface Value {
43
+ /** Represents a null value. */
44
+ null_value?: NullValue | undefined;
45
+ /** Represents a double value. */
46
+ number_value?: number | undefined;
47
+ /** Represents a string value. */
48
+ string_value?: string | undefined;
49
+ /** Represents a boolean value. */
50
+ bool_value?: boolean | undefined;
51
+ /** Represents a structured value. */
52
+ struct_value?: {
53
+ [key: string]: any;
54
+ } | undefined;
55
+ /** Represents a repeated `Value`. */
56
+ list_value?: Array<any> | undefined;
57
+ }
58
+ /**
59
+ * `ListValue` is a wrapper around a repeated field of values.
60
+ *
61
+ * The JSON representation for `ListValue` is JSON array.
62
+ */
63
+ export interface ListValue {
64
+ /** Repeated field of dynamically typed values. */
65
+ values: any[];
66
+ }
67
+ export declare const Struct: MessageFns<Struct> & StructWrapperFns;
68
+ export declare const Struct_FieldsEntry: MessageFns<Struct_FieldsEntry>;
69
+ export declare const Value: MessageFns<Value> & AnyValueWrapperFns;
70
+ export declare const ListValue: MessageFns<ListValue> & ListValueWrapperFns;
71
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
72
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
73
+ [K in keyof T]?: DeepPartial<T[K]>;
74
+ } : Partial<T>;
75
+ export interface MessageFns<T> {
76
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
77
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
78
+ create(base?: DeepPartial<T>): T;
79
+ fromPartial(object: DeepPartial<T>): T;
80
+ }
81
+ export interface StructWrapperFns {
82
+ wrap(object: {
83
+ [key: string]: any;
84
+ } | undefined): Struct;
85
+ unwrap(message: Struct): {
86
+ [key: string]: any;
87
+ };
88
+ }
89
+ export interface AnyValueWrapperFns {
90
+ wrap(value: any): Value;
91
+ unwrap(message: any): string | number | boolean | Object | null | Array<any> | undefined;
92
+ }
93
+ export interface ListValueWrapperFns {
94
+ wrap(array: Array<any> | undefined): ListValue;
95
+ unwrap(message: ListValue): Array<any>;
96
+ }
97
+ export {};
@@ -0,0 +1,348 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.6
5
+ // protoc unknown
6
+ // source: google/protobuf/struct.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.ListValue = exports.Value = exports.Struct_FieldsEntry = exports.Struct = exports.NullValue = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "google.protobuf";
12
+ /**
13
+ * `NullValue` is a singleton enumeration to represent the null value for the
14
+ * `Value` type union.
15
+ *
16
+ * The JSON representation for `NullValue` is JSON `null`.
17
+ */
18
+ var NullValue;
19
+ (function (NullValue) {
20
+ /** NULL_VALUE - Null value. */
21
+ NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
22
+ NullValue[NullValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
23
+ })(NullValue || (exports.NullValue = NullValue = {}));
24
+ function createBaseStruct() {
25
+ return { fields: {} };
26
+ }
27
+ exports.Struct = {
28
+ encode(message, writer = new wire_1.BinaryWriter()) {
29
+ globalThis.Object.entries(message.fields).forEach(([key, value]) => {
30
+ if (value !== undefined) {
31
+ exports.Struct_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
32
+ }
33
+ });
34
+ return writer;
35
+ },
36
+ decode(input, length) {
37
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
38
+ const end = length === undefined ? reader.len : reader.pos + length;
39
+ const message = createBaseStruct();
40
+ while (reader.pos < end) {
41
+ const tag = reader.uint32();
42
+ switch (tag >>> 3) {
43
+ case 1: {
44
+ if (tag !== 10) {
45
+ break;
46
+ }
47
+ const entry1 = exports.Struct_FieldsEntry.decode(reader, reader.uint32());
48
+ if (entry1.value !== undefined) {
49
+ message.fields[entry1.key] = entry1.value;
50
+ }
51
+ continue;
52
+ }
53
+ }
54
+ if ((tag & 7) === 4 || tag === 0) {
55
+ break;
56
+ }
57
+ reader.skip(tag & 7);
58
+ }
59
+ return message;
60
+ },
61
+ create(base) {
62
+ return exports.Struct.fromPartial(base ?? {});
63
+ },
64
+ fromPartial(object) {
65
+ const message = createBaseStruct();
66
+ message.fields = globalThis.Object.entries(object.fields ?? {}).reduce((acc, [key, value]) => {
67
+ if (value !== undefined) {
68
+ acc[key] = value;
69
+ }
70
+ return acc;
71
+ }, {});
72
+ return message;
73
+ },
74
+ wrap(object) {
75
+ const struct = createBaseStruct();
76
+ if (object !== undefined) {
77
+ for (const key of globalThis.Object.keys(object)) {
78
+ struct.fields[key] = object[key];
79
+ }
80
+ }
81
+ return struct;
82
+ },
83
+ unwrap(message) {
84
+ const object = {};
85
+ if (message.fields) {
86
+ for (const key of globalThis.Object.keys(message.fields)) {
87
+ object[key] = message.fields[key];
88
+ }
89
+ }
90
+ return object;
91
+ },
92
+ };
93
+ function createBaseStruct_FieldsEntry() {
94
+ return { key: "", value: undefined };
95
+ }
96
+ exports.Struct_FieldsEntry = {
97
+ encode(message, writer = new wire_1.BinaryWriter()) {
98
+ if (message.key !== "") {
99
+ writer.uint32(10).string(message.key);
100
+ }
101
+ if (message.value !== undefined) {
102
+ exports.Value.encode(exports.Value.wrap(message.value), writer.uint32(18).fork()).join();
103
+ }
104
+ return writer;
105
+ },
106
+ decode(input, length) {
107
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
108
+ const end = length === undefined ? reader.len : reader.pos + length;
109
+ const message = createBaseStruct_FieldsEntry();
110
+ while (reader.pos < end) {
111
+ const tag = reader.uint32();
112
+ switch (tag >>> 3) {
113
+ case 1: {
114
+ if (tag !== 10) {
115
+ break;
116
+ }
117
+ message.key = reader.string();
118
+ continue;
119
+ }
120
+ case 2: {
121
+ if (tag !== 18) {
122
+ break;
123
+ }
124
+ message.value = exports.Value.unwrap(exports.Value.decode(reader, reader.uint32()));
125
+ continue;
126
+ }
127
+ }
128
+ if ((tag & 7) === 4 || tag === 0) {
129
+ break;
130
+ }
131
+ reader.skip(tag & 7);
132
+ }
133
+ return message;
134
+ },
135
+ create(base) {
136
+ return exports.Struct_FieldsEntry.fromPartial(base ?? {});
137
+ },
138
+ fromPartial(object) {
139
+ const message = createBaseStruct_FieldsEntry();
140
+ message.key = object.key ?? "";
141
+ message.value = object.value ?? undefined;
142
+ return message;
143
+ },
144
+ };
145
+ function createBaseValue() {
146
+ return {
147
+ null_value: undefined,
148
+ number_value: undefined,
149
+ string_value: undefined,
150
+ bool_value: undefined,
151
+ struct_value: undefined,
152
+ list_value: undefined,
153
+ };
154
+ }
155
+ exports.Value = {
156
+ encode(message, writer = new wire_1.BinaryWriter()) {
157
+ if (message.null_value !== undefined) {
158
+ writer.uint32(8).int32(message.null_value);
159
+ }
160
+ if (message.number_value !== undefined) {
161
+ writer.uint32(17).double(message.number_value);
162
+ }
163
+ if (message.string_value !== undefined) {
164
+ writer.uint32(26).string(message.string_value);
165
+ }
166
+ if (message.bool_value !== undefined) {
167
+ writer.uint32(32).bool(message.bool_value);
168
+ }
169
+ if (message.struct_value !== undefined) {
170
+ exports.Struct.encode(exports.Struct.wrap(message.struct_value), writer.uint32(42).fork()).join();
171
+ }
172
+ if (message.list_value !== undefined) {
173
+ exports.ListValue.encode(exports.ListValue.wrap(message.list_value), writer.uint32(50).fork()).join();
174
+ }
175
+ return writer;
176
+ },
177
+ decode(input, length) {
178
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
179
+ const end = length === undefined ? reader.len : reader.pos + length;
180
+ const message = createBaseValue();
181
+ while (reader.pos < end) {
182
+ const tag = reader.uint32();
183
+ switch (tag >>> 3) {
184
+ case 1: {
185
+ if (tag !== 8) {
186
+ break;
187
+ }
188
+ message.null_value = reader.int32();
189
+ continue;
190
+ }
191
+ case 2: {
192
+ if (tag !== 17) {
193
+ break;
194
+ }
195
+ message.number_value = reader.double();
196
+ continue;
197
+ }
198
+ case 3: {
199
+ if (tag !== 26) {
200
+ break;
201
+ }
202
+ message.string_value = reader.string();
203
+ continue;
204
+ }
205
+ case 4: {
206
+ if (tag !== 32) {
207
+ break;
208
+ }
209
+ message.bool_value = reader.bool();
210
+ continue;
211
+ }
212
+ case 5: {
213
+ if (tag !== 42) {
214
+ break;
215
+ }
216
+ message.struct_value = exports.Struct.unwrap(exports.Struct.decode(reader, reader.uint32()));
217
+ continue;
218
+ }
219
+ case 6: {
220
+ if (tag !== 50) {
221
+ break;
222
+ }
223
+ message.list_value = exports.ListValue.unwrap(exports.ListValue.decode(reader, reader.uint32()));
224
+ continue;
225
+ }
226
+ }
227
+ if ((tag & 7) === 4 || tag === 0) {
228
+ break;
229
+ }
230
+ reader.skip(tag & 7);
231
+ }
232
+ return message;
233
+ },
234
+ create(base) {
235
+ return exports.Value.fromPartial(base ?? {});
236
+ },
237
+ fromPartial(object) {
238
+ const message = createBaseValue();
239
+ message.null_value = object.null_value ?? undefined;
240
+ message.number_value = object.number_value ?? undefined;
241
+ message.string_value = object.string_value ?? undefined;
242
+ message.bool_value = object.bool_value ?? undefined;
243
+ message.struct_value = object.struct_value ?? undefined;
244
+ message.list_value = object.list_value ?? undefined;
245
+ return message;
246
+ },
247
+ wrap(value) {
248
+ const result = createBaseValue();
249
+ if (value === null) {
250
+ result.null_value = NullValue.NULL_VALUE;
251
+ }
252
+ else if (typeof value === "boolean") {
253
+ result.bool_value = value;
254
+ }
255
+ else if (typeof value === "number") {
256
+ result.number_value = value;
257
+ }
258
+ else if (typeof value === "string") {
259
+ result.string_value = value;
260
+ }
261
+ else if (globalThis.Array.isArray(value)) {
262
+ result.list_value = value;
263
+ }
264
+ else if (typeof value === "object") {
265
+ result.struct_value = value;
266
+ }
267
+ else if (typeof value !== "undefined") {
268
+ throw new globalThis.Error("Unsupported any value type: " + typeof value);
269
+ }
270
+ return result;
271
+ },
272
+ unwrap(message) {
273
+ if (message.string_value !== undefined) {
274
+ return message.string_value;
275
+ }
276
+ else if (message?.number_value !== undefined) {
277
+ return message.number_value;
278
+ }
279
+ else if (message?.bool_value !== undefined) {
280
+ return message.bool_value;
281
+ }
282
+ else if (message?.struct_value !== undefined) {
283
+ return message.struct_value;
284
+ }
285
+ else if (message?.list_value !== undefined) {
286
+ return message.list_value;
287
+ }
288
+ else if (message?.null_value !== undefined) {
289
+ return null;
290
+ }
291
+ return undefined;
292
+ },
293
+ };
294
+ function createBaseListValue() {
295
+ return { values: [] };
296
+ }
297
+ exports.ListValue = {
298
+ encode(message, writer = new wire_1.BinaryWriter()) {
299
+ for (const v of message.values) {
300
+ exports.Value.encode(exports.Value.wrap(v), writer.uint32(10).fork()).join();
301
+ }
302
+ return writer;
303
+ },
304
+ decode(input, length) {
305
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
306
+ const end = length === undefined ? reader.len : reader.pos + length;
307
+ const message = createBaseListValue();
308
+ while (reader.pos < end) {
309
+ const tag = reader.uint32();
310
+ switch (tag >>> 3) {
311
+ case 1: {
312
+ if (tag !== 10) {
313
+ break;
314
+ }
315
+ message.values.push(exports.Value.unwrap(exports.Value.decode(reader, reader.uint32())));
316
+ continue;
317
+ }
318
+ }
319
+ if ((tag & 7) === 4 || tag === 0) {
320
+ break;
321
+ }
322
+ reader.skip(tag & 7);
323
+ }
324
+ return message;
325
+ },
326
+ create(base) {
327
+ return exports.ListValue.fromPartial(base ?? {});
328
+ },
329
+ fromPartial(object) {
330
+ const message = createBaseListValue();
331
+ message.values = object.values?.map((e) => e) || [];
332
+ return message;
333
+ },
334
+ wrap(array) {
335
+ const result = createBaseListValue();
336
+ result.values = array ?? [];
337
+ return result;
338
+ },
339
+ unwrap(message) {
340
+ if (message?.hasOwnProperty("values") && globalThis.Array.isArray(message.values)) {
341
+ return message.values;
342
+ }
343
+ else {
344
+ return message;
345
+ }
346
+ },
347
+ };
348
+ //# sourceMappingURL=struct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../../src/generated/google/protobuf/struct.ts"],"names":[],"mappings":";AAAA,sDAAsD;AACtD,YAAY;AACZ,iCAAiC;AACjC,iCAAiC;AACjC,uCAAuC;;;AAEvC,oBAAoB;AACpB,kDAAqE;AAExD,QAAA,eAAe,GAAG,iBAAiB,CAAC;AAEjD;;;;;GAKG;AACH,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,+BAA+B;IAC/B,qDAAc,CAAA;IACd,0DAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB;AAiED,SAAS,gBAAgB;IACvB,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;AACxB,CAAC;AAEY,QAAA,MAAM,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,IAAI,CAAC,KAA6B;QAChC,MAAM,MAAM,GAAG,mBAAmB,EAAE,CAAC;QACrC,MAAM,CAAC,MAAM,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5B,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM,CAAC,OAAkB;QACvB,IAAI,OAAO,EAAE,cAAc,CAAC,QAAQ,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YAClF,OAAO,OAAO,CAAC,MAAM,CAAC;QACxB,CAAC;aAAM,CAAC;YACN,OAAO,OAAc,CAAC;QACxB,CAAC;IACH,CAAC;CACF,CAAC"}
@@ -0,0 +1,198 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
3
+ import { ResponseMeta } from "../../common/v1/meta";
4
+ import { PageRequest, PageResponse } from "../../common/v1/pagination";
5
+ import { CreateExtraData, DashboardData, DisputeItem, File, UpdateExtraData } from "./disputes_types";
6
+ export declare const protobufPackage = "kapital.disputes.v1";
7
+ /** ================== CheckDispute ================== */
8
+ export interface CheckDisputeRequest {
9
+ dispute_id: string;
10
+ }
11
+ export interface CheckDisputeResponse {
12
+ meta: ResponseMeta | undefined;
13
+ dispute_id: string;
14
+ exists: boolean;
15
+ status?: string | undefined;
16
+ response_code?: string | undefined;
17
+ phase?: string | undefined;
18
+ update_at?: string | undefined;
19
+ due_date?: string | undefined;
20
+ amount_formatted?: string | undefined;
21
+ files: File[];
22
+ phase_started?: string | undefined;
23
+ }
24
+ /** ================== CreateDispute ================== */
25
+ export interface CreateDisputeRequest {
26
+ transaction_id: string;
27
+ status: string;
28
+ dispute_uuid: string;
29
+ request_date: string;
30
+ extra_data: CreateExtraData | undefined;
31
+ }
32
+ export interface CreateDisputeResponse {
33
+ meta: ResponseMeta | undefined;
34
+ transaction_id: string;
35
+ dispute_id: string;
36
+ custom_id: string;
37
+ amount_formatted: string;
38
+ status: string;
39
+ response_code: string;
40
+ }
41
+ /** ================== UpdateDispute ================== */
42
+ export interface UpdateDisputeRequest {
43
+ dispute_id: string;
44
+ status: string;
45
+ phase?: string | undefined;
46
+ due_date?: string | undefined;
47
+ comments?: string | undefined;
48
+ files: File[];
49
+ extra_data: UpdateExtraData | undefined;
50
+ }
51
+ export interface UpdateDisputeResponse {
52
+ meta: ResponseMeta | undefined;
53
+ dispute_id: string;
54
+ status?: string | undefined;
55
+ phase?: string | undefined;
56
+ updated_date?: string | undefined;
57
+ due_date?: string | undefined;
58
+ custom_id?: string | undefined;
59
+ files: File[];
60
+ amount_formatted?: string | undefined;
61
+ response_code?: string | undefined;
62
+ }
63
+ /** ================== FindAll ================== */
64
+ export interface FindAllRequest {
65
+ page_request: PageRequest | undefined;
66
+ start_date?: string | undefined;
67
+ end_date?: string | undefined;
68
+ pan_hmac?: string | undefined;
69
+ q?: string | undefined;
70
+ view?: string | undefined;
71
+ status?: string | undefined;
72
+ current_phase?: string | undefined;
73
+ id_dispute?: string | undefined;
74
+ custom_id?: string | undefined;
75
+ transaction_status?: string | undefined;
76
+ remaining_days?: string | undefined;
77
+ }
78
+ export interface FindAllResponse {
79
+ meta: ResponseMeta | undefined;
80
+ page_response: PageResponse | undefined;
81
+ disputes: DisputeItem[];
82
+ }
83
+ /** ================== GetDashboard ================== */
84
+ export interface GetDashboardRequest {
85
+ start_date?: string | undefined;
86
+ end_date?: string | undefined;
87
+ pan_hmac?: string | undefined;
88
+ q?: string | undefined;
89
+ view?: string | undefined;
90
+ status?: string | undefined;
91
+ current_phase?: string | undefined;
92
+ id_dispute?: string | undefined;
93
+ custom_id?: string | undefined;
94
+ transaction_status?: string | undefined;
95
+ remaining_days?: string | undefined;
96
+ }
97
+ export interface GetDashboardResponse {
98
+ meta: ResponseMeta | undefined;
99
+ data: DashboardData | undefined;
100
+ }
101
+ export declare const CheckDisputeRequest: MessageFns<CheckDisputeRequest>;
102
+ export declare const CheckDisputeResponse: MessageFns<CheckDisputeResponse>;
103
+ export declare const CreateDisputeRequest: MessageFns<CreateDisputeRequest>;
104
+ export declare const CreateDisputeResponse: MessageFns<CreateDisputeResponse>;
105
+ export declare const UpdateDisputeRequest: MessageFns<UpdateDisputeRequest>;
106
+ export declare const UpdateDisputeResponse: MessageFns<UpdateDisputeResponse>;
107
+ export declare const FindAllRequest: MessageFns<FindAllRequest>;
108
+ export declare const FindAllResponse: MessageFns<FindAllResponse>;
109
+ export declare const GetDashboardRequest: MessageFns<GetDashboardRequest>;
110
+ export declare const GetDashboardResponse: MessageFns<GetDashboardResponse>;
111
+ export type DisputesServiceService = typeof DisputesServiceService;
112
+ export declare const DisputesServiceService: {
113
+ readonly checkDispute: {
114
+ readonly path: "/kapital.disputes.v1.DisputesService/CheckDispute";
115
+ readonly requestStream: false;
116
+ readonly responseStream: false;
117
+ readonly requestSerialize: (value: CheckDisputeRequest) => Buffer;
118
+ readonly requestDeserialize: (value: Buffer) => CheckDisputeRequest;
119
+ readonly responseSerialize: (value: CheckDisputeResponse) => Buffer;
120
+ readonly responseDeserialize: (value: Buffer) => CheckDisputeResponse;
121
+ };
122
+ readonly createDispute: {
123
+ readonly path: "/kapital.disputes.v1.DisputesService/CreateDispute";
124
+ readonly requestStream: false;
125
+ readonly responseStream: false;
126
+ readonly requestSerialize: (value: CreateDisputeRequest) => Buffer;
127
+ readonly requestDeserialize: (value: Buffer) => CreateDisputeRequest;
128
+ readonly responseSerialize: (value: CreateDisputeResponse) => Buffer;
129
+ readonly responseDeserialize: (value: Buffer) => CreateDisputeResponse;
130
+ };
131
+ readonly updateDispute: {
132
+ readonly path: "/kapital.disputes.v1.DisputesService/UpdateDispute";
133
+ readonly requestStream: false;
134
+ readonly responseStream: false;
135
+ readonly requestSerialize: (value: UpdateDisputeRequest) => Buffer;
136
+ readonly requestDeserialize: (value: Buffer) => UpdateDisputeRequest;
137
+ readonly responseSerialize: (value: UpdateDisputeResponse) => Buffer;
138
+ readonly responseDeserialize: (value: Buffer) => UpdateDisputeResponse;
139
+ };
140
+ readonly findAll: {
141
+ readonly path: "/kapital.disputes.v1.DisputesService/FindAll";
142
+ readonly requestStream: false;
143
+ readonly responseStream: false;
144
+ readonly requestSerialize: (value: FindAllRequest) => Buffer;
145
+ readonly requestDeserialize: (value: Buffer) => FindAllRequest;
146
+ readonly responseSerialize: (value: FindAllResponse) => Buffer;
147
+ readonly responseDeserialize: (value: Buffer) => FindAllResponse;
148
+ };
149
+ readonly getDashboard: {
150
+ readonly path: "/kapital.disputes.v1.DisputesService/GetDashboard";
151
+ readonly requestStream: false;
152
+ readonly responseStream: false;
153
+ readonly requestSerialize: (value: GetDashboardRequest) => Buffer;
154
+ readonly requestDeserialize: (value: Buffer) => GetDashboardRequest;
155
+ readonly responseSerialize: (value: GetDashboardResponse) => Buffer;
156
+ readonly responseDeserialize: (value: Buffer) => GetDashboardResponse;
157
+ };
158
+ };
159
+ export interface DisputesServiceServer extends UntypedServiceImplementation {
160
+ checkDispute: handleUnaryCall<CheckDisputeRequest, CheckDisputeResponse>;
161
+ createDispute: handleUnaryCall<CreateDisputeRequest, CreateDisputeResponse>;
162
+ updateDispute: handleUnaryCall<UpdateDisputeRequest, UpdateDisputeResponse>;
163
+ findAll: handleUnaryCall<FindAllRequest, FindAllResponse>;
164
+ getDashboard: handleUnaryCall<GetDashboardRequest, GetDashboardResponse>;
165
+ }
166
+ export interface DisputesServiceClient extends Client {
167
+ checkDispute(request: CheckDisputeRequest, callback: (error: ServiceError | null, response: CheckDisputeResponse) => void): ClientUnaryCall;
168
+ checkDispute(request: CheckDisputeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CheckDisputeResponse) => void): ClientUnaryCall;
169
+ checkDispute(request: CheckDisputeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CheckDisputeResponse) => void): ClientUnaryCall;
170
+ createDispute(request: CreateDisputeRequest, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
171
+ createDispute(request: CreateDisputeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
172
+ createDispute(request: CreateDisputeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
173
+ updateDispute(request: UpdateDisputeRequest, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
174
+ updateDispute(request: UpdateDisputeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
175
+ updateDispute(request: UpdateDisputeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
176
+ findAll(request: FindAllRequest, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
177
+ findAll(request: FindAllRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
178
+ findAll(request: FindAllRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
179
+ getDashboard(request: GetDashboardRequest, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
180
+ getDashboard(request: GetDashboardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
181
+ getDashboard(request: GetDashboardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
182
+ }
183
+ export declare const DisputesServiceClient: {
184
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): DisputesServiceClient;
185
+ service: typeof DisputesServiceService;
186
+ serviceName: string;
187
+ };
188
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
189
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
190
+ [K in keyof T]?: DeepPartial<T[K]>;
191
+ } : Partial<T>;
192
+ export interface MessageFns<T> {
193
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
194
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
195
+ create(base?: DeepPartial<T>): T;
196
+ fromPartial(object: DeepPartial<T>): T;
197
+ }
198
+ export {};