@stashfin/grpc 1.2.624 → 1.2.625
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
|
@@ -3,7 +3,7 @@ import { getCustomerByIdRequest, getCustomerByIdResponse } from "./eqxcustomers/
|
|
|
3
3
|
import { getDashboardRequest, getDashboardResponse } from "./eqxcustomers/getdashboard";
|
|
4
4
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./eqxcustomers/getdashboardmaincard";
|
|
5
5
|
import { getNotificationsRequest, getNotificationsResponse } from "./eqxcustomers/getnotifications";
|
|
6
|
-
import { getTokensResponse } from "./eqxcustomers/gettokens";
|
|
6
|
+
import { getTokensRequest, getTokensResponse } from "./eqxcustomers/gettokens";
|
|
7
7
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
8
8
|
import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
|
|
9
9
|
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
@@ -97,8 +97,8 @@ export declare const eqxcustomersService: {
|
|
|
97
97
|
readonly path: "/service.eqxcustomers/getTokens";
|
|
98
98
|
readonly requestStream: false;
|
|
99
99
|
readonly responseStream: false;
|
|
100
|
-
readonly requestSerialize: (value:
|
|
101
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
100
|
+
readonly requestSerialize: (value: getTokensRequest) => Buffer;
|
|
101
|
+
readonly requestDeserialize: (value: Buffer) => getTokensRequest;
|
|
102
102
|
readonly responseSerialize: (value: getTokensResponse) => Buffer;
|
|
103
103
|
readonly responseDeserialize: (value: Buffer) => getTokensResponse;
|
|
104
104
|
};
|
|
@@ -113,7 +113,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
113
113
|
getnotifications: handleUnaryCall<getNotificationsRequest, getNotificationsResponse>;
|
|
114
114
|
updateNotifications: handleUnaryCall<updateNotificationRequest, updateNotificationResponse>;
|
|
115
115
|
verifyToken: handleUnaryCall<VerifyTokenRequest, VerifyTokenResponse>;
|
|
116
|
-
getTokens: handleUnaryCall<
|
|
116
|
+
getTokens: handleUnaryCall<getTokensRequest, getTokensResponse>;
|
|
117
117
|
}
|
|
118
118
|
export interface eqxcustomersClient extends Client {
|
|
119
119
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -143,9 +143,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
143
143
|
verifyToken(request: VerifyTokenRequest, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
144
144
|
verifyToken(request: VerifyTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
145
145
|
verifyToken(request: VerifyTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
146
|
-
getTokens(request:
|
|
147
|
-
getTokens(request:
|
|
148
|
-
getTokens(request:
|
|
146
|
+
getTokens(request: getTokensRequest, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
147
|
+
getTokens(request: getTokensRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
148
|
+
getTokens(request: getTokensRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
149
149
|
}
|
|
150
150
|
export declare const eqxcustomersClient: {
|
|
151
151
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -105,8 +105,8 @@ exports.eqxcustomersService = {
|
|
|
105
105
|
path: "/service.eqxcustomers/getTokens",
|
|
106
106
|
requestStream: false,
|
|
107
107
|
responseStream: false,
|
|
108
|
-
requestSerialize: (value) => Buffer.from(gettokens_1.
|
|
109
|
-
requestDeserialize: (value) => gettokens_1.
|
|
108
|
+
requestSerialize: (value) => Buffer.from(gettokens_1.getTokensRequest.encode(value).finish()),
|
|
109
|
+
requestDeserialize: (value) => gettokens_1.getTokensRequest.decode(value),
|
|
110
110
|
responseSerialize: (value) => Buffer.from(gettokens_1.getTokensResponse.encode(value).finish()),
|
|
111
111
|
responseDeserialize: (value) => gettokens_1.getTokensResponse.decode(value),
|
|
112
112
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "eqxcustomers.gettokens";
|
|
3
3
|
export interface getTokensRequest {
|
|
4
|
+
refresh_token: string;
|
|
4
5
|
}
|
|
5
6
|
export interface Data {
|
|
6
7
|
refresh_token: string;
|
|
@@ -11,12 +12,12 @@ export interface getTokensResponse {
|
|
|
11
12
|
message: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const getTokensRequest: {
|
|
14
|
-
encode(
|
|
15
|
+
encode(message: getTokensRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
16
|
decode(input: _m0.Reader | Uint8Array, length?: number): getTokensRequest;
|
|
16
|
-
fromJSON(
|
|
17
|
-
toJSON(
|
|
17
|
+
fromJSON(object: any): getTokensRequest;
|
|
18
|
+
toJSON(message: getTokensRequest): unknown;
|
|
18
19
|
create<I extends Exact<DeepPartial<getTokensRequest>, I>>(base?: I): getTokensRequest;
|
|
19
|
-
fromPartial<I extends Exact<DeepPartial<getTokensRequest>, I>>(
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<getTokensRequest>, I>>(object: I): getTokensRequest;
|
|
20
21
|
};
|
|
21
22
|
export declare const Data: {
|
|
22
23
|
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,10 +13,13 @@ exports.getTokensResponse = exports.Data = exports.getTokensRequest = exports.pr
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "eqxcustomers.gettokens";
|
|
15
15
|
function createBasegetTokensRequest() {
|
|
16
|
-
return {};
|
|
16
|
+
return { refresh_token: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.getTokensRequest = {
|
|
19
|
-
encode(
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.refresh_token !== "") {
|
|
21
|
+
writer.uint32(10).string(message.refresh_token);
|
|
22
|
+
}
|
|
20
23
|
return writer;
|
|
21
24
|
},
|
|
22
25
|
decode(input, length) {
|
|
@@ -26,6 +29,12 @@ exports.getTokensRequest = {
|
|
|
26
29
|
while (reader.pos < end) {
|
|
27
30
|
const tag = reader.uint32();
|
|
28
31
|
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.refresh_token = reader.string();
|
|
37
|
+
continue;
|
|
29
38
|
}
|
|
30
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
31
40
|
break;
|
|
@@ -34,18 +43,22 @@ exports.getTokensRequest = {
|
|
|
34
43
|
}
|
|
35
44
|
return message;
|
|
36
45
|
},
|
|
37
|
-
fromJSON(
|
|
38
|
-
return {};
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "" };
|
|
39
48
|
},
|
|
40
|
-
toJSON(
|
|
49
|
+
toJSON(message) {
|
|
41
50
|
const obj = {};
|
|
51
|
+
if (message.refresh_token !== "") {
|
|
52
|
+
obj.refresh_token = message.refresh_token;
|
|
53
|
+
}
|
|
42
54
|
return obj;
|
|
43
55
|
},
|
|
44
56
|
create(base) {
|
|
45
57
|
return exports.getTokensRequest.fromPartial(base ?? {});
|
|
46
58
|
},
|
|
47
|
-
fromPartial(
|
|
59
|
+
fromPartial(object) {
|
|
48
60
|
const message = createBasegetTokensRequest();
|
|
61
|
+
message.refresh_token = object.refresh_token ?? "";
|
|
49
62
|
return message;
|
|
50
63
|
},
|
|
51
64
|
};
|