@levo-so/core 0.1.111 → 0.1.113

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.ts CHANGED
@@ -191,9 +191,13 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
191
191
  data: any;
192
192
  options?: WretchOptions;
193
193
  }) => Promise<IResponseSingle<any>>;
194
- getCollectionContentList: ({ collection_key, page, search, limit, where, }: {
194
+ getCollectionContentList: ({ collection_key, page, search, limit, where, sort, select, include, }: {
195
195
  collection_key: string;
196
196
  } & import("./types").LevoQuery.FindQuery) => Promise<IResponseMultiple<Record<string, unknown>>>;
197
+ getCollectionContent: ({ collection_key, slug, }: {
198
+ collection_key: string;
199
+ slug: string;
200
+ }, options?: WretchOptions) => Promise<IResponseSingle<Record<string, unknown>>>;
197
201
  saveDraftEntry: (collection_key: string, data: any) => Promise<IResponseSingle<IDraftEntry>>;
198
202
  editDraftEntry: (collection_key: string, id: string, data: any) => Promise<IResponseSingle<IDraftEntry>>;
199
203
  getDraftEntry: (collection_key: string) => Promise<IResponseMultiple<IDraftEntry>>;
@@ -1927,6 +1931,7 @@ export declare namespace LevoEvent {
1927
1931
  location: IGeocoderLocation | null;
1928
1932
  is_location_public?: boolean;
1929
1933
  is_url_public?: boolean;
1934
+ is_attendee_listing_public?: boolean;
1930
1935
  starts_at?: string | null;
1931
1936
  ends_at?: string | null;
1932
1937
  cadence: string;
package/dist/index.js CHANGED
@@ -267,14 +267,20 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
267
267
  saveCollectionData: async ({ collection_id: e, data: n, options: r = {} }) => t.instance.url(`/v1/bevy/content/${e}`).options(r).post(n).json().then((e) => e).catch((e) => {
268
268
  throw g(e);
269
269
  }),
270
- getCollectionContentList: async ({ collection_key: e, page: n, search: r, limit: i = 10, where: a }) => t.instance.url(`/v1/bevy/content/${e}/query`).post({
270
+ getCollectionContentList: async ({ collection_key: e, page: n, search: r, limit: i = 10, where: a, sort: o, select: s, include: c }) => t.instance.url(`/v1/bevy/content/${e}/query`).post({
271
271
  page: n,
272
272
  limit: i,
273
273
  search: r,
274
- where: a
274
+ where: a,
275
+ sort: o,
276
+ select: s,
277
+ include: c
275
278
  }).json().then((e) => e).catch((e) => {
276
279
  throw g(e);
277
280
  }),
281
+ getCollectionContent: async ({ collection_key: e, slug: n }, r = {}) => t.instance.url(`/v1/bevy/content/${e}/${n}`).options(r).get().json().then((e) => e).catch((e) => {
282
+ throw g(e);
283
+ }),
278
284
  saveDraftEntry: async (e, n) => t.instance.url(`/v1/bevy/content/${e}/save-entry`).post(n).json().then((e) => e).catch((e) => {
279
285
  throw g(e);
280
286
  }),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@levo-so/core",
3
3
  "description": "Levo common utilities",
4
- "version": "0.1.111",
4
+ "version": "0.1.113",
5
5
  "author": "Levo Engineering <devs@theinternetfolks.com>",
6
6
  "dependencies": {
7
7
  "lodash-es": "4.18.1",