@stashfin/grpc 1.2.736 → 1.2.737
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/eqxcustomers/gettnc.d.ts +9 -5
- package/ts/eqxcustomers/gettnc.js +75 -20
package/package.json
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "eqxcustomers.gettnc";
|
|
3
3
|
export interface getTnCRequest {
|
|
4
|
+
product: string;
|
|
4
5
|
}
|
|
5
6
|
export interface Data {
|
|
6
7
|
id: number;
|
|
7
|
-
version: string;
|
|
8
8
|
title: string;
|
|
9
9
|
content: string;
|
|
10
|
+
file_url: string;
|
|
11
|
+
tag: string;
|
|
12
|
+
is_mandatory: string;
|
|
13
|
+
consent_type: string;
|
|
10
14
|
}
|
|
11
15
|
export interface getTnCResponse {
|
|
12
16
|
data: Data[];
|
|
13
17
|
message: string;
|
|
14
18
|
}
|
|
15
19
|
export declare const getTnCRequest: {
|
|
16
|
-
encode(
|
|
20
|
+
encode(message: getTnCRequest, writer?: _m0.Writer): _m0.Writer;
|
|
17
21
|
decode(input: _m0.Reader | Uint8Array, length?: number): getTnCRequest;
|
|
18
|
-
fromJSON(
|
|
19
|
-
toJSON(
|
|
22
|
+
fromJSON(object: any): getTnCRequest;
|
|
23
|
+
toJSON(message: getTnCRequest): unknown;
|
|
20
24
|
create<I extends Exact<DeepPartial<getTnCRequest>, I>>(base?: I): getTnCRequest;
|
|
21
|
-
fromPartial<I extends Exact<DeepPartial<getTnCRequest>, I>>(
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<getTnCRequest>, I>>(object: I): getTnCRequest;
|
|
22
26
|
};
|
|
23
27
|
export declare const Data: {
|
|
24
28
|
encode(message: Data, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -13,10 +13,13 @@ exports.getTnCResponse = exports.Data = exports.getTnCRequest = exports.protobuf
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "eqxcustomers.gettnc";
|
|
15
15
|
function createBasegetTnCRequest() {
|
|
16
|
-
return {};
|
|
16
|
+
return { product: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.getTnCRequest = {
|
|
19
|
-
encode(
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.product !== "") {
|
|
21
|
+
writer.uint32(10).string(message.product);
|
|
22
|
+
}
|
|
20
23
|
return writer;
|
|
21
24
|
},
|
|
22
25
|
decode(input, length) {
|
|
@@ -26,6 +29,12 @@ exports.getTnCRequest = {
|
|
|
26
29
|
while (reader.pos < end) {
|
|
27
30
|
const tag = reader.uint32();
|
|
28
31
|
switch (tag >>> 3) {
|
|
32
|
+
case 1:
|
|
33
|
+
if (tag !== 10) {
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
message.product = reader.string();
|
|
37
|
+
continue;
|
|
29
38
|
}
|
|
30
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
31
40
|
break;
|
|
@@ -34,37 +43,50 @@ exports.getTnCRequest = {
|
|
|
34
43
|
}
|
|
35
44
|
return message;
|
|
36
45
|
},
|
|
37
|
-
fromJSON(
|
|
38
|
-
return {};
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { product: isSet(object.product) ? globalThis.String(object.product) : "" };
|
|
39
48
|
},
|
|
40
|
-
toJSON(
|
|
49
|
+
toJSON(message) {
|
|
41
50
|
const obj = {};
|
|
51
|
+
if (message.product !== "") {
|
|
52
|
+
obj.product = message.product;
|
|
53
|
+
}
|
|
42
54
|
return obj;
|
|
43
55
|
},
|
|
44
56
|
create(base) {
|
|
45
57
|
return exports.getTnCRequest.fromPartial(base ?? {});
|
|
46
58
|
},
|
|
47
|
-
fromPartial(
|
|
59
|
+
fromPartial(object) {
|
|
48
60
|
const message = createBasegetTnCRequest();
|
|
61
|
+
message.product = object.product ?? "";
|
|
49
62
|
return message;
|
|
50
63
|
},
|
|
51
64
|
};
|
|
52
65
|
function createBaseData() {
|
|
53
|
-
return { id: 0,
|
|
66
|
+
return { id: 0, title: "", content: "", file_url: "", tag: "", is_mandatory: "", consent_type: "" };
|
|
54
67
|
}
|
|
55
68
|
exports.Data = {
|
|
56
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
70
|
if (message.id !== 0) {
|
|
58
71
|
writer.uint32(8).int32(message.id);
|
|
59
72
|
}
|
|
60
|
-
if (message.version !== "") {
|
|
61
|
-
writer.uint32(18).string(message.version);
|
|
62
|
-
}
|
|
63
73
|
if (message.title !== "") {
|
|
64
|
-
writer.uint32(
|
|
74
|
+
writer.uint32(18).string(message.title);
|
|
65
75
|
}
|
|
66
76
|
if (message.content !== "") {
|
|
67
|
-
writer.uint32(
|
|
77
|
+
writer.uint32(26).string(message.content);
|
|
78
|
+
}
|
|
79
|
+
if (message.file_url !== "") {
|
|
80
|
+
writer.uint32(34).string(message.file_url);
|
|
81
|
+
}
|
|
82
|
+
if (message.tag !== "") {
|
|
83
|
+
writer.uint32(42).string(message.tag);
|
|
84
|
+
}
|
|
85
|
+
if (message.is_mandatory !== "") {
|
|
86
|
+
writer.uint32(50).string(message.is_mandatory);
|
|
87
|
+
}
|
|
88
|
+
if (message.consent_type !== "") {
|
|
89
|
+
writer.uint32(58).string(message.consent_type);
|
|
68
90
|
}
|
|
69
91
|
return writer;
|
|
70
92
|
},
|
|
@@ -85,19 +107,37 @@ exports.Data = {
|
|
|
85
107
|
if (tag !== 18) {
|
|
86
108
|
break;
|
|
87
109
|
}
|
|
88
|
-
message.
|
|
110
|
+
message.title = reader.string();
|
|
89
111
|
continue;
|
|
90
112
|
case 3:
|
|
91
113
|
if (tag !== 26) {
|
|
92
114
|
break;
|
|
93
115
|
}
|
|
94
|
-
message.
|
|
116
|
+
message.content = reader.string();
|
|
95
117
|
continue;
|
|
96
118
|
case 4:
|
|
97
119
|
if (tag !== 34) {
|
|
98
120
|
break;
|
|
99
121
|
}
|
|
100
|
-
message.
|
|
122
|
+
message.file_url = reader.string();
|
|
123
|
+
continue;
|
|
124
|
+
case 5:
|
|
125
|
+
if (tag !== 42) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
message.tag = reader.string();
|
|
129
|
+
continue;
|
|
130
|
+
case 6:
|
|
131
|
+
if (tag !== 50) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
message.is_mandatory = reader.string();
|
|
135
|
+
continue;
|
|
136
|
+
case 7:
|
|
137
|
+
if (tag !== 58) {
|
|
138
|
+
break;
|
|
139
|
+
}
|
|
140
|
+
message.consent_type = reader.string();
|
|
101
141
|
continue;
|
|
102
142
|
}
|
|
103
143
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -110,9 +150,12 @@ exports.Data = {
|
|
|
110
150
|
fromJSON(object) {
|
|
111
151
|
return {
|
|
112
152
|
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
113
|
-
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
114
153
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
115
154
|
content: isSet(object.content) ? globalThis.String(object.content) : "",
|
|
155
|
+
file_url: isSet(object.file_url) ? globalThis.String(object.file_url) : "",
|
|
156
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
157
|
+
is_mandatory: isSet(object.is_mandatory) ? globalThis.String(object.is_mandatory) : "",
|
|
158
|
+
consent_type: isSet(object.consent_type) ? globalThis.String(object.consent_type) : "",
|
|
116
159
|
};
|
|
117
160
|
},
|
|
118
161
|
toJSON(message) {
|
|
@@ -120,15 +163,24 @@ exports.Data = {
|
|
|
120
163
|
if (message.id !== 0) {
|
|
121
164
|
obj.id = Math.round(message.id);
|
|
122
165
|
}
|
|
123
|
-
if (message.version !== "") {
|
|
124
|
-
obj.version = message.version;
|
|
125
|
-
}
|
|
126
166
|
if (message.title !== "") {
|
|
127
167
|
obj.title = message.title;
|
|
128
168
|
}
|
|
129
169
|
if (message.content !== "") {
|
|
130
170
|
obj.content = message.content;
|
|
131
171
|
}
|
|
172
|
+
if (message.file_url !== "") {
|
|
173
|
+
obj.file_url = message.file_url;
|
|
174
|
+
}
|
|
175
|
+
if (message.tag !== "") {
|
|
176
|
+
obj.tag = message.tag;
|
|
177
|
+
}
|
|
178
|
+
if (message.is_mandatory !== "") {
|
|
179
|
+
obj.is_mandatory = message.is_mandatory;
|
|
180
|
+
}
|
|
181
|
+
if (message.consent_type !== "") {
|
|
182
|
+
obj.consent_type = message.consent_type;
|
|
183
|
+
}
|
|
132
184
|
return obj;
|
|
133
185
|
},
|
|
134
186
|
create(base) {
|
|
@@ -137,9 +189,12 @@ exports.Data = {
|
|
|
137
189
|
fromPartial(object) {
|
|
138
190
|
const message = createBaseData();
|
|
139
191
|
message.id = object.id ?? 0;
|
|
140
|
-
message.version = object.version ?? "";
|
|
141
192
|
message.title = object.title ?? "";
|
|
142
193
|
message.content = object.content ?? "";
|
|
194
|
+
message.file_url = object.file_url ?? "";
|
|
195
|
+
message.tag = object.tag ?? "";
|
|
196
|
+
message.is_mandatory = object.is_mandatory ?? "";
|
|
197
|
+
message.consent_type = object.consent_type ?? "";
|
|
143
198
|
return message;
|
|
144
199
|
},
|
|
145
200
|
};
|