@connectedxm/client 3.0.5 → 3.0.7

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
@@ -8477,48 +8477,94 @@ var CreateActivity = async ({
8477
8477
  }
8478
8478
  if (activity.contentId && data.data.content) {
8479
8479
  nested = true;
8480
+ const iDIDKey = [
8481
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8482
+ data.data.content.channel.id,
8483
+ activity.contentId
8484
+ ),
8485
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8486
+ ];
8487
+ const slugIDKey = [
8488
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8489
+ data.data.content.channel.slug,
8490
+ activity.contentId
8491
+ ),
8492
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8493
+ ];
8494
+ const iDSlugKey = [
8495
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8496
+ data.data.content.channel.id,
8497
+ data.data.content.slug
8498
+ ),
8499
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8500
+ ];
8501
+ const slugSlugKey = [
8502
+ ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8503
+ data.data.content.channel.slug,
8504
+ data.data.content.slug
8505
+ ),
8506
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8507
+ ];
8480
8508
  AppendInfiniteQuery(
8481
8509
  queryClient,
8482
- [
8483
- ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8484
- data.data.content.channel.slug,
8485
- activity.contentId
8486
- ),
8487
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8488
- ],
8510
+ iDIDKey,
8489
8511
  data.data
8490
8512
  );
8491
8513
  AppendInfiniteQuery(
8492
8514
  queryClient,
8493
- [
8494
- ...CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(
8495
- data.data.content.channel.id,
8496
- activity.contentId
8497
- ),
8498
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8499
- ],
8515
+ iDSlugKey,
8516
+ data.data
8517
+ );
8518
+ AppendInfiniteQuery(
8519
+ queryClient,
8520
+ slugIDKey,
8521
+ data.data
8522
+ );
8523
+ AppendInfiniteQuery(
8524
+ queryClient,
8525
+ slugSlugKey,
8500
8526
  data.data
8501
8527
  );
8502
8528
  }
8503
8529
  if (activity.eventId) {
8504
8530
  nested = true;
8531
+ const iDKey = [
8532
+ ...EVENT_ACTIVITIES_QUERY_KEY(activity.eventId),
8533
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8534
+ ];
8535
+ const slugKey = [
8536
+ ...EVENT_ACTIVITIES_QUERY_KEY(data.data.event?.slug || ""),
8537
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8538
+ ];
8505
8539
  AppendInfiniteQuery(
8506
8540
  queryClient,
8507
- [
8508
- ...EVENT_ACTIVITIES_QUERY_KEY(activity.eventId),
8509
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8510
- ],
8541
+ iDKey,
8542
+ data.data
8543
+ );
8544
+ AppendInfiniteQuery(
8545
+ queryClient,
8546
+ slugKey,
8511
8547
  data.data
8512
8548
  );
8513
8549
  }
8514
8550
  if (activity.groupId) {
8515
8551
  nested = true;
8552
+ const iDKey = [
8553
+ ...GROUP_ACTIVITIES_QUERY_KEY(activity.groupId),
8554
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8555
+ ];
8556
+ const slugKey = [
8557
+ ...GROUP_ACTIVITIES_QUERY_KEY(data.data.group?.slug || ""),
8558
+ ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8559
+ ];
8516
8560
  AppendInfiniteQuery(
8517
8561
  queryClient,
8518
- [
8519
- ...GROUP_ACTIVITIES_QUERY_KEY(activity.groupId),
8520
- ...GetBaseInfiniteQueryKeys(clientApiParams.locale)
8521
- ],
8562
+ iDKey,
8563
+ data.data
8564
+ );
8565
+ AppendInfiniteQuery(
8566
+ queryClient,
8567
+ slugKey,
8522
8568
  data.data
8523
8569
  );
8524
8570
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/client",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",
@@ -11,13 +11,13 @@
11
11
  "license": "MIT",
12
12
  "private": false,
13
13
  "main": "dist/index.js",
14
- "module": "dist/index.mjs",
14
+ "module": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "scripts": {
17
17
  "dev": "vitest",
18
18
  "lint": "npx tsc && eslint src/**/*.ts",
19
19
  "test": "vitest run",
20
- "build": "tsup src/index.ts --format cjs,esm --dts",
20
+ "build": "tsup src/index.ts --format esm --dts",
21
21
  "release": "npm run lint && npm run test && npm run build",
22
22
  "local": "npm run release && npm pack",
23
23
  "upgrade": "ncu -i --format group"