@stashfin/grpc 1.2.620 → 1.2.621
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/banking/aa/getaasupport.d.ts +0 -1
- package/ts/banking/aa/getaasupport.js +2 -32
- package/ts/banking/aa/pollingrpd.d.ts +35 -0
- package/ts/banking/aa/pollingrpd.js +131 -0
- package/ts/banking.d.ts +14 -0
- package/ts/banking.js +10 -0
package/package.json
CHANGED
|
@@ -10,20 +10,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.getAASupportResponse = exports.getAASupportRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
|
-
const long_1 = __importDefault(require("long"));
|
|
14
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
14
|
exports.protobufPackage = "banking.aa.getaasupport";
|
|
16
15
|
function createBasegetAASupportRequest() {
|
|
17
|
-
return { bank_id: ""
|
|
16
|
+
return { bank_id: "" };
|
|
18
17
|
}
|
|
19
18
|
exports.getAASupportRequest = {
|
|
20
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
20
|
if (message.bank_id !== "") {
|
|
22
21
|
writer.uint32(10).string(message.bank_id);
|
|
23
22
|
}
|
|
24
|
-
if (message.customer_id !== 0) {
|
|
25
|
-
writer.uint32(16).int64(message.customer_id);
|
|
26
|
-
}
|
|
27
23
|
return writer;
|
|
28
24
|
},
|
|
29
25
|
decode(input, length) {
|
|
@@ -39,12 +35,6 @@ exports.getAASupportRequest = {
|
|
|
39
35
|
}
|
|
40
36
|
message.bank_id = reader.string();
|
|
41
37
|
continue;
|
|
42
|
-
case 2:
|
|
43
|
-
if (tag !== 16) {
|
|
44
|
-
break;
|
|
45
|
-
}
|
|
46
|
-
message.customer_id = longToNumber(reader.int64());
|
|
47
|
-
continue;
|
|
48
38
|
}
|
|
49
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
50
40
|
break;
|
|
@@ -54,19 +44,13 @@ exports.getAASupportRequest = {
|
|
|
54
44
|
return message;
|
|
55
45
|
},
|
|
56
46
|
fromJSON(object) {
|
|
57
|
-
return {
|
|
58
|
-
bank_id: isSet(object.bank_id) ? globalThis.String(object.bank_id) : "",
|
|
59
|
-
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
60
|
-
};
|
|
47
|
+
return { bank_id: isSet(object.bank_id) ? globalThis.String(object.bank_id) : "" };
|
|
61
48
|
},
|
|
62
49
|
toJSON(message) {
|
|
63
50
|
const obj = {};
|
|
64
51
|
if (message.bank_id !== "") {
|
|
65
52
|
obj.bank_id = message.bank_id;
|
|
66
53
|
}
|
|
67
|
-
if (message.customer_id !== 0) {
|
|
68
|
-
obj.customer_id = Math.round(message.customer_id);
|
|
69
|
-
}
|
|
70
54
|
return obj;
|
|
71
55
|
},
|
|
72
56
|
create(base) {
|
|
@@ -75,7 +59,6 @@ exports.getAASupportRequest = {
|
|
|
75
59
|
fromPartial(object) {
|
|
76
60
|
const message = createBasegetAASupportRequest();
|
|
77
61
|
message.bank_id = object.bank_id ?? "";
|
|
78
|
-
message.customer_id = object.customer_id ?? 0;
|
|
79
62
|
return message;
|
|
80
63
|
},
|
|
81
64
|
};
|
|
@@ -173,19 +156,6 @@ exports.getAASupportResponse = {
|
|
|
173
156
|
return message;
|
|
174
157
|
},
|
|
175
158
|
};
|
|
176
|
-
function longToNumber(long) {
|
|
177
|
-
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
178
|
-
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
179
|
-
}
|
|
180
|
-
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
181
|
-
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
182
|
-
}
|
|
183
|
-
return long.toNumber();
|
|
184
|
-
}
|
|
185
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
186
|
-
minimal_1.default.util.Long = long_1.default;
|
|
187
|
-
minimal_1.default.configure();
|
|
188
|
-
}
|
|
189
159
|
function isSet(value) {
|
|
190
160
|
return value !== null && value !== undefined;
|
|
191
161
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "banking.aa.pollingrpd";
|
|
3
|
+
export interface getRPDPollingStatusRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getRPDPollingStatusResponse {
|
|
7
|
+
success: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const getRPDPollingStatusRequest: {
|
|
10
|
+
encode(message: getRPDPollingStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getRPDPollingStatusRequest;
|
|
12
|
+
fromJSON(object: any): getRPDPollingStatusRequest;
|
|
13
|
+
toJSON(message: getRPDPollingStatusRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getRPDPollingStatusRequest>, I>>(base?: I): getRPDPollingStatusRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getRPDPollingStatusRequest>, I>>(object: I): getRPDPollingStatusRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getRPDPollingStatusResponse: {
|
|
18
|
+
encode(message: getRPDPollingStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getRPDPollingStatusResponse;
|
|
20
|
+
fromJSON(object: any): getRPDPollingStatusResponse;
|
|
21
|
+
toJSON(message: getRPDPollingStatusResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getRPDPollingStatusResponse>, I>>(base?: I): getRPDPollingStatusResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getRPDPollingStatusResponse>, I>>(object: I): getRPDPollingStatusResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
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: banking/aa/pollingrpd.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.getRPDPollingStatusResponse = exports.getRPDPollingStatusRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "banking.aa.pollingrpd";
|
|
16
|
+
function createBasegetRPDPollingStatusRequest() {
|
|
17
|
+
return { customer_id: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.getRPDPollingStatusRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
return writer;
|
|
25
|
+
},
|
|
26
|
+
decode(input, length) {
|
|
27
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
+
const message = createBasegetRPDPollingStatusRequest();
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1:
|
|
34
|
+
if (tag !== 8) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
message.customer_id = longToNumber(reader.int64());
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
reader.skipType(tag & 7);
|
|
44
|
+
}
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
fromJSON(object) {
|
|
48
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
49
|
+
},
|
|
50
|
+
toJSON(message) {
|
|
51
|
+
const obj = {};
|
|
52
|
+
if (message.customer_id !== 0) {
|
|
53
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
54
|
+
}
|
|
55
|
+
return obj;
|
|
56
|
+
},
|
|
57
|
+
create(base) {
|
|
58
|
+
return exports.getRPDPollingStatusRequest.fromPartial(base ?? {});
|
|
59
|
+
},
|
|
60
|
+
fromPartial(object) {
|
|
61
|
+
const message = createBasegetRPDPollingStatusRequest();
|
|
62
|
+
message.customer_id = object.customer_id ?? 0;
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
function createBasegetRPDPollingStatusResponse() {
|
|
67
|
+
return { success: false };
|
|
68
|
+
}
|
|
69
|
+
exports.getRPDPollingStatusResponse = {
|
|
70
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
71
|
+
if (message.success !== false) {
|
|
72
|
+
writer.uint32(8).bool(message.success);
|
|
73
|
+
}
|
|
74
|
+
return writer;
|
|
75
|
+
},
|
|
76
|
+
decode(input, length) {
|
|
77
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
78
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
79
|
+
const message = createBasegetRPDPollingStatusResponse();
|
|
80
|
+
while (reader.pos < end) {
|
|
81
|
+
const tag = reader.uint32();
|
|
82
|
+
switch (tag >>> 3) {
|
|
83
|
+
case 1:
|
|
84
|
+
if (tag !== 8) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
message.success = reader.bool();
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
reader.skipType(tag & 7);
|
|
94
|
+
}
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
fromJSON(object) {
|
|
98
|
+
return { success: isSet(object.success) ? globalThis.Boolean(object.success) : false };
|
|
99
|
+
},
|
|
100
|
+
toJSON(message) {
|
|
101
|
+
const obj = {};
|
|
102
|
+
if (message.success !== false) {
|
|
103
|
+
obj.success = message.success;
|
|
104
|
+
}
|
|
105
|
+
return obj;
|
|
106
|
+
},
|
|
107
|
+
create(base) {
|
|
108
|
+
return exports.getRPDPollingStatusResponse.fromPartial(base ?? {});
|
|
109
|
+
},
|
|
110
|
+
fromPartial(object) {
|
|
111
|
+
const message = createBasegetRPDPollingStatusResponse();
|
|
112
|
+
message.success = object.success ?? false;
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
function longToNumber(long) {
|
|
117
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
118
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
119
|
+
}
|
|
120
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
121
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
122
|
+
}
|
|
123
|
+
return long.toNumber();
|
|
124
|
+
}
|
|
125
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
126
|
+
minimal_1.default.util.Long = long_1.default;
|
|
127
|
+
minimal_1.default.configure();
|
|
128
|
+
}
|
|
129
|
+
function isSet(value) {
|
|
130
|
+
return value !== null && value !== undefined;
|
|
131
|
+
}
|
package/ts/banking.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { createRpdLinkRequest, createRpdLinkResponse } from "./banking/aa/getrpd
|
|
|
6
6
|
import { initiateRequest, initiateResponse } from "./banking/aa/initiate";
|
|
7
7
|
import { pennyDropRequest, pennyDropResponse } from "./banking/aa/initiatepennydrop";
|
|
8
8
|
import { inputPerfiosRequest, OutputPerfiosResponse } from "./banking/aa/netbankinginitiate";
|
|
9
|
+
import { getRPDPollingStatusRequest, getRPDPollingStatusResponse } from "./banking/aa/pollingrpd";
|
|
9
10
|
export declare const protobufPackage = "service";
|
|
10
11
|
export type bankingService = typeof bankingService;
|
|
11
12
|
export declare const bankingService: {
|
|
@@ -72,6 +73,15 @@ export declare const bankingService: {
|
|
|
72
73
|
readonly responseSerialize: (value: OutputPerfiosResponse) => Buffer;
|
|
73
74
|
readonly responseDeserialize: (value: Buffer) => OutputPerfiosResponse;
|
|
74
75
|
};
|
|
76
|
+
readonly getRpdStatus: {
|
|
77
|
+
readonly path: "/service.banking/getRPDStatus";
|
|
78
|
+
readonly requestStream: false;
|
|
79
|
+
readonly responseStream: false;
|
|
80
|
+
readonly requestSerialize: (value: getRPDPollingStatusRequest) => Buffer;
|
|
81
|
+
readonly requestDeserialize: (value: Buffer) => getRPDPollingStatusRequest;
|
|
82
|
+
readonly responseSerialize: (value: getRPDPollingStatusResponse) => Buffer;
|
|
83
|
+
readonly responseDeserialize: (value: Buffer) => getRPDPollingStatusResponse;
|
|
84
|
+
};
|
|
75
85
|
};
|
|
76
86
|
export interface bankingServer extends UntypedServiceImplementation {
|
|
77
87
|
getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
|
|
@@ -81,6 +91,7 @@ export interface bankingServer extends UntypedServiceImplementation {
|
|
|
81
91
|
initiatePennyDrop: handleUnaryCall<pennyDropRequest, pennyDropResponse>;
|
|
82
92
|
getCustomerBank: handleUnaryCall<getCustomerBankRequest, getCustomerBankResponse>;
|
|
83
93
|
netBankingInitiate: handleUnaryCall<inputPerfiosRequest, OutputPerfiosResponse>;
|
|
94
|
+
getRpdStatus: handleUnaryCall<getRPDPollingStatusRequest, getRPDPollingStatusResponse>;
|
|
84
95
|
}
|
|
85
96
|
export interface bankingClient extends Client {
|
|
86
97
|
getBankList(request: getBankListRequest, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
@@ -104,6 +115,9 @@ export interface bankingClient extends Client {
|
|
|
104
115
|
netBankingInitiate(request: inputPerfiosRequest, callback: (error: ServiceError | null, response: OutputPerfiosResponse) => void): ClientUnaryCall;
|
|
105
116
|
netBankingInitiate(request: inputPerfiosRequest, metadata: Metadata, callback: (error: ServiceError | null, response: OutputPerfiosResponse) => void): ClientUnaryCall;
|
|
106
117
|
netBankingInitiate(request: inputPerfiosRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: OutputPerfiosResponse) => void): ClientUnaryCall;
|
|
118
|
+
getRpdStatus(request: getRPDPollingStatusRequest, callback: (error: ServiceError | null, response: getRPDPollingStatusResponse) => void): ClientUnaryCall;
|
|
119
|
+
getRpdStatus(request: getRPDPollingStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getRPDPollingStatusResponse) => void): ClientUnaryCall;
|
|
120
|
+
getRpdStatus(request: getRPDPollingStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getRPDPollingStatusResponse) => void): ClientUnaryCall;
|
|
107
121
|
}
|
|
108
122
|
export declare const bankingClient: {
|
|
109
123
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bankingClient;
|
package/ts/banking.js
CHANGED
|
@@ -15,6 +15,7 @@ const getrpdlink_1 = require("./banking/aa/getrpdlink");
|
|
|
15
15
|
const initiate_1 = require("./banking/aa/initiate");
|
|
16
16
|
const initiatepennydrop_1 = require("./banking/aa/initiatepennydrop");
|
|
17
17
|
const netbankinginitiate_1 = require("./banking/aa/netbankinginitiate");
|
|
18
|
+
const pollingrpd_1 = require("./banking/aa/pollingrpd");
|
|
18
19
|
exports.protobufPackage = "service";
|
|
19
20
|
exports.bankingService = {
|
|
20
21
|
getBankList: {
|
|
@@ -80,5 +81,14 @@ exports.bankingService = {
|
|
|
80
81
|
responseSerialize: (value) => Buffer.from(netbankinginitiate_1.OutputPerfiosResponse.encode(value).finish()),
|
|
81
82
|
responseDeserialize: (value) => netbankinginitiate_1.OutputPerfiosResponse.decode(value),
|
|
82
83
|
},
|
|
84
|
+
getRpdStatus: {
|
|
85
|
+
path: "/service.banking/getRPDStatus",
|
|
86
|
+
requestStream: false,
|
|
87
|
+
responseStream: false,
|
|
88
|
+
requestSerialize: (value) => Buffer.from(pollingrpd_1.getRPDPollingStatusRequest.encode(value).finish()),
|
|
89
|
+
requestDeserialize: (value) => pollingrpd_1.getRPDPollingStatusRequest.decode(value),
|
|
90
|
+
responseSerialize: (value) => Buffer.from(pollingrpd_1.getRPDPollingStatusResponse.encode(value).finish()),
|
|
91
|
+
responseDeserialize: (value) => pollingrpd_1.getRPDPollingStatusResponse.decode(value),
|
|
92
|
+
},
|
|
83
93
|
};
|
|
84
94
|
exports.bankingClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bankingService, "service.banking");
|