@stashfin/grpc 1.2.661 → 1.2.662
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
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";
|
|
@@ -122,6 +123,15 @@ export declare const eqxcustomersService: {
|
|
|
122
123
|
readonly responseSerialize: (value: updateCustomerResponse) => Buffer;
|
|
123
124
|
readonly responseDeserialize: (value: Buffer) => updateCustomerResponse;
|
|
124
125
|
};
|
|
126
|
+
readonly authenticateUser: {
|
|
127
|
+
readonly path: "/service.eqxcustomers/authenticateUser";
|
|
128
|
+
readonly requestStream: false;
|
|
129
|
+
readonly responseStream: false;
|
|
130
|
+
readonly requestSerialize: (value: authenticatUserRequest) => Buffer;
|
|
131
|
+
readonly requestDeserialize: (value: Buffer) => authenticatUserRequest;
|
|
132
|
+
readonly responseSerialize: (value: authenticatUserResponse) => Buffer;
|
|
133
|
+
readonly responseDeserialize: (value: Buffer) => authenticatUserResponse;
|
|
134
|
+
};
|
|
125
135
|
};
|
|
126
136
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
127
137
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -136,6 +146,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
136
146
|
getTokens: handleUnaryCall<getTokensRequest, getTokensResponse>;
|
|
137
147
|
getCustomerByMobile: handleUnaryCall<getCustomerByMobileRequest, getCustomerByMobileResponse>;
|
|
138
148
|
updateCustomer: handleUnaryCall<updateCustomerRequest, updateCustomerResponse>;
|
|
149
|
+
authenticateUser: handleUnaryCall<authenticatUserRequest, authenticatUserResponse>;
|
|
139
150
|
}
|
|
140
151
|
export interface eqxcustomersClient extends Client {
|
|
141
152
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -174,6 +185,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
174
185
|
updateCustomer(request: updateCustomerRequest, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
175
186
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
176
187
|
updateCustomer(request: updateCustomerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCustomerResponse) => void): ClientUnaryCall;
|
|
188
|
+
authenticateUser(request: authenticatUserRequest, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
189
|
+
authenticateUser(request: authenticatUserRequest, metadata: Metadata, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
190
|
+
authenticateUser(request: authenticatUserRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: authenticatUserResponse) => void): ClientUnaryCall;
|
|
177
191
|
}
|
|
178
192
|
export declare const eqxcustomersClient: {
|
|
179
193
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -8,6 +8,7 @@ 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");
|
|
@@ -130,5 +131,14 @@ exports.eqxcustomersService = {
|
|
|
130
131
|
responseSerialize: (value) => Buffer.from(updatecustomer_1.updateCustomerResponse.encode(value).finish()),
|
|
131
132
|
responseDeserialize: (value) => updatecustomer_1.updateCustomerResponse.decode(value),
|
|
132
133
|
},
|
|
134
|
+
authenticateUser: {
|
|
135
|
+
path: "/service.eqxcustomers/authenticateUser",
|
|
136
|
+
requestStream: false,
|
|
137
|
+
responseStream: false,
|
|
138
|
+
requestSerialize: (value) => Buffer.from(authenticateuser_1.authenticatUserRequest.encode(value).finish()),
|
|
139
|
+
requestDeserialize: (value) => authenticateuser_1.authenticatUserRequest.decode(value),
|
|
140
|
+
responseSerialize: (value) => Buffer.from(authenticateuser_1.authenticatUserResponse.encode(value).finish()),
|
|
141
|
+
responseDeserialize: (value) => authenticateuser_1.authenticatUserResponse.decode(value),
|
|
142
|
+
},
|
|
133
143
|
};
|
|
134
144
|
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
|
+
}
|