@aceplus/smartace-api 2.5.1 → 2.6.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.
@@ -404,6 +404,36 @@ export namespace AccountProto {
404
404
  }
405
405
  }
406
406
 
407
+ export class SetSuperAccountScopeRequest extends jspb.Message {
408
+ getId(): number;
409
+ setId(value: number): void;
410
+
411
+ hasScope(): boolean;
412
+ clearScope(): void;
413
+ getScope(): AccountProto.Scope | undefined;
414
+ setScope(value?: AccountProto.Scope): void;
415
+
416
+ getClusterName(): string;
417
+ setClusterName(value: string): void;
418
+
419
+ serializeBinary(): Uint8Array;
420
+ toObject(includeInstance?: boolean): SetSuperAccountScopeRequest.AsObject;
421
+ static toObject(includeInstance: boolean, msg: SetSuperAccountScopeRequest): SetSuperAccountScopeRequest.AsObject;
422
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
423
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
424
+ static serializeBinaryToWriter(message: SetSuperAccountScopeRequest, writer: jspb.BinaryWriter): void;
425
+ static deserializeBinary(bytes: Uint8Array): SetSuperAccountScopeRequest;
426
+ static deserializeBinaryFromReader(message: SetSuperAccountScopeRequest, reader: jspb.BinaryReader): SetSuperAccountScopeRequest;
427
+ }
428
+
429
+ export namespace SetSuperAccountScopeRequest {
430
+ export type AsObject = {
431
+ id: number,
432
+ scope?: AccountProto.Scope.AsObject,
433
+ clusterName: string,
434
+ }
435
+ }
436
+
407
437
  export class SetAccountScopeRequest extends jspb.Message {
408
438
  getId(): number;
409
439
  setId(value: number): void;
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.Auth.AccountProto.SearchReply', null, global);
48
48
  goog.exportSymbol('proto.Auth.AccountProto.SearchRequest', null, global);
49
49
  goog.exportSymbol('proto.Auth.AccountProto.SetAccountScopeReply', null, global);
50
50
  goog.exportSymbol('proto.Auth.AccountProto.SetAccountScopeRequest', null, global);
51
+ goog.exportSymbol('proto.Auth.AccountProto.SetSuperAccountScopeRequest', null, global);
51
52
  goog.exportSymbol('proto.Auth.AccountProto.UpdateRequest', null, global);
52
53
  /**
53
54
  * Generated by JsPbCodeGenerator.
@@ -343,6 +344,27 @@ if (goog.DEBUG && !COMPILED) {
343
344
  */
344
345
  proto.Auth.AccountProto.Scope.displayName = 'proto.Auth.AccountProto.Scope';
345
346
  }
347
+ /**
348
+ * Generated by JsPbCodeGenerator.
349
+ * @param {Array=} opt_data Optional initial data array, typically from a
350
+ * server response, or constructed directly in Javascript. The array is used
351
+ * in place and becomes part of the constructed object. It is not cloned.
352
+ * If no data is provided, the constructed object will be empty, but still
353
+ * valid.
354
+ * @extends {jspb.Message}
355
+ * @constructor
356
+ */
357
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest = function(opt_data) {
358
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
359
+ };
360
+ goog.inherits(proto.Auth.AccountProto.SetSuperAccountScopeRequest, jspb.Message);
361
+ if (goog.DEBUG && !COMPILED) {
362
+ /**
363
+ * @public
364
+ * @override
365
+ */
366
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.displayName = 'proto.Auth.AccountProto.SetSuperAccountScopeRequest';
367
+ }
346
368
  /**
347
369
  * Generated by JsPbCodeGenerator.
348
370
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -3080,6 +3102,217 @@ proto.Auth.AccountProto.Scope.prototype.setScopeValue = function(value) {
3080
3102
 
3081
3103
 
3082
3104
 
3105
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3106
+ /**
3107
+ * Creates an object representation of this proto.
3108
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3109
+ * Optional fields that are not set will be set to undefined.
3110
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3111
+ * For the list of reserved names please see:
3112
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3113
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3114
+ * JSPB instance for transitional soy proto support:
3115
+ * http://goto/soy-param-migration
3116
+ * @return {!Object}
3117
+ */
3118
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.toObject = function(opt_includeInstance) {
3119
+ return proto.Auth.AccountProto.SetSuperAccountScopeRequest.toObject(opt_includeInstance, this);
3120
+ };
3121
+
3122
+
3123
+ /**
3124
+ * Static version of the {@see toObject} method.
3125
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3126
+ * the JSPB instance for transitional soy proto support:
3127
+ * http://goto/soy-param-migration
3128
+ * @param {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} msg The msg instance to transform.
3129
+ * @return {!Object}
3130
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3131
+ */
3132
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.toObject = function(includeInstance, msg) {
3133
+ var f, obj = {
3134
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3135
+ scope: (f = msg.getScope()) && proto.Auth.AccountProto.Scope.toObject(includeInstance, f),
3136
+ clusterName: jspb.Message.getFieldWithDefault(msg, 3, "")
3137
+ };
3138
+
3139
+ if (includeInstance) {
3140
+ obj.$jspbMessageInstance = msg;
3141
+ }
3142
+ return obj;
3143
+ };
3144
+ }
3145
+
3146
+
3147
+ /**
3148
+ * Deserializes binary data (in protobuf wire format).
3149
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3150
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest}
3151
+ */
3152
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.deserializeBinary = function(bytes) {
3153
+ var reader = new jspb.BinaryReader(bytes);
3154
+ var msg = new proto.Auth.AccountProto.SetSuperAccountScopeRequest;
3155
+ return proto.Auth.AccountProto.SetSuperAccountScopeRequest.deserializeBinaryFromReader(msg, reader);
3156
+ };
3157
+
3158
+
3159
+ /**
3160
+ * Deserializes binary data (in protobuf wire format) from the
3161
+ * given reader into the given message object.
3162
+ * @param {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} msg The message object to deserialize into.
3163
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3164
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest}
3165
+ */
3166
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.deserializeBinaryFromReader = function(msg, reader) {
3167
+ while (reader.nextField()) {
3168
+ if (reader.isEndGroup()) {
3169
+ break;
3170
+ }
3171
+ var field = reader.getFieldNumber();
3172
+ switch (field) {
3173
+ case 1:
3174
+ var value = /** @type {number} */ (reader.readInt64());
3175
+ msg.setId(value);
3176
+ break;
3177
+ case 2:
3178
+ var value = new proto.Auth.AccountProto.Scope;
3179
+ reader.readMessage(value,proto.Auth.AccountProto.Scope.deserializeBinaryFromReader);
3180
+ msg.setScope(value);
3181
+ break;
3182
+ case 3:
3183
+ var value = /** @type {string} */ (reader.readString());
3184
+ msg.setClusterName(value);
3185
+ break;
3186
+ default:
3187
+ reader.skipField();
3188
+ break;
3189
+ }
3190
+ }
3191
+ return msg;
3192
+ };
3193
+
3194
+
3195
+ /**
3196
+ * Serializes the message to binary data (in protobuf wire format).
3197
+ * @return {!Uint8Array}
3198
+ */
3199
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.serializeBinary = function() {
3200
+ var writer = new jspb.BinaryWriter();
3201
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.serializeBinaryToWriter(this, writer);
3202
+ return writer.getResultBuffer();
3203
+ };
3204
+
3205
+
3206
+ /**
3207
+ * Serializes the given message to binary data (in protobuf wire
3208
+ * format), writing to the given BinaryWriter.
3209
+ * @param {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} message
3210
+ * @param {!jspb.BinaryWriter} writer
3211
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3212
+ */
3213
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.serializeBinaryToWriter = function(message, writer) {
3214
+ var f = undefined;
3215
+ f = message.getId();
3216
+ if (f !== 0) {
3217
+ writer.writeInt64(
3218
+ 1,
3219
+ f
3220
+ );
3221
+ }
3222
+ f = message.getScope();
3223
+ if (f != null) {
3224
+ writer.writeMessage(
3225
+ 2,
3226
+ f,
3227
+ proto.Auth.AccountProto.Scope.serializeBinaryToWriter
3228
+ );
3229
+ }
3230
+ f = message.getClusterName();
3231
+ if (f.length > 0) {
3232
+ writer.writeString(
3233
+ 3,
3234
+ f
3235
+ );
3236
+ }
3237
+ };
3238
+
3239
+
3240
+ /**
3241
+ * optional int64 id = 1;
3242
+ * @return {number}
3243
+ */
3244
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getId = function() {
3245
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
3246
+ };
3247
+
3248
+
3249
+ /**
3250
+ * @param {number} value
3251
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3252
+ */
3253
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setId = function(value) {
3254
+ return jspb.Message.setProto3IntField(this, 1, value);
3255
+ };
3256
+
3257
+
3258
+ /**
3259
+ * optional Scope scope = 2;
3260
+ * @return {?proto.Auth.AccountProto.Scope}
3261
+ */
3262
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getScope = function() {
3263
+ return /** @type{?proto.Auth.AccountProto.Scope} */ (
3264
+ jspb.Message.getWrapperField(this, proto.Auth.AccountProto.Scope, 2));
3265
+ };
3266
+
3267
+
3268
+ /**
3269
+ * @param {?proto.Auth.AccountProto.Scope|undefined} value
3270
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3271
+ */
3272
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setScope = function(value) {
3273
+ return jspb.Message.setWrapperField(this, 2, value);
3274
+ };
3275
+
3276
+
3277
+ /**
3278
+ * Clears the message field making it undefined.
3279
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3280
+ */
3281
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.clearScope = function() {
3282
+ return this.setScope(undefined);
3283
+ };
3284
+
3285
+
3286
+ /**
3287
+ * Returns whether this field is set.
3288
+ * @return {boolean}
3289
+ */
3290
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.hasScope = function() {
3291
+ return jspb.Message.getField(this, 2) != null;
3292
+ };
3293
+
3294
+
3295
+ /**
3296
+ * optional string cluster_name = 3;
3297
+ * @return {string}
3298
+ */
3299
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.getClusterName = function() {
3300
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
3301
+ };
3302
+
3303
+
3304
+ /**
3305
+ * @param {string} value
3306
+ * @return {!proto.Auth.AccountProto.SetSuperAccountScopeRequest} returns this
3307
+ */
3308
+ proto.Auth.AccountProto.SetSuperAccountScopeRequest.prototype.setClusterName = function(value) {
3309
+ return jspb.Message.setProto3StringField(this, 3, value);
3310
+ };
3311
+
3312
+
3313
+
3314
+
3315
+
3083
3316
  if (jspb.Message.GENERATE_TO_OBJECT) {
3084
3317
  /**
3085
3318
  * Creates an object representation of this proto.
@@ -64,7 +64,7 @@ type SuperAdminAccountGRPCSetAccountScope = {
64
64
  readonly service: typeof SuperAdminAccountGRPC;
65
65
  readonly requestStream: false;
66
66
  readonly responseStream: false;
67
- readonly requestType: typeof auth_account_pb.AccountProto.SetAccountScopeRequest;
67
+ readonly requestType: typeof auth_account_pb.AccountProto.SetSuperAccountScopeRequest;
68
68
  readonly responseType: typeof auth_account_pb.AccountProto.SetAccountScopeReply;
69
69
  };
70
70
 
@@ -310,12 +310,12 @@ export class SuperAdminAccountGRPCClient {
310
310
  callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.ChangePasswordReply|null) => void
311
311
  ): UnaryResponse;
312
312
  setAccountScope(
313
- requestMessage: auth_account_pb.AccountProto.SetAccountScopeRequest,
313
+ requestMessage: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
314
314
  metadata: grpc.Metadata,
315
315
  callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
316
316
  ): UnaryResponse;
317
317
  setAccountScope(
318
- requestMessage: auth_account_pb.AccountProto.SetAccountScopeRequest,
318
+ requestMessage: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
319
319
  callback: (error: ServiceError|null, responseMessage: auth_account_pb.AccountProto.SetAccountScopeReply|null) => void
320
320
  ): UnaryResponse;
321
321
  }
@@ -70,7 +70,7 @@ SuperAdminAccountGRPC.SetAccountScope = {
70
70
  service: SuperAdminAccountGRPC,
71
71
  requestStream: false,
72
72
  responseStream: false,
73
- requestType: auth_account_pb.AccountProto.SetAccountScopeRequest,
73
+ requestType: auth_account_pb.AccountProto.SetSuperAccountScopeRequest,
74
74
  responseType: auth_account_pb.AccountProto.SetAccountScopeReply
75
75
  };
76
76
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.5.1",
8
+ "version": "2.6.0",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [