@stashfin/grpc 1.2.85 → 1.2.86

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.85",
3
+ "version": "1.2.86",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -4,6 +4,7 @@ export interface deleteProfileRequest {
4
4
  }
5
5
  export interface deleteProfileResponse {
6
6
  status: boolean;
7
+ pending_loan_amount: number;
7
8
  }
8
9
  export declare const deleteProfileRequest: {
9
10
  encode(_: deleteProfileRequest, writer?: _m0.Writer): _m0.Writer;
@@ -50,13 +50,16 @@ exports.deleteProfileRequest = {
50
50
  },
51
51
  };
52
52
  function createBasedeleteProfileResponse() {
53
- return { status: false };
53
+ return { status: false, pending_loan_amount: 0 };
54
54
  }
55
55
  exports.deleteProfileResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
57
57
  if (message.status !== false) {
58
58
  writer.uint32(8).bool(message.status);
59
59
  }
60
+ if (message.pending_loan_amount !== 0) {
61
+ writer.uint32(21).float(message.pending_loan_amount);
62
+ }
60
63
  return writer;
61
64
  },
62
65
  decode(input, length) {
@@ -72,6 +75,12 @@ exports.deleteProfileResponse = {
72
75
  }
73
76
  message.status = reader.bool();
74
77
  continue;
78
+ case 2:
79
+ if (tag !== 21) {
80
+ break;
81
+ }
82
+ message.pending_loan_amount = reader.float();
83
+ continue;
75
84
  }
76
85
  if ((tag & 7) === 4 || tag === 0) {
77
86
  break;
@@ -81,13 +90,19 @@ exports.deleteProfileResponse = {
81
90
  return message;
82
91
  },
83
92
  fromJSON(object) {
84
- return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
93
+ return {
94
+ status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
95
+ pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
96
+ };
85
97
  },
86
98
  toJSON(message) {
87
99
  const obj = {};
88
100
  if (message.status !== false) {
89
101
  obj.status = message.status;
90
102
  }
103
+ if (message.pending_loan_amount !== 0) {
104
+ obj.pending_loan_amount = message.pending_loan_amount;
105
+ }
91
106
  return obj;
92
107
  },
93
108
  create(base) {
@@ -96,6 +111,7 @@ exports.deleteProfileResponse = {
96
111
  fromPartial(object) {
97
112
  const message = createBasedeleteProfileResponse();
98
113
  message.status = object.status ?? false;
114
+ message.pending_loan_amount = object.pending_loan_amount ?? 0;
99
115
  return message;
100
116
  },
101
117
  };
@@ -18,7 +18,7 @@ function createBasefetchRCProfileRequest() {
18
18
  exports.fetchRCProfileRequest = {
19
19
  encode(message, writer = minimal_1.default.Writer.create()) {
20
20
  if (message.rcNumber !== "") {
21
- writer.uint32(18).string(message.rcNumber);
21
+ writer.uint32(10).string(message.rcNumber);
22
22
  }
23
23
  return writer;
24
24
  },
@@ -29,8 +29,8 @@ exports.fetchRCProfileRequest = {
29
29
  while (reader.pos < end) {
30
30
  const tag = reader.uint32();
31
31
  switch (tag >>> 3) {
32
- case 2:
33
- if (tag !== 18) {
32
+ case 1:
33
+ if (tag !== 10) {
34
34
  break;
35
35
  }
36
36
  message.rcNumber = reader.string();
@@ -5,6 +5,7 @@ export interface locStatusRequest {
5
5
  }
6
6
  export interface locStatusResponse {
7
7
  status: boolean;
8
+ pending_loan_amount: number;
8
9
  }
9
10
  export declare const locStatusRequest: {
10
11
  encode(message: locStatusRequest, writer?: _m0.Writer): _m0.Writer;
@@ -63,13 +63,16 @@ exports.locStatusRequest = {
63
63
  },
64
64
  };
65
65
  function createBaselocStatusResponse() {
66
- return { status: false };
66
+ return { status: false, pending_loan_amount: 0 };
67
67
  }
68
68
  exports.locStatusResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
70
  if (message.status !== false) {
71
71
  writer.uint32(8).bool(message.status);
72
72
  }
73
+ if (message.pending_loan_amount !== 0) {
74
+ writer.uint32(21).float(message.pending_loan_amount);
75
+ }
73
76
  return writer;
74
77
  },
75
78
  decode(input, length) {
@@ -85,6 +88,12 @@ exports.locStatusResponse = {
85
88
  }
86
89
  message.status = reader.bool();
87
90
  continue;
91
+ case 2:
92
+ if (tag !== 21) {
93
+ break;
94
+ }
95
+ message.pending_loan_amount = reader.float();
96
+ continue;
88
97
  }
89
98
  if ((tag & 7) === 4 || tag === 0) {
90
99
  break;
@@ -94,13 +103,19 @@ exports.locStatusResponse = {
94
103
  return message;
95
104
  },
96
105
  fromJSON(object) {
97
- return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
106
+ return {
107
+ status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
108
+ pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
109
+ };
98
110
  },
99
111
  toJSON(message) {
100
112
  const obj = {};
101
113
  if (message.status !== false) {
102
114
  obj.status = message.status;
103
115
  }
116
+ if (message.pending_loan_amount !== 0) {
117
+ obj.pending_loan_amount = message.pending_loan_amount;
118
+ }
104
119
  return obj;
105
120
  },
106
121
  create(base) {
@@ -109,6 +124,7 @@ exports.locStatusResponse = {
109
124
  fromPartial(object) {
110
125
  const message = createBaselocStatusResponse();
111
126
  message.status = object.status ?? false;
127
+ message.pending_loan_amount = object.pending_loan_amount ?? 0;
112
128
  return message;
113
129
  },
114
130
  };