@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.
Files changed (55) hide show
  1. package/dist/index.d.ts +1789 -8
  2. package/dist/index.js +262 -881
  3. package/package.json +3 -9
  4. package/dist/client.d.ts +0 -82
  5. package/dist/constants/collection/defaultByKind.d.ts +0 -3
  6. package/dist/constants/collection/fieldInterfaceFormat.d.ts +0 -3
  7. package/dist/constants/collection/fieldInterfaces.d.ts +0 -6
  8. package/dist/constants/collection/fieldKind.d.ts +0 -26
  9. package/dist/constants/index.d.ts +0 -8
  10. package/dist/constants/integration.d.ts +0 -23
  11. package/dist/constants/media.d.ts +0 -3
  12. package/dist/constants/oauthProvider.d.ts +0 -3
  13. package/dist/control/audience.d.ts +0 -22
  14. package/dist/control/index.d.ts +0 -23
  15. package/dist/httpClient.d.ts +0 -13
  16. package/dist/logger/batch.d.ts +0 -9
  17. package/dist/logger/index.d.ts +0 -22
  18. package/dist/modules/blog.d.ts +0 -10
  19. package/dist/modules/collection.d.ts +0 -26
  20. package/dist/modules/media.d.ts +0 -11
  21. package/dist/modules/membership.d.ts +0 -21
  22. package/dist/types/audience.d.ts +0 -100
  23. package/dist/types/blog/author.d.ts +0 -30
  24. package/dist/types/blog/blogClient.d.ts +0 -51
  25. package/dist/types/blog/category.d.ts +0 -20
  26. package/dist/types/blog/index.d.ts +0 -64
  27. package/dist/types/blog/post.d.ts +0 -63
  28. package/dist/types/blog/tag.d.ts +0 -19
  29. package/dist/types/collection/collectionView.d.ts +0 -36
  30. package/dist/types/collection/draft.d.ts +0 -9
  31. package/dist/types/collection/index.d.ts +0 -7
  32. package/dist/types/collection/lemaCollection.d.ts +0 -95
  33. package/dist/types/collection/lemaField.d.ts +0 -55
  34. package/dist/types/collection/lemaSection.d.ts +0 -10
  35. package/dist/types/collection/relation.d.ts +0 -11
  36. package/dist/types/emoji.d.ts +0 -22
  37. package/dist/types/event.d.ts +0 -225
  38. package/dist/types/index.d.ts +0 -14
  39. package/dist/types/levo-query.d.ts +0 -104
  40. package/dist/types/location.d.ts +0 -6
  41. package/dist/types/media.d.ts +0 -56
  42. package/dist/types/membership/index.d.ts +0 -182
  43. package/dist/types/query.d.ts +0 -46
  44. package/dist/types/schema/field.d.ts +0 -56
  45. package/dist/types/schema/index.d.ts +0 -3
  46. package/dist/types/schema/schema.d.ts +0 -58
  47. package/dist/types/utils.d.ts +0 -8
  48. package/dist/types/workspace.d.ts +0 -172
  49. package/dist/utils/LevoError.d.ts +0 -21
  50. package/dist/utils/formatImagePath.d.ts +0 -3
  51. package/dist/utils/getLevoError.d.ts +0 -3
  52. package/dist/utils/getUserProperties.d.ts +0 -8
  53. package/dist/utils/isIncognito.d.ts +0 -9
  54. package/dist/utils/listToX.d.ts +0 -3
  55. 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
@@ -1,3 +0,0 @@
1
- export declare const formatImagePath: (string: string) => string;
2
- export default formatImagePath;
3
- //# sourceMappingURL=formatImagePath.d.ts.map
@@ -1,3 +0,0 @@
1
- import { LevoError } from "./LevoError";
2
- export declare const getLevoError: (error: any) => LevoError;
3
- //# sourceMappingURL=getLevoError.d.ts.map
@@ -1,8 +0,0 @@
1
- export declare const getUserProperties: () => Promise<{
2
- locale: string;
3
- timezone: string;
4
- dark_mode: boolean;
5
- private_mode: boolean;
6
- properties: Record<string, any>;
7
- }>;
8
- //# sourceMappingURL=getUserProperties.d.ts.map
@@ -1,9 +0,0 @@
1
- /**
2
- * @link {https://www.npmjs.com/package/detectincognitojs}
3
- */
4
- declare const isIncognito: () => Promise<{
5
- isPrivate: boolean;
6
- browserName: string;
7
- }>;
8
- export default isIncognito;
9
- //# sourceMappingURL=isIncognito.d.ts.map
@@ -1,3 +0,0 @@
1
- export declare const listToColumn: <T extends string>(columns: readonly string[]) => Record<T, string>;
2
- export declare const listToRecord: <T extends string>(columns: readonly string[]) => { [K in T]: K; };
3
- //# sourceMappingURL=listToX.d.ts.map
@@ -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