@wix/auto_sdk_calendar_events 1.0.34 → 1.0.36

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.
@@ -664,7 +664,7 @@ interface ListEventsByContactIdRequest {
664
664
  * `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
665
665
  *
666
666
  * Events that start before the `fromLocalDate` but end after it are included in
667
- * the results. Must be earlier than `toLocalDate`.
667
+ * the results. Must be earlier than `toLocalDate` unless the sort order is descending.
668
668
  * @format LOCAL_DATE_TIME
669
669
  */
670
670
  fromLocalDate?: string | null;
@@ -675,7 +675,7 @@ interface ListEventsByContactIdRequest {
675
675
  * `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
676
676
  *
677
677
  * Events that start before `toLocalDate` but end after it are included in the
678
- * results. Must be later than `fromLocalDate`.
678
+ * results. Must be later than `fromLocalDate` unless the sort order is descending.
679
679
  * @format LOCAL_DATE_TIME
680
680
  */
681
681
  toLocalDate?: string | null;
@@ -695,6 +695,12 @@ interface ListEventsByContactIdRequest {
695
695
  appId?: string | null;
696
696
  /** Cursor to retrieve the next page of the results. */
697
697
  cursorPaging?: CommonCursorPaging;
698
+ /**
699
+ * Sorting for the results.
700
+ * If not specified, results are sorted by `start` ascending.
701
+ * For DESC order, events are sorted by `end` time in descending order.
702
+ */
703
+ sort?: Sorting;
698
704
  }
699
705
  /** TODO Diverge */
700
706
  interface CommonCursorPaging {
@@ -714,6 +720,23 @@ interface CommonCursorPaging {
714
720
  */
715
721
  cursor?: string | null;
716
722
  }
723
+ /** TODO Diverge */
724
+ interface Sorting {
725
+ /**
726
+ * The field to sort by.
727
+ * Either `start` or `end`.
728
+ * Default is `start`.
729
+ */
730
+ fieldName?: string;
731
+ /** Sort order. */
732
+ order?: SortOrderWithLiterals;
733
+ }
734
+ declare enum SortOrder {
735
+ ASC = "ASC",
736
+ DESC = "DESC"
737
+ }
738
+ /** @enumType */
739
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
717
740
  interface ListEventsByContactIdResponse {
718
741
  /** Retrieved events. */
719
742
  events?: Event[];
@@ -755,7 +778,7 @@ interface ListEventsByMemberIdRequest {
755
778
  * `2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
756
779
  *
757
780
  * Events that start before the `fromLocalDate` but end after it are included in
758
- * the results. Must be earlier than `toLocalDate`.
781
+ * the results. Must be earlier than `toLocalDate` unless the sort order is descending.
759
782
  * @format LOCAL_DATE_TIME
760
783
  */
761
784
  fromLocalDate?: string | null;
@@ -766,7 +789,7 @@ interface ListEventsByMemberIdRequest {
766
789
  * `fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
767
790
  *
768
791
  * Events that start before `toLocalDate` but end after it are included in the
769
- * results. Must be later than `fromLocalDate`.
792
+ * results. Must be later than `fromLocalDate` unless the sort order is descending.
770
793
  * @format LOCAL_DATE_TIME
771
794
  */
772
795
  toLocalDate?: string | null;
@@ -796,6 +819,12 @@ interface ListEventsByMemberIdRequest {
796
819
  * @maxLength 250
797
820
  */
798
821
  eventIds?: string[];
822
+ /**
823
+ * Sorting for the results.
824
+ * If not specified, results are sorted by `start` ascending.
825
+ * For DESC order, events are sorted by `end` time in descending order.
826
+ */
827
+ sort?: Sorting;
799
828
  }
800
829
  interface ListEventsByMemberIdResponse {
801
830
  /** Retrieved events. */
@@ -979,23 +1008,6 @@ interface CursorQueryPagingMethodOneOf {
979
1008
  cursorPaging?: CursorPaging;
980
1009
  }
981
1010
  /** TODO Diverge */
982
- interface Sorting {
983
- /**
984
- * The field to sort by.
985
- * Either `start` or `end`.
986
- * Default is `start`.
987
- */
988
- fieldName?: string;
989
- /** Sort order. */
990
- order?: SortOrderWithLiterals;
991
- }
992
- declare enum SortOrder {
993
- ASC = "ASC",
994
- DESC = "DESC"
995
- }
996
- /** @enumType */
997
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
998
- /** TODO Diverge */
999
1011
  interface CursorPaging {
1000
1012
  /**
1001
1013
  * Number of events to return.
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_calendar_events",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
+ "license": "MIT",
4
5
  "publishConfig": {
5
6
  "registry": "https://registry.npmjs.org/",
6
7
  "access": "public"
@@ -49,5 +50,5 @@
49
50
  "fqdn": "wix.calendar.v3.event"
50
51
  }
51
52
  },
52
- "falconPackageHash": "63fc7c0fb5bfba7901366f4cad14af531b64a431ebeea36c324f095a"
53
+ "falconPackageHash": "fc0e0da38b5ffd6f21b933e7e85add2131dc09f5cf650e497a91a7aa"
53
54
  }