@meshtrade/api-old 1.40.0 → 1.42.0
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/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.d.ts +7 -1
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_client_meshts.js +8 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.d.ts +12 -0
- package/dist/meshtrade/compliance/client/v1/service_grpc_web_pb.js +61 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.d.ts +18 -0
- package/dist/meshtrade/compliance/client/v1/service_pb.js +152 -0
- package/dist/meshtrade/iam/role/v1/role.js +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.d.ts +2 -0
- package/dist/meshtrade/iam/role/v1/role_pb.js +2 -0
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.d.ts +1 -7
- package/dist/meshtrade/iam/user/v1/service_grpc_web_client_meshts.js +0 -8
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.d.ts +0 -12
- package/dist/meshtrade/iam/user/v1/service_grpc_web_pb.js +0 -61
- package/dist/meshtrade/iam/user/v1/service_pb.d.ts +0 -67
- package/dist/meshtrade/iam/user/v1/service_pb.js +0 -567
- package/dist/meshtrade/iam/user/v1/user_pb.d.ts +32 -0
- package/dist/meshtrade/iam/user/v1/user_pb.js +270 -7
- package/dist/meshtrade/iam/user_profile/v1/index.d.ts +4 -0
- package/dist/meshtrade/iam/user_profile/v1/index.js +45 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.d.ts +53 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_client_meshts.js +96 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.d.ts +68 -0
- package/dist/meshtrade/iam/user_profile/v1/service_grpc_web_pb.js +331 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.d.ts +97 -0
- package/dist/meshtrade/iam/user_profile/v1/service_pb.js +812 -0
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.d.ts +62 -0
- package/dist/meshtrade/iam/user_profile/v1/user_profile_pb.js +488 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.d.ts +8 -0
- package/dist/meshtrade/option/method_options/v1/method_options_pb.js +40 -1
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
import * as buf_validate_validate_pb from '../../../../buf/validate/validate_pb'; // proto import: "buf/validate/validate.proto"
|
|
4
|
+
import * as meshtrade_type_v1_token_pb from '../../../../meshtrade/type/v1/token_pb'; // proto import: "meshtrade/type/v1/token.proto"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class UserProfile extends jspb.Message {
|
|
8
|
+
getName(): string;
|
|
9
|
+
setName(value: string): UserProfile;
|
|
10
|
+
|
|
11
|
+
getOwner(): string;
|
|
12
|
+
setOwner(value: string): UserProfile;
|
|
13
|
+
|
|
14
|
+
getOwnersList(): Array<string>;
|
|
15
|
+
setOwnersList(value: Array<string>): UserProfile;
|
|
16
|
+
clearOwnersList(): UserProfile;
|
|
17
|
+
addOwners(value: string, index?: number): UserProfile;
|
|
18
|
+
|
|
19
|
+
getUser(): string;
|
|
20
|
+
setUser(value: string): UserProfile;
|
|
21
|
+
|
|
22
|
+
getLocale(): string;
|
|
23
|
+
setLocale(value: string): UserProfile;
|
|
24
|
+
|
|
25
|
+
getProfilePictureUrl(): string;
|
|
26
|
+
setProfilePictureUrl(value: string): UserProfile;
|
|
27
|
+
|
|
28
|
+
getDisplayName(): string;
|
|
29
|
+
setDisplayName(value: string): UserProfile;
|
|
30
|
+
|
|
31
|
+
getDisplayCurrency(): meshtrade_type_v1_token_pb.Token | undefined;
|
|
32
|
+
setDisplayCurrency(value?: meshtrade_type_v1_token_pb.Token): UserProfile;
|
|
33
|
+
hasDisplayCurrency(): boolean;
|
|
34
|
+
clearDisplayCurrency(): UserProfile;
|
|
35
|
+
|
|
36
|
+
getReportingCurrency(): meshtrade_type_v1_token_pb.Token | undefined;
|
|
37
|
+
setReportingCurrency(value?: meshtrade_type_v1_token_pb.Token): UserProfile;
|
|
38
|
+
hasReportingCurrency(): boolean;
|
|
39
|
+
clearReportingCurrency(): UserProfile;
|
|
40
|
+
|
|
41
|
+
serializeBinary(): Uint8Array;
|
|
42
|
+
toObject(includeInstance?: boolean): UserProfile.AsObject;
|
|
43
|
+
static toObject(includeInstance: boolean, msg: UserProfile): UserProfile.AsObject;
|
|
44
|
+
static serializeBinaryToWriter(message: UserProfile, writer: jspb.BinaryWriter): void;
|
|
45
|
+
static deserializeBinary(bytes: Uint8Array): UserProfile;
|
|
46
|
+
static deserializeBinaryFromReader(message: UserProfile, reader: jspb.BinaryReader): UserProfile;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace UserProfile {
|
|
50
|
+
export type AsObject = {
|
|
51
|
+
name: string,
|
|
52
|
+
owner: string,
|
|
53
|
+
ownersList: Array<string>,
|
|
54
|
+
user: string,
|
|
55
|
+
locale: string,
|
|
56
|
+
profilePictureUrl: string,
|
|
57
|
+
displayName: string,
|
|
58
|
+
displayCurrency?: meshtrade_type_v1_token_pb.Token.AsObject,
|
|
59
|
+
reportingCurrency?: meshtrade_type_v1_token_pb.Token.AsObject,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
// source: meshtrade/iam/user_profile/v1/user_profile.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global =
|
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
|
21
|
+
(function () { return this; }).call(null) ||
|
|
22
|
+
Function('return this')();
|
|
23
|
+
|
|
24
|
+
var buf_validate_validate_pb = require('../../../../buf/validate/validate_pb.js');
|
|
25
|
+
goog.object.extend(proto, buf_validate_validate_pb);
|
|
26
|
+
var meshtrade_type_v1_token_pb = require('../../../../meshtrade/type/v1/token_pb.js');
|
|
27
|
+
goog.object.extend(proto, meshtrade_type_v1_token_pb);
|
|
28
|
+
goog.exportSymbol('proto.meshtrade.iam.user_profile.v1.UserProfile', null, global);
|
|
29
|
+
/**
|
|
30
|
+
* Generated by JsPbCodeGenerator.
|
|
31
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
32
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
33
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
34
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
35
|
+
* valid.
|
|
36
|
+
* @extends {jspb.Message}
|
|
37
|
+
* @constructor
|
|
38
|
+
*/
|
|
39
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile = function(opt_data) {
|
|
40
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.meshtrade.iam.user_profile.v1.UserProfile.repeatedFields_, null);
|
|
41
|
+
};
|
|
42
|
+
goog.inherits(proto.meshtrade.iam.user_profile.v1.UserProfile, jspb.Message);
|
|
43
|
+
if (goog.DEBUG && !COMPILED) {
|
|
44
|
+
/**
|
|
45
|
+
* @public
|
|
46
|
+
* @override
|
|
47
|
+
*/
|
|
48
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.displayName = 'proto.meshtrade.iam.user_profile.v1.UserProfile';
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* List of repeated fields within this message type.
|
|
53
|
+
* @private {!Array<number>}
|
|
54
|
+
* @const
|
|
55
|
+
*/
|
|
56
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.repeatedFields_ = [3];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
61
|
+
/**
|
|
62
|
+
* Creates an object representation of this proto.
|
|
63
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
64
|
+
* Optional fields that are not set will be set to undefined.
|
|
65
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
66
|
+
* For the list of reserved names please see:
|
|
67
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
68
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
69
|
+
* JSPB instance for transitional soy proto support:
|
|
70
|
+
* http://goto/soy-param-migration
|
|
71
|
+
* @return {!Object}
|
|
72
|
+
*/
|
|
73
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.toObject = function(opt_includeInstance) {
|
|
74
|
+
return proto.meshtrade.iam.user_profile.v1.UserProfile.toObject(opt_includeInstance, this);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Static version of the {@see toObject} method.
|
|
80
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
81
|
+
* the JSPB instance for transitional soy proto support:
|
|
82
|
+
* http://goto/soy-param-migration
|
|
83
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} msg The msg instance to transform.
|
|
84
|
+
* @return {!Object}
|
|
85
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
86
|
+
*/
|
|
87
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.toObject = function(includeInstance, msg) {
|
|
88
|
+
var f, obj = {
|
|
89
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
90
|
+
owner: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
91
|
+
ownersList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
92
|
+
user: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
93
|
+
locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
94
|
+
profilePictureUrl: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
95
|
+
displayName: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
96
|
+
displayCurrency: (f = msg.getDisplayCurrency()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f),
|
|
97
|
+
reportingCurrency: (f = msg.getReportingCurrency()) && meshtrade_type_v1_token_pb.Token.toObject(includeInstance, f)
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
if (includeInstance) {
|
|
101
|
+
obj.$jspbMessageInstance = msg;
|
|
102
|
+
}
|
|
103
|
+
return obj;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Deserializes binary data (in protobuf wire format).
|
|
110
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
111
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile}
|
|
112
|
+
*/
|
|
113
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinary = function(bytes) {
|
|
114
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
115
|
+
var msg = new proto.meshtrade.iam.user_profile.v1.UserProfile;
|
|
116
|
+
return proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinaryFromReader(msg, reader);
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
122
|
+
* given reader into the given message object.
|
|
123
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} msg The message object to deserialize into.
|
|
124
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
125
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile}
|
|
126
|
+
*/
|
|
127
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.deserializeBinaryFromReader = function(msg, reader) {
|
|
128
|
+
while (reader.nextField()) {
|
|
129
|
+
if (reader.isEndGroup()) {
|
|
130
|
+
break;
|
|
131
|
+
}
|
|
132
|
+
var field = reader.getFieldNumber();
|
|
133
|
+
switch (field) {
|
|
134
|
+
case 1:
|
|
135
|
+
var value = /** @type {string} */ (reader.readString());
|
|
136
|
+
msg.setName(value);
|
|
137
|
+
break;
|
|
138
|
+
case 2:
|
|
139
|
+
var value = /** @type {string} */ (reader.readString());
|
|
140
|
+
msg.setOwner(value);
|
|
141
|
+
break;
|
|
142
|
+
case 3:
|
|
143
|
+
var value = /** @type {string} */ (reader.readString());
|
|
144
|
+
msg.addOwners(value);
|
|
145
|
+
break;
|
|
146
|
+
case 4:
|
|
147
|
+
var value = /** @type {string} */ (reader.readString());
|
|
148
|
+
msg.setUser(value);
|
|
149
|
+
break;
|
|
150
|
+
case 5:
|
|
151
|
+
var value = /** @type {string} */ (reader.readString());
|
|
152
|
+
msg.setLocale(value);
|
|
153
|
+
break;
|
|
154
|
+
case 6:
|
|
155
|
+
var value = /** @type {string} */ (reader.readString());
|
|
156
|
+
msg.setProfilePictureUrl(value);
|
|
157
|
+
break;
|
|
158
|
+
case 7:
|
|
159
|
+
var value = /** @type {string} */ (reader.readString());
|
|
160
|
+
msg.setDisplayName(value);
|
|
161
|
+
break;
|
|
162
|
+
case 8:
|
|
163
|
+
var value = new meshtrade_type_v1_token_pb.Token;
|
|
164
|
+
reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
|
|
165
|
+
msg.setDisplayCurrency(value);
|
|
166
|
+
break;
|
|
167
|
+
case 9:
|
|
168
|
+
var value = new meshtrade_type_v1_token_pb.Token;
|
|
169
|
+
reader.readMessage(value,meshtrade_type_v1_token_pb.Token.deserializeBinaryFromReader);
|
|
170
|
+
msg.setReportingCurrency(value);
|
|
171
|
+
break;
|
|
172
|
+
default:
|
|
173
|
+
reader.skipField();
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return msg;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
183
|
+
* @return {!Uint8Array}
|
|
184
|
+
*/
|
|
185
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.serializeBinary = function() {
|
|
186
|
+
var writer = new jspb.BinaryWriter();
|
|
187
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.serializeBinaryToWriter(this, writer);
|
|
188
|
+
return writer.getResultBuffer();
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
194
|
+
* format), writing to the given BinaryWriter.
|
|
195
|
+
* @param {!proto.meshtrade.iam.user_profile.v1.UserProfile} message
|
|
196
|
+
* @param {!jspb.BinaryWriter} writer
|
|
197
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
198
|
+
*/
|
|
199
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.serializeBinaryToWriter = function(message, writer) {
|
|
200
|
+
var f = undefined;
|
|
201
|
+
f = message.getName();
|
|
202
|
+
if (f.length > 0) {
|
|
203
|
+
writer.writeString(
|
|
204
|
+
1,
|
|
205
|
+
f
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
f = message.getOwner();
|
|
209
|
+
if (f.length > 0) {
|
|
210
|
+
writer.writeString(
|
|
211
|
+
2,
|
|
212
|
+
f
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
f = message.getOwnersList();
|
|
216
|
+
if (f.length > 0) {
|
|
217
|
+
writer.writeRepeatedString(
|
|
218
|
+
3,
|
|
219
|
+
f
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
f = message.getUser();
|
|
223
|
+
if (f.length > 0) {
|
|
224
|
+
writer.writeString(
|
|
225
|
+
4,
|
|
226
|
+
f
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
f = message.getLocale();
|
|
230
|
+
if (f.length > 0) {
|
|
231
|
+
writer.writeString(
|
|
232
|
+
5,
|
|
233
|
+
f
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
f = message.getProfilePictureUrl();
|
|
237
|
+
if (f.length > 0) {
|
|
238
|
+
writer.writeString(
|
|
239
|
+
6,
|
|
240
|
+
f
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
f = message.getDisplayName();
|
|
244
|
+
if (f.length > 0) {
|
|
245
|
+
writer.writeString(
|
|
246
|
+
7,
|
|
247
|
+
f
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
f = message.getDisplayCurrency();
|
|
251
|
+
if (f != null) {
|
|
252
|
+
writer.writeMessage(
|
|
253
|
+
8,
|
|
254
|
+
f,
|
|
255
|
+
meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
f = message.getReportingCurrency();
|
|
259
|
+
if (f != null) {
|
|
260
|
+
writer.writeMessage(
|
|
261
|
+
9,
|
|
262
|
+
f,
|
|
263
|
+
meshtrade_type_v1_token_pb.Token.serializeBinaryToWriter
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* optional string name = 1;
|
|
271
|
+
* @return {string}
|
|
272
|
+
*/
|
|
273
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getName = function() {
|
|
274
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {string} value
|
|
280
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
281
|
+
*/
|
|
282
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setName = function(value) {
|
|
283
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* optional string owner = 2;
|
|
289
|
+
* @return {string}
|
|
290
|
+
*/
|
|
291
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getOwner = function() {
|
|
292
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* @param {string} value
|
|
298
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
299
|
+
*/
|
|
300
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setOwner = function(value) {
|
|
301
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* repeated string owners = 3;
|
|
307
|
+
* @return {!Array<string>}
|
|
308
|
+
*/
|
|
309
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getOwnersList = function() {
|
|
310
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* @param {!Array<string>} value
|
|
316
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
317
|
+
*/
|
|
318
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setOwnersList = function(value) {
|
|
319
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @param {string} value
|
|
325
|
+
* @param {number=} opt_index
|
|
326
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
327
|
+
*/
|
|
328
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.addOwners = function(value, opt_index) {
|
|
329
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Clears the list making it empty but non-null.
|
|
335
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
336
|
+
*/
|
|
337
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearOwnersList = function() {
|
|
338
|
+
return this.setOwnersList([]);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* optional string user = 4;
|
|
344
|
+
* @return {string}
|
|
345
|
+
*/
|
|
346
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getUser = function() {
|
|
347
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @param {string} value
|
|
353
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
354
|
+
*/
|
|
355
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setUser = function(value) {
|
|
356
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* optional string locale = 5;
|
|
362
|
+
* @return {string}
|
|
363
|
+
*/
|
|
364
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getLocale = function() {
|
|
365
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* @param {string} value
|
|
371
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
372
|
+
*/
|
|
373
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setLocale = function(value) {
|
|
374
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* optional string profile_picture_url = 6;
|
|
380
|
+
* @return {string}
|
|
381
|
+
*/
|
|
382
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getProfilePictureUrl = function() {
|
|
383
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @param {string} value
|
|
389
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
390
|
+
*/
|
|
391
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setProfilePictureUrl = function(value) {
|
|
392
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* optional string display_name = 7;
|
|
398
|
+
* @return {string}
|
|
399
|
+
*/
|
|
400
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getDisplayName = function() {
|
|
401
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @param {string} value
|
|
407
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
408
|
+
*/
|
|
409
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setDisplayName = function(value) {
|
|
410
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* optional meshtrade.type.v1.Token display_currency = 8;
|
|
416
|
+
* @return {?proto.meshtrade.type.v1.Token}
|
|
417
|
+
*/
|
|
418
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getDisplayCurrency = function() {
|
|
419
|
+
return /** @type{?proto.meshtrade.type.v1.Token} */ (
|
|
420
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 8));
|
|
421
|
+
};
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* @param {?proto.meshtrade.type.v1.Token|undefined} value
|
|
426
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
427
|
+
*/
|
|
428
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setDisplayCurrency = function(value) {
|
|
429
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Clears the message field making it undefined.
|
|
435
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
436
|
+
*/
|
|
437
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearDisplayCurrency = function() {
|
|
438
|
+
return this.setDisplayCurrency(undefined);
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Returns whether this field is set.
|
|
444
|
+
* @return {boolean}
|
|
445
|
+
*/
|
|
446
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.hasDisplayCurrency = function() {
|
|
447
|
+
return jspb.Message.getField(this, 8) != null;
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* optional meshtrade.type.v1.Token reporting_currency = 9;
|
|
453
|
+
* @return {?proto.meshtrade.type.v1.Token}
|
|
454
|
+
*/
|
|
455
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.getReportingCurrency = function() {
|
|
456
|
+
return /** @type{?proto.meshtrade.type.v1.Token} */ (
|
|
457
|
+
jspb.Message.getWrapperField(this, meshtrade_type_v1_token_pb.Token, 9));
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* @param {?proto.meshtrade.type.v1.Token|undefined} value
|
|
463
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
464
|
+
*/
|
|
465
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.setReportingCurrency = function(value) {
|
|
466
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Clears the message field making it undefined.
|
|
472
|
+
* @return {!proto.meshtrade.iam.user_profile.v1.UserProfile} returns this
|
|
473
|
+
*/
|
|
474
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.clearReportingCurrency = function() {
|
|
475
|
+
return this.setReportingCurrency(undefined);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Returns whether this field is set.
|
|
481
|
+
* @return {boolean}
|
|
482
|
+
*/
|
|
483
|
+
proto.meshtrade.iam.user_profile.v1.UserProfile.prototype.hasReportingCurrency = function() {
|
|
484
|
+
return jspb.Message.getField(this, 9) != null;
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
goog.object.extend(exports, proto.meshtrade.iam.user_profile.v1);
|
|
@@ -16,6 +16,9 @@ export class MethodOptions extends jspb.Message {
|
|
|
16
16
|
clearRolesList(): MethodOptions;
|
|
17
17
|
addRoles(value: meshtrade_iam_role_v1_role_pb.Role, index?: number): MethodOptions;
|
|
18
18
|
|
|
19
|
+
getVerificationStatus(): VerificationStatus;
|
|
20
|
+
setVerificationStatus(value: VerificationStatus): MethodOptions;
|
|
21
|
+
|
|
19
22
|
serializeBinary(): Uint8Array;
|
|
20
23
|
toObject(includeInstance?: boolean): MethodOptions.AsObject;
|
|
21
24
|
static toObject(includeInstance: boolean, msg: MethodOptions): MethodOptions.AsObject;
|
|
@@ -29,6 +32,7 @@ export namespace MethodOptions {
|
|
|
29
32
|
type: MethodType,
|
|
30
33
|
accessLevel: MethodAccessLevel,
|
|
31
34
|
rolesList: Array<meshtrade_iam_role_v1_role_pb.Role>,
|
|
35
|
+
verificationStatus: VerificationStatus,
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
|
|
@@ -42,3 +46,7 @@ export enum MethodAccessLevel {
|
|
|
42
46
|
METHOD_ACCESS_LEVEL_PUBLIC = 1,
|
|
43
47
|
METHOD_ACCESS_LEVEL_AUTHORISED = 2,
|
|
44
48
|
}
|
|
49
|
+
export enum VerificationStatus {
|
|
50
|
+
VERIFICATION_STATUS_UNSPECIFIED = 0,
|
|
51
|
+
VERIFICATION_STATUS_VERIFIED = 1,
|
|
52
|
+
}
|
|
@@ -28,6 +28,7 @@ goog.object.extend(proto, meshtrade_iam_role_v1_role_pb);
|
|
|
28
28
|
goog.exportSymbol('proto.meshtrade.option.method_options.v1.MethodAccessLevel', null, global);
|
|
29
29
|
goog.exportSymbol('proto.meshtrade.option.method_options.v1.MethodOptions', null, global);
|
|
30
30
|
goog.exportSymbol('proto.meshtrade.option.method_options.v1.MethodType', null, global);
|
|
31
|
+
goog.exportSymbol('proto.meshtrade.option.method_options.v1.VerificationStatus', null, global);
|
|
31
32
|
goog.exportSymbol('proto.meshtrade.option.method_options.v1.methodOptions', null, global);
|
|
32
33
|
/**
|
|
33
34
|
* Generated by JsPbCodeGenerator.
|
|
@@ -91,7 +92,8 @@ proto.meshtrade.option.method_options.v1.MethodOptions.toObject = function(inclu
|
|
|
91
92
|
var f, obj = {
|
|
92
93
|
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
93
94
|
accessLevel: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
94
|
-
rolesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
|
95
|
+
rolesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
96
|
+
verificationStatus: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
95
97
|
};
|
|
96
98
|
|
|
97
99
|
if (includeInstance) {
|
|
@@ -142,6 +144,10 @@ proto.meshtrade.option.method_options.v1.MethodOptions.deserializeBinaryFromRead
|
|
|
142
144
|
msg.addRoles(values[i]);
|
|
143
145
|
}
|
|
144
146
|
break;
|
|
147
|
+
case 4:
|
|
148
|
+
var value = /** @type {!proto.meshtrade.option.method_options.v1.VerificationStatus} */ (reader.readEnum());
|
|
149
|
+
msg.setVerificationStatus(value);
|
|
150
|
+
break;
|
|
145
151
|
default:
|
|
146
152
|
reader.skipField();
|
|
147
153
|
break;
|
|
@@ -192,6 +198,13 @@ proto.meshtrade.option.method_options.v1.MethodOptions.serializeBinaryToWriter =
|
|
|
192
198
|
f
|
|
193
199
|
);
|
|
194
200
|
}
|
|
201
|
+
f = message.getVerificationStatus();
|
|
202
|
+
if (f !== 0.0) {
|
|
203
|
+
writer.writeEnum(
|
|
204
|
+
4,
|
|
205
|
+
f
|
|
206
|
+
);
|
|
207
|
+
}
|
|
195
208
|
};
|
|
196
209
|
|
|
197
210
|
|
|
@@ -268,6 +281,24 @@ proto.meshtrade.option.method_options.v1.MethodOptions.prototype.clearRolesList
|
|
|
268
281
|
};
|
|
269
282
|
|
|
270
283
|
|
|
284
|
+
/**
|
|
285
|
+
* optional VerificationStatus verification_status = 4;
|
|
286
|
+
* @return {!proto.meshtrade.option.method_options.v1.VerificationStatus}
|
|
287
|
+
*/
|
|
288
|
+
proto.meshtrade.option.method_options.v1.MethodOptions.prototype.getVerificationStatus = function() {
|
|
289
|
+
return /** @type {!proto.meshtrade.option.method_options.v1.VerificationStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* @param {!proto.meshtrade.option.method_options.v1.VerificationStatus} value
|
|
295
|
+
* @return {!proto.meshtrade.option.method_options.v1.MethodOptions} returns this
|
|
296
|
+
*/
|
|
297
|
+
proto.meshtrade.option.method_options.v1.MethodOptions.prototype.setVerificationStatus = function(value) {
|
|
298
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
|
|
271
302
|
/**
|
|
272
303
|
* @enum {number}
|
|
273
304
|
*/
|
|
@@ -286,6 +317,14 @@ proto.meshtrade.option.method_options.v1.MethodAccessLevel = {
|
|
|
286
317
|
METHOD_ACCESS_LEVEL_AUTHORISED: 2
|
|
287
318
|
};
|
|
288
319
|
|
|
320
|
+
/**
|
|
321
|
+
* @enum {number}
|
|
322
|
+
*/
|
|
323
|
+
proto.meshtrade.option.method_options.v1.VerificationStatus = {
|
|
324
|
+
VERIFICATION_STATUS_UNSPECIFIED: 0,
|
|
325
|
+
VERIFICATION_STATUS_VERIFIED: 1
|
|
326
|
+
};
|
|
327
|
+
|
|
289
328
|
|
|
290
329
|
/**
|
|
291
330
|
* A tuple of {field number, class constructor} for the extension
|