@wix/auto_sdk_events_wix-events-v-2 1.0.51 → 1.0.52

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.
@@ -27,18 +27,12 @@ __export(index_typings_exports, {
27
27
  BadgeTypeType: () => BadgeTypeType,
28
28
  ButtonDataType: () => ButtonDataType,
29
29
  CardStylesType: () => CardStylesType,
30
- CategoryTypeType: () => CategoryTypeType,
31
30
  CommonSortOrder: () => CommonSortOrder,
32
- ConferenceType: () => ConferenceType,
33
31
  ConferenceTypeType: () => ConferenceTypeType,
34
32
  Crop: () => Crop,
35
33
  DecorationType: () => DecorationType,
36
34
  Direction: () => Direction,
37
35
  DividerDataAlignment: () => DividerDataAlignment,
38
- EventStatus: () => EventStatus,
39
- EventType: () => EventType,
40
- EventsRecurrenceStatusStatus: () => EventsRecurrenceStatusStatus,
41
- EventsTaxType: () => EventsTaxType,
42
36
  FontType: () => FontType,
43
37
  GIFType: () => GIFType,
44
38
  GuestTypeType: () => GuestTypeType,
@@ -48,7 +42,6 @@ __export(index_typings_exports, {
48
42
  Layout: () => Layout,
49
43
  LayoutType: () => LayoutType,
50
44
  LineStyle: () => LineStyle,
51
- LocationLocationType: () => LocationLocationType,
52
45
  LocationType: () => LocationType,
53
46
  MapType: () => MapType,
54
47
  NodeType: () => NodeType,
@@ -60,20 +53,16 @@ __export(index_typings_exports, {
60
53
  PollLayoutType: () => PollLayoutType,
61
54
  Position: () => Position,
62
55
  RecurrenceStatusStatus: () => RecurrenceStatusStatus,
63
- RegistrationStatus: () => RegistrationStatus,
64
56
  RegistrationStatusStatus: () => RegistrationStatusStatus,
65
57
  RegistrationTypeType: () => RegistrationTypeType,
66
58
  Relation: () => Relation,
67
59
  RequestedFields: () => RequestedFields,
68
60
  Resizing: () => Resizing,
69
61
  ResponseType: () => ResponseType,
70
- RsvpStatusOptions: () => RsvpStatusOptions,
71
62
  SortOrder: () => SortOrder,
72
63
  Source: () => Source,
73
- State: () => State,
74
64
  Status: () => Status,
75
65
  StylesPosition: () => StylesPosition,
76
- SubdivisionSubdivisionType: () => SubdivisionSubdivisionType,
77
66
  SubdivisionType: () => SubdivisionType,
78
67
  Target: () => Target,
79
68
  TaxType: () => TaxType,
@@ -84,7 +73,6 @@ __export(index_typings_exports, {
84
73
  VerticalAlignment: () => VerticalAlignment,
85
74
  ViewMode: () => ViewMode,
86
75
  ViewRole: () => ViewRole,
87
- VisitorType: () => VisitorType,
88
76
  VoteRole: () => VoteRole,
89
77
  WebhookIdentityType: () => WebhookIdentityType,
90
78
  Width: () => Width,
@@ -1066,16 +1054,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
1066
1054
  LocationType2["ONLINE"] = "ONLINE";
1067
1055
  return LocationType2;
1068
1056
  })(LocationType || {});
1069
- var SubdivisionSubdivisionType = /* @__PURE__ */ ((SubdivisionSubdivisionType2) => {
1070
- SubdivisionSubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
1071
- SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
1072
- SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
1073
- SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
1074
- SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
1075
- SubdivisionSubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
1076
- SubdivisionSubdivisionType2["COUNTRY"] = "COUNTRY";
1077
- return SubdivisionSubdivisionType2;
1078
- })(SubdivisionSubdivisionType || {});
1057
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
1058
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
1059
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
1060
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
1061
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
1062
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
1063
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
1064
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
1065
+ return SubdivisionType2;
1066
+ })(SubdivisionType || {});
1079
1067
  var RecurrenceStatusStatus = /* @__PURE__ */ ((RecurrenceStatusStatus2) => {
1080
1068
  RecurrenceStatusStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
1081
1069
  RecurrenceStatusStatus2["ONE_TIME"] = "ONE_TIME";
@@ -1164,11 +1152,11 @@ var ConferenceTypeType = /* @__PURE__ */ ((ConferenceTypeType2) => {
1164
1152
  ConferenceTypeType2["WEBINAR"] = "WEBINAR";
1165
1153
  return ConferenceTypeType2;
1166
1154
  })(ConferenceTypeType || {});
1167
- var CategoryTypeType = /* @__PURE__ */ ((CategoryTypeType2) => {
1168
- CategoryTypeType2["MANUAL"] = "MANUAL";
1169
- CategoryTypeType2["RECURRING_EVENT"] = "RECURRING_EVENT";
1170
- return CategoryTypeType2;
1171
- })(CategoryTypeType || {});
1155
+ var Type = /* @__PURE__ */ ((Type2) => {
1156
+ Type2["MANUAL"] = "MANUAL";
1157
+ Type2["RECURRING_EVENT"] = "RECURRING_EVENT";
1158
+ return Type2;
1159
+ })(Type || {});
1172
1160
  var NodeType = /* @__PURE__ */ ((NodeType2) => {
1173
1161
  NodeType2["PARAGRAPH"] = "PARAGRAPH";
1174
1162
  NodeType2["TEXT"] = "TEXT";
@@ -1466,91 +1454,6 @@ var Relation = /* @__PURE__ */ ((Relation2) => {
1466
1454
  Relation2["ATTENDING"] = "ATTENDING";
1467
1455
  return Relation2;
1468
1456
  })(Relation || {});
1469
- var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
1470
- LocationLocationType2["VENUE"] = "VENUE";
1471
- LocationLocationType2["ONLINE"] = "ONLINE";
1472
- return LocationLocationType2;
1473
- })(LocationLocationType || {});
1474
- var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
1475
- SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
1476
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
1477
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
1478
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
1479
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
1480
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
1481
- SubdivisionType2["COUNTRY"] = "COUNTRY";
1482
- return SubdivisionType2;
1483
- })(SubdivisionType || {});
1484
- var EventsRecurrenceStatusStatus = /* @__PURE__ */ ((EventsRecurrenceStatusStatus2) => {
1485
- EventsRecurrenceStatusStatus2["ONE_TIME"] = "ONE_TIME";
1486
- EventsRecurrenceStatusStatus2["RECURRING"] = "RECURRING";
1487
- EventsRecurrenceStatusStatus2["RECURRING_NEXT"] = "RECURRING_NEXT";
1488
- EventsRecurrenceStatusStatus2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
1489
- EventsRecurrenceStatusStatus2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
1490
- return EventsRecurrenceStatusStatus2;
1491
- })(EventsRecurrenceStatusStatus || {});
1492
- var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
1493
- EventStatus2["SCHEDULED"] = "SCHEDULED";
1494
- EventStatus2["STARTED"] = "STARTED";
1495
- EventStatus2["ENDED"] = "ENDED";
1496
- EventStatus2["CANCELED"] = "CANCELED";
1497
- return EventStatus2;
1498
- })(EventStatus || {});
1499
- var EventType = /* @__PURE__ */ ((EventType2) => {
1500
- EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
1501
- EventType2["RSVP"] = "RSVP";
1502
- EventType2["TICKETS"] = "TICKETS";
1503
- EventType2["EXTERNAL"] = "EXTERNAL";
1504
- EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
1505
- return EventType2;
1506
- })(EventType || {});
1507
- var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
1508
- RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
1509
- RegistrationStatus2["CLOSED"] = "CLOSED";
1510
- RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
1511
- RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
1512
- RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
1513
- RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
1514
- RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
1515
- RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
1516
- return RegistrationStatus2;
1517
- })(RegistrationStatus || {});
1518
- var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
1519
- RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
1520
- RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
1521
- return RsvpStatusOptions2;
1522
- })(RsvpStatusOptions || {});
1523
- var EventsTaxType = /* @__PURE__ */ ((EventsTaxType2) => {
1524
- EventsTaxType2["INCLUDED"] = "INCLUDED";
1525
- EventsTaxType2["ADDED"] = "ADDED";
1526
- EventsTaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
1527
- return EventsTaxType2;
1528
- })(EventsTaxType || {});
1529
- var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
1530
- VisitorType2["VISITOR"] = "VISITOR";
1531
- VisitorType2["MEMBER"] = "MEMBER";
1532
- VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
1533
- return VisitorType2;
1534
- })(VisitorType || {});
1535
- var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
1536
- ConferenceType2["MEETING"] = "MEETING";
1537
- ConferenceType2["WEBINAR"] = "WEBINAR";
1538
- return ConferenceType2;
1539
- })(ConferenceType || {});
1540
- var State = /* @__PURE__ */ ((State2) => {
1541
- State2["MANUAL"] = "MANUAL";
1542
- State2["AUTO"] = "AUTO";
1543
- State2["RECURRING_EVENT"] = "RECURRING_EVENT";
1544
- State2["HIDDEN"] = "HIDDEN";
1545
- return State2;
1546
- })(State || {});
1547
- var Type = /* @__PURE__ */ ((Type2) => {
1548
- Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
1549
- Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
1550
- Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
1551
- Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
1552
- return Type2;
1553
- })(Type || {});
1554
1457
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1555
1458
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1556
1459
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -1933,66 +1836,68 @@ async function bulkDeleteEventsByFilter2(options) {
1933
1836
  }
1934
1837
  function queryEvents2(options) {
1935
1838
  const { httpClient, sideEffects } = arguments[1];
1936
- return (0, import_query_builder.queryBuilder)({
1937
- func: async (payload) => {
1938
- const reqOpts = queryEvents({
1939
- ...payload,
1940
- ...options ?? {}
1941
- });
1942
- sideEffects?.onSiteCall?.();
1943
- try {
1944
- const result = await httpClient.request(reqOpts);
1945
- sideEffects?.onSuccess?.(result);
1946
- return result;
1947
- } catch (err) {
1948
- sideEffects?.onError?.(err);
1949
- throw err;
1950
- }
1951
- },
1952
- requestTransformer: (query) => {
1953
- const args = [query, options];
1954
- return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1955
- { ...args?.[1], query: args?.[0] },
1956
- []
1957
- );
1958
- },
1959
- responseTransformer: ({ data }) => {
1960
- const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1961
- (0, import_transform_paths2.transformPaths)(data, [
1962
- {
1963
- transformFn: import_image2.transformRESTImageToSDKImage,
1964
- paths: [{ path: "events.mainImage" }]
1965
- },
1966
- {
1967
- transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1968
- paths: [
1969
- { path: "events.eventPageUrl" },
1970
- { path: "events.agendaSettings.pageUrl" }
1971
- ]
1972
- },
1973
- {
1974
- transformFn: import_address2.transformRESTAddressToSDKAddress,
1975
- paths: [{ path: "events.location.address" }]
1976
- }
1977
- ]),
1978
- ["events.description"]
1979
- );
1980
- return {
1981
- items: transformedData?.events,
1982
- pagingMetadata: transformedData?.pagingMetadata
1983
- };
1984
- },
1985
- errorTransformer: (err) => {
1986
- const transformedError = (0, import_transform_error.transformError)(err, {
1987
- spreadPathsToArguments: {},
1988
- explicitPathsToArguments: { query: "$[0]" },
1989
- singleArgumentUnchanged: false
1990
- });
1991
- throw transformedError;
1992
- },
1993
- pagingMethod: "OFFSET",
1994
- transformationPaths: {}
1995
- });
1839
+ return (0, import_query_builder.queryBuilder)(
1840
+ {
1841
+ func: async (payload) => {
1842
+ const reqOpts = queryEvents({
1843
+ ...payload,
1844
+ ...options ?? {}
1845
+ });
1846
+ sideEffects?.onSiteCall?.();
1847
+ try {
1848
+ const result = await httpClient.request(reqOpts);
1849
+ sideEffects?.onSuccess?.(result);
1850
+ return result;
1851
+ } catch (err) {
1852
+ sideEffects?.onError?.(err);
1853
+ throw err;
1854
+ }
1855
+ },
1856
+ requestTransformer: (query) => {
1857
+ const args = [query, options];
1858
+ return (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
1859
+ { ...args?.[1], query: args?.[0] },
1860
+ []
1861
+ );
1862
+ },
1863
+ responseTransformer: ({ data }) => {
1864
+ const transformedData = (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
1865
+ (0, import_transform_paths2.transformPaths)(data, [
1866
+ {
1867
+ transformFn: import_image2.transformRESTImageToSDKImage,
1868
+ paths: [{ path: "events.mainImage" }]
1869
+ },
1870
+ {
1871
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
1872
+ paths: [
1873
+ { path: "events.eventPageUrl" },
1874
+ { path: "events.agendaSettings.pageUrl" }
1875
+ ]
1876
+ },
1877
+ {
1878
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
1879
+ paths: [{ path: "events.location.address" }]
1880
+ }
1881
+ ]),
1882
+ ["events.description"]
1883
+ );
1884
+ return {
1885
+ items: transformedData?.events,
1886
+ pagingMetadata: transformedData?.pagingMetadata
1887
+ };
1888
+ },
1889
+ errorTransformer: (err) => {
1890
+ const transformedError = (0, import_transform_error.transformError)(err, {
1891
+ spreadPathsToArguments: {},
1892
+ explicitPathsToArguments: { query: "$[0]" },
1893
+ singleArgumentUnchanged: false
1894
+ });
1895
+ throw transformedError;
1896
+ },
1897
+ pagingMethod: "OFFSET",
1898
+ transformationPaths: {}
1899
+ }
1900
+ );
1996
1901
  }
1997
1902
  async function countEventsByStatus2(options) {
1998
1903
  const { httpClient, sideEffects } = arguments[1];
@@ -2127,18 +2032,12 @@ async function getEventBySlug2(slug, options) {
2127
2032
  BadgeTypeType,
2128
2033
  ButtonDataType,
2129
2034
  CardStylesType,
2130
- CategoryTypeType,
2131
2035
  CommonSortOrder,
2132
- ConferenceType,
2133
2036
  ConferenceTypeType,
2134
2037
  Crop,
2135
2038
  DecorationType,
2136
2039
  Direction,
2137
2040
  DividerDataAlignment,
2138
- EventStatus,
2139
- EventType,
2140
- EventsRecurrenceStatusStatus,
2141
- EventsTaxType,
2142
2041
  FontType,
2143
2042
  GIFType,
2144
2043
  GuestTypeType,
@@ -2148,7 +2047,6 @@ async function getEventBySlug2(slug, options) {
2148
2047
  Layout,
2149
2048
  LayoutType,
2150
2049
  LineStyle,
2151
- LocationLocationType,
2152
2050
  LocationType,
2153
2051
  MapType,
2154
2052
  NodeType,
@@ -2160,20 +2058,16 @@ async function getEventBySlug2(slug, options) {
2160
2058
  PollLayoutType,
2161
2059
  Position,
2162
2060
  RecurrenceStatusStatus,
2163
- RegistrationStatus,
2164
2061
  RegistrationStatusStatus,
2165
2062
  RegistrationTypeType,
2166
2063
  Relation,
2167
2064
  RequestedFields,
2168
2065
  Resizing,
2169
2066
  ResponseType,
2170
- RsvpStatusOptions,
2171
2067
  SortOrder,
2172
2068
  Source,
2173
- State,
2174
2069
  Status,
2175
2070
  StylesPosition,
2176
- SubdivisionSubdivisionType,
2177
2071
  SubdivisionType,
2178
2072
  Target,
2179
2073
  TaxType,
@@ -2184,7 +2078,6 @@ async function getEventBySlug2(slug, options) {
2184
2078
  VerticalAlignment,
2185
2079
  ViewMode,
2186
2080
  ViewRole,
2187
- VisitorType,
2188
2081
  VoteRole,
2189
2082
  WebhookIdentityType,
2190
2083
  Width,