@headspace/protos-events 1.626.0 → 1.628.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 +308 -1
- package/lib/index.js +804 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -13980,6 +13980,9 @@ export namespace b2b {
|
|
|
13980
13980
|
|
|
13981
13981
|
/** Organization hasEapCoverage */
|
|
13982
13982
|
hasEapCoverage?: (boolean|null);
|
|
13983
|
+
|
|
13984
|
+
/** Organization overlappedCareId */
|
|
13985
|
+
overlappedCareId?: (number|null);
|
|
13983
13986
|
}
|
|
13984
13987
|
|
|
13985
13988
|
/** Represents an Organization. */
|
|
@@ -14057,6 +14060,9 @@ export namespace b2b {
|
|
|
14057
14060
|
/** Organization hasEapCoverage. */
|
|
14058
14061
|
public hasEapCoverage: boolean;
|
|
14059
14062
|
|
|
14063
|
+
/** Organization overlappedCareId. */
|
|
14064
|
+
public overlappedCareId: number;
|
|
14065
|
+
|
|
14060
14066
|
/**
|
|
14061
14067
|
* Creates a new Organization instance using the specified properties.
|
|
14062
14068
|
* @param [properties] Properties to set
|
|
@@ -29250,7 +29256,8 @@ export enum ContentType {
|
|
|
29250
29256
|
CONTENT_TYPE_ACTIVITY = 17,
|
|
29251
29257
|
CONTENT_TYPE_COLLECTION = 18,
|
|
29252
29258
|
CONTENT_TYPE_GUIDED_PROGRAM = 19,
|
|
29253
|
-
CONTENT_TYPE_SURVEY = 20
|
|
29259
|
+
CONTENT_TYPE_SURVEY = 20,
|
|
29260
|
+
CONTENT_TYPE_ITEM = 21
|
|
29254
29261
|
}
|
|
29255
29262
|
|
|
29256
29263
|
/** Mode enum. */
|
|
@@ -30656,6 +30663,306 @@ export class ContentCourseCompleted implements IContentCourseCompleted {
|
|
|
30656
30663
|
public toJSON(): { [k: string]: any };
|
|
30657
30664
|
}
|
|
30658
30665
|
|
|
30666
|
+
/** Properties of an ItemCreated. */
|
|
30667
|
+
export interface IItemCreated {
|
|
30668
|
+
|
|
30669
|
+
/** ItemCreated slug */
|
|
30670
|
+
slug?: (string|null);
|
|
30671
|
+
|
|
30672
|
+
/** ItemCreated accessGroups */
|
|
30673
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
30674
|
+
|
|
30675
|
+
/** ItemCreated createdAt */
|
|
30676
|
+
createdAt?: (number|Long|null);
|
|
30677
|
+
}
|
|
30678
|
+
|
|
30679
|
+
/** Represents an ItemCreated. */
|
|
30680
|
+
export class ItemCreated implements IItemCreated {
|
|
30681
|
+
|
|
30682
|
+
/**
|
|
30683
|
+
* Constructs a new ItemCreated.
|
|
30684
|
+
* @param [properties] Properties to set
|
|
30685
|
+
*/
|
|
30686
|
+
constructor(properties?: IItemCreated);
|
|
30687
|
+
|
|
30688
|
+
/** ItemCreated slug. */
|
|
30689
|
+
public slug: string;
|
|
30690
|
+
|
|
30691
|
+
/** ItemCreated accessGroups. */
|
|
30692
|
+
public accessGroups: contentful.ISlugReference[];
|
|
30693
|
+
|
|
30694
|
+
/** ItemCreated createdAt. */
|
|
30695
|
+
public createdAt: (number|Long);
|
|
30696
|
+
|
|
30697
|
+
/**
|
|
30698
|
+
* Creates a new ItemCreated instance using the specified properties.
|
|
30699
|
+
* @param [properties] Properties to set
|
|
30700
|
+
* @returns ItemCreated instance
|
|
30701
|
+
*/
|
|
30702
|
+
public static create(properties?: IItemCreated): ItemCreated;
|
|
30703
|
+
|
|
30704
|
+
/**
|
|
30705
|
+
* Encodes the specified ItemCreated message. Does not implicitly {@link ItemCreated.verify|verify} messages.
|
|
30706
|
+
* @param message ItemCreated message or plain object to encode
|
|
30707
|
+
* @param [writer] Writer to encode to
|
|
30708
|
+
* @returns Writer
|
|
30709
|
+
*/
|
|
30710
|
+
public static encode(message: IItemCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30711
|
+
|
|
30712
|
+
/**
|
|
30713
|
+
* Encodes the specified ItemCreated message, length delimited. Does not implicitly {@link ItemCreated.verify|verify} messages.
|
|
30714
|
+
* @param message ItemCreated message or plain object to encode
|
|
30715
|
+
* @param [writer] Writer to encode to
|
|
30716
|
+
* @returns Writer
|
|
30717
|
+
*/
|
|
30718
|
+
public static encodeDelimited(message: IItemCreated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30719
|
+
|
|
30720
|
+
/**
|
|
30721
|
+
* Decodes an ItemCreated message from the specified reader or buffer.
|
|
30722
|
+
* @param reader Reader or buffer to decode from
|
|
30723
|
+
* @param [length] Message length if known beforehand
|
|
30724
|
+
* @returns ItemCreated
|
|
30725
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30726
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30727
|
+
*/
|
|
30728
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ItemCreated;
|
|
30729
|
+
|
|
30730
|
+
/**
|
|
30731
|
+
* Decodes an ItemCreated message from the specified reader or buffer, length delimited.
|
|
30732
|
+
* @param reader Reader or buffer to decode from
|
|
30733
|
+
* @returns ItemCreated
|
|
30734
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30735
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30736
|
+
*/
|
|
30737
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ItemCreated;
|
|
30738
|
+
|
|
30739
|
+
/**
|
|
30740
|
+
* Verifies an ItemCreated message.
|
|
30741
|
+
* @param message Plain object to verify
|
|
30742
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30743
|
+
*/
|
|
30744
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
30745
|
+
|
|
30746
|
+
/**
|
|
30747
|
+
* Creates an ItemCreated message from a plain object. Also converts values to their respective internal types.
|
|
30748
|
+
* @param object Plain object
|
|
30749
|
+
* @returns ItemCreated
|
|
30750
|
+
*/
|
|
30751
|
+
public static fromObject(object: { [k: string]: any }): ItemCreated;
|
|
30752
|
+
|
|
30753
|
+
/**
|
|
30754
|
+
* Creates a plain object from an ItemCreated message. Also converts values to other types if specified.
|
|
30755
|
+
* @param message ItemCreated
|
|
30756
|
+
* @param [options] Conversion options
|
|
30757
|
+
* @returns Plain object
|
|
30758
|
+
*/
|
|
30759
|
+
public static toObject(message: ItemCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
30760
|
+
|
|
30761
|
+
/**
|
|
30762
|
+
* Converts this ItemCreated to JSON.
|
|
30763
|
+
* @returns JSON object
|
|
30764
|
+
*/
|
|
30765
|
+
public toJSON(): { [k: string]: any };
|
|
30766
|
+
}
|
|
30767
|
+
|
|
30768
|
+
/** Properties of an ItemUpdated. */
|
|
30769
|
+
export interface IItemUpdated {
|
|
30770
|
+
|
|
30771
|
+
/** ItemUpdated slug */
|
|
30772
|
+
slug?: (string|null);
|
|
30773
|
+
|
|
30774
|
+
/** ItemUpdated accessGroups */
|
|
30775
|
+
accessGroups?: (contentful.ISlugReference[]|null);
|
|
30776
|
+
|
|
30777
|
+
/** ItemUpdated updatedAt */
|
|
30778
|
+
updatedAt?: (number|Long|null);
|
|
30779
|
+
}
|
|
30780
|
+
|
|
30781
|
+
/** Represents an ItemUpdated. */
|
|
30782
|
+
export class ItemUpdated implements IItemUpdated {
|
|
30783
|
+
|
|
30784
|
+
/**
|
|
30785
|
+
* Constructs a new ItemUpdated.
|
|
30786
|
+
* @param [properties] Properties to set
|
|
30787
|
+
*/
|
|
30788
|
+
constructor(properties?: IItemUpdated);
|
|
30789
|
+
|
|
30790
|
+
/** ItemUpdated slug. */
|
|
30791
|
+
public slug: string;
|
|
30792
|
+
|
|
30793
|
+
/** ItemUpdated accessGroups. */
|
|
30794
|
+
public accessGroups: contentful.ISlugReference[];
|
|
30795
|
+
|
|
30796
|
+
/** ItemUpdated updatedAt. */
|
|
30797
|
+
public updatedAt: (number|Long);
|
|
30798
|
+
|
|
30799
|
+
/**
|
|
30800
|
+
* Creates a new ItemUpdated instance using the specified properties.
|
|
30801
|
+
* @param [properties] Properties to set
|
|
30802
|
+
* @returns ItemUpdated instance
|
|
30803
|
+
*/
|
|
30804
|
+
public static create(properties?: IItemUpdated): ItemUpdated;
|
|
30805
|
+
|
|
30806
|
+
/**
|
|
30807
|
+
* Encodes the specified ItemUpdated message. Does not implicitly {@link ItemUpdated.verify|verify} messages.
|
|
30808
|
+
* @param message ItemUpdated message or plain object to encode
|
|
30809
|
+
* @param [writer] Writer to encode to
|
|
30810
|
+
* @returns Writer
|
|
30811
|
+
*/
|
|
30812
|
+
public static encode(message: IItemUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30813
|
+
|
|
30814
|
+
/**
|
|
30815
|
+
* Encodes the specified ItemUpdated message, length delimited. Does not implicitly {@link ItemUpdated.verify|verify} messages.
|
|
30816
|
+
* @param message ItemUpdated message or plain object to encode
|
|
30817
|
+
* @param [writer] Writer to encode to
|
|
30818
|
+
* @returns Writer
|
|
30819
|
+
*/
|
|
30820
|
+
public static encodeDelimited(message: IItemUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30821
|
+
|
|
30822
|
+
/**
|
|
30823
|
+
* Decodes an ItemUpdated message from the specified reader or buffer.
|
|
30824
|
+
* @param reader Reader or buffer to decode from
|
|
30825
|
+
* @param [length] Message length if known beforehand
|
|
30826
|
+
* @returns ItemUpdated
|
|
30827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30829
|
+
*/
|
|
30830
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ItemUpdated;
|
|
30831
|
+
|
|
30832
|
+
/**
|
|
30833
|
+
* Decodes an ItemUpdated message from the specified reader or buffer, length delimited.
|
|
30834
|
+
* @param reader Reader or buffer to decode from
|
|
30835
|
+
* @returns ItemUpdated
|
|
30836
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30837
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30838
|
+
*/
|
|
30839
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ItemUpdated;
|
|
30840
|
+
|
|
30841
|
+
/**
|
|
30842
|
+
* Verifies an ItemUpdated message.
|
|
30843
|
+
* @param message Plain object to verify
|
|
30844
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30845
|
+
*/
|
|
30846
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
30847
|
+
|
|
30848
|
+
/**
|
|
30849
|
+
* Creates an ItemUpdated message from a plain object. Also converts values to their respective internal types.
|
|
30850
|
+
* @param object Plain object
|
|
30851
|
+
* @returns ItemUpdated
|
|
30852
|
+
*/
|
|
30853
|
+
public static fromObject(object: { [k: string]: any }): ItemUpdated;
|
|
30854
|
+
|
|
30855
|
+
/**
|
|
30856
|
+
* Creates a plain object from an ItemUpdated message. Also converts values to other types if specified.
|
|
30857
|
+
* @param message ItemUpdated
|
|
30858
|
+
* @param [options] Conversion options
|
|
30859
|
+
* @returns Plain object
|
|
30860
|
+
*/
|
|
30861
|
+
public static toObject(message: ItemUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
30862
|
+
|
|
30863
|
+
/**
|
|
30864
|
+
* Converts this ItemUpdated to JSON.
|
|
30865
|
+
* @returns JSON object
|
|
30866
|
+
*/
|
|
30867
|
+
public toJSON(): { [k: string]: any };
|
|
30868
|
+
}
|
|
30869
|
+
|
|
30870
|
+
/** Properties of an ItemDeleted. */
|
|
30871
|
+
export interface IItemDeleted {
|
|
30872
|
+
|
|
30873
|
+
/** ItemDeleted slug */
|
|
30874
|
+
slug?: (string|null);
|
|
30875
|
+
|
|
30876
|
+
/** ItemDeleted deletedAt */
|
|
30877
|
+
deletedAt?: (number|Long|null);
|
|
30878
|
+
}
|
|
30879
|
+
|
|
30880
|
+
/** Represents an ItemDeleted. */
|
|
30881
|
+
export class ItemDeleted implements IItemDeleted {
|
|
30882
|
+
|
|
30883
|
+
/**
|
|
30884
|
+
* Constructs a new ItemDeleted.
|
|
30885
|
+
* @param [properties] Properties to set
|
|
30886
|
+
*/
|
|
30887
|
+
constructor(properties?: IItemDeleted);
|
|
30888
|
+
|
|
30889
|
+
/** ItemDeleted slug. */
|
|
30890
|
+
public slug: string;
|
|
30891
|
+
|
|
30892
|
+
/** ItemDeleted deletedAt. */
|
|
30893
|
+
public deletedAt: (number|Long);
|
|
30894
|
+
|
|
30895
|
+
/**
|
|
30896
|
+
* Creates a new ItemDeleted instance using the specified properties.
|
|
30897
|
+
* @param [properties] Properties to set
|
|
30898
|
+
* @returns ItemDeleted instance
|
|
30899
|
+
*/
|
|
30900
|
+
public static create(properties?: IItemDeleted): ItemDeleted;
|
|
30901
|
+
|
|
30902
|
+
/**
|
|
30903
|
+
* Encodes the specified ItemDeleted message. Does not implicitly {@link ItemDeleted.verify|verify} messages.
|
|
30904
|
+
* @param message ItemDeleted message or plain object to encode
|
|
30905
|
+
* @param [writer] Writer to encode to
|
|
30906
|
+
* @returns Writer
|
|
30907
|
+
*/
|
|
30908
|
+
public static encode(message: IItemDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30909
|
+
|
|
30910
|
+
/**
|
|
30911
|
+
* Encodes the specified ItemDeleted message, length delimited. Does not implicitly {@link ItemDeleted.verify|verify} messages.
|
|
30912
|
+
* @param message ItemDeleted message or plain object to encode
|
|
30913
|
+
* @param [writer] Writer to encode to
|
|
30914
|
+
* @returns Writer
|
|
30915
|
+
*/
|
|
30916
|
+
public static encodeDelimited(message: IItemDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
30917
|
+
|
|
30918
|
+
/**
|
|
30919
|
+
* Decodes an ItemDeleted message from the specified reader or buffer.
|
|
30920
|
+
* @param reader Reader or buffer to decode from
|
|
30921
|
+
* @param [length] Message length if known beforehand
|
|
30922
|
+
* @returns ItemDeleted
|
|
30923
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30924
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30925
|
+
*/
|
|
30926
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ItemDeleted;
|
|
30927
|
+
|
|
30928
|
+
/**
|
|
30929
|
+
* Decodes an ItemDeleted message from the specified reader or buffer, length delimited.
|
|
30930
|
+
* @param reader Reader or buffer to decode from
|
|
30931
|
+
* @returns ItemDeleted
|
|
30932
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30933
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30934
|
+
*/
|
|
30935
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ItemDeleted;
|
|
30936
|
+
|
|
30937
|
+
/**
|
|
30938
|
+
* Verifies an ItemDeleted message.
|
|
30939
|
+
* @param message Plain object to verify
|
|
30940
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30941
|
+
*/
|
|
30942
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
30943
|
+
|
|
30944
|
+
/**
|
|
30945
|
+
* Creates an ItemDeleted message from a plain object. Also converts values to their respective internal types.
|
|
30946
|
+
* @param object Plain object
|
|
30947
|
+
* @returns ItemDeleted
|
|
30948
|
+
*/
|
|
30949
|
+
public static fromObject(object: { [k: string]: any }): ItemDeleted;
|
|
30950
|
+
|
|
30951
|
+
/**
|
|
30952
|
+
* Creates a plain object from an ItemDeleted message. Also converts values to other types if specified.
|
|
30953
|
+
* @param message ItemDeleted
|
|
30954
|
+
* @param [options] Conversion options
|
|
30955
|
+
* @returns Plain object
|
|
30956
|
+
*/
|
|
30957
|
+
public static toObject(message: ItemDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
30958
|
+
|
|
30959
|
+
/**
|
|
30960
|
+
* Converts this ItemDeleted to JSON.
|
|
30961
|
+
* @returns JSON object
|
|
30962
|
+
*/
|
|
30963
|
+
public toJSON(): { [k: string]: any };
|
|
30964
|
+
}
|
|
30965
|
+
|
|
30659
30966
|
/** Properties of a TopicCreated. */
|
|
30660
30967
|
export interface ITopicCreated {
|
|
30661
30968
|
|
package/lib/index.js
CHANGED
|
@@ -36725,6 +36725,7 @@ $root.b2b = (function() {
|
|
|
36725
36725
|
* @property {number|null} [parentOrgId] Organization parentOrgId
|
|
36726
36726
|
* @property {string|null} [country] Organization country
|
|
36727
36727
|
* @property {boolean|null} [hasEapCoverage] Organization hasEapCoverage
|
|
36728
|
+
* @property {number|null} [overlappedCareId] Organization overlappedCareId
|
|
36728
36729
|
*/
|
|
36729
36730
|
|
|
36730
36731
|
/**
|
|
@@ -36919,6 +36920,14 @@ $root.b2b = (function() {
|
|
|
36919
36920
|
*/
|
|
36920
36921
|
Organization.prototype.hasEapCoverage = false;
|
|
36921
36922
|
|
|
36923
|
+
/**
|
|
36924
|
+
* Organization overlappedCareId.
|
|
36925
|
+
* @member {number} overlappedCareId
|
|
36926
|
+
* @memberof b2b.Organization
|
|
36927
|
+
* @instance
|
|
36928
|
+
*/
|
|
36929
|
+
Organization.prototype.overlappedCareId = 0;
|
|
36930
|
+
|
|
36922
36931
|
/**
|
|
36923
36932
|
* Creates a new Organization instance using the specified properties.
|
|
36924
36933
|
* @function create
|
|
@@ -36991,6 +37000,8 @@ $root.b2b = (function() {
|
|
|
36991
37000
|
writer.uint32(/* id 21, wireType 2 =*/170).string(message.country);
|
|
36992
37001
|
if (message.hasEapCoverage != null && message.hasOwnProperty("hasEapCoverage"))
|
|
36993
37002
|
writer.uint32(/* id 22, wireType 0 =*/176).bool(message.hasEapCoverage);
|
|
37003
|
+
if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
|
|
37004
|
+
writer.uint32(/* id 23, wireType 0 =*/184).uint32(message.overlappedCareId);
|
|
36994
37005
|
return writer;
|
|
36995
37006
|
};
|
|
36996
37007
|
|
|
@@ -37098,6 +37109,9 @@ $root.b2b = (function() {
|
|
|
37098
37109
|
case 22:
|
|
37099
37110
|
message.hasEapCoverage = reader.bool();
|
|
37100
37111
|
break;
|
|
37112
|
+
case 23:
|
|
37113
|
+
message.overlappedCareId = reader.uint32();
|
|
37114
|
+
break;
|
|
37101
37115
|
default:
|
|
37102
37116
|
reader.skipType(tag & 7);
|
|
37103
37117
|
break;
|
|
@@ -37233,6 +37247,9 @@ $root.b2b = (function() {
|
|
|
37233
37247
|
if (message.hasEapCoverage != null && message.hasOwnProperty("hasEapCoverage"))
|
|
37234
37248
|
if (typeof message.hasEapCoverage !== "boolean")
|
|
37235
37249
|
return "hasEapCoverage: boolean expected";
|
|
37250
|
+
if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
|
|
37251
|
+
if (!$util.isInteger(message.overlappedCareId))
|
|
37252
|
+
return "overlappedCareId: integer expected";
|
|
37236
37253
|
return null;
|
|
37237
37254
|
};
|
|
37238
37255
|
|
|
@@ -37383,6 +37400,8 @@ $root.b2b = (function() {
|
|
|
37383
37400
|
message.country = String(object.country);
|
|
37384
37401
|
if (object.hasEapCoverage != null)
|
|
37385
37402
|
message.hasEapCoverage = Boolean(object.hasEapCoverage);
|
|
37403
|
+
if (object.overlappedCareId != null)
|
|
37404
|
+
message.overlappedCareId = object.overlappedCareId >>> 0;
|
|
37386
37405
|
return message;
|
|
37387
37406
|
};
|
|
37388
37407
|
|
|
@@ -37423,6 +37442,7 @@ $root.b2b = (function() {
|
|
|
37423
37442
|
object.parentOrgId = 0;
|
|
37424
37443
|
object.country = "";
|
|
37425
37444
|
object.hasEapCoverage = false;
|
|
37445
|
+
object.overlappedCareId = 0;
|
|
37426
37446
|
}
|
|
37427
37447
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
37428
37448
|
object.orgId = message.orgId;
|
|
@@ -37471,6 +37491,8 @@ $root.b2b = (function() {
|
|
|
37471
37491
|
object.country = message.country;
|
|
37472
37492
|
if (message.hasEapCoverage != null && message.hasOwnProperty("hasEapCoverage"))
|
|
37473
37493
|
object.hasEapCoverage = message.hasEapCoverage;
|
|
37494
|
+
if (message.overlappedCareId != null && message.hasOwnProperty("overlappedCareId"))
|
|
37495
|
+
object.overlappedCareId = message.overlappedCareId;
|
|
37474
37496
|
return object;
|
|
37475
37497
|
};
|
|
37476
37498
|
|
|
@@ -81918,6 +81940,7 @@ $root.ContentPlayed = (function() {
|
|
|
81918
81940
|
case 18:
|
|
81919
81941
|
case 19:
|
|
81920
81942
|
case 20:
|
|
81943
|
+
case 21:
|
|
81921
81944
|
break;
|
|
81922
81945
|
}
|
|
81923
81946
|
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
@@ -82050,6 +82073,10 @@ $root.ContentPlayed = (function() {
|
|
|
82050
82073
|
case 20:
|
|
82051
82074
|
message.contentType = 20;
|
|
82052
82075
|
break;
|
|
82076
|
+
case "CONTENT_TYPE_ITEM":
|
|
82077
|
+
case 21:
|
|
82078
|
+
message.contentType = 21;
|
|
82079
|
+
break;
|
|
82053
82080
|
}
|
|
82054
82081
|
switch (object.mode) {
|
|
82055
82082
|
case "MODE_UNRECOGNIZED":
|
|
@@ -82398,6 +82425,7 @@ $root.ContentPlayedBatch = (function() {
|
|
|
82398
82425
|
* @property {number} CONTENT_TYPE_COLLECTION=18 CONTENT_TYPE_COLLECTION value
|
|
82399
82426
|
* @property {number} CONTENT_TYPE_GUIDED_PROGRAM=19 CONTENT_TYPE_GUIDED_PROGRAM value
|
|
82400
82427
|
* @property {number} CONTENT_TYPE_SURVEY=20 CONTENT_TYPE_SURVEY value
|
|
82428
|
+
* @property {number} CONTENT_TYPE_ITEM=21 CONTENT_TYPE_ITEM value
|
|
82401
82429
|
*/
|
|
82402
82430
|
$root.ContentType = (function() {
|
|
82403
82431
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -82422,6 +82450,7 @@ $root.ContentType = (function() {
|
|
|
82422
82450
|
values[valuesById[18] = "CONTENT_TYPE_COLLECTION"] = 18;
|
|
82423
82451
|
values[valuesById[19] = "CONTENT_TYPE_GUIDED_PROGRAM"] = 19;
|
|
82424
82452
|
values[valuesById[20] = "CONTENT_TYPE_SURVEY"] = 20;
|
|
82453
|
+
values[valuesById[21] = "CONTENT_TYPE_ITEM"] = 21;
|
|
82425
82454
|
return values;
|
|
82426
82455
|
})();
|
|
82427
82456
|
|
|
@@ -84624,6 +84653,7 @@ $root.ContentEntityCreated = (function() {
|
|
|
84624
84653
|
case 18:
|
|
84625
84654
|
case 19:
|
|
84626
84655
|
case 20:
|
|
84656
|
+
case 21:
|
|
84627
84657
|
break;
|
|
84628
84658
|
}
|
|
84629
84659
|
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
@@ -84851,6 +84881,10 @@ $root.ContentEntityCreated = (function() {
|
|
|
84851
84881
|
case 20:
|
|
84852
84882
|
message.contentType = 20;
|
|
84853
84883
|
break;
|
|
84884
|
+
case "CONTENT_TYPE_ITEM":
|
|
84885
|
+
case 21:
|
|
84886
|
+
message.contentType = 21;
|
|
84887
|
+
break;
|
|
84854
84888
|
}
|
|
84855
84889
|
switch (object.colorTheme) {
|
|
84856
84890
|
case "COLOR_THEME_UNRECOGNIZED":
|
|
@@ -85704,6 +85738,7 @@ $root.ContentEntityUpdated = (function() {
|
|
|
85704
85738
|
case 18:
|
|
85705
85739
|
case 19:
|
|
85706
85740
|
case 20:
|
|
85741
|
+
case 21:
|
|
85707
85742
|
break;
|
|
85708
85743
|
}
|
|
85709
85744
|
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
@@ -85931,6 +85966,10 @@ $root.ContentEntityUpdated = (function() {
|
|
|
85931
85966
|
case 20:
|
|
85932
85967
|
message.contentType = 20;
|
|
85933
85968
|
break;
|
|
85969
|
+
case "CONTENT_TYPE_ITEM":
|
|
85970
|
+
case 21:
|
|
85971
|
+
message.contentType = 21;
|
|
85972
|
+
break;
|
|
85934
85973
|
}
|
|
85935
85974
|
switch (object.colorTheme) {
|
|
85936
85975
|
case "COLOR_THEME_UNRECOGNIZED":
|
|
@@ -86784,6 +86823,7 @@ $root.ContentEntityDeleted = (function() {
|
|
|
86784
86823
|
case 18:
|
|
86785
86824
|
case 19:
|
|
86786
86825
|
case 20:
|
|
86826
|
+
case 21:
|
|
86787
86827
|
break;
|
|
86788
86828
|
}
|
|
86789
86829
|
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
@@ -87011,6 +87051,10 @@ $root.ContentEntityDeleted = (function() {
|
|
|
87011
87051
|
case 20:
|
|
87012
87052
|
message.contentType = 20;
|
|
87013
87053
|
break;
|
|
87054
|
+
case "CONTENT_TYPE_ITEM":
|
|
87055
|
+
case 21:
|
|
87056
|
+
message.contentType = 21;
|
|
87057
|
+
break;
|
|
87014
87058
|
}
|
|
87015
87059
|
switch (object.colorTheme) {
|
|
87016
87060
|
case "COLOR_THEME_UNRECOGNIZED":
|
|
@@ -87585,6 +87629,766 @@ $root.ContentCourseCompleted = (function() {
|
|
|
87585
87629
|
return ContentCourseCompleted;
|
|
87586
87630
|
})();
|
|
87587
87631
|
|
|
87632
|
+
$root.ItemCreated = (function() {
|
|
87633
|
+
|
|
87634
|
+
/**
|
|
87635
|
+
* Properties of an ItemCreated.
|
|
87636
|
+
* @name IItemCreated
|
|
87637
|
+
* @interface IItemCreated
|
|
87638
|
+
* @property {string|null} [slug] ItemCreated slug
|
|
87639
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ItemCreated accessGroups
|
|
87640
|
+
* @property {number|Long|null} [createdAt] ItemCreated createdAt
|
|
87641
|
+
*/
|
|
87642
|
+
|
|
87643
|
+
/**
|
|
87644
|
+
* Constructs a new ItemCreated.
|
|
87645
|
+
* @name ItemCreated
|
|
87646
|
+
* @classdesc Represents an ItemCreated.
|
|
87647
|
+
* @implements IItemCreated
|
|
87648
|
+
* @constructor
|
|
87649
|
+
* @param {IItemCreated=} [properties] Properties to set
|
|
87650
|
+
*/
|
|
87651
|
+
function ItemCreated(properties) {
|
|
87652
|
+
this.accessGroups = [];
|
|
87653
|
+
if (properties)
|
|
87654
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87655
|
+
if (properties[keys[i]] != null)
|
|
87656
|
+
this[keys[i]] = properties[keys[i]];
|
|
87657
|
+
}
|
|
87658
|
+
|
|
87659
|
+
/**
|
|
87660
|
+
* ItemCreated slug.
|
|
87661
|
+
* @member {string} slug
|
|
87662
|
+
* @memberof ItemCreated
|
|
87663
|
+
* @instance
|
|
87664
|
+
*/
|
|
87665
|
+
ItemCreated.prototype.slug = "";
|
|
87666
|
+
|
|
87667
|
+
/**
|
|
87668
|
+
* ItemCreated accessGroups.
|
|
87669
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
87670
|
+
* @memberof ItemCreated
|
|
87671
|
+
* @instance
|
|
87672
|
+
*/
|
|
87673
|
+
ItemCreated.prototype.accessGroups = $util.emptyArray;
|
|
87674
|
+
|
|
87675
|
+
/**
|
|
87676
|
+
* ItemCreated createdAt.
|
|
87677
|
+
* @member {number|Long} createdAt
|
|
87678
|
+
* @memberof ItemCreated
|
|
87679
|
+
* @instance
|
|
87680
|
+
*/
|
|
87681
|
+
ItemCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
87682
|
+
|
|
87683
|
+
/**
|
|
87684
|
+
* Creates a new ItemCreated instance using the specified properties.
|
|
87685
|
+
* @function create
|
|
87686
|
+
* @memberof ItemCreated
|
|
87687
|
+
* @static
|
|
87688
|
+
* @param {IItemCreated=} [properties] Properties to set
|
|
87689
|
+
* @returns {ItemCreated} ItemCreated instance
|
|
87690
|
+
*/
|
|
87691
|
+
ItemCreated.create = function create(properties) {
|
|
87692
|
+
return new ItemCreated(properties);
|
|
87693
|
+
};
|
|
87694
|
+
|
|
87695
|
+
/**
|
|
87696
|
+
* Encodes the specified ItemCreated message. Does not implicitly {@link ItemCreated.verify|verify} messages.
|
|
87697
|
+
* @function encode
|
|
87698
|
+
* @memberof ItemCreated
|
|
87699
|
+
* @static
|
|
87700
|
+
* @param {IItemCreated} message ItemCreated message or plain object to encode
|
|
87701
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87702
|
+
* @returns {$protobuf.Writer} Writer
|
|
87703
|
+
*/
|
|
87704
|
+
ItemCreated.encode = function encode(message, writer) {
|
|
87705
|
+
if (!writer)
|
|
87706
|
+
writer = $Writer.create();
|
|
87707
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
87708
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
87709
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
87710
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
87711
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
87712
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
87713
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
87714
|
+
return writer;
|
|
87715
|
+
};
|
|
87716
|
+
|
|
87717
|
+
/**
|
|
87718
|
+
* Encodes the specified ItemCreated message, length delimited. Does not implicitly {@link ItemCreated.verify|verify} messages.
|
|
87719
|
+
* @function encodeDelimited
|
|
87720
|
+
* @memberof ItemCreated
|
|
87721
|
+
* @static
|
|
87722
|
+
* @param {IItemCreated} message ItemCreated message or plain object to encode
|
|
87723
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87724
|
+
* @returns {$protobuf.Writer} Writer
|
|
87725
|
+
*/
|
|
87726
|
+
ItemCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87727
|
+
return this.encode(message, writer).ldelim();
|
|
87728
|
+
};
|
|
87729
|
+
|
|
87730
|
+
/**
|
|
87731
|
+
* Decodes an ItemCreated message from the specified reader or buffer.
|
|
87732
|
+
* @function decode
|
|
87733
|
+
* @memberof ItemCreated
|
|
87734
|
+
* @static
|
|
87735
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87736
|
+
* @param {number} [length] Message length if known beforehand
|
|
87737
|
+
* @returns {ItemCreated} ItemCreated
|
|
87738
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87739
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87740
|
+
*/
|
|
87741
|
+
ItemCreated.decode = function decode(reader, length) {
|
|
87742
|
+
if (!(reader instanceof $Reader))
|
|
87743
|
+
reader = $Reader.create(reader);
|
|
87744
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ItemCreated();
|
|
87745
|
+
while (reader.pos < end) {
|
|
87746
|
+
var tag = reader.uint32();
|
|
87747
|
+
switch (tag >>> 3) {
|
|
87748
|
+
case 1:
|
|
87749
|
+
message.slug = reader.string();
|
|
87750
|
+
break;
|
|
87751
|
+
case 2:
|
|
87752
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
87753
|
+
message.accessGroups = [];
|
|
87754
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
87755
|
+
break;
|
|
87756
|
+
case 3:
|
|
87757
|
+
message.createdAt = reader.uint64();
|
|
87758
|
+
break;
|
|
87759
|
+
default:
|
|
87760
|
+
reader.skipType(tag & 7);
|
|
87761
|
+
break;
|
|
87762
|
+
}
|
|
87763
|
+
}
|
|
87764
|
+
return message;
|
|
87765
|
+
};
|
|
87766
|
+
|
|
87767
|
+
/**
|
|
87768
|
+
* Decodes an ItemCreated message from the specified reader or buffer, length delimited.
|
|
87769
|
+
* @function decodeDelimited
|
|
87770
|
+
* @memberof ItemCreated
|
|
87771
|
+
* @static
|
|
87772
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87773
|
+
* @returns {ItemCreated} ItemCreated
|
|
87774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87776
|
+
*/
|
|
87777
|
+
ItemCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
87778
|
+
if (!(reader instanceof $Reader))
|
|
87779
|
+
reader = new $Reader(reader);
|
|
87780
|
+
return this.decode(reader, reader.uint32());
|
|
87781
|
+
};
|
|
87782
|
+
|
|
87783
|
+
/**
|
|
87784
|
+
* Verifies an ItemCreated message.
|
|
87785
|
+
* @function verify
|
|
87786
|
+
* @memberof ItemCreated
|
|
87787
|
+
* @static
|
|
87788
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87789
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87790
|
+
*/
|
|
87791
|
+
ItemCreated.verify = function verify(message) {
|
|
87792
|
+
if (typeof message !== "object" || message === null)
|
|
87793
|
+
return "object expected";
|
|
87794
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
87795
|
+
if (!$util.isString(message.slug))
|
|
87796
|
+
return "slug: string expected";
|
|
87797
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
87798
|
+
if (!Array.isArray(message.accessGroups))
|
|
87799
|
+
return "accessGroups: array expected";
|
|
87800
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
87801
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
87802
|
+
if (error)
|
|
87803
|
+
return "accessGroups." + error;
|
|
87804
|
+
}
|
|
87805
|
+
}
|
|
87806
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
87807
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
87808
|
+
return "createdAt: integer|Long expected";
|
|
87809
|
+
return null;
|
|
87810
|
+
};
|
|
87811
|
+
|
|
87812
|
+
/**
|
|
87813
|
+
* Creates an ItemCreated message from a plain object. Also converts values to their respective internal types.
|
|
87814
|
+
* @function fromObject
|
|
87815
|
+
* @memberof ItemCreated
|
|
87816
|
+
* @static
|
|
87817
|
+
* @param {Object.<string,*>} object Plain object
|
|
87818
|
+
* @returns {ItemCreated} ItemCreated
|
|
87819
|
+
*/
|
|
87820
|
+
ItemCreated.fromObject = function fromObject(object) {
|
|
87821
|
+
if (object instanceof $root.ItemCreated)
|
|
87822
|
+
return object;
|
|
87823
|
+
var message = new $root.ItemCreated();
|
|
87824
|
+
if (object.slug != null)
|
|
87825
|
+
message.slug = String(object.slug);
|
|
87826
|
+
if (object.accessGroups) {
|
|
87827
|
+
if (!Array.isArray(object.accessGroups))
|
|
87828
|
+
throw TypeError(".ItemCreated.accessGroups: array expected");
|
|
87829
|
+
message.accessGroups = [];
|
|
87830
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
87831
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
87832
|
+
throw TypeError(".ItemCreated.accessGroups: object expected");
|
|
87833
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
87834
|
+
}
|
|
87835
|
+
}
|
|
87836
|
+
if (object.createdAt != null)
|
|
87837
|
+
if ($util.Long)
|
|
87838
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
87839
|
+
else if (typeof object.createdAt === "string")
|
|
87840
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
87841
|
+
else if (typeof object.createdAt === "number")
|
|
87842
|
+
message.createdAt = object.createdAt;
|
|
87843
|
+
else if (typeof object.createdAt === "object")
|
|
87844
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
87845
|
+
return message;
|
|
87846
|
+
};
|
|
87847
|
+
|
|
87848
|
+
/**
|
|
87849
|
+
* Creates a plain object from an ItemCreated message. Also converts values to other types if specified.
|
|
87850
|
+
* @function toObject
|
|
87851
|
+
* @memberof ItemCreated
|
|
87852
|
+
* @static
|
|
87853
|
+
* @param {ItemCreated} message ItemCreated
|
|
87854
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87855
|
+
* @returns {Object.<string,*>} Plain object
|
|
87856
|
+
*/
|
|
87857
|
+
ItemCreated.toObject = function toObject(message, options) {
|
|
87858
|
+
if (!options)
|
|
87859
|
+
options = {};
|
|
87860
|
+
var object = {};
|
|
87861
|
+
if (options.arrays || options.defaults)
|
|
87862
|
+
object.accessGroups = [];
|
|
87863
|
+
if (options.defaults) {
|
|
87864
|
+
object.slug = "";
|
|
87865
|
+
if ($util.Long) {
|
|
87866
|
+
var long = new $util.Long(0, 0, true);
|
|
87867
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
87868
|
+
} else
|
|
87869
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
87870
|
+
}
|
|
87871
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
87872
|
+
object.slug = message.slug;
|
|
87873
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
87874
|
+
object.accessGroups = [];
|
|
87875
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
87876
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
87877
|
+
}
|
|
87878
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
87879
|
+
if (typeof message.createdAt === "number")
|
|
87880
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
87881
|
+
else
|
|
87882
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
87883
|
+
return object;
|
|
87884
|
+
};
|
|
87885
|
+
|
|
87886
|
+
/**
|
|
87887
|
+
* Converts this ItemCreated to JSON.
|
|
87888
|
+
* @function toJSON
|
|
87889
|
+
* @memberof ItemCreated
|
|
87890
|
+
* @instance
|
|
87891
|
+
* @returns {Object.<string,*>} JSON object
|
|
87892
|
+
*/
|
|
87893
|
+
ItemCreated.prototype.toJSON = function toJSON() {
|
|
87894
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87895
|
+
};
|
|
87896
|
+
|
|
87897
|
+
return ItemCreated;
|
|
87898
|
+
})();
|
|
87899
|
+
|
|
87900
|
+
$root.ItemUpdated = (function() {
|
|
87901
|
+
|
|
87902
|
+
/**
|
|
87903
|
+
* Properties of an ItemUpdated.
|
|
87904
|
+
* @name IItemUpdated
|
|
87905
|
+
* @interface IItemUpdated
|
|
87906
|
+
* @property {string|null} [slug] ItemUpdated slug
|
|
87907
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ItemUpdated accessGroups
|
|
87908
|
+
* @property {number|Long|null} [updatedAt] ItemUpdated updatedAt
|
|
87909
|
+
*/
|
|
87910
|
+
|
|
87911
|
+
/**
|
|
87912
|
+
* Constructs a new ItemUpdated.
|
|
87913
|
+
* @name ItemUpdated
|
|
87914
|
+
* @classdesc Represents an ItemUpdated.
|
|
87915
|
+
* @implements IItemUpdated
|
|
87916
|
+
* @constructor
|
|
87917
|
+
* @param {IItemUpdated=} [properties] Properties to set
|
|
87918
|
+
*/
|
|
87919
|
+
function ItemUpdated(properties) {
|
|
87920
|
+
this.accessGroups = [];
|
|
87921
|
+
if (properties)
|
|
87922
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87923
|
+
if (properties[keys[i]] != null)
|
|
87924
|
+
this[keys[i]] = properties[keys[i]];
|
|
87925
|
+
}
|
|
87926
|
+
|
|
87927
|
+
/**
|
|
87928
|
+
* ItemUpdated slug.
|
|
87929
|
+
* @member {string} slug
|
|
87930
|
+
* @memberof ItemUpdated
|
|
87931
|
+
* @instance
|
|
87932
|
+
*/
|
|
87933
|
+
ItemUpdated.prototype.slug = "";
|
|
87934
|
+
|
|
87935
|
+
/**
|
|
87936
|
+
* ItemUpdated accessGroups.
|
|
87937
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
87938
|
+
* @memberof ItemUpdated
|
|
87939
|
+
* @instance
|
|
87940
|
+
*/
|
|
87941
|
+
ItemUpdated.prototype.accessGroups = $util.emptyArray;
|
|
87942
|
+
|
|
87943
|
+
/**
|
|
87944
|
+
* ItemUpdated updatedAt.
|
|
87945
|
+
* @member {number|Long} updatedAt
|
|
87946
|
+
* @memberof ItemUpdated
|
|
87947
|
+
* @instance
|
|
87948
|
+
*/
|
|
87949
|
+
ItemUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
87950
|
+
|
|
87951
|
+
/**
|
|
87952
|
+
* Creates a new ItemUpdated instance using the specified properties.
|
|
87953
|
+
* @function create
|
|
87954
|
+
* @memberof ItemUpdated
|
|
87955
|
+
* @static
|
|
87956
|
+
* @param {IItemUpdated=} [properties] Properties to set
|
|
87957
|
+
* @returns {ItemUpdated} ItemUpdated instance
|
|
87958
|
+
*/
|
|
87959
|
+
ItemUpdated.create = function create(properties) {
|
|
87960
|
+
return new ItemUpdated(properties);
|
|
87961
|
+
};
|
|
87962
|
+
|
|
87963
|
+
/**
|
|
87964
|
+
* Encodes the specified ItemUpdated message. Does not implicitly {@link ItemUpdated.verify|verify} messages.
|
|
87965
|
+
* @function encode
|
|
87966
|
+
* @memberof ItemUpdated
|
|
87967
|
+
* @static
|
|
87968
|
+
* @param {IItemUpdated} message ItemUpdated message or plain object to encode
|
|
87969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87970
|
+
* @returns {$protobuf.Writer} Writer
|
|
87971
|
+
*/
|
|
87972
|
+
ItemUpdated.encode = function encode(message, writer) {
|
|
87973
|
+
if (!writer)
|
|
87974
|
+
writer = $Writer.create();
|
|
87975
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
87976
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
87977
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
87978
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
87979
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
87980
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
87981
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
87982
|
+
return writer;
|
|
87983
|
+
};
|
|
87984
|
+
|
|
87985
|
+
/**
|
|
87986
|
+
* Encodes the specified ItemUpdated message, length delimited. Does not implicitly {@link ItemUpdated.verify|verify} messages.
|
|
87987
|
+
* @function encodeDelimited
|
|
87988
|
+
* @memberof ItemUpdated
|
|
87989
|
+
* @static
|
|
87990
|
+
* @param {IItemUpdated} message ItemUpdated message or plain object to encode
|
|
87991
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87992
|
+
* @returns {$protobuf.Writer} Writer
|
|
87993
|
+
*/
|
|
87994
|
+
ItemUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87995
|
+
return this.encode(message, writer).ldelim();
|
|
87996
|
+
};
|
|
87997
|
+
|
|
87998
|
+
/**
|
|
87999
|
+
* Decodes an ItemUpdated message from the specified reader or buffer.
|
|
88000
|
+
* @function decode
|
|
88001
|
+
* @memberof ItemUpdated
|
|
88002
|
+
* @static
|
|
88003
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88004
|
+
* @param {number} [length] Message length if known beforehand
|
|
88005
|
+
* @returns {ItemUpdated} ItemUpdated
|
|
88006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88008
|
+
*/
|
|
88009
|
+
ItemUpdated.decode = function decode(reader, length) {
|
|
88010
|
+
if (!(reader instanceof $Reader))
|
|
88011
|
+
reader = $Reader.create(reader);
|
|
88012
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ItemUpdated();
|
|
88013
|
+
while (reader.pos < end) {
|
|
88014
|
+
var tag = reader.uint32();
|
|
88015
|
+
switch (tag >>> 3) {
|
|
88016
|
+
case 1:
|
|
88017
|
+
message.slug = reader.string();
|
|
88018
|
+
break;
|
|
88019
|
+
case 2:
|
|
88020
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
88021
|
+
message.accessGroups = [];
|
|
88022
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
88023
|
+
break;
|
|
88024
|
+
case 3:
|
|
88025
|
+
message.updatedAt = reader.uint64();
|
|
88026
|
+
break;
|
|
88027
|
+
default:
|
|
88028
|
+
reader.skipType(tag & 7);
|
|
88029
|
+
break;
|
|
88030
|
+
}
|
|
88031
|
+
}
|
|
88032
|
+
return message;
|
|
88033
|
+
};
|
|
88034
|
+
|
|
88035
|
+
/**
|
|
88036
|
+
* Decodes an ItemUpdated message from the specified reader or buffer, length delimited.
|
|
88037
|
+
* @function decodeDelimited
|
|
88038
|
+
* @memberof ItemUpdated
|
|
88039
|
+
* @static
|
|
88040
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88041
|
+
* @returns {ItemUpdated} ItemUpdated
|
|
88042
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88043
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88044
|
+
*/
|
|
88045
|
+
ItemUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
88046
|
+
if (!(reader instanceof $Reader))
|
|
88047
|
+
reader = new $Reader(reader);
|
|
88048
|
+
return this.decode(reader, reader.uint32());
|
|
88049
|
+
};
|
|
88050
|
+
|
|
88051
|
+
/**
|
|
88052
|
+
* Verifies an ItemUpdated message.
|
|
88053
|
+
* @function verify
|
|
88054
|
+
* @memberof ItemUpdated
|
|
88055
|
+
* @static
|
|
88056
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
88057
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88058
|
+
*/
|
|
88059
|
+
ItemUpdated.verify = function verify(message) {
|
|
88060
|
+
if (typeof message !== "object" || message === null)
|
|
88061
|
+
return "object expected";
|
|
88062
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88063
|
+
if (!$util.isString(message.slug))
|
|
88064
|
+
return "slug: string expected";
|
|
88065
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
88066
|
+
if (!Array.isArray(message.accessGroups))
|
|
88067
|
+
return "accessGroups: array expected";
|
|
88068
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
88069
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
88070
|
+
if (error)
|
|
88071
|
+
return "accessGroups." + error;
|
|
88072
|
+
}
|
|
88073
|
+
}
|
|
88074
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
88075
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
88076
|
+
return "updatedAt: integer|Long expected";
|
|
88077
|
+
return null;
|
|
88078
|
+
};
|
|
88079
|
+
|
|
88080
|
+
/**
|
|
88081
|
+
* Creates an ItemUpdated message from a plain object. Also converts values to their respective internal types.
|
|
88082
|
+
* @function fromObject
|
|
88083
|
+
* @memberof ItemUpdated
|
|
88084
|
+
* @static
|
|
88085
|
+
* @param {Object.<string,*>} object Plain object
|
|
88086
|
+
* @returns {ItemUpdated} ItemUpdated
|
|
88087
|
+
*/
|
|
88088
|
+
ItemUpdated.fromObject = function fromObject(object) {
|
|
88089
|
+
if (object instanceof $root.ItemUpdated)
|
|
88090
|
+
return object;
|
|
88091
|
+
var message = new $root.ItemUpdated();
|
|
88092
|
+
if (object.slug != null)
|
|
88093
|
+
message.slug = String(object.slug);
|
|
88094
|
+
if (object.accessGroups) {
|
|
88095
|
+
if (!Array.isArray(object.accessGroups))
|
|
88096
|
+
throw TypeError(".ItemUpdated.accessGroups: array expected");
|
|
88097
|
+
message.accessGroups = [];
|
|
88098
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
88099
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
88100
|
+
throw TypeError(".ItemUpdated.accessGroups: object expected");
|
|
88101
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
88102
|
+
}
|
|
88103
|
+
}
|
|
88104
|
+
if (object.updatedAt != null)
|
|
88105
|
+
if ($util.Long)
|
|
88106
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
88107
|
+
else if (typeof object.updatedAt === "string")
|
|
88108
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
88109
|
+
else if (typeof object.updatedAt === "number")
|
|
88110
|
+
message.updatedAt = object.updatedAt;
|
|
88111
|
+
else if (typeof object.updatedAt === "object")
|
|
88112
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
88113
|
+
return message;
|
|
88114
|
+
};
|
|
88115
|
+
|
|
88116
|
+
/**
|
|
88117
|
+
* Creates a plain object from an ItemUpdated message. Also converts values to other types if specified.
|
|
88118
|
+
* @function toObject
|
|
88119
|
+
* @memberof ItemUpdated
|
|
88120
|
+
* @static
|
|
88121
|
+
* @param {ItemUpdated} message ItemUpdated
|
|
88122
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88123
|
+
* @returns {Object.<string,*>} Plain object
|
|
88124
|
+
*/
|
|
88125
|
+
ItemUpdated.toObject = function toObject(message, options) {
|
|
88126
|
+
if (!options)
|
|
88127
|
+
options = {};
|
|
88128
|
+
var object = {};
|
|
88129
|
+
if (options.arrays || options.defaults)
|
|
88130
|
+
object.accessGroups = [];
|
|
88131
|
+
if (options.defaults) {
|
|
88132
|
+
object.slug = "";
|
|
88133
|
+
if ($util.Long) {
|
|
88134
|
+
var long = new $util.Long(0, 0, true);
|
|
88135
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88136
|
+
} else
|
|
88137
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
88138
|
+
}
|
|
88139
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88140
|
+
object.slug = message.slug;
|
|
88141
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
88142
|
+
object.accessGroups = [];
|
|
88143
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
88144
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
88145
|
+
}
|
|
88146
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
88147
|
+
if (typeof message.updatedAt === "number")
|
|
88148
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
88149
|
+
else
|
|
88150
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
88151
|
+
return object;
|
|
88152
|
+
};
|
|
88153
|
+
|
|
88154
|
+
/**
|
|
88155
|
+
* Converts this ItemUpdated to JSON.
|
|
88156
|
+
* @function toJSON
|
|
88157
|
+
* @memberof ItemUpdated
|
|
88158
|
+
* @instance
|
|
88159
|
+
* @returns {Object.<string,*>} JSON object
|
|
88160
|
+
*/
|
|
88161
|
+
ItemUpdated.prototype.toJSON = function toJSON() {
|
|
88162
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88163
|
+
};
|
|
88164
|
+
|
|
88165
|
+
return ItemUpdated;
|
|
88166
|
+
})();
|
|
88167
|
+
|
|
88168
|
+
$root.ItemDeleted = (function() {
|
|
88169
|
+
|
|
88170
|
+
/**
|
|
88171
|
+
* Properties of an ItemDeleted.
|
|
88172
|
+
* @name IItemDeleted
|
|
88173
|
+
* @interface IItemDeleted
|
|
88174
|
+
* @property {string|null} [slug] ItemDeleted slug
|
|
88175
|
+
* @property {number|Long|null} [deletedAt] ItemDeleted deletedAt
|
|
88176
|
+
*/
|
|
88177
|
+
|
|
88178
|
+
/**
|
|
88179
|
+
* Constructs a new ItemDeleted.
|
|
88180
|
+
* @name ItemDeleted
|
|
88181
|
+
* @classdesc Represents an ItemDeleted.
|
|
88182
|
+
* @implements IItemDeleted
|
|
88183
|
+
* @constructor
|
|
88184
|
+
* @param {IItemDeleted=} [properties] Properties to set
|
|
88185
|
+
*/
|
|
88186
|
+
function ItemDeleted(properties) {
|
|
88187
|
+
if (properties)
|
|
88188
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88189
|
+
if (properties[keys[i]] != null)
|
|
88190
|
+
this[keys[i]] = properties[keys[i]];
|
|
88191
|
+
}
|
|
88192
|
+
|
|
88193
|
+
/**
|
|
88194
|
+
* ItemDeleted slug.
|
|
88195
|
+
* @member {string} slug
|
|
88196
|
+
* @memberof ItemDeleted
|
|
88197
|
+
* @instance
|
|
88198
|
+
*/
|
|
88199
|
+
ItemDeleted.prototype.slug = "";
|
|
88200
|
+
|
|
88201
|
+
/**
|
|
88202
|
+
* ItemDeleted deletedAt.
|
|
88203
|
+
* @member {number|Long} deletedAt
|
|
88204
|
+
* @memberof ItemDeleted
|
|
88205
|
+
* @instance
|
|
88206
|
+
*/
|
|
88207
|
+
ItemDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
88208
|
+
|
|
88209
|
+
/**
|
|
88210
|
+
* Creates a new ItemDeleted instance using the specified properties.
|
|
88211
|
+
* @function create
|
|
88212
|
+
* @memberof ItemDeleted
|
|
88213
|
+
* @static
|
|
88214
|
+
* @param {IItemDeleted=} [properties] Properties to set
|
|
88215
|
+
* @returns {ItemDeleted} ItemDeleted instance
|
|
88216
|
+
*/
|
|
88217
|
+
ItemDeleted.create = function create(properties) {
|
|
88218
|
+
return new ItemDeleted(properties);
|
|
88219
|
+
};
|
|
88220
|
+
|
|
88221
|
+
/**
|
|
88222
|
+
* Encodes the specified ItemDeleted message. Does not implicitly {@link ItemDeleted.verify|verify} messages.
|
|
88223
|
+
* @function encode
|
|
88224
|
+
* @memberof ItemDeleted
|
|
88225
|
+
* @static
|
|
88226
|
+
* @param {IItemDeleted} message ItemDeleted message or plain object to encode
|
|
88227
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88228
|
+
* @returns {$protobuf.Writer} Writer
|
|
88229
|
+
*/
|
|
88230
|
+
ItemDeleted.encode = function encode(message, writer) {
|
|
88231
|
+
if (!writer)
|
|
88232
|
+
writer = $Writer.create();
|
|
88233
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88234
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
88235
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
88236
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
88237
|
+
return writer;
|
|
88238
|
+
};
|
|
88239
|
+
|
|
88240
|
+
/**
|
|
88241
|
+
* Encodes the specified ItemDeleted message, length delimited. Does not implicitly {@link ItemDeleted.verify|verify} messages.
|
|
88242
|
+
* @function encodeDelimited
|
|
88243
|
+
* @memberof ItemDeleted
|
|
88244
|
+
* @static
|
|
88245
|
+
* @param {IItemDeleted} message ItemDeleted message or plain object to encode
|
|
88246
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88247
|
+
* @returns {$protobuf.Writer} Writer
|
|
88248
|
+
*/
|
|
88249
|
+
ItemDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88250
|
+
return this.encode(message, writer).ldelim();
|
|
88251
|
+
};
|
|
88252
|
+
|
|
88253
|
+
/**
|
|
88254
|
+
* Decodes an ItemDeleted message from the specified reader or buffer.
|
|
88255
|
+
* @function decode
|
|
88256
|
+
* @memberof ItemDeleted
|
|
88257
|
+
* @static
|
|
88258
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88259
|
+
* @param {number} [length] Message length if known beforehand
|
|
88260
|
+
* @returns {ItemDeleted} ItemDeleted
|
|
88261
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88262
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88263
|
+
*/
|
|
88264
|
+
ItemDeleted.decode = function decode(reader, length) {
|
|
88265
|
+
if (!(reader instanceof $Reader))
|
|
88266
|
+
reader = $Reader.create(reader);
|
|
88267
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ItemDeleted();
|
|
88268
|
+
while (reader.pos < end) {
|
|
88269
|
+
var tag = reader.uint32();
|
|
88270
|
+
switch (tag >>> 3) {
|
|
88271
|
+
case 1:
|
|
88272
|
+
message.slug = reader.string();
|
|
88273
|
+
break;
|
|
88274
|
+
case 2:
|
|
88275
|
+
message.deletedAt = reader.uint64();
|
|
88276
|
+
break;
|
|
88277
|
+
default:
|
|
88278
|
+
reader.skipType(tag & 7);
|
|
88279
|
+
break;
|
|
88280
|
+
}
|
|
88281
|
+
}
|
|
88282
|
+
return message;
|
|
88283
|
+
};
|
|
88284
|
+
|
|
88285
|
+
/**
|
|
88286
|
+
* Decodes an ItemDeleted message from the specified reader or buffer, length delimited.
|
|
88287
|
+
* @function decodeDelimited
|
|
88288
|
+
* @memberof ItemDeleted
|
|
88289
|
+
* @static
|
|
88290
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88291
|
+
* @returns {ItemDeleted} ItemDeleted
|
|
88292
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88293
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88294
|
+
*/
|
|
88295
|
+
ItemDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
88296
|
+
if (!(reader instanceof $Reader))
|
|
88297
|
+
reader = new $Reader(reader);
|
|
88298
|
+
return this.decode(reader, reader.uint32());
|
|
88299
|
+
};
|
|
88300
|
+
|
|
88301
|
+
/**
|
|
88302
|
+
* Verifies an ItemDeleted message.
|
|
88303
|
+
* @function verify
|
|
88304
|
+
* @memberof ItemDeleted
|
|
88305
|
+
* @static
|
|
88306
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
88307
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88308
|
+
*/
|
|
88309
|
+
ItemDeleted.verify = function verify(message) {
|
|
88310
|
+
if (typeof message !== "object" || message === null)
|
|
88311
|
+
return "object expected";
|
|
88312
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88313
|
+
if (!$util.isString(message.slug))
|
|
88314
|
+
return "slug: string expected";
|
|
88315
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
88316
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
88317
|
+
return "deletedAt: integer|Long expected";
|
|
88318
|
+
return null;
|
|
88319
|
+
};
|
|
88320
|
+
|
|
88321
|
+
/**
|
|
88322
|
+
* Creates an ItemDeleted message from a plain object. Also converts values to their respective internal types.
|
|
88323
|
+
* @function fromObject
|
|
88324
|
+
* @memberof ItemDeleted
|
|
88325
|
+
* @static
|
|
88326
|
+
* @param {Object.<string,*>} object Plain object
|
|
88327
|
+
* @returns {ItemDeleted} ItemDeleted
|
|
88328
|
+
*/
|
|
88329
|
+
ItemDeleted.fromObject = function fromObject(object) {
|
|
88330
|
+
if (object instanceof $root.ItemDeleted)
|
|
88331
|
+
return object;
|
|
88332
|
+
var message = new $root.ItemDeleted();
|
|
88333
|
+
if (object.slug != null)
|
|
88334
|
+
message.slug = String(object.slug);
|
|
88335
|
+
if (object.deletedAt != null)
|
|
88336
|
+
if ($util.Long)
|
|
88337
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
88338
|
+
else if (typeof object.deletedAt === "string")
|
|
88339
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
88340
|
+
else if (typeof object.deletedAt === "number")
|
|
88341
|
+
message.deletedAt = object.deletedAt;
|
|
88342
|
+
else if (typeof object.deletedAt === "object")
|
|
88343
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
88344
|
+
return message;
|
|
88345
|
+
};
|
|
88346
|
+
|
|
88347
|
+
/**
|
|
88348
|
+
* Creates a plain object from an ItemDeleted message. Also converts values to other types if specified.
|
|
88349
|
+
* @function toObject
|
|
88350
|
+
* @memberof ItemDeleted
|
|
88351
|
+
* @static
|
|
88352
|
+
* @param {ItemDeleted} message ItemDeleted
|
|
88353
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88354
|
+
* @returns {Object.<string,*>} Plain object
|
|
88355
|
+
*/
|
|
88356
|
+
ItemDeleted.toObject = function toObject(message, options) {
|
|
88357
|
+
if (!options)
|
|
88358
|
+
options = {};
|
|
88359
|
+
var object = {};
|
|
88360
|
+
if (options.defaults) {
|
|
88361
|
+
object.slug = "";
|
|
88362
|
+
if ($util.Long) {
|
|
88363
|
+
var long = new $util.Long(0, 0, true);
|
|
88364
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
88365
|
+
} else
|
|
88366
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
88367
|
+
}
|
|
88368
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88369
|
+
object.slug = message.slug;
|
|
88370
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
88371
|
+
if (typeof message.deletedAt === "number")
|
|
88372
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
88373
|
+
else
|
|
88374
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
88375
|
+
return object;
|
|
88376
|
+
};
|
|
88377
|
+
|
|
88378
|
+
/**
|
|
88379
|
+
* Converts this ItemDeleted to JSON.
|
|
88380
|
+
* @function toJSON
|
|
88381
|
+
* @memberof ItemDeleted
|
|
88382
|
+
* @instance
|
|
88383
|
+
* @returns {Object.<string,*>} JSON object
|
|
88384
|
+
*/
|
|
88385
|
+
ItemDeleted.prototype.toJSON = function toJSON() {
|
|
88386
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88387
|
+
};
|
|
88388
|
+
|
|
88389
|
+
return ItemDeleted;
|
|
88390
|
+
})();
|
|
88391
|
+
|
|
87588
88392
|
$root.TopicCreated = (function() {
|
|
87589
88393
|
|
|
87590
88394
|
/**
|
package/package.json
CHANGED