@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
package/build/cjs/meta.d.ts
CHANGED
|
@@ -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[];
|
|
@@ -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. */
|
|
@@ -854,7 +883,7 @@ interface ListEventsRequest {
|
|
|
854
883
|
* IDs of the events to retrieve.
|
|
855
884
|
*
|
|
856
885
|
* Min: 1 event ID
|
|
857
|
-
*
|
|
886
|
+
* Max: 100 event IDs
|
|
858
887
|
* @minSize 1
|
|
859
888
|
* @maxSize 100
|
|
860
889
|
* @minLength 36
|
|
@@ -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/build/es/index.d.mts
CHANGED
|
@@ -60,7 +60,7 @@ interface ListEventsSignature {
|
|
|
60
60
|
* @param - IDs of the events to retrieve.
|
|
61
61
|
*
|
|
62
62
|
* Min: 1 event ID
|
|
63
|
-
*
|
|
63
|
+
* Max: 100 event IDs
|
|
64
64
|
*/
|
|
65
65
|
(eventIds: string[], options?: ListEventsOptions): Promise<NonNullablePaths<ListEventsResponse, {
|
|
66
66
|
[P in EventNonNullablePaths]: `events.${number}.${P}`;
|
package/build/es/index.mjs
CHANGED
|
@@ -739,6 +739,11 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
739
739
|
WebhookIdentityType2["APP"] = "APP";
|
|
740
740
|
return WebhookIdentityType2;
|
|
741
741
|
})(WebhookIdentityType || {});
|
|
742
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
743
|
+
SortOrder2["ASC"] = "ASC";
|
|
744
|
+
SortOrder2["DESC"] = "DESC";
|
|
745
|
+
return SortOrder2;
|
|
746
|
+
})(SortOrder || {});
|
|
742
747
|
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
743
748
|
PlacementType2["BEFORE"] = "BEFORE";
|
|
744
749
|
PlacementType2["AFTER"] = "AFTER";
|
|
@@ -767,11 +772,6 @@ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
|
767
772
|
RequestedFields2["OWN_PI_FIELDS"] = "OWN_PI_FIELDS";
|
|
768
773
|
return RequestedFields2;
|
|
769
774
|
})(RequestedFields || {});
|
|
770
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
771
|
-
SortOrder2["ASC"] = "ASC";
|
|
772
|
-
SortOrder2["DESC"] = "DESC";
|
|
773
|
-
return SortOrder2;
|
|
774
|
-
})(SortOrder || {});
|
|
775
775
|
async function listEventsByContactId2(contactId, options) {
|
|
776
776
|
const { httpClient, sideEffects } = arguments[2];
|
|
777
777
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
@@ -780,7 +780,8 @@ async function listEventsByContactId2(contactId, options) {
|
|
|
780
780
|
toLocalDate: options?.toLocalDate,
|
|
781
781
|
timeZone: options?.timeZone,
|
|
782
782
|
appId: options?.appId,
|
|
783
|
-
cursorPaging: options?.cursorPaging
|
|
783
|
+
cursorPaging: options?.cursorPaging,
|
|
784
|
+
sort: options?.sort
|
|
784
785
|
});
|
|
785
786
|
const reqOpts = listEventsByContactId(payload);
|
|
786
787
|
sideEffects?.onSiteCall?.();
|
|
@@ -799,7 +800,8 @@ async function listEventsByContactId2(contactId, options) {
|
|
|
799
800
|
toLocalDate: "$[1].toLocalDate",
|
|
800
801
|
timeZone: "$[1].timeZone",
|
|
801
802
|
appId: "$[1].appId",
|
|
802
|
-
cursorPaging: "$[1].cursorPaging"
|
|
803
|
+
cursorPaging: "$[1].cursorPaging",
|
|
804
|
+
sort: "$[1].sort"
|
|
803
805
|
},
|
|
804
806
|
singleArgumentUnchanged: false
|
|
805
807
|
},
|
|
@@ -818,7 +820,8 @@ async function listEventsByMemberId2(memberId, options) {
|
|
|
818
820
|
timeZone: options?.timeZone,
|
|
819
821
|
appId: options?.appId,
|
|
820
822
|
cursorPaging: options?.cursorPaging,
|
|
821
|
-
eventIds: options?.eventIds
|
|
823
|
+
eventIds: options?.eventIds,
|
|
824
|
+
sort: options?.sort
|
|
822
825
|
});
|
|
823
826
|
const reqOpts = listEventsByMemberId(payload);
|
|
824
827
|
sideEffects?.onSiteCall?.();
|
|
@@ -838,7 +841,8 @@ async function listEventsByMemberId2(memberId, options) {
|
|
|
838
841
|
timeZone: "$[1].timeZone",
|
|
839
842
|
appId: "$[1].appId",
|
|
840
843
|
cursorPaging: "$[1].cursorPaging",
|
|
841
|
-
eventIds: "$[1].eventIds"
|
|
844
|
+
eventIds: "$[1].eventIds",
|
|
845
|
+
sort: "$[1].sort"
|
|
842
846
|
},
|
|
843
847
|
singleArgumentUnchanged: false
|
|
844
848
|
},
|