@levo-so/core 0.3.12 → 0.3.13
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 +6 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -178,8 +178,8 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
|
|
|
178
178
|
readonly apiUrl: string;
|
|
179
179
|
readonly workspace: `W${string}` | null;
|
|
180
180
|
readonly blog: {
|
|
181
|
-
getAllBlogs: (blog_key: string, data
|
|
182
|
-
getSingleBlog: (blog_key: string, slug: string, options
|
|
181
|
+
getAllBlogs: (blog_key: string, data: import("./types").LevoQuery.FindQuery | undefined, options: import("./types").BlogClient.OptionParams) => Promise<IResponseMultiple<import("./types").BlogClient.BlogData>>;
|
|
182
|
+
getSingleBlog: (blog_key: string, slug: string, options: import("./types").BlogClient.OptionParams) => Promise<IResponseSingle<import("./types").BlogClient.BlogData>>;
|
|
183
183
|
};
|
|
184
184
|
readonly membership: {
|
|
185
185
|
getOAuthURL: (options?: WretchOptions) => Promise<import("./types").ILevoMembership.OAuthURLList>;
|
|
@@ -219,8 +219,8 @@ export declare const createLevoClient: (options: ILevoClientOptions) => {
|
|
|
219
219
|
getFilters: (collectionId: string, options?: WretchOptions) => Promise<IResponseMultiple<ILemaCollection["sections"][number]["fields"][number]>>;
|
|
220
220
|
};
|
|
221
221
|
readonly event: {
|
|
222
|
-
getAllEvents: (series_key: string, data
|
|
223
|
-
getSingleEvent: (slug: string, options
|
|
222
|
+
getAllEvents: (series_key: string, data: import("./types").LevoQuery.FindQuery | undefined, options: import("./types").BlogClient.OptionParams) => Promise<IResponseMultiple<import("./types").LevoEvent.Root>>;
|
|
223
|
+
getSingleEvent: (slug: string, options: import("./types").BlogClient.OptionParams) => Promise<IResponseSingle<import("./types").LevoEvent.Root>>;
|
|
224
224
|
};
|
|
225
225
|
readonly media: {
|
|
226
226
|
mediaBulkUpload: (formData: FormData, options?: WretchOptions, context?: IMediaUploadContext) => Promise<IResponseMultiple<IMedia>>;
|
|
@@ -1955,6 +1955,8 @@ export declare interface IWorkspace {
|
|
|
1955
1955
|
workspace_id: string;
|
|
1956
1956
|
industry: string;
|
|
1957
1957
|
countries: string[];
|
|
1958
|
+
/** IANA zone id, e.g. "Asia/Kolkata". Stamped at signup from the creator's browser. */
|
|
1959
|
+
timezone?: string | null;
|
|
1958
1960
|
info: {
|
|
1959
1961
|
locations?: {
|
|
1960
1962
|
place_name: string;
|
package/dist/index.js
CHANGED
|
@@ -248,10 +248,10 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
|
|
|
248
248
|
responseData: e?.response?.data ?? e?.data
|
|
249
249
|
});
|
|
250
250
|
}, _ = (e, t) => ({
|
|
251
|
-
getAllBlogs: async (e, n = {}, r) => t.instance.url(`/v1/blog/${e}/post/query`).query({ ...r
|
|
251
|
+
getAllBlogs: async (e, n = {}, r) => t.instance.url(`/v1/blog/${e}/post/query`).query({ ...r.params }).options({ headers: { "Levo-Workspace": r.workspace_id } }).post(n).json().then((e) => e).catch((e) => {
|
|
252
252
|
throw g(e);
|
|
253
253
|
}),
|
|
254
|
-
getSingleBlog: async (e, n, r) => t.instance.url(`/v1/blog/${e}/post/${n}`).query({ ...r
|
|
254
|
+
getSingleBlog: async (e, n, r) => t.instance.url(`/v1/blog/${e}/post/${n}`).query({ ...r.params }).options({ headers: { "Levo-Workspace": r.workspace_id } }).get().json().then((e) => e).catch((e) => {
|
|
255
255
|
throw g(e);
|
|
256
256
|
})
|
|
257
257
|
}), v = (e, t) => ({
|
|
@@ -297,10 +297,10 @@ var r = /^W[A-Z0-9]{7}$/, i = (e) => {
|
|
|
297
297
|
throw g(e);
|
|
298
298
|
})
|
|
299
299
|
}), y = (e, t) => ({
|
|
300
|
-
getAllEvents: async (e, n = {}, r) => t.instance.url(`/v1/event/event/${e}/event/query`).query({ ...r
|
|
300
|
+
getAllEvents: async (e, n = {}, r) => t.instance.url(`/v1/event/event/${e}/event/query`).query({ ...r.params }).options({ headers: { "Levo-Workspace": r.workspace_id } }).post(n).json().then((e) => e).catch((e) => {
|
|
301
301
|
throw g(e);
|
|
302
302
|
}),
|
|
303
|
-
getSingleEvent: async (e, n) => t.instance.url(`/v1/event/event/${e}/get-single-event`).query({ ...n
|
|
303
|
+
getSingleEvent: async (e, n) => t.instance.url(`/v1/event/event/${e}/get-single-event`).query({ ...n.params }).options({ headers: { "Levo-Workspace": n.workspace_id } }).get().json().then((e) => e).catch((e) => {
|
|
304
304
|
throw g(e);
|
|
305
305
|
})
|
|
306
306
|
}), b = 600 * 1e3, x = (e, t) => ({
|