@connectedxm/admin 6.7.6 → 6.7.8

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.js CHANGED
@@ -6297,11 +6297,14 @@ var useGetEventCoHosts = (eventId, params = {}, options = {}) => {
6297
6297
  };
6298
6298
 
6299
6299
  // src/queries/events/coupons/useGetEventCoupons.ts
6300
- var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid) => {
6300
+ var EVENT_COUPONS_QUERY_KEY = (eventId, prePaid, includeVariants) => {
6301
6301
  const key = [...EVENT_QUERY_KEY(eventId), "COUPONS"];
6302
6302
  if (typeof prePaid === "boolean") {
6303
6303
  key.push(prePaid ? "GROUP" : "STANDARD");
6304
6304
  }
6305
+ if (includeVariants === true) {
6306
+ key.push("VARIANTS");
6307
+ }
6305
6308
  return key;
6306
6309
  };
6307
6310
  var SET_EVENT_COUPONS_QUERY_DATA = (client, keyParams, response) => {
@@ -6314,7 +6317,8 @@ var GetEventCoupons = async ({
6314
6317
  orderBy,
6315
6318
  search,
6316
6319
  adminApiParams,
6317
- prePaid
6320
+ prePaid,
6321
+ includeVariants
6318
6322
  }) => {
6319
6323
  const adminApi = await GetAdminAPI(adminApiParams);
6320
6324
  const { data } = await adminApi.get(`/events/${eventId}/coupons`, {
@@ -6323,18 +6327,20 @@ var GetEventCoupons = async ({
6323
6327
  pageSize: pageSize || void 0,
6324
6328
  orderBy: orderBy || void 0,
6325
6329
  search: search || void 0,
6326
- prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0
6330
+ prePaid: typeof prePaid === "boolean" ? prePaid ? "true" : "false" : void 0,
6331
+ includeVariants: includeVariants === true ? "true" : void 0
6327
6332
  }
6328
6333
  });
6329
6334
  return data;
6330
6335
  };
6331
- var useGetEventCoupons = (eventId = "", prePaid, params = {}, options = {}) => {
6336
+ var useGetEventCoupons = (eventId = "", prePaid, includeVariants, params = {}, options = {}) => {
6332
6337
  return useConnectedInfiniteQuery(
6333
- EVENT_COUPONS_QUERY_KEY(eventId, prePaid),
6338
+ EVENT_COUPONS_QUERY_KEY(eventId, prePaid, includeVariants),
6334
6339
  (params2) => GetEventCoupons({
6335
6340
  ...params2,
6336
6341
  eventId,
6337
- prePaid
6342
+ prePaid,
6343
+ includeVariants
6338
6344
  }),
6339
6345
  params,
6340
6346
  {
@@ -25891,6 +25897,51 @@ var useCancelEventPass = (options = {}) => {
25891
25897
  return useConnectedMutation(CancelEventPass, options);
25892
25898
  };
25893
25899
 
25900
+ // src/mutations/events/passes/useCheckinEventPass.ts
25901
+ var CheckinEventPass = async ({
25902
+ eventId,
25903
+ passId,
25904
+ adminApiParams,
25905
+ queryClient
25906
+ }) => {
25907
+ const connectedXM = await GetAdminAPI(adminApiParams);
25908
+ const { data } = await connectedXM.post(
25909
+ `/events/${eventId}/passes/${passId}/checkin`
25910
+ );
25911
+ if (queryClient && data.status === "ok") {
25912
+ if (data.data.ticketId) {
25913
+ queryClient.invalidateQueries({
25914
+ queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
25915
+ });
25916
+ }
25917
+ if (data.data.attendee) {
25918
+ queryClient.invalidateQueries({
25919
+ queryKey: EVENT_ATTENDEE_QUERY_KEY(
25920
+ eventId,
25921
+ data.data.attendee.accountId
25922
+ )
25923
+ });
25924
+ queryClient.invalidateQueries({
25925
+ queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
25926
+ eventId,
25927
+ data.data.attendee.accountId
25928
+ )
25929
+ });
25930
+ }
25931
+ queryClient.invalidateQueries({
25932
+ queryKey: EVENT_PASSES_QUERY_KEY(eventId)
25933
+ });
25934
+ queryClient.invalidateQueries({
25935
+ queryKey: EVENT_PASSES_QUERY_KEY(eventId, true)
25936
+ });
25937
+ SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
25938
+ }
25939
+ return data;
25940
+ };
25941
+ var useCheckinEventPass = (options = {}) => {
25942
+ return useConnectedMutation(CheckinEventPass, options);
25943
+ };
25944
+
25894
25945
  // src/mutations/events/passes/useCreateEventPass.ts
25895
25946
  var CreateEventPass = async ({
25896
25947
  eventId,
@@ -26091,6 +26142,51 @@ var useTransferEventPass = (options = {}) => {
26091
26142
  return useConnectedMutation(TransferEventPass, options);
26092
26143
  };
26093
26144
 
26145
+ // src/mutations/events/passes/useUndoCheckinEventPass.ts
26146
+ var UndoCheckinEventPass = async ({
26147
+ eventId,
26148
+ passId,
26149
+ adminApiParams,
26150
+ queryClient
26151
+ }) => {
26152
+ const connectedXM = await GetAdminAPI(adminApiParams);
26153
+ const { data } = await connectedXM.post(
26154
+ `/events/${eventId}/passes/${passId}/checkin/undo`
26155
+ );
26156
+ if (queryClient && data.status === "ok") {
26157
+ if (data.data.ticketId) {
26158
+ queryClient.invalidateQueries({
26159
+ queryKey: EVENT_PASS_TYPE_PASSES_QUERY_KEY(eventId, data.data.ticketId)
26160
+ });
26161
+ }
26162
+ if (data.data.attendee) {
26163
+ queryClient.invalidateQueries({
26164
+ queryKey: EVENT_ATTENDEE_QUERY_KEY(
26165
+ eventId,
26166
+ data.data.attendee.accountId
26167
+ )
26168
+ });
26169
+ queryClient.invalidateQueries({
26170
+ queryKey: EVENT_ATTENDEE_PASSES_QUERY_KEY(
26171
+ eventId,
26172
+ data.data.attendee.accountId
26173
+ )
26174
+ });
26175
+ }
26176
+ queryClient.invalidateQueries({
26177
+ queryKey: EVENT_PASSES_QUERY_KEY(eventId)
26178
+ });
26179
+ queryClient.invalidateQueries({
26180
+ queryKey: EVENT_PASSES_QUERY_KEY(eventId, false)
26181
+ });
26182
+ SET_EVENT_PASS_QUERY_DATA(queryClient, [eventId, passId], data);
26183
+ }
26184
+ return data;
26185
+ };
26186
+ var useUndoCheckinEventPass = (options = {}) => {
26187
+ return useConnectedMutation(UndoCheckinEventPass, options);
26188
+ };
26189
+
26094
26190
  // src/mutations/events/passes/useUpdateEventPass.ts
26095
26191
  var UpdateEventPass = async ({
26096
26192
  eventId,
@@ -36224,6 +36320,7 @@ export {
36224
36320
  CancelEventPass,
36225
36321
  CancelGroupInvitation,
36226
36322
  ChannelFormat,
36323
+ CheckinEventPass,
36227
36324
  CloneEvent,
36228
36325
  CloseStreamSession,
36229
36326
  ConfirmLogin,
@@ -38019,6 +38116,7 @@ export {
38019
38116
  ToggleTaxIntegration,
38020
38117
  TransferEventPass,
38021
38118
  TransformPrice,
38119
+ UndoCheckinEventPass,
38022
38120
  UpdateAccount,
38023
38121
  UpdateAccountAddress,
38024
38122
  UpdateAccountAttribute,
@@ -38274,6 +38372,7 @@ export {
38274
38372
  useCancelChannelContentPublishSchedule,
38275
38373
  useCancelEventPass,
38276
38374
  useCancelGroupInvitation,
38375
+ useCheckinEventPass,
38277
38376
  useCloneEvent,
38278
38377
  useCloseStreamSession,
38279
38378
  useConfirmLogin,
@@ -39128,6 +39227,7 @@ export {
39128
39227
  useToggleOrganizationPaymentIntegration,
39129
39228
  useToggleTaxIntegration,
39130
39229
  useTransferEventPass,
39230
+ useUndoCheckinEventPass,
39131
39231
  useUpdateAccount,
39132
39232
  useUpdateAccountAddress,
39133
39233
  useUpdateAccountAttribute,
package/openapi.json CHANGED
@@ -474,11 +474,11 @@
474
474
  },
475
475
  {
476
476
  "name": "Sponsors",
477
- "description": "Operations for sponsors"
477
+ "description": "Operations for managing sponsorship levels"
478
478
  },
479
479
  {
480
480
  "name": "Sponsors::Accounts",
481
- "description": "Operations for sponsors::accounts"
481
+ "description": "Associate accounts with membership levels to grant tier-based access, pricing, and benefits based on membership status"
482
482
  },
483
483
  {
484
484
  "name": "Storage::Files",
@@ -16778,6 +16778,15 @@
16778
16778
  "description": "Filter by prePaid",
16779
16779
  "required": false
16780
16780
  },
16781
+ {
16782
+ "in": "query",
16783
+ "name": "includeVariants",
16784
+ "schema": {
16785
+ "type": "object"
16786
+ },
16787
+ "description": "Filter by includeVariants",
16788
+ "required": false
16789
+ },
16781
16790
  {
16782
16791
  "in": "query",
16783
16792
  "name": "page",
@@ -25374,6 +25383,130 @@
25374
25383
  ]
25375
25384
  }
25376
25385
  },
25386
+ "/events/{eventId}/passes/{passId}/checkin": {
25387
+ "post": {
25388
+ "operationId": "CheckinEventPass",
25389
+ "summary": "Checkin Event Pass",
25390
+ "description": "Checkin Event Pass endpoint",
25391
+ "parameters": [
25392
+ {
25393
+ "in": "path",
25394
+ "name": "eventId",
25395
+ "schema": {
25396
+ "type": "string"
25397
+ },
25398
+ "description": "The event identifier",
25399
+ "required": true
25400
+ },
25401
+ {
25402
+ "in": "path",
25403
+ "name": "passId",
25404
+ "schema": {
25405
+ "type": "string"
25406
+ },
25407
+ "description": "The pass identifier",
25408
+ "required": true
25409
+ }
25410
+ ],
25411
+ "responses": {
25412
+ "200": {
25413
+ "description": "Successful response",
25414
+ "content": {
25415
+ "application/json": {
25416
+ "schema": {
25417
+ "type": "object",
25418
+ "properties": {
25419
+ "status": {
25420
+ "type": "string",
25421
+ "enum": [
25422
+ "ok"
25423
+ ]
25424
+ },
25425
+ "message": {
25426
+ "type": "string",
25427
+ "example": "Success message."
25428
+ },
25429
+ "data": {
25430
+ "$ref": "#/components/schemas/EventPass"
25431
+ }
25432
+ },
25433
+ "required": [
25434
+ "status",
25435
+ "message",
25436
+ "data"
25437
+ ]
25438
+ }
25439
+ }
25440
+ }
25441
+ }
25442
+ },
25443
+ "tags": [
25444
+ "Events::Passes"
25445
+ ]
25446
+ }
25447
+ },
25448
+ "/events/{eventId}/passes/{passId}/checkin/undo": {
25449
+ "post": {
25450
+ "operationId": "UndoCheckinEventPass",
25451
+ "summary": "Undo Checkin Event Pass",
25452
+ "description": "Undo Checkin Event Pass endpoint",
25453
+ "parameters": [
25454
+ {
25455
+ "in": "path",
25456
+ "name": "eventId",
25457
+ "schema": {
25458
+ "type": "string"
25459
+ },
25460
+ "description": "The event identifier",
25461
+ "required": true
25462
+ },
25463
+ {
25464
+ "in": "path",
25465
+ "name": "passId",
25466
+ "schema": {
25467
+ "type": "string"
25468
+ },
25469
+ "description": "The pass identifier",
25470
+ "required": true
25471
+ }
25472
+ ],
25473
+ "responses": {
25474
+ "200": {
25475
+ "description": "Successful response",
25476
+ "content": {
25477
+ "application/json": {
25478
+ "schema": {
25479
+ "type": "object",
25480
+ "properties": {
25481
+ "status": {
25482
+ "type": "string",
25483
+ "enum": [
25484
+ "ok"
25485
+ ]
25486
+ },
25487
+ "message": {
25488
+ "type": "string",
25489
+ "example": "Success message."
25490
+ },
25491
+ "data": {
25492
+ "$ref": "#/components/schemas/EventPass"
25493
+ }
25494
+ },
25495
+ "required": [
25496
+ "status",
25497
+ "message",
25498
+ "data"
25499
+ ]
25500
+ }
25501
+ }
25502
+ }
25503
+ }
25504
+ },
25505
+ "tags": [
25506
+ "Events::Passes"
25507
+ ]
25508
+ }
25509
+ },
25377
25510
  "/events/{eventId}/passes/{passId}/matches": {
25378
25511
  "get": {
25379
25512
  "operationId": "GetEventPassMatches",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/admin",
3
- "version": "6.7.6",
3
+ "version": "6.7.8",
4
4
  "description": "Admin API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  "upgrade": "ncu -i --format group"
25
25
  },
26
26
  "dependencies": {
27
- "axios": "^1.9.0",
27
+ "axios": "^1.13.4",
28
28
  "immer": "^10.1.1"
29
29
  },
30
30
  "peerDependencies": {
@@ -32,27 +32,27 @@
32
32
  "react": "^18 || ^19"
33
33
  },
34
34
  "devDependencies": {
35
- "tsx": "^4.19.0",
36
- "@babel/parser": "^7.27.5",
37
- "@swc/core": "^1.12.0",
38
- "@tanstack/react-query": "^5.80.7",
35
+ "tsx": "^4.21.0",
36
+ "@babel/parser": "^7.28.6",
37
+ "@swc/core": "^1.15.11",
38
+ "@tanstack/react-query": "^5.90.20",
39
39
  "@types/glob": "^8.1.0",
40
40
  "@types/node": "^22.15.3",
41
- "@types/react": "^19.1.8",
42
- "@typescript-eslint/eslint-plugin": "^8.34.0",
43
- "@typescript-eslint/parser": "^8.34.0",
41
+ "@types/react": "^19.2.10",
42
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
43
+ "@typescript-eslint/parser": "^8.54.0",
44
44
  "comment-parser": "^1.4.5",
45
- "eslint": "^9.28.0",
45
+ "eslint": "^9.39.2",
46
46
  "eslint-plugin-react": "^7.37.5",
47
47
  "eslint-plugin-react-hooks": "^5.2.0",
48
48
  "glob": "^11.0.2",
49
49
  "openapi-schema-validator": "^12.1.3",
50
50
  "recast": "^0.23.11",
51
- "tsup": "^8.5.0",
52
- "typescript": "^5.8.3",
51
+ "tsup": "^8.5.1",
52
+ "typescript": "^5.9.3",
53
53
  "vitest": "^3.2.3"
54
54
  },
55
55
  "optionalDependencies": {
56
- "@rollup/rollup-linux-x64-gnu": "4.43.0"
56
+ "@rollup/rollup-linux-x64-gnu": "4.57.1"
57
57
  }
58
58
  }