@sellout/models 0.0.424 → 0.0.425
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/graphql/mutations/connectHive.mutation.d.ts +2 -0
- package/.dist/graphql/mutations/connectHive.mutation.js +16 -0
- package/.dist/graphql/mutations/connectHive.mutation.js.map +1 -0
- package/.dist/graphql/mutations/updateOrganization.mutation.js +3 -0
- package/.dist/graphql/mutations/updateOrganization.mutation.js.map +1 -1
- package/.dist/graphql/queries/profile.query.js +4 -0
- package/.dist/graphql/queries/profile.query.js.map +1 -1
- package/.dist/interfaces/IHiveIntegration.d.ts +8 -0
- package/.dist/interfaces/IHiveIntegration.js +3 -0
- package/.dist/interfaces/IHiveIntegration.js.map +1 -0
- package/.dist/interfaces/IOrganization.d.ts +2 -0
- package/.dist/interfaces/IOrganization.js.map +1 -1
- package/.dist/schemas/Organization.d.ts +32 -0
- package/.dist/schemas/Organization.js +34 -1
- package/.dist/schemas/Organization.js.map +1 -1
- package/.dist/sellout-proto.js +1821 -286
- package/package.json +3 -3
- package/src/graphql/mutations/connectHive.mutation.ts +15 -0
- package/src/graphql/mutations/updateOrganization.mutation.ts +4 -1
- package/src/graphql/queries/profile.query.ts +5 -1
- package/src/interfaces/IHiveIntegration.ts +8 -0
- package/src/interfaces/IOrganization.ts +3 -1
- package/src/proto/order.proto +1 -0
- package/src/proto/organization.proto +41 -0
- package/src/schemas/Organization.ts +35 -1
package/.dist/sellout-proto.js
CHANGED
|
@@ -25290,6 +25290,7 @@ $root.RefundOrderRequest = (function() {
|
|
|
25290
25290
|
* @property {boolean|null} [processingFee] RefundOrderRequest processingFee
|
|
25291
25291
|
* @property {string|null} [eventType] RefundOrderRequest eventType
|
|
25292
25292
|
* @property {boolean|null} [promoterFee] RefundOrderRequest promoterFee
|
|
25293
|
+
* @property {boolean|null} [skipHivePush] RefundOrderRequest skipHivePush
|
|
25293
25294
|
*/
|
|
25294
25295
|
|
|
25295
25296
|
/**
|
|
@@ -25397,6 +25398,14 @@ $root.RefundOrderRequest = (function() {
|
|
|
25397
25398
|
*/
|
|
25398
25399
|
RefundOrderRequest.prototype.promoterFee = false;
|
|
25399
25400
|
|
|
25401
|
+
/**
|
|
25402
|
+
* RefundOrderRequest skipHivePush.
|
|
25403
|
+
* @member {boolean} skipHivePush
|
|
25404
|
+
* @memberof RefundOrderRequest
|
|
25405
|
+
* @instance
|
|
25406
|
+
*/
|
|
25407
|
+
RefundOrderRequest.prototype.skipHivePush = false;
|
|
25408
|
+
|
|
25400
25409
|
/**
|
|
25401
25410
|
* Creates a new RefundOrderRequest instance using the specified properties.
|
|
25402
25411
|
* @function create
|
|
@@ -25445,6 +25454,8 @@ $root.RefundOrderRequest = (function() {
|
|
|
25445
25454
|
writer.uint32(/* id 9, wireType 2 =*/74).string(message.eventType);
|
|
25446
25455
|
if (message.promoterFee != null && Object.hasOwnProperty.call(message, "promoterFee"))
|
|
25447
25456
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.promoterFee);
|
|
25457
|
+
if (message.skipHivePush != null && Object.hasOwnProperty.call(message, "skipHivePush"))
|
|
25458
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.skipHivePush);
|
|
25448
25459
|
return writer;
|
|
25449
25460
|
};
|
|
25450
25461
|
|
|
@@ -25516,6 +25527,9 @@ $root.RefundOrderRequest = (function() {
|
|
|
25516
25527
|
case 10:
|
|
25517
25528
|
message.promoterFee = reader.bool();
|
|
25518
25529
|
break;
|
|
25530
|
+
case 11:
|
|
25531
|
+
message.skipHivePush = reader.bool();
|
|
25532
|
+
break;
|
|
25519
25533
|
default:
|
|
25520
25534
|
reader.skipType(tag & 7);
|
|
25521
25535
|
break;
|
|
@@ -25592,6 +25606,9 @@ $root.RefundOrderRequest = (function() {
|
|
|
25592
25606
|
if (message.promoterFee != null && message.hasOwnProperty("promoterFee"))
|
|
25593
25607
|
if (typeof message.promoterFee !== "boolean")
|
|
25594
25608
|
return "promoterFee: boolean expected";
|
|
25609
|
+
if (message.skipHivePush != null && message.hasOwnProperty("skipHivePush"))
|
|
25610
|
+
if (typeof message.skipHivePush !== "boolean")
|
|
25611
|
+
return "skipHivePush: boolean expected";
|
|
25595
25612
|
return null;
|
|
25596
25613
|
};
|
|
25597
25614
|
|
|
@@ -25639,6 +25656,8 @@ $root.RefundOrderRequest = (function() {
|
|
|
25639
25656
|
message.eventType = String(object.eventType);
|
|
25640
25657
|
if (object.promoterFee != null)
|
|
25641
25658
|
message.promoterFee = Boolean(object.promoterFee);
|
|
25659
|
+
if (object.skipHivePush != null)
|
|
25660
|
+
message.skipHivePush = Boolean(object.skipHivePush);
|
|
25642
25661
|
return message;
|
|
25643
25662
|
};
|
|
25644
25663
|
|
|
@@ -25669,6 +25688,7 @@ $root.RefundOrderRequest = (function() {
|
|
|
25669
25688
|
object.processingFee = false;
|
|
25670
25689
|
object.eventType = "";
|
|
25671
25690
|
object.promoterFee = false;
|
|
25691
|
+
object.skipHivePush = false;
|
|
25672
25692
|
}
|
|
25673
25693
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
25674
25694
|
object.spanContext = message.spanContext;
|
|
@@ -25698,6 +25718,8 @@ $root.RefundOrderRequest = (function() {
|
|
|
25698
25718
|
object.eventType = message.eventType;
|
|
25699
25719
|
if (message.promoterFee != null && message.hasOwnProperty("promoterFee"))
|
|
25700
25720
|
object.promoterFee = message.promoterFee;
|
|
25721
|
+
if (message.skipHivePush != null && message.hasOwnProperty("skipHivePush"))
|
|
25722
|
+
object.skipHivePush = message.skipHivePush;
|
|
25701
25723
|
return object;
|
|
25702
25724
|
};
|
|
25703
25725
|
|
|
@@ -81702,6 +81724,7 @@ $root.Organization = (function() {
|
|
|
81702
81724
|
* @property {boolean|null} [isOrgDeletable] Organization isOrgDeletable
|
|
81703
81725
|
* @property {boolean|null} [isWeb3Integration] Organization isWeb3Integration
|
|
81704
81726
|
* @property {string|null} [ticketShareExpiration] Organization ticketShareExpiration
|
|
81727
|
+
* @property {IHiveIntegration|null} [hiveIntegration] Organization hiveIntegration
|
|
81705
81728
|
*/
|
|
81706
81729
|
|
|
81707
81730
|
/**
|
|
@@ -81936,6 +81959,14 @@ $root.Organization = (function() {
|
|
|
81936
81959
|
*/
|
|
81937
81960
|
Organization.prototype.ticketShareExpiration = "";
|
|
81938
81961
|
|
|
81962
|
+
/**
|
|
81963
|
+
* Organization hiveIntegration.
|
|
81964
|
+
* @member {IHiveIntegration|null|undefined} hiveIntegration
|
|
81965
|
+
* @memberof Organization
|
|
81966
|
+
* @instance
|
|
81967
|
+
*/
|
|
81968
|
+
Organization.prototype.hiveIntegration = null;
|
|
81969
|
+
|
|
81939
81970
|
/**
|
|
81940
81971
|
* Creates a new Organization instance using the specified properties.
|
|
81941
81972
|
* @function create
|
|
@@ -82015,6 +82046,8 @@ $root.Organization = (function() {
|
|
|
82015
82046
|
writer.uint32(/* id 25, wireType 0 =*/200).bool(message.isWeb3Integration);
|
|
82016
82047
|
if (message.ticketShareExpiration != null && Object.hasOwnProperty.call(message, "ticketShareExpiration"))
|
|
82017
82048
|
writer.uint32(/* id 26, wireType 2 =*/210).string(message.ticketShareExpiration);
|
|
82049
|
+
if (message.hiveIntegration != null && Object.hasOwnProperty.call(message, "hiveIntegration"))
|
|
82050
|
+
$root.HiveIntegration.encode(message.hiveIntegration, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
82018
82051
|
return writer;
|
|
82019
82052
|
};
|
|
82020
82053
|
|
|
@@ -82132,6 +82165,9 @@ $root.Organization = (function() {
|
|
|
82132
82165
|
case 26:
|
|
82133
82166
|
message.ticketShareExpiration = reader.string();
|
|
82134
82167
|
break;
|
|
82168
|
+
case 27:
|
|
82169
|
+
message.hiveIntegration = $root.HiveIntegration.decode(reader, reader.uint32());
|
|
82170
|
+
break;
|
|
82135
82171
|
default:
|
|
82136
82172
|
reader.skipType(tag & 7);
|
|
82137
82173
|
break;
|
|
@@ -82256,6 +82292,11 @@ $root.Organization = (function() {
|
|
|
82256
82292
|
if (message.ticketShareExpiration != null && message.hasOwnProperty("ticketShareExpiration"))
|
|
82257
82293
|
if (!$util.isString(message.ticketShareExpiration))
|
|
82258
82294
|
return "ticketShareExpiration: string expected";
|
|
82295
|
+
if (message.hiveIntegration != null && message.hasOwnProperty("hiveIntegration")) {
|
|
82296
|
+
var error = $root.HiveIntegration.verify(message.hiveIntegration);
|
|
82297
|
+
if (error)
|
|
82298
|
+
return "hiveIntegration." + error;
|
|
82299
|
+
}
|
|
82259
82300
|
return null;
|
|
82260
82301
|
};
|
|
82261
82302
|
|
|
@@ -82336,6 +82377,11 @@ $root.Organization = (function() {
|
|
|
82336
82377
|
message.isWeb3Integration = Boolean(object.isWeb3Integration);
|
|
82337
82378
|
if (object.ticketShareExpiration != null)
|
|
82338
82379
|
message.ticketShareExpiration = String(object.ticketShareExpiration);
|
|
82380
|
+
if (object.hiveIntegration != null) {
|
|
82381
|
+
if (typeof object.hiveIntegration !== "object")
|
|
82382
|
+
throw TypeError(".Organization.hiveIntegration: object expected");
|
|
82383
|
+
message.hiveIntegration = $root.HiveIntegration.fromObject(object.hiveIntegration);
|
|
82384
|
+
}
|
|
82339
82385
|
return message;
|
|
82340
82386
|
};
|
|
82341
82387
|
|
|
@@ -82381,6 +82427,7 @@ $root.Organization = (function() {
|
|
|
82381
82427
|
object.isOrgDeletable = false;
|
|
82382
82428
|
object.isWeb3Integration = false;
|
|
82383
82429
|
object.ticketShareExpiration = "";
|
|
82430
|
+
object.hiveIntegration = null;
|
|
82384
82431
|
}
|
|
82385
82432
|
if (message._id != null && message.hasOwnProperty("_id"))
|
|
82386
82433
|
object._id = message._id;
|
|
@@ -82439,6 +82486,8 @@ $root.Organization = (function() {
|
|
|
82439
82486
|
object.isWeb3Integration = message.isWeb3Integration;
|
|
82440
82487
|
if (message.ticketShareExpiration != null && message.hasOwnProperty("ticketShareExpiration"))
|
|
82441
82488
|
object.ticketShareExpiration = message.ticketShareExpiration;
|
|
82489
|
+
if (message.hiveIntegration != null && message.hasOwnProperty("hiveIntegration"))
|
|
82490
|
+
object.hiveIntegration = $root.HiveIntegration.toObject(message.hiveIntegration, options);
|
|
82442
82491
|
return object;
|
|
82443
82492
|
};
|
|
82444
82493
|
|
|
@@ -82688,6 +82737,304 @@ $root.OrderIntegration = (function() {
|
|
|
82688
82737
|
return OrderIntegration;
|
|
82689
82738
|
})();
|
|
82690
82739
|
|
|
82740
|
+
$root.HiveIntegration = (function() {
|
|
82741
|
+
|
|
82742
|
+
/**
|
|
82743
|
+
* Properties of a HiveIntegration.
|
|
82744
|
+
* @exports IHiveIntegration
|
|
82745
|
+
* @interface IHiveIntegration
|
|
82746
|
+
* @property {boolean|null} [isHiveIntegration] HiveIntegration isHiveIntegration
|
|
82747
|
+
* @property {string|null} [accessToken] HiveIntegration accessToken
|
|
82748
|
+
* @property {string|null} [refreshToken] HiveIntegration refreshToken
|
|
82749
|
+
* @property {number|null} [tokenExpiresAt] HiveIntegration tokenExpiresAt
|
|
82750
|
+
* @property {string|null} [clientId] HiveIntegration clientId
|
|
82751
|
+
* @property {string|null} [clientSecret] HiveIntegration clientSecret
|
|
82752
|
+
*/
|
|
82753
|
+
|
|
82754
|
+
/**
|
|
82755
|
+
* Constructs a new HiveIntegration.
|
|
82756
|
+
* @exports HiveIntegration
|
|
82757
|
+
* @classdesc Represents a HiveIntegration.
|
|
82758
|
+
* @implements IHiveIntegration
|
|
82759
|
+
* @constructor
|
|
82760
|
+
* @param {IHiveIntegration=} [properties] Properties to set
|
|
82761
|
+
*/
|
|
82762
|
+
function HiveIntegration(properties) {
|
|
82763
|
+
if (properties)
|
|
82764
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
82765
|
+
if (properties[keys[i]] != null)
|
|
82766
|
+
this[keys[i]] = properties[keys[i]];
|
|
82767
|
+
}
|
|
82768
|
+
|
|
82769
|
+
/**
|
|
82770
|
+
* HiveIntegration isHiveIntegration.
|
|
82771
|
+
* @member {boolean} isHiveIntegration
|
|
82772
|
+
* @memberof HiveIntegration
|
|
82773
|
+
* @instance
|
|
82774
|
+
*/
|
|
82775
|
+
HiveIntegration.prototype.isHiveIntegration = false;
|
|
82776
|
+
|
|
82777
|
+
/**
|
|
82778
|
+
* HiveIntegration accessToken.
|
|
82779
|
+
* @member {string} accessToken
|
|
82780
|
+
* @memberof HiveIntegration
|
|
82781
|
+
* @instance
|
|
82782
|
+
*/
|
|
82783
|
+
HiveIntegration.prototype.accessToken = "";
|
|
82784
|
+
|
|
82785
|
+
/**
|
|
82786
|
+
* HiveIntegration refreshToken.
|
|
82787
|
+
* @member {string} refreshToken
|
|
82788
|
+
* @memberof HiveIntegration
|
|
82789
|
+
* @instance
|
|
82790
|
+
*/
|
|
82791
|
+
HiveIntegration.prototype.refreshToken = "";
|
|
82792
|
+
|
|
82793
|
+
/**
|
|
82794
|
+
* HiveIntegration tokenExpiresAt.
|
|
82795
|
+
* @member {number} tokenExpiresAt
|
|
82796
|
+
* @memberof HiveIntegration
|
|
82797
|
+
* @instance
|
|
82798
|
+
*/
|
|
82799
|
+
HiveIntegration.prototype.tokenExpiresAt = 0;
|
|
82800
|
+
|
|
82801
|
+
/**
|
|
82802
|
+
* HiveIntegration clientId.
|
|
82803
|
+
* @member {string} clientId
|
|
82804
|
+
* @memberof HiveIntegration
|
|
82805
|
+
* @instance
|
|
82806
|
+
*/
|
|
82807
|
+
HiveIntegration.prototype.clientId = "";
|
|
82808
|
+
|
|
82809
|
+
/**
|
|
82810
|
+
* HiveIntegration clientSecret.
|
|
82811
|
+
* @member {string} clientSecret
|
|
82812
|
+
* @memberof HiveIntegration
|
|
82813
|
+
* @instance
|
|
82814
|
+
*/
|
|
82815
|
+
HiveIntegration.prototype.clientSecret = "";
|
|
82816
|
+
|
|
82817
|
+
/**
|
|
82818
|
+
* Creates a new HiveIntegration instance using the specified properties.
|
|
82819
|
+
* @function create
|
|
82820
|
+
* @memberof HiveIntegration
|
|
82821
|
+
* @static
|
|
82822
|
+
* @param {IHiveIntegration=} [properties] Properties to set
|
|
82823
|
+
* @returns {HiveIntegration} HiveIntegration instance
|
|
82824
|
+
*/
|
|
82825
|
+
HiveIntegration.create = function create(properties) {
|
|
82826
|
+
return new HiveIntegration(properties);
|
|
82827
|
+
};
|
|
82828
|
+
|
|
82829
|
+
/**
|
|
82830
|
+
* Encodes the specified HiveIntegration message. Does not implicitly {@link HiveIntegration.verify|verify} messages.
|
|
82831
|
+
* @function encode
|
|
82832
|
+
* @memberof HiveIntegration
|
|
82833
|
+
* @static
|
|
82834
|
+
* @param {IHiveIntegration} message HiveIntegration message or plain object to encode
|
|
82835
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82836
|
+
* @returns {$protobuf.Writer} Writer
|
|
82837
|
+
*/
|
|
82838
|
+
HiveIntegration.encode = function encode(message, writer) {
|
|
82839
|
+
if (!writer)
|
|
82840
|
+
writer = $Writer.create();
|
|
82841
|
+
if (message.isHiveIntegration != null && Object.hasOwnProperty.call(message, "isHiveIntegration"))
|
|
82842
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isHiveIntegration);
|
|
82843
|
+
if (message.accessToken != null && Object.hasOwnProperty.call(message, "accessToken"))
|
|
82844
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.accessToken);
|
|
82845
|
+
if (message.refreshToken != null && Object.hasOwnProperty.call(message, "refreshToken"))
|
|
82846
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.refreshToken);
|
|
82847
|
+
if (message.tokenExpiresAt != null && Object.hasOwnProperty.call(message, "tokenExpiresAt"))
|
|
82848
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tokenExpiresAt);
|
|
82849
|
+
if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
|
|
82850
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.clientId);
|
|
82851
|
+
if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
|
|
82852
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientSecret);
|
|
82853
|
+
return writer;
|
|
82854
|
+
};
|
|
82855
|
+
|
|
82856
|
+
/**
|
|
82857
|
+
* Encodes the specified HiveIntegration message, length delimited. Does not implicitly {@link HiveIntegration.verify|verify} messages.
|
|
82858
|
+
* @function encodeDelimited
|
|
82859
|
+
* @memberof HiveIntegration
|
|
82860
|
+
* @static
|
|
82861
|
+
* @param {IHiveIntegration} message HiveIntegration message or plain object to encode
|
|
82862
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
82863
|
+
* @returns {$protobuf.Writer} Writer
|
|
82864
|
+
*/
|
|
82865
|
+
HiveIntegration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
82866
|
+
return this.encode(message, writer).ldelim();
|
|
82867
|
+
};
|
|
82868
|
+
|
|
82869
|
+
/**
|
|
82870
|
+
* Decodes a HiveIntegration message from the specified reader or buffer.
|
|
82871
|
+
* @function decode
|
|
82872
|
+
* @memberof HiveIntegration
|
|
82873
|
+
* @static
|
|
82874
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82875
|
+
* @param {number} [length] Message length if known beforehand
|
|
82876
|
+
* @returns {HiveIntegration} HiveIntegration
|
|
82877
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82878
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82879
|
+
*/
|
|
82880
|
+
HiveIntegration.decode = function decode(reader, length) {
|
|
82881
|
+
if (!(reader instanceof $Reader))
|
|
82882
|
+
reader = $Reader.create(reader);
|
|
82883
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HiveIntegration();
|
|
82884
|
+
while (reader.pos < end) {
|
|
82885
|
+
var tag = reader.uint32();
|
|
82886
|
+
switch (tag >>> 3) {
|
|
82887
|
+
case 1:
|
|
82888
|
+
message.isHiveIntegration = reader.bool();
|
|
82889
|
+
break;
|
|
82890
|
+
case 2:
|
|
82891
|
+
message.accessToken = reader.string();
|
|
82892
|
+
break;
|
|
82893
|
+
case 3:
|
|
82894
|
+
message.refreshToken = reader.string();
|
|
82895
|
+
break;
|
|
82896
|
+
case 4:
|
|
82897
|
+
message.tokenExpiresAt = reader.int32();
|
|
82898
|
+
break;
|
|
82899
|
+
case 5:
|
|
82900
|
+
message.clientId = reader.string();
|
|
82901
|
+
break;
|
|
82902
|
+
case 6:
|
|
82903
|
+
message.clientSecret = reader.string();
|
|
82904
|
+
break;
|
|
82905
|
+
default:
|
|
82906
|
+
reader.skipType(tag & 7);
|
|
82907
|
+
break;
|
|
82908
|
+
}
|
|
82909
|
+
}
|
|
82910
|
+
return message;
|
|
82911
|
+
};
|
|
82912
|
+
|
|
82913
|
+
/**
|
|
82914
|
+
* Decodes a HiveIntegration message from the specified reader or buffer, length delimited.
|
|
82915
|
+
* @function decodeDelimited
|
|
82916
|
+
* @memberof HiveIntegration
|
|
82917
|
+
* @static
|
|
82918
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82919
|
+
* @returns {HiveIntegration} HiveIntegration
|
|
82920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82922
|
+
*/
|
|
82923
|
+
HiveIntegration.decodeDelimited = function decodeDelimited(reader) {
|
|
82924
|
+
if (!(reader instanceof $Reader))
|
|
82925
|
+
reader = new $Reader(reader);
|
|
82926
|
+
return this.decode(reader, reader.uint32());
|
|
82927
|
+
};
|
|
82928
|
+
|
|
82929
|
+
/**
|
|
82930
|
+
* Verifies a HiveIntegration message.
|
|
82931
|
+
* @function verify
|
|
82932
|
+
* @memberof HiveIntegration
|
|
82933
|
+
* @static
|
|
82934
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
82935
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
82936
|
+
*/
|
|
82937
|
+
HiveIntegration.verify = function verify(message) {
|
|
82938
|
+
if (typeof message !== "object" || message === null)
|
|
82939
|
+
return "object expected";
|
|
82940
|
+
if (message.isHiveIntegration != null && message.hasOwnProperty("isHiveIntegration"))
|
|
82941
|
+
if (typeof message.isHiveIntegration !== "boolean")
|
|
82942
|
+
return "isHiveIntegration: boolean expected";
|
|
82943
|
+
if (message.accessToken != null && message.hasOwnProperty("accessToken"))
|
|
82944
|
+
if (!$util.isString(message.accessToken))
|
|
82945
|
+
return "accessToken: string expected";
|
|
82946
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken"))
|
|
82947
|
+
if (!$util.isString(message.refreshToken))
|
|
82948
|
+
return "refreshToken: string expected";
|
|
82949
|
+
if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt"))
|
|
82950
|
+
if (!$util.isInteger(message.tokenExpiresAt))
|
|
82951
|
+
return "tokenExpiresAt: integer expected";
|
|
82952
|
+
if (message.clientId != null && message.hasOwnProperty("clientId"))
|
|
82953
|
+
if (!$util.isString(message.clientId))
|
|
82954
|
+
return "clientId: string expected";
|
|
82955
|
+
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
82956
|
+
if (!$util.isString(message.clientSecret))
|
|
82957
|
+
return "clientSecret: string expected";
|
|
82958
|
+
return null;
|
|
82959
|
+
};
|
|
82960
|
+
|
|
82961
|
+
/**
|
|
82962
|
+
* Creates a HiveIntegration message from a plain object. Also converts values to their respective internal types.
|
|
82963
|
+
* @function fromObject
|
|
82964
|
+
* @memberof HiveIntegration
|
|
82965
|
+
* @static
|
|
82966
|
+
* @param {Object.<string,*>} object Plain object
|
|
82967
|
+
* @returns {HiveIntegration} HiveIntegration
|
|
82968
|
+
*/
|
|
82969
|
+
HiveIntegration.fromObject = function fromObject(object) {
|
|
82970
|
+
if (object instanceof $root.HiveIntegration)
|
|
82971
|
+
return object;
|
|
82972
|
+
var message = new $root.HiveIntegration();
|
|
82973
|
+
if (object.isHiveIntegration != null)
|
|
82974
|
+
message.isHiveIntegration = Boolean(object.isHiveIntegration);
|
|
82975
|
+
if (object.accessToken != null)
|
|
82976
|
+
message.accessToken = String(object.accessToken);
|
|
82977
|
+
if (object.refreshToken != null)
|
|
82978
|
+
message.refreshToken = String(object.refreshToken);
|
|
82979
|
+
if (object.tokenExpiresAt != null)
|
|
82980
|
+
message.tokenExpiresAt = object.tokenExpiresAt | 0;
|
|
82981
|
+
if (object.clientId != null)
|
|
82982
|
+
message.clientId = String(object.clientId);
|
|
82983
|
+
if (object.clientSecret != null)
|
|
82984
|
+
message.clientSecret = String(object.clientSecret);
|
|
82985
|
+
return message;
|
|
82986
|
+
};
|
|
82987
|
+
|
|
82988
|
+
/**
|
|
82989
|
+
* Creates a plain object from a HiveIntegration message. Also converts values to other types if specified.
|
|
82990
|
+
* @function toObject
|
|
82991
|
+
* @memberof HiveIntegration
|
|
82992
|
+
* @static
|
|
82993
|
+
* @param {HiveIntegration} message HiveIntegration
|
|
82994
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
82995
|
+
* @returns {Object.<string,*>} Plain object
|
|
82996
|
+
*/
|
|
82997
|
+
HiveIntegration.toObject = function toObject(message, options) {
|
|
82998
|
+
if (!options)
|
|
82999
|
+
options = {};
|
|
83000
|
+
var object = {};
|
|
83001
|
+
if (options.defaults) {
|
|
83002
|
+
object.isHiveIntegration = false;
|
|
83003
|
+
object.accessToken = "";
|
|
83004
|
+
object.refreshToken = "";
|
|
83005
|
+
object.tokenExpiresAt = 0;
|
|
83006
|
+
object.clientId = "";
|
|
83007
|
+
object.clientSecret = "";
|
|
83008
|
+
}
|
|
83009
|
+
if (message.isHiveIntegration != null && message.hasOwnProperty("isHiveIntegration"))
|
|
83010
|
+
object.isHiveIntegration = message.isHiveIntegration;
|
|
83011
|
+
if (message.accessToken != null && message.hasOwnProperty("accessToken"))
|
|
83012
|
+
object.accessToken = message.accessToken;
|
|
83013
|
+
if (message.refreshToken != null && message.hasOwnProperty("refreshToken"))
|
|
83014
|
+
object.refreshToken = message.refreshToken;
|
|
83015
|
+
if (message.tokenExpiresAt != null && message.hasOwnProperty("tokenExpiresAt"))
|
|
83016
|
+
object.tokenExpiresAt = message.tokenExpiresAt;
|
|
83017
|
+
if (message.clientId != null && message.hasOwnProperty("clientId"))
|
|
83018
|
+
object.clientId = message.clientId;
|
|
83019
|
+
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
83020
|
+
object.clientSecret = message.clientSecret;
|
|
83021
|
+
return object;
|
|
83022
|
+
};
|
|
83023
|
+
|
|
83024
|
+
/**
|
|
83025
|
+
* Converts this HiveIntegration to JSON.
|
|
83026
|
+
* @function toJSON
|
|
83027
|
+
* @memberof HiveIntegration
|
|
83028
|
+
* @instance
|
|
83029
|
+
* @returns {Object.<string,*>} JSON object
|
|
83030
|
+
*/
|
|
83031
|
+
HiveIntegration.prototype.toJSON = function toJSON() {
|
|
83032
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
83033
|
+
};
|
|
83034
|
+
|
|
83035
|
+
return HiveIntegration;
|
|
83036
|
+
})();
|
|
83037
|
+
|
|
82691
83038
|
$root.CreateOrganizationRequest = (function() {
|
|
82692
83039
|
|
|
82693
83040
|
/**
|
|
@@ -86127,29 +86474,1035 @@ $root.DeleteOrganizationResponse = (function() {
|
|
|
86127
86474
|
}
|
|
86128
86475
|
if (object.errors) {
|
|
86129
86476
|
if (!Array.isArray(object.errors))
|
|
86130
|
-
throw TypeError(".DeleteOrganizationResponse.errors: array expected");
|
|
86477
|
+
throw TypeError(".DeleteOrganizationResponse.errors: array expected");
|
|
86478
|
+
message.errors = [];
|
|
86479
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
86480
|
+
if (typeof object.errors[i] !== "object")
|
|
86481
|
+
throw TypeError(".DeleteOrganizationResponse.errors: object expected");
|
|
86482
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
86483
|
+
}
|
|
86484
|
+
}
|
|
86485
|
+
if (object.isDeleted != null)
|
|
86486
|
+
message.isDeleted = Boolean(object.isDeleted);
|
|
86487
|
+
return message;
|
|
86488
|
+
};
|
|
86489
|
+
|
|
86490
|
+
/**
|
|
86491
|
+
* Creates a plain object from a DeleteOrganizationResponse message. Also converts values to other types if specified.
|
|
86492
|
+
* @function toObject
|
|
86493
|
+
* @memberof DeleteOrganizationResponse
|
|
86494
|
+
* @static
|
|
86495
|
+
* @param {DeleteOrganizationResponse} message DeleteOrganizationResponse
|
|
86496
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86497
|
+
* @returns {Object.<string,*>} Plain object
|
|
86498
|
+
*/
|
|
86499
|
+
DeleteOrganizationResponse.toObject = function toObject(message, options) {
|
|
86500
|
+
if (!options)
|
|
86501
|
+
options = {};
|
|
86502
|
+
var object = {};
|
|
86503
|
+
if (options.arrays || options.defaults)
|
|
86504
|
+
object.errors = [];
|
|
86505
|
+
if (options.defaults) {
|
|
86506
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
86507
|
+
object.isDeleted = false;
|
|
86508
|
+
}
|
|
86509
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
86510
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
86511
|
+
if (message.errors && message.errors.length) {
|
|
86512
|
+
object.errors = [];
|
|
86513
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
86514
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
86515
|
+
}
|
|
86516
|
+
if (message.isDeleted != null && message.hasOwnProperty("isDeleted"))
|
|
86517
|
+
object.isDeleted = message.isDeleted;
|
|
86518
|
+
return object;
|
|
86519
|
+
};
|
|
86520
|
+
|
|
86521
|
+
/**
|
|
86522
|
+
* Converts this DeleteOrganizationResponse to JSON.
|
|
86523
|
+
* @function toJSON
|
|
86524
|
+
* @memberof DeleteOrganizationResponse
|
|
86525
|
+
* @instance
|
|
86526
|
+
* @returns {Object.<string,*>} JSON object
|
|
86527
|
+
*/
|
|
86528
|
+
DeleteOrganizationResponse.prototype.toJSON = function toJSON() {
|
|
86529
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86530
|
+
};
|
|
86531
|
+
|
|
86532
|
+
return DeleteOrganizationResponse;
|
|
86533
|
+
})();
|
|
86534
|
+
|
|
86535
|
+
$root.UpdateOrgEmailWebhookRequest = (function() {
|
|
86536
|
+
|
|
86537
|
+
/**
|
|
86538
|
+
* Properties of an UpdateOrgEmailWebhookRequest.
|
|
86539
|
+
* @exports IUpdateOrgEmailWebhookRequest
|
|
86540
|
+
* @interface IUpdateOrgEmailWebhookRequest
|
|
86541
|
+
* @property {string|null} [spanContext] UpdateOrgEmailWebhookRequest spanContext
|
|
86542
|
+
* @property {string|null} [email] UpdateOrgEmailWebhookRequest email
|
|
86543
|
+
*/
|
|
86544
|
+
|
|
86545
|
+
/**
|
|
86546
|
+
* Constructs a new UpdateOrgEmailWebhookRequest.
|
|
86547
|
+
* @exports UpdateOrgEmailWebhookRequest
|
|
86548
|
+
* @classdesc Represents an UpdateOrgEmailWebhookRequest.
|
|
86549
|
+
* @implements IUpdateOrgEmailWebhookRequest
|
|
86550
|
+
* @constructor
|
|
86551
|
+
* @param {IUpdateOrgEmailWebhookRequest=} [properties] Properties to set
|
|
86552
|
+
*/
|
|
86553
|
+
function UpdateOrgEmailWebhookRequest(properties) {
|
|
86554
|
+
if (properties)
|
|
86555
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86556
|
+
if (properties[keys[i]] != null)
|
|
86557
|
+
this[keys[i]] = properties[keys[i]];
|
|
86558
|
+
}
|
|
86559
|
+
|
|
86560
|
+
/**
|
|
86561
|
+
* UpdateOrgEmailWebhookRequest spanContext.
|
|
86562
|
+
* @member {string} spanContext
|
|
86563
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86564
|
+
* @instance
|
|
86565
|
+
*/
|
|
86566
|
+
UpdateOrgEmailWebhookRequest.prototype.spanContext = "";
|
|
86567
|
+
|
|
86568
|
+
/**
|
|
86569
|
+
* UpdateOrgEmailWebhookRequest email.
|
|
86570
|
+
* @member {string} email
|
|
86571
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86572
|
+
* @instance
|
|
86573
|
+
*/
|
|
86574
|
+
UpdateOrgEmailWebhookRequest.prototype.email = "";
|
|
86575
|
+
|
|
86576
|
+
/**
|
|
86577
|
+
* Creates a new UpdateOrgEmailWebhookRequest instance using the specified properties.
|
|
86578
|
+
* @function create
|
|
86579
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86580
|
+
* @static
|
|
86581
|
+
* @param {IUpdateOrgEmailWebhookRequest=} [properties] Properties to set
|
|
86582
|
+
* @returns {UpdateOrgEmailWebhookRequest} UpdateOrgEmailWebhookRequest instance
|
|
86583
|
+
*/
|
|
86584
|
+
UpdateOrgEmailWebhookRequest.create = function create(properties) {
|
|
86585
|
+
return new UpdateOrgEmailWebhookRequest(properties);
|
|
86586
|
+
};
|
|
86587
|
+
|
|
86588
|
+
/**
|
|
86589
|
+
* Encodes the specified UpdateOrgEmailWebhookRequest message. Does not implicitly {@link UpdateOrgEmailWebhookRequest.verify|verify} messages.
|
|
86590
|
+
* @function encode
|
|
86591
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86592
|
+
* @static
|
|
86593
|
+
* @param {IUpdateOrgEmailWebhookRequest} message UpdateOrgEmailWebhookRequest message or plain object to encode
|
|
86594
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86595
|
+
* @returns {$protobuf.Writer} Writer
|
|
86596
|
+
*/
|
|
86597
|
+
UpdateOrgEmailWebhookRequest.encode = function encode(message, writer) {
|
|
86598
|
+
if (!writer)
|
|
86599
|
+
writer = $Writer.create();
|
|
86600
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
86601
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
86602
|
+
if (message.email != null && Object.hasOwnProperty.call(message, "email"))
|
|
86603
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
|
|
86604
|
+
return writer;
|
|
86605
|
+
};
|
|
86606
|
+
|
|
86607
|
+
/**
|
|
86608
|
+
* Encodes the specified UpdateOrgEmailWebhookRequest message, length delimited. Does not implicitly {@link UpdateOrgEmailWebhookRequest.verify|verify} messages.
|
|
86609
|
+
* @function encodeDelimited
|
|
86610
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86611
|
+
* @static
|
|
86612
|
+
* @param {IUpdateOrgEmailWebhookRequest} message UpdateOrgEmailWebhookRequest message or plain object to encode
|
|
86613
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86614
|
+
* @returns {$protobuf.Writer} Writer
|
|
86615
|
+
*/
|
|
86616
|
+
UpdateOrgEmailWebhookRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86617
|
+
return this.encode(message, writer).ldelim();
|
|
86618
|
+
};
|
|
86619
|
+
|
|
86620
|
+
/**
|
|
86621
|
+
* Decodes an UpdateOrgEmailWebhookRequest message from the specified reader or buffer.
|
|
86622
|
+
* @function decode
|
|
86623
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86624
|
+
* @static
|
|
86625
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86626
|
+
* @param {number} [length] Message length if known beforehand
|
|
86627
|
+
* @returns {UpdateOrgEmailWebhookRequest} UpdateOrgEmailWebhookRequest
|
|
86628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86630
|
+
*/
|
|
86631
|
+
UpdateOrgEmailWebhookRequest.decode = function decode(reader, length) {
|
|
86632
|
+
if (!(reader instanceof $Reader))
|
|
86633
|
+
reader = $Reader.create(reader);
|
|
86634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateOrgEmailWebhookRequest();
|
|
86635
|
+
while (reader.pos < end) {
|
|
86636
|
+
var tag = reader.uint32();
|
|
86637
|
+
switch (tag >>> 3) {
|
|
86638
|
+
case 0:
|
|
86639
|
+
message.spanContext = reader.string();
|
|
86640
|
+
break;
|
|
86641
|
+
case 1:
|
|
86642
|
+
message.email = reader.string();
|
|
86643
|
+
break;
|
|
86644
|
+
default:
|
|
86645
|
+
reader.skipType(tag & 7);
|
|
86646
|
+
break;
|
|
86647
|
+
}
|
|
86648
|
+
}
|
|
86649
|
+
return message;
|
|
86650
|
+
};
|
|
86651
|
+
|
|
86652
|
+
/**
|
|
86653
|
+
* Decodes an UpdateOrgEmailWebhookRequest message from the specified reader or buffer, length delimited.
|
|
86654
|
+
* @function decodeDelimited
|
|
86655
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86656
|
+
* @static
|
|
86657
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86658
|
+
* @returns {UpdateOrgEmailWebhookRequest} UpdateOrgEmailWebhookRequest
|
|
86659
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86660
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86661
|
+
*/
|
|
86662
|
+
UpdateOrgEmailWebhookRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
86663
|
+
if (!(reader instanceof $Reader))
|
|
86664
|
+
reader = new $Reader(reader);
|
|
86665
|
+
return this.decode(reader, reader.uint32());
|
|
86666
|
+
};
|
|
86667
|
+
|
|
86668
|
+
/**
|
|
86669
|
+
* Verifies an UpdateOrgEmailWebhookRequest message.
|
|
86670
|
+
* @function verify
|
|
86671
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86672
|
+
* @static
|
|
86673
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86674
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86675
|
+
*/
|
|
86676
|
+
UpdateOrgEmailWebhookRequest.verify = function verify(message) {
|
|
86677
|
+
if (typeof message !== "object" || message === null)
|
|
86678
|
+
return "object expected";
|
|
86679
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
86680
|
+
if (!$util.isString(message.spanContext))
|
|
86681
|
+
return "spanContext: string expected";
|
|
86682
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
86683
|
+
if (!$util.isString(message.email))
|
|
86684
|
+
return "email: string expected";
|
|
86685
|
+
return null;
|
|
86686
|
+
};
|
|
86687
|
+
|
|
86688
|
+
/**
|
|
86689
|
+
* Creates an UpdateOrgEmailWebhookRequest message from a plain object. Also converts values to their respective internal types.
|
|
86690
|
+
* @function fromObject
|
|
86691
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86692
|
+
* @static
|
|
86693
|
+
* @param {Object.<string,*>} object Plain object
|
|
86694
|
+
* @returns {UpdateOrgEmailWebhookRequest} UpdateOrgEmailWebhookRequest
|
|
86695
|
+
*/
|
|
86696
|
+
UpdateOrgEmailWebhookRequest.fromObject = function fromObject(object) {
|
|
86697
|
+
if (object instanceof $root.UpdateOrgEmailWebhookRequest)
|
|
86698
|
+
return object;
|
|
86699
|
+
var message = new $root.UpdateOrgEmailWebhookRequest();
|
|
86700
|
+
if (object.spanContext != null)
|
|
86701
|
+
message.spanContext = String(object.spanContext);
|
|
86702
|
+
if (object.email != null)
|
|
86703
|
+
message.email = String(object.email);
|
|
86704
|
+
return message;
|
|
86705
|
+
};
|
|
86706
|
+
|
|
86707
|
+
/**
|
|
86708
|
+
* Creates a plain object from an UpdateOrgEmailWebhookRequest message. Also converts values to other types if specified.
|
|
86709
|
+
* @function toObject
|
|
86710
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86711
|
+
* @static
|
|
86712
|
+
* @param {UpdateOrgEmailWebhookRequest} message UpdateOrgEmailWebhookRequest
|
|
86713
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86714
|
+
* @returns {Object.<string,*>} Plain object
|
|
86715
|
+
*/
|
|
86716
|
+
UpdateOrgEmailWebhookRequest.toObject = function toObject(message, options) {
|
|
86717
|
+
if (!options)
|
|
86718
|
+
options = {};
|
|
86719
|
+
var object = {};
|
|
86720
|
+
if (options.defaults) {
|
|
86721
|
+
object.spanContext = "";
|
|
86722
|
+
object.email = "";
|
|
86723
|
+
}
|
|
86724
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
86725
|
+
object.spanContext = message.spanContext;
|
|
86726
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
86727
|
+
object.email = message.email;
|
|
86728
|
+
return object;
|
|
86729
|
+
};
|
|
86730
|
+
|
|
86731
|
+
/**
|
|
86732
|
+
* Converts this UpdateOrgEmailWebhookRequest to JSON.
|
|
86733
|
+
* @function toJSON
|
|
86734
|
+
* @memberof UpdateOrgEmailWebhookRequest
|
|
86735
|
+
* @instance
|
|
86736
|
+
* @returns {Object.<string,*>} JSON object
|
|
86737
|
+
*/
|
|
86738
|
+
UpdateOrgEmailWebhookRequest.prototype.toJSON = function toJSON() {
|
|
86739
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86740
|
+
};
|
|
86741
|
+
|
|
86742
|
+
return UpdateOrgEmailWebhookRequest;
|
|
86743
|
+
})();
|
|
86744
|
+
|
|
86745
|
+
$root.UpdateOrgEmailWebhookResponse = (function() {
|
|
86746
|
+
|
|
86747
|
+
/**
|
|
86748
|
+
* Properties of an UpdateOrgEmailWebhookResponse.
|
|
86749
|
+
* @exports IUpdateOrgEmailWebhookResponse
|
|
86750
|
+
* @interface IUpdateOrgEmailWebhookResponse
|
|
86751
|
+
* @property {StatusCode|null} [status] UpdateOrgEmailWebhookResponse status
|
|
86752
|
+
* @property {Array.<IError>|null} [errors] UpdateOrgEmailWebhookResponse errors
|
|
86753
|
+
*/
|
|
86754
|
+
|
|
86755
|
+
/**
|
|
86756
|
+
* Constructs a new UpdateOrgEmailWebhookResponse.
|
|
86757
|
+
* @exports UpdateOrgEmailWebhookResponse
|
|
86758
|
+
* @classdesc Represents an UpdateOrgEmailWebhookResponse.
|
|
86759
|
+
* @implements IUpdateOrgEmailWebhookResponse
|
|
86760
|
+
* @constructor
|
|
86761
|
+
* @param {IUpdateOrgEmailWebhookResponse=} [properties] Properties to set
|
|
86762
|
+
*/
|
|
86763
|
+
function UpdateOrgEmailWebhookResponse(properties) {
|
|
86764
|
+
this.errors = [];
|
|
86765
|
+
if (properties)
|
|
86766
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86767
|
+
if (properties[keys[i]] != null)
|
|
86768
|
+
this[keys[i]] = properties[keys[i]];
|
|
86769
|
+
}
|
|
86770
|
+
|
|
86771
|
+
/**
|
|
86772
|
+
* UpdateOrgEmailWebhookResponse status.
|
|
86773
|
+
* @member {StatusCode} status
|
|
86774
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86775
|
+
* @instance
|
|
86776
|
+
*/
|
|
86777
|
+
UpdateOrgEmailWebhookResponse.prototype.status = 0;
|
|
86778
|
+
|
|
86779
|
+
/**
|
|
86780
|
+
* UpdateOrgEmailWebhookResponse errors.
|
|
86781
|
+
* @member {Array.<IError>} errors
|
|
86782
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86783
|
+
* @instance
|
|
86784
|
+
*/
|
|
86785
|
+
UpdateOrgEmailWebhookResponse.prototype.errors = $util.emptyArray;
|
|
86786
|
+
|
|
86787
|
+
/**
|
|
86788
|
+
* Creates a new UpdateOrgEmailWebhookResponse instance using the specified properties.
|
|
86789
|
+
* @function create
|
|
86790
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86791
|
+
* @static
|
|
86792
|
+
* @param {IUpdateOrgEmailWebhookResponse=} [properties] Properties to set
|
|
86793
|
+
* @returns {UpdateOrgEmailWebhookResponse} UpdateOrgEmailWebhookResponse instance
|
|
86794
|
+
*/
|
|
86795
|
+
UpdateOrgEmailWebhookResponse.create = function create(properties) {
|
|
86796
|
+
return new UpdateOrgEmailWebhookResponse(properties);
|
|
86797
|
+
};
|
|
86798
|
+
|
|
86799
|
+
/**
|
|
86800
|
+
* Encodes the specified UpdateOrgEmailWebhookResponse message. Does not implicitly {@link UpdateOrgEmailWebhookResponse.verify|verify} messages.
|
|
86801
|
+
* @function encode
|
|
86802
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86803
|
+
* @static
|
|
86804
|
+
* @param {IUpdateOrgEmailWebhookResponse} message UpdateOrgEmailWebhookResponse message or plain object to encode
|
|
86805
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86806
|
+
* @returns {$protobuf.Writer} Writer
|
|
86807
|
+
*/
|
|
86808
|
+
UpdateOrgEmailWebhookResponse.encode = function encode(message, writer) {
|
|
86809
|
+
if (!writer)
|
|
86810
|
+
writer = $Writer.create();
|
|
86811
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
86812
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
86813
|
+
if (message.errors != null && message.errors.length)
|
|
86814
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
86815
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
86816
|
+
return writer;
|
|
86817
|
+
};
|
|
86818
|
+
|
|
86819
|
+
/**
|
|
86820
|
+
* Encodes the specified UpdateOrgEmailWebhookResponse message, length delimited. Does not implicitly {@link UpdateOrgEmailWebhookResponse.verify|verify} messages.
|
|
86821
|
+
* @function encodeDelimited
|
|
86822
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86823
|
+
* @static
|
|
86824
|
+
* @param {IUpdateOrgEmailWebhookResponse} message UpdateOrgEmailWebhookResponse message or plain object to encode
|
|
86825
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86826
|
+
* @returns {$protobuf.Writer} Writer
|
|
86827
|
+
*/
|
|
86828
|
+
UpdateOrgEmailWebhookResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86829
|
+
return this.encode(message, writer).ldelim();
|
|
86830
|
+
};
|
|
86831
|
+
|
|
86832
|
+
/**
|
|
86833
|
+
* Decodes an UpdateOrgEmailWebhookResponse message from the specified reader or buffer.
|
|
86834
|
+
* @function decode
|
|
86835
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86836
|
+
* @static
|
|
86837
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86838
|
+
* @param {number} [length] Message length if known beforehand
|
|
86839
|
+
* @returns {UpdateOrgEmailWebhookResponse} UpdateOrgEmailWebhookResponse
|
|
86840
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86841
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86842
|
+
*/
|
|
86843
|
+
UpdateOrgEmailWebhookResponse.decode = function decode(reader, length) {
|
|
86844
|
+
if (!(reader instanceof $Reader))
|
|
86845
|
+
reader = $Reader.create(reader);
|
|
86846
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UpdateOrgEmailWebhookResponse();
|
|
86847
|
+
while (reader.pos < end) {
|
|
86848
|
+
var tag = reader.uint32();
|
|
86849
|
+
switch (tag >>> 3) {
|
|
86850
|
+
case 0:
|
|
86851
|
+
message.status = reader.int32();
|
|
86852
|
+
break;
|
|
86853
|
+
case 1:
|
|
86854
|
+
if (!(message.errors && message.errors.length))
|
|
86855
|
+
message.errors = [];
|
|
86856
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
86857
|
+
break;
|
|
86858
|
+
default:
|
|
86859
|
+
reader.skipType(tag & 7);
|
|
86860
|
+
break;
|
|
86861
|
+
}
|
|
86862
|
+
}
|
|
86863
|
+
return message;
|
|
86864
|
+
};
|
|
86865
|
+
|
|
86866
|
+
/**
|
|
86867
|
+
* Decodes an UpdateOrgEmailWebhookResponse message from the specified reader or buffer, length delimited.
|
|
86868
|
+
* @function decodeDelimited
|
|
86869
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86870
|
+
* @static
|
|
86871
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86872
|
+
* @returns {UpdateOrgEmailWebhookResponse} UpdateOrgEmailWebhookResponse
|
|
86873
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86874
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86875
|
+
*/
|
|
86876
|
+
UpdateOrgEmailWebhookResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
86877
|
+
if (!(reader instanceof $Reader))
|
|
86878
|
+
reader = new $Reader(reader);
|
|
86879
|
+
return this.decode(reader, reader.uint32());
|
|
86880
|
+
};
|
|
86881
|
+
|
|
86882
|
+
/**
|
|
86883
|
+
* Verifies an UpdateOrgEmailWebhookResponse message.
|
|
86884
|
+
* @function verify
|
|
86885
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86886
|
+
* @static
|
|
86887
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86888
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86889
|
+
*/
|
|
86890
|
+
UpdateOrgEmailWebhookResponse.verify = function verify(message) {
|
|
86891
|
+
if (typeof message !== "object" || message === null)
|
|
86892
|
+
return "object expected";
|
|
86893
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
86894
|
+
switch (message.status) {
|
|
86895
|
+
default:
|
|
86896
|
+
return "status: enum value expected";
|
|
86897
|
+
case 0:
|
|
86898
|
+
case 200:
|
|
86899
|
+
case 400:
|
|
86900
|
+
case 401:
|
|
86901
|
+
case 403:
|
|
86902
|
+
case 422:
|
|
86903
|
+
case 404:
|
|
86904
|
+
case 500:
|
|
86905
|
+
case 504:
|
|
86906
|
+
break;
|
|
86907
|
+
}
|
|
86908
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
86909
|
+
if (!Array.isArray(message.errors))
|
|
86910
|
+
return "errors: array expected";
|
|
86911
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
86912
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
86913
|
+
if (error)
|
|
86914
|
+
return "errors." + error;
|
|
86915
|
+
}
|
|
86916
|
+
}
|
|
86917
|
+
return null;
|
|
86918
|
+
};
|
|
86919
|
+
|
|
86920
|
+
/**
|
|
86921
|
+
* Creates an UpdateOrgEmailWebhookResponse message from a plain object. Also converts values to their respective internal types.
|
|
86922
|
+
* @function fromObject
|
|
86923
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86924
|
+
* @static
|
|
86925
|
+
* @param {Object.<string,*>} object Plain object
|
|
86926
|
+
* @returns {UpdateOrgEmailWebhookResponse} UpdateOrgEmailWebhookResponse
|
|
86927
|
+
*/
|
|
86928
|
+
UpdateOrgEmailWebhookResponse.fromObject = function fromObject(object) {
|
|
86929
|
+
if (object instanceof $root.UpdateOrgEmailWebhookResponse)
|
|
86930
|
+
return object;
|
|
86931
|
+
var message = new $root.UpdateOrgEmailWebhookResponse();
|
|
86932
|
+
switch (object.status) {
|
|
86933
|
+
case "UNKNOWN_CODE":
|
|
86934
|
+
case 0:
|
|
86935
|
+
message.status = 0;
|
|
86936
|
+
break;
|
|
86937
|
+
case "OK":
|
|
86938
|
+
case 200:
|
|
86939
|
+
message.status = 200;
|
|
86940
|
+
break;
|
|
86941
|
+
case "BAD_REQUEST":
|
|
86942
|
+
case 400:
|
|
86943
|
+
message.status = 400;
|
|
86944
|
+
break;
|
|
86945
|
+
case "UNAUTHORIZED":
|
|
86946
|
+
case 401:
|
|
86947
|
+
message.status = 401;
|
|
86948
|
+
break;
|
|
86949
|
+
case "FORBIDDEN":
|
|
86950
|
+
case 403:
|
|
86951
|
+
message.status = 403;
|
|
86952
|
+
break;
|
|
86953
|
+
case "UNPROCESSABLE_ENTITY":
|
|
86954
|
+
case 422:
|
|
86955
|
+
message.status = 422;
|
|
86956
|
+
break;
|
|
86957
|
+
case "NOT_FOUND":
|
|
86958
|
+
case 404:
|
|
86959
|
+
message.status = 404;
|
|
86960
|
+
break;
|
|
86961
|
+
case "INTERNAL_SERVER_ERROR":
|
|
86962
|
+
case 500:
|
|
86963
|
+
message.status = 500;
|
|
86964
|
+
break;
|
|
86965
|
+
case "GATEWAY_TIMEOUT":
|
|
86966
|
+
case 504:
|
|
86967
|
+
message.status = 504;
|
|
86968
|
+
break;
|
|
86969
|
+
}
|
|
86970
|
+
if (object.errors) {
|
|
86971
|
+
if (!Array.isArray(object.errors))
|
|
86972
|
+
throw TypeError(".UpdateOrgEmailWebhookResponse.errors: array expected");
|
|
86973
|
+
message.errors = [];
|
|
86974
|
+
for (var i = 0; i < object.errors.length; ++i) {
|
|
86975
|
+
if (typeof object.errors[i] !== "object")
|
|
86976
|
+
throw TypeError(".UpdateOrgEmailWebhookResponse.errors: object expected");
|
|
86977
|
+
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
86978
|
+
}
|
|
86979
|
+
}
|
|
86980
|
+
return message;
|
|
86981
|
+
};
|
|
86982
|
+
|
|
86983
|
+
/**
|
|
86984
|
+
* Creates a plain object from an UpdateOrgEmailWebhookResponse message. Also converts values to other types if specified.
|
|
86985
|
+
* @function toObject
|
|
86986
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
86987
|
+
* @static
|
|
86988
|
+
* @param {UpdateOrgEmailWebhookResponse} message UpdateOrgEmailWebhookResponse
|
|
86989
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86990
|
+
* @returns {Object.<string,*>} Plain object
|
|
86991
|
+
*/
|
|
86992
|
+
UpdateOrgEmailWebhookResponse.toObject = function toObject(message, options) {
|
|
86993
|
+
if (!options)
|
|
86994
|
+
options = {};
|
|
86995
|
+
var object = {};
|
|
86996
|
+
if (options.arrays || options.defaults)
|
|
86997
|
+
object.errors = [];
|
|
86998
|
+
if (options.defaults)
|
|
86999
|
+
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
87000
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
87001
|
+
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
87002
|
+
if (message.errors && message.errors.length) {
|
|
87003
|
+
object.errors = [];
|
|
87004
|
+
for (var j = 0; j < message.errors.length; ++j)
|
|
87005
|
+
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
87006
|
+
}
|
|
87007
|
+
return object;
|
|
87008
|
+
};
|
|
87009
|
+
|
|
87010
|
+
/**
|
|
87011
|
+
* Converts this UpdateOrgEmailWebhookResponse to JSON.
|
|
87012
|
+
* @function toJSON
|
|
87013
|
+
* @memberof UpdateOrgEmailWebhookResponse
|
|
87014
|
+
* @instance
|
|
87015
|
+
* @returns {Object.<string,*>} JSON object
|
|
87016
|
+
*/
|
|
87017
|
+
UpdateOrgEmailWebhookResponse.prototype.toJSON = function toJSON() {
|
|
87018
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87019
|
+
};
|
|
87020
|
+
|
|
87021
|
+
return UpdateOrgEmailWebhookResponse;
|
|
87022
|
+
})();
|
|
87023
|
+
|
|
87024
|
+
$root.RemoveOrganizationStripeIdRequest = (function() {
|
|
87025
|
+
|
|
87026
|
+
/**
|
|
87027
|
+
* Properties of a RemoveOrganizationStripeIdRequest.
|
|
87028
|
+
* @exports IRemoveOrganizationStripeIdRequest
|
|
87029
|
+
* @interface IRemoveOrganizationStripeIdRequest
|
|
87030
|
+
* @property {string|null} [spanContext] RemoveOrganizationStripeIdRequest spanContext
|
|
87031
|
+
* @property {string|null} [orgId] RemoveOrganizationStripeIdRequest orgId
|
|
87032
|
+
*/
|
|
87033
|
+
|
|
87034
|
+
/**
|
|
87035
|
+
* Constructs a new RemoveOrganizationStripeIdRequest.
|
|
87036
|
+
* @exports RemoveOrganizationStripeIdRequest
|
|
87037
|
+
* @classdesc Represents a RemoveOrganizationStripeIdRequest.
|
|
87038
|
+
* @implements IRemoveOrganizationStripeIdRequest
|
|
87039
|
+
* @constructor
|
|
87040
|
+
* @param {IRemoveOrganizationStripeIdRequest=} [properties] Properties to set
|
|
87041
|
+
*/
|
|
87042
|
+
function RemoveOrganizationStripeIdRequest(properties) {
|
|
87043
|
+
if (properties)
|
|
87044
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87045
|
+
if (properties[keys[i]] != null)
|
|
87046
|
+
this[keys[i]] = properties[keys[i]];
|
|
87047
|
+
}
|
|
87048
|
+
|
|
87049
|
+
/**
|
|
87050
|
+
* RemoveOrganizationStripeIdRequest spanContext.
|
|
87051
|
+
* @member {string} spanContext
|
|
87052
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87053
|
+
* @instance
|
|
87054
|
+
*/
|
|
87055
|
+
RemoveOrganizationStripeIdRequest.prototype.spanContext = "";
|
|
87056
|
+
|
|
87057
|
+
/**
|
|
87058
|
+
* RemoveOrganizationStripeIdRequest orgId.
|
|
87059
|
+
* @member {string} orgId
|
|
87060
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87061
|
+
* @instance
|
|
87062
|
+
*/
|
|
87063
|
+
RemoveOrganizationStripeIdRequest.prototype.orgId = "";
|
|
87064
|
+
|
|
87065
|
+
/**
|
|
87066
|
+
* Creates a new RemoveOrganizationStripeIdRequest instance using the specified properties.
|
|
87067
|
+
* @function create
|
|
87068
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87069
|
+
* @static
|
|
87070
|
+
* @param {IRemoveOrganizationStripeIdRequest=} [properties] Properties to set
|
|
87071
|
+
* @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest instance
|
|
87072
|
+
*/
|
|
87073
|
+
RemoveOrganizationStripeIdRequest.create = function create(properties) {
|
|
87074
|
+
return new RemoveOrganizationStripeIdRequest(properties);
|
|
87075
|
+
};
|
|
87076
|
+
|
|
87077
|
+
/**
|
|
87078
|
+
* Encodes the specified RemoveOrganizationStripeIdRequest message. Does not implicitly {@link RemoveOrganizationStripeIdRequest.verify|verify} messages.
|
|
87079
|
+
* @function encode
|
|
87080
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87081
|
+
* @static
|
|
87082
|
+
* @param {IRemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest message or plain object to encode
|
|
87083
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87084
|
+
* @returns {$protobuf.Writer} Writer
|
|
87085
|
+
*/
|
|
87086
|
+
RemoveOrganizationStripeIdRequest.encode = function encode(message, writer) {
|
|
87087
|
+
if (!writer)
|
|
87088
|
+
writer = $Writer.create();
|
|
87089
|
+
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
87090
|
+
writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
|
|
87091
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
87092
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
|
|
87093
|
+
return writer;
|
|
87094
|
+
};
|
|
87095
|
+
|
|
87096
|
+
/**
|
|
87097
|
+
* Encodes the specified RemoveOrganizationStripeIdRequest message, length delimited. Does not implicitly {@link RemoveOrganizationStripeIdRequest.verify|verify} messages.
|
|
87098
|
+
* @function encodeDelimited
|
|
87099
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87100
|
+
* @static
|
|
87101
|
+
* @param {IRemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest message or plain object to encode
|
|
87102
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87103
|
+
* @returns {$protobuf.Writer} Writer
|
|
87104
|
+
*/
|
|
87105
|
+
RemoveOrganizationStripeIdRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87106
|
+
return this.encode(message, writer).ldelim();
|
|
87107
|
+
};
|
|
87108
|
+
|
|
87109
|
+
/**
|
|
87110
|
+
* Decodes a RemoveOrganizationStripeIdRequest message from the specified reader or buffer.
|
|
87111
|
+
* @function decode
|
|
87112
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87113
|
+
* @static
|
|
87114
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87115
|
+
* @param {number} [length] Message length if known beforehand
|
|
87116
|
+
* @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
|
|
87117
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87118
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87119
|
+
*/
|
|
87120
|
+
RemoveOrganizationStripeIdRequest.decode = function decode(reader, length) {
|
|
87121
|
+
if (!(reader instanceof $Reader))
|
|
87122
|
+
reader = $Reader.create(reader);
|
|
87123
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RemoveOrganizationStripeIdRequest();
|
|
87124
|
+
while (reader.pos < end) {
|
|
87125
|
+
var tag = reader.uint32();
|
|
87126
|
+
switch (tag >>> 3) {
|
|
87127
|
+
case 0:
|
|
87128
|
+
message.spanContext = reader.string();
|
|
87129
|
+
break;
|
|
87130
|
+
case 1:
|
|
87131
|
+
message.orgId = reader.string();
|
|
87132
|
+
break;
|
|
87133
|
+
default:
|
|
87134
|
+
reader.skipType(tag & 7);
|
|
87135
|
+
break;
|
|
87136
|
+
}
|
|
87137
|
+
}
|
|
87138
|
+
return message;
|
|
87139
|
+
};
|
|
87140
|
+
|
|
87141
|
+
/**
|
|
87142
|
+
* Decodes a RemoveOrganizationStripeIdRequest message from the specified reader or buffer, length delimited.
|
|
87143
|
+
* @function decodeDelimited
|
|
87144
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87145
|
+
* @static
|
|
87146
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87147
|
+
* @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
|
|
87148
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87149
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87150
|
+
*/
|
|
87151
|
+
RemoveOrganizationStripeIdRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
87152
|
+
if (!(reader instanceof $Reader))
|
|
87153
|
+
reader = new $Reader(reader);
|
|
87154
|
+
return this.decode(reader, reader.uint32());
|
|
87155
|
+
};
|
|
87156
|
+
|
|
87157
|
+
/**
|
|
87158
|
+
* Verifies a RemoveOrganizationStripeIdRequest message.
|
|
87159
|
+
* @function verify
|
|
87160
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87161
|
+
* @static
|
|
87162
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87163
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87164
|
+
*/
|
|
87165
|
+
RemoveOrganizationStripeIdRequest.verify = function verify(message) {
|
|
87166
|
+
if (typeof message !== "object" || message === null)
|
|
87167
|
+
return "object expected";
|
|
87168
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
87169
|
+
if (!$util.isString(message.spanContext))
|
|
87170
|
+
return "spanContext: string expected";
|
|
87171
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
87172
|
+
if (!$util.isString(message.orgId))
|
|
87173
|
+
return "orgId: string expected";
|
|
87174
|
+
return null;
|
|
87175
|
+
};
|
|
87176
|
+
|
|
87177
|
+
/**
|
|
87178
|
+
* Creates a RemoveOrganizationStripeIdRequest message from a plain object. Also converts values to their respective internal types.
|
|
87179
|
+
* @function fromObject
|
|
87180
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87181
|
+
* @static
|
|
87182
|
+
* @param {Object.<string,*>} object Plain object
|
|
87183
|
+
* @returns {RemoveOrganizationStripeIdRequest} RemoveOrganizationStripeIdRequest
|
|
87184
|
+
*/
|
|
87185
|
+
RemoveOrganizationStripeIdRequest.fromObject = function fromObject(object) {
|
|
87186
|
+
if (object instanceof $root.RemoveOrganizationStripeIdRequest)
|
|
87187
|
+
return object;
|
|
87188
|
+
var message = new $root.RemoveOrganizationStripeIdRequest();
|
|
87189
|
+
if (object.spanContext != null)
|
|
87190
|
+
message.spanContext = String(object.spanContext);
|
|
87191
|
+
if (object.orgId != null)
|
|
87192
|
+
message.orgId = String(object.orgId);
|
|
87193
|
+
return message;
|
|
87194
|
+
};
|
|
87195
|
+
|
|
87196
|
+
/**
|
|
87197
|
+
* Creates a plain object from a RemoveOrganizationStripeIdRequest message. Also converts values to other types if specified.
|
|
87198
|
+
* @function toObject
|
|
87199
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87200
|
+
* @static
|
|
87201
|
+
* @param {RemoveOrganizationStripeIdRequest} message RemoveOrganizationStripeIdRequest
|
|
87202
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87203
|
+
* @returns {Object.<string,*>} Plain object
|
|
87204
|
+
*/
|
|
87205
|
+
RemoveOrganizationStripeIdRequest.toObject = function toObject(message, options) {
|
|
87206
|
+
if (!options)
|
|
87207
|
+
options = {};
|
|
87208
|
+
var object = {};
|
|
87209
|
+
if (options.defaults) {
|
|
87210
|
+
object.spanContext = "";
|
|
87211
|
+
object.orgId = "";
|
|
87212
|
+
}
|
|
87213
|
+
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
87214
|
+
object.spanContext = message.spanContext;
|
|
87215
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
87216
|
+
object.orgId = message.orgId;
|
|
87217
|
+
return object;
|
|
87218
|
+
};
|
|
87219
|
+
|
|
87220
|
+
/**
|
|
87221
|
+
* Converts this RemoveOrganizationStripeIdRequest to JSON.
|
|
87222
|
+
* @function toJSON
|
|
87223
|
+
* @memberof RemoveOrganizationStripeIdRequest
|
|
87224
|
+
* @instance
|
|
87225
|
+
* @returns {Object.<string,*>} JSON object
|
|
87226
|
+
*/
|
|
87227
|
+
RemoveOrganizationStripeIdRequest.prototype.toJSON = function toJSON() {
|
|
87228
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87229
|
+
};
|
|
87230
|
+
|
|
87231
|
+
return RemoveOrganizationStripeIdRequest;
|
|
87232
|
+
})();
|
|
87233
|
+
|
|
87234
|
+
$root.RemoveOrganizationStripeIdResponse = (function() {
|
|
87235
|
+
|
|
87236
|
+
/**
|
|
87237
|
+
* Properties of a RemoveOrganizationStripeIdResponse.
|
|
87238
|
+
* @exports IRemoveOrganizationStripeIdResponse
|
|
87239
|
+
* @interface IRemoveOrganizationStripeIdResponse
|
|
87240
|
+
* @property {StatusCode|null} [status] RemoveOrganizationStripeIdResponse status
|
|
87241
|
+
* @property {Array.<IError>|null} [errors] RemoveOrganizationStripeIdResponse errors
|
|
87242
|
+
* @property {IOrganization|null} [organization] RemoveOrganizationStripeIdResponse organization
|
|
87243
|
+
*/
|
|
87244
|
+
|
|
87245
|
+
/**
|
|
87246
|
+
* Constructs a new RemoveOrganizationStripeIdResponse.
|
|
87247
|
+
* @exports RemoveOrganizationStripeIdResponse
|
|
87248
|
+
* @classdesc Represents a RemoveOrganizationStripeIdResponse.
|
|
87249
|
+
* @implements IRemoveOrganizationStripeIdResponse
|
|
87250
|
+
* @constructor
|
|
87251
|
+
* @param {IRemoveOrganizationStripeIdResponse=} [properties] Properties to set
|
|
87252
|
+
*/
|
|
87253
|
+
function RemoveOrganizationStripeIdResponse(properties) {
|
|
87254
|
+
this.errors = [];
|
|
87255
|
+
if (properties)
|
|
87256
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87257
|
+
if (properties[keys[i]] != null)
|
|
87258
|
+
this[keys[i]] = properties[keys[i]];
|
|
87259
|
+
}
|
|
87260
|
+
|
|
87261
|
+
/**
|
|
87262
|
+
* RemoveOrganizationStripeIdResponse status.
|
|
87263
|
+
* @member {StatusCode} status
|
|
87264
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87265
|
+
* @instance
|
|
87266
|
+
*/
|
|
87267
|
+
RemoveOrganizationStripeIdResponse.prototype.status = 0;
|
|
87268
|
+
|
|
87269
|
+
/**
|
|
87270
|
+
* RemoveOrganizationStripeIdResponse errors.
|
|
87271
|
+
* @member {Array.<IError>} errors
|
|
87272
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87273
|
+
* @instance
|
|
87274
|
+
*/
|
|
87275
|
+
RemoveOrganizationStripeIdResponse.prototype.errors = $util.emptyArray;
|
|
87276
|
+
|
|
87277
|
+
/**
|
|
87278
|
+
* RemoveOrganizationStripeIdResponse organization.
|
|
87279
|
+
* @member {IOrganization|null|undefined} organization
|
|
87280
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87281
|
+
* @instance
|
|
87282
|
+
*/
|
|
87283
|
+
RemoveOrganizationStripeIdResponse.prototype.organization = null;
|
|
87284
|
+
|
|
87285
|
+
/**
|
|
87286
|
+
* Creates a new RemoveOrganizationStripeIdResponse instance using the specified properties.
|
|
87287
|
+
* @function create
|
|
87288
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87289
|
+
* @static
|
|
87290
|
+
* @param {IRemoveOrganizationStripeIdResponse=} [properties] Properties to set
|
|
87291
|
+
* @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse instance
|
|
87292
|
+
*/
|
|
87293
|
+
RemoveOrganizationStripeIdResponse.create = function create(properties) {
|
|
87294
|
+
return new RemoveOrganizationStripeIdResponse(properties);
|
|
87295
|
+
};
|
|
87296
|
+
|
|
87297
|
+
/**
|
|
87298
|
+
* Encodes the specified RemoveOrganizationStripeIdResponse message. Does not implicitly {@link RemoveOrganizationStripeIdResponse.verify|verify} messages.
|
|
87299
|
+
* @function encode
|
|
87300
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87301
|
+
* @static
|
|
87302
|
+
* @param {IRemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse message or plain object to encode
|
|
87303
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87304
|
+
* @returns {$protobuf.Writer} Writer
|
|
87305
|
+
*/
|
|
87306
|
+
RemoveOrganizationStripeIdResponse.encode = function encode(message, writer) {
|
|
87307
|
+
if (!writer)
|
|
87308
|
+
writer = $Writer.create();
|
|
87309
|
+
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
87310
|
+
writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
|
|
87311
|
+
if (message.errors != null && message.errors.length)
|
|
87312
|
+
for (var i = 0; i < message.errors.length; ++i)
|
|
87313
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
87314
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
87315
|
+
$root.Organization.encode(message.organization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
87316
|
+
return writer;
|
|
87317
|
+
};
|
|
87318
|
+
|
|
87319
|
+
/**
|
|
87320
|
+
* Encodes the specified RemoveOrganizationStripeIdResponse message, length delimited. Does not implicitly {@link RemoveOrganizationStripeIdResponse.verify|verify} messages.
|
|
87321
|
+
* @function encodeDelimited
|
|
87322
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87323
|
+
* @static
|
|
87324
|
+
* @param {IRemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse message or plain object to encode
|
|
87325
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87326
|
+
* @returns {$protobuf.Writer} Writer
|
|
87327
|
+
*/
|
|
87328
|
+
RemoveOrganizationStripeIdResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87329
|
+
return this.encode(message, writer).ldelim();
|
|
87330
|
+
};
|
|
87331
|
+
|
|
87332
|
+
/**
|
|
87333
|
+
* Decodes a RemoveOrganizationStripeIdResponse message from the specified reader or buffer.
|
|
87334
|
+
* @function decode
|
|
87335
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87336
|
+
* @static
|
|
87337
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87338
|
+
* @param {number} [length] Message length if known beforehand
|
|
87339
|
+
* @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
|
|
87340
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87341
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87342
|
+
*/
|
|
87343
|
+
RemoveOrganizationStripeIdResponse.decode = function decode(reader, length) {
|
|
87344
|
+
if (!(reader instanceof $Reader))
|
|
87345
|
+
reader = $Reader.create(reader);
|
|
87346
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RemoveOrganizationStripeIdResponse();
|
|
87347
|
+
while (reader.pos < end) {
|
|
87348
|
+
var tag = reader.uint32();
|
|
87349
|
+
switch (tag >>> 3) {
|
|
87350
|
+
case 0:
|
|
87351
|
+
message.status = reader.int32();
|
|
87352
|
+
break;
|
|
87353
|
+
case 1:
|
|
87354
|
+
if (!(message.errors && message.errors.length))
|
|
87355
|
+
message.errors = [];
|
|
87356
|
+
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
87357
|
+
break;
|
|
87358
|
+
case 2:
|
|
87359
|
+
message.organization = $root.Organization.decode(reader, reader.uint32());
|
|
87360
|
+
break;
|
|
87361
|
+
default:
|
|
87362
|
+
reader.skipType(tag & 7);
|
|
87363
|
+
break;
|
|
87364
|
+
}
|
|
87365
|
+
}
|
|
87366
|
+
return message;
|
|
87367
|
+
};
|
|
87368
|
+
|
|
87369
|
+
/**
|
|
87370
|
+
* Decodes a RemoveOrganizationStripeIdResponse message from the specified reader or buffer, length delimited.
|
|
87371
|
+
* @function decodeDelimited
|
|
87372
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87373
|
+
* @static
|
|
87374
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87375
|
+
* @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
|
|
87376
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87377
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87378
|
+
*/
|
|
87379
|
+
RemoveOrganizationStripeIdResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
87380
|
+
if (!(reader instanceof $Reader))
|
|
87381
|
+
reader = new $Reader(reader);
|
|
87382
|
+
return this.decode(reader, reader.uint32());
|
|
87383
|
+
};
|
|
87384
|
+
|
|
87385
|
+
/**
|
|
87386
|
+
* Verifies a RemoveOrganizationStripeIdResponse message.
|
|
87387
|
+
* @function verify
|
|
87388
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87389
|
+
* @static
|
|
87390
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87391
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87392
|
+
*/
|
|
87393
|
+
RemoveOrganizationStripeIdResponse.verify = function verify(message) {
|
|
87394
|
+
if (typeof message !== "object" || message === null)
|
|
87395
|
+
return "object expected";
|
|
87396
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
87397
|
+
switch (message.status) {
|
|
87398
|
+
default:
|
|
87399
|
+
return "status: enum value expected";
|
|
87400
|
+
case 0:
|
|
87401
|
+
case 200:
|
|
87402
|
+
case 400:
|
|
87403
|
+
case 401:
|
|
87404
|
+
case 403:
|
|
87405
|
+
case 422:
|
|
87406
|
+
case 404:
|
|
87407
|
+
case 500:
|
|
87408
|
+
case 504:
|
|
87409
|
+
break;
|
|
87410
|
+
}
|
|
87411
|
+
if (message.errors != null && message.hasOwnProperty("errors")) {
|
|
87412
|
+
if (!Array.isArray(message.errors))
|
|
87413
|
+
return "errors: array expected";
|
|
87414
|
+
for (var i = 0; i < message.errors.length; ++i) {
|
|
87415
|
+
var error = $root.Error.verify(message.errors[i]);
|
|
87416
|
+
if (error)
|
|
87417
|
+
return "errors." + error;
|
|
87418
|
+
}
|
|
87419
|
+
}
|
|
87420
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
87421
|
+
var error = $root.Organization.verify(message.organization);
|
|
87422
|
+
if (error)
|
|
87423
|
+
return "organization." + error;
|
|
87424
|
+
}
|
|
87425
|
+
return null;
|
|
87426
|
+
};
|
|
87427
|
+
|
|
87428
|
+
/**
|
|
87429
|
+
* Creates a RemoveOrganizationStripeIdResponse message from a plain object. Also converts values to their respective internal types.
|
|
87430
|
+
* @function fromObject
|
|
87431
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
87432
|
+
* @static
|
|
87433
|
+
* @param {Object.<string,*>} object Plain object
|
|
87434
|
+
* @returns {RemoveOrganizationStripeIdResponse} RemoveOrganizationStripeIdResponse
|
|
87435
|
+
*/
|
|
87436
|
+
RemoveOrganizationStripeIdResponse.fromObject = function fromObject(object) {
|
|
87437
|
+
if (object instanceof $root.RemoveOrganizationStripeIdResponse)
|
|
87438
|
+
return object;
|
|
87439
|
+
var message = new $root.RemoveOrganizationStripeIdResponse();
|
|
87440
|
+
switch (object.status) {
|
|
87441
|
+
case "UNKNOWN_CODE":
|
|
87442
|
+
case 0:
|
|
87443
|
+
message.status = 0;
|
|
87444
|
+
break;
|
|
87445
|
+
case "OK":
|
|
87446
|
+
case 200:
|
|
87447
|
+
message.status = 200;
|
|
87448
|
+
break;
|
|
87449
|
+
case "BAD_REQUEST":
|
|
87450
|
+
case 400:
|
|
87451
|
+
message.status = 400;
|
|
87452
|
+
break;
|
|
87453
|
+
case "UNAUTHORIZED":
|
|
87454
|
+
case 401:
|
|
87455
|
+
message.status = 401;
|
|
87456
|
+
break;
|
|
87457
|
+
case "FORBIDDEN":
|
|
87458
|
+
case 403:
|
|
87459
|
+
message.status = 403;
|
|
87460
|
+
break;
|
|
87461
|
+
case "UNPROCESSABLE_ENTITY":
|
|
87462
|
+
case 422:
|
|
87463
|
+
message.status = 422;
|
|
87464
|
+
break;
|
|
87465
|
+
case "NOT_FOUND":
|
|
87466
|
+
case 404:
|
|
87467
|
+
message.status = 404;
|
|
87468
|
+
break;
|
|
87469
|
+
case "INTERNAL_SERVER_ERROR":
|
|
87470
|
+
case 500:
|
|
87471
|
+
message.status = 500;
|
|
87472
|
+
break;
|
|
87473
|
+
case "GATEWAY_TIMEOUT":
|
|
87474
|
+
case 504:
|
|
87475
|
+
message.status = 504;
|
|
87476
|
+
break;
|
|
87477
|
+
}
|
|
87478
|
+
if (object.errors) {
|
|
87479
|
+
if (!Array.isArray(object.errors))
|
|
87480
|
+
throw TypeError(".RemoveOrganizationStripeIdResponse.errors: array expected");
|
|
86131
87481
|
message.errors = [];
|
|
86132
87482
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
86133
87483
|
if (typeof object.errors[i] !== "object")
|
|
86134
|
-
throw TypeError(".
|
|
87484
|
+
throw TypeError(".RemoveOrganizationStripeIdResponse.errors: object expected");
|
|
86135
87485
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
86136
87486
|
}
|
|
86137
87487
|
}
|
|
86138
|
-
if (object.
|
|
86139
|
-
|
|
87488
|
+
if (object.organization != null) {
|
|
87489
|
+
if (typeof object.organization !== "object")
|
|
87490
|
+
throw TypeError(".RemoveOrganizationStripeIdResponse.organization: object expected");
|
|
87491
|
+
message.organization = $root.Organization.fromObject(object.organization);
|
|
87492
|
+
}
|
|
86140
87493
|
return message;
|
|
86141
87494
|
};
|
|
86142
87495
|
|
|
86143
87496
|
/**
|
|
86144
|
-
* Creates a plain object from a
|
|
87497
|
+
* Creates a plain object from a RemoveOrganizationStripeIdResponse message. Also converts values to other types if specified.
|
|
86145
87498
|
* @function toObject
|
|
86146
|
-
* @memberof
|
|
87499
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
86147
87500
|
* @static
|
|
86148
|
-
* @param {
|
|
87501
|
+
* @param {RemoveOrganizationStripeIdResponse} message RemoveOrganizationStripeIdResponse
|
|
86149
87502
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86150
87503
|
* @returns {Object.<string,*>} Plain object
|
|
86151
87504
|
*/
|
|
86152
|
-
|
|
87505
|
+
RemoveOrganizationStripeIdResponse.toObject = function toObject(message, options) {
|
|
86153
87506
|
if (!options)
|
|
86154
87507
|
options = {};
|
|
86155
87508
|
var object = {};
|
|
@@ -86157,7 +87510,7 @@ $root.DeleteOrganizationResponse = (function() {
|
|
|
86157
87510
|
object.errors = [];
|
|
86158
87511
|
if (options.defaults) {
|
|
86159
87512
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
86160
|
-
object.
|
|
87513
|
+
object.organization = null;
|
|
86161
87514
|
}
|
|
86162
87515
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
86163
87516
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
@@ -86166,44 +87519,48 @@ $root.DeleteOrganizationResponse = (function() {
|
|
|
86166
87519
|
for (var j = 0; j < message.errors.length; ++j)
|
|
86167
87520
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
86168
87521
|
}
|
|
86169
|
-
if (message.
|
|
86170
|
-
object.
|
|
87522
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
87523
|
+
object.organization = $root.Organization.toObject(message.organization, options);
|
|
86171
87524
|
return object;
|
|
86172
87525
|
};
|
|
86173
87526
|
|
|
86174
87527
|
/**
|
|
86175
|
-
* Converts this
|
|
87528
|
+
* Converts this RemoveOrganizationStripeIdResponse to JSON.
|
|
86176
87529
|
* @function toJSON
|
|
86177
|
-
* @memberof
|
|
87530
|
+
* @memberof RemoveOrganizationStripeIdResponse
|
|
86178
87531
|
* @instance
|
|
86179
87532
|
* @returns {Object.<string,*>} JSON object
|
|
86180
87533
|
*/
|
|
86181
|
-
|
|
87534
|
+
RemoveOrganizationStripeIdResponse.prototype.toJSON = function toJSON() {
|
|
86182
87535
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86183
87536
|
};
|
|
86184
87537
|
|
|
86185
|
-
return
|
|
87538
|
+
return RemoveOrganizationStripeIdResponse;
|
|
86186
87539
|
})();
|
|
86187
87540
|
|
|
86188
|
-
$root.
|
|
87541
|
+
$root.ConnectHiveRequest = (function() {
|
|
86189
87542
|
|
|
86190
87543
|
/**
|
|
86191
|
-
* Properties of
|
|
86192
|
-
* @exports
|
|
86193
|
-
* @interface
|
|
86194
|
-
* @property {string|null} [spanContext]
|
|
86195
|
-
* @property {string|null} [
|
|
87544
|
+
* Properties of a ConnectHiveRequest.
|
|
87545
|
+
* @exports IConnectHiveRequest
|
|
87546
|
+
* @interface IConnectHiveRequest
|
|
87547
|
+
* @property {string|null} [spanContext] ConnectHiveRequest spanContext
|
|
87548
|
+
* @property {string|null} [orgId] ConnectHiveRequest orgId
|
|
87549
|
+
* @property {string|null} [code] ConnectHiveRequest code
|
|
87550
|
+
* @property {string|null} [codeVerifier] ConnectHiveRequest codeVerifier
|
|
87551
|
+
* @property {string|null} [clientId] ConnectHiveRequest clientId
|
|
87552
|
+
* @property {string|null} [clientSecret] ConnectHiveRequest clientSecret
|
|
86196
87553
|
*/
|
|
86197
87554
|
|
|
86198
87555
|
/**
|
|
86199
|
-
* Constructs a new
|
|
86200
|
-
* @exports
|
|
86201
|
-
* @classdesc Represents
|
|
86202
|
-
* @implements
|
|
87556
|
+
* Constructs a new ConnectHiveRequest.
|
|
87557
|
+
* @exports ConnectHiveRequest
|
|
87558
|
+
* @classdesc Represents a ConnectHiveRequest.
|
|
87559
|
+
* @implements IConnectHiveRequest
|
|
86203
87560
|
* @constructor
|
|
86204
|
-
* @param {
|
|
87561
|
+
* @param {IConnectHiveRequest=} [properties] Properties to set
|
|
86205
87562
|
*/
|
|
86206
|
-
function
|
|
87563
|
+
function ConnectHiveRequest(properties) {
|
|
86207
87564
|
if (properties)
|
|
86208
87565
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86209
87566
|
if (properties[keys[i]] != null)
|
|
@@ -86211,88 +87568,140 @@ $root.UpdateOrgEmailWebhookRequest = (function() {
|
|
|
86211
87568
|
}
|
|
86212
87569
|
|
|
86213
87570
|
/**
|
|
86214
|
-
*
|
|
87571
|
+
* ConnectHiveRequest spanContext.
|
|
86215
87572
|
* @member {string} spanContext
|
|
86216
|
-
* @memberof
|
|
87573
|
+
* @memberof ConnectHiveRequest
|
|
86217
87574
|
* @instance
|
|
86218
87575
|
*/
|
|
86219
|
-
|
|
87576
|
+
ConnectHiveRequest.prototype.spanContext = "";
|
|
86220
87577
|
|
|
86221
87578
|
/**
|
|
86222
|
-
*
|
|
86223
|
-
* @member {string}
|
|
86224
|
-
* @memberof
|
|
87579
|
+
* ConnectHiveRequest orgId.
|
|
87580
|
+
* @member {string} orgId
|
|
87581
|
+
* @memberof ConnectHiveRequest
|
|
86225
87582
|
* @instance
|
|
86226
87583
|
*/
|
|
86227
|
-
|
|
87584
|
+
ConnectHiveRequest.prototype.orgId = "";
|
|
86228
87585
|
|
|
86229
87586
|
/**
|
|
86230
|
-
*
|
|
87587
|
+
* ConnectHiveRequest code.
|
|
87588
|
+
* @member {string} code
|
|
87589
|
+
* @memberof ConnectHiveRequest
|
|
87590
|
+
* @instance
|
|
87591
|
+
*/
|
|
87592
|
+
ConnectHiveRequest.prototype.code = "";
|
|
87593
|
+
|
|
87594
|
+
/**
|
|
87595
|
+
* ConnectHiveRequest codeVerifier.
|
|
87596
|
+
* @member {string} codeVerifier
|
|
87597
|
+
* @memberof ConnectHiveRequest
|
|
87598
|
+
* @instance
|
|
87599
|
+
*/
|
|
87600
|
+
ConnectHiveRequest.prototype.codeVerifier = "";
|
|
87601
|
+
|
|
87602
|
+
/**
|
|
87603
|
+
* ConnectHiveRequest clientId.
|
|
87604
|
+
* @member {string} clientId
|
|
87605
|
+
* @memberof ConnectHiveRequest
|
|
87606
|
+
* @instance
|
|
87607
|
+
*/
|
|
87608
|
+
ConnectHiveRequest.prototype.clientId = "";
|
|
87609
|
+
|
|
87610
|
+
/**
|
|
87611
|
+
* ConnectHiveRequest clientSecret.
|
|
87612
|
+
* @member {string} clientSecret
|
|
87613
|
+
* @memberof ConnectHiveRequest
|
|
87614
|
+
* @instance
|
|
87615
|
+
*/
|
|
87616
|
+
ConnectHiveRequest.prototype.clientSecret = "";
|
|
87617
|
+
|
|
87618
|
+
/**
|
|
87619
|
+
* Creates a new ConnectHiveRequest instance using the specified properties.
|
|
86231
87620
|
* @function create
|
|
86232
|
-
* @memberof
|
|
87621
|
+
* @memberof ConnectHiveRequest
|
|
86233
87622
|
* @static
|
|
86234
|
-
* @param {
|
|
86235
|
-
* @returns {
|
|
87623
|
+
* @param {IConnectHiveRequest=} [properties] Properties to set
|
|
87624
|
+
* @returns {ConnectHiveRequest} ConnectHiveRequest instance
|
|
86236
87625
|
*/
|
|
86237
|
-
|
|
86238
|
-
return new
|
|
87626
|
+
ConnectHiveRequest.create = function create(properties) {
|
|
87627
|
+
return new ConnectHiveRequest(properties);
|
|
86239
87628
|
};
|
|
86240
87629
|
|
|
86241
87630
|
/**
|
|
86242
|
-
* Encodes the specified
|
|
87631
|
+
* Encodes the specified ConnectHiveRequest message. Does not implicitly {@link ConnectHiveRequest.verify|verify} messages.
|
|
86243
87632
|
* @function encode
|
|
86244
|
-
* @memberof
|
|
87633
|
+
* @memberof ConnectHiveRequest
|
|
86245
87634
|
* @static
|
|
86246
|
-
* @param {
|
|
87635
|
+
* @param {IConnectHiveRequest} message ConnectHiveRequest message or plain object to encode
|
|
86247
87636
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86248
87637
|
* @returns {$protobuf.Writer} Writer
|
|
86249
87638
|
*/
|
|
86250
|
-
|
|
87639
|
+
ConnectHiveRequest.encode = function encode(message, writer) {
|
|
86251
87640
|
if (!writer)
|
|
86252
87641
|
writer = $Writer.create();
|
|
86253
87642
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
86254
|
-
writer.uint32(/* id
|
|
86255
|
-
if (message.
|
|
86256
|
-
writer.uint32(/* id
|
|
87643
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
87644
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
87645
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
|
|
87646
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
87647
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.code);
|
|
87648
|
+
if (message.codeVerifier != null && Object.hasOwnProperty.call(message, "codeVerifier"))
|
|
87649
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.codeVerifier);
|
|
87650
|
+
if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId"))
|
|
87651
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.clientId);
|
|
87652
|
+
if (message.clientSecret != null && Object.hasOwnProperty.call(message, "clientSecret"))
|
|
87653
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientSecret);
|
|
86257
87654
|
return writer;
|
|
86258
87655
|
};
|
|
86259
87656
|
|
|
86260
87657
|
/**
|
|
86261
|
-
* Encodes the specified
|
|
87658
|
+
* Encodes the specified ConnectHiveRequest message, length delimited. Does not implicitly {@link ConnectHiveRequest.verify|verify} messages.
|
|
86262
87659
|
* @function encodeDelimited
|
|
86263
|
-
* @memberof
|
|
87660
|
+
* @memberof ConnectHiveRequest
|
|
86264
87661
|
* @static
|
|
86265
|
-
* @param {
|
|
87662
|
+
* @param {IConnectHiveRequest} message ConnectHiveRequest message or plain object to encode
|
|
86266
87663
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86267
87664
|
* @returns {$protobuf.Writer} Writer
|
|
86268
87665
|
*/
|
|
86269
|
-
|
|
87666
|
+
ConnectHiveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86270
87667
|
return this.encode(message, writer).ldelim();
|
|
86271
87668
|
};
|
|
86272
87669
|
|
|
86273
87670
|
/**
|
|
86274
|
-
* Decodes
|
|
87671
|
+
* Decodes a ConnectHiveRequest message from the specified reader or buffer.
|
|
86275
87672
|
* @function decode
|
|
86276
|
-
* @memberof
|
|
87673
|
+
* @memberof ConnectHiveRequest
|
|
86277
87674
|
* @static
|
|
86278
87675
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86279
87676
|
* @param {number} [length] Message length if known beforehand
|
|
86280
|
-
* @returns {
|
|
87677
|
+
* @returns {ConnectHiveRequest} ConnectHiveRequest
|
|
86281
87678
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86282
87679
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86283
87680
|
*/
|
|
86284
|
-
|
|
87681
|
+
ConnectHiveRequest.decode = function decode(reader, length) {
|
|
86285
87682
|
if (!(reader instanceof $Reader))
|
|
86286
87683
|
reader = $Reader.create(reader);
|
|
86287
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
87684
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectHiveRequest();
|
|
86288
87685
|
while (reader.pos < end) {
|
|
86289
87686
|
var tag = reader.uint32();
|
|
86290
87687
|
switch (tag >>> 3) {
|
|
86291
|
-
case
|
|
87688
|
+
case 1:
|
|
86292
87689
|
message.spanContext = reader.string();
|
|
86293
87690
|
break;
|
|
86294
|
-
case
|
|
86295
|
-
message.
|
|
87691
|
+
case 2:
|
|
87692
|
+
message.orgId = reader.string();
|
|
87693
|
+
break;
|
|
87694
|
+
case 3:
|
|
87695
|
+
message.code = reader.string();
|
|
87696
|
+
break;
|
|
87697
|
+
case 4:
|
|
87698
|
+
message.codeVerifier = reader.string();
|
|
87699
|
+
break;
|
|
87700
|
+
case 5:
|
|
87701
|
+
message.clientId = reader.string();
|
|
87702
|
+
break;
|
|
87703
|
+
case 6:
|
|
87704
|
+
message.clientSecret = reader.string();
|
|
86296
87705
|
break;
|
|
86297
87706
|
default:
|
|
86298
87707
|
reader.skipType(tag & 7);
|
|
@@ -86303,117 +87712,150 @@ $root.UpdateOrgEmailWebhookRequest = (function() {
|
|
|
86303
87712
|
};
|
|
86304
87713
|
|
|
86305
87714
|
/**
|
|
86306
|
-
* Decodes
|
|
87715
|
+
* Decodes a ConnectHiveRequest message from the specified reader or buffer, length delimited.
|
|
86307
87716
|
* @function decodeDelimited
|
|
86308
|
-
* @memberof
|
|
87717
|
+
* @memberof ConnectHiveRequest
|
|
86309
87718
|
* @static
|
|
86310
87719
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86311
|
-
* @returns {
|
|
87720
|
+
* @returns {ConnectHiveRequest} ConnectHiveRequest
|
|
86312
87721
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86313
87722
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86314
87723
|
*/
|
|
86315
|
-
|
|
87724
|
+
ConnectHiveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
86316
87725
|
if (!(reader instanceof $Reader))
|
|
86317
87726
|
reader = new $Reader(reader);
|
|
86318
87727
|
return this.decode(reader, reader.uint32());
|
|
86319
87728
|
};
|
|
86320
87729
|
|
|
86321
87730
|
/**
|
|
86322
|
-
* Verifies
|
|
87731
|
+
* Verifies a ConnectHiveRequest message.
|
|
86323
87732
|
* @function verify
|
|
86324
|
-
* @memberof
|
|
87733
|
+
* @memberof ConnectHiveRequest
|
|
86325
87734
|
* @static
|
|
86326
87735
|
* @param {Object.<string,*>} message Plain object to verify
|
|
86327
87736
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86328
87737
|
*/
|
|
86329
|
-
|
|
87738
|
+
ConnectHiveRequest.verify = function verify(message) {
|
|
86330
87739
|
if (typeof message !== "object" || message === null)
|
|
86331
87740
|
return "object expected";
|
|
86332
87741
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
86333
87742
|
if (!$util.isString(message.spanContext))
|
|
86334
87743
|
return "spanContext: string expected";
|
|
86335
|
-
if (message.
|
|
86336
|
-
if (!$util.isString(message.
|
|
86337
|
-
return "
|
|
87744
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
87745
|
+
if (!$util.isString(message.orgId))
|
|
87746
|
+
return "orgId: string expected";
|
|
87747
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
87748
|
+
if (!$util.isString(message.code))
|
|
87749
|
+
return "code: string expected";
|
|
87750
|
+
if (message.codeVerifier != null && message.hasOwnProperty("codeVerifier"))
|
|
87751
|
+
if (!$util.isString(message.codeVerifier))
|
|
87752
|
+
return "codeVerifier: string expected";
|
|
87753
|
+
if (message.clientId != null && message.hasOwnProperty("clientId"))
|
|
87754
|
+
if (!$util.isString(message.clientId))
|
|
87755
|
+
return "clientId: string expected";
|
|
87756
|
+
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
87757
|
+
if (!$util.isString(message.clientSecret))
|
|
87758
|
+
return "clientSecret: string expected";
|
|
86338
87759
|
return null;
|
|
86339
87760
|
};
|
|
86340
87761
|
|
|
86341
87762
|
/**
|
|
86342
|
-
* Creates
|
|
87763
|
+
* Creates a ConnectHiveRequest message from a plain object. Also converts values to their respective internal types.
|
|
86343
87764
|
* @function fromObject
|
|
86344
|
-
* @memberof
|
|
87765
|
+
* @memberof ConnectHiveRequest
|
|
86345
87766
|
* @static
|
|
86346
87767
|
* @param {Object.<string,*>} object Plain object
|
|
86347
|
-
* @returns {
|
|
87768
|
+
* @returns {ConnectHiveRequest} ConnectHiveRequest
|
|
86348
87769
|
*/
|
|
86349
|
-
|
|
86350
|
-
if (object instanceof $root.
|
|
87770
|
+
ConnectHiveRequest.fromObject = function fromObject(object) {
|
|
87771
|
+
if (object instanceof $root.ConnectHiveRequest)
|
|
86351
87772
|
return object;
|
|
86352
|
-
var message = new $root.
|
|
87773
|
+
var message = new $root.ConnectHiveRequest();
|
|
86353
87774
|
if (object.spanContext != null)
|
|
86354
87775
|
message.spanContext = String(object.spanContext);
|
|
86355
|
-
if (object.
|
|
86356
|
-
message.
|
|
87776
|
+
if (object.orgId != null)
|
|
87777
|
+
message.orgId = String(object.orgId);
|
|
87778
|
+
if (object.code != null)
|
|
87779
|
+
message.code = String(object.code);
|
|
87780
|
+
if (object.codeVerifier != null)
|
|
87781
|
+
message.codeVerifier = String(object.codeVerifier);
|
|
87782
|
+
if (object.clientId != null)
|
|
87783
|
+
message.clientId = String(object.clientId);
|
|
87784
|
+
if (object.clientSecret != null)
|
|
87785
|
+
message.clientSecret = String(object.clientSecret);
|
|
86357
87786
|
return message;
|
|
86358
87787
|
};
|
|
86359
87788
|
|
|
86360
87789
|
/**
|
|
86361
|
-
* Creates a plain object from
|
|
87790
|
+
* Creates a plain object from a ConnectHiveRequest message. Also converts values to other types if specified.
|
|
86362
87791
|
* @function toObject
|
|
86363
|
-
* @memberof
|
|
87792
|
+
* @memberof ConnectHiveRequest
|
|
86364
87793
|
* @static
|
|
86365
|
-
* @param {
|
|
87794
|
+
* @param {ConnectHiveRequest} message ConnectHiveRequest
|
|
86366
87795
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86367
87796
|
* @returns {Object.<string,*>} Plain object
|
|
86368
87797
|
*/
|
|
86369
|
-
|
|
87798
|
+
ConnectHiveRequest.toObject = function toObject(message, options) {
|
|
86370
87799
|
if (!options)
|
|
86371
87800
|
options = {};
|
|
86372
87801
|
var object = {};
|
|
86373
87802
|
if (options.defaults) {
|
|
86374
87803
|
object.spanContext = "";
|
|
86375
|
-
object.
|
|
87804
|
+
object.orgId = "";
|
|
87805
|
+
object.code = "";
|
|
87806
|
+
object.codeVerifier = "";
|
|
87807
|
+
object.clientId = "";
|
|
87808
|
+
object.clientSecret = "";
|
|
86376
87809
|
}
|
|
86377
87810
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
86378
87811
|
object.spanContext = message.spanContext;
|
|
86379
|
-
if (message.
|
|
86380
|
-
object.
|
|
87812
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
87813
|
+
object.orgId = message.orgId;
|
|
87814
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
87815
|
+
object.code = message.code;
|
|
87816
|
+
if (message.codeVerifier != null && message.hasOwnProperty("codeVerifier"))
|
|
87817
|
+
object.codeVerifier = message.codeVerifier;
|
|
87818
|
+
if (message.clientId != null && message.hasOwnProperty("clientId"))
|
|
87819
|
+
object.clientId = message.clientId;
|
|
87820
|
+
if (message.clientSecret != null && message.hasOwnProperty("clientSecret"))
|
|
87821
|
+
object.clientSecret = message.clientSecret;
|
|
86381
87822
|
return object;
|
|
86382
87823
|
};
|
|
86383
87824
|
|
|
86384
87825
|
/**
|
|
86385
|
-
* Converts this
|
|
87826
|
+
* Converts this ConnectHiveRequest to JSON.
|
|
86386
87827
|
* @function toJSON
|
|
86387
|
-
* @memberof
|
|
87828
|
+
* @memberof ConnectHiveRequest
|
|
86388
87829
|
* @instance
|
|
86389
87830
|
* @returns {Object.<string,*>} JSON object
|
|
86390
87831
|
*/
|
|
86391
|
-
|
|
87832
|
+
ConnectHiveRequest.prototype.toJSON = function toJSON() {
|
|
86392
87833
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86393
87834
|
};
|
|
86394
87835
|
|
|
86395
|
-
return
|
|
87836
|
+
return ConnectHiveRequest;
|
|
86396
87837
|
})();
|
|
86397
87838
|
|
|
86398
|
-
$root.
|
|
87839
|
+
$root.ConnectHiveResponse = (function() {
|
|
86399
87840
|
|
|
86400
87841
|
/**
|
|
86401
|
-
* Properties of
|
|
86402
|
-
* @exports
|
|
86403
|
-
* @interface
|
|
86404
|
-
* @property {StatusCode|null} [status]
|
|
86405
|
-
* @property {Array.<IError>|null} [errors]
|
|
87842
|
+
* Properties of a ConnectHiveResponse.
|
|
87843
|
+
* @exports IConnectHiveResponse
|
|
87844
|
+
* @interface IConnectHiveResponse
|
|
87845
|
+
* @property {StatusCode|null} [status] ConnectHiveResponse status
|
|
87846
|
+
* @property {Array.<IError>|null} [errors] ConnectHiveResponse errors
|
|
87847
|
+
* @property {IOrganization|null} [organization] ConnectHiveResponse organization
|
|
86406
87848
|
*/
|
|
86407
87849
|
|
|
86408
87850
|
/**
|
|
86409
|
-
* Constructs a new
|
|
86410
|
-
* @exports
|
|
86411
|
-
* @classdesc Represents
|
|
86412
|
-
* @implements
|
|
87851
|
+
* Constructs a new ConnectHiveResponse.
|
|
87852
|
+
* @exports ConnectHiveResponse
|
|
87853
|
+
* @classdesc Represents a ConnectHiveResponse.
|
|
87854
|
+
* @implements IConnectHiveResponse
|
|
86413
87855
|
* @constructor
|
|
86414
|
-
* @param {
|
|
87856
|
+
* @param {IConnectHiveResponse=} [properties] Properties to set
|
|
86415
87857
|
*/
|
|
86416
|
-
function
|
|
87858
|
+
function ConnectHiveResponse(properties) {
|
|
86417
87859
|
this.errors = [];
|
|
86418
87860
|
if (properties)
|
|
86419
87861
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -86422,92 +87864,105 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
|
|
|
86422
87864
|
}
|
|
86423
87865
|
|
|
86424
87866
|
/**
|
|
86425
|
-
*
|
|
87867
|
+
* ConnectHiveResponse status.
|
|
86426
87868
|
* @member {StatusCode} status
|
|
86427
|
-
* @memberof
|
|
87869
|
+
* @memberof ConnectHiveResponse
|
|
86428
87870
|
* @instance
|
|
86429
87871
|
*/
|
|
86430
|
-
|
|
87872
|
+
ConnectHiveResponse.prototype.status = 0;
|
|
86431
87873
|
|
|
86432
87874
|
/**
|
|
86433
|
-
*
|
|
87875
|
+
* ConnectHiveResponse errors.
|
|
86434
87876
|
* @member {Array.<IError>} errors
|
|
86435
|
-
* @memberof
|
|
87877
|
+
* @memberof ConnectHiveResponse
|
|
86436
87878
|
* @instance
|
|
86437
87879
|
*/
|
|
86438
|
-
|
|
87880
|
+
ConnectHiveResponse.prototype.errors = $util.emptyArray;
|
|
86439
87881
|
|
|
86440
87882
|
/**
|
|
86441
|
-
*
|
|
87883
|
+
* ConnectHiveResponse organization.
|
|
87884
|
+
* @member {IOrganization|null|undefined} organization
|
|
87885
|
+
* @memberof ConnectHiveResponse
|
|
87886
|
+
* @instance
|
|
87887
|
+
*/
|
|
87888
|
+
ConnectHiveResponse.prototype.organization = null;
|
|
87889
|
+
|
|
87890
|
+
/**
|
|
87891
|
+
* Creates a new ConnectHiveResponse instance using the specified properties.
|
|
86442
87892
|
* @function create
|
|
86443
|
-
* @memberof
|
|
87893
|
+
* @memberof ConnectHiveResponse
|
|
86444
87894
|
* @static
|
|
86445
|
-
* @param {
|
|
86446
|
-
* @returns {
|
|
87895
|
+
* @param {IConnectHiveResponse=} [properties] Properties to set
|
|
87896
|
+
* @returns {ConnectHiveResponse} ConnectHiveResponse instance
|
|
86447
87897
|
*/
|
|
86448
|
-
|
|
86449
|
-
return new
|
|
87898
|
+
ConnectHiveResponse.create = function create(properties) {
|
|
87899
|
+
return new ConnectHiveResponse(properties);
|
|
86450
87900
|
};
|
|
86451
87901
|
|
|
86452
87902
|
/**
|
|
86453
|
-
* Encodes the specified
|
|
87903
|
+
* Encodes the specified ConnectHiveResponse message. Does not implicitly {@link ConnectHiveResponse.verify|verify} messages.
|
|
86454
87904
|
* @function encode
|
|
86455
|
-
* @memberof
|
|
87905
|
+
* @memberof ConnectHiveResponse
|
|
86456
87906
|
* @static
|
|
86457
|
-
* @param {
|
|
87907
|
+
* @param {IConnectHiveResponse} message ConnectHiveResponse message or plain object to encode
|
|
86458
87908
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86459
87909
|
* @returns {$protobuf.Writer} Writer
|
|
86460
87910
|
*/
|
|
86461
|
-
|
|
87911
|
+
ConnectHiveResponse.encode = function encode(message, writer) {
|
|
86462
87912
|
if (!writer)
|
|
86463
87913
|
writer = $Writer.create();
|
|
86464
87914
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
86465
|
-
writer.uint32(/* id
|
|
87915
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
86466
87916
|
if (message.errors != null && message.errors.length)
|
|
86467
87917
|
for (var i = 0; i < message.errors.length; ++i)
|
|
86468
|
-
$root.Error.encode(message.errors[i], writer.uint32(/* id
|
|
87918
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
87919
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
87920
|
+
$root.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
86469
87921
|
return writer;
|
|
86470
87922
|
};
|
|
86471
87923
|
|
|
86472
87924
|
/**
|
|
86473
|
-
* Encodes the specified
|
|
87925
|
+
* Encodes the specified ConnectHiveResponse message, length delimited. Does not implicitly {@link ConnectHiveResponse.verify|verify} messages.
|
|
86474
87926
|
* @function encodeDelimited
|
|
86475
|
-
* @memberof
|
|
87927
|
+
* @memberof ConnectHiveResponse
|
|
86476
87928
|
* @static
|
|
86477
|
-
* @param {
|
|
87929
|
+
* @param {IConnectHiveResponse} message ConnectHiveResponse message or plain object to encode
|
|
86478
87930
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86479
87931
|
* @returns {$protobuf.Writer} Writer
|
|
86480
87932
|
*/
|
|
86481
|
-
|
|
87933
|
+
ConnectHiveResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86482
87934
|
return this.encode(message, writer).ldelim();
|
|
86483
87935
|
};
|
|
86484
87936
|
|
|
86485
87937
|
/**
|
|
86486
|
-
* Decodes
|
|
87938
|
+
* Decodes a ConnectHiveResponse message from the specified reader or buffer.
|
|
86487
87939
|
* @function decode
|
|
86488
|
-
* @memberof
|
|
87940
|
+
* @memberof ConnectHiveResponse
|
|
86489
87941
|
* @static
|
|
86490
87942
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86491
87943
|
* @param {number} [length] Message length if known beforehand
|
|
86492
|
-
* @returns {
|
|
87944
|
+
* @returns {ConnectHiveResponse} ConnectHiveResponse
|
|
86493
87945
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86494
87946
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86495
87947
|
*/
|
|
86496
|
-
|
|
87948
|
+
ConnectHiveResponse.decode = function decode(reader, length) {
|
|
86497
87949
|
if (!(reader instanceof $Reader))
|
|
86498
87950
|
reader = $Reader.create(reader);
|
|
86499
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
87951
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ConnectHiveResponse();
|
|
86500
87952
|
while (reader.pos < end) {
|
|
86501
87953
|
var tag = reader.uint32();
|
|
86502
87954
|
switch (tag >>> 3) {
|
|
86503
|
-
case
|
|
87955
|
+
case 1:
|
|
86504
87956
|
message.status = reader.int32();
|
|
86505
87957
|
break;
|
|
86506
|
-
case
|
|
87958
|
+
case 2:
|
|
86507
87959
|
if (!(message.errors && message.errors.length))
|
|
86508
87960
|
message.errors = [];
|
|
86509
87961
|
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
86510
87962
|
break;
|
|
87963
|
+
case 3:
|
|
87964
|
+
message.organization = $root.Organization.decode(reader, reader.uint32());
|
|
87965
|
+
break;
|
|
86511
87966
|
default:
|
|
86512
87967
|
reader.skipType(tag & 7);
|
|
86513
87968
|
break;
|
|
@@ -86517,30 +87972,30 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
|
|
|
86517
87972
|
};
|
|
86518
87973
|
|
|
86519
87974
|
/**
|
|
86520
|
-
* Decodes
|
|
87975
|
+
* Decodes a ConnectHiveResponse message from the specified reader or buffer, length delimited.
|
|
86521
87976
|
* @function decodeDelimited
|
|
86522
|
-
* @memberof
|
|
87977
|
+
* @memberof ConnectHiveResponse
|
|
86523
87978
|
* @static
|
|
86524
87979
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86525
|
-
* @returns {
|
|
87980
|
+
* @returns {ConnectHiveResponse} ConnectHiveResponse
|
|
86526
87981
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86527
87982
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86528
87983
|
*/
|
|
86529
|
-
|
|
87984
|
+
ConnectHiveResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
86530
87985
|
if (!(reader instanceof $Reader))
|
|
86531
87986
|
reader = new $Reader(reader);
|
|
86532
87987
|
return this.decode(reader, reader.uint32());
|
|
86533
87988
|
};
|
|
86534
87989
|
|
|
86535
87990
|
/**
|
|
86536
|
-
* Verifies
|
|
87991
|
+
* Verifies a ConnectHiveResponse message.
|
|
86537
87992
|
* @function verify
|
|
86538
|
-
* @memberof
|
|
87993
|
+
* @memberof ConnectHiveResponse
|
|
86539
87994
|
* @static
|
|
86540
87995
|
* @param {Object.<string,*>} message Plain object to verify
|
|
86541
87996
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86542
87997
|
*/
|
|
86543
|
-
|
|
87998
|
+
ConnectHiveResponse.verify = function verify(message) {
|
|
86544
87999
|
if (typeof message !== "object" || message === null)
|
|
86545
88000
|
return "object expected";
|
|
86546
88001
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -86567,21 +88022,26 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
|
|
|
86567
88022
|
return "errors." + error;
|
|
86568
88023
|
}
|
|
86569
88024
|
}
|
|
88025
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
88026
|
+
var error = $root.Organization.verify(message.organization);
|
|
88027
|
+
if (error)
|
|
88028
|
+
return "organization." + error;
|
|
88029
|
+
}
|
|
86570
88030
|
return null;
|
|
86571
88031
|
};
|
|
86572
88032
|
|
|
86573
88033
|
/**
|
|
86574
|
-
* Creates
|
|
88034
|
+
* Creates a ConnectHiveResponse message from a plain object. Also converts values to their respective internal types.
|
|
86575
88035
|
* @function fromObject
|
|
86576
|
-
* @memberof
|
|
88036
|
+
* @memberof ConnectHiveResponse
|
|
86577
88037
|
* @static
|
|
86578
88038
|
* @param {Object.<string,*>} object Plain object
|
|
86579
|
-
* @returns {
|
|
88039
|
+
* @returns {ConnectHiveResponse} ConnectHiveResponse
|
|
86580
88040
|
*/
|
|
86581
|
-
|
|
86582
|
-
if (object instanceof $root.
|
|
88041
|
+
ConnectHiveResponse.fromObject = function fromObject(object) {
|
|
88042
|
+
if (object instanceof $root.ConnectHiveResponse)
|
|
86583
88043
|
return object;
|
|
86584
|
-
var message = new $root.
|
|
88044
|
+
var message = new $root.ConnectHiveResponse();
|
|
86585
88045
|
switch (object.status) {
|
|
86586
88046
|
case "UNKNOWN_CODE":
|
|
86587
88047
|
case 0:
|
|
@@ -86622,34 +88082,41 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
|
|
|
86622
88082
|
}
|
|
86623
88083
|
if (object.errors) {
|
|
86624
88084
|
if (!Array.isArray(object.errors))
|
|
86625
|
-
throw TypeError(".
|
|
88085
|
+
throw TypeError(".ConnectHiveResponse.errors: array expected");
|
|
86626
88086
|
message.errors = [];
|
|
86627
88087
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
86628
88088
|
if (typeof object.errors[i] !== "object")
|
|
86629
|
-
throw TypeError(".
|
|
88089
|
+
throw TypeError(".ConnectHiveResponse.errors: object expected");
|
|
86630
88090
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
86631
88091
|
}
|
|
86632
88092
|
}
|
|
88093
|
+
if (object.organization != null) {
|
|
88094
|
+
if (typeof object.organization !== "object")
|
|
88095
|
+
throw TypeError(".ConnectHiveResponse.organization: object expected");
|
|
88096
|
+
message.organization = $root.Organization.fromObject(object.organization);
|
|
88097
|
+
}
|
|
86633
88098
|
return message;
|
|
86634
88099
|
};
|
|
86635
88100
|
|
|
86636
88101
|
/**
|
|
86637
|
-
* Creates a plain object from
|
|
88102
|
+
* Creates a plain object from a ConnectHiveResponse message. Also converts values to other types if specified.
|
|
86638
88103
|
* @function toObject
|
|
86639
|
-
* @memberof
|
|
88104
|
+
* @memberof ConnectHiveResponse
|
|
86640
88105
|
* @static
|
|
86641
|
-
* @param {
|
|
88106
|
+
* @param {ConnectHiveResponse} message ConnectHiveResponse
|
|
86642
88107
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86643
88108
|
* @returns {Object.<string,*>} Plain object
|
|
86644
88109
|
*/
|
|
86645
|
-
|
|
88110
|
+
ConnectHiveResponse.toObject = function toObject(message, options) {
|
|
86646
88111
|
if (!options)
|
|
86647
88112
|
options = {};
|
|
86648
88113
|
var object = {};
|
|
86649
88114
|
if (options.arrays || options.defaults)
|
|
86650
88115
|
object.errors = [];
|
|
86651
|
-
if (options.defaults)
|
|
88116
|
+
if (options.defaults) {
|
|
86652
88117
|
object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
|
|
88118
|
+
object.organization = null;
|
|
88119
|
+
}
|
|
86653
88120
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
86654
88121
|
object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
|
|
86655
88122
|
if (message.errors && message.errors.length) {
|
|
@@ -86657,42 +88124,44 @@ $root.UpdateOrgEmailWebhookResponse = (function() {
|
|
|
86657
88124
|
for (var j = 0; j < message.errors.length; ++j)
|
|
86658
88125
|
object.errors[j] = $root.Error.toObject(message.errors[j], options);
|
|
86659
88126
|
}
|
|
88127
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
88128
|
+
object.organization = $root.Organization.toObject(message.organization, options);
|
|
86660
88129
|
return object;
|
|
86661
88130
|
};
|
|
86662
88131
|
|
|
86663
88132
|
/**
|
|
86664
|
-
* Converts this
|
|
88133
|
+
* Converts this ConnectHiveResponse to JSON.
|
|
86665
88134
|
* @function toJSON
|
|
86666
|
-
* @memberof
|
|
88135
|
+
* @memberof ConnectHiveResponse
|
|
86667
88136
|
* @instance
|
|
86668
88137
|
* @returns {Object.<string,*>} JSON object
|
|
86669
88138
|
*/
|
|
86670
|
-
|
|
88139
|
+
ConnectHiveResponse.prototype.toJSON = function toJSON() {
|
|
86671
88140
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86672
88141
|
};
|
|
86673
88142
|
|
|
86674
|
-
return
|
|
88143
|
+
return ConnectHiveResponse;
|
|
86675
88144
|
})();
|
|
86676
88145
|
|
|
86677
|
-
$root.
|
|
88146
|
+
$root.RefreshHiveTokenRequest = (function() {
|
|
86678
88147
|
|
|
86679
88148
|
/**
|
|
86680
|
-
* Properties of a
|
|
86681
|
-
* @exports
|
|
86682
|
-
* @interface
|
|
86683
|
-
* @property {string|null} [spanContext]
|
|
86684
|
-
* @property {string|null} [orgId]
|
|
88149
|
+
* Properties of a RefreshHiveTokenRequest.
|
|
88150
|
+
* @exports IRefreshHiveTokenRequest
|
|
88151
|
+
* @interface IRefreshHiveTokenRequest
|
|
88152
|
+
* @property {string|null} [spanContext] RefreshHiveTokenRequest spanContext
|
|
88153
|
+
* @property {string|null} [orgId] RefreshHiveTokenRequest orgId
|
|
86685
88154
|
*/
|
|
86686
88155
|
|
|
86687
88156
|
/**
|
|
86688
|
-
* Constructs a new
|
|
86689
|
-
* @exports
|
|
86690
|
-
* @classdesc Represents a
|
|
86691
|
-
* @implements
|
|
88157
|
+
* Constructs a new RefreshHiveTokenRequest.
|
|
88158
|
+
* @exports RefreshHiveTokenRequest
|
|
88159
|
+
* @classdesc Represents a RefreshHiveTokenRequest.
|
|
88160
|
+
* @implements IRefreshHiveTokenRequest
|
|
86692
88161
|
* @constructor
|
|
86693
|
-
* @param {
|
|
88162
|
+
* @param {IRefreshHiveTokenRequest=} [properties] Properties to set
|
|
86694
88163
|
*/
|
|
86695
|
-
function
|
|
88164
|
+
function RefreshHiveTokenRequest(properties) {
|
|
86696
88165
|
if (properties)
|
|
86697
88166
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86698
88167
|
if (properties[keys[i]] != null)
|
|
@@ -86700,87 +88169,87 @@ $root.RemoveOrganizationStripeIdRequest = (function() {
|
|
|
86700
88169
|
}
|
|
86701
88170
|
|
|
86702
88171
|
/**
|
|
86703
|
-
*
|
|
88172
|
+
* RefreshHiveTokenRequest spanContext.
|
|
86704
88173
|
* @member {string} spanContext
|
|
86705
|
-
* @memberof
|
|
88174
|
+
* @memberof RefreshHiveTokenRequest
|
|
86706
88175
|
* @instance
|
|
86707
88176
|
*/
|
|
86708
|
-
|
|
88177
|
+
RefreshHiveTokenRequest.prototype.spanContext = "";
|
|
86709
88178
|
|
|
86710
88179
|
/**
|
|
86711
|
-
*
|
|
88180
|
+
* RefreshHiveTokenRequest orgId.
|
|
86712
88181
|
* @member {string} orgId
|
|
86713
|
-
* @memberof
|
|
88182
|
+
* @memberof RefreshHiveTokenRequest
|
|
86714
88183
|
* @instance
|
|
86715
88184
|
*/
|
|
86716
|
-
|
|
88185
|
+
RefreshHiveTokenRequest.prototype.orgId = "";
|
|
86717
88186
|
|
|
86718
88187
|
/**
|
|
86719
|
-
* Creates a new
|
|
88188
|
+
* Creates a new RefreshHiveTokenRequest instance using the specified properties.
|
|
86720
88189
|
* @function create
|
|
86721
|
-
* @memberof
|
|
88190
|
+
* @memberof RefreshHiveTokenRequest
|
|
86722
88191
|
* @static
|
|
86723
|
-
* @param {
|
|
86724
|
-
* @returns {
|
|
88192
|
+
* @param {IRefreshHiveTokenRequest=} [properties] Properties to set
|
|
88193
|
+
* @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest instance
|
|
86725
88194
|
*/
|
|
86726
|
-
|
|
86727
|
-
return new
|
|
88195
|
+
RefreshHiveTokenRequest.create = function create(properties) {
|
|
88196
|
+
return new RefreshHiveTokenRequest(properties);
|
|
86728
88197
|
};
|
|
86729
88198
|
|
|
86730
88199
|
/**
|
|
86731
|
-
* Encodes the specified
|
|
88200
|
+
* Encodes the specified RefreshHiveTokenRequest message. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
|
|
86732
88201
|
* @function encode
|
|
86733
|
-
* @memberof
|
|
88202
|
+
* @memberof RefreshHiveTokenRequest
|
|
86734
88203
|
* @static
|
|
86735
|
-
* @param {
|
|
88204
|
+
* @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
|
|
86736
88205
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86737
88206
|
* @returns {$protobuf.Writer} Writer
|
|
86738
88207
|
*/
|
|
86739
|
-
|
|
88208
|
+
RefreshHiveTokenRequest.encode = function encode(message, writer) {
|
|
86740
88209
|
if (!writer)
|
|
86741
88210
|
writer = $Writer.create();
|
|
86742
88211
|
if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
|
|
86743
|
-
writer.uint32(/* id
|
|
88212
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
|
|
86744
88213
|
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
86745
|
-
writer.uint32(/* id
|
|
88214
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
|
|
86746
88215
|
return writer;
|
|
86747
88216
|
};
|
|
86748
88217
|
|
|
86749
88218
|
/**
|
|
86750
|
-
* Encodes the specified
|
|
88219
|
+
* Encodes the specified RefreshHiveTokenRequest message, length delimited. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
|
|
86751
88220
|
* @function encodeDelimited
|
|
86752
|
-
* @memberof
|
|
88221
|
+
* @memberof RefreshHiveTokenRequest
|
|
86753
88222
|
* @static
|
|
86754
|
-
* @param {
|
|
88223
|
+
* @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
|
|
86755
88224
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86756
88225
|
* @returns {$protobuf.Writer} Writer
|
|
86757
88226
|
*/
|
|
86758
|
-
|
|
88227
|
+
RefreshHiveTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86759
88228
|
return this.encode(message, writer).ldelim();
|
|
86760
88229
|
};
|
|
86761
88230
|
|
|
86762
88231
|
/**
|
|
86763
|
-
* Decodes a
|
|
88232
|
+
* Decodes a RefreshHiveTokenRequest message from the specified reader or buffer.
|
|
86764
88233
|
* @function decode
|
|
86765
|
-
* @memberof
|
|
88234
|
+
* @memberof RefreshHiveTokenRequest
|
|
86766
88235
|
* @static
|
|
86767
88236
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86768
88237
|
* @param {number} [length] Message length if known beforehand
|
|
86769
|
-
* @returns {
|
|
88238
|
+
* @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
|
|
86770
88239
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86771
88240
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86772
88241
|
*/
|
|
86773
|
-
|
|
88242
|
+
RefreshHiveTokenRequest.decode = function decode(reader, length) {
|
|
86774
88243
|
if (!(reader instanceof $Reader))
|
|
86775
88244
|
reader = $Reader.create(reader);
|
|
86776
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
88245
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenRequest();
|
|
86777
88246
|
while (reader.pos < end) {
|
|
86778
88247
|
var tag = reader.uint32();
|
|
86779
88248
|
switch (tag >>> 3) {
|
|
86780
|
-
case
|
|
88249
|
+
case 1:
|
|
86781
88250
|
message.spanContext = reader.string();
|
|
86782
88251
|
break;
|
|
86783
|
-
case
|
|
88252
|
+
case 2:
|
|
86784
88253
|
message.orgId = reader.string();
|
|
86785
88254
|
break;
|
|
86786
88255
|
default:
|
|
@@ -86792,30 +88261,30 @@ $root.RemoveOrganizationStripeIdRequest = (function() {
|
|
|
86792
88261
|
};
|
|
86793
88262
|
|
|
86794
88263
|
/**
|
|
86795
|
-
* Decodes a
|
|
88264
|
+
* Decodes a RefreshHiveTokenRequest message from the specified reader or buffer, length delimited.
|
|
86796
88265
|
* @function decodeDelimited
|
|
86797
|
-
* @memberof
|
|
88266
|
+
* @memberof RefreshHiveTokenRequest
|
|
86798
88267
|
* @static
|
|
86799
88268
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86800
|
-
* @returns {
|
|
88269
|
+
* @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
|
|
86801
88270
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86802
88271
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86803
88272
|
*/
|
|
86804
|
-
|
|
88273
|
+
RefreshHiveTokenRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
86805
88274
|
if (!(reader instanceof $Reader))
|
|
86806
88275
|
reader = new $Reader(reader);
|
|
86807
88276
|
return this.decode(reader, reader.uint32());
|
|
86808
88277
|
};
|
|
86809
88278
|
|
|
86810
88279
|
/**
|
|
86811
|
-
* Verifies a
|
|
88280
|
+
* Verifies a RefreshHiveTokenRequest message.
|
|
86812
88281
|
* @function verify
|
|
86813
|
-
* @memberof
|
|
88282
|
+
* @memberof RefreshHiveTokenRequest
|
|
86814
88283
|
* @static
|
|
86815
88284
|
* @param {Object.<string,*>} message Plain object to verify
|
|
86816
88285
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86817
88286
|
*/
|
|
86818
|
-
|
|
88287
|
+
RefreshHiveTokenRequest.verify = function verify(message) {
|
|
86819
88288
|
if (typeof message !== "object" || message === null)
|
|
86820
88289
|
return "object expected";
|
|
86821
88290
|
if (message.spanContext != null && message.hasOwnProperty("spanContext"))
|
|
@@ -86828,17 +88297,17 @@ $root.RemoveOrganizationStripeIdRequest = (function() {
|
|
|
86828
88297
|
};
|
|
86829
88298
|
|
|
86830
88299
|
/**
|
|
86831
|
-
* Creates a
|
|
88300
|
+
* Creates a RefreshHiveTokenRequest message from a plain object. Also converts values to their respective internal types.
|
|
86832
88301
|
* @function fromObject
|
|
86833
|
-
* @memberof
|
|
88302
|
+
* @memberof RefreshHiveTokenRequest
|
|
86834
88303
|
* @static
|
|
86835
88304
|
* @param {Object.<string,*>} object Plain object
|
|
86836
|
-
* @returns {
|
|
88305
|
+
* @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
|
|
86837
88306
|
*/
|
|
86838
|
-
|
|
86839
|
-
if (object instanceof $root.
|
|
88307
|
+
RefreshHiveTokenRequest.fromObject = function fromObject(object) {
|
|
88308
|
+
if (object instanceof $root.RefreshHiveTokenRequest)
|
|
86840
88309
|
return object;
|
|
86841
|
-
var message = new $root.
|
|
88310
|
+
var message = new $root.RefreshHiveTokenRequest();
|
|
86842
88311
|
if (object.spanContext != null)
|
|
86843
88312
|
message.spanContext = String(object.spanContext);
|
|
86844
88313
|
if (object.orgId != null)
|
|
@@ -86847,15 +88316,15 @@ $root.RemoveOrganizationStripeIdRequest = (function() {
|
|
|
86847
88316
|
};
|
|
86848
88317
|
|
|
86849
88318
|
/**
|
|
86850
|
-
* Creates a plain object from a
|
|
88319
|
+
* Creates a plain object from a RefreshHiveTokenRequest message. Also converts values to other types if specified.
|
|
86851
88320
|
* @function toObject
|
|
86852
|
-
* @memberof
|
|
88321
|
+
* @memberof RefreshHiveTokenRequest
|
|
86853
88322
|
* @static
|
|
86854
|
-
* @param {
|
|
88323
|
+
* @param {RefreshHiveTokenRequest} message RefreshHiveTokenRequest
|
|
86855
88324
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86856
88325
|
* @returns {Object.<string,*>} Plain object
|
|
86857
88326
|
*/
|
|
86858
|
-
|
|
88327
|
+
RefreshHiveTokenRequest.toObject = function toObject(message, options) {
|
|
86859
88328
|
if (!options)
|
|
86860
88329
|
options = {};
|
|
86861
88330
|
var object = {};
|
|
@@ -86871,39 +88340,39 @@ $root.RemoveOrganizationStripeIdRequest = (function() {
|
|
|
86871
88340
|
};
|
|
86872
88341
|
|
|
86873
88342
|
/**
|
|
86874
|
-
* Converts this
|
|
88343
|
+
* Converts this RefreshHiveTokenRequest to JSON.
|
|
86875
88344
|
* @function toJSON
|
|
86876
|
-
* @memberof
|
|
88345
|
+
* @memberof RefreshHiveTokenRequest
|
|
86877
88346
|
* @instance
|
|
86878
88347
|
* @returns {Object.<string,*>} JSON object
|
|
86879
88348
|
*/
|
|
86880
|
-
|
|
88349
|
+
RefreshHiveTokenRequest.prototype.toJSON = function toJSON() {
|
|
86881
88350
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86882
88351
|
};
|
|
86883
88352
|
|
|
86884
|
-
return
|
|
88353
|
+
return RefreshHiveTokenRequest;
|
|
86885
88354
|
})();
|
|
86886
88355
|
|
|
86887
|
-
$root.
|
|
88356
|
+
$root.RefreshHiveTokenResponse = (function() {
|
|
86888
88357
|
|
|
86889
88358
|
/**
|
|
86890
|
-
* Properties of a
|
|
86891
|
-
* @exports
|
|
86892
|
-
* @interface
|
|
86893
|
-
* @property {StatusCode|null} [status]
|
|
86894
|
-
* @property {Array.<IError>|null} [errors]
|
|
86895
|
-
* @property {IOrganization|null} [organization]
|
|
88359
|
+
* Properties of a RefreshHiveTokenResponse.
|
|
88360
|
+
* @exports IRefreshHiveTokenResponse
|
|
88361
|
+
* @interface IRefreshHiveTokenResponse
|
|
88362
|
+
* @property {StatusCode|null} [status] RefreshHiveTokenResponse status
|
|
88363
|
+
* @property {Array.<IError>|null} [errors] RefreshHiveTokenResponse errors
|
|
88364
|
+
* @property {IOrganization|null} [organization] RefreshHiveTokenResponse organization
|
|
86896
88365
|
*/
|
|
86897
88366
|
|
|
86898
88367
|
/**
|
|
86899
|
-
* Constructs a new
|
|
86900
|
-
* @exports
|
|
86901
|
-
* @classdesc Represents a
|
|
86902
|
-
* @implements
|
|
88368
|
+
* Constructs a new RefreshHiveTokenResponse.
|
|
88369
|
+
* @exports RefreshHiveTokenResponse
|
|
88370
|
+
* @classdesc Represents a RefreshHiveTokenResponse.
|
|
88371
|
+
* @implements IRefreshHiveTokenResponse
|
|
86903
88372
|
* @constructor
|
|
86904
|
-
* @param {
|
|
88373
|
+
* @param {IRefreshHiveTokenResponse=} [properties] Properties to set
|
|
86905
88374
|
*/
|
|
86906
|
-
function
|
|
88375
|
+
function RefreshHiveTokenResponse(properties) {
|
|
86907
88376
|
this.errors = [];
|
|
86908
88377
|
if (properties)
|
|
86909
88378
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
@@ -86912,103 +88381,103 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
|
|
|
86912
88381
|
}
|
|
86913
88382
|
|
|
86914
88383
|
/**
|
|
86915
|
-
*
|
|
88384
|
+
* RefreshHiveTokenResponse status.
|
|
86916
88385
|
* @member {StatusCode} status
|
|
86917
|
-
* @memberof
|
|
88386
|
+
* @memberof RefreshHiveTokenResponse
|
|
86918
88387
|
* @instance
|
|
86919
88388
|
*/
|
|
86920
|
-
|
|
88389
|
+
RefreshHiveTokenResponse.prototype.status = 0;
|
|
86921
88390
|
|
|
86922
88391
|
/**
|
|
86923
|
-
*
|
|
88392
|
+
* RefreshHiveTokenResponse errors.
|
|
86924
88393
|
* @member {Array.<IError>} errors
|
|
86925
|
-
* @memberof
|
|
88394
|
+
* @memberof RefreshHiveTokenResponse
|
|
86926
88395
|
* @instance
|
|
86927
88396
|
*/
|
|
86928
|
-
|
|
88397
|
+
RefreshHiveTokenResponse.prototype.errors = $util.emptyArray;
|
|
86929
88398
|
|
|
86930
88399
|
/**
|
|
86931
|
-
*
|
|
88400
|
+
* RefreshHiveTokenResponse organization.
|
|
86932
88401
|
* @member {IOrganization|null|undefined} organization
|
|
86933
|
-
* @memberof
|
|
88402
|
+
* @memberof RefreshHiveTokenResponse
|
|
86934
88403
|
* @instance
|
|
86935
88404
|
*/
|
|
86936
|
-
|
|
88405
|
+
RefreshHiveTokenResponse.prototype.organization = null;
|
|
86937
88406
|
|
|
86938
88407
|
/**
|
|
86939
|
-
* Creates a new
|
|
88408
|
+
* Creates a new RefreshHiveTokenResponse instance using the specified properties.
|
|
86940
88409
|
* @function create
|
|
86941
|
-
* @memberof
|
|
88410
|
+
* @memberof RefreshHiveTokenResponse
|
|
86942
88411
|
* @static
|
|
86943
|
-
* @param {
|
|
86944
|
-
* @returns {
|
|
88412
|
+
* @param {IRefreshHiveTokenResponse=} [properties] Properties to set
|
|
88413
|
+
* @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse instance
|
|
86945
88414
|
*/
|
|
86946
|
-
|
|
86947
|
-
return new
|
|
88415
|
+
RefreshHiveTokenResponse.create = function create(properties) {
|
|
88416
|
+
return new RefreshHiveTokenResponse(properties);
|
|
86948
88417
|
};
|
|
86949
88418
|
|
|
86950
88419
|
/**
|
|
86951
|
-
* Encodes the specified
|
|
88420
|
+
* Encodes the specified RefreshHiveTokenResponse message. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
|
|
86952
88421
|
* @function encode
|
|
86953
|
-
* @memberof
|
|
88422
|
+
* @memberof RefreshHiveTokenResponse
|
|
86954
88423
|
* @static
|
|
86955
|
-
* @param {
|
|
88424
|
+
* @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
|
|
86956
88425
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86957
88426
|
* @returns {$protobuf.Writer} Writer
|
|
86958
88427
|
*/
|
|
86959
|
-
|
|
88428
|
+
RefreshHiveTokenResponse.encode = function encode(message, writer) {
|
|
86960
88429
|
if (!writer)
|
|
86961
88430
|
writer = $Writer.create();
|
|
86962
88431
|
if (message.status != null && Object.hasOwnProperty.call(message, "status"))
|
|
86963
|
-
writer.uint32(/* id
|
|
88432
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
|
|
86964
88433
|
if (message.errors != null && message.errors.length)
|
|
86965
88434
|
for (var i = 0; i < message.errors.length; ++i)
|
|
86966
|
-
$root.Error.encode(message.errors[i], writer.uint32(/* id
|
|
88435
|
+
$root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
86967
88436
|
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
86968
|
-
$root.Organization.encode(message.organization, writer.uint32(/* id
|
|
88437
|
+
$root.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
86969
88438
|
return writer;
|
|
86970
88439
|
};
|
|
86971
88440
|
|
|
86972
88441
|
/**
|
|
86973
|
-
* Encodes the specified
|
|
88442
|
+
* Encodes the specified RefreshHiveTokenResponse message, length delimited. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
|
|
86974
88443
|
* @function encodeDelimited
|
|
86975
|
-
* @memberof
|
|
88444
|
+
* @memberof RefreshHiveTokenResponse
|
|
86976
88445
|
* @static
|
|
86977
|
-
* @param {
|
|
88446
|
+
* @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
|
|
86978
88447
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86979
88448
|
* @returns {$protobuf.Writer} Writer
|
|
86980
88449
|
*/
|
|
86981
|
-
|
|
88450
|
+
RefreshHiveTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86982
88451
|
return this.encode(message, writer).ldelim();
|
|
86983
88452
|
};
|
|
86984
88453
|
|
|
86985
88454
|
/**
|
|
86986
|
-
* Decodes a
|
|
88455
|
+
* Decodes a RefreshHiveTokenResponse message from the specified reader or buffer.
|
|
86987
88456
|
* @function decode
|
|
86988
|
-
* @memberof
|
|
88457
|
+
* @memberof RefreshHiveTokenResponse
|
|
86989
88458
|
* @static
|
|
86990
88459
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86991
88460
|
* @param {number} [length] Message length if known beforehand
|
|
86992
|
-
* @returns {
|
|
88461
|
+
* @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
|
|
86993
88462
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86994
88463
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86995
88464
|
*/
|
|
86996
|
-
|
|
88465
|
+
RefreshHiveTokenResponse.decode = function decode(reader, length) {
|
|
86997
88466
|
if (!(reader instanceof $Reader))
|
|
86998
88467
|
reader = $Reader.create(reader);
|
|
86999
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
88468
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenResponse();
|
|
87000
88469
|
while (reader.pos < end) {
|
|
87001
88470
|
var tag = reader.uint32();
|
|
87002
88471
|
switch (tag >>> 3) {
|
|
87003
|
-
case
|
|
88472
|
+
case 1:
|
|
87004
88473
|
message.status = reader.int32();
|
|
87005
88474
|
break;
|
|
87006
|
-
case
|
|
88475
|
+
case 2:
|
|
87007
88476
|
if (!(message.errors && message.errors.length))
|
|
87008
88477
|
message.errors = [];
|
|
87009
88478
|
message.errors.push($root.Error.decode(reader, reader.uint32()));
|
|
87010
88479
|
break;
|
|
87011
|
-
case
|
|
88480
|
+
case 3:
|
|
87012
88481
|
message.organization = $root.Organization.decode(reader, reader.uint32());
|
|
87013
88482
|
break;
|
|
87014
88483
|
default:
|
|
@@ -87020,30 +88489,30 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
|
|
|
87020
88489
|
};
|
|
87021
88490
|
|
|
87022
88491
|
/**
|
|
87023
|
-
* Decodes a
|
|
88492
|
+
* Decodes a RefreshHiveTokenResponse message from the specified reader or buffer, length delimited.
|
|
87024
88493
|
* @function decodeDelimited
|
|
87025
|
-
* @memberof
|
|
88494
|
+
* @memberof RefreshHiveTokenResponse
|
|
87026
88495
|
* @static
|
|
87027
88496
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87028
|
-
* @returns {
|
|
88497
|
+
* @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
|
|
87029
88498
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87030
88499
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87031
88500
|
*/
|
|
87032
|
-
|
|
88501
|
+
RefreshHiveTokenResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
87033
88502
|
if (!(reader instanceof $Reader))
|
|
87034
88503
|
reader = new $Reader(reader);
|
|
87035
88504
|
return this.decode(reader, reader.uint32());
|
|
87036
88505
|
};
|
|
87037
88506
|
|
|
87038
88507
|
/**
|
|
87039
|
-
* Verifies a
|
|
88508
|
+
* Verifies a RefreshHiveTokenResponse message.
|
|
87040
88509
|
* @function verify
|
|
87041
|
-
* @memberof
|
|
88510
|
+
* @memberof RefreshHiveTokenResponse
|
|
87042
88511
|
* @static
|
|
87043
88512
|
* @param {Object.<string,*>} message Plain object to verify
|
|
87044
88513
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87045
88514
|
*/
|
|
87046
|
-
|
|
88515
|
+
RefreshHiveTokenResponse.verify = function verify(message) {
|
|
87047
88516
|
if (typeof message !== "object" || message === null)
|
|
87048
88517
|
return "object expected";
|
|
87049
88518
|
if (message.status != null && message.hasOwnProperty("status"))
|
|
@@ -87079,17 +88548,17 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
|
|
|
87079
88548
|
};
|
|
87080
88549
|
|
|
87081
88550
|
/**
|
|
87082
|
-
* Creates a
|
|
88551
|
+
* Creates a RefreshHiveTokenResponse message from a plain object. Also converts values to their respective internal types.
|
|
87083
88552
|
* @function fromObject
|
|
87084
|
-
* @memberof
|
|
88553
|
+
* @memberof RefreshHiveTokenResponse
|
|
87085
88554
|
* @static
|
|
87086
88555
|
* @param {Object.<string,*>} object Plain object
|
|
87087
|
-
* @returns {
|
|
88556
|
+
* @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
|
|
87088
88557
|
*/
|
|
87089
|
-
|
|
87090
|
-
if (object instanceof $root.
|
|
88558
|
+
RefreshHiveTokenResponse.fromObject = function fromObject(object) {
|
|
88559
|
+
if (object instanceof $root.RefreshHiveTokenResponse)
|
|
87091
88560
|
return object;
|
|
87092
|
-
var message = new $root.
|
|
88561
|
+
var message = new $root.RefreshHiveTokenResponse();
|
|
87093
88562
|
switch (object.status) {
|
|
87094
88563
|
case "UNKNOWN_CODE":
|
|
87095
88564
|
case 0:
|
|
@@ -87130,32 +88599,32 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
|
|
|
87130
88599
|
}
|
|
87131
88600
|
if (object.errors) {
|
|
87132
88601
|
if (!Array.isArray(object.errors))
|
|
87133
|
-
throw TypeError(".
|
|
88602
|
+
throw TypeError(".RefreshHiveTokenResponse.errors: array expected");
|
|
87134
88603
|
message.errors = [];
|
|
87135
88604
|
for (var i = 0; i < object.errors.length; ++i) {
|
|
87136
88605
|
if (typeof object.errors[i] !== "object")
|
|
87137
|
-
throw TypeError(".
|
|
88606
|
+
throw TypeError(".RefreshHiveTokenResponse.errors: object expected");
|
|
87138
88607
|
message.errors[i] = $root.Error.fromObject(object.errors[i]);
|
|
87139
88608
|
}
|
|
87140
88609
|
}
|
|
87141
88610
|
if (object.organization != null) {
|
|
87142
88611
|
if (typeof object.organization !== "object")
|
|
87143
|
-
throw TypeError(".
|
|
88612
|
+
throw TypeError(".RefreshHiveTokenResponse.organization: object expected");
|
|
87144
88613
|
message.organization = $root.Organization.fromObject(object.organization);
|
|
87145
88614
|
}
|
|
87146
88615
|
return message;
|
|
87147
88616
|
};
|
|
87148
88617
|
|
|
87149
88618
|
/**
|
|
87150
|
-
* Creates a plain object from a
|
|
88619
|
+
* Creates a plain object from a RefreshHiveTokenResponse message. Also converts values to other types if specified.
|
|
87151
88620
|
* @function toObject
|
|
87152
|
-
* @memberof
|
|
88621
|
+
* @memberof RefreshHiveTokenResponse
|
|
87153
88622
|
* @static
|
|
87154
|
-
* @param {
|
|
88623
|
+
* @param {RefreshHiveTokenResponse} message RefreshHiveTokenResponse
|
|
87155
88624
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87156
88625
|
* @returns {Object.<string,*>} Plain object
|
|
87157
88626
|
*/
|
|
87158
|
-
|
|
88627
|
+
RefreshHiveTokenResponse.toObject = function toObject(message, options) {
|
|
87159
88628
|
if (!options)
|
|
87160
88629
|
options = {};
|
|
87161
88630
|
var object = {};
|
|
@@ -87178,17 +88647,17 @@ $root.RemoveOrganizationStripeIdResponse = (function() {
|
|
|
87178
88647
|
};
|
|
87179
88648
|
|
|
87180
88649
|
/**
|
|
87181
|
-
* Converts this
|
|
88650
|
+
* Converts this RefreshHiveTokenResponse to JSON.
|
|
87182
88651
|
* @function toJSON
|
|
87183
|
-
* @memberof
|
|
88652
|
+
* @memberof RefreshHiveTokenResponse
|
|
87184
88653
|
* @instance
|
|
87185
88654
|
* @returns {Object.<string,*>} JSON object
|
|
87186
88655
|
*/
|
|
87187
|
-
|
|
88656
|
+
RefreshHiveTokenResponse.prototype.toJSON = function toJSON() {
|
|
87188
88657
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87189
88658
|
};
|
|
87190
88659
|
|
|
87191
|
-
return
|
|
88660
|
+
return RefreshHiveTokenResponse;
|
|
87192
88661
|
})();
|
|
87193
88662
|
|
|
87194
88663
|
$root.OrganizationService = (function() {
|
|
@@ -87487,6 +88956,72 @@ $root.OrganizationService = (function() {
|
|
|
87487
88956
|
* @variation 2
|
|
87488
88957
|
*/
|
|
87489
88958
|
|
|
88959
|
+
/**
|
|
88960
|
+
* Callback as used by {@link OrganizationService#connectHive}.
|
|
88961
|
+
* @memberof OrganizationService
|
|
88962
|
+
* @typedef connectHiveCallback
|
|
88963
|
+
* @type {function}
|
|
88964
|
+
* @param {Error|null} error Error, if any
|
|
88965
|
+
* @param {ConnectHiveResponse} [response] ConnectHiveResponse
|
|
88966
|
+
*/
|
|
88967
|
+
|
|
88968
|
+
/**
|
|
88969
|
+
* Calls connectHive.
|
|
88970
|
+
* @function connectHive
|
|
88971
|
+
* @memberof OrganizationService
|
|
88972
|
+
* @instance
|
|
88973
|
+
* @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
|
|
88974
|
+
* @param {OrganizationService.connectHiveCallback} callback Node-style callback called with the error, if any, and ConnectHiveResponse
|
|
88975
|
+
* @returns {undefined}
|
|
88976
|
+
* @variation 1
|
|
88977
|
+
*/
|
|
88978
|
+
Object.defineProperty(OrganizationService.prototype.connectHive = function connectHive(request, callback) {
|
|
88979
|
+
return this.rpcCall(connectHive, $root.ConnectHiveRequest, $root.ConnectHiveResponse, request, callback);
|
|
88980
|
+
}, "name", { value: "connectHive" });
|
|
88981
|
+
|
|
88982
|
+
/**
|
|
88983
|
+
* Calls connectHive.
|
|
88984
|
+
* @function connectHive
|
|
88985
|
+
* @memberof OrganizationService
|
|
88986
|
+
* @instance
|
|
88987
|
+
* @param {IConnectHiveRequest} request ConnectHiveRequest message or plain object
|
|
88988
|
+
* @returns {Promise<ConnectHiveResponse>} Promise
|
|
88989
|
+
* @variation 2
|
|
88990
|
+
*/
|
|
88991
|
+
|
|
88992
|
+
/**
|
|
88993
|
+
* Callback as used by {@link OrganizationService#refreshHiveToken}.
|
|
88994
|
+
* @memberof OrganizationService
|
|
88995
|
+
* @typedef refreshHiveTokenCallback
|
|
88996
|
+
* @type {function}
|
|
88997
|
+
* @param {Error|null} error Error, if any
|
|
88998
|
+
* @param {RefreshHiveTokenResponse} [response] RefreshHiveTokenResponse
|
|
88999
|
+
*/
|
|
89000
|
+
|
|
89001
|
+
/**
|
|
89002
|
+
* Calls refreshHiveToken.
|
|
89003
|
+
* @function refreshHiveToken
|
|
89004
|
+
* @memberof OrganizationService
|
|
89005
|
+
* @instance
|
|
89006
|
+
* @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
|
|
89007
|
+
* @param {OrganizationService.refreshHiveTokenCallback} callback Node-style callback called with the error, if any, and RefreshHiveTokenResponse
|
|
89008
|
+
* @returns {undefined}
|
|
89009
|
+
* @variation 1
|
|
89010
|
+
*/
|
|
89011
|
+
Object.defineProperty(OrganizationService.prototype.refreshHiveToken = function refreshHiveToken(request, callback) {
|
|
89012
|
+
return this.rpcCall(refreshHiveToken, $root.RefreshHiveTokenRequest, $root.RefreshHiveTokenResponse, request, callback);
|
|
89013
|
+
}, "name", { value: "refreshHiveToken" });
|
|
89014
|
+
|
|
89015
|
+
/**
|
|
89016
|
+
* Calls refreshHiveToken.
|
|
89017
|
+
* @function refreshHiveToken
|
|
89018
|
+
* @memberof OrganizationService
|
|
89019
|
+
* @instance
|
|
89020
|
+
* @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
|
|
89021
|
+
* @returns {Promise<RefreshHiveTokenResponse>} Promise
|
|
89022
|
+
* @variation 2
|
|
89023
|
+
*/
|
|
89024
|
+
|
|
87490
89025
|
return OrganizationService;
|
|
87491
89026
|
})();
|
|
87492
89027
|
|