@stashfin/grpc 1.2.623 → 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
|
};
|
|
@@ -14,6 +14,7 @@ export interface verifyOtpResponse {
|
|
|
14
14
|
first_name?: string | undefined;
|
|
15
15
|
last_name?: string | undefined;
|
|
16
16
|
message: string;
|
|
17
|
+
refresh_token: string;
|
|
17
18
|
}
|
|
18
19
|
export declare const verifyOtpReqeust: {
|
|
19
20
|
encode(message: verifyOtpReqeust, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -135,7 +135,14 @@ exports.verifyOtpReqeust = {
|
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseverifyOtpResponse() {
|
|
138
|
-
return {
|
|
138
|
+
return {
|
|
139
|
+
auth_token: "",
|
|
140
|
+
deleted_auth_token: undefined,
|
|
141
|
+
first_name: undefined,
|
|
142
|
+
last_name: undefined,
|
|
143
|
+
message: "",
|
|
144
|
+
refresh_token: "",
|
|
145
|
+
};
|
|
139
146
|
}
|
|
140
147
|
exports.verifyOtpResponse = {
|
|
141
148
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -154,6 +161,9 @@ exports.verifyOtpResponse = {
|
|
|
154
161
|
if (message.message !== "") {
|
|
155
162
|
writer.uint32(42).string(message.message);
|
|
156
163
|
}
|
|
164
|
+
if (message.refresh_token !== "") {
|
|
165
|
+
writer.uint32(50).string(message.refresh_token);
|
|
166
|
+
}
|
|
157
167
|
return writer;
|
|
158
168
|
},
|
|
159
169
|
decode(input, length) {
|
|
@@ -193,6 +203,12 @@ exports.verifyOtpResponse = {
|
|
|
193
203
|
}
|
|
194
204
|
message.message = reader.string();
|
|
195
205
|
continue;
|
|
206
|
+
case 6:
|
|
207
|
+
if (tag !== 50) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.refresh_token = reader.string();
|
|
211
|
+
continue;
|
|
196
212
|
}
|
|
197
213
|
if ((tag & 7) === 4 || tag === 0) {
|
|
198
214
|
break;
|
|
@@ -208,6 +224,7 @@ exports.verifyOtpResponse = {
|
|
|
208
224
|
first_name: isSet(object.first_name) ? globalThis.String(object.first_name) : undefined,
|
|
209
225
|
last_name: isSet(object.last_name) ? globalThis.String(object.last_name) : undefined,
|
|
210
226
|
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
227
|
+
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
211
228
|
};
|
|
212
229
|
},
|
|
213
230
|
toJSON(message) {
|
|
@@ -227,6 +244,9 @@ exports.verifyOtpResponse = {
|
|
|
227
244
|
if (message.message !== "") {
|
|
228
245
|
obj.message = message.message;
|
|
229
246
|
}
|
|
247
|
+
if (message.refresh_token !== "") {
|
|
248
|
+
obj.refresh_token = message.refresh_token;
|
|
249
|
+
}
|
|
230
250
|
return obj;
|
|
231
251
|
},
|
|
232
252
|
create(base) {
|
|
@@ -239,6 +259,7 @@ exports.verifyOtpResponse = {
|
|
|
239
259
|
message.first_name = object.first_name ?? undefined;
|
|
240
260
|
message.last_name = object.last_name ?? undefined;
|
|
241
261
|
message.message = object.message ?? "";
|
|
262
|
+
message.refresh_token = object.refresh_token ?? "";
|
|
242
263
|
return message;
|
|
243
264
|
},
|
|
244
265
|
};
|