@stashfin/grpc 1.2.154 → 1.2.156
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 +1 -1
- package/ts/customers/getcompanyaccdetails.d.ts +37 -0
- package/ts/customers/getcompanyaccdetails.js +148 -0
- package/ts/customers/getdocuments.d.ts +13 -3
- package/ts/customers/getdocuments.js +72 -32
- package/ts/customers/logout.d.ts +34 -0
- package/ts/customers/logout.js +104 -0
- package/ts/customers/profilebasic.d.ts +2 -0
- package/ts/customers/profilebasic.js +29 -1
- package/ts/customers/updatecustomerbyid.d.ts +48 -0
- package/ts/customers/updatecustomerbyid.js +201 -0
- package/ts/customers/uploaddocuments.d.ts +37 -0
- package/ts/customers/uploaddocuments.js +172 -0
- package/ts/customers.d.ts +56 -0
- package/ts/customers.js +40 -0
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getcompanyaccdetails";
|
|
3
|
+
export interface getCompanyAccDetailsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getCompanyAccDetailsResponse {
|
|
6
|
+
account_number: string;
|
|
7
|
+
account_name: string;
|
|
8
|
+
ifsc_code: string;
|
|
9
|
+
bank_name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getCompanyAccDetailsRequest: {
|
|
12
|
+
encode(_: getCompanyAccDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCompanyAccDetailsRequest;
|
|
14
|
+
fromJSON(_: any): getCompanyAccDetailsRequest;
|
|
15
|
+
toJSON(_: getCompanyAccDetailsRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<getCompanyAccDetailsRequest>, I>>(base?: I): getCompanyAccDetailsRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<getCompanyAccDetailsRequest>, I>>(_: I): getCompanyAccDetailsRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const getCompanyAccDetailsResponse: {
|
|
20
|
+
encode(message: getCompanyAccDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCompanyAccDetailsResponse;
|
|
22
|
+
fromJSON(object: any): getCompanyAccDetailsResponse;
|
|
23
|
+
toJSON(message: getCompanyAccDetailsResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<getCompanyAccDetailsResponse>, I>>(base?: I): getCompanyAccDetailsResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<getCompanyAccDetailsResponse>, I>>(object: I): getCompanyAccDetailsResponse;
|
|
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,148 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/getcompanyaccdetails.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.getCompanyAccDetailsResponse = exports.getCompanyAccDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getcompanyaccdetails";
|
|
15
|
+
function createBasegetCompanyAccDetailsRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getCompanyAccDetailsRequest = {
|
|
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 = createBasegetCompanyAccDetailsRequest();
|
|
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.getCompanyAccDetailsRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetCompanyAccDetailsRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetCompanyAccDetailsResponse() {
|
|
53
|
+
return { account_number: "", account_name: "", ifsc_code: "", bank_name: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getCompanyAccDetailsResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.account_number !== "") {
|
|
58
|
+
writer.uint32(10).string(message.account_number);
|
|
59
|
+
}
|
|
60
|
+
if (message.account_name !== "") {
|
|
61
|
+
writer.uint32(18).string(message.account_name);
|
|
62
|
+
}
|
|
63
|
+
if (message.ifsc_code !== "") {
|
|
64
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
65
|
+
}
|
|
66
|
+
if (message.bank_name !== "") {
|
|
67
|
+
writer.uint32(34).string(message.bank_name);
|
|
68
|
+
}
|
|
69
|
+
return writer;
|
|
70
|
+
},
|
|
71
|
+
decode(input, length) {
|
|
72
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
73
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBasegetCompanyAccDetailsResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1:
|
|
79
|
+
if (tag !== 10) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.account_number = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
case 2:
|
|
85
|
+
if (tag !== 18) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.account_name = reader.string();
|
|
89
|
+
continue;
|
|
90
|
+
case 3:
|
|
91
|
+
if (tag !== 26) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.ifsc_code = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 4:
|
|
97
|
+
if (tag !== 34) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.bank_name = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
reader.skipType(tag & 7);
|
|
107
|
+
}
|
|
108
|
+
return message;
|
|
109
|
+
},
|
|
110
|
+
fromJSON(object) {
|
|
111
|
+
return {
|
|
112
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
113
|
+
account_name: isSet(object.account_name) ? globalThis.String(object.account_name) : "",
|
|
114
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
115
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
116
|
+
};
|
|
117
|
+
},
|
|
118
|
+
toJSON(message) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
if (message.account_number !== "") {
|
|
121
|
+
obj.account_number = message.account_number;
|
|
122
|
+
}
|
|
123
|
+
if (message.account_name !== "") {
|
|
124
|
+
obj.account_name = message.account_name;
|
|
125
|
+
}
|
|
126
|
+
if (message.ifsc_code !== "") {
|
|
127
|
+
obj.ifsc_code = message.ifsc_code;
|
|
128
|
+
}
|
|
129
|
+
if (message.bank_name !== "") {
|
|
130
|
+
obj.bank_name = message.bank_name;
|
|
131
|
+
}
|
|
132
|
+
return obj;
|
|
133
|
+
},
|
|
134
|
+
create(base) {
|
|
135
|
+
return exports.getCompanyAccDetailsResponse.fromPartial(base ?? {});
|
|
136
|
+
},
|
|
137
|
+
fromPartial(object) {
|
|
138
|
+
const message = createBasegetCompanyAccDetailsResponse();
|
|
139
|
+
message.account_number = object.account_number ?? "";
|
|
140
|
+
message.account_name = object.account_name ?? "";
|
|
141
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
142
|
+
message.bank_name = object.bank_name ?? "";
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function isSet(value) {
|
|
147
|
+
return value !== null && value !== undefined;
|
|
148
|
+
}
|
|
@@ -3,9 +3,11 @@ export declare const protobufPackage = "customers.getdocuments";
|
|
|
3
3
|
export interface getDocumentsRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getDocumentsResponse {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
documents: Document[];
|
|
7
|
+
}
|
|
8
|
+
export interface Document {
|
|
9
|
+
name: string;
|
|
10
|
+
doc_url: string;
|
|
9
11
|
}
|
|
10
12
|
export declare const getDocumentsRequest: {
|
|
11
13
|
encode(_: getDocumentsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -23,6 +25,14 @@ export declare const getDocumentsResponse: {
|
|
|
23
25
|
create<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(base?: I): getDocumentsResponse;
|
|
24
26
|
fromPartial<I extends Exact<DeepPartial<getDocumentsResponse>, I>>(object: I): getDocumentsResponse;
|
|
25
27
|
};
|
|
28
|
+
export declare const Document: {
|
|
29
|
+
encode(message: Document, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Document;
|
|
31
|
+
fromJSON(object: any): Document;
|
|
32
|
+
toJSON(message: Document): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<Document>, I>>(base?: I): Document;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<Document>, I>>(object: I): Document;
|
|
35
|
+
};
|
|
26
36
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
37
|
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
38
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getDocumentsResponse = exports.getDocumentsRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.Document = exports.getDocumentsResponse = exports.getDocumentsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.getdocuments";
|
|
@@ -50,18 +50,12 @@ exports.getDocumentsRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetDocumentsResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { documents: [] };
|
|
54
54
|
}
|
|
55
55
|
exports.getDocumentsResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
|
|
58
|
-
writer.uint32(10).
|
|
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);
|
|
57
|
+
for (const v of message.documents) {
|
|
58
|
+
exports.Document.encode(v, writer.uint32(10).fork()).ldelim();
|
|
65
59
|
}
|
|
66
60
|
return writer;
|
|
67
61
|
},
|
|
@@ -76,19 +70,70 @@ exports.getDocumentsResponse = {
|
|
|
76
70
|
if (tag !== 10) {
|
|
77
71
|
break;
|
|
78
72
|
}
|
|
79
|
-
message.
|
|
73
|
+
message.documents.push(exports.Document.decode(reader, reader.uint32()));
|
|
80
74
|
continue;
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return {
|
|
85
|
+
documents: globalThis.Array.isArray(object?.documents)
|
|
86
|
+
? object.documents.map((e) => exports.Document.fromJSON(e))
|
|
87
|
+
: [],
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
toJSON(message) {
|
|
91
|
+
const obj = {};
|
|
92
|
+
if (message.documents?.length) {
|
|
93
|
+
obj.documents = message.documents.map((e) => exports.Document.toJSON(e));
|
|
94
|
+
}
|
|
95
|
+
return obj;
|
|
96
|
+
},
|
|
97
|
+
create(base) {
|
|
98
|
+
return exports.getDocumentsResponse.fromPartial(base ?? {});
|
|
99
|
+
},
|
|
100
|
+
fromPartial(object) {
|
|
101
|
+
const message = createBasegetDocumentsResponse();
|
|
102
|
+
message.documents = object.documents?.map((e) => exports.Document.fromPartial(e)) || [];
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
function createBaseDocument() {
|
|
107
|
+
return { name: "", doc_url: "" };
|
|
108
|
+
}
|
|
109
|
+
exports.Document = {
|
|
110
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
111
|
+
if (message.name !== "") {
|
|
112
|
+
writer.uint32(10).string(message.name);
|
|
113
|
+
}
|
|
114
|
+
if (message.doc_url !== "") {
|
|
115
|
+
writer.uint32(18).string(message.doc_url);
|
|
116
|
+
}
|
|
117
|
+
return writer;
|
|
118
|
+
},
|
|
119
|
+
decode(input, length) {
|
|
120
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
121
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
122
|
+
const message = createBaseDocument();
|
|
123
|
+
while (reader.pos < end) {
|
|
124
|
+
const tag = reader.uint32();
|
|
125
|
+
switch (tag >>> 3) {
|
|
126
|
+
case 1:
|
|
127
|
+
if (tag !== 10) {
|
|
83
128
|
break;
|
|
84
129
|
}
|
|
85
|
-
message.
|
|
130
|
+
message.name = reader.string();
|
|
86
131
|
continue;
|
|
87
|
-
case
|
|
88
|
-
if (tag !==
|
|
132
|
+
case 2:
|
|
133
|
+
if (tag !== 18) {
|
|
89
134
|
break;
|
|
90
135
|
}
|
|
91
|
-
message.
|
|
136
|
+
message.doc_url = reader.string();
|
|
92
137
|
continue;
|
|
93
138
|
}
|
|
94
139
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -100,32 +145,27 @@ exports.getDocumentsResponse = {
|
|
|
100
145
|
},
|
|
101
146
|
fromJSON(object) {
|
|
102
147
|
return {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
pan_url: isSet(object.pan_url) ? globalThis.String(object.pan_url) : "",
|
|
148
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
149
|
+
doc_url: isSet(object.doc_url) ? globalThis.String(object.doc_url) : "",
|
|
106
150
|
};
|
|
107
151
|
},
|
|
108
152
|
toJSON(message) {
|
|
109
153
|
const obj = {};
|
|
110
|
-
if (message.
|
|
111
|
-
obj.
|
|
154
|
+
if (message.name !== "") {
|
|
155
|
+
obj.name = message.name;
|
|
112
156
|
}
|
|
113
|
-
if (message.
|
|
114
|
-
obj.
|
|
115
|
-
}
|
|
116
|
-
if (message.pan_url !== "") {
|
|
117
|
-
obj.pan_url = message.pan_url;
|
|
157
|
+
if (message.doc_url !== "") {
|
|
158
|
+
obj.doc_url = message.doc_url;
|
|
118
159
|
}
|
|
119
160
|
return obj;
|
|
120
161
|
},
|
|
121
162
|
create(base) {
|
|
122
|
-
return exports.
|
|
163
|
+
return exports.Document.fromPartial(base ?? {});
|
|
123
164
|
},
|
|
124
165
|
fromPartial(object) {
|
|
125
|
-
const message =
|
|
126
|
-
message.
|
|
127
|
-
message.
|
|
128
|
-
message.pan_url = object.pan_url ?? "";
|
|
166
|
+
const message = createBaseDocument();
|
|
167
|
+
message.name = object.name ?? "";
|
|
168
|
+
message.doc_url = object.doc_url ?? "";
|
|
129
169
|
return message;
|
|
130
170
|
},
|
|
131
171
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.logout";
|
|
3
|
+
export interface logoutRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface logoutResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const logoutRequest: {
|
|
9
|
+
encode(_: logoutRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): logoutRequest;
|
|
11
|
+
fromJSON(_: any): logoutRequest;
|
|
12
|
+
toJSON(_: logoutRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<logoutRequest>, I>>(base?: I): logoutRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<logoutRequest>, I>>(_: I): logoutRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const logoutResponse: {
|
|
17
|
+
encode(message: logoutResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): logoutResponse;
|
|
19
|
+
fromJSON(object: any): logoutResponse;
|
|
20
|
+
toJSON(message: logoutResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<logoutResponse>, I>>(base?: I): logoutResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<logoutResponse>, I>>(object: I): logoutResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/logout.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.logoutResponse = exports.logoutRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.logout";
|
|
15
|
+
function createBaselogoutRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.logoutRequest = {
|
|
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 = createBaselogoutRequest();
|
|
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.logoutRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaselogoutRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaselogoutResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.logoutResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaselogoutResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.logoutResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaselogoutResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -13,7 +13,7 @@ exports.updateProfileBasicResponse = exports.updateProfileBasicRequest = exports
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.profilebasic";
|
|
15
15
|
function createBaseupdateProfileBasicRequest() {
|
|
16
|
-
return { language: "", app_version: "", device_id: "", os_version: "" };
|
|
16
|
+
return { language: "", app_version: "", device_id: "", os_version: "", longitude: 0, latitude: 0 };
|
|
17
17
|
}
|
|
18
18
|
exports.updateProfileBasicRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -29,6 +29,12 @@ exports.updateProfileBasicRequest = {
|
|
|
29
29
|
if (message.os_version !== "") {
|
|
30
30
|
writer.uint32(34).string(message.os_version);
|
|
31
31
|
}
|
|
32
|
+
if (message.longitude !== 0) {
|
|
33
|
+
writer.uint32(41).double(message.longitude);
|
|
34
|
+
}
|
|
35
|
+
if (message.latitude !== 0) {
|
|
36
|
+
writer.uint32(49).double(message.latitude);
|
|
37
|
+
}
|
|
32
38
|
return writer;
|
|
33
39
|
},
|
|
34
40
|
decode(input, length) {
|
|
@@ -62,6 +68,18 @@ exports.updateProfileBasicRequest = {
|
|
|
62
68
|
}
|
|
63
69
|
message.os_version = reader.string();
|
|
64
70
|
continue;
|
|
71
|
+
case 5:
|
|
72
|
+
if (tag !== 41) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
message.longitude = reader.double();
|
|
76
|
+
continue;
|
|
77
|
+
case 6:
|
|
78
|
+
if (tag !== 49) {
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
message.latitude = reader.double();
|
|
82
|
+
continue;
|
|
65
83
|
}
|
|
66
84
|
if ((tag & 7) === 4 || tag === 0) {
|
|
67
85
|
break;
|
|
@@ -76,6 +94,8 @@ exports.updateProfileBasicRequest = {
|
|
|
76
94
|
app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : "",
|
|
77
95
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
78
96
|
os_version: isSet(object.os_version) ? globalThis.String(object.os_version) : "",
|
|
97
|
+
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
98
|
+
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
79
99
|
};
|
|
80
100
|
},
|
|
81
101
|
toJSON(message) {
|
|
@@ -92,6 +112,12 @@ exports.updateProfileBasicRequest = {
|
|
|
92
112
|
if (message.os_version !== "") {
|
|
93
113
|
obj.os_version = message.os_version;
|
|
94
114
|
}
|
|
115
|
+
if (message.longitude !== 0) {
|
|
116
|
+
obj.longitude = message.longitude;
|
|
117
|
+
}
|
|
118
|
+
if (message.latitude !== 0) {
|
|
119
|
+
obj.latitude = message.latitude;
|
|
120
|
+
}
|
|
95
121
|
return obj;
|
|
96
122
|
},
|
|
97
123
|
create(base) {
|
|
@@ -103,6 +129,8 @@ exports.updateProfileBasicRequest = {
|
|
|
103
129
|
message.app_version = object.app_version ?? "";
|
|
104
130
|
message.device_id = object.device_id ?? "";
|
|
105
131
|
message.os_version = object.os_version ?? "";
|
|
132
|
+
message.longitude = object.longitude ?? 0;
|
|
133
|
+
message.latitude = object.latitude ?? 0;
|
|
106
134
|
return message;
|
|
107
135
|
},
|
|
108
136
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatecustomerbyid";
|
|
3
|
+
export interface updateCustomerByIdRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
updatedata: UpdateField[];
|
|
6
|
+
}
|
|
7
|
+
export interface UpdateField {
|
|
8
|
+
key: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface updateCustomerByIdResponse {
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const updateCustomerByIdRequest: {
|
|
15
|
+
encode(message: updateCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerByIdRequest;
|
|
17
|
+
fromJSON(object: any): updateCustomerByIdRequest;
|
|
18
|
+
toJSON(message: updateCustomerByIdRequest): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<updateCustomerByIdRequest>, I>>(base?: I): updateCustomerByIdRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerByIdRequest>, I>>(object: I): updateCustomerByIdRequest;
|
|
21
|
+
};
|
|
22
|
+
export declare const UpdateField: {
|
|
23
|
+
encode(message: UpdateField, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateField;
|
|
25
|
+
fromJSON(object: any): UpdateField;
|
|
26
|
+
toJSON(message: UpdateField): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<UpdateField>, I>>(base?: I): UpdateField;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<UpdateField>, I>>(object: I): UpdateField;
|
|
29
|
+
};
|
|
30
|
+
export declare const updateCustomerByIdResponse: {
|
|
31
|
+
encode(message: updateCustomerByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCustomerByIdResponse;
|
|
33
|
+
fromJSON(object: any): updateCustomerByIdResponse;
|
|
34
|
+
toJSON(message: updateCustomerByIdResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<updateCustomerByIdResponse>, I>>(base?: I): updateCustomerByIdResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<updateCustomerByIdResponse>, I>>(object: I): updateCustomerByIdResponse;
|
|
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,201 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/updatecustomerbyid.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.updateCustomerByIdResponse = exports.UpdateField = exports.updateCustomerByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatecustomerbyid";
|
|
15
|
+
function createBaseupdateCustomerByIdRequest() {
|
|
16
|
+
return { customer_id: 0, updatedata: [] };
|
|
17
|
+
}
|
|
18
|
+
exports.updateCustomerByIdRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
for (const v of message.updatedata) {
|
|
24
|
+
exports.UpdateField.encode(v, writer.uint32(18).fork()).ldelim();
|
|
25
|
+
}
|
|
26
|
+
return writer;
|
|
27
|
+
},
|
|
28
|
+
decode(input, length) {
|
|
29
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
+
const message = createBaseupdateCustomerByIdRequest();
|
|
32
|
+
while (reader.pos < end) {
|
|
33
|
+
const tag = reader.uint32();
|
|
34
|
+
switch (tag >>> 3) {
|
|
35
|
+
case 1:
|
|
36
|
+
if (tag !== 8) {
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
message.customer_id = reader.int32();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.updatedata.push(exports.UpdateField.decode(reader, reader.uint32()));
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
reader.skipType(tag & 7);
|
|
52
|
+
}
|
|
53
|
+
return message;
|
|
54
|
+
},
|
|
55
|
+
fromJSON(object) {
|
|
56
|
+
return {
|
|
57
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
58
|
+
updatedata: globalThis.Array.isArray(object?.updatedata)
|
|
59
|
+
? object.updatedata.map((e) => exports.UpdateField.fromJSON(e))
|
|
60
|
+
: [],
|
|
61
|
+
};
|
|
62
|
+
},
|
|
63
|
+
toJSON(message) {
|
|
64
|
+
const obj = {};
|
|
65
|
+
if (message.customer_id !== 0) {
|
|
66
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
67
|
+
}
|
|
68
|
+
if (message.updatedata?.length) {
|
|
69
|
+
obj.updatedata = message.updatedata.map((e) => exports.UpdateField.toJSON(e));
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
72
|
+
},
|
|
73
|
+
create(base) {
|
|
74
|
+
return exports.updateCustomerByIdRequest.fromPartial(base ?? {});
|
|
75
|
+
},
|
|
76
|
+
fromPartial(object) {
|
|
77
|
+
const message = createBaseupdateCustomerByIdRequest();
|
|
78
|
+
message.customer_id = object.customer_id ?? 0;
|
|
79
|
+
message.updatedata = object.updatedata?.map((e) => exports.UpdateField.fromPartial(e)) || [];
|
|
80
|
+
return message;
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
function createBaseUpdateField() {
|
|
84
|
+
return { key: "", value: "" };
|
|
85
|
+
}
|
|
86
|
+
exports.UpdateField = {
|
|
87
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
88
|
+
if (message.key !== "") {
|
|
89
|
+
writer.uint32(10).string(message.key);
|
|
90
|
+
}
|
|
91
|
+
if (message.value !== "") {
|
|
92
|
+
writer.uint32(18).string(message.value);
|
|
93
|
+
}
|
|
94
|
+
return writer;
|
|
95
|
+
},
|
|
96
|
+
decode(input, length) {
|
|
97
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
98
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
99
|
+
const message = createBaseUpdateField();
|
|
100
|
+
while (reader.pos < end) {
|
|
101
|
+
const tag = reader.uint32();
|
|
102
|
+
switch (tag >>> 3) {
|
|
103
|
+
case 1:
|
|
104
|
+
if (tag !== 10) {
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
message.key = reader.string();
|
|
108
|
+
continue;
|
|
109
|
+
case 2:
|
|
110
|
+
if (tag !== 18) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.value = reader.string();
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
117
|
+
break;
|
|
118
|
+
}
|
|
119
|
+
reader.skipType(tag & 7);
|
|
120
|
+
}
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
fromJSON(object) {
|
|
124
|
+
return {
|
|
125
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
126
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.key !== "") {
|
|
132
|
+
obj.key = message.key;
|
|
133
|
+
}
|
|
134
|
+
if (message.value !== "") {
|
|
135
|
+
obj.value = message.value;
|
|
136
|
+
}
|
|
137
|
+
return obj;
|
|
138
|
+
},
|
|
139
|
+
create(base) {
|
|
140
|
+
return exports.UpdateField.fromPartial(base ?? {});
|
|
141
|
+
},
|
|
142
|
+
fromPartial(object) {
|
|
143
|
+
const message = createBaseUpdateField();
|
|
144
|
+
message.key = object.key ?? "";
|
|
145
|
+
message.value = object.value ?? "";
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
function createBaseupdateCustomerByIdResponse() {
|
|
150
|
+
return { status: "" };
|
|
151
|
+
}
|
|
152
|
+
exports.updateCustomerByIdResponse = {
|
|
153
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
154
|
+
if (message.status !== "") {
|
|
155
|
+
writer.uint32(10).string(message.status);
|
|
156
|
+
}
|
|
157
|
+
return writer;
|
|
158
|
+
},
|
|
159
|
+
decode(input, length) {
|
|
160
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
161
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
162
|
+
const message = createBaseupdateCustomerByIdResponse();
|
|
163
|
+
while (reader.pos < end) {
|
|
164
|
+
const tag = reader.uint32();
|
|
165
|
+
switch (tag >>> 3) {
|
|
166
|
+
case 1:
|
|
167
|
+
if (tag !== 10) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
message.status = reader.string();
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
reader.skipType(tag & 7);
|
|
177
|
+
}
|
|
178
|
+
return message;
|
|
179
|
+
},
|
|
180
|
+
fromJSON(object) {
|
|
181
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
182
|
+
},
|
|
183
|
+
toJSON(message) {
|
|
184
|
+
const obj = {};
|
|
185
|
+
if (message.status !== "") {
|
|
186
|
+
obj.status = message.status;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.updateCustomerByIdResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBaseupdateCustomerByIdResponse();
|
|
195
|
+
message.status = object.status ?? "";
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
function isSet(value) {
|
|
200
|
+
return value !== null && value !== undefined;
|
|
201
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.uploaddocuments";
|
|
3
|
+
export interface uploadDocumentsRequest {
|
|
4
|
+
title: string;
|
|
5
|
+
file: Uint8Array;
|
|
6
|
+
fileType: string;
|
|
7
|
+
}
|
|
8
|
+
export interface uploadDocumentsResponse {
|
|
9
|
+
status: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const uploadDocumentsRequest: {
|
|
12
|
+
encode(message: uploadDocumentsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): uploadDocumentsRequest;
|
|
14
|
+
fromJSON(object: any): uploadDocumentsRequest;
|
|
15
|
+
toJSON(message: uploadDocumentsRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<uploadDocumentsRequest>, I>>(base?: I): uploadDocumentsRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<uploadDocumentsRequest>, I>>(object: I): uploadDocumentsRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const uploadDocumentsResponse: {
|
|
20
|
+
encode(message: uploadDocumentsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): uploadDocumentsResponse;
|
|
22
|
+
fromJSON(object: any): uploadDocumentsResponse;
|
|
23
|
+
toJSON(message: uploadDocumentsResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<uploadDocumentsResponse>, I>>(base?: I): uploadDocumentsResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<uploadDocumentsResponse>, I>>(object: I): uploadDocumentsResponse;
|
|
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,172 @@
|
|
|
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.27.3
|
|
6
|
+
// source: customers/uploaddocuments.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.uploadDocumentsResponse = exports.uploadDocumentsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.uploaddocuments";
|
|
15
|
+
function createBaseuploadDocumentsRequest() {
|
|
16
|
+
return { title: "", file: new Uint8Array(0), fileType: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.uploadDocumentsRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.title !== "") {
|
|
21
|
+
writer.uint32(10).string(message.title);
|
|
22
|
+
}
|
|
23
|
+
if (message.file.length !== 0) {
|
|
24
|
+
writer.uint32(18).bytes(message.file);
|
|
25
|
+
}
|
|
26
|
+
if (message.fileType !== "") {
|
|
27
|
+
writer.uint32(26).string(message.fileType);
|
|
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 = createBaseuploadDocumentsRequest();
|
|
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.title = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.file = reader.bytes();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.fileType = 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
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
67
|
+
file: isSet(object.file) ? bytesFromBase64(object.file) : new Uint8Array(0),
|
|
68
|
+
fileType: isSet(object.fileType) ? globalThis.String(object.fileType) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.title !== "") {
|
|
74
|
+
obj.title = message.title;
|
|
75
|
+
}
|
|
76
|
+
if (message.file.length !== 0) {
|
|
77
|
+
obj.file = base64FromBytes(message.file);
|
|
78
|
+
}
|
|
79
|
+
if (message.fileType !== "") {
|
|
80
|
+
obj.fileType = message.fileType;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.uploadDocumentsRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseuploadDocumentsRequest();
|
|
89
|
+
message.title = object.title ?? "";
|
|
90
|
+
message.file = object.file ?? new Uint8Array(0);
|
|
91
|
+
message.fileType = object.fileType ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseuploadDocumentsResponse() {
|
|
96
|
+
return { status: "" };
|
|
97
|
+
}
|
|
98
|
+
exports.uploadDocumentsResponse = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.status !== "") {
|
|
101
|
+
writer.uint32(10).string(message.status);
|
|
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 = createBaseuploadDocumentsResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
case 1:
|
|
113
|
+
if (tag !== 10) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.status = reader.string();
|
|
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 { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
128
|
+
},
|
|
129
|
+
toJSON(message) {
|
|
130
|
+
const obj = {};
|
|
131
|
+
if (message.status !== "") {
|
|
132
|
+
obj.status = message.status;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.uploadDocumentsResponse.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBaseuploadDocumentsResponse();
|
|
141
|
+
message.status = object.status ?? "";
|
|
142
|
+
return message;
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
function bytesFromBase64(b64) {
|
|
146
|
+
if (globalThis.Buffer) {
|
|
147
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
const bin = globalThis.atob(b64);
|
|
151
|
+
const arr = new Uint8Array(bin.length);
|
|
152
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
153
|
+
arr[i] = bin.charCodeAt(i);
|
|
154
|
+
}
|
|
155
|
+
return arr;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
function base64FromBytes(arr) {
|
|
159
|
+
if (globalThis.Buffer) {
|
|
160
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
const bin = [];
|
|
164
|
+
arr.forEach((byte) => {
|
|
165
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
166
|
+
});
|
|
167
|
+
return globalThis.btoa(bin.join(""));
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function isSet(value) {
|
|
171
|
+
return value !== null && value !== undefined;
|
|
172
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { forgotMpinVerifyRequest, forgotMpinVerifyResponse } from "./customers/f
|
|
|
17
17
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
18
18
|
import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasicinfo";
|
|
19
19
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
20
|
+
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
20
21
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
21
22
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
22
23
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
@@ -27,6 +28,7 @@ import { getCustomerProfileRequest, getCustomerProfileResponse } from "./custome
|
|
|
27
28
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
28
29
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
29
30
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
31
|
+
import { logoutRequest, logoutResponse } from "./customers/logout";
|
|
30
32
|
import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
|
|
31
33
|
import { updateTncRequest, updateTncResponse } from "./customers/profileupdatetnc";
|
|
32
34
|
import { saveBasicDetailsRequest, saveBasicDetailsResponse } from "./customers/savebasicdetails";
|
|
@@ -35,6 +37,7 @@ import { sendOtpRequest, sendOtpRespone } from "./customers/sendotp";
|
|
|
35
37
|
import { sendEmailOtpRequest, sendEmailOtpResponse } from "./customers/sendotptoemail";
|
|
36
38
|
import { setMpinRequest, setMpinResponse } from "./customers/setmpin";
|
|
37
39
|
import { skipDlRcScreenRequest, skipDlRcScreenResponse } from "./customers/skipdlrcscreen";
|
|
40
|
+
import { updateCustomerByIdRequest, updateCustomerByIdResponse } from "./customers/updatecustomerbyid";
|
|
38
41
|
import { updateDlNumberRequest, updateDlNumberResponse } from "./customers/updatedlnumber";
|
|
39
42
|
import { updateDOBRequest, updateDOBResponse } from "./customers/updatedob";
|
|
40
43
|
import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus";
|
|
@@ -43,6 +46,7 @@ import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./c
|
|
|
43
46
|
import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
|
|
44
47
|
import { updateSelfieeTxnRequest, updateSelfieeTxnResponse } from "./customers/updateselfieetxn";
|
|
45
48
|
import { updateVehicleNumberRequest, updateVehicleNumberResponse } from "./customers/updatevehiclenumber";
|
|
49
|
+
import { uploadDocumentsRequest, uploadDocumentsResponse } from "./customers/uploaddocuments";
|
|
46
50
|
import { validatePanRequest, validatePanResponse } from "./customers/validatepan";
|
|
47
51
|
import { verifyMpinRequest, verifyMpinResponse } from "./customers/verifympin";
|
|
48
52
|
import { verifyOtpReqeust, verifyOtpResponse } from "./customers/verifyotp";
|
|
@@ -500,6 +504,42 @@ export declare const customersService: {
|
|
|
500
504
|
readonly responseSerialize: (value: skipDlRcScreenResponse) => Buffer;
|
|
501
505
|
readonly responseDeserialize: (value: Buffer) => skipDlRcScreenResponse;
|
|
502
506
|
};
|
|
507
|
+
readonly updateCustomerById: {
|
|
508
|
+
readonly path: "/service.customers/updateCustomerById";
|
|
509
|
+
readonly requestStream: false;
|
|
510
|
+
readonly responseStream: false;
|
|
511
|
+
readonly requestSerialize: (value: updateCustomerByIdRequest) => Buffer;
|
|
512
|
+
readonly requestDeserialize: (value: Buffer) => updateCustomerByIdRequest;
|
|
513
|
+
readonly responseSerialize: (value: updateCustomerByIdResponse) => Buffer;
|
|
514
|
+
readonly responseDeserialize: (value: Buffer) => updateCustomerByIdResponse;
|
|
515
|
+
};
|
|
516
|
+
readonly uploadDocuments: {
|
|
517
|
+
readonly path: "/service.customers/uploadDocuments";
|
|
518
|
+
readonly requestStream: false;
|
|
519
|
+
readonly responseStream: false;
|
|
520
|
+
readonly requestSerialize: (value: uploadDocumentsRequest) => Buffer;
|
|
521
|
+
readonly requestDeserialize: (value: Buffer) => uploadDocumentsRequest;
|
|
522
|
+
readonly responseSerialize: (value: uploadDocumentsResponse) => Buffer;
|
|
523
|
+
readonly responseDeserialize: (value: Buffer) => uploadDocumentsResponse;
|
|
524
|
+
};
|
|
525
|
+
readonly logout: {
|
|
526
|
+
readonly path: "/service.customers/logout";
|
|
527
|
+
readonly requestStream: false;
|
|
528
|
+
readonly responseStream: false;
|
|
529
|
+
readonly requestSerialize: (value: logoutRequest) => Buffer;
|
|
530
|
+
readonly requestDeserialize: (value: Buffer) => logoutRequest;
|
|
531
|
+
readonly responseSerialize: (value: logoutResponse) => Buffer;
|
|
532
|
+
readonly responseDeserialize: (value: Buffer) => logoutResponse;
|
|
533
|
+
};
|
|
534
|
+
readonly getCompanyAccDetails: {
|
|
535
|
+
readonly path: "/service.customers/getCompanyAccDetails";
|
|
536
|
+
readonly requestStream: false;
|
|
537
|
+
readonly responseStream: false;
|
|
538
|
+
readonly requestSerialize: (value: getCompanyAccDetailsRequest) => Buffer;
|
|
539
|
+
readonly requestDeserialize: (value: Buffer) => getCompanyAccDetailsRequest;
|
|
540
|
+
readonly responseSerialize: (value: getCompanyAccDetailsResponse) => Buffer;
|
|
541
|
+
readonly responseDeserialize: (value: Buffer) => getCompanyAccDetailsResponse;
|
|
542
|
+
};
|
|
503
543
|
};
|
|
504
544
|
export interface customersServer extends UntypedServiceImplementation {
|
|
505
545
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -552,6 +592,10 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
552
592
|
updateVehicleNumber: handleUnaryCall<updateVehicleNumberRequest, updateVehicleNumberResponse>;
|
|
553
593
|
updateDlNumber: handleUnaryCall<updateDlNumberRequest, updateDlNumberResponse>;
|
|
554
594
|
skipDlRcScreen: handleUnaryCall<skipDlRcScreenRequest, skipDlRcScreenResponse>;
|
|
595
|
+
updateCustomerById: handleUnaryCall<updateCustomerByIdRequest, updateCustomerByIdResponse>;
|
|
596
|
+
uploadDocuments: handleUnaryCall<uploadDocumentsRequest, uploadDocumentsResponse>;
|
|
597
|
+
logout: handleUnaryCall<logoutRequest, logoutResponse>;
|
|
598
|
+
getCompanyAccDetails: handleUnaryCall<getCompanyAccDetailsRequest, getCompanyAccDetailsResponse>;
|
|
555
599
|
}
|
|
556
600
|
export interface customersClient extends Client {
|
|
557
601
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -704,6 +748,18 @@ export interface customersClient extends Client {
|
|
|
704
748
|
skipDlRcScreen(request: skipDlRcScreenRequest, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
705
749
|
skipDlRcScreen(request: skipDlRcScreenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
706
750
|
skipDlRcScreen(request: skipDlRcScreenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: skipDlRcScreenResponse) => void): ClientUnaryCall;
|
|
751
|
+
updateCustomerById(request: updateCustomerByIdRequest, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
752
|
+
updateCustomerById(request: updateCustomerByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
753
|
+
updateCustomerById(request: updateCustomerByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerByIdResponse) => void): ClientUnaryCall;
|
|
754
|
+
uploadDocuments(request: uploadDocumentsRequest, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
755
|
+
uploadDocuments(request: uploadDocumentsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
756
|
+
uploadDocuments(request: uploadDocumentsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: uploadDocumentsResponse) => void): ClientUnaryCall;
|
|
757
|
+
logout(request: logoutRequest, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
758
|
+
logout(request: logoutRequest, metadata: Metadata, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
759
|
+
logout(request: logoutRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: logoutResponse) => void): ClientUnaryCall;
|
|
760
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
761
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
762
|
+
getCompanyAccDetails(request: getCompanyAccDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCompanyAccDetailsResponse) => void): ClientUnaryCall;
|
|
707
763
|
}
|
|
708
764
|
export declare const customersClient: {
|
|
709
765
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -26,6 +26,7 @@ const forgotmpinverify_1 = require("./customers/forgotmpinverify");
|
|
|
26
26
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
27
27
|
const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
28
28
|
const getcities_1 = require("./customers/getcities");
|
|
29
|
+
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
29
30
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
30
31
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
31
32
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
@@ -36,6 +37,7 @@ const getprofile_1 = require("./customers/getprofile");
|
|
|
36
37
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
37
38
|
const getstates_1 = require("./customers/getstates");
|
|
38
39
|
const getstep_1 = require("./customers/getstep");
|
|
40
|
+
const logout_1 = require("./customers/logout");
|
|
39
41
|
const profilebasic_1 = require("./customers/profilebasic");
|
|
40
42
|
const profileupdatetnc_1 = require("./customers/profileupdatetnc");
|
|
41
43
|
const savebasicdetails_1 = require("./customers/savebasicdetails");
|
|
@@ -44,6 +46,7 @@ const sendotp_1 = require("./customers/sendotp");
|
|
|
44
46
|
const sendotptoemail_1 = require("./customers/sendotptoemail");
|
|
45
47
|
const setmpin_1 = require("./customers/setmpin");
|
|
46
48
|
const skipdlrcscreen_1 = require("./customers/skipdlrcscreen");
|
|
49
|
+
const updatecustomerbyid_1 = require("./customers/updatecustomerbyid");
|
|
47
50
|
const updatedlnumber_1 = require("./customers/updatedlnumber");
|
|
48
51
|
const updatedob_1 = require("./customers/updatedob");
|
|
49
52
|
const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
@@ -52,6 +55,7 @@ const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
|
52
55
|
const updateokyctxn_1 = require("./customers/updateokyctxn");
|
|
53
56
|
const updateselfieetxn_1 = require("./customers/updateselfieetxn");
|
|
54
57
|
const updatevehiclenumber_1 = require("./customers/updatevehiclenumber");
|
|
58
|
+
const uploaddocuments_1 = require("./customers/uploaddocuments");
|
|
55
59
|
const validatepan_1 = require("./customers/validatepan");
|
|
56
60
|
const verifympin_1 = require("./customers/verifympin");
|
|
57
61
|
const verifyotp_1 = require("./customers/verifyotp");
|
|
@@ -508,5 +512,41 @@ exports.customersService = {
|
|
|
508
512
|
responseSerialize: (value) => Buffer.from(skipdlrcscreen_1.skipDlRcScreenResponse.encode(value).finish()),
|
|
509
513
|
responseDeserialize: (value) => skipdlrcscreen_1.skipDlRcScreenResponse.decode(value),
|
|
510
514
|
},
|
|
515
|
+
updateCustomerById: {
|
|
516
|
+
path: "/service.customers/updateCustomerById",
|
|
517
|
+
requestStream: false,
|
|
518
|
+
responseStream: false,
|
|
519
|
+
requestSerialize: (value) => Buffer.from(updatecustomerbyid_1.updateCustomerByIdRequest.encode(value).finish()),
|
|
520
|
+
requestDeserialize: (value) => updatecustomerbyid_1.updateCustomerByIdRequest.decode(value),
|
|
521
|
+
responseSerialize: (value) => Buffer.from(updatecustomerbyid_1.updateCustomerByIdResponse.encode(value).finish()),
|
|
522
|
+
responseDeserialize: (value) => updatecustomerbyid_1.updateCustomerByIdResponse.decode(value),
|
|
523
|
+
},
|
|
524
|
+
uploadDocuments: {
|
|
525
|
+
path: "/service.customers/uploadDocuments",
|
|
526
|
+
requestStream: false,
|
|
527
|
+
responseStream: false,
|
|
528
|
+
requestSerialize: (value) => Buffer.from(uploaddocuments_1.uploadDocumentsRequest.encode(value).finish()),
|
|
529
|
+
requestDeserialize: (value) => uploaddocuments_1.uploadDocumentsRequest.decode(value),
|
|
530
|
+
responseSerialize: (value) => Buffer.from(uploaddocuments_1.uploadDocumentsResponse.encode(value).finish()),
|
|
531
|
+
responseDeserialize: (value) => uploaddocuments_1.uploadDocumentsResponse.decode(value),
|
|
532
|
+
},
|
|
533
|
+
logout: {
|
|
534
|
+
path: "/service.customers/logout",
|
|
535
|
+
requestStream: false,
|
|
536
|
+
responseStream: false,
|
|
537
|
+
requestSerialize: (value) => Buffer.from(logout_1.logoutRequest.encode(value).finish()),
|
|
538
|
+
requestDeserialize: (value) => logout_1.logoutRequest.decode(value),
|
|
539
|
+
responseSerialize: (value) => Buffer.from(logout_1.logoutResponse.encode(value).finish()),
|
|
540
|
+
responseDeserialize: (value) => logout_1.logoutResponse.decode(value),
|
|
541
|
+
},
|
|
542
|
+
getCompanyAccDetails: {
|
|
543
|
+
path: "/service.customers/getCompanyAccDetails",
|
|
544
|
+
requestStream: false,
|
|
545
|
+
responseStream: false,
|
|
546
|
+
requestSerialize: (value) => Buffer.from(getcompanyaccdetails_1.getCompanyAccDetailsRequest.encode(value).finish()),
|
|
547
|
+
requestDeserialize: (value) => getcompanyaccdetails_1.getCompanyAccDetailsRequest.decode(value),
|
|
548
|
+
responseSerialize: (value) => Buffer.from(getcompanyaccdetails_1.getCompanyAccDetailsResponse.encode(value).finish()),
|
|
549
|
+
responseDeserialize: (value) => getcompanyaccdetails_1.getCompanyAccDetailsResponse.decode(value),
|
|
550
|
+
},
|
|
511
551
|
};
|
|
512
552
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|