@webiny/app-utils 0.0.0-unstable.e53eceafb5
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/LICENSE +21 -0
- package/README.md +18 -0
- package/fta/Domain/Models/Meta/Meta.d.ts +13 -0
- package/fta/Domain/Models/Meta/Meta.js +19 -0
- package/fta/Domain/Models/Meta/Meta.js.map +1 -0
- package/fta/Domain/Models/Meta/MetaMapper.d.ts +4 -0
- package/fta/Domain/Models/Meta/MetaMapper.js +11 -0
- package/fta/Domain/Models/Meta/MetaMapper.js.map +1 -0
- package/fta/Domain/Models/Meta/index.d.ts +2 -0
- package/fta/Domain/Models/Meta/index.js +4 -0
- package/fta/Domain/Models/Meta/index.js.map +1 -0
- package/fta/Domain/Models/Sorting/Sorting.d.ts +10 -0
- package/fta/Domain/Models/Sorting/Sorting.js +11 -0
- package/fta/Domain/Models/Sorting/Sorting.js.map +1 -0
- package/fta/Domain/Models/Sorting/SortingMapper.d.ts +12 -0
- package/fta/Domain/Models/Sorting/SortingMapper.js +44 -0
- package/fta/Domain/Models/Sorting/SortingMapper.js.map +1 -0
- package/fta/Domain/Models/Sorting/index.d.ts +2 -0
- package/fta/Domain/Models/Sorting/index.js +4 -0
- package/fta/Domain/Models/Sorting/index.js.map +1 -0
- package/fta/Domain/Models/index.d.ts +2 -0
- package/fta/Domain/Models/index.js +4 -0
- package/fta/Domain/Models/index.js.map +1 -0
- package/fta/Domain/Repositories/Loading/ILoadingRepository.d.ts +8 -0
- package/fta/Domain/Repositories/Loading/ILoadingRepository.js +3 -0
- package/fta/Domain/Repositories/Loading/ILoadingRepository.js.map +1 -0
- package/fta/Domain/Repositories/Loading/LoadingRepository.d.ts +14 -0
- package/fta/Domain/Repositories/Loading/LoadingRepository.js +33 -0
- package/fta/Domain/Repositories/Loading/LoadingRepository.js.map +1 -0
- package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.d.ts +7 -0
- package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js +17 -0
- package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js.map +1 -0
- package/fta/Domain/Repositories/Loading/index.d.ts +3 -0
- package/fta/Domain/Repositories/Loading/index.js +5 -0
- package/fta/Domain/Repositories/Loading/index.js.map +1 -0
- package/fta/Domain/Repositories/Meta/IMetaRepository.d.ts +7 -0
- package/fta/Domain/Repositories/Meta/IMetaRepository.js +3 -0
- package/fta/Domain/Repositories/Meta/IMetaRepository.js.map +1 -0
- package/fta/Domain/Repositories/Meta/MetaRepository.d.ts +11 -0
- package/fta/Domain/Repositories/Meta/MetaRepository.js +42 -0
- package/fta/Domain/Repositories/Meta/MetaRepository.js.map +1 -0
- package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.d.ts +7 -0
- package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js +17 -0
- package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js.map +1 -0
- package/fta/Domain/Repositories/Meta/index.d.ts +3 -0
- package/fta/Domain/Repositories/Meta/index.js +5 -0
- package/fta/Domain/Repositories/Meta/index.js.map +1 -0
- package/fta/Domain/Repositories/Sorting/ISortingRepository.d.ts +5 -0
- package/fta/Domain/Repositories/Sorting/ISortingRepository.js +3 -0
- package/fta/Domain/Repositories/Sorting/ISortingRepository.js.map +1 -0
- package/fta/Domain/Repositories/Sorting/SortingRepository.d.ts +8 -0
- package/fta/Domain/Repositories/Sorting/SortingRepository.js +15 -0
- package/fta/Domain/Repositories/Sorting/SortingRepository.js.map +1 -0
- package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.d.ts +7 -0
- package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js +17 -0
- package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js.map +1 -0
- package/fta/Domain/Repositories/Sorting/index.d.ts +3 -0
- package/fta/Domain/Repositories/Sorting/index.js +5 -0
- package/fta/Domain/Repositories/Sorting/index.js.map +1 -0
- package/fta/Domain/Repositories/index.d.ts +3 -0
- package/fta/Domain/Repositories/index.js +5 -0
- package/fta/Domain/Repositories/index.js.map +1 -0
- package/fta/Domain/index.d.ts +2 -0
- package/fta/Domain/index.js +4 -0
- package/fta/Domain/index.js.map +1 -0
- package/fta/index.d.ts +1 -0
- package/fta/index.js +3 -0
- package/fta/index.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +3 -0
- package/index.js.map +1 -0
- package/package.json +29 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Webiny
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @webiny/app-utils
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@webiny/app-utils)
|
|
4
|
+
[](https://www.npmjs.com/package/@webiny/app-utils)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+
[](http://makeapullrequest.com)
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install --save @webiny/app-utils
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Or if you prefer yarn:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
yarn add @webiny/app-utils
|
|
18
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface MetaDTO {
|
|
2
|
+
totalCount: number;
|
|
3
|
+
cursor: string | null;
|
|
4
|
+
hasMoreItems: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare class Meta {
|
|
7
|
+
totalCount: number;
|
|
8
|
+
cursor: string | null;
|
|
9
|
+
hasMoreItems: boolean;
|
|
10
|
+
protected constructor(meta: MetaDTO);
|
|
11
|
+
static create(meta: MetaDTO): Meta;
|
|
12
|
+
static createEmpty(): Meta;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export class Meta {
|
|
2
|
+
constructor(meta) {
|
|
3
|
+
this.totalCount = meta.totalCount;
|
|
4
|
+
this.cursor = meta.cursor;
|
|
5
|
+
this.hasMoreItems = meta.hasMoreItems;
|
|
6
|
+
}
|
|
7
|
+
static create(meta) {
|
|
8
|
+
return new Meta(meta);
|
|
9
|
+
}
|
|
10
|
+
static createEmpty() {
|
|
11
|
+
return new Meta({
|
|
12
|
+
totalCount: 0,
|
|
13
|
+
cursor: null,
|
|
14
|
+
hasMoreItems: false
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=Meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Meta","constructor","meta","totalCount","cursor","hasMoreItems","create","createEmpty"],"sources":["Meta.ts"],"sourcesContent":["export interface MetaDTO {\n totalCount: number;\n cursor: string | null;\n hasMoreItems: boolean;\n}\n\nexport class Meta {\n public totalCount: number;\n public cursor: string | null;\n public hasMoreItems: boolean;\n\n protected constructor(meta: MetaDTO) {\n this.totalCount = meta.totalCount;\n this.cursor = meta.cursor;\n this.hasMoreItems = meta.hasMoreItems;\n }\n\n static create(meta: MetaDTO) {\n return new Meta(meta);\n }\n\n static createEmpty() {\n return new Meta({\n totalCount: 0,\n cursor: null,\n hasMoreItems: false\n });\n }\n}\n"],"mappings":"AAMA,OAAO,MAAMA,IAAI,CAAC;EAKJC,WAAWA,CAACC,IAAa,EAAE;IACjC,IAAI,CAACC,UAAU,GAAGD,IAAI,CAACC,UAAU;IACjC,IAAI,CAACC,MAAM,GAAGF,IAAI,CAACE,MAAM;IACzB,IAAI,CAACC,YAAY,GAAGH,IAAI,CAACG,YAAY;EACzC;EAEA,OAAOC,MAAMA,CAACJ,IAAa,EAAE;IACzB,OAAO,IAAIF,IAAI,CAACE,IAAI,CAAC;EACzB;EAEA,OAAOK,WAAWA,CAAA,EAAG;IACjB,OAAO,IAAIP,IAAI,CAAC;MACZG,UAAU,EAAE,CAAC;MACbC,MAAM,EAAE,IAAI;MACZC,YAAY,EAAE;IAClB,CAAC,CAAC;EACN;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MetaMapper","toDto","data","totalCount","cursor","hasMoreItems"],"sources":["MetaMapper.ts"],"sourcesContent":["import type { Meta, MetaDTO } from \"./Meta\";\n\nexport class MetaMapper {\n static toDto(data: Meta | MetaDTO): MetaDTO {\n return {\n totalCount: data.totalCount ?? 0,\n cursor: data.cursor ?? null,\n hasMoreItems: data.hasMoreItems ?? false\n };\n }\n}\n"],"mappings":"AAEA,OAAO,MAAMA,UAAU,CAAC;EACpB,OAAOC,KAAKA,CAACC,IAAoB,EAAW;IACxC,OAAO;MACHC,UAAU,EAAED,IAAI,CAACC,UAAU,IAAI,CAAC;MAChCC,MAAM,EAAEF,IAAI,CAACE,MAAM,IAAI,IAAI;MAC3BC,YAAY,EAAEH,IAAI,CAACG,YAAY,IAAI;IACvC,CAAC;EACL;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Meta\";\nexport * from \"./MetaMapper\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Sorting","constructor","sorting","field","order","create"],"sources":["Sorting.ts"],"sourcesContent":["export interface SortingDTO {\n field: string;\n order: \"asc\" | \"desc\";\n}\n\nexport class Sorting {\n public field: string;\n public order: \"asc\" | \"desc\";\n\n protected constructor(sorting: SortingDTO) {\n this.field = sorting.field;\n this.order = sorting.order;\n }\n\n static create(sorting: SortingDTO) {\n return new Sorting(sorting);\n }\n}\n"],"mappings":"AAKA,OAAO,MAAMA,OAAO,CAAC;EAIPC,WAAWA,CAACC,OAAmB,EAAE;IACvC,IAAI,CAACC,KAAK,GAAGD,OAAO,CAACC,KAAK;IAC1B,IAAI,CAACC,KAAK,GAAGF,OAAO,CAACE,KAAK;EAC9B;EAEA,OAAOC,MAAMA,CAACH,OAAmB,EAAE;IAC/B,OAAO,IAAIF,OAAO,CAACE,OAAO,CAAC;EAC/B;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Sorting, SortingDTO } from "./Sorting";
|
|
2
|
+
export type DbSorting = `${string}_ASC` | `${string}_DESC`;
|
|
3
|
+
export interface ColumnSorting {
|
|
4
|
+
id: string;
|
|
5
|
+
desc: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class SortingMapper {
|
|
8
|
+
static toDTO(data: Sorting | SortingDTO): SortingDTO;
|
|
9
|
+
static fromColumnToDTO(data: ColumnSorting): SortingDTO;
|
|
10
|
+
static fromDTOtoColumn(data: SortingDTO): ColumnSorting;
|
|
11
|
+
static fromDTOtoDb(data: SortingDTO): DbSorting;
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export class SortingMapper {
|
|
2
|
+
static toDTO(data) {
|
|
3
|
+
const {
|
|
4
|
+
field,
|
|
5
|
+
order
|
|
6
|
+
} = data;
|
|
7
|
+
return {
|
|
8
|
+
field,
|
|
9
|
+
order
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static fromColumnToDTO(data) {
|
|
13
|
+
const {
|
|
14
|
+
id,
|
|
15
|
+
desc
|
|
16
|
+
} = data;
|
|
17
|
+
return {
|
|
18
|
+
field: id,
|
|
19
|
+
order: desc ? "desc" : "asc"
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
static fromDTOtoColumn(data) {
|
|
23
|
+
const {
|
|
24
|
+
field,
|
|
25
|
+
order
|
|
26
|
+
} = data;
|
|
27
|
+
return {
|
|
28
|
+
id: field,
|
|
29
|
+
desc: order === "desc"
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
static fromDTOtoDb(data) {
|
|
33
|
+
const {
|
|
34
|
+
field,
|
|
35
|
+
order
|
|
36
|
+
} = data;
|
|
37
|
+
if (order === "asc") {
|
|
38
|
+
return `${field}_ASC`;
|
|
39
|
+
}
|
|
40
|
+
return `${field}_DESC`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=SortingMapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SortingMapper","toDTO","data","field","order","fromColumnToDTO","id","desc","fromDTOtoColumn","fromDTOtoDb"],"sources":["SortingMapper.ts"],"sourcesContent":["import type { Sorting, SortingDTO } from \"./Sorting\";\n\nexport type DbSorting = `${string}_ASC` | `${string}_DESC`;\n\nexport interface ColumnSorting {\n id: string;\n desc: boolean;\n}\n\nexport class SortingMapper {\n static toDTO(data: Sorting | SortingDTO): SortingDTO {\n const { field, order } = data;\n\n return {\n field,\n order\n };\n }\n\n static fromColumnToDTO(data: ColumnSorting): SortingDTO {\n const { id, desc } = data;\n\n return {\n field: id,\n order: desc ? \"desc\" : \"asc\"\n };\n }\n\n static fromDTOtoColumn(data: SortingDTO): ColumnSorting {\n const { field, order } = data;\n\n return {\n id: field,\n desc: order === \"desc\"\n };\n }\n\n static fromDTOtoDb(data: SortingDTO): DbSorting {\n const { field, order } = data;\n\n if (order === \"asc\") {\n return `${field}_ASC`;\n }\n\n return `${field}_DESC`;\n }\n}\n"],"mappings":"AASA,OAAO,MAAMA,aAAa,CAAC;EACvB,OAAOC,KAAKA,CAACC,IAA0B,EAAc;IACjD,MAAM;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAGF,IAAI;IAE7B,OAAO;MACHC,KAAK;MACLC;IACJ,CAAC;EACL;EAEA,OAAOC,eAAeA,CAACH,IAAmB,EAAc;IACpD,MAAM;MAAEI,EAAE;MAAEC;IAAK,CAAC,GAAGL,IAAI;IAEzB,OAAO;MACHC,KAAK,EAAEG,EAAE;MACTF,KAAK,EAAEG,IAAI,GAAG,MAAM,GAAG;IAC3B,CAAC;EACL;EAEA,OAAOC,eAAeA,CAACN,IAAgB,EAAiB;IACpD,MAAM;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAGF,IAAI;IAE7B,OAAO;MACHI,EAAE,EAAEH,KAAK;MACTI,IAAI,EAAEH,KAAK,KAAK;IACpB,CAAC;EACL;EAEA,OAAOK,WAAWA,CAACP,IAAgB,EAAa;IAC5C,MAAM;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAGF,IAAI;IAE7B,IAAIE,KAAK,KAAK,KAAK,EAAE;MACjB,OAAO,GAAGD,KAAK,MAAM;IACzB;IAEA,OAAO,GAAGA,KAAK,OAAO;EAC1B;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Sorting\";\nexport * from \"./SortingMapper\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Meta\";\nexport * from \"./Sorting\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface ILoadingRepository {
|
|
2
|
+
get: () => Record<string, boolean>;
|
|
3
|
+
set: (action: string, isLoading?: boolean) => Promise<void>;
|
|
4
|
+
runCallBack: <T>(callback: Promise<T>, action: string) => Promise<T>;
|
|
5
|
+
isLoading: (action: string) => boolean;
|
|
6
|
+
hasLoading: () => boolean;
|
|
7
|
+
isEmpty: () => boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ILoadingRepository.ts"],"sourcesContent":["export interface ILoadingRepository {\n get: () => Record<string, boolean>;\n set: (action: string, isLoading?: boolean) => Promise<void>;\n runCallBack: <T>(callback: Promise<T>, action: string) => Promise<T>;\n isLoading: (action: string) => boolean;\n hasLoading: () => boolean;\n isEmpty: () => boolean;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ILoadingRepository } from "./ILoadingRepository";
|
|
2
|
+
export declare class LoadingRepository implements ILoadingRepository {
|
|
3
|
+
private loadings;
|
|
4
|
+
constructor();
|
|
5
|
+
get(): {
|
|
6
|
+
[k: string]: boolean;
|
|
7
|
+
};
|
|
8
|
+
getActiveLoadings(): string[];
|
|
9
|
+
hasLoading(): boolean;
|
|
10
|
+
isLoading(action: string): boolean;
|
|
11
|
+
isEmpty(): boolean;
|
|
12
|
+
set(action: string, isLoading?: boolean): Promise<void>;
|
|
13
|
+
runCallBack(callback: Promise<any>, action: string): Promise<any>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
export class LoadingRepository {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.loadings = new Map();
|
|
5
|
+
makeAutoObservable(this);
|
|
6
|
+
}
|
|
7
|
+
get() {
|
|
8
|
+
return Object.fromEntries(this.loadings);
|
|
9
|
+
}
|
|
10
|
+
getActiveLoadings() {
|
|
11
|
+
return [...this.loadings.entries()].filter(([, value]) => value).map(([key]) => key);
|
|
12
|
+
}
|
|
13
|
+
hasLoading() {
|
|
14
|
+
return [...this.loadings.values()].some(Boolean);
|
|
15
|
+
}
|
|
16
|
+
isLoading(action) {
|
|
17
|
+
return this.loadings.get(action) ?? false;
|
|
18
|
+
}
|
|
19
|
+
isEmpty() {
|
|
20
|
+
return this.loadings.size === 0;
|
|
21
|
+
}
|
|
22
|
+
async set(action, isLoading = true) {
|
|
23
|
+
this.loadings.set(action, isLoading);
|
|
24
|
+
}
|
|
25
|
+
async runCallBack(callback, action) {
|
|
26
|
+
await this.set(action, true);
|
|
27
|
+
const result = await callback;
|
|
28
|
+
await this.set(action, false);
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=LoadingRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","LoadingRepository","constructor","loadings","Map","get","Object","fromEntries","getActiveLoadings","entries","filter","value","map","key","hasLoading","values","some","Boolean","isLoading","action","isEmpty","size","set","runCallBack","callback","result"],"sources":["LoadingRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ILoadingRepository } from \"./ILoadingRepository\";\n\nexport class LoadingRepository implements ILoadingRepository {\n private loadings: Map<string, boolean>;\n\n constructor() {\n this.loadings = new Map();\n makeAutoObservable(this);\n }\n\n get() {\n return Object.fromEntries(this.loadings);\n }\n\n getActiveLoadings(): string[] {\n return [...this.loadings.entries()].filter(([, value]) => value).map(([key]) => key);\n }\n\n hasLoading() {\n return [...this.loadings.values()].some(Boolean);\n }\n\n isLoading(action: string) {\n return this.loadings.get(action) ?? false;\n }\n\n isEmpty() {\n return this.loadings.size === 0;\n }\n\n async set(action: string, isLoading = true) {\n this.loadings.set(action, isLoading);\n }\n\n async runCallBack(callback: Promise<any>, action: string) {\n await this.set(action, true);\n const result = await callback;\n await this.set(action, false);\n return result;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAGzC,OAAO,MAAMC,iBAAiB,CAA+B;EAGzDC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,QAAQ,GAAG,IAAIC,GAAG,CAAC,CAAC;IACzBJ,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAK,GAAGA,CAAA,EAAG;IACF,OAAOC,MAAM,CAACC,WAAW,CAAC,IAAI,CAACJ,QAAQ,CAAC;EAC5C;EAEAK,iBAAiBA,CAAA,EAAa;IAC1B,OAAO,CAAC,GAAG,IAAI,CAACL,QAAQ,CAACM,OAAO,CAAC,CAAC,CAAC,CAACC,MAAM,CAAC,CAAC,GAAGC,KAAK,CAAC,KAAKA,KAAK,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,GAAG,CAAC,KAAKA,GAAG,CAAC;EACxF;EAEAC,UAAUA,CAAA,EAAG;IACT,OAAO,CAAC,GAAG,IAAI,CAACX,QAAQ,CAACY,MAAM,CAAC,CAAC,CAAC,CAACC,IAAI,CAACC,OAAO,CAAC;EACpD;EAEAC,SAASA,CAACC,MAAc,EAAE;IACtB,OAAO,IAAI,CAAChB,QAAQ,CAACE,GAAG,CAACc,MAAM,CAAC,IAAI,KAAK;EAC7C;EAEAC,OAAOA,CAAA,EAAG;IACN,OAAO,IAAI,CAACjB,QAAQ,CAACkB,IAAI,KAAK,CAAC;EACnC;EAEA,MAAMC,GAAGA,CAACH,MAAc,EAAED,SAAS,GAAG,IAAI,EAAE;IACxC,IAAI,CAACf,QAAQ,CAACmB,GAAG,CAACH,MAAM,EAAED,SAAS,CAAC;EACxC;EAEA,MAAMK,WAAWA,CAACC,QAAsB,EAAEL,MAAc,EAAE;IACtD,MAAM,IAAI,CAACG,GAAG,CAACH,MAAM,EAAE,IAAI,CAAC;IAC5B,MAAMM,MAAM,GAAG,MAAMD,QAAQ;IAC7B,MAAM,IAAI,CAACF,GAAG,CAACH,MAAM,EAAE,KAAK,CAAC;IAC7B,OAAOM,MAAM;EACjB;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoadingRepository } from "./LoadingRepository";
|
|
2
|
+
export declare class LoadingRepositoryFactory {
|
|
3
|
+
private cache;
|
|
4
|
+
getRepository(namespace?: string): LoadingRepository;
|
|
5
|
+
private getCacheKey;
|
|
6
|
+
}
|
|
7
|
+
export declare const loadingRepositoryFactory: LoadingRepositoryFactory;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LoadingRepository } from "./LoadingRepository";
|
|
2
|
+
export class LoadingRepositoryFactory {
|
|
3
|
+
cache = new Map();
|
|
4
|
+
getRepository(namespace) {
|
|
5
|
+
const cacheKey = this.getCacheKey(namespace);
|
|
6
|
+
if (!this.cache.has(cacheKey)) {
|
|
7
|
+
this.cache.set(cacheKey, new LoadingRepository());
|
|
8
|
+
}
|
|
9
|
+
return this.cache.get(cacheKey);
|
|
10
|
+
}
|
|
11
|
+
getCacheKey(namespace) {
|
|
12
|
+
return namespace ?? Date.now().toString();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export const loadingRepositoryFactory = new LoadingRepositoryFactory();
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=LoadingRepositoryFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["LoadingRepository","LoadingRepositoryFactory","cache","Map","getRepository","namespace","cacheKey","getCacheKey","has","set","get","Date","now","toString","loadingRepositoryFactory"],"sources":["LoadingRepositoryFactory.ts"],"sourcesContent":["import { LoadingRepository } from \"./LoadingRepository\";\n\nexport class LoadingRepositoryFactory {\n private cache: Map<string, LoadingRepository> = new Map();\n\n getRepository(namespace?: string) {\n const cacheKey = this.getCacheKey(namespace);\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new LoadingRepository());\n }\n\n return this.cache.get(cacheKey) as LoadingRepository;\n }\n\n private getCacheKey(namespace?: string) {\n return namespace ?? Date.now().toString();\n }\n}\n\nexport const loadingRepositoryFactory = new LoadingRepositoryFactory();\n"],"mappings":"AAAA,SAASA,iBAAiB;AAE1B,OAAO,MAAMC,wBAAwB,CAAC;EAC1BC,KAAK,GAAmC,IAAIC,GAAG,CAAC,CAAC;EAEzDC,aAAaA,CAACC,SAAkB,EAAE;IAC9B,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAACF,SAAS,CAAC;IAE5C,IAAI,CAAC,IAAI,CAACH,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,iBAAiB,CAAC,CAAC,CAAC;IACrD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACQ,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAACF,SAAkB,EAAE;IACpC,OAAOA,SAAS,IAAIM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC7C;AACJ;AAEA,OAAO,MAAMC,wBAAwB,GAAG,IAAIb,wBAAwB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ILoadingRepository\";\nexport * from \"./LoadingRepository\";\nexport * from \"./LoadingRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["IMetaRepository.ts"],"sourcesContent":["import type { Meta } from \"../../Models\";\n\nexport interface IMetaRepository {\n get: () => Meta;\n set: (meta: Meta) => Promise<void>;\n increaseTotalCount: (count?: number) => Promise<void>;\n decreaseTotalCount: (count?: number) => Promise<void>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IMetaRepository } from "./IMetaRepository";
|
|
2
|
+
import type { MetaDTO } from "../../Models/Meta";
|
|
3
|
+
export declare class MetaRepository implements IMetaRepository {
|
|
4
|
+
private meta;
|
|
5
|
+
constructor();
|
|
6
|
+
set(meta: MetaDTO): Promise<void>;
|
|
7
|
+
get(): MetaDTO;
|
|
8
|
+
decreaseTotalCount(count?: number): Promise<void>;
|
|
9
|
+
increaseTotalCount(count?: number): Promise<void>;
|
|
10
|
+
private updateMetaOnColumnDeltaChange;
|
|
11
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
import { decodeCursor, encodeCursor } from "@webiny/utils";
|
|
3
|
+
import { Meta, MetaMapper } from "../../Models/Meta";
|
|
4
|
+
export class MetaRepository {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.meta = Meta.createEmpty();
|
|
7
|
+
makeAutoObservable(this);
|
|
8
|
+
}
|
|
9
|
+
async set(meta) {
|
|
10
|
+
this.meta = Meta.create(meta);
|
|
11
|
+
}
|
|
12
|
+
get() {
|
|
13
|
+
return MetaMapper.toDto(this.meta);
|
|
14
|
+
}
|
|
15
|
+
async decreaseTotalCount(count = 1) {
|
|
16
|
+
return await this.updateMetaOnColumnDeltaChange(-count);
|
|
17
|
+
}
|
|
18
|
+
async increaseTotalCount(count = 1) {
|
|
19
|
+
return await this.updateMetaOnColumnDeltaChange(count);
|
|
20
|
+
}
|
|
21
|
+
async updateMetaOnColumnDeltaChange(countDelta) {
|
|
22
|
+
// Retrieve the current meta
|
|
23
|
+
const current = this.get();
|
|
24
|
+
|
|
25
|
+
// Calculate the new totalCount based on the delta change
|
|
26
|
+
const totalCount = current.totalCount + countDelta;
|
|
27
|
+
|
|
28
|
+
// Calculate the new cursor position based on the delta change
|
|
29
|
+
const cursorDecoded = decodeCursor(current.cursor);
|
|
30
|
+
const newCursorDecoded = String(Number(cursorDecoded) + countDelta);
|
|
31
|
+
const cursor = encodeCursor(newCursorDecoded);
|
|
32
|
+
|
|
33
|
+
// Update the meta with the new totalCount and cursor
|
|
34
|
+
return await this.set({
|
|
35
|
+
...current,
|
|
36
|
+
totalCount,
|
|
37
|
+
cursor
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=MetaRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","decodeCursor","encodeCursor","Meta","MetaMapper","MetaRepository","constructor","meta","createEmpty","set","create","get","toDto","decreaseTotalCount","count","updateMetaOnColumnDeltaChange","increaseTotalCount","countDelta","current","totalCount","cursorDecoded","cursor","newCursorDecoded","String","Number"],"sources":["MetaRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport { decodeCursor, encodeCursor } from \"@webiny/utils\";\nimport type { IMetaRepository } from \"./IMetaRepository\";\nimport type { MetaDTO } from \"~/fta/Domain/Models/Meta\";\nimport { Meta, MetaMapper } from \"~/fta/Domain/Models/Meta\";\n\nexport class MetaRepository implements IMetaRepository {\n private meta: Meta;\n\n constructor() {\n this.meta = Meta.createEmpty();\n makeAutoObservable(this);\n }\n\n async set(meta: MetaDTO) {\n this.meta = Meta.create(meta);\n }\n\n get() {\n return MetaMapper.toDto(this.meta);\n }\n\n async decreaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(-count);\n }\n\n async increaseTotalCount(count = 1) {\n return await this.updateMetaOnColumnDeltaChange(count);\n }\n\n private async updateMetaOnColumnDeltaChange(countDelta: number) {\n // Retrieve the current meta\n const current = this.get();\n\n // Calculate the new totalCount based on the delta change\n const totalCount = current.totalCount + countDelta;\n\n // Calculate the new cursor position based on the delta change\n const cursorDecoded = decodeCursor(current.cursor);\n const newCursorDecoded = String(Number(cursorDecoded) + countDelta);\n const cursor = encodeCursor(newCursorDecoded);\n\n // Update the meta with the new totalCount and cursor\n return await this.set({ ...current, totalCount, cursor });\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AACzC,SAASC,YAAY,EAAEC,YAAY,QAAQ,eAAe;AAG1D,SAASC,IAAI,EAAEC,UAAU;AAEzB,OAAO,MAAMC,cAAc,CAA4B;EAGnDC,WAAWA,CAAA,EAAG;IACV,IAAI,CAACC,IAAI,GAAGJ,IAAI,CAACK,WAAW,CAAC,CAAC;IAC9BR,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMS,GAAGA,CAACF,IAAa,EAAE;IACrB,IAAI,CAACA,IAAI,GAAGJ,IAAI,CAACO,MAAM,CAACH,IAAI,CAAC;EACjC;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAOP,UAAU,CAACQ,KAAK,CAAC,IAAI,CAACL,IAAI,CAAC;EACtC;EAEA,MAAMM,kBAAkBA,CAACC,KAAK,GAAG,CAAC,EAAE;IAChC,OAAO,MAAM,IAAI,CAACC,6BAA6B,CAAC,CAACD,KAAK,CAAC;EAC3D;EAEA,MAAME,kBAAkBA,CAACF,KAAK,GAAG,CAAC,EAAE;IAChC,OAAO,MAAM,IAAI,CAACC,6BAA6B,CAACD,KAAK,CAAC;EAC1D;EAEA,MAAcC,6BAA6BA,CAACE,UAAkB,EAAE;IAC5D;IACA,MAAMC,OAAO,GAAG,IAAI,CAACP,GAAG,CAAC,CAAC;;IAE1B;IACA,MAAMQ,UAAU,GAAGD,OAAO,CAACC,UAAU,GAAGF,UAAU;;IAElD;IACA,MAAMG,aAAa,GAAGnB,YAAY,CAACiB,OAAO,CAACG,MAAM,CAAC;IAClD,MAAMC,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAACJ,aAAa,CAAC,GAAGH,UAAU,CAAC;IACnE,MAAMI,MAAM,GAAGnB,YAAY,CAACoB,gBAAgB,CAAC;;IAE7C;IACA,OAAO,MAAM,IAAI,CAACb,GAAG,CAAC;MAAE,GAAGS,OAAO;MAAEC,UAAU;MAAEE;IAAO,CAAC,CAAC;EAC7D;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MetaRepository } from "./MetaRepository";
|
|
2
|
+
export class MetaRepositoryFactory {
|
|
3
|
+
cache = new Map();
|
|
4
|
+
getRepository(namespace) {
|
|
5
|
+
const cacheKey = this.getCacheKey(namespace);
|
|
6
|
+
if (!this.cache.has(cacheKey)) {
|
|
7
|
+
this.cache.set(cacheKey, new MetaRepository());
|
|
8
|
+
}
|
|
9
|
+
return this.cache.get(cacheKey);
|
|
10
|
+
}
|
|
11
|
+
getCacheKey(namespace) {
|
|
12
|
+
return namespace ?? Date.now().toString();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export const metaRepositoryFactory = new MetaRepositoryFactory();
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=MetaRepositoryFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["MetaRepository","MetaRepositoryFactory","cache","Map","getRepository","namespace","cacheKey","getCacheKey","has","set","get","Date","now","toString","metaRepositoryFactory"],"sources":["MetaRepositoryFactory.ts"],"sourcesContent":["import { MetaRepository } from \"./MetaRepository\";\n\nexport class MetaRepositoryFactory {\n private cache: Map<string, MetaRepository> = new Map();\n\n getRepository(namespace?: string) {\n const cacheKey = this.getCacheKey(namespace);\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new MetaRepository());\n }\n\n return this.cache.get(cacheKey) as MetaRepository;\n }\n\n private getCacheKey(namespace?: string) {\n return namespace ?? Date.now().toString();\n }\n}\n\nexport const metaRepositoryFactory = new MetaRepositoryFactory();\n"],"mappings":"AAAA,SAASA,cAAc;AAEvB,OAAO,MAAMC,qBAAqB,CAAC;EACvBC,KAAK,GAAgC,IAAIC,GAAG,CAAC,CAAC;EAEtDC,aAAaA,CAACC,SAAkB,EAAE;IAC9B,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAACF,SAAS,CAAC;IAE5C,IAAI,CAAC,IAAI,CAACH,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,cAAc,CAAC,CAAC,CAAC;IAClD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACQ,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAACF,SAAkB,EAAE;IACpC,OAAOA,SAAS,IAAIM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC7C;AACJ;AAEA,OAAO,MAAMC,qBAAqB,GAAG,IAAIb,qBAAqB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./IMetaRepository\";\nexport * from \"./MetaRepository\";\nexport * from \"./MetaRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ISortingRepository.ts"],"sourcesContent":["import type { Sorting } from \"~/fta/Domain/Models\";\n\nexport interface ISortingRepository {\n set: (sorts: Sorting[]) => Promise<void>;\n get: () => Sorting[];\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ISortingRepository } from "./ISortingRepository";
|
|
2
|
+
import type { Sorting } from "../../Models";
|
|
3
|
+
export declare class SortingRepository implements ISortingRepository {
|
|
4
|
+
private sorting;
|
|
5
|
+
constructor();
|
|
6
|
+
get(): Sorting[];
|
|
7
|
+
set(sorts: Sorting[]): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { makeAutoObservable } from "mobx";
|
|
2
|
+
export class SortingRepository {
|
|
3
|
+
sorting = [];
|
|
4
|
+
constructor() {
|
|
5
|
+
makeAutoObservable(this);
|
|
6
|
+
}
|
|
7
|
+
get() {
|
|
8
|
+
return this.sorting;
|
|
9
|
+
}
|
|
10
|
+
async set(sorts) {
|
|
11
|
+
this.sorting = sorts;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=SortingRepository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["makeAutoObservable","SortingRepository","sorting","constructor","get","set","sorts"],"sources":["SortingRepository.ts"],"sourcesContent":["import { makeAutoObservable } from \"mobx\";\nimport type { ISortingRepository } from \"./ISortingRepository\";\nimport type { Sorting } from \"~/fta/Domain/Models\";\n\nexport class SortingRepository implements ISortingRepository {\n private sorting: Sorting[] = [];\n\n constructor() {\n makeAutoObservable(this);\n }\n\n get() {\n return this.sorting;\n }\n\n async set(sorts: Sorting[]) {\n this.sorting = sorts;\n }\n}\n"],"mappings":"AAAA,SAASA,kBAAkB,QAAQ,MAAM;AAIzC,OAAO,MAAMC,iBAAiB,CAA+B;EACjDC,OAAO,GAAc,EAAE;EAE/BC,WAAWA,CAAA,EAAG;IACVH,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEAI,GAAGA,CAAA,EAAG;IACF,OAAO,IAAI,CAACF,OAAO;EACvB;EAEA,MAAMG,GAAGA,CAACC,KAAgB,EAAE;IACxB,IAAI,CAACJ,OAAO,GAAGI,KAAK;EACxB;AACJ","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ISortingRepository } from "../../../index.js";
|
|
2
|
+
export declare class SortingRepositoryFactory {
|
|
3
|
+
private cache;
|
|
4
|
+
getRepository(namespace?: string): ISortingRepository;
|
|
5
|
+
private getCacheKey;
|
|
6
|
+
}
|
|
7
|
+
export declare const sortRepositoryFactory: SortingRepositoryFactory;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SortingRepository } from "./SortingRepository";
|
|
2
|
+
export class SortingRepositoryFactory {
|
|
3
|
+
cache = new Map();
|
|
4
|
+
getRepository(namespace) {
|
|
5
|
+
const cacheKey = this.getCacheKey(namespace);
|
|
6
|
+
if (!this.cache.has(cacheKey)) {
|
|
7
|
+
this.cache.set(cacheKey, new SortingRepository());
|
|
8
|
+
}
|
|
9
|
+
return this.cache.get(cacheKey);
|
|
10
|
+
}
|
|
11
|
+
getCacheKey(namespace) {
|
|
12
|
+
return namespace ?? Date.now().toString();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export const sortRepositoryFactory = new SortingRepositoryFactory();
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=SortingRepositoryFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["SortingRepository","SortingRepositoryFactory","cache","Map","getRepository","namespace","cacheKey","getCacheKey","has","set","get","Date","now","toString","sortRepositoryFactory"],"sources":["SortingRepositoryFactory.ts"],"sourcesContent":["import { SortingRepository } from \"./SortingRepository\";\nimport type { ISortingRepository } from \"~/fta/index.js\";\n\nexport class SortingRepositoryFactory {\n private cache: Map<string, ISortingRepository> = new Map();\n\n getRepository(namespace?: string) {\n const cacheKey = this.getCacheKey(namespace);\n\n if (!this.cache.has(cacheKey)) {\n this.cache.set(cacheKey, new SortingRepository());\n }\n\n return this.cache.get(cacheKey) as ISortingRepository;\n }\n\n private getCacheKey(namespace?: string) {\n return namespace ?? Date.now().toString();\n }\n}\n\nexport const sortRepositoryFactory = new SortingRepositoryFactory();\n"],"mappings":"AAAA,SAASA,iBAAiB;AAG1B,OAAO,MAAMC,wBAAwB,CAAC;EAC1BC,KAAK,GAAoC,IAAIC,GAAG,CAAC,CAAC;EAE1DC,aAAaA,CAACC,SAAkB,EAAE;IAC9B,MAAMC,QAAQ,GAAG,IAAI,CAACC,WAAW,CAACF,SAAS,CAAC;IAE5C,IAAI,CAAC,IAAI,CAACH,KAAK,CAACM,GAAG,CAACF,QAAQ,CAAC,EAAE;MAC3B,IAAI,CAACJ,KAAK,CAACO,GAAG,CAACH,QAAQ,EAAE,IAAIN,iBAAiB,CAAC,CAAC,CAAC;IACrD;IAEA,OAAO,IAAI,CAACE,KAAK,CAACQ,GAAG,CAACJ,QAAQ,CAAC;EACnC;EAEQC,WAAWA,CAACF,SAAkB,EAAE;IACpC,OAAOA,SAAS,IAAIM,IAAI,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;EAC7C;AACJ;AAEA,OAAO,MAAMC,qBAAqB,GAAG,IAAIb,wBAAwB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ISortingRepository\";\nexport * from \"./SortingRepository\";\nexport * from \"./SortingRepositoryFactory\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Loading\";\nexport * from \"./Meta\";\nexport * from \"./Sorting\";\n"],"mappings":"AAAA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Models\";\nexport * from \"./Repositories\";\n"],"mappings":"AAAA;AACA","ignoreList":[]}
|
package/fta/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Domain";
|
package/fta/index.js
ADDED
package/fta/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./Domain\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./fta";
|
package/index.js
ADDED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./fta\";\n"],"mappings":"AAAA","ignoreList":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@webiny/app-utils",
|
|
3
|
+
"version": "0.0.0-unstable.e53eceafb5",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/webiny/webiny-js.git",
|
|
8
|
+
"directory": "packages/app-utils"
|
|
9
|
+
},
|
|
10
|
+
"author": "Webiny Ltd.",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@webiny/utils": "0.0.0-unstable.e53eceafb5",
|
|
14
|
+
"mobx": "6.9.0"
|
|
15
|
+
},
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@webiny/project-utils": "0.0.0-unstable.e53eceafb5",
|
|
18
|
+
"typescript": "5.3.3"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public",
|
|
22
|
+
"directory": "dist"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "node ../cli/bin.js run build",
|
|
26
|
+
"watch": "node ../cli/bin.js run watch"
|
|
27
|
+
},
|
|
28
|
+
"gitHead": "e53eceafb5ce1a3872c9b4548939bb2eae5b1aef"
|
|
29
|
+
}
|