@stashfin/grpc 1.5.13 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.5.13",
3
+ "version": "1.5.15",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,5 +1,14 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "bbps.remindernotification";
3
+ /** Authenticator message (key-value object) */
4
+ export interface Authenticator {
5
+ parameter_name: string;
6
+ value: string;
7
+ }
8
+ /** Authenticators wrapper to make the array optional */
9
+ export interface Authenticators {
10
+ authenticators: Authenticator[];
11
+ }
3
12
  /** Request Data */
4
13
  export interface getBillRowDataRequest {
5
14
  id: number;
@@ -16,11 +25,28 @@ export interface getBillRowDataRequest {
16
25
  status?: string | undefined;
17
26
  event_type?: string | undefined;
18
27
  txn_id?: string | undefined;
28
+ authenticators?: Authenticators | undefined;
19
29
  }
20
30
  export interface getBillRowDataResponse {
21
31
  /** "success" or "failure" */
22
32
  status: string;
23
33
  }
34
+ export declare const Authenticator: {
35
+ encode(message: Authenticator, writer?: _m0.Writer): _m0.Writer;
36
+ decode(input: _m0.Reader | Uint8Array, length?: number): Authenticator;
37
+ fromJSON(object: any): Authenticator;
38
+ toJSON(message: Authenticator): unknown;
39
+ create<I extends Exact<DeepPartial<Authenticator>, I>>(base?: I): Authenticator;
40
+ fromPartial<I extends Exact<DeepPartial<Authenticator>, I>>(object: I): Authenticator;
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
+ };
24
50
  export declare const getBillRowDataRequest: {
25
51
  encode(message: getBillRowDataRequest, writer?: _m0.Writer): _m0.Writer;
26
52
  decode(input: _m0.Reader | Uint8Array, length?: number): getBillRowDataRequest;
@@ -8,10 +8,130 @@ 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.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";
15
+ function createBaseAuthenticator() {
16
+ return { parameter_name: "", value: "" };
17
+ }
18
+ exports.Authenticator = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.parameter_name !== "") {
21
+ writer.uint32(10).string(message.parameter_name);
22
+ }
23
+ if (message.value !== "") {
24
+ writer.uint32(18).string(message.value);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = createBaseAuthenticator();
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ if (tag !== 10) {
37
+ break;
38
+ }
39
+ message.parameter_name = reader.string();
40
+ continue;
41
+ case 2:
42
+ if (tag !== 18) {
43
+ break;
44
+ }
45
+ message.value = reader.string();
46
+ continue;
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skipType(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ parameter_name: isSet(object.parameter_name) ? globalThis.String(object.parameter_name) : "",
58
+ value: isSet(object.value) ? globalThis.String(object.value) : "",
59
+ };
60
+ },
61
+ toJSON(message) {
62
+ const obj = {};
63
+ if (message.parameter_name !== "") {
64
+ obj.parameter_name = message.parameter_name;
65
+ }
66
+ if (message.value !== "") {
67
+ obj.value = message.value;
68
+ }
69
+ return obj;
70
+ },
71
+ create(base) {
72
+ return exports.Authenticator.fromPartial(base ?? {});
73
+ },
74
+ fromPartial(object) {
75
+ const message = createBaseAuthenticator();
76
+ message.parameter_name = object.parameter_name ?? "";
77
+ message.value = object.value ?? "";
78
+ return message;
79
+ },
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
+ };
15
135
  function createBasegetBillRowDataRequest() {
16
136
  return {
17
137
  id: 0,
@@ -28,6 +148,7 @@ function createBasegetBillRowDataRequest() {
28
148
  status: undefined,
29
149
  event_type: undefined,
30
150
  txn_id: undefined,
151
+ authenticators: undefined,
31
152
  };
32
153
  }
33
154
  exports.getBillRowDataRequest = {
@@ -74,6 +195,9 @@ exports.getBillRowDataRequest = {
74
195
  if (message.txn_id !== undefined) {
75
196
  writer.uint32(114).string(message.txn_id);
76
197
  }
198
+ if (message.authenticators !== undefined) {
199
+ exports.Authenticators.encode(message.authenticators, writer.uint32(122).fork()).ldelim();
200
+ }
77
201
  return writer;
78
202
  },
79
203
  decode(input, length) {
@@ -167,6 +291,12 @@ exports.getBillRowDataRequest = {
167
291
  }
168
292
  message.txn_id = reader.string();
169
293
  continue;
294
+ case 15:
295
+ if (tag !== 122) {
296
+ break;
297
+ }
298
+ message.authenticators = exports.Authenticators.decode(reader, reader.uint32());
299
+ continue;
170
300
  }
171
301
  if ((tag & 7) === 4 || tag === 0) {
172
302
  break;
@@ -191,6 +321,7 @@ exports.getBillRowDataRequest = {
191
321
  status: isSet(object.status) ? globalThis.String(object.status) : undefined,
192
322
  event_type: isSet(object.event_type) ? globalThis.String(object.event_type) : undefined,
193
323
  txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
324
+ authenticators: isSet(object.authenticators) ? exports.Authenticators.fromJSON(object.authenticators) : undefined,
194
325
  };
195
326
  },
196
327
  toJSON(message) {
@@ -237,6 +368,9 @@ exports.getBillRowDataRequest = {
237
368
  if (message.txn_id !== undefined) {
238
369
  obj.txn_id = message.txn_id;
239
370
  }
371
+ if (message.authenticators !== undefined) {
372
+ obj.authenticators = exports.Authenticators.toJSON(message.authenticators);
373
+ }
240
374
  return obj;
241
375
  },
242
376
  create(base) {
@@ -258,6 +392,9 @@ exports.getBillRowDataRequest = {
258
392
  message.status = object.status ?? undefined;
259
393
  message.event_type = object.event_type ?? undefined;
260
394
  message.txn_id = object.txn_id ?? undefined;
395
+ message.authenticators = (object.authenticators !== undefined && object.authenticators !== null)
396
+ ? exports.Authenticators.fromPartial(object.authenticators)
397
+ : undefined;
261
398
  return message;
262
399
  },
263
400
  };