@stashfin/grpc 1.2.741 → 1.2.743
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/bbps/getbills.d.ts +96 -0
- package/ts/bbps/getbills.js +549 -0
- package/ts/bbps.d.ts +28 -0
- package/ts/bbps.js +24 -0
- package/ts/eqxcustomer.d.ts +14 -0
- package/ts/eqxcustomer.js +10 -0
- package/ts/eqxcustomers/truecallerlogin.d.ts +49 -0
- package/ts/eqxcustomers/truecallerlogin.js +335 -0
package/package.json
CHANGED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "bbps.getbills";
|
|
3
|
+
/** Query parameters message */
|
|
4
|
+
export interface BillsQueryParams {
|
|
5
|
+
/** Optional */
|
|
6
|
+
date?: string | undefined;
|
|
7
|
+
/** Optional */
|
|
8
|
+
utilityId?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
/** Request message */
|
|
11
|
+
export interface getBillsRequest {
|
|
12
|
+
/** Optional query parameters */
|
|
13
|
+
queryParams?: BillsQueryParams | undefined;
|
|
14
|
+
/** Required in body */
|
|
15
|
+
customerId: number;
|
|
16
|
+
}
|
|
17
|
+
/** CustomerParam message */
|
|
18
|
+
export interface CustomerParam {
|
|
19
|
+
value: string;
|
|
20
|
+
/** Optional */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Optional */
|
|
23
|
+
parameter_name: string;
|
|
24
|
+
}
|
|
25
|
+
/** BillData message */
|
|
26
|
+
export interface BillData {
|
|
27
|
+
id: number;
|
|
28
|
+
utility_id: number;
|
|
29
|
+
utility_name: string;
|
|
30
|
+
vendor_id: number;
|
|
31
|
+
biller_id: string;
|
|
32
|
+
account_no: string;
|
|
33
|
+
bill_amount: number;
|
|
34
|
+
provider_logo: string;
|
|
35
|
+
is_due: boolean;
|
|
36
|
+
note: string;
|
|
37
|
+
is_pending: boolean;
|
|
38
|
+
is_failed: boolean;
|
|
39
|
+
customer_params: CustomerParam[];
|
|
40
|
+
additional_validation_details: CustomerParam[];
|
|
41
|
+
}
|
|
42
|
+
/** Response wrapper */
|
|
43
|
+
export interface getBillsResponse {
|
|
44
|
+
bills: BillData[];
|
|
45
|
+
}
|
|
46
|
+
export declare const BillsQueryParams: {
|
|
47
|
+
encode(message: BillsQueryParams, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BillsQueryParams;
|
|
49
|
+
fromJSON(object: any): BillsQueryParams;
|
|
50
|
+
toJSON(message: BillsQueryParams): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<BillsQueryParams>, I>>(base?: I): BillsQueryParams;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<BillsQueryParams>, I>>(object: I): BillsQueryParams;
|
|
53
|
+
};
|
|
54
|
+
export declare const getBillsRequest: {
|
|
55
|
+
encode(message: getBillsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBillsRequest;
|
|
57
|
+
fromJSON(object: any): getBillsRequest;
|
|
58
|
+
toJSON(message: getBillsRequest): unknown;
|
|
59
|
+
create<I extends Exact<DeepPartial<getBillsRequest>, I>>(base?: I): getBillsRequest;
|
|
60
|
+
fromPartial<I extends Exact<DeepPartial<getBillsRequest>, I>>(object: I): getBillsRequest;
|
|
61
|
+
};
|
|
62
|
+
export declare const CustomerParam: {
|
|
63
|
+
encode(message: CustomerParam, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CustomerParam;
|
|
65
|
+
fromJSON(object: any): CustomerParam;
|
|
66
|
+
toJSON(message: CustomerParam): unknown;
|
|
67
|
+
create<I extends Exact<DeepPartial<CustomerParam>, I>>(base?: I): CustomerParam;
|
|
68
|
+
fromPartial<I extends Exact<DeepPartial<CustomerParam>, I>>(object: I): CustomerParam;
|
|
69
|
+
};
|
|
70
|
+
export declare const BillData: {
|
|
71
|
+
encode(message: BillData, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BillData;
|
|
73
|
+
fromJSON(object: any): BillData;
|
|
74
|
+
toJSON(message: BillData): unknown;
|
|
75
|
+
create<I extends Exact<DeepPartial<BillData>, I>>(base?: I): BillData;
|
|
76
|
+
fromPartial<I extends Exact<DeepPartial<BillData>, I>>(object: I): BillData;
|
|
77
|
+
};
|
|
78
|
+
export declare const getBillsResponse: {
|
|
79
|
+
encode(message: getBillsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBillsResponse;
|
|
81
|
+
fromJSON(object: any): getBillsResponse;
|
|
82
|
+
toJSON(message: getBillsResponse): unknown;
|
|
83
|
+
create<I extends Exact<DeepPartial<getBillsResponse>, I>>(base?: I): getBillsResponse;
|
|
84
|
+
fromPartial<I extends Exact<DeepPartial<getBillsResponse>, I>>(object: I): getBillsResponse;
|
|
85
|
+
};
|
|
86
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
87
|
+
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 {} ? {
|
|
88
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
89
|
+
} : Partial<T>;
|
|
90
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
91
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
92
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
93
|
+
} & {
|
|
94
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
@@ -0,0 +1,549 @@
|
|
|
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 v5.29.3
|
|
6
|
+
// source: bbps/getbills.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.getBillsResponse = exports.BillData = exports.CustomerParam = exports.getBillsRequest = exports.BillsQueryParams = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "bbps.getbills";
|
|
16
|
+
function createBaseBillsQueryParams() {
|
|
17
|
+
return { date: undefined, utilityId: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.BillsQueryParams = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.date !== undefined) {
|
|
22
|
+
writer.uint32(10).string(message.date);
|
|
23
|
+
}
|
|
24
|
+
if (message.utilityId !== undefined) {
|
|
25
|
+
writer.uint32(16).int32(message.utilityId);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseBillsQueryParams();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1:
|
|
37
|
+
if (tag !== 10) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.date = reader.string();
|
|
41
|
+
continue;
|
|
42
|
+
case 2:
|
|
43
|
+
if (tag !== 16) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
message.utilityId = reader.int32();
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
reader.skipType(tag & 7);
|
|
53
|
+
}
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromJSON(object) {
|
|
57
|
+
return {
|
|
58
|
+
date: isSet(object.date) ? globalThis.String(object.date) : undefined,
|
|
59
|
+
utilityId: isSet(object.utilityId) ? globalThis.Number(object.utilityId) : undefined,
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
toJSON(message) {
|
|
63
|
+
const obj = {};
|
|
64
|
+
if (message.date !== undefined) {
|
|
65
|
+
obj.date = message.date;
|
|
66
|
+
}
|
|
67
|
+
if (message.utilityId !== undefined) {
|
|
68
|
+
obj.utilityId = Math.round(message.utilityId);
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
},
|
|
72
|
+
create(base) {
|
|
73
|
+
return exports.BillsQueryParams.fromPartial(base ?? {});
|
|
74
|
+
},
|
|
75
|
+
fromPartial(object) {
|
|
76
|
+
const message = createBaseBillsQueryParams();
|
|
77
|
+
message.date = object.date ?? undefined;
|
|
78
|
+
message.utilityId = object.utilityId ?? undefined;
|
|
79
|
+
return message;
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
function createBasegetBillsRequest() {
|
|
83
|
+
return { queryParams: undefined, customerId: 0 };
|
|
84
|
+
}
|
|
85
|
+
exports.getBillsRequest = {
|
|
86
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
87
|
+
if (message.queryParams !== undefined) {
|
|
88
|
+
exports.BillsQueryParams.encode(message.queryParams, writer.uint32(10).fork()).ldelim();
|
|
89
|
+
}
|
|
90
|
+
if (message.customerId !== 0) {
|
|
91
|
+
writer.uint32(16).int64(message.customerId);
|
|
92
|
+
}
|
|
93
|
+
return writer;
|
|
94
|
+
},
|
|
95
|
+
decode(input, length) {
|
|
96
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
97
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
98
|
+
const message = createBasegetBillsRequest();
|
|
99
|
+
while (reader.pos < end) {
|
|
100
|
+
const tag = reader.uint32();
|
|
101
|
+
switch (tag >>> 3) {
|
|
102
|
+
case 1:
|
|
103
|
+
if (tag !== 10) {
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
message.queryParams = exports.BillsQueryParams.decode(reader, reader.uint32());
|
|
107
|
+
continue;
|
|
108
|
+
case 2:
|
|
109
|
+
if (tag !== 16) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.customerId = longToNumber(reader.int64());
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
reader.skipType(tag & 7);
|
|
119
|
+
}
|
|
120
|
+
return message;
|
|
121
|
+
},
|
|
122
|
+
fromJSON(object) {
|
|
123
|
+
return {
|
|
124
|
+
queryParams: isSet(object.queryParams) ? exports.BillsQueryParams.fromJSON(object.queryParams) : undefined,
|
|
125
|
+
customerId: isSet(object.customerId) ? globalThis.Number(object.customerId) : 0,
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
toJSON(message) {
|
|
129
|
+
const obj = {};
|
|
130
|
+
if (message.queryParams !== undefined) {
|
|
131
|
+
obj.queryParams = exports.BillsQueryParams.toJSON(message.queryParams);
|
|
132
|
+
}
|
|
133
|
+
if (message.customerId !== 0) {
|
|
134
|
+
obj.customerId = Math.round(message.customerId);
|
|
135
|
+
}
|
|
136
|
+
return obj;
|
|
137
|
+
},
|
|
138
|
+
create(base) {
|
|
139
|
+
return exports.getBillsRequest.fromPartial(base ?? {});
|
|
140
|
+
},
|
|
141
|
+
fromPartial(object) {
|
|
142
|
+
const message = createBasegetBillsRequest();
|
|
143
|
+
message.queryParams = (object.queryParams !== undefined && object.queryParams !== null)
|
|
144
|
+
? exports.BillsQueryParams.fromPartial(object.queryParams)
|
|
145
|
+
: undefined;
|
|
146
|
+
message.customerId = object.customerId ?? 0;
|
|
147
|
+
return message;
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
function createBaseCustomerParam() {
|
|
151
|
+
return { value: "", name: "", parameter_name: "" };
|
|
152
|
+
}
|
|
153
|
+
exports.CustomerParam = {
|
|
154
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
155
|
+
if (message.value !== "") {
|
|
156
|
+
writer.uint32(10).string(message.value);
|
|
157
|
+
}
|
|
158
|
+
if (message.name !== "") {
|
|
159
|
+
writer.uint32(18).string(message.name);
|
|
160
|
+
}
|
|
161
|
+
if (message.parameter_name !== "") {
|
|
162
|
+
writer.uint32(26).string(message.parameter_name);
|
|
163
|
+
}
|
|
164
|
+
return writer;
|
|
165
|
+
},
|
|
166
|
+
decode(input, length) {
|
|
167
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
168
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
169
|
+
const message = createBaseCustomerParam();
|
|
170
|
+
while (reader.pos < end) {
|
|
171
|
+
const tag = reader.uint32();
|
|
172
|
+
switch (tag >>> 3) {
|
|
173
|
+
case 1:
|
|
174
|
+
if (tag !== 10) {
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
message.value = reader.string();
|
|
178
|
+
continue;
|
|
179
|
+
case 2:
|
|
180
|
+
if (tag !== 18) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
message.name = reader.string();
|
|
184
|
+
continue;
|
|
185
|
+
case 3:
|
|
186
|
+
if (tag !== 26) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.parameter_name = reader.string();
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
reader.skipType(tag & 7);
|
|
196
|
+
}
|
|
197
|
+
return message;
|
|
198
|
+
},
|
|
199
|
+
fromJSON(object) {
|
|
200
|
+
return {
|
|
201
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
202
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
203
|
+
parameter_name: isSet(object.parameter_name) ? globalThis.String(object.parameter_name) : "",
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
toJSON(message) {
|
|
207
|
+
const obj = {};
|
|
208
|
+
if (message.value !== "") {
|
|
209
|
+
obj.value = message.value;
|
|
210
|
+
}
|
|
211
|
+
if (message.name !== "") {
|
|
212
|
+
obj.name = message.name;
|
|
213
|
+
}
|
|
214
|
+
if (message.parameter_name !== "") {
|
|
215
|
+
obj.parameter_name = message.parameter_name;
|
|
216
|
+
}
|
|
217
|
+
return obj;
|
|
218
|
+
},
|
|
219
|
+
create(base) {
|
|
220
|
+
return exports.CustomerParam.fromPartial(base ?? {});
|
|
221
|
+
},
|
|
222
|
+
fromPartial(object) {
|
|
223
|
+
const message = createBaseCustomerParam();
|
|
224
|
+
message.value = object.value ?? "";
|
|
225
|
+
message.name = object.name ?? "";
|
|
226
|
+
message.parameter_name = object.parameter_name ?? "";
|
|
227
|
+
return message;
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
function createBaseBillData() {
|
|
231
|
+
return {
|
|
232
|
+
id: 0,
|
|
233
|
+
utility_id: 0,
|
|
234
|
+
utility_name: "",
|
|
235
|
+
vendor_id: 0,
|
|
236
|
+
biller_id: "",
|
|
237
|
+
account_no: "",
|
|
238
|
+
bill_amount: 0,
|
|
239
|
+
provider_logo: "",
|
|
240
|
+
is_due: false,
|
|
241
|
+
note: "",
|
|
242
|
+
is_pending: false,
|
|
243
|
+
is_failed: false,
|
|
244
|
+
customer_params: [],
|
|
245
|
+
additional_validation_details: [],
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
exports.BillData = {
|
|
249
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
250
|
+
if (message.id !== 0) {
|
|
251
|
+
writer.uint32(8).int64(message.id);
|
|
252
|
+
}
|
|
253
|
+
if (message.utility_id !== 0) {
|
|
254
|
+
writer.uint32(16).int32(message.utility_id);
|
|
255
|
+
}
|
|
256
|
+
if (message.utility_name !== "") {
|
|
257
|
+
writer.uint32(26).string(message.utility_name);
|
|
258
|
+
}
|
|
259
|
+
if (message.vendor_id !== 0) {
|
|
260
|
+
writer.uint32(32).int32(message.vendor_id);
|
|
261
|
+
}
|
|
262
|
+
if (message.biller_id !== "") {
|
|
263
|
+
writer.uint32(42).string(message.biller_id);
|
|
264
|
+
}
|
|
265
|
+
if (message.account_no !== "") {
|
|
266
|
+
writer.uint32(50).string(message.account_no);
|
|
267
|
+
}
|
|
268
|
+
if (message.bill_amount !== 0) {
|
|
269
|
+
writer.uint32(57).double(message.bill_amount);
|
|
270
|
+
}
|
|
271
|
+
if (message.provider_logo !== "") {
|
|
272
|
+
writer.uint32(66).string(message.provider_logo);
|
|
273
|
+
}
|
|
274
|
+
if (message.is_due !== false) {
|
|
275
|
+
writer.uint32(72).bool(message.is_due);
|
|
276
|
+
}
|
|
277
|
+
if (message.note !== "") {
|
|
278
|
+
writer.uint32(82).string(message.note);
|
|
279
|
+
}
|
|
280
|
+
if (message.is_pending !== false) {
|
|
281
|
+
writer.uint32(88).bool(message.is_pending);
|
|
282
|
+
}
|
|
283
|
+
if (message.is_failed !== false) {
|
|
284
|
+
writer.uint32(96).bool(message.is_failed);
|
|
285
|
+
}
|
|
286
|
+
for (const v of message.customer_params) {
|
|
287
|
+
exports.CustomerParam.encode(v, writer.uint32(106).fork()).ldelim();
|
|
288
|
+
}
|
|
289
|
+
for (const v of message.additional_validation_details) {
|
|
290
|
+
exports.CustomerParam.encode(v, writer.uint32(114).fork()).ldelim();
|
|
291
|
+
}
|
|
292
|
+
return writer;
|
|
293
|
+
},
|
|
294
|
+
decode(input, length) {
|
|
295
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
296
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
297
|
+
const message = createBaseBillData();
|
|
298
|
+
while (reader.pos < end) {
|
|
299
|
+
const tag = reader.uint32();
|
|
300
|
+
switch (tag >>> 3) {
|
|
301
|
+
case 1:
|
|
302
|
+
if (tag !== 8) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
message.id = longToNumber(reader.int64());
|
|
306
|
+
continue;
|
|
307
|
+
case 2:
|
|
308
|
+
if (tag !== 16) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.utility_id = reader.int32();
|
|
312
|
+
continue;
|
|
313
|
+
case 3:
|
|
314
|
+
if (tag !== 26) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
message.utility_name = reader.string();
|
|
318
|
+
continue;
|
|
319
|
+
case 4:
|
|
320
|
+
if (tag !== 32) {
|
|
321
|
+
break;
|
|
322
|
+
}
|
|
323
|
+
message.vendor_id = reader.int32();
|
|
324
|
+
continue;
|
|
325
|
+
case 5:
|
|
326
|
+
if (tag !== 42) {
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
message.biller_id = reader.string();
|
|
330
|
+
continue;
|
|
331
|
+
case 6:
|
|
332
|
+
if (tag !== 50) {
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
message.account_no = reader.string();
|
|
336
|
+
continue;
|
|
337
|
+
case 7:
|
|
338
|
+
if (tag !== 57) {
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
message.bill_amount = reader.double();
|
|
342
|
+
continue;
|
|
343
|
+
case 8:
|
|
344
|
+
if (tag !== 66) {
|
|
345
|
+
break;
|
|
346
|
+
}
|
|
347
|
+
message.provider_logo = reader.string();
|
|
348
|
+
continue;
|
|
349
|
+
case 9:
|
|
350
|
+
if (tag !== 72) {
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
message.is_due = reader.bool();
|
|
354
|
+
continue;
|
|
355
|
+
case 10:
|
|
356
|
+
if (tag !== 82) {
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
message.note = reader.string();
|
|
360
|
+
continue;
|
|
361
|
+
case 11:
|
|
362
|
+
if (tag !== 88) {
|
|
363
|
+
break;
|
|
364
|
+
}
|
|
365
|
+
message.is_pending = reader.bool();
|
|
366
|
+
continue;
|
|
367
|
+
case 12:
|
|
368
|
+
if (tag !== 96) {
|
|
369
|
+
break;
|
|
370
|
+
}
|
|
371
|
+
message.is_failed = reader.bool();
|
|
372
|
+
continue;
|
|
373
|
+
case 13:
|
|
374
|
+
if (tag !== 106) {
|
|
375
|
+
break;
|
|
376
|
+
}
|
|
377
|
+
message.customer_params.push(exports.CustomerParam.decode(reader, reader.uint32()));
|
|
378
|
+
continue;
|
|
379
|
+
case 14:
|
|
380
|
+
if (tag !== 114) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
message.additional_validation_details.push(exports.CustomerParam.decode(reader, reader.uint32()));
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
387
|
+
break;
|
|
388
|
+
}
|
|
389
|
+
reader.skipType(tag & 7);
|
|
390
|
+
}
|
|
391
|
+
return message;
|
|
392
|
+
},
|
|
393
|
+
fromJSON(object) {
|
|
394
|
+
return {
|
|
395
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
396
|
+
utility_id: isSet(object.utility_id) ? globalThis.Number(object.utility_id) : 0,
|
|
397
|
+
utility_name: isSet(object.utility_name) ? globalThis.String(object.utility_name) : "",
|
|
398
|
+
vendor_id: isSet(object.vendor_id) ? globalThis.Number(object.vendor_id) : 0,
|
|
399
|
+
biller_id: isSet(object.biller_id) ? globalThis.String(object.biller_id) : "",
|
|
400
|
+
account_no: isSet(object.account_no) ? globalThis.String(object.account_no) : "",
|
|
401
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
402
|
+
provider_logo: isSet(object.provider_logo) ? globalThis.String(object.provider_logo) : "",
|
|
403
|
+
is_due: isSet(object.is_due) ? globalThis.Boolean(object.is_due) : false,
|
|
404
|
+
note: isSet(object.note) ? globalThis.String(object.note) : "",
|
|
405
|
+
is_pending: isSet(object.is_pending) ? globalThis.Boolean(object.is_pending) : false,
|
|
406
|
+
is_failed: isSet(object.is_failed) ? globalThis.Boolean(object.is_failed) : false,
|
|
407
|
+
customer_params: globalThis.Array.isArray(object?.customer_params)
|
|
408
|
+
? object.customer_params.map((e) => exports.CustomerParam.fromJSON(e))
|
|
409
|
+
: [],
|
|
410
|
+
additional_validation_details: globalThis.Array.isArray(object?.additional_validation_details)
|
|
411
|
+
? object.additional_validation_details.map((e) => exports.CustomerParam.fromJSON(e))
|
|
412
|
+
: [],
|
|
413
|
+
};
|
|
414
|
+
},
|
|
415
|
+
toJSON(message) {
|
|
416
|
+
const obj = {};
|
|
417
|
+
if (message.id !== 0) {
|
|
418
|
+
obj.id = Math.round(message.id);
|
|
419
|
+
}
|
|
420
|
+
if (message.utility_id !== 0) {
|
|
421
|
+
obj.utility_id = Math.round(message.utility_id);
|
|
422
|
+
}
|
|
423
|
+
if (message.utility_name !== "") {
|
|
424
|
+
obj.utility_name = message.utility_name;
|
|
425
|
+
}
|
|
426
|
+
if (message.vendor_id !== 0) {
|
|
427
|
+
obj.vendor_id = Math.round(message.vendor_id);
|
|
428
|
+
}
|
|
429
|
+
if (message.biller_id !== "") {
|
|
430
|
+
obj.biller_id = message.biller_id;
|
|
431
|
+
}
|
|
432
|
+
if (message.account_no !== "") {
|
|
433
|
+
obj.account_no = message.account_no;
|
|
434
|
+
}
|
|
435
|
+
if (message.bill_amount !== 0) {
|
|
436
|
+
obj.bill_amount = message.bill_amount;
|
|
437
|
+
}
|
|
438
|
+
if (message.provider_logo !== "") {
|
|
439
|
+
obj.provider_logo = message.provider_logo;
|
|
440
|
+
}
|
|
441
|
+
if (message.is_due !== false) {
|
|
442
|
+
obj.is_due = message.is_due;
|
|
443
|
+
}
|
|
444
|
+
if (message.note !== "") {
|
|
445
|
+
obj.note = message.note;
|
|
446
|
+
}
|
|
447
|
+
if (message.is_pending !== false) {
|
|
448
|
+
obj.is_pending = message.is_pending;
|
|
449
|
+
}
|
|
450
|
+
if (message.is_failed !== false) {
|
|
451
|
+
obj.is_failed = message.is_failed;
|
|
452
|
+
}
|
|
453
|
+
if (message.customer_params?.length) {
|
|
454
|
+
obj.customer_params = message.customer_params.map((e) => exports.CustomerParam.toJSON(e));
|
|
455
|
+
}
|
|
456
|
+
if (message.additional_validation_details?.length) {
|
|
457
|
+
obj.additional_validation_details = message.additional_validation_details.map((e) => exports.CustomerParam.toJSON(e));
|
|
458
|
+
}
|
|
459
|
+
return obj;
|
|
460
|
+
},
|
|
461
|
+
create(base) {
|
|
462
|
+
return exports.BillData.fromPartial(base ?? {});
|
|
463
|
+
},
|
|
464
|
+
fromPartial(object) {
|
|
465
|
+
const message = createBaseBillData();
|
|
466
|
+
message.id = object.id ?? 0;
|
|
467
|
+
message.utility_id = object.utility_id ?? 0;
|
|
468
|
+
message.utility_name = object.utility_name ?? "";
|
|
469
|
+
message.vendor_id = object.vendor_id ?? 0;
|
|
470
|
+
message.biller_id = object.biller_id ?? "";
|
|
471
|
+
message.account_no = object.account_no ?? "";
|
|
472
|
+
message.bill_amount = object.bill_amount ?? 0;
|
|
473
|
+
message.provider_logo = object.provider_logo ?? "";
|
|
474
|
+
message.is_due = object.is_due ?? false;
|
|
475
|
+
message.note = object.note ?? "";
|
|
476
|
+
message.is_pending = object.is_pending ?? false;
|
|
477
|
+
message.is_failed = object.is_failed ?? false;
|
|
478
|
+
message.customer_params = object.customer_params?.map((e) => exports.CustomerParam.fromPartial(e)) || [];
|
|
479
|
+
message.additional_validation_details =
|
|
480
|
+
object.additional_validation_details?.map((e) => exports.CustomerParam.fromPartial(e)) || [];
|
|
481
|
+
return message;
|
|
482
|
+
},
|
|
483
|
+
};
|
|
484
|
+
function createBasegetBillsResponse() {
|
|
485
|
+
return { bills: [] };
|
|
486
|
+
}
|
|
487
|
+
exports.getBillsResponse = {
|
|
488
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
489
|
+
for (const v of message.bills) {
|
|
490
|
+
exports.BillData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
491
|
+
}
|
|
492
|
+
return writer;
|
|
493
|
+
},
|
|
494
|
+
decode(input, length) {
|
|
495
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
496
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
497
|
+
const message = createBasegetBillsResponse();
|
|
498
|
+
while (reader.pos < end) {
|
|
499
|
+
const tag = reader.uint32();
|
|
500
|
+
switch (tag >>> 3) {
|
|
501
|
+
case 1:
|
|
502
|
+
if (tag !== 10) {
|
|
503
|
+
break;
|
|
504
|
+
}
|
|
505
|
+
message.bills.push(exports.BillData.decode(reader, reader.uint32()));
|
|
506
|
+
continue;
|
|
507
|
+
}
|
|
508
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
reader.skipType(tag & 7);
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
},
|
|
515
|
+
fromJSON(object) {
|
|
516
|
+
return { bills: globalThis.Array.isArray(object?.bills) ? object.bills.map((e) => exports.BillData.fromJSON(e)) : [] };
|
|
517
|
+
},
|
|
518
|
+
toJSON(message) {
|
|
519
|
+
const obj = {};
|
|
520
|
+
if (message.bills?.length) {
|
|
521
|
+
obj.bills = message.bills.map((e) => exports.BillData.toJSON(e));
|
|
522
|
+
}
|
|
523
|
+
return obj;
|
|
524
|
+
},
|
|
525
|
+
create(base) {
|
|
526
|
+
return exports.getBillsResponse.fromPartial(base ?? {});
|
|
527
|
+
},
|
|
528
|
+
fromPartial(object) {
|
|
529
|
+
const message = createBasegetBillsResponse();
|
|
530
|
+
message.bills = object.bills?.map((e) => exports.BillData.fromPartial(e)) || [];
|
|
531
|
+
return message;
|
|
532
|
+
},
|
|
533
|
+
};
|
|
534
|
+
function longToNumber(long) {
|
|
535
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
536
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
537
|
+
}
|
|
538
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
539
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
540
|
+
}
|
|
541
|
+
return long.toNumber();
|
|
542
|
+
}
|
|
543
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
544
|
+
minimal_1.default.util.Long = long_1.default;
|
|
545
|
+
minimal_1.default.configure();
|
|
546
|
+
}
|
|
547
|
+
function isSet(value) {
|
|
548
|
+
return value !== null && value !== undefined;
|
|
549
|
+
}
|
package/ts/bbps.d.ts
ADDED
|
@@ -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 { getBillsRequest, getBillsResponse } from "./bbps/getbills";
|
|
3
|
+
export declare const protobufPackage = "service";
|
|
4
|
+
export type bbpsService = typeof bbpsService;
|
|
5
|
+
export declare const bbpsService: {
|
|
6
|
+
readonly getBillList: {
|
|
7
|
+
readonly path: "/service.bbps/getBillList";
|
|
8
|
+
readonly requestStream: false;
|
|
9
|
+
readonly responseStream: false;
|
|
10
|
+
readonly requestSerialize: (value: getBillsRequest) => Buffer<ArrayBuffer>;
|
|
11
|
+
readonly requestDeserialize: (value: Buffer) => getBillsRequest;
|
|
12
|
+
readonly responseSerialize: (value: getBillsResponse) => Buffer<ArrayBuffer>;
|
|
13
|
+
readonly responseDeserialize: (value: Buffer) => getBillsResponse;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export interface bbpsServer extends UntypedServiceImplementation {
|
|
17
|
+
getBillList: handleUnaryCall<getBillsRequest, getBillsResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface bbpsClient extends Client {
|
|
20
|
+
getBillList(request: getBillsRequest, callback: (error: ServiceError | null, response: getBillsResponse) => void): ClientUnaryCall;
|
|
21
|
+
getBillList(request: getBillsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBillsResponse) => void): ClientUnaryCall;
|
|
22
|
+
getBillList(request: getBillsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBillsResponse) => void): ClientUnaryCall;
|
|
23
|
+
}
|
|
24
|
+
export declare const bbpsClient: {
|
|
25
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bbpsClient;
|
|
26
|
+
service: typeof bbpsService;
|
|
27
|
+
serviceName: string;
|
|
28
|
+
};
|
package/ts/bbps.js
ADDED
|
@@ -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 v5.29.3
|
|
6
|
+
// source: bbps.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.bbpsClient = exports.bbpsService = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getbills_1 = require("./bbps/getbills");
|
|
12
|
+
exports.protobufPackage = "service";
|
|
13
|
+
exports.bbpsService = {
|
|
14
|
+
getBillList: {
|
|
15
|
+
path: "/service.bbps/getBillList",
|
|
16
|
+
requestStream: false,
|
|
17
|
+
responseStream: false,
|
|
18
|
+
requestSerialize: (value) => Buffer.from(getbills_1.getBillsRequest.encode(value).finish()),
|
|
19
|
+
requestDeserialize: (value) => getbills_1.getBillsRequest.decode(value),
|
|
20
|
+
responseSerialize: (value) => Buffer.from(getbills_1.getBillsResponse.encode(value).finish()),
|
|
21
|
+
responseDeserialize: (value) => getbills_1.getBillsResponse.decode(value),
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
exports.bbpsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bbpsService, "service.bbps");
|
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { getTnCRequest, getTnCResponse } from "./eqxcustomers/gettnc";
|
|
|
13
13
|
import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
|
|
14
14
|
import { isCustomerRegisteredRequest, isCustomerRegisteredResponse } from "./eqxcustomers/iscustomerregistered";
|
|
15
15
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
16
|
+
import { truecallerLoginRequest, truecallerLoginResponse } from "./eqxcustomers/truecallerlogin";
|
|
16
17
|
import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
|
|
17
18
|
import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
|
|
18
19
|
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
@@ -202,6 +203,15 @@ export declare const eqxcustomersService: {
|
|
|
202
203
|
readonly responseSerialize: (value: getTnCResponse) => Buffer<ArrayBuffer>;
|
|
203
204
|
readonly responseDeserialize: (value: Buffer) => getTnCResponse;
|
|
204
205
|
};
|
|
206
|
+
readonly truecallerLogin: {
|
|
207
|
+
readonly path: "/service.eqxcustomers/truecallerLogin";
|
|
208
|
+
readonly requestStream: false;
|
|
209
|
+
readonly responseStream: false;
|
|
210
|
+
readonly requestSerialize: (value: truecallerLoginRequest) => Buffer<ArrayBuffer>;
|
|
211
|
+
readonly requestDeserialize: (value: Buffer) => truecallerLoginRequest;
|
|
212
|
+
readonly responseSerialize: (value: truecallerLoginResponse) => Buffer<ArrayBuffer>;
|
|
213
|
+
readonly responseDeserialize: (value: Buffer) => truecallerLoginResponse;
|
|
214
|
+
};
|
|
205
215
|
};
|
|
206
216
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
207
217
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -224,6 +234,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
224
234
|
isCustomerRegistered: handleUnaryCall<isCustomerRegisteredRequest, isCustomerRegisteredResponse>;
|
|
225
235
|
getLoanPlans: handleUnaryCall<getLoanPlansRequest, getLoanPlansResponse>;
|
|
226
236
|
getTnC: handleUnaryCall<getTnCRequest, getTnCResponse>;
|
|
237
|
+
truecallerLogin: handleUnaryCall<truecallerLoginRequest, truecallerLoginResponse>;
|
|
227
238
|
}
|
|
228
239
|
export interface eqxcustomersClient extends Client {
|
|
229
240
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -286,6 +297,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
286
297
|
getTnC(request: getTnCRequest, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
287
298
|
getTnC(request: getTnCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
288
299
|
getTnC(request: getTnCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTnCResponse) => void): ClientUnaryCall;
|
|
300
|
+
truecallerLogin(request: truecallerLoginRequest, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
|
|
301
|
+
truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
|
|
302
|
+
truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
|
|
289
303
|
}
|
|
290
304
|
export declare const eqxcustomersClient: {
|
|
291
305
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -22,6 +22,7 @@ const gettnc_1 = require("./eqxcustomers/gettnc");
|
|
|
22
22
|
const gettokens_1 = require("./eqxcustomers/gettokens");
|
|
23
23
|
const iscustomerregistered_1 = require("./eqxcustomers/iscustomerregistered");
|
|
24
24
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
25
|
+
const truecallerlogin_1 = require("./eqxcustomers/truecallerlogin");
|
|
25
26
|
const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
|
|
26
27
|
const updatenotification_1 = require("./eqxcustomers/updatenotification");
|
|
27
28
|
const updatepushid_1 = require("./eqxcustomers/updatepushid");
|
|
@@ -210,5 +211,14 @@ exports.eqxcustomersService = {
|
|
|
210
211
|
responseSerialize: (value) => Buffer.from(gettnc_1.getTnCResponse.encode(value).finish()),
|
|
211
212
|
responseDeserialize: (value) => gettnc_1.getTnCResponse.decode(value),
|
|
212
213
|
},
|
|
214
|
+
truecallerLogin: {
|
|
215
|
+
path: "/service.eqxcustomers/truecallerLogin",
|
|
216
|
+
requestStream: false,
|
|
217
|
+
responseStream: false,
|
|
218
|
+
requestSerialize: (value) => Buffer.from(truecallerlogin_1.truecallerLoginRequest.encode(value).finish()),
|
|
219
|
+
requestDeserialize: (value) => truecallerlogin_1.truecallerLoginRequest.decode(value),
|
|
220
|
+
responseSerialize: (value) => Buffer.from(truecallerlogin_1.truecallerLoginResponse.encode(value).finish()),
|
|
221
|
+
responseDeserialize: (value) => truecallerlogin_1.truecallerLoginResponse.decode(value),
|
|
222
|
+
},
|
|
213
223
|
};
|
|
214
224
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.truecallerlogin";
|
|
3
|
+
export interface truecallerLoginRequest {
|
|
4
|
+
client_id?: string | undefined;
|
|
5
|
+
auth_code?: string | undefined;
|
|
6
|
+
code_verifier?: string | undefined;
|
|
7
|
+
payload?: string | undefined;
|
|
8
|
+
signature?: string | undefined;
|
|
9
|
+
device_id: string;
|
|
10
|
+
platform: string;
|
|
11
|
+
utm_source?: string | undefined;
|
|
12
|
+
utm_medium?: string | undefined;
|
|
13
|
+
utm_campaign?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface truecallerLoginResponse {
|
|
16
|
+
auth_token: string;
|
|
17
|
+
deleted_auth_token?: string | undefined;
|
|
18
|
+
first_name?: string | undefined;
|
|
19
|
+
last_name?: string | undefined;
|
|
20
|
+
message: string;
|
|
21
|
+
refresh_token: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const truecallerLoginRequest: {
|
|
24
|
+
encode(message: truecallerLoginRequest, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): truecallerLoginRequest;
|
|
26
|
+
fromJSON(object: any): truecallerLoginRequest;
|
|
27
|
+
toJSON(message: truecallerLoginRequest): unknown;
|
|
28
|
+
create<I extends Exact<DeepPartial<truecallerLoginRequest>, I>>(base?: I): truecallerLoginRequest;
|
|
29
|
+
fromPartial<I extends Exact<DeepPartial<truecallerLoginRequest>, I>>(object: I): truecallerLoginRequest;
|
|
30
|
+
};
|
|
31
|
+
export declare const truecallerLoginResponse: {
|
|
32
|
+
encode(message: truecallerLoginResponse, writer?: _m0.Writer): _m0.Writer;
|
|
33
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): truecallerLoginResponse;
|
|
34
|
+
fromJSON(object: any): truecallerLoginResponse;
|
|
35
|
+
toJSON(message: truecallerLoginResponse): unknown;
|
|
36
|
+
create<I extends Exact<DeepPartial<truecallerLoginResponse>, I>>(base?: I): truecallerLoginResponse;
|
|
37
|
+
fromPartial<I extends Exact<DeepPartial<truecallerLoginResponse>, I>>(object: I): truecallerLoginResponse;
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
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 {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,335 @@
|
|
|
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 v5.29.3
|
|
6
|
+
// source: eqxcustomers/truecallerlogin.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.truecallerLoginResponse = exports.truecallerLoginRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.truecallerlogin";
|
|
15
|
+
function createBasetruecallerLoginRequest() {
|
|
16
|
+
return {
|
|
17
|
+
client_id: undefined,
|
|
18
|
+
auth_code: undefined,
|
|
19
|
+
code_verifier: undefined,
|
|
20
|
+
payload: undefined,
|
|
21
|
+
signature: undefined,
|
|
22
|
+
device_id: "",
|
|
23
|
+
platform: "",
|
|
24
|
+
utm_source: undefined,
|
|
25
|
+
utm_medium: undefined,
|
|
26
|
+
utm_campaign: undefined,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.truecallerLoginRequest = {
|
|
30
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
31
|
+
if (message.client_id !== undefined) {
|
|
32
|
+
writer.uint32(10).string(message.client_id);
|
|
33
|
+
}
|
|
34
|
+
if (message.auth_code !== undefined) {
|
|
35
|
+
writer.uint32(18).string(message.auth_code);
|
|
36
|
+
}
|
|
37
|
+
if (message.code_verifier !== undefined) {
|
|
38
|
+
writer.uint32(26).string(message.code_verifier);
|
|
39
|
+
}
|
|
40
|
+
if (message.payload !== undefined) {
|
|
41
|
+
writer.uint32(34).string(message.payload);
|
|
42
|
+
}
|
|
43
|
+
if (message.signature !== undefined) {
|
|
44
|
+
writer.uint32(42).string(message.signature);
|
|
45
|
+
}
|
|
46
|
+
if (message.device_id !== "") {
|
|
47
|
+
writer.uint32(50).string(message.device_id);
|
|
48
|
+
}
|
|
49
|
+
if (message.platform !== "") {
|
|
50
|
+
writer.uint32(58).string(message.platform);
|
|
51
|
+
}
|
|
52
|
+
if (message.utm_source !== undefined) {
|
|
53
|
+
writer.uint32(66).string(message.utm_source);
|
|
54
|
+
}
|
|
55
|
+
if (message.utm_medium !== undefined) {
|
|
56
|
+
writer.uint32(74).string(message.utm_medium);
|
|
57
|
+
}
|
|
58
|
+
if (message.utm_campaign !== undefined) {
|
|
59
|
+
writer.uint32(82).string(message.utm_campaign);
|
|
60
|
+
}
|
|
61
|
+
return writer;
|
|
62
|
+
},
|
|
63
|
+
decode(input, length) {
|
|
64
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
65
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
66
|
+
const message = createBasetruecallerLoginRequest();
|
|
67
|
+
while (reader.pos < end) {
|
|
68
|
+
const tag = reader.uint32();
|
|
69
|
+
switch (tag >>> 3) {
|
|
70
|
+
case 1:
|
|
71
|
+
if (tag !== 10) {
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
message.client_id = reader.string();
|
|
75
|
+
continue;
|
|
76
|
+
case 2:
|
|
77
|
+
if (tag !== 18) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.auth_code = reader.string();
|
|
81
|
+
continue;
|
|
82
|
+
case 3:
|
|
83
|
+
if (tag !== 26) {
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
message.code_verifier = reader.string();
|
|
87
|
+
continue;
|
|
88
|
+
case 4:
|
|
89
|
+
if (tag !== 34) {
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
message.payload = reader.string();
|
|
93
|
+
continue;
|
|
94
|
+
case 5:
|
|
95
|
+
if (tag !== 42) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.signature = reader.string();
|
|
99
|
+
continue;
|
|
100
|
+
case 6:
|
|
101
|
+
if (tag !== 50) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
104
|
+
message.device_id = reader.string();
|
|
105
|
+
continue;
|
|
106
|
+
case 7:
|
|
107
|
+
if (tag !== 58) {
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
message.platform = reader.string();
|
|
111
|
+
continue;
|
|
112
|
+
case 8:
|
|
113
|
+
if (tag !== 66) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
message.utm_source = reader.string();
|
|
117
|
+
continue;
|
|
118
|
+
case 9:
|
|
119
|
+
if (tag !== 74) {
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
message.utm_medium = reader.string();
|
|
123
|
+
continue;
|
|
124
|
+
case 10:
|
|
125
|
+
if (tag !== 82) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.utm_campaign = reader.string();
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
reader.skipType(tag & 7);
|
|
135
|
+
}
|
|
136
|
+
return message;
|
|
137
|
+
},
|
|
138
|
+
fromJSON(object) {
|
|
139
|
+
return {
|
|
140
|
+
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : undefined,
|
|
141
|
+
auth_code: isSet(object.auth_code) ? globalThis.String(object.auth_code) : undefined,
|
|
142
|
+
code_verifier: isSet(object.code_verifier) ? globalThis.String(object.code_verifier) : undefined,
|
|
143
|
+
payload: isSet(object.payload) ? globalThis.String(object.payload) : undefined,
|
|
144
|
+
signature: isSet(object.signature) ? globalThis.String(object.signature) : undefined,
|
|
145
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
|
|
146
|
+
platform: isSet(object.platform) ? globalThis.String(object.platform) : "",
|
|
147
|
+
utm_source: isSet(object.utm_source) ? globalThis.String(object.utm_source) : undefined,
|
|
148
|
+
utm_medium: isSet(object.utm_medium) ? globalThis.String(object.utm_medium) : undefined,
|
|
149
|
+
utm_campaign: isSet(object.utm_campaign) ? globalThis.String(object.utm_campaign) : undefined,
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
toJSON(message) {
|
|
153
|
+
const obj = {};
|
|
154
|
+
if (message.client_id !== undefined) {
|
|
155
|
+
obj.client_id = message.client_id;
|
|
156
|
+
}
|
|
157
|
+
if (message.auth_code !== undefined) {
|
|
158
|
+
obj.auth_code = message.auth_code;
|
|
159
|
+
}
|
|
160
|
+
if (message.code_verifier !== undefined) {
|
|
161
|
+
obj.code_verifier = message.code_verifier;
|
|
162
|
+
}
|
|
163
|
+
if (message.payload !== undefined) {
|
|
164
|
+
obj.payload = message.payload;
|
|
165
|
+
}
|
|
166
|
+
if (message.signature !== undefined) {
|
|
167
|
+
obj.signature = message.signature;
|
|
168
|
+
}
|
|
169
|
+
if (message.device_id !== "") {
|
|
170
|
+
obj.device_id = message.device_id;
|
|
171
|
+
}
|
|
172
|
+
if (message.platform !== "") {
|
|
173
|
+
obj.platform = message.platform;
|
|
174
|
+
}
|
|
175
|
+
if (message.utm_source !== undefined) {
|
|
176
|
+
obj.utm_source = message.utm_source;
|
|
177
|
+
}
|
|
178
|
+
if (message.utm_medium !== undefined) {
|
|
179
|
+
obj.utm_medium = message.utm_medium;
|
|
180
|
+
}
|
|
181
|
+
if (message.utm_campaign !== undefined) {
|
|
182
|
+
obj.utm_campaign = message.utm_campaign;
|
|
183
|
+
}
|
|
184
|
+
return obj;
|
|
185
|
+
},
|
|
186
|
+
create(base) {
|
|
187
|
+
return exports.truecallerLoginRequest.fromPartial(base ?? {});
|
|
188
|
+
},
|
|
189
|
+
fromPartial(object) {
|
|
190
|
+
const message = createBasetruecallerLoginRequest();
|
|
191
|
+
message.client_id = object.client_id ?? undefined;
|
|
192
|
+
message.auth_code = object.auth_code ?? undefined;
|
|
193
|
+
message.code_verifier = object.code_verifier ?? undefined;
|
|
194
|
+
message.payload = object.payload ?? undefined;
|
|
195
|
+
message.signature = object.signature ?? undefined;
|
|
196
|
+
message.device_id = object.device_id ?? "";
|
|
197
|
+
message.platform = object.platform ?? "";
|
|
198
|
+
message.utm_source = object.utm_source ?? undefined;
|
|
199
|
+
message.utm_medium = object.utm_medium ?? undefined;
|
|
200
|
+
message.utm_campaign = object.utm_campaign ?? undefined;
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
function createBasetruecallerLoginResponse() {
|
|
205
|
+
return {
|
|
206
|
+
auth_token: "",
|
|
207
|
+
deleted_auth_token: undefined,
|
|
208
|
+
first_name: undefined,
|
|
209
|
+
last_name: undefined,
|
|
210
|
+
message: "",
|
|
211
|
+
refresh_token: "",
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
exports.truecallerLoginResponse = {
|
|
215
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
216
|
+
if (message.auth_token !== "") {
|
|
217
|
+
writer.uint32(10).string(message.auth_token);
|
|
218
|
+
}
|
|
219
|
+
if (message.deleted_auth_token !== undefined) {
|
|
220
|
+
writer.uint32(18).string(message.deleted_auth_token);
|
|
221
|
+
}
|
|
222
|
+
if (message.first_name !== undefined) {
|
|
223
|
+
writer.uint32(26).string(message.first_name);
|
|
224
|
+
}
|
|
225
|
+
if (message.last_name !== undefined) {
|
|
226
|
+
writer.uint32(34).string(message.last_name);
|
|
227
|
+
}
|
|
228
|
+
if (message.message !== "") {
|
|
229
|
+
writer.uint32(42).string(message.message);
|
|
230
|
+
}
|
|
231
|
+
if (message.refresh_token !== "") {
|
|
232
|
+
writer.uint32(50).string(message.refresh_token);
|
|
233
|
+
}
|
|
234
|
+
return writer;
|
|
235
|
+
},
|
|
236
|
+
decode(input, length) {
|
|
237
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
238
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
239
|
+
const message = createBasetruecallerLoginResponse();
|
|
240
|
+
while (reader.pos < end) {
|
|
241
|
+
const tag = reader.uint32();
|
|
242
|
+
switch (tag >>> 3) {
|
|
243
|
+
case 1:
|
|
244
|
+
if (tag !== 10) {
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
message.auth_token = reader.string();
|
|
248
|
+
continue;
|
|
249
|
+
case 2:
|
|
250
|
+
if (tag !== 18) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
message.deleted_auth_token = reader.string();
|
|
254
|
+
continue;
|
|
255
|
+
case 3:
|
|
256
|
+
if (tag !== 26) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
message.first_name = reader.string();
|
|
260
|
+
continue;
|
|
261
|
+
case 4:
|
|
262
|
+
if (tag !== 34) {
|
|
263
|
+
break;
|
|
264
|
+
}
|
|
265
|
+
message.last_name = reader.string();
|
|
266
|
+
continue;
|
|
267
|
+
case 5:
|
|
268
|
+
if (tag !== 42) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.message = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
case 6:
|
|
274
|
+
if (tag !== 50) {
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
message.refresh_token = reader.string();
|
|
278
|
+
continue;
|
|
279
|
+
}
|
|
280
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
281
|
+
break;
|
|
282
|
+
}
|
|
283
|
+
reader.skipType(tag & 7);
|
|
284
|
+
}
|
|
285
|
+
return message;
|
|
286
|
+
},
|
|
287
|
+
fromJSON(object) {
|
|
288
|
+
return {
|
|
289
|
+
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
|
|
290
|
+
deleted_auth_token: isSet(object.deleted_auth_token) ? globalThis.String(object.deleted_auth_token) : undefined,
|
|
291
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : undefined,
|
|
292
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
|
|
293
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
294
|
+
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
toJSON(message) {
|
|
298
|
+
const obj = {};
|
|
299
|
+
if (message.auth_token !== "") {
|
|
300
|
+
obj.auth_token = message.auth_token;
|
|
301
|
+
}
|
|
302
|
+
if (message.deleted_auth_token !== undefined) {
|
|
303
|
+
obj.deleted_auth_token = message.deleted_auth_token;
|
|
304
|
+
}
|
|
305
|
+
if (message.first_name !== undefined) {
|
|
306
|
+
obj.first_name = message.first_name;
|
|
307
|
+
}
|
|
308
|
+
if (message.last_name !== undefined) {
|
|
309
|
+
obj.last_name = message.last_name;
|
|
310
|
+
}
|
|
311
|
+
if (message.message !== "") {
|
|
312
|
+
obj.message = message.message;
|
|
313
|
+
}
|
|
314
|
+
if (message.refresh_token !== "") {
|
|
315
|
+
obj.refresh_token = message.refresh_token;
|
|
316
|
+
}
|
|
317
|
+
return obj;
|
|
318
|
+
},
|
|
319
|
+
create(base) {
|
|
320
|
+
return exports.truecallerLoginResponse.fromPartial(base ?? {});
|
|
321
|
+
},
|
|
322
|
+
fromPartial(object) {
|
|
323
|
+
const message = createBasetruecallerLoginResponse();
|
|
324
|
+
message.auth_token = object.auth_token ?? "";
|
|
325
|
+
message.deleted_auth_token = object.deleted_auth_token ?? undefined;
|
|
326
|
+
message.first_name = object.first_name ?? undefined;
|
|
327
|
+
message.last_name = object.last_name ?? undefined;
|
|
328
|
+
message.message = object.message ?? "";
|
|
329
|
+
message.refresh_token = object.refresh_token ?? "";
|
|
330
|
+
return message;
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
function isSet(value) {
|
|
334
|
+
return value !== null && value !== undefined;
|
|
335
|
+
}
|