@headspace/protos-events 1.728.0 → 1.729.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 +8 -2
- package/lib/index.js +24 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -30094,8 +30094,11 @@ export interface IAccessCodeEntitlement {
|
|
|
30094
30094
|
/** the source that the entitlement applies to */
|
|
30095
30095
|
source?: (EntitlementSource|null);
|
|
30096
30096
|
|
|
30097
|
-
/** the value of the entitlement */
|
|
30097
|
+
/** the value of the entitlement, using the EntitlementValue enum. Use value_str instead */
|
|
30098
30098
|
value?: (EntitlementValue|null);
|
|
30099
|
+
|
|
30100
|
+
/** the value of the entitlement as a string, because the EntitlementValue enum is not stable */
|
|
30101
|
+
valueStr?: (string|null);
|
|
30099
30102
|
}
|
|
30100
30103
|
|
|
30101
30104
|
/** Represents an AccessCodeEntitlement. */
|
|
@@ -30110,9 +30113,12 @@ export class AccessCodeEntitlement implements IAccessCodeEntitlement {
|
|
|
30110
30113
|
/** the source that the entitlement applies to */
|
|
30111
30114
|
public source: EntitlementSource;
|
|
30112
30115
|
|
|
30113
|
-
/** the value of the entitlement */
|
|
30116
|
+
/** the value of the entitlement, using the EntitlementValue enum. Use value_str instead */
|
|
30114
30117
|
public value: EntitlementValue;
|
|
30115
30118
|
|
|
30119
|
+
/** the value of the entitlement as a string, because the EntitlementValue enum is not stable */
|
|
30120
|
+
public valueStr: string;
|
|
30121
|
+
|
|
30116
30122
|
/**
|
|
30117
30123
|
* Creates a new AccessCodeEntitlement instance using the specified properties.
|
|
30118
30124
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -84828,7 +84828,8 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
84828
84828
|
* @name IAccessCodeEntitlement
|
|
84829
84829
|
* @interface IAccessCodeEntitlement
|
|
84830
84830
|
* @property {EntitlementSource|null} [source] the source that the entitlement applies to
|
|
84831
|
-
* @property {EntitlementValue|null} [value] the value of the entitlement
|
|
84831
|
+
* @property {EntitlementValue|null} [value] the value of the entitlement, using the EntitlementValue enum. Use value_str instead
|
|
84832
|
+
* @property {string|null} [valueStr] the value of the entitlement as a string, because the EntitlementValue enum is not stable
|
|
84832
84833
|
*/
|
|
84833
84834
|
|
|
84834
84835
|
/**
|
|
@@ -84855,13 +84856,21 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
84855
84856
|
AccessCodeEntitlement.prototype.source = 0;
|
|
84856
84857
|
|
|
84857
84858
|
/**
|
|
84858
|
-
* the value of the entitlement
|
|
84859
|
+
* the value of the entitlement, using the EntitlementValue enum. Use value_str instead
|
|
84859
84860
|
* @member {EntitlementValue} value
|
|
84860
84861
|
* @memberof AccessCodeEntitlement
|
|
84861
84862
|
* @instance
|
|
84862
84863
|
*/
|
|
84863
84864
|
AccessCodeEntitlement.prototype.value = 0;
|
|
84864
84865
|
|
|
84866
|
+
/**
|
|
84867
|
+
* the value of the entitlement as a string, because the EntitlementValue enum is not stable
|
|
84868
|
+
* @member {string} valueStr
|
|
84869
|
+
* @memberof AccessCodeEntitlement
|
|
84870
|
+
* @instance
|
|
84871
|
+
*/
|
|
84872
|
+
AccessCodeEntitlement.prototype.valueStr = "";
|
|
84873
|
+
|
|
84865
84874
|
/**
|
|
84866
84875
|
* Creates a new AccessCodeEntitlement instance using the specified properties.
|
|
84867
84876
|
* @function create
|
|
@@ -84890,6 +84899,8 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
84890
84899
|
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.source);
|
|
84891
84900
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
84892
84901
|
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.value);
|
|
84902
|
+
if (message.valueStr != null && message.hasOwnProperty("valueStr"))
|
|
84903
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.valueStr);
|
|
84893
84904
|
return writer;
|
|
84894
84905
|
};
|
|
84895
84906
|
|
|
@@ -84930,6 +84941,9 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
84930
84941
|
case 2:
|
|
84931
84942
|
message.value = reader.int32();
|
|
84932
84943
|
break;
|
|
84944
|
+
case 3:
|
|
84945
|
+
message.valueStr = reader.string();
|
|
84946
|
+
break;
|
|
84933
84947
|
default:
|
|
84934
84948
|
reader.skipType(tag & 7);
|
|
84935
84949
|
break;
|
|
@@ -84987,6 +85001,9 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
84987
85001
|
case 5:
|
|
84988
85002
|
break;
|
|
84989
85003
|
}
|
|
85004
|
+
if (message.valueStr != null && message.hasOwnProperty("valueStr"))
|
|
85005
|
+
if (!$util.isString(message.valueStr))
|
|
85006
|
+
return "valueStr: string expected";
|
|
84990
85007
|
return null;
|
|
84991
85008
|
};
|
|
84992
85009
|
|
|
@@ -85046,6 +85063,8 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
85046
85063
|
message.value = 5;
|
|
85047
85064
|
break;
|
|
85048
85065
|
}
|
|
85066
|
+
if (object.valueStr != null)
|
|
85067
|
+
message.valueStr = String(object.valueStr);
|
|
85049
85068
|
return message;
|
|
85050
85069
|
};
|
|
85051
85070
|
|
|
@@ -85065,11 +85084,14 @@ $root.AccessCodeEntitlement = (function() {
|
|
|
85065
85084
|
if (options.defaults) {
|
|
85066
85085
|
object.source = options.enums === String ? "ENTITLEMENT_SOURCE_UNKNOWN" : 0;
|
|
85067
85086
|
object.value = options.enums === String ? "ENTITLEMENT_VALUE_UNKNOWN" : 0;
|
|
85087
|
+
object.valueStr = "";
|
|
85068
85088
|
}
|
|
85069
85089
|
if (message.source != null && message.hasOwnProperty("source"))
|
|
85070
85090
|
object.source = options.enums === String ? $root.EntitlementSource[message.source] : message.source;
|
|
85071
85091
|
if (message.value != null && message.hasOwnProperty("value"))
|
|
85072
85092
|
object.value = options.enums === String ? $root.EntitlementValue[message.value] : message.value;
|
|
85093
|
+
if (message.valueStr != null && message.hasOwnProperty("valueStr"))
|
|
85094
|
+
object.valueStr = message.valueStr;
|
|
85073
85095
|
return object;
|
|
85074
85096
|
};
|
|
85075
85097
|
|
package/package.json
CHANGED