@stashfin/grpc 1.2.848 → 1.2.849

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.848",
3
+ "version": "1.2.849",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -8,7 +8,7 @@ export interface getAllBbpsTnxRequest {
8
8
  bbps_ref_no?: string | undefined;
9
9
  start_date?: string | undefined;
10
10
  end_date?: string | undefined;
11
- category?: string | undefined;
11
+ category: string[];
12
12
  isDownload?: boolean | undefined;
13
13
  status?: string | undefined;
14
14
  customer_id?: string | undefined;
@@ -20,7 +20,7 @@ function createBasegetAllBbpsTnxRequest() {
20
20
  bbps_ref_no: undefined,
21
21
  start_date: undefined,
22
22
  end_date: undefined,
23
- category: undefined,
23
+ category: [],
24
24
  isDownload: undefined,
25
25
  status: undefined,
26
26
  customer_id: undefined,
@@ -47,8 +47,8 @@ exports.getAllBbpsTnxRequest = {
47
47
  if (message.end_date !== undefined) {
48
48
  writer.uint32(50).string(message.end_date);
49
49
  }
50
- if (message.category !== undefined) {
51
- writer.uint32(58).string(message.category);
50
+ for (const v of message.category) {
51
+ writer.uint32(58).string(v);
52
52
  }
53
53
  if (message.isDownload !== undefined) {
54
54
  writer.uint32(64).bool(message.isDownload);
@@ -111,7 +111,7 @@ exports.getAllBbpsTnxRequest = {
111
111
  if (tag !== 58) {
112
112
  break;
113
113
  }
114
- message.category = reader.string();
114
+ message.category.push(reader.string());
115
115
  continue;
116
116
  case 8:
117
117
  if (tag !== 64) {
@@ -153,7 +153,7 @@ exports.getAllBbpsTnxRequest = {
153
153
  bbps_ref_no: isSet(object.bbps_ref_no) ? globalThis.String(object.bbps_ref_no) : undefined,
154
154
  start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : undefined,
155
155
  end_date: isSet(object.end_date) ? globalThis.String(object.end_date) : undefined,
156
- category: isSet(object.category) ? globalThis.String(object.category) : undefined,
156
+ category: globalThis.Array.isArray(object?.category) ? object.category.map((e) => globalThis.String(e)) : [],
157
157
  isDownload: isSet(object.isDownload) ? globalThis.Boolean(object.isDownload) : undefined,
158
158
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
159
159
  customer_id: isSet(object.customer_id) ? globalThis.String(object.customer_id) : undefined,
@@ -182,7 +182,7 @@ exports.getAllBbpsTnxRequest = {
182
182
  if (message.end_date !== undefined) {
183
183
  obj.end_date = message.end_date;
184
184
  }
185
- if (message.category !== undefined) {
185
+ if (message.category?.length) {
186
186
  obj.category = message.category;
187
187
  }
188
188
  if (message.isDownload !== undefined) {
@@ -210,7 +210,7 @@ exports.getAllBbpsTnxRequest = {
210
210
  message.bbps_ref_no = object.bbps_ref_no ?? undefined;
211
211
  message.start_date = object.start_date ?? undefined;
212
212
  message.end_date = object.end_date ?? undefined;
213
- message.category = object.category ?? undefined;
213
+ message.category = object.category?.map((e) => e) || [];
214
214
  message.isDownload = object.isDownload ?? undefined;
215
215
  message.status = object.status ?? undefined;
216
216
  message.customer_id = object.customer_id ?? undefined;
@@ -2,11 +2,8 @@ import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "bbps.getallcategory";
3
3
  export interface getAllCategoryRequest {
4
4
  }
5
- export interface Category {
6
- name: string;
7
- }
8
5
  export interface getAllCategoryResponse {
9
- categories: Category[];
6
+ categories: string[];
10
7
  }
11
8
  export declare const getAllCategoryRequest: {
12
9
  encode(_: getAllCategoryRequest, writer?: _m0.Writer): _m0.Writer;
@@ -16,14 +13,6 @@ export declare const getAllCategoryRequest: {
16
13
  create<I extends Exact<DeepPartial<getAllCategoryRequest>, I>>(base?: I): getAllCategoryRequest;
17
14
  fromPartial<I extends Exact<DeepPartial<getAllCategoryRequest>, I>>(_: I): getAllCategoryRequest;
18
15
  };
19
- export declare const Category: {
20
- encode(message: Category, writer?: _m0.Writer): _m0.Writer;
21
- decode(input: _m0.Reader | Uint8Array, length?: number): Category;
22
- fromJSON(object: any): Category;
23
- toJSON(message: Category): unknown;
24
- create<I extends Exact<DeepPartial<Category>, I>>(base?: I): Category;
25
- fromPartial<I extends Exact<DeepPartial<Category>, I>>(object: I): Category;
26
- };
27
16
  export declare const getAllCategoryResponse: {
28
17
  encode(message: getAllCategoryResponse, writer?: _m0.Writer): _m0.Writer;
29
18
  decode(input: _m0.Reader | Uint8Array, length?: number): getAllCategoryResponse;
@@ -8,7 +8,7 @@ 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.getAllCategoryResponse = exports.Category = exports.getAllCategoryRequest = exports.protobufPackage = void 0;
11
+ exports.getAllCategoryResponse = exports.getAllCategoryRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "bbps.getallcategory";
@@ -49,63 +49,13 @@ exports.getAllCategoryRequest = {
49
49
  return message;
50
50
  },
51
51
  };
52
- function createBaseCategory() {
53
- return { name: "" };
54
- }
55
- exports.Category = {
56
- encode(message, writer = minimal_1.default.Writer.create()) {
57
- if (message.name !== "") {
58
- writer.uint32(10).string(message.name);
59
- }
60
- return writer;
61
- },
62
- decode(input, length) {
63
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
64
- let end = length === undefined ? reader.len : reader.pos + length;
65
- const message = createBaseCategory();
66
- while (reader.pos < end) {
67
- const tag = reader.uint32();
68
- switch (tag >>> 3) {
69
- case 1:
70
- if (tag !== 10) {
71
- break;
72
- }
73
- message.name = reader.string();
74
- continue;
75
- }
76
- if ((tag & 7) === 4 || tag === 0) {
77
- break;
78
- }
79
- reader.skipType(tag & 7);
80
- }
81
- return message;
82
- },
83
- fromJSON(object) {
84
- return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
85
- },
86
- toJSON(message) {
87
- const obj = {};
88
- if (message.name !== "") {
89
- obj.name = message.name;
90
- }
91
- return obj;
92
- },
93
- create(base) {
94
- return exports.Category.fromPartial(base ?? {});
95
- },
96
- fromPartial(object) {
97
- const message = createBaseCategory();
98
- message.name = object.name ?? "";
99
- return message;
100
- },
101
- };
102
52
  function createBasegetAllCategoryResponse() {
103
53
  return { categories: [] };
104
54
  }
105
55
  exports.getAllCategoryResponse = {
106
56
  encode(message, writer = minimal_1.default.Writer.create()) {
107
57
  for (const v of message.categories) {
108
- exports.Category.encode(v, writer.uint32(10).fork()).ldelim();
58
+ writer.uint32(10).string(v);
109
59
  }
110
60
  return writer;
111
61
  },
@@ -120,7 +70,7 @@ exports.getAllCategoryResponse = {
120
70
  if (tag !== 10) {
121
71
  break;
122
72
  }
123
- message.categories.push(exports.Category.decode(reader, reader.uint32()));
73
+ message.categories.push(reader.string());
124
74
  continue;
125
75
  }
126
76
  if ((tag & 7) === 4 || tag === 0) {
@@ -133,14 +83,14 @@ exports.getAllCategoryResponse = {
133
83
  fromJSON(object) {
134
84
  return {
135
85
  categories: globalThis.Array.isArray(object?.categories)
136
- ? object.categories.map((e) => exports.Category.fromJSON(e))
86
+ ? object.categories.map((e) => globalThis.String(e))
137
87
  : [],
138
88
  };
139
89
  },
140
90
  toJSON(message) {
141
91
  const obj = {};
142
92
  if (message.categories?.length) {
143
- obj.categories = message.categories.map((e) => exports.Category.toJSON(e));
93
+ obj.categories = message.categories;
144
94
  }
145
95
  return obj;
146
96
  },
@@ -149,10 +99,7 @@ exports.getAllCategoryResponse = {
149
99
  },
150
100
  fromPartial(object) {
151
101
  const message = createBasegetAllCategoryResponse();
152
- message.categories = object.categories?.map((e) => exports.Category.fromPartial(e)) || [];
102
+ message.categories = object.categories?.map((e) => e) || [];
153
103
  return message;
154
104
  },
155
105
  };
156
- function isSet(value) {
157
- return value !== null && value !== undefined;
158
- }