@stashfin/grpc 1.2.497 → 1.2.499

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.497",
3
+ "version": "1.2.499",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -56,6 +56,10 @@ export interface Account {
56
56
  account?: string | undefined;
57
57
  status?: string | undefined;
58
58
  onboarding_type?: string | undefined;
59
+ upi_lite_lrn?: string | undefined;
60
+ upi_lite_status?: string | undefined;
61
+ channel_code?: string | undefined;
62
+ mobile?: string | undefined;
59
63
  }
60
64
  /** CredsAllowed nested message */
61
65
  export interface CredsAllowedList {
@@ -549,6 +549,10 @@ function createBaseAccount() {
549
549
  account: undefined,
550
550
  status: undefined,
551
551
  onboarding_type: undefined,
552
+ upi_lite_lrn: undefined,
553
+ upi_lite_status: undefined,
554
+ channel_code: undefined,
555
+ mobile: undefined,
552
556
  };
553
557
  }
554
558
  exports.Account = {
@@ -616,6 +620,18 @@ exports.Account = {
616
620
  if (message.onboarding_type !== undefined) {
617
621
  writer.uint32(170).string(message.onboarding_type);
618
622
  }
623
+ if (message.upi_lite_lrn !== undefined) {
624
+ writer.uint32(178).string(message.upi_lite_lrn);
625
+ }
626
+ if (message.upi_lite_status !== undefined) {
627
+ writer.uint32(186).string(message.upi_lite_status);
628
+ }
629
+ if (message.channel_code !== undefined) {
630
+ writer.uint32(194).string(message.channel_code);
631
+ }
632
+ if (message.mobile !== undefined) {
633
+ writer.uint32(202).string(message.mobile);
634
+ }
619
635
  return writer;
620
636
  },
621
637
  decode(input, length) {
@@ -751,6 +767,30 @@ exports.Account = {
751
767
  }
752
768
  message.onboarding_type = reader.string();
753
769
  continue;
770
+ case 22:
771
+ if (tag !== 178) {
772
+ break;
773
+ }
774
+ message.upi_lite_lrn = reader.string();
775
+ continue;
776
+ case 23:
777
+ if (tag !== 186) {
778
+ break;
779
+ }
780
+ message.upi_lite_status = reader.string();
781
+ continue;
782
+ case 24:
783
+ if (tag !== 194) {
784
+ break;
785
+ }
786
+ message.channel_code = reader.string();
787
+ continue;
788
+ case 25:
789
+ if (tag !== 202) {
790
+ break;
791
+ }
792
+ message.mobile = reader.string();
793
+ continue;
754
794
  }
755
795
  if ((tag & 7) === 4 || tag === 0) {
756
796
  break;
@@ -782,6 +822,10 @@ exports.Account = {
782
822
  account: isSet(object.account) ? globalThis.String(object.account) : undefined,
783
823
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
784
824
  onboarding_type: isSet(object.onboarding_type) ? globalThis.String(object.onboarding_type) : undefined,
825
+ upi_lite_lrn: isSet(object.upi_lite_lrn) ? globalThis.String(object.upi_lite_lrn) : undefined,
826
+ upi_lite_status: isSet(object.upi_lite_status) ? globalThis.String(object.upi_lite_status) : undefined,
827
+ channel_code: isSet(object.channel_code) ? globalThis.String(object.channel_code) : undefined,
828
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
785
829
  };
786
830
  },
787
831
  toJSON(message) {
@@ -849,6 +893,18 @@ exports.Account = {
849
893
  if (message.onboarding_type !== undefined) {
850
894
  obj.onboarding_type = message.onboarding_type;
851
895
  }
896
+ if (message.upi_lite_lrn !== undefined) {
897
+ obj.upi_lite_lrn = message.upi_lite_lrn;
898
+ }
899
+ if (message.upi_lite_status !== undefined) {
900
+ obj.upi_lite_status = message.upi_lite_status;
901
+ }
902
+ if (message.channel_code !== undefined) {
903
+ obj.channel_code = message.channel_code;
904
+ }
905
+ if (message.mobile !== undefined) {
906
+ obj.mobile = message.mobile;
907
+ }
852
908
  return obj;
853
909
  },
854
910
  create(base) {
@@ -879,6 +935,10 @@ exports.Account = {
879
935
  message.account = object.account ?? undefined;
880
936
  message.status = object.status ?? undefined;
881
937
  message.onboarding_type = object.onboarding_type ?? undefined;
938
+ message.upi_lite_lrn = object.upi_lite_lrn ?? undefined;
939
+ message.upi_lite_status = object.upi_lite_status ?? undefined;
940
+ message.channel_code = object.channel_code ?? undefined;
941
+ message.mobile = object.mobile ?? undefined;
882
942
  return message;
883
943
  },
884
944
  };
@@ -0,0 +1,54 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "upi.upiNumberOperations";
3
+ export interface upiNumberOperationsRequest {
4
+ vpa: string;
5
+ upi_number: string;
6
+ operation: string;
7
+ profile_id: string;
8
+ device_id: string;
9
+ mobile: string;
10
+ user_consent: string;
11
+ }
12
+ export interface Data {
13
+ upi_number: string;
14
+ }
15
+ export interface upiNumberOperationsResponse {
16
+ status: string;
17
+ message: string;
18
+ data?: Data | undefined;
19
+ }
20
+ export declare const upiNumberOperationsRequest: {
21
+ encode(message: upiNumberOperationsRequest, writer?: _m0.Writer): _m0.Writer;
22
+ decode(input: _m0.Reader | Uint8Array, length?: number): upiNumberOperationsRequest;
23
+ fromJSON(object: any): upiNumberOperationsRequest;
24
+ toJSON(message: upiNumberOperationsRequest): unknown;
25
+ create<I extends Exact<DeepPartial<upiNumberOperationsRequest>, I>>(base?: I): upiNumberOperationsRequest;
26
+ fromPartial<I extends Exact<DeepPartial<upiNumberOperationsRequest>, I>>(object: I): upiNumberOperationsRequest;
27
+ };
28
+ export declare const Data: {
29
+ encode(message: Data, writer?: _m0.Writer): _m0.Writer;
30
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data;
31
+ fromJSON(object: any): Data;
32
+ toJSON(message: Data): unknown;
33
+ create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
34
+ fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
35
+ };
36
+ export declare const upiNumberOperationsResponse: {
37
+ encode(message: upiNumberOperationsResponse, writer?: _m0.Writer): _m0.Writer;
38
+ decode(input: _m0.Reader | Uint8Array, length?: number): upiNumberOperationsResponse;
39
+ fromJSON(object: any): upiNumberOperationsResponse;
40
+ toJSON(message: upiNumberOperationsResponse): unknown;
41
+ create<I extends Exact<DeepPartial<upiNumberOperationsResponse>, I>>(base?: I): upiNumberOperationsResponse;
42
+ fromPartial<I extends Exact<DeepPartial<upiNumberOperationsResponse>, I>>(object: I): upiNumberOperationsResponse;
43
+ };
44
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
+ 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 {} ? {
46
+ [K in keyof T]?: DeepPartial<T[K]>;
47
+ } : Partial<T>;
48
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
49
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
50
+ [K in keyof P]: Exact<P[K], I[K]>;
51
+ } & {
52
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
53
+ };
54
+ export {};
@@ -0,0 +1,283 @@
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.1
6
+ // source: upi/upinumberoperations.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.upiNumberOperationsResponse = exports.Data = exports.upiNumberOperationsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "upi.upiNumberOperations";
15
+ function createBaseupiNumberOperationsRequest() {
16
+ return { vpa: "", upi_number: "", operation: "", profile_id: "", device_id: "", mobile: "", user_consent: "" };
17
+ }
18
+ exports.upiNumberOperationsRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.vpa !== "") {
21
+ writer.uint32(10).string(message.vpa);
22
+ }
23
+ if (message.upi_number !== "") {
24
+ writer.uint32(18).string(message.upi_number);
25
+ }
26
+ if (message.operation !== "") {
27
+ writer.uint32(26).string(message.operation);
28
+ }
29
+ if (message.profile_id !== "") {
30
+ writer.uint32(34).string(message.profile_id);
31
+ }
32
+ if (message.device_id !== "") {
33
+ writer.uint32(42).string(message.device_id);
34
+ }
35
+ if (message.mobile !== "") {
36
+ writer.uint32(50).string(message.mobile);
37
+ }
38
+ if (message.user_consent !== "") {
39
+ writer.uint32(58).string(message.user_consent);
40
+ }
41
+ return writer;
42
+ },
43
+ decode(input, length) {
44
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
45
+ let end = length === undefined ? reader.len : reader.pos + length;
46
+ const message = createBaseupiNumberOperationsRequest();
47
+ while (reader.pos < end) {
48
+ const tag = reader.uint32();
49
+ switch (tag >>> 3) {
50
+ case 1:
51
+ if (tag !== 10) {
52
+ break;
53
+ }
54
+ message.vpa = reader.string();
55
+ continue;
56
+ case 2:
57
+ if (tag !== 18) {
58
+ break;
59
+ }
60
+ message.upi_number = reader.string();
61
+ continue;
62
+ case 3:
63
+ if (tag !== 26) {
64
+ break;
65
+ }
66
+ message.operation = reader.string();
67
+ continue;
68
+ case 4:
69
+ if (tag !== 34) {
70
+ break;
71
+ }
72
+ message.profile_id = reader.string();
73
+ continue;
74
+ case 5:
75
+ if (tag !== 42) {
76
+ break;
77
+ }
78
+ message.device_id = reader.string();
79
+ continue;
80
+ case 6:
81
+ if (tag !== 50) {
82
+ break;
83
+ }
84
+ message.mobile = reader.string();
85
+ continue;
86
+ case 7:
87
+ if (tag !== 58) {
88
+ break;
89
+ }
90
+ message.user_consent = reader.string();
91
+ continue;
92
+ }
93
+ if ((tag & 7) === 4 || tag === 0) {
94
+ break;
95
+ }
96
+ reader.skipType(tag & 7);
97
+ }
98
+ return message;
99
+ },
100
+ fromJSON(object) {
101
+ return {
102
+ vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : "",
103
+ upi_number: isSet(object.upi_number) ? globalThis.String(object.upi_number) : "",
104
+ operation: isSet(object.operation) ? globalThis.String(object.operation) : "",
105
+ profile_id: isSet(object.profile_id) ? globalThis.String(object.profile_id) : "",
106
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
107
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
108
+ user_consent: isSet(object.user_consent) ? globalThis.String(object.user_consent) : "",
109
+ };
110
+ },
111
+ toJSON(message) {
112
+ const obj = {};
113
+ if (message.vpa !== "") {
114
+ obj.vpa = message.vpa;
115
+ }
116
+ if (message.upi_number !== "") {
117
+ obj.upi_number = message.upi_number;
118
+ }
119
+ if (message.operation !== "") {
120
+ obj.operation = message.operation;
121
+ }
122
+ if (message.profile_id !== "") {
123
+ obj.profile_id = message.profile_id;
124
+ }
125
+ if (message.device_id !== "") {
126
+ obj.device_id = message.device_id;
127
+ }
128
+ if (message.mobile !== "") {
129
+ obj.mobile = message.mobile;
130
+ }
131
+ if (message.user_consent !== "") {
132
+ obj.user_consent = message.user_consent;
133
+ }
134
+ return obj;
135
+ },
136
+ create(base) {
137
+ return exports.upiNumberOperationsRequest.fromPartial(base ?? {});
138
+ },
139
+ fromPartial(object) {
140
+ const message = createBaseupiNumberOperationsRequest();
141
+ message.vpa = object.vpa ?? "";
142
+ message.upi_number = object.upi_number ?? "";
143
+ message.operation = object.operation ?? "";
144
+ message.profile_id = object.profile_id ?? "";
145
+ message.device_id = object.device_id ?? "";
146
+ message.mobile = object.mobile ?? "";
147
+ message.user_consent = object.user_consent ?? "";
148
+ return message;
149
+ },
150
+ };
151
+ function createBaseData() {
152
+ return { upi_number: "" };
153
+ }
154
+ exports.Data = {
155
+ encode(message, writer = minimal_1.default.Writer.create()) {
156
+ if (message.upi_number !== "") {
157
+ writer.uint32(10).string(message.upi_number);
158
+ }
159
+ return writer;
160
+ },
161
+ decode(input, length) {
162
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
163
+ let end = length === undefined ? reader.len : reader.pos + length;
164
+ const message = createBaseData();
165
+ while (reader.pos < end) {
166
+ const tag = reader.uint32();
167
+ switch (tag >>> 3) {
168
+ case 1:
169
+ if (tag !== 10) {
170
+ break;
171
+ }
172
+ message.upi_number = reader.string();
173
+ continue;
174
+ }
175
+ if ((tag & 7) === 4 || tag === 0) {
176
+ break;
177
+ }
178
+ reader.skipType(tag & 7);
179
+ }
180
+ return message;
181
+ },
182
+ fromJSON(object) {
183
+ return { upi_number: isSet(object.upi_number) ? globalThis.String(object.upi_number) : "" };
184
+ },
185
+ toJSON(message) {
186
+ const obj = {};
187
+ if (message.upi_number !== "") {
188
+ obj.upi_number = message.upi_number;
189
+ }
190
+ return obj;
191
+ },
192
+ create(base) {
193
+ return exports.Data.fromPartial(base ?? {});
194
+ },
195
+ fromPartial(object) {
196
+ const message = createBaseData();
197
+ message.upi_number = object.upi_number ?? "";
198
+ return message;
199
+ },
200
+ };
201
+ function createBaseupiNumberOperationsResponse() {
202
+ return { status: "", message: "", data: undefined };
203
+ }
204
+ exports.upiNumberOperationsResponse = {
205
+ encode(message, writer = minimal_1.default.Writer.create()) {
206
+ if (message.status !== "") {
207
+ writer.uint32(10).string(message.status);
208
+ }
209
+ if (message.message !== "") {
210
+ writer.uint32(18).string(message.message);
211
+ }
212
+ if (message.data !== undefined) {
213
+ exports.Data.encode(message.data, writer.uint32(26).fork()).ldelim();
214
+ }
215
+ return writer;
216
+ },
217
+ decode(input, length) {
218
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
219
+ let end = length === undefined ? reader.len : reader.pos + length;
220
+ const message = createBaseupiNumberOperationsResponse();
221
+ while (reader.pos < end) {
222
+ const tag = reader.uint32();
223
+ switch (tag >>> 3) {
224
+ case 1:
225
+ if (tag !== 10) {
226
+ break;
227
+ }
228
+ message.status = reader.string();
229
+ continue;
230
+ case 2:
231
+ if (tag !== 18) {
232
+ break;
233
+ }
234
+ message.message = reader.string();
235
+ continue;
236
+ case 3:
237
+ if (tag !== 26) {
238
+ break;
239
+ }
240
+ message.data = exports.Data.decode(reader, reader.uint32());
241
+ continue;
242
+ }
243
+ if ((tag & 7) === 4 || tag === 0) {
244
+ break;
245
+ }
246
+ reader.skipType(tag & 7);
247
+ }
248
+ return message;
249
+ },
250
+ fromJSON(object) {
251
+ return {
252
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
253
+ message: isSet(object.message) ? globalThis.String(object.message) : "",
254
+ data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
255
+ };
256
+ },
257
+ toJSON(message) {
258
+ const obj = {};
259
+ if (message.status !== "") {
260
+ obj.status = message.status;
261
+ }
262
+ if (message.message !== "") {
263
+ obj.message = message.message;
264
+ }
265
+ if (message.data !== undefined) {
266
+ obj.data = exports.Data.toJSON(message.data);
267
+ }
268
+ return obj;
269
+ },
270
+ create(base) {
271
+ return exports.upiNumberOperationsResponse.fromPartial(base ?? {});
272
+ },
273
+ fromPartial(object) {
274
+ const message = createBaseupiNumberOperationsResponse();
275
+ message.status = object.status ?? "";
276
+ message.message = object.message ?? "";
277
+ message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
278
+ return message;
279
+ },
280
+ };
281
+ function isSet(value) {
282
+ return value !== null && value !== undefined;
283
+ }
package/ts/upi.d.ts CHANGED
@@ -13,6 +13,7 @@ import { initiateTransactionRequest, initiateTransactionResponse } from "./upi/i
13
13
  import { listBlockedVPARequest, listBlockedVPAResponse } from "./upi/listblockedvpa";
14
14
  import { unblockVPARequest, unblockVPAResponse } from "./upi/unblockvpa";
15
15
  import { updateDeviceBindingRequest, updateDeviceBindingResponse } from "./upi/updatedevicebinding";
16
+ import { upiNumberOperationsRequest, upiNumberOperationsResponse } from "./upi/upinumberoperations";
16
17
  import { validateIFSCRequest, validateIFSCResponse } from "./upi/validateifsc";
17
18
  import { validateVPARequest, validateVPAResponse } from "./upi/validatevpa";
18
19
  export declare const protobufPackage = "service";
@@ -162,6 +163,15 @@ export declare const upiService: {
162
163
  readonly responseSerialize: (value: deregisterProfileResponse) => Buffer;
163
164
  readonly responseDeserialize: (value: Buffer) => deregisterProfileResponse;
164
165
  };
166
+ readonly upiNumberOperations: {
167
+ readonly path: "/service.upi/upiNumberOperations";
168
+ readonly requestStream: false;
169
+ readonly responseStream: false;
170
+ readonly requestSerialize: (value: upiNumberOperationsRequest) => Buffer;
171
+ readonly requestDeserialize: (value: Buffer) => upiNumberOperationsRequest;
172
+ readonly responseSerialize: (value: upiNumberOperationsResponse) => Buffer;
173
+ readonly responseDeserialize: (value: Buffer) => upiNumberOperationsResponse;
174
+ };
165
175
  };
166
176
  export interface upiServer extends UntypedServiceImplementation {
167
177
  getListedAccountProviders: handleUnaryCall<getListedAccountProvidersRequest, getListedAccountProvidersResponse>;
@@ -180,6 +190,7 @@ export interface upiServer extends UntypedServiceImplementation {
180
190
  getPendingCollectRequest: handleUnaryCall<pendingCollectRequest, pendingCollectResponse>;
181
191
  getTransactions: handleUnaryCall<getTransactionsRequest, getTransactionsResponse>;
182
192
  deregisterProfile: handleUnaryCall<deregisterProfileReqeust, deregisterProfileResponse>;
193
+ upiNumberOperations: handleUnaryCall<upiNumberOperationsRequest, upiNumberOperationsResponse>;
183
194
  }
184
195
  export interface upiClient extends Client {
185
196
  getListedAccountProviders(request: getListedAccountProvidersRequest, callback: (error: ServiceError | null, response: getListedAccountProvidersResponse) => void): ClientUnaryCall;
@@ -230,6 +241,9 @@ export interface upiClient extends Client {
230
241
  deregisterProfile(request: deregisterProfileReqeust, callback: (error: ServiceError | null, response: deregisterProfileResponse) => void): ClientUnaryCall;
231
242
  deregisterProfile(request: deregisterProfileReqeust, metadata: Metadata, callback: (error: ServiceError | null, response: deregisterProfileResponse) => void): ClientUnaryCall;
232
243
  deregisterProfile(request: deregisterProfileReqeust, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: deregisterProfileResponse) => void): ClientUnaryCall;
244
+ upiNumberOperations(request: upiNumberOperationsRequest, callback: (error: ServiceError | null, response: upiNumberOperationsResponse) => void): ClientUnaryCall;
245
+ upiNumberOperations(request: upiNumberOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: upiNumberOperationsResponse) => void): ClientUnaryCall;
246
+ upiNumberOperations(request: upiNumberOperationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: upiNumberOperationsResponse) => void): ClientUnaryCall;
233
247
  }
234
248
  export declare const upiClient: {
235
249
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): upiClient;
package/ts/upi.js CHANGED
@@ -22,6 +22,7 @@ const initiatetransaction_1 = require("./upi/initiatetransaction");
22
22
  const listblockedvpa_1 = require("./upi/listblockedvpa");
23
23
  const unblockvpa_1 = require("./upi/unblockvpa");
24
24
  const updatedevicebinding_1 = require("./upi/updatedevicebinding");
25
+ const upinumberoperations_1 = require("./upi/upinumberoperations");
25
26
  const validateifsc_1 = require("./upi/validateifsc");
26
27
  const validatevpa_1 = require("./upi/validatevpa");
27
28
  exports.protobufPackage = "service";
@@ -170,5 +171,14 @@ exports.upiService = {
170
171
  responseSerialize: (value) => Buffer.from(deregisterprofile_1.deregisterProfileResponse.encode(value).finish()),
171
172
  responseDeserialize: (value) => deregisterprofile_1.deregisterProfileResponse.decode(value),
172
173
  },
174
+ upiNumberOperations: {
175
+ path: "/service.upi/upiNumberOperations",
176
+ requestStream: false,
177
+ responseStream: false,
178
+ requestSerialize: (value) => Buffer.from(upinumberoperations_1.upiNumberOperationsRequest.encode(value).finish()),
179
+ requestDeserialize: (value) => upinumberoperations_1.upiNumberOperationsRequest.decode(value),
180
+ responseSerialize: (value) => Buffer.from(upinumberoperations_1.upiNumberOperationsResponse.encode(value).finish()),
181
+ responseDeserialize: (value) => upinumberoperations_1.upiNumberOperationsResponse.decode(value),
182
+ },
173
183
  };
174
184
  exports.upiClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.upiService, "service.upi");