This repository has been archived by the owner on Jun 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sirbu Nicolae-Cezar <sirbunicolaecezar@gmail.com>
- Loading branch information
Showing
14 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/** | ||
* CONSTANTS used for API URLs | ||
*/ | ||
const API_ASSETS_SEARCH_PATH = '/api/assets/search'; | ||
const API_ASSETS_TYPES_PATH = '/api/assets/types'; | ||
export { API_ASSETS_SEARCH_PATH, API_ASSETS_TYPES_PATH }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/** | ||
* CONSTANTS used for main application paths (deep linking). | ||
*/ | ||
const ASSET_CATALOG_PATH = '/assets/catalog'; | ||
export { ASSET_CATALOG_PATH }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
import { formData } from '../../../types/formData'; | ||
/** | ||
* | ||
* @param formData should contain all the query params from the URL | ||
* @param apiUrl is an optional parameter but it is used if API is deployed | ||
* in a different location | ||
* @returns empty array if conditions aren't met otherwise it will fetch data | ||
* from the API | ||
* | ||
* This function is used to fetch data for Asset Catalog. | ||
* | ||
*/ | ||
declare const fetchRawData: (formData: formData, apiUrl?: string) => Promise<any>; | ||
export { fetchRawData }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
/** | ||
* @param apiUrl is an optional parameter but it is used if API is deployed | ||
* in a different location | ||
* | ||
* This function is used to fetch Asset Types. | ||
* | ||
*/ | ||
declare const fetchTypes: (apiUrl?: string) => Promise<any>; | ||
export { fetchTypes }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/** | ||
* CONSTANTS used for API URLs | ||
*/ | ||
declare const API_ASSETS_SEARCH_PATH = "/api/assets/search"; | ||
declare const API_ASSETS_TYPES_PATH = "/api/assets/types"; | ||
export { API_ASSETS_SEARCH_PATH, API_ASSETS_TYPES_PATH }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
/** | ||
* CONSTANTS used for main application paths (deep linking). | ||
*/ | ||
declare const ASSET_CATALOG_PATH = "/assets/catalog"; | ||
export { ASSET_CATALOG_PATH }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters