@webiny/app-utils 0.0.0-unstable.06b2ede40f

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.
Files changed (72) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +18 -0
  3. package/fta/Domain/Models/Meta/Meta.d.ts +13 -0
  4. package/fta/Domain/Models/Meta/Meta.js +19 -0
  5. package/fta/Domain/Models/Meta/Meta.js.map +1 -0
  6. package/fta/Domain/Models/Meta/MetaMapper.d.ts +4 -0
  7. package/fta/Domain/Models/Meta/MetaMapper.js +11 -0
  8. package/fta/Domain/Models/Meta/MetaMapper.js.map +1 -0
  9. package/fta/Domain/Models/Meta/index.d.ts +2 -0
  10. package/fta/Domain/Models/Meta/index.js +4 -0
  11. package/fta/Domain/Models/Meta/index.js.map +1 -0
  12. package/fta/Domain/Models/Sorting/Sorting.d.ts +10 -0
  13. package/fta/Domain/Models/Sorting/Sorting.js +11 -0
  14. package/fta/Domain/Models/Sorting/Sorting.js.map +1 -0
  15. package/fta/Domain/Models/Sorting/SortingMapper.d.ts +12 -0
  16. package/fta/Domain/Models/Sorting/SortingMapper.js +44 -0
  17. package/fta/Domain/Models/Sorting/SortingMapper.js.map +1 -0
  18. package/fta/Domain/Models/Sorting/index.d.ts +2 -0
  19. package/fta/Domain/Models/Sorting/index.js +4 -0
  20. package/fta/Domain/Models/Sorting/index.js.map +1 -0
  21. package/fta/Domain/Models/index.d.ts +2 -0
  22. package/fta/Domain/Models/index.js +4 -0
  23. package/fta/Domain/Models/index.js.map +1 -0
  24. package/fta/Domain/Repositories/Loading/ILoadingRepository.d.ts +8 -0
  25. package/fta/Domain/Repositories/Loading/ILoadingRepository.js +3 -0
  26. package/fta/Domain/Repositories/Loading/ILoadingRepository.js.map +1 -0
  27. package/fta/Domain/Repositories/Loading/LoadingRepository.d.ts +14 -0
  28. package/fta/Domain/Repositories/Loading/LoadingRepository.js +33 -0
  29. package/fta/Domain/Repositories/Loading/LoadingRepository.js.map +1 -0
  30. package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.d.ts +7 -0
  31. package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js +17 -0
  32. package/fta/Domain/Repositories/Loading/LoadingRepositoryFactory.js.map +1 -0
  33. package/fta/Domain/Repositories/Loading/index.d.ts +3 -0
  34. package/fta/Domain/Repositories/Loading/index.js +5 -0
  35. package/fta/Domain/Repositories/Loading/index.js.map +1 -0
  36. package/fta/Domain/Repositories/Meta/IMetaRepository.d.ts +7 -0
  37. package/fta/Domain/Repositories/Meta/IMetaRepository.js +3 -0
  38. package/fta/Domain/Repositories/Meta/IMetaRepository.js.map +1 -0
  39. package/fta/Domain/Repositories/Meta/MetaRepository.d.ts +11 -0
  40. package/fta/Domain/Repositories/Meta/MetaRepository.js +44 -0
  41. package/fta/Domain/Repositories/Meta/MetaRepository.js.map +1 -0
  42. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.d.ts +7 -0
  43. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js +17 -0
  44. package/fta/Domain/Repositories/Meta/MetaRepositoryFactory.js.map +1 -0
  45. package/fta/Domain/Repositories/Meta/index.d.ts +3 -0
  46. package/fta/Domain/Repositories/Meta/index.js +5 -0
  47. package/fta/Domain/Repositories/Meta/index.js.map +1 -0
  48. package/fta/Domain/Repositories/Sorting/ISortingRepository.d.ts +5 -0
  49. package/fta/Domain/Repositories/Sorting/ISortingRepository.js +3 -0
  50. package/fta/Domain/Repositories/Sorting/ISortingRepository.js.map +1 -0
  51. package/fta/Domain/Repositories/Sorting/SortingRepository.d.ts +8 -0
  52. package/fta/Domain/Repositories/Sorting/SortingRepository.js +15 -0
  53. package/fta/Domain/Repositories/Sorting/SortingRepository.js.map +1 -0
  54. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.d.ts +7 -0
  55. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js +17 -0
  56. package/fta/Domain/Repositories/Sorting/SortingRepositoryFactory.js.map +1 -0
  57. package/fta/Domain/Repositories/Sorting/index.d.ts +3 -0
  58. package/fta/Domain/Repositories/Sorting/index.js +5 -0
  59. package/fta/Domain/Repositories/Sorting/index.js.map +1 -0
  60. package/fta/Domain/Repositories/index.d.ts +3 -0
  61. package/fta/Domain/Repositories/index.js +5 -0
  62. package/fta/Domain/Repositories/index.js.map +1 -0
  63. package/fta/Domain/index.d.ts +2 -0
  64. package/fta/Domain/index.js +4 -0
  65. package/fta/Domain/index.js.map +1 -0
  66. package/fta/index.d.ts +1 -0
  67. package/fta/index.js +3 -0
  68. package/fta/index.js.map +1 -0
  69. package/index.d.ts +1 -0
  70. package/index.js +3 -0
  71. package/index.js.map +1 -0
  72. 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://img.shields.io/npm/dw/@webiny/app-utils.svg)](https://www.npmjs.com/package/@webiny/app-utils)
4
+ [![](https://img.shields.io/npm/v/@webiny/app-utils.svg)](https://www.npmjs.com/package/@webiny/app-utils)
5
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
6
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](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,4 @@
1
+ import type { Meta, MetaDTO } from "./Meta";
2
+ export declare class MetaMapper {
3
+ static toDto(data: Meta | MetaDTO): MetaDTO;
4
+ }
@@ -0,0 +1,11 @@
1
+ export class MetaMapper {
2
+ static toDto(data) {
3
+ return {
4
+ totalCount: data.totalCount ?? 0,
5
+ cursor: data.cursor ?? null,
6
+ hasMoreItems: data.hasMoreItems ?? false
7
+ };
8
+ }
9
+ }
10
+
11
+ //# sourceMappingURL=MetaMapper.js.map
@@ -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,2 @@
1
+ export * from "./Meta";
2
+ export * from "./MetaMapper";
@@ -0,0 +1,4 @@
1
+ export * from "./Meta";
2
+ export * from "./MetaMapper";
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -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,10 @@
1
+ export interface SortingDTO {
2
+ field: string;
3
+ order: "asc" | "desc";
4
+ }
5
+ export declare class Sorting {
6
+ field: string;
7
+ order: "asc" | "desc";
8
+ protected constructor(sorting: SortingDTO);
9
+ static create(sorting: SortingDTO): Sorting;
10
+ }
@@ -0,0 +1,11 @@
1
+ export class Sorting {
2
+ constructor(sorting) {
3
+ this.field = sorting.field;
4
+ this.order = sorting.order;
5
+ }
6
+ static create(sorting) {
7
+ return new Sorting(sorting);
8
+ }
9
+ }
10
+
11
+ //# sourceMappingURL=Sorting.js.map
@@ -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,2 @@
1
+ export * from "./Sorting";
2
+ export * from "./SortingMapper";
@@ -0,0 +1,4 @@
1
+ export * from "./Sorting";
2
+ export * from "./SortingMapper";
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -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,2 @@
1
+ export * from "./Meta";
2
+ export * from "./Sorting";
@@ -0,0 +1,4 @@
1
+ export * from "./Meta";
2
+ export * from "./Sorting";
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -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,3 @@
1
+ export {};
2
+
3
+ //# sourceMappingURL=ILoadingRepository.js.map
@@ -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,3 @@
1
+ export * from "./ILoadingRepository";
2
+ export * from "./LoadingRepository";
3
+ export * from "./LoadingRepositoryFactory";
@@ -0,0 +1,5 @@
1
+ export * from "./ILoadingRepository";
2
+ export * from "./LoadingRepository";
3
+ export * from "./LoadingRepositoryFactory";
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -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,7 @@
1
+ import type { Meta } from "../../Models";
2
+ export interface IMetaRepository {
3
+ get: () => Meta;
4
+ set: (meta: Meta) => Promise<void>;
5
+ increaseTotalCount: (count?: number) => Promise<void>;
6
+ decreaseTotalCount: (count?: number) => Promise<void>;
7
+ }
@@ -0,0 +1,3 @@
1
+ export {};
2
+
3
+ //# sourceMappingURL=IMetaRepository.js.map
@@ -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,44 @@
1
+ import { makeAutoObservable, runInAction } 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
+ runInAction(() => {
11
+ this.meta = Meta.create(meta);
12
+ });
13
+ }
14
+ get() {
15
+ return MetaMapper.toDto(this.meta);
16
+ }
17
+ async decreaseTotalCount(count = 1) {
18
+ return await this.updateMetaOnColumnDeltaChange(-count);
19
+ }
20
+ async increaseTotalCount(count = 1) {
21
+ return await this.updateMetaOnColumnDeltaChange(count);
22
+ }
23
+ async updateMetaOnColumnDeltaChange(countDelta) {
24
+ // Retrieve the current meta
25
+ const current = this.get();
26
+
27
+ // Calculate the new totalCount based on the delta change
28
+ const totalCount = current.totalCount + countDelta;
29
+
30
+ // Calculate the new cursor position based on the delta change
31
+ const cursorDecoded = decodeCursor(current.cursor);
32
+ const newCursorDecoded = String(Number(cursorDecoded) + countDelta);
33
+ const cursor = encodeCursor(newCursorDecoded);
34
+
35
+ // Update the meta with the new totalCount and cursor
36
+ return await this.set({
37
+ ...current,
38
+ totalCount,
39
+ cursor
40
+ });
41
+ }
42
+ }
43
+
44
+ //# sourceMappingURL=MetaRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["makeAutoObservable","runInAction","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, runInAction } 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 runInAction(() => {\n this.meta = Meta.create(meta);\n });\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,EAAEC,WAAW,QAAQ,MAAM;AACtD,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;IAC9BT,kBAAkB,CAAC,IAAI,CAAC;EAC5B;EAEA,MAAMU,GAAGA,CAACF,IAAa,EAAE;IACrBP,WAAW,CAAC,MAAM;MACd,IAAI,CAACO,IAAI,GAAGJ,IAAI,CAACO,MAAM,CAACH,IAAI,CAAC;IACjC,CAAC,CAAC;EACN;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,7 @@
1
+ import { MetaRepository } from "./MetaRepository";
2
+ export declare class MetaRepositoryFactory {
3
+ private cache;
4
+ getRepository(namespace?: string): MetaRepository;
5
+ private getCacheKey;
6
+ }
7
+ export declare const metaRepositoryFactory: MetaRepositoryFactory;
@@ -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,3 @@
1
+ export * from "./IMetaRepository";
2
+ export * from "./MetaRepository";
3
+ export * from "./MetaRepositoryFactory";
@@ -0,0 +1,5 @@
1
+ export * from "./IMetaRepository";
2
+ export * from "./MetaRepository";
3
+ export * from "./MetaRepositoryFactory";
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -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,5 @@
1
+ import type { Sorting } from "../../Models";
2
+ export interface ISortingRepository {
3
+ set: (sorts: Sorting[]) => Promise<void>;
4
+ get: () => Sorting[];
5
+ }
@@ -0,0 +1,3 @@
1
+ export {};
2
+
3
+ //# sourceMappingURL=ISortingRepository.js.map
@@ -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,3 @@
1
+ export * from "./ISortingRepository";
2
+ export * from "./SortingRepository";
3
+ export * from "./SortingRepositoryFactory";
@@ -0,0 +1,5 @@
1
+ export * from "./ISortingRepository";
2
+ export * from "./SortingRepository";
3
+ export * from "./SortingRepositoryFactory";
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -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,3 @@
1
+ export * from "./Loading";
2
+ export * from "./Meta";
3
+ export * from "./Sorting";
@@ -0,0 +1,5 @@
1
+ export * from "./Loading";
2
+ export * from "./Meta";
3
+ export * from "./Sorting";
4
+
5
+ //# sourceMappingURL=index.js.map
@@ -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,2 @@
1
+ export * from "./Models";
2
+ export * from "./Repositories";
@@ -0,0 +1,4 @@
1
+ export * from "./Models";
2
+ export * from "./Repositories";
3
+
4
+ //# sourceMappingURL=index.js.map
@@ -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
@@ -0,0 +1,3 @@
1
+ export * from "./Domain";
2
+
3
+ //# sourceMappingURL=index.js.map
@@ -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
@@ -0,0 +1,3 @@
1
+ export * from "./fta";
2
+
3
+ //# sourceMappingURL=index.js.map
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.06b2ede40f",
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.06b2ede40f",
14
+ "mobx": "6.9.0"
15
+ },
16
+ "devDependencies": {
17
+ "@webiny/project-utils": "0.0.0-unstable.06b2ede40f",
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": "06b2ede40fc2212a70eeafd74afd50b56fb0ce82"
29
+ }