arky-sdk 0.3.119 → 0.3.121

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.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { UpdateUserProfileParams, RequestOptions, DeleteUserParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, UserSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GenerateBlocksParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, GetCollectionSubscribersParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateFeatureFlagParams, FeatureFlag, GetFeatureFlagParams, GetFeatureFlagsParams, UpdateFeatureFlagParams, DeleteFeatureFlagParams, GetFeatureFlagResultsParams, FlagResults, GetVariantParams, GetVariantResponse, TrackEventParams, TrackEventResponse } from './types.cjs';
1
+ import { UpdateUserProfileParams, RequestOptions, DeleteUserParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, UserSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, GenerateBlocksParams, SendNodeParams, GetVariableMetadataParams, GetNodeSubscribersParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateFeatureFlagParams, FeatureFlag, GetFeatureFlagParams, GetFeatureFlagsParams, UpdateFeatureFlagParams, DeleteFeatureFlagParams, GetFeatureFlagResultsParams, FlagResults, GetVariantParams, GetVariantResponse, TrackEventParams, TrackEventResponse } from './types.cjs';
2
2
  export { ApiResponse, Block, Business, BusinessConfig, DayAvailability, EshopCartItem, EshopStoreState, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, PaginatedResponse, Payment, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, Quote, ReservationCartItem, ReservationStoreState, Seo, ShippingMethod, ShippingWeightTier, Zone } from './types.cjs';
3
3
  import { e as extractBlockValues, g as getBlockLabel, a as getBlockTextValue, f as formatBlockValue, p as prepareBlocksForSubmission, b as getMarketPrice, c as getPriceAmount, d as formatPayment, h as formatMinor, i as createPaymentForCheckout, j as getCurrencySymbol, v as validatePhoneNumber, k as findTimeZone, s as slugify, l as humanize, m as categorify, n as formatDate, o as getSvgContentForAstro, q as fetchSvgContent, r as injectSvgIntoElement } from './svg-DaEaIf5S.cjs';
4
4
 
@@ -138,20 +138,16 @@ declare function createArkySDK(config: HttpClientConfig & {
138
138
  getAnalytics(params: GetAnalyticsParams, options?: RequestOptions): Promise<any>;
139
139
  };
140
140
  cms: {
141
- createCollection(params: CreateCollectionParams, options?: RequestOptions): Promise<any>;
142
- updateCollection(params: UpdateCollectionParams, options?: RequestOptions): Promise<any>;
143
- deleteCollection(params: DeleteCollectionParams, options?: RequestOptions): Promise<any>;
144
- getCollection(params: GetCollectionParams, options?: RequestOptions): Promise<any>;
145
- getCollections(params: GetCollectionsParams, options?: RequestOptions): Promise<any>;
141
+ createNode(params: CreateNodeParams, options?: RequestOptions): Promise<any>;
142
+ updateNode(params: UpdateNodeParams, options?: RequestOptions): Promise<any>;
143
+ deleteNode(params: DeleteNodeParams, options?: RequestOptions): Promise<any>;
144
+ getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
145
+ getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
146
+ getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
146
147
  generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
147
- getCollectionEntries(params: GetEntriesParams, options?: RequestOptions): Promise<any>;
148
- createCollectionEntry(params: CreateEntryParams, options?: RequestOptions): Promise<any>;
149
- updateCollectionEntry(params: UpdateEntryParams, options?: RequestOptions): Promise<any>;
150
- deleteCollectionEntry(params: DeleteCollectionEntryParams, options?: RequestOptions): Promise<any>;
151
- getCollectionEntry(params: GetCollectionEntryParams, options?: RequestOptions): Promise<any>;
152
- sendEntry(params: SendEntryParams, options?: RequestOptions): Promise<any>;
148
+ sendNode(params: SendNodeParams, options?: RequestOptions): Promise<any>;
153
149
  getVariableMetadata(params: GetVariableMetadataParams, options?: RequestOptions): Promise<any>;
154
- getCollectionSubscribers(params: GetCollectionSubscribersParams, options?: RequestOptions): Promise<any>;
150
+ getNodeSubscribers(params: GetNodeSubscribersParams, options?: RequestOptions): Promise<any>;
155
151
  };
156
152
  eshop: {
157
153
  createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { UpdateUserProfileParams, RequestOptions, DeleteUserParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, UserSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, CreateCollectionParams, UpdateCollectionParams, DeleteCollectionParams, GetCollectionParams, GetCollectionsParams, GenerateBlocksParams, GetEntriesParams, CreateEntryParams, UpdateEntryParams, DeleteCollectionEntryParams, GetCollectionEntryParams, SendEntryParams, GetVariableMetadataParams, GetCollectionSubscribersParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateFeatureFlagParams, FeatureFlag, GetFeatureFlagParams, GetFeatureFlagsParams, UpdateFeatureFlagParams, DeleteFeatureFlagParams, GetFeatureFlagResultsParams, FlagResults, GetVariantParams, GetVariantResponse, TrackEventParams, TrackEventResponse } from './types.js';
1
+ import { UpdateUserProfileParams, RequestOptions, DeleteUserParams, AddPhoneNumberParams, PhoneNumberConfirmParams, GetMeParams, SearchUsersParams, SetRoleParams, LoginUserParams, RegisterUserParams, LogoutParams, ConfirmUserParams, GetLoginUrlParams, ForgotPasswordParams, ResetForgotPasswordParams, ResetPasswordParams, UserSubscribeParams, CreateBusinessParams, UpdateBusinessParams, DeleteBusinessParams, GetBusinessParams, GetBusinessesParams, GetBusinessParentsParams, TriggerBuildsParams, GetSubscriptionPlansParams, GetSubscriptionParams, SubscribeParams, CreatePortalSessionParams, InviteUserParams, HandleInvitationParams, TestWebhookParams, GetBusinessMediaParams2, ProcessRefundParams, UploadBusinessMediaParams, DeleteBusinessMediaParams, GetBusinessMediaParams, UpdateMediaParams, CreateRoleParams, UpdateRoleParams, DeleteRoleParams, GetRoleParams, GetRolesParams, TrackEmailOpenParams, GetDeliveryStatsParams, CreatePromoCodeParams, UpdatePromoCodeParams, DeletePromoCodeParams, GetPromoCodeParams, GetPromoCodesParams, GetAnalyticsParams, CreateNodeParams, UpdateNodeParams, DeleteNodeParams, GetNodeParams, GetNodesParams, GetNodeChildrenParams, GenerateBlocksParams, SendNodeParams, GetVariableMetadataParams, GetNodeSubscribersParams, CreateProductParams, UpdateProductParams, DeleteProductParams, GetProductParams, GetProductsParams, CreateOrderParams, UpdateOrderParams, GetOrderParams, GetOrdersParams, GetQuoteParams, OrderCheckoutParams, Slot, CreateReservationParams, UpdateReservationParams, ReservationCheckoutParams, GetReservationParams, SearchReservationsParams, GetReservationQuoteParams, CreateServiceParams, UpdateServiceParams, DeleteServiceParams, BulkScheduleParams, GetServiceParams, GetServicesParams, CreateProviderParams, UpdateProviderParams, DeleteProviderParams, GetProviderParams, GetProvidersParams, GetBusinessServiceWorkingTimeParams, CreateFeatureFlagParams, FeatureFlag, GetFeatureFlagParams, GetFeatureFlagsParams, UpdateFeatureFlagParams, DeleteFeatureFlagParams, GetFeatureFlagResultsParams, FlagResults, GetVariantParams, GetVariantResponse, TrackEventParams, TrackEventResponse } from './types.js';
2
2
  export { ApiResponse, Block, Business, BusinessConfig, DayAvailability, EshopCartItem, EshopStoreState, GetAvailabilityParams, GetSlotsForDateParams, Language, Location, Market, Media, MediaResolution, PaginatedResponse, Payment, PaymentMethod, PaymentMethodType, PaymentProviderConfig, PaymentRefund, Price, PromoCodeValidation, ProviderWithTimeline, Quote, ReservationCartItem, ReservationStoreState, Seo, ShippingMethod, ShippingWeightTier, Zone } from './types.js';
3
3
  import { e as extractBlockValues, g as getBlockLabel, a as getBlockTextValue, f as formatBlockValue, p as prepareBlocksForSubmission, b as getMarketPrice, c as getPriceAmount, d as formatPayment, h as formatMinor, i as createPaymentForCheckout, j as getCurrencySymbol, v as validatePhoneNumber, k as findTimeZone, s as slugify, l as humanize, m as categorify, n as formatDate, o as getSvgContentForAstro, q as fetchSvgContent, r as injectSvgIntoElement } from './svg-ByOFlX-F.js';
4
4
 
@@ -138,20 +138,16 @@ declare function createArkySDK(config: HttpClientConfig & {
138
138
  getAnalytics(params: GetAnalyticsParams, options?: RequestOptions): Promise<any>;
139
139
  };
140
140
  cms: {
141
- createCollection(params: CreateCollectionParams, options?: RequestOptions): Promise<any>;
142
- updateCollection(params: UpdateCollectionParams, options?: RequestOptions): Promise<any>;
143
- deleteCollection(params: DeleteCollectionParams, options?: RequestOptions): Promise<any>;
144
- getCollection(params: GetCollectionParams, options?: RequestOptions): Promise<any>;
145
- getCollections(params: GetCollectionsParams, options?: RequestOptions): Promise<any>;
141
+ createNode(params: CreateNodeParams, options?: RequestOptions): Promise<any>;
142
+ updateNode(params: UpdateNodeParams, options?: RequestOptions): Promise<any>;
143
+ deleteNode(params: DeleteNodeParams, options?: RequestOptions): Promise<any>;
144
+ getNode(params: GetNodeParams, options?: RequestOptions): Promise<any>;
145
+ getNodes(params: GetNodesParams, options?: RequestOptions): Promise<any>;
146
+ getNodeChildren(params: GetNodeChildrenParams, options?: RequestOptions): Promise<any>;
146
147
  generateBlocks(params: GenerateBlocksParams, options?: RequestOptions): Promise<any>;
147
- getCollectionEntries(params: GetEntriesParams, options?: RequestOptions): Promise<any>;
148
- createCollectionEntry(params: CreateEntryParams, options?: RequestOptions): Promise<any>;
149
- updateCollectionEntry(params: UpdateEntryParams, options?: RequestOptions): Promise<any>;
150
- deleteCollectionEntry(params: DeleteCollectionEntryParams, options?: RequestOptions): Promise<any>;
151
- getCollectionEntry(params: GetCollectionEntryParams, options?: RequestOptions): Promise<any>;
152
- sendEntry(params: SendEntryParams, options?: RequestOptions): Promise<any>;
148
+ sendNode(params: SendNodeParams, options?: RequestOptions): Promise<any>;
153
149
  getVariableMetadata(params: GetVariableMetadataParams, options?: RequestOptions): Promise<any>;
154
- getCollectionSubscribers(params: GetCollectionSubscribersParams, options?: RequestOptions): Promise<any>;
150
+ getNodeSubscribers(params: GetNodeSubscribersParams, options?: RequestOptions): Promise<any>;
155
151
  };
156
152
  eshop: {
157
153
  createProduct(params: CreateProductParams, options?: RequestOptions): Promise<any>;
package/dist/index.js CHANGED
@@ -22,7 +22,6 @@ var convertServerErrorToRequestError = (serverError, renameRules) => {
22
22
 
23
23
  // src/utils/queryParams.ts
24
24
  function buildQueryString(params) {
25
- console.log("buildQueryString input:", params);
26
25
  const queryParts = [];
27
26
  Object.entries(params).forEach(([key, value]) => {
28
27
  if (value === null || value === void 0) {
@@ -40,9 +39,7 @@ function buildQueryString(params) {
40
39
  queryParts.push(`${key}=${encodeURIComponent(jsonString)}`);
41
40
  }
42
41
  });
43
- const result = queryParts.length > 0 ? `?${queryParts.join("&")}` : "";
44
- console.log("buildQueryString output:", result);
45
- return result;
42
+ return queryParts.length > 0 ? `?${queryParts.join("&")}` : "";
46
43
  }
47
44
 
48
45
  // src/services/createHttpClient.ts
@@ -730,31 +727,30 @@ var getImageUrl = (imageBlock, isBlock = true) => {
730
727
  // src/api/cms.ts
731
728
  var createCmsApi = (apiConfig) => {
732
729
  return {
733
- // ===== COLLECTIONS =====
734
- async createCollection(params, options) {
730
+ async createNode(params, options) {
735
731
  return apiConfig.httpClient.post(
736
- `/v1/businesses/${apiConfig.businessId}/collections`,
732
+ `/v1/businesses/${apiConfig.businessId}/nodes`,
737
733
  params,
738
734
  options
739
735
  );
740
736
  },
741
- async updateCollection(params, options) {
737
+ async updateNode(params, options) {
742
738
  return apiConfig.httpClient.put(
743
- `/v1/businesses/${apiConfig.businessId}/collections/${params.id}`,
739
+ `/v1/businesses/${apiConfig.businessId}/nodes/${params.id}`,
744
740
  params,
745
741
  options
746
742
  );
747
743
  },
748
- async deleteCollection(params, options) {
744
+ async deleteNode(params, options) {
749
745
  return apiConfig.httpClient.delete(
750
- `/v1/businesses/${apiConfig.businessId}/collections/${params.id}`,
746
+ `/v1/businesses/${apiConfig.businessId}/nodes/${params.id}`,
751
747
  options
752
748
  );
753
749
  },
754
- async getCollection(params, options) {
750
+ async getNode(params, options) {
755
751
  const formattedId = formatIdOrSlug(params.id, apiConfig);
756
752
  const response = await apiConfig.httpClient.get(
757
- `/v1/businesses/${apiConfig.businessId}/collections/${formattedId}`,
753
+ `/v1/businesses/${apiConfig.businessId}/nodes/${formattedId}`,
758
754
  options
759
755
  );
760
756
  return {
@@ -771,86 +767,54 @@ var createCmsApi = (apiConfig) => {
771
767
  }
772
768
  };
773
769
  },
774
- async getCollections(params, options) {
770
+ async getNodes(params, options) {
775
771
  return apiConfig.httpClient.get(
776
- `/v1/businesses/${apiConfig.businessId}/collections`,
772
+ `/v1/businesses/${apiConfig.businessId}/nodes`,
777
773
  {
778
774
  ...options,
779
775
  params
780
776
  }
781
777
  );
782
778
  },
783
- async generateBlocks(params, options) {
784
- return apiConfig.httpClient.post(
785
- `/v1/businesses/${apiConfig.businessId}/collections/blocks/generate`,
786
- params,
787
- options
788
- );
789
- },
790
- // ===== ENTRIES =====
791
- async getCollectionEntries(params, options) {
792
- const { collectionId, ...queryParams } = params;
779
+ async getNodeChildren(params, options) {
780
+ const { id, ...queryParams } = params;
793
781
  return apiConfig.httpClient.get(
794
- `/v1/businesses/${apiConfig.businessId}/collections/${collectionId}/entries`,
782
+ `/v1/businesses/${apiConfig.businessId}/nodes/${id}/children`,
795
783
  {
796
784
  ...options,
797
785
  params: queryParams
798
786
  }
799
787
  );
800
788
  },
801
- async createCollectionEntry(params, options) {
802
- const { collectionId, ...payload } = params;
789
+ async generateBlocks(params, options) {
803
790
  return apiConfig.httpClient.post(
804
- `/v1/businesses/${apiConfig.businessId}/collections/${collectionId}/entries`,
805
- { ...payload, collectionId },
806
- options
807
- );
808
- },
809
- async updateCollectionEntry(params, options) {
810
- const { collectionId, id, ...payload } = params;
811
- return apiConfig.httpClient.put(
812
- `/v1/businesses/${apiConfig.businessId}/collections/${collectionId}/entries/${id}`,
813
- { ...payload, collectionId },
814
- options
815
- );
816
- },
817
- async deleteCollectionEntry(params, options) {
818
- return apiConfig.httpClient.delete(
819
- `/v1/businesses/${apiConfig.businessId}/collections/${params.collectionId}/entries/${params.id}`,
820
- options
821
- );
822
- },
823
- async getCollectionEntry(params, options) {
824
- const formattedId = formatIdOrSlug(params.id, apiConfig);
825
- return apiConfig.httpClient.get(
826
- `/v1/businesses/${apiConfig.businessId}/collections/${params.collectionId}/entries/${formattedId}`,
791
+ `/v1/businesses/${apiConfig.businessId}/nodes/blocks/generate`,
792
+ params,
827
793
  options
828
794
  );
829
795
  },
830
- async sendEntry(params, options) {
831
- const { collectionId, entryId, scheduledAt } = params;
796
+ async sendNode(params, options) {
797
+ const { nodeId, scheduledAt } = params;
832
798
  return apiConfig.httpClient.post(
833
- `/v1/businesses/${apiConfig.businessId}/collections/${collectionId}/entries/${entryId}/send`,
799
+ `/v1/businesses/${apiConfig.businessId}/nodes/${nodeId}/send`,
834
800
  {
835
801
  businessId: apiConfig.businessId,
836
- entryId,
802
+ nodeId,
837
803
  scheduledAt: scheduledAt ?? Math.floor(Date.now() / 1e3)
838
804
  },
839
805
  options
840
806
  );
841
807
  },
842
- // ===== VARIABLES / METADATA =====
843
808
  async getVariableMetadata(params, options) {
844
809
  return apiConfig.httpClient.get(
845
- `/v1/businesses/${apiConfig.businessId}/collections/types/${params.entryType}/variables`,
810
+ `/v1/businesses/${apiConfig.businessId}/nodes/types/${params.nodeType}/variables`,
846
811
  options
847
812
  );
848
813
  },
849
- // ===== COLLECTION SUBSCRIPTIONS =====
850
- async getCollectionSubscribers(params, options) {
814
+ async getNodeSubscribers(params, options) {
851
815
  const formattedId = formatIdOrSlug(params.id, apiConfig);
852
816
  return apiConfig.httpClient.get(
853
- `/v1/businesses/${apiConfig.businessId}/collections/${formattedId}/subscribers`,
817
+ `/v1/businesses/${apiConfig.businessId}/nodes/${formattedId}/subscribers`,
854
818
  options
855
819
  );
856
820
  }