@stashfin/grpc 1.2.528 → 1.2.529
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.
- package/package.json +1 -1
- package/ts/upi/initiatemandateaction.d.ts +50 -0
- package/ts/upi/initiatemandateaction.js +229 -0
- package/ts/upi.d.ts +14 -0
- package/ts/upi.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "upi.initiateMandateAction";
|
|
3
|
+
export interface initiateMandateActionRequest {
|
|
4
|
+
txn_id: string;
|
|
5
|
+
umn: string;
|
|
6
|
+
}
|
|
7
|
+
export interface Data {
|
|
8
|
+
seq_no: string;
|
|
9
|
+
txn_hash: string;
|
|
10
|
+
}
|
|
11
|
+
export interface initiateMandateActionResponse {
|
|
12
|
+
status: string;
|
|
13
|
+
message: string;
|
|
14
|
+
data?: Data | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare const initiateMandateActionRequest: {
|
|
17
|
+
encode(message: initiateMandateActionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiateMandateActionRequest;
|
|
19
|
+
fromJSON(object: any): initiateMandateActionRequest;
|
|
20
|
+
toJSON(message: initiateMandateActionRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<initiateMandateActionRequest>, I>>(base?: I): initiateMandateActionRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<initiateMandateActionRequest>, I>>(object: I): initiateMandateActionRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const Data: {
|
|
25
|
+
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
27
|
+
fromJSON(object: any): Data;
|
|
28
|
+
toJSON(message: Data): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
|
|
31
|
+
};
|
|
32
|
+
export declare const initiateMandateActionResponse: {
|
|
33
|
+
encode(message: initiateMandateActionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiateMandateActionResponse;
|
|
35
|
+
fromJSON(object: any): initiateMandateActionResponse;
|
|
36
|
+
toJSON(message: initiateMandateActionResponse): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<initiateMandateActionResponse>, I>>(base?: I): initiateMandateActionResponse;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<initiateMandateActionResponse>, I>>(object: I): initiateMandateActionResponse;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.2
|
|
6
|
+
// source: upi/initiatemandateaction.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.initiateMandateActionResponse = exports.Data = exports.initiateMandateActionRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "upi.initiateMandateAction";
|
|
15
|
+
function createBaseinitiateMandateActionRequest() {
|
|
16
|
+
return { txn_id: "", umn: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.initiateMandateActionRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.txn_id !== "") {
|
|
21
|
+
writer.uint32(10).string(message.txn_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.umn !== "") {
|
|
24
|
+
writer.uint32(18).string(message.umn);
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseinitiateMandateActionRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 10) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.txn_id = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.umn = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
|
|
58
|
+
umn: isSet(object.umn) ? globalThis.String(object.umn) : "",
|
|
59
|
+
};
|
|
60
|
+
},
|
|
61
|
+
toJSON(message) {
|
|
62
|
+
const obj = {};
|
|
63
|
+
if (message.txn_id !== "") {
|
|
64
|
+
obj.txn_id = message.txn_id;
|
|
65
|
+
}
|
|
66
|
+
if (message.umn !== "") {
|
|
67
|
+
obj.umn = message.umn;
|
|
68
|
+
}
|
|
69
|
+
return obj;
|
|
70
|
+
},
|
|
71
|
+
create(base) {
|
|
72
|
+
return exports.initiateMandateActionRequest.fromPartial(base ?? {});
|
|
73
|
+
},
|
|
74
|
+
fromPartial(object) {
|
|
75
|
+
const message = createBaseinitiateMandateActionRequest();
|
|
76
|
+
message.txn_id = object.txn_id ?? "";
|
|
77
|
+
message.umn = object.umn ?? "";
|
|
78
|
+
return message;
|
|
79
|
+
},
|
|
80
|
+
};
|
|
81
|
+
function createBaseData() {
|
|
82
|
+
return { seq_no: "", txn_hash: "" };
|
|
83
|
+
}
|
|
84
|
+
exports.Data = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
if (message.seq_no !== "") {
|
|
87
|
+
writer.uint32(10).string(message.seq_no);
|
|
88
|
+
}
|
|
89
|
+
if (message.txn_hash !== "") {
|
|
90
|
+
writer.uint32(18).string(message.txn_hash);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseData();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 10) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.seq_no = reader.string();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.txn_hash = reader.string();
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
reader.skipType(tag & 7);
|
|
118
|
+
}
|
|
119
|
+
return message;
|
|
120
|
+
},
|
|
121
|
+
fromJSON(object) {
|
|
122
|
+
return {
|
|
123
|
+
seq_no: isSet(object.seq_no) ? globalThis.String(object.seq_no) : "",
|
|
124
|
+
txn_hash: isSet(object.txn_hash) ? globalThis.String(object.txn_hash) : "",
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
toJSON(message) {
|
|
128
|
+
const obj = {};
|
|
129
|
+
if (message.seq_no !== "") {
|
|
130
|
+
obj.seq_no = message.seq_no;
|
|
131
|
+
}
|
|
132
|
+
if (message.txn_hash !== "") {
|
|
133
|
+
obj.txn_hash = message.txn_hash;
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.Data.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseData();
|
|
142
|
+
message.seq_no = object.seq_no ?? "";
|
|
143
|
+
message.txn_hash = object.txn_hash ?? "";
|
|
144
|
+
return message;
|
|
145
|
+
},
|
|
146
|
+
};
|
|
147
|
+
function createBaseinitiateMandateActionResponse() {
|
|
148
|
+
return { status: "", message: "", data: undefined };
|
|
149
|
+
}
|
|
150
|
+
exports.initiateMandateActionResponse = {
|
|
151
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
152
|
+
if (message.status !== "") {
|
|
153
|
+
writer.uint32(10).string(message.status);
|
|
154
|
+
}
|
|
155
|
+
if (message.message !== "") {
|
|
156
|
+
writer.uint32(18).string(message.message);
|
|
157
|
+
}
|
|
158
|
+
if (message.data !== undefined) {
|
|
159
|
+
exports.Data.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
160
|
+
}
|
|
161
|
+
return writer;
|
|
162
|
+
},
|
|
163
|
+
decode(input, length) {
|
|
164
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
165
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
166
|
+
const message = createBaseinitiateMandateActionResponse();
|
|
167
|
+
while (reader.pos < end) {
|
|
168
|
+
const tag = reader.uint32();
|
|
169
|
+
switch (tag >>> 3) {
|
|
170
|
+
case 1:
|
|
171
|
+
if (tag !== 10) {
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
message.status = reader.string();
|
|
175
|
+
continue;
|
|
176
|
+
case 2:
|
|
177
|
+
if (tag !== 18) {
|
|
178
|
+
break;
|
|
179
|
+
}
|
|
180
|
+
message.message = reader.string();
|
|
181
|
+
continue;
|
|
182
|
+
case 3:
|
|
183
|
+
if (tag !== 26) {
|
|
184
|
+
break;
|
|
185
|
+
}
|
|
186
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
190
|
+
break;
|
|
191
|
+
}
|
|
192
|
+
reader.skipType(tag & 7);
|
|
193
|
+
}
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
fromJSON(object) {
|
|
197
|
+
return {
|
|
198
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
199
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
200
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
toJSON(message) {
|
|
204
|
+
const obj = {};
|
|
205
|
+
if (message.status !== "") {
|
|
206
|
+
obj.status = message.status;
|
|
207
|
+
}
|
|
208
|
+
if (message.message !== "") {
|
|
209
|
+
obj.message = message.message;
|
|
210
|
+
}
|
|
211
|
+
if (message.data !== undefined) {
|
|
212
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
213
|
+
}
|
|
214
|
+
return obj;
|
|
215
|
+
},
|
|
216
|
+
create(base) {
|
|
217
|
+
return exports.initiateMandateActionResponse.fromPartial(base ?? {});
|
|
218
|
+
},
|
|
219
|
+
fromPartial(object) {
|
|
220
|
+
const message = createBaseinitiateMandateActionResponse();
|
|
221
|
+
message.status = object.status ?? "";
|
|
222
|
+
message.message = object.message ?? "";
|
|
223
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
224
|
+
return message;
|
|
225
|
+
},
|
|
226
|
+
};
|
|
227
|
+
function isSet(value) {
|
|
228
|
+
return value !== null && value !== undefined;
|
|
229
|
+
}
|
package/ts/upi.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { getProfileRequest, getProfileResponse } from "./upi/getprofile";
|
|
|
13
13
|
import { getRecentContactsRequest, getRecentContactsResponse } from "./upi/getrecentcontacts";
|
|
14
14
|
import { getTransactionsRequest, getTransactionsResponse } from "./upi/gettransactions";
|
|
15
15
|
import { getUpiNumbersRequest, getUpiNumbersResponse } from "./upi/getupinumbers";
|
|
16
|
+
import { initiateMandateActionRequest, initiateMandateActionResponse } from "./upi/initiatemandateaction";
|
|
16
17
|
import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/initiatetransaction";
|
|
17
18
|
import { listBlockedVPARequest, listBlockedVPAResponse } from "./upi/listblockedvpa";
|
|
18
19
|
import { unblockVPARequest, unblockVPAResponse } from "./upi/unblockvpa";
|
|
@@ -212,6 +213,15 @@ export declare const upiService: {
|
|
|
212
213
|
readonly responseSerialize: (value: getUpiNumbersResponse) => Buffer;
|
|
213
214
|
readonly responseDeserialize: (value: Buffer) => getUpiNumbersResponse;
|
|
214
215
|
};
|
|
216
|
+
readonly initiateMandateAction: {
|
|
217
|
+
readonly path: "/service.upi/initiateMandateAction";
|
|
218
|
+
readonly requestStream: false;
|
|
219
|
+
readonly responseStream: false;
|
|
220
|
+
readonly requestSerialize: (value: initiateMandateActionRequest) => Buffer;
|
|
221
|
+
readonly requestDeserialize: (value: Buffer) => initiateMandateActionRequest;
|
|
222
|
+
readonly responseSerialize: (value: initiateMandateActionResponse) => Buffer;
|
|
223
|
+
readonly responseDeserialize: (value: Buffer) => initiateMandateActionResponse;
|
|
224
|
+
};
|
|
215
225
|
};
|
|
216
226
|
export interface upiServer extends UntypedServiceImplementation {
|
|
217
227
|
getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
|
|
@@ -235,6 +245,7 @@ export interface upiServer extends UntypedServiceImplementation {
|
|
|
235
245
|
getAllMandates: handleUnaryCall<getAllMandatesRequest, getAllMandatesResponse>;
|
|
236
246
|
getMandateDetails: handleUnaryCall<getMandatesDetailsRequest, getMandateDetailsReponse>;
|
|
237
247
|
getUpiNumbers: handleUnaryCall<getUpiNumbersRequest, getUpiNumbersResponse>;
|
|
248
|
+
initiateMandateAction: handleUnaryCall<initiateMandateActionRequest, initiateMandateActionResponse>;
|
|
238
249
|
}
|
|
239
250
|
export interface upiClient extends Client {
|
|
240
251
|
getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
|
|
@@ -300,6 +311,9 @@ export interface upiClient extends Client {
|
|
|
300
311
|
getUpiNumbers(request: getUpiNumbersRequest, callback: (error: ServiceError | null, response: getUpiNumbersResponse) => void): ClientUnaryCall;
|
|
301
312
|
getUpiNumbers(request: getUpiNumbersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getUpiNumbersResponse) => void): ClientUnaryCall;
|
|
302
313
|
getUpiNumbers(request: getUpiNumbersRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getUpiNumbersResponse) => void): ClientUnaryCall;
|
|
314
|
+
initiateMandateAction(request: initiateMandateActionRequest, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
315
|
+
initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
316
|
+
initiateMandateAction(request: initiateMandateActionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiateMandateActionResponse) => void): ClientUnaryCall;
|
|
303
317
|
}
|
|
304
318
|
export declare const upiClient: {
|
|
305
319
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
|
package/ts/upi.js
CHANGED
|
@@ -22,6 +22,7 @@ const getprofile_1 = require("./upi/getprofile");
|
|
|
22
22
|
const getrecentcontacts_1 = require("./upi/getrecentcontacts");
|
|
23
23
|
const gettransactions_1 = require("./upi/gettransactions");
|
|
24
24
|
const getupinumbers_1 = require("./upi/getupinumbers");
|
|
25
|
+
const initiatemandateaction_1 = require("./upi/initiatemandateaction");
|
|
25
26
|
const initiatetransaction_1 = require("./upi/initiatetransaction");
|
|
26
27
|
const listblockedvpa_1 = require("./upi/listblockedvpa");
|
|
27
28
|
const unblockvpa_1 = require("./upi/unblockvpa");
|
|
@@ -220,5 +221,14 @@ exports.upiService = {
|
|
|
220
221
|
responseSerialize: (value) => Buffer.from(getupinumbers_1.getUpiNumbersResponse.encode(value).finish()),
|
|
221
222
|
responseDeserialize: (value) => getupinumbers_1.getUpiNumbersResponse.decode(value),
|
|
222
223
|
},
|
|
224
|
+
initiateMandateAction: {
|
|
225
|
+
path: "/service.upi/initiateMandateAction",
|
|
226
|
+
requestStream: false,
|
|
227
|
+
responseStream: false,
|
|
228
|
+
requestSerialize: (value) => Buffer.from(initiatemandateaction_1.initiateMandateActionRequest.encode(value).finish()),
|
|
229
|
+
requestDeserialize: (value) => initiatemandateaction_1.initiateMandateActionRequest.decode(value),
|
|
230
|
+
responseSerialize: (value) => Buffer.from(initiatemandateaction_1.initiateMandateActionResponse.encode(value).finish()),
|
|
231
|
+
responseDeserialize: (value) => initiatemandateaction_1.initiateMandateActionResponse.decode(value),
|
|
232
|
+
},
|
|
223
233
|
};
|
|
224
234
|
exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");
|