@stashfin/grpc 1.2.834 → 1.2.836

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.834",
3
+ "version": "1.2.836",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -7,6 +7,7 @@ export interface bureauRequest {
7
7
  source: string;
8
8
  pull_type: number;
9
9
  short_pull?: boolean | undefined;
10
+ request_id?: string | undefined;
10
11
  }
11
12
  export interface bureauResponse {
12
13
  status: string;
@@ -14,7 +14,15 @@ const long_1 = __importDefault(require("long"));
14
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
15
15
  exports.protobufPackage = "bureau.getreport";
16
16
  function createBasebureauRequest() {
17
- return { customer_id: 0, range: 0, bureau_type: 0, source: "", pull_type: 0, short_pull: undefined };
17
+ return {
18
+ customer_id: 0,
19
+ range: 0,
20
+ bureau_type: 0,
21
+ source: "",
22
+ pull_type: 0,
23
+ short_pull: undefined,
24
+ request_id: undefined,
25
+ };
18
26
  }
19
27
  exports.bureauRequest = {
20
28
  encode(message, writer = minimal_1.default.Writer.create()) {
@@ -36,6 +44,9 @@ exports.bureauRequest = {
36
44
  if (message.short_pull !== undefined) {
37
45
  writer.uint32(48).bool(message.short_pull);
38
46
  }
47
+ if (message.request_id !== undefined) {
48
+ writer.uint32(58).string(message.request_id);
49
+ }
39
50
  return writer;
40
51
  },
41
52
  decode(input, length) {
@@ -81,6 +92,12 @@ exports.bureauRequest = {
81
92
  }
82
93
  message.short_pull = reader.bool();
83
94
  continue;
95
+ case 7:
96
+ if (tag !== 58) {
97
+ break;
98
+ }
99
+ message.request_id = reader.string();
100
+ continue;
84
101
  }
85
102
  if ((tag & 7) === 4 || tag === 0) {
86
103
  break;
@@ -97,6 +114,7 @@ exports.bureauRequest = {
97
114
  source: isSet(object.source) ? globalThis.String(object.source) : "",
98
115
  pull_type: isSet(object.pull_type) ? globalThis.Number(object.pull_type) : 0,
99
116
  short_pull: isSet(object.short_pull) ? globalThis.Boolean(object.short_pull) : undefined,
117
+ request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : undefined,
100
118
  };
101
119
  },
102
120
  toJSON(message) {
@@ -119,6 +137,9 @@ exports.bureauRequest = {
119
137
  if (message.short_pull !== undefined) {
120
138
  obj.short_pull = message.short_pull;
121
139
  }
140
+ if (message.request_id !== undefined) {
141
+ obj.request_id = message.request_id;
142
+ }
122
143
  return obj;
123
144
  },
124
145
  create(base) {
@@ -132,6 +153,7 @@ exports.bureauRequest = {
132
153
  message.source = object.source ?? "";
133
154
  message.pull_type = object.pull_type ?? 0;
134
155
  message.short_pull = object.short_pull ?? undefined;
156
+ message.request_id = object.request_id ?? undefined;
135
157
  return message;
136
158
  },
137
159
  };
@@ -18,6 +18,7 @@ export interface getCustomerByIdResponse {
18
18
  dob?: string | undefined;
19
19
  credit_score?: number | undefined;
20
20
  is_bureau_fetched: boolean;
21
+ next_step?: string | undefined;
21
22
  }
22
23
  export declare const getCustomerByIdRequest: {
23
24
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -79,6 +79,7 @@ function createBasegetCustomerByIdResponse() {
79
79
  dob: undefined,
80
80
  credit_score: undefined,
81
81
  is_bureau_fetched: false,
82
+ next_step: undefined,
82
83
  };
83
84
  }
84
85
  exports.getCustomerByIdResponse = {
@@ -125,6 +126,9 @@ exports.getCustomerByIdResponse = {
125
126
  if (message.is_bureau_fetched !== false) {
126
127
  writer.uint32(112).bool(message.is_bureau_fetched);
127
128
  }
129
+ if (message.next_step !== undefined) {
130
+ writer.uint32(122).string(message.next_step);
131
+ }
128
132
  return writer;
129
133
  },
130
134
  decode(input, length) {
@@ -218,6 +222,12 @@ exports.getCustomerByIdResponse = {
218
222
  }
219
223
  message.is_bureau_fetched = reader.bool();
220
224
  continue;
225
+ case 15:
226
+ if (tag !== 122) {
227
+ break;
228
+ }
229
+ message.next_step = reader.string();
230
+ continue;
221
231
  }
222
232
  if ((tag & 7) === 4 || tag === 0) {
223
233
  break;
@@ -242,6 +252,7 @@ exports.getCustomerByIdResponse = {
242
252
  dob: isSet(object.dob) ? globalThis.String(object.dob) : undefined,
243
253
  credit_score: isSet(object.credit_score) ? globalThis.Number(object.credit_score) : undefined,
244
254
  is_bureau_fetched: isSet(object.is_bureau_fetched) ? globalThis.Boolean(object.is_bureau_fetched) : false,
255
+ next_step: isSet(object.next_step) ? globalThis.String(object.next_step) : undefined,
245
256
  };
246
257
  },
247
258
  toJSON(message) {
@@ -288,6 +299,9 @@ exports.getCustomerByIdResponse = {
288
299
  if (message.is_bureau_fetched !== false) {
289
300
  obj.is_bureau_fetched = message.is_bureau_fetched;
290
301
  }
302
+ if (message.next_step !== undefined) {
303
+ obj.next_step = message.next_step;
304
+ }
291
305
  return obj;
292
306
  },
293
307
  create(base) {
@@ -309,6 +323,7 @@ exports.getCustomerByIdResponse = {
309
323
  message.dob = object.dob ?? undefined;
310
324
  message.credit_score = object.credit_score ?? undefined;
311
325
  message.is_bureau_fetched = object.is_bureau_fetched ?? false;
326
+ message.next_step = object.next_step ?? undefined;
312
327
  return message;
313
328
  },
314
329
  };