@lansweeper/multitenant-api-grpc 0.4.65 → 0.4.66

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.
@@ -2471,8 +2471,8 @@ export namespace GetSiteHierarchyIdsRequest {
2471
2471
  export class SiteHierarchyIdsItem extends jspb.Message {
2472
2472
  getSiteId(): string;
2473
2473
  setSiteId(value: string): SiteHierarchyIdsItem;
2474
- getParentType(): string;
2475
- setParentType(value: string): SiteHierarchyIdsItem;
2474
+ getParentType(): SiteHierarchyIdsItem.ParentType;
2475
+ setParentType(value: SiteHierarchyIdsItem.ParentType): SiteHierarchyIdsItem;
2476
2476
  getParentId(): string;
2477
2477
  setParentId(value: string): SiteHierarchyIdsItem;
2478
2478
  getIsCustomerAccount(): boolean;
@@ -2491,10 +2491,18 @@ export class SiteHierarchyIdsItem extends jspb.Message {
2491
2491
  export namespace SiteHierarchyIdsItem {
2492
2492
  export type AsObject = {
2493
2493
  siteId: string,
2494
- parentType: string,
2494
+ parentType: SiteHierarchyIdsItem.ParentType,
2495
2495
  parentId: string,
2496
2496
  isCustomerAccount: boolean,
2497
2497
  }
2498
+
2499
+ export enum ParentType {
2500
+ UNKNOWN = 0,
2501
+ NONE = 1,
2502
+ ORG = 2,
2503
+ MSMP = 3,
2504
+ }
2505
+
2498
2506
  }
2499
2507
 
2500
2508
  export class SiteHierarchyIdsPageInfo extends jspb.Message {
@@ -131,6 +131,7 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.SendInviteLocalUsersMailRespo
131
131
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SetEnabledCustomFieldsFederationRequest', null, global);
132
132
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Site', null, global);
133
133
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem', null, global);
134
+ goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType', null, global);
134
135
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteHierarchyIdsPageInfo', null, global);
135
136
  goog.exportSymbol('proto.lansweeper.multitenant.v1.SiteMode', null, global);
136
137
  goog.exportSymbol('proto.lansweeper.multitenant.v1.Subscription', null, global);
@@ -20276,7 +20277,7 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.toObject = functi
20276
20277
  proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.toObject = function(includeInstance, msg) {
20277
20278
  var f, obj = {
20278
20279
  siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
20279
- parentType: jspb.Message.getFieldWithDefault(msg, 2, ""),
20280
+ parentType: jspb.Message.getFieldWithDefault(msg, 2, 0),
20280
20281
  parentId: jspb.Message.getFieldWithDefault(msg, 3, ""),
20281
20282
  isCustomerAccount: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
20282
20283
  };
@@ -20320,7 +20321,7 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.deserializeBinaryFromReader
20320
20321
  msg.setSiteId(value);
20321
20322
  break;
20322
20323
  case 2:
20323
- var value = /** @type {string} */ (reader.readString());
20324
+ var value = /** @type {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType} */ (reader.readEnum());
20324
20325
  msg.setParentType(value);
20325
20326
  break;
20326
20327
  case 3:
@@ -20368,8 +20369,8 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter = f
20368
20369
  );
20369
20370
  }
20370
20371
  f = message.getParentType();
20371
- if (f.length > 0) {
20372
- writer.writeString(
20372
+ if (f !== 0.0) {
20373
+ writer.writeEnum(
20373
20374
  2,
20374
20375
  f
20375
20376
  );
@@ -20391,6 +20392,16 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.serializeBinaryToWriter = f
20391
20392
  };
20392
20393
 
20393
20394
 
20395
+ /**
20396
+ * @enum {number}
20397
+ */
20398
+ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType = {
20399
+ UNKNOWN: 0,
20400
+ NONE: 1,
20401
+ ORG: 2,
20402
+ MSMP: 3
20403
+ };
20404
+
20394
20405
  /**
20395
20406
  * optional string site_id = 1;
20396
20407
  * @return {string}
@@ -20410,20 +20421,20 @@ proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setSiteId = funct
20410
20421
 
20411
20422
 
20412
20423
  /**
20413
- * optional string parent_type = 2;
20414
- * @return {string}
20424
+ * optional ParentType parent_type = 2;
20425
+ * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType}
20415
20426
  */
20416
20427
  proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.getParentType = function() {
20417
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
20428
+ return /** @type {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
20418
20429
  };
20419
20430
 
20420
20431
 
20421
20432
  /**
20422
- * @param {string} value
20433
+ * @param {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.ParentType} value
20423
20434
  * @return {!proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem} returns this
20424
20435
  */
20425
20436
  proto.lansweeper.multitenant.v1.SiteHierarchyIdsItem.prototype.setParentType = function(value) {
20426
- return jspb.Message.setProto3StringField(this, 2, value);
20437
+ return jspb.Message.setProto3EnumField(this, 2, value);
20427
20438
  };
20428
20439
 
20429
20440