@aceplus/smartace-api 2.3.3 → 2.4.0-alpha.4

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
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.3.3",
8
+ "version": "2.4.0-alpha.4",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -7,6 +7,7 @@ import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
7
  import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
8
8
  import * as platform_pagination_pb from "./platform.pagination_pb";
9
9
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
10
+ import * as platform_client_pb from "./platform.client_pb";
10
11
 
11
12
  export class LocalAccountProto extends jspb.Message {
12
13
  getId(): number;
@@ -41,6 +42,11 @@ export class LocalAccountProto extends jspb.Message {
41
42
  getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
42
43
  setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
43
44
 
45
+ clearAssignedRolesList(): void;
46
+ getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
47
+ setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
48
+ addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
49
+
44
50
  serializeBinary(): Uint8Array;
45
51
  toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
46
52
  static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
@@ -63,6 +69,7 @@ export namespace LocalAccountProto {
63
69
  groupId: string,
64
70
  enabled: boolean,
65
71
  expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
72
+ assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
66
73
  }
67
74
 
68
75
  export class CreateAdminRequest extends jspb.Message {
@@ -87,6 +94,11 @@ export namespace LocalAccountProto {
87
94
  getGroupId(): string;
88
95
  setGroupId(value: string): void;
89
96
 
97
+ clearAssignedRolesList(): void;
98
+ getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
99
+ setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
100
+ addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
101
+
90
102
  serializeBinary(): Uint8Array;
91
103
  toObject(includeInstance?: boolean): CreateAdminRequest.AsObject;
92
104
  static toObject(includeInstance: boolean, msg: CreateAdminRequest): CreateAdminRequest.AsObject;
@@ -106,6 +118,7 @@ export namespace LocalAccountProto {
106
118
  company: string,
107
119
  clientId: number,
108
120
  groupId: string,
121
+ assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
109
122
  }
110
123
  }
111
124
 
@@ -172,6 +185,11 @@ export namespace LocalAccountProto {
172
185
  getGroupId(): string;
173
186
  setGroupId(value: string): void;
174
187
 
188
+ clearAssignedRolesList(): void;
189
+ getAssignedRolesList(): Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>;
190
+ setAssignedRolesList(value: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>): void;
191
+ addAssignedRoles(value: platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap], index?: number): platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap];
192
+
175
193
  serializeBinary(): Uint8Array;
176
194
  toObject(includeInstance?: boolean): UpdateRequest.AsObject;
177
195
  static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
@@ -190,6 +208,7 @@ export namespace LocalAccountProto {
190
208
  locale: string,
191
209
  company: string,
192
210
  groupId: string,
211
+ assignedRolesList: Array<platform_client_pb.ClientProto.RolesMap[keyof platform_client_pb.ClientProto.RolesMap]>,
193
212
  }
194
213
  }
195
214
 
@@ -31,6 +31,8 @@ var platform_pagination_pb = require('./platform.pagination_pb.js');
31
31
  goog.object.extend(proto, platform_pagination_pb);
32
32
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
33
33
  goog.object.extend(proto, google_protobuf_timestamp_pb);
34
+ var platform_client_pb = require('./platform.client_pb.js');
35
+ goog.object.extend(proto, platform_client_pb);
34
36
  goog.exportSymbol('proto.Platform.LocalAccountProto', null, global);
35
37
  goog.exportSymbol('proto.Platform.LocalAccountProto.AddClientRequest', null, global);
36
38
  goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAdminRequest', null, global);
@@ -54,7 +56,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global
54
56
  * @constructor
55
57
  */
56
58
  proto.Platform.LocalAccountProto = function(opt_data) {
57
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
59
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.repeatedFields_, null);
58
60
  };
59
61
  goog.inherits(proto.Platform.LocalAccountProto, jspb.Message);
60
62
  if (goog.DEBUG && !COMPILED) {
@@ -75,7 +77,7 @@ if (goog.DEBUG && !COMPILED) {
75
77
  * @constructor
76
78
  */
77
79
  proto.Platform.LocalAccountProto.CreateAdminRequest = function(opt_data) {
78
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
80
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_, null);
79
81
  };
80
82
  goog.inherits(proto.Platform.LocalAccountProto.CreateAdminRequest, jspb.Message);
81
83
  if (goog.DEBUG && !COMPILED) {
@@ -117,7 +119,7 @@ if (goog.DEBUG && !COMPILED) {
117
119
  * @constructor
118
120
  */
119
121
  proto.Platform.LocalAccountProto.UpdateRequest = function(opt_data) {
120
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
122
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_, null);
121
123
  };
122
124
  goog.inherits(proto.Platform.LocalAccountProto.UpdateRequest, jspb.Message);
123
125
  if (goog.DEBUG && !COMPILED) {
@@ -296,6 +298,13 @@ if (goog.DEBUG && !COMPILED) {
296
298
  proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
297
299
  }
298
300
 
301
+ /**
302
+ * List of repeated fields within this message type.
303
+ * @private {!Array<number>}
304
+ * @const
305
+ */
306
+ proto.Platform.LocalAccountProto.repeatedFields_ = [11];
307
+
299
308
 
300
309
 
301
310
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -336,7 +345,8 @@ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
336
345
  company: jspb.Message.getFieldWithDefault(msg, 7, ""),
337
346
  groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
338
347
  enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
339
- expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
348
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
349
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
340
350
  };
341
351
 
342
352
  if (includeInstance) {
@@ -414,6 +424,12 @@ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, rea
414
424
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
415
425
  msg.setExpiredAt(value);
416
426
  break;
427
+ case 11:
428
+ var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
429
+ for (var i = 0; i < values.length; i++) {
430
+ msg.addAssignedRoles(values[i]);
431
+ }
432
+ break;
417
433
  default:
418
434
  reader.skipField();
419
435
  break;
@@ -514,10 +530,24 @@ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, wri
514
530
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
515
531
  );
516
532
  }
533
+ f = message.getAssignedRolesList();
534
+ if (f.length > 0) {
535
+ writer.writePackedEnum(
536
+ 11,
537
+ f
538
+ );
539
+ }
517
540
  };
518
541
 
519
542
 
520
543
 
544
+ /**
545
+ * List of repeated fields within this message type.
546
+ * @private {!Array<number>}
547
+ * @const
548
+ */
549
+ proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_ = [8];
550
+
521
551
 
522
552
 
523
553
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -555,7 +585,8 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.toObject = function(includeI
555
585
  locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
556
586
  company: jspb.Message.getFieldWithDefault(msg, 5, ""),
557
587
  clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
558
- groupId: jspb.Message.getFieldWithDefault(msg, 7, "")
588
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
589
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
559
590
  };
560
591
 
561
592
  if (includeInstance) {
@@ -620,6 +651,12 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader
620
651
  var value = /** @type {string} */ (reader.readString());
621
652
  msg.setGroupId(value);
622
653
  break;
654
+ case 8:
655
+ var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
656
+ for (var i = 0; i < values.length; i++) {
657
+ msg.addAssignedRoles(values[i]);
658
+ }
659
+ break;
623
660
  default:
624
661
  reader.skipField();
625
662
  break;
@@ -698,6 +735,13 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter = fu
698
735
  f
699
736
  );
700
737
  }
738
+ f = message.getAssignedRolesList();
739
+ if (f.length > 0) {
740
+ writer.writePackedEnum(
741
+ 8,
742
+ f
743
+ );
744
+ }
701
745
  };
702
746
 
703
747
 
@@ -827,6 +871,43 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setGroupId = funct
827
871
  };
828
872
 
829
873
 
874
+ /**
875
+ * repeated ClientProto.Roles assigned_roles = 8;
876
+ * @return {!Array<!proto.Platform.ClientProto.Roles>}
877
+ */
878
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getAssignedRolesList = function() {
879
+ return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 8));
880
+ };
881
+
882
+
883
+ /**
884
+ * @param {!Array<!proto.Platform.ClientProto.Roles>} value
885
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
886
+ */
887
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setAssignedRolesList = function(value) {
888
+ return jspb.Message.setField(this, 8, value || []);
889
+ };
890
+
891
+
892
+ /**
893
+ * @param {!proto.Platform.ClientProto.Roles} value
894
+ * @param {number=} opt_index
895
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
896
+ */
897
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.addAssignedRoles = function(value, opt_index) {
898
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
899
+ };
900
+
901
+
902
+ /**
903
+ * Clears the list making it empty but non-null.
904
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
905
+ */
906
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.clearAssignedRolesList = function() {
907
+ return this.setAssignedRolesList([]);
908
+ };
909
+
910
+
830
911
 
831
912
 
832
913
 
@@ -1138,6 +1219,13 @@ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setGroupId = functio
1138
1219
 
1139
1220
 
1140
1221
 
1222
+ /**
1223
+ * List of repeated fields within this message type.
1224
+ * @private {!Array<number>}
1225
+ * @const
1226
+ */
1227
+ proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_ = [7];
1228
+
1141
1229
 
1142
1230
 
1143
1231
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1174,7 +1262,8 @@ proto.Platform.LocalAccountProto.UpdateRequest.toObject = function(includeInstan
1174
1262
  firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1175
1263
  locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1176
1264
  company: jspb.Message.getFieldWithDefault(msg, 5, ""),
1177
- groupId: jspb.Message.getFieldWithDefault(msg, 6, "")
1265
+ groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1266
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
1178
1267
  };
1179
1268
 
1180
1269
  if (includeInstance) {
@@ -1235,6 +1324,12 @@ proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader = fun
1235
1324
  var value = /** @type {string} */ (reader.readString());
1236
1325
  msg.setGroupId(value);
1237
1326
  break;
1327
+ case 7:
1328
+ var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1329
+ for (var i = 0; i < values.length; i++) {
1330
+ msg.addAssignedRoles(values[i]);
1331
+ }
1332
+ break;
1238
1333
  default:
1239
1334
  reader.skipField();
1240
1335
  break;
@@ -1306,6 +1401,13 @@ proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter = functio
1306
1401
  f
1307
1402
  );
1308
1403
  }
1404
+ f = message.getAssignedRolesList();
1405
+ if (f.length > 0) {
1406
+ writer.writePackedEnum(
1407
+ 7,
1408
+ f
1409
+ );
1410
+ }
1309
1411
  };
1310
1412
 
1311
1413
 
@@ -1417,6 +1519,43 @@ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setGroupId = function(v
1417
1519
  };
1418
1520
 
1419
1521
 
1522
+ /**
1523
+ * repeated ClientProto.Roles assigned_roles = 7;
1524
+ * @return {!Array<!proto.Platform.ClientProto.Roles>}
1525
+ */
1526
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getAssignedRolesList = function() {
1527
+ return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 7));
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * @param {!Array<!proto.Platform.ClientProto.Roles>} value
1533
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1534
+ */
1535
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setAssignedRolesList = function(value) {
1536
+ return jspb.Message.setField(this, 7, value || []);
1537
+ };
1538
+
1539
+
1540
+ /**
1541
+ * @param {!proto.Platform.ClientProto.Roles} value
1542
+ * @param {number=} opt_index
1543
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1544
+ */
1545
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.addAssignedRoles = function(value, opt_index) {
1546
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1547
+ };
1548
+
1549
+
1550
+ /**
1551
+ * Clears the list making it empty but non-null.
1552
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1553
+ */
1554
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearAssignedRolesList = function() {
1555
+ return this.setAssignedRolesList([]);
1556
+ };
1557
+
1558
+
1420
1559
 
1421
1560
 
1422
1561
 
@@ -2959,4 +3098,41 @@ proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
2959
3098
  };
2960
3099
 
2961
3100
 
3101
+ /**
3102
+ * repeated ClientProto.Roles assigned_roles = 11;
3103
+ * @return {!Array<!proto.Platform.ClientProto.Roles>}
3104
+ */
3105
+ proto.Platform.LocalAccountProto.prototype.getAssignedRolesList = function() {
3106
+ return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 11));
3107
+ };
3108
+
3109
+
3110
+ /**
3111
+ * @param {!Array<!proto.Platform.ClientProto.Roles>} value
3112
+ * @return {!proto.Platform.LocalAccountProto} returns this
3113
+ */
3114
+ proto.Platform.LocalAccountProto.prototype.setAssignedRolesList = function(value) {
3115
+ return jspb.Message.setField(this, 11, value || []);
3116
+ };
3117
+
3118
+
3119
+ /**
3120
+ * @param {!proto.Platform.ClientProto.Roles} value
3121
+ * @param {number=} opt_index
3122
+ * @return {!proto.Platform.LocalAccountProto} returns this
3123
+ */
3124
+ proto.Platform.LocalAccountProto.prototype.addAssignedRoles = function(value, opt_index) {
3125
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
3126
+ };
3127
+
3128
+
3129
+ /**
3130
+ * Clears the list making it empty but non-null.
3131
+ * @return {!proto.Platform.LocalAccountProto} returns this
3132
+ */
3133
+ proto.Platform.LocalAccountProto.prototype.clearAssignedRolesList = function() {
3134
+ return this.setAssignedRolesList([]);
3135
+ };
3136
+
3137
+
2962
3138
  goog.object.extend(exports, proto.Platform);