arky-sdk 0.3.66 → 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.cjs +3 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -14
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +0 -3
- package/dist/types.d.ts +0 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|
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
|
-
|
|
788
|
+
params,
|
|
796
789
|
options
|
|
797
790
|
);
|
|
798
791
|
},
|
|
799
792
|
async updateCollectionEntry(params, options) {
|
|
800
|
-
const { id,
|
|
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,
|