@stashfin/grpc 1.2.173 → 1.2.174
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,15 +1,8 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.addmoredetails";
|
|
3
|
-
export declare enum OccupationType {
|
|
4
|
-
SELF_EMPLOYED = 0,
|
|
5
|
-
SALARIED = 1,
|
|
6
|
-
UNRECOGNIZED = -1
|
|
7
|
-
}
|
|
8
|
-
export declare function occupationTypeFromJSON(object: any): OccupationType;
|
|
9
|
-
export declare function occupationTypeToJSON(object: OccupationType): string;
|
|
10
3
|
export interface addMoreDetailsRequest {
|
|
11
4
|
father_name: string;
|
|
12
|
-
occupation:
|
|
5
|
+
occupation: string;
|
|
13
6
|
cur_house?: string | undefined;
|
|
14
7
|
cur_address_line1: string;
|
|
15
8
|
cur_address_line2: string;
|
|
@@ -8,47 +8,14 @@ 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.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.
|
|
12
|
-
exports.occupationTypeFromJSON = occupationTypeFromJSON;
|
|
13
|
-
exports.occupationTypeToJSON = occupationTypeToJSON;
|
|
11
|
+
exports.addMoreDetailsResponse = exports.addMoreDetailsRequest = exports.protobufPackage = void 0;
|
|
14
12
|
/* eslint-disable */
|
|
15
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
16
14
|
exports.protobufPackage = "customers.addmoredetails";
|
|
17
|
-
var OccupationType;
|
|
18
|
-
(function (OccupationType) {
|
|
19
|
-
OccupationType[OccupationType["SELF_EMPLOYED"] = 0] = "SELF_EMPLOYED";
|
|
20
|
-
OccupationType[OccupationType["SALARIED"] = 1] = "SALARIED";
|
|
21
|
-
OccupationType[OccupationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
22
|
-
})(OccupationType || (exports.OccupationType = OccupationType = {}));
|
|
23
|
-
function occupationTypeFromJSON(object) {
|
|
24
|
-
switch (object) {
|
|
25
|
-
case 0:
|
|
26
|
-
case "SELF_EMPLOYED":
|
|
27
|
-
return OccupationType.SELF_EMPLOYED;
|
|
28
|
-
case 1:
|
|
29
|
-
case "SALARIED":
|
|
30
|
-
return OccupationType.SALARIED;
|
|
31
|
-
case -1:
|
|
32
|
-
case "UNRECOGNIZED":
|
|
33
|
-
default:
|
|
34
|
-
return OccupationType.UNRECOGNIZED;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function occupationTypeToJSON(object) {
|
|
38
|
-
switch (object) {
|
|
39
|
-
case OccupationType.SELF_EMPLOYED:
|
|
40
|
-
return "SELF_EMPLOYED";
|
|
41
|
-
case OccupationType.SALARIED:
|
|
42
|
-
return "SALARIED";
|
|
43
|
-
case OccupationType.UNRECOGNIZED:
|
|
44
|
-
default:
|
|
45
|
-
return "UNRECOGNIZED";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
15
|
function createBaseaddMoreDetailsRequest() {
|
|
49
16
|
return {
|
|
50
17
|
father_name: "",
|
|
51
|
-
occupation:
|
|
18
|
+
occupation: "",
|
|
52
19
|
cur_house: undefined,
|
|
53
20
|
cur_address_line1: "",
|
|
54
21
|
cur_address_line2: "",
|
|
@@ -65,8 +32,8 @@ exports.addMoreDetailsRequest = {
|
|
|
65
32
|
if (message.father_name !== "") {
|
|
66
33
|
writer.uint32(10).string(message.father_name);
|
|
67
34
|
}
|
|
68
|
-
if (message.occupation !==
|
|
69
|
-
writer.uint32(
|
|
35
|
+
if (message.occupation !== "") {
|
|
36
|
+
writer.uint32(18).string(message.occupation);
|
|
70
37
|
}
|
|
71
38
|
if (message.cur_house !== undefined) {
|
|
72
39
|
writer.uint32(26).string(message.cur_house);
|
|
@@ -111,10 +78,10 @@ exports.addMoreDetailsRequest = {
|
|
|
111
78
|
message.father_name = reader.string();
|
|
112
79
|
continue;
|
|
113
80
|
case 2:
|
|
114
|
-
if (tag !==
|
|
81
|
+
if (tag !== 18) {
|
|
115
82
|
break;
|
|
116
83
|
}
|
|
117
|
-
message.occupation = reader.
|
|
84
|
+
message.occupation = reader.string();
|
|
118
85
|
continue;
|
|
119
86
|
case 3:
|
|
120
87
|
if (tag !== 26) {
|
|
@@ -181,7 +148,7 @@ exports.addMoreDetailsRequest = {
|
|
|
181
148
|
fromJSON(object) {
|
|
182
149
|
return {
|
|
183
150
|
father_name: isSet(object.father_name) ? globalThis.String(object.father_name) : "",
|
|
184
|
-
occupation: isSet(object.occupation) ?
|
|
151
|
+
occupation: isSet(object.occupation) ? globalThis.String(object.occupation) : "",
|
|
185
152
|
cur_house: isSet(object.cur_house) ? globalThis.String(object.cur_house) : undefined,
|
|
186
153
|
cur_address_line1: isSet(object.cur_address_line1) ? globalThis.String(object.cur_address_line1) : "",
|
|
187
154
|
cur_address_line2: isSet(object.cur_address_line2) ? globalThis.String(object.cur_address_line2) : "",
|
|
@@ -198,8 +165,8 @@ exports.addMoreDetailsRequest = {
|
|
|
198
165
|
if (message.father_name !== "") {
|
|
199
166
|
obj.father_name = message.father_name;
|
|
200
167
|
}
|
|
201
|
-
if (message.occupation !==
|
|
202
|
-
obj.occupation =
|
|
168
|
+
if (message.occupation !== "") {
|
|
169
|
+
obj.occupation = message.occupation;
|
|
203
170
|
}
|
|
204
171
|
if (message.cur_house !== undefined) {
|
|
205
172
|
obj.cur_house = message.cur_house;
|
|
@@ -236,7 +203,7 @@ exports.addMoreDetailsRequest = {
|
|
|
236
203
|
fromPartial(object) {
|
|
237
204
|
const message = createBaseaddMoreDetailsRequest();
|
|
238
205
|
message.father_name = object.father_name ?? "";
|
|
239
|
-
message.occupation = object.occupation ??
|
|
206
|
+
message.occupation = object.occupation ?? "";
|
|
240
207
|
message.cur_house = object.cur_house ?? undefined;
|
|
241
208
|
message.cur_address_line1 = object.cur_address_line1 ?? "";
|
|
242
209
|
message.cur_address_line2 = object.cur_address_line2 ?? "";
|