@stashfin/grpc 1.2.753 → 1.2.754

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.753",
3
+ "version": "1.2.754",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -7,14 +7,12 @@ import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcu
7
7
  import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
8
8
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
9
9
  import { getlandingHomePageRequest, getlandingHomePageResponse } from "./eqxcustomers/getlandinghomepage";
10
- import { getlandingTokenRequest, getlandingTokenResponse } from "./eqxcustomers/getlandingtoken";
11
10
  import { getLoanPlansRequest, getLoanPlansResponse } from "./eqxcustomers/getloanplans";
12
11
  import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
13
12
  import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
14
13
  import { getTnCRequest, getTnCResponse } from "./eqxcustomers/gettnc";
15
14
  import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
16
15
  import { isCustomerRegisteredRequest, isCustomerRegisteredResponse } from "./eqxcustomers/iscustomerregistered";
17
- import { registerlandingCustomerRequest, registerlandingCustomerResponse } from "./eqxcustomers/registerlandingcustomer";
18
16
  import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
19
17
  import { truecallerLoginRequest, truecallerLoginResponse } from "./eqxcustomers/truecallerlogin";
20
18
  import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
@@ -215,24 +213,6 @@ export declare const eqxcustomersService: {
215
213
  readonly responseSerialize: (value: truecallerLoginResponse) => Buffer<ArrayBuffer>;
216
214
  readonly responseDeserialize: (value: Buffer) => truecallerLoginResponse;
217
215
  };
218
- readonly getlandingToken: {
219
- readonly path: "/service.eqxcustomers/getlandingToken";
220
- readonly requestStream: false;
221
- readonly responseStream: false;
222
- readonly requestSerialize: (value: getlandingTokenRequest) => Buffer<ArrayBuffer>;
223
- readonly requestDeserialize: (value: Buffer) => getlandingTokenRequest;
224
- readonly responseSerialize: (value: getlandingTokenResponse) => Buffer<ArrayBuffer>;
225
- readonly responseDeserialize: (value: Buffer) => getlandingTokenResponse;
226
- };
227
- readonly registerlandingCustomer: {
228
- readonly path: "/service.eqxcustomers/registerlandingCustomer";
229
- readonly requestStream: false;
230
- readonly responseStream: false;
231
- readonly requestSerialize: (value: registerlandingCustomerRequest) => Buffer<ArrayBuffer>;
232
- readonly requestDeserialize: (value: Buffer) => registerlandingCustomerRequest;
233
- readonly responseSerialize: (value: registerlandingCustomerResponse) => Buffer<ArrayBuffer>;
234
- readonly responseDeserialize: (value: Buffer) => registerlandingCustomerResponse;
235
- };
236
216
  readonly getlandingHomePage: {
237
217
  readonly path: "/service.eqxcustomers/getlandingHomePage";
238
218
  readonly requestStream: false;
@@ -265,8 +245,6 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
265
245
  getLoanPlans: handleUnaryCall<getLoanPlansRequest, getLoanPlansResponse>;
266
246
  getTnC: handleUnaryCall<getTnCRequest, getTnCResponse>;
267
247
  truecallerLogin: handleUnaryCall<truecallerLoginRequest, truecallerLoginResponse>;
268
- getlandingToken: handleUnaryCall<getlandingTokenRequest, getlandingTokenResponse>;
269
- registerlandingCustomer: handleUnaryCall<registerlandingCustomerRequest, registerlandingCustomerResponse>;
270
248
  getlandingHomePage: handleUnaryCall<getlandingHomePageRequest, getlandingHomePageResponse>;
271
249
  }
272
250
  export interface eqxcustomersClient extends Client {
@@ -333,12 +311,6 @@ export interface eqxcustomersClient extends Client {
333
311
  truecallerLogin(request: truecallerLoginRequest, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
334
312
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
335
313
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
336
- getlandingToken(request: getlandingTokenRequest, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
337
- getlandingToken(request: getlandingTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
338
- getlandingToken(request: getlandingTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlandingTokenResponse) => void): ClientUnaryCall;
339
- registerlandingCustomer(request: registerlandingCustomerRequest, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
340
- registerlandingCustomer(request: registerlandingCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
341
- registerlandingCustomer(request: registerlandingCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: registerlandingCustomerResponse) => void): ClientUnaryCall;
342
314
  getlandingHomePage(request: getlandingHomePageRequest, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
343
315
  getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
344
316
  getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
package/ts/eqxcustomer.js CHANGED
@@ -16,14 +16,12 @@ const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
16
16
  const getdashboard_1 = require("./eqxcustomers/getdashboard");
17
17
  const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
18
18
  const getlandinghomepage_1 = require("./eqxcustomers/getlandinghomepage");
19
- const getlandingtoken_1 = require("./eqxcustomers/getlandingtoken");
20
19
  const getloanplans_1 = require("./eqxcustomers/getloanplans");
21
20
  const getnotifications_1 = require("./eqxcustomers/getnotifications");
22
21
  const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
23
22
  const gettnc_1 = require("./eqxcustomers/gettnc");
24
23
  const gettokens_1 = require("./eqxcustomers/gettokens");
25
24
  const iscustomerregistered_1 = require("./eqxcustomers/iscustomerregistered");
26
- const registerlandingcustomer_1 = require("./eqxcustomers/registerlandingcustomer");
27
25
  const sendotp_1 = require("./eqxcustomers/sendotp");
28
26
  const truecallerlogin_1 = require("./eqxcustomers/truecallerlogin");
29
27
  const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
@@ -223,24 +221,6 @@ exports.eqxcustomersService = {
223
221
  responseSerialize: (value) => Buffer.from(truecallerlogin_1.truecallerLoginResponse.encode(value).finish()),
224
222
  responseDeserialize: (value) => truecallerlogin_1.truecallerLoginResponse.decode(value),
225
223
  },
226
- getlandingToken: {
227
- path: "/service.eqxcustomers/getlandingToken",
228
- requestStream: false,
229
- responseStream: false,
230
- requestSerialize: (value) => Buffer.from(getlandingtoken_1.getlandingTokenRequest.encode(value).finish()),
231
- requestDeserialize: (value) => getlandingtoken_1.getlandingTokenRequest.decode(value),
232
- responseSerialize: (value) => Buffer.from(getlandingtoken_1.getlandingTokenResponse.encode(value).finish()),
233
- responseDeserialize: (value) => getlandingtoken_1.getlandingTokenResponse.decode(value),
234
- },
235
- registerlandingCustomer: {
236
- path: "/service.eqxcustomers/registerlandingCustomer",
237
- requestStream: false,
238
- responseStream: false,
239
- requestSerialize: (value) => Buffer.from(registerlandingcustomer_1.registerlandingCustomerRequest.encode(value).finish()),
240
- requestDeserialize: (value) => registerlandingcustomer_1.registerlandingCustomerRequest.decode(value),
241
- responseSerialize: (value) => Buffer.from(registerlandingcustomer_1.registerlandingCustomerResponse.encode(value).finish()),
242
- responseDeserialize: (value) => registerlandingcustomer_1.registerlandingCustomerResponse.decode(value),
243
- },
244
224
  getlandingHomePage: {
245
225
  path: "/service.eqxcustomers/getlandingHomePage",
246
226
  requestStream: false,
@@ -1,11 +1,40 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getlandinghomepage";
3
3
  export interface getlandingHomePageRequest {
4
- landing_auth_token: string;
5
- landing_device_id: string;
6
- device_version: string;
4
+ mobile_number: string;
5
+ positions: Position[];
6
+ device_id?: string | undefined;
7
+ source: string;
8
+ device_version?: string | undefined;
9
+ device_info?: DeviceInfo | undefined;
7
10
  customer_id?: string | undefined;
8
11
  }
12
+ export interface Position {
13
+ lati?: number | undefined;
14
+ longi?: number | undefined;
15
+ created_date?: string | undefined;
16
+ distance?: string | undefined;
17
+ accuracy?: number | undefined;
18
+ is_mock?: string | undefined;
19
+ mock_app?: string | undefined;
20
+ }
21
+ export interface DeviceInfo {
22
+ used_ram?: string | undefined;
23
+ product?: string | undefined;
24
+ device_id?: string | undefined;
25
+ app_version?: string | undefined;
26
+ manufacture?: string | undefined;
27
+ osVersion?: string | undefined;
28
+ device_hash?: string | undefined;
29
+ kernelVersion?: string | undefined;
30
+ is_rooted?: string | undefined;
31
+ device_storage?: string | undefined;
32
+ model?: string | undefined;
33
+ device?: string | undefined;
34
+ brand?: string | undefined;
35
+ hardware?: string | undefined;
36
+ total_ram?: string | undefined;
37
+ }
9
38
  export interface SupportFlags {
10
39
  click_to_call: number;
11
40
  ym_chat: number;
@@ -82,11 +111,13 @@ export interface LandingPageData {
82
111
  web_blocks?: WebBlocks | undefined;
83
112
  customer_feature_flag: FeatureFlagsOutput | undefined;
84
113
  customer_bank_details?: CustomerBankDetails | undefined;
114
+ token: string;
115
+ customer_id: string;
85
116
  }
86
117
  export interface getlandingHomePageResponse {
87
118
  success: boolean;
88
119
  data: LandingPageData | undefined;
89
- error_message?: string | undefined;
120
+ error_message: string;
90
121
  }
91
122
  export declare const getlandingHomePageRequest: {
92
123
  encode(message: getlandingHomePageRequest, writer?: _m0.Writer): _m0.Writer;
@@ -96,6 +127,22 @@ export declare const getlandingHomePageRequest: {
96
127
  create<I extends Exact<DeepPartial<getlandingHomePageRequest>, I>>(base?: I): getlandingHomePageRequest;
97
128
  fromPartial<I extends Exact<DeepPartial<getlandingHomePageRequest>, I>>(object: I): getlandingHomePageRequest;
98
129
  };
130
+ export declare const Position: {
131
+ encode(message: Position, writer?: _m0.Writer): _m0.Writer;
132
+ decode(input: _m0.Reader | Uint8Array, length?: number): Position;
133
+ fromJSON(object: any): Position;
134
+ toJSON(message: Position): unknown;
135
+ create<I extends Exact<DeepPartial<Position>, I>>(base?: I): Position;
136
+ fromPartial<I extends Exact<DeepPartial<Position>, I>>(object: I): Position;
137
+ };
138
+ export declare const DeviceInfo: {
139
+ encode(message: DeviceInfo, writer?: _m0.Writer): _m0.Writer;
140
+ decode(input: _m0.Reader | Uint8Array, length?: number): DeviceInfo;
141
+ fromJSON(object: any): DeviceInfo;
142
+ toJSON(message: DeviceInfo): unknown;
143
+ create<I extends Exact<DeepPartial<DeviceInfo>, I>>(base?: I): DeviceInfo;
144
+ fromPartial<I extends Exact<DeepPartial<DeviceInfo>, I>>(object: I): DeviceInfo;
145
+ };
99
146
  export declare const SupportFlags: {
100
147
  encode(message: SupportFlags, writer?: _m0.Writer): _m0.Writer;
101
148
  decode(input: _m0.Reader | Uint8Array, length?: number): SupportFlags;
@@ -8,26 +8,43 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.getlandingHomePageResponse = exports.LandingPageData = exports.HomeFeed = exports.WebBlocks = exports.Block = exports.BlockData = exports.CustomerBankDetails = exports.FeatureFlagsOutput = exports.SupportFlags = exports.getlandingHomePageRequest = exports.protobufPackage = void 0;
11
+ exports.getlandingHomePageResponse = exports.LandingPageData = exports.HomeFeed = exports.WebBlocks = exports.Block = exports.BlockData = exports.CustomerBankDetails = exports.FeatureFlagsOutput = exports.SupportFlags = exports.DeviceInfo = exports.Position = exports.getlandingHomePageRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getlandinghomepage";
15
15
  function createBasegetlandingHomePageRequest() {
16
- return { landing_auth_token: "", landing_device_id: "", device_version: "", customer_id: undefined };
16
+ return {
17
+ mobile_number: "",
18
+ positions: [],
19
+ device_id: undefined,
20
+ source: "",
21
+ device_version: undefined,
22
+ device_info: undefined,
23
+ customer_id: undefined,
24
+ };
17
25
  }
18
26
  exports.getlandingHomePageRequest = {
19
27
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.landing_auth_token !== "") {
21
- writer.uint32(10).string(message.landing_auth_token);
28
+ if (message.mobile_number !== "") {
29
+ writer.uint32(10).string(message.mobile_number);
30
+ }
31
+ for (const v of message.positions) {
32
+ exports.Position.encode(v, writer.uint32(18).fork()).ldelim();
33
+ }
34
+ if (message.device_id !== undefined) {
35
+ writer.uint32(26).string(message.device_id);
36
+ }
37
+ if (message.source !== "") {
38
+ writer.uint32(34).string(message.source);
22
39
  }
23
- if (message.landing_device_id !== "") {
24
- writer.uint32(18).string(message.landing_device_id);
40
+ if (message.device_version !== undefined) {
41
+ writer.uint32(42).string(message.device_version);
25
42
  }
26
- if (message.device_version !== "") {
27
- writer.uint32(26).string(message.device_version);
43
+ if (message.device_info !== undefined) {
44
+ exports.DeviceInfo.encode(message.device_info, writer.uint32(50).fork()).ldelim();
28
45
  }
29
46
  if (message.customer_id !== undefined) {
30
- writer.uint32(34).string(message.customer_id);
47
+ writer.uint32(58).string(message.customer_id);
31
48
  }
32
49
  return writer;
33
50
  },
@@ -42,24 +59,42 @@ exports.getlandingHomePageRequest = {
42
59
  if (tag !== 10) {
43
60
  break;
44
61
  }
45
- message.landing_auth_token = reader.string();
62
+ message.mobile_number = reader.string();
46
63
  continue;
47
64
  case 2:
48
65
  if (tag !== 18) {
49
66
  break;
50
67
  }
51
- message.landing_device_id = reader.string();
68
+ message.positions.push(exports.Position.decode(reader, reader.uint32()));
52
69
  continue;
53
70
  case 3:
54
71
  if (tag !== 26) {
55
72
  break;
56
73
  }
57
- message.device_version = reader.string();
74
+ message.device_id = reader.string();
58
75
  continue;
59
76
  case 4:
60
77
  if (tag !== 34) {
61
78
  break;
62
79
  }
80
+ message.source = reader.string();
81
+ continue;
82
+ case 5:
83
+ if (tag !== 42) {
84
+ break;
85
+ }
86
+ message.device_version = reader.string();
87
+ continue;
88
+ case 6:
89
+ if (tag !== 50) {
90
+ break;
91
+ }
92
+ message.device_info = exports.DeviceInfo.decode(reader, reader.uint32());
93
+ continue;
94
+ case 7:
95
+ if (tag !== 58) {
96
+ break;
97
+ }
63
98
  message.customer_id = reader.string();
64
99
  continue;
65
100
  }
@@ -72,23 +107,37 @@ exports.getlandingHomePageRequest = {
72
107
  },
73
108
  fromJSON(object) {
74
109
  return {
75
- landing_auth_token: isSet(object.landing_auth_token) ? globalThis.String(object.landing_auth_token) : "",
76
- landing_device_id: isSet(object.landing_device_id) ? globalThis.String(object.landing_device_id) : "",
77
- device_version: isSet(object.device_version) ? globalThis.String(object.device_version) : "",
110
+ mobile_number: isSet(object.mobile_number) ? globalThis.String(object.mobile_number) : "",
111
+ positions: globalThis.Array.isArray(object?.positions)
112
+ ? object.positions.map((e) => exports.Position.fromJSON(e))
113
+ : [],
114
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
115
+ source: isSet(object.source) ? globalThis.String(object.source) : "",
116
+ device_version: isSet(object.device_version) ? globalThis.String(object.device_version) : undefined,
117
+ device_info: isSet(object.device_info) ? exports.DeviceInfo.fromJSON(object.device_info) : undefined,
78
118
  customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
79
119
  };
80
120
  },
81
121
  toJSON(message) {
82
122
  const obj = {};
83
- if (message.landing_auth_token !== "") {
84
- obj.landing_auth_token = message.landing_auth_token;
123
+ if (message.mobile_number !== "") {
124
+ obj.mobile_number = message.mobile_number;
125
+ }
126
+ if (message.positions?.length) {
127
+ obj.positions = message.positions.map((e) => exports.Position.toJSON(e));
128
+ }
129
+ if (message.device_id !== undefined) {
130
+ obj.device_id = message.device_id;
85
131
  }
86
- if (message.landing_device_id !== "") {
87
- obj.landing_device_id = message.landing_device_id;
132
+ if (message.source !== "") {
133
+ obj.source = message.source;
88
134
  }
89
- if (message.device_version !== "") {
135
+ if (message.device_version !== undefined) {
90
136
  obj.device_version = message.device_version;
91
137
  }
138
+ if (message.device_info !== undefined) {
139
+ obj.device_info = exports.DeviceInfo.toJSON(message.device_info);
140
+ }
92
141
  if (message.customer_id !== undefined) {
93
142
  obj.customer_id = message.customer_id;
94
143
  }
@@ -99,13 +148,426 @@ exports.getlandingHomePageRequest = {
99
148
  },
100
149
  fromPartial(object) {
101
150
  const message = createBasegetlandingHomePageRequest();
102
- message.landing_auth_token = object.landing_auth_token ?? "";
103
- message.landing_device_id = object.landing_device_id ?? "";
104
- message.device_version = object.device_version ?? "";
151
+ message.mobile_number = object.mobile_number ?? "";
152
+ message.positions = object.positions?.map((e) => exports.Position.fromPartial(e)) || [];
153
+ message.device_id = object.device_id ?? undefined;
154
+ message.source = object.source ?? "";
155
+ message.device_version = object.device_version ?? undefined;
156
+ message.device_info = (object.device_info !== undefined && object.device_info !== null)
157
+ ? exports.DeviceInfo.fromPartial(object.device_info)
158
+ : undefined;
105
159
  message.customer_id = object.customer_id ?? undefined;
106
160
  return message;
107
161
  },
108
162
  };
163
+ function createBasePosition() {
164
+ return {
165
+ lati: undefined,
166
+ longi: undefined,
167
+ created_date: undefined,
168
+ distance: undefined,
169
+ accuracy: undefined,
170
+ is_mock: undefined,
171
+ mock_app: undefined,
172
+ };
173
+ }
174
+ exports.Position = {
175
+ encode(message, writer = minimal_1.default.Writer.create()) {
176
+ if (message.lati !== undefined) {
177
+ writer.uint32(9).double(message.lati);
178
+ }
179
+ if (message.longi !== undefined) {
180
+ writer.uint32(17).double(message.longi);
181
+ }
182
+ if (message.created_date !== undefined) {
183
+ writer.uint32(26).string(message.created_date);
184
+ }
185
+ if (message.distance !== undefined) {
186
+ writer.uint32(34).string(message.distance);
187
+ }
188
+ if (message.accuracy !== undefined) {
189
+ writer.uint32(41).double(message.accuracy);
190
+ }
191
+ if (message.is_mock !== undefined) {
192
+ writer.uint32(50).string(message.is_mock);
193
+ }
194
+ if (message.mock_app !== undefined) {
195
+ writer.uint32(58).string(message.mock_app);
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 = createBasePosition();
203
+ while (reader.pos < end) {
204
+ const tag = reader.uint32();
205
+ switch (tag >>> 3) {
206
+ case 1:
207
+ if (tag !== 9) {
208
+ break;
209
+ }
210
+ message.lati = reader.double();
211
+ continue;
212
+ case 2:
213
+ if (tag !== 17) {
214
+ break;
215
+ }
216
+ message.longi = reader.double();
217
+ continue;
218
+ case 3:
219
+ if (tag !== 26) {
220
+ break;
221
+ }
222
+ message.created_date = reader.string();
223
+ continue;
224
+ case 4:
225
+ if (tag !== 34) {
226
+ break;
227
+ }
228
+ message.distance = reader.string();
229
+ continue;
230
+ case 5:
231
+ if (tag !== 41) {
232
+ break;
233
+ }
234
+ message.accuracy = reader.double();
235
+ continue;
236
+ case 6:
237
+ if (tag !== 50) {
238
+ break;
239
+ }
240
+ message.is_mock = reader.string();
241
+ continue;
242
+ case 7:
243
+ if (tag !== 58) {
244
+ break;
245
+ }
246
+ message.mock_app = reader.string();
247
+ continue;
248
+ }
249
+ if ((tag & 7) === 4 || tag === 0) {
250
+ break;
251
+ }
252
+ reader.skipType(tag & 7);
253
+ }
254
+ return message;
255
+ },
256
+ fromJSON(object) {
257
+ return {
258
+ lati: isSet(object.lati) ? globalThis.Number(object.lati) : undefined,
259
+ longi: isSet(object.longi) ? globalThis.Number(object.longi) : undefined,
260
+ created_date: isSet(object.created_date) ? globalThis.String(object.created_date) : undefined,
261
+ distance: isSet(object.distance) ? globalThis.String(object.distance) : undefined,
262
+ accuracy: isSet(object.accuracy) ? globalThis.Number(object.accuracy) : undefined,
263
+ is_mock: isSet(object.is_mock) ? globalThis.String(object.is_mock) : undefined,
264
+ mock_app: isSet(object.mock_app) ? globalThis.String(object.mock_app) : undefined,
265
+ };
266
+ },
267
+ toJSON(message) {
268
+ const obj = {};
269
+ if (message.lati !== undefined) {
270
+ obj.lati = message.lati;
271
+ }
272
+ if (message.longi !== undefined) {
273
+ obj.longi = message.longi;
274
+ }
275
+ if (message.created_date !== undefined) {
276
+ obj.created_date = message.created_date;
277
+ }
278
+ if (message.distance !== undefined) {
279
+ obj.distance = message.distance;
280
+ }
281
+ if (message.accuracy !== undefined) {
282
+ obj.accuracy = message.accuracy;
283
+ }
284
+ if (message.is_mock !== undefined) {
285
+ obj.is_mock = message.is_mock;
286
+ }
287
+ if (message.mock_app !== undefined) {
288
+ obj.mock_app = message.mock_app;
289
+ }
290
+ return obj;
291
+ },
292
+ create(base) {
293
+ return exports.Position.fromPartial(base ?? {});
294
+ },
295
+ fromPartial(object) {
296
+ const message = createBasePosition();
297
+ message.lati = object.lati ?? undefined;
298
+ message.longi = object.longi ?? undefined;
299
+ message.created_date = object.created_date ?? undefined;
300
+ message.distance = object.distance ?? undefined;
301
+ message.accuracy = object.accuracy ?? undefined;
302
+ message.is_mock = object.is_mock ?? undefined;
303
+ message.mock_app = object.mock_app ?? undefined;
304
+ return message;
305
+ },
306
+ };
307
+ function createBaseDeviceInfo() {
308
+ return {
309
+ used_ram: undefined,
310
+ product: undefined,
311
+ device_id: undefined,
312
+ app_version: undefined,
313
+ manufacture: undefined,
314
+ osVersion: undefined,
315
+ device_hash: undefined,
316
+ kernelVersion: undefined,
317
+ is_rooted: undefined,
318
+ device_storage: undefined,
319
+ model: undefined,
320
+ device: undefined,
321
+ brand: undefined,
322
+ hardware: undefined,
323
+ total_ram: undefined,
324
+ };
325
+ }
326
+ exports.DeviceInfo = {
327
+ encode(message, writer = minimal_1.default.Writer.create()) {
328
+ if (message.used_ram !== undefined) {
329
+ writer.uint32(10).string(message.used_ram);
330
+ }
331
+ if (message.product !== undefined) {
332
+ writer.uint32(18).string(message.product);
333
+ }
334
+ if (message.device_id !== undefined) {
335
+ writer.uint32(26).string(message.device_id);
336
+ }
337
+ if (message.app_version !== undefined) {
338
+ writer.uint32(34).string(message.app_version);
339
+ }
340
+ if (message.manufacture !== undefined) {
341
+ writer.uint32(42).string(message.manufacture);
342
+ }
343
+ if (message.osVersion !== undefined) {
344
+ writer.uint32(50).string(message.osVersion);
345
+ }
346
+ if (message.device_hash !== undefined) {
347
+ writer.uint32(58).string(message.device_hash);
348
+ }
349
+ if (message.kernelVersion !== undefined) {
350
+ writer.uint32(66).string(message.kernelVersion);
351
+ }
352
+ if (message.is_rooted !== undefined) {
353
+ writer.uint32(74).string(message.is_rooted);
354
+ }
355
+ if (message.device_storage !== undefined) {
356
+ writer.uint32(82).string(message.device_storage);
357
+ }
358
+ if (message.model !== undefined) {
359
+ writer.uint32(90).string(message.model);
360
+ }
361
+ if (message.device !== undefined) {
362
+ writer.uint32(98).string(message.device);
363
+ }
364
+ if (message.brand !== undefined) {
365
+ writer.uint32(106).string(message.brand);
366
+ }
367
+ if (message.hardware !== undefined) {
368
+ writer.uint32(114).string(message.hardware);
369
+ }
370
+ if (message.total_ram !== undefined) {
371
+ writer.uint32(122).string(message.total_ram);
372
+ }
373
+ return writer;
374
+ },
375
+ decode(input, length) {
376
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
377
+ let end = length === undefined ? reader.len : reader.pos + length;
378
+ const message = createBaseDeviceInfo();
379
+ while (reader.pos < end) {
380
+ const tag = reader.uint32();
381
+ switch (tag >>> 3) {
382
+ case 1:
383
+ if (tag !== 10) {
384
+ break;
385
+ }
386
+ message.used_ram = reader.string();
387
+ continue;
388
+ case 2:
389
+ if (tag !== 18) {
390
+ break;
391
+ }
392
+ message.product = reader.string();
393
+ continue;
394
+ case 3:
395
+ if (tag !== 26) {
396
+ break;
397
+ }
398
+ message.device_id = reader.string();
399
+ continue;
400
+ case 4:
401
+ if (tag !== 34) {
402
+ break;
403
+ }
404
+ message.app_version = reader.string();
405
+ continue;
406
+ case 5:
407
+ if (tag !== 42) {
408
+ break;
409
+ }
410
+ message.manufacture = reader.string();
411
+ continue;
412
+ case 6:
413
+ if (tag !== 50) {
414
+ break;
415
+ }
416
+ message.osVersion = reader.string();
417
+ continue;
418
+ case 7:
419
+ if (tag !== 58) {
420
+ break;
421
+ }
422
+ message.device_hash = reader.string();
423
+ continue;
424
+ case 8:
425
+ if (tag !== 66) {
426
+ break;
427
+ }
428
+ message.kernelVersion = reader.string();
429
+ continue;
430
+ case 9:
431
+ if (tag !== 74) {
432
+ break;
433
+ }
434
+ message.is_rooted = reader.string();
435
+ continue;
436
+ case 10:
437
+ if (tag !== 82) {
438
+ break;
439
+ }
440
+ message.device_storage = reader.string();
441
+ continue;
442
+ case 11:
443
+ if (tag !== 90) {
444
+ break;
445
+ }
446
+ message.model = reader.string();
447
+ continue;
448
+ case 12:
449
+ if (tag !== 98) {
450
+ break;
451
+ }
452
+ message.device = reader.string();
453
+ continue;
454
+ case 13:
455
+ if (tag !== 106) {
456
+ break;
457
+ }
458
+ message.brand = reader.string();
459
+ continue;
460
+ case 14:
461
+ if (tag !== 114) {
462
+ break;
463
+ }
464
+ message.hardware = reader.string();
465
+ continue;
466
+ case 15:
467
+ if (tag !== 122) {
468
+ break;
469
+ }
470
+ message.total_ram = reader.string();
471
+ continue;
472
+ }
473
+ if ((tag & 7) === 4 || tag === 0) {
474
+ break;
475
+ }
476
+ reader.skipType(tag & 7);
477
+ }
478
+ return message;
479
+ },
480
+ fromJSON(object) {
481
+ return {
482
+ used_ram: isSet(object.used_ram) ? globalThis.String(object.used_ram) : undefined,
483
+ product: isSet(object.product) ? globalThis.String(object.product) : undefined,
484
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
485
+ app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : undefined,
486
+ manufacture: isSet(object.manufacture) ? globalThis.String(object.manufacture) : undefined,
487
+ osVersion: isSet(object.osVersion) ? globalThis.String(object.osVersion) : undefined,
488
+ device_hash: isSet(object.device_hash) ? globalThis.String(object.device_hash) : undefined,
489
+ kernelVersion: isSet(object.kernelVersion) ? globalThis.String(object.kernelVersion) : undefined,
490
+ is_rooted: isSet(object.is_rooted) ? globalThis.String(object.is_rooted) : undefined,
491
+ device_storage: isSet(object.device_storage) ? globalThis.String(object.device_storage) : undefined,
492
+ model: isSet(object.model) ? globalThis.String(object.model) : undefined,
493
+ device: isSet(object.device) ? globalThis.String(object.device) : undefined,
494
+ brand: isSet(object.brand) ? globalThis.String(object.brand) : undefined,
495
+ hardware: isSet(object.hardware) ? globalThis.String(object.hardware) : undefined,
496
+ total_ram: isSet(object.total_ram) ? globalThis.String(object.total_ram) : undefined,
497
+ };
498
+ },
499
+ toJSON(message) {
500
+ const obj = {};
501
+ if (message.used_ram !== undefined) {
502
+ obj.used_ram = message.used_ram;
503
+ }
504
+ if (message.product !== undefined) {
505
+ obj.product = message.product;
506
+ }
507
+ if (message.device_id !== undefined) {
508
+ obj.device_id = message.device_id;
509
+ }
510
+ if (message.app_version !== undefined) {
511
+ obj.app_version = message.app_version;
512
+ }
513
+ if (message.manufacture !== undefined) {
514
+ obj.manufacture = message.manufacture;
515
+ }
516
+ if (message.osVersion !== undefined) {
517
+ obj.osVersion = message.osVersion;
518
+ }
519
+ if (message.device_hash !== undefined) {
520
+ obj.device_hash = message.device_hash;
521
+ }
522
+ if (message.kernelVersion !== undefined) {
523
+ obj.kernelVersion = message.kernelVersion;
524
+ }
525
+ if (message.is_rooted !== undefined) {
526
+ obj.is_rooted = message.is_rooted;
527
+ }
528
+ if (message.device_storage !== undefined) {
529
+ obj.device_storage = message.device_storage;
530
+ }
531
+ if (message.model !== undefined) {
532
+ obj.model = message.model;
533
+ }
534
+ if (message.device !== undefined) {
535
+ obj.device = message.device;
536
+ }
537
+ if (message.brand !== undefined) {
538
+ obj.brand = message.brand;
539
+ }
540
+ if (message.hardware !== undefined) {
541
+ obj.hardware = message.hardware;
542
+ }
543
+ if (message.total_ram !== undefined) {
544
+ obj.total_ram = message.total_ram;
545
+ }
546
+ return obj;
547
+ },
548
+ create(base) {
549
+ return exports.DeviceInfo.fromPartial(base ?? {});
550
+ },
551
+ fromPartial(object) {
552
+ const message = createBaseDeviceInfo();
553
+ message.used_ram = object.used_ram ?? undefined;
554
+ message.product = object.product ?? undefined;
555
+ message.device_id = object.device_id ?? undefined;
556
+ message.app_version = object.app_version ?? undefined;
557
+ message.manufacture = object.manufacture ?? undefined;
558
+ message.osVersion = object.osVersion ?? undefined;
559
+ message.device_hash = object.device_hash ?? undefined;
560
+ message.kernelVersion = object.kernelVersion ?? undefined;
561
+ message.is_rooted = object.is_rooted ?? undefined;
562
+ message.device_storage = object.device_storage ?? undefined;
563
+ message.model = object.model ?? undefined;
564
+ message.device = object.device ?? undefined;
565
+ message.brand = object.brand ?? undefined;
566
+ message.hardware = object.hardware ?? undefined;
567
+ message.total_ram = object.total_ram ?? undefined;
568
+ return message;
569
+ },
570
+ };
109
571
  function createBaseSupportFlags() {
110
572
  return { click_to_call: 0, ym_chat: 0, custom_support_option: undefined };
111
573
  }
@@ -1189,6 +1651,8 @@ function createBaseLandingPageData() {
1189
1651
  web_blocks: undefined,
1190
1652
  customer_feature_flag: undefined,
1191
1653
  customer_bank_details: undefined,
1654
+ token: "",
1655
+ customer_id: "",
1192
1656
  };
1193
1657
  }
1194
1658
  exports.LandingPageData = {
@@ -1214,6 +1678,12 @@ exports.LandingPageData = {
1214
1678
  if (message.customer_bank_details !== undefined) {
1215
1679
  exports.CustomerBankDetails.encode(message.customer_bank_details, writer.uint32(58).fork()).ldelim();
1216
1680
  }
1681
+ if (message.token !== "") {
1682
+ writer.uint32(66).string(message.token);
1683
+ }
1684
+ if (message.customer_id !== "") {
1685
+ writer.uint32(74).string(message.customer_id);
1686
+ }
1217
1687
  return writer;
1218
1688
  },
1219
1689
  decode(input, length) {
@@ -1265,6 +1735,18 @@ exports.LandingPageData = {
1265
1735
  }
1266
1736
  message.customer_bank_details = exports.CustomerBankDetails.decode(reader, reader.uint32());
1267
1737
  continue;
1738
+ case 8:
1739
+ if (tag !== 66) {
1740
+ break;
1741
+ }
1742
+ message.token = reader.string();
1743
+ continue;
1744
+ case 9:
1745
+ if (tag !== 74) {
1746
+ break;
1747
+ }
1748
+ message.customer_id = reader.string();
1749
+ continue;
1268
1750
  }
1269
1751
  if ((tag & 7) === 4 || tag === 0) {
1270
1752
  break;
@@ -1286,6 +1768,8 @@ exports.LandingPageData = {
1286
1768
  customer_bank_details: isSet(object.customer_bank_details)
1287
1769
  ? exports.CustomerBankDetails.fromJSON(object.customer_bank_details)
1288
1770
  : undefined,
1771
+ token: isSet(object.token) ? globalThis.String(object.token) : "",
1772
+ customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : "",
1289
1773
  };
1290
1774
  },
1291
1775
  toJSON(message) {
@@ -1311,6 +1795,12 @@ exports.LandingPageData = {
1311
1795
  if (message.customer_bank_details !== undefined) {
1312
1796
  obj.customer_bank_details = exports.CustomerBankDetails.toJSON(message.customer_bank_details);
1313
1797
  }
1798
+ if (message.token !== "") {
1799
+ obj.token = message.token;
1800
+ }
1801
+ if (message.customer_id !== "") {
1802
+ obj.customer_id = message.customer_id;
1803
+ }
1314
1804
  return obj;
1315
1805
  },
1316
1806
  create(base) {
@@ -1333,11 +1823,13 @@ exports.LandingPageData = {
1333
1823
  (object.customer_bank_details !== undefined && object.customer_bank_details !== null)
1334
1824
  ? exports.CustomerBankDetails.fromPartial(object.customer_bank_details)
1335
1825
  : undefined;
1826
+ message.token = object.token ?? "";
1827
+ message.customer_id = object.customer_id ?? "";
1336
1828
  return message;
1337
1829
  },
1338
1830
  };
1339
1831
  function createBasegetlandingHomePageResponse() {
1340
- return { success: false, data: undefined, error_message: undefined };
1832
+ return { success: false, data: undefined, error_message: "" };
1341
1833
  }
1342
1834
  exports.getlandingHomePageResponse = {
1343
1835
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -1347,7 +1839,7 @@ exports.getlandingHomePageResponse = {
1347
1839
  if (message.data !== undefined) {
1348
1840
  exports.LandingPageData.encode(message.data, writer.uint32(18).fork()).ldelim();
1349
1841
  }
1350
- if (message.error_message !== undefined) {
1842
+ if (message.error_message !== "") {
1351
1843
  writer.uint32(26).string(message.error_message);
1352
1844
  }
1353
1845
  return writer;
@@ -1389,7 +1881,7 @@ exports.getlandingHomePageResponse = {
1389
1881
  return {
1390
1882
  success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
1391
1883
  data: isSet(object.data) ? exports.LandingPageData.fromJSON(object.data) : undefined,
1392
- error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
1884
+ error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : "",
1393
1885
  };
1394
1886
  },
1395
1887
  toJSON(message) {
@@ -1400,7 +1892,7 @@ exports.getlandingHomePageResponse = {
1400
1892
  if (message.data !== undefined) {
1401
1893
  obj.data = exports.LandingPageData.toJSON(message.data);
1402
1894
  }
1403
- if (message.error_message !== undefined) {
1895
+ if (message.error_message !== "") {
1404
1896
  obj.error_message = message.error_message;
1405
1897
  }
1406
1898
  return obj;
@@ -1414,7 +1906,7 @@ exports.getlandingHomePageResponse = {
1414
1906
  message.data = (object.data !== undefined && object.data !== null)
1415
1907
  ? exports.LandingPageData.fromPartial(object.data)
1416
1908
  : undefined;
1417
- message.error_message = object.error_message ?? undefined;
1909
+ message.error_message = object.error_message ?? "";
1418
1910
  return message;
1419
1911
  },
1420
1912
  };