jplan-pack 0.5.72 → 0.5.74

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.
@@ -1,10 +1,6 @@
1
1
  import { ComputedRef, Ref } from 'vue';
2
2
  import { Domain, User } from './type';
3
- import { Scope } from '../../types/api/instance';
4
- export type UseSession = {
5
- domain: Readonly<string>;
6
- environment: Readonly<string>;
7
- } & Scope;
3
+ import { Scope } from '../../types/client/scope';
8
4
  export default function useSession(): {
9
5
  __init__: () => Promise<void>;
10
6
  user: Ref<User | null, User | null>;
@@ -1,9 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- import { Scope } from '../types/api/instance';
3
- export type Session = {
4
- domain: Readonly<string>;
5
- environment: Readonly<string>;
6
- } & Scope;
2
+ import { Session } from '../types/client/scope';
7
3
  export default function useGlobalScope(): {
8
4
  setGlobalScope: (newScope: Session | null) => void;
9
5
  globalScope: Readonly<Ref<Readonly<Ref<{
@@ -1,3 +1,3 @@
1
- import { Instance } from './type';
1
+ import { Instance } from '../../types/client/scopeClient';
2
2
  declare const _default: <T>(baseUrl: string) => Instance<T>;
3
3
  export default _default;
@@ -3,3 +3,7 @@ export type Scope = {
3
3
  organization?: string;
4
4
  team?: string;
5
5
  } | null;
6
+ export type Session = {
7
+ domain: Readonly<string>;
8
+ environment: Readonly<string>;
9
+ } & Scope;
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { Scope } from '../../types/api/instance';
2
+ import { Scope } from './scope';
3
3
  import { Ref } from 'vue';
4
4
  export type InstanceScoped = AxiosInstance & {
5
5
  setScope: (scope: Scope) => void;
@@ -2,4 +2,5 @@ export * from './UiTableHeader';
2
2
  export * from './sidebarItem';
3
3
  export * from './Metadata';
4
4
  export * from './Icon';
5
- export * from './api/instance';
5
+ export * from './client/scope';
6
+ export * from './client/scopeClient';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jplan-pack",
3
- "version": "0.5.72",
3
+ "version": "0.5.74",
4
4
  "main": "./dist/jplan-pack.cjs.js",
5
5
  "module": "./dist/jplan-pack.es.js",
6
6
  "types": "dist/types/index.d.ts",