@cranberry-money/shared-services 10.0.2 → 10.0.4
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/accounts.d.ts +12 -0
- package/dist/accounts.d.ts.map +1 -0
- package/dist/accounts.js +28 -0
- package/dist/accounts.js.map +1 -0
- package/dist/auth.d.ts +8 -79
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +21 -93
- package/dist/auth.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic account service functions.
|
|
3
|
+
* Works with any axios-compatible API client.
|
|
4
|
+
*/
|
|
5
|
+
import { AxiosInstance } from 'axios';
|
|
6
|
+
import type { Account, CreateAccount, UpdateAccount, PaginatedResponse } from '@cranberry-money/shared-types';
|
|
7
|
+
export declare const configureAccounts: (apiClient: AxiosInstance) => void;
|
|
8
|
+
export declare const getAccounts: () => Promise<import("axios").AxiosResponse<PaginatedResponse<Account>, any>>;
|
|
9
|
+
export declare const createAccount: (data: CreateAccount) => Promise<import("axios").AxiosResponse<Account, any>>;
|
|
10
|
+
export declare const updateAccount: (uuid: string, data: UpdateAccount) => Promise<import("axios").AxiosResponse<Account, any>>;
|
|
11
|
+
export declare const getAccountByUuid: (uuid: string) => Promise<import("axios").AxiosResponse<Account, any>>;
|
|
12
|
+
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../src/accounts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAI9G,eAAO,MAAM,iBAAiB,GAAI,WAAW,aAAa,KAAG,IAE5D,CAAC;AAWF,eAAO,MAAM,WAAW,+EAEvB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,aAAa,yDAEhD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,EAAE,MAAM,aAAa,yDAE9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,yDAE5C,CAAC"}
|
package/dist/accounts.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform-agnostic account service functions.
|
|
3
|
+
* Works with any axios-compatible API client.
|
|
4
|
+
*/
|
|
5
|
+
import { ACCOUNT_ENDPOINTS } from '@cranberry-money/shared-constants';
|
|
6
|
+
let configuredApiClient = null;
|
|
7
|
+
export const configureAccounts = (apiClient) => {
|
|
8
|
+
configuredApiClient = apiClient;
|
|
9
|
+
};
|
|
10
|
+
const getConfiguredClient = () => {
|
|
11
|
+
if (!configuredApiClient) {
|
|
12
|
+
throw new Error('Accounts service not configured. Call configureAccounts(apiClient) before using account functions.');
|
|
13
|
+
}
|
|
14
|
+
return configuredApiClient;
|
|
15
|
+
};
|
|
16
|
+
export const getAccounts = () => {
|
|
17
|
+
return getConfiguredClient().get(ACCOUNT_ENDPOINTS.BASE);
|
|
18
|
+
};
|
|
19
|
+
export const createAccount = (data) => {
|
|
20
|
+
return getConfiguredClient().post(ACCOUNT_ENDPOINTS.BASE, data);
|
|
21
|
+
};
|
|
22
|
+
export const updateAccount = (uuid, data) => {
|
|
23
|
+
return getConfiguredClient().patch(`${ACCOUNT_ENDPOINTS.BASE}${uuid}/`, data);
|
|
24
|
+
};
|
|
25
|
+
export const getAccountByUuid = (uuid) => {
|
|
26
|
+
return getConfiguredClient().get(`${ACCOUNT_ENDPOINTS.BASE}${uuid}/`);
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=accounts.js.map
|
|
@@ -0,0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,84 +2,13 @@
|
|
|
2
2
|
* Platform-agnostic authentication service functions.
|
|
3
3
|
* Works with any axios-compatible API client.
|
|
4
4
|
*/
|
|
5
|
-
import { AxiosInstance
|
|
5
|
+
import { AxiosInstance } from 'axios';
|
|
6
6
|
import type { SigninPayload, SignupPayload, EmailVerificationPayload, TokenRefreshData as TokenRefreshResponse, TokenRefreshPayload } from '@cranberry-money/shared-types';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*/
|
|
15
|
-
export declare const signin: (apiClient: AxiosInstance) => (data: SigninPayload) => Promise<AxiosResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Sign out the current user
|
|
18
|
-
* @param apiClient - Axios-compatible API client
|
|
19
|
-
* @returns Function that performs signout
|
|
20
|
-
*/
|
|
21
|
-
export declare const signout: (apiClient: AxiosInstance) => () => Promise<AxiosResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Sign up a new user
|
|
24
|
-
* @param apiClient - Axios-compatible API client
|
|
25
|
-
* @returns Function that accepts signup payload and returns API response
|
|
26
|
-
*/
|
|
27
|
-
export declare const signup: (apiClient: AxiosInstance) => (data: SignupPayload) => Promise<AxiosResponse>;
|
|
28
|
-
/**
|
|
29
|
-
* Verify user's email with verification code
|
|
30
|
-
* @param apiClient - Axios-compatible API client
|
|
31
|
-
* @returns Function that accepts verification payload and returns API response
|
|
32
|
-
*/
|
|
33
|
-
export declare const verifyEmail: (apiClient: AxiosInstance) => (data: EmailVerificationPayload) => Promise<AxiosResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Resend email verification code
|
|
36
|
-
* @param apiClient - Axios-compatible API client
|
|
37
|
-
* @returns Function that performs resend operation
|
|
38
|
-
*/
|
|
39
|
-
export declare const resendVerificationCode: (apiClient: AxiosInstance) => () => Promise<AxiosResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Refresh authentication token
|
|
42
|
-
* @param apiClient - Axios-compatible API client
|
|
43
|
-
* @returns Function that accepts refresh payload and returns token response
|
|
44
|
-
*/
|
|
45
|
-
export declare const refreshToken: (apiClient: AxiosInstance) => (data: TokenRefreshPayload) => Promise<AxiosResponse<TokenRefreshResponse>>;
|
|
46
|
-
/**
|
|
47
|
-
* Authentication service interface
|
|
48
|
-
*/
|
|
49
|
-
export interface AuthService {
|
|
50
|
-
signin: (data: SigninPayload) => Promise<AxiosResponse>;
|
|
51
|
-
signout: () => Promise<AxiosResponse>;
|
|
52
|
-
signup: (data: SignupPayload) => Promise<AxiosResponse>;
|
|
53
|
-
verifyEmail: (data: EmailVerificationPayload) => Promise<AxiosResponse>;
|
|
54
|
-
resendVerificationCode: () => Promise<AxiosResponse>;
|
|
55
|
-
refreshToken: (data: TokenRefreshPayload) => Promise<AxiosResponse<TokenRefreshResponse>>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Create a complete authentication service with all operations
|
|
59
|
-
* @param apiClient - Axios-compatible API client
|
|
60
|
-
* @returns Object containing all auth operations
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* // Web application with cookies
|
|
64
|
-
* const webApiClient = axios.create({
|
|
65
|
-
* baseURL: 'https://api.example.com',
|
|
66
|
-
* withCredentials: true
|
|
67
|
-
* });
|
|
68
|
-
* const authService = createAuthService(webApiClient);
|
|
69
|
-
* await authService.signin({ email: 'user@example.com', password: 'pass' });
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* // Mobile application with tokens
|
|
73
|
-
* const mobileApiClient = axios.create({
|
|
74
|
-
* baseURL: 'https://api.example.com'
|
|
75
|
-
* });
|
|
76
|
-
* // Add token interceptor for mobile
|
|
77
|
-
* mobileApiClient.interceptors.request.use(async (config) => {
|
|
78
|
-
* const token = await getStoredToken();
|
|
79
|
-
* if (token) config.headers.Authorization = `Bearer ${token}`;
|
|
80
|
-
* return config;
|
|
81
|
-
* });
|
|
82
|
-
* const authService = createAuthService(mobileApiClient);
|
|
83
|
-
*/
|
|
84
|
-
export declare const createAuthService: (apiClient: AxiosInstance) => AuthService;
|
|
7
|
+
export declare const configureAuth: (apiClient: AxiosInstance) => void;
|
|
8
|
+
export declare const signin: (data: SigninPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
export declare const signout: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
export declare const signup: (data: SignupPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
export declare const verifyEmail: (data: EmailVerificationPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
export declare const resendVerificationCode: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
13
|
+
export declare const refreshToken: (data: TokenRefreshPayload) => Promise<import("axios").AxiosResponse<TokenRefreshResponse, any>>;
|
|
85
14
|
//# sourceMappingURL=auth.d.ts.map
|
package/dist/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,wBAAwB,EACxB,gBAAgB,IAAI,oBAAoB,EACxC,mBAAmB,EACpB,MAAM,+BAA+B,CAAC;AAKvC,eAAO,MAAM,aAAa,GAAI,WAAW,aAAa,KAAG,IAExD,CAAC;AAWF,eAAO,MAAM,MAAM,GAAI,MAAM,aAAa,qDAEzC,CAAC;AAEF,eAAO,MAAM,OAAO,wDAEnB,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,MAAM,aAAa,qDAEzC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,MAAM,wBAAwB,qDAEzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,wDAElC,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,MAAM,mBAAmB,sEAErD,CAAC"}
|
package/dist/auth.js
CHANGED
|
@@ -3,104 +3,32 @@
|
|
|
3
3
|
* Works with any axios-compatible API client.
|
|
4
4
|
*/
|
|
5
5
|
import { AUTH_ENDPOINTS } from '@cranberry-money/shared-constants';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Sign in a user
|
|
11
|
-
* @param apiClient - Axios-compatible API client
|
|
12
|
-
* @returns Function that accepts signin payload and returns API response
|
|
13
|
-
*/
|
|
14
|
-
export const signin = (apiClient) => {
|
|
15
|
-
return (data) => {
|
|
16
|
-
return apiClient.post(AUTH_ENDPOINTS.SIGNIN, data);
|
|
17
|
-
};
|
|
6
|
+
let configuredApiClient = null;
|
|
7
|
+
export const configureAuth = (apiClient) => {
|
|
8
|
+
configuredApiClient = apiClient;
|
|
18
9
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const signout = (apiClient) => {
|
|
25
|
-
return () => {
|
|
26
|
-
return apiClient.post(AUTH_ENDPOINTS.SIGNOUT);
|
|
27
|
-
};
|
|
10
|
+
const getConfiguredClient = () => {
|
|
11
|
+
if (!configuredApiClient) {
|
|
12
|
+
throw new Error('Auth service not configured. Call configureAuth(apiClient) before using auth functions.');
|
|
13
|
+
}
|
|
14
|
+
return configuredApiClient;
|
|
28
15
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
* @param apiClient - Axios-compatible API client
|
|
32
|
-
* @returns Function that accepts signup payload and returns API response
|
|
33
|
-
*/
|
|
34
|
-
export const signup = (apiClient) => {
|
|
35
|
-
return (data) => {
|
|
36
|
-
return apiClient.post(AUTH_ENDPOINTS.SIGNUP, data);
|
|
37
|
-
};
|
|
16
|
+
export const signin = (data) => {
|
|
17
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.SIGNIN, data);
|
|
38
18
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
* @param apiClient - Axios-compatible API client
|
|
42
|
-
* @returns Function that accepts verification payload and returns API response
|
|
43
|
-
*/
|
|
44
|
-
export const verifyEmail = (apiClient) => {
|
|
45
|
-
return (data) => {
|
|
46
|
-
return apiClient.post(AUTH_ENDPOINTS.EMAIL_VERIFICATION, data);
|
|
47
|
-
};
|
|
19
|
+
export const signout = () => {
|
|
20
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.SIGNOUT);
|
|
48
21
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* @param apiClient - Axios-compatible API client
|
|
52
|
-
* @returns Function that performs resend operation
|
|
53
|
-
*/
|
|
54
|
-
export const resendVerificationCode = (apiClient) => {
|
|
55
|
-
return () => {
|
|
56
|
-
return apiClient.post(AUTH_ENDPOINTS.RESEND_VERIFICATION);
|
|
57
|
-
};
|
|
22
|
+
export const signup = (data) => {
|
|
23
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.SIGNUP, data);
|
|
58
24
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
* @param apiClient - Axios-compatible API client
|
|
62
|
-
* @returns Function that accepts refresh payload and returns token response
|
|
63
|
-
*/
|
|
64
|
-
export const refreshToken = (apiClient) => {
|
|
65
|
-
return (data) => {
|
|
66
|
-
return apiClient.post(AUTH_ENDPOINTS.TOKEN_REFRESH, data);
|
|
67
|
-
};
|
|
25
|
+
export const verifyEmail = (data) => {
|
|
26
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.EMAIL_VERIFICATION, data);
|
|
68
27
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
* @example
|
|
75
|
-
* // Web application with cookies
|
|
76
|
-
* const webApiClient = axios.create({
|
|
77
|
-
* baseURL: 'https://api.example.com',
|
|
78
|
-
* withCredentials: true
|
|
79
|
-
* });
|
|
80
|
-
* const authService = createAuthService(webApiClient);
|
|
81
|
-
* await authService.signin({ email: 'user@example.com', password: 'pass' });
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* // Mobile application with tokens
|
|
85
|
-
* const mobileApiClient = axios.create({
|
|
86
|
-
* baseURL: 'https://api.example.com'
|
|
87
|
-
* });
|
|
88
|
-
* // Add token interceptor for mobile
|
|
89
|
-
* mobileApiClient.interceptors.request.use(async (config) => {
|
|
90
|
-
* const token = await getStoredToken();
|
|
91
|
-
* if (token) config.headers.Authorization = `Bearer ${token}`;
|
|
92
|
-
* return config;
|
|
93
|
-
* });
|
|
94
|
-
* const authService = createAuthService(mobileApiClient);
|
|
95
|
-
*/
|
|
96
|
-
export const createAuthService = (apiClient) => {
|
|
97
|
-
return {
|
|
98
|
-
signin: signin(apiClient),
|
|
99
|
-
signout: signout(apiClient),
|
|
100
|
-
signup: signup(apiClient),
|
|
101
|
-
verifyEmail: verifyEmail(apiClient),
|
|
102
|
-
resendVerificationCode: resendVerificationCode(apiClient),
|
|
103
|
-
refreshToken: refreshToken(apiClient),
|
|
104
|
-
};
|
|
28
|
+
export const resendVerificationCode = () => {
|
|
29
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.RESEND_VERIFICATION);
|
|
30
|
+
};
|
|
31
|
+
export const refreshToken = (data) => {
|
|
32
|
+
return getConfiguredClient().post(AUTH_ENDPOINTS.TOKEN_REFRESH, data);
|
|
105
33
|
};
|
|
106
34
|
//# sourceMappingURL=auth.js.map
|
package/dist/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,E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E;IACxD,OAAO,mBAAmB,EAAE,CAAC,IAAI,CAAuB,cAAc,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;AAC9F,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
* @cranberry-money/shared-services
|
|
3
3
|
* Platform-agnostic service functions for the Blueberry platform ecosystem.
|
|
4
4
|
*/
|
|
5
|
-
export { signin, signout, signup, verifyEmail, resendVerificationCode, refreshToken,
|
|
5
|
+
export { configureAuth, signin, signout, signup, verifyEmail, resendVerificationCode, refreshToken, } from './auth';
|
|
6
|
+
export { configureAccounts, getAccounts, createAccount, updateAccount, getAccountByUuid, } from './accounts';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,aAAa,EACb,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,7 @@
|
|
|
3
3
|
* Platform-agnostic service functions for the Blueberry platform ecosystem.
|
|
4
4
|
*/
|
|
5
5
|
// Authentication services
|
|
6
|
-
export { signin, signout, signup, verifyEmail, resendVerificationCode, refreshToken,
|
|
6
|
+
export { configureAuth, signin, signout, signup, verifyEmail, resendVerificationCode, refreshToken, } from './auth';
|
|
7
|
+
// Account services
|
|
8
|
+
export { configureAccounts, getAccounts, createAccount, updateAccount, getAccountByUuid, } from './accounts';
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0BAA0B;AAC1B,OAAO,EACL,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,0BAA0B;AAC1B,OAAO,EACL,aAAa,EACb,MAAM,EACN,OAAO,EACP,MAAM,EACN,WAAW,EACX,sBAAsB,EACtB,YAAY,GACb,MAAM,QAAQ,CAAC;AAEhB,mBAAmB;AACnB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,aAAa,EACb,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.4",
|
|
4
4
|
"description": "Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, instruments, countries, sectors, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|