@headspace/protos-events 1.208.0 → 1.209.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 CHANGED
@@ -3322,6 +3322,138 @@ export namespace b2b {
3322
3322
  public toJSON(): { [k: string]: any };
3323
3323
  }
3324
3324
 
3325
+ /** Properties of an Organization. */
3326
+ interface IOrganization {
3327
+
3328
+ /** Organization orgId */
3329
+ orgId?: (number|null);
3330
+
3331
+ /** Organization orgName */
3332
+ orgName?: (string|null);
3333
+
3334
+ /** Organization salesforceAccountId */
3335
+ salesforceAccountId?: (string|null);
3336
+
3337
+ /** Organization orgType */
3338
+ orgType?: (b2b.OrgType|null);
3339
+
3340
+ /** Organization ssoEnabled */
3341
+ ssoEnabled?: (boolean|null);
3342
+
3343
+ /** Organization promoEmailsDisabled */
3344
+ promoEmailsDisabled?: (boolean|null);
3345
+
3346
+ /** Organization healthHubId */
3347
+ healthHubId?: (string|null);
3348
+
3349
+ /** Organization healthHubName */
3350
+ healthHubName?: (string|null);
3351
+ }
3352
+
3353
+ /** Represents an Organization. */
3354
+ class Organization implements IOrganization {
3355
+
3356
+ /**
3357
+ * Constructs a new Organization.
3358
+ * @param [properties] Properties to set
3359
+ */
3360
+ constructor(properties?: b2b.IOrganization);
3361
+
3362
+ /** Organization orgId. */
3363
+ public orgId: number;
3364
+
3365
+ /** Organization orgName. */
3366
+ public orgName: string;
3367
+
3368
+ /** Organization salesforceAccountId. */
3369
+ public salesforceAccountId: string;
3370
+
3371
+ /** Organization orgType. */
3372
+ public orgType: b2b.OrgType;
3373
+
3374
+ /** Organization ssoEnabled. */
3375
+ public ssoEnabled: boolean;
3376
+
3377
+ /** Organization promoEmailsDisabled. */
3378
+ public promoEmailsDisabled: boolean;
3379
+
3380
+ /** Organization healthHubId. */
3381
+ public healthHubId: string;
3382
+
3383
+ /** Organization healthHubName. */
3384
+ public healthHubName: string;
3385
+
3386
+ /**
3387
+ * Creates a new Organization instance using the specified properties.
3388
+ * @param [properties] Properties to set
3389
+ * @returns Organization instance
3390
+ */
3391
+ public static create(properties?: b2b.IOrganization): b2b.Organization;
3392
+
3393
+ /**
3394
+ * Encodes the specified Organization message. Does not implicitly {@link b2b.Organization.verify|verify} messages.
3395
+ * @param message Organization message or plain object to encode
3396
+ * @param [writer] Writer to encode to
3397
+ * @returns Writer
3398
+ */
3399
+ public static encode(message: b2b.IOrganization, writer?: $protobuf.Writer): $protobuf.Writer;
3400
+
3401
+ /**
3402
+ * Encodes the specified Organization message, length delimited. Does not implicitly {@link b2b.Organization.verify|verify} messages.
3403
+ * @param message Organization message or plain object to encode
3404
+ * @param [writer] Writer to encode to
3405
+ * @returns Writer
3406
+ */
3407
+ public static encodeDelimited(message: b2b.IOrganization, writer?: $protobuf.Writer): $protobuf.Writer;
3408
+
3409
+ /**
3410
+ * Decodes an Organization message from the specified reader or buffer.
3411
+ * @param reader Reader or buffer to decode from
3412
+ * @param [length] Message length if known beforehand
3413
+ * @returns Organization
3414
+ * @throws {Error} If the payload is not a reader or valid buffer
3415
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3416
+ */
3417
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): b2b.Organization;
3418
+
3419
+ /**
3420
+ * Decodes an Organization message from the specified reader or buffer, length delimited.
3421
+ * @param reader Reader or buffer to decode from
3422
+ * @returns Organization
3423
+ * @throws {Error} If the payload is not a reader or valid buffer
3424
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3425
+ */
3426
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): b2b.Organization;
3427
+
3428
+ /**
3429
+ * Verifies an Organization message.
3430
+ * @param message Plain object to verify
3431
+ * @returns `null` if valid, otherwise the reason why it is not
3432
+ */
3433
+ public static verify(message: { [k: string]: any }): (string|null);
3434
+
3435
+ /**
3436
+ * Creates an Organization message from a plain object. Also converts values to their respective internal types.
3437
+ * @param object Plain object
3438
+ * @returns Organization
3439
+ */
3440
+ public static fromObject(object: { [k: string]: any }): b2b.Organization;
3441
+
3442
+ /**
3443
+ * Creates a plain object from an Organization message. Also converts values to other types if specified.
3444
+ * @param message Organization
3445
+ * @param [options] Conversion options
3446
+ * @returns Plain object
3447
+ */
3448
+ public static toObject(message: b2b.Organization, options?: $protobuf.IConversionOptions): { [k: string]: any };
3449
+
3450
+ /**
3451
+ * Converts this Organization to JSON.
3452
+ * @returns JSON object
3453
+ */
3454
+ public toJSON(): { [k: string]: any };
3455
+ }
3456
+
3325
3457
  /** OrgType enum. */
3326
3458
  enum OrgType {
3327
3459
  ORG_TYPE_UNKNOWN = 0,
@@ -16655,6 +16787,210 @@ export class AssetCreated implements IAssetCreated {
16655
16787
  public toJSON(): { [k: string]: any };
16656
16788
  }
16657
16789
 
16790
+ /** Properties of an OrganizationCreated. */
16791
+ export interface IOrganizationCreated {
16792
+
16793
+ /** OrganizationCreated dashboardUserId */
16794
+ dashboardUserId?: (number|null);
16795
+
16796
+ /** OrganizationCreated timestamp */
16797
+ timestamp?: (number|Long|null);
16798
+
16799
+ /** OrganizationCreated organization */
16800
+ organization?: (b2b.IOrganization|null);
16801
+ }
16802
+
16803
+ /** Represents an OrganizationCreated. */
16804
+ export class OrganizationCreated implements IOrganizationCreated {
16805
+
16806
+ /**
16807
+ * Constructs a new OrganizationCreated.
16808
+ * @param [properties] Properties to set
16809
+ */
16810
+ constructor(properties?: IOrganizationCreated);
16811
+
16812
+ /** OrganizationCreated dashboardUserId. */
16813
+ public dashboardUserId: number;
16814
+
16815
+ /** OrganizationCreated timestamp. */
16816
+ public timestamp: (number|Long);
16817
+
16818
+ /** OrganizationCreated organization. */
16819
+ public organization?: (b2b.IOrganization|null);
16820
+
16821
+ /**
16822
+ * Creates a new OrganizationCreated instance using the specified properties.
16823
+ * @param [properties] Properties to set
16824
+ * @returns OrganizationCreated instance
16825
+ */
16826
+ public static create(properties?: IOrganizationCreated): OrganizationCreated;
16827
+
16828
+ /**
16829
+ * Encodes the specified OrganizationCreated message. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
16830
+ * @param message OrganizationCreated message or plain object to encode
16831
+ * @param [writer] Writer to encode to
16832
+ * @returns Writer
16833
+ */
16834
+ public static encode(message: IOrganizationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
16835
+
16836
+ /**
16837
+ * Encodes the specified OrganizationCreated message, length delimited. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
16838
+ * @param message OrganizationCreated message or plain object to encode
16839
+ * @param [writer] Writer to encode to
16840
+ * @returns Writer
16841
+ */
16842
+ public static encodeDelimited(message: IOrganizationCreated, writer?: $protobuf.Writer): $protobuf.Writer;
16843
+
16844
+ /**
16845
+ * Decodes an OrganizationCreated message from the specified reader or buffer.
16846
+ * @param reader Reader or buffer to decode from
16847
+ * @param [length] Message length if known beforehand
16848
+ * @returns OrganizationCreated
16849
+ * @throws {Error} If the payload is not a reader or valid buffer
16850
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16851
+ */
16852
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationCreated;
16853
+
16854
+ /**
16855
+ * Decodes an OrganizationCreated message from the specified reader or buffer, length delimited.
16856
+ * @param reader Reader or buffer to decode from
16857
+ * @returns OrganizationCreated
16858
+ * @throws {Error} If the payload is not a reader or valid buffer
16859
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16860
+ */
16861
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationCreated;
16862
+
16863
+ /**
16864
+ * Verifies an OrganizationCreated message.
16865
+ * @param message Plain object to verify
16866
+ * @returns `null` if valid, otherwise the reason why it is not
16867
+ */
16868
+ public static verify(message: { [k: string]: any }): (string|null);
16869
+
16870
+ /**
16871
+ * Creates an OrganizationCreated message from a plain object. Also converts values to their respective internal types.
16872
+ * @param object Plain object
16873
+ * @returns OrganizationCreated
16874
+ */
16875
+ public static fromObject(object: { [k: string]: any }): OrganizationCreated;
16876
+
16877
+ /**
16878
+ * Creates a plain object from an OrganizationCreated message. Also converts values to other types if specified.
16879
+ * @param message OrganizationCreated
16880
+ * @param [options] Conversion options
16881
+ * @returns Plain object
16882
+ */
16883
+ public static toObject(message: OrganizationCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
16884
+
16885
+ /**
16886
+ * Converts this OrganizationCreated to JSON.
16887
+ * @returns JSON object
16888
+ */
16889
+ public toJSON(): { [k: string]: any };
16890
+ }
16891
+
16892
+ /** Properties of an OrganizationUpdated. */
16893
+ export interface IOrganizationUpdated {
16894
+
16895
+ /** OrganizationUpdated dashboardUserId */
16896
+ dashboardUserId?: (number|null);
16897
+
16898
+ /** OrganizationUpdated timestamp */
16899
+ timestamp?: (number|Long|null);
16900
+
16901
+ /** OrganizationUpdated organization */
16902
+ organization?: (b2b.IOrganization|null);
16903
+ }
16904
+
16905
+ /** Represents an OrganizationUpdated. */
16906
+ export class OrganizationUpdated implements IOrganizationUpdated {
16907
+
16908
+ /**
16909
+ * Constructs a new OrganizationUpdated.
16910
+ * @param [properties] Properties to set
16911
+ */
16912
+ constructor(properties?: IOrganizationUpdated);
16913
+
16914
+ /** OrganizationUpdated dashboardUserId. */
16915
+ public dashboardUserId: number;
16916
+
16917
+ /** OrganizationUpdated timestamp. */
16918
+ public timestamp: (number|Long);
16919
+
16920
+ /** OrganizationUpdated organization. */
16921
+ public organization?: (b2b.IOrganization|null);
16922
+
16923
+ /**
16924
+ * Creates a new OrganizationUpdated instance using the specified properties.
16925
+ * @param [properties] Properties to set
16926
+ * @returns OrganizationUpdated instance
16927
+ */
16928
+ public static create(properties?: IOrganizationUpdated): OrganizationUpdated;
16929
+
16930
+ /**
16931
+ * Encodes the specified OrganizationUpdated message. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
16932
+ * @param message OrganizationUpdated message or plain object to encode
16933
+ * @param [writer] Writer to encode to
16934
+ * @returns Writer
16935
+ */
16936
+ public static encode(message: IOrganizationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
16937
+
16938
+ /**
16939
+ * Encodes the specified OrganizationUpdated message, length delimited. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
16940
+ * @param message OrganizationUpdated message or plain object to encode
16941
+ * @param [writer] Writer to encode to
16942
+ * @returns Writer
16943
+ */
16944
+ public static encodeDelimited(message: IOrganizationUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
16945
+
16946
+ /**
16947
+ * Decodes an OrganizationUpdated message from the specified reader or buffer.
16948
+ * @param reader Reader or buffer to decode from
16949
+ * @param [length] Message length if known beforehand
16950
+ * @returns OrganizationUpdated
16951
+ * @throws {Error} If the payload is not a reader or valid buffer
16952
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16953
+ */
16954
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationUpdated;
16955
+
16956
+ /**
16957
+ * Decodes an OrganizationUpdated message from the specified reader or buffer, length delimited.
16958
+ * @param reader Reader or buffer to decode from
16959
+ * @returns OrganizationUpdated
16960
+ * @throws {Error} If the payload is not a reader or valid buffer
16961
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16962
+ */
16963
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationUpdated;
16964
+
16965
+ /**
16966
+ * Verifies an OrganizationUpdated message.
16967
+ * @param message Plain object to verify
16968
+ * @returns `null` if valid, otherwise the reason why it is not
16969
+ */
16970
+ public static verify(message: { [k: string]: any }): (string|null);
16971
+
16972
+ /**
16973
+ * Creates an OrganizationUpdated message from a plain object. Also converts values to their respective internal types.
16974
+ * @param object Plain object
16975
+ * @returns OrganizationUpdated
16976
+ */
16977
+ public static fromObject(object: { [k: string]: any }): OrganizationUpdated;
16978
+
16979
+ /**
16980
+ * Creates a plain object from an OrganizationUpdated message. Also converts values to other types if specified.
16981
+ * @param message OrganizationUpdated
16982
+ * @param [options] Conversion options
16983
+ * @returns Plain object
16984
+ */
16985
+ public static toObject(message: OrganizationUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
16986
+
16987
+ /**
16988
+ * Converts this OrganizationUpdated to JSON.
16989
+ * @returns JSON object
16990
+ */
16991
+ public toJSON(): { [k: string]: any };
16992
+ }
16993
+
16658
16994
  /** Properties of a FamilyMemberAdded. */
16659
16995
  export interface IFamilyMemberAdded {
16660
16996
 
package/lib/index.js CHANGED
@@ -7537,6 +7537,386 @@ $root.b2b = (function() {
7537
7537
  return UpdateAdminAttributes;
7538
7538
  })();
7539
7539
 
7540
+ b2b.Organization = (function() {
7541
+
7542
+ /**
7543
+ * Properties of an Organization.
7544
+ * @memberof b2b
7545
+ * @interface IOrganization
7546
+ * @property {number|null} [orgId] Organization orgId
7547
+ * @property {string|null} [orgName] Organization orgName
7548
+ * @property {string|null} [salesforceAccountId] Organization salesforceAccountId
7549
+ * @property {b2b.OrgType|null} [orgType] Organization orgType
7550
+ * @property {boolean|null} [ssoEnabled] Organization ssoEnabled
7551
+ * @property {boolean|null} [promoEmailsDisabled] Organization promoEmailsDisabled
7552
+ * @property {string|null} [healthHubId] Organization healthHubId
7553
+ * @property {string|null} [healthHubName] Organization healthHubName
7554
+ */
7555
+
7556
+ /**
7557
+ * Constructs a new Organization.
7558
+ * @memberof b2b
7559
+ * @classdesc Represents an Organization.
7560
+ * @implements IOrganization
7561
+ * @constructor
7562
+ * @param {b2b.IOrganization=} [properties] Properties to set
7563
+ */
7564
+ function Organization(properties) {
7565
+ if (properties)
7566
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7567
+ if (properties[keys[i]] != null)
7568
+ this[keys[i]] = properties[keys[i]];
7569
+ }
7570
+
7571
+ /**
7572
+ * Organization orgId.
7573
+ * @member {number} orgId
7574
+ * @memberof b2b.Organization
7575
+ * @instance
7576
+ */
7577
+ Organization.prototype.orgId = 0;
7578
+
7579
+ /**
7580
+ * Organization orgName.
7581
+ * @member {string} orgName
7582
+ * @memberof b2b.Organization
7583
+ * @instance
7584
+ */
7585
+ Organization.prototype.orgName = "";
7586
+
7587
+ /**
7588
+ * Organization salesforceAccountId.
7589
+ * @member {string} salesforceAccountId
7590
+ * @memberof b2b.Organization
7591
+ * @instance
7592
+ */
7593
+ Organization.prototype.salesforceAccountId = "";
7594
+
7595
+ /**
7596
+ * Organization orgType.
7597
+ * @member {b2b.OrgType} orgType
7598
+ * @memberof b2b.Organization
7599
+ * @instance
7600
+ */
7601
+ Organization.prototype.orgType = 0;
7602
+
7603
+ /**
7604
+ * Organization ssoEnabled.
7605
+ * @member {boolean} ssoEnabled
7606
+ * @memberof b2b.Organization
7607
+ * @instance
7608
+ */
7609
+ Organization.prototype.ssoEnabled = false;
7610
+
7611
+ /**
7612
+ * Organization promoEmailsDisabled.
7613
+ * @member {boolean} promoEmailsDisabled
7614
+ * @memberof b2b.Organization
7615
+ * @instance
7616
+ */
7617
+ Organization.prototype.promoEmailsDisabled = false;
7618
+
7619
+ /**
7620
+ * Organization healthHubId.
7621
+ * @member {string} healthHubId
7622
+ * @memberof b2b.Organization
7623
+ * @instance
7624
+ */
7625
+ Organization.prototype.healthHubId = "";
7626
+
7627
+ /**
7628
+ * Organization healthHubName.
7629
+ * @member {string} healthHubName
7630
+ * @memberof b2b.Organization
7631
+ * @instance
7632
+ */
7633
+ Organization.prototype.healthHubName = "";
7634
+
7635
+ /**
7636
+ * Creates a new Organization instance using the specified properties.
7637
+ * @function create
7638
+ * @memberof b2b.Organization
7639
+ * @static
7640
+ * @param {b2b.IOrganization=} [properties] Properties to set
7641
+ * @returns {b2b.Organization} Organization instance
7642
+ */
7643
+ Organization.create = function create(properties) {
7644
+ return new Organization(properties);
7645
+ };
7646
+
7647
+ /**
7648
+ * Encodes the specified Organization message. Does not implicitly {@link b2b.Organization.verify|verify} messages.
7649
+ * @function encode
7650
+ * @memberof b2b.Organization
7651
+ * @static
7652
+ * @param {b2b.IOrganization} message Organization message or plain object to encode
7653
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7654
+ * @returns {$protobuf.Writer} Writer
7655
+ */
7656
+ Organization.encode = function encode(message, writer) {
7657
+ if (!writer)
7658
+ writer = $Writer.create();
7659
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
7660
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.orgId);
7661
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
7662
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
7663
+ if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
7664
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.salesforceAccountId);
7665
+ if (message.orgType != null && message.hasOwnProperty("orgType"))
7666
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.orgType);
7667
+ if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
7668
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ssoEnabled);
7669
+ if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
7670
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.promoEmailsDisabled);
7671
+ if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
7672
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthHubId);
7673
+ if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
7674
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.healthHubName);
7675
+ return writer;
7676
+ };
7677
+
7678
+ /**
7679
+ * Encodes the specified Organization message, length delimited. Does not implicitly {@link b2b.Organization.verify|verify} messages.
7680
+ * @function encodeDelimited
7681
+ * @memberof b2b.Organization
7682
+ * @static
7683
+ * @param {b2b.IOrganization} message Organization message or plain object to encode
7684
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7685
+ * @returns {$protobuf.Writer} Writer
7686
+ */
7687
+ Organization.encodeDelimited = function encodeDelimited(message, writer) {
7688
+ return this.encode(message, writer).ldelim();
7689
+ };
7690
+
7691
+ /**
7692
+ * Decodes an Organization message from the specified reader or buffer.
7693
+ * @function decode
7694
+ * @memberof b2b.Organization
7695
+ * @static
7696
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7697
+ * @param {number} [length] Message length if known beforehand
7698
+ * @returns {b2b.Organization} Organization
7699
+ * @throws {Error} If the payload is not a reader or valid buffer
7700
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7701
+ */
7702
+ Organization.decode = function decode(reader, length) {
7703
+ if (!(reader instanceof $Reader))
7704
+ reader = $Reader.create(reader);
7705
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.b2b.Organization();
7706
+ while (reader.pos < end) {
7707
+ var tag = reader.uint32();
7708
+ switch (tag >>> 3) {
7709
+ case 1:
7710
+ message.orgId = reader.uint32();
7711
+ break;
7712
+ case 2:
7713
+ message.orgName = reader.string();
7714
+ break;
7715
+ case 3:
7716
+ message.salesforceAccountId = reader.string();
7717
+ break;
7718
+ case 4:
7719
+ message.orgType = reader.int32();
7720
+ break;
7721
+ case 5:
7722
+ message.ssoEnabled = reader.bool();
7723
+ break;
7724
+ case 6:
7725
+ message.promoEmailsDisabled = reader.bool();
7726
+ break;
7727
+ case 7:
7728
+ message.healthHubId = reader.string();
7729
+ break;
7730
+ case 8:
7731
+ message.healthHubName = reader.string();
7732
+ break;
7733
+ default:
7734
+ reader.skipType(tag & 7);
7735
+ break;
7736
+ }
7737
+ }
7738
+ return message;
7739
+ };
7740
+
7741
+ /**
7742
+ * Decodes an Organization message from the specified reader or buffer, length delimited.
7743
+ * @function decodeDelimited
7744
+ * @memberof b2b.Organization
7745
+ * @static
7746
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7747
+ * @returns {b2b.Organization} Organization
7748
+ * @throws {Error} If the payload is not a reader or valid buffer
7749
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7750
+ */
7751
+ Organization.decodeDelimited = function decodeDelimited(reader) {
7752
+ if (!(reader instanceof $Reader))
7753
+ reader = new $Reader(reader);
7754
+ return this.decode(reader, reader.uint32());
7755
+ };
7756
+
7757
+ /**
7758
+ * Verifies an Organization message.
7759
+ * @function verify
7760
+ * @memberof b2b.Organization
7761
+ * @static
7762
+ * @param {Object.<string,*>} message Plain object to verify
7763
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7764
+ */
7765
+ Organization.verify = function verify(message) {
7766
+ if (typeof message !== "object" || message === null)
7767
+ return "object expected";
7768
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
7769
+ if (!$util.isInteger(message.orgId))
7770
+ return "orgId: integer expected";
7771
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
7772
+ if (!$util.isString(message.orgName))
7773
+ return "orgName: string expected";
7774
+ if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
7775
+ if (!$util.isString(message.salesforceAccountId))
7776
+ return "salesforceAccountId: string expected";
7777
+ if (message.orgType != null && message.hasOwnProperty("orgType"))
7778
+ switch (message.orgType) {
7779
+ default:
7780
+ return "orgType: enum value expected";
7781
+ case 0:
7782
+ case 1:
7783
+ case 2:
7784
+ case 3:
7785
+ case 4:
7786
+ case 5:
7787
+ case 6:
7788
+ break;
7789
+ }
7790
+ if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
7791
+ if (typeof message.ssoEnabled !== "boolean")
7792
+ return "ssoEnabled: boolean expected";
7793
+ if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
7794
+ if (typeof message.promoEmailsDisabled !== "boolean")
7795
+ return "promoEmailsDisabled: boolean expected";
7796
+ if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
7797
+ if (!$util.isString(message.healthHubId))
7798
+ return "healthHubId: string expected";
7799
+ if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
7800
+ if (!$util.isString(message.healthHubName))
7801
+ return "healthHubName: string expected";
7802
+ return null;
7803
+ };
7804
+
7805
+ /**
7806
+ * Creates an Organization message from a plain object. Also converts values to their respective internal types.
7807
+ * @function fromObject
7808
+ * @memberof b2b.Organization
7809
+ * @static
7810
+ * @param {Object.<string,*>} object Plain object
7811
+ * @returns {b2b.Organization} Organization
7812
+ */
7813
+ Organization.fromObject = function fromObject(object) {
7814
+ if (object instanceof $root.b2b.Organization)
7815
+ return object;
7816
+ var message = new $root.b2b.Organization();
7817
+ if (object.orgId != null)
7818
+ message.orgId = object.orgId >>> 0;
7819
+ if (object.orgName != null)
7820
+ message.orgName = String(object.orgName);
7821
+ if (object.salesforceAccountId != null)
7822
+ message.salesforceAccountId = String(object.salesforceAccountId);
7823
+ switch (object.orgType) {
7824
+ case "ORG_TYPE_UNKNOWN":
7825
+ case 0:
7826
+ message.orgType = 0;
7827
+ break;
7828
+ case "ORG_TYPE_B2B":
7829
+ case 1:
7830
+ message.orgType = 1;
7831
+ break;
7832
+ case "ORG_TYPE_HEALTH":
7833
+ case 2:
7834
+ message.orgType = 2;
7835
+ break;
7836
+ case "ORG_TYPE_HEALTH_PARTNERSHIP":
7837
+ case 3:
7838
+ message.orgType = 3;
7839
+ break;
7840
+ case "ORG_TYPE_PARTNERSHIP":
7841
+ case 4:
7842
+ message.orgType = 4;
7843
+ break;
7844
+ case "ORG_TYPE_SOCIAL_IMPACT":
7845
+ case 5:
7846
+ message.orgType = 5;
7847
+ break;
7848
+ case "ORG_TYPE_TEST":
7849
+ case 6:
7850
+ message.orgType = 6;
7851
+ break;
7852
+ }
7853
+ if (object.ssoEnabled != null)
7854
+ message.ssoEnabled = Boolean(object.ssoEnabled);
7855
+ if (object.promoEmailsDisabled != null)
7856
+ message.promoEmailsDisabled = Boolean(object.promoEmailsDisabled);
7857
+ if (object.healthHubId != null)
7858
+ message.healthHubId = String(object.healthHubId);
7859
+ if (object.healthHubName != null)
7860
+ message.healthHubName = String(object.healthHubName);
7861
+ return message;
7862
+ };
7863
+
7864
+ /**
7865
+ * Creates a plain object from an Organization message. Also converts values to other types if specified.
7866
+ * @function toObject
7867
+ * @memberof b2b.Organization
7868
+ * @static
7869
+ * @param {b2b.Organization} message Organization
7870
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
7871
+ * @returns {Object.<string,*>} Plain object
7872
+ */
7873
+ Organization.toObject = function toObject(message, options) {
7874
+ if (!options)
7875
+ options = {};
7876
+ var object = {};
7877
+ if (options.defaults) {
7878
+ object.orgId = 0;
7879
+ object.orgName = "";
7880
+ object.salesforceAccountId = "";
7881
+ object.orgType = options.enums === String ? "ORG_TYPE_UNKNOWN" : 0;
7882
+ object.ssoEnabled = false;
7883
+ object.promoEmailsDisabled = false;
7884
+ object.healthHubId = "";
7885
+ object.healthHubName = "";
7886
+ }
7887
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
7888
+ object.orgId = message.orgId;
7889
+ if (message.orgName != null && message.hasOwnProperty("orgName"))
7890
+ object.orgName = message.orgName;
7891
+ if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
7892
+ object.salesforceAccountId = message.salesforceAccountId;
7893
+ if (message.orgType != null && message.hasOwnProperty("orgType"))
7894
+ object.orgType = options.enums === String ? $root.b2b.OrgType[message.orgType] : message.orgType;
7895
+ if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
7896
+ object.ssoEnabled = message.ssoEnabled;
7897
+ if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
7898
+ object.promoEmailsDisabled = message.promoEmailsDisabled;
7899
+ if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
7900
+ object.healthHubId = message.healthHubId;
7901
+ if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
7902
+ object.healthHubName = message.healthHubName;
7903
+ return object;
7904
+ };
7905
+
7906
+ /**
7907
+ * Converts this Organization to JSON.
7908
+ * @function toJSON
7909
+ * @memberof b2b.Organization
7910
+ * @instance
7911
+ * @returns {Object.<string,*>} JSON object
7912
+ */
7913
+ Organization.prototype.toJSON = function toJSON() {
7914
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7915
+ };
7916
+
7917
+ return Organization;
7918
+ })();
7919
+
7540
7920
  /**
7541
7921
  * OrgType enum.
7542
7922
  * @name b2b.OrgType
@@ -46250,6 +46630,508 @@ $root.AssetCreated = (function() {
46250
46630
  return AssetCreated;
46251
46631
  })();
46252
46632
 
46633
+ $root.OrganizationCreated = (function() {
46634
+
46635
+ /**
46636
+ * Properties of an OrganizationCreated.
46637
+ * @exports IOrganizationCreated
46638
+ * @interface IOrganizationCreated
46639
+ * @property {number|null} [dashboardUserId] OrganizationCreated dashboardUserId
46640
+ * @property {number|Long|null} [timestamp] OrganizationCreated timestamp
46641
+ * @property {b2b.IOrganization|null} [organization] OrganizationCreated organization
46642
+ */
46643
+
46644
+ /**
46645
+ * Constructs a new OrganizationCreated.
46646
+ * @exports OrganizationCreated
46647
+ * @classdesc Represents an OrganizationCreated.
46648
+ * @implements IOrganizationCreated
46649
+ * @constructor
46650
+ * @param {IOrganizationCreated=} [properties] Properties to set
46651
+ */
46652
+ function OrganizationCreated(properties) {
46653
+ if (properties)
46654
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46655
+ if (properties[keys[i]] != null)
46656
+ this[keys[i]] = properties[keys[i]];
46657
+ }
46658
+
46659
+ /**
46660
+ * OrganizationCreated dashboardUserId.
46661
+ * @member {number} dashboardUserId
46662
+ * @memberof OrganizationCreated
46663
+ * @instance
46664
+ */
46665
+ OrganizationCreated.prototype.dashboardUserId = 0;
46666
+
46667
+ /**
46668
+ * OrganizationCreated timestamp.
46669
+ * @member {number|Long} timestamp
46670
+ * @memberof OrganizationCreated
46671
+ * @instance
46672
+ */
46673
+ OrganizationCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46674
+
46675
+ /**
46676
+ * OrganizationCreated organization.
46677
+ * @member {b2b.IOrganization|null|undefined} organization
46678
+ * @memberof OrganizationCreated
46679
+ * @instance
46680
+ */
46681
+ OrganizationCreated.prototype.organization = null;
46682
+
46683
+ /**
46684
+ * Creates a new OrganizationCreated instance using the specified properties.
46685
+ * @function create
46686
+ * @memberof OrganizationCreated
46687
+ * @static
46688
+ * @param {IOrganizationCreated=} [properties] Properties to set
46689
+ * @returns {OrganizationCreated} OrganizationCreated instance
46690
+ */
46691
+ OrganizationCreated.create = function create(properties) {
46692
+ return new OrganizationCreated(properties);
46693
+ };
46694
+
46695
+ /**
46696
+ * Encodes the specified OrganizationCreated message. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
46697
+ * @function encode
46698
+ * @memberof OrganizationCreated
46699
+ * @static
46700
+ * @param {IOrganizationCreated} message OrganizationCreated message or plain object to encode
46701
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46702
+ * @returns {$protobuf.Writer} Writer
46703
+ */
46704
+ OrganizationCreated.encode = function encode(message, writer) {
46705
+ if (!writer)
46706
+ writer = $Writer.create();
46707
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
46708
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
46709
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46710
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
46711
+ if (message.organization != null && message.hasOwnProperty("organization"))
46712
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
46713
+ return writer;
46714
+ };
46715
+
46716
+ /**
46717
+ * Encodes the specified OrganizationCreated message, length delimited. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
46718
+ * @function encodeDelimited
46719
+ * @memberof OrganizationCreated
46720
+ * @static
46721
+ * @param {IOrganizationCreated} message OrganizationCreated message or plain object to encode
46722
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46723
+ * @returns {$protobuf.Writer} Writer
46724
+ */
46725
+ OrganizationCreated.encodeDelimited = function encodeDelimited(message, writer) {
46726
+ return this.encode(message, writer).ldelim();
46727
+ };
46728
+
46729
+ /**
46730
+ * Decodes an OrganizationCreated message from the specified reader or buffer.
46731
+ * @function decode
46732
+ * @memberof OrganizationCreated
46733
+ * @static
46734
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46735
+ * @param {number} [length] Message length if known beforehand
46736
+ * @returns {OrganizationCreated} OrganizationCreated
46737
+ * @throws {Error} If the payload is not a reader or valid buffer
46738
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46739
+ */
46740
+ OrganizationCreated.decode = function decode(reader, length) {
46741
+ if (!(reader instanceof $Reader))
46742
+ reader = $Reader.create(reader);
46743
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationCreated();
46744
+ while (reader.pos < end) {
46745
+ var tag = reader.uint32();
46746
+ switch (tag >>> 3) {
46747
+ case 1:
46748
+ message.dashboardUserId = reader.uint32();
46749
+ break;
46750
+ case 2:
46751
+ message.timestamp = reader.uint64();
46752
+ break;
46753
+ case 3:
46754
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
46755
+ break;
46756
+ default:
46757
+ reader.skipType(tag & 7);
46758
+ break;
46759
+ }
46760
+ }
46761
+ return message;
46762
+ };
46763
+
46764
+ /**
46765
+ * Decodes an OrganizationCreated message from the specified reader or buffer, length delimited.
46766
+ * @function decodeDelimited
46767
+ * @memberof OrganizationCreated
46768
+ * @static
46769
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46770
+ * @returns {OrganizationCreated} OrganizationCreated
46771
+ * @throws {Error} If the payload is not a reader or valid buffer
46772
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46773
+ */
46774
+ OrganizationCreated.decodeDelimited = function decodeDelimited(reader) {
46775
+ if (!(reader instanceof $Reader))
46776
+ reader = new $Reader(reader);
46777
+ return this.decode(reader, reader.uint32());
46778
+ };
46779
+
46780
+ /**
46781
+ * Verifies an OrganizationCreated message.
46782
+ * @function verify
46783
+ * @memberof OrganizationCreated
46784
+ * @static
46785
+ * @param {Object.<string,*>} message Plain object to verify
46786
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46787
+ */
46788
+ OrganizationCreated.verify = function verify(message) {
46789
+ if (typeof message !== "object" || message === null)
46790
+ return "object expected";
46791
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
46792
+ if (!$util.isInteger(message.dashboardUserId))
46793
+ return "dashboardUserId: integer expected";
46794
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46795
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
46796
+ return "timestamp: integer|Long expected";
46797
+ if (message.organization != null && message.hasOwnProperty("organization")) {
46798
+ var error = $root.b2b.Organization.verify(message.organization);
46799
+ if (error)
46800
+ return "organization." + error;
46801
+ }
46802
+ return null;
46803
+ };
46804
+
46805
+ /**
46806
+ * Creates an OrganizationCreated message from a plain object. Also converts values to their respective internal types.
46807
+ * @function fromObject
46808
+ * @memberof OrganizationCreated
46809
+ * @static
46810
+ * @param {Object.<string,*>} object Plain object
46811
+ * @returns {OrganizationCreated} OrganizationCreated
46812
+ */
46813
+ OrganizationCreated.fromObject = function fromObject(object) {
46814
+ if (object instanceof $root.OrganizationCreated)
46815
+ return object;
46816
+ var message = new $root.OrganizationCreated();
46817
+ if (object.dashboardUserId != null)
46818
+ message.dashboardUserId = object.dashboardUserId >>> 0;
46819
+ if (object.timestamp != null)
46820
+ if ($util.Long)
46821
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
46822
+ else if (typeof object.timestamp === "string")
46823
+ message.timestamp = parseInt(object.timestamp, 10);
46824
+ else if (typeof object.timestamp === "number")
46825
+ message.timestamp = object.timestamp;
46826
+ else if (typeof object.timestamp === "object")
46827
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
46828
+ if (object.organization != null) {
46829
+ if (typeof object.organization !== "object")
46830
+ throw TypeError(".OrganizationCreated.organization: object expected");
46831
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
46832
+ }
46833
+ return message;
46834
+ };
46835
+
46836
+ /**
46837
+ * Creates a plain object from an OrganizationCreated message. Also converts values to other types if specified.
46838
+ * @function toObject
46839
+ * @memberof OrganizationCreated
46840
+ * @static
46841
+ * @param {OrganizationCreated} message OrganizationCreated
46842
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46843
+ * @returns {Object.<string,*>} Plain object
46844
+ */
46845
+ OrganizationCreated.toObject = function toObject(message, options) {
46846
+ if (!options)
46847
+ options = {};
46848
+ var object = {};
46849
+ if (options.defaults) {
46850
+ object.dashboardUserId = 0;
46851
+ if ($util.Long) {
46852
+ var long = new $util.Long(0, 0, true);
46853
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46854
+ } else
46855
+ object.timestamp = options.longs === String ? "0" : 0;
46856
+ object.organization = null;
46857
+ }
46858
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
46859
+ object.dashboardUserId = message.dashboardUserId;
46860
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46861
+ if (typeof message.timestamp === "number")
46862
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
46863
+ else
46864
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
46865
+ if (message.organization != null && message.hasOwnProperty("organization"))
46866
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
46867
+ return object;
46868
+ };
46869
+
46870
+ /**
46871
+ * Converts this OrganizationCreated to JSON.
46872
+ * @function toJSON
46873
+ * @memberof OrganizationCreated
46874
+ * @instance
46875
+ * @returns {Object.<string,*>} JSON object
46876
+ */
46877
+ OrganizationCreated.prototype.toJSON = function toJSON() {
46878
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46879
+ };
46880
+
46881
+ return OrganizationCreated;
46882
+ })();
46883
+
46884
+ $root.OrganizationUpdated = (function() {
46885
+
46886
+ /**
46887
+ * Properties of an OrganizationUpdated.
46888
+ * @exports IOrganizationUpdated
46889
+ * @interface IOrganizationUpdated
46890
+ * @property {number|null} [dashboardUserId] OrganizationUpdated dashboardUserId
46891
+ * @property {number|Long|null} [timestamp] OrganizationUpdated timestamp
46892
+ * @property {b2b.IOrganization|null} [organization] OrganizationUpdated organization
46893
+ */
46894
+
46895
+ /**
46896
+ * Constructs a new OrganizationUpdated.
46897
+ * @exports OrganizationUpdated
46898
+ * @classdesc Represents an OrganizationUpdated.
46899
+ * @implements IOrganizationUpdated
46900
+ * @constructor
46901
+ * @param {IOrganizationUpdated=} [properties] Properties to set
46902
+ */
46903
+ function OrganizationUpdated(properties) {
46904
+ if (properties)
46905
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46906
+ if (properties[keys[i]] != null)
46907
+ this[keys[i]] = properties[keys[i]];
46908
+ }
46909
+
46910
+ /**
46911
+ * OrganizationUpdated dashboardUserId.
46912
+ * @member {number} dashboardUserId
46913
+ * @memberof OrganizationUpdated
46914
+ * @instance
46915
+ */
46916
+ OrganizationUpdated.prototype.dashboardUserId = 0;
46917
+
46918
+ /**
46919
+ * OrganizationUpdated timestamp.
46920
+ * @member {number|Long} timestamp
46921
+ * @memberof OrganizationUpdated
46922
+ * @instance
46923
+ */
46924
+ OrganizationUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46925
+
46926
+ /**
46927
+ * OrganizationUpdated organization.
46928
+ * @member {b2b.IOrganization|null|undefined} organization
46929
+ * @memberof OrganizationUpdated
46930
+ * @instance
46931
+ */
46932
+ OrganizationUpdated.prototype.organization = null;
46933
+
46934
+ /**
46935
+ * Creates a new OrganizationUpdated instance using the specified properties.
46936
+ * @function create
46937
+ * @memberof OrganizationUpdated
46938
+ * @static
46939
+ * @param {IOrganizationUpdated=} [properties] Properties to set
46940
+ * @returns {OrganizationUpdated} OrganizationUpdated instance
46941
+ */
46942
+ OrganizationUpdated.create = function create(properties) {
46943
+ return new OrganizationUpdated(properties);
46944
+ };
46945
+
46946
+ /**
46947
+ * Encodes the specified OrganizationUpdated message. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
46948
+ * @function encode
46949
+ * @memberof OrganizationUpdated
46950
+ * @static
46951
+ * @param {IOrganizationUpdated} message OrganizationUpdated message or plain object to encode
46952
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46953
+ * @returns {$protobuf.Writer} Writer
46954
+ */
46955
+ OrganizationUpdated.encode = function encode(message, writer) {
46956
+ if (!writer)
46957
+ writer = $Writer.create();
46958
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
46959
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
46960
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46961
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
46962
+ if (message.organization != null && message.hasOwnProperty("organization"))
46963
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
46964
+ return writer;
46965
+ };
46966
+
46967
+ /**
46968
+ * Encodes the specified OrganizationUpdated message, length delimited. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
46969
+ * @function encodeDelimited
46970
+ * @memberof OrganizationUpdated
46971
+ * @static
46972
+ * @param {IOrganizationUpdated} message OrganizationUpdated message or plain object to encode
46973
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46974
+ * @returns {$protobuf.Writer} Writer
46975
+ */
46976
+ OrganizationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
46977
+ return this.encode(message, writer).ldelim();
46978
+ };
46979
+
46980
+ /**
46981
+ * Decodes an OrganizationUpdated message from the specified reader or buffer.
46982
+ * @function decode
46983
+ * @memberof OrganizationUpdated
46984
+ * @static
46985
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46986
+ * @param {number} [length] Message length if known beforehand
46987
+ * @returns {OrganizationUpdated} OrganizationUpdated
46988
+ * @throws {Error} If the payload is not a reader or valid buffer
46989
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46990
+ */
46991
+ OrganizationUpdated.decode = function decode(reader, length) {
46992
+ if (!(reader instanceof $Reader))
46993
+ reader = $Reader.create(reader);
46994
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationUpdated();
46995
+ while (reader.pos < end) {
46996
+ var tag = reader.uint32();
46997
+ switch (tag >>> 3) {
46998
+ case 1:
46999
+ message.dashboardUserId = reader.uint32();
47000
+ break;
47001
+ case 2:
47002
+ message.timestamp = reader.uint64();
47003
+ break;
47004
+ case 3:
47005
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
47006
+ break;
47007
+ default:
47008
+ reader.skipType(tag & 7);
47009
+ break;
47010
+ }
47011
+ }
47012
+ return message;
47013
+ };
47014
+
47015
+ /**
47016
+ * Decodes an OrganizationUpdated message from the specified reader or buffer, length delimited.
47017
+ * @function decodeDelimited
47018
+ * @memberof OrganizationUpdated
47019
+ * @static
47020
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47021
+ * @returns {OrganizationUpdated} OrganizationUpdated
47022
+ * @throws {Error} If the payload is not a reader or valid buffer
47023
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47024
+ */
47025
+ OrganizationUpdated.decodeDelimited = function decodeDelimited(reader) {
47026
+ if (!(reader instanceof $Reader))
47027
+ reader = new $Reader(reader);
47028
+ return this.decode(reader, reader.uint32());
47029
+ };
47030
+
47031
+ /**
47032
+ * Verifies an OrganizationUpdated message.
47033
+ * @function verify
47034
+ * @memberof OrganizationUpdated
47035
+ * @static
47036
+ * @param {Object.<string,*>} message Plain object to verify
47037
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47038
+ */
47039
+ OrganizationUpdated.verify = function verify(message) {
47040
+ if (typeof message !== "object" || message === null)
47041
+ return "object expected";
47042
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47043
+ if (!$util.isInteger(message.dashboardUserId))
47044
+ return "dashboardUserId: integer expected";
47045
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47046
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
47047
+ return "timestamp: integer|Long expected";
47048
+ if (message.organization != null && message.hasOwnProperty("organization")) {
47049
+ var error = $root.b2b.Organization.verify(message.organization);
47050
+ if (error)
47051
+ return "organization." + error;
47052
+ }
47053
+ return null;
47054
+ };
47055
+
47056
+ /**
47057
+ * Creates an OrganizationUpdated message from a plain object. Also converts values to their respective internal types.
47058
+ * @function fromObject
47059
+ * @memberof OrganizationUpdated
47060
+ * @static
47061
+ * @param {Object.<string,*>} object Plain object
47062
+ * @returns {OrganizationUpdated} OrganizationUpdated
47063
+ */
47064
+ OrganizationUpdated.fromObject = function fromObject(object) {
47065
+ if (object instanceof $root.OrganizationUpdated)
47066
+ return object;
47067
+ var message = new $root.OrganizationUpdated();
47068
+ if (object.dashboardUserId != null)
47069
+ message.dashboardUserId = object.dashboardUserId >>> 0;
47070
+ if (object.timestamp != null)
47071
+ if ($util.Long)
47072
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
47073
+ else if (typeof object.timestamp === "string")
47074
+ message.timestamp = parseInt(object.timestamp, 10);
47075
+ else if (typeof object.timestamp === "number")
47076
+ message.timestamp = object.timestamp;
47077
+ else if (typeof object.timestamp === "object")
47078
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
47079
+ if (object.organization != null) {
47080
+ if (typeof object.organization !== "object")
47081
+ throw TypeError(".OrganizationUpdated.organization: object expected");
47082
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
47083
+ }
47084
+ return message;
47085
+ };
47086
+
47087
+ /**
47088
+ * Creates a plain object from an OrganizationUpdated message. Also converts values to other types if specified.
47089
+ * @function toObject
47090
+ * @memberof OrganizationUpdated
47091
+ * @static
47092
+ * @param {OrganizationUpdated} message OrganizationUpdated
47093
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47094
+ * @returns {Object.<string,*>} Plain object
47095
+ */
47096
+ OrganizationUpdated.toObject = function toObject(message, options) {
47097
+ if (!options)
47098
+ options = {};
47099
+ var object = {};
47100
+ if (options.defaults) {
47101
+ object.dashboardUserId = 0;
47102
+ if ($util.Long) {
47103
+ var long = new $util.Long(0, 0, true);
47104
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47105
+ } else
47106
+ object.timestamp = options.longs === String ? "0" : 0;
47107
+ object.organization = null;
47108
+ }
47109
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47110
+ object.dashboardUserId = message.dashboardUserId;
47111
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47112
+ if (typeof message.timestamp === "number")
47113
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
47114
+ else
47115
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
47116
+ if (message.organization != null && message.hasOwnProperty("organization"))
47117
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
47118
+ return object;
47119
+ };
47120
+
47121
+ /**
47122
+ * Converts this OrganizationUpdated to JSON.
47123
+ * @function toJSON
47124
+ * @memberof OrganizationUpdated
47125
+ * @instance
47126
+ * @returns {Object.<string,*>} JSON object
47127
+ */
47128
+ OrganizationUpdated.prototype.toJSON = function toJSON() {
47129
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47130
+ };
47131
+
47132
+ return OrganizationUpdated;
47133
+ })();
47134
+
46253
47135
  $root.FamilyMemberAdded = (function() {
46254
47136
 
46255
47137
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.208.0"
19
+ "version": "1.209.0"
20
20
  }