@stashfin/grpc 1.2.661 → 1.2.663
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/ts/eqxcustomer.d.ts +28 -0
- package/ts/eqxcustomer.js +20 -0
- package/ts/eqxcustomers/authenticateuser.d.ts +54 -0
- package/ts/eqxcustomers/authenticateuser.js +287 -0
- package/ts/eqxcustomers/getstashscorecustomerprofile.d.ts +48 -0
- package/ts/eqxcustomers/getstashscorecustomerprofile.js +318 -0
package/package.json
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { authenticatUserRequest, authenticatUserResponse } from "./eqxcustomers/authenticateuser";
|
|
2
3
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/getcustomerbyid";
|
|
3
4
|
import { getCustomerByMobileRequest, getCustomerByMobileResponse } from "./eqxcustomers/getcustomerbymobile";
|
|
4
5
|
import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
|
|
5
6
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
|
|
6
7
|
import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
|
|
8
|
+
import { getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse } from "./eqxcustomers/getstashscorecustomerprofile";
|
|
7
9
|
import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
|
|
8
10
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
9
11
|
import { updateCustomerRequest, updateCustomerResponse } from "./eqxcustomers/updatecustomer";
|
|
@@ -122,6 +124,24 @@ export declare const eqxcustomersService: {
|
|
|
122
124
|
readonly responseSerialize: (value: updateCustomerResponse) => Buffer;
|
|
123
125
|
readonly responseDeserialize: (value: Buffer) => updateCustomerResponse;
|
|
124
126
|
};
|
|
127
|
+
readonly getStashScoreProfileById: {
|
|
128
|
+
readonly path: "/service.eqxcustomers/getStashScoreProfileById";
|
|
129
|
+
readonly requestStream: false;
|
|
130
|
+
readonly responseStream: false;
|
|
131
|
+
readonly requestSerialize: (value: getStashScoreProfileByIdRequest) => Buffer;
|
|
132
|
+
readonly requestDeserialize: (value: Buffer) => getStashScoreProfileByIdRequest;
|
|
133
|
+
readonly responseSerialize: (value: getStashScoreProfileByIdResponse) => Buffer;
|
|
134
|
+
readonly responseDeserialize: (value: Buffer) => getStashScoreProfileByIdResponse;
|
|
135
|
+
};
|
|
136
|
+
readonly authenticateUser: {
|
|
137
|
+
readonly path: "/service.eqxcustomers/authenticateUser";
|
|
138
|
+
readonly requestStream: false;
|
|
139
|
+
readonly responseStream: false;
|
|
140
|
+
readonly requestSerialize: (value: authenticatUserRequest) => Buffer;
|
|
141
|
+
readonly requestDeserialize: (value: Buffer) => authenticatUserRequest;
|
|
142
|
+
readonly responseSerialize: (value: authenticatUserResponse) => Buffer;
|
|
143
|
+
readonly responseDeserialize: (value: Buffer) => authenticatUserResponse;
|
|
144
|
+
};
|
|
125
145
|
};
|
|
126
146
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
127
147
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -136,6 +156,8 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
136
156
|
getTokens: handleUnaryCall<getTokensRequest, getTokensResponse>;
|
|
137
157
|
getCustomerByMobile: handleUnaryCall<getCustomerByMobileRequest, getCustomerByMobileResponse>;
|
|
138
158
|
updateCustomer: handleUnaryCall<updateCustomerRequest, updateCustomerResponse>;
|
|
159
|
+
getStashScoreProfileById: handleUnaryCall<getStashScoreProfileByIdRequest, getStashScoreProfileByIdResponse>;
|
|
160
|
+
authenticateUser: handleUnaryCall<authenticatUserRequest, authenticatUserResponse>;
|
|
139
161
|
}
|
|
140
162
|
export interface eqxcustomersClient extends Client {
|
|
141
163
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -174,6 +196,12 @@ export interface eqxcustomersClient extends Client {
|
|
|
174
196
|
updateCustomer(request: updateCustomerRequest, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
175
197
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
176
198
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
199
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
200
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
201
|
+
getStashScoreProfileById(request: getStashScoreProfileByIdRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getStashScoreProfileByIdResponse) => void): ClientUnaryCall;
|
|
202
|
+
authenticateUser(request: authenticatUserRequest, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
203
|
+
authenticateUser(request: authenticatUserRequest, metadata: Metadata, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
204
|
+
authenticateUser(request: authenticatUserRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
177
205
|
}
|
|
178
206
|
export declare const eqxcustomersClient: {
|
|
179
207
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -8,11 +8,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.eqxcustomersClient = exports.eqxcustomersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const authenticateuser_1 = require("./eqxcustomers/authenticateuser");
|
|
11
12
|
const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
|
|
12
13
|
const getcustomerbymobile_1 = require("./eqxcustomers/getcustomerbymobile");
|
|
13
14
|
const getdashboard_1 = require("./eqxcustomers/getdashboard");
|
|
14
15
|
const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
|
|
15
16
|
const getnotifications_1 = require("./eqxcustomers/getnotifications");
|
|
17
|
+
const getstashscorecustomerprofile_1 = require("./eqxcustomers/getstashscorecustomerprofile");
|
|
16
18
|
const gettokens_1 = require("./eqxcustomers/gettokens");
|
|
17
19
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
18
20
|
const updatecustomer_1 = require("./eqxcustomers/updatecustomer");
|
|
@@ -130,5 +132,23 @@ exports.eqxcustomersService = {
|
|
|
130
132
|
responseSerialize: (value) => Buffer.from(updatecustomer_1.updateCustomerResponse.encode(value).finish()),
|
|
131
133
|
responseDeserialize: (value) => updatecustomer_1.updateCustomerResponse.decode(value),
|
|
132
134
|
},
|
|
135
|
+
getStashScoreProfileById: {
|
|
136
|
+
path: "/service.eqxcustomers/getStashScoreProfileById",
|
|
137
|
+
requestStream: false,
|
|
138
|
+
responseStream: false,
|
|
139
|
+
requestSerialize: (value) => Buffer.from(getstashscorecustomerprofile_1.getStashScoreProfileByIdRequest.encode(value).finish()),
|
|
140
|
+
requestDeserialize: (value) => getstashscorecustomerprofile_1.getStashScoreProfileByIdRequest.decode(value),
|
|
141
|
+
responseSerialize: (value) => Buffer.from(getstashscorecustomerprofile_1.getStashScoreProfileByIdResponse.encode(value).finish()),
|
|
142
|
+
responseDeserialize: (value) => getstashscorecustomerprofile_1.getStashScoreProfileByIdResponse.decode(value),
|
|
143
|
+
},
|
|
144
|
+
authenticateUser: {
|
|
145
|
+
path: "/service.eqxcustomers/authenticateUser",
|
|
146
|
+
requestStream: false,
|
|
147
|
+
responseStream: false,
|
|
148
|
+
requestSerialize: (value) => Buffer.from(authenticateuser_1.authenticatUserRequest.encode(value).finish()),
|
|
149
|
+
requestDeserialize: (value) => authenticateuser_1.authenticatUserRequest.decode(value),
|
|
150
|
+
responseSerialize: (value) => Buffer.from(authenticateuser_1.authenticatUserResponse.encode(value).finish()),
|
|
151
|
+
responseDeserialize: (value) => authenticateuser_1.authenticatUserResponse.decode(value),
|
|
152
|
+
},
|
|
133
153
|
};
|
|
134
154
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.authenticateuser";
|
|
3
|
+
export interface authenticatUserRequest {
|
|
4
|
+
auth_token?: string | undefined;
|
|
5
|
+
device_id?: string | undefined;
|
|
6
|
+
authorization?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface authenticateUserData {
|
|
9
|
+
customer_id: number;
|
|
10
|
+
first_name?: string | undefined;
|
|
11
|
+
last_name?: string | undefined;
|
|
12
|
+
email?: string | undefined;
|
|
13
|
+
mobile?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface authenticatUserResponse {
|
|
16
|
+
status: string;
|
|
17
|
+
message: string;
|
|
18
|
+
data?: authenticateUserData | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare const authenticatUserRequest: {
|
|
21
|
+
encode(message: authenticatUserRequest, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): authenticatUserRequest;
|
|
23
|
+
fromJSON(object: any): authenticatUserRequest;
|
|
24
|
+
toJSON(message: authenticatUserRequest): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<authenticatUserRequest>, I>>(base?: I): authenticatUserRequest;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<authenticatUserRequest>, I>>(object: I): authenticatUserRequest;
|
|
27
|
+
};
|
|
28
|
+
export declare const authenticateUserData: {
|
|
29
|
+
encode(message: authenticateUserData, writer?: _m0.Writer): _m0.Writer;
|
|
30
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): authenticateUserData;
|
|
31
|
+
fromJSON(object: any): authenticateUserData;
|
|
32
|
+
toJSON(message: authenticateUserData): unknown;
|
|
33
|
+
create<I extends Exact<DeepPartial<authenticateUserData>, I>>(base?: I): authenticateUserData;
|
|
34
|
+
fromPartial<I extends Exact<DeepPartial<authenticateUserData>, I>>(object: I): authenticateUserData;
|
|
35
|
+
};
|
|
36
|
+
export declare const authenticatUserResponse: {
|
|
37
|
+
encode(message: authenticatUserResponse, writer?: _m0.Writer): _m0.Writer;
|
|
38
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): authenticatUserResponse;
|
|
39
|
+
fromJSON(object: any): authenticatUserResponse;
|
|
40
|
+
toJSON(message: authenticatUserResponse): unknown;
|
|
41
|
+
create<I extends Exact<DeepPartial<authenticatUserResponse>, I>>(base?: I): authenticatUserResponse;
|
|
42
|
+
fromPartial<I extends Exact<DeepPartial<authenticatUserResponse>, I>>(object: I): authenticatUserResponse;
|
|
43
|
+
};
|
|
44
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
|
+
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 {} ? {
|
|
46
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
47
|
+
} : Partial<T>;
|
|
48
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
49
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
50
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
51
|
+
} & {
|
|
52
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v6.30.0
|
|
6
|
+
// source: eqxcustomers/authenticateuser.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.authenticatUserResponse = exports.authenticateUserData = exports.authenticatUserRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.authenticateuser";
|
|
15
|
+
function createBaseauthenticatUserRequest() {
|
|
16
|
+
return { auth_token: undefined, device_id: undefined, authorization: undefined };
|
|
17
|
+
}
|
|
18
|
+
exports.authenticatUserRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.auth_token !== undefined) {
|
|
21
|
+
writer.uint32(10).string(message.auth_token);
|
|
22
|
+
}
|
|
23
|
+
if (message.device_id !== undefined) {
|
|
24
|
+
writer.uint32(18).string(message.device_id);
|
|
25
|
+
}
|
|
26
|
+
if (message.authorization !== undefined) {
|
|
27
|
+
writer.uint32(26).string(message.authorization);
|
|
28
|
+
}
|
|
29
|
+
return writer;
|
|
30
|
+
},
|
|
31
|
+
decode(input, length) {
|
|
32
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
33
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
34
|
+
const message = createBaseauthenticatUserRequest();
|
|
35
|
+
while (reader.pos < end) {
|
|
36
|
+
const tag = reader.uint32();
|
|
37
|
+
switch (tag >>> 3) {
|
|
38
|
+
case 1:
|
|
39
|
+
if (tag !== 10) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
message.auth_token = reader.string();
|
|
43
|
+
continue;
|
|
44
|
+
case 2:
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.device_id = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
case 3:
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.authorization = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
reader.skipType(tag & 7);
|
|
61
|
+
}
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
fromJSON(object) {
|
|
65
|
+
return {
|
|
66
|
+
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : undefined,
|
|
67
|
+
device_id: isSet(object.device_id) ? globalThis.String(object.device_id) : undefined,
|
|
68
|
+
authorization: isSet(object.authorization) ? globalThis.String(object.authorization) : undefined,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
toJSON(message) {
|
|
72
|
+
const obj = {};
|
|
73
|
+
if (message.auth_token !== undefined) {
|
|
74
|
+
obj.auth_token = message.auth_token;
|
|
75
|
+
}
|
|
76
|
+
if (message.device_id !== undefined) {
|
|
77
|
+
obj.device_id = message.device_id;
|
|
78
|
+
}
|
|
79
|
+
if (message.authorization !== undefined) {
|
|
80
|
+
obj.authorization = message.authorization;
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.authenticatUserRequest.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseauthenticatUserRequest();
|
|
89
|
+
message.auth_token = object.auth_token ?? undefined;
|
|
90
|
+
message.device_id = object.device_id ?? undefined;
|
|
91
|
+
message.authorization = object.authorization ?? undefined;
|
|
92
|
+
return message;
|
|
93
|
+
},
|
|
94
|
+
};
|
|
95
|
+
function createBaseauthenticateUserData() {
|
|
96
|
+
return { customer_id: 0, first_name: undefined, last_name: undefined, email: undefined, mobile: undefined };
|
|
97
|
+
}
|
|
98
|
+
exports.authenticateUserData = {
|
|
99
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
100
|
+
if (message.customer_id !== 0) {
|
|
101
|
+
writer.uint32(8).int32(message.customer_id);
|
|
102
|
+
}
|
|
103
|
+
if (message.first_name !== undefined) {
|
|
104
|
+
writer.uint32(18).string(message.first_name);
|
|
105
|
+
}
|
|
106
|
+
if (message.last_name !== undefined) {
|
|
107
|
+
writer.uint32(26).string(message.last_name);
|
|
108
|
+
}
|
|
109
|
+
if (message.email !== undefined) {
|
|
110
|
+
writer.uint32(34).string(message.email);
|
|
111
|
+
}
|
|
112
|
+
if (message.mobile !== undefined) {
|
|
113
|
+
writer.uint32(42).string(message.mobile);
|
|
114
|
+
}
|
|
115
|
+
return writer;
|
|
116
|
+
},
|
|
117
|
+
decode(input, length) {
|
|
118
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
119
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
120
|
+
const message = createBaseauthenticateUserData();
|
|
121
|
+
while (reader.pos < end) {
|
|
122
|
+
const tag = reader.uint32();
|
|
123
|
+
switch (tag >>> 3) {
|
|
124
|
+
case 1:
|
|
125
|
+
if (tag !== 8) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.customer_id = reader.int32();
|
|
129
|
+
continue;
|
|
130
|
+
case 2:
|
|
131
|
+
if (tag !== 18) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.first_name = reader.string();
|
|
135
|
+
continue;
|
|
136
|
+
case 3:
|
|
137
|
+
if (tag !== 26) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.last_name = reader.string();
|
|
141
|
+
continue;
|
|
142
|
+
case 4:
|
|
143
|
+
if (tag !== 34) {
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
message.email = reader.string();
|
|
147
|
+
continue;
|
|
148
|
+
case 5:
|
|
149
|
+
if (tag !== 42) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.mobile = reader.string();
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
reader.skipType(tag & 7);
|
|
159
|
+
}
|
|
160
|
+
return message;
|
|
161
|
+
},
|
|
162
|
+
fromJSON(object) {
|
|
163
|
+
return {
|
|
164
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
165
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : undefined,
|
|
166
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
|
|
167
|
+
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
168
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
|
|
169
|
+
};
|
|
170
|
+
},
|
|
171
|
+
toJSON(message) {
|
|
172
|
+
const obj = {};
|
|
173
|
+
if (message.customer_id !== 0) {
|
|
174
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
175
|
+
}
|
|
176
|
+
if (message.first_name !== undefined) {
|
|
177
|
+
obj.first_name = message.first_name;
|
|
178
|
+
}
|
|
179
|
+
if (message.last_name !== undefined) {
|
|
180
|
+
obj.last_name = message.last_name;
|
|
181
|
+
}
|
|
182
|
+
if (message.email !== undefined) {
|
|
183
|
+
obj.email = message.email;
|
|
184
|
+
}
|
|
185
|
+
if (message.mobile !== undefined) {
|
|
186
|
+
obj.mobile = message.mobile;
|
|
187
|
+
}
|
|
188
|
+
return obj;
|
|
189
|
+
},
|
|
190
|
+
create(base) {
|
|
191
|
+
return exports.authenticateUserData.fromPartial(base ?? {});
|
|
192
|
+
},
|
|
193
|
+
fromPartial(object) {
|
|
194
|
+
const message = createBaseauthenticateUserData();
|
|
195
|
+
message.customer_id = object.customer_id ?? 0;
|
|
196
|
+
message.first_name = object.first_name ?? undefined;
|
|
197
|
+
message.last_name = object.last_name ?? undefined;
|
|
198
|
+
message.email = object.email ?? undefined;
|
|
199
|
+
message.mobile = object.mobile ?? undefined;
|
|
200
|
+
return message;
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
function createBaseauthenticatUserResponse() {
|
|
204
|
+
return { status: "", message: "", data: undefined };
|
|
205
|
+
}
|
|
206
|
+
exports.authenticatUserResponse = {
|
|
207
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
208
|
+
if (message.status !== "") {
|
|
209
|
+
writer.uint32(10).string(message.status);
|
|
210
|
+
}
|
|
211
|
+
if (message.message !== "") {
|
|
212
|
+
writer.uint32(18).string(message.message);
|
|
213
|
+
}
|
|
214
|
+
if (message.data !== undefined) {
|
|
215
|
+
exports.authenticateUserData.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
216
|
+
}
|
|
217
|
+
return writer;
|
|
218
|
+
},
|
|
219
|
+
decode(input, length) {
|
|
220
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
221
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
222
|
+
const message = createBaseauthenticatUserResponse();
|
|
223
|
+
while (reader.pos < end) {
|
|
224
|
+
const tag = reader.uint32();
|
|
225
|
+
switch (tag >>> 3) {
|
|
226
|
+
case 1:
|
|
227
|
+
if (tag !== 10) {
|
|
228
|
+
break;
|
|
229
|
+
}
|
|
230
|
+
message.status = reader.string();
|
|
231
|
+
continue;
|
|
232
|
+
case 2:
|
|
233
|
+
if (tag !== 18) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.message = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
case 3:
|
|
239
|
+
if (tag !== 26) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
message.data = exports.authenticateUserData.decode(reader, reader.uint32());
|
|
243
|
+
continue;
|
|
244
|
+
}
|
|
245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
reader.skipType(tag & 7);
|
|
249
|
+
}
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
fromJSON(object) {
|
|
253
|
+
return {
|
|
254
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
255
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
256
|
+
data: isSet(object.data) ? exports.authenticateUserData.fromJSON(object.data) : undefined,
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
toJSON(message) {
|
|
260
|
+
const obj = {};
|
|
261
|
+
if (message.status !== "") {
|
|
262
|
+
obj.status = message.status;
|
|
263
|
+
}
|
|
264
|
+
if (message.message !== "") {
|
|
265
|
+
obj.message = message.message;
|
|
266
|
+
}
|
|
267
|
+
if (message.data !== undefined) {
|
|
268
|
+
obj.data = exports.authenticateUserData.toJSON(message.data);
|
|
269
|
+
}
|
|
270
|
+
return obj;
|
|
271
|
+
},
|
|
272
|
+
create(base) {
|
|
273
|
+
return exports.authenticatUserResponse.fromPartial(base ?? {});
|
|
274
|
+
},
|
|
275
|
+
fromPartial(object) {
|
|
276
|
+
const message = createBaseauthenticatUserResponse();
|
|
277
|
+
message.status = object.status ?? "";
|
|
278
|
+
message.message = object.message ?? "";
|
|
279
|
+
message.data = (object.data !== undefined && object.data !== null)
|
|
280
|
+
? exports.authenticateUserData.fromPartial(object.data)
|
|
281
|
+
: undefined;
|
|
282
|
+
return message;
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
function isSet(value) {
|
|
286
|
+
return value !== null && value !== undefined;
|
|
287
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.getstashscorecustomerprofile";
|
|
3
|
+
export interface getStashScoreProfileByIdRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getStashScoreProfileByIdResponse {
|
|
6
|
+
id: number;
|
|
7
|
+
mobile: string;
|
|
8
|
+
status: string;
|
|
9
|
+
biometric_state: number;
|
|
10
|
+
vpa?: string | undefined;
|
|
11
|
+
first_name?: string | undefined;
|
|
12
|
+
last_name?: string | undefined;
|
|
13
|
+
email?: string | undefined;
|
|
14
|
+
token?: string | undefined;
|
|
15
|
+
refferal_code?: string | undefined;
|
|
16
|
+
pan_number?: string | undefined;
|
|
17
|
+
pin_code?: string | undefined;
|
|
18
|
+
dob?: string | undefined;
|
|
19
|
+
isDashboardEnabled?: boolean | undefined;
|
|
20
|
+
isChrEnabled?: boolean | undefined;
|
|
21
|
+
}
|
|
22
|
+
export declare const getStashScoreProfileByIdRequest: {
|
|
23
|
+
encode(_: getStashScoreProfileByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getStashScoreProfileByIdRequest;
|
|
25
|
+
fromJSON(_: any): getStashScoreProfileByIdRequest;
|
|
26
|
+
toJSON(_: getStashScoreProfileByIdRequest): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<getStashScoreProfileByIdRequest>, I>>(base?: I): getStashScoreProfileByIdRequest;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<getStashScoreProfileByIdRequest>, I>>(_: I): getStashScoreProfileByIdRequest;
|
|
29
|
+
};
|
|
30
|
+
export declare const getStashScoreProfileByIdResponse: {
|
|
31
|
+
encode(message: getStashScoreProfileByIdResponse, writer?: _m0.Writer): _m0.Writer;
|
|
32
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getStashScoreProfileByIdResponse;
|
|
33
|
+
fromJSON(object: any): getStashScoreProfileByIdResponse;
|
|
34
|
+
toJSON(message: getStashScoreProfileByIdResponse): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<getStashScoreProfileByIdResponse>, I>>(base?: I): getStashScoreProfileByIdResponse;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<getStashScoreProfileByIdResponse>, I>>(object: I): getStashScoreProfileByIdResponse;
|
|
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,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v6.30.0
|
|
6
|
+
// source: eqxcustomers/getstashscorecustomerprofile.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.getStashScoreProfileByIdResponse = exports.getStashScoreProfileByIdRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.getstashscorecustomerprofile";
|
|
15
|
+
function createBasegetStashScoreProfileByIdRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getStashScoreProfileByIdRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetStashScoreProfileByIdRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getStashScoreProfileByIdRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetStashScoreProfileByIdRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetStashScoreProfileByIdResponse() {
|
|
53
|
+
return {
|
|
54
|
+
id: 0,
|
|
55
|
+
mobile: "",
|
|
56
|
+
status: "",
|
|
57
|
+
biometric_state: 0,
|
|
58
|
+
vpa: undefined,
|
|
59
|
+
first_name: undefined,
|
|
60
|
+
last_name: undefined,
|
|
61
|
+
email: undefined,
|
|
62
|
+
token: undefined,
|
|
63
|
+
refferal_code: undefined,
|
|
64
|
+
pan_number: undefined,
|
|
65
|
+
pin_code: undefined,
|
|
66
|
+
dob: undefined,
|
|
67
|
+
isDashboardEnabled: undefined,
|
|
68
|
+
isChrEnabled: undefined,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
exports.getStashScoreProfileByIdResponse = {
|
|
72
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
73
|
+
if (message.id !== 0) {
|
|
74
|
+
writer.uint32(8).int32(message.id);
|
|
75
|
+
}
|
|
76
|
+
if (message.mobile !== "") {
|
|
77
|
+
writer.uint32(18).string(message.mobile);
|
|
78
|
+
}
|
|
79
|
+
if (message.status !== "") {
|
|
80
|
+
writer.uint32(26).string(message.status);
|
|
81
|
+
}
|
|
82
|
+
if (message.biometric_state !== 0) {
|
|
83
|
+
writer.uint32(32).int32(message.biometric_state);
|
|
84
|
+
}
|
|
85
|
+
if (message.vpa !== undefined) {
|
|
86
|
+
writer.uint32(42).string(message.vpa);
|
|
87
|
+
}
|
|
88
|
+
if (message.first_name !== undefined) {
|
|
89
|
+
writer.uint32(50).string(message.first_name);
|
|
90
|
+
}
|
|
91
|
+
if (message.last_name !== undefined) {
|
|
92
|
+
writer.uint32(58).string(message.last_name);
|
|
93
|
+
}
|
|
94
|
+
if (message.email !== undefined) {
|
|
95
|
+
writer.uint32(66).string(message.email);
|
|
96
|
+
}
|
|
97
|
+
if (message.token !== undefined) {
|
|
98
|
+
writer.uint32(74).string(message.token);
|
|
99
|
+
}
|
|
100
|
+
if (message.refferal_code !== undefined) {
|
|
101
|
+
writer.uint32(82).string(message.refferal_code);
|
|
102
|
+
}
|
|
103
|
+
if (message.pan_number !== undefined) {
|
|
104
|
+
writer.uint32(90).string(message.pan_number);
|
|
105
|
+
}
|
|
106
|
+
if (message.pin_code !== undefined) {
|
|
107
|
+
writer.uint32(98).string(message.pin_code);
|
|
108
|
+
}
|
|
109
|
+
if (message.dob !== undefined) {
|
|
110
|
+
writer.uint32(106).string(message.dob);
|
|
111
|
+
}
|
|
112
|
+
if (message.isDashboardEnabled !== undefined) {
|
|
113
|
+
writer.uint32(112).bool(message.isDashboardEnabled);
|
|
114
|
+
}
|
|
115
|
+
if (message.isChrEnabled !== undefined) {
|
|
116
|
+
writer.uint32(120).bool(message.isChrEnabled);
|
|
117
|
+
}
|
|
118
|
+
return writer;
|
|
119
|
+
},
|
|
120
|
+
decode(input, length) {
|
|
121
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
122
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
123
|
+
const message = createBasegetStashScoreProfileByIdResponse();
|
|
124
|
+
while (reader.pos < end) {
|
|
125
|
+
const tag = reader.uint32();
|
|
126
|
+
switch (tag >>> 3) {
|
|
127
|
+
case 1:
|
|
128
|
+
if (tag !== 8) {
|
|
129
|
+
break;
|
|
130
|
+
}
|
|
131
|
+
message.id = reader.int32();
|
|
132
|
+
continue;
|
|
133
|
+
case 2:
|
|
134
|
+
if (tag !== 18) {
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
message.mobile = reader.string();
|
|
138
|
+
continue;
|
|
139
|
+
case 3:
|
|
140
|
+
if (tag !== 26) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
message.status = reader.string();
|
|
144
|
+
continue;
|
|
145
|
+
case 4:
|
|
146
|
+
if (tag !== 32) {
|
|
147
|
+
break;
|
|
148
|
+
}
|
|
149
|
+
message.biometric_state = reader.int32();
|
|
150
|
+
continue;
|
|
151
|
+
case 5:
|
|
152
|
+
if (tag !== 42) {
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
message.vpa = reader.string();
|
|
156
|
+
continue;
|
|
157
|
+
case 6:
|
|
158
|
+
if (tag !== 50) {
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
message.first_name = reader.string();
|
|
162
|
+
continue;
|
|
163
|
+
case 7:
|
|
164
|
+
if (tag !== 58) {
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
message.last_name = reader.string();
|
|
168
|
+
continue;
|
|
169
|
+
case 8:
|
|
170
|
+
if (tag !== 66) {
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
message.email = reader.string();
|
|
174
|
+
continue;
|
|
175
|
+
case 9:
|
|
176
|
+
if (tag !== 74) {
|
|
177
|
+
break;
|
|
178
|
+
}
|
|
179
|
+
message.token = reader.string();
|
|
180
|
+
continue;
|
|
181
|
+
case 10:
|
|
182
|
+
if (tag !== 82) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.refferal_code = reader.string();
|
|
186
|
+
continue;
|
|
187
|
+
case 11:
|
|
188
|
+
if (tag !== 90) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
message.pan_number = reader.string();
|
|
192
|
+
continue;
|
|
193
|
+
case 12:
|
|
194
|
+
if (tag !== 98) {
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
message.pin_code = reader.string();
|
|
198
|
+
continue;
|
|
199
|
+
case 13:
|
|
200
|
+
if (tag !== 106) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.dob = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
case 14:
|
|
206
|
+
if (tag !== 112) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
message.isDashboardEnabled = reader.bool();
|
|
210
|
+
continue;
|
|
211
|
+
case 15:
|
|
212
|
+
if (tag !== 120) {
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
message.isChrEnabled = reader.bool();
|
|
216
|
+
continue;
|
|
217
|
+
}
|
|
218
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
reader.skipType(tag & 7);
|
|
222
|
+
}
|
|
223
|
+
return message;
|
|
224
|
+
},
|
|
225
|
+
fromJSON(object) {
|
|
226
|
+
return {
|
|
227
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
228
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
229
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
230
|
+
biometric_state: isSet(object.biometric_state) ? globalThis.Number(object.biometric_state) : 0,
|
|
231
|
+
vpa: isSet(object.vpa) ? globalThis.String(object.vpa) : undefined,
|
|
232
|
+
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : undefined,
|
|
233
|
+
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
|
|
234
|
+
email: isSet(object.email) ? globalThis.String(object.email) : undefined,
|
|
235
|
+
token: isSet(object.token) ? globalThis.String(object.token) : undefined,
|
|
236
|
+
refferal_code: isSet(object.refferal_code) ? globalThis.String(object.refferal_code) : undefined,
|
|
237
|
+
pan_number: isSet(object.pan_number) ? globalThis.String(object.pan_number) : undefined,
|
|
238
|
+
pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : undefined,
|
|
239
|
+
dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
|
|
240
|
+
isDashboardEnabled: isSet(object.isDashboardEnabled) ? globalThis.Boolean(object.isDashboardEnabled) : undefined,
|
|
241
|
+
isChrEnabled: isSet(object.isChrEnabled) ? globalThis.Boolean(object.isChrEnabled) : undefined,
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
toJSON(message) {
|
|
245
|
+
const obj = {};
|
|
246
|
+
if (message.id !== 0) {
|
|
247
|
+
obj.id = Math.round(message.id);
|
|
248
|
+
}
|
|
249
|
+
if (message.mobile !== "") {
|
|
250
|
+
obj.mobile = message.mobile;
|
|
251
|
+
}
|
|
252
|
+
if (message.status !== "") {
|
|
253
|
+
obj.status = message.status;
|
|
254
|
+
}
|
|
255
|
+
if (message.biometric_state !== 0) {
|
|
256
|
+
obj.biometric_state = Math.round(message.biometric_state);
|
|
257
|
+
}
|
|
258
|
+
if (message.vpa !== undefined) {
|
|
259
|
+
obj.vpa = message.vpa;
|
|
260
|
+
}
|
|
261
|
+
if (message.first_name !== undefined) {
|
|
262
|
+
obj.first_name = message.first_name;
|
|
263
|
+
}
|
|
264
|
+
if (message.last_name !== undefined) {
|
|
265
|
+
obj.last_name = message.last_name;
|
|
266
|
+
}
|
|
267
|
+
if (message.email !== undefined) {
|
|
268
|
+
obj.email = message.email;
|
|
269
|
+
}
|
|
270
|
+
if (message.token !== undefined) {
|
|
271
|
+
obj.token = message.token;
|
|
272
|
+
}
|
|
273
|
+
if (message.refferal_code !== undefined) {
|
|
274
|
+
obj.refferal_code = message.refferal_code;
|
|
275
|
+
}
|
|
276
|
+
if (message.pan_number !== undefined) {
|
|
277
|
+
obj.pan_number = message.pan_number;
|
|
278
|
+
}
|
|
279
|
+
if (message.pin_code !== undefined) {
|
|
280
|
+
obj.pin_code = message.pin_code;
|
|
281
|
+
}
|
|
282
|
+
if (message.dob !== undefined) {
|
|
283
|
+
obj.dob = message.dob;
|
|
284
|
+
}
|
|
285
|
+
if (message.isDashboardEnabled !== undefined) {
|
|
286
|
+
obj.isDashboardEnabled = message.isDashboardEnabled;
|
|
287
|
+
}
|
|
288
|
+
if (message.isChrEnabled !== undefined) {
|
|
289
|
+
obj.isChrEnabled = message.isChrEnabled;
|
|
290
|
+
}
|
|
291
|
+
return obj;
|
|
292
|
+
},
|
|
293
|
+
create(base) {
|
|
294
|
+
return exports.getStashScoreProfileByIdResponse.fromPartial(base ?? {});
|
|
295
|
+
},
|
|
296
|
+
fromPartial(object) {
|
|
297
|
+
const message = createBasegetStashScoreProfileByIdResponse();
|
|
298
|
+
message.id = object.id ?? 0;
|
|
299
|
+
message.mobile = object.mobile ?? "";
|
|
300
|
+
message.status = object.status ?? "";
|
|
301
|
+
message.biometric_state = object.biometric_state ?? 0;
|
|
302
|
+
message.vpa = object.vpa ?? undefined;
|
|
303
|
+
message.first_name = object.first_name ?? undefined;
|
|
304
|
+
message.last_name = object.last_name ?? undefined;
|
|
305
|
+
message.email = object.email ?? undefined;
|
|
306
|
+
message.token = object.token ?? undefined;
|
|
307
|
+
message.refferal_code = object.refferal_code ?? undefined;
|
|
308
|
+
message.pan_number = object.pan_number ?? undefined;
|
|
309
|
+
message.pin_code = object.pin_code ?? undefined;
|
|
310
|
+
message.dob = object.dob ?? undefined;
|
|
311
|
+
message.isDashboardEnabled = object.isDashboardEnabled ?? undefined;
|
|
312
|
+
message.isChrEnabled = object.isChrEnabled ?? undefined;
|
|
313
|
+
return message;
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
function isSet(value) {
|
|
317
|
+
return value !== null && value !== undefined;
|
|
318
|
+
}
|