@levo-so/core 0.1.59 → 0.1.61
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 +1789 -8
- package/dist/index.js +262 -881
- package/package.json +3 -9
- package/dist/client.d.ts +0 -82
- package/dist/constants/collection/defaultByKind.d.ts +0 -3
- package/dist/constants/collection/fieldInterfaceFormat.d.ts +0 -3
- package/dist/constants/collection/fieldInterfaces.d.ts +0 -6
- package/dist/constants/collection/fieldKind.d.ts +0 -26
- package/dist/constants/index.d.ts +0 -8
- package/dist/constants/integration.d.ts +0 -23
- package/dist/constants/media.d.ts +0 -3
- package/dist/constants/oauthProvider.d.ts +0 -3
- package/dist/control/audience.d.ts +0 -22
- package/dist/control/index.d.ts +0 -23
- package/dist/httpClient.d.ts +0 -13
- package/dist/logger/batch.d.ts +0 -9
- package/dist/logger/index.d.ts +0 -22
- package/dist/modules/blog.d.ts +0 -10
- package/dist/modules/collection.d.ts +0 -26
- package/dist/modules/media.d.ts +0 -11
- package/dist/modules/membership.d.ts +0 -21
- package/dist/types/audience.d.ts +0 -100
- package/dist/types/blog/author.d.ts +0 -30
- package/dist/types/blog/blogClient.d.ts +0 -51
- package/dist/types/blog/category.d.ts +0 -20
- package/dist/types/blog/index.d.ts +0 -64
- package/dist/types/blog/post.d.ts +0 -63
- package/dist/types/blog/tag.d.ts +0 -19
- package/dist/types/collection/collectionView.d.ts +0 -36
- package/dist/types/collection/draft.d.ts +0 -9
- package/dist/types/collection/index.d.ts +0 -7
- package/dist/types/collection/lemaCollection.d.ts +0 -95
- package/dist/types/collection/lemaField.d.ts +0 -55
- package/dist/types/collection/lemaSection.d.ts +0 -10
- package/dist/types/collection/relation.d.ts +0 -11
- package/dist/types/emoji.d.ts +0 -22
- package/dist/types/event.d.ts +0 -225
- package/dist/types/index.d.ts +0 -14
- package/dist/types/levo-query.d.ts +0 -104
- package/dist/types/location.d.ts +0 -6
- package/dist/types/media.d.ts +0 -56
- package/dist/types/membership/index.d.ts +0 -182
- package/dist/types/query.d.ts +0 -46
- package/dist/types/schema/field.d.ts +0 -56
- package/dist/types/schema/index.d.ts +0 -3
- package/dist/types/schema/schema.d.ts +0 -58
- package/dist/types/utils.d.ts +0 -8
- package/dist/types/workspace.d.ts +0 -172
- package/dist/utils/LevoError.d.ts +0 -21
- package/dist/utils/formatImagePath.d.ts +0 -3
- package/dist/utils/getLevoError.d.ts +0 -3
- package/dist/utils/getUserProperties.d.ts +0 -8
- package/dist/utils/isIncognito.d.ts +0 -9
- package/dist/utils/listToX.d.ts +0 -3
- package/dist/utils/lock.d.ts +0 -21
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type IFieldError, type IErrorContent } from "../types/query";
|
|
2
|
-
/**
|
|
3
|
-
* Enhanced error class that matches backend response structure
|
|
4
|
-
*/
|
|
5
|
-
export declare class LevoError extends Error {
|
|
6
|
-
code: string;
|
|
7
|
-
title: string;
|
|
8
|
-
status: number;
|
|
9
|
-
type?: string;
|
|
10
|
-
errors?: IFieldError[];
|
|
11
|
-
constructor(data: IErrorContent);
|
|
12
|
-
/**
|
|
13
|
-
* Get validation errors for form fields
|
|
14
|
-
*/
|
|
15
|
-
get fieldErrors(): IFieldError[];
|
|
16
|
-
/**
|
|
17
|
-
* Check if this is a validation error with field-specific errors
|
|
18
|
-
*/
|
|
19
|
-
get hasFieldErrors(): boolean;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=LevoError.d.ts.map
|
package/dist/utils/listToX.d.ts
DELETED
package/dist/utils/lock.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @example
|
|
3
|
-
*
|
|
4
|
-
* const lock = new LocalStorageLock("myResource");
|
|
5
|
-
* if (lock.acquireLock()) {
|
|
6
|
-
* console.log("Lock acquired");
|
|
7
|
-
* // Do some work...
|
|
8
|
-
* lock.releaseLock();
|
|
9
|
-
* } else {
|
|
10
|
-
* console.log("Lock is already held by another instance");
|
|
11
|
-
* }
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export declare class LocalStorageLock {
|
|
15
|
-
private key;
|
|
16
|
-
constructor(lockKey: string);
|
|
17
|
-
acquireLock(expiryMs?: number): boolean;
|
|
18
|
-
releaseLock(): void;
|
|
19
|
-
isLocked(expiryMs?: number): boolean;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=lock.d.ts.map
|