@stashfin/grpc 1.2.54 → 1.2.59
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 +3 -3
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/forgotmpin.d.ts +36 -0
- package/ts/customers/forgotmpin.js +133 -0
- package/ts/customers/forgotmpinotp.d.ts +34 -0
- package/ts/customers/forgotmpinotp.js +104 -0
- package/ts/customers/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcustomerbyid.d.ts +55 -0
- package/ts/customers/getcustomerbyid.js +421 -0
- package/ts/customers/getdashboard.d.ts +91 -0
- package/ts/customers/getdashboard.js +618 -0
- package/ts/customers/getdashboardmaincard.d.ts +69 -0
- package/ts/customers/getdashboardmaincard.js +520 -0
- package/ts/customers/getkycweburl.d.ts +34 -0
- package/ts/customers/getkycweburl.js +104 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +53 -0
- package/ts/customers/getprofile.js +282 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/profilebasic.d.ts +38 -0
- package/ts/customers/profilebasic.js +161 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/resetmpin.d.ts +36 -0
- package/ts/customers/resetmpin.js +133 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendemailtoken.d.ts +35 -0
- package/ts/customers/sendemailtoken.js +117 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/step1.d.ts +71 -0
- package/ts/customers/step1.js +423 -0
- package/ts/customers/step10.d.ts +73 -0
- package/ts/customers/step10.js +459 -0
- package/ts/customers/step2.d.ts +67 -0
- package/ts/customers/step2.js +366 -0
- package/ts/customers/step7.d.ts +68 -0
- package/ts/customers/step7.js +381 -0
- package/ts/customers/step8.d.ts +69 -0
- package/ts/customers/step8.js +395 -0
- package/ts/customers/step9.d.ts +75 -0
- package/ts/customers/step9.js +489 -0
- package/ts/customers/stepstatic.d.ts +66 -0
- package/ts/customers/stepstatic.js +354 -0
- package/ts/customers/updatedigilockertxn.d.ts +37 -0
- package/ts/customers/updatedigilockertxn.js +147 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatehypervergetxn.d.ts +36 -0
- package/ts/customers/updatehypervergetxn.js +133 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers.d.ts +596 -0
- package/ts/customers.js +428 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
- package/ts/google/protobuf/timestamp.js +97 -0
- package/ts/loans/approveloan.d.ts +39 -0
- package/ts/loans/approveloan.js +175 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +51 -0
- package/ts/loans/calculateemi.js +243 -0
- package/ts/loans/creditlimit.d.ts +43 -0
- package/ts/loans/creditlimit.js +247 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- package/ts/loans/transactionlist.d.ts +50 -0
- package/ts/loans/transactionlist.js +229 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +39 -0
- package/ts/loans/updateloan.js +175 -0
- package/ts/loans.d.ts +126 -0
- package/ts/loans.js +94 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
- package/README.md +0 -74
- package/src/proto/customers/addaddress.proto +0 -25
- package/src/proto/customers/addbankaccountdetails.proto +0 -13
- package/src/proto/customers/createcustomerreference.proto +0 -21
- package/src/proto/customers/forgotmpin.proto +0 -12
- package/src/proto/customers/forgotmpinotp.proto +0 -10
- package/src/proto/customers/getbankaccountdetails.proto +0 -11
- package/src/proto/customers/getbasicinfo.proto +0 -24
- package/src/proto/customers/getcities.proto +0 -16
- package/src/proto/customers/getcustomerbyid.proto +0 -31
- package/src/proto/customers/getdashboard.proto +0 -47
- package/src/proto/customers/getdashboardmaincard.proto +0 -37
- package/src/proto/customers/getkycweburl.proto +0 -10
- package/src/proto/customers/getprofessionalinfo.proto +0 -22
- package/src/proto/customers/getprofile.proto +0 -22
- package/src/proto/customers/getstates.proto +0 -15
- package/src/proto/customers/getstep.proto +0 -30
- package/src/proto/customers/profilebasic.proto +0 -14
- package/src/proto/customers/profileupdatetnc.proto +0 -11
- package/src/proto/customers/resetmpin.proto +0 -13
- package/src/proto/customers/savebasicdetails.proto +0 -16
- package/src/proto/customers/saveunlocklimit.proto +0 -10
- package/src/proto/customers/sendemailtoken.proto +0 -11
- package/src/proto/customers/sendotp.proto +0 -14
- package/src/proto/customers/setmpin.proto +0 -12
- package/src/proto/customers/step10.proto +0 -34
- package/src/proto/customers/step7.proto +0 -29
- package/src/proto/customers/step8.proto +0 -30
- package/src/proto/customers/step9.proto +0 -36
- package/src/proto/customers/stepstatic.proto +0 -27
- package/src/proto/customers/updatedigilockertxn.proto +0 -13
- package/src/proto/customers/updatedob.proto +0 -13
- package/src/proto/customers/updatehypervergetxn.proto +0 -12
- package/src/proto/customers/verifyemail.proto +0 -11
- package/src/proto/customers/verifympin.proto +0 -13
- package/src/proto/customers/verifyotp.proto +0 -17
- package/src/proto/customers.proto +0 -83
- package/src/proto/example.proto +0 -20
- package/src/proto/loans/approveloan.proto +0 -15
- package/src/proto/loans/banklist.proto +0 -12
- package/src/proto/loans/calculateemi.proto +0 -20
- package/src/proto/loans/creditlimit.proto +0 -18
- package/src/proto/loans/restructureloan.proto +0 -12
- package/src/proto/loans/transactionlist.proto +0 -18
- package/src/proto/loans/updateinstallments.proto +0 -19
- package/src/proto/loans/updateloan.proto +0 -15
- package/src/proto/loans.proto +0 -23
- package/src/proto/stashcash/creditsc.proto +0 -22
- package/src/proto/stashcash/debitsc.proto +0 -27
- package/src/proto/stashcash/getscbalance.proto +0 -21
- package/src/proto/stashcash/getschistory.proto +0 -35
- package/src/proto/stashcash/reversesc.proto +0 -20
- package/src/proto/stashcash.proto +0 -17
- package/src/ts/customers/addaddress.ts +0 -310
- package/src/ts/customers/addbankaccountdetails.ts +0 -184
- package/src/ts/customers/createcustomerreference.ts +0 -276
- package/src/ts/customers/getbankaccountdetails.ts +0 -169
- package/src/ts/customers/getbasicinfo.ts +0 -385
- package/src/ts/customers/getcities.ts +0 -227
- package/src/ts/customers/getcustomerbyid.ts +0 -492
- package/src/ts/customers/getdashboard.ts +0 -728
- package/src/ts/customers/getdashboardmaincard.ts +0 -608
- package/src/ts/customers/getkycweburl.ts +0 -133
- package/src/ts/customers/getprofessionalinfo.ts +0 -344
- package/src/ts/customers/getprofile.ts +0 -338
- package/src/ts/customers/getstates.ts +0 -212
- package/src/ts/customers/getstep.ts +0 -483
- package/src/ts/customers/profilebasic.ts +0 -198
- package/src/ts/customers/profileupdatetnc.ts +0 -148
- package/src/ts/customers/resetmpin.ts +0 -166
- package/src/ts/customers/savebasicdetails.ts +0 -229
- package/src/ts/customers/saveunlocklimit.ts +0 -133
- package/src/ts/customers/sendemailtoken.ts +0 -148
- package/src/ts/customers/sendotp.ts +0 -202
- package/src/ts/customers/setmpin.ts +0 -166
- package/src/ts/customers/step10.ts +0 -544
- package/src/ts/customers/step7.ts +0 -456
- package/src/ts/customers/step8.ts +0 -472
- package/src/ts/customers/step9.ts +0 -578
- package/src/ts/customers/stepstatic.ts +0 -425
- package/src/ts/customers/updatedigilockertxn.ts +0 -182
- package/src/ts/customers/updatehypervergetxn.ts +0 -166
- package/src/ts/customers/verifyemail.ts +0 -148
- package/src/ts/customers/verifympin.ts +0 -184
- package/src/ts/customers/verifyotp.ts +0 -232
- package/src/ts/customers.ts +0 -1038
- package/src/ts/example.ts +0 -294
- package/src/ts/loans/approveloan.ts +0 -214
- package/src/ts/loans/banklist.ts +0 -183
- package/src/ts/loans/calculateemi.ts +0 -295
- package/src/ts/loans/creditlimit.ts +0 -294
- package/src/ts/loans/restructureloan.ts +0 -166
- package/src/ts/loans/transactionlist.ts +0 -281
- package/src/ts/loans/updateinstallments.ts +0 -271
- package/src/ts/loans/updateloan.ts +0 -214
- package/src/ts/loans.ts +0 -221
- package/src/ts/stashcash/creditsc.ts +0 -361
- package/src/ts/stashcash/debitsc.ts +0 -450
- package/src/ts/stashcash/getscbalance.ts +0 -351
- package/src/ts/stashcash/getschistory.ts +0 -566
- package/src/ts/stashcash/reversesc.ts +0 -329
- package/src/ts/stashcash.ts +0 -152
- package/tsconfig.json +0 -18
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stashfin/grpc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.59",
|
|
4
4
|
"description": "Grpc proto manger",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
|
|
7
|
-
"build
|
|
8
|
-
"build": "npx protoc --plugin=./../../node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
|
|
7
|
+
"build": "npx protoc --plugin=$(npm root)/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
|
|
8
|
+
"build:test": "npx protoc --plugin=./../../node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
|
|
9
9
|
"postbuild": "tsc --build && cp package.json dist/ ",
|
|
10
10
|
"publish:patch": "npm version patch && npm run build && cd dist && npm publish --access public",
|
|
11
11
|
"publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.addaddress";
|
|
3
|
+
export declare enum AddressType {
|
|
4
|
+
CURRENT = 0,
|
|
5
|
+
PERMANENT = 1,
|
|
6
|
+
OFFICE = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare function addressTypeFromJSON(object: any): AddressType;
|
|
10
|
+
export declare function addressTypeToJSON(object: AddressType): string;
|
|
11
|
+
export interface addAddressRequest {
|
|
12
|
+
address_type: AddressType;
|
|
13
|
+
house_flat_no: string;
|
|
14
|
+
address_line_1: string;
|
|
15
|
+
address_line_2: string;
|
|
16
|
+
landmark: string;
|
|
17
|
+
state_id: number;
|
|
18
|
+
city_id: number;
|
|
19
|
+
pin_code: string;
|
|
20
|
+
}
|
|
21
|
+
export interface addAddressResponse {
|
|
22
|
+
status: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const addAddressRequest: {
|
|
25
|
+
encode(message: addAddressRequest, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addAddressRequest;
|
|
27
|
+
fromJSON(object: any): addAddressRequest;
|
|
28
|
+
toJSON(message: addAddressRequest): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<addAddressRequest>, I>>(base?: I): addAddressRequest;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<addAddressRequest>, I>>(object: I): addAddressRequest;
|
|
31
|
+
};
|
|
32
|
+
export declare const addAddressResponse: {
|
|
33
|
+
encode(message: addAddressResponse, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addAddressResponse;
|
|
35
|
+
fromJSON(object: any): addAddressResponse;
|
|
36
|
+
toJSON(message: addAddressResponse): unknown;
|
|
37
|
+
create<I extends Exact<DeepPartial<addAddressResponse>, I>>(base?: I): addAddressResponse;
|
|
38
|
+
fromPartial<I extends Exact<DeepPartial<addAddressResponse>, I>>(object: I): addAddressResponse;
|
|
39
|
+
};
|
|
40
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
+
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 {} ? {
|
|
42
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
+
} : Partial<T>;
|
|
44
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
+
} & {
|
|
48
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -0,0 +1,265 @@
|
|
|
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/addaddress.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.addAddressResponse = exports.addAddressRequest = exports.AddressType = exports.protobufPackage = void 0;
|
|
12
|
+
exports.addressTypeFromJSON = addressTypeFromJSON;
|
|
13
|
+
exports.addressTypeToJSON = addressTypeToJSON;
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
16
|
+
exports.protobufPackage = "customers.addaddress";
|
|
17
|
+
var AddressType;
|
|
18
|
+
(function (AddressType) {
|
|
19
|
+
AddressType[AddressType["CURRENT"] = 0] = "CURRENT";
|
|
20
|
+
AddressType[AddressType["PERMANENT"] = 1] = "PERMANENT";
|
|
21
|
+
AddressType[AddressType["OFFICE"] = 2] = "OFFICE";
|
|
22
|
+
AddressType[AddressType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
23
|
+
})(AddressType || (exports.AddressType = AddressType = {}));
|
|
24
|
+
function addressTypeFromJSON(object) {
|
|
25
|
+
switch (object) {
|
|
26
|
+
case 0:
|
|
27
|
+
case "CURRENT":
|
|
28
|
+
return AddressType.CURRENT;
|
|
29
|
+
case 1:
|
|
30
|
+
case "PERMANENT":
|
|
31
|
+
return AddressType.PERMANENT;
|
|
32
|
+
case 2:
|
|
33
|
+
case "OFFICE":
|
|
34
|
+
return AddressType.OFFICE;
|
|
35
|
+
case -1:
|
|
36
|
+
case "UNRECOGNIZED":
|
|
37
|
+
default:
|
|
38
|
+
return AddressType.UNRECOGNIZED;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function addressTypeToJSON(object) {
|
|
42
|
+
switch (object) {
|
|
43
|
+
case AddressType.CURRENT:
|
|
44
|
+
return "CURRENT";
|
|
45
|
+
case AddressType.PERMANENT:
|
|
46
|
+
return "PERMANENT";
|
|
47
|
+
case AddressType.OFFICE:
|
|
48
|
+
return "OFFICE";
|
|
49
|
+
case AddressType.UNRECOGNIZED:
|
|
50
|
+
default:
|
|
51
|
+
return "UNRECOGNIZED";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function createBaseaddAddressRequest() {
|
|
55
|
+
return {
|
|
56
|
+
address_type: 0,
|
|
57
|
+
house_flat_no: "",
|
|
58
|
+
address_line_1: "",
|
|
59
|
+
address_line_2: "",
|
|
60
|
+
landmark: "",
|
|
61
|
+
state_id: 0,
|
|
62
|
+
city_id: 0,
|
|
63
|
+
pin_code: "",
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
exports.addAddressRequest = {
|
|
67
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
68
|
+
if (message.address_type !== 0) {
|
|
69
|
+
writer.uint32(8).int32(message.address_type);
|
|
70
|
+
}
|
|
71
|
+
if (message.house_flat_no !== "") {
|
|
72
|
+
writer.uint32(18).string(message.house_flat_no);
|
|
73
|
+
}
|
|
74
|
+
if (message.address_line_1 !== "") {
|
|
75
|
+
writer.uint32(26).string(message.address_line_1);
|
|
76
|
+
}
|
|
77
|
+
if (message.address_line_2 !== "") {
|
|
78
|
+
writer.uint32(34).string(message.address_line_2);
|
|
79
|
+
}
|
|
80
|
+
if (message.landmark !== "") {
|
|
81
|
+
writer.uint32(42).string(message.landmark);
|
|
82
|
+
}
|
|
83
|
+
if (message.state_id !== 0) {
|
|
84
|
+
writer.uint32(56).int32(message.state_id);
|
|
85
|
+
}
|
|
86
|
+
if (message.city_id !== 0) {
|
|
87
|
+
writer.uint32(64).int32(message.city_id);
|
|
88
|
+
}
|
|
89
|
+
if (message.pin_code !== "") {
|
|
90
|
+
writer.uint32(74).string(message.pin_code);
|
|
91
|
+
}
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseaddAddressRequest();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
case 1:
|
|
102
|
+
if (tag !== 8) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.address_type = reader.int32();
|
|
106
|
+
continue;
|
|
107
|
+
case 2:
|
|
108
|
+
if (tag !== 18) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
message.house_flat_no = reader.string();
|
|
112
|
+
continue;
|
|
113
|
+
case 3:
|
|
114
|
+
if (tag !== 26) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.address_line_1 = reader.string();
|
|
118
|
+
continue;
|
|
119
|
+
case 4:
|
|
120
|
+
if (tag !== 34) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.address_line_2 = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 5:
|
|
126
|
+
if (tag !== 42) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.landmark = reader.string();
|
|
130
|
+
continue;
|
|
131
|
+
case 7:
|
|
132
|
+
if (tag !== 56) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.state_id = reader.int32();
|
|
136
|
+
continue;
|
|
137
|
+
case 8:
|
|
138
|
+
if (tag !== 64) {
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
message.city_id = reader.int32();
|
|
142
|
+
continue;
|
|
143
|
+
case 9:
|
|
144
|
+
if (tag !== 74) {
|
|
145
|
+
break;
|
|
146
|
+
}
|
|
147
|
+
message.pin_code = reader.string();
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
reader.skipType(tag & 7);
|
|
154
|
+
}
|
|
155
|
+
return message;
|
|
156
|
+
},
|
|
157
|
+
fromJSON(object) {
|
|
158
|
+
return {
|
|
159
|
+
address_type: isSet(object.address_type) ? addressTypeFromJSON(object.address_type) : 0,
|
|
160
|
+
house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
|
|
161
|
+
address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
|
|
162
|
+
address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
|
|
163
|
+
landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
|
|
164
|
+
state_id: isSet(object.state_id) ? globalThis.Number(object.state_id) : 0,
|
|
165
|
+
city_id: isSet(object.city_id) ? globalThis.Number(object.city_id) : 0,
|
|
166
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
toJSON(message) {
|
|
170
|
+
const obj = {};
|
|
171
|
+
if (message.address_type !== 0) {
|
|
172
|
+
obj.address_type = addressTypeToJSON(message.address_type);
|
|
173
|
+
}
|
|
174
|
+
if (message.house_flat_no !== "") {
|
|
175
|
+
obj.house_flat_no = message.house_flat_no;
|
|
176
|
+
}
|
|
177
|
+
if (message.address_line_1 !== "") {
|
|
178
|
+
obj.address_line_1 = message.address_line_1;
|
|
179
|
+
}
|
|
180
|
+
if (message.address_line_2 !== "") {
|
|
181
|
+
obj.address_line_2 = message.address_line_2;
|
|
182
|
+
}
|
|
183
|
+
if (message.landmark !== "") {
|
|
184
|
+
obj.landmark = message.landmark;
|
|
185
|
+
}
|
|
186
|
+
if (message.state_id !== 0) {
|
|
187
|
+
obj.state_id = Math.round(message.state_id);
|
|
188
|
+
}
|
|
189
|
+
if (message.city_id !== 0) {
|
|
190
|
+
obj.city_id = Math.round(message.city_id);
|
|
191
|
+
}
|
|
192
|
+
if (message.pin_code !== "") {
|
|
193
|
+
obj.pin_code = message.pin_code;
|
|
194
|
+
}
|
|
195
|
+
return obj;
|
|
196
|
+
},
|
|
197
|
+
create(base) {
|
|
198
|
+
return exports.addAddressRequest.fromPartial(base ?? {});
|
|
199
|
+
},
|
|
200
|
+
fromPartial(object) {
|
|
201
|
+
const message = createBaseaddAddressRequest();
|
|
202
|
+
message.address_type = object.address_type ?? 0;
|
|
203
|
+
message.house_flat_no = object.house_flat_no ?? "";
|
|
204
|
+
message.address_line_1 = object.address_line_1 ?? "";
|
|
205
|
+
message.address_line_2 = object.address_line_2 ?? "";
|
|
206
|
+
message.landmark = object.landmark ?? "";
|
|
207
|
+
message.state_id = object.state_id ?? 0;
|
|
208
|
+
message.city_id = object.city_id ?? 0;
|
|
209
|
+
message.pin_code = object.pin_code ?? "";
|
|
210
|
+
return message;
|
|
211
|
+
},
|
|
212
|
+
};
|
|
213
|
+
function createBaseaddAddressResponse() {
|
|
214
|
+
return { status: false };
|
|
215
|
+
}
|
|
216
|
+
exports.addAddressResponse = {
|
|
217
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
218
|
+
if (message.status !== false) {
|
|
219
|
+
writer.uint32(8).bool(message.status);
|
|
220
|
+
}
|
|
221
|
+
return writer;
|
|
222
|
+
},
|
|
223
|
+
decode(input, length) {
|
|
224
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
225
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
226
|
+
const message = createBaseaddAddressResponse();
|
|
227
|
+
while (reader.pos < end) {
|
|
228
|
+
const tag = reader.uint32();
|
|
229
|
+
switch (tag >>> 3) {
|
|
230
|
+
case 1:
|
|
231
|
+
if (tag !== 8) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
message.status = reader.bool();
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
reader.skipType(tag & 7);
|
|
241
|
+
}
|
|
242
|
+
return message;
|
|
243
|
+
},
|
|
244
|
+
fromJSON(object) {
|
|
245
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
246
|
+
},
|
|
247
|
+
toJSON(message) {
|
|
248
|
+
const obj = {};
|
|
249
|
+
if (message.status !== false) {
|
|
250
|
+
obj.status = message.status;
|
|
251
|
+
}
|
|
252
|
+
return obj;
|
|
253
|
+
},
|
|
254
|
+
create(base) {
|
|
255
|
+
return exports.addAddressResponse.fromPartial(base ?? {});
|
|
256
|
+
},
|
|
257
|
+
fromPartial(object) {
|
|
258
|
+
const message = createBaseaddAddressResponse();
|
|
259
|
+
message.status = object.status ?? false;
|
|
260
|
+
return message;
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
function isSet(value) {
|
|
264
|
+
return value !== null && value !== undefined;
|
|
265
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.addbankaccountdetails";
|
|
3
|
+
export interface addBankAccountDetailsRequest {
|
|
4
|
+
account_number: string;
|
|
5
|
+
bank_name: string;
|
|
6
|
+
ifsc_code: string;
|
|
7
|
+
}
|
|
8
|
+
export interface addBankAccountDetailsResponse {
|
|
9
|
+
id: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const addBankAccountDetailsRequest: {
|
|
12
|
+
encode(message: addBankAccountDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addBankAccountDetailsRequest;
|
|
14
|
+
fromJSON(object: any): addBankAccountDetailsRequest;
|
|
15
|
+
toJSON(message: addBankAccountDetailsRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<addBankAccountDetailsRequest>, I>>(base?: I): addBankAccountDetailsRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<addBankAccountDetailsRequest>, I>>(object: I): addBankAccountDetailsRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const addBankAccountDetailsResponse: {
|
|
20
|
+
encode(message: addBankAccountDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): addBankAccountDetailsResponse;
|
|
22
|
+
fromJSON(object: any): addBankAccountDetailsResponse;
|
|
23
|
+
toJSON(message: addBankAccountDetailsResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<addBankAccountDetailsResponse>, I>>(base?: I): addBankAccountDetailsResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<addBankAccountDetailsResponse>, I>>(object: I): addBankAccountDetailsResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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 {} ? {
|
|
29
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,147 @@
|
|
|
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/addbankaccountdetails.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.addBankAccountDetailsResponse = exports.addBankAccountDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.addbankaccountdetails";
|
|
15
|
+
function createBaseaddBankAccountDetailsRequest() {
|
|
16
|
+
return { account_number: "", bank_name: "", ifsc_code: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.addBankAccountDetailsRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.account_number !== "") {
|
|
21
|
+
writer.uint32(10).string(message.account_number);
|
|
22
|
+
}
|
|
23
|
+
if (message.bank_name !== "") {
|
|
24
|
+
writer.uint32(18).string(message.bank_name);
|
|
25
|
+
}
|
|
26
|
+
if (message.ifsc_code !== "") {
|
|
27
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseaddBankAccountDetailsRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.account_number = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.bank_name = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.ifsc_code = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
67
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
68
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.account_number !== "") {
|
|
74
|
+
obj.account_number = message.account_number;
|
|
75
|
+
}
|
|
76
|
+
if (message.bank_name !== "") {
|
|
77
|
+
obj.bank_name = message.bank_name;
|
|
78
|
+
}
|
|
79
|
+
if (message.ifsc_code !== "") {
|
|
80
|
+
obj.ifsc_code = message.ifsc_code;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.addBankAccountDetailsRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseaddBankAccountDetailsRequest();
|
|
89
|
+
message.account_number = object.account_number ?? "";
|
|
90
|
+
message.bank_name = object.bank_name ?? "";
|
|
91
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseaddBankAccountDetailsResponse() {
|
|
96
|
+
return { id: 0 };
|
|
97
|
+
}
|
|
98
|
+
exports.addBankAccountDetailsResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.id !== 0) {
|
|
101
|
+
writer.uint32(8).int32(message.id);
|
|
102
|
+
}
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseaddBankAccountDetailsResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 8) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.id = reader.int32();
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
reader.skipType(tag & 7);
|
|
123
|
+
}
|
|
124
|
+
return message;
|
|
125
|
+
},
|
|
126
|
+
fromJSON(object) {
|
|
127
|
+
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.id !== 0) {
|
|
132
|
+
obj.id = Math.round(message.id);
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.addBankAccountDetailsResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseaddBankAccountDetailsResponse();
|
|
141
|
+
message.id = object.id ?? 0;
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function isSet(value) {
|
|
146
|
+
return value !== null && value !== undefined;
|
|
147
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.createcustomerreference";
|
|
3
|
+
export interface createCustomerReferenceRequest {
|
|
4
|
+
reference_name: string;
|
|
5
|
+
relationship: string;
|
|
6
|
+
mobile_number: string;
|
|
7
|
+
/** optional */
|
|
8
|
+
email: string;
|
|
9
|
+
address: string;
|
|
10
|
+
pincode: string;
|
|
11
|
+
state_id: number;
|
|
12
|
+
city_id: number;
|
|
13
|
+
}
|
|
14
|
+
export interface createCustomerReferenceResponse {
|
|
15
|
+
reference_id: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const createCustomerReferenceRequest: {
|
|
18
|
+
encode(message: createCustomerReferenceRequest, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createCustomerReferenceRequest;
|
|
20
|
+
fromJSON(object: any): createCustomerReferenceRequest;
|
|
21
|
+
toJSON(message: createCustomerReferenceRequest): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<createCustomerReferenceRequest>, I>>(base?: I): createCustomerReferenceRequest;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<createCustomerReferenceRequest>, I>>(object: I): createCustomerReferenceRequest;
|
|
24
|
+
};
|
|
25
|
+
export declare const createCustomerReferenceResponse: {
|
|
26
|
+
encode(message: createCustomerReferenceResponse, writer?: _m0.Writer): _m0.Writer;
|
|
27
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createCustomerReferenceResponse;
|
|
28
|
+
fromJSON(object: any): createCustomerReferenceResponse;
|
|
29
|
+
toJSON(message: createCustomerReferenceResponse): unknown;
|
|
30
|
+
create<I extends Exact<DeepPartial<createCustomerReferenceResponse>, I>>(base?: I): createCustomerReferenceResponse;
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<createCustomerReferenceResponse>, I>>(object: I): createCustomerReferenceResponse;
|
|
32
|
+
};
|
|
33
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
34
|
+
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 {} ? {
|
|
35
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
36
|
+
} : Partial<T>;
|
|
37
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
38
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
39
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
40
|
+
} & {
|
|
41
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
42
|
+
};
|
|
43
|
+
export {};
|