@headspace/protos-events 1.677.0 → 1.678.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 +140 -0
- package/lib/index.js +425 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -27174,6 +27174,146 @@ export class ContentfulContentModelDeleted implements IContentfulContentModelDel
|
|
|
27174
27174
|
public toJSON(): { [k: string]: any };
|
|
27175
27175
|
}
|
|
27176
27176
|
|
|
27177
|
+
/** GingerUserDomainStatus enum. */
|
|
27178
|
+
export enum GingerUserDomainStatus {
|
|
27179
|
+
GINGER_USER_DOMAIN_STATUS_UNKNOWN = 0,
|
|
27180
|
+
GINGER_USER_DOMAIN_STATUS_ACTIVE = 1,
|
|
27181
|
+
GINGER_USER_DOMAIN_STATUS_PENDING = 2,
|
|
27182
|
+
GINGER_USER_DOMAIN_STATUS_DEACTIVATED = 3
|
|
27183
|
+
}
|
|
27184
|
+
|
|
27185
|
+
/** Properties of a GingerUserDomainExported. */
|
|
27186
|
+
export interface IGingerUserDomainExported {
|
|
27187
|
+
|
|
27188
|
+
/** GingerUserDomainExported gingerUserId */
|
|
27189
|
+
gingerUserId?: (string|null);
|
|
27190
|
+
|
|
27191
|
+
/** GingerUserDomainExported headspaceUserId */
|
|
27192
|
+
headspaceUserId?: (string|null);
|
|
27193
|
+
|
|
27194
|
+
/** GingerUserDomainExported fusionUpgradedAt */
|
|
27195
|
+
fusionUpgradedAt?: (number|Long|null);
|
|
27196
|
+
|
|
27197
|
+
/** GingerUserDomainExported status */
|
|
27198
|
+
status?: (GingerUserDomainStatus|null);
|
|
27199
|
+
|
|
27200
|
+
/** GingerUserDomainExported hasCompletedOnboarding */
|
|
27201
|
+
hasCompletedOnboarding?: (boolean|null);
|
|
27202
|
+
|
|
27203
|
+
/** GingerUserDomainExported organizationalUnitId */
|
|
27204
|
+
organizationalUnitId?: (number|Long|null);
|
|
27205
|
+
|
|
27206
|
+
/** GingerUserDomainExported isStaff */
|
|
27207
|
+
isStaff?: (boolean|null);
|
|
27208
|
+
|
|
27209
|
+
/** GingerUserDomainExported registeredAt */
|
|
27210
|
+
registeredAt?: (number|Long|null);
|
|
27211
|
+
}
|
|
27212
|
+
|
|
27213
|
+
/** Represents a GingerUserDomainExported. */
|
|
27214
|
+
export class GingerUserDomainExported implements IGingerUserDomainExported {
|
|
27215
|
+
|
|
27216
|
+
/**
|
|
27217
|
+
* Constructs a new GingerUserDomainExported.
|
|
27218
|
+
* @param [properties] Properties to set
|
|
27219
|
+
*/
|
|
27220
|
+
constructor(properties?: IGingerUserDomainExported);
|
|
27221
|
+
|
|
27222
|
+
/** GingerUserDomainExported gingerUserId. */
|
|
27223
|
+
public gingerUserId: string;
|
|
27224
|
+
|
|
27225
|
+
/** GingerUserDomainExported headspaceUserId. */
|
|
27226
|
+
public headspaceUserId: string;
|
|
27227
|
+
|
|
27228
|
+
/** GingerUserDomainExported fusionUpgradedAt. */
|
|
27229
|
+
public fusionUpgradedAt: (number|Long);
|
|
27230
|
+
|
|
27231
|
+
/** GingerUserDomainExported status. */
|
|
27232
|
+
public status: GingerUserDomainStatus;
|
|
27233
|
+
|
|
27234
|
+
/** GingerUserDomainExported hasCompletedOnboarding. */
|
|
27235
|
+
public hasCompletedOnboarding: boolean;
|
|
27236
|
+
|
|
27237
|
+
/** GingerUserDomainExported organizationalUnitId. */
|
|
27238
|
+
public organizationalUnitId: (number|Long);
|
|
27239
|
+
|
|
27240
|
+
/** GingerUserDomainExported isStaff. */
|
|
27241
|
+
public isStaff: boolean;
|
|
27242
|
+
|
|
27243
|
+
/** GingerUserDomainExported registeredAt. */
|
|
27244
|
+
public registeredAt: (number|Long);
|
|
27245
|
+
|
|
27246
|
+
/**
|
|
27247
|
+
* Creates a new GingerUserDomainExported instance using the specified properties.
|
|
27248
|
+
* @param [properties] Properties to set
|
|
27249
|
+
* @returns GingerUserDomainExported instance
|
|
27250
|
+
*/
|
|
27251
|
+
public static create(properties?: IGingerUserDomainExported): GingerUserDomainExported;
|
|
27252
|
+
|
|
27253
|
+
/**
|
|
27254
|
+
* Encodes the specified GingerUserDomainExported message. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
|
|
27255
|
+
* @param message GingerUserDomainExported message or plain object to encode
|
|
27256
|
+
* @param [writer] Writer to encode to
|
|
27257
|
+
* @returns Writer
|
|
27258
|
+
*/
|
|
27259
|
+
public static encode(message: IGingerUserDomainExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27260
|
+
|
|
27261
|
+
/**
|
|
27262
|
+
* Encodes the specified GingerUserDomainExported message, length delimited. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
|
|
27263
|
+
* @param message GingerUserDomainExported message or plain object to encode
|
|
27264
|
+
* @param [writer] Writer to encode to
|
|
27265
|
+
* @returns Writer
|
|
27266
|
+
*/
|
|
27267
|
+
public static encodeDelimited(message: IGingerUserDomainExported, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
27268
|
+
|
|
27269
|
+
/**
|
|
27270
|
+
* Decodes a GingerUserDomainExported message from the specified reader or buffer.
|
|
27271
|
+
* @param reader Reader or buffer to decode from
|
|
27272
|
+
* @param [length] Message length if known beforehand
|
|
27273
|
+
* @returns GingerUserDomainExported
|
|
27274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27276
|
+
*/
|
|
27277
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerUserDomainExported;
|
|
27278
|
+
|
|
27279
|
+
/**
|
|
27280
|
+
* Decodes a GingerUserDomainExported message from the specified reader or buffer, length delimited.
|
|
27281
|
+
* @param reader Reader or buffer to decode from
|
|
27282
|
+
* @returns GingerUserDomainExported
|
|
27283
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27284
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27285
|
+
*/
|
|
27286
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerUserDomainExported;
|
|
27287
|
+
|
|
27288
|
+
/**
|
|
27289
|
+
* Verifies a GingerUserDomainExported message.
|
|
27290
|
+
* @param message Plain object to verify
|
|
27291
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
27292
|
+
*/
|
|
27293
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
27294
|
+
|
|
27295
|
+
/**
|
|
27296
|
+
* Creates a GingerUserDomainExported message from a plain object. Also converts values to their respective internal types.
|
|
27297
|
+
* @param object Plain object
|
|
27298
|
+
* @returns GingerUserDomainExported
|
|
27299
|
+
*/
|
|
27300
|
+
public static fromObject(object: { [k: string]: any }): GingerUserDomainExported;
|
|
27301
|
+
|
|
27302
|
+
/**
|
|
27303
|
+
* Creates a plain object from a GingerUserDomainExported message. Also converts values to other types if specified.
|
|
27304
|
+
* @param message GingerUserDomainExported
|
|
27305
|
+
* @param [options] Conversion options
|
|
27306
|
+
* @returns Plain object
|
|
27307
|
+
*/
|
|
27308
|
+
public static toObject(message: GingerUserDomainExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
27309
|
+
|
|
27310
|
+
/**
|
|
27311
|
+
* Converts this GingerUserDomainExported to JSON.
|
|
27312
|
+
* @returns JSON object
|
|
27313
|
+
*/
|
|
27314
|
+
public toJSON(): { [k: string]: any };
|
|
27315
|
+
}
|
|
27316
|
+
|
|
27177
27317
|
/** Properties of a UserDomainCreated. */
|
|
27178
27318
|
export interface IUserDomainCreated {
|
|
27179
27319
|
|
package/lib/index.js
CHANGED
|
@@ -76655,6 +76655,431 @@ $root.ContentfulContentModelDeleted = (function() {
|
|
|
76655
76655
|
return ContentfulContentModelDeleted;
|
|
76656
76656
|
})();
|
|
76657
76657
|
|
|
76658
|
+
/**
|
|
76659
|
+
* GingerUserDomainStatus enum.
|
|
76660
|
+
* @name GingerUserDomainStatus
|
|
76661
|
+
* @enum {string}
|
|
76662
|
+
* @property {number} GINGER_USER_DOMAIN_STATUS_UNKNOWN=0 GINGER_USER_DOMAIN_STATUS_UNKNOWN value
|
|
76663
|
+
* @property {number} GINGER_USER_DOMAIN_STATUS_ACTIVE=1 GINGER_USER_DOMAIN_STATUS_ACTIVE value
|
|
76664
|
+
* @property {number} GINGER_USER_DOMAIN_STATUS_PENDING=2 GINGER_USER_DOMAIN_STATUS_PENDING value
|
|
76665
|
+
* @property {number} GINGER_USER_DOMAIN_STATUS_DEACTIVATED=3 GINGER_USER_DOMAIN_STATUS_DEACTIVATED value
|
|
76666
|
+
*/
|
|
76667
|
+
$root.GingerUserDomainStatus = (function() {
|
|
76668
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
76669
|
+
values[valuesById[0] = "GINGER_USER_DOMAIN_STATUS_UNKNOWN"] = 0;
|
|
76670
|
+
values[valuesById[1] = "GINGER_USER_DOMAIN_STATUS_ACTIVE"] = 1;
|
|
76671
|
+
values[valuesById[2] = "GINGER_USER_DOMAIN_STATUS_PENDING"] = 2;
|
|
76672
|
+
values[valuesById[3] = "GINGER_USER_DOMAIN_STATUS_DEACTIVATED"] = 3;
|
|
76673
|
+
return values;
|
|
76674
|
+
})();
|
|
76675
|
+
|
|
76676
|
+
$root.GingerUserDomainExported = (function() {
|
|
76677
|
+
|
|
76678
|
+
/**
|
|
76679
|
+
* Properties of a GingerUserDomainExported.
|
|
76680
|
+
* @name IGingerUserDomainExported
|
|
76681
|
+
* @interface IGingerUserDomainExported
|
|
76682
|
+
* @property {string|null} [gingerUserId] GingerUserDomainExported gingerUserId
|
|
76683
|
+
* @property {string|null} [headspaceUserId] GingerUserDomainExported headspaceUserId
|
|
76684
|
+
* @property {number|Long|null} [fusionUpgradedAt] GingerUserDomainExported fusionUpgradedAt
|
|
76685
|
+
* @property {GingerUserDomainStatus|null} [status] GingerUserDomainExported status
|
|
76686
|
+
* @property {boolean|null} [hasCompletedOnboarding] GingerUserDomainExported hasCompletedOnboarding
|
|
76687
|
+
* @property {number|Long|null} [organizationalUnitId] GingerUserDomainExported organizationalUnitId
|
|
76688
|
+
* @property {boolean|null} [isStaff] GingerUserDomainExported isStaff
|
|
76689
|
+
* @property {number|Long|null} [registeredAt] GingerUserDomainExported registeredAt
|
|
76690
|
+
*/
|
|
76691
|
+
|
|
76692
|
+
/**
|
|
76693
|
+
* Constructs a new GingerUserDomainExported.
|
|
76694
|
+
* @name GingerUserDomainExported
|
|
76695
|
+
* @classdesc Represents a GingerUserDomainExported.
|
|
76696
|
+
* @implements IGingerUserDomainExported
|
|
76697
|
+
* @constructor
|
|
76698
|
+
* @param {IGingerUserDomainExported=} [properties] Properties to set
|
|
76699
|
+
*/
|
|
76700
|
+
function GingerUserDomainExported(properties) {
|
|
76701
|
+
if (properties)
|
|
76702
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
76703
|
+
if (properties[keys[i]] != null)
|
|
76704
|
+
this[keys[i]] = properties[keys[i]];
|
|
76705
|
+
}
|
|
76706
|
+
|
|
76707
|
+
/**
|
|
76708
|
+
* GingerUserDomainExported gingerUserId.
|
|
76709
|
+
* @member {string} gingerUserId
|
|
76710
|
+
* @memberof GingerUserDomainExported
|
|
76711
|
+
* @instance
|
|
76712
|
+
*/
|
|
76713
|
+
GingerUserDomainExported.prototype.gingerUserId = "";
|
|
76714
|
+
|
|
76715
|
+
/**
|
|
76716
|
+
* GingerUserDomainExported headspaceUserId.
|
|
76717
|
+
* @member {string} headspaceUserId
|
|
76718
|
+
* @memberof GingerUserDomainExported
|
|
76719
|
+
* @instance
|
|
76720
|
+
*/
|
|
76721
|
+
GingerUserDomainExported.prototype.headspaceUserId = "";
|
|
76722
|
+
|
|
76723
|
+
/**
|
|
76724
|
+
* GingerUserDomainExported fusionUpgradedAt.
|
|
76725
|
+
* @member {number|Long} fusionUpgradedAt
|
|
76726
|
+
* @memberof GingerUserDomainExported
|
|
76727
|
+
* @instance
|
|
76728
|
+
*/
|
|
76729
|
+
GingerUserDomainExported.prototype.fusionUpgradedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
76730
|
+
|
|
76731
|
+
/**
|
|
76732
|
+
* GingerUserDomainExported status.
|
|
76733
|
+
* @member {GingerUserDomainStatus} status
|
|
76734
|
+
* @memberof GingerUserDomainExported
|
|
76735
|
+
* @instance
|
|
76736
|
+
*/
|
|
76737
|
+
GingerUserDomainExported.prototype.status = 0;
|
|
76738
|
+
|
|
76739
|
+
/**
|
|
76740
|
+
* GingerUserDomainExported hasCompletedOnboarding.
|
|
76741
|
+
* @member {boolean} hasCompletedOnboarding
|
|
76742
|
+
* @memberof GingerUserDomainExported
|
|
76743
|
+
* @instance
|
|
76744
|
+
*/
|
|
76745
|
+
GingerUserDomainExported.prototype.hasCompletedOnboarding = false;
|
|
76746
|
+
|
|
76747
|
+
/**
|
|
76748
|
+
* GingerUserDomainExported organizationalUnitId.
|
|
76749
|
+
* @member {number|Long} organizationalUnitId
|
|
76750
|
+
* @memberof GingerUserDomainExported
|
|
76751
|
+
* @instance
|
|
76752
|
+
*/
|
|
76753
|
+
GingerUserDomainExported.prototype.organizationalUnitId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
76754
|
+
|
|
76755
|
+
/**
|
|
76756
|
+
* GingerUserDomainExported isStaff.
|
|
76757
|
+
* @member {boolean} isStaff
|
|
76758
|
+
* @memberof GingerUserDomainExported
|
|
76759
|
+
* @instance
|
|
76760
|
+
*/
|
|
76761
|
+
GingerUserDomainExported.prototype.isStaff = false;
|
|
76762
|
+
|
|
76763
|
+
/**
|
|
76764
|
+
* GingerUserDomainExported registeredAt.
|
|
76765
|
+
* @member {number|Long} registeredAt
|
|
76766
|
+
* @memberof GingerUserDomainExported
|
|
76767
|
+
* @instance
|
|
76768
|
+
*/
|
|
76769
|
+
GingerUserDomainExported.prototype.registeredAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
76770
|
+
|
|
76771
|
+
/**
|
|
76772
|
+
* Creates a new GingerUserDomainExported instance using the specified properties.
|
|
76773
|
+
* @function create
|
|
76774
|
+
* @memberof GingerUserDomainExported
|
|
76775
|
+
* @static
|
|
76776
|
+
* @param {IGingerUserDomainExported=} [properties] Properties to set
|
|
76777
|
+
* @returns {GingerUserDomainExported} GingerUserDomainExported instance
|
|
76778
|
+
*/
|
|
76779
|
+
GingerUserDomainExported.create = function create(properties) {
|
|
76780
|
+
return new GingerUserDomainExported(properties);
|
|
76781
|
+
};
|
|
76782
|
+
|
|
76783
|
+
/**
|
|
76784
|
+
* Encodes the specified GingerUserDomainExported message. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
|
|
76785
|
+
* @function encode
|
|
76786
|
+
* @memberof GingerUserDomainExported
|
|
76787
|
+
* @static
|
|
76788
|
+
* @param {IGingerUserDomainExported} message GingerUserDomainExported message or plain object to encode
|
|
76789
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76790
|
+
* @returns {$protobuf.Writer} Writer
|
|
76791
|
+
*/
|
|
76792
|
+
GingerUserDomainExported.encode = function encode(message, writer) {
|
|
76793
|
+
if (!writer)
|
|
76794
|
+
writer = $Writer.create();
|
|
76795
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
76796
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.gingerUserId);
|
|
76797
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
76798
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceUserId);
|
|
76799
|
+
if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
|
|
76800
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.fusionUpgradedAt);
|
|
76801
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
76802
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
|
|
76803
|
+
if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
|
|
76804
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasCompletedOnboarding);
|
|
76805
|
+
if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
|
|
76806
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.organizationalUnitId);
|
|
76807
|
+
if (message.isStaff != null && message.hasOwnProperty("isStaff"))
|
|
76808
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isStaff);
|
|
76809
|
+
if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
|
|
76810
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.registeredAt);
|
|
76811
|
+
return writer;
|
|
76812
|
+
};
|
|
76813
|
+
|
|
76814
|
+
/**
|
|
76815
|
+
* Encodes the specified GingerUserDomainExported message, length delimited. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
|
|
76816
|
+
* @function encodeDelimited
|
|
76817
|
+
* @memberof GingerUserDomainExported
|
|
76818
|
+
* @static
|
|
76819
|
+
* @param {IGingerUserDomainExported} message GingerUserDomainExported message or plain object to encode
|
|
76820
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
76821
|
+
* @returns {$protobuf.Writer} Writer
|
|
76822
|
+
*/
|
|
76823
|
+
GingerUserDomainExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
76824
|
+
return this.encode(message, writer).ldelim();
|
|
76825
|
+
};
|
|
76826
|
+
|
|
76827
|
+
/**
|
|
76828
|
+
* Decodes a GingerUserDomainExported message from the specified reader or buffer.
|
|
76829
|
+
* @function decode
|
|
76830
|
+
* @memberof GingerUserDomainExported
|
|
76831
|
+
* @static
|
|
76832
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76833
|
+
* @param {number} [length] Message length if known beforehand
|
|
76834
|
+
* @returns {GingerUserDomainExported} GingerUserDomainExported
|
|
76835
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76836
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76837
|
+
*/
|
|
76838
|
+
GingerUserDomainExported.decode = function decode(reader, length) {
|
|
76839
|
+
if (!(reader instanceof $Reader))
|
|
76840
|
+
reader = $Reader.create(reader);
|
|
76841
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerUserDomainExported();
|
|
76842
|
+
while (reader.pos < end) {
|
|
76843
|
+
var tag = reader.uint32();
|
|
76844
|
+
switch (tag >>> 3) {
|
|
76845
|
+
case 1:
|
|
76846
|
+
message.gingerUserId = reader.string();
|
|
76847
|
+
break;
|
|
76848
|
+
case 2:
|
|
76849
|
+
message.headspaceUserId = reader.string();
|
|
76850
|
+
break;
|
|
76851
|
+
case 3:
|
|
76852
|
+
message.fusionUpgradedAt = reader.uint64();
|
|
76853
|
+
break;
|
|
76854
|
+
case 4:
|
|
76855
|
+
message.status = reader.int32();
|
|
76856
|
+
break;
|
|
76857
|
+
case 5:
|
|
76858
|
+
message.hasCompletedOnboarding = reader.bool();
|
|
76859
|
+
break;
|
|
76860
|
+
case 6:
|
|
76861
|
+
message.organizationalUnitId = reader.uint64();
|
|
76862
|
+
break;
|
|
76863
|
+
case 7:
|
|
76864
|
+
message.isStaff = reader.bool();
|
|
76865
|
+
break;
|
|
76866
|
+
case 8:
|
|
76867
|
+
message.registeredAt = reader.uint64();
|
|
76868
|
+
break;
|
|
76869
|
+
default:
|
|
76870
|
+
reader.skipType(tag & 7);
|
|
76871
|
+
break;
|
|
76872
|
+
}
|
|
76873
|
+
}
|
|
76874
|
+
return message;
|
|
76875
|
+
};
|
|
76876
|
+
|
|
76877
|
+
/**
|
|
76878
|
+
* Decodes a GingerUserDomainExported message from the specified reader or buffer, length delimited.
|
|
76879
|
+
* @function decodeDelimited
|
|
76880
|
+
* @memberof GingerUserDomainExported
|
|
76881
|
+
* @static
|
|
76882
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
76883
|
+
* @returns {GingerUserDomainExported} GingerUserDomainExported
|
|
76884
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
76885
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
76886
|
+
*/
|
|
76887
|
+
GingerUserDomainExported.decodeDelimited = function decodeDelimited(reader) {
|
|
76888
|
+
if (!(reader instanceof $Reader))
|
|
76889
|
+
reader = new $Reader(reader);
|
|
76890
|
+
return this.decode(reader, reader.uint32());
|
|
76891
|
+
};
|
|
76892
|
+
|
|
76893
|
+
/**
|
|
76894
|
+
* Verifies a GingerUserDomainExported message.
|
|
76895
|
+
* @function verify
|
|
76896
|
+
* @memberof GingerUserDomainExported
|
|
76897
|
+
* @static
|
|
76898
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
76899
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
76900
|
+
*/
|
|
76901
|
+
GingerUserDomainExported.verify = function verify(message) {
|
|
76902
|
+
if (typeof message !== "object" || message === null)
|
|
76903
|
+
return "object expected";
|
|
76904
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
76905
|
+
if (!$util.isString(message.gingerUserId))
|
|
76906
|
+
return "gingerUserId: string expected";
|
|
76907
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
76908
|
+
if (!$util.isString(message.headspaceUserId))
|
|
76909
|
+
return "headspaceUserId: string expected";
|
|
76910
|
+
if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
|
|
76911
|
+
if (!$util.isInteger(message.fusionUpgradedAt) && !(message.fusionUpgradedAt && $util.isInteger(message.fusionUpgradedAt.low) && $util.isInteger(message.fusionUpgradedAt.high)))
|
|
76912
|
+
return "fusionUpgradedAt: integer|Long expected";
|
|
76913
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
76914
|
+
switch (message.status) {
|
|
76915
|
+
default:
|
|
76916
|
+
return "status: enum value expected";
|
|
76917
|
+
case 0:
|
|
76918
|
+
case 1:
|
|
76919
|
+
case 2:
|
|
76920
|
+
case 3:
|
|
76921
|
+
break;
|
|
76922
|
+
}
|
|
76923
|
+
if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
|
|
76924
|
+
if (typeof message.hasCompletedOnboarding !== "boolean")
|
|
76925
|
+
return "hasCompletedOnboarding: boolean expected";
|
|
76926
|
+
if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
|
|
76927
|
+
if (!$util.isInteger(message.organizationalUnitId) && !(message.organizationalUnitId && $util.isInteger(message.organizationalUnitId.low) && $util.isInteger(message.organizationalUnitId.high)))
|
|
76928
|
+
return "organizationalUnitId: integer|Long expected";
|
|
76929
|
+
if (message.isStaff != null && message.hasOwnProperty("isStaff"))
|
|
76930
|
+
if (typeof message.isStaff !== "boolean")
|
|
76931
|
+
return "isStaff: boolean expected";
|
|
76932
|
+
if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
|
|
76933
|
+
if (!$util.isInteger(message.registeredAt) && !(message.registeredAt && $util.isInteger(message.registeredAt.low) && $util.isInteger(message.registeredAt.high)))
|
|
76934
|
+
return "registeredAt: integer|Long expected";
|
|
76935
|
+
return null;
|
|
76936
|
+
};
|
|
76937
|
+
|
|
76938
|
+
/**
|
|
76939
|
+
* Creates a GingerUserDomainExported message from a plain object. Also converts values to their respective internal types.
|
|
76940
|
+
* @function fromObject
|
|
76941
|
+
* @memberof GingerUserDomainExported
|
|
76942
|
+
* @static
|
|
76943
|
+
* @param {Object.<string,*>} object Plain object
|
|
76944
|
+
* @returns {GingerUserDomainExported} GingerUserDomainExported
|
|
76945
|
+
*/
|
|
76946
|
+
GingerUserDomainExported.fromObject = function fromObject(object) {
|
|
76947
|
+
if (object instanceof $root.GingerUserDomainExported)
|
|
76948
|
+
return object;
|
|
76949
|
+
var message = new $root.GingerUserDomainExported();
|
|
76950
|
+
if (object.gingerUserId != null)
|
|
76951
|
+
message.gingerUserId = String(object.gingerUserId);
|
|
76952
|
+
if (object.headspaceUserId != null)
|
|
76953
|
+
message.headspaceUserId = String(object.headspaceUserId);
|
|
76954
|
+
if (object.fusionUpgradedAt != null)
|
|
76955
|
+
if ($util.Long)
|
|
76956
|
+
(message.fusionUpgradedAt = $util.Long.fromValue(object.fusionUpgradedAt)).unsigned = true;
|
|
76957
|
+
else if (typeof object.fusionUpgradedAt === "string")
|
|
76958
|
+
message.fusionUpgradedAt = parseInt(object.fusionUpgradedAt, 10);
|
|
76959
|
+
else if (typeof object.fusionUpgradedAt === "number")
|
|
76960
|
+
message.fusionUpgradedAt = object.fusionUpgradedAt;
|
|
76961
|
+
else if (typeof object.fusionUpgradedAt === "object")
|
|
76962
|
+
message.fusionUpgradedAt = new $util.LongBits(object.fusionUpgradedAt.low >>> 0, object.fusionUpgradedAt.high >>> 0).toNumber(true);
|
|
76963
|
+
switch (object.status) {
|
|
76964
|
+
case "GINGER_USER_DOMAIN_STATUS_UNKNOWN":
|
|
76965
|
+
case 0:
|
|
76966
|
+
message.status = 0;
|
|
76967
|
+
break;
|
|
76968
|
+
case "GINGER_USER_DOMAIN_STATUS_ACTIVE":
|
|
76969
|
+
case 1:
|
|
76970
|
+
message.status = 1;
|
|
76971
|
+
break;
|
|
76972
|
+
case "GINGER_USER_DOMAIN_STATUS_PENDING":
|
|
76973
|
+
case 2:
|
|
76974
|
+
message.status = 2;
|
|
76975
|
+
break;
|
|
76976
|
+
case "GINGER_USER_DOMAIN_STATUS_DEACTIVATED":
|
|
76977
|
+
case 3:
|
|
76978
|
+
message.status = 3;
|
|
76979
|
+
break;
|
|
76980
|
+
}
|
|
76981
|
+
if (object.hasCompletedOnboarding != null)
|
|
76982
|
+
message.hasCompletedOnboarding = Boolean(object.hasCompletedOnboarding);
|
|
76983
|
+
if (object.organizationalUnitId != null)
|
|
76984
|
+
if ($util.Long)
|
|
76985
|
+
(message.organizationalUnitId = $util.Long.fromValue(object.organizationalUnitId)).unsigned = true;
|
|
76986
|
+
else if (typeof object.organizationalUnitId === "string")
|
|
76987
|
+
message.organizationalUnitId = parseInt(object.organizationalUnitId, 10);
|
|
76988
|
+
else if (typeof object.organizationalUnitId === "number")
|
|
76989
|
+
message.organizationalUnitId = object.organizationalUnitId;
|
|
76990
|
+
else if (typeof object.organizationalUnitId === "object")
|
|
76991
|
+
message.organizationalUnitId = new $util.LongBits(object.organizationalUnitId.low >>> 0, object.organizationalUnitId.high >>> 0).toNumber(true);
|
|
76992
|
+
if (object.isStaff != null)
|
|
76993
|
+
message.isStaff = Boolean(object.isStaff);
|
|
76994
|
+
if (object.registeredAt != null)
|
|
76995
|
+
if ($util.Long)
|
|
76996
|
+
(message.registeredAt = $util.Long.fromValue(object.registeredAt)).unsigned = true;
|
|
76997
|
+
else if (typeof object.registeredAt === "string")
|
|
76998
|
+
message.registeredAt = parseInt(object.registeredAt, 10);
|
|
76999
|
+
else if (typeof object.registeredAt === "number")
|
|
77000
|
+
message.registeredAt = object.registeredAt;
|
|
77001
|
+
else if (typeof object.registeredAt === "object")
|
|
77002
|
+
message.registeredAt = new $util.LongBits(object.registeredAt.low >>> 0, object.registeredAt.high >>> 0).toNumber(true);
|
|
77003
|
+
return message;
|
|
77004
|
+
};
|
|
77005
|
+
|
|
77006
|
+
/**
|
|
77007
|
+
* Creates a plain object from a GingerUserDomainExported message. Also converts values to other types if specified.
|
|
77008
|
+
* @function toObject
|
|
77009
|
+
* @memberof GingerUserDomainExported
|
|
77010
|
+
* @static
|
|
77011
|
+
* @param {GingerUserDomainExported} message GingerUserDomainExported
|
|
77012
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
77013
|
+
* @returns {Object.<string,*>} Plain object
|
|
77014
|
+
*/
|
|
77015
|
+
GingerUserDomainExported.toObject = function toObject(message, options) {
|
|
77016
|
+
if (!options)
|
|
77017
|
+
options = {};
|
|
77018
|
+
var object = {};
|
|
77019
|
+
if (options.defaults) {
|
|
77020
|
+
object.gingerUserId = "";
|
|
77021
|
+
object.headspaceUserId = "";
|
|
77022
|
+
if ($util.Long) {
|
|
77023
|
+
var long = new $util.Long(0, 0, true);
|
|
77024
|
+
object.fusionUpgradedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
77025
|
+
} else
|
|
77026
|
+
object.fusionUpgradedAt = options.longs === String ? "0" : 0;
|
|
77027
|
+
object.status = options.enums === String ? "GINGER_USER_DOMAIN_STATUS_UNKNOWN" : 0;
|
|
77028
|
+
object.hasCompletedOnboarding = false;
|
|
77029
|
+
if ($util.Long) {
|
|
77030
|
+
var long = new $util.Long(0, 0, true);
|
|
77031
|
+
object.organizationalUnitId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
77032
|
+
} else
|
|
77033
|
+
object.organizationalUnitId = options.longs === String ? "0" : 0;
|
|
77034
|
+
object.isStaff = false;
|
|
77035
|
+
if ($util.Long) {
|
|
77036
|
+
var long = new $util.Long(0, 0, true);
|
|
77037
|
+
object.registeredAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
77038
|
+
} else
|
|
77039
|
+
object.registeredAt = options.longs === String ? "0" : 0;
|
|
77040
|
+
}
|
|
77041
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
77042
|
+
object.gingerUserId = message.gingerUserId;
|
|
77043
|
+
if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
|
|
77044
|
+
object.headspaceUserId = message.headspaceUserId;
|
|
77045
|
+
if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
|
|
77046
|
+
if (typeof message.fusionUpgradedAt === "number")
|
|
77047
|
+
object.fusionUpgradedAt = options.longs === String ? String(message.fusionUpgradedAt) : message.fusionUpgradedAt;
|
|
77048
|
+
else
|
|
77049
|
+
object.fusionUpgradedAt = options.longs === String ? $util.Long.prototype.toString.call(message.fusionUpgradedAt) : options.longs === Number ? new $util.LongBits(message.fusionUpgradedAt.low >>> 0, message.fusionUpgradedAt.high >>> 0).toNumber(true) : message.fusionUpgradedAt;
|
|
77050
|
+
if (message.status != null && message.hasOwnProperty("status"))
|
|
77051
|
+
object.status = options.enums === String ? $root.GingerUserDomainStatus[message.status] : message.status;
|
|
77052
|
+
if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
|
|
77053
|
+
object.hasCompletedOnboarding = message.hasCompletedOnboarding;
|
|
77054
|
+
if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
|
|
77055
|
+
if (typeof message.organizationalUnitId === "number")
|
|
77056
|
+
object.organizationalUnitId = options.longs === String ? String(message.organizationalUnitId) : message.organizationalUnitId;
|
|
77057
|
+
else
|
|
77058
|
+
object.organizationalUnitId = options.longs === String ? $util.Long.prototype.toString.call(message.organizationalUnitId) : options.longs === Number ? new $util.LongBits(message.organizationalUnitId.low >>> 0, message.organizationalUnitId.high >>> 0).toNumber(true) : message.organizationalUnitId;
|
|
77059
|
+
if (message.isStaff != null && message.hasOwnProperty("isStaff"))
|
|
77060
|
+
object.isStaff = message.isStaff;
|
|
77061
|
+
if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
|
|
77062
|
+
if (typeof message.registeredAt === "number")
|
|
77063
|
+
object.registeredAt = options.longs === String ? String(message.registeredAt) : message.registeredAt;
|
|
77064
|
+
else
|
|
77065
|
+
object.registeredAt = options.longs === String ? $util.Long.prototype.toString.call(message.registeredAt) : options.longs === Number ? new $util.LongBits(message.registeredAt.low >>> 0, message.registeredAt.high >>> 0).toNumber(true) : message.registeredAt;
|
|
77066
|
+
return object;
|
|
77067
|
+
};
|
|
77068
|
+
|
|
77069
|
+
/**
|
|
77070
|
+
* Converts this GingerUserDomainExported to JSON.
|
|
77071
|
+
* @function toJSON
|
|
77072
|
+
* @memberof GingerUserDomainExported
|
|
77073
|
+
* @instance
|
|
77074
|
+
* @returns {Object.<string,*>} JSON object
|
|
77075
|
+
*/
|
|
77076
|
+
GingerUserDomainExported.prototype.toJSON = function toJSON() {
|
|
77077
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
77078
|
+
};
|
|
77079
|
+
|
|
77080
|
+
return GingerUserDomainExported;
|
|
77081
|
+
})();
|
|
77082
|
+
|
|
76658
77083
|
$root.UserDomainCreated = (function() {
|
|
76659
77084
|
|
|
76660
77085
|
/**
|
package/package.json
CHANGED