@stashfin/grpc 1.2.848 → 1.2.850
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 +1 -1
- package/ts/bbps/getallbbpstransactions.d.ts +1 -1
- package/ts/bbps/getallbbpstransactions.js +7 -7
- package/ts/bbps/getallcategory.d.ts +1 -12
- package/ts/bbps/getallcategory.js +6 -59
- package/ts/eqxcustomers/getcustomerbyid.d.ts +1 -0
- package/ts/eqxcustomers/getcustomerbyid.js +17 -0
package/package.json
CHANGED
|
@@ -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
|
|
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:
|
|
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
|
-
|
|
51
|
-
writer.uint32(58).string(
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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:
|
|
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.
|
|
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
|
-
|
|
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(
|
|
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) =>
|
|
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
|
|
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) =>
|
|
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
|
-
}
|
|
@@ -20,6 +20,7 @@ export interface getCustomerByIdResponse {
|
|
|
20
20
|
is_bureau_fetched: boolean;
|
|
21
21
|
next_step?: string | undefined;
|
|
22
22
|
is_akara_registered?: string | undefined;
|
|
23
|
+
eqx_customer_category?: string | undefined;
|
|
23
24
|
}
|
|
24
25
|
export declare const getCustomerByIdRequest: {
|
|
25
26
|
encode(message: getCustomerByIdRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -81,6 +81,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
81
81
|
is_bureau_fetched: false,
|
|
82
82
|
next_step: undefined,
|
|
83
83
|
is_akara_registered: undefined,
|
|
84
|
+
eqx_customer_category: undefined,
|
|
84
85
|
};
|
|
85
86
|
}
|
|
86
87
|
exports.getCustomerByIdResponse = {
|
|
@@ -133,6 +134,9 @@ exports.getCustomerByIdResponse = {
|
|
|
133
134
|
if (message.is_akara_registered !== undefined) {
|
|
134
135
|
writer.uint32(130).string(message.is_akara_registered);
|
|
135
136
|
}
|
|
137
|
+
if (message.eqx_customer_category !== undefined) {
|
|
138
|
+
writer.uint32(138).string(message.eqx_customer_category);
|
|
139
|
+
}
|
|
136
140
|
return writer;
|
|
137
141
|
},
|
|
138
142
|
decode(input, length) {
|
|
@@ -238,6 +242,12 @@ exports.getCustomerByIdResponse = {
|
|
|
238
242
|
}
|
|
239
243
|
message.is_akara_registered = reader.string();
|
|
240
244
|
continue;
|
|
245
|
+
case 17:
|
|
246
|
+
if (tag !== 138) {
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
249
|
+
message.eqx_customer_category = reader.string();
|
|
250
|
+
continue;
|
|
241
251
|
}
|
|
242
252
|
if ((tag & 7) === 4 || tag === 0) {
|
|
243
253
|
break;
|
|
@@ -266,6 +276,9 @@ exports.getCustomerByIdResponse = {
|
|
|
266
276
|
is_akara_registered: isSet(object.is_akara_registered)
|
|
267
277
|
? globalThis.String(object.is_akara_registered)
|
|
268
278
|
: undefined,
|
|
279
|
+
eqx_customer_category: isSet(object.eqx_customer_category)
|
|
280
|
+
? globalThis.String(object.eqx_customer_category)
|
|
281
|
+
: undefined,
|
|
269
282
|
};
|
|
270
283
|
},
|
|
271
284
|
toJSON(message) {
|
|
@@ -318,6 +331,9 @@ exports.getCustomerByIdResponse = {
|
|
|
318
331
|
if (message.is_akara_registered !== undefined) {
|
|
319
332
|
obj.is_akara_registered = message.is_akara_registered;
|
|
320
333
|
}
|
|
334
|
+
if (message.eqx_customer_category !== undefined) {
|
|
335
|
+
obj.eqx_customer_category = message.eqx_customer_category;
|
|
336
|
+
}
|
|
321
337
|
return obj;
|
|
322
338
|
},
|
|
323
339
|
create(base) {
|
|
@@ -341,6 +357,7 @@ exports.getCustomerByIdResponse = {
|
|
|
341
357
|
message.is_bureau_fetched = object.is_bureau_fetched ?? false;
|
|
342
358
|
message.next_step = object.next_step ?? undefined;
|
|
343
359
|
message.is_akara_registered = object.is_akara_registered ?? undefined;
|
|
360
|
+
message.eqx_customer_category = object.eqx_customer_category ?? undefined;
|
|
344
361
|
return message;
|
|
345
362
|
},
|
|
346
363
|
};
|