@stashfin/grpc 1.2.374 → 1.2.375
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.
|
|
3
|
+
"version": "1.2.375",
|
|
4
4
|
"description": "Grpc proto manger",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@grpc/grpc-js": "^1.10.9",
|
|
17
17
|
"@protobuf-ts/protoc": "^2.9.4",
|
|
18
|
-
"@stashfin/grpc": "^1.2.
|
|
18
|
+
"@stashfin/grpc": "^1.2.374",
|
|
19
19
|
"@types/long": "^5.0.0",
|
|
20
20
|
"long": "^5.2.3"
|
|
21
21
|
},
|
|
@@ -13,7 +13,15 @@ exports.updateProfileBasicResponse = exports.updateProfileBasicRequest = exports
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.profilebasic";
|
|
15
15
|
function createBaseupdateProfileBasicRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
language: "",
|
|
18
|
+
app_version: "",
|
|
19
|
+
device_id: "",
|
|
20
|
+
os_version: "",
|
|
21
|
+
longitude: 0,
|
|
22
|
+
latitude: 0,
|
|
23
|
+
push_id: undefined,
|
|
24
|
+
};
|
|
17
25
|
}
|
|
18
26
|
exports.updateProfileBasicRequest = {
|
|
19
27
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -35,6 +43,9 @@ exports.updateProfileBasicRequest = {
|
|
|
35
43
|
if (message.latitude !== 0) {
|
|
36
44
|
writer.uint32(49).double(message.latitude);
|
|
37
45
|
}
|
|
46
|
+
if (message.push_id !== undefined) {
|
|
47
|
+
writer.uint32(58).string(message.push_id);
|
|
48
|
+
}
|
|
38
49
|
return writer;
|
|
39
50
|
},
|
|
40
51
|
decode(input, length) {
|
|
@@ -80,6 +91,12 @@ exports.updateProfileBasicRequest = {
|
|
|
80
91
|
}
|
|
81
92
|
message.latitude = reader.double();
|
|
82
93
|
continue;
|
|
94
|
+
case 7:
|
|
95
|
+
if (tag !== 58) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
message.push_id = reader.string();
|
|
99
|
+
continue;
|
|
83
100
|
}
|
|
84
101
|
if ((tag & 7) === 4 || tag === 0) {
|
|
85
102
|
break;
|
|
@@ -96,6 +113,7 @@ exports.updateProfileBasicRequest = {
|
|
|
96
113
|
os_version: isSet(object.os_version) ? globalThis.String(object.os_version) : "",
|
|
97
114
|
longitude: isSet(object.longitude) ? globalThis.Number(object.longitude) : 0,
|
|
98
115
|
latitude: isSet(object.latitude) ? globalThis.Number(object.latitude) : 0,
|
|
116
|
+
push_id: isSet(object.push_id) ? globalThis.String(object.push_id) : undefined,
|
|
99
117
|
};
|
|
100
118
|
},
|
|
101
119
|
toJSON(message) {
|
|
@@ -118,6 +136,9 @@ exports.updateProfileBasicRequest = {
|
|
|
118
136
|
if (message.latitude !== 0) {
|
|
119
137
|
obj.latitude = message.latitude;
|
|
120
138
|
}
|
|
139
|
+
if (message.push_id !== undefined) {
|
|
140
|
+
obj.push_id = message.push_id;
|
|
141
|
+
}
|
|
121
142
|
return obj;
|
|
122
143
|
},
|
|
123
144
|
create(base) {
|
|
@@ -131,6 +152,7 @@ exports.updateProfileBasicRequest = {
|
|
|
131
152
|
message.os_version = object.os_version ?? "";
|
|
132
153
|
message.longitude = object.longitude ?? 0;
|
|
133
154
|
message.latitude = object.latitude ?? 0;
|
|
155
|
+
message.push_id = object.push_id ?? undefined;
|
|
134
156
|
return message;
|
|
135
157
|
},
|
|
136
158
|
};
|