@stashfin/grpc 1.2.650 → 1.2.651

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.650",
3
+ "version": "1.2.651",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -27,13 +27,9 @@ export interface Items {
27
27
  app_version?: string | undefined;
28
28
  badge?: string | undefined;
29
29
  action_type?: string | undefined;
30
- items_metadata?: {
31
- [key: string]: any;
32
- } | undefined;
30
+ items_metadata?: string | undefined;
33
31
  item_sequence?: number | undefined;
34
- rules?: {
35
- [key: string]: any;
36
- } | undefined;
32
+ rules?: string | undefined;
37
33
  }
38
34
  export declare const getDashboardRequest: {
39
35
  encode(_: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
@@ -11,7 +11,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.Items = exports.Block = exports.Block_groups = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
- const struct_1 = require("../google/protobuf/struct");
15
14
  exports.protobufPackage = "eqxcustomers.getdashboard";
16
15
  function createBasegetDashboardRequest() {
17
16
  return {};
@@ -353,13 +352,13 @@ exports.Items = {
353
352
  writer.uint32(66).string(message.action_type);
354
353
  }
355
354
  if (message.items_metadata !== undefined) {
356
- struct_1.Struct.encode(struct_1.Struct.wrap(message.items_metadata), writer.uint32(74).fork()).ldelim();
355
+ writer.uint32(74).string(message.items_metadata);
357
356
  }
358
357
  if (message.item_sequence !== undefined) {
359
358
  writer.uint32(80).int32(message.item_sequence);
360
359
  }
361
360
  if (message.rules !== undefined) {
362
- struct_1.Struct.encode(struct_1.Struct.wrap(message.rules), writer.uint32(90).fork()).ldelim();
361
+ writer.uint32(90).string(message.rules);
363
362
  }
364
363
  return writer;
365
364
  },
@@ -422,7 +421,7 @@ exports.Items = {
422
421
  if (tag !== 74) {
423
422
  break;
424
423
  }
425
- message.items_metadata = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
424
+ message.items_metadata = reader.string();
426
425
  continue;
427
426
  case 10:
428
427
  if (tag !== 80) {
@@ -434,7 +433,7 @@ exports.Items = {
434
433
  if (tag !== 90) {
435
434
  break;
436
435
  }
437
- message.rules = struct_1.Struct.unwrap(struct_1.Struct.decode(reader, reader.uint32()));
436
+ message.rules = reader.string();
438
437
  continue;
439
438
  }
440
439
  if ((tag & 7) === 4 || tag === 0) {
@@ -454,9 +453,9 @@ exports.Items = {
454
453
  app_version: isSet(object.app_version) ? globalThis.String(object.app_version) : undefined,
455
454
  badge: isSet(object.badge) ? globalThis.String(object.badge) : undefined,
456
455
  action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : undefined,
457
- items_metadata: isObject(object.items_metadata) ? object.items_metadata : undefined,
456
+ items_metadata: isSet(object.items_metadata) ? globalThis.String(object.items_metadata) : undefined,
458
457
  item_sequence: isSet(object.item_sequence) ? globalThis.Number(object.item_sequence) : undefined,
459
- rules: isObject(object.rules) ? object.rules : undefined,
458
+ rules: isSet(object.rules) ? globalThis.String(object.rules) : undefined,
460
459
  };
461
460
  },
462
461
  toJSON(message) {
@@ -515,9 +514,6 @@ exports.Items = {
515
514
  return message;
516
515
  },
517
516
  };
518
- function isObject(value) {
519
- return typeof value === "object" && value !== null;
520
- }
521
517
  function isSet(value) {
522
518
  return value !== null && value !== undefined;
523
519
  }