@stashfin/grpc 1.2.740 → 1.2.742
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
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;
|
|
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;
|
|
211
|
+
readonly requestDeserialize: (value: Buffer) => truecallerLoginRequest;
|
|
212
|
+
readonly responseSerialize: (value: truecallerLoginResponse) => Buffer;
|
|
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");
|
|
@@ -202,6 +202,7 @@ function createBaseBlock() {
|
|
|
202
202
|
block_type: undefined,
|
|
203
203
|
block_title: undefined,
|
|
204
204
|
block_card_size: undefined,
|
|
205
|
+
block_action_url: undefined,
|
|
205
206
|
};
|
|
206
207
|
}
|
|
207
208
|
exports.Block = {
|
|
@@ -224,6 +225,9 @@ exports.Block = {
|
|
|
224
225
|
if (message.block_card_size !== undefined) {
|
|
225
226
|
writer.uint32(48).int32(message.block_card_size);
|
|
226
227
|
}
|
|
228
|
+
if (message.block_action_url !== undefined) {
|
|
229
|
+
writer.uint32(58).string(message.block_action_url);
|
|
230
|
+
}
|
|
227
231
|
return writer;
|
|
228
232
|
},
|
|
229
233
|
decode(input, length) {
|
|
@@ -269,6 +273,12 @@ exports.Block = {
|
|
|
269
273
|
}
|
|
270
274
|
message.block_card_size = reader.int32();
|
|
271
275
|
continue;
|
|
276
|
+
case 7:
|
|
277
|
+
if (tag !== 58) {
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
message.block_action_url = reader.string();
|
|
281
|
+
continue;
|
|
272
282
|
}
|
|
273
283
|
if ((tag & 7) === 4 || tag === 0) {
|
|
274
284
|
break;
|
|
@@ -285,6 +295,7 @@ exports.Block = {
|
|
|
285
295
|
block_type: isSet(object.block_type) ? globalThis.String(object.block_type) : undefined,
|
|
286
296
|
block_title: isSet(object.block_title) ? globalThis.String(object.block_title) : undefined,
|
|
287
297
|
block_card_size: isSet(object.block_card_size) ? globalThis.Number(object.block_card_size) : undefined,
|
|
298
|
+
block_action_url: isSet(object.block_action_url) ? globalThis.String(object.block_action_url) : undefined,
|
|
288
299
|
};
|
|
289
300
|
},
|
|
290
301
|
toJSON(message) {
|
|
@@ -307,6 +318,9 @@ exports.Block = {
|
|
|
307
318
|
if (message.block_card_size !== undefined) {
|
|
308
319
|
obj.block_card_size = Math.round(message.block_card_size);
|
|
309
320
|
}
|
|
321
|
+
if (message.block_action_url !== undefined) {
|
|
322
|
+
obj.block_action_url = message.block_action_url;
|
|
323
|
+
}
|
|
310
324
|
return obj;
|
|
311
325
|
},
|
|
312
326
|
create(base) {
|
|
@@ -320,6 +334,7 @@ exports.Block = {
|
|
|
320
334
|
message.block_type = object.block_type ?? undefined;
|
|
321
335
|
message.block_title = object.block_title ?? undefined;
|
|
322
336
|
message.block_card_size = object.block_card_size ?? undefined;
|
|
337
|
+
message.block_action_url = object.block_action_url ?? undefined;
|
|
323
338
|
return message;
|
|
324
339
|
},
|
|
325
340
|
};
|
|
@@ -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.0
|
|
5
|
+
// protoc v6.30.2
|
|
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
|
+
}
|