@connectedxm/client 3.0.8 → 4.0.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +113 -226
  2. package/dist/index.js +319 -920
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -515,6 +515,7 @@ var ERR_TIER_REQUIRED = 457;
515
515
  var ERR_SUBSCRIPTION_REQUIRED = 458;
516
516
  var ERR_INTEGRATION_PERMISSION_DENIED = 459;
517
517
  var ERR_KNOWN_ERROR = 460;
518
+ var ERR_PRIVATE_CHANNEL = 461;
518
519
  var CUSTOM_ERROR_CODES = [
519
520
  ERR_NOT_GROUP_MEMBER,
520
521
  ERR_NOT_EVENT_REGISTERED,
@@ -523,7 +524,8 @@ var CUSTOM_ERROR_CODES = [
523
524
  ERR_TIER_REQUIRED,
524
525
  ERR_SUBSCRIPTION_REQUIRED,
525
526
  ERR_INTEGRATION_PERMISSION_DENIED,
526
- ERR_KNOWN_ERROR
527
+ ERR_KNOWN_ERROR,
528
+ ERR_PRIVATE_CHANNEL
527
529
  ];
528
530
  var GetErrorMessage = (error, fallback = "Something went wrong") => {
529
531
  let message = fallback;
@@ -3716,29 +3718,31 @@ var useGetChannelContentGuests = (channelId, contentId, params = {}, options = {
3716
3718
  );
3717
3719
  };
3718
3720
 
3719
- // src/queries/channels/managed/useGetManagedChannels.ts
3720
- var MANAGED_CHANNELS_QUERY_KEY = () => [
3721
+ // src/queries/channels/useGetChannelSubscribers.ts
3722
+ var CHANNEL_SUBSCRIBERS_QUERY_KEY = (channelId) => [
3721
3723
  "CHANNELS",
3722
- "MANAGED"
3724
+ channelId,
3725
+ "SUBSCRIBERS"
3723
3726
  ];
3724
- var SET_MANAGED_CHANNELS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3727
+ var SET_CHANNEL_SUBSCRIBERS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3725
3728
  client.setQueryData(
3726
3729
  [
3727
- ...MANAGED_CHANNELS_QUERY_KEY(...keyParams),
3730
+ ...CHANNEL_SUBSCRIBERS_QUERY_KEY(...keyParams),
3728
3731
  ...GetBaseInfiniteQueryKeys(...baseKeys)
3729
3732
  ],
3730
3733
  setFirstPageData(response)
3731
3734
  );
3732
3735
  };
3733
- var GetManagedChannels = async ({
3736
+ var GetChannelSubscribers = async ({
3734
3737
  pageParam,
3735
3738
  pageSize,
3736
3739
  orderBy,
3737
3740
  search,
3741
+ channelId,
3738
3742
  clientApiParams
3739
3743
  }) => {
3740
3744
  const clientApi = await GetClientAPI(clientApiParams);
3741
- const { data } = await clientApi.get(`/channels/managed`, {
3745
+ const { data } = await clientApi.get(`/channels/${channelId}/subscribers`, {
3742
3746
  params: {
3743
3747
  page: pageParam || void 0,
3744
3748
  pageSize: pageSize || void 0,
@@ -3748,41 +3752,11 @@ var GetManagedChannels = async ({
3748
3752
  });
3749
3753
  return data;
3750
3754
  };
3751
- var useGetManagedChannels = (params = {}, options = {}) => {
3755
+ var useGetChannelSubscribers = (channelId = "", params = {}, options = {}) => {
3752
3756
  return useConnectedInfiniteQuery(
3753
- MANAGED_CHANNELS_QUERY_KEY(),
3754
- (params2) => GetManagedChannels({ ...params2 }),
3757
+ CHANNEL_SUBSCRIBERS_QUERY_KEY(channelId),
3758
+ (params2) => GetChannelSubscribers({ ...params2, channelId: channelId || "" }),
3755
3759
  params,
3756
- options
3757
- );
3758
- };
3759
-
3760
- // src/queries/channels/managed/useGetManagedChannel.ts
3761
- var MANAGED_CHANNEL_QUERY_KEY = (channelId) => [
3762
- ...MANAGED_CHANNELS_QUERY_KEY(),
3763
- channelId
3764
- ];
3765
- var SET_MANAGED_CHANNEL_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3766
- client.setQueryData(
3767
- [
3768
- ...MANAGED_CHANNEL_QUERY_KEY(...keyParams),
3769
- ...GetBaseSingleQueryKeys(...baseKeys)
3770
- ],
3771
- response
3772
- );
3773
- };
3774
- var GetManagedChannel = async ({
3775
- channelId,
3776
- clientApiParams
3777
- }) => {
3778
- const clientApi = await GetClientAPI(clientApiParams);
3779
- const { data } = await clientApi.get(`/channels/managed/${channelId}`);
3780
- return data;
3781
- };
3782
- var useGetManagedChannel = (channelId = "", options = {}) => {
3783
- return useConnectedSingleQuery_default(
3784
- MANAGED_CHANNEL_QUERY_KEY(channelId),
3785
- (params) => GetManagedChannel({ channelId: channelId || "", ...params }),
3786
3760
  {
3787
3761
  ...options,
3788
3762
  enabled: !!channelId && (options?.enabled ?? true)
@@ -3790,19 +3764,12 @@ var useGetManagedChannel = (channelId = "", options = {}) => {
3790
3764
  );
3791
3765
  };
3792
3766
 
3793
- // src/queries/channels/managed/collections/useGetManagedChannelCollections.ts
3794
- var MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY = (channelId) => [...MANAGED_CHANNEL_QUERY_KEY(channelId), "COLLECTIONS"];
3795
- var SET_MANAGED_CHANNEL_COLLECTIONS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3796
- client.setQueryData(
3797
- [
3798
- ...MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY(...keyParams),
3799
- ...GetBaseInfiniteQueryKeys(...baseKeys)
3800
- ],
3801
- setFirstPageData(response)
3802
- );
3803
- };
3804
- var GetManagedChannelCollections = async ({
3805
- channelId,
3767
+ // src/queries/channels/useGetSubscribedChannels.ts
3768
+ var SUBSCRIBED_CHANNELS_QUERY_KEY = () => [
3769
+ ...CHANNELS_QUERY_KEY(),
3770
+ "SUBSCRIBED"
3771
+ ];
3772
+ var GetSubscribedChannels = async ({
3806
3773
  pageParam,
3807
3774
  pageSize,
3808
3775
  orderBy,
@@ -3810,72 +3777,32 @@ var GetManagedChannelCollections = async ({
3810
3777
  clientApiParams
3811
3778
  }) => {
3812
3779
  const clientApi = await GetClientAPI(clientApiParams);
3813
- const { data } = await clientApi.get(
3814
- `/channels/managed/${channelId}/collections`,
3815
- {
3816
- params: {
3817
- page: pageParam || void 0,
3818
- pageSize: pageSize || void 0,
3819
- orderBy: orderBy || void 0,
3820
- search: search || void 0
3821
- }
3780
+ const { data } = await clientApi.get(`/channels/subscribed`, {
3781
+ params: {
3782
+ page: pageParam || void 0,
3783
+ pageSize: pageSize || void 0,
3784
+ orderBy: orderBy || void 0,
3785
+ search: search || void 0
3822
3786
  }
3823
- );
3787
+ });
3824
3788
  return data;
3825
3789
  };
3826
- var useGetManagedChannelCollections = (channelId, params = {}, options = {}) => {
3790
+ var useGetSubscribedChannels = (params = {}, options = {}) => {
3827
3791
  return useConnectedInfiniteQuery(
3828
- MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
3829
- (params2) => GetManagedChannelCollections({ channelId, ...params2 }),
3792
+ SUBSCRIBED_CHANNELS_QUERY_KEY(),
3793
+ (params2) => GetSubscribedChannels({ ...params2 }),
3830
3794
  params,
3831
- { ...options, enabled: !!channelId && (options?.enabled ?? true) }
3832
- );
3833
- };
3834
-
3835
- // src/queries/channels/managed/collections/useGetManagedChannelCollection.ts
3836
- var MANAGED_CHANNEL_COLLECTION_QUERY_KEY = (channelId, collectionId) => [
3837
- ...MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY(channelId),
3838
- collectionId
3839
- ];
3840
- var SET_MANAGED_CHANNEL_COLLECTION_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3841
- client.setQueryData(
3842
- [
3843
- ...MANAGED_CHANNEL_COLLECTION_QUERY_KEY(...keyParams),
3844
- ...GetBaseSingleQueryKeys(...baseKeys)
3845
- ],
3846
- response
3847
- );
3848
- };
3849
- var GetManagedChannelCollection = async ({
3850
- channelId,
3851
- collectionId,
3852
- clientApiParams
3853
- }) => {
3854
- const clientApi = await GetClientAPI(clientApiParams);
3855
- const { data } = await clientApi.get(
3856
- `/channels/managed/${channelId}/collections/${collectionId}`
3857
- );
3858
- return data;
3859
- };
3860
- var useGetManagedChannelCollection = (channelId = "", collectionId = "", options = {}) => {
3861
- return useConnectedSingleQuery_default(
3862
- MANAGED_CHANNEL_COLLECTION_QUERY_KEY(channelId, collectionId),
3863
- (params) => GetManagedChannelCollection({ channelId, collectionId, ...params }),
3864
- {
3865
- ...options,
3866
- enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
3867
- }
3795
+ options
3868
3796
  );
3869
3797
  };
3870
3798
 
3871
- // src/queries/channels/managed/collections/useGetManagedChannelCollectionContents.ts
3872
- var MANAGED_CHANNEL_COLLECTION_CONTENTS_QUERY_KEY = (channelId, collectionId) => [
3873
- ...MANAGED_CHANNEL_COLLECTION_QUERY_KEY(channelId, collectionId),
3874
- "CONTENTS"
3799
+ // src/queries/channels/useGetChannelInterests.ts
3800
+ var CHANNEL_INTERESTS_QUERY_KEY = (channelId) => [
3801
+ ...CHANNEL_QUERY_KEY(channelId),
3802
+ "INTERESTS"
3875
3803
  ];
3876
- var GetManagedChannelCollectionContents = async ({
3804
+ var GetChannelInterests = async ({
3877
3805
  channelId,
3878
- collectionId,
3879
3806
  pageParam,
3880
3807
  pageSize,
3881
3808
  orderBy,
@@ -3883,130 +3810,91 @@ var GetManagedChannelCollectionContents = async ({
3883
3810
  clientApiParams
3884
3811
  }) => {
3885
3812
  const clientApi = await GetClientAPI(clientApiParams);
3886
- const { data } = await clientApi.get(
3887
- `/channels/managed/${channelId}/collections/${collectionId}/contents`,
3888
- {
3889
- params: {
3890
- page: pageParam || void 0,
3891
- pageSize: pageSize || void 0,
3892
- orderBy: orderBy || void 0,
3893
- search: search || void 0
3894
- }
3813
+ const { data } = await clientApi.get(`/channels/${channelId}/interests`, {
3814
+ params: {
3815
+ page: pageParam || void 0,
3816
+ pageSize: pageSize || void 0,
3817
+ orderBy: orderBy || void 0,
3818
+ search: search || void 0
3895
3819
  }
3896
- );
3820
+ });
3897
3821
  return data;
3898
3822
  };
3899
- var useGetManagedChannelCollectionContents = (channelId, collectionId, params = {}, options = {}) => {
3823
+ var useGetChannelInterests = (channelId, params = {}, options = {}) => {
3900
3824
  return useConnectedInfiniteQuery(
3901
- MANAGED_CHANNEL_COLLECTION_CONTENTS_QUERY_KEY(channelId, collectionId),
3902
- (params2) => GetManagedChannelCollectionContents({
3903
- channelId,
3904
- collectionId,
3905
- ...params2
3906
- }),
3825
+ CHANNEL_INTERESTS_QUERY_KEY(channelId),
3826
+ (params2) => GetChannelInterests({ channelId, ...params2 }),
3907
3827
  params,
3908
3828
  {
3909
3829
  ...options,
3910
- enabled: !!channelId && !!collectionId && (options?.enabled ?? true)
3830
+ enabled: !!channelId && (options?.enabled ?? true)
3911
3831
  }
3912
3832
  );
3913
3833
  };
3914
3834
 
3915
- // src/queries/channels/managed/content/useGetManagedChannelContents.ts
3916
- var MANAGED_CHANNEL_CONTENTS_QUERY_KEY = (channelId) => [...MANAGED_CHANNEL_QUERY_KEY(channelId), "CONTENTS"];
3917
- var SET_MANAGED_CHANNEL_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3835
+ // src/queries/contents/useGetContents.ts
3836
+ var CONTENTS_QUERY_KEY = (type, featured, interest, past) => {
3837
+ const key = ["CONTENTS"];
3838
+ if (type) key.push(type);
3839
+ if (featured) key.push("FEATURED");
3840
+ if (interest) key.push(interest);
3841
+ if (typeof past !== "undefined") key.push(past ? "PAST" : "UPCOMING");
3842
+ return key;
3843
+ };
3844
+ var SET_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3918
3845
  client.setQueryData(
3919
3846
  [
3920
- ...MANAGED_CHANNEL_CONTENTS_QUERY_KEY(...keyParams),
3847
+ ...CONTENTS_QUERY_KEY(...keyParams),
3921
3848
  ...GetBaseInfiniteQueryKeys(...baseKeys)
3922
3849
  ],
3923
3850
  setFirstPageData(response)
3924
3851
  );
3925
3852
  };
3926
- var GetManagedChannelContents = async ({
3853
+ var GetContents = async ({
3854
+ type,
3855
+ featured,
3856
+ interest,
3857
+ past,
3927
3858
  pageParam,
3928
3859
  pageSize,
3929
3860
  orderBy,
3930
3861
  search,
3931
- channelId,
3932
3862
  clientApiParams
3933
3863
  }) => {
3934
3864
  const clientApi = await GetClientAPI(clientApiParams);
3935
- const { data } = await clientApi.get(
3936
- `/channels/managed/${channelId}/contents`,
3937
- {
3938
- params: {
3939
- page: pageParam || void 0,
3940
- pageSize: pageSize || void 0,
3941
- orderBy: orderBy || void 0,
3942
- search: search || void 0
3943
- }
3865
+ const { data } = await clientApi.get(`/contents`, {
3866
+ params: {
3867
+ type: type || void 0,
3868
+ featured: typeof featured !== "undefined" ? featured ? "true" : "false" : void 0,
3869
+ interest: interest || void 0,
3870
+ past,
3871
+ page: pageParam || void 0,
3872
+ pageSize: pageSize || void 0,
3873
+ orderBy: orderBy || void 0,
3874
+ search: search || void 0
3944
3875
  }
3945
- );
3876
+ });
3946
3877
  return data;
3947
3878
  };
3948
- var useGetManagedChannelContents = (channelId = "", params = {}, options = {}) => {
3879
+ var useGetContents = (type, featured, interest, past, params = {}, options = {}) => {
3949
3880
  return useConnectedInfiniteQuery(
3950
- MANAGED_CHANNEL_CONTENTS_QUERY_KEY(channelId),
3951
- (params2) => GetManagedChannelContents({ ...params2, channelId: channelId || "" }),
3881
+ CONTENTS_QUERY_KEY(type, featured, interest, past),
3882
+ (params2) => GetContents({ type, featured, interest, past, ...params2 }),
3952
3883
  params,
3953
- {
3954
- ...options,
3955
- enabled: !!channelId && (options?.enabled ?? true)
3956
- }
3957
- );
3958
- };
3959
-
3960
- // src/queries/channels/managed/content/useGetManagedChannelContent.ts
3961
- var MANAGED_CHANNEL_CONTENT_QUERY_KEY = (channelId, contentId) => [...MANAGED_CHANNEL_CONTENTS_QUERY_KEY(channelId), contentId];
3962
- var SET_MANAGED_CHANNEL_CONTENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3963
- client.setQueryData(
3964
- [
3965
- ...MANAGED_CHANNEL_CONTENT_QUERY_KEY(...keyParams),
3966
- ...GetBaseSingleQueryKeys(...baseKeys)
3967
- ],
3968
- response
3969
- );
3970
- };
3971
- var GetManagedChannelContent = async ({
3972
- contentId,
3973
- channelId,
3974
- clientApiParams
3975
- }) => {
3976
- const clientApi = await GetClientAPI(clientApiParams);
3977
- const { data } = await clientApi.get(
3978
- `/channels/managed/${channelId}/contents/${contentId}`
3979
- );
3980
- return data;
3981
- };
3982
- var useGetManagedChannelContent = (channelId = "", contentId = "", options = {}) => {
3983
- return useConnectedSingleQuery_default(
3984
- MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId),
3985
- (params) => GetManagedChannelContent({ contentId, channelId, ...params }),
3986
- {
3987
- ...options,
3988
- enabled: !!channelId && !!contentId && (options?.enabled ?? true)
3989
- }
3884
+ options
3990
3885
  );
3991
3886
  };
3992
3887
 
3993
- // src/queries/channels/managed/content/useGetManagedChannelContentActivities.ts
3994
- var MANAGED_CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY = (channelId, contentId) => [
3995
- ...ACTIVITIES_QUERY_KEY(),
3996
- ...MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
3997
- ];
3998
- var SET_MANAGED_CONTENT_ACTIVITIES_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
3999
- client.setQueryData(
4000
- [
4001
- ...MANAGED_CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(...keyParams),
4002
- ...GetBaseInfiniteQueryKeys(...baseKeys)
4003
- ],
4004
- setFirstPageData(response)
4005
- );
3888
+ // src/queries/contents/useGetSubscribedContents.ts
3889
+ var SUBSCRIBED_CONTENTS_QUERY_KEY = (type, interest) => {
3890
+ const key = ["SUBSCRIBED_CONTENTS"];
3891
+ if (type) key.push(type);
3892
+ if (interest) key.push(interest);
3893
+ return key;
4006
3894
  };
4007
- var GetManagedChannelContentActivities = async ({
4008
- channelId,
4009
- contentId,
3895
+ var GetSubscribedContents = async ({
3896
+ type,
3897
+ interest,
4010
3898
  pageParam,
4011
3899
  pageSize,
4012
3900
  orderBy,
@@ -4014,423 +3902,34 @@ var GetManagedChannelContentActivities = async ({
4014
3902
  clientApiParams
4015
3903
  }) => {
4016
3904
  const clientApi = await GetClientAPI(clientApiParams);
4017
- const { data } = await clientApi.get(
4018
- `/channels/managed/${channelId}/contents/${contentId}/activities`,
4019
- {
4020
- params: {
4021
- page: pageParam || void 0,
4022
- pageSize: pageSize || void 0,
4023
- orderBy: orderBy || void 0,
4024
- search: search || void 0
4025
- }
3905
+ const { data } = await clientApi.get(`/contents/subscribed`, {
3906
+ params: {
3907
+ type: type || void 0,
3908
+ interest: interest || void 0,
3909
+ page: pageParam || void 0,
3910
+ pageSize: pageSize || void 0,
3911
+ orderBy: orderBy || void 0,
3912
+ search: search || void 0
4026
3913
  }
4027
- );
3914
+ });
4028
3915
  return data;
4029
3916
  };
4030
- var useGetManagedChannelContentActivities = (channelId = "", contentId = "", params = {}, options = {}) => {
3917
+ var useGetSubscribedContents = (type, interest, params = {}, options = {}) => {
4031
3918
  return useConnectedInfiniteQuery(
4032
- MANAGED_CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY(channelId, contentId),
4033
- (params2) => GetManagedChannelContentActivities({ channelId, contentId, ...params2 }),
3919
+ SUBSCRIBED_CONTENTS_QUERY_KEY(interest),
3920
+ (params2) => GetSubscribedContents({ interest, ...params2 }),
4034
3921
  params,
4035
- {
4036
- ...options,
4037
- enabled: !!channelId && !!contentId && (options?.enabled ?? true)
4038
- }
3922
+ options
4039
3923
  );
4040
3924
  };
4041
3925
 
4042
- // src/queries/channels/managed/content/useGetManagedChannelContentInterests.ts
4043
- var MANAGED_CHANNEL_CONTENT_INTERESTS_QUERY_KEY = (channelId, contentId) => [
4044
- ...MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId),
4045
- "INTERESTS"
4046
- ];
4047
- var GetManagedChannelContentInterests = async ({
4048
- channelId,
4049
- contentId,
4050
- pageParam,
4051
- pageSize,
4052
- orderBy,
4053
- search,
3926
+ // src/queries/organization/useGetOrganization.ts
3927
+ var ORGANIZATION_QUERY_KEY = () => ["ORGANIZATION"];
3928
+ var GetOrganization = async ({
4054
3929
  clientApiParams
4055
3930
  }) => {
4056
3931
  const clientApi = await GetClientAPI(clientApiParams);
4057
- const { data } = await clientApi.get(
4058
- `/channels/managed/${channelId}/contents/${contentId}/interests`,
4059
- {
4060
- params: {
4061
- page: pageParam || void 0,
4062
- pageSize: pageSize || void 0,
4063
- orderBy: orderBy || void 0,
4064
- search: search || void 0
4065
- }
4066
- }
4067
- );
4068
- return data;
4069
- };
4070
- var useGetManagedChannelContentInterests = (channelId, contentId, params = {}, options = {}) => {
4071
- return useConnectedInfiniteQuery(
4072
- MANAGED_CHANNEL_CONTENT_INTERESTS_QUERY_KEY(channelId, contentId),
4073
- (params2) => GetManagedChannelContentInterests({ channelId, contentId, ...params2 }),
4074
- params,
4075
- {
4076
- ...options,
4077
- enabled: !!channelId && !!contentId && (options?.enabled ?? true)
4078
- }
4079
- );
4080
- };
4081
-
4082
- // src/queries/channels/managed/content/useGetManagedChannelContentGuests.ts
4083
- var MANAGED_CHANNEL_CONTENT_GUESTS_QUERY_KEY = (channelId, contentId) => [
4084
- ...MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId),
4085
- "GUESTS"
4086
- ];
4087
- var GetManagedChannelContentGuests = async ({
4088
- channelId,
4089
- contentId,
4090
- pageParam,
4091
- pageSize,
4092
- orderBy,
4093
- search,
4094
- clientApiParams
4095
- }) => {
4096
- const clientApi = await GetClientAPI(clientApiParams);
4097
- const { data } = await clientApi.get(
4098
- `/channels/managed/${channelId}/contents/${contentId}/guests`,
4099
- {
4100
- params: {
4101
- page: pageParam || void 0,
4102
- pageSize: pageSize || void 0,
4103
- orderBy: orderBy || void 0,
4104
- search: search || void 0
4105
- }
4106
- }
4107
- );
4108
- return data;
4109
- };
4110
- var useGetManagedChannelContentGuests = (channelId, contentId, params = {}, options = {}) => {
4111
- return useConnectedInfiniteQuery(
4112
- MANAGED_CHANNEL_CONTENT_GUESTS_QUERY_KEY(channelId, contentId),
4113
- (params2) => GetManagedChannelContentGuests({ channelId, contentId, ...params2 }),
4114
- params,
4115
- {
4116
- ...options,
4117
- enabled: !!channelId && !!contentId && (options?.enabled ?? true)
4118
- }
4119
- );
4120
- };
4121
-
4122
- // src/queries/channels/managed/useGetManagedChannelSubscribers.ts
4123
- var MANAGED_CHANNEL_SUBSCRIBERS_QUERY_KEY = (channelId) => [...MANAGED_CHANNEL_QUERY_KEY(channelId), "SUBSCRIBERS"];
4124
- var SET_MANAGED_CHANNEL_SUBSCRIBERS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4125
- client.setQueryData(
4126
- [
4127
- ...MANAGED_CHANNEL_SUBSCRIBERS_QUERY_KEY(...keyParams),
4128
- ...GetBaseInfiniteQueryKeys(...baseKeys)
4129
- ],
4130
- setFirstPageData(response)
4131
- );
4132
- };
4133
- var GetManagedChannelSubscribers = async ({
4134
- pageParam,
4135
- pageSize,
4136
- orderBy,
4137
- search,
4138
- channelId,
4139
- clientApiParams
4140
- }) => {
4141
- const clientApi = await GetClientAPI(clientApiParams);
4142
- const { data } = await clientApi.get(
4143
- `/channels/managed/${channelId}/subscribers`,
4144
- {
4145
- params: {
4146
- page: pageParam || void 0,
4147
- pageSize: pageSize || void 0,
4148
- orderBy: orderBy || void 0,
4149
- search: search || void 0
4150
- }
4151
- }
4152
- );
4153
- return data;
4154
- };
4155
- var useGetManagedChannelSubscribers = (channelId = "", params = {}, options = {}) => {
4156
- return useConnectedInfiniteQuery(
4157
- MANAGED_CHANNEL_SUBSCRIBERS_QUERY_KEY(channelId),
4158
- (params2) => GetManagedChannelSubscribers({ ...params2, channelId: channelId || "" }),
4159
- params,
4160
- {
4161
- ...options,
4162
- enabled: !!channelId && (options?.enabled ?? true)
4163
- }
4164
- );
4165
- };
4166
-
4167
- // src/queries/channels/managed/useGetManagedChannelInterests.ts
4168
- var MANAGED_CHANNEL_INTERESTS_QUERY_KEY = (channelId) => [...MANAGED_CHANNEL_QUERY_KEY(channelId), "INTERESTS"];
4169
- var GetManagedChannelInterests = async ({
4170
- channelId,
4171
- pageParam,
4172
- pageSize,
4173
- orderBy,
4174
- search,
4175
- clientApiParams
4176
- }) => {
4177
- const clientApi = await GetClientAPI(clientApiParams);
4178
- const { data } = await clientApi.get(
4179
- `/channels/managed/${channelId}/interests`,
4180
- {
4181
- params: {
4182
- page: pageParam || void 0,
4183
- pageSize: pageSize || void 0,
4184
- orderBy: orderBy || void 0,
4185
- search: search || void 0
4186
- }
4187
- }
4188
- );
4189
- return data;
4190
- };
4191
- var useGetManagedChannelInterests = (channelId, params = {}, options = {}) => {
4192
- return useConnectedInfiniteQuery(
4193
- MANAGED_CHANNEL_INTERESTS_QUERY_KEY(channelId),
4194
- (params2) => GetManagedChannelInterests({ channelId, ...params2 }),
4195
- params,
4196
- {
4197
- ...options,
4198
- enabled: !!channelId && (options?.enabled ?? true)
4199
- }
4200
- );
4201
- };
4202
-
4203
- // src/queries/channels/useGetSubscribedChannels.ts
4204
- var SUBSCRIBED_CHANNELS_QUERY_KEY = () => [
4205
- ...CHANNELS_QUERY_KEY(),
4206
- "SUBSCRIBED"
4207
- ];
4208
- var GetSubscribedChannels = async ({
4209
- pageParam,
4210
- pageSize,
4211
- orderBy,
4212
- search,
4213
- clientApiParams
4214
- }) => {
4215
- const clientApi = await GetClientAPI(clientApiParams);
4216
- const { data } = await clientApi.get(`/channels/subscribed`, {
4217
- params: {
4218
- page: pageParam || void 0,
4219
- pageSize: pageSize || void 0,
4220
- orderBy: orderBy || void 0,
4221
- search: search || void 0
4222
- }
4223
- });
4224
- return data;
4225
- };
4226
- var useGetSubscribedChannels = (params = {}, options = {}) => {
4227
- return useConnectedInfiniteQuery(
4228
- SUBSCRIBED_CHANNELS_QUERY_KEY(),
4229
- (params2) => GetSubscribedChannels({ ...params2 }),
4230
- params,
4231
- options
4232
- );
4233
- };
4234
-
4235
- // src/queries/channels/useGetChannelInterests.ts
4236
- var CHANNEL_INTERESTS_QUERY_KEY = (channelId) => [
4237
- ...CHANNEL_QUERY_KEY(channelId),
4238
- "INTERESTS"
4239
- ];
4240
- var GetChannelInterests = async ({
4241
- channelId,
4242
- pageParam,
4243
- pageSize,
4244
- orderBy,
4245
- search,
4246
- clientApiParams
4247
- }) => {
4248
- const clientApi = await GetClientAPI(clientApiParams);
4249
- const { data } = await clientApi.get(`/channels/${channelId}/interests`, {
4250
- params: {
4251
- page: pageParam || void 0,
4252
- pageSize: pageSize || void 0,
4253
- orderBy: orderBy || void 0,
4254
- search: search || void 0
4255
- }
4256
- });
4257
- return data;
4258
- };
4259
- var useGetChannelInterests = (channelId, params = {}, options = {}) => {
4260
- return useConnectedInfiniteQuery(
4261
- CHANNEL_INTERESTS_QUERY_KEY(channelId),
4262
- (params2) => GetChannelInterests({ channelId, ...params2 }),
4263
- params,
4264
- {
4265
- ...options,
4266
- enabled: !!channelId && (options?.enabled ?? true)
4267
- }
4268
- );
4269
- };
4270
-
4271
- // src/queries/contents/useGetContents.ts
4272
- var CONTENTS_QUERY_KEY = (type, featured, interest, past) => {
4273
- const key = ["CONTENTS"];
4274
- if (type) key.push(type);
4275
- if (featured) key.push("FEATURED");
4276
- if (interest) key.push(interest);
4277
- if (typeof past !== "undefined") key.push(past ? "PAST" : "UPCOMING");
4278
- return key;
4279
- };
4280
- var SET_CONTENTS_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4281
- client.setQueryData(
4282
- [
4283
- ...CONTENTS_QUERY_KEY(...keyParams),
4284
- ...GetBaseInfiniteQueryKeys(...baseKeys)
4285
- ],
4286
- setFirstPageData(response)
4287
- );
4288
- };
4289
- var GetContents = async ({
4290
- type,
4291
- featured,
4292
- interest,
4293
- past,
4294
- pageParam,
4295
- pageSize,
4296
- orderBy,
4297
- search,
4298
- clientApiParams
4299
- }) => {
4300
- const clientApi = await GetClientAPI(clientApiParams);
4301
- const { data } = await clientApi.get(`/contents`, {
4302
- params: {
4303
- type: type || void 0,
4304
- featured: typeof featured !== "undefined" ? featured ? "true" : "false" : void 0,
4305
- interest: interest || void 0,
4306
- past,
4307
- page: pageParam || void 0,
4308
- pageSize: pageSize || void 0,
4309
- orderBy: orderBy || void 0,
4310
- search: search || void 0
4311
- }
4312
- });
4313
- return data;
4314
- };
4315
- var useGetContents = (type, featured, interest, past, params = {}, options = {}) => {
4316
- return useConnectedInfiniteQuery(
4317
- CONTENTS_QUERY_KEY(type, featured, interest, past),
4318
- (params2) => GetContents({ type, featured, interest, past, ...params2 }),
4319
- params,
4320
- options
4321
- );
4322
- };
4323
-
4324
- // src/queries/contents/useGetContent.ts
4325
- var CONTENT_QUERY_KEY = (contentId) => [
4326
- ...CONTENTS_QUERY_KEY(),
4327
- contentId
4328
- ];
4329
- var SET_CONTENT_QUERY_DATA = (client, keyParams, response, baseKeys = ["en"]) => {
4330
- client.setQueryData(
4331
- [
4332
- ...CONTENT_QUERY_KEY(...keyParams),
4333
- ...GetBaseSingleQueryKeys(...baseKeys)
4334
- ],
4335
- response
4336
- );
4337
- };
4338
- var GetContent = async ({
4339
- contentId,
4340
- clientApiParams
4341
- }) => {
4342
- const clientApi = await GetClientAPI(clientApiParams);
4343
- const { data } = await clientApi.get(`/contents/${contentId}`);
4344
- return data;
4345
- };
4346
- var useGetContent = (contentId = "", options = {}) => {
4347
- return useConnectedSingleQuery_default(
4348
- CONTENT_QUERY_KEY(contentId),
4349
- (params) => GetContent({ contentId, ...params }),
4350
- {
4351
- ...options,
4352
- enabled: !!contentId && options.enabled
4353
- }
4354
- );
4355
- };
4356
-
4357
- // src/queries/contents/useGetContentInterests.ts
4358
- var CONTENT_INTERESTS_QUERY_KEY = () => {
4359
- const key = ["CONTENTS_INTERESTS"];
4360
- return key;
4361
- };
4362
- var GetContentInterests = async ({
4363
- pageParam,
4364
- pageSize,
4365
- orderBy,
4366
- search,
4367
- clientApiParams
4368
- }) => {
4369
- const clientApi = await GetClientAPI(clientApiParams);
4370
- const { data } = await clientApi.get(`/contents/interests`, {
4371
- params: {
4372
- page: pageParam || void 0,
4373
- pageSize: pageSize || void 0,
4374
- orderBy: orderBy || void 0,
4375
- search: search || void 0
4376
- }
4377
- });
4378
- return data;
4379
- };
4380
- var useGetContentInterests = (params = {}, options = {}) => {
4381
- return useConnectedInfiniteQuery(
4382
- CONTENT_INTERESTS_QUERY_KEY(),
4383
- (params2) => GetContentInterests({ ...params2 }),
4384
- params,
4385
- options
4386
- );
4387
- };
4388
-
4389
- // src/queries/contents/useGetSubscribedContents.ts
4390
- var SUBSCRIBED_CONTENTS_QUERY_KEY = (type, interest) => {
4391
- const key = ["SUBSCRIBED_CONTENTS"];
4392
- if (type) key.push(type);
4393
- if (interest) key.push(interest);
4394
- return key;
4395
- };
4396
- var GetSubscribedContents = async ({
4397
- type,
4398
- interest,
4399
- pageParam,
4400
- pageSize,
4401
- orderBy,
4402
- search,
4403
- clientApiParams
4404
- }) => {
4405
- const clientApi = await GetClientAPI(clientApiParams);
4406
- const { data } = await clientApi.get(`/contents/subscribed`, {
4407
- params: {
4408
- type: type || void 0,
4409
- interest: interest || void 0,
4410
- page: pageParam || void 0,
4411
- pageSize: pageSize || void 0,
4412
- orderBy: orderBy || void 0,
4413
- search: search || void 0
4414
- }
4415
- });
4416
- return data;
4417
- };
4418
- var useGetSubscribedContents = (type, interest, params = {}, options = {}) => {
4419
- return useConnectedInfiniteQuery(
4420
- SUBSCRIBED_CONTENTS_QUERY_KEY(interest),
4421
- (params2) => GetSubscribedContents({ interest, ...params2 }),
4422
- params,
4423
- options
4424
- );
4425
- };
4426
-
4427
- // src/queries/organization/useGetOrganization.ts
4428
- var ORGANIZATION_QUERY_KEY = () => ["ORGANIZATION"];
4429
- var GetOrganization = async ({
4430
- clientApiParams
4431
- }) => {
4432
- const clientApi = await GetClientAPI(clientApiParams);
4433
- const { data } = await clientApi.get(`/organization`);
3932
+ const { data } = await clientApi.get(`/organization`);
4434
3933
  return data;
4435
3934
  };
4436
3935
  var useGetOrganization = (options = {}) => {
@@ -8762,187 +8261,68 @@ var ConfirmBooking = async ({
8762
8261
  }) => {
8763
8262
  const clientApi = await GetClientAPI(clientApiParams);
8764
8263
  const { data } = await clientApi.post(
8765
- `/bookings/${bookingId}`
8766
- );
8767
- if (queryClient && data.status === "ok") {
8768
- queryClient.setQueryData(BOOKING_QUERY_KEY(bookingId), data);
8769
- queryClient.invalidateQueries({
8770
- queryKey: BOOKINGS_QUERY_KEY()
8771
- });
8772
- queryClient.invalidateQueries({
8773
- predicate: ({ queryKey }) => queryKey.includes("SLOTS")
8774
- });
8775
- }
8776
- return data;
8777
- };
8778
- var useConfirmBooking = (options = {}) => {
8779
- return useConnectedMutation_default(ConfirmBooking, options);
8780
- };
8781
-
8782
- // src/mutations/bookings/useDraftBooking.ts
8783
- var DraftBooking = async ({
8784
- placeId,
8785
- spaceId,
8786
- day,
8787
- time,
8788
- queryClient,
8789
- clientApiParams
8790
- }) => {
8791
- const clientApi = await GetClientAPI(clientApiParams);
8792
- const { data } = await clientApi.post(
8793
- `/bookings/places/${placeId}/spaces/${spaceId}/slots`,
8794
- { day, time }
8795
- );
8796
- if (data.status === "ok" && queryClient) {
8797
- queryClient.invalidateQueries({
8798
- queryKey: BOOKINGS_QUERY_KEY()
8799
- });
8800
- }
8801
- return data;
8802
- };
8803
- var useDraftBooking = (options = {}) => {
8804
- return useConnectedMutation_default(DraftBooking, options);
8805
- };
8806
-
8807
- // src/mutations/bookings/useDeleteDraftBooking.ts
8808
- var DeleteDraftBooking = async ({
8809
- bookingId,
8810
- clientApiParams,
8811
- queryClient
8812
- }) => {
8813
- const clientApi = await GetClientAPI(clientApiParams);
8814
- const { data } = await clientApi.delete(
8815
- `/bookings/${bookingId}`
8816
- );
8817
- if (queryClient && data.status === "ok") {
8818
- queryClient.removeQueries({ queryKey: BOOKING_QUERY_KEY(bookingId) });
8819
- }
8820
- return data;
8821
- };
8822
- var useDeleteDraftBooking = (options = {}) => {
8823
- return useConnectedMutation_default(DeleteDraftBooking, options);
8824
- };
8825
-
8826
- // src/mutations/channels/contents/useLikeContent.ts
8827
- var LikeContent = async ({
8828
- channelId,
8829
- contentId,
8830
- clientApiParams,
8831
- queryClient
8832
- }) => {
8833
- const clientApi = await GetClientAPI(clientApiParams);
8834
- const { data } = await clientApi.post(
8835
- `/channels/${channelId}/contents/${contentId}/like`
8836
- );
8837
- if (data.status === "ok" && queryClient) {
8838
- queryClient.invalidateQueries({
8839
- queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
8840
- });
8841
- }
8842
- return data;
8843
- };
8844
- var useLikeContent = (options = {}) => {
8845
- return useConnectedMutation_default(LikeContent, options);
8846
- };
8847
-
8848
- // src/mutations/channels/contents/useUnlikeContent.ts
8849
- var UnlikeContent = async ({
8850
- channelId,
8851
- contentId,
8852
- clientApiParams,
8853
- queryClient
8854
- }) => {
8855
- const clientApi = await GetClientAPI(clientApiParams);
8856
- const { data } = await clientApi.delete(
8857
- `/channels/${channelId}/contents/${contentId}/like`
8858
- );
8859
- if (data.status === "ok" && queryClient) {
8860
- queryClient.invalidateQueries({
8861
- queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
8862
- });
8863
- }
8864
- return data;
8865
- };
8866
- var useUnlikeContent = (options = {}) => {
8867
- return useConnectedMutation_default(UnlikeContent, options);
8868
- };
8869
-
8870
- // src/mutations/channels/subscriptions/useCreateChannelSubscriber.ts
8871
- var CreateChannelSubscriber = async ({
8872
- channelId,
8873
- clientApiParams,
8874
- queryClient
8875
- }) => {
8876
- const clientApi = await GetClientAPI(clientApiParams);
8877
- const { data } = await clientApi.post(
8878
- `/channels/${channelId}/subscribers`
8264
+ `/bookings/${bookingId}`
8879
8265
  );
8880
- if (data.status === "ok" && queryClient) {
8266
+ if (queryClient && data.status === "ok") {
8267
+ queryClient.setQueryData(BOOKING_QUERY_KEY(bookingId), data);
8881
8268
  queryClient.invalidateQueries({
8882
- queryKey: CHANNEL_QUERY_KEY(channelId)
8269
+ queryKey: BOOKINGS_QUERY_KEY()
8883
8270
  });
8884
8271
  queryClient.invalidateQueries({
8885
- queryKey: SUBSCRIBED_CHANNELS_QUERY_KEY()
8272
+ predicate: ({ queryKey }) => queryKey.includes("SLOTS")
8886
8273
  });
8887
- ADD_SELF_RELATIONSHIP(
8888
- queryClient,
8889
- [clientApiParams.locale],
8890
- "channels",
8891
- channelId
8892
- );
8893
8274
  }
8894
8275
  return data;
8895
8276
  };
8896
- var useCreateChannelSubscriber = (options = {}) => {
8897
- return useConnectedMutation_default(CreateChannelSubscriber, options);
8277
+ var useConfirmBooking = (options = {}) => {
8278
+ return useConnectedMutation_default(ConfirmBooking, options);
8898
8279
  };
8899
8280
 
8900
- // src/mutations/channels/subscriptions/useDeleteChannelSubscriber.ts
8901
- var DeleteChannelSubscriber = async ({
8902
- channelId,
8903
- clientApiParams,
8904
- queryClient
8281
+ // src/mutations/bookings/useDraftBooking.ts
8282
+ var DraftBooking = async ({
8283
+ placeId,
8284
+ spaceId,
8285
+ day,
8286
+ time,
8287
+ queryClient,
8288
+ clientApiParams
8905
8289
  }) => {
8906
8290
  const clientApi = await GetClientAPI(clientApiParams);
8907
- const { data } = await clientApi.delete(`/channels/${channelId}/subscribers`);
8291
+ const { data } = await clientApi.post(
8292
+ `/bookings/places/${placeId}/spaces/${spaceId}/slots`,
8293
+ { day, time }
8294
+ );
8908
8295
  if (data.status === "ok" && queryClient) {
8909
8296
  queryClient.invalidateQueries({
8910
- queryKey: CHANNEL_QUERY_KEY(channelId)
8911
- });
8912
- queryClient.invalidateQueries({
8913
- queryKey: SUBSCRIBED_CHANNELS_QUERY_KEY()
8297
+ queryKey: BOOKINGS_QUERY_KEY()
8914
8298
  });
8915
- REMOVE_SELF_RELATIONSHIP(
8916
- queryClient,
8917
- [clientApiParams.locale],
8918
- "channels",
8919
- channelId
8920
- );
8921
8299
  }
8922
8300
  return data;
8923
8301
  };
8924
- var useDeleteChannelSubscriber = (options = {}) => {
8925
- return useConnectedMutation_default(DeleteChannelSubscriber, options);
8302
+ var useDraftBooking = (options = {}) => {
8303
+ return useConnectedMutation_default(DraftBooking, options);
8926
8304
  };
8927
8305
 
8928
- // src/mutations/channels/subscriptions/useUpdateChannelSubscriber.ts
8929
- var UpdateChannelSubscriber = async ({
8930
- channelId,
8931
- channelSubscriber,
8932
- clientApiParams
8306
+ // src/mutations/bookings/useDeleteDraftBooking.ts
8307
+ var DeleteDraftBooking = async ({
8308
+ bookingId,
8309
+ clientApiParams,
8310
+ queryClient
8933
8311
  }) => {
8934
8312
  const clientApi = await GetClientAPI(clientApiParams);
8935
- const { data } = await clientApi.put(
8936
- `/channels/${channelId}/subscribers`,
8937
- channelSubscriber
8313
+ const { data } = await clientApi.delete(
8314
+ `/bookings/${bookingId}`
8938
8315
  );
8316
+ if (queryClient && data.status === "ok") {
8317
+ queryClient.removeQueries({ queryKey: BOOKING_QUERY_KEY(bookingId) });
8318
+ }
8939
8319
  return data;
8940
8320
  };
8941
- var useUpdateChannelSubscriber = (options = {}) => {
8942
- return useConnectedMutation_default(UpdateChannelSubscriber, options);
8321
+ var useDeleteDraftBooking = (options = {}) => {
8322
+ return useConnectedMutation_default(DeleteDraftBooking, options);
8943
8323
  };
8944
8324
 
8945
- // src/mutations/channels/managed/collections/contents/useAddChannelCollectionContent.ts
8325
+ // src/mutations/channels/collections/contents/useAddChannelCollectionContent.ts
8946
8326
  var AddChannelCollectionContent = async ({
8947
8327
  channelId,
8948
8328
  collectionId,
@@ -8952,7 +8332,7 @@ var AddChannelCollectionContent = async ({
8952
8332
  }) => {
8953
8333
  const clientApi = await GetClientAPI(clientApiParams);
8954
8334
  const { data } = await clientApi.post(
8955
- `/channels/managed/${channelId}/collections/${collectionId}/contents/${contentId}`
8335
+ `/channels/${channelId}/collections/${collectionId}/contents/${contentId}`
8956
8336
  );
8957
8337
  if (queryClient && data.status === "ok") {
8958
8338
  queryClient.invalidateQueries({
@@ -8965,7 +8345,7 @@ var useAddChannelCollectionContent = (options = {}) => {
8965
8345
  return useConnectedMutation_default(AddChannelCollectionContent, options);
8966
8346
  };
8967
8347
 
8968
- // src/mutations/channels/managed/collections/contents/useRemoveChannelCollectionContent.ts
8348
+ // src/mutations/channels/collections/contents/useRemoveChannelCollectionContent.ts
8969
8349
  var RemoveChannelCollectionContent = async ({
8970
8350
  channelId,
8971
8351
  collectionId,
@@ -8975,7 +8355,7 @@ var RemoveChannelCollectionContent = async ({
8975
8355
  }) => {
8976
8356
  const clientApi = await GetClientAPI(clientApiParams);
8977
8357
  const { data } = await clientApi.delete(
8978
- `/channels/managed/${channelId}/collections/${collectionId}/contents/${contentId}`
8358
+ `/channels/${channelId}/collections/${collectionId}/contents/${contentId}`
8979
8359
  );
8980
8360
  if (queryClient && data.status === "ok") {
8981
8361
  queryClient.invalidateQueries({
@@ -8988,7 +8368,7 @@ var useRemoveChannelCollectionContent = (options = {}) => {
8988
8368
  return useConnectedMutation_default(RemoveChannelCollectionContent, options);
8989
8369
  };
8990
8370
 
8991
- // src/mutations/channels/managed/collections/useCreateChannelCollection.ts
8371
+ // src/mutations/channels/collections/useCreateChannelCollection.ts
8992
8372
  var CreateChannelCollection = async ({
8993
8373
  channelId,
8994
8374
  collection,
@@ -8997,7 +8377,7 @@ var CreateChannelCollection = async ({
8997
8377
  }) => {
8998
8378
  const clientApi = await GetClientAPI(clientApiParams);
8999
8379
  const { data } = await clientApi.post(
9000
- `/channels/managed/${channelId}/collections`,
8380
+ `/channels/${channelId}/collections`,
9001
8381
  collection
9002
8382
  );
9003
8383
  if (queryClient && data.status === "ok") {
@@ -9011,7 +8391,7 @@ var useCreateChannelCollection = (options = {}) => {
9011
8391
  return useConnectedMutation_default(CreateChannelCollection, options);
9012
8392
  };
9013
8393
 
9014
- // src/mutations/channels/managed/collections/useDeleteChannelCollection.ts
8394
+ // src/mutations/channels/collections/useDeleteChannelCollection.ts
9015
8395
  var DeleteChannelCollection = async ({
9016
8396
  channelId,
9017
8397
  collectionId,
@@ -9019,9 +8399,7 @@ var DeleteChannelCollection = async ({
9019
8399
  queryClient
9020
8400
  }) => {
9021
8401
  const clientApi = await GetClientAPI(clientApiParams);
9022
- const { data } = await clientApi.post(
9023
- `/channels/managed/${channelId}/collections/${collectionId}`
9024
- );
8402
+ const { data } = await clientApi.delete(`/channels/${channelId}/collections/${collectionId}`);
9025
8403
  if (queryClient && data.status === "ok") {
9026
8404
  queryClient.removeQueries({
9027
8405
  queryKey: CHANNEL_COLLECTION_QUERY_KEY(channelId, collectionId)
@@ -9036,7 +8414,7 @@ var useDeleteChannelCollection = (options = {}) => {
9036
8414
  return useConnectedMutation_default(DeleteChannelCollection, options);
9037
8415
  };
9038
8416
 
9039
- // src/mutations/channels/managed/collections/useUpdateChannelCollection.ts
8417
+ // src/mutations/channels/collections/useUpdateChannelCollection.ts
9040
8418
  var UpdateChannelCollection = async ({
9041
8419
  channelId,
9042
8420
  collection,
@@ -9046,7 +8424,7 @@ var UpdateChannelCollection = async ({
9046
8424
  }) => {
9047
8425
  const clientApi = await GetClientAPI(clientApiParams);
9048
8426
  const { data } = await clientApi.post(
9049
- `/channels/managed/${channelId}/collections/${collectionId}`,
8427
+ `/channels/${channelId}/collections/${collectionId}`,
9050
8428
  collection
9051
8429
  );
9052
8430
  if (queryClient && data.status === "ok") {
@@ -9066,7 +8444,7 @@ var useUpdateChannelCollection = (options = {}) => {
9066
8444
  return useConnectedMutation_default(UpdateChannelCollection, options);
9067
8445
  };
9068
8446
 
9069
- // src/mutations/channels/managed/contents/guests/useCreateContentGuest.ts
8447
+ // src/mutations/channels/contents/guests/useCreateContentGuest.ts
9070
8448
  var CreateContentGuest = async ({
9071
8449
  channelId,
9072
8450
  contentId,
@@ -9077,22 +8455,16 @@ var CreateContentGuest = async ({
9077
8455
  }) => {
9078
8456
  const clientApi = await GetClientAPI(clientApiParams);
9079
8457
  const { data } = await clientApi.post(
9080
- `/channels/managed/${channelId}/contents/${contentId}/guests`,
8458
+ `/channels/${channelId}/contents/${contentId}/guests`,
9081
8459
  { contentGuest: guest, imageDataUri }
9082
8460
  );
9083
8461
  if (queryClient && data.status === "ok") {
9084
8462
  queryClient.invalidateQueries({
9085
8463
  queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9086
8464
  });
9087
- queryClient.invalidateQueries({
9088
- queryKey: CONTENT_QUERY_KEY(contentId)
9089
- });
9090
8465
  queryClient.invalidateQueries({
9091
8466
  queryKey: CHANNEL_CONTENT_GUESTS_QUERY_KEY(channelId, contentId)
9092
8467
  });
9093
- queryClient.invalidateQueries({
9094
- queryKey: MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9095
- });
9096
8468
  }
9097
8469
  return data;
9098
8470
  };
@@ -9100,7 +8472,7 @@ var useCreateContentGuest = (options = {}) => {
9100
8472
  return useConnectedMutation_default(CreateContentGuest, options);
9101
8473
  };
9102
8474
 
9103
- // src/mutations/channels/managed/contents/guests/useUpdateContentGuest.ts
8475
+ // src/mutations/channels/contents/guests/useUpdateContentGuest.ts
9104
8476
  var UpdateContentGuest = async ({
9105
8477
  channelId,
9106
8478
  contentId,
@@ -9112,16 +8484,13 @@ var UpdateContentGuest = async ({
9112
8484
  }) => {
9113
8485
  const clientApi = await GetClientAPI(clientApiParams);
9114
8486
  const { data } = await clientApi.put(
9115
- `/channels/managed/${channelId}/contents/${contentId}/guests/${guestId}`,
8487
+ `/channels/${channelId}/contents/${contentId}/guests/${guestId}`,
9116
8488
  { contentGuest: guest, imageDataUri }
9117
8489
  );
9118
8490
  if (queryClient && data.status === "ok") {
9119
8491
  queryClient.invalidateQueries({
9120
8492
  queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9121
8493
  });
9122
- queryClient.invalidateQueries({
9123
- queryKey: CONTENT_QUERY_KEY(contentId)
9124
- });
9125
8494
  queryClient.invalidateQueries({
9126
8495
  queryKey: CHANNEL_CONTENT_GUESTS_QUERY_KEY(channelId, contentId)
9127
8496
  });
@@ -9132,7 +8501,7 @@ var useUpdateContentGuest = (options = {}) => {
9132
8501
  return useConnectedMutation_default(UpdateContentGuest, options);
9133
8502
  };
9134
8503
 
9135
- // src/mutations/channels/managed/contents/guests/useDeleteContentGuest.ts
8504
+ // src/mutations/channels/contents/guests/useDeleteContentGuest.ts
9136
8505
  var DeleteContentGuest = async ({
9137
8506
  channelId,
9138
8507
  contentId,
@@ -9142,18 +8511,12 @@ var DeleteContentGuest = async ({
9142
8511
  }) => {
9143
8512
  const clientApi = await GetClientAPI(clientApiParams);
9144
8513
  const { data } = await clientApi.delete(
9145
- `/channels/managed/${channelId}/contents/${contentId}/guests/${guestId}`
8514
+ `/channels/${channelId}/contents/${contentId}/guests/${guestId}`
9146
8515
  );
9147
8516
  if (queryClient && data.status === "ok") {
9148
8517
  queryClient.invalidateQueries({
9149
8518
  queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9150
8519
  });
9151
- queryClient.invalidateQueries({
9152
- queryKey: MANAGED_CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9153
- });
9154
- queryClient.invalidateQueries({
9155
- queryKey: CONTENT_QUERY_KEY(contentId)
9156
- });
9157
8520
  queryClient.invalidateQueries({
9158
8521
  queryKey: CHANNEL_CONTENT_GUESTS_QUERY_KEY(channelId, contentId)
9159
8522
  });
@@ -9164,7 +8527,7 @@ var useDeleteContentGuest = (options = {}) => {
9164
8527
  return useConnectedMutation_default(DeleteContentGuest, options);
9165
8528
  };
9166
8529
 
9167
- // src/mutations/channels/managed/contents/interests/useAddContentInterest.ts
8530
+ // src/mutations/channels/contents/interests/useAddContentInterest.ts
9168
8531
  var AddContentInterest = async ({
9169
8532
  channelId,
9170
8533
  contentId,
@@ -9173,7 +8536,7 @@ var AddContentInterest = async ({
9173
8536
  }) => {
9174
8537
  const clientApi = await GetClientAPI(clientApiParams);
9175
8538
  const { data } = await clientApi.post(
9176
- `/channels/managed/${channelId}/contents/${contentId}/interests`,
8539
+ `/channels/${channelId}/contents/${contentId}/interests`,
9177
8540
  interest
9178
8541
  );
9179
8542
  return data;
@@ -9182,7 +8545,7 @@ var useAddContentInterest = (options = {}) => {
9182
8545
  return useConnectedMutation_default(AddContentInterest, options);
9183
8546
  };
9184
8547
 
9185
- // src/mutations/channels/managed/contents/interests/useRemoveContentInterest.ts
8548
+ // src/mutations/channels/contents/interests/useRemoveContentInterest.ts
9186
8549
  var RemoveContentInterest = async ({
9187
8550
  channelId,
9188
8551
  contentId,
@@ -9190,8 +8553,8 @@ var RemoveContentInterest = async ({
9190
8553
  clientApiParams
9191
8554
  }) => {
9192
8555
  const clientApi = await GetClientAPI(clientApiParams);
9193
- const { data } = await clientApi.post(
9194
- `/channels/managed/${channelId}/contents/${contentId}/interests/${interestId}`
8556
+ const { data } = await clientApi.delete(
8557
+ `/channels/${channelId}/contents/${contentId}/interests/${interestId}`
9195
8558
  );
9196
8559
  return data;
9197
8560
  };
@@ -9199,7 +8562,7 @@ var useRemoveContentInterest = (options = {}) => {
9199
8562
  return useConnectedMutation_default(RemoveContentInterest, options);
9200
8563
  };
9201
8564
 
9202
- // src/mutations/channels/managed/contents/schedule/useCancelContentPublishSchedule.ts
8565
+ // src/mutations/channels/contents/useCancelContentPublishSchedule.ts
9203
8566
  var DeleteContentPublishSchedule = async ({
9204
8567
  channelId,
9205
8568
  contentId,
@@ -9207,7 +8570,7 @@ var DeleteContentPublishSchedule = async ({
9207
8570
  }) => {
9208
8571
  const clientApi = await GetClientAPI(clientApiParams);
9209
8572
  const { data } = await clientApi.delete(
9210
- `/channels/managed/${channelId}/contents/${contentId}/schedule`
8573
+ `/channels/${channelId}/contents/${contentId}/schedule`
9211
8574
  );
9212
8575
  return data;
9213
8576
  };
@@ -9215,7 +8578,68 @@ var useDeleteContentPublishSchedule = (options = {}) => {
9215
8578
  return useConnectedMutation_default(DeleteContentPublishSchedule, options);
9216
8579
  };
9217
8580
 
9218
- // src/mutations/channels/managed/contents/schedule/useSetContentPublishSchedule.ts
8581
+ // src/mutations/channels/contents/useCreateChannelContent.ts
8582
+ var CreateChannelContent = async ({
8583
+ channelId,
8584
+ content,
8585
+ clientApiParams,
8586
+ queryClient
8587
+ }) => {
8588
+ const clientApi = await GetClientAPI(clientApiParams);
8589
+ const { data } = await clientApi.post(
8590
+ `/channels/${channelId}/contents`,
8591
+ content
8592
+ );
8593
+ if (queryClient && data.status === "ok") {
8594
+ queryClient.invalidateQueries({
8595
+ queryKey: CHANNEL_CONTENTS_QUERY_KEY(channelId)
8596
+ });
8597
+ }
8598
+ return data;
8599
+ };
8600
+ var useCreateChannelContent = (options = {}) => {
8601
+ return useConnectedMutation_default(CreateChannelContent, options);
8602
+ };
8603
+
8604
+ // src/mutations/channels/contents/useDeleteChannelContent.ts
8605
+ var DeleteChannelContent = async ({
8606
+ channelId,
8607
+ contentId,
8608
+ clientApiParams
8609
+ }) => {
8610
+ const clientApi = await GetClientAPI(clientApiParams);
8611
+ const { data } = await clientApi.delete(
8612
+ `/channels/${channelId}/contents/${contentId}`
8613
+ );
8614
+ return data;
8615
+ };
8616
+ var useDeleteChannelContent = (options = {}) => {
8617
+ return useConnectedMutation_default(DeleteChannelContent, options);
8618
+ };
8619
+
8620
+ // src/mutations/channels/contents/useLikeContent.ts
8621
+ var LikeContent = async ({
8622
+ channelId,
8623
+ contentId,
8624
+ clientApiParams,
8625
+ queryClient
8626
+ }) => {
8627
+ const clientApi = await GetClientAPI(clientApiParams);
8628
+ const { data } = await clientApi.post(
8629
+ `/channels/${channelId}/contents/${contentId}/like`
8630
+ );
8631
+ if (data.status === "ok" && queryClient) {
8632
+ queryClient.invalidateQueries({
8633
+ queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
8634
+ });
8635
+ }
8636
+ return data;
8637
+ };
8638
+ var useLikeContent = (options = {}) => {
8639
+ return useConnectedMutation_default(LikeContent, options);
8640
+ };
8641
+
8642
+ // src/mutations/channels/contents/useSetContentPublishSchedule.ts
9219
8643
  var SetContentPublishSchedule = async ({
9220
8644
  channelId,
9221
8645
  contentId,
@@ -9227,7 +8651,7 @@ var SetContentPublishSchedule = async ({
9227
8651
  }) => {
9228
8652
  const clientApi = await GetClientAPI(clientApiParams);
9229
8653
  const { data } = await clientApi.post(
9230
- `/channels/managed/${channelId}/contents/${contentId}/schedule`,
8654
+ `/channels/${channelId}/contents/${contentId}/schedule`,
9231
8655
  {
9232
8656
  date,
9233
8657
  email,
@@ -9241,30 +8665,29 @@ var useSetContentPublishSchedule = (options = {}) => {
9241
8665
  return useConnectedMutation_default(SetContentPublishSchedule, options);
9242
8666
  };
9243
8667
 
9244
- // src/mutations/channels/managed/contents/useCreateChannelContent.ts
9245
- var CreateChannelContent = async ({
8668
+ // src/mutations/channels/contents/useUnlikeContent.ts
8669
+ var UnlikeContent = async ({
9246
8670
  channelId,
9247
- content,
8671
+ contentId,
9248
8672
  clientApiParams,
9249
8673
  queryClient
9250
8674
  }) => {
9251
8675
  const clientApi = await GetClientAPI(clientApiParams);
9252
- const { data } = await clientApi.post(
9253
- `/channels/managed/${channelId}/contents`,
9254
- content
8676
+ const { data } = await clientApi.delete(
8677
+ `/channels/${channelId}/contents/${contentId}/like`
9255
8678
  );
9256
- if (queryClient && data.status === "ok") {
8679
+ if (data.status === "ok" && queryClient) {
9257
8680
  queryClient.invalidateQueries({
9258
- queryKey: MANAGED_CHANNEL_CONTENTS_QUERY_KEY(channelId)
8681
+ queryKey: CHANNEL_CONTENT_QUERY_KEY(channelId, contentId)
9259
8682
  });
9260
8683
  }
9261
8684
  return data;
9262
8685
  };
9263
- var useCreateChannelContent = (options = {}) => {
9264
- return useConnectedMutation_default(CreateChannelContent, options);
8686
+ var useUnlikeContent = (options = {}) => {
8687
+ return useConnectedMutation_default(UnlikeContent, options);
9265
8688
  };
9266
8689
 
9267
- // src/mutations/channels/managed/contents/useUpdateChannelContent.ts
8690
+ // src/mutations/channels/contents/useUpdateChannelContent.ts
9268
8691
  var UpdateChannelContent = async ({
9269
8692
  channelId,
9270
8693
  contentId,
@@ -9275,28 +8698,16 @@ var UpdateChannelContent = async ({
9275
8698
  }) => {
9276
8699
  const clientApi = await GetClientAPI(clientApiParams);
9277
8700
  const { data } = await clientApi.put(
9278
- `/channels/managed/${channelId}/contents/${contentId}`,
8701
+ `/channels/${channelId}/contents/${contentId}`,
9279
8702
  {
9280
8703
  content,
9281
8704
  imageDataUri
9282
8705
  }
9283
8706
  );
9284
8707
  if (queryClient && data.status === "ok") {
9285
- SET_MANAGED_CHANNEL_CONTENT_QUERY_DATA(
9286
- queryClient,
9287
- [channelId, contentId],
9288
- data,
9289
- [clientApiParams.locale]
9290
- );
9291
8708
  SET_CHANNEL_CONTENT_QUERY_DATA(queryClient, [channelId, contentId], data, [
9292
8709
  clientApiParams.locale
9293
8710
  ]);
9294
- SET_CONTENT_QUERY_DATA(queryClient, [contentId], data, [
9295
- clientApiParams.locale
9296
- ]);
9297
- queryClient.invalidateQueries({
9298
- queryKey: MANAGED_CHANNEL_CONTENTS_QUERY_KEY(channelId)
9299
- });
9300
8711
  queryClient.invalidateQueries({
9301
8712
  queryKey: CHANNEL_CONTENTS_QUERY_KEY(channelId)
9302
8713
  });
@@ -9310,78 +8721,115 @@ var useUpdateChannelContent = (options = {}) => {
9310
8721
  return useConnectedMutation_default(UpdateChannelContent, options);
9311
8722
  };
9312
8723
 
9313
- // src/mutations/channels/managed/contents/useDeleteChannelContent.ts
9314
- var DeleteChannelContent = async ({
8724
+ // src/mutations/channels/interests/useCreateChannelInterest.ts
8725
+ var AddChannelInterest = async ({
9315
8726
  channelId,
9316
- contentId,
8727
+ interest,
9317
8728
  clientApiParams
9318
8729
  }) => {
9319
8730
  const clientApi = await GetClientAPI(clientApiParams);
9320
- const { data } = await clientApi.delete(
9321
- `/channels/managed/${channelId}/contents/${contentId}`
8731
+ const { data } = await clientApi.post(
8732
+ `/channels/${channelId}/interests`,
8733
+ interest
9322
8734
  );
9323
8735
  return data;
9324
8736
  };
9325
- var useDeleteChannelContent = (options = {}) => {
9326
- return useConnectedMutation_default(DeleteChannelContent, options);
8737
+ var useAddChannelInterest = (options = {}) => {
8738
+ return useConnectedMutation_default(AddChannelInterest, options);
9327
8739
  };
9328
8740
 
9329
- // src/mutations/channels/managed/contents/useUploadChannelContentImage.ts
9330
- var UploadChannelContentImage = async ({
8741
+ // src/mutations/channels/interests/useDeleteChannelInterest.ts
8742
+ var RemoveChannelInterest = async ({
9331
8743
  channelId,
9332
- contentId,
9333
- imageDataUri,
9334
- filename,
8744
+ interestId,
9335
8745
  clientApiParams
9336
8746
  }) => {
9337
8747
  const clientApi = await GetClientAPI(clientApiParams);
9338
- const { data } = await clientApi.post(
9339
- `/channels/managed/${channelId}/contents/${contentId}/image`,
9340
- {
9341
- imageDataUri,
9342
- filename
9343
- }
8748
+ const { data } = await clientApi.delete(
8749
+ `/channels/${channelId}/interests/${interestId}`
9344
8750
  );
9345
8751
  return data;
9346
8752
  };
9347
- var useUploadChannelContentImage = (options = {}) => {
9348
- return useConnectedMutation_default(UploadChannelContentImage, options);
8753
+ var useRemoveChannelInterest = (options = {}) => {
8754
+ return useConnectedMutation_default(RemoveChannelInterest, options);
9349
8755
  };
9350
8756
 
9351
- // src/mutations/channels/managed/interests/useAddChannelInterest.ts
9352
- var AddChannelInterest = async ({
8757
+ // src/mutations/channels/subscribers/useCreateChannelSubscriber.ts
8758
+ var CreateChannelSubscriber = async ({
9353
8759
  channelId,
9354
- interest,
9355
- clientApiParams
8760
+ clientApiParams,
8761
+ queryClient
9356
8762
  }) => {
9357
8763
  const clientApi = await GetClientAPI(clientApiParams);
9358
8764
  const { data } = await clientApi.post(
9359
- `/channels/managed/${channelId}/interests`,
9360
- interest
8765
+ `/channels/${channelId}/subscribers`
9361
8766
  );
8767
+ if (data.status === "ok" && queryClient) {
8768
+ queryClient.invalidateQueries({
8769
+ queryKey: CHANNEL_QUERY_KEY(channelId)
8770
+ });
8771
+ queryClient.invalidateQueries({
8772
+ queryKey: SUBSCRIBED_CHANNELS_QUERY_KEY()
8773
+ });
8774
+ ADD_SELF_RELATIONSHIP(
8775
+ queryClient,
8776
+ [clientApiParams.locale],
8777
+ "channels",
8778
+ channelId
8779
+ );
8780
+ }
9362
8781
  return data;
9363
8782
  };
9364
- var useAddChannelInterest = (options = {}) => {
9365
- return useConnectedMutation_default(AddChannelInterest, options);
8783
+ var useCreateChannelSubscriber = (options = {}) => {
8784
+ return useConnectedMutation_default(CreateChannelSubscriber, options);
9366
8785
  };
9367
8786
 
9368
- // src/mutations/channels/managed/interests/useRemoveChannelInterest.ts
9369
- var RemoveChannelInterest = async ({
8787
+ // src/mutations/channels/subscribers/useUpdateChannelSubscriber.ts
8788
+ var UpdateChannelSubscriber = async ({
9370
8789
  channelId,
9371
- interestId,
8790
+ channelSubscriber,
9372
8791
  clientApiParams
9373
8792
  }) => {
9374
8793
  const clientApi = await GetClientAPI(clientApiParams);
9375
- const { data } = await clientApi.post(
9376
- `/channels/managed/${channelId}/interests/${interestId}`
8794
+ const { data } = await clientApi.put(
8795
+ `/channels/${channelId}/subscribers`,
8796
+ channelSubscriber
9377
8797
  );
9378
8798
  return data;
9379
8799
  };
9380
- var useRemoveChannelInterest = (options = {}) => {
9381
- return useConnectedMutation_default(RemoveChannelInterest, options);
8800
+ var useUpdateChannelSubscriber = (options = {}) => {
8801
+ return useConnectedMutation_default(UpdateChannelSubscriber, options);
8802
+ };
8803
+
8804
+ // src/mutations/channels/subscribers/useDeleteChannelSubscriber.ts
8805
+ var DeleteChannelSubscriber = async ({
8806
+ channelId,
8807
+ clientApiParams,
8808
+ queryClient
8809
+ }) => {
8810
+ const clientApi = await GetClientAPI(clientApiParams);
8811
+ const { data } = await clientApi.delete(`/channels/${channelId}/subscribers`);
8812
+ if (data.status === "ok" && queryClient) {
8813
+ queryClient.invalidateQueries({
8814
+ queryKey: CHANNEL_QUERY_KEY(channelId)
8815
+ });
8816
+ queryClient.invalidateQueries({
8817
+ queryKey: SUBSCRIBED_CHANNELS_QUERY_KEY()
8818
+ });
8819
+ REMOVE_SELF_RELATIONSHIP(
8820
+ queryClient,
8821
+ [clientApiParams.locale],
8822
+ "channels",
8823
+ channelId
8824
+ );
8825
+ }
8826
+ return data;
8827
+ };
8828
+ var useDeleteChannelSubscriber = (options = {}) => {
8829
+ return useConnectedMutation_default(DeleteChannelSubscriber, options);
9382
8830
  };
9383
8831
 
9384
- // src/mutations/channels/managed/useCreateChannel.ts
8832
+ // src/mutations/channels/useCreateChannel.ts
9385
8833
  var CreateChannel = async ({
9386
8834
  channel,
9387
8835
  imageDataUri,
@@ -9389,7 +8837,7 @@ var CreateChannel = async ({
9389
8837
  }) => {
9390
8838
  const clientApi = await GetClientAPI(clientApiParams);
9391
8839
  const { data } = await clientApi.post(
9392
- `/channels/managed`,
8840
+ `/channels`,
9393
8841
  {
9394
8842
  channel,
9395
8843
  imageDataUri: imageDataUri || void 0
@@ -9401,14 +8849,14 @@ var useCreateChannel = (options = {}) => {
9401
8849
  return useConnectedMutation_default(CreateChannel, options);
9402
8850
  };
9403
8851
 
9404
- // src/mutations/channels/managed/useDeleteChannel.ts
8852
+ // src/mutations/channels/useDeleteChannel.ts
9405
8853
  var DeleteChannel = async ({
9406
8854
  channelId,
9407
8855
  clientApiParams
9408
8856
  }) => {
9409
8857
  const clientApi = await GetClientAPI(clientApiParams);
9410
8858
  const { data } = await clientApi.delete(
9411
- `/channels/managed/${channelId}`
8859
+ `/channels/${channelId}`
9412
8860
  );
9413
8861
  return data;
9414
8862
  };
@@ -9416,7 +8864,7 @@ var useDeleteChannel = (options = {}) => {
9416
8864
  return useConnectedMutation_default(DeleteChannel, options);
9417
8865
  };
9418
8866
 
9419
- // src/mutations/channels/managed/useUpdateChannel.ts
8867
+ // src/mutations/channels/useUpdateChannel.ts
9420
8868
  var UpdateChannel = async ({
9421
8869
  channelId,
9422
8870
  channel,
@@ -9426,14 +8874,13 @@ var UpdateChannel = async ({
9426
8874
  }) => {
9427
8875
  const clientApi = await GetClientAPI(clientApiParams);
9428
8876
  const { data } = await clientApi.put(
9429
- `/channels/managed/${channelId}`,
8877
+ `/channels/${channelId}`,
9430
8878
  {
9431
8879
  channel,
9432
8880
  imageDataUri: imageDataUri || void 0
9433
8881
  }
9434
8882
  );
9435
8883
  if (queryClient && data.status === "ok") {
9436
- SET_MANAGED_CHANNEL_QUERY_DATA(queryClient, [channelId], data);
9437
8884
  if (data.data) SET_CHANNEL_QUERY_DATA(queryClient, [channelId], data);
9438
8885
  }
9439
8886
  return data;
@@ -12325,9 +11772,8 @@ export {
12325
11772
  CHANNEL_CONTENT_QUERY_KEY,
12326
11773
  CHANNEL_INTERESTS_QUERY_KEY,
12327
11774
  CHANNEL_QUERY_KEY,
11775
+ CHANNEL_SUBSCRIBERS_QUERY_KEY,
12328
11776
  CONTENTS_QUERY_KEY,
12329
- CONTENT_INTERESTS_QUERY_KEY,
12330
- CONTENT_QUERY_KEY,
12331
11777
  CUSTOM_ERROR_CODES,
12332
11778
  CancelBooking,
12333
11779
  CancelGroupInvitation,
@@ -12397,6 +11843,7 @@ export {
12397
11843
  ERR_KNOWN_ERROR,
12398
11844
  ERR_NOT_EVENT_REGISTERED,
12399
11845
  ERR_NOT_GROUP_MEMBER,
11846
+ ERR_PRIVATE_CHANNEL,
12400
11847
  ERR_REGISTRATION_UNAVAILABLE,
12401
11848
  ERR_SUBSCRIPTION_REQUIRED,
12402
11849
  ERR_TIER_REQUIRED,
@@ -12484,10 +11931,9 @@ export {
12484
11931
  GetChannelContentInterests,
12485
11932
  GetChannelContents,
12486
11933
  GetChannelInterests,
11934
+ GetChannelSubscribers,
12487
11935
  GetChannels,
12488
11936
  GetClientAPI,
12489
- GetContent,
12490
- GetContentInterests,
12491
11937
  GetContents,
12492
11938
  GetErrorMessage,
12493
11939
  GetEvent,
@@ -12546,18 +11992,6 @@ export {
12546
11992
  GetLevels,
12547
11993
  GetLinkPreview,
12548
11994
  GetListingAttendeePassQuestionSections,
12549
- GetManagedChannel,
12550
- GetManagedChannelCollection,
12551
- GetManagedChannelCollectionContents,
12552
- GetManagedChannelCollections,
12553
- GetManagedChannelContent,
12554
- GetManagedChannelContentActivities,
12555
- GetManagedChannelContentGuests,
12556
- GetManagedChannelContentInterests,
12557
- GetManagedChannelContents,
12558
- GetManagedChannelInterests,
12559
- GetManagedChannelSubscribers,
12560
- GetManagedChannels,
12561
11995
  GetOrganization,
12562
11996
  GetOrganizationConfig,
12563
11997
  GetOrganizationExplore,
@@ -12686,18 +12120,6 @@ export {
12686
12120
  LeaveSelfChatChannel,
12687
12121
  LikeActivity,
12688
12122
  LikeContent,
12689
- MANAGED_CHANNELS_QUERY_KEY,
12690
- MANAGED_CHANNEL_COLLECTIONS_QUERY_KEY,
12691
- MANAGED_CHANNEL_COLLECTION_CONTENTS_QUERY_KEY,
12692
- MANAGED_CHANNEL_COLLECTION_QUERY_KEY,
12693
- MANAGED_CHANNEL_CONTENTS_QUERY_KEY,
12694
- MANAGED_CHANNEL_CONTENT_ACTIVITIES_QUERY_KEY,
12695
- MANAGED_CHANNEL_CONTENT_GUESTS_QUERY_KEY,
12696
- MANAGED_CHANNEL_CONTENT_INTERESTS_QUERY_KEY,
12697
- MANAGED_CHANNEL_CONTENT_QUERY_KEY,
12698
- MANAGED_CHANNEL_INTERESTS_QUERY_KEY,
12699
- MANAGED_CHANNEL_QUERY_KEY,
12700
- MANAGED_CHANNEL_SUBSCRIBERS_QUERY_KEY,
12701
12123
  MergeInfinitePages,
12702
12124
  NotificationType,
12703
12125
  ORGANIZATION_CONFIG_QUERY_KEY,
@@ -12817,9 +12239,9 @@ export {
12817
12239
  SET_CHANNEL_CONTENTS_QUERY_DATA,
12818
12240
  SET_CHANNEL_CONTENT_QUERY_DATA,
12819
12241
  SET_CHANNEL_QUERY_DATA,
12242
+ SET_CHANNEL_SUBSCRIBERS_QUERY_DATA,
12820
12243
  SET_CONTENTS_QUERY_DATA,
12821
12244
  SET_CONTENT_ACTIVITIES_QUERY_DATA,
12822
- SET_CONTENT_QUERY_DATA,
12823
12245
  SET_EVENTS_FEATURED_QUERY_DATA,
12824
12246
  SET_EVENTS_QUERY_DATA,
12825
12247
  SET_EVENT_ACTIVATIONS_QUERY_DATA,
@@ -12870,14 +12292,6 @@ export {
12870
12292
  SET_LISTING_EMAIL_QUERY_DATA,
12871
12293
  SET_LISTING_PASS_QUERY_KEY,
12872
12294
  SET_LISTING_QUERY_DATA,
12873
- SET_MANAGED_CHANNELS_QUERY_DATA,
12874
- SET_MANAGED_CHANNEL_COLLECTIONS_QUERY_DATA,
12875
- SET_MANAGED_CHANNEL_COLLECTION_QUERY_DATA,
12876
- SET_MANAGED_CHANNEL_CONTENTS_QUERY_DATA,
12877
- SET_MANAGED_CHANNEL_CONTENT_QUERY_DATA,
12878
- SET_MANAGED_CHANNEL_QUERY_DATA,
12879
- SET_MANAGED_CHANNEL_SUBSCRIBERS_QUERY_DATA,
12880
- SET_MANAGED_CONTENT_ACTIVITIES_QUERY_DATA,
12881
12295
  SET_ORGANIZATION_PAGE_QUERY_DATA,
12882
12296
  SET_PUSH_DEVICE_QUERY_DATA,
12883
12297
  SET_SELF_CHAT_CHANNELS_QUERY_DATA,
@@ -12988,7 +12402,6 @@ export {
12988
12402
  UpdateThreadCircle,
12989
12403
  UpdateThreadCircleAccount,
12990
12404
  UpdateThreadMessage,
12991
- UploadChannelContentImage,
12992
12405
  UploadFile,
12993
12406
  UploadImage,
12994
12407
  UploadVideo,
@@ -13145,9 +12558,8 @@ export {
13145
12558
  useGetChannelContentInterests,
13146
12559
  useGetChannelContents,
13147
12560
  useGetChannelInterests,
12561
+ useGetChannelSubscribers,
13148
12562
  useGetChannels,
13149
- useGetContent,
13150
- useGetContentInterests,
13151
12563
  useGetContents,
13152
12564
  useGetEvent,
13153
12565
  useGetEventActivation,
@@ -13205,18 +12617,6 @@ export {
13205
12617
  useGetLevels,
13206
12618
  useGetLinkPreview,
13207
12619
  useGetListingAttendeePassQuestionSections,
13208
- useGetManagedChannel,
13209
- useGetManagedChannelCollection,
13210
- useGetManagedChannelCollectionContents,
13211
- useGetManagedChannelCollections,
13212
- useGetManagedChannelContent,
13213
- useGetManagedChannelContentActivities,
13214
- useGetManagedChannelContentGuests,
13215
- useGetManagedChannelContentInterests,
13216
- useGetManagedChannelContents,
13217
- useGetManagedChannelInterests,
13218
- useGetManagedChannelSubscribers,
13219
- useGetManagedChannels,
13220
12620
  useGetOrganization,
13221
12621
  useGetOrganizationConfig,
13222
12622
  useGetOrganizationExplore,
@@ -13380,7 +12780,6 @@ export {
13380
12780
  useUpdateThreadCircle,
13381
12781
  useUpdateThreadCircleAccount,
13382
12782
  useUpdateThreadMessage,
13383
- useUploadChannelContentImage,
13384
12783
  useUploadFile,
13385
12784
  useUploadImage,
13386
12785
  useUploadVideo