@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.
- package/build/cjs/index.js +13 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +49 -25
- package/build/cjs/index.typings.js +13 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +33 -21
- package/build/es/index.mjs +13 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +49 -25
- package/build/es/index.typings.mjs +13 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +33 -21
- package/build/internal/cjs/index.js +13 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +49 -25
- package/build/internal/cjs/index.typings.js +13 -9
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +33 -21
- package/build/internal/es/index.mjs +13 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +49 -25
- package/build/internal/es/index.typings.mjs +13 -9
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +33 -21
- package/package.json +3 -2
|
@@ -838,7 +838,7 @@ interface ListEventsByContactIdRequest {
|
|
|
838
838
|
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
839
839
|
*
|
|
840
840
|
* Events that start before the `fromLocalDate` but end after it are included in
|
|
841
|
-
* the results. Must be earlier than `toLocalDate
|
|
841
|
+
* the results. Must be earlier than `toLocalDate` unless the sort order is descending.
|
|
842
842
|
* @format LOCAL_DATE_TIME
|
|
843
843
|
*/
|
|
844
844
|
fromLocalDate?: string | null;
|
|
@@ -849,7 +849,7 @@ interface ListEventsByContactIdRequest {
|
|
|
849
849
|
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
850
850
|
*
|
|
851
851
|
* Events that start before `toLocalDate` but end after it are included in the
|
|
852
|
-
* results. Must be later than `fromLocalDate
|
|
852
|
+
* results. Must be later than `fromLocalDate` unless the sort order is descending.
|
|
853
853
|
* @format LOCAL_DATE_TIME
|
|
854
854
|
*/
|
|
855
855
|
toLocalDate?: string | null;
|
|
@@ -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[];
|
|
@@ -929,7 +952,7 @@ interface ListEventsByMemberIdRequest {
|
|
|
929
952
|
* `2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
930
953
|
*
|
|
931
954
|
* Events that start before the `fromLocalDate` but end after it are included in
|
|
932
|
-
* the results. Must be earlier than `toLocalDate
|
|
955
|
+
* the results. Must be earlier than `toLocalDate` unless the sort order is descending.
|
|
933
956
|
* @format LOCAL_DATE_TIME
|
|
934
957
|
*/
|
|
935
958
|
fromLocalDate?: string | null;
|
|
@@ -940,7 +963,7 @@ interface ListEventsByMemberIdRequest {
|
|
|
940
963
|
* `fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
941
964
|
*
|
|
942
965
|
* Events that start before `toLocalDate` but end after it are included in the
|
|
943
|
-
* results. Must be later than `fromLocalDate
|
|
966
|
+
* results. Must be later than `fromLocalDate` unless the sort order is descending.
|
|
944
967
|
* @format LOCAL_DATE_TIME
|
|
945
968
|
*/
|
|
946
969
|
toLocalDate?: string | null;
|
|
@@ -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. */
|
|
@@ -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.
|
|
@@ -2023,7 +2035,7 @@ interface ListEventsByContactIdOptions {
|
|
|
2023
2035
|
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
2024
2036
|
*
|
|
2025
2037
|
* Events that start before the `fromLocalDate` but end after it are included in
|
|
2026
|
-
* the results. Must be earlier than `toLocalDate
|
|
2038
|
+
* the results. Must be earlier than `toLocalDate` unless the sort order is descending.
|
|
2027
2039
|
* @format LOCAL_DATE_TIME
|
|
2028
2040
|
*/
|
|
2029
2041
|
fromLocalDate?: string | null;
|
|
@@ -2034,7 +2046,7 @@ interface ListEventsByContactIdOptions {
|
|
|
2034
2046
|
* `2024-01-30T13:30:00`. Required if `cursorPaging` isn't provided.
|
|
2035
2047
|
*
|
|
2036
2048
|
* Events that start before `toLocalDate` but end after it are included in the
|
|
2037
|
-
* results. Must be later than `fromLocalDate
|
|
2049
|
+
* results. Must be later than `fromLocalDate` unless the sort order is descending.
|
|
2038
2050
|
* @format LOCAL_DATE_TIME
|
|
2039
2051
|
*/
|
|
2040
2052
|
toLocalDate?: string | null;
|
|
@@ -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
|
|
@@ -2087,7 +2105,7 @@ interface ListEventsByMemberIdOptions {
|
|
|
2087
2105
|
* `2024-01-30T13:30:00`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
2088
2106
|
*
|
|
2089
2107
|
* Events that start before the `fromLocalDate` but end after it are included in
|
|
2090
|
-
* the results. Must be earlier than `toLocalDate
|
|
2108
|
+
* the results. Must be earlier than `toLocalDate` unless the sort order is descending.
|
|
2091
2109
|
* @format LOCAL_DATE_TIME
|
|
2092
2110
|
*/
|
|
2093
2111
|
fromLocalDate?: string | null;
|
|
@@ -2098,7 +2116,7 @@ interface ListEventsByMemberIdOptions {
|
|
|
2098
2116
|
* `fromLocalDate`. Required if neither `cursorPaging` is provided nor a non-empty `eventIds` array.
|
|
2099
2117
|
*
|
|
2100
2118
|
* Events that start before `toLocalDate` but end after it are included in the
|
|
2101
|
-
* results. Must be later than `fromLocalDate
|
|
2119
|
+
* results. Must be later than `fromLocalDate` unless the sort order is descending.
|
|
2102
2120
|
* @format LOCAL_DATE_TIME
|
|
2103
2121
|
*/
|
|
2104
2122
|
toLocalDate?: string | null;
|
|
@@ -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.
|
|
@@ -733,6 +733,11 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
733
733
|
WebhookIdentityType2["APP"] = "APP";
|
|
734
734
|
return WebhookIdentityType2;
|
|
735
735
|
})(WebhookIdentityType || {});
|
|
736
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
737
|
+
SortOrder2["ASC"] = "ASC";
|
|
738
|
+
SortOrder2["DESC"] = "DESC";
|
|
739
|
+
return SortOrder2;
|
|
740
|
+
})(SortOrder || {});
|
|
736
741
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
737
742
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
738
743
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -761,11 +766,6 @@ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
|
761
766
|
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
762
767
|
return RequestedFields2;
|
|
763
768
|
})(RequestedFields || {});
|
|
764
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
765
|
-
SortOrder2["ASC"] = "ASC";
|
|
766
|
-
SortOrder2["DESC"] = "DESC";
|
|
767
|
-
return SortOrder2;
|
|
768
|
-
})(SortOrder || {});
|
|
769
769
|
async function listEventsByContactId2(contactId, options) {
|
|
770
770
|
const { httpClient, sideEffects } = arguments[2];
|
|
771
771
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -774,7 +774,8 @@ async function listEventsByContactId2(contactId, options) {
|
|
|
774
774
|
toLocalDate: options?.toLocalDate,
|
|
775
775
|
timeZone: options?.timeZone,
|
|
776
776
|
appId: options?.appId,
|
|
777
|
-
cursorPaging: options?.cursorPaging
|
|
777
|
+
cursorPaging: options?.cursorPaging,
|
|
778
|
+
sort: options?.sort
|
|
778
779
|
});
|
|
779
780
|
const reqOpts = listEventsByContactId(payload);
|
|
780
781
|
sideEffects?.onSiteCall?.();
|
|
@@ -793,7 +794,8 @@ async function listEventsByContactId2(contactId, options) {
|
|
|
793
794
|
toLocalDate: "$[1].toLocalDate",
|
|
794
795
|
timeZone: "$[1].timeZone",
|
|
795
796
|
appId: "$[1].appId",
|
|
796
|
-
cursorPaging: "$[1].cursorPaging"
|
|
797
|
+
cursorPaging: "$[1].cursorPaging",
|
|
798
|
+
sort: "$[1].sort"
|
|
797
799
|
},
|
|
798
800
|
singleArgumentUnchanged: false
|
|
799
801
|
},
|
|
@@ -812,7 +814,8 @@ async function listEventsByMemberId2(memberId, options) {
|
|
|
812
814
|
timeZone: options?.timeZone,
|
|
813
815
|
appId: options?.appId,
|
|
814
816
|
cursorPaging: options?.cursorPaging,
|
|
815
|
-
eventIds: options?.eventIds
|
|
817
|
+
eventIds: options?.eventIds,
|
|
818
|
+
sort: options?.sort
|
|
816
819
|
});
|
|
817
820
|
const reqOpts = listEventsByMemberId(payload);
|
|
818
821
|
sideEffects?.onSiteCall?.();
|
|
@@ -832,7 +835,8 @@ async function listEventsByMemberId2(memberId, options) {
|
|
|
832
835
|
timeZone: "$[1].timeZone",
|
|
833
836
|
appId: "$[1].appId",
|
|
834
837
|
cursorPaging: "$[1].cursorPaging",
|
|
835
|
-
eventIds: "$[1].eventIds"
|
|
838
|
+
eventIds: "$[1].eventIds",
|
|
839
|
+
sort: "$[1].sort"
|
|
836
840
|
},
|
|
837
841
|
singleArgumentUnchanged: false
|
|
838
842
|
},
|