@headspace/protos-events 1.710.0 → 1.712.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 +26 -1
- package/lib/index.js +105 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -36746,6 +36746,18 @@ export enum VerificationType {
|
|
|
36746
36746
|
VERIFICATION_TYPE_KP_NATIONAL_JWT = 7
|
|
36747
36747
|
}
|
|
36748
36748
|
|
|
36749
|
+
/**
|
|
36750
|
+
* Preferred verification method for user identity within a collective; this preference is considered
|
|
36751
|
+
* instead of the initial VerificationType check and before IdentityVerificationType validation.
|
|
36752
|
+
* The initial VerificationType check will occur as a fallback if the PreferredVerificationType method fails.
|
|
36753
|
+
* Determines which verification approach should be prioritized when multiple methods are available.
|
|
36754
|
+
*/
|
|
36755
|
+
export enum PreferredVerificationType {
|
|
36756
|
+
PREFERRED_VERIFICATION_TYPE_UNKNOWN = 0,
|
|
36757
|
+
PREFERRED_VERIFICATION_TYPE_NONE = 1,
|
|
36758
|
+
PREFERRED_VERIFICATION_TYPE_PII = 2
|
|
36759
|
+
}
|
|
36760
|
+
|
|
36749
36761
|
/** ClientUidType enum. */
|
|
36750
36762
|
export enum ClientUidType {
|
|
36751
36763
|
CLIENT_UID_TYPE_UNKNOWN = 0,
|
|
@@ -36773,6 +36785,12 @@ export interface IEligibilityCollective {
|
|
|
36773
36785
|
|
|
36774
36786
|
/** EligibilityCollective deletedAtTimestamp */
|
|
36775
36787
|
deletedAtTimestamp?: (number|Long|null);
|
|
36788
|
+
|
|
36789
|
+
/** EligibilityCollective preferredVerificationType */
|
|
36790
|
+
preferredVerificationType?: (PreferredVerificationType|null);
|
|
36791
|
+
|
|
36792
|
+
/** EligibilityCollective preferredVerificationFields */
|
|
36793
|
+
preferredVerificationFields?: (string[]|null);
|
|
36776
36794
|
}
|
|
36777
36795
|
|
|
36778
36796
|
/** Represents an EligibilityCollective. */
|
|
@@ -36802,6 +36820,12 @@ export class EligibilityCollective implements IEligibilityCollective {
|
|
|
36802
36820
|
/** EligibilityCollective deletedAtTimestamp. */
|
|
36803
36821
|
public deletedAtTimestamp: (number|Long);
|
|
36804
36822
|
|
|
36823
|
+
/** EligibilityCollective preferredVerificationType. */
|
|
36824
|
+
public preferredVerificationType: PreferredVerificationType;
|
|
36825
|
+
|
|
36826
|
+
/** EligibilityCollective preferredVerificationFields. */
|
|
36827
|
+
public preferredVerificationFields: string[];
|
|
36828
|
+
|
|
36805
36829
|
/**
|
|
36806
36830
|
* Creates a new EligibilityCollective instance using the specified properties.
|
|
36807
36831
|
* @param [properties] Properties to set
|
|
@@ -69838,7 +69862,8 @@ export namespace productcatalog {
|
|
|
69838
69862
|
PLATFORM_HEADSPACE = 3,
|
|
69839
69863
|
PLATFORM_SPOTIFY = 4,
|
|
69840
69864
|
PLATFORM_ZUORA = 5,
|
|
69841
|
-
PLATFORM_B2B_ORG = 6
|
|
69865
|
+
PLATFORM_B2B_ORG = 6,
|
|
69866
|
+
PRODUCT_SKU_PLATFORM_SIKA = 7
|
|
69842
69867
|
}
|
|
69843
69868
|
|
|
69844
69869
|
/** ProductSkuBillingCategory enum. */
|
package/lib/index.js
CHANGED
|
@@ -103400,6 +103400,25 @@ $root.VerificationType = (function() {
|
|
|
103400
103400
|
return values;
|
|
103401
103401
|
})();
|
|
103402
103402
|
|
|
103403
|
+
/**
|
|
103404
|
+
* Preferred verification method for user identity within a collective; this preference is considered
|
|
103405
|
+
* instead of the initial VerificationType check and before IdentityVerificationType validation.
|
|
103406
|
+
* The initial VerificationType check will occur as a fallback if the PreferredVerificationType method fails.
|
|
103407
|
+
* Determines which verification approach should be prioritized when multiple methods are available.
|
|
103408
|
+
* @name PreferredVerificationType
|
|
103409
|
+
* @enum {string}
|
|
103410
|
+
* @property {number} PREFERRED_VERIFICATION_TYPE_UNKNOWN=0 PREFERRED_VERIFICATION_TYPE_UNKNOWN value
|
|
103411
|
+
* @property {number} PREFERRED_VERIFICATION_TYPE_NONE=1 PREFERRED_VERIFICATION_TYPE_NONE value
|
|
103412
|
+
* @property {number} PREFERRED_VERIFICATION_TYPE_PII=2 PREFERRED_VERIFICATION_TYPE_PII value
|
|
103413
|
+
*/
|
|
103414
|
+
$root.PreferredVerificationType = (function() {
|
|
103415
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
103416
|
+
values[valuesById[0] = "PREFERRED_VERIFICATION_TYPE_UNKNOWN"] = 0;
|
|
103417
|
+
values[valuesById[1] = "PREFERRED_VERIFICATION_TYPE_NONE"] = 1;
|
|
103418
|
+
values[valuesById[2] = "PREFERRED_VERIFICATION_TYPE_PII"] = 2;
|
|
103419
|
+
return values;
|
|
103420
|
+
})();
|
|
103421
|
+
|
|
103403
103422
|
/**
|
|
103404
103423
|
* ClientUidType enum.
|
|
103405
103424
|
* @name ClientUidType
|
|
@@ -103428,6 +103447,8 @@ $root.EligibilityCollective = (function() {
|
|
|
103428
103447
|
* @property {number|Long|null} [createdAtTimestamp] EligibilityCollective createdAtTimestamp
|
|
103429
103448
|
* @property {number|Long|null} [updatedAtTimestamp] EligibilityCollective updatedAtTimestamp
|
|
103430
103449
|
* @property {number|Long|null} [deletedAtTimestamp] EligibilityCollective deletedAtTimestamp
|
|
103450
|
+
* @property {PreferredVerificationType|null} [preferredVerificationType] EligibilityCollective preferredVerificationType
|
|
103451
|
+
* @property {Array.<string>|null} [preferredVerificationFields] EligibilityCollective preferredVerificationFields
|
|
103431
103452
|
*/
|
|
103432
103453
|
|
|
103433
103454
|
/**
|
|
@@ -103439,6 +103460,7 @@ $root.EligibilityCollective = (function() {
|
|
|
103439
103460
|
* @param {IEligibilityCollective=} [properties] Properties to set
|
|
103440
103461
|
*/
|
|
103441
103462
|
function EligibilityCollective(properties) {
|
|
103463
|
+
this.preferredVerificationFields = [];
|
|
103442
103464
|
if (properties)
|
|
103443
103465
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
103444
103466
|
if (properties[keys[i]] != null)
|
|
@@ -103493,6 +103515,22 @@ $root.EligibilityCollective = (function() {
|
|
|
103493
103515
|
*/
|
|
103494
103516
|
EligibilityCollective.prototype.deletedAtTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
103495
103517
|
|
|
103518
|
+
/**
|
|
103519
|
+
* EligibilityCollective preferredVerificationType.
|
|
103520
|
+
* @member {PreferredVerificationType} preferredVerificationType
|
|
103521
|
+
* @memberof EligibilityCollective
|
|
103522
|
+
* @instance
|
|
103523
|
+
*/
|
|
103524
|
+
EligibilityCollective.prototype.preferredVerificationType = 0;
|
|
103525
|
+
|
|
103526
|
+
/**
|
|
103527
|
+
* EligibilityCollective preferredVerificationFields.
|
|
103528
|
+
* @member {Array.<string>} preferredVerificationFields
|
|
103529
|
+
* @memberof EligibilityCollective
|
|
103530
|
+
* @instance
|
|
103531
|
+
*/
|
|
103532
|
+
EligibilityCollective.prototype.preferredVerificationFields = $util.emptyArray;
|
|
103533
|
+
|
|
103496
103534
|
/**
|
|
103497
103535
|
* Creates a new EligibilityCollective instance using the specified properties.
|
|
103498
103536
|
* @function create
|
|
@@ -103529,6 +103567,11 @@ $root.EligibilityCollective = (function() {
|
|
|
103529
103567
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAtTimestamp);
|
|
103530
103568
|
if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
|
|
103531
103569
|
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.deletedAtTimestamp);
|
|
103570
|
+
if (message.preferredVerificationType != null && message.hasOwnProperty("preferredVerificationType"))
|
|
103571
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.preferredVerificationType);
|
|
103572
|
+
if (message.preferredVerificationFields != null && message.preferredVerificationFields.length)
|
|
103573
|
+
for (var i = 0; i < message.preferredVerificationFields.length; ++i)
|
|
103574
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.preferredVerificationFields[i]);
|
|
103532
103575
|
return writer;
|
|
103533
103576
|
};
|
|
103534
103577
|
|
|
@@ -103581,6 +103624,14 @@ $root.EligibilityCollective = (function() {
|
|
|
103581
103624
|
case 6:
|
|
103582
103625
|
message.deletedAtTimestamp = reader.uint64();
|
|
103583
103626
|
break;
|
|
103627
|
+
case 7:
|
|
103628
|
+
message.preferredVerificationType = reader.int32();
|
|
103629
|
+
break;
|
|
103630
|
+
case 8:
|
|
103631
|
+
if (!(message.preferredVerificationFields && message.preferredVerificationFields.length))
|
|
103632
|
+
message.preferredVerificationFields = [];
|
|
103633
|
+
message.preferredVerificationFields.push(reader.string());
|
|
103634
|
+
break;
|
|
103584
103635
|
default:
|
|
103585
103636
|
reader.skipType(tag & 7);
|
|
103586
103637
|
break;
|
|
@@ -103652,6 +103703,22 @@ $root.EligibilityCollective = (function() {
|
|
|
103652
103703
|
if (message.deletedAtTimestamp != null && message.hasOwnProperty("deletedAtTimestamp"))
|
|
103653
103704
|
if (!$util.isInteger(message.deletedAtTimestamp) && !(message.deletedAtTimestamp && $util.isInteger(message.deletedAtTimestamp.low) && $util.isInteger(message.deletedAtTimestamp.high)))
|
|
103654
103705
|
return "deletedAtTimestamp: integer|Long expected";
|
|
103706
|
+
if (message.preferredVerificationType != null && message.hasOwnProperty("preferredVerificationType"))
|
|
103707
|
+
switch (message.preferredVerificationType) {
|
|
103708
|
+
default:
|
|
103709
|
+
return "preferredVerificationType: enum value expected";
|
|
103710
|
+
case 0:
|
|
103711
|
+
case 1:
|
|
103712
|
+
case 2:
|
|
103713
|
+
break;
|
|
103714
|
+
}
|
|
103715
|
+
if (message.preferredVerificationFields != null && message.hasOwnProperty("preferredVerificationFields")) {
|
|
103716
|
+
if (!Array.isArray(message.preferredVerificationFields))
|
|
103717
|
+
return "preferredVerificationFields: array expected";
|
|
103718
|
+
for (var i = 0; i < message.preferredVerificationFields.length; ++i)
|
|
103719
|
+
if (!$util.isString(message.preferredVerificationFields[i]))
|
|
103720
|
+
return "preferredVerificationFields: string[] expected";
|
|
103721
|
+
}
|
|
103655
103722
|
return null;
|
|
103656
103723
|
};
|
|
103657
103724
|
|
|
@@ -103748,6 +103815,27 @@ $root.EligibilityCollective = (function() {
|
|
|
103748
103815
|
message.deletedAtTimestamp = object.deletedAtTimestamp;
|
|
103749
103816
|
else if (typeof object.deletedAtTimestamp === "object")
|
|
103750
103817
|
message.deletedAtTimestamp = new $util.LongBits(object.deletedAtTimestamp.low >>> 0, object.deletedAtTimestamp.high >>> 0).toNumber(true);
|
|
103818
|
+
switch (object.preferredVerificationType) {
|
|
103819
|
+
case "PREFERRED_VERIFICATION_TYPE_UNKNOWN":
|
|
103820
|
+
case 0:
|
|
103821
|
+
message.preferredVerificationType = 0;
|
|
103822
|
+
break;
|
|
103823
|
+
case "PREFERRED_VERIFICATION_TYPE_NONE":
|
|
103824
|
+
case 1:
|
|
103825
|
+
message.preferredVerificationType = 1;
|
|
103826
|
+
break;
|
|
103827
|
+
case "PREFERRED_VERIFICATION_TYPE_PII":
|
|
103828
|
+
case 2:
|
|
103829
|
+
message.preferredVerificationType = 2;
|
|
103830
|
+
break;
|
|
103831
|
+
}
|
|
103832
|
+
if (object.preferredVerificationFields) {
|
|
103833
|
+
if (!Array.isArray(object.preferredVerificationFields))
|
|
103834
|
+
throw TypeError(".EligibilityCollective.preferredVerificationFields: array expected");
|
|
103835
|
+
message.preferredVerificationFields = [];
|
|
103836
|
+
for (var i = 0; i < object.preferredVerificationFields.length; ++i)
|
|
103837
|
+
message.preferredVerificationFields[i] = String(object.preferredVerificationFields[i]);
|
|
103838
|
+
}
|
|
103751
103839
|
return message;
|
|
103752
103840
|
};
|
|
103753
103841
|
|
|
@@ -103764,6 +103852,8 @@ $root.EligibilityCollective = (function() {
|
|
|
103764
103852
|
if (!options)
|
|
103765
103853
|
options = {};
|
|
103766
103854
|
var object = {};
|
|
103855
|
+
if (options.arrays || options.defaults)
|
|
103856
|
+
object.preferredVerificationFields = [];
|
|
103767
103857
|
if (options.defaults) {
|
|
103768
103858
|
object.uuid = "";
|
|
103769
103859
|
object.verificationType = options.enums === String ? "VERIFICATION_TYPE_UNKNOWN" : 0;
|
|
@@ -103783,6 +103873,7 @@ $root.EligibilityCollective = (function() {
|
|
|
103783
103873
|
object.deletedAtTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
103784
103874
|
} else
|
|
103785
103875
|
object.deletedAtTimestamp = options.longs === String ? "0" : 0;
|
|
103876
|
+
object.preferredVerificationType = options.enums === String ? "PREFERRED_VERIFICATION_TYPE_UNKNOWN" : 0;
|
|
103786
103877
|
}
|
|
103787
103878
|
if (message.uuid != null && message.hasOwnProperty("uuid"))
|
|
103788
103879
|
object.uuid = message.uuid;
|
|
@@ -103805,6 +103896,13 @@ $root.EligibilityCollective = (function() {
|
|
|
103805
103896
|
object.deletedAtTimestamp = options.longs === String ? String(message.deletedAtTimestamp) : message.deletedAtTimestamp;
|
|
103806
103897
|
else
|
|
103807
103898
|
object.deletedAtTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAtTimestamp) : options.longs === Number ? new $util.LongBits(message.deletedAtTimestamp.low >>> 0, message.deletedAtTimestamp.high >>> 0).toNumber(true) : message.deletedAtTimestamp;
|
|
103899
|
+
if (message.preferredVerificationType != null && message.hasOwnProperty("preferredVerificationType"))
|
|
103900
|
+
object.preferredVerificationType = options.enums === String ? $root.PreferredVerificationType[message.preferredVerificationType] : message.preferredVerificationType;
|
|
103901
|
+
if (message.preferredVerificationFields && message.preferredVerificationFields.length) {
|
|
103902
|
+
object.preferredVerificationFields = [];
|
|
103903
|
+
for (var j = 0; j < message.preferredVerificationFields.length; ++j)
|
|
103904
|
+
object.preferredVerificationFields[j] = message.preferredVerificationFields[j];
|
|
103905
|
+
}
|
|
103808
103906
|
return object;
|
|
103809
103907
|
};
|
|
103810
103908
|
|
|
@@ -195620,6 +195718,7 @@ $root.productcatalog = (function() {
|
|
|
195620
195718
|
case 4:
|
|
195621
195719
|
case 5:
|
|
195622
195720
|
case 6:
|
|
195721
|
+
case 7:
|
|
195623
195722
|
break;
|
|
195624
195723
|
}
|
|
195625
195724
|
if (message.billingCategory != null && message.hasOwnProperty("billingCategory"))
|
|
@@ -195723,6 +195822,10 @@ $root.productcatalog = (function() {
|
|
|
195723
195822
|
case 6:
|
|
195724
195823
|
message.platform = 6;
|
|
195725
195824
|
break;
|
|
195825
|
+
case "PRODUCT_SKU_PLATFORM_SIKA":
|
|
195826
|
+
case 7:
|
|
195827
|
+
message.platform = 7;
|
|
195828
|
+
break;
|
|
195726
195829
|
}
|
|
195727
195830
|
switch (object.billingCategory) {
|
|
195728
195831
|
case "BC_UNKNOWN":
|
|
@@ -197340,6 +197443,7 @@ $root.productcatalog = (function() {
|
|
|
197340
197443
|
* @property {number} PLATFORM_SPOTIFY=4 PLATFORM_SPOTIFY value
|
|
197341
197444
|
* @property {number} PLATFORM_ZUORA=5 PLATFORM_ZUORA value
|
|
197342
197445
|
* @property {number} PLATFORM_B2B_ORG=6 PLATFORM_B2B_ORG value
|
|
197446
|
+
* @property {number} PRODUCT_SKU_PLATFORM_SIKA=7 PRODUCT_SKU_PLATFORM_SIKA value
|
|
197343
197447
|
*/
|
|
197344
197448
|
productcatalog.ProductSkuPlatform = (function() {
|
|
197345
197449
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -197350,6 +197454,7 @@ $root.productcatalog = (function() {
|
|
|
197350
197454
|
values[valuesById[4] = "PLATFORM_SPOTIFY"] = 4;
|
|
197351
197455
|
values[valuesById[5] = "PLATFORM_ZUORA"] = 5;
|
|
197352
197456
|
values[valuesById[6] = "PLATFORM_B2B_ORG"] = 6;
|
|
197457
|
+
values[valuesById[7] = "PRODUCT_SKU_PLATFORM_SIKA"] = 7;
|
|
197353
197458
|
return values;
|
|
197354
197459
|
})();
|
|
197355
197460
|
|
package/package.json
CHANGED