@headspace/protos-events 1.39.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +204 -100
- package/lib/index.js +484 -577
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2544,28 +2544,6 @@ $root.subscription = (function() {
|
|
|
2544
2544
|
return values;
|
|
2545
2545
|
})();
|
|
2546
2546
|
|
|
2547
|
-
/**
|
|
2548
|
-
* SubscriptionPlatform enum.
|
|
2549
|
-
* @name subscription.SubscriptionPlatform
|
|
2550
|
-
* @enum {string}
|
|
2551
|
-
* @property {number} PLATFORM_UNKNOWN=0 PLATFORM_UNKNOWN value
|
|
2552
|
-
* @property {number} ITUNES=1 ITUNES value
|
|
2553
|
-
* @property {number} PLAY_STORE=2 PLAY_STORE value
|
|
2554
|
-
* @property {number} ZUORA=3 ZUORA value
|
|
2555
|
-
* @property {number} HEADSPACE=4 HEADSPACE value
|
|
2556
|
-
* @property {number} SPOTIFY=5 SPOTIFY value
|
|
2557
|
-
*/
|
|
2558
|
-
subscription.SubscriptionPlatform = (function() {
|
|
2559
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
2560
|
-
values[valuesById[0] = "PLATFORM_UNKNOWN"] = 0;
|
|
2561
|
-
values[valuesById[1] = "ITUNES"] = 1;
|
|
2562
|
-
values[valuesById[2] = "PLAY_STORE"] = 2;
|
|
2563
|
-
values[valuesById[3] = "ZUORA"] = 3;
|
|
2564
|
-
values[valuesById[4] = "HEADSPACE"] = 4;
|
|
2565
|
-
values[valuesById[5] = "SPOTIFY"] = 5;
|
|
2566
|
-
return values;
|
|
2567
|
-
})();
|
|
2568
|
-
|
|
2569
2547
|
return subscription;
|
|
2570
2548
|
})();
|
|
2571
2549
|
|
|
@@ -4752,6 +4730,490 @@ $root.com = (function() {
|
|
|
4752
4730
|
return com;
|
|
4753
4731
|
})();
|
|
4754
4732
|
|
|
4733
|
+
$root.CompletedActivity = (function() {
|
|
4734
|
+
|
|
4735
|
+
/**
|
|
4736
|
+
* Properties of a CompletedActivity.
|
|
4737
|
+
* @exports ICompletedActivity
|
|
4738
|
+
* @interface ICompletedActivity
|
|
4739
|
+
* @property {string|null} [userId] CompletedActivity userId
|
|
4740
|
+
* @property {number|null} [duration] CompletedActivity duration
|
|
4741
|
+
* @property {number|null} [activityId] CompletedActivity activityId
|
|
4742
|
+
* @property {number|null} [activityVariationId] CompletedActivity activityVariationId
|
|
4743
|
+
* @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
|
|
4744
|
+
*/
|
|
4745
|
+
|
|
4746
|
+
/**
|
|
4747
|
+
* Constructs a new CompletedActivity.
|
|
4748
|
+
* @exports CompletedActivity
|
|
4749
|
+
* @classdesc Represents a CompletedActivity.
|
|
4750
|
+
* @implements ICompletedActivity
|
|
4751
|
+
* @constructor
|
|
4752
|
+
* @param {ICompletedActivity=} [properties] Properties to set
|
|
4753
|
+
*/
|
|
4754
|
+
function CompletedActivity(properties) {
|
|
4755
|
+
if (properties)
|
|
4756
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
4757
|
+
if (properties[keys[i]] != null)
|
|
4758
|
+
this[keys[i]] = properties[keys[i]];
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4761
|
+
/**
|
|
4762
|
+
* CompletedActivity userId.
|
|
4763
|
+
* @member {string} userId
|
|
4764
|
+
* @memberof CompletedActivity
|
|
4765
|
+
* @instance
|
|
4766
|
+
*/
|
|
4767
|
+
CompletedActivity.prototype.userId = "";
|
|
4768
|
+
|
|
4769
|
+
/**
|
|
4770
|
+
* CompletedActivity duration.
|
|
4771
|
+
* @member {number} duration
|
|
4772
|
+
* @memberof CompletedActivity
|
|
4773
|
+
* @instance
|
|
4774
|
+
*/
|
|
4775
|
+
CompletedActivity.prototype.duration = 0;
|
|
4776
|
+
|
|
4777
|
+
/**
|
|
4778
|
+
* CompletedActivity activityId.
|
|
4779
|
+
* @member {number} activityId
|
|
4780
|
+
* @memberof CompletedActivity
|
|
4781
|
+
* @instance
|
|
4782
|
+
*/
|
|
4783
|
+
CompletedActivity.prototype.activityId = 0;
|
|
4784
|
+
|
|
4785
|
+
/**
|
|
4786
|
+
* CompletedActivity activityVariationId.
|
|
4787
|
+
* @member {number} activityVariationId
|
|
4788
|
+
* @memberof CompletedActivity
|
|
4789
|
+
* @instance
|
|
4790
|
+
*/
|
|
4791
|
+
CompletedActivity.prototype.activityVariationId = 0;
|
|
4792
|
+
|
|
4793
|
+
/**
|
|
4794
|
+
* CompletedActivity completedAtIsoDate.
|
|
4795
|
+
* @member {string} completedAtIsoDate
|
|
4796
|
+
* @memberof CompletedActivity
|
|
4797
|
+
* @instance
|
|
4798
|
+
*/
|
|
4799
|
+
CompletedActivity.prototype.completedAtIsoDate = "";
|
|
4800
|
+
|
|
4801
|
+
/**
|
|
4802
|
+
* Creates a new CompletedActivity instance using the specified properties.
|
|
4803
|
+
* @function create
|
|
4804
|
+
* @memberof CompletedActivity
|
|
4805
|
+
* @static
|
|
4806
|
+
* @param {ICompletedActivity=} [properties] Properties to set
|
|
4807
|
+
* @returns {CompletedActivity} CompletedActivity instance
|
|
4808
|
+
*/
|
|
4809
|
+
CompletedActivity.create = function create(properties) {
|
|
4810
|
+
return new CompletedActivity(properties);
|
|
4811
|
+
};
|
|
4812
|
+
|
|
4813
|
+
/**
|
|
4814
|
+
* Encodes the specified CompletedActivity message. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
4815
|
+
* @function encode
|
|
4816
|
+
* @memberof CompletedActivity
|
|
4817
|
+
* @static
|
|
4818
|
+
* @param {ICompletedActivity} message CompletedActivity message or plain object to encode
|
|
4819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4820
|
+
* @returns {$protobuf.Writer} Writer
|
|
4821
|
+
*/
|
|
4822
|
+
CompletedActivity.encode = function encode(message, writer) {
|
|
4823
|
+
if (!writer)
|
|
4824
|
+
writer = $Writer.create();
|
|
4825
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4826
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
4827
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
4828
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.duration);
|
|
4829
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
4830
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.activityId);
|
|
4831
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
4832
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
|
|
4833
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
4834
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
|
|
4835
|
+
return writer;
|
|
4836
|
+
};
|
|
4837
|
+
|
|
4838
|
+
/**
|
|
4839
|
+
* Encodes the specified CompletedActivity message, length delimited. Does not implicitly {@link CompletedActivity.verify|verify} messages.
|
|
4840
|
+
* @function encodeDelimited
|
|
4841
|
+
* @memberof CompletedActivity
|
|
4842
|
+
* @static
|
|
4843
|
+
* @param {ICompletedActivity} message CompletedActivity message or plain object to encode
|
|
4844
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
4845
|
+
* @returns {$protobuf.Writer} Writer
|
|
4846
|
+
*/
|
|
4847
|
+
CompletedActivity.encodeDelimited = function encodeDelimited(message, writer) {
|
|
4848
|
+
return this.encode(message, writer).ldelim();
|
|
4849
|
+
};
|
|
4850
|
+
|
|
4851
|
+
/**
|
|
4852
|
+
* Decodes a CompletedActivity message from the specified reader or buffer.
|
|
4853
|
+
* @function decode
|
|
4854
|
+
* @memberof CompletedActivity
|
|
4855
|
+
* @static
|
|
4856
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4857
|
+
* @param {number} [length] Message length if known beforehand
|
|
4858
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
4859
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4860
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4861
|
+
*/
|
|
4862
|
+
CompletedActivity.decode = function decode(reader, length) {
|
|
4863
|
+
if (!(reader instanceof $Reader))
|
|
4864
|
+
reader = $Reader.create(reader);
|
|
4865
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CompletedActivity();
|
|
4866
|
+
while (reader.pos < end) {
|
|
4867
|
+
var tag = reader.uint32();
|
|
4868
|
+
switch (tag >>> 3) {
|
|
4869
|
+
case 1:
|
|
4870
|
+
message.userId = reader.string();
|
|
4871
|
+
break;
|
|
4872
|
+
case 2:
|
|
4873
|
+
message.duration = reader.uint32();
|
|
4874
|
+
break;
|
|
4875
|
+
case 3:
|
|
4876
|
+
message.activityId = reader.uint32();
|
|
4877
|
+
break;
|
|
4878
|
+
case 4:
|
|
4879
|
+
message.activityVariationId = reader.uint32();
|
|
4880
|
+
break;
|
|
4881
|
+
case 5:
|
|
4882
|
+
message.completedAtIsoDate = reader.string();
|
|
4883
|
+
break;
|
|
4884
|
+
default:
|
|
4885
|
+
reader.skipType(tag & 7);
|
|
4886
|
+
break;
|
|
4887
|
+
}
|
|
4888
|
+
}
|
|
4889
|
+
return message;
|
|
4890
|
+
};
|
|
4891
|
+
|
|
4892
|
+
/**
|
|
4893
|
+
* Decodes a CompletedActivity message from the specified reader or buffer, length delimited.
|
|
4894
|
+
* @function decodeDelimited
|
|
4895
|
+
* @memberof CompletedActivity
|
|
4896
|
+
* @static
|
|
4897
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
4898
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
4899
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4900
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4901
|
+
*/
|
|
4902
|
+
CompletedActivity.decodeDelimited = function decodeDelimited(reader) {
|
|
4903
|
+
if (!(reader instanceof $Reader))
|
|
4904
|
+
reader = new $Reader(reader);
|
|
4905
|
+
return this.decode(reader, reader.uint32());
|
|
4906
|
+
};
|
|
4907
|
+
|
|
4908
|
+
/**
|
|
4909
|
+
* Verifies a CompletedActivity message.
|
|
4910
|
+
* @function verify
|
|
4911
|
+
* @memberof CompletedActivity
|
|
4912
|
+
* @static
|
|
4913
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
4914
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
4915
|
+
*/
|
|
4916
|
+
CompletedActivity.verify = function verify(message) {
|
|
4917
|
+
if (typeof message !== "object" || message === null)
|
|
4918
|
+
return "object expected";
|
|
4919
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4920
|
+
if (!$util.isString(message.userId))
|
|
4921
|
+
return "userId: string expected";
|
|
4922
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
4923
|
+
if (!$util.isInteger(message.duration))
|
|
4924
|
+
return "duration: integer expected";
|
|
4925
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
4926
|
+
if (!$util.isInteger(message.activityId))
|
|
4927
|
+
return "activityId: integer expected";
|
|
4928
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
4929
|
+
if (!$util.isInteger(message.activityVariationId))
|
|
4930
|
+
return "activityVariationId: integer expected";
|
|
4931
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
4932
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
4933
|
+
return "completedAtIsoDate: string expected";
|
|
4934
|
+
return null;
|
|
4935
|
+
};
|
|
4936
|
+
|
|
4937
|
+
/**
|
|
4938
|
+
* Creates a CompletedActivity message from a plain object. Also converts values to their respective internal types.
|
|
4939
|
+
* @function fromObject
|
|
4940
|
+
* @memberof CompletedActivity
|
|
4941
|
+
* @static
|
|
4942
|
+
* @param {Object.<string,*>} object Plain object
|
|
4943
|
+
* @returns {CompletedActivity} CompletedActivity
|
|
4944
|
+
*/
|
|
4945
|
+
CompletedActivity.fromObject = function fromObject(object) {
|
|
4946
|
+
if (object instanceof $root.CompletedActivity)
|
|
4947
|
+
return object;
|
|
4948
|
+
var message = new $root.CompletedActivity();
|
|
4949
|
+
if (object.userId != null)
|
|
4950
|
+
message.userId = String(object.userId);
|
|
4951
|
+
if (object.duration != null)
|
|
4952
|
+
message.duration = object.duration >>> 0;
|
|
4953
|
+
if (object.activityId != null)
|
|
4954
|
+
message.activityId = object.activityId >>> 0;
|
|
4955
|
+
if (object.activityVariationId != null)
|
|
4956
|
+
message.activityVariationId = object.activityVariationId >>> 0;
|
|
4957
|
+
if (object.completedAtIsoDate != null)
|
|
4958
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
4959
|
+
return message;
|
|
4960
|
+
};
|
|
4961
|
+
|
|
4962
|
+
/**
|
|
4963
|
+
* Creates a plain object from a CompletedActivity message. Also converts values to other types if specified.
|
|
4964
|
+
* @function toObject
|
|
4965
|
+
* @memberof CompletedActivity
|
|
4966
|
+
* @static
|
|
4967
|
+
* @param {CompletedActivity} message CompletedActivity
|
|
4968
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
4969
|
+
* @returns {Object.<string,*>} Plain object
|
|
4970
|
+
*/
|
|
4971
|
+
CompletedActivity.toObject = function toObject(message, options) {
|
|
4972
|
+
if (!options)
|
|
4973
|
+
options = {};
|
|
4974
|
+
var object = {};
|
|
4975
|
+
if (options.defaults) {
|
|
4976
|
+
object.userId = "";
|
|
4977
|
+
object.duration = 0;
|
|
4978
|
+
object.activityId = 0;
|
|
4979
|
+
object.activityVariationId = 0;
|
|
4980
|
+
object.completedAtIsoDate = "";
|
|
4981
|
+
}
|
|
4982
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
4983
|
+
object.userId = message.userId;
|
|
4984
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
4985
|
+
object.duration = message.duration;
|
|
4986
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
4987
|
+
object.activityId = message.activityId;
|
|
4988
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
4989
|
+
object.activityVariationId = message.activityVariationId;
|
|
4990
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
4991
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
4992
|
+
return object;
|
|
4993
|
+
};
|
|
4994
|
+
|
|
4995
|
+
/**
|
|
4996
|
+
* Converts this CompletedActivity to JSON.
|
|
4997
|
+
* @function toJSON
|
|
4998
|
+
* @memberof CompletedActivity
|
|
4999
|
+
* @instance
|
|
5000
|
+
* @returns {Object.<string,*>} JSON object
|
|
5001
|
+
*/
|
|
5002
|
+
CompletedActivity.prototype.toJSON = function toJSON() {
|
|
5003
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5004
|
+
};
|
|
5005
|
+
|
|
5006
|
+
return CompletedActivity;
|
|
5007
|
+
})();
|
|
5008
|
+
|
|
5009
|
+
$root.CompletedActivities = (function() {
|
|
5010
|
+
|
|
5011
|
+
/**
|
|
5012
|
+
* Properties of a CompletedActivities.
|
|
5013
|
+
* @exports ICompletedActivities
|
|
5014
|
+
* @interface ICompletedActivities
|
|
5015
|
+
* @property {Array.<ICompletedActivity>|null} [activities] CompletedActivities activities
|
|
5016
|
+
*/
|
|
5017
|
+
|
|
5018
|
+
/**
|
|
5019
|
+
* Constructs a new CompletedActivities.
|
|
5020
|
+
* @exports CompletedActivities
|
|
5021
|
+
* @classdesc Represents a CompletedActivities.
|
|
5022
|
+
* @implements ICompletedActivities
|
|
5023
|
+
* @constructor
|
|
5024
|
+
* @param {ICompletedActivities=} [properties] Properties to set
|
|
5025
|
+
*/
|
|
5026
|
+
function CompletedActivities(properties) {
|
|
5027
|
+
this.activities = [];
|
|
5028
|
+
if (properties)
|
|
5029
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5030
|
+
if (properties[keys[i]] != null)
|
|
5031
|
+
this[keys[i]] = properties[keys[i]];
|
|
5032
|
+
}
|
|
5033
|
+
|
|
5034
|
+
/**
|
|
5035
|
+
* CompletedActivities activities.
|
|
5036
|
+
* @member {Array.<ICompletedActivity>} activities
|
|
5037
|
+
* @memberof CompletedActivities
|
|
5038
|
+
* @instance
|
|
5039
|
+
*/
|
|
5040
|
+
CompletedActivities.prototype.activities = $util.emptyArray;
|
|
5041
|
+
|
|
5042
|
+
/**
|
|
5043
|
+
* Creates a new CompletedActivities instance using the specified properties.
|
|
5044
|
+
* @function create
|
|
5045
|
+
* @memberof CompletedActivities
|
|
5046
|
+
* @static
|
|
5047
|
+
* @param {ICompletedActivities=} [properties] Properties to set
|
|
5048
|
+
* @returns {CompletedActivities} CompletedActivities instance
|
|
5049
|
+
*/
|
|
5050
|
+
CompletedActivities.create = function create(properties) {
|
|
5051
|
+
return new CompletedActivities(properties);
|
|
5052
|
+
};
|
|
5053
|
+
|
|
5054
|
+
/**
|
|
5055
|
+
* Encodes the specified CompletedActivities message. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
5056
|
+
* @function encode
|
|
5057
|
+
* @memberof CompletedActivities
|
|
5058
|
+
* @static
|
|
5059
|
+
* @param {ICompletedActivities} message CompletedActivities message or plain object to encode
|
|
5060
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5061
|
+
* @returns {$protobuf.Writer} Writer
|
|
5062
|
+
*/
|
|
5063
|
+
CompletedActivities.encode = function encode(message, writer) {
|
|
5064
|
+
if (!writer)
|
|
5065
|
+
writer = $Writer.create();
|
|
5066
|
+
if (message.activities != null && message.activities.length)
|
|
5067
|
+
for (var i = 0; i < message.activities.length; ++i)
|
|
5068
|
+
$root.CompletedActivity.encode(message.activities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
5069
|
+
return writer;
|
|
5070
|
+
};
|
|
5071
|
+
|
|
5072
|
+
/**
|
|
5073
|
+
* Encodes the specified CompletedActivities message, length delimited. Does not implicitly {@link CompletedActivities.verify|verify} messages.
|
|
5074
|
+
* @function encodeDelimited
|
|
5075
|
+
* @memberof CompletedActivities
|
|
5076
|
+
* @static
|
|
5077
|
+
* @param {ICompletedActivities} message CompletedActivities message or plain object to encode
|
|
5078
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5079
|
+
* @returns {$protobuf.Writer} Writer
|
|
5080
|
+
*/
|
|
5081
|
+
CompletedActivities.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5082
|
+
return this.encode(message, writer).ldelim();
|
|
5083
|
+
};
|
|
5084
|
+
|
|
5085
|
+
/**
|
|
5086
|
+
* Decodes a CompletedActivities message from the specified reader or buffer.
|
|
5087
|
+
* @function decode
|
|
5088
|
+
* @memberof CompletedActivities
|
|
5089
|
+
* @static
|
|
5090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5091
|
+
* @param {number} [length] Message length if known beforehand
|
|
5092
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
5093
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5094
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5095
|
+
*/
|
|
5096
|
+
CompletedActivities.decode = function decode(reader, length) {
|
|
5097
|
+
if (!(reader instanceof $Reader))
|
|
5098
|
+
reader = $Reader.create(reader);
|
|
5099
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CompletedActivities();
|
|
5100
|
+
while (reader.pos < end) {
|
|
5101
|
+
var tag = reader.uint32();
|
|
5102
|
+
switch (tag >>> 3) {
|
|
5103
|
+
case 1:
|
|
5104
|
+
if (!(message.activities && message.activities.length))
|
|
5105
|
+
message.activities = [];
|
|
5106
|
+
message.activities.push($root.CompletedActivity.decode(reader, reader.uint32()));
|
|
5107
|
+
break;
|
|
5108
|
+
default:
|
|
5109
|
+
reader.skipType(tag & 7);
|
|
5110
|
+
break;
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
return message;
|
|
5114
|
+
};
|
|
5115
|
+
|
|
5116
|
+
/**
|
|
5117
|
+
* Decodes a CompletedActivities message from the specified reader or buffer, length delimited.
|
|
5118
|
+
* @function decodeDelimited
|
|
5119
|
+
* @memberof CompletedActivities
|
|
5120
|
+
* @static
|
|
5121
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5122
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
5123
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5124
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5125
|
+
*/
|
|
5126
|
+
CompletedActivities.decodeDelimited = function decodeDelimited(reader) {
|
|
5127
|
+
if (!(reader instanceof $Reader))
|
|
5128
|
+
reader = new $Reader(reader);
|
|
5129
|
+
return this.decode(reader, reader.uint32());
|
|
5130
|
+
};
|
|
5131
|
+
|
|
5132
|
+
/**
|
|
5133
|
+
* Verifies a CompletedActivities message.
|
|
5134
|
+
* @function verify
|
|
5135
|
+
* @memberof CompletedActivities
|
|
5136
|
+
* @static
|
|
5137
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5138
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5139
|
+
*/
|
|
5140
|
+
CompletedActivities.verify = function verify(message) {
|
|
5141
|
+
if (typeof message !== "object" || message === null)
|
|
5142
|
+
return "object expected";
|
|
5143
|
+
if (message.activities != null && message.hasOwnProperty("activities")) {
|
|
5144
|
+
if (!Array.isArray(message.activities))
|
|
5145
|
+
return "activities: array expected";
|
|
5146
|
+
for (var i = 0; i < message.activities.length; ++i) {
|
|
5147
|
+
var error = $root.CompletedActivity.verify(message.activities[i]);
|
|
5148
|
+
if (error)
|
|
5149
|
+
return "activities." + error;
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
return null;
|
|
5153
|
+
};
|
|
5154
|
+
|
|
5155
|
+
/**
|
|
5156
|
+
* Creates a CompletedActivities message from a plain object. Also converts values to their respective internal types.
|
|
5157
|
+
* @function fromObject
|
|
5158
|
+
* @memberof CompletedActivities
|
|
5159
|
+
* @static
|
|
5160
|
+
* @param {Object.<string,*>} object Plain object
|
|
5161
|
+
* @returns {CompletedActivities} CompletedActivities
|
|
5162
|
+
*/
|
|
5163
|
+
CompletedActivities.fromObject = function fromObject(object) {
|
|
5164
|
+
if (object instanceof $root.CompletedActivities)
|
|
5165
|
+
return object;
|
|
5166
|
+
var message = new $root.CompletedActivities();
|
|
5167
|
+
if (object.activities) {
|
|
5168
|
+
if (!Array.isArray(object.activities))
|
|
5169
|
+
throw TypeError(".CompletedActivities.activities: array expected");
|
|
5170
|
+
message.activities = [];
|
|
5171
|
+
for (var i = 0; i < object.activities.length; ++i) {
|
|
5172
|
+
if (typeof object.activities[i] !== "object")
|
|
5173
|
+
throw TypeError(".CompletedActivities.activities: object expected");
|
|
5174
|
+
message.activities[i] = $root.CompletedActivity.fromObject(object.activities[i]);
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
return message;
|
|
5178
|
+
};
|
|
5179
|
+
|
|
5180
|
+
/**
|
|
5181
|
+
* Creates a plain object from a CompletedActivities message. Also converts values to other types if specified.
|
|
5182
|
+
* @function toObject
|
|
5183
|
+
* @memberof CompletedActivities
|
|
5184
|
+
* @static
|
|
5185
|
+
* @param {CompletedActivities} message CompletedActivities
|
|
5186
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5187
|
+
* @returns {Object.<string,*>} Plain object
|
|
5188
|
+
*/
|
|
5189
|
+
CompletedActivities.toObject = function toObject(message, options) {
|
|
5190
|
+
if (!options)
|
|
5191
|
+
options = {};
|
|
5192
|
+
var object = {};
|
|
5193
|
+
if (options.arrays || options.defaults)
|
|
5194
|
+
object.activities = [];
|
|
5195
|
+
if (message.activities && message.activities.length) {
|
|
5196
|
+
object.activities = [];
|
|
5197
|
+
for (var j = 0; j < message.activities.length; ++j)
|
|
5198
|
+
object.activities[j] = $root.CompletedActivity.toObject(message.activities[j], options);
|
|
5199
|
+
}
|
|
5200
|
+
return object;
|
|
5201
|
+
};
|
|
5202
|
+
|
|
5203
|
+
/**
|
|
5204
|
+
* Converts this CompletedActivities to JSON.
|
|
5205
|
+
* @function toJSON
|
|
5206
|
+
* @memberof CompletedActivities
|
|
5207
|
+
* @instance
|
|
5208
|
+
* @returns {Object.<string,*>} JSON object
|
|
5209
|
+
*/
|
|
5210
|
+
CompletedActivities.prototype.toJSON = function toJSON() {
|
|
5211
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
return CompletedActivities;
|
|
5215
|
+
})();
|
|
5216
|
+
|
|
4755
5217
|
$root.ContentPlayed = (function() {
|
|
4756
5218
|
|
|
4757
5219
|
/**
|
|
@@ -7919,11 +8381,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
7919
8381
|
* @property {number|null} [id] SubscriptionCreated id
|
|
7920
8382
|
* @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
|
|
7921
8383
|
* @property {string|null} [userId] SubscriptionCreated userId
|
|
7922
|
-
* @property {number|Long|null} [createdAt] SubscriptionCreated createdAt
|
|
7923
|
-
* @property {number|Long|null} [startsAt] SubscriptionCreated startsAt
|
|
7924
|
-
* @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
|
|
7925
|
-
* @property {string|null} [voucherCode] SubscriptionCreated voucherCode
|
|
7926
|
-
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
|
|
7927
8384
|
*/
|
|
7928
8385
|
|
|
7929
8386
|
/**
|
|
@@ -7965,46 +8422,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
7965
8422
|
*/
|
|
7966
8423
|
SubscriptionCreated.prototype.userId = "";
|
|
7967
8424
|
|
|
7968
|
-
/**
|
|
7969
|
-
* SubscriptionCreated createdAt.
|
|
7970
|
-
* @member {number|Long} createdAt
|
|
7971
|
-
* @memberof SubscriptionCreated
|
|
7972
|
-
* @instance
|
|
7973
|
-
*/
|
|
7974
|
-
SubscriptionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
7975
|
-
|
|
7976
|
-
/**
|
|
7977
|
-
* SubscriptionCreated startsAt.
|
|
7978
|
-
* @member {number|Long} startsAt
|
|
7979
|
-
* @memberof SubscriptionCreated
|
|
7980
|
-
* @instance
|
|
7981
|
-
*/
|
|
7982
|
-
SubscriptionCreated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
7983
|
-
|
|
7984
|
-
/**
|
|
7985
|
-
* SubscriptionCreated endsAt.
|
|
7986
|
-
* @member {number|Long} endsAt
|
|
7987
|
-
* @memberof SubscriptionCreated
|
|
7988
|
-
* @instance
|
|
7989
|
-
*/
|
|
7990
|
-
SubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
7991
|
-
|
|
7992
|
-
/**
|
|
7993
|
-
* SubscriptionCreated voucherCode.
|
|
7994
|
-
* @member {string} voucherCode
|
|
7995
|
-
* @memberof SubscriptionCreated
|
|
7996
|
-
* @instance
|
|
7997
|
-
*/
|
|
7998
|
-
SubscriptionCreated.prototype.voucherCode = "";
|
|
7999
|
-
|
|
8000
|
-
/**
|
|
8001
|
-
* SubscriptionCreated platform.
|
|
8002
|
-
* @member {subscription.SubscriptionPlatform} platform
|
|
8003
|
-
* @memberof SubscriptionCreated
|
|
8004
|
-
* @instance
|
|
8005
|
-
*/
|
|
8006
|
-
SubscriptionCreated.prototype.platform = 0;
|
|
8007
|
-
|
|
8008
8425
|
/**
|
|
8009
8426
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
8010
8427
|
* @function create
|
|
@@ -8035,16 +8452,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8035
8452
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
8036
8453
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8037
8454
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
8038
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8039
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
8040
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8041
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
8042
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8043
|
-
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
8044
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8045
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
8046
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8047
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8048
8455
|
return writer;
|
|
8049
8456
|
};
|
|
8050
8457
|
|
|
@@ -8088,21 +8495,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8088
8495
|
case 3:
|
|
8089
8496
|
message.userId = reader.string();
|
|
8090
8497
|
break;
|
|
8091
|
-
case 4:
|
|
8092
|
-
message.createdAt = reader.uint64();
|
|
8093
|
-
break;
|
|
8094
|
-
case 5:
|
|
8095
|
-
message.startsAt = reader.uint64();
|
|
8096
|
-
break;
|
|
8097
|
-
case 6:
|
|
8098
|
-
message.endsAt = reader.uint64();
|
|
8099
|
-
break;
|
|
8100
|
-
case 7:
|
|
8101
|
-
message.voucherCode = reader.string();
|
|
8102
|
-
break;
|
|
8103
|
-
case 8:
|
|
8104
|
-
message.platform = reader.int32();
|
|
8105
|
-
break;
|
|
8106
8498
|
default:
|
|
8107
8499
|
reader.skipType(tag & 7);
|
|
8108
8500
|
break;
|
|
@@ -8147,30 +8539,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8147
8539
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8148
8540
|
if (!$util.isString(message.userId))
|
|
8149
8541
|
return "userId: string expected";
|
|
8150
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8151
|
-
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
8152
|
-
return "createdAt: integer|Long expected";
|
|
8153
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8154
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
8155
|
-
return "startsAt: integer|Long expected";
|
|
8156
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8157
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
8158
|
-
return "endsAt: integer|Long expected";
|
|
8159
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8160
|
-
if (!$util.isString(message.voucherCode))
|
|
8161
|
-
return "voucherCode: string expected";
|
|
8162
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8163
|
-
switch (message.platform) {
|
|
8164
|
-
default:
|
|
8165
|
-
return "platform: enum value expected";
|
|
8166
|
-
case 0:
|
|
8167
|
-
case 1:
|
|
8168
|
-
case 2:
|
|
8169
|
-
case 3:
|
|
8170
|
-
case 4:
|
|
8171
|
-
case 5:
|
|
8172
|
-
break;
|
|
8173
|
-
}
|
|
8174
8542
|
return null;
|
|
8175
8543
|
};
|
|
8176
8544
|
|
|
@@ -8199,61 +8567,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8199
8567
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
8200
8568
|
if (object.userId != null)
|
|
8201
8569
|
message.userId = String(object.userId);
|
|
8202
|
-
if (object.createdAt != null)
|
|
8203
|
-
if ($util.Long)
|
|
8204
|
-
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
8205
|
-
else if (typeof object.createdAt === "string")
|
|
8206
|
-
message.createdAt = parseInt(object.createdAt, 10);
|
|
8207
|
-
else if (typeof object.createdAt === "number")
|
|
8208
|
-
message.createdAt = object.createdAt;
|
|
8209
|
-
else if (typeof object.createdAt === "object")
|
|
8210
|
-
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
8211
|
-
if (object.startsAt != null)
|
|
8212
|
-
if ($util.Long)
|
|
8213
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
8214
|
-
else if (typeof object.startsAt === "string")
|
|
8215
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
8216
|
-
else if (typeof object.startsAt === "number")
|
|
8217
|
-
message.startsAt = object.startsAt;
|
|
8218
|
-
else if (typeof object.startsAt === "object")
|
|
8219
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
8220
|
-
if (object.endsAt != null)
|
|
8221
|
-
if ($util.Long)
|
|
8222
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
8223
|
-
else if (typeof object.endsAt === "string")
|
|
8224
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
8225
|
-
else if (typeof object.endsAt === "number")
|
|
8226
|
-
message.endsAt = object.endsAt;
|
|
8227
|
-
else if (typeof object.endsAt === "object")
|
|
8228
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
8229
|
-
if (object.voucherCode != null)
|
|
8230
|
-
message.voucherCode = String(object.voucherCode);
|
|
8231
|
-
switch (object.platform) {
|
|
8232
|
-
case "PLATFORM_UNKNOWN":
|
|
8233
|
-
case 0:
|
|
8234
|
-
message.platform = 0;
|
|
8235
|
-
break;
|
|
8236
|
-
case "ITUNES":
|
|
8237
|
-
case 1:
|
|
8238
|
-
message.platform = 1;
|
|
8239
|
-
break;
|
|
8240
|
-
case "PLAY_STORE":
|
|
8241
|
-
case 2:
|
|
8242
|
-
message.platform = 2;
|
|
8243
|
-
break;
|
|
8244
|
-
case "ZUORA":
|
|
8245
|
-
case 3:
|
|
8246
|
-
message.platform = 3;
|
|
8247
|
-
break;
|
|
8248
|
-
case "HEADSPACE":
|
|
8249
|
-
case 4:
|
|
8250
|
-
message.platform = 4;
|
|
8251
|
-
break;
|
|
8252
|
-
case "SPOTIFY":
|
|
8253
|
-
case 5:
|
|
8254
|
-
message.platform = 5;
|
|
8255
|
-
break;
|
|
8256
|
-
}
|
|
8257
8570
|
return message;
|
|
8258
8571
|
};
|
|
8259
8572
|
|
|
@@ -8278,23 +8591,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8278
8591
|
} else
|
|
8279
8592
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
8280
8593
|
object.userId = "";
|
|
8281
|
-
if ($util.Long) {
|
|
8282
|
-
var long = new $util.Long(0, 0, true);
|
|
8283
|
-
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8284
|
-
} else
|
|
8285
|
-
object.createdAt = options.longs === String ? "0" : 0;
|
|
8286
|
-
if ($util.Long) {
|
|
8287
|
-
var long = new $util.Long(0, 0, true);
|
|
8288
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8289
|
-
} else
|
|
8290
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
8291
|
-
if ($util.Long) {
|
|
8292
|
-
var long = new $util.Long(0, 0, true);
|
|
8293
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8294
|
-
} else
|
|
8295
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
8296
|
-
object.voucherCode = "";
|
|
8297
|
-
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8298
8594
|
}
|
|
8299
8595
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8300
8596
|
object.id = message.id;
|
|
@@ -8305,25 +8601,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
8305
8601
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
8306
8602
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8307
8603
|
object.userId = message.userId;
|
|
8308
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8309
|
-
if (typeof message.createdAt === "number")
|
|
8310
|
-
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
8311
|
-
else
|
|
8312
|
-
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
8313
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8314
|
-
if (typeof message.startsAt === "number")
|
|
8315
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
8316
|
-
else
|
|
8317
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
8318
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8319
|
-
if (typeof message.endsAt === "number")
|
|
8320
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
8321
|
-
else
|
|
8322
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
8323
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8324
|
-
object.voucherCode = message.voucherCode;
|
|
8325
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8326
|
-
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8327
8604
|
return object;
|
|
8328
8605
|
};
|
|
8329
8606
|
|
|
@@ -8351,11 +8628,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8351
8628
|
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
8352
8629
|
* @property {string|null} [userId] SubscriptionCancelled userId
|
|
8353
8630
|
* @property {subscription.IPaymentMethod|null} [paymentMethod] SubscriptionCancelled paymentMethod
|
|
8354
|
-
* @property {number|Long|null} [createdAt] SubscriptionCancelled createdAt
|
|
8355
|
-
* @property {number|Long|null} [startsAt] SubscriptionCancelled startsAt
|
|
8356
|
-
* @property {number|Long|null} [endsAt] SubscriptionCancelled endsAt
|
|
8357
|
-
* @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
|
|
8358
|
-
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8359
8631
|
*/
|
|
8360
8632
|
|
|
8361
8633
|
/**
|
|
@@ -8405,46 +8677,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8405
8677
|
*/
|
|
8406
8678
|
SubscriptionCancelled.prototype.paymentMethod = null;
|
|
8407
8679
|
|
|
8408
|
-
/**
|
|
8409
|
-
* SubscriptionCancelled createdAt.
|
|
8410
|
-
* @member {number|Long} createdAt
|
|
8411
|
-
* @memberof SubscriptionCancelled
|
|
8412
|
-
* @instance
|
|
8413
|
-
*/
|
|
8414
|
-
SubscriptionCancelled.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8415
|
-
|
|
8416
|
-
/**
|
|
8417
|
-
* SubscriptionCancelled startsAt.
|
|
8418
|
-
* @member {number|Long} startsAt
|
|
8419
|
-
* @memberof SubscriptionCancelled
|
|
8420
|
-
* @instance
|
|
8421
|
-
*/
|
|
8422
|
-
SubscriptionCancelled.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8423
|
-
|
|
8424
|
-
/**
|
|
8425
|
-
* SubscriptionCancelled endsAt.
|
|
8426
|
-
* @member {number|Long} endsAt
|
|
8427
|
-
* @memberof SubscriptionCancelled
|
|
8428
|
-
* @instance
|
|
8429
|
-
*/
|
|
8430
|
-
SubscriptionCancelled.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8431
|
-
|
|
8432
|
-
/**
|
|
8433
|
-
* SubscriptionCancelled voucherCode.
|
|
8434
|
-
* @member {string} voucherCode
|
|
8435
|
-
* @memberof SubscriptionCancelled
|
|
8436
|
-
* @instance
|
|
8437
|
-
*/
|
|
8438
|
-
SubscriptionCancelled.prototype.voucherCode = "";
|
|
8439
|
-
|
|
8440
|
-
/**
|
|
8441
|
-
* SubscriptionCancelled platform.
|
|
8442
|
-
* @member {subscription.SubscriptionPlatform} platform
|
|
8443
|
-
* @memberof SubscriptionCancelled
|
|
8444
|
-
* @instance
|
|
8445
|
-
*/
|
|
8446
|
-
SubscriptionCancelled.prototype.platform = 0;
|
|
8447
|
-
|
|
8448
8680
|
/**
|
|
8449
8681
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8450
8682
|
* @function create
|
|
@@ -8477,16 +8709,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8477
8709
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
8478
8710
|
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
|
|
8479
8711
|
$root.subscription.PaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
8480
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8481
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
8482
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8483
|
-
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.startsAt);
|
|
8484
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8485
|
-
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.endsAt);
|
|
8486
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8487
|
-
writer.uint32(/* id 8, wireType 2 =*/66).string(message.voucherCode);
|
|
8488
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8489
|
-
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
|
|
8490
8712
|
return writer;
|
|
8491
8713
|
};
|
|
8492
8714
|
|
|
@@ -8533,21 +8755,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8533
8755
|
case 4:
|
|
8534
8756
|
message.paymentMethod = $root.subscription.PaymentMethod.decode(reader, reader.uint32());
|
|
8535
8757
|
break;
|
|
8536
|
-
case 5:
|
|
8537
|
-
message.createdAt = reader.uint64();
|
|
8538
|
-
break;
|
|
8539
|
-
case 6:
|
|
8540
|
-
message.startsAt = reader.uint64();
|
|
8541
|
-
break;
|
|
8542
|
-
case 7:
|
|
8543
|
-
message.endsAt = reader.uint64();
|
|
8544
|
-
break;
|
|
8545
|
-
case 8:
|
|
8546
|
-
message.voucherCode = reader.string();
|
|
8547
|
-
break;
|
|
8548
|
-
case 9:
|
|
8549
|
-
message.platform = reader.int32();
|
|
8550
|
-
break;
|
|
8551
8758
|
default:
|
|
8552
8759
|
reader.skipType(tag & 7);
|
|
8553
8760
|
break;
|
|
@@ -8597,30 +8804,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8597
8804
|
if (error)
|
|
8598
8805
|
return "paymentMethod." + error;
|
|
8599
8806
|
}
|
|
8600
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8601
|
-
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
8602
|
-
return "createdAt: integer|Long expected";
|
|
8603
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8604
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
8605
|
-
return "startsAt: integer|Long expected";
|
|
8606
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8607
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
8608
|
-
return "endsAt: integer|Long expected";
|
|
8609
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8610
|
-
if (!$util.isString(message.voucherCode))
|
|
8611
|
-
return "voucherCode: string expected";
|
|
8612
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8613
|
-
switch (message.platform) {
|
|
8614
|
-
default:
|
|
8615
|
-
return "platform: enum value expected";
|
|
8616
|
-
case 0:
|
|
8617
|
-
case 1:
|
|
8618
|
-
case 2:
|
|
8619
|
-
case 3:
|
|
8620
|
-
case 4:
|
|
8621
|
-
case 5:
|
|
8622
|
-
break;
|
|
8623
|
-
}
|
|
8624
8807
|
return null;
|
|
8625
8808
|
};
|
|
8626
8809
|
|
|
@@ -8654,61 +8837,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8654
8837
|
throw TypeError(".SubscriptionCancelled.paymentMethod: object expected");
|
|
8655
8838
|
message.paymentMethod = $root.subscription.PaymentMethod.fromObject(object.paymentMethod);
|
|
8656
8839
|
}
|
|
8657
|
-
if (object.createdAt != null)
|
|
8658
|
-
if ($util.Long)
|
|
8659
|
-
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
8660
|
-
else if (typeof object.createdAt === "string")
|
|
8661
|
-
message.createdAt = parseInt(object.createdAt, 10);
|
|
8662
|
-
else if (typeof object.createdAt === "number")
|
|
8663
|
-
message.createdAt = object.createdAt;
|
|
8664
|
-
else if (typeof object.createdAt === "object")
|
|
8665
|
-
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
8666
|
-
if (object.startsAt != null)
|
|
8667
|
-
if ($util.Long)
|
|
8668
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
8669
|
-
else if (typeof object.startsAt === "string")
|
|
8670
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
8671
|
-
else if (typeof object.startsAt === "number")
|
|
8672
|
-
message.startsAt = object.startsAt;
|
|
8673
|
-
else if (typeof object.startsAt === "object")
|
|
8674
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
8675
|
-
if (object.endsAt != null)
|
|
8676
|
-
if ($util.Long)
|
|
8677
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
8678
|
-
else if (typeof object.endsAt === "string")
|
|
8679
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
8680
|
-
else if (typeof object.endsAt === "number")
|
|
8681
|
-
message.endsAt = object.endsAt;
|
|
8682
|
-
else if (typeof object.endsAt === "object")
|
|
8683
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
8684
|
-
if (object.voucherCode != null)
|
|
8685
|
-
message.voucherCode = String(object.voucherCode);
|
|
8686
|
-
switch (object.platform) {
|
|
8687
|
-
case "PLATFORM_UNKNOWN":
|
|
8688
|
-
case 0:
|
|
8689
|
-
message.platform = 0;
|
|
8690
|
-
break;
|
|
8691
|
-
case "ITUNES":
|
|
8692
|
-
case 1:
|
|
8693
|
-
message.platform = 1;
|
|
8694
|
-
break;
|
|
8695
|
-
case "PLAY_STORE":
|
|
8696
|
-
case 2:
|
|
8697
|
-
message.platform = 2;
|
|
8698
|
-
break;
|
|
8699
|
-
case "ZUORA":
|
|
8700
|
-
case 3:
|
|
8701
|
-
message.platform = 3;
|
|
8702
|
-
break;
|
|
8703
|
-
case "HEADSPACE":
|
|
8704
|
-
case 4:
|
|
8705
|
-
message.platform = 4;
|
|
8706
|
-
break;
|
|
8707
|
-
case "SPOTIFY":
|
|
8708
|
-
case 5:
|
|
8709
|
-
message.platform = 5;
|
|
8710
|
-
break;
|
|
8711
|
-
}
|
|
8712
8840
|
return message;
|
|
8713
8841
|
};
|
|
8714
8842
|
|
|
@@ -8734,23 +8862,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8734
8862
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
8735
8863
|
object.userId = "";
|
|
8736
8864
|
object.paymentMethod = null;
|
|
8737
|
-
if ($util.Long) {
|
|
8738
|
-
var long = new $util.Long(0, 0, true);
|
|
8739
|
-
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8740
|
-
} else
|
|
8741
|
-
object.createdAt = options.longs === String ? "0" : 0;
|
|
8742
|
-
if ($util.Long) {
|
|
8743
|
-
var long = new $util.Long(0, 0, true);
|
|
8744
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8745
|
-
} else
|
|
8746
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
8747
|
-
if ($util.Long) {
|
|
8748
|
-
var long = new $util.Long(0, 0, true);
|
|
8749
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8750
|
-
} else
|
|
8751
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
8752
|
-
object.voucherCode = "";
|
|
8753
|
-
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8754
8865
|
}
|
|
8755
8866
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8756
8867
|
object.id = message.id;
|
|
@@ -8763,25 +8874,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8763
8874
|
object.userId = message.userId;
|
|
8764
8875
|
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
|
|
8765
8876
|
object.paymentMethod = $root.subscription.PaymentMethod.toObject(message.paymentMethod, options);
|
|
8766
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8767
|
-
if (typeof message.createdAt === "number")
|
|
8768
|
-
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
8769
|
-
else
|
|
8770
|
-
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
8771
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8772
|
-
if (typeof message.startsAt === "number")
|
|
8773
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
8774
|
-
else
|
|
8775
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
8776
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8777
|
-
if (typeof message.endsAt === "number")
|
|
8778
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
8779
|
-
else
|
|
8780
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
8781
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8782
|
-
object.voucherCode = message.voucherCode;
|
|
8783
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8784
|
-
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8785
8877
|
return object;
|
|
8786
8878
|
};
|
|
8787
8879
|
|
|
@@ -8808,11 +8900,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8808
8900
|
* @property {number|null} [id] SubscriptionRenewed id
|
|
8809
8901
|
* @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
|
|
8810
8902
|
* @property {string|null} [userId] SubscriptionRenewed userId
|
|
8811
|
-
* @property {number|Long|null} [createdAt] SubscriptionRenewed createdAt
|
|
8812
|
-
* @property {number|Long|null} [startsAt] SubscriptionRenewed startsAt
|
|
8813
|
-
* @property {number|Long|null} [endsAt] SubscriptionRenewed endsAt
|
|
8814
|
-
* @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
|
|
8815
|
-
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
|
|
8816
8903
|
*/
|
|
8817
8904
|
|
|
8818
8905
|
/**
|
|
@@ -8854,46 +8941,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8854
8941
|
*/
|
|
8855
8942
|
SubscriptionRenewed.prototype.userId = "";
|
|
8856
8943
|
|
|
8857
|
-
/**
|
|
8858
|
-
* SubscriptionRenewed createdAt.
|
|
8859
|
-
* @member {number|Long} createdAt
|
|
8860
|
-
* @memberof SubscriptionRenewed
|
|
8861
|
-
* @instance
|
|
8862
|
-
*/
|
|
8863
|
-
SubscriptionRenewed.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8864
|
-
|
|
8865
|
-
/**
|
|
8866
|
-
* SubscriptionRenewed startsAt.
|
|
8867
|
-
* @member {number|Long} startsAt
|
|
8868
|
-
* @memberof SubscriptionRenewed
|
|
8869
|
-
* @instance
|
|
8870
|
-
*/
|
|
8871
|
-
SubscriptionRenewed.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8872
|
-
|
|
8873
|
-
/**
|
|
8874
|
-
* SubscriptionRenewed endsAt.
|
|
8875
|
-
* @member {number|Long} endsAt
|
|
8876
|
-
* @memberof SubscriptionRenewed
|
|
8877
|
-
* @instance
|
|
8878
|
-
*/
|
|
8879
|
-
SubscriptionRenewed.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8880
|
-
|
|
8881
|
-
/**
|
|
8882
|
-
* SubscriptionRenewed voucherCode.
|
|
8883
|
-
* @member {string} voucherCode
|
|
8884
|
-
* @memberof SubscriptionRenewed
|
|
8885
|
-
* @instance
|
|
8886
|
-
*/
|
|
8887
|
-
SubscriptionRenewed.prototype.voucherCode = "";
|
|
8888
|
-
|
|
8889
|
-
/**
|
|
8890
|
-
* SubscriptionRenewed platform.
|
|
8891
|
-
* @member {subscription.SubscriptionPlatform} platform
|
|
8892
|
-
* @memberof SubscriptionRenewed
|
|
8893
|
-
* @instance
|
|
8894
|
-
*/
|
|
8895
|
-
SubscriptionRenewed.prototype.platform = 0;
|
|
8896
|
-
|
|
8897
8944
|
/**
|
|
8898
8945
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
8899
8946
|
* @function create
|
|
@@ -8924,16 +8971,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8924
8971
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
8925
8972
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8926
8973
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
8927
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8928
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
8929
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8930
|
-
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
8931
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8932
|
-
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
8933
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8934
|
-
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
8935
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8936
|
-
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8937
8974
|
return writer;
|
|
8938
8975
|
};
|
|
8939
8976
|
|
|
@@ -8977,21 +9014,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8977
9014
|
case 3:
|
|
8978
9015
|
message.userId = reader.string();
|
|
8979
9016
|
break;
|
|
8980
|
-
case 4:
|
|
8981
|
-
message.createdAt = reader.uint64();
|
|
8982
|
-
break;
|
|
8983
|
-
case 5:
|
|
8984
|
-
message.startsAt = reader.uint64();
|
|
8985
|
-
break;
|
|
8986
|
-
case 6:
|
|
8987
|
-
message.endsAt = reader.uint64();
|
|
8988
|
-
break;
|
|
8989
|
-
case 7:
|
|
8990
|
-
message.voucherCode = reader.string();
|
|
8991
|
-
break;
|
|
8992
|
-
case 8:
|
|
8993
|
-
message.platform = reader.int32();
|
|
8994
|
-
break;
|
|
8995
9017
|
default:
|
|
8996
9018
|
reader.skipType(tag & 7);
|
|
8997
9019
|
break;
|
|
@@ -9036,30 +9058,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9036
9058
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9037
9059
|
if (!$util.isString(message.userId))
|
|
9038
9060
|
return "userId: string expected";
|
|
9039
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9040
|
-
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
9041
|
-
return "createdAt: integer|Long expected";
|
|
9042
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9043
|
-
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
9044
|
-
return "startsAt: integer|Long expected";
|
|
9045
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9046
|
-
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
9047
|
-
return "endsAt: integer|Long expected";
|
|
9048
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9049
|
-
if (!$util.isString(message.voucherCode))
|
|
9050
|
-
return "voucherCode: string expected";
|
|
9051
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9052
|
-
switch (message.platform) {
|
|
9053
|
-
default:
|
|
9054
|
-
return "platform: enum value expected";
|
|
9055
|
-
case 0:
|
|
9056
|
-
case 1:
|
|
9057
|
-
case 2:
|
|
9058
|
-
case 3:
|
|
9059
|
-
case 4:
|
|
9060
|
-
case 5:
|
|
9061
|
-
break;
|
|
9062
|
-
}
|
|
9063
9061
|
return null;
|
|
9064
9062
|
};
|
|
9065
9063
|
|
|
@@ -9088,61 +9086,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9088
9086
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
9089
9087
|
if (object.userId != null)
|
|
9090
9088
|
message.userId = String(object.userId);
|
|
9091
|
-
if (object.createdAt != null)
|
|
9092
|
-
if ($util.Long)
|
|
9093
|
-
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
9094
|
-
else if (typeof object.createdAt === "string")
|
|
9095
|
-
message.createdAt = parseInt(object.createdAt, 10);
|
|
9096
|
-
else if (typeof object.createdAt === "number")
|
|
9097
|
-
message.createdAt = object.createdAt;
|
|
9098
|
-
else if (typeof object.createdAt === "object")
|
|
9099
|
-
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
9100
|
-
if (object.startsAt != null)
|
|
9101
|
-
if ($util.Long)
|
|
9102
|
-
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
9103
|
-
else if (typeof object.startsAt === "string")
|
|
9104
|
-
message.startsAt = parseInt(object.startsAt, 10);
|
|
9105
|
-
else if (typeof object.startsAt === "number")
|
|
9106
|
-
message.startsAt = object.startsAt;
|
|
9107
|
-
else if (typeof object.startsAt === "object")
|
|
9108
|
-
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
9109
|
-
if (object.endsAt != null)
|
|
9110
|
-
if ($util.Long)
|
|
9111
|
-
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
9112
|
-
else if (typeof object.endsAt === "string")
|
|
9113
|
-
message.endsAt = parseInt(object.endsAt, 10);
|
|
9114
|
-
else if (typeof object.endsAt === "number")
|
|
9115
|
-
message.endsAt = object.endsAt;
|
|
9116
|
-
else if (typeof object.endsAt === "object")
|
|
9117
|
-
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
9118
|
-
if (object.voucherCode != null)
|
|
9119
|
-
message.voucherCode = String(object.voucherCode);
|
|
9120
|
-
switch (object.platform) {
|
|
9121
|
-
case "PLATFORM_UNKNOWN":
|
|
9122
|
-
case 0:
|
|
9123
|
-
message.platform = 0;
|
|
9124
|
-
break;
|
|
9125
|
-
case "ITUNES":
|
|
9126
|
-
case 1:
|
|
9127
|
-
message.platform = 1;
|
|
9128
|
-
break;
|
|
9129
|
-
case "PLAY_STORE":
|
|
9130
|
-
case 2:
|
|
9131
|
-
message.platform = 2;
|
|
9132
|
-
break;
|
|
9133
|
-
case "ZUORA":
|
|
9134
|
-
case 3:
|
|
9135
|
-
message.platform = 3;
|
|
9136
|
-
break;
|
|
9137
|
-
case "HEADSPACE":
|
|
9138
|
-
case 4:
|
|
9139
|
-
message.platform = 4;
|
|
9140
|
-
break;
|
|
9141
|
-
case "SPOTIFY":
|
|
9142
|
-
case 5:
|
|
9143
|
-
message.platform = 5;
|
|
9144
|
-
break;
|
|
9145
|
-
}
|
|
9146
9089
|
return message;
|
|
9147
9090
|
};
|
|
9148
9091
|
|
|
@@ -9167,23 +9110,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9167
9110
|
} else
|
|
9168
9111
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
9169
9112
|
object.userId = "";
|
|
9170
|
-
if ($util.Long) {
|
|
9171
|
-
var long = new $util.Long(0, 0, true);
|
|
9172
|
-
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9173
|
-
} else
|
|
9174
|
-
object.createdAt = options.longs === String ? "0" : 0;
|
|
9175
|
-
if ($util.Long) {
|
|
9176
|
-
var long = new $util.Long(0, 0, true);
|
|
9177
|
-
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9178
|
-
} else
|
|
9179
|
-
object.startsAt = options.longs === String ? "0" : 0;
|
|
9180
|
-
if ($util.Long) {
|
|
9181
|
-
var long = new $util.Long(0, 0, true);
|
|
9182
|
-
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9183
|
-
} else
|
|
9184
|
-
object.endsAt = options.longs === String ? "0" : 0;
|
|
9185
|
-
object.voucherCode = "";
|
|
9186
|
-
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9187
9113
|
}
|
|
9188
9114
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9189
9115
|
object.id = message.id;
|
|
@@ -9194,25 +9120,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9194
9120
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
9195
9121
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9196
9122
|
object.userId = message.userId;
|
|
9197
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9198
|
-
if (typeof message.createdAt === "number")
|
|
9199
|
-
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
9200
|
-
else
|
|
9201
|
-
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
9202
|
-
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9203
|
-
if (typeof message.startsAt === "number")
|
|
9204
|
-
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
9205
|
-
else
|
|
9206
|
-
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
9207
|
-
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9208
|
-
if (typeof message.endsAt === "number")
|
|
9209
|
-
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
9210
|
-
else
|
|
9211
|
-
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
9212
|
-
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9213
|
-
object.voucherCode = message.voucherCode;
|
|
9214
|
-
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9215
|
-
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9216
9123
|
return object;
|
|
9217
9124
|
};
|
|
9218
9125
|
|