@stashfin/grpc 1.2.79 → 1.2.81

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.79",
3
+ "version": "1.2.81",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.getdocuments";
3
+ export interface getDocumentsRequest {
4
+ }
5
+ export interface getDocumentsResponse {
6
+ aadhaar_url: string;
7
+ address_proof_url: string;
8
+ pan_url: string;
9
+ }
10
+ export declare const getDocumentsRequest: {
11
+ encode(_: getDocumentsRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): getDocumentsRequest;
13
+ fromJSON(_: any): getDocumentsRequest;
14
+ toJSON(_: getDocumentsRequest): unknown;
15
+ create<I extends Exact<DeepPartial<getDocumentsRequest>, I>>(base?: I): getDocumentsRequest;
16
+ fromPartial<I extends Exact<DeepPartial<getDocumentsRequest>, I>>(_: I): getDocumentsRequest;
17
+ };
18
+ export declare const getDocumentsResponse: {
19
+ encode(message: getDocumentsResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): getDocumentsResponse;
21
+ fromJSON(object: any): getDocumentsResponse;
22
+ toJSON(message: getDocumentsResponse): unknown;
23
+ create<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(base?: I): getDocumentsResponse;
24
+ fromPartial<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(object: I): getDocumentsResponse;
25
+ };
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ 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 {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};
@@ -0,0 +1,134 @@
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 v3.20.3
6
+ // source: customers/getdocuments.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.getDocumentsResponse = exports.getDocumentsRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.getdocuments";
15
+ function createBasegetDocumentsRequest() {
16
+ return {};
17
+ }
18
+ exports.getDocumentsRequest = {
19
+ encode(_, writer = minimal_1.default.Writer.create()) {
20
+ return writer;
21
+ },
22
+ decode(input, length) {
23
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
+ const message = createBasegetDocumentsRequest();
26
+ while (reader.pos < end) {
27
+ const tag = reader.uint32();
28
+ switch (tag >>> 3) {
29
+ }
30
+ if ((tag & 7) === 4 || tag === 0) {
31
+ break;
32
+ }
33
+ reader.skipType(tag & 7);
34
+ }
35
+ return message;
36
+ },
37
+ fromJSON(_) {
38
+ return {};
39
+ },
40
+ toJSON(_) {
41
+ const obj = {};
42
+ return obj;
43
+ },
44
+ create(base) {
45
+ return exports.getDocumentsRequest.fromPartial(base ?? {});
46
+ },
47
+ fromPartial(_) {
48
+ const message = createBasegetDocumentsRequest();
49
+ return message;
50
+ },
51
+ };
52
+ function createBasegetDocumentsResponse() {
53
+ return { aadhaar_url: "", address_proof_url: "", pan_url: "" };
54
+ }
55
+ exports.getDocumentsResponse = {
56
+ encode(message, writer = minimal_1.default.Writer.create()) {
57
+ if (message.aadhaar_url !== "") {
58
+ writer.uint32(10).string(message.aadhaar_url);
59
+ }
60
+ if (message.address_proof_url !== "") {
61
+ writer.uint32(18).string(message.address_proof_url);
62
+ }
63
+ if (message.pan_url !== "") {
64
+ writer.uint32(26).string(message.pan_url);
65
+ }
66
+ return writer;
67
+ },
68
+ decode(input, length) {
69
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
70
+ let end = length === undefined ? reader.len : reader.pos + length;
71
+ const message = createBasegetDocumentsResponse();
72
+ while (reader.pos < end) {
73
+ const tag = reader.uint32();
74
+ switch (tag >>> 3) {
75
+ case 1:
76
+ if (tag !== 10) {
77
+ break;
78
+ }
79
+ message.aadhaar_url = reader.string();
80
+ continue;
81
+ case 2:
82
+ if (tag !== 18) {
83
+ break;
84
+ }
85
+ message.address_proof_url = reader.string();
86
+ continue;
87
+ case 3:
88
+ if (tag !== 26) {
89
+ break;
90
+ }
91
+ message.pan_url = reader.string();
92
+ continue;
93
+ }
94
+ if ((tag & 7) === 4 || tag === 0) {
95
+ break;
96
+ }
97
+ reader.skipType(tag & 7);
98
+ }
99
+ return message;
100
+ },
101
+ fromJSON(object) {
102
+ return {
103
+ aadhaar_url: isSet(object.aadhaar_url) ? globalThis.String(object.aadhaar_url) : "",
104
+ address_proof_url: isSet(object.address_proof_url) ? globalThis.String(object.address_proof_url) : "",
105
+ pan_url: isSet(object.pan_url) ? globalThis.String(object.pan_url) : "",
106
+ };
107
+ },
108
+ toJSON(message) {
109
+ const obj = {};
110
+ if (message.aadhaar_url !== "") {
111
+ obj.aadhaar_url = message.aadhaar_url;
112
+ }
113
+ if (message.address_proof_url !== "") {
114
+ obj.address_proof_url = message.address_proof_url;
115
+ }
116
+ if (message.pan_url !== "") {
117
+ obj.pan_url = message.pan_url;
118
+ }
119
+ return obj;
120
+ },
121
+ create(base) {
122
+ return exports.getDocumentsResponse.fromPartial(base ?? {});
123
+ },
124
+ fromPartial(object) {
125
+ const message = createBasegetDocumentsResponse();
126
+ message.aadhaar_url = object.aadhaar_url ?? "";
127
+ message.address_proof_url = object.address_proof_url ?? "";
128
+ message.pan_url = object.pan_url ?? "";
129
+ return message;
130
+ },
131
+ };
132
+ function isSet(value) {
133
+ return value !== null && value !== undefined;
134
+ }
package/ts/customers.d.ts CHANGED
@@ -15,6 +15,7 @@ import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
15
15
  import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
16
16
  import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
17
17
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
18
+ import { getDocumentsRequest, getDocumentsResponse } from "./customers/getdocuments";
18
19
  import { getKycWebUrlRequest, getKycWebUrlResponse } from "./customers/getkycweburl";
19
20
  import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
20
21
  import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
@@ -368,6 +369,15 @@ export declare const customersService: {
368
369
  readonly responseSerialize: (value: getCitiesResponse) => Buffer;
369
370
  readonly responseDeserialize: (value: Buffer) => getCitiesResponse;
370
371
  };
372
+ readonly getDocumentList: {
373
+ readonly path: "/service.customers/getDocumentList";
374
+ readonly requestStream: false;
375
+ readonly responseStream: false;
376
+ readonly requestSerialize: (value: getDocumentsRequest) => Buffer;
377
+ readonly requestDeserialize: (value: Buffer) => getDocumentsRequest;
378
+ readonly responseSerialize: (value: getDocumentsResponse) => Buffer;
379
+ readonly responseDeserialize: (value: Buffer) => getDocumentsResponse;
380
+ };
371
381
  readonly updateDigiLockerTxn: {
372
382
  readonly path: "/service.customers/updateDigiLockerTxn";
373
383
  readonly requestStream: false;
@@ -514,6 +524,7 @@ export interface customersServer extends UntypedServiceImplementation {
514
524
  verifyProfessionalEmail: handleUnaryCall<verifyEmailRequest, verifyEmailResponse>;
515
525
  getAllStates: handleUnaryCall<getAllStatesRequest, getAllStatesResponse>;
516
526
  getCitiesByStateId: handleUnaryCall<getCitiesRequest, getCitiesResponse>;
527
+ getDocumentList: handleUnaryCall<getDocumentsRequest, getDocumentsResponse>;
517
528
  updateDigiLockerTxn: handleUnaryCall<updateDigiLockerTxnRequest, updateDigiLockerTxnResponse>;
518
529
  updateHypervergeTxn: handleUnaryCall<updateHypervergeTxnRequest, updateHypervergeTxnResponse>;
519
530
  addAddress: handleUnaryCall<addAddressRequest, addAddressResponse>;
@@ -636,6 +647,9 @@ export interface customersClient extends Client {
636
647
  getCitiesByStateId(request: getCitiesRequest, callback: (error: ServiceError | null, response: getCitiesResponse) => void): ClientUnaryCall;
637
648
  getCitiesByStateId(request: getCitiesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCitiesResponse) => void): ClientUnaryCall;
638
649
  getCitiesByStateId(request: getCitiesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCitiesResponse) => void): ClientUnaryCall;
650
+ getDocumentList(request: getDocumentsRequest, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
651
+ getDocumentList(request: getDocumentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
652
+ getDocumentList(request: getDocumentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDocumentsResponse) => void): ClientUnaryCall;
639
653
  updateDigiLockerTxn(request: updateDigiLockerTxnRequest, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
640
654
  updateDigiLockerTxn(request: updateDigiLockerTxnRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
641
655
  updateDigiLockerTxn(request: updateDigiLockerTxnRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateDigiLockerTxnResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -24,6 +24,7 @@ const getcities_1 = require("./customers/getcities");
24
24
  const getcustomerbyid_1 = require("./customers/getcustomerbyid");
25
25
  const getdashboard_1 = require("./customers/getdashboard");
26
26
  const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
27
+ const getdocuments_1 = require("./customers/getdocuments");
27
28
  const getkycweburl_1 = require("./customers/getkycweburl");
28
29
  const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
29
30
  const getprofile_1 = require("./customers/getprofile");
@@ -376,6 +377,15 @@ exports.customersService = {
376
377
  responseSerialize: (value) => Buffer.from(getcities_1.getCitiesResponse.encode(value).finish()),
377
378
  responseDeserialize: (value) => getcities_1.getCitiesResponse.decode(value),
378
379
  },
380
+ getDocumentList: {
381
+ path: "/service.customers/getDocumentList",
382
+ requestStream: false,
383
+ responseStream: false,
384
+ requestSerialize: (value) => Buffer.from(getdocuments_1.getDocumentsRequest.encode(value).finish()),
385
+ requestDeserialize: (value) => getdocuments_1.getDocumentsRequest.decode(value),
386
+ responseSerialize: (value) => Buffer.from(getdocuments_1.getDocumentsResponse.encode(value).finish()),
387
+ responseDeserialize: (value) => getdocuments_1.getDocumentsResponse.decode(value),
388
+ },
379
389
  updateDigiLockerTxn: {
380
390
  path: "/service.customers/updateDigiLockerTxn",
381
391
  requestStream: false,
@@ -13,6 +13,14 @@ export interface creditLimitResponse {
13
13
  request_max_percentage: number;
14
14
  bill_date: string;
15
15
  minimum_request_amount: number;
16
+ sanctioned_limit_info_popup_heading: string;
17
+ sanctioned_limit_info_popup_body: string;
18
+ exposure_limit_info_popup_heading: string;
19
+ exposure_limit_info_popup_body: string;
20
+ sanctioned_limit_heading: string;
21
+ exposure_limit_heading: string;
22
+ sanctioned_limit: number;
23
+ remaining_sanctioned_limit: number;
16
24
  }
17
25
  export declare const creditLimitRequest: {
18
26
  encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
@@ -61,6 +61,14 @@ function createBasecreditLimitResponse() {
61
61
  request_max_percentage: 0,
62
62
  bill_date: "",
63
63
  minimum_request_amount: 0,
64
+ sanctioned_limit_info_popup_heading: "",
65
+ sanctioned_limit_info_popup_body: "",
66
+ exposure_limit_info_popup_heading: "",
67
+ exposure_limit_info_popup_body: "",
68
+ sanctioned_limit_heading: "",
69
+ exposure_limit_heading: "",
70
+ sanctioned_limit: 0,
71
+ remaining_sanctioned_limit: 0,
64
72
  };
65
73
  }
66
74
  exports.creditLimitResponse = {
@@ -95,6 +103,30 @@ exports.creditLimitResponse = {
95
103
  if (message.minimum_request_amount !== 0) {
96
104
  writer.uint32(80).int32(message.minimum_request_amount);
97
105
  }
106
+ if (message.sanctioned_limit_info_popup_heading !== "") {
107
+ writer.uint32(90).string(message.sanctioned_limit_info_popup_heading);
108
+ }
109
+ if (message.sanctioned_limit_info_popup_body !== "") {
110
+ writer.uint32(98).string(message.sanctioned_limit_info_popup_body);
111
+ }
112
+ if (message.exposure_limit_info_popup_heading !== "") {
113
+ writer.uint32(106).string(message.exposure_limit_info_popup_heading);
114
+ }
115
+ if (message.exposure_limit_info_popup_body !== "") {
116
+ writer.uint32(114).string(message.exposure_limit_info_popup_body);
117
+ }
118
+ if (message.sanctioned_limit_heading !== "") {
119
+ writer.uint32(122).string(message.sanctioned_limit_heading);
120
+ }
121
+ if (message.exposure_limit_heading !== "") {
122
+ writer.uint32(130).string(message.exposure_limit_heading);
123
+ }
124
+ if (message.sanctioned_limit !== 0) {
125
+ writer.uint32(136).int32(message.sanctioned_limit);
126
+ }
127
+ if (message.remaining_sanctioned_limit !== 0) {
128
+ writer.uint32(144).int32(message.remaining_sanctioned_limit);
129
+ }
98
130
  return writer;
99
131
  },
100
132
  decode(input, length) {
@@ -164,6 +196,54 @@ exports.creditLimitResponse = {
164
196
  }
165
197
  message.minimum_request_amount = reader.int32();
166
198
  continue;
199
+ case 11:
200
+ if (tag !== 90) {
201
+ break;
202
+ }
203
+ message.sanctioned_limit_info_popup_heading = reader.string();
204
+ continue;
205
+ case 12:
206
+ if (tag !== 98) {
207
+ break;
208
+ }
209
+ message.sanctioned_limit_info_popup_body = reader.string();
210
+ continue;
211
+ case 13:
212
+ if (tag !== 106) {
213
+ break;
214
+ }
215
+ message.exposure_limit_info_popup_heading = reader.string();
216
+ continue;
217
+ case 14:
218
+ if (tag !== 114) {
219
+ break;
220
+ }
221
+ message.exposure_limit_info_popup_body = reader.string();
222
+ continue;
223
+ case 15:
224
+ if (tag !== 122) {
225
+ break;
226
+ }
227
+ message.sanctioned_limit_heading = reader.string();
228
+ continue;
229
+ case 16:
230
+ if (tag !== 130) {
231
+ break;
232
+ }
233
+ message.exposure_limit_heading = reader.string();
234
+ continue;
235
+ case 17:
236
+ if (tag !== 136) {
237
+ break;
238
+ }
239
+ message.sanctioned_limit = reader.int32();
240
+ continue;
241
+ case 18:
242
+ if (tag !== 144) {
243
+ break;
244
+ }
245
+ message.remaining_sanctioned_limit = reader.int32();
246
+ continue;
167
247
  }
168
248
  if ((tag & 7) === 4 || tag === 0) {
169
249
  break;
@@ -188,6 +268,28 @@ exports.creditLimitResponse = {
188
268
  minimum_request_amount: isSet(object.minimum_request_amount)
189
269
  ? globalThis.Number(object.minimum_request_amount)
190
270
  : 0,
271
+ sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
272
+ ? globalThis.String(object.sanctioned_limit_info_popup_heading)
273
+ : "",
274
+ sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
275
+ ? globalThis.String(object.sanctioned_limit_info_popup_body)
276
+ : "",
277
+ exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
278
+ ? globalThis.String(object.exposure_limit_info_popup_heading)
279
+ : "",
280
+ exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
281
+ ? globalThis.String(object.exposure_limit_info_popup_body)
282
+ : "",
283
+ sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
284
+ ? globalThis.String(object.sanctioned_limit_heading)
285
+ : "",
286
+ exposure_limit_heading: isSet(object.exposure_limit_heading)
287
+ ? globalThis.String(object.exposure_limit_heading)
288
+ : "",
289
+ sanctioned_limit: isSet(object.sanctioned_limit) ? globalThis.Number(object.sanctioned_limit) : 0,
290
+ remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
291
+ ? globalThis.Number(object.remaining_sanctioned_limit)
292
+ : 0,
191
293
  };
192
294
  },
193
295
  toJSON(message) {
@@ -222,6 +324,30 @@ exports.creditLimitResponse = {
222
324
  if (message.minimum_request_amount !== 0) {
223
325
  obj.minimum_request_amount = Math.round(message.minimum_request_amount);
224
326
  }
327
+ if (message.sanctioned_limit_info_popup_heading !== "") {
328
+ obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
329
+ }
330
+ if (message.sanctioned_limit_info_popup_body !== "") {
331
+ obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
332
+ }
333
+ if (message.exposure_limit_info_popup_heading !== "") {
334
+ obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
335
+ }
336
+ if (message.exposure_limit_info_popup_body !== "") {
337
+ obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
338
+ }
339
+ if (message.sanctioned_limit_heading !== "") {
340
+ obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
341
+ }
342
+ if (message.exposure_limit_heading !== "") {
343
+ obj.exposure_limit_heading = message.exposure_limit_heading;
344
+ }
345
+ if (message.sanctioned_limit !== 0) {
346
+ obj.sanctioned_limit = Math.round(message.sanctioned_limit);
347
+ }
348
+ if (message.remaining_sanctioned_limit !== 0) {
349
+ obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
350
+ }
225
351
  return obj;
226
352
  },
227
353
  create(base) {
@@ -239,6 +365,14 @@ exports.creditLimitResponse = {
239
365
  message.request_max_percentage = object.request_max_percentage ?? 0;
240
366
  message.bill_date = object.bill_date ?? "";
241
367
  message.minimum_request_amount = object.minimum_request_amount ?? 0;
368
+ message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
369
+ message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
370
+ message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
371
+ message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
372
+ message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
373
+ message.exposure_limit_heading = object.exposure_limit_heading ?? "";
374
+ message.sanctioned_limit = object.sanctioned_limit ?? 0;
375
+ message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
242
376
  return message;
243
377
  },
244
378
  };