@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.
|
|
@@ -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
|
},
|