@levo-so/core 0.1.48 → 0.1.49
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/client.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/collection.d.ts +1 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
|
|
|
58
58
|
} & import("./types").LevoQuery.FindQuery) => Promise<import("./types").IResponseMultiple<Record<string, unknown>>>;
|
|
59
59
|
saveDraftEntry: (collection_key: string, data: any) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
|
|
60
60
|
editDraftEntry: (collection_key: string, id: string, data: any) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
|
|
61
|
-
getDraftEntry: (collection_key: string) => Promise<import("./types").
|
|
61
|
+
getDraftEntry: (collection_key: string) => Promise<import("./types").IResponseMultiple<import("./types").IDraftEntry>>;
|
|
62
62
|
submitDraftEntry: (collection_key: string, data: any) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
|
|
63
63
|
};
|
|
64
64
|
readonly media: {
|
package/dist/index.js
CHANGED
|
@@ -983,7 +983,7 @@ var createLevoCollectionModule = (core, httpsClient, audience = null) => {
|
|
|
983
983
|
return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/save-entry`).post(data).json();
|
|
984
984
|
};
|
|
985
985
|
const editDraftEntry = async (collection_key, id, data) => {
|
|
986
|
-
return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/${id}/edit-entry`).
|
|
986
|
+
return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/${id}/edit-entry`).put(data).json();
|
|
987
987
|
};
|
|
988
988
|
const getDraftEntry = async (collection_key) => {
|
|
989
989
|
return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/list-entry`).get().json();
|
|
@@ -19,7 +19,7 @@ export declare const createLevoCollectionModule: (core: ILevoControl, httpsClien
|
|
|
19
19
|
} & LevoQuery.FindQuery) => Promise<IResponseMultiple<Record<string, unknown>>>;
|
|
20
20
|
saveDraftEntry: (collection_key: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
|
|
21
21
|
editDraftEntry: (collection_key: string, id: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
|
|
22
|
-
getDraftEntry: (collection_key: string) => Promise<
|
|
22
|
+
getDraftEntry: (collection_key: string) => Promise<IResponseMultiple<IDraftEntry>>;
|
|
23
23
|
submitDraftEntry: (collection_key: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
|
|
24
24
|
};
|
|
25
25
|
export {};
|