orgnote-api 0.41.18 → 0.41.20

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/models/index.d.ts CHANGED
@@ -19,6 +19,7 @@ export * from './user.js';
19
19
  export * from './oauth-provider.js';
20
20
  export * from './auth-state.js';
21
21
  export * from './orgnote-config.js';
22
+ export * from './sync-profile-config.js';
22
23
  export * from './platform-specific.js';
23
24
  export * from './css-utils.js';
24
25
  export * from './i18n-keys.js';
package/models/index.js CHANGED
@@ -19,6 +19,7 @@ export * from "./user.js";
19
19
  export * from "./oauth-provider.js";
20
20
  export * from "./auth-state.js";
21
21
  export * from "./orgnote-config.js";
22
+ export * from "./sync-profile-config.js";
22
23
  export * from "./platform-specific.js";
23
24
  export * from "./css-utils.js";
24
25
  export * from "./i18n-keys.js";
@@ -1,12 +1,14 @@
1
1
  import { Ref, ShallowRef, ComputedRef } from 'vue';
2
2
  import { StoreDefinition } from './store.js';
3
3
  import { InitialTabParams, Tab, Pane, PaneSnapshot } from './pane.js';
4
- import type { RouteLocationRaw } from 'vue-router';
4
+ import type { RouteLocationRaw, RouteLocationNormalizedLoaded } from 'vue-router';
5
5
  export interface PaneStore {
6
6
  panes: Ref<Record<string, ShallowRef<Pane>>>;
7
7
  activePaneId: Ref<string | undefined>;
8
8
  activePane: ComputedRef<Pane | undefined>;
9
9
  activeTab: ComputedRef<Tab | undefined>;
10
+ activeRoute: ComputedRef<RouteLocationNormalizedLoaded | undefined>;
11
+ activeBufferUri: ComputedRef<string | undefined>;
10
12
  createPane: (params?: Partial<Pane>) => Promise<Pane>;
11
13
  getPane: (id: string) => ShallowRef<Pane | undefined>;
12
14
  closePane: (paneId: string) => void;
@@ -0,0 +1,35 @@
1
+ import { InferOutput } from 'valibot';
2
+ export declare const SyncProfileSchema: import("valibot").ObjectSchema<{
3
+ readonly name: import("valibot").StringSchema<undefined>;
4
+ readonly remoteAddress: import("valibot").StringSchema<undefined>;
5
+ readonly token: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
6
+ readonly rootFolder: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
7
+ readonly logPath: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "/tmp/log/orgnote">;
8
+ readonly debug: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
9
+ readonly backupDir: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
10
+ readonly backupCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 3>;
11
+ }, undefined>;
12
+ export declare const SyncProfileConfigSchema: import("valibot").ObjectSchema<{
13
+ readonly accounts: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
14
+ readonly name: import("valibot").StringSchema<undefined>;
15
+ readonly remoteAddress: import("valibot").StringSchema<undefined>;
16
+ readonly token: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
17
+ readonly rootFolder: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
18
+ readonly logPath: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "/tmp/log/orgnote">;
19
+ readonly debug: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
20
+ readonly backupDir: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
21
+ readonly backupCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 3>;
22
+ }, undefined>, undefined>, readonly []>;
23
+ readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
24
+ readonly name: import("valibot").StringSchema<undefined>;
25
+ readonly remoteAddress: import("valibot").StringSchema<undefined>;
26
+ readonly token: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
27
+ readonly rootFolder: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
28
+ readonly logPath: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "/tmp/log/orgnote">;
29
+ readonly debug: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
30
+ readonly backupDir: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, "">;
31
+ readonly backupCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 3>;
32
+ }, undefined>, undefined>, readonly []>;
33
+ }, undefined>;
34
+ export type SyncProfile = InferOutput<typeof SyncProfileSchema>;
35
+ export type SyncProfileConfig = InferOutput<typeof SyncProfileConfigSchema>;
@@ -0,0 +1,15 @@
1
+ import { array, boolean, number, object, optional, string, } from 'valibot';
2
+ export const SyncProfileSchema = object({
3
+ name: string(),
4
+ remoteAddress: string(),
5
+ token: optional(string(), ''),
6
+ rootFolder: optional(string(), ''),
7
+ logPath: optional(string(), '/tmp/log/orgnote'),
8
+ debug: optional(boolean(), false),
9
+ backupDir: optional(string(), ''),
10
+ backupCount: optional(number(), 3),
11
+ });
12
+ export const SyncProfileConfigSchema = object({
13
+ accounts: optional(array(SyncProfileSchema), []),
14
+ root: optional(array(SyncProfileSchema), []),
15
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.41.18",
3
+ "version": "0.41.20",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",