oksy 0.1.10 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
package/public/index.html CHANGED
@@ -22,7 +22,7 @@
22
22
  height: 100% !important;
23
23
  }
24
24
  </style>
25
- <script type="module" crossorigin src="/assets/index.8d53b03d.js"></script>
25
+ <script type="module" crossorigin src="/assets/index.36e711eb.js"></script>
26
26
  <link rel="stylesheet" href="/assets/index.ef68285e.css">
27
27
  </head>
28
28
  <body class="tw-flex tw-flex-col tw-bg-gray-50">
@@ -6,7 +6,7 @@ export type LoginResponse = {
6
6
  } | {
7
7
  status: true;
8
8
  sessionId: string;
9
- secondsValid: number;
9
+ validForMilliseconds: number;
10
10
  };
11
11
  export declare function LoginController(sqliteClient: SqliteClient, reactiveStore: ReactiveStore, session: Session, cred: {
12
12
  email: string;
@@ -15,6 +15,6 @@ export type RegisterResponse = {
15
15
  status: true;
16
16
  workspaceId: string;
17
17
  sessionId: string;
18
- secondsValid: number;
18
+ validForMilliseconds: number;
19
19
  };
20
20
  export declare function RegisterController(reactiveStore: ReactiveStore, sqliteClient: SqliteClient, session: Session, cred: RegisterPayload): Promise<RegisterResponse>;
@@ -5,6 +5,6 @@ export type ResumeSessionResponse = {
5
5
  } | {
6
6
  status: true;
7
7
  sessionId: string;
8
- secondsValid: number;
8
+ validForMilliseconds: number;
9
9
  };
10
10
  export declare function ResumeSessionController(sessionManager: SessionManager, sqliteClient: SqliteClient, session: Session, sessionId: string): Promise<ResumeSessionResponse>;
@@ -36,7 +36,7 @@ type SelectOneOptions = SelectOptions & {
36
36
  type SelectManyOptions = SelectOptions & {
37
37
  selected: () => SelectItem[];
38
38
  onSelect: (item: SelectItem) => void;
39
- onDeselect: (item: SelectItem) => void;
39
+ onDeselect: (id: string) => void;
40
40
  };
41
41
  export declare function UseSelect(page: BasePage): {
42
42
  SelectOne: (options: SelectOneOptions) => SelectOneType;
@@ -53,7 +53,7 @@ export declare class UI<TFile extends BaseFile> {
53
53
  } & {
54
54
  selected: () => import("./Components/Select").SelectItem[];
55
55
  onSelect: (item: import("./Components/Select").SelectItem) => void;
56
- onDeselect: (item: import("./Components/Select").SelectItem) => void;
56
+ onDeselect: (id: string) => void;
57
57
  }) => import("./Components/Select").SelectManyType;
58
58
  DataTable: <T>(options: {
59
59
  class?: string | undefined;
@@ -140,7 +140,7 @@ export declare class UI<TFile extends BaseFile> {
140
140
  } & {
141
141
  selected: () => import("./Components/Select").SelectItem[];
142
142
  onSelect: (item: import("./Components/Select").SelectItem) => void;
143
- onDeselect: (item: import("./Components/Select").SelectItem) => void;
143
+ onDeselect: (id: string) => void;
144
144
  }) => import("./Components/Select").SelectManyType, DataTable?: <T>(options: {
145
145
  class?: string | undefined;
146
146
  disabled?: import("./Components/FlatOrFunc").FlatOrFunc<() => boolean> | undefined;
@@ -18,11 +18,11 @@ export declare class ReactiveStore implements Storage {
18
18
  });
19
19
  addDatabase(workspaceId: string): Database;
20
20
  amountOfDatabases(): number;
21
- getDatabase(workspaceId: any): null | Database;
21
+ getDatabase(workspaceId: undefined | string): null | Database;
22
22
  allDatabases(): Database[];
23
23
  getAll(tableName: string): any[];
24
24
  getAllWithDraft(tableName: string): any[];
25
- getById(tableName: string, id: string): null | any;
25
+ getById(tableName: string, id: undefined | string): null | any;
26
26
  delete(model: null | PartialGlobalEntity): void;
27
27
  }
28
28
  export declare class Database implements Storage {
@@ -36,7 +36,7 @@ export declare class Database implements Storage {
36
36
  getByName(tableName: string): null | Table;
37
37
  amountOfTables(): number;
38
38
  addRow(tableName: string, item: any): any;
39
- getById(tableName: string, id: string): null | any;
39
+ getById(tableName: string, id: undefined | string): null | any;
40
40
  getAll(tableName: string): any[];
41
41
  getAllWithDraft(tableName: string): any[];
42
42
  create(moduleName: string): any;
@@ -41,6 +41,7 @@ declare abstract class BasePage {
41
41
  prompt: InstanceType<typeof WebSocketServerClient>['prompt'];
42
42
  confirm: InstanceType<typeof WebSocketServerClient>['confirm'];
43
43
  navigate: InstanceType<typeof WebSocketServerClient>['navigate'];
44
+ toLocalDate: InstanceType<typeof WebSocketServerClient>['toLocalDate'];
44
45
  };
45
46
  }
46
47
  type MODULE_KEY = keyof typeof MODULES;