@stashfin/grpc 1.2.875 → 1.2.877
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,45 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "bbps.remindernotification";
|
|
3
|
+
/** Request Data */
|
|
4
|
+
export interface getBillRowDataRequest {
|
|
5
|
+
id: number;
|
|
6
|
+
due_date: string;
|
|
7
|
+
due_amount: number;
|
|
8
|
+
customer_id: number;
|
|
9
|
+
account_no: string;
|
|
10
|
+
mobile: string;
|
|
11
|
+
biller_id: string;
|
|
12
|
+
biller_name: string;
|
|
13
|
+
category: string;
|
|
14
|
+
}
|
|
15
|
+
export interface getBillRowDataResponse {
|
|
16
|
+
/** "success" or "failure" */
|
|
17
|
+
status: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const getBillRowDataRequest: {
|
|
20
|
+
encode(message: getBillRowDataRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBillRowDataRequest;
|
|
22
|
+
fromJSON(object: any): getBillRowDataRequest;
|
|
23
|
+
toJSON(message: getBillRowDataRequest): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<getBillRowDataRequest>, I>>(base?: I): getBillRowDataRequest;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<getBillRowDataRequest>, I>>(object: I): getBillRowDataRequest;
|
|
26
|
+
};
|
|
27
|
+
export declare const getBillRowDataResponse: {
|
|
28
|
+
encode(message: getBillRowDataResponse, writer?: _m0.Writer): _m0.Writer;
|
|
29
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBillRowDataResponse;
|
|
30
|
+
fromJSON(object: any): getBillRowDataResponse;
|
|
31
|
+
toJSON(message: getBillRowDataResponse): unknown;
|
|
32
|
+
create<I extends Exact<DeepPartial<getBillRowDataResponse>, I>>(base?: I): getBillRowDataResponse;
|
|
33
|
+
fromPartial<I extends Exact<DeepPartial<getBillRowDataResponse>, I>>(object: I): getBillRowDataResponse;
|
|
34
|
+
};
|
|
35
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
36
|
+
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 {} ? {
|
|
37
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
38
|
+
} : Partial<T>;
|
|
39
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
40
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
41
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
42
|
+
} & {
|
|
43
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v6.32.0
|
|
6
|
+
// source: bbps/remindernotification.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.getBillRowDataResponse = exports.getBillRowDataRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "bbps.remindernotification";
|
|
15
|
+
function createBasegetBillRowDataRequest() {
|
|
16
|
+
return {
|
|
17
|
+
id: 0,
|
|
18
|
+
due_date: "",
|
|
19
|
+
due_amount: 0,
|
|
20
|
+
customer_id: 0,
|
|
21
|
+
account_no: "",
|
|
22
|
+
mobile: "",
|
|
23
|
+
biller_id: "",
|
|
24
|
+
biller_name: "",
|
|
25
|
+
category: "",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.getBillRowDataRequest = {
|
|
29
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
30
|
+
if (message.id !== 0) {
|
|
31
|
+
writer.uint32(8).int32(message.id);
|
|
32
|
+
}
|
|
33
|
+
if (message.due_date !== "") {
|
|
34
|
+
writer.uint32(18).string(message.due_date);
|
|
35
|
+
}
|
|
36
|
+
if (message.due_amount !== 0) {
|
|
37
|
+
writer.uint32(25).double(message.due_amount);
|
|
38
|
+
}
|
|
39
|
+
if (message.customer_id !== 0) {
|
|
40
|
+
writer.uint32(32).int32(message.customer_id);
|
|
41
|
+
}
|
|
42
|
+
if (message.account_no !== "") {
|
|
43
|
+
writer.uint32(42).string(message.account_no);
|
|
44
|
+
}
|
|
45
|
+
if (message.mobile !== "") {
|
|
46
|
+
writer.uint32(50).string(message.mobile);
|
|
47
|
+
}
|
|
48
|
+
if (message.biller_id !== "") {
|
|
49
|
+
writer.uint32(58).string(message.biller_id);
|
|
50
|
+
}
|
|
51
|
+
if (message.biller_name !== "") {
|
|
52
|
+
writer.uint32(66).string(message.biller_name);
|
|
53
|
+
}
|
|
54
|
+
if (message.category !== "") {
|
|
55
|
+
writer.uint32(74).string(message.category);
|
|
56
|
+
}
|
|
57
|
+
return writer;
|
|
58
|
+
},
|
|
59
|
+
decode(input, length) {
|
|
60
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
61
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
62
|
+
const message = createBasegetBillRowDataRequest();
|
|
63
|
+
while (reader.pos < end) {
|
|
64
|
+
const tag = reader.uint32();
|
|
65
|
+
switch (tag >>> 3) {
|
|
66
|
+
case 1:
|
|
67
|
+
if (tag !== 8) {
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
message.id = reader.int32();
|
|
71
|
+
continue;
|
|
72
|
+
case 2:
|
|
73
|
+
if (tag !== 18) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.due_date = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
case 3:
|
|
79
|
+
if (tag !== 25) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.due_amount = reader.double();
|
|
83
|
+
continue;
|
|
84
|
+
case 4:
|
|
85
|
+
if (tag !== 32) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
message.customer_id = reader.int32();
|
|
89
|
+
continue;
|
|
90
|
+
case 5:
|
|
91
|
+
if (tag !== 42) {
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
message.account_no = reader.string();
|
|
95
|
+
continue;
|
|
96
|
+
case 6:
|
|
97
|
+
if (tag !== 50) {
|
|
98
|
+
break;
|
|
99
|
+
}
|
|
100
|
+
message.mobile = reader.string();
|
|
101
|
+
continue;
|
|
102
|
+
case 7:
|
|
103
|
+
if (tag !== 58) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.biller_id = reader.string();
|
|
107
|
+
continue;
|
|
108
|
+
case 8:
|
|
109
|
+
if (tag !== 66) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.biller_name = reader.string();
|
|
113
|
+
continue;
|
|
114
|
+
case 9:
|
|
115
|
+
if (tag !== 74) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.category = reader.string();
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
reader.skipType(tag & 7);
|
|
125
|
+
}
|
|
126
|
+
return message;
|
|
127
|
+
},
|
|
128
|
+
fromJSON(object) {
|
|
129
|
+
return {
|
|
130
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
131
|
+
due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : "",
|
|
132
|
+
due_amount: isSet(object.due_amount) ? globalThis.Number(object.due_amount) : 0,
|
|
133
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
134
|
+
account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : "",
|
|
135
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
136
|
+
biller_id: isSet(object.biller_id) ? globalThis.String(object.biller_id) : "",
|
|
137
|
+
biller_name: isSet(object.biller_name) ? globalThis.String(object.biller_name) : "",
|
|
138
|
+
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
toJSON(message) {
|
|
142
|
+
const obj = {};
|
|
143
|
+
if (message.id !== 0) {
|
|
144
|
+
obj.id = Math.round(message.id);
|
|
145
|
+
}
|
|
146
|
+
if (message.due_date !== "") {
|
|
147
|
+
obj.due_date = message.due_date;
|
|
148
|
+
}
|
|
149
|
+
if (message.due_amount !== 0) {
|
|
150
|
+
obj.due_amount = message.due_amount;
|
|
151
|
+
}
|
|
152
|
+
if (message.customer_id !== 0) {
|
|
153
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
154
|
+
}
|
|
155
|
+
if (message.account_no !== "") {
|
|
156
|
+
obj.account_no = message.account_no;
|
|
157
|
+
}
|
|
158
|
+
if (message.mobile !== "") {
|
|
159
|
+
obj.mobile = message.mobile;
|
|
160
|
+
}
|
|
161
|
+
if (message.biller_id !== "") {
|
|
162
|
+
obj.biller_id = message.biller_id;
|
|
163
|
+
}
|
|
164
|
+
if (message.biller_name !== "") {
|
|
165
|
+
obj.biller_name = message.biller_name;
|
|
166
|
+
}
|
|
167
|
+
if (message.category !== "") {
|
|
168
|
+
obj.category = message.category;
|
|
169
|
+
}
|
|
170
|
+
return obj;
|
|
171
|
+
},
|
|
172
|
+
create(base) {
|
|
173
|
+
return exports.getBillRowDataRequest.fromPartial(base ?? {});
|
|
174
|
+
},
|
|
175
|
+
fromPartial(object) {
|
|
176
|
+
const message = createBasegetBillRowDataRequest();
|
|
177
|
+
message.id = object.id ?? 0;
|
|
178
|
+
message.due_date = object.due_date ?? "";
|
|
179
|
+
message.due_amount = object.due_amount ?? 0;
|
|
180
|
+
message.customer_id = object.customer_id ?? 0;
|
|
181
|
+
message.account_no = object.account_no ?? "";
|
|
182
|
+
message.mobile = object.mobile ?? "";
|
|
183
|
+
message.biller_id = object.biller_id ?? "";
|
|
184
|
+
message.biller_name = object.biller_name ?? "";
|
|
185
|
+
message.category = object.category ?? "";
|
|
186
|
+
return message;
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
function createBasegetBillRowDataResponse() {
|
|
190
|
+
return { status: "" };
|
|
191
|
+
}
|
|
192
|
+
exports.getBillRowDataResponse = {
|
|
193
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
194
|
+
if (message.status !== "") {
|
|
195
|
+
writer.uint32(10).string(message.status);
|
|
196
|
+
}
|
|
197
|
+
return writer;
|
|
198
|
+
},
|
|
199
|
+
decode(input, length) {
|
|
200
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
201
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
202
|
+
const message = createBasegetBillRowDataResponse();
|
|
203
|
+
while (reader.pos < end) {
|
|
204
|
+
const tag = reader.uint32();
|
|
205
|
+
switch (tag >>> 3) {
|
|
206
|
+
case 1:
|
|
207
|
+
if (tag !== 10) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.status = reader.string();
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
reader.skipType(tag & 7);
|
|
217
|
+
}
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
fromJSON(object) {
|
|
221
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
222
|
+
},
|
|
223
|
+
toJSON(message) {
|
|
224
|
+
const obj = {};
|
|
225
|
+
if (message.status !== "") {
|
|
226
|
+
obj.status = message.status;
|
|
227
|
+
}
|
|
228
|
+
return obj;
|
|
229
|
+
},
|
|
230
|
+
create(base) {
|
|
231
|
+
return exports.getBillRowDataResponse.fromPartial(base ?? {});
|
|
232
|
+
},
|
|
233
|
+
fromPartial(object) {
|
|
234
|
+
const message = createBasegetBillRowDataResponse();
|
|
235
|
+
message.status = object.status ?? "";
|
|
236
|
+
return message;
|
|
237
|
+
},
|
|
238
|
+
};
|
|
239
|
+
function isSet(value) {
|
|
240
|
+
return value !== null && value !== undefined;
|
|
241
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { getBillRowDataRequest, getBillRowDataResponse } from "./bbps/remindernotification";
|
|
3
|
+
export declare const protobufPackage = "service";
|
|
4
|
+
export type bbpsreminderService = typeof bbpsreminderService;
|
|
5
|
+
export declare const bbpsreminderService: {
|
|
6
|
+
readonly getReminderNotification: {
|
|
7
|
+
readonly path: "/service.bbpsreminder/getReminderNotification";
|
|
8
|
+
readonly requestStream: false;
|
|
9
|
+
readonly responseStream: false;
|
|
10
|
+
readonly requestSerialize: (value: getBillRowDataRequest) => Buffer<ArrayBuffer>;
|
|
11
|
+
readonly requestDeserialize: (value: Buffer) => getBillRowDataRequest;
|
|
12
|
+
readonly responseSerialize: (value: getBillRowDataResponse) => Buffer<ArrayBuffer>;
|
|
13
|
+
readonly responseDeserialize: (value: Buffer) => getBillRowDataResponse;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export interface bbpsreminderServer extends UntypedServiceImplementation {
|
|
17
|
+
getReminderNotification: handleUnaryCall<getBillRowDataRequest, getBillRowDataResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface bbpsreminderClient extends Client {
|
|
20
|
+
getReminderNotification(request: getBillRowDataRequest, callback: (error: ServiceError | null, response: getBillRowDataResponse) => void): ClientUnaryCall;
|
|
21
|
+
getReminderNotification(request: getBillRowDataRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBillRowDataResponse) => void): ClientUnaryCall;
|
|
22
|
+
getReminderNotification(request: getBillRowDataRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBillRowDataResponse) => void): ClientUnaryCall;
|
|
23
|
+
}
|
|
24
|
+
export declare const bbpsreminderClient: {
|
|
25
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bbpsreminderClient;
|
|
26
|
+
service: typeof bbpsreminderService;
|
|
27
|
+
serviceName: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.2
|
|
5
|
+
// protoc v6.32.0
|
|
6
|
+
// source: bbpsreminder.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.bbpsreminderClient = exports.bbpsreminderService = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const remindernotification_1 = require("./bbps/remindernotification");
|
|
12
|
+
exports.protobufPackage = "service";
|
|
13
|
+
exports.bbpsreminderService = {
|
|
14
|
+
getReminderNotification: {
|
|
15
|
+
path: "/service.bbpsreminder/getReminderNotification",
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestSerialize: (value) => Buffer.from(remindernotification_1.getBillRowDataRequest.encode(value).finish()),
|
|
19
|
+
requestDeserialize: (value) => remindernotification_1.getBillRowDataRequest.decode(value),
|
|
20
|
+
responseSerialize: (value) => Buffer.from(remindernotification_1.getBillRowDataResponse.encode(value).finish()),
|
|
21
|
+
responseDeserialize: (value) => remindernotification_1.getBillRowDataResponse.decode(value),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
exports.bbpsreminderClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bbpsreminderService, "service.bbpsreminder");
|
|
@@ -12,6 +12,7 @@ export interface authenticateUserData {
|
|
|
12
12
|
email?: string | undefined;
|
|
13
13
|
mobile?: string | undefined;
|
|
14
14
|
device_id?: string | undefined;
|
|
15
|
+
akara_customer_id?: string | undefined;
|
|
15
16
|
source?: string | undefined;
|
|
16
17
|
}
|
|
17
18
|
export interface authenticatUserResponse {
|
|
@@ -100,6 +100,7 @@ function createBaseauthenticateUserData() {
|
|
|
100
100
|
email: undefined,
|
|
101
101
|
mobile: undefined,
|
|
102
102
|
device_id: undefined,
|
|
103
|
+
akara_customer_id: undefined,
|
|
103
104
|
source: undefined,
|
|
104
105
|
};
|
|
105
106
|
}
|
|
@@ -123,8 +124,11 @@ exports.authenticateUserData = {
|
|
|
123
124
|
if (message.device_id !== undefined) {
|
|
124
125
|
writer.uint32(50).string(message.device_id);
|
|
125
126
|
}
|
|
127
|
+
if (message.akara_customer_id !== undefined) {
|
|
128
|
+
writer.uint32(58).string(message.akara_customer_id);
|
|
129
|
+
}
|
|
126
130
|
if (message.source !== undefined) {
|
|
127
|
-
writer.uint32(
|
|
131
|
+
writer.uint32(66).string(message.source);
|
|
128
132
|
}
|
|
129
133
|
return writer;
|
|
130
134
|
},
|
|
@@ -175,6 +179,12 @@ exports.authenticateUserData = {
|
|
|
175
179
|
if (tag !== 58) {
|
|
176
180
|
break;
|
|
177
181
|
}
|
|
182
|
+
message.akara_customer_id = reader.string();
|
|
183
|
+
continue;
|
|
184
|
+
case 8:
|
|
185
|
+
if (tag !== 66) {
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
178
188
|
message.source = reader.string();
|
|
179
189
|
continue;
|
|
180
190
|
}
|
|
@@ -193,6 +203,7 @@ exports.authenticateUserData = {
|
|
|
193
203
|
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
194
204
|
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
|
|
195
205
|
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
|
|
206
|
+
akara_customer_id: isSet(object.akara_customer_id) ? globalThis.String(object.akara_customer_id) : undefined,
|
|
196
207
|
source: isSet(object.source) ? globalThis.String(object.source) : undefined,
|
|
197
208
|
};
|
|
198
209
|
},
|
|
@@ -216,6 +227,9 @@ exports.authenticateUserData = {
|
|
|
216
227
|
if (message.device_id !== undefined) {
|
|
217
228
|
obj.device_id = message.device_id;
|
|
218
229
|
}
|
|
230
|
+
if (message.akara_customer_id !== undefined) {
|
|
231
|
+
obj.akara_customer_id = message.akara_customer_id;
|
|
232
|
+
}
|
|
219
233
|
if (message.source !== undefined) {
|
|
220
234
|
obj.source = message.source;
|
|
221
235
|
}
|
|
@@ -232,6 +246,7 @@ exports.authenticateUserData = {
|
|
|
232
246
|
message.email = object.email ?? undefined;
|
|
233
247
|
message.mobile = object.mobile ?? undefined;
|
|
234
248
|
message.device_id = object.device_id ?? undefined;
|
|
249
|
+
message.akara_customer_id = object.akara_customer_id ?? undefined;
|
|
235
250
|
message.source = object.source ?? undefined;
|
|
236
251
|
return message;
|
|
237
252
|
},
|