@headspace/protos-events 1.567.0 → 1.568.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +420 -0
  2. package/lib/index.js +1157 -0
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -27616,6 +27616,426 @@ export class SurveyAnswer implements ISurveyAnswer {
27616
27616
  public toJSON(): { [k: string]: any };
27617
27617
  }
27618
27618
 
27619
+ /** Properties of a Survey. */
27620
+ export interface ISurvey {
27621
+
27622
+ /** Survey name */
27623
+ name?: (string|null);
27624
+
27625
+ /** Survey slug */
27626
+ slug?: (string|null);
27627
+
27628
+ /** Survey title */
27629
+ title?: (contentful.ILanguageTextEntity[]|null);
27630
+
27631
+ /** Survey description */
27632
+ description?: (contentful.ILanguageTextEntity[]|null);
27633
+
27634
+ /** Survey actionButtonTitle */
27635
+ actionButtonTitle?: (contentful.ILanguageTextEntity[]|null);
27636
+
27637
+ /** Survey tileMedia */
27638
+ tileMedia?: (contentful.ILanguageMediaEntity[]|null);
27639
+
27640
+ /** Survey label */
27641
+ label?: (contentful.ILanguageTextEntity[]|null);
27642
+
27643
+ /** Survey duration */
27644
+ duration?: (contentful.ILanguageTextEntity[]|null);
27645
+ }
27646
+
27647
+ /** Represents a Survey. */
27648
+ export class Survey implements ISurvey {
27649
+
27650
+ /**
27651
+ * Constructs a new Survey.
27652
+ * @param [properties] Properties to set
27653
+ */
27654
+ constructor(properties?: ISurvey);
27655
+
27656
+ /** Survey name. */
27657
+ public name: string;
27658
+
27659
+ /** Survey slug. */
27660
+ public slug: string;
27661
+
27662
+ /** Survey title. */
27663
+ public title: contentful.ILanguageTextEntity[];
27664
+
27665
+ /** Survey description. */
27666
+ public description: contentful.ILanguageTextEntity[];
27667
+
27668
+ /** Survey actionButtonTitle. */
27669
+ public actionButtonTitle: contentful.ILanguageTextEntity[];
27670
+
27671
+ /** Survey tileMedia. */
27672
+ public tileMedia: contentful.ILanguageMediaEntity[];
27673
+
27674
+ /** Survey label. */
27675
+ public label: contentful.ILanguageTextEntity[];
27676
+
27677
+ /** Survey duration. */
27678
+ public duration: contentful.ILanguageTextEntity[];
27679
+
27680
+ /**
27681
+ * Creates a new Survey instance using the specified properties.
27682
+ * @param [properties] Properties to set
27683
+ * @returns Survey instance
27684
+ */
27685
+ public static create(properties?: ISurvey): Survey;
27686
+
27687
+ /**
27688
+ * Encodes the specified Survey message. Does not implicitly {@link Survey.verify|verify} messages.
27689
+ * @param message Survey message or plain object to encode
27690
+ * @param [writer] Writer to encode to
27691
+ * @returns Writer
27692
+ */
27693
+ public static encode(message: ISurvey, writer?: $protobuf.Writer): $protobuf.Writer;
27694
+
27695
+ /**
27696
+ * Encodes the specified Survey message, length delimited. Does not implicitly {@link Survey.verify|verify} messages.
27697
+ * @param message Survey message or plain object to encode
27698
+ * @param [writer] Writer to encode to
27699
+ * @returns Writer
27700
+ */
27701
+ public static encodeDelimited(message: ISurvey, writer?: $protobuf.Writer): $protobuf.Writer;
27702
+
27703
+ /**
27704
+ * Decodes a Survey message from the specified reader or buffer.
27705
+ * @param reader Reader or buffer to decode from
27706
+ * @param [length] Message length if known beforehand
27707
+ * @returns Survey
27708
+ * @throws {Error} If the payload is not a reader or valid buffer
27709
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27710
+ */
27711
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Survey;
27712
+
27713
+ /**
27714
+ * Decodes a Survey message from the specified reader or buffer, length delimited.
27715
+ * @param reader Reader or buffer to decode from
27716
+ * @returns Survey
27717
+ * @throws {Error} If the payload is not a reader or valid buffer
27718
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27719
+ */
27720
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Survey;
27721
+
27722
+ /**
27723
+ * Verifies a Survey message.
27724
+ * @param message Plain object to verify
27725
+ * @returns `null` if valid, otherwise the reason why it is not
27726
+ */
27727
+ public static verify(message: { [k: string]: any }): (string|null);
27728
+
27729
+ /**
27730
+ * Creates a Survey message from a plain object. Also converts values to their respective internal types.
27731
+ * @param object Plain object
27732
+ * @returns Survey
27733
+ */
27734
+ public static fromObject(object: { [k: string]: any }): Survey;
27735
+
27736
+ /**
27737
+ * Creates a plain object from a Survey message. Also converts values to other types if specified.
27738
+ * @param message Survey
27739
+ * @param [options] Conversion options
27740
+ * @returns Plain object
27741
+ */
27742
+ public static toObject(message: Survey, options?: $protobuf.IConversionOptions): { [k: string]: any };
27743
+
27744
+ /**
27745
+ * Converts this Survey to JSON.
27746
+ * @returns JSON object
27747
+ */
27748
+ public toJSON(): { [k: string]: any };
27749
+ }
27750
+
27751
+ /** Properties of a SurveyCreated. */
27752
+ export interface ISurveyCreated {
27753
+
27754
+ /** SurveyCreated timestamp */
27755
+ timestamp?: (number|Long|null);
27756
+
27757
+ /** SurveyCreated survey */
27758
+ survey?: (ISurvey|null);
27759
+ }
27760
+
27761
+ /** Represents a SurveyCreated. */
27762
+ export class SurveyCreated implements ISurveyCreated {
27763
+
27764
+ /**
27765
+ * Constructs a new SurveyCreated.
27766
+ * @param [properties] Properties to set
27767
+ */
27768
+ constructor(properties?: ISurveyCreated);
27769
+
27770
+ /** SurveyCreated timestamp. */
27771
+ public timestamp: (number|Long);
27772
+
27773
+ /** SurveyCreated survey. */
27774
+ public survey?: (ISurvey|null);
27775
+
27776
+ /**
27777
+ * Creates a new SurveyCreated instance using the specified properties.
27778
+ * @param [properties] Properties to set
27779
+ * @returns SurveyCreated instance
27780
+ */
27781
+ public static create(properties?: ISurveyCreated): SurveyCreated;
27782
+
27783
+ /**
27784
+ * Encodes the specified SurveyCreated message. Does not implicitly {@link SurveyCreated.verify|verify} messages.
27785
+ * @param message SurveyCreated message or plain object to encode
27786
+ * @param [writer] Writer to encode to
27787
+ * @returns Writer
27788
+ */
27789
+ public static encode(message: ISurveyCreated, writer?: $protobuf.Writer): $protobuf.Writer;
27790
+
27791
+ /**
27792
+ * Encodes the specified SurveyCreated message, length delimited. Does not implicitly {@link SurveyCreated.verify|verify} messages.
27793
+ * @param message SurveyCreated message or plain object to encode
27794
+ * @param [writer] Writer to encode to
27795
+ * @returns Writer
27796
+ */
27797
+ public static encodeDelimited(message: ISurveyCreated, writer?: $protobuf.Writer): $protobuf.Writer;
27798
+
27799
+ /**
27800
+ * Decodes a SurveyCreated message from the specified reader or buffer.
27801
+ * @param reader Reader or buffer to decode from
27802
+ * @param [length] Message length if known beforehand
27803
+ * @returns SurveyCreated
27804
+ * @throws {Error} If the payload is not a reader or valid buffer
27805
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27806
+ */
27807
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SurveyCreated;
27808
+
27809
+ /**
27810
+ * Decodes a SurveyCreated message from the specified reader or buffer, length delimited.
27811
+ * @param reader Reader or buffer to decode from
27812
+ * @returns SurveyCreated
27813
+ * @throws {Error} If the payload is not a reader or valid buffer
27814
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27815
+ */
27816
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SurveyCreated;
27817
+
27818
+ /**
27819
+ * Verifies a SurveyCreated message.
27820
+ * @param message Plain object to verify
27821
+ * @returns `null` if valid, otherwise the reason why it is not
27822
+ */
27823
+ public static verify(message: { [k: string]: any }): (string|null);
27824
+
27825
+ /**
27826
+ * Creates a SurveyCreated message from a plain object. Also converts values to their respective internal types.
27827
+ * @param object Plain object
27828
+ * @returns SurveyCreated
27829
+ */
27830
+ public static fromObject(object: { [k: string]: any }): SurveyCreated;
27831
+
27832
+ /**
27833
+ * Creates a plain object from a SurveyCreated message. Also converts values to other types if specified.
27834
+ * @param message SurveyCreated
27835
+ * @param [options] Conversion options
27836
+ * @returns Plain object
27837
+ */
27838
+ public static toObject(message: SurveyCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
27839
+
27840
+ /**
27841
+ * Converts this SurveyCreated to JSON.
27842
+ * @returns JSON object
27843
+ */
27844
+ public toJSON(): { [k: string]: any };
27845
+ }
27846
+
27847
+ /** Properties of a SurveyUpdated. */
27848
+ export interface ISurveyUpdated {
27849
+
27850
+ /** SurveyUpdated timestamp */
27851
+ timestamp?: (number|Long|null);
27852
+
27853
+ /** SurveyUpdated survey */
27854
+ survey?: (ISurvey|null);
27855
+ }
27856
+
27857
+ /** Represents a SurveyUpdated. */
27858
+ export class SurveyUpdated implements ISurveyUpdated {
27859
+
27860
+ /**
27861
+ * Constructs a new SurveyUpdated.
27862
+ * @param [properties] Properties to set
27863
+ */
27864
+ constructor(properties?: ISurveyUpdated);
27865
+
27866
+ /** SurveyUpdated timestamp. */
27867
+ public timestamp: (number|Long);
27868
+
27869
+ /** SurveyUpdated survey. */
27870
+ public survey?: (ISurvey|null);
27871
+
27872
+ /**
27873
+ * Creates a new SurveyUpdated instance using the specified properties.
27874
+ * @param [properties] Properties to set
27875
+ * @returns SurveyUpdated instance
27876
+ */
27877
+ public static create(properties?: ISurveyUpdated): SurveyUpdated;
27878
+
27879
+ /**
27880
+ * Encodes the specified SurveyUpdated message. Does not implicitly {@link SurveyUpdated.verify|verify} messages.
27881
+ * @param message SurveyUpdated message or plain object to encode
27882
+ * @param [writer] Writer to encode to
27883
+ * @returns Writer
27884
+ */
27885
+ public static encode(message: ISurveyUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
27886
+
27887
+ /**
27888
+ * Encodes the specified SurveyUpdated message, length delimited. Does not implicitly {@link SurveyUpdated.verify|verify} messages.
27889
+ * @param message SurveyUpdated message or plain object to encode
27890
+ * @param [writer] Writer to encode to
27891
+ * @returns Writer
27892
+ */
27893
+ public static encodeDelimited(message: ISurveyUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
27894
+
27895
+ /**
27896
+ * Decodes a SurveyUpdated message from the specified reader or buffer.
27897
+ * @param reader Reader or buffer to decode from
27898
+ * @param [length] Message length if known beforehand
27899
+ * @returns SurveyUpdated
27900
+ * @throws {Error} If the payload is not a reader or valid buffer
27901
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27902
+ */
27903
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SurveyUpdated;
27904
+
27905
+ /**
27906
+ * Decodes a SurveyUpdated message from the specified reader or buffer, length delimited.
27907
+ * @param reader Reader or buffer to decode from
27908
+ * @returns SurveyUpdated
27909
+ * @throws {Error} If the payload is not a reader or valid buffer
27910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27911
+ */
27912
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SurveyUpdated;
27913
+
27914
+ /**
27915
+ * Verifies a SurveyUpdated message.
27916
+ * @param message Plain object to verify
27917
+ * @returns `null` if valid, otherwise the reason why it is not
27918
+ */
27919
+ public static verify(message: { [k: string]: any }): (string|null);
27920
+
27921
+ /**
27922
+ * Creates a SurveyUpdated message from a plain object. Also converts values to their respective internal types.
27923
+ * @param object Plain object
27924
+ * @returns SurveyUpdated
27925
+ */
27926
+ public static fromObject(object: { [k: string]: any }): SurveyUpdated;
27927
+
27928
+ /**
27929
+ * Creates a plain object from a SurveyUpdated message. Also converts values to other types if specified.
27930
+ * @param message SurveyUpdated
27931
+ * @param [options] Conversion options
27932
+ * @returns Plain object
27933
+ */
27934
+ public static toObject(message: SurveyUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
27935
+
27936
+ /**
27937
+ * Converts this SurveyUpdated to JSON.
27938
+ * @returns JSON object
27939
+ */
27940
+ public toJSON(): { [k: string]: any };
27941
+ }
27942
+
27943
+ /** Properties of a SurveyDeleted. */
27944
+ export interface ISurveyDeleted {
27945
+
27946
+ /** SurveyDeleted timestamp */
27947
+ timestamp?: (number|Long|null);
27948
+
27949
+ /** SurveyDeleted survey */
27950
+ survey?: (ISurvey|null);
27951
+ }
27952
+
27953
+ /** Represents a SurveyDeleted. */
27954
+ export class SurveyDeleted implements ISurveyDeleted {
27955
+
27956
+ /**
27957
+ * Constructs a new SurveyDeleted.
27958
+ * @param [properties] Properties to set
27959
+ */
27960
+ constructor(properties?: ISurveyDeleted);
27961
+
27962
+ /** SurveyDeleted timestamp. */
27963
+ public timestamp: (number|Long);
27964
+
27965
+ /** SurveyDeleted survey. */
27966
+ public survey?: (ISurvey|null);
27967
+
27968
+ /**
27969
+ * Creates a new SurveyDeleted instance using the specified properties.
27970
+ * @param [properties] Properties to set
27971
+ * @returns SurveyDeleted instance
27972
+ */
27973
+ public static create(properties?: ISurveyDeleted): SurveyDeleted;
27974
+
27975
+ /**
27976
+ * Encodes the specified SurveyDeleted message. Does not implicitly {@link SurveyDeleted.verify|verify} messages.
27977
+ * @param message SurveyDeleted message or plain object to encode
27978
+ * @param [writer] Writer to encode to
27979
+ * @returns Writer
27980
+ */
27981
+ public static encode(message: ISurveyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
27982
+
27983
+ /**
27984
+ * Encodes the specified SurveyDeleted message, length delimited. Does not implicitly {@link SurveyDeleted.verify|verify} messages.
27985
+ * @param message SurveyDeleted message or plain object to encode
27986
+ * @param [writer] Writer to encode to
27987
+ * @returns Writer
27988
+ */
27989
+ public static encodeDelimited(message: ISurveyDeleted, writer?: $protobuf.Writer): $protobuf.Writer;
27990
+
27991
+ /**
27992
+ * Decodes a SurveyDeleted message from the specified reader or buffer.
27993
+ * @param reader Reader or buffer to decode from
27994
+ * @param [length] Message length if known beforehand
27995
+ * @returns SurveyDeleted
27996
+ * @throws {Error} If the payload is not a reader or valid buffer
27997
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27998
+ */
27999
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SurveyDeleted;
28000
+
28001
+ /**
28002
+ * Decodes a SurveyDeleted message from the specified reader or buffer, length delimited.
28003
+ * @param reader Reader or buffer to decode from
28004
+ * @returns SurveyDeleted
28005
+ * @throws {Error} If the payload is not a reader or valid buffer
28006
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28007
+ */
28008
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SurveyDeleted;
28009
+
28010
+ /**
28011
+ * Verifies a SurveyDeleted message.
28012
+ * @param message Plain object to verify
28013
+ * @returns `null` if valid, otherwise the reason why it is not
28014
+ */
28015
+ public static verify(message: { [k: string]: any }): (string|null);
28016
+
28017
+ /**
28018
+ * Creates a SurveyDeleted message from a plain object. Also converts values to their respective internal types.
28019
+ * @param object Plain object
28020
+ * @returns SurveyDeleted
28021
+ */
28022
+ public static fromObject(object: { [k: string]: any }): SurveyDeleted;
28023
+
28024
+ /**
28025
+ * Creates a plain object from a SurveyDeleted message. Also converts values to other types if specified.
28026
+ * @param message SurveyDeleted
28027
+ * @param [options] Conversion options
28028
+ * @returns Plain object
28029
+ */
28030
+ public static toObject(message: SurveyDeleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
28031
+
28032
+ /**
28033
+ * Converts this SurveyDeleted to JSON.
28034
+ * @returns JSON object
28035
+ */
28036
+ public toJSON(): { [k: string]: any };
28037
+ }
28038
+
27619
28039
  /** Properties of an AssessmentScore. */
27620
28040
  export interface IAssessmentScore {
27621
28041