@stashfin/grpc 1.2.291 → 1.2.293

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.291",
3
+ "version": "1.2.293",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,6 +5,7 @@ export interface forgotMpinVerifyRequest {
5
5
  otp: string;
6
6
  }
7
7
  export interface forgotMpinVerifyResponse {
8
+ jwtToken: string;
8
9
  status: string;
9
10
  }
10
11
  export declare const forgotMpinVerifyRequest: {
@@ -79,12 +79,15 @@ exports.forgotMpinVerifyRequest = {
79
79
  },
80
80
  };
81
81
  function createBaseforgotMpinVerifyResponse() {
82
- return { status: "" };
82
+ return { jwtToken: "", status: "" };
83
83
  }
84
84
  exports.forgotMpinVerifyResponse = {
85
85
  encode(message, writer = minimal_1.default.Writer.create()) {
86
+ if (message.jwtToken !== "") {
87
+ writer.uint32(10).string(message.jwtToken);
88
+ }
86
89
  if (message.status !== "") {
87
- writer.uint32(10).string(message.status);
90
+ writer.uint32(18).string(message.status);
88
91
  }
89
92
  return writer;
90
93
  },
@@ -99,6 +102,12 @@ exports.forgotMpinVerifyResponse = {
99
102
  if (tag !== 10) {
100
103
  break;
101
104
  }
105
+ message.jwtToken = reader.string();
106
+ continue;
107
+ case 2:
108
+ if (tag !== 18) {
109
+ break;
110
+ }
102
111
  message.status = reader.string();
103
112
  continue;
104
113
  }
@@ -110,10 +119,16 @@ exports.forgotMpinVerifyResponse = {
110
119
  return message;
111
120
  },
112
121
  fromJSON(object) {
113
- return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
122
+ return {
123
+ jwtToken: isSet(object.jwtToken) ? globalThis.String(object.jwtToken) : "",
124
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
125
+ };
114
126
  },
115
127
  toJSON(message) {
116
128
  const obj = {};
129
+ if (message.jwtToken !== "") {
130
+ obj.jwtToken = message.jwtToken;
131
+ }
117
132
  if (message.status !== "") {
118
133
  obj.status = message.status;
119
134
  }
@@ -124,6 +139,7 @@ exports.forgotMpinVerifyResponse = {
124
139
  },
125
140
  fromPartial(object) {
126
141
  const message = createBaseforgotMpinVerifyResponse();
142
+ message.jwtToken = object.jwtToken ?? "";
127
143
  message.status = object.status ?? "";
128
144
  return message;
129
145
  },