@stashfin/grpc 1.2.599 → 1.2.600

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.599",
3
+ "version": "1.2.600",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -3,7 +3,7 @@ export declare const protobufPackage = "banking.aa.initiate";
3
3
  export interface initiateRequest {
4
4
  loan_id: number;
5
5
  journey_type: string;
6
- fip_ids: string[];
6
+ bank_ids: string[];
7
7
  customer_id: number;
8
8
  }
9
9
  export interface initiateResponse {
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "banking.aa.initiate";
16
16
  function createBaseinitiateRequest() {
17
- return { loan_id: 0, journey_type: "", fip_ids: [], customer_id: 0 };
17
+ return { loan_id: 0, journey_type: "", bank_ids: [], customer_id: 0 };
18
18
  }
19
19
  exports.initiateRequest = {
20
20
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -24,7 +24,7 @@ exports.initiateRequest = {
24
24
  if (message.journey_type !== "") {
25
25
  writer.uint32(18).string(message.journey_type);
26
26
  }
27
- for (const v of message.fip_ids) {
27
+ for (const v of message.bank_ids) {
28
28
  writer.uint32(26).string(v);
29
29
  }
30
30
  if (message.customer_id !== 0) {
@@ -55,7 +55,7 @@ exports.initiateRequest = {
55
55
  if (tag !== 26) {
56
56
  break;
57
57
  }
58
- message.fip_ids.push(reader.string());
58
+ message.bank_ids.push(reader.string());
59
59
  continue;
60
60
  case 4:
61
61
  if (tag !== 32) {
@@ -75,7 +75,7 @@ exports.initiateRequest = {
75
75
  return {
76
76
  loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
77
77
  journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
78
- fip_ids: globalThis.Array.isArray(object?.fip_ids) ? object.fip_ids.map((e) => globalThis.String(e)) : [],
78
+ bank_ids: globalThis.Array.isArray(object?.bank_ids) ? object.bank_ids.map((e) => globalThis.String(e)) : [],
79
79
  customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
80
80
  };
81
81
  },
@@ -87,8 +87,8 @@ exports.initiateRequest = {
87
87
  if (message.journey_type !== "") {
88
88
  obj.journey_type = message.journey_type;
89
89
  }
90
- if (message.fip_ids?.length) {
91
- obj.fip_ids = message.fip_ids;
90
+ if (message.bank_ids?.length) {
91
+ obj.bank_ids = message.bank_ids;
92
92
  }
93
93
  if (message.customer_id !== 0) {
94
94
  obj.customer_id = Math.round(message.customer_id);
@@ -102,7 +102,7 @@ exports.initiateRequest = {
102
102
  const message = createBaseinitiateRequest();
103
103
  message.loan_id = object.loan_id ?? 0;
104
104
  message.journey_type = object.journey_type ?? "";
105
- message.fip_ids = object.fip_ids?.map((e) => e) || [];
105
+ message.bank_ids = object.bank_ids?.map((e) => e) || [];
106
106
  message.customer_id = object.customer_id ?? 0;
107
107
  return message;
108
108
  },