@stashfin/grpc 1.2.70 → 1.2.72
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/getprofile.d.ts +1 -1
- package/ts/customers/getprofile.js +16 -17
- package/ts/loans/sendemail.d.ts +35 -0
- package/ts/loans/sendemail.js +117 -0
- package/ts/loans/sendnocemail.d.ts +35 -0
- package/ts/loans/sendnocemail.js +117 -0
- package/ts/loans.d.ts +28 -0
- package/ts/loans.js +20 -0
package/package.json
CHANGED
|
@@ -9,13 +9,13 @@ export interface getCustomerProfileResponse {
|
|
|
9
9
|
profile_image: string;
|
|
10
10
|
email: string;
|
|
11
11
|
profile_completion_status: number;
|
|
12
|
-
action_type: string;
|
|
13
12
|
details: ProfileDetail[];
|
|
14
13
|
}
|
|
15
14
|
export interface ProfileDetail {
|
|
16
15
|
title: string;
|
|
17
16
|
status: boolean;
|
|
18
17
|
redirect_url: string;
|
|
18
|
+
action_type: string;
|
|
19
19
|
}
|
|
20
20
|
export declare const getCustomerProfileRequest: {
|
|
21
21
|
encode(_: getCustomerProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -57,7 +57,6 @@ function createBasegetCustomerProfileResponse() {
|
|
|
57
57
|
profile_image: "",
|
|
58
58
|
email: "",
|
|
59
59
|
profile_completion_status: 0,
|
|
60
|
-
action_type: "",
|
|
61
60
|
details: [],
|
|
62
61
|
};
|
|
63
62
|
}
|
|
@@ -81,11 +80,8 @@ exports.getCustomerProfileResponse = {
|
|
|
81
80
|
if (message.profile_completion_status !== 0) {
|
|
82
81
|
writer.uint32(48).int32(message.profile_completion_status);
|
|
83
82
|
}
|
|
84
|
-
if (message.action_type !== "") {
|
|
85
|
-
writer.uint32(58).string(message.action_type);
|
|
86
|
-
}
|
|
87
83
|
for (const v of message.details) {
|
|
88
|
-
exports.ProfileDetail.encode(v, writer.uint32(
|
|
84
|
+
exports.ProfileDetail.encode(v, writer.uint32(58).fork()).ldelim();
|
|
89
85
|
}
|
|
90
86
|
return writer;
|
|
91
87
|
},
|
|
@@ -136,12 +132,6 @@ exports.getCustomerProfileResponse = {
|
|
|
136
132
|
if (tag !== 58) {
|
|
137
133
|
break;
|
|
138
134
|
}
|
|
139
|
-
message.action_type = reader.string();
|
|
140
|
-
continue;
|
|
141
|
-
case 8:
|
|
142
|
-
if (tag !== 66) {
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
135
|
message.details.push(exports.ProfileDetail.decode(reader, reader.uint32()));
|
|
146
136
|
continue;
|
|
147
137
|
}
|
|
@@ -162,7 +152,6 @@ exports.getCustomerProfileResponse = {
|
|
|
162
152
|
profile_completion_status: isSet(object.profile_completion_status)
|
|
163
153
|
? globalThis.Number(object.profile_completion_status)
|
|
164
154
|
: 0,
|
|
165
|
-
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
166
155
|
details: globalThis.Array.isArray(object?.details)
|
|
167
156
|
? object.details.map((e) => exports.ProfileDetail.fromJSON(e))
|
|
168
157
|
: [],
|
|
@@ -188,9 +177,6 @@ exports.getCustomerProfileResponse = {
|
|
|
188
177
|
if (message.profile_completion_status !== 0) {
|
|
189
178
|
obj.profile_completion_status = Math.round(message.profile_completion_status);
|
|
190
179
|
}
|
|
191
|
-
if (message.action_type !== "") {
|
|
192
|
-
obj.action_type = message.action_type;
|
|
193
|
-
}
|
|
194
180
|
if (message.details?.length) {
|
|
195
181
|
obj.details = message.details.map((e) => exports.ProfileDetail.toJSON(e));
|
|
196
182
|
}
|
|
@@ -207,13 +193,12 @@ exports.getCustomerProfileResponse = {
|
|
|
207
193
|
message.profile_image = object.profile_image ?? "";
|
|
208
194
|
message.email = object.email ?? "";
|
|
209
195
|
message.profile_completion_status = object.profile_completion_status ?? 0;
|
|
210
|
-
message.action_type = object.action_type ?? "";
|
|
211
196
|
message.details = object.details?.map((e) => exports.ProfileDetail.fromPartial(e)) || [];
|
|
212
197
|
return message;
|
|
213
198
|
},
|
|
214
199
|
};
|
|
215
200
|
function createBaseProfileDetail() {
|
|
216
|
-
return { title: "", status: false, redirect_url: "" };
|
|
201
|
+
return { title: "", status: false, redirect_url: "", action_type: "" };
|
|
217
202
|
}
|
|
218
203
|
exports.ProfileDetail = {
|
|
219
204
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -226,6 +211,9 @@ exports.ProfileDetail = {
|
|
|
226
211
|
if (message.redirect_url !== "") {
|
|
227
212
|
writer.uint32(26).string(message.redirect_url);
|
|
228
213
|
}
|
|
214
|
+
if (message.action_type !== "") {
|
|
215
|
+
writer.uint32(34).string(message.action_type);
|
|
216
|
+
}
|
|
229
217
|
return writer;
|
|
230
218
|
},
|
|
231
219
|
decode(input, length) {
|
|
@@ -253,6 +241,12 @@ exports.ProfileDetail = {
|
|
|
253
241
|
}
|
|
254
242
|
message.redirect_url = reader.string();
|
|
255
243
|
continue;
|
|
244
|
+
case 4:
|
|
245
|
+
if (tag !== 34) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
message.action_type = reader.string();
|
|
249
|
+
continue;
|
|
256
250
|
}
|
|
257
251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
258
252
|
break;
|
|
@@ -266,6 +260,7 @@ exports.ProfileDetail = {
|
|
|
266
260
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
267
261
|
status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
|
|
268
262
|
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
263
|
+
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
269
264
|
};
|
|
270
265
|
},
|
|
271
266
|
toJSON(message) {
|
|
@@ -279,6 +274,9 @@ exports.ProfileDetail = {
|
|
|
279
274
|
if (message.redirect_url !== "") {
|
|
280
275
|
obj.redirect_url = message.redirect_url;
|
|
281
276
|
}
|
|
277
|
+
if (message.action_type !== "") {
|
|
278
|
+
obj.action_type = message.action_type;
|
|
279
|
+
}
|
|
282
280
|
return obj;
|
|
283
281
|
},
|
|
284
282
|
create(base) {
|
|
@@ -289,6 +287,7 @@ exports.ProfileDetail = {
|
|
|
289
287
|
message.title = object.title ?? "";
|
|
290
288
|
message.status = object.status ?? false;
|
|
291
289
|
message.redirect_url = object.redirect_url ?? "";
|
|
290
|
+
message.action_type = object.action_type ?? "";
|
|
292
291
|
return message;
|
|
293
292
|
},
|
|
294
293
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.sendemail";
|
|
3
|
+
export interface sendEmailRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface sendEmailResponse {
|
|
7
|
+
agreement_email: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const sendEmailRequest: {
|
|
10
|
+
encode(message: sendEmailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailRequest;
|
|
12
|
+
fromJSON(object: any): sendEmailRequest;
|
|
13
|
+
toJSON(message: sendEmailRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<sendEmailRequest>, I>>(base?: I): sendEmailRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<sendEmailRequest>, I>>(object: I): sendEmailRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const sendEmailResponse: {
|
|
18
|
+
encode(message: sendEmailResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendEmailResponse;
|
|
20
|
+
fromJSON(object: any): sendEmailResponse;
|
|
21
|
+
toJSON(message: sendEmailResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<sendEmailResponse>, I>>(base?: I): sendEmailResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<sendEmailResponse>, I>>(object: I): sendEmailResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
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: loans/sendemail.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.sendEmailResponse = exports.sendEmailRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.sendemail";
|
|
15
|
+
function createBasesendEmailRequest() {
|
|
16
|
+
return { loan_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.sendEmailRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasesendEmailRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loan_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loan_id !== 0) {
|
|
52
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.sendEmailRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasesendEmailRequest();
|
|
61
|
+
message.loan_id = object.loan_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasesendEmailResponse() {
|
|
66
|
+
return { agreement_email: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.sendEmailResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.agreement_email !== "") {
|
|
71
|
+
writer.uint32(10).string(message.agreement_email);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasesendEmailResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.agreement_email = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { agreement_email: isSet(object.agreement_email) ? globalThis.String(object.agreement_email) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.agreement_email !== "") {
|
|
102
|
+
obj.agreement_email = message.agreement_email;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.sendEmailResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasesendEmailResponse();
|
|
111
|
+
message.agreement_email = object.agreement_email ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.sendnocemail";
|
|
3
|
+
export interface sendNocEmailRequest {
|
|
4
|
+
loan_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface sendNocEmailResponse {
|
|
7
|
+
noc_email: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const sendNocEmailRequest: {
|
|
10
|
+
encode(message: sendNocEmailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendNocEmailRequest;
|
|
12
|
+
fromJSON(object: any): sendNocEmailRequest;
|
|
13
|
+
toJSON(message: sendNocEmailRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<sendNocEmailRequest>, I>>(base?: I): sendNocEmailRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<sendNocEmailRequest>, I>>(object: I): sendNocEmailRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const sendNocEmailResponse: {
|
|
18
|
+
encode(message: sendNocEmailResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendNocEmailResponse;
|
|
20
|
+
fromJSON(object: any): sendNocEmailResponse;
|
|
21
|
+
toJSON(message: sendNocEmailResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<sendNocEmailResponse>, I>>(base?: I): sendNocEmailResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<sendNocEmailResponse>, I>>(object: I): sendNocEmailResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
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: loans/sendnocemail.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.sendNocEmailResponse = exports.sendNocEmailRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.sendnocemail";
|
|
15
|
+
function createBasesendNocEmailRequest() {
|
|
16
|
+
return { loan_id: 0 };
|
|
17
|
+
}
|
|
18
|
+
exports.sendNocEmailRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.loan_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.loan_id);
|
|
22
|
+
}
|
|
23
|
+
return writer;
|
|
24
|
+
},
|
|
25
|
+
decode(input, length) {
|
|
26
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
+
const message = createBasesendNocEmailRequest();
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
const tag = reader.uint32();
|
|
31
|
+
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 8) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.loan_id = reader.int32();
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skipType(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0 };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.loan_id !== 0) {
|
|
52
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.sendNocEmailRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBasesendNocEmailRequest();
|
|
61
|
+
message.loan_id = object.loan_id ?? 0;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBasesendNocEmailResponse() {
|
|
66
|
+
return { noc_email: "" };
|
|
67
|
+
}
|
|
68
|
+
exports.sendNocEmailResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.noc_email !== "") {
|
|
71
|
+
writer.uint32(10).string(message.noc_email);
|
|
72
|
+
}
|
|
73
|
+
return writer;
|
|
74
|
+
},
|
|
75
|
+
decode(input, length) {
|
|
76
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
+
const message = createBasesendNocEmailResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 10) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.noc_email = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
reader.skipType(tag & 7);
|
|
93
|
+
}
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
fromJSON(object) {
|
|
97
|
+
return { noc_email: isSet(object.noc_email) ? globalThis.String(object.noc_email) : "" };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.noc_email !== "") {
|
|
102
|
+
obj.noc_email = message.noc_email;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.sendNocEmailResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBasesendNocEmailResponse();
|
|
111
|
+
message.noc_email = object.noc_email ?? "";
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
package/ts/loans.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import { getCustomerLoanStatusRequest, getCustomerLoanStatusResponse } from "./l
|
|
|
7
7
|
import { loanSummaryRequest, loanSummaryResponse } from "./loans/loansummary";
|
|
8
8
|
import { paymentAllocationRequest, paymentAllocationResponse } from "./loans/paymentallocation";
|
|
9
9
|
import { restructureLoanRequest, restructureLoanResponse } from "./loans/restructureloan";
|
|
10
|
+
import { sendEmailRequest, sendEmailResponse } from "./loans/sendemail";
|
|
11
|
+
import { sendNocEmailRequest, sendNocEmailResponse } from "./loans/sendnocemail";
|
|
10
12
|
import { transactionListRequest, transactionListResponse } from "./loans/transactionlist";
|
|
11
13
|
import { updateInstallmentsRequest, updateInstallmentsResponse } from "./loans/updateinstallments";
|
|
12
14
|
import { updateLoanRequest, updateLoanResponse } from "./loans/updateloan";
|
|
@@ -112,6 +114,24 @@ export declare const loansService: {
|
|
|
112
114
|
readonly responseSerialize: (value: getCustomerLoanStatusResponse) => Buffer;
|
|
113
115
|
readonly responseDeserialize: (value: Buffer) => getCustomerLoanStatusResponse;
|
|
114
116
|
};
|
|
117
|
+
readonly sendEmail: {
|
|
118
|
+
readonly path: "/service.loans/sendEmail";
|
|
119
|
+
readonly requestStream: false;
|
|
120
|
+
readonly responseStream: false;
|
|
121
|
+
readonly requestSerialize: (value: sendEmailRequest) => Buffer;
|
|
122
|
+
readonly requestDeserialize: (value: Buffer) => sendEmailRequest;
|
|
123
|
+
readonly responseSerialize: (value: sendEmailResponse) => Buffer;
|
|
124
|
+
readonly responseDeserialize: (value: Buffer) => sendEmailResponse;
|
|
125
|
+
};
|
|
126
|
+
readonly sendNocEmail: {
|
|
127
|
+
readonly path: "/service.loans/sendNocEmail";
|
|
128
|
+
readonly requestStream: false;
|
|
129
|
+
readonly responseStream: false;
|
|
130
|
+
readonly requestSerialize: (value: sendNocEmailRequest) => Buffer;
|
|
131
|
+
readonly requestDeserialize: (value: Buffer) => sendNocEmailRequest;
|
|
132
|
+
readonly responseSerialize: (value: sendNocEmailResponse) => Buffer;
|
|
133
|
+
readonly responseDeserialize: (value: Buffer) => sendNocEmailResponse;
|
|
134
|
+
};
|
|
115
135
|
};
|
|
116
136
|
export interface loansServer extends UntypedServiceImplementation {
|
|
117
137
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -125,6 +145,8 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
125
145
|
paymentAllocation: handleUnaryCall<paymentAllocationRequest, paymentAllocationResponse>;
|
|
126
146
|
loanSummary: handleUnaryCall<loanSummaryRequest, loanSummaryResponse>;
|
|
127
147
|
getCustomerLoanStatus: handleUnaryCall<getCustomerLoanStatusRequest, getCustomerLoanStatusResponse>;
|
|
148
|
+
sendEmail: handleUnaryCall<sendEmailRequest, sendEmailResponse>;
|
|
149
|
+
sendNocEmail: handleUnaryCall<sendNocEmailRequest, sendNocEmailResponse>;
|
|
128
150
|
}
|
|
129
151
|
export interface loansClient extends Client {
|
|
130
152
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -160,6 +182,12 @@ export interface loansClient extends Client {
|
|
|
160
182
|
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
161
183
|
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
162
184
|
getCustomerLoanStatus(request: getCustomerLoanStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerLoanStatusResponse) => void): ClientUnaryCall;
|
|
185
|
+
sendEmail(request: sendEmailRequest, callback: (error: ServiceError | null, response: sendEmailResponse) => void): ClientUnaryCall;
|
|
186
|
+
sendEmail(request: sendEmailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: sendEmailResponse) => void): ClientUnaryCall;
|
|
187
|
+
sendEmail(request: sendEmailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: sendEmailResponse) => void): ClientUnaryCall;
|
|
188
|
+
sendNocEmail(request: sendNocEmailRequest, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
189
|
+
sendNocEmail(request: sendNocEmailRequest, metadata: Metadata, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
190
|
+
sendNocEmail(request: sendNocEmailRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: sendNocEmailResponse) => void): ClientUnaryCall;
|
|
163
191
|
}
|
|
164
192
|
export declare const loansClient: {
|
|
165
193
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -16,6 +16,8 @@ const getcustomerloanstatus_1 = require("./loans/getcustomerloanstatus");
|
|
|
16
16
|
const loansummary_1 = require("./loans/loansummary");
|
|
17
17
|
const paymentallocation_1 = require("./loans/paymentallocation");
|
|
18
18
|
const restructureloan_1 = require("./loans/restructureloan");
|
|
19
|
+
const sendemail_1 = require("./loans/sendemail");
|
|
20
|
+
const sendnocemail_1 = require("./loans/sendnocemail");
|
|
19
21
|
const transactionlist_1 = require("./loans/transactionlist");
|
|
20
22
|
const updateinstallments_1 = require("./loans/updateinstallments");
|
|
21
23
|
const updateloan_1 = require("./loans/updateloan");
|
|
@@ -120,5 +122,23 @@ exports.loansService = {
|
|
|
120
122
|
responseSerialize: (value) => Buffer.from(getcustomerloanstatus_1.getCustomerLoanStatusResponse.encode(value).finish()),
|
|
121
123
|
responseDeserialize: (value) => getcustomerloanstatus_1.getCustomerLoanStatusResponse.decode(value),
|
|
122
124
|
},
|
|
125
|
+
sendEmail: {
|
|
126
|
+
path: "/service.loans/sendEmail",
|
|
127
|
+
requestStream: false,
|
|
128
|
+
responseStream: false,
|
|
129
|
+
requestSerialize: (value) => Buffer.from(sendemail_1.sendEmailRequest.encode(value).finish()),
|
|
130
|
+
requestDeserialize: (value) => sendemail_1.sendEmailRequest.decode(value),
|
|
131
|
+
responseSerialize: (value) => Buffer.from(sendemail_1.sendEmailResponse.encode(value).finish()),
|
|
132
|
+
responseDeserialize: (value) => sendemail_1.sendEmailResponse.decode(value),
|
|
133
|
+
},
|
|
134
|
+
sendNocEmail: {
|
|
135
|
+
path: "/service.loans/sendNocEmail",
|
|
136
|
+
requestStream: false,
|
|
137
|
+
responseStream: false,
|
|
138
|
+
requestSerialize: (value) => Buffer.from(sendnocemail_1.sendNocEmailRequest.encode(value).finish()),
|
|
139
|
+
requestDeserialize: (value) => sendnocemail_1.sendNocEmailRequest.decode(value),
|
|
140
|
+
responseSerialize: (value) => Buffer.from(sendnocemail_1.sendNocEmailResponse.encode(value).finish()),
|
|
141
|
+
responseDeserialize: (value) => sendnocemail_1.sendNocEmailResponse.decode(value),
|
|
142
|
+
},
|
|
123
143
|
};
|
|
124
144
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|