@sellout/models 0.0.422 → 0.0.423

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.
@@ -87554,6 +87554,523 @@ $root.ConnectHiveResponse = (function() {
87554
87554
  return ConnectHiveResponse;
87555
87555
  })();
87556
87556
 
87557
+ $root.RefreshHiveTokenRequest = (function() {
87558
+
87559
+ /**
87560
+ * Properties of a RefreshHiveTokenRequest.
87561
+ * @exports IRefreshHiveTokenRequest
87562
+ * @interface IRefreshHiveTokenRequest
87563
+ * @property {string|null} [spanContext] RefreshHiveTokenRequest spanContext
87564
+ * @property {string|null} [orgId] RefreshHiveTokenRequest orgId
87565
+ */
87566
+
87567
+ /**
87568
+ * Constructs a new RefreshHiveTokenRequest.
87569
+ * @exports RefreshHiveTokenRequest
87570
+ * @classdesc Represents a RefreshHiveTokenRequest.
87571
+ * @implements IRefreshHiveTokenRequest
87572
+ * @constructor
87573
+ * @param {IRefreshHiveTokenRequest=} [properties] Properties to set
87574
+ */
87575
+ function RefreshHiveTokenRequest(properties) {
87576
+ if (properties)
87577
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87578
+ if (properties[keys[i]] != null)
87579
+ this[keys[i]] = properties[keys[i]];
87580
+ }
87581
+
87582
+ /**
87583
+ * RefreshHiveTokenRequest spanContext.
87584
+ * @member {string} spanContext
87585
+ * @memberof RefreshHiveTokenRequest
87586
+ * @instance
87587
+ */
87588
+ RefreshHiveTokenRequest.prototype.spanContext = "";
87589
+
87590
+ /**
87591
+ * RefreshHiveTokenRequest orgId.
87592
+ * @member {string} orgId
87593
+ * @memberof RefreshHiveTokenRequest
87594
+ * @instance
87595
+ */
87596
+ RefreshHiveTokenRequest.prototype.orgId = "";
87597
+
87598
+ /**
87599
+ * Creates a new RefreshHiveTokenRequest instance using the specified properties.
87600
+ * @function create
87601
+ * @memberof RefreshHiveTokenRequest
87602
+ * @static
87603
+ * @param {IRefreshHiveTokenRequest=} [properties] Properties to set
87604
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest instance
87605
+ */
87606
+ RefreshHiveTokenRequest.create = function create(properties) {
87607
+ return new RefreshHiveTokenRequest(properties);
87608
+ };
87609
+
87610
+ /**
87611
+ * Encodes the specified RefreshHiveTokenRequest message. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
87612
+ * @function encode
87613
+ * @memberof RefreshHiveTokenRequest
87614
+ * @static
87615
+ * @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
87616
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87617
+ * @returns {$protobuf.Writer} Writer
87618
+ */
87619
+ RefreshHiveTokenRequest.encode = function encode(message, writer) {
87620
+ if (!writer)
87621
+ writer = $Writer.create();
87622
+ if (message.spanContext != null && Object.hasOwnProperty.call(message, "spanContext"))
87623
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.spanContext);
87624
+ if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
87625
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgId);
87626
+ return writer;
87627
+ };
87628
+
87629
+ /**
87630
+ * Encodes the specified RefreshHiveTokenRequest message, length delimited. Does not implicitly {@link RefreshHiveTokenRequest.verify|verify} messages.
87631
+ * @function encodeDelimited
87632
+ * @memberof RefreshHiveTokenRequest
87633
+ * @static
87634
+ * @param {IRefreshHiveTokenRequest} message RefreshHiveTokenRequest message or plain object to encode
87635
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87636
+ * @returns {$protobuf.Writer} Writer
87637
+ */
87638
+ RefreshHiveTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
87639
+ return this.encode(message, writer).ldelim();
87640
+ };
87641
+
87642
+ /**
87643
+ * Decodes a RefreshHiveTokenRequest message from the specified reader or buffer.
87644
+ * @function decode
87645
+ * @memberof RefreshHiveTokenRequest
87646
+ * @static
87647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87648
+ * @param {number} [length] Message length if known beforehand
87649
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87650
+ * @throws {Error} If the payload is not a reader or valid buffer
87651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87652
+ */
87653
+ RefreshHiveTokenRequest.decode = function decode(reader, length) {
87654
+ if (!(reader instanceof $Reader))
87655
+ reader = $Reader.create(reader);
87656
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenRequest();
87657
+ while (reader.pos < end) {
87658
+ var tag = reader.uint32();
87659
+ switch (tag >>> 3) {
87660
+ case 1:
87661
+ message.spanContext = reader.string();
87662
+ break;
87663
+ case 2:
87664
+ message.orgId = reader.string();
87665
+ break;
87666
+ default:
87667
+ reader.skipType(tag & 7);
87668
+ break;
87669
+ }
87670
+ }
87671
+ return message;
87672
+ };
87673
+
87674
+ /**
87675
+ * Decodes a RefreshHiveTokenRequest message from the specified reader or buffer, length delimited.
87676
+ * @function decodeDelimited
87677
+ * @memberof RefreshHiveTokenRequest
87678
+ * @static
87679
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87680
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87681
+ * @throws {Error} If the payload is not a reader or valid buffer
87682
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87683
+ */
87684
+ RefreshHiveTokenRequest.decodeDelimited = function decodeDelimited(reader) {
87685
+ if (!(reader instanceof $Reader))
87686
+ reader = new $Reader(reader);
87687
+ return this.decode(reader, reader.uint32());
87688
+ };
87689
+
87690
+ /**
87691
+ * Verifies a RefreshHiveTokenRequest message.
87692
+ * @function verify
87693
+ * @memberof RefreshHiveTokenRequest
87694
+ * @static
87695
+ * @param {Object.<string,*>} message Plain object to verify
87696
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87697
+ */
87698
+ RefreshHiveTokenRequest.verify = function verify(message) {
87699
+ if (typeof message !== "object" || message === null)
87700
+ return "object expected";
87701
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87702
+ if (!$util.isString(message.spanContext))
87703
+ return "spanContext: string expected";
87704
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87705
+ if (!$util.isString(message.orgId))
87706
+ return "orgId: string expected";
87707
+ return null;
87708
+ };
87709
+
87710
+ /**
87711
+ * Creates a RefreshHiveTokenRequest message from a plain object. Also converts values to their respective internal types.
87712
+ * @function fromObject
87713
+ * @memberof RefreshHiveTokenRequest
87714
+ * @static
87715
+ * @param {Object.<string,*>} object Plain object
87716
+ * @returns {RefreshHiveTokenRequest} RefreshHiveTokenRequest
87717
+ */
87718
+ RefreshHiveTokenRequest.fromObject = function fromObject(object) {
87719
+ if (object instanceof $root.RefreshHiveTokenRequest)
87720
+ return object;
87721
+ var message = new $root.RefreshHiveTokenRequest();
87722
+ if (object.spanContext != null)
87723
+ message.spanContext = String(object.spanContext);
87724
+ if (object.orgId != null)
87725
+ message.orgId = String(object.orgId);
87726
+ return message;
87727
+ };
87728
+
87729
+ /**
87730
+ * Creates a plain object from a RefreshHiveTokenRequest message. Also converts values to other types if specified.
87731
+ * @function toObject
87732
+ * @memberof RefreshHiveTokenRequest
87733
+ * @static
87734
+ * @param {RefreshHiveTokenRequest} message RefreshHiveTokenRequest
87735
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
87736
+ * @returns {Object.<string,*>} Plain object
87737
+ */
87738
+ RefreshHiveTokenRequest.toObject = function toObject(message, options) {
87739
+ if (!options)
87740
+ options = {};
87741
+ var object = {};
87742
+ if (options.defaults) {
87743
+ object.spanContext = "";
87744
+ object.orgId = "";
87745
+ }
87746
+ if (message.spanContext != null && message.hasOwnProperty("spanContext"))
87747
+ object.spanContext = message.spanContext;
87748
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
87749
+ object.orgId = message.orgId;
87750
+ return object;
87751
+ };
87752
+
87753
+ /**
87754
+ * Converts this RefreshHiveTokenRequest to JSON.
87755
+ * @function toJSON
87756
+ * @memberof RefreshHiveTokenRequest
87757
+ * @instance
87758
+ * @returns {Object.<string,*>} JSON object
87759
+ */
87760
+ RefreshHiveTokenRequest.prototype.toJSON = function toJSON() {
87761
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
87762
+ };
87763
+
87764
+ return RefreshHiveTokenRequest;
87765
+ })();
87766
+
87767
+ $root.RefreshHiveTokenResponse = (function() {
87768
+
87769
+ /**
87770
+ * Properties of a RefreshHiveTokenResponse.
87771
+ * @exports IRefreshHiveTokenResponse
87772
+ * @interface IRefreshHiveTokenResponse
87773
+ * @property {StatusCode|null} [status] RefreshHiveTokenResponse status
87774
+ * @property {Array.<IError>|null} [errors] RefreshHiveTokenResponse errors
87775
+ * @property {IOrganization|null} [organization] RefreshHiveTokenResponse organization
87776
+ */
87777
+
87778
+ /**
87779
+ * Constructs a new RefreshHiveTokenResponse.
87780
+ * @exports RefreshHiveTokenResponse
87781
+ * @classdesc Represents a RefreshHiveTokenResponse.
87782
+ * @implements IRefreshHiveTokenResponse
87783
+ * @constructor
87784
+ * @param {IRefreshHiveTokenResponse=} [properties] Properties to set
87785
+ */
87786
+ function RefreshHiveTokenResponse(properties) {
87787
+ this.errors = [];
87788
+ if (properties)
87789
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
87790
+ if (properties[keys[i]] != null)
87791
+ this[keys[i]] = properties[keys[i]];
87792
+ }
87793
+
87794
+ /**
87795
+ * RefreshHiveTokenResponse status.
87796
+ * @member {StatusCode} status
87797
+ * @memberof RefreshHiveTokenResponse
87798
+ * @instance
87799
+ */
87800
+ RefreshHiveTokenResponse.prototype.status = 0;
87801
+
87802
+ /**
87803
+ * RefreshHiveTokenResponse errors.
87804
+ * @member {Array.<IError>} errors
87805
+ * @memberof RefreshHiveTokenResponse
87806
+ * @instance
87807
+ */
87808
+ RefreshHiveTokenResponse.prototype.errors = $util.emptyArray;
87809
+
87810
+ /**
87811
+ * RefreshHiveTokenResponse organization.
87812
+ * @member {IOrganization|null|undefined} organization
87813
+ * @memberof RefreshHiveTokenResponse
87814
+ * @instance
87815
+ */
87816
+ RefreshHiveTokenResponse.prototype.organization = null;
87817
+
87818
+ /**
87819
+ * Creates a new RefreshHiveTokenResponse instance using the specified properties.
87820
+ * @function create
87821
+ * @memberof RefreshHiveTokenResponse
87822
+ * @static
87823
+ * @param {IRefreshHiveTokenResponse=} [properties] Properties to set
87824
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse instance
87825
+ */
87826
+ RefreshHiveTokenResponse.create = function create(properties) {
87827
+ return new RefreshHiveTokenResponse(properties);
87828
+ };
87829
+
87830
+ /**
87831
+ * Encodes the specified RefreshHiveTokenResponse message. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
87832
+ * @function encode
87833
+ * @memberof RefreshHiveTokenResponse
87834
+ * @static
87835
+ * @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
87836
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87837
+ * @returns {$protobuf.Writer} Writer
87838
+ */
87839
+ RefreshHiveTokenResponse.encode = function encode(message, writer) {
87840
+ if (!writer)
87841
+ writer = $Writer.create();
87842
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
87843
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status);
87844
+ if (message.errors != null && message.errors.length)
87845
+ for (var i = 0; i < message.errors.length; ++i)
87846
+ $root.Error.encode(message.errors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
87847
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
87848
+ $root.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
87849
+ return writer;
87850
+ };
87851
+
87852
+ /**
87853
+ * Encodes the specified RefreshHiveTokenResponse message, length delimited. Does not implicitly {@link RefreshHiveTokenResponse.verify|verify} messages.
87854
+ * @function encodeDelimited
87855
+ * @memberof RefreshHiveTokenResponse
87856
+ * @static
87857
+ * @param {IRefreshHiveTokenResponse} message RefreshHiveTokenResponse message or plain object to encode
87858
+ * @param {$protobuf.Writer} [writer] Writer to encode to
87859
+ * @returns {$protobuf.Writer} Writer
87860
+ */
87861
+ RefreshHiveTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
87862
+ return this.encode(message, writer).ldelim();
87863
+ };
87864
+
87865
+ /**
87866
+ * Decodes a RefreshHiveTokenResponse message from the specified reader or buffer.
87867
+ * @function decode
87868
+ * @memberof RefreshHiveTokenResponse
87869
+ * @static
87870
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87871
+ * @param {number} [length] Message length if known beforehand
87872
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87873
+ * @throws {Error} If the payload is not a reader or valid buffer
87874
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87875
+ */
87876
+ RefreshHiveTokenResponse.decode = function decode(reader, length) {
87877
+ if (!(reader instanceof $Reader))
87878
+ reader = $Reader.create(reader);
87879
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RefreshHiveTokenResponse();
87880
+ while (reader.pos < end) {
87881
+ var tag = reader.uint32();
87882
+ switch (tag >>> 3) {
87883
+ case 1:
87884
+ message.status = reader.int32();
87885
+ break;
87886
+ case 2:
87887
+ if (!(message.errors && message.errors.length))
87888
+ message.errors = [];
87889
+ message.errors.push($root.Error.decode(reader, reader.uint32()));
87890
+ break;
87891
+ case 3:
87892
+ message.organization = $root.Organization.decode(reader, reader.uint32());
87893
+ break;
87894
+ default:
87895
+ reader.skipType(tag & 7);
87896
+ break;
87897
+ }
87898
+ }
87899
+ return message;
87900
+ };
87901
+
87902
+ /**
87903
+ * Decodes a RefreshHiveTokenResponse message from the specified reader or buffer, length delimited.
87904
+ * @function decodeDelimited
87905
+ * @memberof RefreshHiveTokenResponse
87906
+ * @static
87907
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
87908
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87909
+ * @throws {Error} If the payload is not a reader or valid buffer
87910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
87911
+ */
87912
+ RefreshHiveTokenResponse.decodeDelimited = function decodeDelimited(reader) {
87913
+ if (!(reader instanceof $Reader))
87914
+ reader = new $Reader(reader);
87915
+ return this.decode(reader, reader.uint32());
87916
+ };
87917
+
87918
+ /**
87919
+ * Verifies a RefreshHiveTokenResponse message.
87920
+ * @function verify
87921
+ * @memberof RefreshHiveTokenResponse
87922
+ * @static
87923
+ * @param {Object.<string,*>} message Plain object to verify
87924
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
87925
+ */
87926
+ RefreshHiveTokenResponse.verify = function verify(message) {
87927
+ if (typeof message !== "object" || message === null)
87928
+ return "object expected";
87929
+ if (message.status != null && message.hasOwnProperty("status"))
87930
+ switch (message.status) {
87931
+ default:
87932
+ return "status: enum value expected";
87933
+ case 0:
87934
+ case 200:
87935
+ case 400:
87936
+ case 401:
87937
+ case 403:
87938
+ case 422:
87939
+ case 404:
87940
+ case 500:
87941
+ case 504:
87942
+ break;
87943
+ }
87944
+ if (message.errors != null && message.hasOwnProperty("errors")) {
87945
+ if (!Array.isArray(message.errors))
87946
+ return "errors: array expected";
87947
+ for (var i = 0; i < message.errors.length; ++i) {
87948
+ var error = $root.Error.verify(message.errors[i]);
87949
+ if (error)
87950
+ return "errors." + error;
87951
+ }
87952
+ }
87953
+ if (message.organization != null && message.hasOwnProperty("organization")) {
87954
+ var error = $root.Organization.verify(message.organization);
87955
+ if (error)
87956
+ return "organization." + error;
87957
+ }
87958
+ return null;
87959
+ };
87960
+
87961
+ /**
87962
+ * Creates a RefreshHiveTokenResponse message from a plain object. Also converts values to their respective internal types.
87963
+ * @function fromObject
87964
+ * @memberof RefreshHiveTokenResponse
87965
+ * @static
87966
+ * @param {Object.<string,*>} object Plain object
87967
+ * @returns {RefreshHiveTokenResponse} RefreshHiveTokenResponse
87968
+ */
87969
+ RefreshHiveTokenResponse.fromObject = function fromObject(object) {
87970
+ if (object instanceof $root.RefreshHiveTokenResponse)
87971
+ return object;
87972
+ var message = new $root.RefreshHiveTokenResponse();
87973
+ switch (object.status) {
87974
+ case "UNKNOWN_CODE":
87975
+ case 0:
87976
+ message.status = 0;
87977
+ break;
87978
+ case "OK":
87979
+ case 200:
87980
+ message.status = 200;
87981
+ break;
87982
+ case "BAD_REQUEST":
87983
+ case 400:
87984
+ message.status = 400;
87985
+ break;
87986
+ case "UNAUTHORIZED":
87987
+ case 401:
87988
+ message.status = 401;
87989
+ break;
87990
+ case "FORBIDDEN":
87991
+ case 403:
87992
+ message.status = 403;
87993
+ break;
87994
+ case "UNPROCESSABLE_ENTITY":
87995
+ case 422:
87996
+ message.status = 422;
87997
+ break;
87998
+ case "NOT_FOUND":
87999
+ case 404:
88000
+ message.status = 404;
88001
+ break;
88002
+ case "INTERNAL_SERVER_ERROR":
88003
+ case 500:
88004
+ message.status = 500;
88005
+ break;
88006
+ case "GATEWAY_TIMEOUT":
88007
+ case 504:
88008
+ message.status = 504;
88009
+ break;
88010
+ }
88011
+ if (object.errors) {
88012
+ if (!Array.isArray(object.errors))
88013
+ throw TypeError(".RefreshHiveTokenResponse.errors: array expected");
88014
+ message.errors = [];
88015
+ for (var i = 0; i < object.errors.length; ++i) {
88016
+ if (typeof object.errors[i] !== "object")
88017
+ throw TypeError(".RefreshHiveTokenResponse.errors: object expected");
88018
+ message.errors[i] = $root.Error.fromObject(object.errors[i]);
88019
+ }
88020
+ }
88021
+ if (object.organization != null) {
88022
+ if (typeof object.organization !== "object")
88023
+ throw TypeError(".RefreshHiveTokenResponse.organization: object expected");
88024
+ message.organization = $root.Organization.fromObject(object.organization);
88025
+ }
88026
+ return message;
88027
+ };
88028
+
88029
+ /**
88030
+ * Creates a plain object from a RefreshHiveTokenResponse message. Also converts values to other types if specified.
88031
+ * @function toObject
88032
+ * @memberof RefreshHiveTokenResponse
88033
+ * @static
88034
+ * @param {RefreshHiveTokenResponse} message RefreshHiveTokenResponse
88035
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
88036
+ * @returns {Object.<string,*>} Plain object
88037
+ */
88038
+ RefreshHiveTokenResponse.toObject = function toObject(message, options) {
88039
+ if (!options)
88040
+ options = {};
88041
+ var object = {};
88042
+ if (options.arrays || options.defaults)
88043
+ object.errors = [];
88044
+ if (options.defaults) {
88045
+ object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
88046
+ object.organization = null;
88047
+ }
88048
+ if (message.status != null && message.hasOwnProperty("status"))
88049
+ object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
88050
+ if (message.errors && message.errors.length) {
88051
+ object.errors = [];
88052
+ for (var j = 0; j < message.errors.length; ++j)
88053
+ object.errors[j] = $root.Error.toObject(message.errors[j], options);
88054
+ }
88055
+ if (message.organization != null && message.hasOwnProperty("organization"))
88056
+ object.organization = $root.Organization.toObject(message.organization, options);
88057
+ return object;
88058
+ };
88059
+
88060
+ /**
88061
+ * Converts this RefreshHiveTokenResponse to JSON.
88062
+ * @function toJSON
88063
+ * @memberof RefreshHiveTokenResponse
88064
+ * @instance
88065
+ * @returns {Object.<string,*>} JSON object
88066
+ */
88067
+ RefreshHiveTokenResponse.prototype.toJSON = function toJSON() {
88068
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
88069
+ };
88070
+
88071
+ return RefreshHiveTokenResponse;
88072
+ })();
88073
+
87557
88074
  $root.OrganizationService = (function() {
87558
88075
 
87559
88076
  /**
@@ -87883,6 +88400,39 @@ $root.OrganizationService = (function() {
87883
88400
  * @variation 2
87884
88401
  */
87885
88402
 
88403
+ /**
88404
+ * Callback as used by {@link OrganizationService#refreshHiveToken}.
88405
+ * @memberof OrganizationService
88406
+ * @typedef refreshHiveTokenCallback
88407
+ * @type {function}
88408
+ * @param {Error|null} error Error, if any
88409
+ * @param {RefreshHiveTokenResponse} [response] RefreshHiveTokenResponse
88410
+ */
88411
+
88412
+ /**
88413
+ * Calls refreshHiveToken.
88414
+ * @function refreshHiveToken
88415
+ * @memberof OrganizationService
88416
+ * @instance
88417
+ * @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
88418
+ * @param {OrganizationService.refreshHiveTokenCallback} callback Node-style callback called with the error, if any, and RefreshHiveTokenResponse
88419
+ * @returns {undefined}
88420
+ * @variation 1
88421
+ */
88422
+ Object.defineProperty(OrganizationService.prototype.refreshHiveToken = function refreshHiveToken(request, callback) {
88423
+ return this.rpcCall(refreshHiveToken, $root.RefreshHiveTokenRequest, $root.RefreshHiveTokenResponse, request, callback);
88424
+ }, "name", { value: "refreshHiveToken" });
88425
+
88426
+ /**
88427
+ * Calls refreshHiveToken.
88428
+ * @function refreshHiveToken
88429
+ * @memberof OrganizationService
88430
+ * @instance
88431
+ * @param {IRefreshHiveTokenRequest} request RefreshHiveTokenRequest message or plain object
88432
+ * @returns {Promise<RefreshHiveTokenResponse>} Promise
88433
+ * @variation 2
88434
+ */
88435
+
87886
88436
  return OrganizationService;
87887
88437
  })();
87888
88438
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sellout/models",
3
- "version": "0.0.422",
3
+ "version": "0.0.423",
4
4
  "description": "Sellout.io models",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@apollo/client": "^3.9.6",
20
20
  "@hapi/joi": "^17.1.1",
21
- "@sellout/utils": "^0.0.422",
21
+ "@sellout/utils": "^0.0.423",
22
22
  "@types/hapi__joi": "^16.0.1",
23
23
  "@types/shortid": "^0.0.29",
24
24
  "@types/zen-observable": "^0.8.7",
@@ -33,5 +33,5 @@
33
33
  "protobufjs": "^6.11.2",
34
34
  "typescript": "^4.9.5"
35
35
  },
36
- "gitHead": "026cde1e6076e3669b7fec24570b9bf4ecb29213"
36
+ "gitHead": "b6b801fb964ae8c31c42b3d5fd31c3871e99c7a3"
37
37
  }
@@ -172,6 +172,17 @@ message ConnectHiveResponse {
172
172
  Organization organization = 3;
173
173
  }
174
174
 
175
+ message RefreshHiveTokenRequest {
176
+ string spanContext = 1;
177
+ string orgId = 2;
178
+ }
179
+
180
+ message RefreshHiveTokenResponse {
181
+ StatusCode status = 1;
182
+ repeated Error errors = 2;
183
+ Organization organization = 3;
184
+ }
185
+
175
186
  service OrganizationService {
176
187
  // Create
177
188
  rpc createOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse) {}
@@ -190,4 +201,6 @@ service OrganizationService {
190
201
  rpc removeOrganizationStripeId(RemoveOrganizationStripeIdRequest) returns (RemoveOrganizationStripeIdResponse) {}
191
202
  // Connect Hive
192
203
  rpc connectHive(ConnectHiveRequest) returns (ConnectHiveResponse) {}
204
+ // Refresh Hive
205
+ rpc refreshHiveToken(RefreshHiveTokenRequest) returns (RefreshHiveTokenResponse) {}
193
206
  }