@stashfin/grpc 1.5.14 → 1.5.15
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,10 +1,14 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "bbps.remindernotification";
|
|
3
|
-
/** Authenticator message */
|
|
3
|
+
/** Authenticator message (key-value object) */
|
|
4
4
|
export interface Authenticator {
|
|
5
5
|
parameter_name: string;
|
|
6
6
|
value: string;
|
|
7
7
|
}
|
|
8
|
+
/** Authenticators wrapper to make the array optional */
|
|
9
|
+
export interface Authenticators {
|
|
10
|
+
authenticators: Authenticator[];
|
|
11
|
+
}
|
|
8
12
|
/** Request Data */
|
|
9
13
|
export interface getBillRowDataRequest {
|
|
10
14
|
id: number;
|
|
@@ -21,7 +25,7 @@ export interface getBillRowDataRequest {
|
|
|
21
25
|
status?: string | undefined;
|
|
22
26
|
event_type?: string | undefined;
|
|
23
27
|
txn_id?: string | undefined;
|
|
24
|
-
authenticators
|
|
28
|
+
authenticators?: Authenticators | undefined;
|
|
25
29
|
}
|
|
26
30
|
export interface getBillRowDataResponse {
|
|
27
31
|
/** "success" or "failure" */
|
|
@@ -35,6 +39,14 @@ export declare const Authenticator: {
|
|
|
35
39
|
create<I extends Exact<DeepPartial<Authenticator>, I>>(base?: I): Authenticator;
|
|
36
40
|
fromPartial<I extends Exact<DeepPartial<Authenticator>, I>>(object: I): Authenticator;
|
|
37
41
|
};
|
|
42
|
+
export declare const Authenticators: {
|
|
43
|
+
encode(message: Authenticators, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): Authenticators;
|
|
45
|
+
fromJSON(object: any): Authenticators;
|
|
46
|
+
toJSON(message: Authenticators): unknown;
|
|
47
|
+
create<I extends Exact<DeepPartial<Authenticators>, I>>(base?: I): Authenticators;
|
|
48
|
+
fromPartial<I extends Exact<DeepPartial<Authenticators>, I>>(object: I): Authenticators;
|
|
49
|
+
};
|
|
38
50
|
export declare const getBillRowDataRequest: {
|
|
39
51
|
encode(message: getBillRowDataRequest, writer?: _m0.Writer): _m0.Writer;
|
|
40
52
|
decode(input: _m0.Reader | Uint8Array, length?: number): getBillRowDataRequest;
|
|
@@ -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.getBillRowDataResponse = exports.getBillRowDataRequest = exports.Authenticator = exports.protobufPackage = void 0;
|
|
11
|
+
exports.getBillRowDataResponse = exports.getBillRowDataRequest = exports.Authenticators = exports.Authenticator = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "bbps.remindernotification";
|
|
@@ -78,6 +78,60 @@ exports.Authenticator = {
|
|
|
78
78
|
return message;
|
|
79
79
|
},
|
|
80
80
|
};
|
|
81
|
+
function createBaseAuthenticators() {
|
|
82
|
+
return { authenticators: [] };
|
|
83
|
+
}
|
|
84
|
+
exports.Authenticators = {
|
|
85
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
+
for (const v of message.authenticators) {
|
|
87
|
+
exports.Authenticator.encode(v, writer.uint32(10).fork()).ldelim();
|
|
88
|
+
}
|
|
89
|
+
return writer;
|
|
90
|
+
},
|
|
91
|
+
decode(input, length) {
|
|
92
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
+
const message = createBaseAuthenticators();
|
|
95
|
+
while (reader.pos < end) {
|
|
96
|
+
const tag = reader.uint32();
|
|
97
|
+
switch (tag >>> 3) {
|
|
98
|
+
case 1:
|
|
99
|
+
if (tag !== 10) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.authenticators.push(exports.Authenticator.decode(reader, reader.uint32()));
|
|
103
|
+
continue;
|
|
104
|
+
}
|
|
105
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
reader.skipType(tag & 7);
|
|
109
|
+
}
|
|
110
|
+
return message;
|
|
111
|
+
},
|
|
112
|
+
fromJSON(object) {
|
|
113
|
+
return {
|
|
114
|
+
authenticators: globalThis.Array.isArray(object?.authenticators)
|
|
115
|
+
? object.authenticators.map((e) => exports.Authenticator.fromJSON(e))
|
|
116
|
+
: [],
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
toJSON(message) {
|
|
120
|
+
const obj = {};
|
|
121
|
+
if (message.authenticators?.length) {
|
|
122
|
+
obj.authenticators = message.authenticators.map((e) => exports.Authenticator.toJSON(e));
|
|
123
|
+
}
|
|
124
|
+
return obj;
|
|
125
|
+
},
|
|
126
|
+
create(base) {
|
|
127
|
+
return exports.Authenticators.fromPartial(base ?? {});
|
|
128
|
+
},
|
|
129
|
+
fromPartial(object) {
|
|
130
|
+
const message = createBaseAuthenticators();
|
|
131
|
+
message.authenticators = object.authenticators?.map((e) => exports.Authenticator.fromPartial(e)) || [];
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
};
|
|
81
135
|
function createBasegetBillRowDataRequest() {
|
|
82
136
|
return {
|
|
83
137
|
id: 0,
|
|
@@ -94,7 +148,7 @@ function createBasegetBillRowDataRequest() {
|
|
|
94
148
|
status: undefined,
|
|
95
149
|
event_type: undefined,
|
|
96
150
|
txn_id: undefined,
|
|
97
|
-
authenticators:
|
|
151
|
+
authenticators: undefined,
|
|
98
152
|
};
|
|
99
153
|
}
|
|
100
154
|
exports.getBillRowDataRequest = {
|
|
@@ -141,8 +195,8 @@ exports.getBillRowDataRequest = {
|
|
|
141
195
|
if (message.txn_id !== undefined) {
|
|
142
196
|
writer.uint32(114).string(message.txn_id);
|
|
143
197
|
}
|
|
144
|
-
|
|
145
|
-
exports.
|
|
198
|
+
if (message.authenticators !== undefined) {
|
|
199
|
+
exports.Authenticators.encode(message.authenticators, writer.uint32(122).fork()).ldelim();
|
|
146
200
|
}
|
|
147
201
|
return writer;
|
|
148
202
|
},
|
|
@@ -241,7 +295,7 @@ exports.getBillRowDataRequest = {
|
|
|
241
295
|
if (tag !== 122) {
|
|
242
296
|
break;
|
|
243
297
|
}
|
|
244
|
-
message.authenticators
|
|
298
|
+
message.authenticators = exports.Authenticators.decode(reader, reader.uint32());
|
|
245
299
|
continue;
|
|
246
300
|
}
|
|
247
301
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -267,9 +321,7 @@ exports.getBillRowDataRequest = {
|
|
|
267
321
|
status: isSet(object.status) ? globalThis.String(object.status) : undefined,
|
|
268
322
|
event_type: isSet(object.event_type) ? globalThis.String(object.event_type) : undefined,
|
|
269
323
|
txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
|
|
270
|
-
authenticators:
|
|
271
|
-
? object.authenticators.map((e) => exports.Authenticator.fromJSON(e))
|
|
272
|
-
: [],
|
|
324
|
+
authenticators: isSet(object.authenticators) ? exports.Authenticators.fromJSON(object.authenticators) : undefined,
|
|
273
325
|
};
|
|
274
326
|
},
|
|
275
327
|
toJSON(message) {
|
|
@@ -316,8 +368,8 @@ exports.getBillRowDataRequest = {
|
|
|
316
368
|
if (message.txn_id !== undefined) {
|
|
317
369
|
obj.txn_id = message.txn_id;
|
|
318
370
|
}
|
|
319
|
-
if (message.authenticators
|
|
320
|
-
obj.authenticators =
|
|
371
|
+
if (message.authenticators !== undefined) {
|
|
372
|
+
obj.authenticators = exports.Authenticators.toJSON(message.authenticators);
|
|
321
373
|
}
|
|
322
374
|
return obj;
|
|
323
375
|
},
|
|
@@ -340,7 +392,9 @@ exports.getBillRowDataRequest = {
|
|
|
340
392
|
message.status = object.status ?? undefined;
|
|
341
393
|
message.event_type = object.event_type ?? undefined;
|
|
342
394
|
message.txn_id = object.txn_id ?? undefined;
|
|
343
|
-
message.authenticators = object.authenticators
|
|
395
|
+
message.authenticators = (object.authenticators !== undefined && object.authenticators !== null)
|
|
396
|
+
? exports.Authenticators.fromPartial(object.authenticators)
|
|
397
|
+
: undefined;
|
|
344
398
|
return message;
|
|
345
399
|
},
|
|
346
400
|
};
|