@aceplus/smartace-api 2.3.3 → 2.4.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.
@@ -502,8 +502,8 @@ export namespace AccountProto {
502
502
  getId(): number;
503
503
  setId(value: number): void;
504
504
 
505
- getRoleId(): number;
506
- setRoleId(value: number): void;
505
+ getRole(): AccountProto.RolesMap[keyof AccountProto.RolesMap];
506
+ setRole(value: AccountProto.RolesMap[keyof AccountProto.RolesMap]): void;
507
507
 
508
508
  serializeBinary(): Uint8Array;
509
509
  toObject(includeInstance?: boolean): AccountClusterRoleRequest.AsObject;
@@ -518,8 +518,20 @@ export namespace AccountProto {
518
518
  export namespace AccountClusterRoleRequest {
519
519
  export type AsObject = {
520
520
  id: number,
521
- roleId: number,
521
+ role: AccountProto.RolesMap[keyof AccountProto.RolesMap],
522
522
  }
523
523
  }
524
+
525
+ export interface RolesMap {
526
+ SYSTEM_ADMIN: 0;
527
+ ADMIN: 1;
528
+ APP_GLOBAL: 2;
529
+ APP_CLUSTER: 3;
530
+ SERVICE_USER: 4;
531
+ DRUM_API_ERP: 5;
532
+ DRUM_TRACKER_VIEW_ALL: 6;
533
+ }
534
+
535
+ export const Roles: RolesMap;
524
536
  }
525
537
 
@@ -42,6 +42,7 @@ goog.exportSymbol('proto.Auth.AccountProto.ForgotPasswordRequest', null, global)
42
42
  goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoReply', null, global);
43
43
  goog.exportSymbol('proto.Auth.AccountProto.RetrievePushInfoRequest', null, global);
44
44
  goog.exportSymbol('proto.Auth.AccountProto.RetrieveRequest', null, global);
45
+ goog.exportSymbol('proto.Auth.AccountProto.Roles', null, global);
45
46
  goog.exportSymbol('proto.Auth.AccountProto.Scope', null, global);
46
47
  goog.exportSymbol('proto.Auth.AccountProto.SearchReply', null, global);
47
48
  goog.exportSymbol('proto.Auth.AccountProto.SearchRequest', null, global);
@@ -631,6 +632,19 @@ proto.Auth.AccountProto.serializeBinaryToWriter = function(message, writer) {
631
632
  };
632
633
 
633
634
 
635
+ /**
636
+ * @enum {number}
637
+ */
638
+ proto.Auth.AccountProto.Roles = {
639
+ SYSTEM_ADMIN: 0,
640
+ ADMIN: 1,
641
+ APP_GLOBAL: 2,
642
+ APP_CLUSTER: 3,
643
+ SERVICE_USER: 4,
644
+ DRUM_API_ERP: 5,
645
+ DRUM_TRACKER_VIEW_ALL: 6
646
+ };
647
+
634
648
 
635
649
 
636
650
 
@@ -3727,7 +3741,7 @@ proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.toObject = function(
3727
3741
  proto.Auth.AccountProto.AccountClusterRoleRequest.toObject = function(includeInstance, msg) {
3728
3742
  var f, obj = {
3729
3743
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
3730
- roleId: jspb.Message.getFieldWithDefault(msg, 2, 0)
3744
+ role: jspb.Message.getFieldWithDefault(msg, 2, 0)
3731
3745
  };
3732
3746
 
3733
3747
  if (includeInstance) {
@@ -3769,8 +3783,8 @@ proto.Auth.AccountProto.AccountClusterRoleRequest.deserializeBinaryFromReader =
3769
3783
  msg.setId(value);
3770
3784
  break;
3771
3785
  case 2:
3772
- var value = /** @type {number} */ (reader.readInt32());
3773
- msg.setRoleId(value);
3786
+ var value = /** @type {!proto.Auth.AccountProto.Roles} */ (reader.readEnum());
3787
+ msg.setRole(value);
3774
3788
  break;
3775
3789
  default:
3776
3790
  reader.skipField();
@@ -3808,9 +3822,9 @@ proto.Auth.AccountProto.AccountClusterRoleRequest.serializeBinaryToWriter = func
3808
3822
  f
3809
3823
  );
3810
3824
  }
3811
- f = message.getRoleId();
3812
- if (f !== 0) {
3813
- writer.writeInt32(
3825
+ f = message.getRole();
3826
+ if (f !== 0.0) {
3827
+ writer.writeEnum(
3814
3828
  2,
3815
3829
  f
3816
3830
  );
@@ -3837,20 +3851,20 @@ proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.setId = function(val
3837
3851
 
3838
3852
 
3839
3853
  /**
3840
- * optional int32 role_id = 2;
3841
- * @return {number}
3854
+ * optional Roles role = 2;
3855
+ * @return {!proto.Auth.AccountProto.Roles}
3842
3856
  */
3843
- proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.getRoleId = function() {
3844
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3857
+ proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.getRole = function() {
3858
+ return /** @type {!proto.Auth.AccountProto.Roles} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3845
3859
  };
3846
3860
 
3847
3861
 
3848
3862
  /**
3849
- * @param {number} value
3863
+ * @param {!proto.Auth.AccountProto.Roles} value
3850
3864
  * @return {!proto.Auth.AccountProto.AccountClusterRoleRequest} returns this
3851
3865
  */
3852
- proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.setRoleId = function(value) {
3853
- return jspb.Message.setProto3IntField(this, 2, value);
3866
+ proto.Auth.AccountProto.AccountClusterRoleRequest.prototype.setRole = function(value) {
3867
+ return jspb.Message.setProto3EnumField(this, 2, value);
3854
3868
  };
3855
3869
 
3856
3870
 
@@ -2,7 +2,6 @@
2
2
  // file: auth.account_two_factor.proto
3
3
 
4
4
  import * as jspb from "google-protobuf";
5
- import * as google_protobuf_duration_pb from "google-protobuf/google/protobuf/duration_pb";
6
5
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
7
6
  import * as auth_authn_pb from "./auth.authn_pb";
8
7
 
@@ -21,8 +21,6 @@ var global =
21
21
  (function () { return this; }).call(null) ||
22
22
  Function('return this')();
23
23
 
24
- var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js');
25
- goog.object.extend(proto, google_protobuf_duration_pb);
26
24
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
27
25
  goog.object.extend(proto, google_api_annotations_pb);
28
26
  var auth_authn_pb = require('./auth.authn_pb.js');
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",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -4,6 +4,7 @@
4
4
  import * as jspb from "google-protobuf";
5
5
  import * as google_api_annotations_pb from "./google/api/annotations_pb";
6
6
  import * as platform_pagination_pb from "./platform.pagination_pb";
7
+ import * as auth_account_pb from "./auth.account_pb";
7
8
 
8
9
  export class ClientProto extends jspb.Message {
9
10
  getId(): number;
@@ -36,9 +37,9 @@ export class ClientProto extends jspb.Message {
36
37
  setKapusModuleEnabled(value: boolean): void;
37
38
 
38
39
  clearAssignableRolesList(): void;
39
- getAssignableRolesList(): Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>;
40
- setAssignableRolesList(value: Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>): void;
41
- addAssignableRoles(value: ClientProto.RolesMap[keyof ClientProto.RolesMap], index?: number): ClientProto.RolesMap[keyof ClientProto.RolesMap];
40
+ getAssignableRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
41
+ setAssignableRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
42
+ addAssignableRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
42
43
 
43
44
  serializeBinary(): Uint8Array;
44
45
  toObject(includeInstance?: boolean): ClientProto.AsObject;
@@ -61,7 +62,7 @@ export namespace ClientProto {
61
62
  spicModuleEnabled: boolean,
62
63
  drumtrackerModuleEnabled: boolean,
63
64
  kapusModuleEnabled: boolean,
64
- assignableRolesList: Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>,
65
+ assignableRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
65
66
  }
66
67
 
67
68
  export class CreateRequest extends jspb.Message {
@@ -92,9 +93,9 @@ export namespace ClientProto {
92
93
  setKapusModuleEnabled(value: boolean): void;
93
94
 
94
95
  clearAssignableRolesList(): void;
95
- getAssignableRolesList(): Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>;
96
- setAssignableRolesList(value: Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>): void;
97
- addAssignableRoles(value: ClientProto.RolesMap[keyof ClientProto.RolesMap], index?: number): ClientProto.RolesMap[keyof ClientProto.RolesMap];
96
+ getAssignableRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
97
+ setAssignableRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
98
+ addAssignableRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
98
99
 
99
100
  serializeBinary(): Uint8Array;
100
101
  toObject(includeInstance?: boolean): CreateRequest.AsObject;
@@ -116,7 +117,7 @@ export namespace ClientProto {
116
117
  spicModuleEnabled: boolean,
117
118
  drumtrackerModuleEnabled: boolean,
118
119
  kapusModuleEnabled: boolean,
119
- assignableRolesList: Array<ClientProto.RolesMap[keyof ClientProto.RolesMap]>,
120
+ assignableRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
120
121
  }
121
122
  }
122
123
 
@@ -334,18 +335,6 @@ export namespace ClientProto {
334
335
  }
335
336
  }
336
337
 
337
- export interface RolesMap {
338
- SYSTEM_ADMIN: 0;
339
- ADMIN: 1;
340
- APP_GLOBAL: 2;
341
- APP_CLUSTER: 3;
342
- SERVICE_USER: 4;
343
- DRUM_API_ERP: 5;
344
- DRUM_TRACKER_VIEW_ALL: 6;
345
- }
346
-
347
- export const Roles: RolesMap;
348
-
349
338
  export interface ClientFilterTypeMap {
350
339
  REGISTERED: 0;
351
340
  AVAILABLE: 1;
@@ -25,6 +25,8 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
25
25
  goog.object.extend(proto, google_api_annotations_pb);
26
26
  var platform_pagination_pb = require('./platform.pagination_pb.js');
27
27
  goog.object.extend(proto, platform_pagination_pb);
28
+ var auth_account_pb = require('./auth.account_pb.js');
29
+ goog.object.extend(proto, auth_account_pb);
28
30
  goog.exportSymbol('proto.Platform.ClientProto', null, global);
29
31
  goog.exportSymbol('proto.Platform.ClientProto.ClientFilterType', null, global);
30
32
  goog.exportSymbol('proto.Platform.ClientProto.CreateRequest', null, global);
@@ -33,7 +35,6 @@ goog.exportSymbol('proto.Platform.ClientProto.DeleteRequest', null, global);
33
35
  goog.exportSymbol('proto.Platform.ClientProto.RetrieveForAccountReply', null, global);
34
36
  goog.exportSymbol('proto.Platform.ClientProto.RetrieveForAccountRequest', null, global);
35
37
  goog.exportSymbol('proto.Platform.ClientProto.RetrieveRequest', null, global);
36
- goog.exportSymbol('proto.Platform.ClientProto.Roles', null, global);
37
38
  goog.exportSymbol('proto.Platform.ClientProto.SearchReply', null, global);
38
39
  goog.exportSymbol('proto.Platform.ClientProto.SearchRequest', null, global);
39
40
  goog.exportSymbol('proto.Platform.ClientProto.UpdateRequest', null, global);
@@ -369,7 +370,7 @@ proto.Platform.ClientProto.deserializeBinaryFromReader = function(msg, reader) {
369
370
  msg.setKapusModuleEnabled(value);
370
371
  break;
371
372
  case 10:
372
- var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
373
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
373
374
  for (var i = 0; i < values.length; i++) {
374
375
  msg.addAssignableRoles(values[i]);
375
376
  }
@@ -476,19 +477,6 @@ proto.Platform.ClientProto.serializeBinaryToWriter = function(message, writer) {
476
477
  };
477
478
 
478
479
 
479
- /**
480
- * @enum {number}
481
- */
482
- proto.Platform.ClientProto.Roles = {
483
- SYSTEM_ADMIN: 0,
484
- ADMIN: 1,
485
- APP_GLOBAL: 2,
486
- APP_CLUSTER: 3,
487
- SERVICE_USER: 4,
488
- DRUM_API_ERP: 5,
489
- DRUM_TRACKER_VIEW_ALL: 6
490
- };
491
-
492
480
  /**
493
481
  * @enum {number}
494
482
  */
@@ -614,7 +602,7 @@ proto.Platform.ClientProto.CreateRequest.deserializeBinaryFromReader = function(
614
602
  msg.setKapusModuleEnabled(value);
615
603
  break;
616
604
  case 9:
617
- var values = /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
605
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
618
606
  for (var i = 0; i < values.length; i++) {
619
607
  msg.addAssignableRoles(values[i]);
620
608
  }
@@ -883,16 +871,16 @@ proto.Platform.ClientProto.CreateRequest.prototype.setKapusModuleEnabled = funct
883
871
 
884
872
 
885
873
  /**
886
- * repeated Roles assignable_roles = 9;
887
- * @return {!Array<!proto.Platform.ClientProto.Roles>}
874
+ * repeated Auth.AccountProto.Roles assignable_roles = 9;
875
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
888
876
  */
889
877
  proto.Platform.ClientProto.CreateRequest.prototype.getAssignableRolesList = function() {
890
- return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 9));
878
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 9));
891
879
  };
892
880
 
893
881
 
894
882
  /**
895
- * @param {!Array<!proto.Platform.ClientProto.Roles>} value
883
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
896
884
  * @return {!proto.Platform.ClientProto.CreateRequest} returns this
897
885
  */
898
886
  proto.Platform.ClientProto.CreateRequest.prototype.setAssignableRolesList = function(value) {
@@ -901,7 +889,7 @@ proto.Platform.ClientProto.CreateRequest.prototype.setAssignableRolesList = func
901
889
 
902
890
 
903
891
  /**
904
- * @param {!proto.Platform.ClientProto.Roles} value
892
+ * @param {!proto.Auth.AccountProto.Roles} value
905
893
  * @param {number=} opt_index
906
894
  * @return {!proto.Platform.ClientProto.CreateRequest} returns this
907
895
  */
@@ -2610,16 +2598,16 @@ proto.Platform.ClientProto.prototype.setKapusModuleEnabled = function(value) {
2610
2598
 
2611
2599
 
2612
2600
  /**
2613
- * repeated Roles assignable_roles = 10;
2614
- * @return {!Array<!proto.Platform.ClientProto.Roles>}
2601
+ * repeated Auth.AccountProto.Roles assignable_roles = 10;
2602
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
2615
2603
  */
2616
2604
  proto.Platform.ClientProto.prototype.getAssignableRolesList = function() {
2617
- return /** @type {!Array<!proto.Platform.ClientProto.Roles>} */ (jspb.Message.getRepeatedField(this, 10));
2605
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 10));
2618
2606
  };
2619
2607
 
2620
2608
 
2621
2609
  /**
2622
- * @param {!Array<!proto.Platform.ClientProto.Roles>} value
2610
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
2623
2611
  * @return {!proto.Platform.ClientProto} returns this
2624
2612
  */
2625
2613
  proto.Platform.ClientProto.prototype.setAssignableRolesList = function(value) {
@@ -2628,7 +2616,7 @@ proto.Platform.ClientProto.prototype.setAssignableRolesList = function(value) {
2628
2616
 
2629
2617
 
2630
2618
  /**
2631
- * @param {!proto.Platform.ClientProto.Roles} value
2619
+ * @param {!proto.Auth.AccountProto.Roles} value
2632
2620
  * @param {number=} opt_index
2633
2621
  * @return {!proto.Platform.ClientProto} returns this
2634
2622
  */
@@ -41,6 +41,11 @@ export class LocalAccountProto extends jspb.Message {
41
41
  getExpiredAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
42
42
  setExpiredAt(value?: google_protobuf_timestamp_pb.Timestamp): void;
43
43
 
44
+ clearAssignedRolesList(): void;
45
+ getAssignedRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
46
+ setAssignedRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
47
+ addAssignedRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
48
+
44
49
  serializeBinary(): Uint8Array;
45
50
  toObject(includeInstance?: boolean): LocalAccountProto.AsObject;
46
51
  static toObject(includeInstance: boolean, msg: LocalAccountProto): LocalAccountProto.AsObject;
@@ -63,6 +68,7 @@ export namespace LocalAccountProto {
63
68
  groupId: string,
64
69
  enabled: boolean,
65
70
  expiredAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
71
+ assignedRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
66
72
  }
67
73
 
68
74
  export class CreateAdminRequest extends jspb.Message {
@@ -87,6 +93,11 @@ export namespace LocalAccountProto {
87
93
  getGroupId(): string;
88
94
  setGroupId(value: string): void;
89
95
 
96
+ clearAssignedRolesList(): void;
97
+ getAssignedRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
98
+ setAssignedRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
99
+ addAssignedRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
100
+
90
101
  serializeBinary(): Uint8Array;
91
102
  toObject(includeInstance?: boolean): CreateAdminRequest.AsObject;
92
103
  static toObject(includeInstance: boolean, msg: CreateAdminRequest): CreateAdminRequest.AsObject;
@@ -106,6 +117,7 @@ export namespace LocalAccountProto {
106
117
  company: string,
107
118
  clientId: number,
108
119
  groupId: string,
120
+ assignedRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
109
121
  }
110
122
  }
111
123
 
@@ -172,6 +184,11 @@ export namespace LocalAccountProto {
172
184
  getGroupId(): string;
173
185
  setGroupId(value: string): void;
174
186
 
187
+ clearAssignedRolesList(): void;
188
+ getAssignedRolesList(): Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>;
189
+ setAssignedRolesList(value: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>): void;
190
+ addAssignedRoles(value: auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap], index?: number): auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap];
191
+
175
192
  serializeBinary(): Uint8Array;
176
193
  toObject(includeInstance?: boolean): UpdateRequest.AsObject;
177
194
  static toObject(includeInstance: boolean, msg: UpdateRequest): UpdateRequest.AsObject;
@@ -190,6 +207,7 @@ export namespace LocalAccountProto {
190
207
  locale: string,
191
208
  company: string,
192
209
  groupId: string,
210
+ assignedRolesList: Array<auth_account_pb.AccountProto.RolesMap[keyof auth_account_pb.AccountProto.RolesMap]>,
193
211
  }
194
212
  }
195
213
 
@@ -54,7 +54,7 @@ goog.exportSymbol('proto.Platform.LocalAccountProto.UpdateRequest', null, global
54
54
  * @constructor
55
55
  */
56
56
  proto.Platform.LocalAccountProto = function(opt_data) {
57
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
57
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.repeatedFields_, null);
58
58
  };
59
59
  goog.inherits(proto.Platform.LocalAccountProto, jspb.Message);
60
60
  if (goog.DEBUG && !COMPILED) {
@@ -75,7 +75,7 @@ if (goog.DEBUG && !COMPILED) {
75
75
  * @constructor
76
76
  */
77
77
  proto.Platform.LocalAccountProto.CreateAdminRequest = function(opt_data) {
78
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
78
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_, null);
79
79
  };
80
80
  goog.inherits(proto.Platform.LocalAccountProto.CreateAdminRequest, jspb.Message);
81
81
  if (goog.DEBUG && !COMPILED) {
@@ -117,7 +117,7 @@ if (goog.DEBUG && !COMPILED) {
117
117
  * @constructor
118
118
  */
119
119
  proto.Platform.LocalAccountProto.UpdateRequest = function(opt_data) {
120
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
120
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_, null);
121
121
  };
122
122
  goog.inherits(proto.Platform.LocalAccountProto.UpdateRequest, jspb.Message);
123
123
  if (goog.DEBUG && !COMPILED) {
@@ -296,6 +296,13 @@ if (goog.DEBUG && !COMPILED) {
296
296
  proto.Platform.LocalAccountProto.UpdateExpiredAt.displayName = 'proto.Platform.LocalAccountProto.UpdateExpiredAt';
297
297
  }
298
298
 
299
+ /**
300
+ * List of repeated fields within this message type.
301
+ * @private {!Array<number>}
302
+ * @const
303
+ */
304
+ proto.Platform.LocalAccountProto.repeatedFields_ = [11];
305
+
299
306
 
300
307
 
301
308
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -336,7 +343,8 @@ proto.Platform.LocalAccountProto.toObject = function(includeInstance, msg) {
336
343
  company: jspb.Message.getFieldWithDefault(msg, 7, ""),
337
344
  groupId: jspb.Message.getFieldWithDefault(msg, 8, ""),
338
345
  enabled: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
339
- expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
346
+ expiredAt: (f = msg.getExpiredAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
347
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f
340
348
  };
341
349
 
342
350
  if (includeInstance) {
@@ -414,6 +422,12 @@ proto.Platform.LocalAccountProto.deserializeBinaryFromReader = function(msg, rea
414
422
  reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
415
423
  msg.setExpiredAt(value);
416
424
  break;
425
+ case 11:
426
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
427
+ for (var i = 0; i < values.length; i++) {
428
+ msg.addAssignedRoles(values[i]);
429
+ }
430
+ break;
417
431
  default:
418
432
  reader.skipField();
419
433
  break;
@@ -514,10 +528,24 @@ proto.Platform.LocalAccountProto.serializeBinaryToWriter = function(message, wri
514
528
  google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
515
529
  );
516
530
  }
531
+ f = message.getAssignedRolesList();
532
+ if (f.length > 0) {
533
+ writer.writePackedEnum(
534
+ 11,
535
+ f
536
+ );
537
+ }
517
538
  };
518
539
 
519
540
 
520
541
 
542
+ /**
543
+ * List of repeated fields within this message type.
544
+ * @private {!Array<number>}
545
+ * @const
546
+ */
547
+ proto.Platform.LocalAccountProto.CreateAdminRequest.repeatedFields_ = [8];
548
+
521
549
 
522
550
 
523
551
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -555,7 +583,8 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.toObject = function(includeI
555
583
  locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
556
584
  company: jspb.Message.getFieldWithDefault(msg, 5, ""),
557
585
  clientId: jspb.Message.getFieldWithDefault(msg, 6, 0),
558
- groupId: jspb.Message.getFieldWithDefault(msg, 7, "")
586
+ groupId: jspb.Message.getFieldWithDefault(msg, 7, ""),
587
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f
559
588
  };
560
589
 
561
590
  if (includeInstance) {
@@ -620,6 +649,12 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.deserializeBinaryFromReader
620
649
  var value = /** @type {string} */ (reader.readString());
621
650
  msg.setGroupId(value);
622
651
  break;
652
+ case 8:
653
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
654
+ for (var i = 0; i < values.length; i++) {
655
+ msg.addAssignedRoles(values[i]);
656
+ }
657
+ break;
623
658
  default:
624
659
  reader.skipField();
625
660
  break;
@@ -698,6 +733,13 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.serializeBinaryToWriter = fu
698
733
  f
699
734
  );
700
735
  }
736
+ f = message.getAssignedRolesList();
737
+ if (f.length > 0) {
738
+ writer.writePackedEnum(
739
+ 8,
740
+ f
741
+ );
742
+ }
701
743
  };
702
744
 
703
745
 
@@ -827,6 +869,43 @@ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setGroupId = funct
827
869
  };
828
870
 
829
871
 
872
+ /**
873
+ * repeated Auth.AccountProto.Roles assigned_roles = 8;
874
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
875
+ */
876
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.getAssignedRolesList = function() {
877
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 8));
878
+ };
879
+
880
+
881
+ /**
882
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
883
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
884
+ */
885
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.setAssignedRolesList = function(value) {
886
+ return jspb.Message.setField(this, 8, value || []);
887
+ };
888
+
889
+
890
+ /**
891
+ * @param {!proto.Auth.AccountProto.Roles} value
892
+ * @param {number=} opt_index
893
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
894
+ */
895
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.addAssignedRoles = function(value, opt_index) {
896
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
897
+ };
898
+
899
+
900
+ /**
901
+ * Clears the list making it empty but non-null.
902
+ * @return {!proto.Platform.LocalAccountProto.CreateAdminRequest} returns this
903
+ */
904
+ proto.Platform.LocalAccountProto.CreateAdminRequest.prototype.clearAssignedRolesList = function() {
905
+ return this.setAssignedRolesList([]);
906
+ };
907
+
908
+
830
909
 
831
910
 
832
911
 
@@ -1138,6 +1217,13 @@ proto.Platform.LocalAccountProto.CreateAppRequest.prototype.setGroupId = functio
1138
1217
 
1139
1218
 
1140
1219
 
1220
+ /**
1221
+ * List of repeated fields within this message type.
1222
+ * @private {!Array<number>}
1223
+ * @const
1224
+ */
1225
+ proto.Platform.LocalAccountProto.UpdateRequest.repeatedFields_ = [7];
1226
+
1141
1227
 
1142
1228
 
1143
1229
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1174,7 +1260,8 @@ proto.Platform.LocalAccountProto.UpdateRequest.toObject = function(includeInstan
1174
1260
  firstName: jspb.Message.getFieldWithDefault(msg, 3, ""),
1175
1261
  locale: jspb.Message.getFieldWithDefault(msg, 4, ""),
1176
1262
  company: jspb.Message.getFieldWithDefault(msg, 5, ""),
1177
- groupId: jspb.Message.getFieldWithDefault(msg, 6, "")
1263
+ groupId: jspb.Message.getFieldWithDefault(msg, 6, ""),
1264
+ assignedRolesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
1178
1265
  };
1179
1266
 
1180
1267
  if (includeInstance) {
@@ -1235,6 +1322,12 @@ proto.Platform.LocalAccountProto.UpdateRequest.deserializeBinaryFromReader = fun
1235
1322
  var value = /** @type {string} */ (reader.readString());
1236
1323
  msg.setGroupId(value);
1237
1324
  break;
1325
+ case 7:
1326
+ var values = /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1327
+ for (var i = 0; i < values.length; i++) {
1328
+ msg.addAssignedRoles(values[i]);
1329
+ }
1330
+ break;
1238
1331
  default:
1239
1332
  reader.skipField();
1240
1333
  break;
@@ -1306,6 +1399,13 @@ proto.Platform.LocalAccountProto.UpdateRequest.serializeBinaryToWriter = functio
1306
1399
  f
1307
1400
  );
1308
1401
  }
1402
+ f = message.getAssignedRolesList();
1403
+ if (f.length > 0) {
1404
+ writer.writePackedEnum(
1405
+ 7,
1406
+ f
1407
+ );
1408
+ }
1309
1409
  };
1310
1410
 
1311
1411
 
@@ -1417,6 +1517,43 @@ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setGroupId = function(v
1417
1517
  };
1418
1518
 
1419
1519
 
1520
+ /**
1521
+ * repeated Auth.AccountProto.Roles assigned_roles = 7;
1522
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
1523
+ */
1524
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.getAssignedRolesList = function() {
1525
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 7));
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
1531
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1532
+ */
1533
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.setAssignedRolesList = function(value) {
1534
+ return jspb.Message.setField(this, 7, value || []);
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * @param {!proto.Auth.AccountProto.Roles} value
1540
+ * @param {number=} opt_index
1541
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1542
+ */
1543
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.addAssignedRoles = function(value, opt_index) {
1544
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
1545
+ };
1546
+
1547
+
1548
+ /**
1549
+ * Clears the list making it empty but non-null.
1550
+ * @return {!proto.Platform.LocalAccountProto.UpdateRequest} returns this
1551
+ */
1552
+ proto.Platform.LocalAccountProto.UpdateRequest.prototype.clearAssignedRolesList = function() {
1553
+ return this.setAssignedRolesList([]);
1554
+ };
1555
+
1556
+
1420
1557
 
1421
1558
 
1422
1559
 
@@ -2959,4 +3096,41 @@ proto.Platform.LocalAccountProto.prototype.hasExpiredAt = function() {
2959
3096
  };
2960
3097
 
2961
3098
 
3099
+ /**
3100
+ * repeated Auth.AccountProto.Roles assigned_roles = 11;
3101
+ * @return {!Array<!proto.Auth.AccountProto.Roles>}
3102
+ */
3103
+ proto.Platform.LocalAccountProto.prototype.getAssignedRolesList = function() {
3104
+ return /** @type {!Array<!proto.Auth.AccountProto.Roles>} */ (jspb.Message.getRepeatedField(this, 11));
3105
+ };
3106
+
3107
+
3108
+ /**
3109
+ * @param {!Array<!proto.Auth.AccountProto.Roles>} value
3110
+ * @return {!proto.Platform.LocalAccountProto} returns this
3111
+ */
3112
+ proto.Platform.LocalAccountProto.prototype.setAssignedRolesList = function(value) {
3113
+ return jspb.Message.setField(this, 11, value || []);
3114
+ };
3115
+
3116
+
3117
+ /**
3118
+ * @param {!proto.Auth.AccountProto.Roles} value
3119
+ * @param {number=} opt_index
3120
+ * @return {!proto.Platform.LocalAccountProto} returns this
3121
+ */
3122
+ proto.Platform.LocalAccountProto.prototype.addAssignedRoles = function(value, opt_index) {
3123
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
3124
+ };
3125
+
3126
+
3127
+ /**
3128
+ * Clears the list making it empty but non-null.
3129
+ * @return {!proto.Platform.LocalAccountProto} returns this
3130
+ */
3131
+ proto.Platform.LocalAccountProto.prototype.clearAssignedRolesList = function() {
3132
+ return this.setAssignedRolesList([]);
3133
+ };
3134
+
3135
+
2962
3136
  goog.object.extend(exports, proto.Platform);