@stashfin/grpc 1.2.118 → 1.2.120

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.118",
3
+ "version": "1.2.120",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -83,13 +83,13 @@ export interface getCustomerByIdResponse {
83
83
  txn_rate?: number | undefined;
84
84
  }
85
85
  export interface Address {
86
- house_flat_no: string;
87
- address_line_1: string;
88
- address_line_2: string;
89
- landmark: string;
90
- city: string;
91
- state: string;
92
- pin_code: string;
86
+ house_flat_no?: string | undefined;
87
+ address_line_1?: string | undefined;
88
+ address_line_2?: string | undefined;
89
+ landmark?: string | undefined;
90
+ city?: string | undefined;
91
+ state?: string | undefined;
92
+ pin_code?: string | undefined;
93
93
  }
94
94
  export declare const getCustomerByIdRequest: {
95
95
  encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
@@ -1263,29 +1263,37 @@ exports.getCustomerByIdResponse = {
1263
1263
  },
1264
1264
  };
1265
1265
  function createBaseAddress() {
1266
- return { house_flat_no: "", address_line_1: "", address_line_2: "", landmark: "", city: "", state: "", pin_code: "" };
1266
+ return {
1267
+ house_flat_no: undefined,
1268
+ address_line_1: undefined,
1269
+ address_line_2: undefined,
1270
+ landmark: undefined,
1271
+ city: undefined,
1272
+ state: undefined,
1273
+ pin_code: undefined,
1274
+ };
1267
1275
  }
1268
1276
  exports.Address = {
1269
1277
  encode(message, writer = minimal_1.default.Writer.create()) {
1270
- if (message.house_flat_no !== "") {
1278
+ if (message.house_flat_no !== undefined) {
1271
1279
  writer.uint32(10).string(message.house_flat_no);
1272
1280
  }
1273
- if (message.address_line_1 !== "") {
1281
+ if (message.address_line_1 !== undefined) {
1274
1282
  writer.uint32(18).string(message.address_line_1);
1275
1283
  }
1276
- if (message.address_line_2 !== "") {
1284
+ if (message.address_line_2 !== undefined) {
1277
1285
  writer.uint32(26).string(message.address_line_2);
1278
1286
  }
1279
- if (message.landmark !== "") {
1287
+ if (message.landmark !== undefined) {
1280
1288
  writer.uint32(34).string(message.landmark);
1281
1289
  }
1282
- if (message.city !== "") {
1290
+ if (message.city !== undefined) {
1283
1291
  writer.uint32(42).string(message.city);
1284
1292
  }
1285
- if (message.state !== "") {
1293
+ if (message.state !== undefined) {
1286
1294
  writer.uint32(50).string(message.state);
1287
1295
  }
1288
- if (message.pin_code !== "") {
1296
+ if (message.pin_code !== undefined) {
1289
1297
  writer.uint32(58).string(message.pin_code);
1290
1298
  }
1291
1299
  return writer;
@@ -1349,36 +1357,36 @@ exports.Address = {
1349
1357
  },
1350
1358
  fromJSON(object) {
1351
1359
  return {
1352
- house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
1353
- address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
1354
- address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
1355
- landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
1356
- city: isSet(object.city) ? globalThis.String(object.city) : "",
1357
- state: isSet(object.state) ? globalThis.String(object.state) : "",
1358
- pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
1360
+ house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : undefined,
1361
+ address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : undefined,
1362
+ address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : undefined,
1363
+ landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : undefined,
1364
+ city: isSet(object.city) ? globalThis.String(object.city) : undefined,
1365
+ state: isSet(object.state) ? globalThis.String(object.state) : undefined,
1366
+ pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : undefined,
1359
1367
  };
1360
1368
  },
1361
1369
  toJSON(message) {
1362
1370
  const obj = {};
1363
- if (message.house_flat_no !== "") {
1371
+ if (message.house_flat_no !== undefined) {
1364
1372
  obj.house_flat_no = message.house_flat_no;
1365
1373
  }
1366
- if (message.address_line_1 !== "") {
1374
+ if (message.address_line_1 !== undefined) {
1367
1375
  obj.address_line_1 = message.address_line_1;
1368
1376
  }
1369
- if (message.address_line_2 !== "") {
1377
+ if (message.address_line_2 !== undefined) {
1370
1378
  obj.address_line_2 = message.address_line_2;
1371
1379
  }
1372
- if (message.landmark !== "") {
1380
+ if (message.landmark !== undefined) {
1373
1381
  obj.landmark = message.landmark;
1374
1382
  }
1375
- if (message.city !== "") {
1383
+ if (message.city !== undefined) {
1376
1384
  obj.city = message.city;
1377
1385
  }
1378
- if (message.state !== "") {
1386
+ if (message.state !== undefined) {
1379
1387
  obj.state = message.state;
1380
1388
  }
1381
- if (message.pin_code !== "") {
1389
+ if (message.pin_code !== undefined) {
1382
1390
  obj.pin_code = message.pin_code;
1383
1391
  }
1384
1392
  return obj;
@@ -1388,13 +1396,13 @@ exports.Address = {
1388
1396
  },
1389
1397
  fromPartial(object) {
1390
1398
  const message = createBaseAddress();
1391
- message.house_flat_no = object.house_flat_no ?? "";
1392
- message.address_line_1 = object.address_line_1 ?? "";
1393
- message.address_line_2 = object.address_line_2 ?? "";
1394
- message.landmark = object.landmark ?? "";
1395
- message.city = object.city ?? "";
1396
- message.state = object.state ?? "";
1397
- message.pin_code = object.pin_code ?? "";
1399
+ message.house_flat_no = object.house_flat_no ?? undefined;
1400
+ message.address_line_1 = object.address_line_1 ?? undefined;
1401
+ message.address_line_2 = object.address_line_2 ?? undefined;
1402
+ message.landmark = object.landmark ?? undefined;
1403
+ message.city = object.city ?? undefined;
1404
+ message.state = object.state ?? undefined;
1405
+ message.pin_code = object.pin_code ?? undefined;
1398
1406
  return message;
1399
1407
  },
1400
1408
  };