@stashfin/grpc 1.2.624 → 1.2.626
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
|
};
|
|
@@ -10,8 +10,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.PanData = exports.Data = exports.fetchAadhaarByPanResponse = exports.fetchAadhaarByPanRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
13
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
const timestamp_1 = require("../google/protobuf/timestamp");
|
|
15
15
|
exports.protobufPackage = "kyc.fetchaadhaarbypan";
|
|
16
16
|
function createBasefetchAadhaarByPanRequest() {
|
|
17
17
|
return { pan_number: "" };
|
|
@@ -64,7 +64,7 @@ exports.fetchAadhaarByPanRequest = {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
function createBasefetchAadhaarByPanResponse() {
|
|
67
|
-
return { request_id: "", transaction_id: "", status: 0, data: undefined, timestamp:
|
|
67
|
+
return { request_id: "", transaction_id: "", status: 0, data: undefined, timestamp: 0, path: "" };
|
|
68
68
|
}
|
|
69
69
|
exports.fetchAadhaarByPanResponse = {
|
|
70
70
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -80,8 +80,8 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
80
80
|
if (message.data !== undefined) {
|
|
81
81
|
exports.Data.encode(message.data, writer.uint32(34).fork()).ldelim();
|
|
82
82
|
}
|
|
83
|
-
if (message.timestamp !==
|
|
84
|
-
|
|
83
|
+
if (message.timestamp !== 0) {
|
|
84
|
+
writer.uint32(40).uint64(message.timestamp);
|
|
85
85
|
}
|
|
86
86
|
if (message.path !== "") {
|
|
87
87
|
writer.uint32(50).string(message.path);
|
|
@@ -120,10 +120,10 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
120
120
|
message.data = exports.Data.decode(reader, reader.uint32());
|
|
121
121
|
continue;
|
|
122
122
|
case 5:
|
|
123
|
-
if (tag !==
|
|
123
|
+
if (tag !== 40) {
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
message.timestamp =
|
|
126
|
+
message.timestamp = longToNumber(reader.uint64());
|
|
127
127
|
continue;
|
|
128
128
|
case 6:
|
|
129
129
|
if (tag !== 50) {
|
|
@@ -145,7 +145,7 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
145
145
|
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
146
146
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
147
147
|
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
148
|
-
timestamp: isSet(object.timestamp) ?
|
|
148
|
+
timestamp: isSet(object.timestamp) ? globalThis.Number(object.timestamp) : 0,
|
|
149
149
|
path: isSet(object.path) ? globalThis.String(object.path) : "",
|
|
150
150
|
};
|
|
151
151
|
},
|
|
@@ -163,8 +163,8 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
163
163
|
if (message.data !== undefined) {
|
|
164
164
|
obj.data = exports.Data.toJSON(message.data);
|
|
165
165
|
}
|
|
166
|
-
if (message.timestamp !==
|
|
167
|
-
obj.timestamp = message.timestamp
|
|
166
|
+
if (message.timestamp !== 0) {
|
|
167
|
+
obj.timestamp = Math.round(message.timestamp);
|
|
168
168
|
}
|
|
169
169
|
if (message.path !== "") {
|
|
170
170
|
obj.path = message.path;
|
|
@@ -180,7 +180,7 @@ exports.fetchAadhaarByPanResponse = {
|
|
|
180
180
|
message.transaction_id = object.transaction_id ?? "";
|
|
181
181
|
message.status = object.status ?? 0;
|
|
182
182
|
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
183
|
-
message.timestamp = object.timestamp ??
|
|
183
|
+
message.timestamp = object.timestamp ?? 0;
|
|
184
184
|
message.path = object.path ?? "";
|
|
185
185
|
return message;
|
|
186
186
|
},
|
|
@@ -347,26 +347,18 @@ exports.PanData = {
|
|
|
347
347
|
return message;
|
|
348
348
|
},
|
|
349
349
|
};
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
return { seconds, nanos };
|
|
354
|
-
}
|
|
355
|
-
function fromTimestamp(t) {
|
|
356
|
-
let millis = (t.seconds || 0) * 1_000;
|
|
357
|
-
millis += (t.nanos || 0) / 1_000_000;
|
|
358
|
-
return new globalThis.Date(millis);
|
|
359
|
-
}
|
|
360
|
-
function fromJsonTimestamp(o) {
|
|
361
|
-
if (o instanceof globalThis.Date) {
|
|
362
|
-
return o;
|
|
350
|
+
function longToNumber(long) {
|
|
351
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
352
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
363
353
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
}
|
|
367
|
-
else {
|
|
368
|
-
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
354
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
355
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
369
356
|
}
|
|
357
|
+
return long.toNumber();
|
|
358
|
+
}
|
|
359
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
360
|
+
minimal_1.default.util.Long = long_1.default;
|
|
361
|
+
minimal_1.default.configure();
|
|
370
362
|
}
|
|
371
363
|
function isSet(value) {
|
|
372
364
|
return value !== null && value !== undefined;
|