-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
47 lines (47 loc) · 1.91 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export type FasterBaseUrl = `https://${string}/FASTER`;
/**
* Tests if a base URL is valid.
* @param fasterBaseUrl - A possible FASTER Web base URL.
* @returns `true` if the base URL is valid.
*/
export declare function isValidBaseUrl(fasterBaseUrl: string): fasterBaseUrl is FasterBaseUrl;
export declare class FasterUrlBuilder {
#private;
/** Base URL */
readonly baseUrl: FasterBaseUrl;
/** Login URL */
readonly loginUrl: `${FasterBaseUrl}/Login`;
/** Inventory Item Request Search URL */
readonly inventoryItemRequestSearchUrl: `${FasterBaseUrl}/Domains/Parts/PartRequest/PartsRequest.aspx`;
/** Report Viewer URL - Parameters required */
readonly reportViewerUrl: `${FasterBaseUrl}/Domains/Reports/ReportViewer.aspx`;
/** Integrations Console URL */
readonly integrationsUrl: `${FasterBaseUrl}/Domains/Integrations/Default.aspx`;
/** Technician Workstation URL */
readonly technicianWorkstationUrl: `${FasterBaseUrl}Tech`;
/**
* Initializes the FasterUrlBuilder
* @param fasterTenantOrBaseUrl - The subdomain of the FASTER Web URL before ".fasterwebcloud.com"
* or the full domain and path including "/FASTER"
*/
constructor(fasterTenantOrBaseUrl: string);
/**
* Builds a URL for the inventory search.
* @param searchString - Item number search string
* @returns Inventory search URL
*/
inventorySearchUrl(searchString?: string): string;
/**
* Builds a URL for a given work order.
* @param workOrderNumber - Work order number
* @returns Work order URL
*/
workOrderUrl(workOrderNumber: number | string): string;
/**
* Builds a URL for the work order search.
* @param searchString - Work order number or asset number search string
* @returns Work order search URL
*/
workOrderSearchUrl(searchString?: string): string;
}
export default FasterUrlBuilder;