monorise 0.0.2-dev.5 → 0.0.3-dev.0
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 +5 -5
- package/dist/base/index.js.map +1 -1
- package/dist/cli/cli.js +89 -78
- package/dist/cli/cli.js.map +1 -1
- package/dist/core/index.d.ts +15 -10
- package/dist/core/index.js +15 -10
- package/dist/core/index.js.map +1 -1
- package/dist/react/index.d.ts +48 -48
- package/dist/react/lib/api.d.ts +5 -5
- package/dist/react/lib/api.d.ts.map +1 -1
- package/dist/react/services/auth.service.d.ts +3 -3
- package/dist/react/services/core.service.d.ts +15 -15
- package/dist/react/services/filestore.service.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/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare const Monorise: {
|
|
|
431
431
|
}>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
432
432
|
}>;
|
|
433
433
|
axios: {
|
|
434
|
-
post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
434
|
+
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
435
435
|
requestKey: string;
|
|
436
436
|
isInterruptive?: boolean;
|
|
437
437
|
feedback?: {
|
|
@@ -440,7 +440,7 @@ declare const Monorise: {
|
|
|
440
440
|
failure?: string | boolean;
|
|
441
441
|
};
|
|
442
442
|
}) => Promise<R>;
|
|
443
|
-
put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
443
|
+
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
444
444
|
requestKey: string;
|
|
445
445
|
isInterruptive?: boolean;
|
|
446
446
|
feedback?: {
|
|
@@ -449,7 +449,7 @@ declare const Monorise: {
|
|
|
449
449
|
failure?: string | boolean;
|
|
450
450
|
};
|
|
451
451
|
}) => Promise<R>;
|
|
452
|
-
patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
452
|
+
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
453
453
|
requestKey: string;
|
|
454
454
|
isInterruptive?: boolean;
|
|
455
455
|
feedback?: {
|
|
@@ -458,7 +458,7 @@ declare const Monorise: {
|
|
|
458
458
|
failure?: string | boolean;
|
|
459
459
|
};
|
|
460
460
|
}) => Promise<R>;
|
|
461
|
-
delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
461
|
+
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
462
462
|
requestKey: string;
|
|
463
463
|
isInterruptive?: boolean;
|
|
464
464
|
feedback?: {
|
|
@@ -467,7 +467,7 @@ declare const Monorise: {
|
|
|
467
467
|
failure?: string | boolean;
|
|
468
468
|
};
|
|
469
469
|
}) => Promise<R>;
|
|
470
|
-
get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
470
|
+
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
471
471
|
requestKey: string;
|
|
472
472
|
isInterruptive?: boolean;
|
|
473
473
|
feedback?: {
|
|
@@ -490,13 +490,13 @@ declare const Monorise: {
|
|
|
490
490
|
authService: {
|
|
491
491
|
requestLoginMagicLink: (entityType: Entity, payload: {
|
|
492
492
|
email: string;
|
|
493
|
-
}) => Promise<AxiosResponse<any, any>>;
|
|
493
|
+
}) => Promise<AxiosResponse<any, any, {}>>;
|
|
494
494
|
getSessionProfile: <T extends Record<string, unknown>>() => Promise<AxiosResponse<T & {
|
|
495
495
|
displayName: string;
|
|
496
496
|
email: string;
|
|
497
497
|
accountId: string;
|
|
498
|
-
}, any>>;
|
|
499
|
-
logout: () => Promise<AxiosResponse<any, any>>;
|
|
498
|
+
}, any, {}>>;
|
|
499
|
+
logout: () => Promise<AxiosResponse<any, any, {}>>;
|
|
500
500
|
setOptions: (opts: {
|
|
501
501
|
apiBaseUrl?: string;
|
|
502
502
|
}) => void;
|
|
@@ -509,7 +509,7 @@ declare const Monorise: {
|
|
|
509
509
|
name: string;
|
|
510
510
|
disableLoading?: boolean;
|
|
511
511
|
onProgress?: (progress: number) => void;
|
|
512
|
-
}) => Promise<AxiosResponse<any, any>>;
|
|
512
|
+
}) => Promise<AxiosResponse<any, any, {}>>;
|
|
513
513
|
deleteFiles: (keys: string[]) => Promise<any>;
|
|
514
514
|
uploadVideo: ({ file, scope, directory, name, }: {
|
|
515
515
|
file: File;
|
|
@@ -543,31 +543,31 @@ declare const Monorise: {
|
|
|
543
543
|
data: import("../base/index").CreatedEntity<T>[];
|
|
544
544
|
lastKey?: string;
|
|
545
545
|
totalCount: number;
|
|
546
|
-
}, any>>;
|
|
546
|
+
}, any, {}>>;
|
|
547
547
|
searchEntities: (query: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
|
|
548
548
|
data: import("../base/index").CreatedEntity<T>[];
|
|
549
|
-
}, any>>;
|
|
549
|
+
}, any, {}>>;
|
|
550
550
|
listEntitiesByTag: (tagName: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
|
|
551
551
|
entities: import("../base/index").CreatedEntity<T>[];
|
|
552
552
|
lastKey: string;
|
|
553
|
-
}, any>>;
|
|
554
|
-
getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
555
|
-
getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
556
|
-
createEntity: (values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
557
|
-
upsertEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
558
|
-
editEntity: (id: string, values: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
559
|
-
updateEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
560
|
-
deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
|
|
553
|
+
}, any, {}>>;
|
|
554
|
+
getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
555
|
+
getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
556
|
+
createEntity: (values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
557
|
+
upsertEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
558
|
+
editEntity: (id: string, values: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
559
|
+
updateEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
560
|
+
deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
|
|
561
561
|
};
|
|
562
562
|
makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
|
|
563
563
|
listEntitiesByEntity: (byEntityId: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => Promise<AxiosResponse<{
|
|
564
564
|
entities: Mutual<B, T>[];
|
|
565
565
|
lastKey: string;
|
|
566
|
-
}, any>>;
|
|
567
|
-
getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
568
|
-
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
569
|
-
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
570
|
-
deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
|
|
566
|
+
}, any, {}>>;
|
|
567
|
+
getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
568
|
+
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
569
|
+
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
570
|
+
deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
|
|
571
571
|
};
|
|
572
572
|
setOptions: (opts: {
|
|
573
573
|
entityApiBaseUrl?: string;
|
|
@@ -731,7 +731,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
731
731
|
};
|
|
732
732
|
}>), replace?: boolean | undefined, action?: A | undefined): void;
|
|
733
733
|
}>, axios: {
|
|
734
|
-
post: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
734
|
+
post: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
735
735
|
requestKey: string;
|
|
736
736
|
isInterruptive?: boolean;
|
|
737
737
|
feedback?: {
|
|
@@ -740,7 +740,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
740
740
|
failure?: string | boolean;
|
|
741
741
|
};
|
|
742
742
|
}) => Promise<R>;
|
|
743
|
-
put: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
743
|
+
put: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
744
744
|
requestKey: string;
|
|
745
745
|
isInterruptive?: boolean;
|
|
746
746
|
feedback?: {
|
|
@@ -749,7 +749,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
749
749
|
failure?: string | boolean;
|
|
750
750
|
};
|
|
751
751
|
}) => Promise<R>;
|
|
752
|
-
patch: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
752
|
+
patch: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, data: D, config: import("axios").AxiosRequestConfig<D> & {
|
|
753
753
|
requestKey: string;
|
|
754
754
|
isInterruptive?: boolean;
|
|
755
755
|
feedback?: {
|
|
@@ -758,7 +758,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
758
758
|
failure?: string | boolean;
|
|
759
759
|
};
|
|
760
760
|
}) => Promise<R>;
|
|
761
|
-
delete: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
761
|
+
delete: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
762
762
|
requestKey: string;
|
|
763
763
|
isInterruptive?: boolean;
|
|
764
764
|
feedback?: {
|
|
@@ -767,7 +767,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
767
767
|
failure?: string | boolean;
|
|
768
768
|
};
|
|
769
769
|
}) => Promise<R>;
|
|
770
|
-
get: <T = any, R = AxiosResponse<T, any>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
770
|
+
get: <T = any, R = AxiosResponse<T, any, {}>, D = any>(url: string, config: import("axios").AxiosRequestConfig<D> & {
|
|
771
771
|
requestKey: string;
|
|
772
772
|
isInterruptive?: boolean;
|
|
773
773
|
feedback?: {
|
|
@@ -789,13 +789,13 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
789
789
|
}, authService: {
|
|
790
790
|
requestLoginMagicLink: (entityType: Entity, payload: {
|
|
791
791
|
email: string;
|
|
792
|
-
}) => Promise<AxiosResponse<any, any>>;
|
|
792
|
+
}) => Promise<AxiosResponse<any, any, {}>>;
|
|
793
793
|
getSessionProfile: <T extends Record<string, unknown>>() => Promise<AxiosResponse<T & {
|
|
794
794
|
displayName: string;
|
|
795
795
|
email: string;
|
|
796
796
|
accountId: string;
|
|
797
|
-
}, any>>;
|
|
798
|
-
logout: () => Promise<AxiosResponse<any, any>>;
|
|
797
|
+
}, any, {}>>;
|
|
798
|
+
logout: () => Promise<AxiosResponse<any, any, {}>>;
|
|
799
799
|
setOptions: (opts: {
|
|
800
800
|
apiBaseUrl?: string;
|
|
801
801
|
}) => void;
|
|
@@ -807,7 +807,7 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
807
807
|
name: string;
|
|
808
808
|
disableLoading?: boolean;
|
|
809
809
|
onProgress?: (progress: number) => void;
|
|
810
|
-
}) => Promise<AxiosResponse<any, any>>;
|
|
810
|
+
}) => Promise<AxiosResponse<any, any, {}>>;
|
|
811
811
|
deleteFiles: (keys: string[]) => Promise<any>;
|
|
812
812
|
uploadVideo: ({ file, scope, directory, name, }: {
|
|
813
813
|
file: File;
|
|
@@ -840,31 +840,31 @@ declare const store: import("zustand").UseBoundStore<Omit<import("zustand").Stor
|
|
|
840
840
|
data: import("../base/index").CreatedEntity<T>[];
|
|
841
841
|
lastKey?: string;
|
|
842
842
|
totalCount: number;
|
|
843
|
-
}, any>>;
|
|
843
|
+
}, any, {}>>;
|
|
844
844
|
searchEntities: (query: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
|
|
845
845
|
data: import("../base/index").CreatedEntity<T>[];
|
|
846
|
-
}, any>>;
|
|
846
|
+
}, any, {}>>;
|
|
847
847
|
listEntitiesByTag: (tagName: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<{
|
|
848
848
|
entities: import("../base/index").CreatedEntity<T>[];
|
|
849
849
|
lastKey: string;
|
|
850
|
-
}, any>>;
|
|
851
|
-
getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
852
|
-
getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
853
|
-
createEntity: (values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
854
|
-
upsertEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
855
|
-
editEntity: (id: string, values: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
856
|
-
updateEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any>>;
|
|
857
|
-
deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
|
|
850
|
+
}, any, {}>>;
|
|
851
|
+
getEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
852
|
+
getEntityByUniqueField: (fieldName: string, value: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
853
|
+
createEntity: (values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
854
|
+
upsertEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
855
|
+
editEntity: (id: string, values: Partial<import("../base/index").DraftEntity<T>>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
856
|
+
updateEntity: (id: string, values: import("../base/index").DraftEntity<T>, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<import("../base/index").CreatedEntity<T>, any, {}>>;
|
|
857
|
+
deleteEntity: (id: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
|
|
858
858
|
};
|
|
859
859
|
makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
|
|
860
860
|
listEntitiesByEntity: (byEntityId: string, opts?: import("./services/core.service").CommonOptions, chainEntityQuery?: string) => Promise<AxiosResponse<{
|
|
861
861
|
entities: Mutual<B, T>[];
|
|
862
862
|
lastKey: string;
|
|
863
|
-
}, any>>;
|
|
864
|
-
getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
865
|
-
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
866
|
-
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any>>;
|
|
867
|
-
deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any>>;
|
|
863
|
+
}, any, {}>>;
|
|
864
|
+
getMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
865
|
+
createMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
866
|
+
editMutual: (byEntityId: string, entityId: string, payload: MutualData<B, T> | Record<string, unknown>, opts?: {}) => Promise<AxiosResponse<Mutual<B, T>, any, {}>>;
|
|
867
|
+
deleteMutual: (byEntityId: string, entityId: string, opts?: import("./services/core.service").CommonOptions) => Promise<AxiosResponse<any, any, {}>>;
|
|
868
868
|
};
|
|
869
869
|
setOptions: (opts: {
|
|
870
870
|
entityApiBaseUrl?: string;
|
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,wB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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;
|
|
@@ -43,31 +43,31 @@ declare const initCoreService: (monoriseStore: MonoriseStore, axios: AxiosInterc
|
|
|
43
43
|
data: CreatedEntity<T>[];
|
|
44
44
|
lastKey?: string;
|
|
45
45
|
totalCount: number;
|
|
46
|
-
}, any>>;
|
|
46
|
+
}, any, {}>>;
|
|
47
47
|
searchEntities: (query: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<{
|
|
48
48
|
data: CreatedEntity<T>[];
|
|
49
|
-
}, any>>;
|
|
49
|
+
}, any, {}>>;
|
|
50
50
|
listEntitiesByTag: (tagName: string, opts?: CommonOptions) => Promise<import("axios").AxiosResponse<{
|
|
51
51
|
entities: CreatedEntity<T>[];
|
|
52
52
|
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>>;
|
|
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, {}>>;
|
|
61
61
|
};
|
|
62
62
|
makeMutualService: <B extends Entity, T extends Entity>(byEntityType: B, entityType: T) => {
|
|
63
63
|
listEntitiesByEntity: (byEntityId: string, opts?: CommonOptions, chainEntityQuery?: string) => Promise<import("axios").AxiosResponse<{
|
|
64
64
|
entities: Mutual<B, T>[];
|
|
65
65
|
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>>;
|
|
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, {}>>;
|
|
71
71
|
};
|
|
72
72
|
setOptions: (opts: ConfigOptions) => void;
|
|
73
73
|
};
|
|
@@ -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>;
|
|
@@ -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,IAAI,CAAC;AAG9E,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxC,CAAC;AAiBF,QAAA,MAAM,KAAK;WAEF,CAAC,QAAQ,CAAC,
|
|
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,IAAI,CAAC;AAG9E,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;KACzB,CAAC,IAAI,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC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