@alexochihua/protos 1.0.8 → 1.0.10

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.
@@ -0,0 +1,166 @@
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
+ /** ================== CreateDispute ================== */
8
+ export interface CreateDisputeRequest {
9
+ transaction_id: string;
10
+ status: string;
11
+ dispute_uuid: string;
12
+ request_date: string;
13
+ extra_data: CreateExtraData | undefined;
14
+ }
15
+ export interface CreateDisputeResponse {
16
+ meta: ResponseMeta | undefined;
17
+ transaction_id: string;
18
+ dispute_id: string;
19
+ custom_id: string;
20
+ amount_formatted: string;
21
+ status: string;
22
+ response_code: string;
23
+ }
24
+ /** ================== UpdateDispute ================== */
25
+ export interface UpdateDisputeRequest {
26
+ dispute_id: string;
27
+ status: string;
28
+ phase?: string | undefined;
29
+ due_date?: string | undefined;
30
+ comments?: string | undefined;
31
+ files: File[];
32
+ extra_data: UpdateExtraData | undefined;
33
+ }
34
+ export interface UpdateDisputeResponse {
35
+ meta: ResponseMeta | undefined;
36
+ dispute_id: string;
37
+ status?: string | undefined;
38
+ phase?: string | undefined;
39
+ updated_date?: string | undefined;
40
+ due_date?: string | undefined;
41
+ custom_id?: string | undefined;
42
+ files: File[];
43
+ amount_formatted?: string | undefined;
44
+ response_code?: string | undefined;
45
+ }
46
+ /** ================== FindAll ================== */
47
+ export interface FindAllRequest {
48
+ page_request: PageRequest | undefined;
49
+ start_date?: string | undefined;
50
+ end_date?: string | undefined;
51
+ pan_hmac?: string | undefined;
52
+ q?: string | undefined;
53
+ view?: string | undefined;
54
+ status?: string | undefined;
55
+ current_phase?: string | undefined;
56
+ id_dispute?: string | undefined;
57
+ custom_id?: string | undefined;
58
+ transaction_status?: string | undefined;
59
+ remaining_days?: string | undefined;
60
+ }
61
+ export interface FindAllResponse {
62
+ meta: ResponseMeta | undefined;
63
+ page_response: PageResponse | undefined;
64
+ disputes: DisputeItem[];
65
+ }
66
+ /** ================== GetDashboard ================== */
67
+ export interface GetDashboardRequest {
68
+ start_date?: string | undefined;
69
+ end_date?: string | undefined;
70
+ pan_hmac?: string | undefined;
71
+ q?: string | undefined;
72
+ view?: string | undefined;
73
+ status?: string | undefined;
74
+ current_phase?: string | undefined;
75
+ id_dispute?: string | undefined;
76
+ custom_id?: string | undefined;
77
+ transaction_status?: string | undefined;
78
+ remaining_days?: string | undefined;
79
+ }
80
+ export interface GetDashboardResponse {
81
+ meta: ResponseMeta | undefined;
82
+ data: DashboardData | undefined;
83
+ }
84
+ export declare const CreateDisputeRequest: MessageFns<CreateDisputeRequest>;
85
+ export declare const CreateDisputeResponse: MessageFns<CreateDisputeResponse>;
86
+ export declare const UpdateDisputeRequest: MessageFns<UpdateDisputeRequest>;
87
+ export declare const UpdateDisputeResponse: MessageFns<UpdateDisputeResponse>;
88
+ export declare const FindAllRequest: MessageFns<FindAllRequest>;
89
+ export declare const FindAllResponse: MessageFns<FindAllResponse>;
90
+ export declare const GetDashboardRequest: MessageFns<GetDashboardRequest>;
91
+ export declare const GetDashboardResponse: MessageFns<GetDashboardResponse>;
92
+ export type DisputesServiceService = typeof DisputesServiceService;
93
+ export declare const DisputesServiceService: {
94
+ readonly createDispute: {
95
+ readonly path: "/kapital.disputes.v1.DisputesService/CreateDispute";
96
+ readonly requestStream: false;
97
+ readonly responseStream: false;
98
+ readonly requestSerialize: (value: CreateDisputeRequest) => Buffer;
99
+ readonly requestDeserialize: (value: Buffer) => CreateDisputeRequest;
100
+ readonly responseSerialize: (value: CreateDisputeResponse) => Buffer;
101
+ readonly responseDeserialize: (value: Buffer) => CreateDisputeResponse;
102
+ };
103
+ readonly updateDispute: {
104
+ readonly path: "/kapital.disputes.v1.DisputesService/UpdateDispute";
105
+ readonly requestStream: false;
106
+ readonly responseStream: false;
107
+ readonly requestSerialize: (value: UpdateDisputeRequest) => Buffer;
108
+ readonly requestDeserialize: (value: Buffer) => UpdateDisputeRequest;
109
+ readonly responseSerialize: (value: UpdateDisputeResponse) => Buffer;
110
+ readonly responseDeserialize: (value: Buffer) => UpdateDisputeResponse;
111
+ };
112
+ readonly findAll: {
113
+ readonly path: "/kapital.disputes.v1.DisputesService/FindAll";
114
+ readonly requestStream: false;
115
+ readonly responseStream: false;
116
+ readonly requestSerialize: (value: FindAllRequest) => Buffer;
117
+ readonly requestDeserialize: (value: Buffer) => FindAllRequest;
118
+ readonly responseSerialize: (value: FindAllResponse) => Buffer;
119
+ readonly responseDeserialize: (value: Buffer) => FindAllResponse;
120
+ };
121
+ readonly getDashboard: {
122
+ readonly path: "/kapital.disputes.v1.DisputesService/GetDashboard";
123
+ readonly requestStream: false;
124
+ readonly responseStream: false;
125
+ readonly requestSerialize: (value: GetDashboardRequest) => Buffer;
126
+ readonly requestDeserialize: (value: Buffer) => GetDashboardRequest;
127
+ readonly responseSerialize: (value: GetDashboardResponse) => Buffer;
128
+ readonly responseDeserialize: (value: Buffer) => GetDashboardResponse;
129
+ };
130
+ };
131
+ export interface DisputesServiceServer extends UntypedServiceImplementation {
132
+ createDispute: handleUnaryCall<CreateDisputeRequest, CreateDisputeResponse>;
133
+ updateDispute: handleUnaryCall<UpdateDisputeRequest, UpdateDisputeResponse>;
134
+ findAll: handleUnaryCall<FindAllRequest, FindAllResponse>;
135
+ getDashboard: handleUnaryCall<GetDashboardRequest, GetDashboardResponse>;
136
+ }
137
+ export interface DisputesServiceClient extends Client {
138
+ createDispute(request: CreateDisputeRequest, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
139
+ createDispute(request: CreateDisputeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
140
+ createDispute(request: CreateDisputeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateDisputeResponse) => void): ClientUnaryCall;
141
+ updateDispute(request: UpdateDisputeRequest, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
142
+ updateDispute(request: UpdateDisputeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
143
+ updateDispute(request: UpdateDisputeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: UpdateDisputeResponse) => void): ClientUnaryCall;
144
+ findAll(request: FindAllRequest, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
145
+ findAll(request: FindAllRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
146
+ findAll(request: FindAllRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: FindAllResponse) => void): ClientUnaryCall;
147
+ getDashboard(request: GetDashboardRequest, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
148
+ getDashboard(request: GetDashboardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
149
+ getDashboard(request: GetDashboardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetDashboardResponse) => void): ClientUnaryCall;
150
+ }
151
+ export declare const DisputesServiceClient: {
152
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): DisputesServiceClient;
153
+ service: typeof DisputesServiceService;
154
+ serviceName: string;
155
+ };
156
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
157
+ 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 {} ? {
158
+ [K in keyof T]?: DeepPartial<T[K]>;
159
+ } : Partial<T>;
160
+ export interface MessageFns<T> {
161
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
162
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
163
+ create(base?: DeepPartial<T>): T;
164
+ fromPartial(object: DeepPartial<T>): T;
165
+ }
166
+ export {};