@stashfin/grpc 1.2.454 → 1.2.456

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.456",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,9 +1,23 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "upi.updateDeviceLinking";
3
3
  export interface updateDeviceLinkingRequest {
4
+ acc_number: string;
5
+ acc_ref_number: string;
6
+ acc_type: string;
7
+ acc_name: string;
8
+ aeba?: string | undefined;
9
+ mbeba?: string | undefined;
10
+ ifsc: string;
11
+ vpa?: string | undefined;
12
+ mmid?: string | undefined;
13
+ default_credit: string;
14
+ default_debit: string;
4
15
  status: string;
16
+ is_primary?: string | undefined;
17
+ is_active?: string | undefined;
5
18
  }
6
19
  export interface updateDeviceLinkingResponse {
20
+ acc_number: string;
7
21
  message: string;
8
22
  }
9
23
  export declare const updateDeviceLinkingRequest: {
@@ -2,7 +2,7 @@
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 };
@@ -13,12 +13,66 @@ exports.updateDeviceLinkingResponse = exports.updateDeviceLinkingRequest = expor
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.updateDeviceLinking";
15
15
  function createBaseupdateDeviceLinkingRequest() {
16
- return { status: "" };
16
+ return {
17
+ acc_number: "",
18
+ acc_ref_number: "",
19
+ acc_type: "",
20
+ acc_name: "",
21
+ aeba: undefined,
22
+ mbeba: undefined,
23
+ ifsc: "",
24
+ vpa: undefined,
25
+ mmid: undefined,
26
+ default_credit: "",
27
+ default_debit: "",
28
+ status: "",
29
+ is_primary: undefined,
30
+ is_active: undefined,
31
+ };
17
32
  }
18
33
  exports.updateDeviceLinkingRequest = {
19
34
  encode(message, writer = minimal_1.default.Writer.create()) {
35
+ if (message.acc_number !== "") {
36
+ writer.uint32(10).string(message.acc_number);
37
+ }
38
+ if (message.acc_ref_number !== "") {
39
+ writer.uint32(18).string(message.acc_ref_number);
40
+ }
41
+ if (message.acc_type !== "") {
42
+ writer.uint32(26).string(message.acc_type);
43
+ }
44
+ if (message.acc_name !== "") {
45
+ writer.uint32(34).string(message.acc_name);
46
+ }
47
+ if (message.aeba !== undefined) {
48
+ writer.uint32(42).string(message.aeba);
49
+ }
50
+ if (message.mbeba !== undefined) {
51
+ writer.uint32(50).string(message.mbeba);
52
+ }
53
+ if (message.ifsc !== "") {
54
+ writer.uint32(58).string(message.ifsc);
55
+ }
56
+ if (message.vpa !== undefined) {
57
+ writer.uint32(66).string(message.vpa);
58
+ }
59
+ if (message.mmid !== undefined) {
60
+ writer.uint32(74).string(message.mmid);
61
+ }
62
+ if (message.default_credit !== "") {
63
+ writer.uint32(82).string(message.default_credit);
64
+ }
65
+ if (message.default_debit !== "") {
66
+ writer.uint32(90).string(message.default_debit);
67
+ }
20
68
  if (message.status !== "") {
21
- writer.uint32(10).string(message.status);
69
+ writer.uint32(98).string(message.status);
70
+ }
71
+ if (message.is_primary !== undefined) {
72
+ writer.uint32(106).string(message.is_primary);
73
+ }
74
+ if (message.is_active !== undefined) {
75
+ writer.uint32(114).string(message.is_active);
22
76
  }
23
77
  return writer;
24
78
  },
@@ -33,8 +87,86 @@ exports.updateDeviceLinkingRequest = {
33
87
  if (tag !== 10) {
34
88
  break;
35
89
  }
90
+ message.acc_number = reader.string();
91
+ continue;
92
+ case 2:
93
+ if (tag !== 18) {
94
+ break;
95
+ }
96
+ message.acc_ref_number = reader.string();
97
+ continue;
98
+ case 3:
99
+ if (tag !== 26) {
100
+ break;
101
+ }
102
+ message.acc_type = reader.string();
103
+ continue;
104
+ case 4:
105
+ if (tag !== 34) {
106
+ break;
107
+ }
108
+ message.acc_name = reader.string();
109
+ continue;
110
+ case 5:
111
+ if (tag !== 42) {
112
+ break;
113
+ }
114
+ message.aeba = reader.string();
115
+ continue;
116
+ case 6:
117
+ if (tag !== 50) {
118
+ break;
119
+ }
120
+ message.mbeba = reader.string();
121
+ continue;
122
+ case 7:
123
+ if (tag !== 58) {
124
+ break;
125
+ }
126
+ message.ifsc = reader.string();
127
+ continue;
128
+ case 8:
129
+ if (tag !== 66) {
130
+ break;
131
+ }
132
+ message.vpa = reader.string();
133
+ continue;
134
+ case 9:
135
+ if (tag !== 74) {
136
+ break;
137
+ }
138
+ message.mmid = reader.string();
139
+ continue;
140
+ case 10:
141
+ if (tag !== 82) {
142
+ break;
143
+ }
144
+ message.default_credit = reader.string();
145
+ continue;
146
+ case 11:
147
+ if (tag !== 90) {
148
+ break;
149
+ }
150
+ message.default_debit = reader.string();
151
+ continue;
152
+ case 12:
153
+ if (tag !== 98) {
154
+ break;
155
+ }
36
156
  message.status = reader.string();
37
157
  continue;
158
+ case 13:
159
+ if (tag !== 106) {
160
+ break;
161
+ }
162
+ message.is_primary = reader.string();
163
+ continue;
164
+ case 14:
165
+ if (tag !== 114) {
166
+ break;
167
+ }
168
+ message.is_active = reader.string();
169
+ continue;
38
170
  }
39
171
  if ((tag & 7) === 4 || tag === 0) {
40
172
  break;
@@ -44,13 +176,67 @@ exports.updateDeviceLinkingRequest = {
44
176
  return message;
45
177
  },
46
178
  fromJSON(object) {
47
- return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
179
+ return {
180
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
181
+ acc_ref_number: isSet(object.acc_ref_number) ? globalThis.String(object.acc_ref_number) : "",
182
+ acc_type: isSet(object.acc_type) ? globalThis.String(object.acc_type) : "",
183
+ acc_name: isSet(object.acc_name) ? globalThis.String(object.acc_name) : "",
184
+ aeba: isSet(object.aeba) ? globalThis.String(object.aeba) : undefined,
185
+ mbeba: isSet(object.mbeba) ? globalThis.String(object.mbeba) : undefined,
186
+ ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : "",
187
+ vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
188
+ mmid: isSet(object.mmid) ? globalThis.String(object.mmid) : undefined,
189
+ default_credit: isSet(object.default_credit) ? globalThis.String(object.default_credit) : "",
190
+ default_debit: isSet(object.default_debit) ? globalThis.String(object.default_debit) : "",
191
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
192
+ is_primary: isSet(object.is_primary) ? globalThis.String(object.is_primary) : undefined,
193
+ is_active: isSet(object.is_active) ? globalThis.String(object.is_active) : undefined,
194
+ };
48
195
  },
49
196
  toJSON(message) {
50
197
  const obj = {};
198
+ if (message.acc_number !== "") {
199
+ obj.acc_number = message.acc_number;
200
+ }
201
+ if (message.acc_ref_number !== "") {
202
+ obj.acc_ref_number = message.acc_ref_number;
203
+ }
204
+ if (message.acc_type !== "") {
205
+ obj.acc_type = message.acc_type;
206
+ }
207
+ if (message.acc_name !== "") {
208
+ obj.acc_name = message.acc_name;
209
+ }
210
+ if (message.aeba !== undefined) {
211
+ obj.aeba = message.aeba;
212
+ }
213
+ if (message.mbeba !== undefined) {
214
+ obj.mbeba = message.mbeba;
215
+ }
216
+ if (message.ifsc !== "") {
217
+ obj.ifsc = message.ifsc;
218
+ }
219
+ if (message.vpa !== undefined) {
220
+ obj.vpa = message.vpa;
221
+ }
222
+ if (message.mmid !== undefined) {
223
+ obj.mmid = message.mmid;
224
+ }
225
+ if (message.default_credit !== "") {
226
+ obj.default_credit = message.default_credit;
227
+ }
228
+ if (message.default_debit !== "") {
229
+ obj.default_debit = message.default_debit;
230
+ }
51
231
  if (message.status !== "") {
52
232
  obj.status = message.status;
53
233
  }
234
+ if (message.is_primary !== undefined) {
235
+ obj.is_primary = message.is_primary;
236
+ }
237
+ if (message.is_active !== undefined) {
238
+ obj.is_active = message.is_active;
239
+ }
54
240
  return obj;
55
241
  },
56
242
  create(base) {
@@ -58,17 +244,33 @@ exports.updateDeviceLinkingRequest = {
58
244
  },
59
245
  fromPartial(object) {
60
246
  const message = createBaseupdateDeviceLinkingRequest();
247
+ message.acc_number = object.acc_number ?? "";
248
+ message.acc_ref_number = object.acc_ref_number ?? "";
249
+ message.acc_type = object.acc_type ?? "";
250
+ message.acc_name = object.acc_name ?? "";
251
+ message.aeba = object.aeba ?? undefined;
252
+ message.mbeba = object.mbeba ?? undefined;
253
+ message.ifsc = object.ifsc ?? "";
254
+ message.vpa = object.vpa ?? undefined;
255
+ message.mmid = object.mmid ?? undefined;
256
+ message.default_credit = object.default_credit ?? "";
257
+ message.default_debit = object.default_debit ?? "";
61
258
  message.status = object.status ?? "";
259
+ message.is_primary = object.is_primary ?? undefined;
260
+ message.is_active = object.is_active ?? undefined;
62
261
  return message;
63
262
  },
64
263
  };
65
264
  function createBaseupdateDeviceLinkingResponse() {
66
- return { message: "" };
265
+ return { acc_number: "", message: "" };
67
266
  }
68
267
  exports.updateDeviceLinkingResponse = {
69
268
  encode(message, writer = minimal_1.default.Writer.create()) {
269
+ if (message.acc_number !== "") {
270
+ writer.uint32(10).string(message.acc_number);
271
+ }
70
272
  if (message.message !== "") {
71
- writer.uint32(10).string(message.message);
273
+ writer.uint32(18).string(message.message);
72
274
  }
73
275
  return writer;
74
276
  },
@@ -83,6 +285,12 @@ exports.updateDeviceLinkingResponse = {
83
285
  if (tag !== 10) {
84
286
  break;
85
287
  }
288
+ message.acc_number = reader.string();
289
+ continue;
290
+ case 2:
291
+ if (tag !== 18) {
292
+ break;
293
+ }
86
294
  message.message = reader.string();
87
295
  continue;
88
296
  }
@@ -94,10 +302,16 @@ exports.updateDeviceLinkingResponse = {
94
302
  return message;
95
303
  },
96
304
  fromJSON(object) {
97
- return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
305
+ return {
306
+ acc_number: isSet(object.acc_number) ? globalThis.String(object.acc_number) : "",
307
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
308
+ };
98
309
  },
99
310
  toJSON(message) {
100
311
  const obj = {};
312
+ if (message.acc_number !== "") {
313
+ obj.acc_number = message.acc_number;
314
+ }
101
315
  if (message.message !== "") {
102
316
  obj.message = message.message;
103
317
  }
@@ -108,6 +322,7 @@ exports.updateDeviceLinkingResponse = {
108
322
  },
109
323
  fromPartial(object) {
110
324
  const message = createBaseupdateDeviceLinkingResponse();
325
+ message.acc_number = object.acc_number ?? "";
111
326
  message.message = object.message ?? "";
112
327
  return message;
113
328
  },
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,