@stashfin/grpc 1.2.801 → 1.2.803

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.801",
3
+ "version": "1.2.803",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -9,6 +9,8 @@ import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqx
9
9
  import { CustomerAppsInfoRequest, CustomerAppsInfoResponse } from "./eqxcustomers/getlendingcustomerappsInfo";
10
10
  import { CustomerDeviceInfoRequest, CustomerDeviceInfoResponse } from "./eqxcustomers/getlendingcustomerdeviceInfo";
11
11
  import { getlendingHomePageRequest, getlendingHomePageResponse } from "./eqxcustomers/getlendinghomepage";
12
+ import { getLendingRefreshTokenRequest, getLendingRefreshTokenResponse } from "./eqxcustomers/getlendingrefreshtoken";
13
+ import { getLendingSyncedInfoRequest, getLendingSyncedInfoResponse } from "./eqxcustomers/getlendingsyncedinfo";
12
14
  import { getLoanPlansRequest, getLoanPlansResponse } from "./eqxcustomers/getloanplans";
13
15
  import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
14
16
  import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
@@ -242,6 +244,24 @@ export declare const eqxcustomersService: {
242
244
  readonly responseSerialize: (value: CustomerDeviceInfoResponse) => Buffer;
243
245
  readonly responseDeserialize: (value: Buffer) => CustomerDeviceInfoResponse;
244
246
  };
247
+ readonly getLendingSyncedInfo: {
248
+ readonly path: "/service.eqxcustomers/getLendingSyncedInfo";
249
+ readonly requestStream: false;
250
+ readonly responseStream: false;
251
+ readonly requestSerialize: (value: getLendingSyncedInfoRequest) => Buffer;
252
+ readonly requestDeserialize: (value: Buffer) => getLendingSyncedInfoRequest;
253
+ readonly responseSerialize: (value: getLendingSyncedInfoResponse) => Buffer;
254
+ readonly responseDeserialize: (value: Buffer) => getLendingSyncedInfoResponse;
255
+ };
256
+ readonly getLendingRefreshToken: {
257
+ readonly path: "/service.eqxcustomers/getLendingRefreshToken";
258
+ readonly requestStream: false;
259
+ readonly responseStream: false;
260
+ readonly requestSerialize: (value: getLendingRefreshTokenRequest) => Buffer;
261
+ readonly requestDeserialize: (value: Buffer) => getLendingRefreshTokenRequest;
262
+ readonly responseSerialize: (value: getLendingRefreshTokenResponse) => Buffer;
263
+ readonly responseDeserialize: (value: Buffer) => getLendingRefreshTokenResponse;
264
+ };
245
265
  };
246
266
  export interface eqxcustomersServer extends UntypedServiceImplementation {
247
267
  sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
@@ -268,6 +288,8 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
268
288
  getlendingHomePage: handleUnaryCall<getlendingHomePageRequest, getlendingHomePageResponse>;
269
289
  getLendingCustomerAppsInfo: handleUnaryCall<CustomerAppsInfoRequest, CustomerAppsInfoResponse>;
270
290
  getLendingCustomerDeviceInfo: handleUnaryCall<CustomerDeviceInfoRequest, CustomerDeviceInfoResponse>;
291
+ getLendingSyncedInfo: handleUnaryCall<getLendingSyncedInfoRequest, getLendingSyncedInfoResponse>;
292
+ getLendingRefreshToken: handleUnaryCall<getLendingRefreshTokenRequest, getLendingRefreshTokenResponse>;
271
293
  }
272
294
  export interface eqxcustomersClient extends Client {
273
295
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
@@ -342,6 +364,12 @@ export interface eqxcustomersClient extends Client {
342
364
  getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
343
365
  getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
344
366
  getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
367
+ getLendingSyncedInfo(request: getLendingSyncedInfoRequest, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
368
+ getLendingSyncedInfo(request: getLendingSyncedInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
369
+ getLendingSyncedInfo(request: getLendingSyncedInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLendingSyncedInfoResponse) => void): ClientUnaryCall;
370
+ getLendingRefreshToken(request: getLendingRefreshTokenRequest, callback: (error: ServiceError | null, response: getLendingRefreshTokenResponse) => void): ClientUnaryCall;
371
+ getLendingRefreshToken(request: getLendingRefreshTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getLendingRefreshTokenResponse) => void): ClientUnaryCall;
372
+ getLendingRefreshToken(request: getLendingRefreshTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getLendingRefreshTokenResponse) => void): ClientUnaryCall;
345
373
  }
346
374
  export declare const eqxcustomersClient: {
347
375
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
package/ts/eqxcustomer.js CHANGED
@@ -18,6 +18,8 @@ const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
18
18
  const getlendingcustomerappsInfo_1 = require("./eqxcustomers/getlendingcustomerappsInfo");
19
19
  const getlendingcustomerdeviceInfo_1 = require("./eqxcustomers/getlendingcustomerdeviceInfo");
20
20
  const getlendinghomepage_1 = require("./eqxcustomers/getlendinghomepage");
21
+ const getlendingrefreshtoken_1 = require("./eqxcustomers/getlendingrefreshtoken");
22
+ const getlendingsyncedinfo_1 = require("./eqxcustomers/getlendingsyncedinfo");
21
23
  const getloanplans_1 = require("./eqxcustomers/getloanplans");
22
24
  const getnotifications_1 = require("./eqxcustomers/getnotifications");
23
25
  const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
@@ -250,5 +252,23 @@ exports.eqxcustomersService = {
250
252
  responseSerialize: (value) => Buffer.from(getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.encode(value).finish()),
251
253
  responseDeserialize: (value) => getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.decode(value),
252
254
  },
255
+ getLendingSyncedInfo: {
256
+ path: "/service.eqxcustomers/getLendingSyncedInfo",
257
+ requestStream: false,
258
+ responseStream: false,
259
+ requestSerialize: (value) => Buffer.from(getlendingsyncedinfo_1.getLendingSyncedInfoRequest.encode(value).finish()),
260
+ requestDeserialize: (value) => getlendingsyncedinfo_1.getLendingSyncedInfoRequest.decode(value),
261
+ responseSerialize: (value) => Buffer.from(getlendingsyncedinfo_1.getLendingSyncedInfoResponse.encode(value).finish()),
262
+ responseDeserialize: (value) => getlendingsyncedinfo_1.getLendingSyncedInfoResponse.decode(value),
263
+ },
264
+ getLendingRefreshToken: {
265
+ path: "/service.eqxcustomers/getLendingRefreshToken",
266
+ requestStream: false,
267
+ responseStream: false,
268
+ requestSerialize: (value) => Buffer.from(getlendingrefreshtoken_1.getLendingRefreshTokenRequest.encode(value).finish()),
269
+ requestDeserialize: (value) => getlendingrefreshtoken_1.getLendingRefreshTokenRequest.decode(value),
270
+ responseSerialize: (value) => Buffer.from(getlendingrefreshtoken_1.getLendingRefreshTokenResponse.encode(value).finish()),
271
+ responseDeserialize: (value) => getlendingrefreshtoken_1.getLendingRefreshTokenResponse.decode(value),
272
+ },
253
273
  };
254
274
  exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
@@ -5,6 +5,7 @@ export interface CustomerAppsInfoRequest {
5
5
  akara_lead_id: string;
6
6
  lead_source: string;
7
7
  app_info: AppsInfo | undefined;
8
+ app_synced: boolean;
8
9
  }
9
10
  export interface AppsInfo {
10
11
  device_id: string;
@@ -23,7 +24,6 @@ export interface AppInstalled {
23
24
  }
24
25
  export interface CustomerAppsInfoResponse {
25
26
  success: boolean;
26
- info_synced: boolean;
27
27
  }
28
28
  export declare const CustomerAppsInfoRequest: {
29
29
  encode(message: CustomerAppsInfoRequest, writer?: _m0.Writer): _m0.Writer;
@@ -13,7 +13,7 @@ exports.CustomerAppsInfoResponse = exports.AppInstalled = exports.AppsInfo = exp
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getlendingcustomerappsInfo";
15
15
  function createBaseCustomerAppsInfoRequest() {
16
- return { partner_lead_id: "", akara_lead_id: "", lead_source: "", app_info: undefined };
16
+ return { partner_lead_id: "", akara_lead_id: "", lead_source: "", app_info: undefined, app_synced: false };
17
17
  }
18
18
  exports.CustomerAppsInfoRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -29,6 +29,9 @@ exports.CustomerAppsInfoRequest = {
29
29
  if (message.app_info !== undefined) {
30
30
  exports.AppsInfo.encode(message.app_info, writer.uint32(34).fork()).ldelim();
31
31
  }
32
+ if (message.app_synced !== false) {
33
+ writer.uint32(40).bool(message.app_synced);
34
+ }
32
35
  return writer;
33
36
  },
34
37
  decode(input, length) {
@@ -62,6 +65,12 @@ exports.CustomerAppsInfoRequest = {
62
65
  }
63
66
  message.app_info = exports.AppsInfo.decode(reader, reader.uint32());
64
67
  continue;
68
+ case 5:
69
+ if (tag !== 40) {
70
+ break;
71
+ }
72
+ message.app_synced = reader.bool();
73
+ continue;
65
74
  }
66
75
  if ((tag & 7) === 4 || tag === 0) {
67
76
  break;
@@ -76,6 +85,7 @@ exports.CustomerAppsInfoRequest = {
76
85
  akara_lead_id: isSet(object.akara_lead_id) ? globalThis.String(object.akara_lead_id) : "",
77
86
  lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : "",
78
87
  app_info: isSet(object.app_info) ? exports.AppsInfo.fromJSON(object.app_info) : undefined,
88
+ app_synced: isSet(object.app_synced) ? globalThis.Boolean(object.app_synced) : false,
79
89
  };
80
90
  },
81
91
  toJSON(message) {
@@ -92,6 +102,9 @@ exports.CustomerAppsInfoRequest = {
92
102
  if (message.app_info !== undefined) {
93
103
  obj.app_info = exports.AppsInfo.toJSON(message.app_info);
94
104
  }
105
+ if (message.app_synced !== false) {
106
+ obj.app_synced = message.app_synced;
107
+ }
95
108
  return obj;
96
109
  },
97
110
  create(base) {
@@ -105,6 +118,7 @@ exports.CustomerAppsInfoRequest = {
105
118
  message.app_info = (object.app_info !== undefined && object.app_info !== null)
106
119
  ? exports.AppsInfo.fromPartial(object.app_info)
107
120
  : undefined;
121
+ message.app_synced = object.app_synced ?? false;
108
122
  return message;
109
123
  },
110
124
  };
@@ -343,16 +357,13 @@ exports.AppInstalled = {
343
357
  },
344
358
  };
345
359
  function createBaseCustomerAppsInfoResponse() {
346
- return { success: false, info_synced: false };
360
+ return { success: false };
347
361
  }
348
362
  exports.CustomerAppsInfoResponse = {
349
363
  encode(message, writer = minimal_1.default.Writer.create()) {
350
364
  if (message.success !== false) {
351
365
  writer.uint32(8).bool(message.success);
352
366
  }
353
- if (message.info_synced !== false) {
354
- writer.uint32(16).bool(message.info_synced);
355
- }
356
367
  return writer;
357
368
  },
358
369
  decode(input, length) {
@@ -368,12 +379,6 @@ exports.CustomerAppsInfoResponse = {
368
379
  }
369
380
  message.success = reader.bool();
370
381
  continue;
371
- case 2:
372
- if (tag !== 16) {
373
- break;
374
- }
375
- message.info_synced = reader.bool();
376
- continue;
377
382
  }
378
383
  if ((tag & 7) === 4 || tag === 0) {
379
384
  break;
@@ -383,19 +388,13 @@ exports.CustomerAppsInfoResponse = {
383
388
  return message;
384
389
  },
385
390
  fromJSON(object) {
386
- return {
387
- success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
388
- info_synced: isSet(object.info_synced) ? globalThis.Boolean(object.info_synced) : false,
389
- };
391
+ return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
390
392
  },
391
393
  toJSON(message) {
392
394
  const obj = {};
393
395
  if (message.success !== false) {
394
396
  obj.success = message.success;
395
397
  }
396
- if (message.info_synced !== false) {
397
- obj.info_synced = message.info_synced;
398
- }
399
398
  return obj;
400
399
  },
401
400
  create(base) {
@@ -404,7 +403,6 @@ exports.CustomerAppsInfoResponse = {
404
403
  fromPartial(object) {
405
404
  const message = createBaseCustomerAppsInfoResponse();
406
405
  message.success = object.success ?? false;
407
- message.info_synced = object.info_synced ?? false;
408
406
  return message;
409
407
  },
410
408
  };
@@ -5,6 +5,7 @@ export interface CustomerDeviceInfoRequest {
5
5
  akara_lead_id: string;
6
6
  lead_source: string;
7
7
  device_info: DeviceInfo | undefined;
8
+ device_synced: boolean;
8
9
  }
9
10
  export interface DeviceInfo {
10
11
  source: string;
@@ -24,7 +25,6 @@ export interface DeviceGeo {
24
25
  }
25
26
  export interface CustomerDeviceInfoResponse {
26
27
  success: boolean;
27
- info_synced: boolean;
28
28
  }
29
29
  export declare const CustomerDeviceInfoRequest: {
30
30
  encode(message: CustomerDeviceInfoRequest, writer?: _m0.Writer): _m0.Writer;
@@ -13,7 +13,7 @@ exports.CustomerDeviceInfoResponse = exports.DeviceGeo = exports.DeviceInfo = ex
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getlendingcustomerdeviceInfo";
15
15
  function createBaseCustomerDeviceInfoRequest() {
16
- return { partner_lead_id: "", akara_lead_id: "", lead_source: "", device_info: undefined };
16
+ return { partner_lead_id: "", akara_lead_id: "", lead_source: "", device_info: undefined, device_synced: false };
17
17
  }
18
18
  exports.CustomerDeviceInfoRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -29,6 +29,9 @@ exports.CustomerDeviceInfoRequest = {
29
29
  if (message.device_info !== undefined) {
30
30
  exports.DeviceInfo.encode(message.device_info, writer.uint32(34).fork()).ldelim();
31
31
  }
32
+ if (message.device_synced !== false) {
33
+ writer.uint32(40).bool(message.device_synced);
34
+ }
32
35
  return writer;
33
36
  },
34
37
  decode(input, length) {
@@ -62,6 +65,12 @@ exports.CustomerDeviceInfoRequest = {
62
65
  }
63
66
  message.device_info = exports.DeviceInfo.decode(reader, reader.uint32());
64
67
  continue;
68
+ case 5:
69
+ if (tag !== 40) {
70
+ break;
71
+ }
72
+ message.device_synced = reader.bool();
73
+ continue;
65
74
  }
66
75
  if ((tag & 7) === 4 || tag === 0) {
67
76
  break;
@@ -76,6 +85,7 @@ exports.CustomerDeviceInfoRequest = {
76
85
  akara_lead_id: isSet(object.akara_lead_id) ? globalThis.String(object.akara_lead_id) : "",
77
86
  lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : "",
78
87
  device_info: isSet(object.device_info) ? exports.DeviceInfo.fromJSON(object.device_info) : undefined,
88
+ device_synced: isSet(object.device_synced) ? globalThis.Boolean(object.device_synced) : false,
79
89
  };
80
90
  },
81
91
  toJSON(message) {
@@ -92,6 +102,9 @@ exports.CustomerDeviceInfoRequest = {
92
102
  if (message.device_info !== undefined) {
93
103
  obj.device_info = exports.DeviceInfo.toJSON(message.device_info);
94
104
  }
105
+ if (message.device_synced !== false) {
106
+ obj.device_synced = message.device_synced;
107
+ }
95
108
  return obj;
96
109
  },
97
110
  create(base) {
@@ -105,6 +118,7 @@ exports.CustomerDeviceInfoRequest = {
105
118
  message.device_info = (object.device_info !== undefined && object.device_info !== null)
106
119
  ? exports.DeviceInfo.fromPartial(object.device_info)
107
120
  : undefined;
121
+ message.device_synced = object.device_synced ?? false;
108
122
  return message;
109
123
  },
110
124
  };
@@ -355,16 +369,13 @@ exports.DeviceGeo = {
355
369
  },
356
370
  };
357
371
  function createBaseCustomerDeviceInfoResponse() {
358
- return { success: false, info_synced: false };
372
+ return { success: false };
359
373
  }
360
374
  exports.CustomerDeviceInfoResponse = {
361
375
  encode(message, writer = minimal_1.default.Writer.create()) {
362
376
  if (message.success !== false) {
363
377
  writer.uint32(8).bool(message.success);
364
378
  }
365
- if (message.info_synced !== false) {
366
- writer.uint32(16).bool(message.info_synced);
367
- }
368
379
  return writer;
369
380
  },
370
381
  decode(input, length) {
@@ -380,12 +391,6 @@ exports.CustomerDeviceInfoResponse = {
380
391
  }
381
392
  message.success = reader.bool();
382
393
  continue;
383
- case 2:
384
- if (tag !== 16) {
385
- break;
386
- }
387
- message.info_synced = reader.bool();
388
- continue;
389
394
  }
390
395
  if ((tag & 7) === 4 || tag === 0) {
391
396
  break;
@@ -395,19 +400,13 @@ exports.CustomerDeviceInfoResponse = {
395
400
  return message;
396
401
  },
397
402
  fromJSON(object) {
398
- return {
399
- success: isSet(object.success) ? globalThis.Boolean(object.success) : false,
400
- info_synced: isSet(object.info_synced) ? globalThis.Boolean(object.info_synced) : false,
401
- };
403
+ return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
402
404
  },
403
405
  toJSON(message) {
404
406
  const obj = {};
405
407
  if (message.success !== false) {
406
408
  obj.success = message.success;
407
409
  }
408
- if (message.info_synced !== false) {
409
- obj.info_synced = message.info_synced;
410
- }
411
410
  return obj;
412
411
  },
413
412
  create(base) {
@@ -416,7 +415,6 @@ exports.CustomerDeviceInfoResponse = {
416
415
  fromPartial(object) {
417
416
  const message = createBaseCustomerDeviceInfoResponse();
418
417
  message.success = object.success ?? false;
419
- message.info_synced = object.info_synced ?? false;
420
418
  return message;
421
419
  },
422
420
  };
@@ -0,0 +1,51 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getlendingrefreshtoken";
3
+ export interface getLendingRefreshTokenRequest {
4
+ customer_id?: number | undefined;
5
+ phone_number: number;
6
+ }
7
+ export interface RefreshTokenData {
8
+ jwt_token: string;
9
+ auth_token: string;
10
+ device_id: string;
11
+ customer_id: number;
12
+ }
13
+ export interface getLendingRefreshTokenResponse {
14
+ status: string;
15
+ data: RefreshTokenData | undefined;
16
+ }
17
+ export declare const getLendingRefreshTokenRequest: {
18
+ encode(message: getLendingRefreshTokenRequest, writer?: _m0.Writer): _m0.Writer;
19
+ decode(input: _m0.Reader | Uint8Array, length?: number): getLendingRefreshTokenRequest;
20
+ fromJSON(object: any): getLendingRefreshTokenRequest;
21
+ toJSON(message: getLendingRefreshTokenRequest): unknown;
22
+ create<I extends Exact<DeepPartial<getLendingRefreshTokenRequest>, I>>(base?: I): getLendingRefreshTokenRequest;
23
+ fromPartial<I extends Exact<DeepPartial<getLendingRefreshTokenRequest>, I>>(object: I): getLendingRefreshTokenRequest;
24
+ };
25
+ export declare const RefreshTokenData: {
26
+ encode(message: RefreshTokenData, writer?: _m0.Writer): _m0.Writer;
27
+ decode(input: _m0.Reader | Uint8Array, length?: number): RefreshTokenData;
28
+ fromJSON(object: any): RefreshTokenData;
29
+ toJSON(message: RefreshTokenData): unknown;
30
+ create<I extends Exact<DeepPartial<RefreshTokenData>, I>>(base?: I): RefreshTokenData;
31
+ fromPartial<I extends Exact<DeepPartial<RefreshTokenData>, I>>(object: I): RefreshTokenData;
32
+ };
33
+ export declare const getLendingRefreshTokenResponse: {
34
+ encode(message: getLendingRefreshTokenResponse, writer?: _m0.Writer): _m0.Writer;
35
+ decode(input: _m0.Reader | Uint8Array, length?: number): getLendingRefreshTokenResponse;
36
+ fromJSON(object: any): getLendingRefreshTokenResponse;
37
+ toJSON(message: getLendingRefreshTokenResponse): unknown;
38
+ create<I extends Exact<DeepPartial<getLendingRefreshTokenResponse>, I>>(base?: I): getLendingRefreshTokenResponse;
39
+ fromPartial<I extends Exact<DeepPartial<getLendingRefreshTokenResponse>, I>>(object: I): getLendingRefreshTokenResponse;
40
+ };
41
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
42
+ 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 {} ? {
43
+ [K in keyof T]?: DeepPartial<T[K]>;
44
+ } : Partial<T>;
45
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
46
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
47
+ [K in keyof P]: Exact<P[K], I[K]>;
48
+ } & {
49
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
50
+ };
51
+ export {};
@@ -0,0 +1,259 @@
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.31.0
6
+ // source: eqxcustomers/getlendingrefreshtoken.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.getLendingRefreshTokenResponse = exports.RefreshTokenData = exports.getLendingRefreshTokenRequest = 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 = "eqxcustomers.getlendingrefreshtoken";
16
+ function createBasegetLendingRefreshTokenRequest() {
17
+ return { customer_id: undefined, phone_number: 0 };
18
+ }
19
+ exports.getLendingRefreshTokenRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.customer_id !== undefined) {
22
+ writer.uint32(8).int64(message.customer_id);
23
+ }
24
+ if (message.phone_number !== 0) {
25
+ writer.uint32(16).int64(message.phone_number);
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 = createBasegetLendingRefreshTokenRequest();
33
+ while (reader.pos < end) {
34
+ const tag = reader.uint32();
35
+ switch (tag >>> 3) {
36
+ case 1:
37
+ if (tag !== 8) {
38
+ break;
39
+ }
40
+ message.customer_id = longToNumber(reader.int64());
41
+ continue;
42
+ case 2:
43
+ if (tag !== 16) {
44
+ break;
45
+ }
46
+ message.phone_number = longToNumber(reader.int64());
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
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
59
+ phone_number: isSet(object.phone_number) ? globalThis.Number(object.phone_number) : 0,
60
+ };
61
+ },
62
+ toJSON(message) {
63
+ const obj = {};
64
+ if (message.customer_id !== undefined) {
65
+ obj.customer_id = Math.round(message.customer_id);
66
+ }
67
+ if (message.phone_number !== 0) {
68
+ obj.phone_number = Math.round(message.phone_number);
69
+ }
70
+ return obj;
71
+ },
72
+ create(base) {
73
+ return exports.getLendingRefreshTokenRequest.fromPartial(base ?? {});
74
+ },
75
+ fromPartial(object) {
76
+ const message = createBasegetLendingRefreshTokenRequest();
77
+ message.customer_id = object.customer_id ?? undefined;
78
+ message.phone_number = object.phone_number ?? 0;
79
+ return message;
80
+ },
81
+ };
82
+ function createBaseRefreshTokenData() {
83
+ return { jwt_token: "", auth_token: "", device_id: "", customer_id: 0 };
84
+ }
85
+ exports.RefreshTokenData = {
86
+ encode(message, writer = minimal_1.default.Writer.create()) {
87
+ if (message.jwt_token !== "") {
88
+ writer.uint32(10).string(message.jwt_token);
89
+ }
90
+ if (message.auth_token !== "") {
91
+ writer.uint32(18).string(message.auth_token);
92
+ }
93
+ if (message.device_id !== "") {
94
+ writer.uint32(26).string(message.device_id);
95
+ }
96
+ if (message.customer_id !== 0) {
97
+ writer.uint32(32).int64(message.customer_id);
98
+ }
99
+ return writer;
100
+ },
101
+ decode(input, length) {
102
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
103
+ let end = length === undefined ? reader.len : reader.pos + length;
104
+ const message = createBaseRefreshTokenData();
105
+ while (reader.pos < end) {
106
+ const tag = reader.uint32();
107
+ switch (tag >>> 3) {
108
+ case 1:
109
+ if (tag !== 10) {
110
+ break;
111
+ }
112
+ message.jwt_token = reader.string();
113
+ continue;
114
+ case 2:
115
+ if (tag !== 18) {
116
+ break;
117
+ }
118
+ message.auth_token = reader.string();
119
+ continue;
120
+ case 3:
121
+ if (tag !== 26) {
122
+ break;
123
+ }
124
+ message.device_id = reader.string();
125
+ continue;
126
+ case 4:
127
+ if (tag !== 32) {
128
+ break;
129
+ }
130
+ message.customer_id = longToNumber(reader.int64());
131
+ continue;
132
+ }
133
+ if ((tag & 7) === 4 || tag === 0) {
134
+ break;
135
+ }
136
+ reader.skipType(tag & 7);
137
+ }
138
+ return message;
139
+ },
140
+ fromJSON(object) {
141
+ return {
142
+ jwt_token: isSet(object.jwt_token) ? globalThis.String(object.jwt_token) : "",
143
+ auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
144
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
145
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
146
+ };
147
+ },
148
+ toJSON(message) {
149
+ const obj = {};
150
+ if (message.jwt_token !== "") {
151
+ obj.jwt_token = message.jwt_token;
152
+ }
153
+ if (message.auth_token !== "") {
154
+ obj.auth_token = message.auth_token;
155
+ }
156
+ if (message.device_id !== "") {
157
+ obj.device_id = message.device_id;
158
+ }
159
+ if (message.customer_id !== 0) {
160
+ obj.customer_id = Math.round(message.customer_id);
161
+ }
162
+ return obj;
163
+ },
164
+ create(base) {
165
+ return exports.RefreshTokenData.fromPartial(base ?? {});
166
+ },
167
+ fromPartial(object) {
168
+ const message = createBaseRefreshTokenData();
169
+ message.jwt_token = object.jwt_token ?? "";
170
+ message.auth_token = object.auth_token ?? "";
171
+ message.device_id = object.device_id ?? "";
172
+ message.customer_id = object.customer_id ?? 0;
173
+ return message;
174
+ },
175
+ };
176
+ function createBasegetLendingRefreshTokenResponse() {
177
+ return { status: "", data: undefined };
178
+ }
179
+ exports.getLendingRefreshTokenResponse = {
180
+ encode(message, writer = minimal_1.default.Writer.create()) {
181
+ if (message.status !== "") {
182
+ writer.uint32(10).string(message.status);
183
+ }
184
+ if (message.data !== undefined) {
185
+ exports.RefreshTokenData.encode(message.data, writer.uint32(18).fork()).ldelim();
186
+ }
187
+ return writer;
188
+ },
189
+ decode(input, length) {
190
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
191
+ let end = length === undefined ? reader.len : reader.pos + length;
192
+ const message = createBasegetLendingRefreshTokenResponse();
193
+ while (reader.pos < end) {
194
+ const tag = reader.uint32();
195
+ switch (tag >>> 3) {
196
+ case 1:
197
+ if (tag !== 10) {
198
+ break;
199
+ }
200
+ message.status = reader.string();
201
+ continue;
202
+ case 2:
203
+ if (tag !== 18) {
204
+ break;
205
+ }
206
+ message.data = exports.RefreshTokenData.decode(reader, reader.uint32());
207
+ continue;
208
+ }
209
+ if ((tag & 7) === 4 || tag === 0) {
210
+ break;
211
+ }
212
+ reader.skipType(tag & 7);
213
+ }
214
+ return message;
215
+ },
216
+ fromJSON(object) {
217
+ return {
218
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
219
+ data: isSet(object.data) ? exports.RefreshTokenData.fromJSON(object.data) : undefined,
220
+ };
221
+ },
222
+ toJSON(message) {
223
+ const obj = {};
224
+ if (message.status !== "") {
225
+ obj.status = message.status;
226
+ }
227
+ if (message.data !== undefined) {
228
+ obj.data = exports.RefreshTokenData.toJSON(message.data);
229
+ }
230
+ return obj;
231
+ },
232
+ create(base) {
233
+ return exports.getLendingRefreshTokenResponse.fromPartial(base ?? {});
234
+ },
235
+ fromPartial(object) {
236
+ const message = createBasegetLendingRefreshTokenResponse();
237
+ message.status = object.status ?? "";
238
+ message.data = (object.data !== undefined && object.data !== null)
239
+ ? exports.RefreshTokenData.fromPartial(object.data)
240
+ : undefined;
241
+ return message;
242
+ },
243
+ };
244
+ function longToNumber(long) {
245
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
246
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
247
+ }
248
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
249
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
250
+ }
251
+ return long.toNumber();
252
+ }
253
+ if (minimal_1.default.util.Long !== long_1.default) {
254
+ minimal_1.default.util.Long = long_1.default;
255
+ minimal_1.default.configure();
256
+ }
257
+ function isSet(value) {
258
+ return value !== null && value !== undefined;
259
+ }
@@ -0,0 +1,48 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getlendingsyncedinfo";
3
+ export interface getLendingSyncedInfoRequest {
4
+ customer_id?: number | undefined;
5
+ }
6
+ export interface SyncedInfoData {
7
+ app_info_sync: boolean;
8
+ device_info_sync: boolean;
9
+ }
10
+ export interface getLendingSyncedInfoResponse {
11
+ status: string;
12
+ data: SyncedInfoData | undefined;
13
+ }
14
+ export declare const getLendingSyncedInfoRequest: {
15
+ encode(message: getLendingSyncedInfoRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): getLendingSyncedInfoRequest;
17
+ fromJSON(object: any): getLendingSyncedInfoRequest;
18
+ toJSON(message: getLendingSyncedInfoRequest): unknown;
19
+ create<I extends Exact<DeepPartial<getLendingSyncedInfoRequest>, I>>(base?: I): getLendingSyncedInfoRequest;
20
+ fromPartial<I extends Exact<DeepPartial<getLendingSyncedInfoRequest>, I>>(object: I): getLendingSyncedInfoRequest;
21
+ };
22
+ export declare const SyncedInfoData: {
23
+ encode(message: SyncedInfoData, writer?: _m0.Writer): _m0.Writer;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): SyncedInfoData;
25
+ fromJSON(object: any): SyncedInfoData;
26
+ toJSON(message: SyncedInfoData): unknown;
27
+ create<I extends Exact<DeepPartial<SyncedInfoData>, I>>(base?: I): SyncedInfoData;
28
+ fromPartial<I extends Exact<DeepPartial<SyncedInfoData>, I>>(object: I): SyncedInfoData;
29
+ };
30
+ export declare const getLendingSyncedInfoResponse: {
31
+ encode(message: getLendingSyncedInfoResponse, writer?: _m0.Writer): _m0.Writer;
32
+ decode(input: _m0.Reader | Uint8Array, length?: number): getLendingSyncedInfoResponse;
33
+ fromJSON(object: any): getLendingSyncedInfoResponse;
34
+ toJSON(message: getLendingSyncedInfoResponse): unknown;
35
+ create<I extends Exact<DeepPartial<getLendingSyncedInfoResponse>, I>>(base?: I): getLendingSyncedInfoResponse;
36
+ fromPartial<I extends Exact<DeepPartial<getLendingSyncedInfoResponse>, I>>(object: I): getLendingSyncedInfoResponse;
37
+ };
38
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
39
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
40
+ [K in keyof T]?: DeepPartial<T[K]>;
41
+ } : Partial<T>;
42
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
43
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
44
+ [K in keyof P]: Exact<P[K], I[K]>;
45
+ } & {
46
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
47
+ };
48
+ export {};
@@ -0,0 +1,215 @@
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.31.0
6
+ // source: eqxcustomers/getlendingsyncedinfo.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.getLendingSyncedInfoResponse = exports.SyncedInfoData = exports.getLendingSyncedInfoRequest = 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 = "eqxcustomers.getlendingsyncedinfo";
16
+ function createBasegetLendingSyncedInfoRequest() {
17
+ return { customer_id: undefined };
18
+ }
19
+ exports.getLendingSyncedInfoRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.customer_id !== undefined) {
22
+ writer.uint32(8).int64(message.customer_id);
23
+ }
24
+ return writer;
25
+ },
26
+ decode(input, length) {
27
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
28
+ let end = length === undefined ? reader.len : reader.pos + length;
29
+ const message = createBasegetLendingSyncedInfoRequest();
30
+ while (reader.pos < end) {
31
+ const tag = reader.uint32();
32
+ switch (tag >>> 3) {
33
+ case 1:
34
+ if (tag !== 8) {
35
+ break;
36
+ }
37
+ message.customer_id = longToNumber(reader.int64());
38
+ continue;
39
+ }
40
+ if ((tag & 7) === 4 || tag === 0) {
41
+ break;
42
+ }
43
+ reader.skipType(tag & 7);
44
+ }
45
+ return message;
46
+ },
47
+ fromJSON(object) {
48
+ return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined };
49
+ },
50
+ toJSON(message) {
51
+ const obj = {};
52
+ if (message.customer_id !== undefined) {
53
+ obj.customer_id = Math.round(message.customer_id);
54
+ }
55
+ return obj;
56
+ },
57
+ create(base) {
58
+ return exports.getLendingSyncedInfoRequest.fromPartial(base ?? {});
59
+ },
60
+ fromPartial(object) {
61
+ const message = createBasegetLendingSyncedInfoRequest();
62
+ message.customer_id = object.customer_id ?? undefined;
63
+ return message;
64
+ },
65
+ };
66
+ function createBaseSyncedInfoData() {
67
+ return { app_info_sync: false, device_info_sync: false };
68
+ }
69
+ exports.SyncedInfoData = {
70
+ encode(message, writer = minimal_1.default.Writer.create()) {
71
+ if (message.app_info_sync !== false) {
72
+ writer.uint32(8).bool(message.app_info_sync);
73
+ }
74
+ if (message.device_info_sync !== false) {
75
+ writer.uint32(16).bool(message.device_info_sync);
76
+ }
77
+ return writer;
78
+ },
79
+ decode(input, length) {
80
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
81
+ let end = length === undefined ? reader.len : reader.pos + length;
82
+ const message = createBaseSyncedInfoData();
83
+ while (reader.pos < end) {
84
+ const tag = reader.uint32();
85
+ switch (tag >>> 3) {
86
+ case 1:
87
+ if (tag !== 8) {
88
+ break;
89
+ }
90
+ message.app_info_sync = reader.bool();
91
+ continue;
92
+ case 2:
93
+ if (tag !== 16) {
94
+ break;
95
+ }
96
+ message.device_info_sync = reader.bool();
97
+ continue;
98
+ }
99
+ if ((tag & 7) === 4 || tag === 0) {
100
+ break;
101
+ }
102
+ reader.skipType(tag & 7);
103
+ }
104
+ return message;
105
+ },
106
+ fromJSON(object) {
107
+ return {
108
+ app_info_sync: isSet(object.app_info_sync) ? globalThis.Boolean(object.app_info_sync) : false,
109
+ device_info_sync: isSet(object.device_info_sync) ? globalThis.Boolean(object.device_info_sync) : false,
110
+ };
111
+ },
112
+ toJSON(message) {
113
+ const obj = {};
114
+ if (message.app_info_sync !== false) {
115
+ obj.app_info_sync = message.app_info_sync;
116
+ }
117
+ if (message.device_info_sync !== false) {
118
+ obj.device_info_sync = message.device_info_sync;
119
+ }
120
+ return obj;
121
+ },
122
+ create(base) {
123
+ return exports.SyncedInfoData.fromPartial(base ?? {});
124
+ },
125
+ fromPartial(object) {
126
+ const message = createBaseSyncedInfoData();
127
+ message.app_info_sync = object.app_info_sync ?? false;
128
+ message.device_info_sync = object.device_info_sync ?? false;
129
+ return message;
130
+ },
131
+ };
132
+ function createBasegetLendingSyncedInfoResponse() {
133
+ return { status: "", data: undefined };
134
+ }
135
+ exports.getLendingSyncedInfoResponse = {
136
+ encode(message, writer = minimal_1.default.Writer.create()) {
137
+ if (message.status !== "") {
138
+ writer.uint32(10).string(message.status);
139
+ }
140
+ if (message.data !== undefined) {
141
+ exports.SyncedInfoData.encode(message.data, writer.uint32(18).fork()).ldelim();
142
+ }
143
+ return writer;
144
+ },
145
+ decode(input, length) {
146
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
147
+ let end = length === undefined ? reader.len : reader.pos + length;
148
+ const message = createBasegetLendingSyncedInfoResponse();
149
+ while (reader.pos < end) {
150
+ const tag = reader.uint32();
151
+ switch (tag >>> 3) {
152
+ case 1:
153
+ if (tag !== 10) {
154
+ break;
155
+ }
156
+ message.status = reader.string();
157
+ continue;
158
+ case 2:
159
+ if (tag !== 18) {
160
+ break;
161
+ }
162
+ message.data = exports.SyncedInfoData.decode(reader, reader.uint32());
163
+ continue;
164
+ }
165
+ if ((tag & 7) === 4 || tag === 0) {
166
+ break;
167
+ }
168
+ reader.skipType(tag & 7);
169
+ }
170
+ return message;
171
+ },
172
+ fromJSON(object) {
173
+ return {
174
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
175
+ data: isSet(object.data) ? exports.SyncedInfoData.fromJSON(object.data) : undefined,
176
+ };
177
+ },
178
+ toJSON(message) {
179
+ const obj = {};
180
+ if (message.status !== "") {
181
+ obj.status = message.status;
182
+ }
183
+ if (message.data !== undefined) {
184
+ obj.data = exports.SyncedInfoData.toJSON(message.data);
185
+ }
186
+ return obj;
187
+ },
188
+ create(base) {
189
+ return exports.getLendingSyncedInfoResponse.fromPartial(base ?? {});
190
+ },
191
+ fromPartial(object) {
192
+ const message = createBasegetLendingSyncedInfoResponse();
193
+ message.status = object.status ?? "";
194
+ message.data = (object.data !== undefined && object.data !== null)
195
+ ? exports.SyncedInfoData.fromPartial(object.data)
196
+ : undefined;
197
+ return message;
198
+ },
199
+ };
200
+ function longToNumber(long) {
201
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
202
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
203
+ }
204
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
205
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
206
+ }
207
+ return long.toNumber();
208
+ }
209
+ if (minimal_1.default.util.Long !== long_1.default) {
210
+ minimal_1.default.util.Long = long_1.default;
211
+ minimal_1.default.configure();
212
+ }
213
+ function isSet(value) {
214
+ return value !== null && value !== undefined;
215
+ }