@stashfin/grpc 1.2.441 → 1.2.443
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
|
@@ -2,7 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
|
|
|
2
2
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/getcustomerbyid";
|
|
3
3
|
import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
|
|
4
4
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
|
|
5
|
-
import { sendOtpRequest,
|
|
5
|
+
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
6
6
|
import { verifyOtpReqeust, verifyOtpResponse } from "./eqxcustomers/verifyotp";
|
|
7
7
|
export declare const protobufPackage = "service";
|
|
8
8
|
export type eqxcustomersService = typeof eqxcustomersService;
|
|
@@ -13,8 +13,8 @@ export declare const eqxcustomersService: {
|
|
|
13
13
|
readonly responseStream: false;
|
|
14
14
|
readonly requestSerialize: (value: sendOtpRequest) => Buffer;
|
|
15
15
|
readonly requestDeserialize: (value: Buffer) => sendOtpRequest;
|
|
16
|
-
readonly responseSerialize: (value:
|
|
17
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
16
|
+
readonly responseSerialize: (value: sendOtpResponse) => Buffer;
|
|
17
|
+
readonly responseDeserialize: (value: Buffer) => sendOtpResponse;
|
|
18
18
|
};
|
|
19
19
|
readonly verifyOtp: {
|
|
20
20
|
readonly path: "/service.eqxcustomers/verifyOtp";
|
|
@@ -54,16 +54,16 @@ export declare const eqxcustomersService: {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
57
|
-
sendOtp: handleUnaryCall<sendOtpRequest,
|
|
57
|
+
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
58
58
|
verifyOtp: handleUnaryCall<verifyOtpReqeust, verifyOtpResponse>;
|
|
59
59
|
getUserById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
|
|
60
60
|
getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
|
|
61
61
|
getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
|
|
62
62
|
}
|
|
63
63
|
export interface eqxcustomersClient extends Client {
|
|
64
|
-
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response:
|
|
65
|
-
sendOtp(request: sendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response:
|
|
66
|
-
sendOtp(request: sendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response:
|
|
64
|
+
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
65
|
+
sendOtp(request: sendOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
66
|
+
sendOtp(request: sendOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
67
67
|
verifyOtp(request: verifyOtpReqeust, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
|
|
68
68
|
verifyOtp(request: verifyOtpReqeust, metadata: Metadata, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
|
|
69
69
|
verifyOtp(request: verifyOtpReqeust, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyOtpResponse) => void): ClientUnaryCall;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -21,8 +21,8 @@ exports.eqxcustomersService = {
|
|
|
21
21
|
responseStream: false,
|
|
22
22
|
requestSerialize: (value) => Buffer.from(sendotp_1.sendOtpRequest.encode(value).finish()),
|
|
23
23
|
requestDeserialize: (value) => sendotp_1.sendOtpRequest.decode(value),
|
|
24
|
-
responseSerialize: (value) => Buffer.from(sendotp_1.
|
|
25
|
-
responseDeserialize: (value) => sendotp_1.
|
|
24
|
+
responseSerialize: (value) => Buffer.from(sendotp_1.sendOtpResponse.encode(value).finish()),
|
|
25
|
+
responseDeserialize: (value) => sendotp_1.sendOtpResponse.decode(value),
|
|
26
26
|
},
|
|
27
27
|
verifyOtp: {
|
|
28
28
|
path: "/service.eqxcustomers/verifyOtp",
|
|
@@ -148,7 +148,6 @@ exports.getDashboardMainCardResponse = {
|
|
|
148
148
|
function createBaseMainCardData() {
|
|
149
149
|
return {
|
|
150
150
|
text: "",
|
|
151
|
-
amount_text: "",
|
|
152
151
|
sub_text: "",
|
|
153
152
|
action_button_text: "",
|
|
154
153
|
action: "",
|
|
@@ -166,38 +165,35 @@ exports.MainCardData = {
|
|
|
166
165
|
if (message.text !== "") {
|
|
167
166
|
writer.uint32(10).string(message.text);
|
|
168
167
|
}
|
|
169
|
-
if (message.amount_text !== "") {
|
|
170
|
-
writer.uint32(18).string(message.amount_text);
|
|
171
|
-
}
|
|
172
168
|
if (message.sub_text !== "") {
|
|
173
|
-
writer.uint32(
|
|
169
|
+
writer.uint32(18).string(message.sub_text);
|
|
174
170
|
}
|
|
175
171
|
if (message.action_button_text !== "") {
|
|
176
|
-
writer.uint32(
|
|
172
|
+
writer.uint32(26).string(message.action_button_text);
|
|
177
173
|
}
|
|
178
174
|
if (message.action !== "") {
|
|
179
|
-
writer.uint32(
|
|
175
|
+
writer.uint32(34).string(message.action);
|
|
180
176
|
}
|
|
181
177
|
if (message.action_type !== "") {
|
|
182
|
-
writer.uint32(
|
|
178
|
+
writer.uint32(42).string(message.action_type);
|
|
183
179
|
}
|
|
184
180
|
if (message.comment !== "") {
|
|
185
|
-
writer.uint32(
|
|
181
|
+
writer.uint32(50).string(message.comment);
|
|
186
182
|
}
|
|
187
183
|
if (message.landing_page !== "") {
|
|
188
|
-
writer.uint32(
|
|
184
|
+
writer.uint32(58).string(message.landing_page);
|
|
189
185
|
}
|
|
190
186
|
if (message.timer !== "") {
|
|
191
|
-
writer.uint32(
|
|
187
|
+
writer.uint32(66).string(message.timer);
|
|
192
188
|
}
|
|
193
189
|
if (message.image !== "") {
|
|
194
|
-
writer.uint32(
|
|
190
|
+
writer.uint32(74).string(message.image);
|
|
195
191
|
}
|
|
196
192
|
if (message.show_button !== false) {
|
|
197
|
-
writer.uint32(
|
|
193
|
+
writer.uint32(80).bool(message.show_button);
|
|
198
194
|
}
|
|
199
195
|
if (message.static_text !== "") {
|
|
200
|
-
writer.uint32(
|
|
196
|
+
writer.uint32(90).string(message.static_text);
|
|
201
197
|
}
|
|
202
198
|
return writer;
|
|
203
199
|
},
|
|
@@ -218,64 +214,58 @@ exports.MainCardData = {
|
|
|
218
214
|
if (tag !== 18) {
|
|
219
215
|
break;
|
|
220
216
|
}
|
|
221
|
-
message.
|
|
217
|
+
message.sub_text = reader.string();
|
|
222
218
|
continue;
|
|
223
219
|
case 3:
|
|
224
220
|
if (tag !== 26) {
|
|
225
221
|
break;
|
|
226
222
|
}
|
|
227
|
-
message.
|
|
223
|
+
message.action_button_text = reader.string();
|
|
228
224
|
continue;
|
|
229
225
|
case 4:
|
|
230
226
|
if (tag !== 34) {
|
|
231
227
|
break;
|
|
232
228
|
}
|
|
233
|
-
message.
|
|
229
|
+
message.action = reader.string();
|
|
234
230
|
continue;
|
|
235
231
|
case 5:
|
|
236
232
|
if (tag !== 42) {
|
|
237
233
|
break;
|
|
238
234
|
}
|
|
239
|
-
message.
|
|
235
|
+
message.action_type = reader.string();
|
|
240
236
|
continue;
|
|
241
237
|
case 6:
|
|
242
238
|
if (tag !== 50) {
|
|
243
239
|
break;
|
|
244
240
|
}
|
|
245
|
-
message.
|
|
241
|
+
message.comment = reader.string();
|
|
246
242
|
continue;
|
|
247
243
|
case 7:
|
|
248
244
|
if (tag !== 58) {
|
|
249
245
|
break;
|
|
250
246
|
}
|
|
251
|
-
message.
|
|
247
|
+
message.landing_page = reader.string();
|
|
252
248
|
continue;
|
|
253
249
|
case 8:
|
|
254
250
|
if (tag !== 66) {
|
|
255
251
|
break;
|
|
256
252
|
}
|
|
257
|
-
message.
|
|
253
|
+
message.timer = reader.string();
|
|
258
254
|
continue;
|
|
259
255
|
case 9:
|
|
260
256
|
if (tag !== 74) {
|
|
261
257
|
break;
|
|
262
258
|
}
|
|
263
|
-
message.timer = reader.string();
|
|
264
|
-
continue;
|
|
265
|
-
case 10:
|
|
266
|
-
if (tag !== 82) {
|
|
267
|
-
break;
|
|
268
|
-
}
|
|
269
259
|
message.image = reader.string();
|
|
270
260
|
continue;
|
|
271
|
-
case
|
|
272
|
-
if (tag !==
|
|
261
|
+
case 10:
|
|
262
|
+
if (tag !== 80) {
|
|
273
263
|
break;
|
|
274
264
|
}
|
|
275
265
|
message.show_button = reader.bool();
|
|
276
266
|
continue;
|
|
277
|
-
case
|
|
278
|
-
if (tag !==
|
|
267
|
+
case 11:
|
|
268
|
+
if (tag !== 90) {
|
|
279
269
|
break;
|
|
280
270
|
}
|
|
281
271
|
message.static_text = reader.string();
|
|
@@ -291,7 +281,6 @@ exports.MainCardData = {
|
|
|
291
281
|
fromJSON(object) {
|
|
292
282
|
return {
|
|
293
283
|
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
294
|
-
amount_text: isSet(object.amount_text) ? globalThis.String(object.amount_text) : "",
|
|
295
284
|
sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
|
|
296
285
|
action_button_text: isSet(object.action_button_text) ? globalThis.String(object.action_button_text) : "",
|
|
297
286
|
action: isSet(object.action) ? globalThis.String(object.action) : "",
|
|
@@ -309,9 +298,6 @@ exports.MainCardData = {
|
|
|
309
298
|
if (message.text !== "") {
|
|
310
299
|
obj.text = message.text;
|
|
311
300
|
}
|
|
312
|
-
if (message.amount_text !== "") {
|
|
313
|
-
obj.amount_text = message.amount_text;
|
|
314
|
-
}
|
|
315
301
|
if (message.sub_text !== "") {
|
|
316
302
|
obj.sub_text = message.sub_text;
|
|
317
303
|
}
|
|
@@ -350,7 +336,6 @@ exports.MainCardData = {
|
|
|
350
336
|
fromPartial(object) {
|
|
351
337
|
const message = createBaseMainCardData();
|
|
352
338
|
message.text = object.text ?? "";
|
|
353
|
-
message.amount_text = object.amount_text ?? "";
|
|
354
339
|
message.sub_text = object.sub_text ?? "";
|
|
355
340
|
message.action_button_text = object.action_button_text ?? "";
|
|
356
341
|
message.action = object.action ?? "";
|
|
@@ -4,7 +4,7 @@ export interface sendOtpRequest {
|
|
|
4
4
|
mobile: string;
|
|
5
5
|
device_id: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface sendOtpResponse {
|
|
8
8
|
token: string;
|
|
9
9
|
is_registered: boolean;
|
|
10
10
|
message: string;
|
|
@@ -17,13 +17,13 @@ export declare const sendOtpRequest: {
|
|
|
17
17
|
create<I extends Exact<DeepPartial<sendOtpRequest>, I>>(base?: I): sendOtpRequest;
|
|
18
18
|
fromPartial<I extends Exact<DeepPartial<sendOtpRequest>, I>>(object: I): sendOtpRequest;
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
21
|
-
encode(message:
|
|
22
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
23
|
-
fromJSON(object: any):
|
|
24
|
-
toJSON(message:
|
|
25
|
-
create<I extends Exact<DeepPartial<
|
|
26
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
20
|
+
export declare const sendOtpResponse: {
|
|
21
|
+
encode(message: sendOtpResponse, writer?: _m0.Writer): _m0.Writer;
|
|
22
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): sendOtpResponse;
|
|
23
|
+
fromJSON(object: any): sendOtpResponse;
|
|
24
|
+
toJSON(message: sendOtpResponse): unknown;
|
|
25
|
+
create<I extends Exact<DeepPartial<sendOtpResponse>, I>>(base?: I): sendOtpResponse;
|
|
26
|
+
fromPartial<I extends Exact<DeepPartial<sendOtpResponse>, I>>(object: I): sendOtpResponse;
|
|
27
27
|
};
|
|
28
28
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
29
29
|
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 {} ? {
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.sendOtpResponse = exports.sendOtpRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "eqxcustomers.sendotp";
|
|
@@ -78,10 +78,10 @@ exports.sendOtpRequest = {
|
|
|
78
78
|
return message;
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function createBasesendOtpResponse() {
|
|
82
82
|
return { token: "", is_registered: false, message: "" };
|
|
83
83
|
}
|
|
84
|
-
exports.
|
|
84
|
+
exports.sendOtpResponse = {
|
|
85
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
86
|
if (message.token !== "") {
|
|
87
87
|
writer.uint32(10).string(message.token);
|
|
@@ -97,7 +97,7 @@ exports.sendOtpRespone = {
|
|
|
97
97
|
decode(input, length) {
|
|
98
98
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
99
99
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
100
|
-
const message =
|
|
100
|
+
const message = createBasesendOtpResponse();
|
|
101
101
|
while (reader.pos < end) {
|
|
102
102
|
const tag = reader.uint32();
|
|
103
103
|
switch (tag >>> 3) {
|
|
@@ -148,10 +148,10 @@ exports.sendOtpRespone = {
|
|
|
148
148
|
return obj;
|
|
149
149
|
},
|
|
150
150
|
create(base) {
|
|
151
|
-
return exports.
|
|
151
|
+
return exports.sendOtpResponse.fromPartial(base ?? {});
|
|
152
152
|
},
|
|
153
153
|
fromPartial(object) {
|
|
154
|
-
const message =
|
|
154
|
+
const message = createBasesendOtpResponse();
|
|
155
155
|
message.token = object.token ?? "";
|
|
156
156
|
message.is_registered = object.is_registered ?? false;
|
|
157
157
|
message.message = object.message ?? "";
|