@levo-so/core 0.1.43 → 0.1.48

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 CHANGED
@@ -57,6 +57,7 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
57
57
  collection_key: string;
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
+ editDraftEntry: (collection_key: string, id: string, data: any) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
60
61
  getDraftEntry: (collection_key: string) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
61
62
  submitDraftEntry: (collection_key: string, data: any) => Promise<import("./types").IResponseSingle<import("./types").IDraftEntry, any>>;
62
63
  };
package/dist/index.js CHANGED
@@ -982,6 +982,9 @@ var createLevoCollectionModule = (core, httpsClient, audience = null) => {
982
982
  const saveDraftEntry = async (collection_key, data) => {
983
983
  return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/save-entry`).post(data).json();
984
984
  };
985
+ const editDraftEntry = async (collection_key, id, data) => {
986
+ return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/${id}/edit-entry`).post(data).json();
987
+ };
985
988
  const getDraftEntry = async (collection_key) => {
986
989
  return httpsClient.instance.url(`/v1/bevy/content/${collection_key}/list-entry`).get().json();
987
990
  };
@@ -995,6 +998,7 @@ var createLevoCollectionModule = (core, httpsClient, audience = null) => {
995
998
  saveCollectionData,
996
999
  getCollectionContentList,
997
1000
  saveDraftEntry,
1001
+ editDraftEntry,
998
1002
  getDraftEntry,
999
1003
  submitDraftEntry
1000
1004
  };
@@ -18,6 +18,7 @@ export declare const createLevoCollectionModule: (core: ILevoControl, httpsClien
18
18
  collection_key: string;
19
19
  } & LevoQuery.FindQuery) => Promise<IResponseMultiple<Record<string, unknown>>>;
20
20
  saveDraftEntry: (collection_key: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
21
+ editDraftEntry: (collection_key: string, id: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
21
22
  getDraftEntry: (collection_key: string) => Promise<IResponseSingle<IDraftEntry, any>>;
22
23
  submitDraftEntry: (collection_key: string, data: any) => Promise<IResponseSingle<IDraftEntry, any>>;
23
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/modules/collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,UAAU,GAAG,QAAQ,CAAC,MAAM,eAAe,CAAC,CAAC;AAElD,eAAO,MAAM,0BAA0B,GACrC,MAAM,YAAY,EAClB,aAAa,WAAW,EACxB,WAAU,mBAAmB,GAAG,IAAW;+BAGnC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,YAC5B,aAAa;gCASiB,CAAC,wBACpC,MAAM,YACD,aAAa;6BASc,eAAe;4DAWlD;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG,CAAC;QACV,OAAO,CAAC,EAAE,aAAa,CAAC;KACzB;gFAcE;QACD,cAAc,EAAE,MAAM,CAAC;KACxB,GAAG,SAAS,CAAC,SAAS;qCAauB,MAAM,QAAQ,GAAG;oCAOlB,MAAM;uCAOH,MAAM,QAAQ,GAAG;CAiBlE,CAAC"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../src/modules/collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAE5C,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,QAAQ,EACT,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,UAAU,GAAG,QAAQ,CAAC,MAAM,eAAe,CAAC,CAAC;AAElD,eAAO,MAAM,0BAA0B,GACrC,MAAM,YAAY,EAClB,aAAa,WAAW,EACxB,WAAU,mBAAmB,GAAG,IAAW;+BAGnC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,YAC5B,aAAa;gCASiB,CAAC,wBACpC,MAAM,YACD,aAAa;6BASc,eAAe;4DAWlD;QACD,aAAa,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,GAAG,CAAC;QACV,OAAO,CAAC,EAAE,aAAa,CAAC;KACzB;gFAcE;QACD,cAAc,EAAE,MAAM,CAAC;KACxB,GAAG,SAAS,CAAC,SAAS;qCAauB,MAAM,QAAQ,GAAG;qCAS7C,MAAM,MAClB,MAAM,QACJ,GAAG;oCAQkC,MAAM;uCAOH,MAAM,QAAQ,GAAG;CAkBlE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
- "version": "0.1.43",
3
+ "version": "0.1.48",
4
4
  "author": "Levo Engineering <devs@theinternetfolks.com>",
5
5
  "description": "Levo common utilities",
6
6
  "type": "module",