@stashfin/grpc 1.2.589 → 1.2.590

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.589",
3
+ "version": "1.2.590",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -5,9 +5,9 @@ export interface customerReferencesRequest {
5
5
  references: Reference[];
6
6
  }
7
7
  export interface Reference {
8
- name: string;
9
- mobile: string;
10
- relation: string;
8
+ name?: string | undefined;
9
+ mobile?: string | undefined;
10
+ relation?: string | undefined;
11
11
  }
12
12
  export interface customerReferencesResponse {
13
13
  success: boolean;
@@ -82,17 +82,17 @@ exports.customerReferencesRequest = {
82
82
  },
83
83
  };
84
84
  function createBaseReference() {
85
- return { name: "", mobile: "", relation: "" };
85
+ return { name: undefined, mobile: undefined, relation: undefined };
86
86
  }
87
87
  exports.Reference = {
88
88
  encode(message, writer = minimal_1.default.Writer.create()) {
89
- if (message.name !== "") {
89
+ if (message.name !== undefined) {
90
90
  writer.uint32(10).string(message.name);
91
91
  }
92
- if (message.mobile !== "") {
92
+ if (message.mobile !== undefined) {
93
93
  writer.uint32(18).string(message.mobile);
94
94
  }
95
- if (message.relation !== "") {
95
+ if (message.relation !== undefined) {
96
96
  writer.uint32(26).string(message.relation);
97
97
  }
98
98
  return writer;
@@ -132,20 +132,20 @@ exports.Reference = {
132
132
  },
133
133
  fromJSON(object) {
134
134
  return {
135
- name: isSet(object.name) ? globalThis.String(object.name) : "",
136
- mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
137
- relation: isSet(object.relation) ? globalThis.String(object.relation) : "",
135
+ name: isSet(object.name) ? globalThis.String(object.name) : undefined,
136
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : undefined,
137
+ relation: isSet(object.relation) ? globalThis.String(object.relation) : undefined,
138
138
  };
139
139
  },
140
140
  toJSON(message) {
141
141
  const obj = {};
142
- if (message.name !== "") {
142
+ if (message.name !== undefined) {
143
143
  obj.name = message.name;
144
144
  }
145
- if (message.mobile !== "") {
145
+ if (message.mobile !== undefined) {
146
146
  obj.mobile = message.mobile;
147
147
  }
148
- if (message.relation !== "") {
148
+ if (message.relation !== undefined) {
149
149
  obj.relation = message.relation;
150
150
  }
151
151
  return obj;
@@ -155,9 +155,9 @@ exports.Reference = {
155
155
  },
156
156
  fromPartial(object) {
157
157
  const message = createBaseReference();
158
- message.name = object.name ?? "";
159
- message.mobile = object.mobile ?? "";
160
- message.relation = object.relation ?? "";
158
+ message.name = object.name ?? undefined;
159
+ message.mobile = object.mobile ?? undefined;
160
+ message.relation = object.relation ?? undefined;
161
161
  return message;
162
162
  },
163
163
  };