@connectedxm/admin 6.6.2 → 6.6.4
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/dist/index.cjs +18 -11
- package/dist/index.d.cts +10 -6
- package/dist/index.d.ts +10 -6
- package/dist/index.js +18 -11
- package/openapi.json +30 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1840,7 +1840,7 @@ var useGetAccountThreads = (accountId, params = {}, options = {}) => {
|
|
|
1840
1840
|
};
|
|
1841
1841
|
|
|
1842
1842
|
// src/queries/activities/useGetActivities.ts
|
|
1843
|
-
var ACTIVITIES_QUERY_KEY = (moderation, featured, status) => {
|
|
1843
|
+
var ACTIVITIES_QUERY_KEY = (moderation, featured, status, global) => {
|
|
1844
1844
|
const key = ["ACTIVITIES"];
|
|
1845
1845
|
if (moderation) {
|
|
1846
1846
|
key.push(moderation);
|
|
@@ -1851,6 +1851,9 @@ var ACTIVITIES_QUERY_KEY = (moderation, featured, status) => {
|
|
|
1851
1851
|
if (status) {
|
|
1852
1852
|
key.push(status);
|
|
1853
1853
|
}
|
|
1854
|
+
if (global) {
|
|
1855
|
+
key.push("GLOBAL");
|
|
1856
|
+
}
|
|
1854
1857
|
return key;
|
|
1855
1858
|
};
|
|
1856
1859
|
var SET_ACTIVITIES_QUERY_DATA = (client, keyParams, response) => {
|
|
@@ -1864,7 +1867,8 @@ var GetActivities = async ({
|
|
|
1864
1867
|
pageSize,
|
|
1865
1868
|
orderBy,
|
|
1866
1869
|
search,
|
|
1867
|
-
adminApiParams
|
|
1870
|
+
adminApiParams,
|
|
1871
|
+
global
|
|
1868
1872
|
}) => {
|
|
1869
1873
|
const adminApi = await GetAdminAPI(adminApiParams);
|
|
1870
1874
|
const { data } = await adminApi.get(`/activities`, {
|
|
@@ -1875,15 +1879,16 @@ var GetActivities = async ({
|
|
|
1875
1879
|
search: search || void 0,
|
|
1876
1880
|
moderation: moderation || void 0,
|
|
1877
1881
|
featured: featured || void 0,
|
|
1878
|
-
status: status || void 0
|
|
1882
|
+
status: status || void 0,
|
|
1883
|
+
global: global || void 0
|
|
1879
1884
|
}
|
|
1880
1885
|
});
|
|
1881
1886
|
return data;
|
|
1882
1887
|
};
|
|
1883
|
-
var useGetActivities = (moderation, featured, status, params = {}, options = {}) => {
|
|
1888
|
+
var useGetActivities = (moderation, featured, status, global = false, params = {}, options = {}) => {
|
|
1884
1889
|
return useConnectedInfiniteQuery(
|
|
1885
|
-
ACTIVITIES_QUERY_KEY(moderation, featured, status),
|
|
1886
|
-
(params2) => GetActivities({ ...params2, moderation, featured, status }),
|
|
1890
|
+
ACTIVITIES_QUERY_KEY(moderation, featured, status, global),
|
|
1891
|
+
(params2) => GetActivities({ ...params2, moderation, featured, status, global }),
|
|
1887
1892
|
params,
|
|
1888
1893
|
options
|
|
1889
1894
|
);
|
|
@@ -23131,22 +23136,24 @@ var useUpdateEventReservation = (options = {}) => {
|
|
|
23131
23136
|
// src/mutations/event/attendees/useCreateEventAttendee.ts
|
|
23132
23137
|
var CreateEventAttendee = async ({
|
|
23133
23138
|
eventId,
|
|
23134
|
-
|
|
23139
|
+
attendee,
|
|
23135
23140
|
adminApiParams,
|
|
23136
23141
|
queryClient
|
|
23137
23142
|
}) => {
|
|
23138
23143
|
const connectedXM = await GetAdminAPI(adminApiParams);
|
|
23139
23144
|
const { data } = await connectedXM.post(
|
|
23140
23145
|
`/events/${eventId}/attendees`,
|
|
23141
|
-
|
|
23142
|
-
accountId
|
|
23143
|
-
}
|
|
23146
|
+
attendee
|
|
23144
23147
|
);
|
|
23145
23148
|
if (queryClient && data.status === "ok") {
|
|
23146
23149
|
queryClient.invalidateQueries({
|
|
23147
23150
|
queryKey: EVENT_ATTENDEES_QUERY_KEY(eventId)
|
|
23148
23151
|
});
|
|
23149
|
-
SET_EVENT_ATTENDEE_QUERY_DATA(
|
|
23152
|
+
SET_EVENT_ATTENDEE_QUERY_DATA(
|
|
23153
|
+
queryClient,
|
|
23154
|
+
[eventId, attendee.accountId],
|
|
23155
|
+
data
|
|
23156
|
+
);
|
|
23150
23157
|
}
|
|
23151
23158
|
return data;
|
|
23152
23159
|
};
|
package/openapi.json
CHANGED
|
@@ -3929,6 +3929,15 @@
|
|
|
3929
3929
|
"description": "Filter by status",
|
|
3930
3930
|
"required": false
|
|
3931
3931
|
},
|
|
3932
|
+
{
|
|
3933
|
+
"in": "query",
|
|
3934
|
+
"name": "global",
|
|
3935
|
+
"schema": {
|
|
3936
|
+
"type": "boolean"
|
|
3937
|
+
},
|
|
3938
|
+
"description": "Filter by global",
|
|
3939
|
+
"required": false
|
|
3940
|
+
},
|
|
3932
3941
|
{
|
|
3933
3942
|
"in": "query",
|
|
3934
3943
|
"name": "page",
|
|
@@ -13991,17 +14000,18 @@
|
|
|
13991
14000
|
},
|
|
13992
14001
|
"description": "The event identifier",
|
|
13993
14002
|
"required": true
|
|
13994
|
-
},
|
|
13995
|
-
{
|
|
13996
|
-
"in": "query",
|
|
13997
|
-
"name": "accountId",
|
|
13998
|
-
"schema": {
|
|
13999
|
-
"type": "string"
|
|
14000
|
-
},
|
|
14001
|
-
"description": "Filter by accountId",
|
|
14002
|
-
"required": true
|
|
14003
14003
|
}
|
|
14004
14004
|
],
|
|
14005
|
+
"requestBody": {
|
|
14006
|
+
"required": true,
|
|
14007
|
+
"content": {
|
|
14008
|
+
"application/json": {
|
|
14009
|
+
"schema": {
|
|
14010
|
+
"$ref": "#/components/schemas/EventAttendeeCreateInputs"
|
|
14011
|
+
}
|
|
14012
|
+
}
|
|
14013
|
+
}
|
|
14014
|
+
},
|
|
14005
14015
|
"responses": {
|
|
14006
14016
|
"200": {
|
|
14007
14017
|
"description": "Successful response",
|
|
@@ -91188,6 +91198,17 @@
|
|
|
91188
91198
|
}
|
|
91189
91199
|
}
|
|
91190
91200
|
},
|
|
91201
|
+
"EventAttendeeCreateInputs": {
|
|
91202
|
+
"type": "object",
|
|
91203
|
+
"properties": {
|
|
91204
|
+
"accountId": {
|
|
91205
|
+
"type": "string"
|
|
91206
|
+
}
|
|
91207
|
+
},
|
|
91208
|
+
"required": [
|
|
91209
|
+
"accountId"
|
|
91210
|
+
]
|
|
91211
|
+
},
|
|
91191
91212
|
"EventAttendeeUpdateInputs": {
|
|
91192
91213
|
"type": "object",
|
|
91193
91214
|
"properties": {}
|