arky-sdk 0.3.67 → 0.3.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -774,34 +774,23 @@ var createCmsApi = (apiConfig) => {
774
774
  // ===== ENTRIES =====
775
775
  // Note: Backend uses /entries NOT /collections/{id}/entries
776
776
  async getCollectionEntries(params, options) {
777
- const { collectionId, ...queryParams } = params;
778
- const finalParams = collectionId ? { ...queryParams, owner: `collection:${collectionId}` } : queryParams;
779
777
  return apiConfig.httpClient.get(
780
778
  `/v1/businesses/${apiConfig.businessId}/entries`,
781
779
  {
782
780
  ...options,
783
- params: finalParams
781
+ params
784
782
  }
785
783
  );
786
784
  },
787
785
  async createCollectionEntry(params, options) {
788
- const { collectionId, owner, ...rest } = params;
789
- const payload = {
790
- ...rest,
791
- owner: owner || (collectionId ? `collection:${collectionId}` : void 0)
792
- };
793
786
  return apiConfig.httpClient.post(
794
787
  `/v1/businesses/${apiConfig.businessId}/entries`,
795
- payload,
788
+ params,
796
789
  options
797
790
  );
798
791
  },
799
792
  async updateCollectionEntry(params, options) {
800
- const { id, collectionId, owner, ...rest } = params;
801
- const payload = {
802
- ...rest,
803
- owner: owner || (collectionId ? `collection:${collectionId}` : void 0)
804
- };
793
+ const { id, ...payload } = params;
805
794
  return apiConfig.httpClient.put(
806
795
  `/v1/businesses/${apiConfig.businessId}/entries/${id}`,
807
796
  payload,