monorise 0.0.2 → 0.0.3
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/base/index.d.ts +18 -6
- package/dist/base/index.js.map +1 -1
- package/dist/cli/cli.js +8 -4
- package/dist/cli/cli.js.map +1 -1
- package/dist/core/index.d.ts +16 -11
- package/dist/core/index.js +15 -10
- package/dist/core/index.js.map +1 -1
- package/dist/react/actions/auth.action.d.ts +1 -1
- package/dist/react/actions/config.action.d.ts +1 -1
- package/dist/react/actions/core.action.d.ts +1 -1
- package/dist/react/actions/core.action.d.ts.map +1 -1
- package/dist/react/index.d.ts +127 -127
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +120 -6
- package/dist/react/index.js.map +1 -1
- package/dist/react/lib/api.d.ts +5 -5
- package/dist/react/lib/api.d.ts.map +1 -1
- package/dist/react/lib/entity.d.ts +1 -1
- package/dist/react/lib/utils.d.ts +1 -1
- package/dist/react/services/auth.service.d.ts +4 -4
- package/dist/react/services/core.service.d.ts +17 -16
- package/dist/react/services/core.service.d.ts.map +1 -1
- package/dist/react/services/filestore.service.d.ts +1 -1
- package/dist/react/store/monorise.store.d.ts +1 -1
- package/dist/react/types/api.type.d.ts +5 -5
- package/dist/react/types/api.type.d.ts.map +1 -1
- package/dist/react/types/monorise.type.d.ts +1 -1
- package/dist/react/types/mutual.type.d.ts +1 -1
- package/dist/sst/constants/event.d.ts +1 -1
- package/package.json +1 -1
package/dist/react/lib/api.d.ts
CHANGED
|
@@ -12,11 +12,11 @@ type IntercepterAxiosRequestConfig<D> = AxiosRequestConfig<D> & {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
declare const initAxiosInterceptor: (store: MonoriseStore, appActions: AppActions) => {
|
|
15
|
-
post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
16
|
-
put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
17
|
-
patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
18
|
-
delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
19
|
-
get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
15
|
+
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
16
|
+
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
17
|
+
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
18
|
+
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
19
|
+
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: IntercepterAxiosRequestConfig<D>) => Promise<R>;
|
|
20
20
|
create(config?: import("axios").CreateAxiosDefaults): import("axios").AxiosInstance;
|
|
21
21
|
defaults: Omit<import("axios").AxiosDefaults, "headers"> & {
|
|
22
22
|
headers: import("axios").HeadersDefaults & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../lib/api.ts"],"names":[],"mappings":"AAAA,OAAgB,EAEd,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE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ntity, Entity, EntitySchemaMap } from '../../base/index';
|
|
2
2
|
import type { Mutual, MutualData } from '../types/mutual.type';
|
|
3
3
|
export declare const constructLocal: (entityType: Entity, entityId: string, data: any) => CreatedEntity<Entity>;
|
|
4
4
|
export declare const constructMutual: <B extends Entity, T extends Entity>(byEntityType: B, byEntityId: string, entityType: T, entityId: string, mutualData: Partial<MutualData<B, T>>, data: EntitySchemaMap[T]) => Mutual;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Entity } from '
|
|
1
|
+
import type { Entity } from '../../base/index';
|
|
2
2
|
export declare const convertToMap: <T extends Record<string, any>>(data: T[], mapKey: string) => Map<any, any>;
|
|
3
3
|
export declare const getMutualStateKey: (byEntity: Entity, byEntityId: string | null, entity: Entity, entityId?: string, chainEntityQuery?: string) => string;
|
|
4
4
|
export declare const getTagStateKey: (entityType: Entity, tagName: string, params?: Record<string, string>) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Entity } from '
|
|
1
|
+
import type { Entity } from '../../base/index';
|
|
2
2
|
import type { AxiosInterceptor } from '../types/api.type';
|
|
3
3
|
type LoginPayload = {
|
|
4
4
|
email: string;
|
|
@@ -7,13 +7,13 @@ type Options = {
|
|
|
7
7
|
apiBaseUrl?: string;
|
|
8
8
|
};
|
|
9
9
|
declare const initAuthService: (axios: AxiosInterceptor) => {
|
|
10
|
-
requestLoginMagicLink: (entityType: Entity, payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
requestLoginMagicLink: (entityType: Entity, payload: LoginPayload) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
11
11
|
getSessionProfile: <T extends Record<string, unknown>>() => Promise<import("axios").AxiosResponse<T & {
|
|
12
12
|
displayName: string;
|
|
13
13
|
email: string;
|
|
14
14
|
accountId: string;
|
|
15
|
-
}, any>>;
|
|
16
|
-
logout: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
|
+
}, any, {}>>;
|
|
16
|
+
logout: () => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
17
17
|
setOptions: (opts: Options) => void;
|
|
18
18
|
};
|
|
19
19
|
export default initAuthService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreatedEntity, DraftEntity, Entity } from '
|
|
1
|
+
import type { CreatedEntity, DraftEntity, Entity } from '../../base/index';
|
|
2
2
|
import type { AxiosRequestConfig } from 'axios';
|
|
3
3
|
import type { MonoriseStore } from '../store/monorise.store';
|
|
4
4
|
import type { ApplicationRequestError, AxiosInterceptor } from '../types/api.type';
|
|
@@ -33,6 +33,7 @@ export type CommonOptions = Partial<AxiosRequestConfig> & {
|
|
|
33
33
|
stateKey?: string;
|
|
34
34
|
forceFetch?: boolean;
|
|
35
35
|
noData?: boolean;
|
|
36
|
+
limit?: number;
|
|
36
37
|
requestKey?: string;
|
|
37
38
|
onError?: (error: ApplicationRequestError | Error) => void;
|
|
38
39
|
limit?: number;
|
|
@@ -43,31 +44,31 @@ declare const initCoreService: (monoriseStore: MonoriseStore, axios: AxiosInterc
|
|
|
43
44
|
data: CreatedEntity<T>[];
|
|
44
45
|
lastKey?: string;
|
|
45
46
|
totalCount: number;
|
|
46
|
-
}, any>>;
|
|
47
|
+
}, any, {}>>;
|
|
47
48
|
searchEntities: (query: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<{
|
|
48
49
|
data: CreatedEntity<T>[];
|
|
49
|
-
}, any>>;
|
|
50
|
+
}, any, {}>>;
|
|
50
51
|
listEntitiesByTag: (tagName: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<{
|
|
51
52
|
entities: CreatedEntity<T>[];
|
|
52
53
|
lastKey: string;
|
|
53
|
-
}, any>>;
|
|
54
|
-
getEntity: (id: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
55
|
-
getEntityByUniqueField: (fieldName: string, value: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
56
|
-
createEntity: (values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
57
|
-
upsertEntity: (id: string, values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
58
|
-
editEntity: (id: string, values: Partial<DraftEntity<T>>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
59
|
-
updateEntity: (id: string, values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any>>;
|
|
60
|
-
deleteEntity: (id: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
54
|
+
}, any, {}>>;
|
|
55
|
+
getEntity: (id: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
56
|
+
getEntityByUniqueField: (fieldName: string, value: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
57
|
+
createEntity: (values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
58
|
+
upsertEntity: (id: string, values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
59
|
+
editEntity: (id: string, values: Partial<DraftEntity<T>>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
60
|
+
updateEntity: (id: string, values: DraftEntity<T>, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<CreatedEntity<T>, any, {}>>;
|
|
61
|
+
deleteEntity: (id: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
61
62
|
};
|
|
62
63
|
makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
|
|
63
64
|
listEntitiesByEntity: (byEntityId: string, opts?: CommonOptions, chainEntityQuery?: string) => Promise<import("axios").AxiosResponse<{
|
|
64
65
|
entities: Mutual<B, T>[];
|
|
65
66
|
lastKey: string;
|
|
66
|
-
}, any>>;
|
|
67
|
-
getMutual: (byEntityId: string, entityId: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any>>;
|
|
68
|
-
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any>>;
|
|
69
|
-
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any>>;
|
|
70
|
-
deleteMutual: (byEntityId: string, entityId: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
67
|
+
}, any, {}>>;
|
|
68
|
+
getMutual: (byEntityId: string, entityId: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
69
|
+
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
70
|
+
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<import("axios").AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
71
|
+
deleteMutual: (byEntityId: string, entityId: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
71
72
|
};
|
|
72
73
|
setOptions: (opts: ConfigOptions) => void;
|
|
73
74
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.service.d.ts","sourceRoot":"","sources":["../../services/core.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MA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,WACP,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;mCAKvC,MAAM,YACR,MAAM,SACV,aAAa;;uBAIG,aAAa;CAYxC,CAAC;AAEF,eAAe,eAAe,CAAC;AAE/B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -11,7 +11,7 @@ type Options = {
|
|
|
11
11
|
apiBaseUrl?: string;
|
|
12
12
|
};
|
|
13
13
|
declare const initFilestoreService: (axios: AxiosInterceptor) => {
|
|
14
|
-
uploadFile: ({ file, scope, directory, name, disableLoading, onProgress, }: UploadFileProps) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
|
+
uploadFile: ({ file, scope, directory, name, disableLoading, onProgress, }: UploadFileProps) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
15
15
|
deleteFiles: (keys: string[]) => Promise<any>;
|
|
16
16
|
uploadVideo: ({ file, scope, directory, name, }: UploadFileProps) => Promise<any>;
|
|
17
17
|
uploadAudio: ({ file, scope, directory, name, }: UploadFileProps) => Promise<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CreatedEntity, Entity, MonoriseEntityConfig } from '
|
|
1
|
+
import type { CreatedEntity, Entity, MonoriseEntityConfig } from '../../base/index';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { ApplicationRequestError } from '../types/api.type';
|
|
4
4
|
import type { CommonStore } from '../types/monorise.type';
|
|
@@ -9,11 +9,11 @@ export type ModalProps<M> = {
|
|
|
9
9
|
[K in keyof M]: ExtractModalProps<M[K]>;
|
|
10
10
|
};
|
|
11
11
|
declare const axios: {
|
|
12
|
-
post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
13
|
-
put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
14
|
-
patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
15
|
-
delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
16
|
-
get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
12
|
+
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
13
|
+
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
14
|
+
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
15
|
+
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
16
|
+
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: AxiosRequestConfig<D>) => Promise<R>;
|
|
17
17
|
create(config?: import("axios").CreateAxiosDefaults): import("axios").AxiosInstance;
|
|
18
18
|
defaults: Omit<import("axios").AxiosDefaults, "headers"> & {
|
|
19
19
|
headers: import("axios").HeadersDefaults & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.type.d.ts","sourceRoot":"","sources":["../../types/api.type.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7E,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,iBAAiB,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,IAA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