@stashfin/grpc 1.2.441 → 1.2.442
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",
|
|
@@ -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 ?? "";
|