@stashfin/grpc 1.2.808 → 1.2.810

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.808",
3
+ "version": "1.2.810",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -19,6 +19,7 @@ import { getTnCRequest, getTnCResponse } from "./eqxcustomers/gettnc";
19
19
  import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
20
20
  import { getvpalistRequest, getvpalistResponse } from "./eqxcustomers/getvpalist";
21
21
  import { isCustomerRegisteredRequest, isCustomerRegisteredResponse } from "./eqxcustomers/iscustomerregistered";
22
+ import { LendingCustomerExistsRequest, LendingCustomerExistsResponse } from "./eqxcustomers/lendingcustomerexists";
22
23
  import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
23
24
  import { truecallerLoginRequest, truecallerLoginResponse } from "./eqxcustomers/truecallerlogin";
24
25
  import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
@@ -302,6 +303,15 @@ export declare const eqxcustomersService: {
302
303
  readonly responseSerialize: (value: updateCustomerDeviceDetailsResponse) => Buffer;
303
304
  readonly responseDeserialize: (value: Buffer) => updateCustomerDeviceDetailsResponse;
304
305
  };
306
+ readonly isLendingCustomerRegistered: {
307
+ readonly path: "/service.eqxcustomers/isLendingCustomerRegistered";
308
+ readonly requestStream: false;
309
+ readonly responseStream: false;
310
+ readonly requestSerialize: (value: LendingCustomerExistsRequest) => Buffer;
311
+ readonly requestDeserialize: (value: Buffer) => LendingCustomerExistsRequest;
312
+ readonly responseSerialize: (value: LendingCustomerExistsResponse) => Buffer;
313
+ readonly responseDeserialize: (value: Buffer) => LendingCustomerExistsResponse;
314
+ };
305
315
  };
306
316
  export interface eqxcustomersServer extends UntypedServiceImplementation {
307
317
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
@@ -334,6 +344,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
334
344
  getVpaList: handleUnaryCall<getvpalistRequest, getvpalistResponse>;
335
345
  updateCustomerBasicDetails: handleUnaryCall<updateCustomerBasicDetailsRequest, updateCustomerBasicDetailsResponse>;
336
346
  updateCustomerDeviceDetails: handleUnaryCall<updateCustomerDeviceDetailsRequest, updateCustomerDeviceDetailsResponse>;
347
+ isLendingCustomerRegistered: handleUnaryCall<LendingCustomerExistsRequest, LendingCustomerExistsResponse>;
337
348
  }
338
349
  export interface eqxcustomersClient extends Client {
339
350
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
@@ -426,6 +437,9 @@ export interface eqxcustomersClient extends Client {
426
437
  updateCustomerDeviceDetails(request: updateCustomerDeviceDetailsRequest, callback: (error: ServiceError | null, response: updateCustomerDeviceDetailsResponse) => void): ClientUnaryCall;
427
438
  updateCustomerDeviceDetails(request: updateCustomerDeviceDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerDeviceDetailsResponse) => void): ClientUnaryCall;
428
439
  updateCustomerDeviceDetails(request: updateCustomerDeviceDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerDeviceDetailsResponse) => void): ClientUnaryCall;
440
+ isLendingCustomerRegistered(request: LendingCustomerExistsRequest, callback: (error: ServiceError | null, response: LendingCustomerExistsResponse) => void): ClientUnaryCall;
441
+ isLendingCustomerRegistered(request: LendingCustomerExistsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: LendingCustomerExistsResponse) => void): ClientUnaryCall;
442
+ isLendingCustomerRegistered(request: LendingCustomerExistsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: LendingCustomerExistsResponse) => void): ClientUnaryCall;
429
443
  }
430
444
  export declare const eqxcustomersClient: {
431
445
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
package/ts/eqxcustomer.js CHANGED
@@ -28,6 +28,7 @@ const gettnc_1 = require("./eqxcustomers/gettnc");
28
28
  const gettokens_1 = require("./eqxcustomers/gettokens");
29
29
  const getvpalist_1 = require("./eqxcustomers/getvpalist");
30
30
  const iscustomerregistered_1 = require("./eqxcustomers/iscustomerregistered");
31
+ const lendingcustomerexists_1 = require("./eqxcustomers/lendingcustomerexists");
31
32
  const sendotp_1 = require("./eqxcustomers/sendotp");
32
33
  const truecallerlogin_1 = require("./eqxcustomers/truecallerlogin");
33
34
  const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
@@ -310,5 +311,14 @@ exports.eqxcustomersService = {
310
311
  responseSerialize: (value) => Buffer.from(updatedevicedetails_1.updateCustomerDeviceDetailsResponse.encode(value).finish()),
311
312
  responseDeserialize: (value) => updatedevicedetails_1.updateCustomerDeviceDetailsResponse.decode(value),
312
313
  },
314
+ isLendingCustomerRegistered: {
315
+ path: "/service.eqxcustomers/isLendingCustomerRegistered",
316
+ requestStream: false,
317
+ responseStream: false,
318
+ requestSerialize: (value) => Buffer.from(lendingcustomerexists_1.LendingCustomerExistsRequest.encode(value).finish()),
319
+ requestDeserialize: (value) => lendingcustomerexists_1.LendingCustomerExistsRequest.decode(value),
320
+ responseSerialize: (value) => Buffer.from(lendingcustomerexists_1.LendingCustomerExistsResponse.encode(value).finish()),
321
+ responseDeserialize: (value) => lendingcustomerexists_1.LendingCustomerExistsResponse.decode(value),
322
+ },
313
323
  };
314
324
  exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
@@ -0,0 +1,48 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.lendingcustomerexists";
3
+ export interface LendingCustomerExistsRequest {
4
+ mobile: string;
5
+ }
6
+ export interface Data {
7
+ status: string;
8
+ full_name?: string | undefined;
9
+ }
10
+ export interface LendingCustomerExistsResponse {
11
+ data: Data | undefined;
12
+ status: string;
13
+ }
14
+ export declare const LendingCustomerExistsRequest: {
15
+ encode(message: LendingCustomerExistsRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): LendingCustomerExistsRequest;
17
+ fromJSON(object: any): LendingCustomerExistsRequest;
18
+ toJSON(message: LendingCustomerExistsRequest): unknown;
19
+ create<I extends Exact<DeepPartial<LendingCustomerExistsRequest>, I>>(base?: I): LendingCustomerExistsRequest;
20
+ fromPartial<I extends Exact<DeepPartial<LendingCustomerExistsRequest>, I>>(object: I): LendingCustomerExistsRequest;
21
+ };
22
+ export declare const Data: {
23
+ encode(message: Data, writer?: _m0.Writer): _m0.Writer;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): Data;
25
+ fromJSON(object: any): Data;
26
+ toJSON(message: Data): unknown;
27
+ create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
28
+ fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
29
+ };
30
+ export declare const LendingCustomerExistsResponse: {
31
+ encode(message: LendingCustomerExistsResponse, writer?: _m0.Writer): _m0.Writer;
32
+ decode(input: _m0.Reader | Uint8Array, length?: number): LendingCustomerExistsResponse;
33
+ fromJSON(object: any): LendingCustomerExistsResponse;
34
+ toJSON(message: LendingCustomerExistsResponse): unknown;
35
+ create<I extends Exact<DeepPartial<LendingCustomerExistsResponse>, I>>(base?: I): LendingCustomerExistsResponse;
36
+ fromPartial<I extends Exact<DeepPartial<LendingCustomerExistsResponse>, I>>(object: I): LendingCustomerExistsResponse;
37
+ };
38
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
39
+ 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 {} ? {
40
+ [K in keyof T]?: DeepPartial<T[K]>;
41
+ } : Partial<T>;
42
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
43
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
+ [K in keyof P]: Exact<P[K], I[K]>;
45
+ } & {
46
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
+ };
48
+ export {};
@@ -0,0 +1,199 @@
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 v6.31.1
6
+ // source: eqxcustomers/lendingcustomerexists.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.LendingCustomerExistsResponse = exports.Data = exports.LendingCustomerExistsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "eqxcustomers.lendingcustomerexists";
15
+ function createBaseLendingCustomerExistsRequest() {
16
+ return { mobile: "" };
17
+ }
18
+ exports.LendingCustomerExistsRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.mobile !== "") {
21
+ writer.uint32(10).string(message.mobile);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseLendingCustomerExistsRequest();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.mobile = reader.string();
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 { mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "" };
48
+ },
49
+ toJSON(message) {
50
+ const obj = {};
51
+ if (message.mobile !== "") {
52
+ obj.mobile = message.mobile;
53
+ }
54
+ return obj;
55
+ },
56
+ create(base) {
57
+ return exports.LendingCustomerExistsRequest.fromPartial(base ?? {});
58
+ },
59
+ fromPartial(object) {
60
+ const message = createBaseLendingCustomerExistsRequest();
61
+ message.mobile = object.mobile ?? "";
62
+ return message;
63
+ },
64
+ };
65
+ function createBaseData() {
66
+ return { status: "", full_name: undefined };
67
+ }
68
+ exports.Data = {
69
+ encode(message, writer = minimal_1.default.Writer.create()) {
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
+ }
73
+ if (message.full_name !== undefined) {
74
+ writer.uint32(18).string(message.full_name);
75
+ }
76
+ return writer;
77
+ },
78
+ decode(input, length) {
79
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
80
+ let end = length === undefined ? reader.len : reader.pos + length;
81
+ const message = createBaseData();
82
+ while (reader.pos < end) {
83
+ const tag = reader.uint32();
84
+ switch (tag >>> 3) {
85
+ case 1:
86
+ if (tag !== 10) {
87
+ break;
88
+ }
89
+ message.status = reader.string();
90
+ continue;
91
+ case 2:
92
+ if (tag !== 18) {
93
+ break;
94
+ }
95
+ message.full_name = reader.string();
96
+ continue;
97
+ }
98
+ if ((tag & 7) === 4 || tag === 0) {
99
+ break;
100
+ }
101
+ reader.skipType(tag & 7);
102
+ }
103
+ return message;
104
+ },
105
+ fromJSON(object) {
106
+ return {
107
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
108
+ full_name: isSet(object.full_name) ? globalThis.String(object.full_name) : undefined,
109
+ };
110
+ },
111
+ toJSON(message) {
112
+ const obj = {};
113
+ if (message.status !== "") {
114
+ obj.status = message.status;
115
+ }
116
+ if (message.full_name !== undefined) {
117
+ obj.full_name = message.full_name;
118
+ }
119
+ return obj;
120
+ },
121
+ create(base) {
122
+ return exports.Data.fromPartial(base ?? {});
123
+ },
124
+ fromPartial(object) {
125
+ const message = createBaseData();
126
+ message.status = object.status ?? "";
127
+ message.full_name = object.full_name ?? undefined;
128
+ return message;
129
+ },
130
+ };
131
+ function createBaseLendingCustomerExistsResponse() {
132
+ return { data: undefined, status: "" };
133
+ }
134
+ exports.LendingCustomerExistsResponse = {
135
+ encode(message, writer = minimal_1.default.Writer.create()) {
136
+ if (message.data !== undefined) {
137
+ exports.Data.encode(message.data, writer.uint32(10).fork()).ldelim();
138
+ }
139
+ if (message.status !== "") {
140
+ writer.uint32(18).string(message.status);
141
+ }
142
+ return writer;
143
+ },
144
+ decode(input, length) {
145
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
146
+ let end = length === undefined ? reader.len : reader.pos + length;
147
+ const message = createBaseLendingCustomerExistsResponse();
148
+ while (reader.pos < end) {
149
+ const tag = reader.uint32();
150
+ switch (tag >>> 3) {
151
+ case 1:
152
+ if (tag !== 10) {
153
+ break;
154
+ }
155
+ message.data = exports.Data.decode(reader, reader.uint32());
156
+ continue;
157
+ case 2:
158
+ if (tag !== 18) {
159
+ break;
160
+ }
161
+ message.status = reader.string();
162
+ continue;
163
+ }
164
+ if ((tag & 7) === 4 || tag === 0) {
165
+ break;
166
+ }
167
+ reader.skipType(tag & 7);
168
+ }
169
+ return message;
170
+ },
171
+ fromJSON(object) {
172
+ return {
173
+ data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
174
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
175
+ };
176
+ },
177
+ toJSON(message) {
178
+ const obj = {};
179
+ if (message.data !== undefined) {
180
+ obj.data = exports.Data.toJSON(message.data);
181
+ }
182
+ if (message.status !== "") {
183
+ obj.status = message.status;
184
+ }
185
+ return obj;
186
+ },
187
+ create(base) {
188
+ return exports.LendingCustomerExistsResponse.fromPartial(base ?? {});
189
+ },
190
+ fromPartial(object) {
191
+ const message = createBaseLendingCustomerExistsResponse();
192
+ message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
193
+ message.status = object.status ?? "";
194
+ return message;
195
+ },
196
+ };
197
+ function isSet(value) {
198
+ return value !== null && value !== undefined;
199
+ }
@@ -20,6 +20,7 @@ export interface verifyOtpResponse {
20
20
  last_name?: string | undefined;
21
21
  message: string;
22
22
  refresh_token: string;
23
+ is_eqx_customer?: boolean | undefined;
23
24
  }
24
25
  export declare const verifyOtpReqeust: {
25
26
  encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
@@ -233,6 +233,7 @@ function createBaseverifyOtpResponse() {
233
233
  last_name: undefined,
234
234
  message: "",
235
235
  refresh_token: "",
236
+ is_eqx_customer: undefined,
236
237
  };
237
238
  }
238
239
  exports.verifyOtpResponse = {
@@ -255,6 +256,9 @@ exports.verifyOtpResponse = {
255
256
  if (message.refresh_token !== "") {
256
257
  writer.uint32(50).string(message.refresh_token);
257
258
  }
259
+ if (message.is_eqx_customer !== undefined) {
260
+ writer.uint32(56).bool(message.is_eqx_customer);
261
+ }
258
262
  return writer;
259
263
  },
260
264
  decode(input, length) {
@@ -300,6 +304,12 @@ exports.verifyOtpResponse = {
300
304
  }
301
305
  message.refresh_token = reader.string();
302
306
  continue;
307
+ case 7:
308
+ if (tag !== 56) {
309
+ break;
310
+ }
311
+ message.is_eqx_customer = reader.bool();
312
+ continue;
303
313
  }
304
314
  if ((tag & 7) === 4 || tag === 0) {
305
315
  break;
@@ -316,6 +326,7 @@ exports.verifyOtpResponse = {
316
326
  last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
317
327
  message: isSet(object.message) ? globalThis.String(object.message) : "",
318
328
  refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
329
+ is_eqx_customer: isSet(object.is_eqx_customer) ? globalThis.Boolean(object.is_eqx_customer) : undefined,
319
330
  };
320
331
  },
321
332
  toJSON(message) {
@@ -338,6 +349,9 @@ exports.verifyOtpResponse = {
338
349
  if (message.refresh_token !== "") {
339
350
  obj.refresh_token = message.refresh_token;
340
351
  }
352
+ if (message.is_eqx_customer !== undefined) {
353
+ obj.is_eqx_customer = message.is_eqx_customer;
354
+ }
341
355
  return obj;
342
356
  },
343
357
  create(base) {
@@ -351,6 +365,7 @@ exports.verifyOtpResponse = {
351
365
  message.last_name = object.last_name ?? undefined;
352
366
  message.message = object.message ?? "";
353
367
  message.refresh_token = object.refresh_token ?? "";
368
+ message.is_eqx_customer = object.is_eqx_customer ?? undefined;
354
369
  return message;
355
370
  },
356
371
  };