@stashfin/grpc 1.2.270 → 1.2.272

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.270",
3
+ "version": "1.2.272",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,40 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.aa.getaatxnstatus";
3
+ export interface getAATransactionStatusRequest {
4
+ loan_id: number;
5
+ journey_type: string;
6
+ fip_ids: string[];
7
+ }
8
+ export interface getAATransactionStatusResponse {
9
+ journey_type: string;
10
+ monitoring_reference_id: string;
11
+ underwriting_reference_id: string;
12
+ redirection_url: string;
13
+ }
14
+ export declare const getAATransactionStatusRequest: {
15
+ encode(message: getAATransactionStatusRequest, writer?: _m0.Writer): _m0.Writer;
16
+ decode(input: _m0.Reader | Uint8Array, length?: number): getAATransactionStatusRequest;
17
+ fromJSON(object: any): getAATransactionStatusRequest;
18
+ toJSON(message: getAATransactionStatusRequest): unknown;
19
+ create<I extends Exact<DeepPartial<getAATransactionStatusRequest>, I>>(base?: I): getAATransactionStatusRequest;
20
+ fromPartial<I extends Exact<DeepPartial<getAATransactionStatusRequest>, I>>(object: I): getAATransactionStatusRequest;
21
+ };
22
+ export declare const getAATransactionStatusResponse: {
23
+ encode(message: getAATransactionStatusResponse, writer?: _m0.Writer): _m0.Writer;
24
+ decode(input: _m0.Reader | Uint8Array, length?: number): getAATransactionStatusResponse;
25
+ fromJSON(object: any): getAATransactionStatusResponse;
26
+ toJSON(message: getAATransactionStatusResponse): unknown;
27
+ create<I extends Exact<DeepPartial<getAATransactionStatusResponse>, I>>(base?: I): getAATransactionStatusResponse;
28
+ fromPartial<I extends Exact<DeepPartial<getAATransactionStatusResponse>, I>>(object: I): getAATransactionStatusResponse;
29
+ };
30
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
31
+ 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 {} ? {
32
+ [K in keyof T]?: DeepPartial<T[K]>;
33
+ } : Partial<T>;
34
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
35
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
36
+ [K in keyof P]: Exact<P[K], I[K]>;
37
+ } & {
38
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
39
+ };
40
+ export {};
@@ -0,0 +1,209 @@
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.28.2
6
+ // source: customers/aa/getaatxnstatus.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.getAATransactionStatusResponse = exports.getAATransactionStatusRequest = 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 = "customers.aa.getaatxnstatus";
16
+ function createBasegetAATransactionStatusRequest() {
17
+ return { loan_id: 0, journey_type: "", fip_ids: [] };
18
+ }
19
+ exports.getAATransactionStatusRequest = {
20
+ encode(message, writer = minimal_1.default.Writer.create()) {
21
+ if (message.loan_id !== 0) {
22
+ writer.uint32(8).int64(message.loan_id);
23
+ }
24
+ if (message.journey_type !== "") {
25
+ writer.uint32(18).string(message.journey_type);
26
+ }
27
+ for (const v of message.fip_ids) {
28
+ writer.uint32(26).string(v);
29
+ }
30
+ return writer;
31
+ },
32
+ decode(input, length) {
33
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
34
+ let end = length === undefined ? reader.len : reader.pos + length;
35
+ const message = createBasegetAATransactionStatusRequest();
36
+ while (reader.pos < end) {
37
+ const tag = reader.uint32();
38
+ switch (tag >>> 3) {
39
+ case 1:
40
+ if (tag !== 8) {
41
+ break;
42
+ }
43
+ message.loan_id = longToNumber(reader.int64());
44
+ continue;
45
+ case 2:
46
+ if (tag !== 18) {
47
+ break;
48
+ }
49
+ message.journey_type = reader.string();
50
+ continue;
51
+ case 3:
52
+ if (tag !== 26) {
53
+ break;
54
+ }
55
+ message.fip_ids.push(reader.string());
56
+ continue;
57
+ }
58
+ if ((tag & 7) === 4 || tag === 0) {
59
+ break;
60
+ }
61
+ reader.skipType(tag & 7);
62
+ }
63
+ return message;
64
+ },
65
+ fromJSON(object) {
66
+ return {
67
+ loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
68
+ journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
69
+ fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
70
+ };
71
+ },
72
+ toJSON(message) {
73
+ const obj = {};
74
+ if (message.loan_id !== 0) {
75
+ obj.loan_id = Math.round(message.loan_id);
76
+ }
77
+ if (message.journey_type !== "") {
78
+ obj.journey_type = message.journey_type;
79
+ }
80
+ if (message.fip_ids?.length) {
81
+ obj.fip_ids = message.fip_ids;
82
+ }
83
+ return obj;
84
+ },
85
+ create(base) {
86
+ return exports.getAATransactionStatusRequest.fromPartial(base ?? {});
87
+ },
88
+ fromPartial(object) {
89
+ const message = createBasegetAATransactionStatusRequest();
90
+ message.loan_id = object.loan_id ?? 0;
91
+ message.journey_type = object.journey_type ?? "";
92
+ message.fip_ids = object.fip_ids?.map((e) => e) || [];
93
+ return message;
94
+ },
95
+ };
96
+ function createBasegetAATransactionStatusResponse() {
97
+ return { journey_type: "", monitoring_reference_id: "", underwriting_reference_id: "", redirection_url: "" };
98
+ }
99
+ exports.getAATransactionStatusResponse = {
100
+ encode(message, writer = minimal_1.default.Writer.create()) {
101
+ if (message.journey_type !== "") {
102
+ writer.uint32(10).string(message.journey_type);
103
+ }
104
+ if (message.monitoring_reference_id !== "") {
105
+ writer.uint32(18).string(message.monitoring_reference_id);
106
+ }
107
+ if (message.underwriting_reference_id !== "") {
108
+ writer.uint32(26).string(message.underwriting_reference_id);
109
+ }
110
+ if (message.redirection_url !== "") {
111
+ writer.uint32(34).string(message.redirection_url);
112
+ }
113
+ return writer;
114
+ },
115
+ decode(input, length) {
116
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
117
+ let end = length === undefined ? reader.len : reader.pos + length;
118
+ const message = createBasegetAATransactionStatusResponse();
119
+ while (reader.pos < end) {
120
+ const tag = reader.uint32();
121
+ switch (tag >>> 3) {
122
+ case 1:
123
+ if (tag !== 10) {
124
+ break;
125
+ }
126
+ message.journey_type = reader.string();
127
+ continue;
128
+ case 2:
129
+ if (tag !== 18) {
130
+ break;
131
+ }
132
+ message.monitoring_reference_id = reader.string();
133
+ continue;
134
+ case 3:
135
+ if (tag !== 26) {
136
+ break;
137
+ }
138
+ message.underwriting_reference_id = reader.string();
139
+ continue;
140
+ case 4:
141
+ if (tag !== 34) {
142
+ break;
143
+ }
144
+ message.redirection_url = reader.string();
145
+ continue;
146
+ }
147
+ if ((tag & 7) === 4 || tag === 0) {
148
+ break;
149
+ }
150
+ reader.skipType(tag & 7);
151
+ }
152
+ return message;
153
+ },
154
+ fromJSON(object) {
155
+ return {
156
+ journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
157
+ monitoring_reference_id: isSet(object.monitoring_reference_id)
158
+ ? globalThis.String(object.monitoring_reference_id)
159
+ : "",
160
+ underwriting_reference_id: isSet(object.underwriting_reference_id)
161
+ ? globalThis.String(object.underwriting_reference_id)
162
+ : "",
163
+ redirection_url: isSet(object.redirection_url) ? globalThis.String(object.redirection_url) : "",
164
+ };
165
+ },
166
+ toJSON(message) {
167
+ const obj = {};
168
+ if (message.journey_type !== "") {
169
+ obj.journey_type = message.journey_type;
170
+ }
171
+ if (message.monitoring_reference_id !== "") {
172
+ obj.monitoring_reference_id = message.monitoring_reference_id;
173
+ }
174
+ if (message.underwriting_reference_id !== "") {
175
+ obj.underwriting_reference_id = message.underwriting_reference_id;
176
+ }
177
+ if (message.redirection_url !== "") {
178
+ obj.redirection_url = message.redirection_url;
179
+ }
180
+ return obj;
181
+ },
182
+ create(base) {
183
+ return exports.getAATransactionStatusResponse.fromPartial(base ?? {});
184
+ },
185
+ fromPartial(object) {
186
+ const message = createBasegetAATransactionStatusResponse();
187
+ message.journey_type = object.journey_type ?? "";
188
+ message.monitoring_reference_id = object.monitoring_reference_id ?? "";
189
+ message.underwriting_reference_id = object.underwriting_reference_id ?? "";
190
+ message.redirection_url = object.redirection_url ?? "";
191
+ return message;
192
+ },
193
+ };
194
+ function longToNumber(long) {
195
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
196
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
197
+ }
198
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
199
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
200
+ }
201
+ return long.toNumber();
202
+ }
203
+ if (minimal_1.default.util.Long !== long_1.default) {
204
+ minimal_1.default.util.Long = long_1.default;
205
+ minimal_1.default.configure();
206
+ }
207
+ function isSet(value) {
208
+ return value !== null && value !== undefined;
209
+ }
package/ts/customers.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
2
+ import { getAATransactionStatusRequest, getAATransactionStatusResponse } from "./customers/aa/getaatxnstatus";
2
3
  import { getBankListRequest, getBankListResponse } from "./customers/aa/getbanklist";
3
- import { getTransactionStatusRequest, getTransactionStatusResponse } from "./customers/aa/gettxnstatus";
4
4
  import { initiateRequest, initiateResponse } from "./customers/aa/initiate";
5
5
  import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
6
6
  import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
@@ -819,10 +819,10 @@ export declare const customersService: {
819
819
  readonly path: "/service.customers/getAATxnStatus";
820
820
  readonly requestStream: false;
821
821
  readonly responseStream: false;
822
- readonly requestSerialize: (value: getTransactionStatusRequest) => Buffer;
823
- readonly requestDeserialize: (value: Buffer) => getTransactionStatusRequest;
824
- readonly responseSerialize: (value: getTransactionStatusResponse) => Buffer;
825
- readonly responseDeserialize: (value: Buffer) => getTransactionStatusResponse;
822
+ readonly requestSerialize: (value: getAATransactionStatusRequest) => Buffer;
823
+ readonly requestDeserialize: (value: Buffer) => getAATransactionStatusRequest;
824
+ readonly responseSerialize: (value: getAATransactionStatusResponse) => Buffer;
825
+ readonly responseDeserialize: (value: Buffer) => getAATransactionStatusResponse;
826
826
  };
827
827
  readonly getCreditBuilder: {
828
828
  readonly path: "/service.customers/getCreditBuilder";
@@ -943,7 +943,7 @@ export interface customersServer extends UntypedServiceImplementation {
943
943
  updateFreedomTxnStatus: handleUnaryCall<updateFreedomTxnStatusRequest, updateFreedomTxnStatusResponse>;
944
944
  updateCategory: handleUnaryCall<updateCategoryRequest, updateCategoryResponse>;
945
945
  getPaymentOptions: handleUnaryCall<paymentOptionRequest, paymentOptionResponse>;
946
- getAaTxnStatus: handleUnaryCall<getTransactionStatusRequest, getTransactionStatusResponse>;
946
+ getAaTxnStatus: handleUnaryCall<getAATransactionStatusRequest, getAATransactionStatusResponse>;
947
947
  getCreditBuilder: handleUnaryCall<getCreditBuilderRequest, getCreditBuilderResponse>;
948
948
  lessCsImprove: handleUnaryCall<lessCsImproveRequest, lessCsImproveResponse>;
949
949
  moreCsImprove: handleUnaryCall<moreCsImproveRequest, moreCsImproveResponse>;
@@ -1193,9 +1193,9 @@ export interface customersClient extends Client {
1193
1193
  getPaymentOptions(request: paymentOptionRequest, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
1194
1194
  getPaymentOptions(request: paymentOptionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
1195
1195
  getPaymentOptions(request: paymentOptionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: paymentOptionResponse) => void): ClientUnaryCall;
1196
- getAaTxnStatus(request: getTransactionStatusRequest, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
1197
- getAaTxnStatus(request: getTransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
1198
- getAaTxnStatus(request: getTransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getTransactionStatusResponse) => void): ClientUnaryCall;
1196
+ getAaTxnStatus(request: getAATransactionStatusRequest, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
1197
+ getAaTxnStatus(request: getAATransactionStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
1198
+ getAaTxnStatus(request: getAATransactionStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAATransactionStatusResponse) => void): ClientUnaryCall;
1199
1199
  getCreditBuilder(request: getCreditBuilderRequest, callback: (error: ServiceError | null, response: getCreditBuilderResponse) => void): ClientUnaryCall;
1200
1200
  getCreditBuilder(request: getCreditBuilderRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCreditBuilderResponse) => void): ClientUnaryCall;
1201
1201
  getCreditBuilder(request: getCreditBuilderRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCreditBuilderResponse) => void): ClientUnaryCall;
package/ts/customers.js CHANGED
@@ -8,8 +8,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const grpc_js_1 = require("@grpc/grpc-js");
11
+ const getaatxnstatus_1 = require("./customers/aa/getaatxnstatus");
11
12
  const getbanklist_1 = require("./customers/aa/getbanklist");
12
- const gettxnstatus_1 = require("./customers/aa/gettxnstatus");
13
13
  const initiate_1 = require("./customers/aa/initiate");
14
14
  const addaddress_1 = require("./customers/addaddress");
15
15
  const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
@@ -33,7 +33,7 @@ const changempin_1 = require("./customers/changempin");
33
33
  const createcustomerreference_1 = require("./customers/createcustomerreference");
34
34
  const deleteprofile_1 = require("./customers/deleteprofile");
35
35
  const disablempin_1 = require("./customers/disablempin");
36
- const gettxnstatus_2 = require("./customers/enach/gettxnstatus");
36
+ const gettxnstatus_1 = require("./customers/enach/gettxnstatus");
37
37
  const getweburl_1 = require("./customers/enach/getweburl");
38
38
  const updatetxnstatus_1 = require("./customers/enach/updatetxnstatus");
39
39
  const fetchrcprofile_1 = require("./customers/fetchrcprofile");
@@ -692,10 +692,10 @@ exports.customersService = {
692
692
  path: "/service.customers/getEnachTxnStatus",
693
693
  requestStream: false,
694
694
  responseStream: false,
695
- requestSerialize: (value) => Buffer.from(gettxnstatus_2.getTxnStatusRequest.encode(value).finish()),
696
- requestDeserialize: (value) => gettxnstatus_2.getTxnStatusRequest.decode(value),
697
- responseSerialize: (value) => Buffer.from(gettxnstatus_2.getTxnStatusResponse.encode(value).finish()),
698
- responseDeserialize: (value) => gettxnstatus_2.getTxnStatusResponse.decode(value),
695
+ requestSerialize: (value) => Buffer.from(gettxnstatus_1.getTxnStatusRequest.encode(value).finish()),
696
+ requestDeserialize: (value) => gettxnstatus_1.getTxnStatusRequest.decode(value),
697
+ responseSerialize: (value) => Buffer.from(gettxnstatus_1.getTxnStatusResponse.encode(value).finish()),
698
+ responseDeserialize: (value) => gettxnstatus_1.getTxnStatusResponse.decode(value),
699
699
  },
700
700
  updateEnachTxnStatus: {
701
701
  path: "/service.customers/updateEnachTxnStatus",
@@ -827,10 +827,10 @@ exports.customersService = {
827
827
  path: "/service.customers/getAATxnStatus",
828
828
  requestStream: false,
829
829
  responseStream: false,
830
- requestSerialize: (value) => Buffer.from(gettxnstatus_1.getTransactionStatusRequest.encode(value).finish()),
831
- requestDeserialize: (value) => gettxnstatus_1.getTransactionStatusRequest.decode(value),
832
- responseSerialize: (value) => Buffer.from(gettxnstatus_1.getTransactionStatusResponse.encode(value).finish()),
833
- responseDeserialize: (value) => gettxnstatus_1.getTransactionStatusResponse.decode(value),
830
+ requestSerialize: (value) => Buffer.from(getaatxnstatus_1.getAATransactionStatusRequest.encode(value).finish()),
831
+ requestDeserialize: (value) => getaatxnstatus_1.getAATransactionStatusRequest.decode(value),
832
+ responseSerialize: (value) => Buffer.from(getaatxnstatus_1.getAATransactionStatusResponse.encode(value).finish()),
833
+ responseDeserialize: (value) => getaatxnstatus_1.getAATransactionStatusResponse.decode(value),
834
834
  },
835
835
  getCreditBuilder: {
836
836
  path: "/service.customers/getCreditBuilder",