@headspace/protos-events 1.724.0 → 1.726.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 +142 -2
- package/lib/index.js +387 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -46197,6 +46197,144 @@ export enum OrgCoverageEapCarrier {
|
|
|
46197
46197
|
ORG_COVERAGE_EAP_CARRIER_NONE = 4
|
|
46198
46198
|
}
|
|
46199
46199
|
|
|
46200
|
+
/** Properties of a PartnerRedemptionRevoked. */
|
|
46201
|
+
export interface IPartnerRedemptionRevoked {
|
|
46202
|
+
|
|
46203
|
+
/** Unique identifier for the redemption. Formatted as a 24-char hex string. */
|
|
46204
|
+
redemptionId?: (string|null);
|
|
46205
|
+
|
|
46206
|
+
/**
|
|
46207
|
+
* Redemption reference identifier provided by the partner. Partners are not supposed to put any PII in this field,
|
|
46208
|
+
* but we cannot enforce it. Thus, this field _may contain_ sensitive information.
|
|
46209
|
+
*/
|
|
46210
|
+
redemptionRef?: (string|null);
|
|
46211
|
+
|
|
46212
|
+
/** Access-code used for the redemption. Provided by the 'access-code' service. */
|
|
46213
|
+
redemptionCode?: (string|null);
|
|
46214
|
+
|
|
46215
|
+
/**
|
|
46216
|
+
* Partner package identifier. Packages contain information what is being given to members redeeming a subscription
|
|
46217
|
+
* through the partner and are tied a single product sku. Formatted as a 24-char hex string.
|
|
46218
|
+
*/
|
|
46219
|
+
partnerPackageId?: (string|null);
|
|
46220
|
+
|
|
46221
|
+
/** Unique identifier of the partner. Formatted as a 24-char hex string */
|
|
46222
|
+
partnerId?: (string|null);
|
|
46223
|
+
|
|
46224
|
+
/** Headspace user associated to the redemption, (e.g. HSUSER_FOOBAR) */
|
|
46225
|
+
hsUserId?: (string|null);
|
|
46226
|
+
|
|
46227
|
+
/** UTC epoch milliseconds - when the redemption was revoked. */
|
|
46228
|
+
revokedAt?: (number|Long|null);
|
|
46229
|
+
}
|
|
46230
|
+
|
|
46231
|
+
/** Represents a PartnerRedemptionRevoked. */
|
|
46232
|
+
export class PartnerRedemptionRevoked implements IPartnerRedemptionRevoked {
|
|
46233
|
+
|
|
46234
|
+
/**
|
|
46235
|
+
* Constructs a new PartnerRedemptionRevoked.
|
|
46236
|
+
* @param [properties] Properties to set
|
|
46237
|
+
*/
|
|
46238
|
+
constructor(properties?: IPartnerRedemptionRevoked);
|
|
46239
|
+
|
|
46240
|
+
/** Unique identifier for the redemption. Formatted as a 24-char hex string. */
|
|
46241
|
+
public redemptionId: string;
|
|
46242
|
+
|
|
46243
|
+
/**
|
|
46244
|
+
* Redemption reference identifier provided by the partner. Partners are not supposed to put any PII in this field,
|
|
46245
|
+
* but we cannot enforce it. Thus, this field _may contain_ sensitive information.
|
|
46246
|
+
*/
|
|
46247
|
+
public redemptionRef: string;
|
|
46248
|
+
|
|
46249
|
+
/** Access-code used for the redemption. Provided by the 'access-code' service. */
|
|
46250
|
+
public redemptionCode: string;
|
|
46251
|
+
|
|
46252
|
+
/**
|
|
46253
|
+
* Partner package identifier. Packages contain information what is being given to members redeeming a subscription
|
|
46254
|
+
* through the partner and are tied a single product sku. Formatted as a 24-char hex string.
|
|
46255
|
+
*/
|
|
46256
|
+
public partnerPackageId: string;
|
|
46257
|
+
|
|
46258
|
+
/** Unique identifier of the partner. Formatted as a 24-char hex string */
|
|
46259
|
+
public partnerId: string;
|
|
46260
|
+
|
|
46261
|
+
/** Headspace user associated to the redemption, (e.g. HSUSER_FOOBAR) */
|
|
46262
|
+
public hsUserId: string;
|
|
46263
|
+
|
|
46264
|
+
/** UTC epoch milliseconds - when the redemption was revoked. */
|
|
46265
|
+
public revokedAt: (number|Long);
|
|
46266
|
+
|
|
46267
|
+
/**
|
|
46268
|
+
* Creates a new PartnerRedemptionRevoked instance using the specified properties.
|
|
46269
|
+
* @param [properties] Properties to set
|
|
46270
|
+
* @returns PartnerRedemptionRevoked instance
|
|
46271
|
+
*/
|
|
46272
|
+
public static create(properties?: IPartnerRedemptionRevoked): PartnerRedemptionRevoked;
|
|
46273
|
+
|
|
46274
|
+
/**
|
|
46275
|
+
* Encodes the specified PartnerRedemptionRevoked message. Does not implicitly {@link PartnerRedemptionRevoked.verify|verify} messages.
|
|
46276
|
+
* @param message PartnerRedemptionRevoked message or plain object to encode
|
|
46277
|
+
* @param [writer] Writer to encode to
|
|
46278
|
+
* @returns Writer
|
|
46279
|
+
*/
|
|
46280
|
+
public static encode(message: IPartnerRedemptionRevoked, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
46281
|
+
|
|
46282
|
+
/**
|
|
46283
|
+
* Encodes the specified PartnerRedemptionRevoked message, length delimited. Does not implicitly {@link PartnerRedemptionRevoked.verify|verify} messages.
|
|
46284
|
+
* @param message PartnerRedemptionRevoked message or plain object to encode
|
|
46285
|
+
* @param [writer] Writer to encode to
|
|
46286
|
+
* @returns Writer
|
|
46287
|
+
*/
|
|
46288
|
+
public static encodeDelimited(message: IPartnerRedemptionRevoked, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
46289
|
+
|
|
46290
|
+
/**
|
|
46291
|
+
* Decodes a PartnerRedemptionRevoked message from the specified reader or buffer.
|
|
46292
|
+
* @param reader Reader or buffer to decode from
|
|
46293
|
+
* @param [length] Message length if known beforehand
|
|
46294
|
+
* @returns PartnerRedemptionRevoked
|
|
46295
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46296
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46297
|
+
*/
|
|
46298
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): PartnerRedemptionRevoked;
|
|
46299
|
+
|
|
46300
|
+
/**
|
|
46301
|
+
* Decodes a PartnerRedemptionRevoked message from the specified reader or buffer, length delimited.
|
|
46302
|
+
* @param reader Reader or buffer to decode from
|
|
46303
|
+
* @returns PartnerRedemptionRevoked
|
|
46304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
46305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
46306
|
+
*/
|
|
46307
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): PartnerRedemptionRevoked;
|
|
46308
|
+
|
|
46309
|
+
/**
|
|
46310
|
+
* Verifies a PartnerRedemptionRevoked message.
|
|
46311
|
+
* @param message Plain object to verify
|
|
46312
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
46313
|
+
*/
|
|
46314
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
46315
|
+
|
|
46316
|
+
/**
|
|
46317
|
+
* Creates a PartnerRedemptionRevoked message from a plain object. Also converts values to their respective internal types.
|
|
46318
|
+
* @param object Plain object
|
|
46319
|
+
* @returns PartnerRedemptionRevoked
|
|
46320
|
+
*/
|
|
46321
|
+
public static fromObject(object: { [k: string]: any }): PartnerRedemptionRevoked;
|
|
46322
|
+
|
|
46323
|
+
/**
|
|
46324
|
+
* Creates a plain object from a PartnerRedemptionRevoked message. Also converts values to other types if specified.
|
|
46325
|
+
* @param message PartnerRedemptionRevoked
|
|
46326
|
+
* @param [options] Conversion options
|
|
46327
|
+
* @returns Plain object
|
|
46328
|
+
*/
|
|
46329
|
+
public static toObject(message: PartnerRedemptionRevoked, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
46330
|
+
|
|
46331
|
+
/**
|
|
46332
|
+
* Converts this PartnerRedemptionRevoked to JSON.
|
|
46333
|
+
* @returns JSON object
|
|
46334
|
+
*/
|
|
46335
|
+
public toJSON(): { [k: string]: any };
|
|
46336
|
+
}
|
|
46337
|
+
|
|
46200
46338
|
/** Properties of a WakeupPlaylistCreated. */
|
|
46201
46339
|
export interface IWakeupPlaylistCreated {
|
|
46202
46340
|
|
|
@@ -70839,7 +70977,8 @@ export namespace productcatalog {
|
|
|
70839
70977
|
PLATFORM_SPOTIFY = 4,
|
|
70840
70978
|
PLATFORM_ZUORA = 5,
|
|
70841
70979
|
PLATFORM_B2B_ORG = 6,
|
|
70842
|
-
PRODUCT_SKU_PLATFORM_SIKA = 7
|
|
70980
|
+
PRODUCT_SKU_PLATFORM_SIKA = 7,
|
|
70981
|
+
PRODUCT_SKU_PLATFORM_PAPI = 8
|
|
70843
70982
|
}
|
|
70844
70983
|
|
|
70845
70984
|
/** ProductSkuBillingCategory enum. */
|
|
@@ -72426,7 +72565,8 @@ export namespace subscription {
|
|
|
72426
72565
|
HEADSPACE = 4,
|
|
72427
72566
|
SPOTIFY = 5,
|
|
72428
72567
|
AMAZON = 6,
|
|
72429
|
-
SUBSCRIPTION_PLATFORM_SIKA = 7
|
|
72568
|
+
SUBSCRIPTION_PLATFORM_SIKA = 7,
|
|
72569
|
+
SUBSCRIPTION_PLATFORM_PAPI = 8
|
|
72430
72570
|
}
|
|
72431
72571
|
|
|
72432
72572
|
/** AutoRenewalStatus enum. */
|
package/lib/index.js
CHANGED
|
@@ -131920,6 +131920,344 @@ $root.OrgCoverageEapCarrier = (function() {
|
|
|
131920
131920
|
return values;
|
|
131921
131921
|
})();
|
|
131922
131922
|
|
|
131923
|
+
$root.PartnerRedemptionRevoked = (function() {
|
|
131924
|
+
|
|
131925
|
+
/**
|
|
131926
|
+
* Properties of a PartnerRedemptionRevoked.
|
|
131927
|
+
* @name IPartnerRedemptionRevoked
|
|
131928
|
+
* @interface IPartnerRedemptionRevoked
|
|
131929
|
+
* @property {string|null} [redemptionId] Unique identifier for the redemption. Formatted as a 24-char hex string.
|
|
131930
|
+
* @property {string|null} [redemptionRef] Redemption reference identifier provided by the partner. Partners are not supposed to put any PII in this field,
|
|
131931
|
+
* but we cannot enforce it. Thus, this field _may contain_ sensitive information.
|
|
131932
|
+
* @property {string|null} [redemptionCode] Access-code used for the redemption. Provided by the 'access-code' service.
|
|
131933
|
+
* @property {string|null} [partnerPackageId] Partner package identifier. Packages contain information what is being given to members redeeming a subscription
|
|
131934
|
+
* through the partner and are tied a single product sku. Formatted as a 24-char hex string.
|
|
131935
|
+
* @property {string|null} [partnerId] Unique identifier of the partner. Formatted as a 24-char hex string
|
|
131936
|
+
* @property {string|null} [hsUserId] Headspace user associated to the redemption, (e.g. HSUSER_FOOBAR)
|
|
131937
|
+
* @property {number|Long|null} [revokedAt] UTC epoch milliseconds - when the redemption was revoked.
|
|
131938
|
+
*/
|
|
131939
|
+
|
|
131940
|
+
/**
|
|
131941
|
+
* Constructs a new PartnerRedemptionRevoked.
|
|
131942
|
+
* @name PartnerRedemptionRevoked
|
|
131943
|
+
* @classdesc Represents a PartnerRedemptionRevoked.
|
|
131944
|
+
* @implements IPartnerRedemptionRevoked
|
|
131945
|
+
* @constructor
|
|
131946
|
+
* @param {IPartnerRedemptionRevoked=} [properties] Properties to set
|
|
131947
|
+
*/
|
|
131948
|
+
function PartnerRedemptionRevoked(properties) {
|
|
131949
|
+
if (properties)
|
|
131950
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
131951
|
+
if (properties[keys[i]] != null)
|
|
131952
|
+
this[keys[i]] = properties[keys[i]];
|
|
131953
|
+
}
|
|
131954
|
+
|
|
131955
|
+
/**
|
|
131956
|
+
* Unique identifier for the redemption. Formatted as a 24-char hex string.
|
|
131957
|
+
* @member {string} redemptionId
|
|
131958
|
+
* @memberof PartnerRedemptionRevoked
|
|
131959
|
+
* @instance
|
|
131960
|
+
*/
|
|
131961
|
+
PartnerRedemptionRevoked.prototype.redemptionId = "";
|
|
131962
|
+
|
|
131963
|
+
/**
|
|
131964
|
+
* Redemption reference identifier provided by the partner. Partners are not supposed to put any PII in this field,
|
|
131965
|
+
* but we cannot enforce it. Thus, this field _may contain_ sensitive information.
|
|
131966
|
+
* @member {string} redemptionRef
|
|
131967
|
+
* @memberof PartnerRedemptionRevoked
|
|
131968
|
+
* @instance
|
|
131969
|
+
*/
|
|
131970
|
+
PartnerRedemptionRevoked.prototype.redemptionRef = "";
|
|
131971
|
+
|
|
131972
|
+
/**
|
|
131973
|
+
* Access-code used for the redemption. Provided by the 'access-code' service.
|
|
131974
|
+
* @member {string} redemptionCode
|
|
131975
|
+
* @memberof PartnerRedemptionRevoked
|
|
131976
|
+
* @instance
|
|
131977
|
+
*/
|
|
131978
|
+
PartnerRedemptionRevoked.prototype.redemptionCode = "";
|
|
131979
|
+
|
|
131980
|
+
/**
|
|
131981
|
+
* Partner package identifier. Packages contain information what is being given to members redeeming a subscription
|
|
131982
|
+
* through the partner and are tied a single product sku. Formatted as a 24-char hex string.
|
|
131983
|
+
* @member {string} partnerPackageId
|
|
131984
|
+
* @memberof PartnerRedemptionRevoked
|
|
131985
|
+
* @instance
|
|
131986
|
+
*/
|
|
131987
|
+
PartnerRedemptionRevoked.prototype.partnerPackageId = "";
|
|
131988
|
+
|
|
131989
|
+
/**
|
|
131990
|
+
* Unique identifier of the partner. Formatted as a 24-char hex string
|
|
131991
|
+
* @member {string} partnerId
|
|
131992
|
+
* @memberof PartnerRedemptionRevoked
|
|
131993
|
+
* @instance
|
|
131994
|
+
*/
|
|
131995
|
+
PartnerRedemptionRevoked.prototype.partnerId = "";
|
|
131996
|
+
|
|
131997
|
+
/**
|
|
131998
|
+
* Headspace user associated to the redemption, (e.g. HSUSER_FOOBAR)
|
|
131999
|
+
* @member {string} hsUserId
|
|
132000
|
+
* @memberof PartnerRedemptionRevoked
|
|
132001
|
+
* @instance
|
|
132002
|
+
*/
|
|
132003
|
+
PartnerRedemptionRevoked.prototype.hsUserId = "";
|
|
132004
|
+
|
|
132005
|
+
/**
|
|
132006
|
+
* UTC epoch milliseconds - when the redemption was revoked.
|
|
132007
|
+
* @member {number|Long} revokedAt
|
|
132008
|
+
* @memberof PartnerRedemptionRevoked
|
|
132009
|
+
* @instance
|
|
132010
|
+
*/
|
|
132011
|
+
PartnerRedemptionRevoked.prototype.revokedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
132012
|
+
|
|
132013
|
+
/**
|
|
132014
|
+
* Creates a new PartnerRedemptionRevoked instance using the specified properties.
|
|
132015
|
+
* @function create
|
|
132016
|
+
* @memberof PartnerRedemptionRevoked
|
|
132017
|
+
* @static
|
|
132018
|
+
* @param {IPartnerRedemptionRevoked=} [properties] Properties to set
|
|
132019
|
+
* @returns {PartnerRedemptionRevoked} PartnerRedemptionRevoked instance
|
|
132020
|
+
*/
|
|
132021
|
+
PartnerRedemptionRevoked.create = function create(properties) {
|
|
132022
|
+
return new PartnerRedemptionRevoked(properties);
|
|
132023
|
+
};
|
|
132024
|
+
|
|
132025
|
+
/**
|
|
132026
|
+
* Encodes the specified PartnerRedemptionRevoked message. Does not implicitly {@link PartnerRedemptionRevoked.verify|verify} messages.
|
|
132027
|
+
* @function encode
|
|
132028
|
+
* @memberof PartnerRedemptionRevoked
|
|
132029
|
+
* @static
|
|
132030
|
+
* @param {IPartnerRedemptionRevoked} message PartnerRedemptionRevoked message or plain object to encode
|
|
132031
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
132032
|
+
* @returns {$protobuf.Writer} Writer
|
|
132033
|
+
*/
|
|
132034
|
+
PartnerRedemptionRevoked.encode = function encode(message, writer) {
|
|
132035
|
+
if (!writer)
|
|
132036
|
+
writer = $Writer.create();
|
|
132037
|
+
if (message.redemptionId != null && message.hasOwnProperty("redemptionId"))
|
|
132038
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.redemptionId);
|
|
132039
|
+
if (message.redemptionRef != null && message.hasOwnProperty("redemptionRef"))
|
|
132040
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.redemptionRef);
|
|
132041
|
+
if (message.redemptionCode != null && message.hasOwnProperty("redemptionCode"))
|
|
132042
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.redemptionCode);
|
|
132043
|
+
if (message.partnerPackageId != null && message.hasOwnProperty("partnerPackageId"))
|
|
132044
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.partnerPackageId);
|
|
132045
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
132046
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.partnerId);
|
|
132047
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
132048
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.hsUserId);
|
|
132049
|
+
if (message.revokedAt != null && message.hasOwnProperty("revokedAt"))
|
|
132050
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.revokedAt);
|
|
132051
|
+
return writer;
|
|
132052
|
+
};
|
|
132053
|
+
|
|
132054
|
+
/**
|
|
132055
|
+
* Encodes the specified PartnerRedemptionRevoked message, length delimited. Does not implicitly {@link PartnerRedemptionRevoked.verify|verify} messages.
|
|
132056
|
+
* @function encodeDelimited
|
|
132057
|
+
* @memberof PartnerRedemptionRevoked
|
|
132058
|
+
* @static
|
|
132059
|
+
* @param {IPartnerRedemptionRevoked} message PartnerRedemptionRevoked message or plain object to encode
|
|
132060
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
132061
|
+
* @returns {$protobuf.Writer} Writer
|
|
132062
|
+
*/
|
|
132063
|
+
PartnerRedemptionRevoked.encodeDelimited = function encodeDelimited(message, writer) {
|
|
132064
|
+
return this.encode(message, writer).ldelim();
|
|
132065
|
+
};
|
|
132066
|
+
|
|
132067
|
+
/**
|
|
132068
|
+
* Decodes a PartnerRedemptionRevoked message from the specified reader or buffer.
|
|
132069
|
+
* @function decode
|
|
132070
|
+
* @memberof PartnerRedemptionRevoked
|
|
132071
|
+
* @static
|
|
132072
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
132073
|
+
* @param {number} [length] Message length if known beforehand
|
|
132074
|
+
* @returns {PartnerRedemptionRevoked} PartnerRedemptionRevoked
|
|
132075
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
132076
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
132077
|
+
*/
|
|
132078
|
+
PartnerRedemptionRevoked.decode = function decode(reader, length) {
|
|
132079
|
+
if (!(reader instanceof $Reader))
|
|
132080
|
+
reader = $Reader.create(reader);
|
|
132081
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PartnerRedemptionRevoked();
|
|
132082
|
+
while (reader.pos < end) {
|
|
132083
|
+
var tag = reader.uint32();
|
|
132084
|
+
switch (tag >>> 3) {
|
|
132085
|
+
case 1:
|
|
132086
|
+
message.redemptionId = reader.string();
|
|
132087
|
+
break;
|
|
132088
|
+
case 2:
|
|
132089
|
+
message.redemptionRef = reader.string();
|
|
132090
|
+
break;
|
|
132091
|
+
case 3:
|
|
132092
|
+
message.redemptionCode = reader.string();
|
|
132093
|
+
break;
|
|
132094
|
+
case 4:
|
|
132095
|
+
message.partnerPackageId = reader.string();
|
|
132096
|
+
break;
|
|
132097
|
+
case 5:
|
|
132098
|
+
message.partnerId = reader.string();
|
|
132099
|
+
break;
|
|
132100
|
+
case 6:
|
|
132101
|
+
message.hsUserId = reader.string();
|
|
132102
|
+
break;
|
|
132103
|
+
case 7:
|
|
132104
|
+
message.revokedAt = reader.uint64();
|
|
132105
|
+
break;
|
|
132106
|
+
default:
|
|
132107
|
+
reader.skipType(tag & 7);
|
|
132108
|
+
break;
|
|
132109
|
+
}
|
|
132110
|
+
}
|
|
132111
|
+
return message;
|
|
132112
|
+
};
|
|
132113
|
+
|
|
132114
|
+
/**
|
|
132115
|
+
* Decodes a PartnerRedemptionRevoked message from the specified reader or buffer, length delimited.
|
|
132116
|
+
* @function decodeDelimited
|
|
132117
|
+
* @memberof PartnerRedemptionRevoked
|
|
132118
|
+
* @static
|
|
132119
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
132120
|
+
* @returns {PartnerRedemptionRevoked} PartnerRedemptionRevoked
|
|
132121
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
132122
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
132123
|
+
*/
|
|
132124
|
+
PartnerRedemptionRevoked.decodeDelimited = function decodeDelimited(reader) {
|
|
132125
|
+
if (!(reader instanceof $Reader))
|
|
132126
|
+
reader = new $Reader(reader);
|
|
132127
|
+
return this.decode(reader, reader.uint32());
|
|
132128
|
+
};
|
|
132129
|
+
|
|
132130
|
+
/**
|
|
132131
|
+
* Verifies a PartnerRedemptionRevoked message.
|
|
132132
|
+
* @function verify
|
|
132133
|
+
* @memberof PartnerRedemptionRevoked
|
|
132134
|
+
* @static
|
|
132135
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
132136
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
132137
|
+
*/
|
|
132138
|
+
PartnerRedemptionRevoked.verify = function verify(message) {
|
|
132139
|
+
if (typeof message !== "object" || message === null)
|
|
132140
|
+
return "object expected";
|
|
132141
|
+
if (message.redemptionId != null && message.hasOwnProperty("redemptionId"))
|
|
132142
|
+
if (!$util.isString(message.redemptionId))
|
|
132143
|
+
return "redemptionId: string expected";
|
|
132144
|
+
if (message.redemptionRef != null && message.hasOwnProperty("redemptionRef"))
|
|
132145
|
+
if (!$util.isString(message.redemptionRef))
|
|
132146
|
+
return "redemptionRef: string expected";
|
|
132147
|
+
if (message.redemptionCode != null && message.hasOwnProperty("redemptionCode"))
|
|
132148
|
+
if (!$util.isString(message.redemptionCode))
|
|
132149
|
+
return "redemptionCode: string expected";
|
|
132150
|
+
if (message.partnerPackageId != null && message.hasOwnProperty("partnerPackageId"))
|
|
132151
|
+
if (!$util.isString(message.partnerPackageId))
|
|
132152
|
+
return "partnerPackageId: string expected";
|
|
132153
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
132154
|
+
if (!$util.isString(message.partnerId))
|
|
132155
|
+
return "partnerId: string expected";
|
|
132156
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
132157
|
+
if (!$util.isString(message.hsUserId))
|
|
132158
|
+
return "hsUserId: string expected";
|
|
132159
|
+
if (message.revokedAt != null && message.hasOwnProperty("revokedAt"))
|
|
132160
|
+
if (!$util.isInteger(message.revokedAt) && !(message.revokedAt && $util.isInteger(message.revokedAt.low) && $util.isInteger(message.revokedAt.high)))
|
|
132161
|
+
return "revokedAt: integer|Long expected";
|
|
132162
|
+
return null;
|
|
132163
|
+
};
|
|
132164
|
+
|
|
132165
|
+
/**
|
|
132166
|
+
* Creates a PartnerRedemptionRevoked message from a plain object. Also converts values to their respective internal types.
|
|
132167
|
+
* @function fromObject
|
|
132168
|
+
* @memberof PartnerRedemptionRevoked
|
|
132169
|
+
* @static
|
|
132170
|
+
* @param {Object.<string,*>} object Plain object
|
|
132171
|
+
* @returns {PartnerRedemptionRevoked} PartnerRedemptionRevoked
|
|
132172
|
+
*/
|
|
132173
|
+
PartnerRedemptionRevoked.fromObject = function fromObject(object) {
|
|
132174
|
+
if (object instanceof $root.PartnerRedemptionRevoked)
|
|
132175
|
+
return object;
|
|
132176
|
+
var message = new $root.PartnerRedemptionRevoked();
|
|
132177
|
+
if (object.redemptionId != null)
|
|
132178
|
+
message.redemptionId = String(object.redemptionId);
|
|
132179
|
+
if (object.redemptionRef != null)
|
|
132180
|
+
message.redemptionRef = String(object.redemptionRef);
|
|
132181
|
+
if (object.redemptionCode != null)
|
|
132182
|
+
message.redemptionCode = String(object.redemptionCode);
|
|
132183
|
+
if (object.partnerPackageId != null)
|
|
132184
|
+
message.partnerPackageId = String(object.partnerPackageId);
|
|
132185
|
+
if (object.partnerId != null)
|
|
132186
|
+
message.partnerId = String(object.partnerId);
|
|
132187
|
+
if (object.hsUserId != null)
|
|
132188
|
+
message.hsUserId = String(object.hsUserId);
|
|
132189
|
+
if (object.revokedAt != null)
|
|
132190
|
+
if ($util.Long)
|
|
132191
|
+
(message.revokedAt = $util.Long.fromValue(object.revokedAt)).unsigned = true;
|
|
132192
|
+
else if (typeof object.revokedAt === "string")
|
|
132193
|
+
message.revokedAt = parseInt(object.revokedAt, 10);
|
|
132194
|
+
else if (typeof object.revokedAt === "number")
|
|
132195
|
+
message.revokedAt = object.revokedAt;
|
|
132196
|
+
else if (typeof object.revokedAt === "object")
|
|
132197
|
+
message.revokedAt = new $util.LongBits(object.revokedAt.low >>> 0, object.revokedAt.high >>> 0).toNumber(true);
|
|
132198
|
+
return message;
|
|
132199
|
+
};
|
|
132200
|
+
|
|
132201
|
+
/**
|
|
132202
|
+
* Creates a plain object from a PartnerRedemptionRevoked message. Also converts values to other types if specified.
|
|
132203
|
+
* @function toObject
|
|
132204
|
+
* @memberof PartnerRedemptionRevoked
|
|
132205
|
+
* @static
|
|
132206
|
+
* @param {PartnerRedemptionRevoked} message PartnerRedemptionRevoked
|
|
132207
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
132208
|
+
* @returns {Object.<string,*>} Plain object
|
|
132209
|
+
*/
|
|
132210
|
+
PartnerRedemptionRevoked.toObject = function toObject(message, options) {
|
|
132211
|
+
if (!options)
|
|
132212
|
+
options = {};
|
|
132213
|
+
var object = {};
|
|
132214
|
+
if (options.defaults) {
|
|
132215
|
+
object.redemptionId = "";
|
|
132216
|
+
object.redemptionRef = "";
|
|
132217
|
+
object.redemptionCode = "";
|
|
132218
|
+
object.partnerPackageId = "";
|
|
132219
|
+
object.partnerId = "";
|
|
132220
|
+
object.hsUserId = "";
|
|
132221
|
+
if ($util.Long) {
|
|
132222
|
+
var long = new $util.Long(0, 0, true);
|
|
132223
|
+
object.revokedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
132224
|
+
} else
|
|
132225
|
+
object.revokedAt = options.longs === String ? "0" : 0;
|
|
132226
|
+
}
|
|
132227
|
+
if (message.redemptionId != null && message.hasOwnProperty("redemptionId"))
|
|
132228
|
+
object.redemptionId = message.redemptionId;
|
|
132229
|
+
if (message.redemptionRef != null && message.hasOwnProperty("redemptionRef"))
|
|
132230
|
+
object.redemptionRef = message.redemptionRef;
|
|
132231
|
+
if (message.redemptionCode != null && message.hasOwnProperty("redemptionCode"))
|
|
132232
|
+
object.redemptionCode = message.redemptionCode;
|
|
132233
|
+
if (message.partnerPackageId != null && message.hasOwnProperty("partnerPackageId"))
|
|
132234
|
+
object.partnerPackageId = message.partnerPackageId;
|
|
132235
|
+
if (message.partnerId != null && message.hasOwnProperty("partnerId"))
|
|
132236
|
+
object.partnerId = message.partnerId;
|
|
132237
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
132238
|
+
object.hsUserId = message.hsUserId;
|
|
132239
|
+
if (message.revokedAt != null && message.hasOwnProperty("revokedAt"))
|
|
132240
|
+
if (typeof message.revokedAt === "number")
|
|
132241
|
+
object.revokedAt = options.longs === String ? String(message.revokedAt) : message.revokedAt;
|
|
132242
|
+
else
|
|
132243
|
+
object.revokedAt = options.longs === String ? $util.Long.prototype.toString.call(message.revokedAt) : options.longs === Number ? new $util.LongBits(message.revokedAt.low >>> 0, message.revokedAt.high >>> 0).toNumber(true) : message.revokedAt;
|
|
132244
|
+
return object;
|
|
132245
|
+
};
|
|
132246
|
+
|
|
132247
|
+
/**
|
|
132248
|
+
* Converts this PartnerRedemptionRevoked to JSON.
|
|
132249
|
+
* @function toJSON
|
|
132250
|
+
* @memberof PartnerRedemptionRevoked
|
|
132251
|
+
* @instance
|
|
132252
|
+
* @returns {Object.<string,*>} JSON object
|
|
132253
|
+
*/
|
|
132254
|
+
PartnerRedemptionRevoked.prototype.toJSON = function toJSON() {
|
|
132255
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
132256
|
+
};
|
|
132257
|
+
|
|
132258
|
+
return PartnerRedemptionRevoked;
|
|
132259
|
+
})();
|
|
132260
|
+
|
|
131923
132261
|
$root.WakeupPlaylistCreated = (function() {
|
|
131924
132262
|
|
|
131925
132263
|
/**
|
|
@@ -143001,6 +143339,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
143001
143339
|
case 5:
|
|
143002
143340
|
case 6:
|
|
143003
143341
|
case 7:
|
|
143342
|
+
case 8:
|
|
143004
143343
|
break;
|
|
143005
143344
|
}
|
|
143006
143345
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -143157,6 +143496,10 @@ $root.SubscriptionCreated = (function() {
|
|
|
143157
143496
|
case 7:
|
|
143158
143497
|
message.platform = 7;
|
|
143159
143498
|
break;
|
|
143499
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
143500
|
+
case 8:
|
|
143501
|
+
message.platform = 8;
|
|
143502
|
+
break;
|
|
143160
143503
|
}
|
|
143161
143504
|
switch (object.autoRenewalStatus) {
|
|
143162
143505
|
case "UNKNOWN_STATUS":
|
|
@@ -143792,6 +144135,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
143792
144135
|
case 5:
|
|
143793
144136
|
case 6:
|
|
143794
144137
|
case 7:
|
|
144138
|
+
case 8:
|
|
143795
144139
|
break;
|
|
143796
144140
|
}
|
|
143797
144141
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -143962,6 +144306,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
143962
144306
|
case 7:
|
|
143963
144307
|
message.platform = 7;
|
|
143964
144308
|
break;
|
|
144309
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
144310
|
+
case 8:
|
|
144311
|
+
message.platform = 8;
|
|
144312
|
+
break;
|
|
143965
144313
|
}
|
|
143966
144314
|
switch (object.autoRenewalStatus) {
|
|
143967
144315
|
case "UNKNOWN_STATUS":
|
|
@@ -144598,6 +144946,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
144598
144946
|
case 5:
|
|
144599
144947
|
case 6:
|
|
144600
144948
|
case 7:
|
|
144949
|
+
case 8:
|
|
144601
144950
|
break;
|
|
144602
144951
|
}
|
|
144603
144952
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -144754,6 +145103,10 @@ $root.SubscriptionRenewed = (function() {
|
|
|
144754
145103
|
case 7:
|
|
144755
145104
|
message.platform = 7;
|
|
144756
145105
|
break;
|
|
145106
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
145107
|
+
case 8:
|
|
145108
|
+
message.platform = 8;
|
|
145109
|
+
break;
|
|
144757
145110
|
}
|
|
144758
145111
|
switch (object.autoRenewalStatus) {
|
|
144759
145112
|
case "UNKNOWN_STATUS":
|
|
@@ -146463,6 +146816,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
146463
146816
|
case 5:
|
|
146464
146817
|
case 6:
|
|
146465
146818
|
case 7:
|
|
146819
|
+
case 8:
|
|
146466
146820
|
break;
|
|
146467
146821
|
}
|
|
146468
146822
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -146619,6 +146973,10 @@ $root.SubscriptionGraced = (function() {
|
|
|
146619
146973
|
case 7:
|
|
146620
146974
|
message.platform = 7;
|
|
146621
146975
|
break;
|
|
146976
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
146977
|
+
case 8:
|
|
146978
|
+
message.platform = 8;
|
|
146979
|
+
break;
|
|
146622
146980
|
}
|
|
146623
146981
|
switch (object.autoRenewalStatus) {
|
|
146624
146982
|
case "UNKNOWN_STATUS":
|
|
@@ -147232,6 +147590,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
147232
147590
|
case 5:
|
|
147233
147591
|
case 6:
|
|
147234
147592
|
case 7:
|
|
147593
|
+
case 8:
|
|
147235
147594
|
break;
|
|
147236
147595
|
}
|
|
147237
147596
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -147389,6 +147748,10 @@ $root.SubscriptionStarted = (function() {
|
|
|
147389
147748
|
case 7:
|
|
147390
147749
|
message.platform = 7;
|
|
147391
147750
|
break;
|
|
147751
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
147752
|
+
case 8:
|
|
147753
|
+
message.platform = 8;
|
|
147754
|
+
break;
|
|
147392
147755
|
}
|
|
147393
147756
|
switch (object.autoRenewalStatus) {
|
|
147394
147757
|
case "UNKNOWN_STATUS":
|
|
@@ -148018,6 +148381,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
148018
148381
|
case 5:
|
|
148019
148382
|
case 6:
|
|
148020
148383
|
case 7:
|
|
148384
|
+
case 8:
|
|
148021
148385
|
break;
|
|
148022
148386
|
}
|
|
148023
148387
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -148184,6 +148548,10 @@ $root.SubscriptionEnded = (function() {
|
|
|
148184
148548
|
case 7:
|
|
148185
148549
|
message.platform = 7;
|
|
148186
148550
|
break;
|
|
148551
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
148552
|
+
case 8:
|
|
148553
|
+
message.platform = 8;
|
|
148554
|
+
break;
|
|
148187
148555
|
}
|
|
148188
148556
|
switch (object.autoRenewalStatus) {
|
|
148189
148557
|
case "UNKNOWN_STATUS":
|
|
@@ -148816,6 +149184,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
148816
149184
|
case 5:
|
|
148817
149185
|
case 6:
|
|
148818
149186
|
case 7:
|
|
149187
|
+
case 8:
|
|
148819
149188
|
break;
|
|
148820
149189
|
}
|
|
148821
149190
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -148973,6 +149342,10 @@ $root.SubscriptionRecovered = (function() {
|
|
|
148973
149342
|
case 7:
|
|
148974
149343
|
message.platform = 7;
|
|
148975
149344
|
break;
|
|
149345
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
149346
|
+
case 8:
|
|
149347
|
+
message.platform = 8;
|
|
149348
|
+
break;
|
|
148976
149349
|
}
|
|
148977
149350
|
switch (object.autoRenewalStatus) {
|
|
148978
149351
|
case "UNKNOWN_STATUS":
|
|
@@ -149588,6 +149961,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
149588
149961
|
case 5:
|
|
149589
149962
|
case 6:
|
|
149590
149963
|
case 7:
|
|
149964
|
+
case 8:
|
|
149591
149965
|
break;
|
|
149592
149966
|
}
|
|
149593
149967
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -149745,6 +150119,10 @@ $root.SubscriptionAmended = (function() {
|
|
|
149745
150119
|
case 7:
|
|
149746
150120
|
message.platform = 7;
|
|
149747
150121
|
break;
|
|
150122
|
+
case "SUBSCRIPTION_PLATFORM_PAPI":
|
|
150123
|
+
case 8:
|
|
150124
|
+
message.platform = 8;
|
|
150125
|
+
break;
|
|
149748
150126
|
}
|
|
149749
150127
|
switch (object.autoRenewalStatus) {
|
|
149750
150128
|
case "UNKNOWN_STATUS":
|
|
@@ -198625,6 +199003,7 @@ $root.productcatalog = (function() {
|
|
|
198625
199003
|
case 5:
|
|
198626
199004
|
case 6:
|
|
198627
199005
|
case 7:
|
|
199006
|
+
case 8:
|
|
198628
199007
|
break;
|
|
198629
199008
|
}
|
|
198630
199009
|
if (message.billingCategory != null && message.hasOwnProperty("billingCategory"))
|
|
@@ -198741,6 +199120,10 @@ $root.productcatalog = (function() {
|
|
|
198741
199120
|
case 7:
|
|
198742
199121
|
message.platform = 7;
|
|
198743
199122
|
break;
|
|
199123
|
+
case "PRODUCT_SKU_PLATFORM_PAPI":
|
|
199124
|
+
case 8:
|
|
199125
|
+
message.platform = 8;
|
|
199126
|
+
break;
|
|
198744
199127
|
}
|
|
198745
199128
|
switch (object.billingCategory) {
|
|
198746
199129
|
case "BC_UNKNOWN":
|
|
@@ -200376,6 +200759,7 @@ $root.productcatalog = (function() {
|
|
|
200376
200759
|
* @property {number} PLATFORM_ZUORA=5 PLATFORM_ZUORA value
|
|
200377
200760
|
* @property {number} PLATFORM_B2B_ORG=6 PLATFORM_B2B_ORG value
|
|
200378
200761
|
* @property {number} PRODUCT_SKU_PLATFORM_SIKA=7 PRODUCT_SKU_PLATFORM_SIKA value
|
|
200762
|
+
* @property {number} PRODUCT_SKU_PLATFORM_PAPI=8 PRODUCT_SKU_PLATFORM_PAPI value
|
|
200379
200763
|
*/
|
|
200380
200764
|
productcatalog.ProductSkuPlatform = (function() {
|
|
200381
200765
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -200387,6 +200771,7 @@ $root.productcatalog = (function() {
|
|
|
200387
200771
|
values[valuesById[5] = "PLATFORM_ZUORA"] = 5;
|
|
200388
200772
|
values[valuesById[6] = "PLATFORM_B2B_ORG"] = 6;
|
|
200389
200773
|
values[valuesById[7] = "PRODUCT_SKU_PLATFORM_SIKA"] = 7;
|
|
200774
|
+
values[valuesById[8] = "PRODUCT_SKU_PLATFORM_PAPI"] = 8;
|
|
200390
200775
|
return values;
|
|
200391
200776
|
})();
|
|
200392
200777
|
|
|
@@ -204144,6 +204529,7 @@ $root.subscription = (function() {
|
|
|
204144
204529
|
* @property {number} SPOTIFY=5 SPOTIFY value
|
|
204145
204530
|
* @property {number} AMAZON=6 AMAZON value
|
|
204146
204531
|
* @property {number} SUBSCRIPTION_PLATFORM_SIKA=7 SUBSCRIPTION_PLATFORM_SIKA value
|
|
204532
|
+
* @property {number} SUBSCRIPTION_PLATFORM_PAPI=8 SUBSCRIPTION_PLATFORM_PAPI value
|
|
204147
204533
|
*/
|
|
204148
204534
|
subscription.SubscriptionPlatform = (function() {
|
|
204149
204535
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -204155,6 +204541,7 @@ $root.subscription = (function() {
|
|
|
204155
204541
|
values[valuesById[5] = "SPOTIFY"] = 5;
|
|
204156
204542
|
values[valuesById[6] = "AMAZON"] = 6;
|
|
204157
204543
|
values[valuesById[7] = "SUBSCRIPTION_PLATFORM_SIKA"] = 7;
|
|
204544
|
+
values[valuesById[8] = "SUBSCRIPTION_PLATFORM_PAPI"] = 8;
|
|
204158
204545
|
return values;
|
|
204159
204546
|
})();
|
|
204160
204547
|
|
package/package.json
CHANGED