aeria-sdk 0.0.102 → 0.0.103

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/mirror.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { InstanceConfig } from './types';
1
+ import type { InstanceConfig } from './types.js';
2
2
  export declare const runtimeCjs: (config: InstanceConfig) => string;
3
3
  export declare const runtimeEsm: (config: InstanceConfig) => string;
4
4
  export declare const writeMirrorFiles: (mirror: any, config: InstanceConfig) => Promise<void>;
package/dist/mirror.js CHANGED
@@ -27,14 +27,14 @@ declare type MirrorRouter = ${JSON.stringify(mirrorObj.router, null, 2)}\n
27
27
  ${config.integrated
28
28
  ? ''
29
29
  : `declare global {
30
- type Collections = {
31
- [K in keyof MirrorDescriptions]: {
32
- item: SchemaWithId<MirrorDescriptions[K]>
33
- }
34
- }
35
- }\n`}
30
+ type Collections = {
31
+ [K in keyof MirrorDescriptions]: {
32
+ item: SchemaWithId<MirrorDescriptions[K]>
33
+ }
34
+ }
35
+ }\n`}
36
36
  declare module 'aeria-sdk' {
37
- import { TopLevelObject, TLOFunctions } from 'aeria-sdk'
37
+ import { TopLevelObject } from 'aeria-sdk'
38
38
 
39
39
  type UnionToIntersection<T> = (T extends any ? ((x: T) => 0) : never) extends ((x: infer R) => 0)
40
40
  ? R
package/dist/mirror.mjs CHANGED
@@ -25,15 +25,15 @@ declare type MirrorRouter = ${JSON.stringify(mirrorObj.router, null, 2)}
25
25
 
26
26
 
27
27
  ${config.integrated ? "" : `declare global {
28
- type Collections = {
29
- [K in keyof MirrorDescriptions]: {
30
- item: SchemaWithId<MirrorDescriptions[K]>
31
- }
32
- }
28
+ type Collections = {
29
+ [K in keyof MirrorDescriptions]: {
30
+ item: SchemaWithId<MirrorDescriptions[K]>
33
31
  }
32
+ }
33
+ }
34
34
  `}
35
35
  declare module 'aeria-sdk' {
36
- import { TopLevelObject, TLOFunctions } from 'aeria-sdk'
36
+ import { TopLevelObject } from 'aeria-sdk'
37
37
 
38
38
  type UnionToIntersection<T> = (T extends any ? ((x: T) => 0) : never) extends ((x: infer R) => 0)
39
39
  ? R
package/dist/runtime.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import type { InstanceConfig } from './types.js';
2
+ import type { getStorage } from './storage.js';
2
3
  export declare const instanceConfig: InstanceConfig;
3
4
  export declare const url = "";
4
5
  export declare const aeria: {};
5
- export declare const storage: {
6
- get: (key: "auth") => import("./auth.js").AuthenticationResult | null;
7
- remove: (key: string) => void;
8
- set: (key: string, value: any) => void;
9
- };
6
+ export declare const storage: ReturnType<typeof getStorage>;
10
7
  export default aeria;
package/dist/storage.d.ts CHANGED
@@ -3,7 +3,7 @@ import type { AuthenticationResult } from './auth.js';
3
3
  export declare const storageMemo: Record<string, string>;
4
4
  export declare const storageKey: (key: string, config: InstanceConfig) => string;
5
5
  export declare const getStorage: (config: InstanceConfig) => {
6
- get: (key: 'auth') => AuthenticationResult | null;
6
+ get: (key: "auth") => AuthenticationResult | null;
7
7
  remove: (key: string) => void;
8
8
  set: (key: string, value: any) => void;
9
9
  };
@@ -1,8 +1,4 @@
1
- import type { RequestMethod } from '@aeriajs/types';
2
1
  import type { InstanceConfig } from './types.js';
3
- export type TLOFunctions = {
4
- [P: string]: Record<RequestMethod, ((payload?: any) => Promise<any>) & TLOFunctions>;
5
- };
6
2
  export type TopLevelObject = {
7
3
  describe: {
8
4
  POST: (...args: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aeria-sdk",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",