@levo-so/core 0.1.109 → 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 +7 -5
- package/dist/index.js +8 -2
- package/package.json +1 -1
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>>;
|
|
@@ -1154,9 +1158,6 @@ export declare namespace ILevoAudience {
|
|
|
1154
1158
|
resource: string;
|
|
1155
1159
|
identifier: string;
|
|
1156
1160
|
};
|
|
1157
|
-
export interface BlockProperties {
|
|
1158
|
-
id: string;
|
|
1159
|
-
}
|
|
1160
1161
|
export interface ActivityProperties {
|
|
1161
1162
|
seconds_idle?: number;
|
|
1162
1163
|
seconds_active?: number;
|
|
@@ -1164,7 +1165,7 @@ export declare namespace ILevoAudience {
|
|
|
1164
1165
|
export interface ScrollProperties {
|
|
1165
1166
|
percent: number;
|
|
1166
1167
|
}
|
|
1167
|
-
export type Properties = Partial<BaseProperties &
|
|
1168
|
+
export type Properties = Partial<BaseProperties & ActivityProperties & ScrollProperties> & Partial<Omit<BaseInput, "workspace_id" | "tab_count" | "tab_id">> & Record<string, any>;
|
|
1168
1169
|
export type EventProperties = {
|
|
1169
1170
|
properties: Properties;
|
|
1170
1171
|
traits: Traits;
|
|
@@ -1930,6 +1931,7 @@ export declare namespace LevoEvent {
|
|
|
1930
1931
|
location: IGeocoderLocation | null;
|
|
1931
1932
|
is_location_public?: boolean;
|
|
1932
1933
|
is_url_public?: boolean;
|
|
1934
|
+
is_attendee_listing_public?: boolean;
|
|
1933
1935
|
starts_at?: string | null;
|
|
1934
1936
|
ends_at?: string | null;
|
|
1935
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
|
}),
|