@stashfin/grpc 1.2.651 → 1.2.653

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.651",
3
+ "version": "1.2.653",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,11 +1,12 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "eqxcustomers.getdashboard";
3
3
  export interface getDashboardRequest {
4
+ product_page: string;
4
5
  }
5
6
  export interface getDashboardResponse {
6
- groups: Block_groups[];
7
+ groups: BlockGroups[];
7
8
  }
8
- export interface Block_groups {
9
+ export interface BlockGroups {
9
10
  group_name: string;
10
11
  seq_no?: number | undefined;
11
12
  blocks: Block[];
@@ -32,12 +33,12 @@ export interface Items {
32
33
  rules?: string | undefined;
33
34
  }
34
35
  export declare const getDashboardRequest: {
35
- encode(_: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
36
+ encode(message: getDashboardRequest, writer?: _m0.Writer): _m0.Writer;
36
37
  decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardRequest;
37
- fromJSON(_: any): getDashboardRequest;
38
- toJSON(_: getDashboardRequest): unknown;
38
+ fromJSON(object: any): getDashboardRequest;
39
+ toJSON(message: getDashboardRequest): unknown;
39
40
  create<I extends Exact<DeepPartial<getDashboardRequest>, I>>(base?: I): getDashboardRequest;
40
- fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(_: I): getDashboardRequest;
41
+ fromPartial<I extends Exact<DeepPartial<getDashboardRequest>, I>>(object: I): getDashboardRequest;
41
42
  };
42
43
  export declare const getDashboardResponse: {
43
44
  encode(message: getDashboardResponse, writer?: _m0.Writer): _m0.Writer;
@@ -47,13 +48,13 @@ export declare const getDashboardResponse: {
47
48
  create<I extends Exact<DeepPartial<getDashboardResponse>, I>>(base?: I): getDashboardResponse;
48
49
  fromPartial<I extends Exact<DeepPartial<getDashboardResponse>, I>>(object: I): getDashboardResponse;
49
50
  };
50
- export declare const Block_groups: {
51
- encode(message: Block_groups, writer?: _m0.Writer): _m0.Writer;
52
- decode(input: _m0.Reader | Uint8Array, length?: number): Block_groups;
53
- fromJSON(object: any): Block_groups;
54
- toJSON(message: Block_groups): unknown;
55
- create<I extends Exact<DeepPartial<Block_groups>, I>>(base?: I): Block_groups;
56
- fromPartial<I extends Exact<DeepPartial<Block_groups>, I>>(object: I): Block_groups;
51
+ export declare const BlockGroups: {
52
+ encode(message: BlockGroups, writer?: _m0.Writer): _m0.Writer;
53
+ decode(input: _m0.Reader | Uint8Array, length?: number): BlockGroups;
54
+ fromJSON(object: any): BlockGroups;
55
+ toJSON(message: BlockGroups): unknown;
56
+ create<I extends Exact<DeepPartial<BlockGroups>, I>>(base?: I): BlockGroups;
57
+ fromPartial<I extends Exact<DeepPartial<BlockGroups>, I>>(object: I): BlockGroups;
57
58
  };
58
59
  export declare const Block: {
59
60
  encode(message: Block, writer?: _m0.Writer): _m0.Writer;
@@ -8,15 +8,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.Items = exports.Block = exports.Block_groups = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
11
+ exports.Items = exports.Block = exports.BlockGroups = exports.getDashboardResponse = exports.getDashboardRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "eqxcustomers.getdashboard";
15
15
  function createBasegetDashboardRequest() {
16
- return {};
16
+ return { product_page: "" };
17
17
  }
18
18
  exports.getDashboardRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.product_page !== "") {
21
+ writer.uint32(10).string(message.product_page);
22
+ }
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
@@ -26,6 +29,12 @@ exports.getDashboardRequest = {
26
29
  while (reader.pos < end) {
27
30
  const tag = reader.uint32();
28
31
  switch (tag >>> 3) {
32
+ case 1:
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.product_page = reader.string();
37
+ continue;
29
38
  }
30
39
  if ((tag & 7) === 4 || tag === 0) {
31
40
  break;
@@ -34,18 +43,22 @@ exports.getDashboardRequest = {
34
43
  }
35
44
  return message;
36
45
  },
37
- fromJSON(_) {
38
- return {};
46
+ fromJSON(object) {
47
+ return { product_page: isSet(object.product_page) ? globalThis.String(object.product_page) : "" };
39
48
  },
40
- toJSON(_) {
49
+ toJSON(message) {
41
50
  const obj = {};
51
+ if (message.product_page !== "") {
52
+ obj.product_page = message.product_page;
53
+ }
42
54
  return obj;
43
55
  },
44
56
  create(base) {
45
57
  return exports.getDashboardRequest.fromPartial(base ?? {});
46
58
  },
47
- fromPartial(_) {
59
+ fromPartial(object) {
48
60
  const message = createBasegetDashboardRequest();
61
+ message.product_page = object.product_page ?? "";
49
62
  return message;
50
63
  },
51
64
  };
@@ -55,7 +68,7 @@ function createBasegetDashboardResponse() {
55
68
  exports.getDashboardResponse = {
56
69
  encode(message, writer = minimal_1.default.Writer.create()) {
57
70
  for (const v of message.groups) {
58
- exports.Block_groups.encode(v, writer.uint32(10).fork()).ldelim();
71
+ exports.BlockGroups.encode(v, writer.uint32(10).fork()).ldelim();
59
72
  }
60
73
  return writer;
61
74
  },
@@ -70,7 +83,7 @@ exports.getDashboardResponse = {
70
83
  if (tag !== 10) {
71
84
  break;
72
85
  }
73
- message.groups.push(exports.Block_groups.decode(reader, reader.uint32()));
86
+ message.groups.push(exports.BlockGroups.decode(reader, reader.uint32()));
74
87
  continue;
75
88
  }
76
89
  if ((tag & 7) === 4 || tag === 0) {
@@ -82,13 +95,13 @@ exports.getDashboardResponse = {
82
95
  },
83
96
  fromJSON(object) {
84
97
  return {
85
- groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e) => exports.Block_groups.fromJSON(e)) : [],
98
+ groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e) => exports.BlockGroups.fromJSON(e)) : [],
86
99
  };
87
100
  },
88
101
  toJSON(message) {
89
102
  const obj = {};
90
103
  if (message.groups?.length) {
91
- obj.groups = message.groups.map((e) => exports.Block_groups.toJSON(e));
104
+ obj.groups = message.groups.map((e) => exports.BlockGroups.toJSON(e));
92
105
  }
93
106
  return obj;
94
107
  },
@@ -97,14 +110,14 @@ exports.getDashboardResponse = {
97
110
  },
98
111
  fromPartial(object) {
99
112
  const message = createBasegetDashboardResponse();
100
- message.groups = object.groups?.map((e) => exports.Block_groups.fromPartial(e)) || [];
113
+ message.groups = object.groups?.map((e) => exports.BlockGroups.fromPartial(e)) || [];
101
114
  return message;
102
115
  },
103
116
  };
104
- function createBaseBlock_groups() {
117
+ function createBaseBlockGroups() {
105
118
  return { group_name: "", seq_no: undefined, blocks: [] };
106
119
  }
107
- exports.Block_groups = {
120
+ exports.BlockGroups = {
108
121
  encode(message, writer = minimal_1.default.Writer.create()) {
109
122
  if (message.group_name !== "") {
110
123
  writer.uint32(10).string(message.group_name);
@@ -120,7 +133,7 @@ exports.Block_groups = {
120
133
  decode(input, length) {
121
134
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
122
135
  let end = length === undefined ? reader.len : reader.pos + length;
123
- const message = createBaseBlock_groups();
136
+ const message = createBaseBlockGroups();
124
137
  while (reader.pos < end) {
125
138
  const tag = reader.uint32();
126
139
  switch (tag >>> 3) {
@@ -171,10 +184,10 @@ exports.Block_groups = {
171
184
  return obj;
172
185
  },
173
186
  create(base) {
174
- return exports.Block_groups.fromPartial(base ?? {});
187
+ return exports.BlockGroups.fromPartial(base ?? {});
175
188
  },
176
189
  fromPartial(object) {
177
- const message = createBaseBlock_groups();
190
+ const message = createBaseBlockGroups();
178
191
  message.group_name = object.group_name ?? "";
179
192
  message.seq_no = object.seq_no ?? undefined;
180
193
  message.blocks = object.blocks?.map((e) => exports.Block.fromPartial(e)) || [];