@stashfin/grpc 1.2.90 → 1.2.91

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.90",
3
+ "version": "1.2.91",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -7,10 +7,9 @@ export interface initiateRequest {
7
7
  }
8
8
  export interface initiateResponse {
9
9
  journey_type: string;
10
- mon_reference_id: string;
11
- und_reference_id: string;
12
- mon_redirection_url: string;
13
- und_redirection_url: string;
10
+ monitoring_reference_id: string;
11
+ underwriting_reference_id: string;
12
+ redirection_url: string;
14
13
  }
15
14
  export declare const initiateRequest: {
16
15
  encode(message: initiateRequest, writer?: _m0.Writer): _m0.Writer;
@@ -94,30 +94,21 @@ exports.initiateRequest = {
94
94
  },
95
95
  };
96
96
  function createBaseinitiateResponse() {
97
- return {
98
- journey_type: "",
99
- mon_reference_id: "",
100
- und_reference_id: "",
101
- mon_redirection_url: "",
102
- und_redirection_url: "",
103
- };
97
+ return { journey_type: "", monitoring_reference_id: "", underwriting_reference_id: "", redirection_url: "" };
104
98
  }
105
99
  exports.initiateResponse = {
106
100
  encode(message, writer = minimal_1.default.Writer.create()) {
107
101
  if (message.journey_type !== "") {
108
102
  writer.uint32(10).string(message.journey_type);
109
103
  }
110
- if (message.mon_reference_id !== "") {
111
- writer.uint32(18).string(message.mon_reference_id);
104
+ if (message.monitoring_reference_id !== "") {
105
+ writer.uint32(18).string(message.monitoring_reference_id);
112
106
  }
113
- if (message.und_reference_id !== "") {
114
- writer.uint32(26).string(message.und_reference_id);
107
+ if (message.underwriting_reference_id !== "") {
108
+ writer.uint32(26).string(message.underwriting_reference_id);
115
109
  }
116
- if (message.mon_redirection_url !== "") {
117
- writer.uint32(34).string(message.mon_redirection_url);
118
- }
119
- if (message.und_redirection_url !== "") {
120
- writer.uint32(42).string(message.und_redirection_url);
110
+ if (message.redirection_url !== "") {
111
+ writer.uint32(34).string(message.redirection_url);
121
112
  }
122
113
  return writer;
123
114
  },
@@ -138,25 +129,19 @@ exports.initiateResponse = {
138
129
  if (tag !== 18) {
139
130
  break;
140
131
  }
141
- message.mon_reference_id = reader.string();
132
+ message.monitoring_reference_id = reader.string();
142
133
  continue;
143
134
  case 3:
144
135
  if (tag !== 26) {
145
136
  break;
146
137
  }
147
- message.und_reference_id = reader.string();
138
+ message.underwriting_reference_id = reader.string();
148
139
  continue;
149
140
  case 4:
150
141
  if (tag !== 34) {
151
142
  break;
152
143
  }
153
- message.mon_redirection_url = reader.string();
154
- continue;
155
- case 5:
156
- if (tag !== 42) {
157
- break;
158
- }
159
- message.und_redirection_url = reader.string();
144
+ message.redirection_url = reader.string();
160
145
  continue;
161
146
  }
162
147
  if ((tag & 7) === 4 || tag === 0) {
@@ -169,10 +154,13 @@ exports.initiateResponse = {
169
154
  fromJSON(object) {
170
155
  return {
171
156
  journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
172
- mon_reference_id: isSet(object.mon_reference_id) ? globalThis.String(object.mon_reference_id) : "",
173
- und_reference_id: isSet(object.und_reference_id) ? globalThis.String(object.und_reference_id) : "",
174
- mon_redirection_url: isSet(object.mon_redirection_url) ? globalThis.String(object.mon_redirection_url) : "",
175
- und_redirection_url: isSet(object.und_redirection_url) ? globalThis.String(object.und_redirection_url) : "",
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) : "",
176
164
  };
177
165
  },
178
166
  toJSON(message) {
@@ -180,17 +168,14 @@ exports.initiateResponse = {
180
168
  if (message.journey_type !== "") {
181
169
  obj.journey_type = message.journey_type;
182
170
  }
183
- if (message.mon_reference_id !== "") {
184
- obj.mon_reference_id = message.mon_reference_id;
185
- }
186
- if (message.und_reference_id !== "") {
187
- obj.und_reference_id = message.und_reference_id;
171
+ if (message.monitoring_reference_id !== "") {
172
+ obj.monitoring_reference_id = message.monitoring_reference_id;
188
173
  }
189
- if (message.mon_redirection_url !== "") {
190
- obj.mon_redirection_url = message.mon_redirection_url;
174
+ if (message.underwriting_reference_id !== "") {
175
+ obj.underwriting_reference_id = message.underwriting_reference_id;
191
176
  }
192
- if (message.und_redirection_url !== "") {
193
- obj.und_redirection_url = message.und_redirection_url;
177
+ if (message.redirection_url !== "") {
178
+ obj.redirection_url = message.redirection_url;
194
179
  }
195
180
  return obj;
196
181
  },
@@ -200,10 +185,9 @@ exports.initiateResponse = {
200
185
  fromPartial(object) {
201
186
  const message = createBaseinitiateResponse();
202
187
  message.journey_type = object.journey_type ?? "";
203
- message.mon_reference_id = object.mon_reference_id ?? "";
204
- message.und_reference_id = object.und_reference_id ?? "";
205
- message.mon_redirection_url = object.mon_redirection_url ?? "";
206
- message.und_redirection_url = object.und_redirection_url ?? "";
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 ?? "";
207
191
  return message;
208
192
  },
209
193
  };