@stashfin/grpc 1.2.86 → 1.2.87

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.86",
3
+ "version": "1.2.87",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -3,7 +3,7 @@ export declare const protobufPackage = "customers.deleteprofile";
3
3
  export interface deleteProfileRequest {
4
4
  }
5
5
  export interface deleteProfileResponse {
6
- status: boolean;
6
+ status: string;
7
7
  pending_loan_amount: number;
8
8
  }
9
9
  export declare const deleteProfileRequest: {
@@ -50,12 +50,12 @@ exports.deleteProfileRequest = {
50
50
  },
51
51
  };
52
52
  function createBasedeleteProfileResponse() {
53
- return { status: false, pending_loan_amount: 0 };
53
+ return { status: "", pending_loan_amount: 0 };
54
54
  }
55
55
  exports.deleteProfileResponse = {
56
56
  encode(message, writer = minimal_1.default.Writer.create()) {
57
- if (message.status !== false) {
58
- writer.uint32(8).bool(message.status);
57
+ if (message.status !== "") {
58
+ writer.uint32(10).string(message.status);
59
59
  }
60
60
  if (message.pending_loan_amount !== 0) {
61
61
  writer.uint32(21).float(message.pending_loan_amount);
@@ -70,10 +70,10 @@ exports.deleteProfileResponse = {
70
70
  const tag = reader.uint32();
71
71
  switch (tag >>> 3) {
72
72
  case 1:
73
- if (tag !== 8) {
73
+ if (tag !== 10) {
74
74
  break;
75
75
  }
76
- message.status = reader.bool();
76
+ message.status = reader.string();
77
77
  continue;
78
78
  case 2:
79
79
  if (tag !== 21) {
@@ -91,13 +91,13 @@ exports.deleteProfileResponse = {
91
91
  },
92
92
  fromJSON(object) {
93
93
  return {
94
- status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
94
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
95
95
  pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
96
96
  };
97
97
  },
98
98
  toJSON(message) {
99
99
  const obj = {};
100
- if (message.status !== false) {
100
+ if (message.status !== "") {
101
101
  obj.status = message.status;
102
102
  }
103
103
  if (message.pending_loan_amount !== 0) {
@@ -110,7 +110,7 @@ exports.deleteProfileResponse = {
110
110
  },
111
111
  fromPartial(object) {
112
112
  const message = createBasedeleteProfileResponse();
113
- message.status = object.status ?? false;
113
+ message.status = object.status ?? "";
114
114
  message.pending_loan_amount = object.pending_loan_amount ?? 0;
115
115
  return message;
116
116
  },
@@ -4,7 +4,7 @@ export interface locStatusRequest {
4
4
  loc_disabled: boolean;
5
5
  }
6
6
  export interface locStatusResponse {
7
- status: boolean;
7
+ status: string;
8
8
  pending_loan_amount: number;
9
9
  }
10
10
  export declare const locStatusRequest: {
@@ -63,12 +63,12 @@ exports.locStatusRequest = {
63
63
  },
64
64
  };
65
65
  function createBaselocStatusResponse() {
66
- return { status: false, pending_loan_amount: 0 };
66
+ return { status: "", pending_loan_amount: 0 };
67
67
  }
68
68
  exports.locStatusResponse = {
69
69
  encode(message, writer = minimal_1.default.Writer.create()) {
70
- if (message.status !== false) {
71
- writer.uint32(8).bool(message.status);
70
+ if (message.status !== "") {
71
+ writer.uint32(10).string(message.status);
72
72
  }
73
73
  if (message.pending_loan_amount !== 0) {
74
74
  writer.uint32(21).float(message.pending_loan_amount);
@@ -83,10 +83,10 @@ exports.locStatusResponse = {
83
83
  const tag = reader.uint32();
84
84
  switch (tag >>> 3) {
85
85
  case 1:
86
- if (tag !== 8) {
86
+ if (tag !== 10) {
87
87
  break;
88
88
  }
89
- message.status = reader.bool();
89
+ message.status = reader.string();
90
90
  continue;
91
91
  case 2:
92
92
  if (tag !== 21) {
@@ -104,13 +104,13 @@ exports.locStatusResponse = {
104
104
  },
105
105
  fromJSON(object) {
106
106
  return {
107
- status: isSet(object.status) ? globalThis.Boolean(object.status) : false,
107
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
108
108
  pending_loan_amount: isSet(object.pending_loan_amount) ? globalThis.Number(object.pending_loan_amount) : 0,
109
109
  };
110
110
  },
111
111
  toJSON(message) {
112
112
  const obj = {};
113
- if (message.status !== false) {
113
+ if (message.status !== "") {
114
114
  obj.status = message.status;
115
115
  }
116
116
  if (message.pending_loan_amount !== 0) {
@@ -123,7 +123,7 @@ exports.locStatusResponse = {
123
123
  },
124
124
  fromPartial(object) {
125
125
  const message = createBaselocStatusResponse();
126
- message.status = object.status ?? false;
126
+ message.status = object.status ?? "";
127
127
  message.pending_loan_amount = object.pending_loan_amount ?? 0;
128
128
  return message;
129
129
  },