@headspace/protos-events 1.327.0 → 1.329.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 +230 -0
- package/lib/index.js +575 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7843,6 +7843,116 @@ export namespace googleReceipt {
|
|
|
7843
7843
|
/** Namespace productcatalog. */
|
|
7844
7844
|
export namespace productcatalog {
|
|
7845
7845
|
|
|
7846
|
+
/** Properties of a Product. */
|
|
7847
|
+
interface IProduct {
|
|
7848
|
+
|
|
7849
|
+
/** product id */
|
|
7850
|
+
id?: (string|null);
|
|
7851
|
+
|
|
7852
|
+
/** product name */
|
|
7853
|
+
name?: (string|null);
|
|
7854
|
+
|
|
7855
|
+
/** product business sector, e.g "B2C", "B2B" */
|
|
7856
|
+
businessSector?: (productcatalog.ProductBusinessSector|null);
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7859
|
+
/** Represents a Product. */
|
|
7860
|
+
class Product implements IProduct {
|
|
7861
|
+
|
|
7862
|
+
/**
|
|
7863
|
+
* Constructs a new Product.
|
|
7864
|
+
* @param [properties] Properties to set
|
|
7865
|
+
*/
|
|
7866
|
+
constructor(properties?: productcatalog.IProduct);
|
|
7867
|
+
|
|
7868
|
+
/** product id */
|
|
7869
|
+
public id: string;
|
|
7870
|
+
|
|
7871
|
+
/** product name */
|
|
7872
|
+
public name: string;
|
|
7873
|
+
|
|
7874
|
+
/** product business sector, e.g "B2C", "B2B" */
|
|
7875
|
+
public businessSector: productcatalog.ProductBusinessSector;
|
|
7876
|
+
|
|
7877
|
+
/**
|
|
7878
|
+
* Creates a new Product instance using the specified properties.
|
|
7879
|
+
* @param [properties] Properties to set
|
|
7880
|
+
* @returns Product instance
|
|
7881
|
+
*/
|
|
7882
|
+
public static create(properties?: productcatalog.IProduct): productcatalog.Product;
|
|
7883
|
+
|
|
7884
|
+
/**
|
|
7885
|
+
* Encodes the specified Product message. Does not implicitly {@link productcatalog.Product.verify|verify} messages.
|
|
7886
|
+
* @param message Product message or plain object to encode
|
|
7887
|
+
* @param [writer] Writer to encode to
|
|
7888
|
+
* @returns Writer
|
|
7889
|
+
*/
|
|
7890
|
+
public static encode(message: productcatalog.IProduct, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7891
|
+
|
|
7892
|
+
/**
|
|
7893
|
+
* Encodes the specified Product message, length delimited. Does not implicitly {@link productcatalog.Product.verify|verify} messages.
|
|
7894
|
+
* @param message Product message or plain object to encode
|
|
7895
|
+
* @param [writer] Writer to encode to
|
|
7896
|
+
* @returns Writer
|
|
7897
|
+
*/
|
|
7898
|
+
public static encodeDelimited(message: productcatalog.IProduct, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
7899
|
+
|
|
7900
|
+
/**
|
|
7901
|
+
* Decodes a Product message from the specified reader or buffer.
|
|
7902
|
+
* @param reader Reader or buffer to decode from
|
|
7903
|
+
* @param [length] Message length if known beforehand
|
|
7904
|
+
* @returns Product
|
|
7905
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7906
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7907
|
+
*/
|
|
7908
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.Product;
|
|
7909
|
+
|
|
7910
|
+
/**
|
|
7911
|
+
* Decodes a Product message from the specified reader or buffer, length delimited.
|
|
7912
|
+
* @param reader Reader or buffer to decode from
|
|
7913
|
+
* @returns Product
|
|
7914
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7915
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7916
|
+
*/
|
|
7917
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.Product;
|
|
7918
|
+
|
|
7919
|
+
/**
|
|
7920
|
+
* Verifies a Product message.
|
|
7921
|
+
* @param message Plain object to verify
|
|
7922
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
7923
|
+
*/
|
|
7924
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
7925
|
+
|
|
7926
|
+
/**
|
|
7927
|
+
* Creates a Product message from a plain object. Also converts values to their respective internal types.
|
|
7928
|
+
* @param object Plain object
|
|
7929
|
+
* @returns Product
|
|
7930
|
+
*/
|
|
7931
|
+
public static fromObject(object: { [k: string]: any }): productcatalog.Product;
|
|
7932
|
+
|
|
7933
|
+
/**
|
|
7934
|
+
* Creates a plain object from a Product message. Also converts values to other types if specified.
|
|
7935
|
+
* @param message Product
|
|
7936
|
+
* @param [options] Conversion options
|
|
7937
|
+
* @returns Plain object
|
|
7938
|
+
*/
|
|
7939
|
+
public static toObject(message: productcatalog.Product, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* Converts this Product to JSON.
|
|
7943
|
+
* @returns JSON object
|
|
7944
|
+
*/
|
|
7945
|
+
public toJSON(): { [k: string]: any };
|
|
7946
|
+
}
|
|
7947
|
+
|
|
7948
|
+
/** ProductBusinessSector enum. */
|
|
7949
|
+
enum ProductBusinessSector {
|
|
7950
|
+
BUS_SEC_UNKNOWN = 0,
|
|
7951
|
+
BUS_SEC_B2C = 1,
|
|
7952
|
+
BUS_SEC_B2B = 2,
|
|
7953
|
+
BUS_SEC_PARTNERSHIP = 3
|
|
7954
|
+
}
|
|
7955
|
+
|
|
7846
7956
|
/** Properties of a ProductSku. */
|
|
7847
7957
|
interface IProductSku {
|
|
7848
7958
|
|
|
@@ -9744,6 +9854,9 @@ export namespace b2b {
|
|
|
9744
9854
|
|
|
9745
9855
|
/** Organization gingerId */
|
|
9746
9856
|
gingerId?: (string|null);
|
|
9857
|
+
|
|
9858
|
+
/** Organization headspaceHealthId */
|
|
9859
|
+
headspaceHealthId?: (string|null);
|
|
9747
9860
|
}
|
|
9748
9861
|
|
|
9749
9862
|
/** Represents an Organization. */
|
|
@@ -9785,6 +9898,9 @@ export namespace b2b {
|
|
|
9785
9898
|
/** Organization gingerId. */
|
|
9786
9899
|
public gingerId: string;
|
|
9787
9900
|
|
|
9901
|
+
/** Organization headspaceHealthId. */
|
|
9902
|
+
public headspaceHealthId: string;
|
|
9903
|
+
|
|
9788
9904
|
/**
|
|
9789
9905
|
* Creates a new Organization instance using the specified properties.
|
|
9790
9906
|
* @param [properties] Properties to set
|
|
@@ -28564,6 +28680,9 @@ export interface IEligibilityFileProcessed {
|
|
|
28564
28680
|
|
|
28565
28681
|
/** EligibilityFileProcessed orgRestrictBy */
|
|
28566
28682
|
orgRestrictBy?: (b2b.OrgRestrictBy|null);
|
|
28683
|
+
|
|
28684
|
+
/** EligibilityFileProcessed orgHeadspaceHealthId */
|
|
28685
|
+
orgHeadspaceHealthId?: (string|null);
|
|
28567
28686
|
}
|
|
28568
28687
|
|
|
28569
28688
|
/** Represents an EligibilityFileProcessed. */
|
|
@@ -28614,6 +28733,9 @@ export class EligibilityFileProcessed implements IEligibilityFileProcessed {
|
|
|
28614
28733
|
/** EligibilityFileProcessed orgRestrictBy. */
|
|
28615
28734
|
public orgRestrictBy: b2b.OrgRestrictBy;
|
|
28616
28735
|
|
|
28736
|
+
/** EligibilityFileProcessed orgHeadspaceHealthId. */
|
|
28737
|
+
public orgHeadspaceHealthId: string;
|
|
28738
|
+
|
|
28617
28739
|
/**
|
|
28618
28740
|
* Creates a new EligibilityFileProcessed instance using the specified properties.
|
|
28619
28741
|
* @param [properties] Properties to set
|
|
@@ -31513,6 +31635,9 @@ export interface IEnterpriseUserEnrollmentCreated {
|
|
|
31513
31635
|
|
|
31514
31636
|
/** EnterpriseUserEnrollmentCreated orgSlug */
|
|
31515
31637
|
orgSlug?: (string|null);
|
|
31638
|
+
|
|
31639
|
+
/** EnterpriseUserEnrollmentCreated orgHeadspaceHealthId */
|
|
31640
|
+
orgHeadspaceHealthId?: (string|null);
|
|
31516
31641
|
}
|
|
31517
31642
|
|
|
31518
31643
|
/** Represents an EnterpriseUserEnrollmentCreated. */
|
|
@@ -31596,6 +31721,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
|
|
|
31596
31721
|
/** EnterpriseUserEnrollmentCreated orgSlug. */
|
|
31597
31722
|
public orgSlug: string;
|
|
31598
31723
|
|
|
31724
|
+
/** EnterpriseUserEnrollmentCreated orgHeadspaceHealthId. */
|
|
31725
|
+
public orgHeadspaceHealthId: string;
|
|
31726
|
+
|
|
31599
31727
|
/**
|
|
31600
31728
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
31601
31729
|
* @param [properties] Properties to set
|
|
@@ -31744,6 +31872,9 @@ export interface IEnterpriseUserEnrollmentRemoved {
|
|
|
31744
31872
|
|
|
31745
31873
|
/** EnterpriseUserEnrollmentRemoved orgSlug */
|
|
31746
31874
|
orgSlug?: (string|null);
|
|
31875
|
+
|
|
31876
|
+
/** EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId */
|
|
31877
|
+
orgHeadspaceHealthId?: (string|null);
|
|
31747
31878
|
}
|
|
31748
31879
|
|
|
31749
31880
|
/** Represents an EnterpriseUserEnrollmentRemoved. */
|
|
@@ -31830,6 +31961,9 @@ export class EnterpriseUserEnrollmentRemoved implements IEnterpriseUserEnrollmen
|
|
|
31830
31961
|
/** EnterpriseUserEnrollmentRemoved orgSlug. */
|
|
31831
31962
|
public orgSlug: string;
|
|
31832
31963
|
|
|
31964
|
+
/** EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId. */
|
|
31965
|
+
public orgHeadspaceHealthId: string;
|
|
31966
|
+
|
|
31833
31967
|
/**
|
|
31834
31968
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
31835
31969
|
* @param [properties] Properties to set
|
|
@@ -31975,6 +32109,9 @@ export interface IEnterpriseUserEnrollmentAmended {
|
|
|
31975
32109
|
|
|
31976
32110
|
/** EnterpriseUserEnrollmentAmended orgSlug */
|
|
31977
32111
|
orgSlug?: (string|null);
|
|
32112
|
+
|
|
32113
|
+
/** EnterpriseUserEnrollmentAmended orgHeadspaceHealthId */
|
|
32114
|
+
orgHeadspaceHealthId?: (string|null);
|
|
31978
32115
|
}
|
|
31979
32116
|
|
|
31980
32117
|
/** Represents an EnterpriseUserEnrollmentAmended. */
|
|
@@ -32058,6 +32195,9 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
|
|
|
32058
32195
|
/** EnterpriseUserEnrollmentAmended orgSlug. */
|
|
32059
32196
|
public orgSlug: string;
|
|
32060
32197
|
|
|
32198
|
+
/** EnterpriseUserEnrollmentAmended orgHeadspaceHealthId. */
|
|
32199
|
+
public orgHeadspaceHealthId: string;
|
|
32200
|
+
|
|
32061
32201
|
/**
|
|
32062
32202
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
32063
32203
|
* @param [properties] Properties to set
|
|
@@ -37643,6 +37783,96 @@ export class ExperimentAccessGroupMapDeleted implements IExperimentAccessGroupMa
|
|
|
37643
37783
|
public toJSON(): { [k: string]: any };
|
|
37644
37784
|
}
|
|
37645
37785
|
|
|
37786
|
+
/** Properties of a ProductCreated. */
|
|
37787
|
+
export interface IProductCreated {
|
|
37788
|
+
|
|
37789
|
+
/** ProductCreated product */
|
|
37790
|
+
product?: (productcatalog.IProduct|null);
|
|
37791
|
+
}
|
|
37792
|
+
|
|
37793
|
+
/** Represents a ProductCreated. */
|
|
37794
|
+
export class ProductCreated implements IProductCreated {
|
|
37795
|
+
|
|
37796
|
+
/**
|
|
37797
|
+
* Constructs a new ProductCreated.
|
|
37798
|
+
* @param [properties] Properties to set
|
|
37799
|
+
*/
|
|
37800
|
+
constructor(properties?: IProductCreated);
|
|
37801
|
+
|
|
37802
|
+
/** ProductCreated product. */
|
|
37803
|
+
public product?: (productcatalog.IProduct|null);
|
|
37804
|
+
|
|
37805
|
+
/**
|
|
37806
|
+
* Creates a new ProductCreated instance using the specified properties.
|
|
37807
|
+
* @param [properties] Properties to set
|
|
37808
|
+
* @returns ProductCreated instance
|
|
37809
|
+
*/
|
|
37810
|
+
public static create(properties?: IProductCreated): ProductCreated;
|
|
37811
|
+
|
|
37812
|
+
/**
|
|
37813
|
+
* Encodes the specified ProductCreated message. Does not implicitly {@link ProductCreated.verify|verify} messages.
|
|
37814
|
+
* @param message ProductCreated message or plain object to encode
|
|
37815
|
+
* @param [writer] Writer to encode to
|
|
37816
|
+
* @returns Writer
|
|
37817
|
+
*/
|
|
37818
|
+
public static encode(message: IProductCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
37819
|
+
|
|
37820
|
+
/**
|
|
37821
|
+
* Encodes the specified ProductCreated message, length delimited. Does not implicitly {@link ProductCreated.verify|verify} messages.
|
|
37822
|
+
* @param message ProductCreated message or plain object to encode
|
|
37823
|
+
* @param [writer] Writer to encode to
|
|
37824
|
+
* @returns Writer
|
|
37825
|
+
*/
|
|
37826
|
+
public static encodeDelimited(message: IProductCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
37827
|
+
|
|
37828
|
+
/**
|
|
37829
|
+
* Decodes a ProductCreated message from the specified reader or buffer.
|
|
37830
|
+
* @param reader Reader or buffer to decode from
|
|
37831
|
+
* @param [length] Message length if known beforehand
|
|
37832
|
+
* @returns ProductCreated
|
|
37833
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37834
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37835
|
+
*/
|
|
37836
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ProductCreated;
|
|
37837
|
+
|
|
37838
|
+
/**
|
|
37839
|
+
* Decodes a ProductCreated message from the specified reader or buffer, length delimited.
|
|
37840
|
+
* @param reader Reader or buffer to decode from
|
|
37841
|
+
* @returns ProductCreated
|
|
37842
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
37843
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
37844
|
+
*/
|
|
37845
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ProductCreated;
|
|
37846
|
+
|
|
37847
|
+
/**
|
|
37848
|
+
* Verifies a ProductCreated message.
|
|
37849
|
+
* @param message Plain object to verify
|
|
37850
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
37851
|
+
*/
|
|
37852
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
37853
|
+
|
|
37854
|
+
/**
|
|
37855
|
+
* Creates a ProductCreated message from a plain object. Also converts values to their respective internal types.
|
|
37856
|
+
* @param object Plain object
|
|
37857
|
+
* @returns ProductCreated
|
|
37858
|
+
*/
|
|
37859
|
+
public static fromObject(object: { [k: string]: any }): ProductCreated;
|
|
37860
|
+
|
|
37861
|
+
/**
|
|
37862
|
+
* Creates a plain object from a ProductCreated message. Also converts values to other types if specified.
|
|
37863
|
+
* @param message ProductCreated
|
|
37864
|
+
* @param [options] Conversion options
|
|
37865
|
+
* @returns Plain object
|
|
37866
|
+
*/
|
|
37867
|
+
public static toObject(message: ProductCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
37868
|
+
|
|
37869
|
+
/**
|
|
37870
|
+
* Converts this ProductCreated to JSON.
|
|
37871
|
+
* @returns JSON object
|
|
37872
|
+
*/
|
|
37873
|
+
public toJSON(): { [k: string]: any };
|
|
37874
|
+
}
|
|
37875
|
+
|
|
37646
37876
|
/** Properties of a ProductSkuCreated. */
|
|
37647
37877
|
export interface IProductSkuCreated {
|
|
37648
37878
|
|
package/lib/index.js
CHANGED
|
@@ -18646,6 +18646,279 @@ $root.productcatalog = (function() {
|
|
|
18646
18646
|
*/
|
|
18647
18647
|
var productcatalog = {};
|
|
18648
18648
|
|
|
18649
|
+
productcatalog.Product = (function() {
|
|
18650
|
+
|
|
18651
|
+
/**
|
|
18652
|
+
* Properties of a Product.
|
|
18653
|
+
* @memberof productcatalog
|
|
18654
|
+
* @interface IProduct
|
|
18655
|
+
* @property {string|null} [id] product id
|
|
18656
|
+
* @property {string|null} [name] product name
|
|
18657
|
+
* @property {productcatalog.ProductBusinessSector|null} [businessSector] product business sector, e.g "B2C", "B2B"
|
|
18658
|
+
*/
|
|
18659
|
+
|
|
18660
|
+
/**
|
|
18661
|
+
* Constructs a new Product.
|
|
18662
|
+
* @memberof productcatalog
|
|
18663
|
+
* @classdesc Represents a Product.
|
|
18664
|
+
* @implements IProduct
|
|
18665
|
+
* @constructor
|
|
18666
|
+
* @param {productcatalog.IProduct=} [properties] Properties to set
|
|
18667
|
+
*/
|
|
18668
|
+
function Product(properties) {
|
|
18669
|
+
if (properties)
|
|
18670
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18671
|
+
if (properties[keys[i]] != null)
|
|
18672
|
+
this[keys[i]] = properties[keys[i]];
|
|
18673
|
+
}
|
|
18674
|
+
|
|
18675
|
+
/**
|
|
18676
|
+
* product id
|
|
18677
|
+
* @member {string} id
|
|
18678
|
+
* @memberof productcatalog.Product
|
|
18679
|
+
* @instance
|
|
18680
|
+
*/
|
|
18681
|
+
Product.prototype.id = "";
|
|
18682
|
+
|
|
18683
|
+
/**
|
|
18684
|
+
* product name
|
|
18685
|
+
* @member {string} name
|
|
18686
|
+
* @memberof productcatalog.Product
|
|
18687
|
+
* @instance
|
|
18688
|
+
*/
|
|
18689
|
+
Product.prototype.name = "";
|
|
18690
|
+
|
|
18691
|
+
/**
|
|
18692
|
+
* product business sector, e.g "B2C", "B2B"
|
|
18693
|
+
* @member {productcatalog.ProductBusinessSector} businessSector
|
|
18694
|
+
* @memberof productcatalog.Product
|
|
18695
|
+
* @instance
|
|
18696
|
+
*/
|
|
18697
|
+
Product.prototype.businessSector = 0;
|
|
18698
|
+
|
|
18699
|
+
/**
|
|
18700
|
+
* Creates a new Product instance using the specified properties.
|
|
18701
|
+
* @function create
|
|
18702
|
+
* @memberof productcatalog.Product
|
|
18703
|
+
* @static
|
|
18704
|
+
* @param {productcatalog.IProduct=} [properties] Properties to set
|
|
18705
|
+
* @returns {productcatalog.Product} Product instance
|
|
18706
|
+
*/
|
|
18707
|
+
Product.create = function create(properties) {
|
|
18708
|
+
return new Product(properties);
|
|
18709
|
+
};
|
|
18710
|
+
|
|
18711
|
+
/**
|
|
18712
|
+
* Encodes the specified Product message. Does not implicitly {@link productcatalog.Product.verify|verify} messages.
|
|
18713
|
+
* @function encode
|
|
18714
|
+
* @memberof productcatalog.Product
|
|
18715
|
+
* @static
|
|
18716
|
+
* @param {productcatalog.IProduct} message Product message or plain object to encode
|
|
18717
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18718
|
+
* @returns {$protobuf.Writer} Writer
|
|
18719
|
+
*/
|
|
18720
|
+
Product.encode = function encode(message, writer) {
|
|
18721
|
+
if (!writer)
|
|
18722
|
+
writer = $Writer.create();
|
|
18723
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18724
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
18725
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18726
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
18727
|
+
if (message.businessSector != null && message.hasOwnProperty("businessSector"))
|
|
18728
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.businessSector);
|
|
18729
|
+
return writer;
|
|
18730
|
+
};
|
|
18731
|
+
|
|
18732
|
+
/**
|
|
18733
|
+
* Encodes the specified Product message, length delimited. Does not implicitly {@link productcatalog.Product.verify|verify} messages.
|
|
18734
|
+
* @function encodeDelimited
|
|
18735
|
+
* @memberof productcatalog.Product
|
|
18736
|
+
* @static
|
|
18737
|
+
* @param {productcatalog.IProduct} message Product message or plain object to encode
|
|
18738
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18739
|
+
* @returns {$protobuf.Writer} Writer
|
|
18740
|
+
*/
|
|
18741
|
+
Product.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18742
|
+
return this.encode(message, writer).ldelim();
|
|
18743
|
+
};
|
|
18744
|
+
|
|
18745
|
+
/**
|
|
18746
|
+
* Decodes a Product message from the specified reader or buffer.
|
|
18747
|
+
* @function decode
|
|
18748
|
+
* @memberof productcatalog.Product
|
|
18749
|
+
* @static
|
|
18750
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18751
|
+
* @param {number} [length] Message length if known beforehand
|
|
18752
|
+
* @returns {productcatalog.Product} Product
|
|
18753
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18754
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18755
|
+
*/
|
|
18756
|
+
Product.decode = function decode(reader, length) {
|
|
18757
|
+
if (!(reader instanceof $Reader))
|
|
18758
|
+
reader = $Reader.create(reader);
|
|
18759
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.productcatalog.Product();
|
|
18760
|
+
while (reader.pos < end) {
|
|
18761
|
+
var tag = reader.uint32();
|
|
18762
|
+
switch (tag >>> 3) {
|
|
18763
|
+
case 1:
|
|
18764
|
+
message.id = reader.string();
|
|
18765
|
+
break;
|
|
18766
|
+
case 2:
|
|
18767
|
+
message.name = reader.string();
|
|
18768
|
+
break;
|
|
18769
|
+
case 3:
|
|
18770
|
+
message.businessSector = reader.int32();
|
|
18771
|
+
break;
|
|
18772
|
+
default:
|
|
18773
|
+
reader.skipType(tag & 7);
|
|
18774
|
+
break;
|
|
18775
|
+
}
|
|
18776
|
+
}
|
|
18777
|
+
return message;
|
|
18778
|
+
};
|
|
18779
|
+
|
|
18780
|
+
/**
|
|
18781
|
+
* Decodes a Product message from the specified reader or buffer, length delimited.
|
|
18782
|
+
* @function decodeDelimited
|
|
18783
|
+
* @memberof productcatalog.Product
|
|
18784
|
+
* @static
|
|
18785
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18786
|
+
* @returns {productcatalog.Product} Product
|
|
18787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18789
|
+
*/
|
|
18790
|
+
Product.decodeDelimited = function decodeDelimited(reader) {
|
|
18791
|
+
if (!(reader instanceof $Reader))
|
|
18792
|
+
reader = new $Reader(reader);
|
|
18793
|
+
return this.decode(reader, reader.uint32());
|
|
18794
|
+
};
|
|
18795
|
+
|
|
18796
|
+
/**
|
|
18797
|
+
* Verifies a Product message.
|
|
18798
|
+
* @function verify
|
|
18799
|
+
* @memberof productcatalog.Product
|
|
18800
|
+
* @static
|
|
18801
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18802
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18803
|
+
*/
|
|
18804
|
+
Product.verify = function verify(message) {
|
|
18805
|
+
if (typeof message !== "object" || message === null)
|
|
18806
|
+
return "object expected";
|
|
18807
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18808
|
+
if (!$util.isString(message.id))
|
|
18809
|
+
return "id: string expected";
|
|
18810
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18811
|
+
if (!$util.isString(message.name))
|
|
18812
|
+
return "name: string expected";
|
|
18813
|
+
if (message.businessSector != null && message.hasOwnProperty("businessSector"))
|
|
18814
|
+
switch (message.businessSector) {
|
|
18815
|
+
default:
|
|
18816
|
+
return "businessSector: enum value expected";
|
|
18817
|
+
case 0:
|
|
18818
|
+
case 1:
|
|
18819
|
+
case 2:
|
|
18820
|
+
case 3:
|
|
18821
|
+
break;
|
|
18822
|
+
}
|
|
18823
|
+
return null;
|
|
18824
|
+
};
|
|
18825
|
+
|
|
18826
|
+
/**
|
|
18827
|
+
* Creates a Product message from a plain object. Also converts values to their respective internal types.
|
|
18828
|
+
* @function fromObject
|
|
18829
|
+
* @memberof productcatalog.Product
|
|
18830
|
+
* @static
|
|
18831
|
+
* @param {Object.<string,*>} object Plain object
|
|
18832
|
+
* @returns {productcatalog.Product} Product
|
|
18833
|
+
*/
|
|
18834
|
+
Product.fromObject = function fromObject(object) {
|
|
18835
|
+
if (object instanceof $root.productcatalog.Product)
|
|
18836
|
+
return object;
|
|
18837
|
+
var message = new $root.productcatalog.Product();
|
|
18838
|
+
if (object.id != null)
|
|
18839
|
+
message.id = String(object.id);
|
|
18840
|
+
if (object.name != null)
|
|
18841
|
+
message.name = String(object.name);
|
|
18842
|
+
switch (object.businessSector) {
|
|
18843
|
+
case "BUS_SEC_UNKNOWN":
|
|
18844
|
+
case 0:
|
|
18845
|
+
message.businessSector = 0;
|
|
18846
|
+
break;
|
|
18847
|
+
case "BUS_SEC_B2C":
|
|
18848
|
+
case 1:
|
|
18849
|
+
message.businessSector = 1;
|
|
18850
|
+
break;
|
|
18851
|
+
case "BUS_SEC_B2B":
|
|
18852
|
+
case 2:
|
|
18853
|
+
message.businessSector = 2;
|
|
18854
|
+
break;
|
|
18855
|
+
case "BUS_SEC_PARTNERSHIP":
|
|
18856
|
+
case 3:
|
|
18857
|
+
message.businessSector = 3;
|
|
18858
|
+
break;
|
|
18859
|
+
}
|
|
18860
|
+
return message;
|
|
18861
|
+
};
|
|
18862
|
+
|
|
18863
|
+
/**
|
|
18864
|
+
* Creates a plain object from a Product message. Also converts values to other types if specified.
|
|
18865
|
+
* @function toObject
|
|
18866
|
+
* @memberof productcatalog.Product
|
|
18867
|
+
* @static
|
|
18868
|
+
* @param {productcatalog.Product} message Product
|
|
18869
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18870
|
+
* @returns {Object.<string,*>} Plain object
|
|
18871
|
+
*/
|
|
18872
|
+
Product.toObject = function toObject(message, options) {
|
|
18873
|
+
if (!options)
|
|
18874
|
+
options = {};
|
|
18875
|
+
var object = {};
|
|
18876
|
+
if (options.defaults) {
|
|
18877
|
+
object.id = "";
|
|
18878
|
+
object.name = "";
|
|
18879
|
+
object.businessSector = options.enums === String ? "BUS_SEC_UNKNOWN" : 0;
|
|
18880
|
+
}
|
|
18881
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
18882
|
+
object.id = message.id;
|
|
18883
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18884
|
+
object.name = message.name;
|
|
18885
|
+
if (message.businessSector != null && message.hasOwnProperty("businessSector"))
|
|
18886
|
+
object.businessSector = options.enums === String ? $root.productcatalog.ProductBusinessSector[message.businessSector] : message.businessSector;
|
|
18887
|
+
return object;
|
|
18888
|
+
};
|
|
18889
|
+
|
|
18890
|
+
/**
|
|
18891
|
+
* Converts this Product to JSON.
|
|
18892
|
+
* @function toJSON
|
|
18893
|
+
* @memberof productcatalog.Product
|
|
18894
|
+
* @instance
|
|
18895
|
+
* @returns {Object.<string,*>} JSON object
|
|
18896
|
+
*/
|
|
18897
|
+
Product.prototype.toJSON = function toJSON() {
|
|
18898
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18899
|
+
};
|
|
18900
|
+
|
|
18901
|
+
return Product;
|
|
18902
|
+
})();
|
|
18903
|
+
|
|
18904
|
+
/**
|
|
18905
|
+
* ProductBusinessSector enum.
|
|
18906
|
+
* @name productcatalog.ProductBusinessSector
|
|
18907
|
+
* @enum {string}
|
|
18908
|
+
* @property {number} BUS_SEC_UNKNOWN=0 BUS_SEC_UNKNOWN value
|
|
18909
|
+
* @property {number} BUS_SEC_B2C=1 BUS_SEC_B2C value
|
|
18910
|
+
* @property {number} BUS_SEC_B2B=2 BUS_SEC_B2B value
|
|
18911
|
+
* @property {number} BUS_SEC_PARTNERSHIP=3 BUS_SEC_PARTNERSHIP value
|
|
18912
|
+
*/
|
|
18913
|
+
productcatalog.ProductBusinessSector = (function() {
|
|
18914
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
18915
|
+
values[valuesById[0] = "BUS_SEC_UNKNOWN"] = 0;
|
|
18916
|
+
values[valuesById[1] = "BUS_SEC_B2C"] = 1;
|
|
18917
|
+
values[valuesById[2] = "BUS_SEC_B2B"] = 2;
|
|
18918
|
+
values[valuesById[3] = "BUS_SEC_PARTNERSHIP"] = 3;
|
|
18919
|
+
return values;
|
|
18920
|
+
})();
|
|
18921
|
+
|
|
18649
18922
|
productcatalog.ProductSku = (function() {
|
|
18650
18923
|
|
|
18651
18924
|
/**
|
|
@@ -23265,6 +23538,7 @@ $root.b2b = (function() {
|
|
|
23265
23538
|
* @property {string|null} [healthHubName] Organization healthHubName
|
|
23266
23539
|
* @property {b2b.OrgRestrictBy|null} [restrictBy] Organization restrictBy
|
|
23267
23540
|
* @property {string|null} [gingerId] Organization gingerId
|
|
23541
|
+
* @property {string|null} [headspaceHealthId] Organization headspaceHealthId
|
|
23268
23542
|
*/
|
|
23269
23543
|
|
|
23270
23544
|
/**
|
|
@@ -23362,6 +23636,14 @@ $root.b2b = (function() {
|
|
|
23362
23636
|
*/
|
|
23363
23637
|
Organization.prototype.gingerId = "";
|
|
23364
23638
|
|
|
23639
|
+
/**
|
|
23640
|
+
* Organization headspaceHealthId.
|
|
23641
|
+
* @member {string} headspaceHealthId
|
|
23642
|
+
* @memberof b2b.Organization
|
|
23643
|
+
* @instance
|
|
23644
|
+
*/
|
|
23645
|
+
Organization.prototype.headspaceHealthId = "";
|
|
23646
|
+
|
|
23365
23647
|
/**
|
|
23366
23648
|
* Creates a new Organization instance using the specified properties.
|
|
23367
23649
|
* @function create
|
|
@@ -23406,6 +23688,8 @@ $root.b2b = (function() {
|
|
|
23406
23688
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.restrictBy);
|
|
23407
23689
|
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
23408
23690
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.gingerId);
|
|
23691
|
+
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
23692
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
|
|
23409
23693
|
return writer;
|
|
23410
23694
|
};
|
|
23411
23695
|
|
|
@@ -23470,6 +23754,9 @@ $root.b2b = (function() {
|
|
|
23470
23754
|
case 10:
|
|
23471
23755
|
message.gingerId = reader.string();
|
|
23472
23756
|
break;
|
|
23757
|
+
case 11:
|
|
23758
|
+
message.headspaceHealthId = reader.string();
|
|
23759
|
+
break;
|
|
23473
23760
|
default:
|
|
23474
23761
|
reader.skipType(tag & 7);
|
|
23475
23762
|
break;
|
|
@@ -23558,6 +23845,9 @@ $root.b2b = (function() {
|
|
|
23558
23845
|
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
23559
23846
|
if (!$util.isString(message.gingerId))
|
|
23560
23847
|
return "gingerId: string expected";
|
|
23848
|
+
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
23849
|
+
if (!$util.isString(message.headspaceHealthId))
|
|
23850
|
+
return "headspaceHealthId: string expected";
|
|
23561
23851
|
return null;
|
|
23562
23852
|
};
|
|
23563
23853
|
|
|
@@ -23661,6 +23951,8 @@ $root.b2b = (function() {
|
|
|
23661
23951
|
}
|
|
23662
23952
|
if (object.gingerId != null)
|
|
23663
23953
|
message.gingerId = String(object.gingerId);
|
|
23954
|
+
if (object.headspaceHealthId != null)
|
|
23955
|
+
message.headspaceHealthId = String(object.headspaceHealthId);
|
|
23664
23956
|
return message;
|
|
23665
23957
|
};
|
|
23666
23958
|
|
|
@@ -23688,6 +23980,7 @@ $root.b2b = (function() {
|
|
|
23688
23980
|
object.healthHubName = "";
|
|
23689
23981
|
object.restrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
|
|
23690
23982
|
object.gingerId = "";
|
|
23983
|
+
object.headspaceHealthId = "";
|
|
23691
23984
|
}
|
|
23692
23985
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
23693
23986
|
object.orgId = message.orgId;
|
|
@@ -23709,6 +24002,8 @@ $root.b2b = (function() {
|
|
|
23709
24002
|
object.restrictBy = options.enums === String ? $root.b2b.OrgRestrictBy[message.restrictBy] : message.restrictBy;
|
|
23710
24003
|
if (message.gingerId != null && message.hasOwnProperty("gingerId"))
|
|
23711
24004
|
object.gingerId = message.gingerId;
|
|
24005
|
+
if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
|
|
24006
|
+
object.headspaceHealthId = message.headspaceHealthId;
|
|
23712
24007
|
return object;
|
|
23713
24008
|
};
|
|
23714
24009
|
|
|
@@ -79114,6 +79409,7 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79114
79409
|
* @property {number|null} [numMembersProcessed] EligibilityFileProcessed numMembersProcessed
|
|
79115
79410
|
* @property {number|null} [dashboardUserId] EligibilityFileProcessed dashboardUserId
|
|
79116
79411
|
* @property {b2b.OrgRestrictBy|null} [orgRestrictBy] EligibilityFileProcessed orgRestrictBy
|
|
79412
|
+
* @property {string|null} [orgHeadspaceHealthId] EligibilityFileProcessed orgHeadspaceHealthId
|
|
79117
79413
|
*/
|
|
79118
79414
|
|
|
79119
79415
|
/**
|
|
@@ -79236,6 +79532,14 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79236
79532
|
*/
|
|
79237
79533
|
EligibilityFileProcessed.prototype.orgRestrictBy = 0;
|
|
79238
79534
|
|
|
79535
|
+
/**
|
|
79536
|
+
* EligibilityFileProcessed orgHeadspaceHealthId.
|
|
79537
|
+
* @member {string} orgHeadspaceHealthId
|
|
79538
|
+
* @memberof EligibilityFileProcessed
|
|
79539
|
+
* @instance
|
|
79540
|
+
*/
|
|
79541
|
+
EligibilityFileProcessed.prototype.orgHeadspaceHealthId = "";
|
|
79542
|
+
|
|
79239
79543
|
/**
|
|
79240
79544
|
* Creates a new EligibilityFileProcessed instance using the specified properties.
|
|
79241
79545
|
* @function create
|
|
@@ -79287,6 +79591,8 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79287
79591
|
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.dashboardUserId);
|
|
79288
79592
|
if (message.orgRestrictBy != null && message.hasOwnProperty("orgRestrictBy"))
|
|
79289
79593
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.orgRestrictBy);
|
|
79594
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
79595
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.orgHeadspaceHealthId);
|
|
79290
79596
|
return writer;
|
|
79291
79597
|
};
|
|
79292
79598
|
|
|
@@ -79365,6 +79671,9 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79365
79671
|
case 13:
|
|
79366
79672
|
message.orgRestrictBy = reader.int32();
|
|
79367
79673
|
break;
|
|
79674
|
+
case 14:
|
|
79675
|
+
message.orgHeadspaceHealthId = reader.string();
|
|
79676
|
+
break;
|
|
79368
79677
|
default:
|
|
79369
79678
|
reader.skipType(tag & 7);
|
|
79370
79679
|
break;
|
|
@@ -79459,6 +79768,9 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79459
79768
|
case 9:
|
|
79460
79769
|
break;
|
|
79461
79770
|
}
|
|
79771
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
79772
|
+
if (!$util.isString(message.orgHeadspaceHealthId))
|
|
79773
|
+
return "orgHeadspaceHealthId: string expected";
|
|
79462
79774
|
return null;
|
|
79463
79775
|
};
|
|
79464
79776
|
|
|
@@ -79555,6 +79867,8 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79555
79867
|
message.orgRestrictBy = 9;
|
|
79556
79868
|
break;
|
|
79557
79869
|
}
|
|
79870
|
+
if (object.orgHeadspaceHealthId != null)
|
|
79871
|
+
message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
|
|
79558
79872
|
return message;
|
|
79559
79873
|
};
|
|
79560
79874
|
|
|
@@ -79590,6 +79904,7 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79590
79904
|
object.numMembersProcessed = 0;
|
|
79591
79905
|
object.dashboardUserId = 0;
|
|
79592
79906
|
object.orgRestrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
|
|
79907
|
+
object.orgHeadspaceHealthId = "";
|
|
79593
79908
|
}
|
|
79594
79909
|
if (message.email != null && message.hasOwnProperty("email"))
|
|
79595
79910
|
object.email = $root.Email.toObject(message.email, options);
|
|
@@ -79624,6 +79939,8 @@ $root.EligibilityFileProcessed = (function() {
|
|
|
79624
79939
|
object.dashboardUserId = message.dashboardUserId;
|
|
79625
79940
|
if (message.orgRestrictBy != null && message.hasOwnProperty("orgRestrictBy"))
|
|
79626
79941
|
object.orgRestrictBy = options.enums === String ? $root.b2b.OrgRestrictBy[message.orgRestrictBy] : message.orgRestrictBy;
|
|
79942
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
79943
|
+
object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
|
|
79627
79944
|
return object;
|
|
79628
79945
|
};
|
|
79629
79946
|
|
|
@@ -86996,6 +87313,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
86996
87313
|
* @property {string|null} [employeeId] EnterpriseUserEnrollmentCreated employeeId
|
|
86997
87314
|
* @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentCreated employeeEmailHash
|
|
86998
87315
|
* @property {string|null} [orgSlug] EnterpriseUserEnrollmentCreated orgSlug
|
|
87316
|
+
* @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentCreated orgHeadspaceHealthId
|
|
86999
87317
|
*/
|
|
87000
87318
|
|
|
87001
87319
|
/**
|
|
@@ -87205,6 +87523,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87205
87523
|
*/
|
|
87206
87524
|
EnterpriseUserEnrollmentCreated.prototype.orgSlug = "";
|
|
87207
87525
|
|
|
87526
|
+
/**
|
|
87527
|
+
* EnterpriseUserEnrollmentCreated orgHeadspaceHealthId.
|
|
87528
|
+
* @member {string} orgHeadspaceHealthId
|
|
87529
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
87530
|
+
* @instance
|
|
87531
|
+
*/
|
|
87532
|
+
EnterpriseUserEnrollmentCreated.prototype.orgHeadspaceHealthId = "";
|
|
87533
|
+
|
|
87208
87534
|
/**
|
|
87209
87535
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
87210
87536
|
* @function create
|
|
@@ -87277,6 +87603,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87277
87603
|
writer.uint32(/* id 26, wireType 2 =*/210).string(message.employeeEmailHash);
|
|
87278
87604
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
87279
87605
|
writer.uint32(/* id 27, wireType 2 =*/218).string(message.orgSlug);
|
|
87606
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
87607
|
+
writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgHeadspaceHealthId);
|
|
87280
87608
|
return writer;
|
|
87281
87609
|
};
|
|
87282
87610
|
|
|
@@ -87383,6 +87711,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87383
87711
|
case 27:
|
|
87384
87712
|
message.orgSlug = reader.string();
|
|
87385
87713
|
break;
|
|
87714
|
+
case 28:
|
|
87715
|
+
message.orgHeadspaceHealthId = reader.string();
|
|
87716
|
+
break;
|
|
87386
87717
|
default:
|
|
87387
87718
|
reader.skipType(tag & 7);
|
|
87388
87719
|
break;
|
|
@@ -87512,6 +87843,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87512
87843
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
87513
87844
|
if (!$util.isString(message.orgSlug))
|
|
87514
87845
|
return "orgSlug: string expected";
|
|
87846
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
87847
|
+
if (!$util.isString(message.orgHeadspaceHealthId))
|
|
87848
|
+
return "orgHeadspaceHealthId: string expected";
|
|
87515
87849
|
return null;
|
|
87516
87850
|
};
|
|
87517
87851
|
|
|
@@ -87662,6 +87996,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87662
87996
|
message.employeeEmailHash = String(object.employeeEmailHash);
|
|
87663
87997
|
if (object.orgSlug != null)
|
|
87664
87998
|
message.orgSlug = String(object.orgSlug);
|
|
87999
|
+
if (object.orgHeadspaceHealthId != null)
|
|
88000
|
+
message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
|
|
87665
88001
|
return message;
|
|
87666
88002
|
};
|
|
87667
88003
|
|
|
@@ -87723,6 +88059,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87723
88059
|
object.employeeId = "";
|
|
87724
88060
|
object.employeeEmailHash = "";
|
|
87725
88061
|
object.orgSlug = "";
|
|
88062
|
+
object.orgHeadspaceHealthId = "";
|
|
87726
88063
|
}
|
|
87727
88064
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
87728
88065
|
object.userId = message.userId;
|
|
@@ -87787,6 +88124,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
87787
88124
|
object.employeeEmailHash = message.employeeEmailHash;
|
|
87788
88125
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
87789
88126
|
object.orgSlug = message.orgSlug;
|
|
88127
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
88128
|
+
object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
|
|
87790
88129
|
return object;
|
|
87791
88130
|
};
|
|
87792
88131
|
|
|
@@ -87835,6 +88174,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
87835
88174
|
* @property {string|null} [employeeId] EnterpriseUserEnrollmentRemoved employeeId
|
|
87836
88175
|
* @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentRemoved employeeEmailHash
|
|
87837
88176
|
* @property {string|null} [orgSlug] EnterpriseUserEnrollmentRemoved orgSlug
|
|
88177
|
+
* @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId
|
|
87838
88178
|
*/
|
|
87839
88179
|
|
|
87840
88180
|
/**
|
|
@@ -88052,6 +88392,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88052
88392
|
*/
|
|
88053
88393
|
EnterpriseUserEnrollmentRemoved.prototype.orgSlug = "";
|
|
88054
88394
|
|
|
88395
|
+
/**
|
|
88396
|
+
* EnterpriseUserEnrollmentRemoved orgHeadspaceHealthId.
|
|
88397
|
+
* @member {string} orgHeadspaceHealthId
|
|
88398
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
88399
|
+
* @instance
|
|
88400
|
+
*/
|
|
88401
|
+
EnterpriseUserEnrollmentRemoved.prototype.orgHeadspaceHealthId = "";
|
|
88402
|
+
|
|
88055
88403
|
/**
|
|
88056
88404
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
88057
88405
|
* @function create
|
|
@@ -88126,6 +88474,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88126
88474
|
writer.uint32(/* id 27, wireType 2 =*/218).string(message.employeeEmailHash);
|
|
88127
88475
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
88128
88476
|
writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgSlug);
|
|
88477
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
88478
|
+
writer.uint32(/* id 29, wireType 2 =*/234).string(message.orgHeadspaceHealthId);
|
|
88129
88479
|
return writer;
|
|
88130
88480
|
};
|
|
88131
88481
|
|
|
@@ -88235,6 +88585,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88235
88585
|
case 28:
|
|
88236
88586
|
message.orgSlug = reader.string();
|
|
88237
88587
|
break;
|
|
88588
|
+
case 29:
|
|
88589
|
+
message.orgHeadspaceHealthId = reader.string();
|
|
88590
|
+
break;
|
|
88238
88591
|
default:
|
|
88239
88592
|
reader.skipType(tag & 7);
|
|
88240
88593
|
break;
|
|
@@ -88381,6 +88734,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88381
88734
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
88382
88735
|
if (!$util.isString(message.orgSlug))
|
|
88383
88736
|
return "orgSlug: string expected";
|
|
88737
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
88738
|
+
if (!$util.isString(message.orgHeadspaceHealthId))
|
|
88739
|
+
return "orgHeadspaceHealthId: string expected";
|
|
88384
88740
|
return null;
|
|
88385
88741
|
};
|
|
88386
88742
|
|
|
@@ -88577,6 +88933,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88577
88933
|
message.employeeEmailHash = String(object.employeeEmailHash);
|
|
88578
88934
|
if (object.orgSlug != null)
|
|
88579
88935
|
message.orgSlug = String(object.orgSlug);
|
|
88936
|
+
if (object.orgHeadspaceHealthId != null)
|
|
88937
|
+
message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
|
|
88580
88938
|
return message;
|
|
88581
88939
|
};
|
|
88582
88940
|
|
|
@@ -88639,6 +88997,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88639
88997
|
object.employeeId = "";
|
|
88640
88998
|
object.employeeEmailHash = "";
|
|
88641
88999
|
object.orgSlug = "";
|
|
89000
|
+
object.orgHeadspaceHealthId = "";
|
|
88642
89001
|
}
|
|
88643
89002
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
88644
89003
|
object.userId = message.userId;
|
|
@@ -88705,6 +89064,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
88705
89064
|
object.employeeEmailHash = message.employeeEmailHash;
|
|
88706
89065
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
88707
89066
|
object.orgSlug = message.orgSlug;
|
|
89067
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
89068
|
+
object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
|
|
88708
89069
|
return object;
|
|
88709
89070
|
};
|
|
88710
89071
|
|
|
@@ -88752,6 +89113,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
88752
89113
|
* @property {string|null} [employeeId] EnterpriseUserEnrollmentAmended employeeId
|
|
88753
89114
|
* @property {string|null} [employeeEmailHash] EnterpriseUserEnrollmentAmended employeeEmailHash
|
|
88754
89115
|
* @property {string|null} [orgSlug] EnterpriseUserEnrollmentAmended orgSlug
|
|
89116
|
+
* @property {string|null} [orgHeadspaceHealthId] EnterpriseUserEnrollmentAmended orgHeadspaceHealthId
|
|
88755
89117
|
*/
|
|
88756
89118
|
|
|
88757
89119
|
/**
|
|
@@ -88961,6 +89323,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
88961
89323
|
*/
|
|
88962
89324
|
EnterpriseUserEnrollmentAmended.prototype.orgSlug = "";
|
|
88963
89325
|
|
|
89326
|
+
/**
|
|
89327
|
+
* EnterpriseUserEnrollmentAmended orgHeadspaceHealthId.
|
|
89328
|
+
* @member {string} orgHeadspaceHealthId
|
|
89329
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
89330
|
+
* @instance
|
|
89331
|
+
*/
|
|
89332
|
+
EnterpriseUserEnrollmentAmended.prototype.orgHeadspaceHealthId = "";
|
|
89333
|
+
|
|
88964
89334
|
/**
|
|
88965
89335
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
88966
89336
|
* @function create
|
|
@@ -89033,6 +89403,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89033
89403
|
writer.uint32(/* id 26, wireType 2 =*/210).string(message.employeeEmailHash);
|
|
89034
89404
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
89035
89405
|
writer.uint32(/* id 27, wireType 2 =*/218).string(message.orgSlug);
|
|
89406
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
89407
|
+
writer.uint32(/* id 28, wireType 2 =*/226).string(message.orgHeadspaceHealthId);
|
|
89036
89408
|
return writer;
|
|
89037
89409
|
};
|
|
89038
89410
|
|
|
@@ -89139,6 +89511,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89139
89511
|
case 27:
|
|
89140
89512
|
message.orgSlug = reader.string();
|
|
89141
89513
|
break;
|
|
89514
|
+
case 28:
|
|
89515
|
+
message.orgHeadspaceHealthId = reader.string();
|
|
89516
|
+
break;
|
|
89142
89517
|
default:
|
|
89143
89518
|
reader.skipType(tag & 7);
|
|
89144
89519
|
break;
|
|
@@ -89268,6 +89643,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89268
89643
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
89269
89644
|
if (!$util.isString(message.orgSlug))
|
|
89270
89645
|
return "orgSlug: string expected";
|
|
89646
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
89647
|
+
if (!$util.isString(message.orgHeadspaceHealthId))
|
|
89648
|
+
return "orgHeadspaceHealthId: string expected";
|
|
89271
89649
|
return null;
|
|
89272
89650
|
};
|
|
89273
89651
|
|
|
@@ -89418,6 +89796,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89418
89796
|
message.employeeEmailHash = String(object.employeeEmailHash);
|
|
89419
89797
|
if (object.orgSlug != null)
|
|
89420
89798
|
message.orgSlug = String(object.orgSlug);
|
|
89799
|
+
if (object.orgHeadspaceHealthId != null)
|
|
89800
|
+
message.orgHeadspaceHealthId = String(object.orgHeadspaceHealthId);
|
|
89421
89801
|
return message;
|
|
89422
89802
|
};
|
|
89423
89803
|
|
|
@@ -89479,6 +89859,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89479
89859
|
object.employeeId = "";
|
|
89480
89860
|
object.employeeEmailHash = "";
|
|
89481
89861
|
object.orgSlug = "";
|
|
89862
|
+
object.orgHeadspaceHealthId = "";
|
|
89482
89863
|
}
|
|
89483
89864
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
89484
89865
|
object.userId = message.userId;
|
|
@@ -89543,6 +89924,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
89543
89924
|
object.employeeEmailHash = message.employeeEmailHash;
|
|
89544
89925
|
if (message.orgSlug != null && message.hasOwnProperty("orgSlug"))
|
|
89545
89926
|
object.orgSlug = message.orgSlug;
|
|
89927
|
+
if (message.orgHeadspaceHealthId != null && message.hasOwnProperty("orgHeadspaceHealthId"))
|
|
89928
|
+
object.orgHeadspaceHealthId = message.orgHeadspaceHealthId;
|
|
89546
89929
|
return object;
|
|
89547
89930
|
};
|
|
89548
89931
|
|
|
@@ -105154,6 +105537,198 @@ $root.ExperimentAccessGroupMapDeleted = (function() {
|
|
|
105154
105537
|
return ExperimentAccessGroupMapDeleted;
|
|
105155
105538
|
})();
|
|
105156
105539
|
|
|
105540
|
+
$root.ProductCreated = (function() {
|
|
105541
|
+
|
|
105542
|
+
/**
|
|
105543
|
+
* Properties of a ProductCreated.
|
|
105544
|
+
* @exports IProductCreated
|
|
105545
|
+
* @interface IProductCreated
|
|
105546
|
+
* @property {productcatalog.IProduct|null} [product] ProductCreated product
|
|
105547
|
+
*/
|
|
105548
|
+
|
|
105549
|
+
/**
|
|
105550
|
+
* Constructs a new ProductCreated.
|
|
105551
|
+
* @exports ProductCreated
|
|
105552
|
+
* @classdesc Represents a ProductCreated.
|
|
105553
|
+
* @implements IProductCreated
|
|
105554
|
+
* @constructor
|
|
105555
|
+
* @param {IProductCreated=} [properties] Properties to set
|
|
105556
|
+
*/
|
|
105557
|
+
function ProductCreated(properties) {
|
|
105558
|
+
if (properties)
|
|
105559
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
105560
|
+
if (properties[keys[i]] != null)
|
|
105561
|
+
this[keys[i]] = properties[keys[i]];
|
|
105562
|
+
}
|
|
105563
|
+
|
|
105564
|
+
/**
|
|
105565
|
+
* ProductCreated product.
|
|
105566
|
+
* @member {productcatalog.IProduct|null|undefined} product
|
|
105567
|
+
* @memberof ProductCreated
|
|
105568
|
+
* @instance
|
|
105569
|
+
*/
|
|
105570
|
+
ProductCreated.prototype.product = null;
|
|
105571
|
+
|
|
105572
|
+
/**
|
|
105573
|
+
* Creates a new ProductCreated instance using the specified properties.
|
|
105574
|
+
* @function create
|
|
105575
|
+
* @memberof ProductCreated
|
|
105576
|
+
* @static
|
|
105577
|
+
* @param {IProductCreated=} [properties] Properties to set
|
|
105578
|
+
* @returns {ProductCreated} ProductCreated instance
|
|
105579
|
+
*/
|
|
105580
|
+
ProductCreated.create = function create(properties) {
|
|
105581
|
+
return new ProductCreated(properties);
|
|
105582
|
+
};
|
|
105583
|
+
|
|
105584
|
+
/**
|
|
105585
|
+
* Encodes the specified ProductCreated message. Does not implicitly {@link ProductCreated.verify|verify} messages.
|
|
105586
|
+
* @function encode
|
|
105587
|
+
* @memberof ProductCreated
|
|
105588
|
+
* @static
|
|
105589
|
+
* @param {IProductCreated} message ProductCreated message or plain object to encode
|
|
105590
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105591
|
+
* @returns {$protobuf.Writer} Writer
|
|
105592
|
+
*/
|
|
105593
|
+
ProductCreated.encode = function encode(message, writer) {
|
|
105594
|
+
if (!writer)
|
|
105595
|
+
writer = $Writer.create();
|
|
105596
|
+
if (message.product != null && message.hasOwnProperty("product"))
|
|
105597
|
+
$root.productcatalog.Product.encode(message.product, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
105598
|
+
return writer;
|
|
105599
|
+
};
|
|
105600
|
+
|
|
105601
|
+
/**
|
|
105602
|
+
* Encodes the specified ProductCreated message, length delimited. Does not implicitly {@link ProductCreated.verify|verify} messages.
|
|
105603
|
+
* @function encodeDelimited
|
|
105604
|
+
* @memberof ProductCreated
|
|
105605
|
+
* @static
|
|
105606
|
+
* @param {IProductCreated} message ProductCreated message or plain object to encode
|
|
105607
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
105608
|
+
* @returns {$protobuf.Writer} Writer
|
|
105609
|
+
*/
|
|
105610
|
+
ProductCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
105611
|
+
return this.encode(message, writer).ldelim();
|
|
105612
|
+
};
|
|
105613
|
+
|
|
105614
|
+
/**
|
|
105615
|
+
* Decodes a ProductCreated message from the specified reader or buffer.
|
|
105616
|
+
* @function decode
|
|
105617
|
+
* @memberof ProductCreated
|
|
105618
|
+
* @static
|
|
105619
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105620
|
+
* @param {number} [length] Message length if known beforehand
|
|
105621
|
+
* @returns {ProductCreated} ProductCreated
|
|
105622
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105623
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105624
|
+
*/
|
|
105625
|
+
ProductCreated.decode = function decode(reader, length) {
|
|
105626
|
+
if (!(reader instanceof $Reader))
|
|
105627
|
+
reader = $Reader.create(reader);
|
|
105628
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ProductCreated();
|
|
105629
|
+
while (reader.pos < end) {
|
|
105630
|
+
var tag = reader.uint32();
|
|
105631
|
+
switch (tag >>> 3) {
|
|
105632
|
+
case 1:
|
|
105633
|
+
message.product = $root.productcatalog.Product.decode(reader, reader.uint32());
|
|
105634
|
+
break;
|
|
105635
|
+
default:
|
|
105636
|
+
reader.skipType(tag & 7);
|
|
105637
|
+
break;
|
|
105638
|
+
}
|
|
105639
|
+
}
|
|
105640
|
+
return message;
|
|
105641
|
+
};
|
|
105642
|
+
|
|
105643
|
+
/**
|
|
105644
|
+
* Decodes a ProductCreated message from the specified reader or buffer, length delimited.
|
|
105645
|
+
* @function decodeDelimited
|
|
105646
|
+
* @memberof ProductCreated
|
|
105647
|
+
* @static
|
|
105648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105649
|
+
* @returns {ProductCreated} ProductCreated
|
|
105650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105652
|
+
*/
|
|
105653
|
+
ProductCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
105654
|
+
if (!(reader instanceof $Reader))
|
|
105655
|
+
reader = new $Reader(reader);
|
|
105656
|
+
return this.decode(reader, reader.uint32());
|
|
105657
|
+
};
|
|
105658
|
+
|
|
105659
|
+
/**
|
|
105660
|
+
* Verifies a ProductCreated message.
|
|
105661
|
+
* @function verify
|
|
105662
|
+
* @memberof ProductCreated
|
|
105663
|
+
* @static
|
|
105664
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
105665
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
105666
|
+
*/
|
|
105667
|
+
ProductCreated.verify = function verify(message) {
|
|
105668
|
+
if (typeof message !== "object" || message === null)
|
|
105669
|
+
return "object expected";
|
|
105670
|
+
if (message.product != null && message.hasOwnProperty("product")) {
|
|
105671
|
+
var error = $root.productcatalog.Product.verify(message.product);
|
|
105672
|
+
if (error)
|
|
105673
|
+
return "product." + error;
|
|
105674
|
+
}
|
|
105675
|
+
return null;
|
|
105676
|
+
};
|
|
105677
|
+
|
|
105678
|
+
/**
|
|
105679
|
+
* Creates a ProductCreated message from a plain object. Also converts values to their respective internal types.
|
|
105680
|
+
* @function fromObject
|
|
105681
|
+
* @memberof ProductCreated
|
|
105682
|
+
* @static
|
|
105683
|
+
* @param {Object.<string,*>} object Plain object
|
|
105684
|
+
* @returns {ProductCreated} ProductCreated
|
|
105685
|
+
*/
|
|
105686
|
+
ProductCreated.fromObject = function fromObject(object) {
|
|
105687
|
+
if (object instanceof $root.ProductCreated)
|
|
105688
|
+
return object;
|
|
105689
|
+
var message = new $root.ProductCreated();
|
|
105690
|
+
if (object.product != null) {
|
|
105691
|
+
if (typeof object.product !== "object")
|
|
105692
|
+
throw TypeError(".ProductCreated.product: object expected");
|
|
105693
|
+
message.product = $root.productcatalog.Product.fromObject(object.product);
|
|
105694
|
+
}
|
|
105695
|
+
return message;
|
|
105696
|
+
};
|
|
105697
|
+
|
|
105698
|
+
/**
|
|
105699
|
+
* Creates a plain object from a ProductCreated message. Also converts values to other types if specified.
|
|
105700
|
+
* @function toObject
|
|
105701
|
+
* @memberof ProductCreated
|
|
105702
|
+
* @static
|
|
105703
|
+
* @param {ProductCreated} message ProductCreated
|
|
105704
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
105705
|
+
* @returns {Object.<string,*>} Plain object
|
|
105706
|
+
*/
|
|
105707
|
+
ProductCreated.toObject = function toObject(message, options) {
|
|
105708
|
+
if (!options)
|
|
105709
|
+
options = {};
|
|
105710
|
+
var object = {};
|
|
105711
|
+
if (options.defaults)
|
|
105712
|
+
object.product = null;
|
|
105713
|
+
if (message.product != null && message.hasOwnProperty("product"))
|
|
105714
|
+
object.product = $root.productcatalog.Product.toObject(message.product, options);
|
|
105715
|
+
return object;
|
|
105716
|
+
};
|
|
105717
|
+
|
|
105718
|
+
/**
|
|
105719
|
+
* Converts this ProductCreated to JSON.
|
|
105720
|
+
* @function toJSON
|
|
105721
|
+
* @memberof ProductCreated
|
|
105722
|
+
* @instance
|
|
105723
|
+
* @returns {Object.<string,*>} JSON object
|
|
105724
|
+
*/
|
|
105725
|
+
ProductCreated.prototype.toJSON = function toJSON() {
|
|
105726
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
105727
|
+
};
|
|
105728
|
+
|
|
105729
|
+
return ProductCreated;
|
|
105730
|
+
})();
|
|
105731
|
+
|
|
105157
105732
|
$root.ProductSkuCreated = (function() {
|
|
105158
105733
|
|
|
105159
105734
|
/**
|
package/package.json
CHANGED