@stashfin/grpc 1.2.613 → 1.2.615

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.613",
3
+ "version": "1.2.615",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -16,10 +16,10 @@ export interface shortUrlData {
16
16
  redirect_url: string;
17
17
  is_active: number;
18
18
  user_id: number;
19
- offer_type: string;
19
+ offer_type?: string | undefined;
20
20
  expire_date: string;
21
21
  create_date: string;
22
- landing_page: string;
22
+ landing_page?: string | undefined;
23
23
  }
24
24
  export declare const GetSelfieRedirectionUrlRequest: {
25
25
  encode(message: GetSelfieRedirectionUrlRequest, writer?: _m0.Writer): _m0.Writer;
@@ -197,10 +197,10 @@ function createBaseshortUrlData() {
197
197
  redirect_url: "",
198
198
  is_active: 0,
199
199
  user_id: 0,
200
- offer_type: "",
200
+ offer_type: undefined,
201
201
  expire_date: "",
202
202
  create_date: "",
203
- landing_page: "",
203
+ landing_page: undefined,
204
204
  };
205
205
  }
206
206
  exports.shortUrlData = {
@@ -217,7 +217,7 @@ exports.shortUrlData = {
217
217
  if (message.user_id !== 0) {
218
218
  writer.uint32(32).int32(message.user_id);
219
219
  }
220
- if (message.offer_type !== "") {
220
+ if (message.offer_type !== undefined) {
221
221
  writer.uint32(42).string(message.offer_type);
222
222
  }
223
223
  if (message.expire_date !== "") {
@@ -226,7 +226,7 @@ exports.shortUrlData = {
226
226
  if (message.create_date !== "") {
227
227
  writer.uint32(58).string(message.create_date);
228
228
  }
229
- if (message.landing_page !== "") {
229
+ if (message.landing_page !== undefined) {
230
230
  writer.uint32(66).string(message.landing_page);
231
231
  }
232
232
  return writer;
@@ -300,10 +300,10 @@ exports.shortUrlData = {
300
300
  redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
301
301
  is_active: isSet(object.is_active) ? globalThis.Number(object.is_active) : 0,
302
302
  user_id: isSet(object.user_id) ? globalThis.Number(object.user_id) : 0,
303
- offer_type: isSet(object.offer_type) ? globalThis.String(object.offer_type) : "",
303
+ offer_type: isSet(object.offer_type) ? globalThis.String(object.offer_type) : undefined,
304
304
  expire_date: isSet(object.expire_date) ? globalThis.String(object.expire_date) : "",
305
305
  create_date: isSet(object.create_date) ? globalThis.String(object.create_date) : "",
306
- landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
306
+ landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : undefined,
307
307
  };
308
308
  },
309
309
  toJSON(message) {
@@ -320,7 +320,7 @@ exports.shortUrlData = {
320
320
  if (message.user_id !== 0) {
321
321
  obj.user_id = Math.round(message.user_id);
322
322
  }
323
- if (message.offer_type !== "") {
323
+ if (message.offer_type !== undefined) {
324
324
  obj.offer_type = message.offer_type;
325
325
  }
326
326
  if (message.expire_date !== "") {
@@ -329,7 +329,7 @@ exports.shortUrlData = {
329
329
  if (message.create_date !== "") {
330
330
  obj.create_date = message.create_date;
331
331
  }
332
- if (message.landing_page !== "") {
332
+ if (message.landing_page !== undefined) {
333
333
  obj.landing_page = message.landing_page;
334
334
  }
335
335
  return obj;
@@ -343,10 +343,10 @@ exports.shortUrlData = {
343
343
  message.redirect_url = object.redirect_url ?? "";
344
344
  message.is_active = object.is_active ?? 0;
345
345
  message.user_id = object.user_id ?? 0;
346
- message.offer_type = object.offer_type ?? "";
346
+ message.offer_type = object.offer_type ?? undefined;
347
347
  message.expire_date = object.expire_date ?? "";
348
348
  message.create_date = object.create_date ?? "";
349
- message.landing_page = object.landing_page ?? "";
349
+ message.landing_page = object.landing_page ?? undefined;
350
350
  return message;
351
351
  },
352
352
  };
@@ -30,7 +30,7 @@ function createBaseGetLocConfirmRequest() {
30
30
  exports.GetLocConfirmRequest = {
31
31
  encode(message, writer = minimal_1.default.Writer.create()) {
32
32
  if (message.amount !== 0) {
33
- writer.uint32(8).int32(message.amount);
33
+ writer.uint32(9).double(message.amount);
34
34
  }
35
35
  if (message.tenure !== 0) {
36
36
  writer.uint32(16).int32(message.tenure);
@@ -72,10 +72,10 @@ exports.GetLocConfirmRequest = {
72
72
  const tag = reader.uint32();
73
73
  switch (tag >>> 3) {
74
74
  case 1:
75
- if (tag !== 8) {
75
+ if (tag !== 9) {
76
76
  break;
77
77
  }
78
- message.amount = reader.int32();
78
+ message.amount = reader.double();
79
79
  continue;
80
80
  case 2:
81
81
  if (tag !== 16) {
@@ -163,7 +163,7 @@ exports.GetLocConfirmRequest = {
163
163
  toJSON(message) {
164
164
  const obj = {};
165
165
  if (message.amount !== 0) {
166
- obj.amount = Math.round(message.amount);
166
+ obj.amount = message.amount;
167
167
  }
168
168
  if (message.tenure !== 0) {
169
169
  obj.tenure = Math.round(message.tenure);