@stashfin/grpc 1.2.454 → 1.2.455

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.454",
3
+ "version": "1.2.455",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,9 +1,25 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "upi.updateDeviceLinking";
3
3
  export interface updateDeviceLinkingRequest {
4
+ account: AccountInfo | undefined;
5
+ }
6
+ export interface AccountInfo {
7
+ acc_number: string;
8
+ acc_ref_number: string;
9
+ acc_type: string;
10
+ acc_name: string;
11
+ aeba?: string | undefined;
12
+ mbeba?: string | undefined;
13
+ ifsc: string;
14
+ vpa: string;
15
+ default_credit: string;
16
+ default_debit: string;
4
17
  status: string;
18
+ is_primary?: string | undefined;
19
+ is_active?: string | undefined;
5
20
  }
6
21
  export interface updateDeviceLinkingResponse {
22
+ acc_number: string;
7
23
  message: string;
8
24
  }
9
25
  export declare const updateDeviceLinkingRequest: {
@@ -14,6 +30,14 @@ export declare const updateDeviceLinkingRequest: {
14
30
  create<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(base?: I): updateDeviceLinkingRequest;
15
31
  fromPartial<I extends Exact<DeepPartial<updateDeviceLinkingRequest>, I>>(object: I): updateDeviceLinkingRequest;
16
32
  };
33
+ export declare const AccountInfo: {
34
+ encode(message: AccountInfo, writer?: _m0.Writer): _m0.Writer;
35
+ decode(input: _m0.Reader | Uint8Array, length?: number): AccountInfo;
36
+ fromJSON(object: any): AccountInfo;
37
+ toJSON(message: AccountInfo): unknown;
38
+ create<I extends Exact<DeepPartial<AccountInfo>, I>>(base?: I): AccountInfo;
39
+ fromPartial<I extends Exact<DeepPartial<AccountInfo>, I>>(object: I): AccountInfo;
40
+ };
17
41
  export declare const updateDeviceLinkingResponse: {
18
42
  encode(message: updateDeviceLinkingResponse, writer?: _m0.Writer): _m0.Writer;
19
43
  decode(input: _m0.Reader | Uint8Array, length?: number): updateDeviceLinkingResponse;
@@ -2,23 +2,23 @@
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v1.181.0
5
- // protoc v5.28.3
5
+ // protoc v5.29.0
6
6
  // source: upi/updatedevicelinking.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.updateDeviceLinkingResponse = exports.updateDeviceLinkingRequest = exports.protobufPackage = void 0;
11
+ exports.updateDeviceLinkingResponse = exports.AccountInfo = exports.updateDeviceLinkingRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.updateDeviceLinking";
15
15
  function createBaseupdateDeviceLinkingRequest() {
16
- return { status: "" };
16
+ return { account: undefined };
17
17
  }
18
18
  exports.updateDeviceLinkingRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.status !== "") {
21
- writer.uint32(10).string(message.status);
20
+ if (message.account !== undefined) {
21
+ exports.AccountInfo.encode(message.account, writer.uint32(10).fork()).ldelim();
22
22
  }
23
23
  return writer;
24
24
  },
@@ -33,8 +33,182 @@ exports.updateDeviceLinkingRequest = {
33
33
  if (tag !== 10) {
34
34
  break;
35
35
  }
36
+ message.account = exports.AccountInfo.decode(reader, reader.uint32());
37
+ continue;
38
+ }
39
+ if ((tag & 7) === 4 || tag === 0) {
40
+ break;
41
+ }
42
+ reader.skipType(tag & 7);
43
+ }
44
+ return message;
45
+ },
46
+ fromJSON(object) {
47
+ return { account: isSet(object.account) ? exports.AccountInfo.fromJSON(object.account) : undefined };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.account !== undefined) {
52
+ obj.account = exports.AccountInfo.toJSON(message.account);
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.updateDeviceLinkingRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseupdateDeviceLinkingRequest();
61
+ message.account = (object.account !== undefined && object.account !== null)
62
+ ? exports.AccountInfo.fromPartial(object.account)
63
+ : undefined;
64
+ return message;
65
+ },
66
+ };
67
+ function createBaseAccountInfo() {
68
+ return {
69
+ acc_number: "",
70
+ acc_ref_number: "",
71
+ acc_type: "",
72
+ acc_name: "",
73
+ aeba: undefined,
74
+ mbeba: undefined,
75
+ ifsc: "",
76
+ vpa: "",
77
+ default_credit: "",
78
+ default_debit: "",
79
+ status: "",
80
+ is_primary: undefined,
81
+ is_active: undefined,
82
+ };
83
+ }
84
+ exports.AccountInfo = {
85
+ encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.acc_number !== "") {
87
+ writer.uint32(10).string(message.acc_number);
88
+ }
89
+ if (message.acc_ref_number !== "") {
90
+ writer.uint32(18).string(message.acc_ref_number);
91
+ }
92
+ if (message.acc_type !== "") {
93
+ writer.uint32(26).string(message.acc_type);
94
+ }
95
+ if (message.acc_name !== "") {
96
+ writer.uint32(34).string(message.acc_name);
97
+ }
98
+ if (message.aeba !== undefined) {
99
+ writer.uint32(42).string(message.aeba);
100
+ }
101
+ if (message.mbeba !== undefined) {
102
+ writer.uint32(50).string(message.mbeba);
103
+ }
104
+ if (message.ifsc !== "") {
105
+ writer.uint32(58).string(message.ifsc);
106
+ }
107
+ if (message.vpa !== "") {
108
+ writer.uint32(66).string(message.vpa);
109
+ }
110
+ if (message.default_credit !== "") {
111
+ writer.uint32(74).string(message.default_credit);
112
+ }
113
+ if (message.default_debit !== "") {
114
+ writer.uint32(82).string(message.default_debit);
115
+ }
116
+ if (message.status !== "") {
117
+ writer.uint32(90).string(message.status);
118
+ }
119
+ if (message.is_primary !== undefined) {
120
+ writer.uint32(98).string(message.is_primary);
121
+ }
122
+ if (message.is_active !== undefined) {
123
+ writer.uint32(106).string(message.is_active);
124
+ }
125
+ return writer;
126
+ },
127
+ decode(input, length) {
128
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
129
+ let end = length === undefined ? reader.len : reader.pos + length;
130
+ const message = createBaseAccountInfo();
131
+ while (reader.pos < end) {
132
+ const tag = reader.uint32();
133
+ switch (tag >>> 3) {
134
+ case 1:
135
+ if (tag !== 10) {
136
+ break;
137
+ }
138
+ message.acc_number = reader.string();
139
+ continue;
140
+ case 2:
141
+ if (tag !== 18) {
142
+ break;
143
+ }
144
+ message.acc_ref_number = reader.string();
145
+ continue;
146
+ case 3:
147
+ if (tag !== 26) {
148
+ break;
149
+ }
150
+ message.acc_type = reader.string();
151
+ continue;
152
+ case 4:
153
+ if (tag !== 34) {
154
+ break;
155
+ }
156
+ message.acc_name = reader.string();
157
+ continue;
158
+ case 5:
159
+ if (tag !== 42) {
160
+ break;
161
+ }
162
+ message.aeba = reader.string();
163
+ continue;
164
+ case 6:
165
+ if (tag !== 50) {
166
+ break;
167
+ }
168
+ message.mbeba = reader.string();
169
+ continue;
170
+ case 7:
171
+ if (tag !== 58) {
172
+ break;
173
+ }
174
+ message.ifsc = reader.string();
175
+ continue;
176
+ case 8:
177
+ if (tag !== 66) {
178
+ break;
179
+ }
180
+ message.vpa = reader.string();
181
+ continue;
182
+ case 9:
183
+ if (tag !== 74) {
184
+ break;
185
+ }
186
+ message.default_credit = reader.string();
187
+ continue;
188
+ case 10:
189
+ if (tag !== 82) {
190
+ break;
191
+ }
192
+ message.default_debit = reader.string();
193
+ continue;
194
+ case 11:
195
+ if (tag !== 90) {
196
+ break;
197
+ }
36
198
  message.status = reader.string();
37
199
  continue;
200
+ case 12:
201
+ if (tag !== 98) {
202
+ break;
203
+ }
204
+ message.is_primary = reader.string();
205
+ continue;
206
+ case 13:
207
+ if (tag !== 106) {
208
+ break;
209
+ }
210
+ message.is_active = reader.string();
211
+ continue;
38
212
  }
39
213
  if ((tag & 7) === 4 || tag === 0) {
40
214
  break;
@@ -44,31 +218,96 @@ exports.updateDeviceLinkingRequest = {
44
218
  return message;
45
219
  },
46
220
  fromJSON(object) {
47
- return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
221
+ return {
222
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
223
+ acc_ref_number: isSet(object.acc_ref_number) ? globalThis.String(object.acc_ref_number) : "",
224
+ acc_type: isSet(object.acc_type) ? globalThis.String(object.acc_type) : "",
225
+ acc_name: isSet(object.acc_name) ? globalThis.String(object.acc_name) : "",
226
+ aeba: isSet(object.aeba) ? globalThis.String(object.aeba) : undefined,
227
+ mbeba: isSet(object.mbeba) ? globalThis.String(object.mbeba) : undefined,
228
+ ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : "",
229
+ vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : "",
230
+ default_credit: isSet(object.default_credit) ? globalThis.String(object.default_credit) : "",
231
+ default_debit: isSet(object.default_debit) ? globalThis.String(object.default_debit) : "",
232
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
233
+ is_primary: isSet(object.is_primary) ? globalThis.String(object.is_primary) : undefined,
234
+ is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : undefined,
235
+ };
48
236
  },
49
237
  toJSON(message) {
50
238
  const obj = {};
239
+ if (message.acc_number !== "") {
240
+ obj.acc_number = message.acc_number;
241
+ }
242
+ if (message.acc_ref_number !== "") {
243
+ obj.acc_ref_number = message.acc_ref_number;
244
+ }
245
+ if (message.acc_type !== "") {
246
+ obj.acc_type = message.acc_type;
247
+ }
248
+ if (message.acc_name !== "") {
249
+ obj.acc_name = message.acc_name;
250
+ }
251
+ if (message.aeba !== undefined) {
252
+ obj.aeba = message.aeba;
253
+ }
254
+ if (message.mbeba !== undefined) {
255
+ obj.mbeba = message.mbeba;
256
+ }
257
+ if (message.ifsc !== "") {
258
+ obj.ifsc = message.ifsc;
259
+ }
260
+ if (message.vpa !== "") {
261
+ obj.vpa = message.vpa;
262
+ }
263
+ if (message.default_credit !== "") {
264
+ obj.default_credit = message.default_credit;
265
+ }
266
+ if (message.default_debit !== "") {
267
+ obj.default_debit = message.default_debit;
268
+ }
51
269
  if (message.status !== "") {
52
270
  obj.status = message.status;
53
271
  }
272
+ if (message.is_primary !== undefined) {
273
+ obj.is_primary = message.is_primary;
274
+ }
275
+ if (message.is_active !== undefined) {
276
+ obj.is_active = message.is_active;
277
+ }
54
278
  return obj;
55
279
  },
56
280
  create(base) {
57
- return exports.updateDeviceLinkingRequest.fromPartial(base ?? {});
281
+ return exports.AccountInfo.fromPartial(base ?? {});
58
282
  },
59
283
  fromPartial(object) {
60
- const message = createBaseupdateDeviceLinkingRequest();
284
+ const message = createBaseAccountInfo();
285
+ message.acc_number = object.acc_number ?? "";
286
+ message.acc_ref_number = object.acc_ref_number ?? "";
287
+ message.acc_type = object.acc_type ?? "";
288
+ message.acc_name = object.acc_name ?? "";
289
+ message.aeba = object.aeba ?? undefined;
290
+ message.mbeba = object.mbeba ?? undefined;
291
+ message.ifsc = object.ifsc ?? "";
292
+ message.vpa = object.vpa ?? "";
293
+ message.default_credit = object.default_credit ?? "";
294
+ message.default_debit = object.default_debit ?? "";
61
295
  message.status = object.status ?? "";
296
+ message.is_primary = object.is_primary ?? undefined;
297
+ message.is_active = object.is_active ?? undefined;
62
298
  return message;
63
299
  },
64
300
  };
65
301
  function createBaseupdateDeviceLinkingResponse() {
66
- return { message: "" };
302
+ return { acc_number: "", message: "" };
67
303
  }
68
304
  exports.updateDeviceLinkingResponse = {
69
305
  encode(message, writer = minimal_1.default.Writer.create()) {
306
+ if (message.acc_number !== "") {
307
+ writer.uint32(10).string(message.acc_number);
308
+ }
70
309
  if (message.message !== "") {
71
- writer.uint32(10).string(message.message);
310
+ writer.uint32(18).string(message.message);
72
311
  }
73
312
  return writer;
74
313
  },
@@ -83,6 +322,12 @@ exports.updateDeviceLinkingResponse = {
83
322
  if (tag !== 10) {
84
323
  break;
85
324
  }
325
+ message.acc_number = reader.string();
326
+ continue;
327
+ case 2:
328
+ if (tag !== 18) {
329
+ break;
330
+ }
86
331
  message.message = reader.string();
87
332
  continue;
88
333
  }
@@ -94,10 +339,16 @@ exports.updateDeviceLinkingResponse = {
94
339
  return message;
95
340
  },
96
341
  fromJSON(object) {
97
- return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
342
+ return {
343
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
344
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
345
+ };
98
346
  },
99
347
  toJSON(message) {
100
348
  const obj = {};
349
+ if (message.acc_number !== "") {
350
+ obj.acc_number = message.acc_number;
351
+ }
101
352
  if (message.message !== "") {
102
353
  obj.message = message.message;
103
354
  }
@@ -108,6 +359,7 @@ exports.updateDeviceLinkingResponse = {
108
359
  },
109
360
  fromPartial(object) {
110
361
  const message = createBaseupdateDeviceLinkingResponse();
362
+ message.acc_number = object.acc_number ?? "";
111
363
  message.message = object.message ?? "";
112
364
  return message;
113
365
  },
package/ts/upi.d.ts CHANGED
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
2
2
  import { getAvailableVPARequest, getAvailableVPAResponse } from "./upi/getavailablevpa";
3
3
  import { getListedAccountProvidersRequest, getListedAccountProvidersResponse } from "./upi/getlistedaccountproviders";
4
4
  import { updateDeviceBindingRequest, updateDeviceBindingResponse } from "./upi/updatedevicebinding";
5
+ import { updateDeviceLinkingRequest, updateDeviceLinkingResponse } from "./upi/updatedevicelinking";
5
6
  export declare const protobufPackage = "service";
6
7
  export type upiService = typeof upiService;
7
8
  export declare const upiService: {
@@ -23,6 +24,15 @@ export declare const upiService: {
23
24
  readonly responseSerialize: (value: updateDeviceBindingResponse) => Buffer;
24
25
  readonly responseDeserialize: (value: Buffer) => updateDeviceBindingResponse;
25
26
  };
27
+ readonly updateDeviceLinking: {
28
+ readonly path: "/service.upi/updateDeviceLinking";
29
+ readonly requestStream: false;
30
+ readonly responseStream: false;
31
+ readonly requestSerialize: (value: updateDeviceLinkingRequest) => Buffer;
32
+ readonly requestDeserialize: (value: Buffer) => updateDeviceLinkingRequest;
33
+ readonly responseSerialize: (value: updateDeviceLinkingResponse) => Buffer;
34
+ readonly responseDeserialize: (value: Buffer) => updateDeviceLinkingResponse;
35
+ };
26
36
  readonly getAvailableVpa: {
27
37
  readonly path: "/service.upi/getAvailableVPA";
28
38
  readonly requestStream: false;
@@ -36,6 +46,7 @@ export declare const upiService: {
36
46
  export interface upiServer extends UntypedServiceImplementation {
37
47
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
38
48
  updateDeviceBinding: handleUnaryCall<updateDeviceBindingRequest, updateDeviceBindingResponse>;
49
+ updateDeviceLinking: handleUnaryCall<updateDeviceLinkingRequest, updateDeviceLinkingResponse>;
39
50
  getAvailableVpa: handleUnaryCall<getAvailableVPARequest, getAvailableVPAResponse>;
40
51
  }
41
52
  export interface upiClient extends Client {
@@ -45,6 +56,9 @@ export interface upiClient extends Client {
45
56
  updateDeviceBinding(request: updateDeviceBindingRequest, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
46
57
  updateDeviceBinding(request: updateDeviceBindingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
47
58
  updateDeviceBinding(request: updateDeviceBindingRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDeviceBindingResponse) => void): ClientUnaryCall;
59
+ updateDeviceLinking(request: updateDeviceLinkingRequest, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
60
+ updateDeviceLinking(request: updateDeviceLinkingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
61
+ updateDeviceLinking(request: updateDeviceLinkingRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDeviceLinkingResponse) => void): ClientUnaryCall;
48
62
  getAvailableVpa(request: getAvailableVPARequest, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
49
63
  getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
50
64
  getAvailableVpa(request: getAvailableVPARequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAvailableVPAResponse) => void): ClientUnaryCall;
package/ts/upi.js CHANGED
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
11
11
  const getavailablevpa_1 = require("./upi/getavailablevpa");
12
12
  const getlistedaccountproviders_1 = require("./upi/getlistedaccountproviders");
13
13
  const updatedevicebinding_1 = require("./upi/updatedevicebinding");
14
+ const updatedevicelinking_1 = require("./upi/updatedevicelinking");
14
15
  exports.protobufPackage = "service";
15
16
  exports.upiService = {
16
17
  getListedAccountProviders: {
@@ -31,6 +32,15 @@ exports.upiService = {
31
32
  responseSerialize: (value) => Buffer.from(updatedevicebinding_1.updateDeviceBindingResponse.encode(value).finish()),
32
33
  responseDeserialize: (value) => updatedevicebinding_1.updateDeviceBindingResponse.decode(value),
33
34
  },
35
+ updateDeviceLinking: {
36
+ path: "/service.upi/updateDeviceLinking",
37
+ requestStream: false,
38
+ responseStream: false,
39
+ requestSerialize: (value) => Buffer.from(updatedevicelinking_1.updateDeviceLinkingRequest.encode(value).finish()),
40
+ requestDeserialize: (value) => updatedevicelinking_1.updateDeviceLinkingRequest.decode(value),
41
+ responseSerialize: (value) => Buffer.from(updatedevicelinking_1.updateDeviceLinkingResponse.encode(value).finish()),
42
+ responseDeserialize: (value) => updatedevicelinking_1.updateDeviceLinkingResponse.decode(value),
43
+ },
34
44
  getAvailableVpa: {
35
45
  path: "/service.upi/getAvailableVPA",
36
46
  requestStream: false,