@stashfin/grpc 1.2.783 → 1.2.785

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.783",
3
+ "version": "1.2.785",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -6,7 +6,9 @@ import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/
6
6
  import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcustomers/getcustomerbymobile";
7
7
  import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
8
8
  import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
9
- import { getlandingHomePageRequest, getlandingHomePageResponse } from "./eqxcustomers/getlandinghomepage";
9
+ import { CustomerAppsInfoRequest, CustomerAppsInfoResponse } from "./eqxcustomers/getlendingcustomerappsInfo";
10
+ import { CustomerDeviceInfoRequest, CustomerDeviceInfoResponse } from "./eqxcustomers/getlendingcustomerdeviceInfo";
11
+ import { getlendingHomePageRequest, getlendingHomePageResponse } from "./eqxcustomers/getlendinghomepage";
10
12
  import { getLoanPlansRequest, getLoanPlansResponse } from "./eqxcustomers/getloanplans";
11
13
  import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
12
14
  import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
@@ -213,14 +215,32 @@ export declare const eqxcustomersService: {
213
215
  readonly responseSerialize: (value: truecallerLoginResponse) => Buffer;
214
216
  readonly responseDeserialize: (value: Buffer) => truecallerLoginResponse;
215
217
  };
216
- readonly getlandingHomePage: {
217
- readonly path: "/service.eqxcustomers/getlandingHomePage";
218
+ readonly getlendingHomePage: {
219
+ readonly path: "/service.eqxcustomers/getlendingHomePage";
218
220
  readonly requestStream: false;
219
221
  readonly responseStream: false;
220
- readonly requestSerialize: (value: getlandingHomePageRequest) => Buffer;
221
- readonly requestDeserialize: (value: Buffer) => getlandingHomePageRequest;
222
- readonly responseSerialize: (value: getlandingHomePageResponse) => Buffer;
223
- readonly responseDeserialize: (value: Buffer) => getlandingHomePageResponse;
222
+ readonly requestSerialize: (value: getlendingHomePageRequest) => Buffer;
223
+ readonly requestDeserialize: (value: Buffer) => getlendingHomePageRequest;
224
+ readonly responseSerialize: (value: getlendingHomePageResponse) => Buffer;
225
+ readonly responseDeserialize: (value: Buffer) => getlendingHomePageResponse;
226
+ };
227
+ readonly getLendingCustomerAppsInfo: {
228
+ readonly path: "/service.eqxcustomers/getLendingCustomerAppsInfo";
229
+ readonly requestStream: false;
230
+ readonly responseStream: false;
231
+ readonly requestSerialize: (value: CustomerAppsInfoRequest) => Buffer;
232
+ readonly requestDeserialize: (value: Buffer) => CustomerAppsInfoRequest;
233
+ readonly responseSerialize: (value: CustomerAppsInfoResponse) => Buffer;
234
+ readonly responseDeserialize: (value: Buffer) => CustomerAppsInfoResponse;
235
+ };
236
+ readonly getLendingCustomerDeviceInfo: {
237
+ readonly path: "/service.eqxcustomers/getLendingCustomerDeviceInfo";
238
+ readonly requestStream: false;
239
+ readonly responseStream: false;
240
+ readonly requestSerialize: (value: CustomerDeviceInfoRequest) => Buffer;
241
+ readonly requestDeserialize: (value: Buffer) => CustomerDeviceInfoRequest;
242
+ readonly responseSerialize: (value: CustomerDeviceInfoResponse) => Buffer;
243
+ readonly responseDeserialize: (value: Buffer) => CustomerDeviceInfoResponse;
224
244
  };
225
245
  };
226
246
  export interface eqxcustomersServer extends UntypedServiceImplementation {
@@ -245,7 +265,9 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
245
265
  getLoanPlans: handleUnaryCall<getLoanPlansRequest, getLoanPlansResponse>;
246
266
  getTnC: handleUnaryCall<getTnCRequest, getTnCResponse>;
247
267
  truecallerLogin: handleUnaryCall<truecallerLoginRequest, truecallerLoginResponse>;
248
- getlandingHomePage: handleUnaryCall<getlandingHomePageRequest, getlandingHomePageResponse>;
268
+ getlendingHomePage: handleUnaryCall<getlendingHomePageRequest, getlendingHomePageResponse>;
269
+ getLendingCustomerAppsInfo: handleUnaryCall<CustomerAppsInfoRequest, CustomerAppsInfoResponse>;
270
+ getLendingCustomerDeviceInfo: handleUnaryCall<CustomerDeviceInfoRequest, CustomerDeviceInfoResponse>;
249
271
  }
250
272
  export interface eqxcustomersClient extends Client {
251
273
  sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
@@ -311,9 +333,15 @@ export interface eqxcustomersClient extends Client {
311
333
  truecallerLogin(request: truecallerLoginRequest, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
312
334
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
313
335
  truecallerLogin(request: truecallerLoginRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: truecallerLoginResponse) => void): ClientUnaryCall;
314
- getlandingHomePage(request: getlandingHomePageRequest, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
315
- getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
316
- getlandingHomePage(request: getlandingHomePageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlandingHomePageResponse) => void): ClientUnaryCall;
336
+ getlendingHomePage(request: getlendingHomePageRequest, callback: (error: ServiceError | null, response: getlendingHomePageResponse) => void): ClientUnaryCall;
337
+ getlendingHomePage(request: getlendingHomePageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getlendingHomePageResponse) => void): ClientUnaryCall;
338
+ getlendingHomePage(request: getlendingHomePageRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getlendingHomePageResponse) => void): ClientUnaryCall;
339
+ getLendingCustomerAppsInfo(request: CustomerAppsInfoRequest, callback: (error: ServiceError | null, response: CustomerAppsInfoResponse) => void): ClientUnaryCall;
340
+ getLendingCustomerAppsInfo(request: CustomerAppsInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerAppsInfoResponse) => void): ClientUnaryCall;
341
+ getLendingCustomerAppsInfo(request: CustomerAppsInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerAppsInfoResponse) => void): ClientUnaryCall;
342
+ getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
343
+ getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
344
+ getLendingCustomerDeviceInfo(request: CustomerDeviceInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CustomerDeviceInfoResponse) => void): ClientUnaryCall;
317
345
  }
318
346
  export declare const eqxcustomersClient: {
319
347
  new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
package/ts/eqxcustomer.js CHANGED
@@ -15,7 +15,9 @@ const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
15
15
  const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
16
16
  const getdashboard_1 = require("./eqxcustomers/getdashboard");
17
17
  const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
18
- const getlandinghomepage_1 = require("./eqxcustomers/getlandinghomepage");
18
+ const getlendingcustomerappsInfo_1 = require("./eqxcustomers/getlendingcustomerappsInfo");
19
+ const getlendingcustomerdeviceInfo_1 = require("./eqxcustomers/getlendingcustomerdeviceInfo");
20
+ const getlendinghomepage_1 = require("./eqxcustomers/getlendinghomepage");
19
21
  const getloanplans_1 = require("./eqxcustomers/getloanplans");
20
22
  const getnotifications_1 = require("./eqxcustomers/getnotifications");
21
23
  const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
@@ -221,14 +223,32 @@ exports.eqxcustomersService = {
221
223
  responseSerialize: (value) => Buffer.from(truecallerlogin_1.truecallerLoginResponse.encode(value).finish()),
222
224
  responseDeserialize: (value) => truecallerlogin_1.truecallerLoginResponse.decode(value),
223
225
  },
224
- getlandingHomePage: {
225
- path: "/service.eqxcustomers/getlandingHomePage",
226
+ getlendingHomePage: {
227
+ path: "/service.eqxcustomers/getlendingHomePage",
226
228
  requestStream: false,
227
229
  responseStream: false,
228
- requestSerialize: (value) => Buffer.from(getlandinghomepage_1.getlandingHomePageRequest.encode(value).finish()),
229
- requestDeserialize: (value) => getlandinghomepage_1.getlandingHomePageRequest.decode(value),
230
- responseSerialize: (value) => Buffer.from(getlandinghomepage_1.getlandingHomePageResponse.encode(value).finish()),
231
- responseDeserialize: (value) => getlandinghomepage_1.getlandingHomePageResponse.decode(value),
230
+ requestSerialize: (value) => Buffer.from(getlendinghomepage_1.getlendingHomePageRequest.encode(value).finish()),
231
+ requestDeserialize: (value) => getlendinghomepage_1.getlendingHomePageRequest.decode(value),
232
+ responseSerialize: (value) => Buffer.from(getlendinghomepage_1.getlendingHomePageResponse.encode(value).finish()),
233
+ responseDeserialize: (value) => getlendinghomepage_1.getlendingHomePageResponse.decode(value),
234
+ },
235
+ getLendingCustomerAppsInfo: {
236
+ path: "/service.eqxcustomers/getLendingCustomerAppsInfo",
237
+ requestStream: false,
238
+ responseStream: false,
239
+ requestSerialize: (value) => Buffer.from(getlendingcustomerappsInfo_1.CustomerAppsInfoRequest.encode(value).finish()),
240
+ requestDeserialize: (value) => getlendingcustomerappsInfo_1.CustomerAppsInfoRequest.decode(value),
241
+ responseSerialize: (value) => Buffer.from(getlendingcustomerappsInfo_1.CustomerAppsInfoResponse.encode(value).finish()),
242
+ responseDeserialize: (value) => getlendingcustomerappsInfo_1.CustomerAppsInfoResponse.decode(value),
243
+ },
244
+ getLendingCustomerDeviceInfo: {
245
+ path: "/service.eqxcustomers/getLendingCustomerDeviceInfo",
246
+ requestStream: false,
247
+ responseStream: false,
248
+ requestSerialize: (value) => Buffer.from(getlendingcustomerdeviceInfo_1.CustomerDeviceInfoRequest.encode(value).finish()),
249
+ requestDeserialize: (value) => getlendingcustomerdeviceInfo_1.CustomerDeviceInfoRequest.decode(value),
250
+ responseSerialize: (value) => Buffer.from(getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.encode(value).finish()),
251
+ responseDeserialize: (value) => getlendingcustomerdeviceInfo_1.CustomerDeviceInfoResponse.decode(value),
232
252
  },
233
253
  };
234
254
  exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
@@ -0,0 +1,69 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "eqxcustomers.getlendingcustomerappsInfo";
3
+ export interface CustomerAppsInfoRequest {
4
+ partner_lead_id: string;
5
+ akara_lead_id: string;
6
+ lead_source: string;
7
+ app_info: AppsInfo | undefined;
8
+ }
9
+ export interface AppsInfo {
10
+ device_id: string;
11
+ app_instance_id: string;
12
+ firebase_reg_id: string;
13
+ app_permissions: string[];
14
+ app_installed: AppInstalled[];
15
+ }
16
+ export interface AppInstalled {
17
+ appName: string;
18
+ packageName: string;
19
+ versionName: string;
20
+ versionCode: number;
21
+ installation_date: string;
22
+ lastUsed: string;
23
+ }
24
+ export interface CustomerAppsInfoResponse {
25
+ success: boolean;
26
+ }
27
+ export declare const CustomerAppsInfoRequest: {
28
+ encode(message: CustomerAppsInfoRequest, writer?: _m0.Writer): _m0.Writer;
29
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomerAppsInfoRequest;
30
+ fromJSON(object: any): CustomerAppsInfoRequest;
31
+ toJSON(message: CustomerAppsInfoRequest): unknown;
32
+ create<I extends Exact<DeepPartial<CustomerAppsInfoRequest>, I>>(base?: I): CustomerAppsInfoRequest;
33
+ fromPartial<I extends Exact<DeepPartial<CustomerAppsInfoRequest>, I>>(object: I): CustomerAppsInfoRequest;
34
+ };
35
+ export declare const AppsInfo: {
36
+ encode(message: AppsInfo, writer?: _m0.Writer): _m0.Writer;
37
+ decode(input: _m0.Reader | Uint8Array, length?: number): AppsInfo;
38
+ fromJSON(object: any): AppsInfo;
39
+ toJSON(message: AppsInfo): unknown;
40
+ create<I extends Exact<DeepPartial<AppsInfo>, I>>(base?: I): AppsInfo;
41
+ fromPartial<I extends Exact<DeepPartial<AppsInfo>, I>>(object: I): AppsInfo;
42
+ };
43
+ export declare const AppInstalled: {
44
+ encode(message: AppInstalled, writer?: _m0.Writer): _m0.Writer;
45
+ decode(input: _m0.Reader | Uint8Array, length?: number): AppInstalled;
46
+ fromJSON(object: any): AppInstalled;
47
+ toJSON(message: AppInstalled): unknown;
48
+ create<I extends Exact<DeepPartial<AppInstalled>, I>>(base?: I): AppInstalled;
49
+ fromPartial<I extends Exact<DeepPartial<AppInstalled>, I>>(object: I): AppInstalled;
50
+ };
51
+ export declare const CustomerAppsInfoResponse: {
52
+ encode(message: CustomerAppsInfoResponse, writer?: _m0.Writer): _m0.Writer;
53
+ decode(input: _m0.Reader | Uint8Array, length?: number): CustomerAppsInfoResponse;
54
+ fromJSON(object: any): CustomerAppsInfoResponse;
55
+ toJSON(message: CustomerAppsInfoResponse): unknown;
56
+ create<I extends Exact<DeepPartial<CustomerAppsInfoResponse>, I>>(base?: I): CustomerAppsInfoResponse;
57
+ fromPartial<I extends Exact<DeepPartial<CustomerAppsInfoResponse>, I>>(object: I): CustomerAppsInfoResponse;
58
+ };
59
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
60
+ 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 {} ? {
61
+ [K in keyof T]?: DeepPartial<T[K]>;
62
+ } : Partial<T>;
63
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
64
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
65
+ [K in keyof P]: Exact<P[K], I[K]>;
66
+ } & {
67
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
68
+ };
69
+ export {};
@@ -0,0 +1,397 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.1
5
+ // protoc v3.20.3
6
+ // source: eqxcustomers/getlendingcustomerappsInfo.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.CustomerAppsInfoResponse = exports.AppInstalled = exports.AppsInfo = exports.CustomerAppsInfoRequest = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "eqxcustomers.getlendingcustomerappsInfo";
15
+ function createBaseCustomerAppsInfoRequest() {
16
+ return { partner_lead_id: "", akara_lead_id: "", lead_source: "", app_info: undefined };
17
+ }
18
+ exports.CustomerAppsInfoRequest = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.partner_lead_id !== "") {
21
+ writer.uint32(10).string(message.partner_lead_id);
22
+ }
23
+ if (message.akara_lead_id !== "") {
24
+ writer.uint32(18).string(message.akara_lead_id);
25
+ }
26
+ if (message.lead_source !== "") {
27
+ writer.uint32(26).string(message.lead_source);
28
+ }
29
+ if (message.app_info !== undefined) {
30
+ exports.AppsInfo.encode(message.app_info, writer.uint32(34).fork()).ldelim();
31
+ }
32
+ return writer;
33
+ },
34
+ decode(input, length) {
35
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
36
+ let end = length === undefined ? reader.len : reader.pos + length;
37
+ const message = createBaseCustomerAppsInfoRequest();
38
+ while (reader.pos < end) {
39
+ const tag = reader.uint32();
40
+ switch (tag >>> 3) {
41
+ case 1:
42
+ if (tag !== 10) {
43
+ break;
44
+ }
45
+ message.partner_lead_id = reader.string();
46
+ continue;
47
+ case 2:
48
+ if (tag !== 18) {
49
+ break;
50
+ }
51
+ message.akara_lead_id = reader.string();
52
+ continue;
53
+ case 3:
54
+ if (tag !== 26) {
55
+ break;
56
+ }
57
+ message.lead_source = reader.string();
58
+ continue;
59
+ case 4:
60
+ if (tag !== 34) {
61
+ break;
62
+ }
63
+ message.app_info = exports.AppsInfo.decode(reader, reader.uint32());
64
+ continue;
65
+ }
66
+ if ((tag & 7) === 4 || tag === 0) {
67
+ break;
68
+ }
69
+ reader.skipType(tag & 7);
70
+ }
71
+ return message;
72
+ },
73
+ fromJSON(object) {
74
+ return {
75
+ partner_lead_id: isSet(object.partner_lead_id) ? globalThis.String(object.partner_lead_id) : "",
76
+ akara_lead_id: isSet(object.akara_lead_id) ? globalThis.String(object.akara_lead_id) : "",
77
+ lead_source: isSet(object.lead_source) ? globalThis.String(object.lead_source) : "",
78
+ app_info: isSet(object.app_info) ? exports.AppsInfo.fromJSON(object.app_info) : undefined,
79
+ };
80
+ },
81
+ toJSON(message) {
82
+ const obj = {};
83
+ if (message.partner_lead_id !== "") {
84
+ obj.partner_lead_id = message.partner_lead_id;
85
+ }
86
+ if (message.akara_lead_id !== "") {
87
+ obj.akara_lead_id = message.akara_lead_id;
88
+ }
89
+ if (message.lead_source !== "") {
90
+ obj.lead_source = message.lead_source;
91
+ }
92
+ if (message.app_info !== undefined) {
93
+ obj.app_info = exports.AppsInfo.toJSON(message.app_info);
94
+ }
95
+ return obj;
96
+ },
97
+ create(base) {
98
+ return exports.CustomerAppsInfoRequest.fromPartial(base ?? {});
99
+ },
100
+ fromPartial(object) {
101
+ const message = createBaseCustomerAppsInfoRequest();
102
+ message.partner_lead_id = object.partner_lead_id ?? "";
103
+ message.akara_lead_id = object.akara_lead_id ?? "";
104
+ message.lead_source = object.lead_source ?? "";
105
+ message.app_info = (object.app_info !== undefined && object.app_info !== null)
106
+ ? exports.AppsInfo.fromPartial(object.app_info)
107
+ : undefined;
108
+ return message;
109
+ },
110
+ };
111
+ function createBaseAppsInfo() {
112
+ return { device_id: "", app_instance_id: "", firebase_reg_id: "", app_permissions: [], app_installed: [] };
113
+ }
114
+ exports.AppsInfo = {
115
+ encode(message, writer = minimal_1.default.Writer.create()) {
116
+ if (message.device_id !== "") {
117
+ writer.uint32(10).string(message.device_id);
118
+ }
119
+ if (message.app_instance_id !== "") {
120
+ writer.uint32(18).string(message.app_instance_id);
121
+ }
122
+ if (message.firebase_reg_id !== "") {
123
+ writer.uint32(26).string(message.firebase_reg_id);
124
+ }
125
+ for (const v of message.app_permissions) {
126
+ writer.uint32(34).string(v);
127
+ }
128
+ for (const v of message.app_installed) {
129
+ exports.AppInstalled.encode(v, writer.uint32(42).fork()).ldelim();
130
+ }
131
+ return writer;
132
+ },
133
+ decode(input, length) {
134
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
135
+ let end = length === undefined ? reader.len : reader.pos + length;
136
+ const message = createBaseAppsInfo();
137
+ while (reader.pos < end) {
138
+ const tag = reader.uint32();
139
+ switch (tag >>> 3) {
140
+ case 1:
141
+ if (tag !== 10) {
142
+ break;
143
+ }
144
+ message.device_id = reader.string();
145
+ continue;
146
+ case 2:
147
+ if (tag !== 18) {
148
+ break;
149
+ }
150
+ message.app_instance_id = reader.string();
151
+ continue;
152
+ case 3:
153
+ if (tag !== 26) {
154
+ break;
155
+ }
156
+ message.firebase_reg_id = reader.string();
157
+ continue;
158
+ case 4:
159
+ if (tag !== 34) {
160
+ break;
161
+ }
162
+ message.app_permissions.push(reader.string());
163
+ continue;
164
+ case 5:
165
+ if (tag !== 42) {
166
+ break;
167
+ }
168
+ message.app_installed.push(exports.AppInstalled.decode(reader, reader.uint32()));
169
+ continue;
170
+ }
171
+ if ((tag & 7) === 4 || tag === 0) {
172
+ break;
173
+ }
174
+ reader.skipType(tag & 7);
175
+ }
176
+ return message;
177
+ },
178
+ fromJSON(object) {
179
+ return {
180
+ device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : "",
181
+ app_instance_id: isSet(object.app_instance_id) ? globalThis.String(object.app_instance_id) : "",
182
+ firebase_reg_id: isSet(object.firebase_reg_id) ? globalThis.String(object.firebase_reg_id) : "",
183
+ app_permissions: globalThis.Array.isArray(object?.app_permissions)
184
+ ? object.app_permissions.map((e) => globalThis.String(e))
185
+ : [],
186
+ app_installed: globalThis.Array.isArray(object?.app_installed)
187
+ ? object.app_installed.map((e) => exports.AppInstalled.fromJSON(e))
188
+ : [],
189
+ };
190
+ },
191
+ toJSON(message) {
192
+ const obj = {};
193
+ if (message.device_id !== "") {
194
+ obj.device_id = message.device_id;
195
+ }
196
+ if (message.app_instance_id !== "") {
197
+ obj.app_instance_id = message.app_instance_id;
198
+ }
199
+ if (message.firebase_reg_id !== "") {
200
+ obj.firebase_reg_id = message.firebase_reg_id;
201
+ }
202
+ if (message.app_permissions?.length) {
203
+ obj.app_permissions = message.app_permissions;
204
+ }
205
+ if (message.app_installed?.length) {
206
+ obj.app_installed = message.app_installed.map((e) => exports.AppInstalled.toJSON(e));
207
+ }
208
+ return obj;
209
+ },
210
+ create(base) {
211
+ return exports.AppsInfo.fromPartial(base ?? {});
212
+ },
213
+ fromPartial(object) {
214
+ const message = createBaseAppsInfo();
215
+ message.device_id = object.device_id ?? "";
216
+ message.app_instance_id = object.app_instance_id ?? "";
217
+ message.firebase_reg_id = object.firebase_reg_id ?? "";
218
+ message.app_permissions = object.app_permissions?.map((e) => e) || [];
219
+ message.app_installed = object.app_installed?.map((e) => exports.AppInstalled.fromPartial(e)) || [];
220
+ return message;
221
+ },
222
+ };
223
+ function createBaseAppInstalled() {
224
+ return { appName: "", packageName: "", versionName: "", versionCode: 0, installation_date: "", lastUsed: "" };
225
+ }
226
+ exports.AppInstalled = {
227
+ encode(message, writer = minimal_1.default.Writer.create()) {
228
+ if (message.appName !== "") {
229
+ writer.uint32(10).string(message.appName);
230
+ }
231
+ if (message.packageName !== "") {
232
+ writer.uint32(18).string(message.packageName);
233
+ }
234
+ if (message.versionName !== "") {
235
+ writer.uint32(26).string(message.versionName);
236
+ }
237
+ if (message.versionCode !== 0) {
238
+ writer.uint32(32).int32(message.versionCode);
239
+ }
240
+ if (message.installation_date !== "") {
241
+ writer.uint32(42).string(message.installation_date);
242
+ }
243
+ if (message.lastUsed !== "") {
244
+ writer.uint32(50).string(message.lastUsed);
245
+ }
246
+ return writer;
247
+ },
248
+ decode(input, length) {
249
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
250
+ let end = length === undefined ? reader.len : reader.pos + length;
251
+ const message = createBaseAppInstalled();
252
+ while (reader.pos < end) {
253
+ const tag = reader.uint32();
254
+ switch (tag >>> 3) {
255
+ case 1:
256
+ if (tag !== 10) {
257
+ break;
258
+ }
259
+ message.appName = reader.string();
260
+ continue;
261
+ case 2:
262
+ if (tag !== 18) {
263
+ break;
264
+ }
265
+ message.packageName = reader.string();
266
+ continue;
267
+ case 3:
268
+ if (tag !== 26) {
269
+ break;
270
+ }
271
+ message.versionName = reader.string();
272
+ continue;
273
+ case 4:
274
+ if (tag !== 32) {
275
+ break;
276
+ }
277
+ message.versionCode = reader.int32();
278
+ continue;
279
+ case 5:
280
+ if (tag !== 42) {
281
+ break;
282
+ }
283
+ message.installation_date = reader.string();
284
+ continue;
285
+ case 6:
286
+ if (tag !== 50) {
287
+ break;
288
+ }
289
+ message.lastUsed = reader.string();
290
+ continue;
291
+ }
292
+ if ((tag & 7) === 4 || tag === 0) {
293
+ break;
294
+ }
295
+ reader.skipType(tag & 7);
296
+ }
297
+ return message;
298
+ },
299
+ fromJSON(object) {
300
+ return {
301
+ appName: isSet(object.appName) ? globalThis.String(object.appName) : "",
302
+ packageName: isSet(object.packageName) ? globalThis.String(object.packageName) : "",
303
+ versionName: isSet(object.versionName) ? globalThis.String(object.versionName) : "",
304
+ versionCode: isSet(object.versionCode) ? globalThis.Number(object.versionCode) : 0,
305
+ installation_date: isSet(object.installation_date) ? globalThis.String(object.installation_date) : "",
306
+ lastUsed: isSet(object.lastUsed) ? globalThis.String(object.lastUsed) : "",
307
+ };
308
+ },
309
+ toJSON(message) {
310
+ const obj = {};
311
+ if (message.appName !== "") {
312
+ obj.appName = message.appName;
313
+ }
314
+ if (message.packageName !== "") {
315
+ obj.packageName = message.packageName;
316
+ }
317
+ if (message.versionName !== "") {
318
+ obj.versionName = message.versionName;
319
+ }
320
+ if (message.versionCode !== 0) {
321
+ obj.versionCode = Math.round(message.versionCode);
322
+ }
323
+ if (message.installation_date !== "") {
324
+ obj.installation_date = message.installation_date;
325
+ }
326
+ if (message.lastUsed !== "") {
327
+ obj.lastUsed = message.lastUsed;
328
+ }
329
+ return obj;
330
+ },
331
+ create(base) {
332
+ return exports.AppInstalled.fromPartial(base ?? {});
333
+ },
334
+ fromPartial(object) {
335
+ const message = createBaseAppInstalled();
336
+ message.appName = object.appName ?? "";
337
+ message.packageName = object.packageName ?? "";
338
+ message.versionName = object.versionName ?? "";
339
+ message.versionCode = object.versionCode ?? 0;
340
+ message.installation_date = object.installation_date ?? "";
341
+ message.lastUsed = object.lastUsed ?? "";
342
+ return message;
343
+ },
344
+ };
345
+ function createBaseCustomerAppsInfoResponse() {
346
+ return { success: false };
347
+ }
348
+ exports.CustomerAppsInfoResponse = {
349
+ encode(message, writer = minimal_1.default.Writer.create()) {
350
+ if (message.success !== false) {
351
+ writer.uint32(8).bool(message.success);
352
+ }
353
+ return writer;
354
+ },
355
+ decode(input, length) {
356
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
357
+ let end = length === undefined ? reader.len : reader.pos + length;
358
+ const message = createBaseCustomerAppsInfoResponse();
359
+ while (reader.pos < end) {
360
+ const tag = reader.uint32();
361
+ switch (tag >>> 3) {
362
+ case 1:
363
+ if (tag !== 8) {
364
+ break;
365
+ }
366
+ message.success = reader.bool();
367
+ continue;
368
+ }
369
+ if ((tag & 7) === 4 || tag === 0) {
370
+ break;
371
+ }
372
+ reader.skipType(tag & 7);
373
+ }
374
+ return message;
375
+ },
376
+ fromJSON(object) {
377
+ return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
378
+ },
379
+ toJSON(message) {
380
+ const obj = {};
381
+ if (message.success !== false) {
382
+ obj.success = message.success;
383
+ }
384
+ return obj;
385
+ },
386
+ create(base) {
387
+ return exports.CustomerAppsInfoResponse.fromPartial(base ?? {});
388
+ },
389
+ fromPartial(object) {
390
+ const message = createBaseCustomerAppsInfoResponse();
391
+ message.success = object.success ?? false;
392
+ return message;
393
+ },
394
+ };
395
+ function isSet(value) {
396
+ return value !== null && value !== undefined;
397
+ }