@stashfin/grpc 1.2.169 → 1.2.170
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/bureau/getbasicdetails.d.ts +57 -0
- package/ts/bureau/getbasicdetails.js +341 -0
- package/ts/bureau/getdemogs.d.ts +113 -0
- package/ts/bureau/getdemogs.js +611 -0
- package/ts/bureau/getreport.d.ts +188 -0
- package/ts/bureau/getreport.js +1640 -0
- package/ts/bureau.d.ts +56 -0
- package/ts/bureau.js +44 -0
- package/ts/colender/disburseLoan.d.ts +44 -0
- package/ts/colender/disburseLoan.js +256 -0
- package/ts/colender/forecloseLoan.d.ts +41 -0
- package/ts/colender/forecloseLoan.js +205 -0
- package/ts/colender/repayLoan.d.ts +48 -0
- package/ts/colender/repayLoan.js +313 -0
- package/ts/colender.d.ts +56 -0
- package/ts/colender.js +44 -0
- package/ts/customers/aa/getbanklist.d.ts +48 -0
- package/ts/customers/aa/getbanklist.js +198 -0
- package/ts/customers/aa/initiate.d.ts +40 -0
- package/ts/customers/aa/initiate.js +209 -0
- package/ts/customers/addaddress.d.ts +50 -0
- package/ts/customers/addaddress.js +265 -0
- package/ts/customers/addbankaccountdetails.d.ts +37 -0
- package/ts/customers/addbankaccountdetails.js +147 -0
- package/ts/customers/addfathersname.d.ts +35 -0
- package/ts/customers/addfathersname.js +117 -0
- package/ts/customers/addgstnumber.d.ts +35 -0
- package/ts/customers/addgstnumber.js +117 -0
- package/ts/customers/addmoredetails.d.ts +60 -0
- package/ts/customers/addmoredetails.js +314 -0
- package/ts/customers/addsuspendedcustomer.d.ts +36 -0
- package/ts/customers/addsuspendedcustomer.js +133 -0
- package/ts/customers/adduserapps.d.ts +74 -0
- package/ts/customers/adduserapps.js +210 -0
- package/ts/customers/bulksms.d.ts +48 -0
- package/ts/customers/bulksms.js +201 -0
- package/ts/customers/changempin.d.ts +36 -0
- package/ts/customers/changempin.js +133 -0
- package/ts/customers/createcustomerreference.d.ts +43 -0
- package/ts/customers/createcustomerreference.js +226 -0
- package/ts/customers/deleteprofile.d.ts +35 -0
- package/ts/customers/deleteprofile.js +120 -0
- package/ts/customers/disablempin.d.ts +34 -0
- package/ts/customers/disablempin.js +104 -0
- package/ts/customers/fetchrcprofile.d.ts +45 -0
- package/ts/customers/fetchrcprofile.js +271 -0
- package/ts/customers/forgotmpin.d.ts +35 -0
- package/ts/customers/forgotmpin.js +117 -0
- package/ts/customers/forgotmpinverify.d.ts +36 -0
- package/ts/customers/forgotmpinverify.js +133 -0
- package/ts/customers/getbankaccountdetails.d.ts +37 -0
- package/ts/customers/getbankaccountdetails.js +148 -0
- package/ts/customers/getbasicinfo.d.ts +56 -0
- package/ts/customers/getbasicinfo.js +323 -0
- package/ts/customers/getcities.d.ts +47 -0
- package/ts/customers/getcities.js +183 -0
- package/ts/customers/getcompanyaccdetails.d.ts +37 -0
- package/ts/customers/getcompanyaccdetails.js +148 -0
- package/ts/customers/getcustomerbyid.d.ts +142 -0
- package/ts/customers/getcustomerbyid.js +1521 -0
- package/ts/customers/getdashboard.d.ts +88 -0
- package/ts/customers/getdashboard.js +574 -0
- package/ts/customers/getdashboardmaincard.d.ts +70 -0
- package/ts/customers/getdashboardmaincard.js +534 -0
- package/ts/customers/getdocuments.d.ts +46 -0
- package/ts/customers/getdocuments.js +174 -0
- package/ts/customers/getlimit.d.ts +37 -0
- package/ts/customers/getlimit.js +148 -0
- package/ts/customers/getprofessionalinfo.d.ts +54 -0
- package/ts/customers/getprofessionalinfo.js +286 -0
- package/ts/customers/getprofile.d.ts +54 -0
- package/ts/customers/getprofile.js +296 -0
- package/ts/customers/getselfieetxnid.d.ts +34 -0
- package/ts/customers/getselfieetxnid.js +104 -0
- package/ts/customers/getstates.d.ts +46 -0
- package/ts/customers/getstates.js +170 -0
- package/ts/customers/getstep.d.ts +69 -0
- package/ts/customers/getstep.js +406 -0
- package/ts/customers/logout.d.ts +34 -0
- package/ts/customers/logout.js +104 -0
- package/ts/customers/profilebasic.d.ts +40 -0
- package/ts/customers/profilebasic.js +189 -0
- package/ts/customers/profileupdatetnc.d.ts +35 -0
- package/ts/customers/profileupdatetnc.js +117 -0
- package/ts/customers/savebasicdetails.d.ts +47 -0
- package/ts/customers/savebasicdetails.js +185 -0
- package/ts/customers/saveunlocklimit.d.ts +34 -0
- package/ts/customers/saveunlocklimit.js +104 -0
- package/ts/customers/sendotp.d.ts +38 -0
- package/ts/customers/sendotp.js +165 -0
- package/ts/customers/sendotptoemail.d.ts +35 -0
- package/ts/customers/sendotptoemail.js +117 -0
- package/ts/customers/setmpin.d.ts +36 -0
- package/ts/customers/setmpin.js +133 -0
- package/ts/customers/skipscreen.d.ts +44 -0
- package/ts/customers/skipscreen.js +162 -0
- package/ts/customers/updatecustomerbyid.d.ts +48 -0
- package/ts/customers/updatecustomerbyid.js +201 -0
- package/ts/customers/updatedlnumber.d.ts +35 -0
- package/ts/customers/updatedlnumber.js +119 -0
- package/ts/customers/updatedob.d.ts +35 -0
- package/ts/customers/updatedob.js +117 -0
- package/ts/customers/updatelocstatus.d.ts +36 -0
- package/ts/customers/updatelocstatus.js +133 -0
- package/ts/customers/updatemobilesendotp.d.ts +35 -0
- package/ts/customers/updatemobilesendotp.js +117 -0
- package/ts/customers/updatemobileverifyotp.d.ts +36 -0
- package/ts/customers/updatemobileverifyotp.js +133 -0
- package/ts/customers/updateokyctxn.d.ts +37 -0
- package/ts/customers/updateokyctxn.js +147 -0
- package/ts/customers/updateselfieetxn.d.ts +36 -0
- package/ts/customers/updateselfieetxn.js +133 -0
- package/ts/customers/updatevehiclenumber.d.ts +35 -0
- package/ts/customers/updatevehiclenumber.js +117 -0
- package/ts/customers/uploaddocuments.d.ts +37 -0
- package/ts/customers/uploaddocuments.js +172 -0
- package/ts/customers/validatepan.d.ts +45 -0
- package/ts/customers/validatepan.js +274 -0
- package/ts/customers/verifympin.d.ts +37 -0
- package/ts/customers/verifympin.js +149 -0
- package/ts/customers/verifyotp.d.ts +41 -0
- package/ts/customers/verifyotp.js +205 -0
- package/ts/customers/verifyotptoemail.d.ts +35 -0
- package/ts/customers/verifyotptoemail.js +117 -0
- package/ts/customers.d.ts +796 -0
- package/ts/customers.js +572 -0
- package/ts/example.d.ts +78 -0
- package/ts/example.js +199 -0
- package/ts/growth/processchrpayment.d.ts +40 -0
- package/ts/growth/processchrpayment.js +205 -0
- package/ts/growth.d.ts +28 -0
- package/ts/growth.js +24 -0
- package/ts/loans/approveloan.d.ts +81 -0
- package/ts/loans/approveloan.js +703 -0
- package/ts/loans/banklist.d.ts +37 -0
- package/ts/loans/banklist.js +148 -0
- package/ts/loans/calculateemi.d.ts +57 -0
- package/ts/loans/calculateemi.js +340 -0
- package/ts/loans/creditlimit.d.ts +51 -0
- package/ts/loans/creditlimit.js +381 -0
- package/ts/loans/futurepaymentmoredetails.d.ts +50 -0
- package/ts/loans/futurepaymentmoredetails.js +230 -0
- package/ts/loans/getbilldetails.d.ts +38 -0
- package/ts/loans/getbilldetails.js +161 -0
- package/ts/loans/getcustomerloanstatus.d.ts +34 -0
- package/ts/loans/getcustomerloanstatus.js +104 -0
- package/ts/loans/getloanbyid.d.ts +48 -0
- package/ts/loans/getloanbyid.js +318 -0
- package/ts/loans/getnextdueamount.d.ts +34 -0
- package/ts/loans/getnextdueamount.js +104 -0
- package/ts/loans/getpendingemiamount.d.ts +34 -0
- package/ts/loans/getpendingemiamount.js +104 -0
- package/ts/loans/getsummarystaticfields.d.ts +80 -0
- package/ts/loans/getsummarystaticfields.js +700 -0
- package/ts/loans/loansummary.d.ts +66 -0
- package/ts/loans/loansummary.js +593 -0
- package/ts/loans/paymentallocation.d.ts +38 -0
- package/ts/loans/paymentallocation.js +161 -0
- package/ts/loans/paymenthistory.d.ts +47 -0
- package/ts/loans/paymenthistory.js +188 -0
- package/ts/loans/restructureloan.d.ts +36 -0
- package/ts/loans/restructureloan.js +133 -0
- 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/transactionlist.d.ts +52 -0
- package/ts/loans/transactionlist.js +257 -0
- package/ts/loans/updateinstallments.d.ts +42 -0
- package/ts/loans/updateinstallments.js +226 -0
- package/ts/loans/updateloan.d.ts +37 -0
- package/ts/loans/updateloan.js +147 -0
- package/ts/loans.d.ts +294 -0
- package/ts/loans.js +214 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
- package/ts/stashcash/creditsc.d.ts +54 -0
- package/ts/stashcash/creditsc.js +301 -0
- package/ts/stashcash/debitsc.d.ts +59 -0
- package/ts/stashcash/debitsc.js +380 -0
- package/ts/stashcash/getscbalance.d.ts +53 -0
- package/ts/stashcash/getscbalance.js +293 -0
- package/ts/stashcash/getschistory.d.ts +73 -0
- package/ts/stashcash/getschistory.js +479 -0
- package/ts/stashcash/reversesc.d.ts +52 -0
- package/ts/stashcash/reversesc.js +273 -0
- package/ts/stashcash.d.ts +84 -0
- package/ts/stashcash.js +64 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "customers.adduserapps";
|
|
4
|
+
export interface UserApp {
|
|
5
|
+
app_name: string;
|
|
6
|
+
app_id: string;
|
|
7
|
+
app_category: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AddUserAppsRequest {
|
|
10
|
+
apps: UserApp[];
|
|
11
|
+
}
|
|
12
|
+
export interface AddUserAppsResponse {
|
|
13
|
+
status: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const UserApp: {
|
|
16
|
+
encode(message: UserApp, writer?: _m0.Writer): _m0.Writer;
|
|
17
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserApp;
|
|
18
|
+
fromJSON(object: any): UserApp;
|
|
19
|
+
toJSON(message: UserApp): unknown;
|
|
20
|
+
create<I extends Exact<DeepPartial<UserApp>, I>>(base?: I): UserApp;
|
|
21
|
+
fromPartial<I extends Exact<DeepPartial<UserApp>, I>>(object: I): UserApp;
|
|
22
|
+
};
|
|
23
|
+
export declare const AddUserAppsRequest: {
|
|
24
|
+
encode(message: AddUserAppsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddUserAppsRequest;
|
|
26
|
+
fromJSON(object: any): AddUserAppsRequest;
|
|
27
|
+
toJSON(message: AddUserAppsRequest): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<AddUserAppsRequest>, I>>(base?: I): AddUserAppsRequest;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<AddUserAppsRequest>, I>>(object: I): AddUserAppsRequest;
|
|
30
|
+
};
|
|
31
|
+
export declare const AddUserAppsResponse: {
|
|
32
|
+
encode(message: AddUserAppsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AddUserAppsResponse;
|
|
34
|
+
fromJSON(object: any): AddUserAppsResponse;
|
|
35
|
+
toJSON(message: AddUserAppsResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<AddUserAppsResponse>, I>>(base?: I): AddUserAppsResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<AddUserAppsResponse>, I>>(object: I): AddUserAppsResponse;
|
|
38
|
+
};
|
|
39
|
+
export type UserAppsServiceService = typeof UserAppsServiceService;
|
|
40
|
+
export declare const UserAppsServiceService: {
|
|
41
|
+
readonly addUserApps: {
|
|
42
|
+
readonly path: "/customers.adduserapps.UserAppsService/AddUserApps";
|
|
43
|
+
readonly requestStream: false;
|
|
44
|
+
readonly responseStream: false;
|
|
45
|
+
readonly requestSerialize: (value: AddUserAppsRequest) => Buffer;
|
|
46
|
+
readonly requestDeserialize: (value: Buffer) => AddUserAppsRequest;
|
|
47
|
+
readonly responseSerialize: (value: AddUserAppsResponse) => Buffer;
|
|
48
|
+
readonly responseDeserialize: (value: Buffer) => AddUserAppsResponse;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export interface UserAppsServiceServer extends UntypedServiceImplementation {
|
|
52
|
+
addUserApps: handleUnaryCall<AddUserAppsRequest, AddUserAppsResponse>;
|
|
53
|
+
}
|
|
54
|
+
export interface UserAppsServiceClient extends Client {
|
|
55
|
+
addUserApps(request: AddUserAppsRequest, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
|
|
56
|
+
addUserApps(request: AddUserAppsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
|
|
57
|
+
addUserApps(request: AddUserAppsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: AddUserAppsResponse) => void): ClientUnaryCall;
|
|
58
|
+
}
|
|
59
|
+
export declare const UserAppsServiceClient: {
|
|
60
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): UserAppsServiceClient;
|
|
61
|
+
service: typeof UserAppsServiceService;
|
|
62
|
+
serviceName: string;
|
|
63
|
+
};
|
|
64
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
65
|
+
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 {} ? {
|
|
66
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
67
|
+
} : Partial<T>;
|
|
68
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
69
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
70
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
71
|
+
} & {
|
|
72
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
73
|
+
};
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,210 @@
|
|
|
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.4
|
|
6
|
+
// source: customers/adduserapps.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.UserAppsServiceClient = exports.UserAppsServiceService = exports.AddUserAppsResponse = exports.AddUserAppsRequest = exports.UserApp = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "customers.adduserapps";
|
|
16
|
+
function createBaseUserApp() {
|
|
17
|
+
return { app_name: "", app_id: "", app_category: "" };
|
|
18
|
+
}
|
|
19
|
+
exports.UserApp = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.app_name !== "") {
|
|
22
|
+
writer.uint32(10).string(message.app_name);
|
|
23
|
+
}
|
|
24
|
+
if (message.app_id !== "") {
|
|
25
|
+
writer.uint32(18).string(message.app_id);
|
|
26
|
+
}
|
|
27
|
+
if (message.app_category !== "") {
|
|
28
|
+
writer.uint32(26).string(message.app_category);
|
|
29
|
+
}
|
|
30
|
+
return writer;
|
|
31
|
+
},
|
|
32
|
+
decode(input, length) {
|
|
33
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
34
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
+
const message = createBaseUserApp();
|
|
36
|
+
while (reader.pos < end) {
|
|
37
|
+
const tag = reader.uint32();
|
|
38
|
+
switch (tag >>> 3) {
|
|
39
|
+
case 1:
|
|
40
|
+
if (tag !== 10) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
message.app_name = reader.string();
|
|
44
|
+
continue;
|
|
45
|
+
case 2:
|
|
46
|
+
if (tag !== 18) {
|
|
47
|
+
break;
|
|
48
|
+
}
|
|
49
|
+
message.app_id = reader.string();
|
|
50
|
+
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 26) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.app_category = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skipType(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
app_name: isSet(object.app_name) ? globalThis.String(object.app_name) : "",
|
|
68
|
+
app_id: isSet(object.app_id) ? globalThis.String(object.app_id) : "",
|
|
69
|
+
app_category: isSet(object.app_category) ? globalThis.String(object.app_category) : "",
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
toJSON(message) {
|
|
73
|
+
const obj = {};
|
|
74
|
+
if (message.app_name !== "") {
|
|
75
|
+
obj.app_name = message.app_name;
|
|
76
|
+
}
|
|
77
|
+
if (message.app_id !== "") {
|
|
78
|
+
obj.app_id = message.app_id;
|
|
79
|
+
}
|
|
80
|
+
if (message.app_category !== "") {
|
|
81
|
+
obj.app_category = message.app_category;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
85
|
+
create(base) {
|
|
86
|
+
return exports.UserApp.fromPartial(base ?? {});
|
|
87
|
+
},
|
|
88
|
+
fromPartial(object) {
|
|
89
|
+
const message = createBaseUserApp();
|
|
90
|
+
message.app_name = object.app_name ?? "";
|
|
91
|
+
message.app_id = object.app_id ?? "";
|
|
92
|
+
message.app_category = object.app_category ?? "";
|
|
93
|
+
return message;
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
function createBaseAddUserAppsRequest() {
|
|
97
|
+
return { apps: [] };
|
|
98
|
+
}
|
|
99
|
+
exports.AddUserAppsRequest = {
|
|
100
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
101
|
+
for (const v of message.apps) {
|
|
102
|
+
exports.UserApp.encode(v, writer.uint32(10).fork()).ldelim();
|
|
103
|
+
}
|
|
104
|
+
return writer;
|
|
105
|
+
},
|
|
106
|
+
decode(input, length) {
|
|
107
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
108
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
|
+
const message = createBaseAddUserAppsRequest();
|
|
110
|
+
while (reader.pos < end) {
|
|
111
|
+
const tag = reader.uint32();
|
|
112
|
+
switch (tag >>> 3) {
|
|
113
|
+
case 1:
|
|
114
|
+
if (tag !== 10) {
|
|
115
|
+
break;
|
|
116
|
+
}
|
|
117
|
+
message.apps.push(exports.UserApp.decode(reader, reader.uint32()));
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
reader.skipType(tag & 7);
|
|
124
|
+
}
|
|
125
|
+
return message;
|
|
126
|
+
},
|
|
127
|
+
fromJSON(object) {
|
|
128
|
+
return { apps: globalThis.Array.isArray(object?.apps) ? object.apps.map((e) => exports.UserApp.fromJSON(e)) : [] };
|
|
129
|
+
},
|
|
130
|
+
toJSON(message) {
|
|
131
|
+
const obj = {};
|
|
132
|
+
if (message.apps?.length) {
|
|
133
|
+
obj.apps = message.apps.map((e) => exports.UserApp.toJSON(e));
|
|
134
|
+
}
|
|
135
|
+
return obj;
|
|
136
|
+
},
|
|
137
|
+
create(base) {
|
|
138
|
+
return exports.AddUserAppsRequest.fromPartial(base ?? {});
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseAddUserAppsRequest();
|
|
142
|
+
message.apps = object.apps?.map((e) => exports.UserApp.fromPartial(e)) || [];
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function createBaseAddUserAppsResponse() {
|
|
147
|
+
return { status: false };
|
|
148
|
+
}
|
|
149
|
+
exports.AddUserAppsResponse = {
|
|
150
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
|
+
if (message.status !== false) {
|
|
152
|
+
writer.uint32(8).bool(message.status);
|
|
153
|
+
}
|
|
154
|
+
return writer;
|
|
155
|
+
},
|
|
156
|
+
decode(input, length) {
|
|
157
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
158
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
159
|
+
const message = createBaseAddUserAppsResponse();
|
|
160
|
+
while (reader.pos < end) {
|
|
161
|
+
const tag = reader.uint32();
|
|
162
|
+
switch (tag >>> 3) {
|
|
163
|
+
case 1:
|
|
164
|
+
if (tag !== 8) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.status = reader.bool();
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
reader.skipType(tag & 7);
|
|
174
|
+
}
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
fromJSON(object) {
|
|
178
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
179
|
+
},
|
|
180
|
+
toJSON(message) {
|
|
181
|
+
const obj = {};
|
|
182
|
+
if (message.status !== false) {
|
|
183
|
+
obj.status = message.status;
|
|
184
|
+
}
|
|
185
|
+
return obj;
|
|
186
|
+
},
|
|
187
|
+
create(base) {
|
|
188
|
+
return exports.AddUserAppsResponse.fromPartial(base ?? {});
|
|
189
|
+
},
|
|
190
|
+
fromPartial(object) {
|
|
191
|
+
const message = createBaseAddUserAppsResponse();
|
|
192
|
+
message.status = object.status ?? false;
|
|
193
|
+
return message;
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
exports.UserAppsServiceService = {
|
|
197
|
+
addUserApps: {
|
|
198
|
+
path: "/customers.adduserapps.UserAppsService/AddUserApps",
|
|
199
|
+
requestStream: false,
|
|
200
|
+
responseStream: false,
|
|
201
|
+
requestSerialize: (value) => Buffer.from(exports.AddUserAppsRequest.encode(value).finish()),
|
|
202
|
+
requestDeserialize: (value) => exports.AddUserAppsRequest.decode(value),
|
|
203
|
+
responseSerialize: (value) => Buffer.from(exports.AddUserAppsResponse.encode(value).finish()),
|
|
204
|
+
responseDeserialize: (value) => exports.AddUserAppsResponse.decode(value),
|
|
205
|
+
},
|
|
206
|
+
};
|
|
207
|
+
exports.UserAppsServiceClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.UserAppsServiceService, "customers.adduserapps.UserAppsService");
|
|
208
|
+
function isSet(value) {
|
|
209
|
+
return value !== null && value !== undefined;
|
|
210
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.bulksms";
|
|
3
|
+
export interface SMSRecord {
|
|
4
|
+
contact: string;
|
|
5
|
+
message: string;
|
|
6
|
+
received_at: string;
|
|
7
|
+
}
|
|
8
|
+
export interface bulkSMSRequest {
|
|
9
|
+
sms_records: SMSRecord[];
|
|
10
|
+
}
|
|
11
|
+
export interface bulkSMSResponse {
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const SMSRecord: {
|
|
15
|
+
encode(message: SMSRecord, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SMSRecord;
|
|
17
|
+
fromJSON(object: any): SMSRecord;
|
|
18
|
+
toJSON(message: SMSRecord): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<SMSRecord>, I>>(base?: I): SMSRecord;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<SMSRecord>, I>>(object: I): SMSRecord;
|
|
21
|
+
};
|
|
22
|
+
export declare const bulkSMSRequest: {
|
|
23
|
+
encode(message: bulkSMSRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bulkSMSRequest;
|
|
25
|
+
fromJSON(object: any): bulkSMSRequest;
|
|
26
|
+
toJSON(message: bulkSMSRequest): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<bulkSMSRequest>, I>>(base?: I): bulkSMSRequest;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<bulkSMSRequest>, I>>(object: I): bulkSMSRequest;
|
|
29
|
+
};
|
|
30
|
+
export declare const bulkSMSResponse: {
|
|
31
|
+
encode(message: bulkSMSResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): bulkSMSResponse;
|
|
33
|
+
fromJSON(object: any): bulkSMSResponse;
|
|
34
|
+
toJSON(message: bulkSMSResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<bulkSMSResponse>, I>>(base?: I): bulkSMSResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<bulkSMSResponse>, I>>(object: I): bulkSMSResponse;
|
|
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.4
|
|
6
|
+
// source: customers/bulksms.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.bulkSMSResponse = exports.bulkSMSRequest = exports.SMSRecord = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.bulksms";
|
|
15
|
+
function createBaseSMSRecord() {
|
|
16
|
+
return { contact: "", message: "", received_at: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.SMSRecord = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.contact !== "") {
|
|
21
|
+
writer.uint32(10).string(message.contact);
|
|
22
|
+
}
|
|
23
|
+
if (message.message !== "") {
|
|
24
|
+
writer.uint32(18).string(message.message);
|
|
25
|
+
}
|
|
26
|
+
if (message.received_at !== "") {
|
|
27
|
+
writer.uint32(26).string(message.received_at);
|
|
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 = createBaseSMSRecord();
|
|
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.contact = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.message = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.received_at = 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
|
+
contact: isSet(object.contact) ? globalThis.String(object.contact) : "",
|
|
67
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
68
|
+
received_at: isSet(object.received_at) ? globalThis.String(object.received_at) : "",
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.contact !== "") {
|
|
74
|
+
obj.contact = message.contact;
|
|
75
|
+
}
|
|
76
|
+
if (message.message !== "") {
|
|
77
|
+
obj.message = message.message;
|
|
78
|
+
}
|
|
79
|
+
if (message.received_at !== "") {
|
|
80
|
+
obj.received_at = message.received_at;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.SMSRecord.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseSMSRecord();
|
|
89
|
+
message.contact = object.contact ?? "";
|
|
90
|
+
message.message = object.message ?? "";
|
|
91
|
+
message.received_at = object.received_at ?? "";
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBasebulkSMSRequest() {
|
|
96
|
+
return { sms_records: [] };
|
|
97
|
+
}
|
|
98
|
+
exports.bulkSMSRequest = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
for (const v of message.sms_records) {
|
|
101
|
+
exports.SMSRecord.encode(v, writer.uint32(10).fork()).ldelim();
|
|
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 = createBasebulkSMSRequest();
|
|
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.sms_records.push(exports.SMSRecord.decode(reader, reader.uint32()));
|
|
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 {
|
|
128
|
+
sms_records: globalThis.Array.isArray(object?.sms_records)
|
|
129
|
+
? object.sms_records.map((e) => exports.SMSRecord.fromJSON(e))
|
|
130
|
+
: [],
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
toJSON(message) {
|
|
134
|
+
const obj = {};
|
|
135
|
+
if (message.sms_records?.length) {
|
|
136
|
+
obj.sms_records = message.sms_records.map((e) => exports.SMSRecord.toJSON(e));
|
|
137
|
+
}
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
create(base) {
|
|
141
|
+
return exports.bulkSMSRequest.fromPartial(base ?? {});
|
|
142
|
+
},
|
|
143
|
+
fromPartial(object) {
|
|
144
|
+
const message = createBasebulkSMSRequest();
|
|
145
|
+
message.sms_records = object.sms_records?.map((e) => exports.SMSRecord.fromPartial(e)) || [];
|
|
146
|
+
return message;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
function createBasebulkSMSResponse() {
|
|
150
|
+
return { status: "" };
|
|
151
|
+
}
|
|
152
|
+
exports.bulkSMSResponse = {
|
|
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 = createBasebulkSMSResponse();
|
|
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.bulkSMSResponse.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBasebulkSMSResponse();
|
|
195
|
+
message.status = object.status ?? "";
|
|
196
|
+
return message;
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
function isSet(value) {
|
|
200
|
+
return value !== null && value !== undefined;
|
|
201
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.changempin";
|
|
3
|
+
export interface changeMpinRequest {
|
|
4
|
+
old_mpin: number;
|
|
5
|
+
new_mpin: number;
|
|
6
|
+
}
|
|
7
|
+
export interface changeMpinResponse {
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const changeMpinRequest: {
|
|
11
|
+
encode(message: changeMpinRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): changeMpinRequest;
|
|
13
|
+
fromJSON(object: any): changeMpinRequest;
|
|
14
|
+
toJSON(message: changeMpinRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<changeMpinRequest>, I>>(base?: I): changeMpinRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<changeMpinRequest>, I>>(object: I): changeMpinRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const changeMpinResponse: {
|
|
19
|
+
encode(message: changeMpinResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): changeMpinResponse;
|
|
21
|
+
fromJSON(object: any): changeMpinResponse;
|
|
22
|
+
toJSON(message: changeMpinResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<changeMpinResponse>, I>>(base?: I): changeMpinResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<changeMpinResponse>, I>>(object: I): changeMpinResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|