@connectedxm/client 3.0.6 → 3.0.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.d.ts CHANGED
@@ -1048,6 +1048,7 @@ interface BaseChannel {
1048
1048
  description: string | null;
1049
1049
  image: BaseImage;
1050
1050
  subscriberCount: number;
1051
+ private: boolean;
1051
1052
  creatorId: string | null;
1052
1053
  _count: {
1053
1054
  contents: number;
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.6",
3
+ "version": "3.0.8",
4
4
  "description": "Client API javascript SDK",
5
5
  "author": "ConnectedXM Inc.",
6
6
  "type": "module",