@wix/auto_sdk_calendar_events 1.0.33 → 1.0.35

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.
@@ -869,6 +869,12 @@ interface ListEventsByContactIdRequest {
869
869
  appId?: string | null;
870
870
  /** Cursor to retrieve the next page of the results. */
871
871
  cursorPaging?: CommonCursorPaging;
872
+ /**
873
+ * Sorting for the results.
874
+ * If not specified, results are sorted by `start` ascending.
875
+ * For DESC order, events are sorted by `end` time in descending order.
876
+ */
877
+ sort?: Sorting;
872
878
  }
873
879
  /** TODO Diverge */
874
880
  interface CommonCursorPaging {
@@ -888,6 +894,23 @@ interface CommonCursorPaging {
888
894
  */
889
895
  cursor?: string | null;
890
896
  }
897
+ /** TODO Diverge */
898
+ interface Sorting {
899
+ /**
900
+ * The field to sort by.
901
+ * Either `start` or `end`.
902
+ * Default is `start`.
903
+ */
904
+ fieldName?: string;
905
+ /** Sort order. */
906
+ order?: SortOrderWithLiterals;
907
+ }
908
+ declare enum SortOrder {
909
+ ASC = "ASC",
910
+ DESC = "DESC"
911
+ }
912
+ /** @enumType */
913
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
891
914
  interface ListEventsByContactIdResponse {
892
915
  /** Retrieved events. */
893
916
  events?: Event[];
@@ -970,6 +993,12 @@ interface ListEventsByMemberIdRequest {
970
993
  * @maxLength 250
971
994
  */
972
995
  eventIds?: string[];
996
+ /**
997
+ * Sorting for the results.
998
+ * If not specified, results are sorted by `start` ascending.
999
+ * For DESC order, events are sorted by `end` time in descending order.
1000
+ */
1001
+ sort?: Sorting;
973
1002
  }
974
1003
  interface ListEventsByMemberIdResponse {
975
1004
  /** Retrieved events. */
@@ -1316,7 +1345,7 @@ interface ListEventsRequest {
1316
1345
  * IDs of the events to retrieve.
1317
1346
  *
1318
1347
  * Min: 1 event ID
1319
- * Min: 100 event IDs
1348
+ * Max: 100 event IDs
1320
1349
  * @minSize 1
1321
1350
  * @maxSize 100
1322
1351
  * @minLength 36
@@ -1441,23 +1470,6 @@ interface CursorQueryPagingMethodOneOf {
1441
1470
  cursorPaging?: CursorPaging;
1442
1471
  }
1443
1472
  /** TODO Diverge */
1444
- interface Sorting {
1445
- /**
1446
- * The field to sort by.
1447
- * Either `start` or `end`.
1448
- * Default is `start`.
1449
- */
1450
- fieldName?: string;
1451
- /** Sort order. */
1452
- order?: SortOrderWithLiterals;
1453
- }
1454
- declare enum SortOrder {
1455
- ASC = "ASC",
1456
- DESC = "DESC"
1457
- }
1458
- /** @enumType */
1459
- type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1460
- /** TODO Diverge */
1461
1473
  interface CursorPaging {
1462
1474
  /**
1463
1475
  * Number of events to return.
@@ -2054,6 +2066,12 @@ interface ListEventsByContactIdOptions {
2054
2066
  appId?: string | null;
2055
2067
  /** Cursor to retrieve the next page of the results. */
2056
2068
  cursorPaging?: CommonCursorPaging;
2069
+ /**
2070
+ * Sorting for the results.
2071
+ * If not specified, results are sorted by `start` ascending.
2072
+ * For DESC order, events are sorted by `end` time in descending order.
2073
+ */
2074
+ sort?: Sorting;
2057
2075
  }
2058
2076
  /**
2059
2077
  * Retrieves a list of events filtered by the participant's
@@ -2128,6 +2146,12 @@ interface ListEventsByMemberIdOptions {
2128
2146
  * @maxLength 250
2129
2147
  */
2130
2148
  eventIds?: string[];
2149
+ /**
2150
+ * Sorting for the results.
2151
+ * If not specified, results are sorted by `start` ascending.
2152
+ * For DESC order, events are sorted by `end` time in descending order.
2153
+ */
2154
+ sort?: Sorting;
2131
2155
  }
2132
2156
  /**
2133
2157
  * Retrieves an event.
@@ -2174,7 +2198,7 @@ interface GetEventOptions {
2174
2198
  * @param eventIds - IDs of the events to retrieve.
2175
2199
  *
2176
2200
  * Min: 1 event ID
2177
- * Min: 100 event IDs
2201
+ * Max: 100 event IDs
2178
2202
  * @public
2179
2203
  * @requiredField eventIds
2180
2204
  * @permissionId CALENDAR.EVENT_READ
@@ -785,6 +785,11 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
785
785
  WebhookIdentityType2["APP"] = "APP";
786
786
  return WebhookIdentityType2;
787
787
  })(WebhookIdentityType || {});
788
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
789
+ SortOrder2["ASC"] = "ASC";
790
+ SortOrder2["DESC"] = "DESC";
791
+ return SortOrder2;
792
+ })(SortOrder || {});
788
793
  var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
789
794
  PlacementType2["BEFORE"] = "BEFORE";
790
795
  PlacementType2["AFTER"] = "AFTER";
@@ -813,11 +818,6 @@ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
813
818
  RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
814
819
  return RequestedFields2;
815
820
  })(RequestedFields || {});
816
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
817
- SortOrder2["ASC"] = "ASC";
818
- SortOrder2["DESC"] = "DESC";
819
- return SortOrder2;
820
- })(SortOrder || {});
821
821
  async function listEventsByContactId2(contactId, options) {
822
822
  const { httpClient, sideEffects } = arguments[2];
823
823
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
@@ -826,7 +826,8 @@ async function listEventsByContactId2(contactId, options) {
826
826
  toLocalDate: options?.toLocalDate,
827
827
  timeZone: options?.timeZone,
828
828
  appId: options?.appId,
829
- cursorPaging: options?.cursorPaging
829
+ cursorPaging: options?.cursorPaging,
830
+ sort: options?.sort
830
831
  });
831
832
  const reqOpts = listEventsByContactId(payload);
832
833
  sideEffects?.onSiteCall?.();
@@ -845,7 +846,8 @@ async function listEventsByContactId2(contactId, options) {
845
846
  toLocalDate: "$[1].toLocalDate",
846
847
  timeZone: "$[1].timeZone",
847
848
  appId: "$[1].appId",
848
- cursorPaging: "$[1].cursorPaging"
849
+ cursorPaging: "$[1].cursorPaging",
850
+ sort: "$[1].sort"
849
851
  },
850
852
  singleArgumentUnchanged: false
851
853
  },
@@ -864,7 +866,8 @@ async function listEventsByMemberId2(memberId, options) {
864
866
  timeZone: options?.timeZone,
865
867
  appId: options?.appId,
866
868
  cursorPaging: options?.cursorPaging,
867
- eventIds: options?.eventIds
869
+ eventIds: options?.eventIds,
870
+ sort: options?.sort
868
871
  });
869
872
  const reqOpts = listEventsByMemberId(payload);
870
873
  sideEffects?.onSiteCall?.();
@@ -884,7 +887,8 @@ async function listEventsByMemberId2(memberId, options) {
884
887
  timeZone: "$[1].timeZone",
885
888
  appId: "$[1].appId",
886
889
  cursorPaging: "$[1].cursorPaging",
887
- eventIds: "$[1].eventIds"
890
+ eventIds: "$[1].eventIds",
891
+ sort: "$[1].sort"
888
892
  },
889
893
  singleArgumentUnchanged: false
890
894
  },