@stashfin/grpc 1.2.385 → 1.2.386
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.updatesanctionamount";
|
|
3
|
+
export interface updateSanctionAmountRequest {
|
|
4
|
+
sanction_upgrade: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface updateSanctionAmountResponse {
|
|
7
|
+
status: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const updateSanctionAmountRequest: {
|
|
10
|
+
encode(message: updateSanctionAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSanctionAmountRequest;
|
|
12
|
+
fromJSON(object: any): updateSanctionAmountRequest;
|
|
13
|
+
toJSON(message: updateSanctionAmountRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<updateSanctionAmountRequest>, I>>(base?: I): updateSanctionAmountRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<updateSanctionAmountRequest>, I>>(object: I): updateSanctionAmountRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const updateSanctionAmountResponse: {
|
|
18
|
+
encode(message: updateSanctionAmountResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateSanctionAmountResponse;
|
|
20
|
+
fromJSON(object: any): updateSanctionAmountResponse;
|
|
21
|
+
toJSON(message: updateSanctionAmountResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<updateSanctionAmountResponse>, I>>(base?: I): updateSanctionAmountResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<updateSanctionAmountResponse>, I>>(object: I): updateSanctionAmountResponse;
|
|
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 v5.28.3
|
|
6
|
+
// source: customers/updatesanctionamount.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.updateSanctionAmountResponse = exports.updateSanctionAmountRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.updatesanctionamount";
|
|
15
|
+
function createBaseupdateSanctionAmountRequest() {
|
|
16
|
+
return { sanction_upgrade: false };
|
|
17
|
+
}
|
|
18
|
+
exports.updateSanctionAmountRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.sanction_upgrade !== false) {
|
|
21
|
+
writer.uint32(8).bool(message.sanction_upgrade);
|
|
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 = createBaseupdateSanctionAmountRequest();
|
|
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.sanction_upgrade = reader.bool();
|
|
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 { sanction_upgrade: isSet(object.sanction_upgrade) ? globalThis.Boolean(object.sanction_upgrade) : false };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.sanction_upgrade !== false) {
|
|
52
|
+
obj.sanction_upgrade = message.sanction_upgrade;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.updateSanctionAmountRequest.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseupdateSanctionAmountRequest();
|
|
61
|
+
message.sanction_upgrade = object.sanction_upgrade ?? false;
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
function createBaseupdateSanctionAmountResponse() {
|
|
66
|
+
return { status: false };
|
|
67
|
+
}
|
|
68
|
+
exports.updateSanctionAmountResponse = {
|
|
69
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
+
if (message.status !== false) {
|
|
71
|
+
writer.uint32(8).bool(message.status);
|
|
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 = createBaseupdateSanctionAmountResponse();
|
|
79
|
+
while (reader.pos < end) {
|
|
80
|
+
const tag = reader.uint32();
|
|
81
|
+
switch (tag >>> 3) {
|
|
82
|
+
case 1:
|
|
83
|
+
if (tag !== 8) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.status = reader.bool();
|
|
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 { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
98
|
+
},
|
|
99
|
+
toJSON(message) {
|
|
100
|
+
const obj = {};
|
|
101
|
+
if (message.status !== false) {
|
|
102
|
+
obj.status = message.status;
|
|
103
|
+
}
|
|
104
|
+
return obj;
|
|
105
|
+
},
|
|
106
|
+
create(base) {
|
|
107
|
+
return exports.updateSanctionAmountResponse.fromPartial(base ?? {});
|
|
108
|
+
},
|
|
109
|
+
fromPartial(object) {
|
|
110
|
+
const message = createBaseupdateSanctionAmountResponse();
|
|
111
|
+
message.status = object.status ?? false;
|
|
112
|
+
return message;
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
function isSet(value) {
|
|
116
|
+
return value !== null && value !== undefined;
|
|
117
|
+
}
|
|
@@ -135,7 +135,7 @@ exports.verifyOtpReqeust = {
|
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseverifyOtpResponse() {
|
|
138
|
-
return { category: "", ismpin: false, jwttoken: "", is_deleted_token: "" };
|
|
138
|
+
return { category: "", ismpin: false, jwttoken: "", is_deleted_token: "", customer_name: "" };
|
|
139
139
|
}
|
|
140
140
|
exports.verifyOtpResponse = {
|
|
141
141
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -151,6 +151,9 @@ exports.verifyOtpResponse = {
|
|
|
151
151
|
if (message.is_deleted_token !== "") {
|
|
152
152
|
writer.uint32(34).string(message.is_deleted_token);
|
|
153
153
|
}
|
|
154
|
+
if (message.customer_name !== "") {
|
|
155
|
+
writer.uint32(42).string(message.customer_name);
|
|
156
|
+
}
|
|
154
157
|
return writer;
|
|
155
158
|
},
|
|
156
159
|
decode(input, length) {
|
|
@@ -184,6 +187,12 @@ exports.verifyOtpResponse = {
|
|
|
184
187
|
}
|
|
185
188
|
message.is_deleted_token = reader.string();
|
|
186
189
|
continue;
|
|
190
|
+
case 5:
|
|
191
|
+
if (tag !== 42) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.customer_name = reader.string();
|
|
195
|
+
continue;
|
|
187
196
|
}
|
|
188
197
|
if ((tag & 7) === 4 || tag === 0) {
|
|
189
198
|
break;
|
|
@@ -198,6 +207,7 @@ exports.verifyOtpResponse = {
|
|
|
198
207
|
ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
|
|
199
208
|
jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
|
|
200
209
|
is_deleted_token: isSet(object.is_deleted_token) ? globalThis.String(object.is_deleted_token) : "",
|
|
210
|
+
customer_name: isSet(object.customer_name) ? globalThis.String(object.customer_name) : "",
|
|
201
211
|
};
|
|
202
212
|
},
|
|
203
213
|
toJSON(message) {
|
|
@@ -214,6 +224,9 @@ exports.verifyOtpResponse = {
|
|
|
214
224
|
if (message.is_deleted_token !== "") {
|
|
215
225
|
obj.is_deleted_token = message.is_deleted_token;
|
|
216
226
|
}
|
|
227
|
+
if (message.customer_name !== "") {
|
|
228
|
+
obj.customer_name = message.customer_name;
|
|
229
|
+
}
|
|
217
230
|
return obj;
|
|
218
231
|
},
|
|
219
232
|
create(base) {
|
|
@@ -225,6 +238,7 @@ exports.verifyOtpResponse = {
|
|
|
225
238
|
message.ismpin = object.ismpin ?? false;
|
|
226
239
|
message.jwttoken = object.jwttoken ?? "";
|
|
227
240
|
message.is_deleted_token = object.is_deleted_token ?? "";
|
|
241
|
+
message.customer_name = object.customer_name ?? "";
|
|
228
242
|
return message;
|
|
229
243
|
},
|
|
230
244
|
};
|
package/ts/customers.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ import { locStatusRequest, locStatusResponse } from "./customers/updatelocstatus
|
|
|
103
103
|
import { updateMobileSendOtpRequest, updateMobileSendOtpResponse } from "./customers/updatemobilesendotp";
|
|
104
104
|
import { updateMobileVerifyOtpRequest, updateMobileVerifyOtpResponse } from "./customers/updatemobileverifyotp";
|
|
105
105
|
import { updateOkycTxnRequest, updateOkycTxnResponse } from "./customers/updateokyctxn";
|
|
106
|
+
import { updateSanctionAmountRequest, updateSanctionAmountResponse } from "./customers/updatesanctionamount";
|
|
106
107
|
import { updateSelfieeTxnRequest, updateSelfieeTxnResponse } from "./customers/updateselfieetxn";
|
|
107
108
|
import { updateSyncStatusRequest, updateSyncStatusResponse } from "./customers/updatesyncstatus";
|
|
108
109
|
import { updateVehicleNumberRequest, updateVehicleNumberResponse } from "./customers/updatevehiclenumber";
|
|
@@ -1149,6 +1150,15 @@ export declare const customersService: {
|
|
|
1149
1150
|
readonly responseSerialize: (value: verifyLamfPledgeOtpResponse) => Buffer;
|
|
1150
1151
|
readonly responseDeserialize: (value: Buffer) => verifyLamfPledgeOtpResponse;
|
|
1151
1152
|
};
|
|
1153
|
+
readonly updateSanctionAmount: {
|
|
1154
|
+
readonly path: "/service.customers/updateSanctionAmount";
|
|
1155
|
+
readonly requestStream: false;
|
|
1156
|
+
readonly responseStream: false;
|
|
1157
|
+
readonly requestSerialize: (value: updateSanctionAmountRequest) => Buffer;
|
|
1158
|
+
readonly requestDeserialize: (value: Buffer) => updateSanctionAmountRequest;
|
|
1159
|
+
readonly responseSerialize: (value: updateSanctionAmountResponse) => Buffer;
|
|
1160
|
+
readonly responseDeserialize: (value: Buffer) => updateSanctionAmountResponse;
|
|
1161
|
+
};
|
|
1152
1162
|
};
|
|
1153
1163
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1154
1164
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1266,6 +1276,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1266
1276
|
verifyLamfOtp: handleUnaryCall<verifyLamfOtpRequest, verifyLamfOtpResponse>;
|
|
1267
1277
|
sendLamfPledgeOtp: handleUnaryCall<sendLamfPledgeOtpRequest, sendLamfPledgeOtpResponse>;
|
|
1268
1278
|
verifyLamfPledgeOtp: handleUnaryCall<verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse>;
|
|
1279
|
+
updateSanctionAmount: handleUnaryCall<updateSanctionAmountRequest, updateSanctionAmountResponse>;
|
|
1269
1280
|
}
|
|
1270
1281
|
export interface customersClient extends Client {
|
|
1271
1282
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1613,6 +1624,9 @@ export interface customersClient extends Client {
|
|
|
1613
1624
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1614
1625
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1615
1626
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1627
|
+
updateSanctionAmount(request: updateSanctionAmountRequest, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1628
|
+
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1629
|
+
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1616
1630
|
}
|
|
1617
1631
|
export declare const customersClient: {
|
|
1618
1632
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -112,6 +112,7 @@ const updatelocstatus_1 = require("./customers/updatelocstatus");
|
|
|
112
112
|
const updatemobilesendotp_1 = require("./customers/updatemobilesendotp");
|
|
113
113
|
const updatemobileverifyotp_1 = require("./customers/updatemobileverifyotp");
|
|
114
114
|
const updateokyctxn_1 = require("./customers/updateokyctxn");
|
|
115
|
+
const updatesanctionamount_1 = require("./customers/updatesanctionamount");
|
|
115
116
|
const updateselfieetxn_1 = require("./customers/updateselfieetxn");
|
|
116
117
|
const updatesyncstatus_1 = require("./customers/updatesyncstatus");
|
|
117
118
|
const updatevehiclenumber_1 = require("./customers/updatevehiclenumber");
|
|
@@ -1157,5 +1158,14 @@ exports.customersService = {
|
|
|
1157
1158
|
responseSerialize: (value) => Buffer.from(verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.encode(value).finish()),
|
|
1158
1159
|
responseDeserialize: (value) => verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.decode(value),
|
|
1159
1160
|
},
|
|
1161
|
+
updateSanctionAmount: {
|
|
1162
|
+
path: "/service.customers/updateSanctionAmount",
|
|
1163
|
+
requestStream: false,
|
|
1164
|
+
responseStream: false,
|
|
1165
|
+
requestSerialize: (value) => Buffer.from(updatesanctionamount_1.updateSanctionAmountRequest.encode(value).finish()),
|
|
1166
|
+
requestDeserialize: (value) => updatesanctionamount_1.updateSanctionAmountRequest.decode(value),
|
|
1167
|
+
responseSerialize: (value) => Buffer.from(updatesanctionamount_1.updateSanctionAmountResponse.encode(value).finish()),
|
|
1168
|
+
responseDeserialize: (value) => updatesanctionamount_1.updateSanctionAmountResponse.decode(value),
|
|
1169
|
+
},
|
|
1160
1170
|
};
|
|
1161
1171
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|