@stashfin/grpc 1.2.523 → 1.2.524

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.523",
3
+ "version": "1.2.524",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -1,6 +1,7 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "upi.getAllMandates";
3
3
  export interface getAllMandatesRequest {
4
+ status?: string | undefined;
4
5
  }
5
6
  export interface getAllMandatesResponse {
6
7
  status: string;
@@ -20,12 +21,12 @@ export interface Data {
20
21
  mandates: MandateData[];
21
22
  }
22
23
  export declare const getAllMandatesRequest: {
23
- encode(_: getAllMandatesRequest, writer?: _m0.Writer): _m0.Writer;
24
+ encode(message: getAllMandatesRequest, writer?: _m0.Writer): _m0.Writer;
24
25
  decode(input: _m0.Reader | Uint8Array, length?: number): getAllMandatesRequest;
25
- fromJSON(_: any): getAllMandatesRequest;
26
- toJSON(_: getAllMandatesRequest): unknown;
26
+ fromJSON(object: any): getAllMandatesRequest;
27
+ toJSON(message: getAllMandatesRequest): unknown;
27
28
  create<I extends Exact<DeepPartial<getAllMandatesRequest>, I>>(base?: I): getAllMandatesRequest;
28
- fromPartial<I extends Exact<DeepPartial<getAllMandatesRequest>, I>>(_: I): getAllMandatesRequest;
29
+ fromPartial<I extends Exact<DeepPartial<getAllMandatesRequest>, I>>(object: I): getAllMandatesRequest;
29
30
  };
30
31
  export declare const getAllMandatesResponse: {
31
32
  encode(message: getAllMandatesResponse, writer?: _m0.Writer): _m0.Writer;
@@ -13,10 +13,13 @@ exports.Data = exports.MandateData = exports.getAllMandatesResponse = exports.ge
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.getAllMandates";
15
15
  function createBasegetAllMandatesRequest() {
16
- return {};
16
+ return { status: undefined };
17
17
  }
18
18
  exports.getAllMandatesRequest = {
19
- encode(_, writer = minimal_1.default.Writer.create()) {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.status !== undefined) {
21
+ writer.uint32(10).string(message.status);
22
+ }
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
@@ -26,6 +29,12 @@ exports.getAllMandatesRequest = {
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.status = reader.string();
37
+ continue;
29
38
  }
30
39
  if ((tag & 7) === 4 || tag === 0) {
31
40
  break;
@@ -34,18 +43,22 @@ exports.getAllMandatesRequest = {
34
43
  }
35
44
  return message;
36
45
  },
37
- fromJSON(_) {
38
- return {};
46
+ fromJSON(object) {
47
+ return { status: isSet(object.status) ? globalThis.String(object.status) : undefined };
39
48
  },
40
- toJSON(_) {
49
+ toJSON(message) {
41
50
  const obj = {};
51
+ if (message.status !== undefined) {
52
+ obj.status = message.status;
53
+ }
42
54
  return obj;
43
55
  },
44
56
  create(base) {
45
57
  return exports.getAllMandatesRequest.fromPartial(base ?? {});
46
58
  },
47
- fromPartial(_) {
59
+ fromPartial(object) {
48
60
  const message = createBasegetAllMandatesRequest();
61
+ message.status = object.status ?? undefined;
49
62
  return message;
50
63
  },
51
64
  };