@opexa/portal-sdk 0.0.141 → 0.0.142

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,13 +1,16 @@
1
1
  import { OperationResult } from '../utils/types';
2
2
  import { AuthenticateError, AuthenticateInput, AuthenticateMutation, CreateSessionError, CreateSessionInput, CreateSessionMutation, RefreshSessionError, RefreshSessionMutation, SendVerificationCodeError__Next, SendVerificationCodeInput__Next } from './types';
3
3
 
4
+ interface FetchOptions {
5
+ headers?: HeadersInit;
6
+ }
4
7
  export interface AuthServiceConfig {
5
8
  url: string;
6
- platform: string;
9
+ fetchOptions?: FetchOptions;
7
10
  }
8
11
  export declare class AuthService {
9
12
  private url;
10
- private platform;
13
+ private options;
11
14
  constructor(config: AuthServiceConfig);
12
15
  private get headers();
13
16
  createSession(input: CreateSessionInput): Promise<OperationResult<CreateSessionError, CreateSessionMutation>>;
@@ -17,3 +20,4 @@ export declare class AuthService {
17
20
  verifySession(accessToken: string): Promise<boolean>;
18
21
  sendVerificationCode(input: SendVerificationCodeInput__Next): Promise<OperationResult<SendVerificationCodeError__Next>>;
19
22
  }
23
+ export {};
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "@opexa/portal-sdk",
3
- "type": "module",
4
- "version": "0.0.141",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "typings": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "require": "./dist/index.js",
11
- "import": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts"
13
- },
14
- "./package.json": "./package.json"
15
- },
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "dev": "vite",
24
- "build": "tsc --noEmit && vite build --mode library",
25
- "test": "vitest",
26
- "release": "release-it"
27
- },
28
- "dependencies": {
29
- "@opexa/object-id": "0.1.6"
30
- },
31
- "devDependencies": {
32
- "@ark-ui/react": "3.5.0",
33
- "@faker-js/faker": "8.4.1",
34
- "@fontsource/fira-code": "5.0.18",
35
- "@fontsource/inter": "5.0.19",
36
- "@hookform/resolvers": "3.9.0",
37
- "@types/node": "20.14.11",
38
- "@types/react": "18.3.3",
39
- "@types/react-dom": "18.3.0",
40
- "@untitled-theme/icons-react": "0.10.5",
41
- "@vitejs/plugin-react-swc": "3.7.0",
42
- "autoprefixer": "10.4.19",
43
- "clsx": "2.1.1",
44
- "date-fns": "3.6.0",
45
- "graphql-config": "5.0.3",
46
- "msw": "2.3.2",
47
- "postcss": "8.4.39",
48
- "react": "18.3.1",
49
- "react-dom": "18.3.1",
50
- "react-hook-form": "7.52.1",
51
- "react-router-dom": "6.25.1",
52
- "release-it": "17.6.0",
53
- "shiki": "1.11.0",
54
- "tailwind-variants": "0.2.1",
55
- "tailwindcss": "3.4.6",
56
- "typescript": "5.5.4",
57
- "vite": "5.3.4",
58
- "vite-plugin-dts": "3.9.1",
59
- "vite-plugin-node-polyfills": "0.22.0",
60
- "vite-tsconfig-paths": "4.3.2",
61
- "vitest": "2.0.4",
62
- "zod": "3.23.8"
63
- },
64
- "release-it": {
65
- "git": {
66
- "commitMessage": "chore: release ${npm.name} v${version}",
67
- "tagName": "${npm.name}@${version}"
68
- },
69
- "github": {
70
- "release": false
71
- },
72
- "hooks": {
73
- "before:init": [
74
- "pnpm test"
75
- ],
76
- "after:bump": [
77
- "pnpm build"
78
- ]
79
- }
80
- }
81
- }
1
+ {
2
+ "name": "@opexa/portal-sdk",
3
+ "type": "module",
4
+ "version": "0.0.142",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "typings": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./dist/index.js",
11
+ "import": "./dist/index.mjs",
12
+ "types": "./dist/index.d.ts"
13
+ },
14
+ "./package.json": "./package.json"
15
+ },
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "dev": "vite",
24
+ "build": "tsc --noEmit && vite build --mode library",
25
+ "test": "vitest",
26
+ "release": "release-it"
27
+ },
28
+ "dependencies": {
29
+ "@opexa/object-id": "0.1.6"
30
+ },
31
+ "devDependencies": {
32
+ "@ark-ui/react": "3.5.0",
33
+ "@faker-js/faker": "8.4.1",
34
+ "@fontsource/fira-code": "5.0.18",
35
+ "@fontsource/inter": "5.0.19",
36
+ "@hookform/resolvers": "3.9.0",
37
+ "@types/node": "20.14.11",
38
+ "@types/react": "18.3.3",
39
+ "@types/react-dom": "18.3.0",
40
+ "@untitled-theme/icons-react": "0.10.5",
41
+ "@vitejs/plugin-react-swc": "3.7.0",
42
+ "autoprefixer": "10.4.19",
43
+ "clsx": "2.1.1",
44
+ "date-fns": "3.6.0",
45
+ "graphql-config": "5.0.3",
46
+ "msw": "2.3.2",
47
+ "postcss": "8.4.39",
48
+ "react": "18.3.1",
49
+ "react-dom": "18.3.1",
50
+ "react-hook-form": "7.52.1",
51
+ "react-router-dom": "6.25.1",
52
+ "release-it": "17.6.0",
53
+ "shiki": "1.11.0",
54
+ "tailwind-variants": "0.2.1",
55
+ "tailwindcss": "3.4.6",
56
+ "typescript": "5.5.4",
57
+ "vite": "5.3.4",
58
+ "vite-plugin-dts": "3.9.1",
59
+ "vite-plugin-node-polyfills": "0.22.0",
60
+ "vite-tsconfig-paths": "4.3.2",
61
+ "vitest": "2.0.4",
62
+ "zod": "3.23.8"
63
+ },
64
+ "release-it": {
65
+ "git": {
66
+ "commitMessage": "chore: release ${npm.name} v${version}",
67
+ "tagName": "${npm.name}@${version}"
68
+ },
69
+ "github": {
70
+ "release": false
71
+ },
72
+ "hooks": {
73
+ "before:init": [
74
+ "pnpm test"
75
+ ],
76
+ "after:bump": [
77
+ "pnpm build"
78
+ ]
79
+ }
80
+ }
81
+ }