@stashfin/grpc 1.2.18 → 1.2.19
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 +1 -1
- package/ts/customers/step2.d.ts +4 -6
- package/ts/customers/step2.js +6 -35
package/package.json
CHANGED
package/ts/customers/step2.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "customers.step2";
|
|
3
3
|
export interface step2Request {
|
|
4
|
-
pincode: string;
|
|
5
|
-
dob: string;
|
|
6
4
|
}
|
|
7
5
|
export interface Validation {
|
|
8
6
|
key: string;
|
|
@@ -25,12 +23,12 @@ export interface step2Response_Field {
|
|
|
25
23
|
validations: Validation[];
|
|
26
24
|
}
|
|
27
25
|
export declare const step2Request: {
|
|
28
|
-
encode(
|
|
26
|
+
encode(_: step2Request, writer?: _m0.Writer): _m0.Writer;
|
|
29
27
|
decode(input: _m0.Reader | Uint8Array, length?: number): step2Request;
|
|
30
|
-
fromJSON(
|
|
31
|
-
toJSON(
|
|
28
|
+
fromJSON(_: any): step2Request;
|
|
29
|
+
toJSON(_: step2Request): unknown;
|
|
32
30
|
create<I extends Exact<DeepPartial<step2Request>, I>>(base?: I): step2Request;
|
|
33
|
-
fromPartial<I extends Exact<DeepPartial<step2Request>, I>>(
|
|
31
|
+
fromPartial<I extends Exact<DeepPartial<step2Request>, I>>(_: I): step2Request;
|
|
34
32
|
};
|
|
35
33
|
export declare const Validation: {
|
|
36
34
|
encode(message: Validation, writer?: _m0.Writer): _m0.Writer;
|
package/ts/customers/step2.js
CHANGED
|
@@ -13,16 +13,10 @@ exports.step2Response_Field = exports.step2Response = exports.Validation = expor
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.step2";
|
|
15
15
|
function createBasestep2Request() {
|
|
16
|
-
return {
|
|
16
|
+
return {};
|
|
17
17
|
}
|
|
18
18
|
exports.step2Request = {
|
|
19
|
-
encode(
|
|
20
|
-
if (message.pincode !== "") {
|
|
21
|
-
writer.uint32(10).string(message.pincode);
|
|
22
|
-
}
|
|
23
|
-
if (message.dob !== "") {
|
|
24
|
-
writer.uint32(18).string(message.dob);
|
|
25
|
-
}
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
26
20
|
return writer;
|
|
27
21
|
},
|
|
28
22
|
decode(input, length) {
|
|
@@ -32,18 +26,6 @@ exports.step2Request = {
|
|
|
32
26
|
while (reader.pos < end) {
|
|
33
27
|
const tag = reader.uint32();
|
|
34
28
|
switch (tag >>> 3) {
|
|
35
|
-
case 1:
|
|
36
|
-
if (tag !== 10) {
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
message.pincode = reader.string();
|
|
40
|
-
continue;
|
|
41
|
-
case 2:
|
|
42
|
-
if (tag !== 18) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
message.dob = reader.string();
|
|
46
|
-
continue;
|
|
47
29
|
}
|
|
48
30
|
if ((tag & 7) === 4 || tag === 0) {
|
|
49
31
|
break;
|
|
@@ -52,29 +34,18 @@ exports.step2Request = {
|
|
|
52
34
|
}
|
|
53
35
|
return message;
|
|
54
36
|
},
|
|
55
|
-
fromJSON(
|
|
56
|
-
return {
|
|
57
|
-
pincode: isSet(object.pincode) ? globalThis.String(object.pincode) : "",
|
|
58
|
-
dob: isSet(object.dob) ? globalThis.String(object.dob) : "",
|
|
59
|
-
};
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
60
39
|
},
|
|
61
|
-
toJSON(
|
|
40
|
+
toJSON(_) {
|
|
62
41
|
const obj = {};
|
|
63
|
-
if (message.pincode !== "") {
|
|
64
|
-
obj.pincode = message.pincode;
|
|
65
|
-
}
|
|
66
|
-
if (message.dob !== "") {
|
|
67
|
-
obj.dob = message.dob;
|
|
68
|
-
}
|
|
69
42
|
return obj;
|
|
70
43
|
},
|
|
71
44
|
create(base) {
|
|
72
45
|
return exports.step2Request.fromPartial(base ?? {});
|
|
73
46
|
},
|
|
74
|
-
fromPartial(
|
|
47
|
+
fromPartial(_) {
|
|
75
48
|
const message = createBasestep2Request();
|
|
76
|
-
message.pincode = object.pincode ?? "";
|
|
77
|
-
message.dob = object.dob ?? "";
|
|
78
49
|
return message;
|
|
79
50
|
},
|
|
80
51
|
};
|