@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.
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +13 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +43 -19
- package/build/cjs/index.typings.js +13 -9
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +30 -18
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +13 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +43 -19
- package/build/es/index.typings.mjs +13 -9
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +30 -18
- package/build/internal/cjs/index.d.ts +1 -1
- 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 +43 -19
- 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 +30 -18
- package/build/internal/es/index.d.mts +1 -1
- 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 +43 -19
- 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 +30 -18
- package/package.json +3 -2
|
@@ -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
|
-
*
|
|
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
|
-
*
|
|
2201
|
+
* Max: 100 event IDs
|
|
2178
2202
|
* @public
|
|
2179
2203
|
* @requiredField eventIds
|
|
2180
2204
|
* @permissionId CALENDAR.EVENT_READ
|
|
@@ -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
|
},
|