@stashfin/grpc 1.2.621 → 1.2.623
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 +1 -1
- package/ts/eqxcustomer.d.ts +14 -0
- package/ts/eqxcustomer.js +10 -0
- package/ts/eqxcustomers/gettokens.d.ts +47 -0
- package/ts/eqxcustomers/gettokens.js +186 -0
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/kyc/fetchaadhaarbypan.d.ts +1 -1
- package/ts/kyc/fetchaadhaarbypan.js +28 -20
package/package.json
CHANGED
package/ts/eqxcustomer.d.ts
CHANGED
|
@@ -3,6 +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
7
|
import { sendOtpRequest, sendOtpResponse } from "./eqxcustomers/sendotp";
|
|
7
8
|
import { updateNotificationRequest, updateNotificationResponse } from "./eqxcustomers/updatenotification";
|
|
8
9
|
import { updatePushIdRequest, updatePushIdResponse } from "./eqxcustomers/updatepushid";
|
|
@@ -92,6 +93,15 @@ export declare const eqxcustomersService: {
|
|
|
92
93
|
readonly responseSerialize: (value: VerifyTokenResponse) => Buffer;
|
|
93
94
|
readonly responseDeserialize: (value: Buffer) => VerifyTokenResponse;
|
|
94
95
|
};
|
|
96
|
+
readonly getTokens: {
|
|
97
|
+
readonly path: "/service.eqxcustomers/getTokens";
|
|
98
|
+
readonly requestStream: false;
|
|
99
|
+
readonly responseStream: false;
|
|
100
|
+
readonly requestSerialize: (value: getTokensResponse) => Buffer;
|
|
101
|
+
readonly requestDeserialize: (value: Buffer) => getTokensResponse;
|
|
102
|
+
readonly responseSerialize: (value: getTokensResponse) => Buffer;
|
|
103
|
+
readonly responseDeserialize: (value: Buffer) => getTokensResponse;
|
|
104
|
+
};
|
|
95
105
|
};
|
|
96
106
|
export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
97
107
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpResponse>;
|
|
@@ -103,6 +113,7 @@ export interface eqxcustomersServer extends UntypedServiceImplementation {
|
|
|
103
113
|
getnotifications: handleUnaryCall<getNotificationsRequest, getNotificationsResponse>;
|
|
104
114
|
updateNotifications: handleUnaryCall<updateNotificationRequest, updateNotificationResponse>;
|
|
105
115
|
verifyToken: handleUnaryCall<VerifyTokenRequest, VerifyTokenResponse>;
|
|
116
|
+
getTokens: handleUnaryCall<getTokensResponse, getTokensResponse>;
|
|
106
117
|
}
|
|
107
118
|
export interface eqxcustomersClient extends Client {
|
|
108
119
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpResponse) => void): ClientUnaryCall;
|
|
@@ -132,6 +143,9 @@ export interface eqxcustomersClient extends Client {
|
|
|
132
143
|
verifyToken(request: VerifyTokenRequest, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
133
144
|
verifyToken(request: VerifyTokenRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
134
145
|
verifyToken(request: VerifyTokenRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VerifyTokenResponse) => void): ClientUnaryCall;
|
|
146
|
+
getTokens(request: getTokensResponse, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
147
|
+
getTokens(request: getTokensResponse, metadata: Metadata, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
148
|
+
getTokens(request: getTokensResponse, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTokensResponse) => void): ClientUnaryCall;
|
|
135
149
|
}
|
|
136
150
|
export declare const eqxcustomersClient: {
|
|
137
151
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxcustomersClient;
|
package/ts/eqxcustomer.js
CHANGED
|
@@ -12,6 +12,7 @@ const getcustomerbyid_1 = require("./eqxcustomers/getcustomerbyid");
|
|
|
12
12
|
const getdashboard_1 = require("./eqxcustomers/getdashboard");
|
|
13
13
|
const getdashboardmaincard_1 = require("./eqxcustomers/getdashboardmaincard");
|
|
14
14
|
const getnotifications_1 = require("./eqxcustomers/getnotifications");
|
|
15
|
+
const gettokens_1 = require("./eqxcustomers/gettokens");
|
|
15
16
|
const sendotp_1 = require("./eqxcustomers/sendotp");
|
|
16
17
|
const updatenotification_1 = require("./eqxcustomers/updatenotification");
|
|
17
18
|
const updatepushid_1 = require("./eqxcustomers/updatepushid");
|
|
@@ -100,5 +101,14 @@ exports.eqxcustomersService = {
|
|
|
100
101
|
responseSerialize: (value) => Buffer.from(verifytoken_1.VerifyTokenResponse.encode(value).finish()),
|
|
101
102
|
responseDeserialize: (value) => verifytoken_1.VerifyTokenResponse.decode(value),
|
|
102
103
|
},
|
|
104
|
+
getTokens: {
|
|
105
|
+
path: "/service.eqxcustomers/getTokens",
|
|
106
|
+
requestStream: false,
|
|
107
|
+
responseStream: false,
|
|
108
|
+
requestSerialize: (value) => Buffer.from(gettokens_1.getTokensResponse.encode(value).finish()),
|
|
109
|
+
requestDeserialize: (value) => gettokens_1.getTokensResponse.decode(value),
|
|
110
|
+
responseSerialize: (value) => Buffer.from(gettokens_1.getTokensResponse.encode(value).finish()),
|
|
111
|
+
responseDeserialize: (value) => gettokens_1.getTokensResponse.decode(value),
|
|
112
|
+
},
|
|
103
113
|
};
|
|
104
114
|
exports.eqxcustomersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxcustomersService, "service.eqxcustomers");
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "eqxcustomers.gettokens";
|
|
3
|
+
export interface getTokensRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface Data {
|
|
6
|
+
refresh_token: string;
|
|
7
|
+
auth_token: string;
|
|
8
|
+
}
|
|
9
|
+
export interface getTokensResponse {
|
|
10
|
+
data: Data | undefined;
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const getTokensRequest: {
|
|
14
|
+
encode(_: getTokensRequest, writer?: _m0.Writer): _m0.Writer;
|
|
15
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getTokensRequest;
|
|
16
|
+
fromJSON(_: any): getTokensRequest;
|
|
17
|
+
toJSON(_: getTokensRequest): unknown;
|
|
18
|
+
create<I extends Exact<DeepPartial<getTokensRequest>, I>>(base?: I): getTokensRequest;
|
|
19
|
+
fromPartial<I extends Exact<DeepPartial<getTokensRequest>, I>>(_: I): getTokensRequest;
|
|
20
|
+
};
|
|
21
|
+
export declare const Data: {
|
|
22
|
+
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Data;
|
|
24
|
+
fromJSON(object: any): Data;
|
|
25
|
+
toJSON(message: Data): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<Data>, I>>(base?: I): Data;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<Data>, I>>(object: I): Data;
|
|
28
|
+
};
|
|
29
|
+
export declare const getTokensResponse: {
|
|
30
|
+
encode(message: getTokensResponse, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getTokensResponse;
|
|
32
|
+
fromJSON(object: any): getTokensResponse;
|
|
33
|
+
toJSON(message: getTokensResponse): unknown;
|
|
34
|
+
create<I extends Exact<DeepPartial<getTokensResponse>, I>>(base?: I): getTokensResponse;
|
|
35
|
+
fromPartial<I extends Exact<DeepPartial<getTokensResponse>, I>>(object: I): getTokensResponse;
|
|
36
|
+
};
|
|
37
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
38
|
+
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 {} ? {
|
|
39
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
40
|
+
} : Partial<T>;
|
|
41
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
42
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
43
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
44
|
+
} & {
|
|
45
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
46
|
+
};
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v1.181.0
|
|
5
|
+
// protoc v5.29.3
|
|
6
|
+
// source: eqxcustomers/gettokens.proto
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.getTokensResponse = exports.Data = exports.getTokensRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "eqxcustomers.gettokens";
|
|
15
|
+
function createBasegetTokensRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getTokensRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasegetTokensRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.getTokensRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetTokensRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseData() {
|
|
53
|
+
return { refresh_token: "", auth_token: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.Data = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.refresh_token !== "") {
|
|
58
|
+
writer.uint32(10).string(message.refresh_token);
|
|
59
|
+
}
|
|
60
|
+
if (message.auth_token !== "") {
|
|
61
|
+
writer.uint32(18).string(message.auth_token);
|
|
62
|
+
}
|
|
63
|
+
return writer;
|
|
64
|
+
},
|
|
65
|
+
decode(input, length) {
|
|
66
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
67
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
68
|
+
const message = createBaseData();
|
|
69
|
+
while (reader.pos < end) {
|
|
70
|
+
const tag = reader.uint32();
|
|
71
|
+
switch (tag >>> 3) {
|
|
72
|
+
case 1:
|
|
73
|
+
if (tag !== 10) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
message.refresh_token = reader.string();
|
|
77
|
+
continue;
|
|
78
|
+
case 2:
|
|
79
|
+
if (tag !== 18) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.auth_token = reader.string();
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
reader.skipType(tag & 7);
|
|
89
|
+
}
|
|
90
|
+
return message;
|
|
91
|
+
},
|
|
92
|
+
fromJSON(object) {
|
|
93
|
+
return {
|
|
94
|
+
refresh_token: isSet(object.refresh_token) ? globalThis.String(object.refresh_token) : "",
|
|
95
|
+
auth_token: isSet(object.auth_token) ? globalThis.String(object.auth_token) : "",
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.refresh_token !== "") {
|
|
101
|
+
obj.refresh_token = message.refresh_token;
|
|
102
|
+
}
|
|
103
|
+
if (message.auth_token !== "") {
|
|
104
|
+
obj.auth_token = message.auth_token;
|
|
105
|
+
}
|
|
106
|
+
return obj;
|
|
107
|
+
},
|
|
108
|
+
create(base) {
|
|
109
|
+
return exports.Data.fromPartial(base ?? {});
|
|
110
|
+
},
|
|
111
|
+
fromPartial(object) {
|
|
112
|
+
const message = createBaseData();
|
|
113
|
+
message.refresh_token = object.refresh_token ?? "";
|
|
114
|
+
message.auth_token = object.auth_token ?? "";
|
|
115
|
+
return message;
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
function createBasegetTokensResponse() {
|
|
119
|
+
return { data: undefined, message: "" };
|
|
120
|
+
}
|
|
121
|
+
exports.getTokensResponse = {
|
|
122
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
123
|
+
if (message.data !== undefined) {
|
|
124
|
+
exports.Data.encode(message.data, writer.uint32(10).fork()).ldelim();
|
|
125
|
+
}
|
|
126
|
+
if (message.message !== "") {
|
|
127
|
+
writer.uint32(18).string(message.message);
|
|
128
|
+
}
|
|
129
|
+
return writer;
|
|
130
|
+
},
|
|
131
|
+
decode(input, length) {
|
|
132
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
133
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
134
|
+
const message = createBasegetTokensResponse();
|
|
135
|
+
while (reader.pos < end) {
|
|
136
|
+
const tag = reader.uint32();
|
|
137
|
+
switch (tag >>> 3) {
|
|
138
|
+
case 1:
|
|
139
|
+
if (tag !== 10) {
|
|
140
|
+
break;
|
|
141
|
+
}
|
|
142
|
+
message.data = exports.Data.decode(reader, reader.uint32());
|
|
143
|
+
continue;
|
|
144
|
+
case 2:
|
|
145
|
+
if (tag !== 18) {
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
message.message = reader.string();
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
reader.skipType(tag & 7);
|
|
155
|
+
}
|
|
156
|
+
return message;
|
|
157
|
+
},
|
|
158
|
+
fromJSON(object) {
|
|
159
|
+
return {
|
|
160
|
+
data: isSet(object.data) ? exports.Data.fromJSON(object.data) : undefined,
|
|
161
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
toJSON(message) {
|
|
165
|
+
const obj = {};
|
|
166
|
+
if (message.data !== undefined) {
|
|
167
|
+
obj.data = exports.Data.toJSON(message.data);
|
|
168
|
+
}
|
|
169
|
+
if (message.message !== "") {
|
|
170
|
+
obj.message = message.message;
|
|
171
|
+
}
|
|
172
|
+
return obj;
|
|
173
|
+
},
|
|
174
|
+
create(base) {
|
|
175
|
+
return exports.getTokensResponse.fromPartial(base ?? {});
|
|
176
|
+
},
|
|
177
|
+
fromPartial(object) {
|
|
178
|
+
const message = createBasegetTokensResponse();
|
|
179
|
+
message.data = (object.data !== undefined && object.data !== null) ? exports.Data.fromPartial(object.data) : undefined;
|
|
180
|
+
message.message = object.message ?? "";
|
|
181
|
+
return message;
|
|
182
|
+
},
|
|
183
|
+
};
|
|
184
|
+
function isSet(value) {
|
|
185
|
+
return value !== null && value !== undefined;
|
|
186
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: google/protobuf/timestamp.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -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"));
|
|
14
13
|
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: undefined, 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
|
-
writer.uint32(
|
|
83
|
+
if (message.timestamp !== undefined) {
|
|
84
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(42).fork()).ldelim();
|
|
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 !== 42) {
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
message.timestamp =
|
|
126
|
+
message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
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) ? fromJsonTimestamp(object.timestamp) : undefined,
|
|
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 =
|
|
166
|
+
if (message.timestamp !== undefined) {
|
|
167
|
+
obj.timestamp = message.timestamp.toISOString();
|
|
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 ?? undefined;
|
|
184
184
|
message.path = object.path ?? "";
|
|
185
185
|
return message;
|
|
186
186
|
},
|
|
@@ -347,18 +347,26 @@ exports.PanData = {
|
|
|
347
347
|
return message;
|
|
348
348
|
},
|
|
349
349
|
};
|
|
350
|
-
function
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
function toTimestamp(date) {
|
|
351
|
+
const seconds = Math.trunc(date.getTime() / 1_000);
|
|
352
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
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;
|
|
353
363
|
}
|
|
354
|
-
if (
|
|
355
|
-
|
|
364
|
+
else if (typeof o === "string") {
|
|
365
|
+
return new globalThis.Date(o);
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
356
369
|
}
|
|
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();
|
|
362
370
|
}
|
|
363
371
|
function isSet(value) {
|
|
364
372
|
return value !== null && value !== undefined;
|