@cedx/base 0.18.0 → 0.20.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/ReadMe.md +1 -1
- package/lib/{DateExtensions.d.ts → Date.d.ts} +9 -9
- package/lib/Date.d.ts.map +1 -0
- package/lib/{DateExtensions.js → Date.js} +12 -10
- package/lib/{FileExtensions.d.ts → File.d.ts} +1 -1
- package/lib/File.d.ts.map +1 -0
- package/lib/{NumberExtensions.d.ts → Number.d.ts} +1 -1
- package/lib/Number.d.ts.map +1 -0
- package/lib/{StringExtensions.d.ts → String.d.ts} +1 -19
- package/lib/String.d.ts.map +1 -0
- package/lib/{StringExtensions.js → String.js} +0 -40
- package/lib/UI/Components/LoadingIndicator.d.ts +16 -0
- package/lib/UI/Components/LoadingIndicator.d.ts.map +1 -1
- package/lib/UI/Components/LoadingIndicator.js +41 -2
- package/lib/UI/Components/MessageBox.d.ts +7 -7
- package/lib/UI/Components/MessageBox.d.ts.map +1 -1
- package/lib/UI/Components/MessageBox.js +4 -5
- package/lib/UI/Components/OfflineIndicator.d.ts +16 -0
- package/lib/UI/Components/OfflineIndicator.d.ts.map +1 -1
- package/lib/UI/Components/OfflineIndicator.js +39 -1
- package/lib/UI/Components/Toast.d.ts +3 -3
- package/lib/UI/Components/Toast.d.ts.map +1 -1
- package/lib/UI/Components/Toast.js +2 -2
- package/lib/UI/Components/Toaster.d.ts +2 -2
- package/lib/UI/Components/Toaster.d.ts.map +1 -1
- package/lib/UI/Components/Toaster.js +3 -4
- package/lib/UI/{FormExtensions.d.ts → Form.d.ts} +1 -1
- package/lib/UI/Form.d.ts.map +1 -0
- package/lib/UI/Tag.d.ts +15 -0
- package/lib/UI/Tag.d.ts.map +1 -0
- package/lib/UI/Tag.js +42 -0
- package/package.json +2 -2
- package/src/Client/{DateExtensions.ts → Date.ts} +13 -10
- package/src/Client/{StringExtensions.ts → String.ts} +0 -40
- package/src/Client/UI/Components/LoadingIndicator.ts +42 -2
- package/src/Client/UI/Components/MessageBox.ts +10 -11
- package/src/Client/UI/Components/OfflineIndicator.ts +40 -1
- package/src/Client/UI/Components/Toast.ts +4 -4
- package/src/Client/UI/Components/Toaster.ts +4 -5
- package/src/Client/UI/Tag.ts +50 -0
- package/src/Client/tsconfig.json +0 -2
- package/lib/DateExtensions.d.ts.map +0 -1
- package/lib/FileExtensions.d.ts.map +0 -1
- package/lib/Hosting/Environment.d.ts +0 -22
- package/lib/Hosting/Environment.d.ts.map +0 -1
- package/lib/Hosting/Environment.js +0 -17
- package/lib/Hosting/HostEnvironment.d.ts +0 -61
- package/lib/Hosting/HostEnvironment.d.ts.map +0 -1
- package/lib/Hosting/HostEnvironment.js +0 -56
- package/lib/Net/Http/HttpMethod.d.ts +0 -46
- package/lib/Net/Http/HttpMethod.d.ts.map +0 -1
- package/lib/Net/Http/HttpMethod.js +0 -41
- package/lib/Net/Http/StatusCode.d.ts +0 -122
- package/lib/Net/Http/StatusCode.d.ts.map +0 -1
- package/lib/Net/Http/StatusCode.js +0 -117
- package/lib/Net/Mime/DispositionType.d.ts +0 -18
- package/lib/Net/Mime/DispositionType.d.ts.map +0 -1
- package/lib/Net/Mime/DispositionType.js +0 -13
- package/lib/Net/Mime/MediaType.d.ts +0 -151
- package/lib/Net/Mime/MediaType.d.ts.map +0 -1
- package/lib/Net/Mime/MediaType.js +0 -150
- package/lib/NumberExtensions.d.ts.map +0 -1
- package/lib/StringExtensions.d.ts.map +0 -1
- package/lib/UI/ElementExtensions.d.ts +0 -13
- package/lib/UI/ElementExtensions.d.ts.map +0 -1
- package/lib/UI/ElementExtensions.js +0 -18
- package/lib/UI/FormExtensions.d.ts.map +0 -1
- package/src/Client/Hosting/Environment.ts +0 -25
- package/src/Client/Hosting/HostEnvironment.ts +0 -86
- package/src/Client/Hosting/tsconfig.json +0 -13
- package/src/Client/Net/Http/HttpMethod.ts +0 -55
- package/src/Client/Net/Http/StatusCode.ts +0 -150
- package/src/Client/Net/Mime/DispositionType.ts +0 -20
- package/src/Client/Net/Mime/MediaType.ts +0 -185
- package/src/Client/Net/tsconfig.json +0 -13
- package/src/Client/UI/ElementExtensions.ts +0 -19
- /package/lib/{FileExtensions.js → File.js} +0 -0
- /package/lib/{NumberExtensions.js → Number.js} +0 -0
- /package/lib/UI/{FormExtensions.js → Form.js} +0 -0
- /package/src/Client/{FileExtensions.ts → File.ts} +0 -0
- /package/src/Client/{NumberExtensions.ts → Number.ts} +0 -0
- /package/src/Client/UI/{FormExtensions.ts → Form.ts} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Environment } from "./Environment.js";
|
|
2
|
-
/**
|
|
3
|
-
* Provides information about the hosting environment an application is running in.
|
|
4
|
-
*/
|
|
5
|
-
export class HostEnvironment {
|
|
6
|
-
/**
|
|
7
|
-
* The name of the application.
|
|
8
|
-
*/
|
|
9
|
-
applicationName;
|
|
10
|
-
/**
|
|
11
|
-
* The path to the directory that contains the application content files.
|
|
12
|
-
*/
|
|
13
|
-
contentRootPath;
|
|
14
|
-
/**
|
|
15
|
-
* The name of the environment.
|
|
16
|
-
*/
|
|
17
|
-
environmentName;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a new host environment.
|
|
20
|
-
* @param options An object providing values to initialize this instance.
|
|
21
|
-
*/
|
|
22
|
-
constructor(options = {}) {
|
|
23
|
-
this.applicationName = options.applicationName ?? document.head.querySelector('meta[name="application-name"]')?.content ?? location.hostname;
|
|
24
|
-
this.contentRootPath = options.contentRootPath ?? document.head.querySelector("base")?.getAttribute("href") ?? "/";
|
|
25
|
-
this.environmentName = options.environmentName ?? Environment.Production;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Checks if the current environment name is {@link Environment.Development}.
|
|
29
|
-
* @returns `true` if the environment name is {@link Environment.Development}, otherwise `false`.
|
|
30
|
-
*/
|
|
31
|
-
get isDevelopment() {
|
|
32
|
-
return this.isEnvironment(Environment.Development);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Checks if the current environment name is {@link Environment.Production}.
|
|
36
|
-
* @returns `true` if the environment name is {@link Environment.Production}, otherwise `false`.
|
|
37
|
-
*/
|
|
38
|
-
get isProduction() {
|
|
39
|
-
return this.isEnvironment(Environment.Production);
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Checks if the current environment name is {@link Environment.Staging}.
|
|
43
|
-
* @returns `true` if the environment name is {@link Environment.Staging}, otherwise `false`.
|
|
44
|
-
*/
|
|
45
|
-
get isStaging() {
|
|
46
|
-
return this.isEnvironment(Environment.Staging);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Compares the current host environment name against the specified value.
|
|
50
|
-
* @param environmentName The environment name to validate against.
|
|
51
|
-
* @returns `true` if the specified name is the same as the current environment, otherwise `false`.
|
|
52
|
-
*/
|
|
53
|
-
isEnvironment(environmentName) {
|
|
54
|
-
return this.environmentName == environmentName;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides HTTP methods.
|
|
3
|
-
*/
|
|
4
|
-
export declare const HttpMethod: Readonly<{
|
|
5
|
-
/**
|
|
6
|
-
* The `CONNECT` HTTP method.
|
|
7
|
-
*/
|
|
8
|
-
Connect: "CONNECT";
|
|
9
|
-
/**
|
|
10
|
-
* The `DELETE` HTTP method.
|
|
11
|
-
*/
|
|
12
|
-
Delete: "DELETE";
|
|
13
|
-
/**
|
|
14
|
-
* The `GET` HTTP method.
|
|
15
|
-
*/
|
|
16
|
-
Get: "GET";
|
|
17
|
-
/**
|
|
18
|
-
* The `HEAD` HTTP method.
|
|
19
|
-
*/
|
|
20
|
-
Head: "HEAD";
|
|
21
|
-
/**
|
|
22
|
-
* The `OPTIONS` HTTP method.
|
|
23
|
-
*/
|
|
24
|
-
Options: "OPTIONS";
|
|
25
|
-
/**
|
|
26
|
-
* The `PATCH` HTTP method.
|
|
27
|
-
*/
|
|
28
|
-
Patch: "PATCH";
|
|
29
|
-
/**
|
|
30
|
-
* The `POST` HTTP method.
|
|
31
|
-
*/
|
|
32
|
-
Post: "POST";
|
|
33
|
-
/**
|
|
34
|
-
* The `PUT` HTTP method.
|
|
35
|
-
*/
|
|
36
|
-
Put: "PUT";
|
|
37
|
-
/**
|
|
38
|
-
* The `TRACE` HTTP method.
|
|
39
|
-
*/
|
|
40
|
-
Trace: "TRACE";
|
|
41
|
-
}>;
|
|
42
|
-
/**
|
|
43
|
-
* Provides HTTP methods.
|
|
44
|
-
*/
|
|
45
|
-
export type HttpMethod = typeof HttpMethod[keyof typeof HttpMethod];
|
|
46
|
-
//# sourceMappingURL=HttpMethod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HttpMethod.d.ts","sourceRoot":"","sources":["../../../src/Client/Net/Http/HttpMethod.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU;IAEtB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides HTTP methods.
|
|
3
|
-
*/
|
|
4
|
-
export const HttpMethod = Object.freeze({
|
|
5
|
-
/**
|
|
6
|
-
* The `CONNECT` HTTP method.
|
|
7
|
-
*/
|
|
8
|
-
Connect: "CONNECT",
|
|
9
|
-
/**
|
|
10
|
-
* The `DELETE` HTTP method.
|
|
11
|
-
*/
|
|
12
|
-
Delete: "DELETE",
|
|
13
|
-
/**
|
|
14
|
-
* The `GET` HTTP method.
|
|
15
|
-
*/
|
|
16
|
-
Get: "GET",
|
|
17
|
-
/**
|
|
18
|
-
* The `HEAD` HTTP method.
|
|
19
|
-
*/
|
|
20
|
-
Head: "HEAD",
|
|
21
|
-
/**
|
|
22
|
-
* The `OPTIONS` HTTP method.
|
|
23
|
-
*/
|
|
24
|
-
Options: "OPTIONS",
|
|
25
|
-
/**
|
|
26
|
-
* The `PATCH` HTTP method.
|
|
27
|
-
*/
|
|
28
|
-
Patch: "PATCH",
|
|
29
|
-
/**
|
|
30
|
-
* The `POST` HTTP method.
|
|
31
|
-
*/
|
|
32
|
-
Post: "POST",
|
|
33
|
-
/**
|
|
34
|
-
* The `PUT` HTTP method.
|
|
35
|
-
*/
|
|
36
|
-
Put: "PUT",
|
|
37
|
-
/**
|
|
38
|
-
* The `TRACE` HTTP method.
|
|
39
|
-
*/
|
|
40
|
-
Trace: "TRACE"
|
|
41
|
-
});
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides common HTTP status codes.
|
|
3
|
-
*/
|
|
4
|
-
export declare const StatusCode: Readonly<{
|
|
5
|
-
/**
|
|
6
|
-
* The `OK` status code.
|
|
7
|
-
*/
|
|
8
|
-
OK: 200;
|
|
9
|
-
/**
|
|
10
|
-
* The `Created` status code.
|
|
11
|
-
*/
|
|
12
|
-
Created: 201;
|
|
13
|
-
/**
|
|
14
|
-
* The `No Content` status code.
|
|
15
|
-
*/
|
|
16
|
-
NoContent: 204;
|
|
17
|
-
/**
|
|
18
|
-
* The `Moved Permanently` status code.
|
|
19
|
-
*/
|
|
20
|
-
MovedPermanently: 301;
|
|
21
|
-
/**
|
|
22
|
-
* The `Found` status code.
|
|
23
|
-
*/
|
|
24
|
-
Found: 302;
|
|
25
|
-
/**
|
|
26
|
-
* The `Not Modified` status code.
|
|
27
|
-
*/
|
|
28
|
-
NotModified: 304;
|
|
29
|
-
/**
|
|
30
|
-
* The `Temporary Redirect` status code.
|
|
31
|
-
*/
|
|
32
|
-
TemporaryRedirect: 307;
|
|
33
|
-
/**
|
|
34
|
-
* The `Permanent Redirect` status code.
|
|
35
|
-
*/
|
|
36
|
-
PermanentRedirect: 308;
|
|
37
|
-
/**
|
|
38
|
-
* The `Bad Request` status code.
|
|
39
|
-
*/
|
|
40
|
-
BadRequest: 400;
|
|
41
|
-
/**
|
|
42
|
-
* The `Unauthorized` status code.
|
|
43
|
-
*/
|
|
44
|
-
Unauthorized: 401;
|
|
45
|
-
/**
|
|
46
|
-
* The `Payment Required` status code.
|
|
47
|
-
*/
|
|
48
|
-
PaymentRequired: 402;
|
|
49
|
-
/**
|
|
50
|
-
* The `Forbidden` status code.
|
|
51
|
-
*/
|
|
52
|
-
Forbidden: 403;
|
|
53
|
-
/**
|
|
54
|
-
* The `Not Found` status code.
|
|
55
|
-
*/
|
|
56
|
-
NotFound: 404;
|
|
57
|
-
/**
|
|
58
|
-
* The `Method Not Allowed` status code.
|
|
59
|
-
*/
|
|
60
|
-
MethodNotAllowed: 405;
|
|
61
|
-
/**
|
|
62
|
-
* The `Not Acceptable` status code.
|
|
63
|
-
*/
|
|
64
|
-
NotAcceptable: 406;
|
|
65
|
-
/**
|
|
66
|
-
* The `Request Timeout` status code.
|
|
67
|
-
*/
|
|
68
|
-
RequestTimeout: 408;
|
|
69
|
-
/**
|
|
70
|
-
* The `Conflict` status code.
|
|
71
|
-
*/
|
|
72
|
-
Conflict: 409;
|
|
73
|
-
/**
|
|
74
|
-
* The `Payload Too Large` status code.
|
|
75
|
-
*/
|
|
76
|
-
PayloadTooLarge: 413;
|
|
77
|
-
/**
|
|
78
|
-
* The `Unsupported Media Type` status code.
|
|
79
|
-
*/
|
|
80
|
-
UnsupportedMediaType: 415;
|
|
81
|
-
/**
|
|
82
|
-
* The `Authentication Timeout` status code.
|
|
83
|
-
*/
|
|
84
|
-
AuthenticationTimeout: 419;
|
|
85
|
-
/**
|
|
86
|
-
* The `Unprocessable Content` status code.
|
|
87
|
-
*/
|
|
88
|
-
UnprocessableContent: 422;
|
|
89
|
-
/**
|
|
90
|
-
* The `Too Many Requests` status code.
|
|
91
|
-
*/
|
|
92
|
-
TooManyRequests: 429;
|
|
93
|
-
/**
|
|
94
|
-
* The `Internal Server Error` status code.
|
|
95
|
-
*/
|
|
96
|
-
InternalServerError: 500;
|
|
97
|
-
/**
|
|
98
|
-
* The `Not Implemented` status code.
|
|
99
|
-
*/
|
|
100
|
-
NotImplemented: 501;
|
|
101
|
-
/**
|
|
102
|
-
* The `Bad Gateway` status code.
|
|
103
|
-
*/
|
|
104
|
-
BadGateway: 502;
|
|
105
|
-
/**
|
|
106
|
-
* The `Service Unavailable` status code.
|
|
107
|
-
*/
|
|
108
|
-
ServiceUnavailable: 503;
|
|
109
|
-
/**
|
|
110
|
-
* The `Gateway Timeout` status code.
|
|
111
|
-
*/
|
|
112
|
-
GatewayTimeout: 504;
|
|
113
|
-
/**
|
|
114
|
-
* The `Bandwidth Limit Exceeded` status
|
|
115
|
-
*/
|
|
116
|
-
BandwidthLimitExceeded: 509;
|
|
117
|
-
}>;
|
|
118
|
-
/**
|
|
119
|
-
* Provides common HTTP status codes.
|
|
120
|
-
*/
|
|
121
|
-
export type StatusCode = typeof StatusCode[keyof typeof StatusCode];
|
|
122
|
-
//# sourceMappingURL=StatusCode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StatusCode.d.ts","sourceRoot":"","sources":["../../../src/Client/Net/Http/StatusCode.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,UAAU;IAEtB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides common HTTP status codes.
|
|
3
|
-
*/
|
|
4
|
-
export const StatusCode = Object.freeze({
|
|
5
|
-
/**
|
|
6
|
-
* The `OK` status code.
|
|
7
|
-
*/
|
|
8
|
-
OK: 200,
|
|
9
|
-
/**
|
|
10
|
-
* The `Created` status code.
|
|
11
|
-
*/
|
|
12
|
-
Created: 201,
|
|
13
|
-
/**
|
|
14
|
-
* The `No Content` status code.
|
|
15
|
-
*/
|
|
16
|
-
NoContent: 204,
|
|
17
|
-
/**
|
|
18
|
-
* The `Moved Permanently` status code.
|
|
19
|
-
*/
|
|
20
|
-
MovedPermanently: 301,
|
|
21
|
-
/**
|
|
22
|
-
* The `Found` status code.
|
|
23
|
-
*/
|
|
24
|
-
Found: 302,
|
|
25
|
-
/**
|
|
26
|
-
* The `Not Modified` status code.
|
|
27
|
-
*/
|
|
28
|
-
NotModified: 304,
|
|
29
|
-
/**
|
|
30
|
-
* The `Temporary Redirect` status code.
|
|
31
|
-
*/
|
|
32
|
-
TemporaryRedirect: 307,
|
|
33
|
-
/**
|
|
34
|
-
* The `Permanent Redirect` status code.
|
|
35
|
-
*/
|
|
36
|
-
PermanentRedirect: 308,
|
|
37
|
-
/**
|
|
38
|
-
* The `Bad Request` status code.
|
|
39
|
-
*/
|
|
40
|
-
BadRequest: 400,
|
|
41
|
-
/**
|
|
42
|
-
* The `Unauthorized` status code.
|
|
43
|
-
*/
|
|
44
|
-
Unauthorized: 401,
|
|
45
|
-
/**
|
|
46
|
-
* The `Payment Required` status code.
|
|
47
|
-
*/
|
|
48
|
-
PaymentRequired: 402,
|
|
49
|
-
/**
|
|
50
|
-
* The `Forbidden` status code.
|
|
51
|
-
*/
|
|
52
|
-
Forbidden: 403,
|
|
53
|
-
/**
|
|
54
|
-
* The `Not Found` status code.
|
|
55
|
-
*/
|
|
56
|
-
NotFound: 404,
|
|
57
|
-
/**
|
|
58
|
-
* The `Method Not Allowed` status code.
|
|
59
|
-
*/
|
|
60
|
-
MethodNotAllowed: 405,
|
|
61
|
-
/**
|
|
62
|
-
* The `Not Acceptable` status code.
|
|
63
|
-
*/
|
|
64
|
-
NotAcceptable: 406,
|
|
65
|
-
/**
|
|
66
|
-
* The `Request Timeout` status code.
|
|
67
|
-
*/
|
|
68
|
-
RequestTimeout: 408,
|
|
69
|
-
/**
|
|
70
|
-
* The `Conflict` status code.
|
|
71
|
-
*/
|
|
72
|
-
Conflict: 409,
|
|
73
|
-
/**
|
|
74
|
-
* The `Payload Too Large` status code.
|
|
75
|
-
*/
|
|
76
|
-
PayloadTooLarge: 413,
|
|
77
|
-
/**
|
|
78
|
-
* The `Unsupported Media Type` status code.
|
|
79
|
-
*/
|
|
80
|
-
UnsupportedMediaType: 415,
|
|
81
|
-
/**
|
|
82
|
-
* The `Authentication Timeout` status code.
|
|
83
|
-
*/
|
|
84
|
-
AuthenticationTimeout: 419,
|
|
85
|
-
/**
|
|
86
|
-
* The `Unprocessable Content` status code.
|
|
87
|
-
*/
|
|
88
|
-
UnprocessableContent: 422,
|
|
89
|
-
/**
|
|
90
|
-
* The `Too Many Requests` status code.
|
|
91
|
-
*/
|
|
92
|
-
TooManyRequests: 429,
|
|
93
|
-
/**
|
|
94
|
-
* The `Internal Server Error` status code.
|
|
95
|
-
*/
|
|
96
|
-
InternalServerError: 500,
|
|
97
|
-
/**
|
|
98
|
-
* The `Not Implemented` status code.
|
|
99
|
-
*/
|
|
100
|
-
NotImplemented: 501,
|
|
101
|
-
/**
|
|
102
|
-
* The `Bad Gateway` status code.
|
|
103
|
-
*/
|
|
104
|
-
BadGateway: 502,
|
|
105
|
-
/**
|
|
106
|
-
* The `Service Unavailable` status code.
|
|
107
|
-
*/
|
|
108
|
-
ServiceUnavailable: 503,
|
|
109
|
-
/**
|
|
110
|
-
* The `Gateway Timeout` status code.
|
|
111
|
-
*/
|
|
112
|
-
GatewayTimeout: 504,
|
|
113
|
-
/**
|
|
114
|
-
* The `Bandwidth Limit Exceeded` status
|
|
115
|
-
*/
|
|
116
|
-
BandwidthLimitExceeded: 509
|
|
117
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides the strings used to specify the disposition type.
|
|
3
|
-
*/
|
|
4
|
-
export declare const DispositionType: Readonly<{
|
|
5
|
-
/**
|
|
6
|
-
* The `attachment` disposition type.
|
|
7
|
-
*/
|
|
8
|
-
Attachment: "attachment";
|
|
9
|
-
/**
|
|
10
|
-
* The `inline` disposition type.
|
|
11
|
-
*/
|
|
12
|
-
Inline: "inline";
|
|
13
|
-
}>;
|
|
14
|
-
/**
|
|
15
|
-
* Provides the strings used to specify the disposition type.
|
|
16
|
-
*/
|
|
17
|
-
export type DispositionType = typeof DispositionType[keyof typeof DispositionType];
|
|
18
|
-
//# sourceMappingURL=DispositionType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DispositionType.d.ts","sourceRoot":"","sources":["../../../src/Client/Net/Mime/DispositionType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe;IAE3B;;OAEG;;IAGH;;OAEG;;EAEF,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides the strings used to specify the disposition type.
|
|
3
|
-
*/
|
|
4
|
-
export const DispositionType = Object.freeze({
|
|
5
|
-
/**
|
|
6
|
-
* The `attachment` disposition type.
|
|
7
|
-
*/
|
|
8
|
-
Attachment: "attachment",
|
|
9
|
-
/**
|
|
10
|
-
* The `inline` disposition type.
|
|
11
|
-
*/
|
|
12
|
-
Inline: "inline"
|
|
13
|
-
});
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Provides the strings used to specify the media type.
|
|
3
|
-
*/
|
|
4
|
-
export declare const MediaType: Readonly<{
|
|
5
|
-
/**
|
|
6
|
-
* Specifies the kind of application data.
|
|
7
|
-
*/
|
|
8
|
-
Application: Readonly<{
|
|
9
|
-
/**
|
|
10
|
-
* Specifies that the application data consists of url-encoded key-value pairs.
|
|
11
|
-
*/
|
|
12
|
-
FormUrlEncoded: "application/x-www-form-urlencoded";
|
|
13
|
-
/**
|
|
14
|
-
* Specifies that the application data is in gzip format.
|
|
15
|
-
*/
|
|
16
|
-
GZip: "application/gzip";
|
|
17
|
-
/**
|
|
18
|
-
* Specifies that the application data is in JSON format.
|
|
19
|
-
*/
|
|
20
|
-
Json: "application/json";
|
|
21
|
-
/**
|
|
22
|
-
* Specifies that the application data is in Web Application Manifest.
|
|
23
|
-
*/
|
|
24
|
-
Manifest: "application/manifest+json";
|
|
25
|
-
/**
|
|
26
|
-
* Specifies that the application data is not interpreted.
|
|
27
|
-
*/
|
|
28
|
-
Octet: "application/octet-stream";
|
|
29
|
-
/**
|
|
30
|
-
* Specifies that the application data is in Portable Document Format (PDF).
|
|
31
|
-
*/
|
|
32
|
-
Pdf: "application/pdf";
|
|
33
|
-
/**
|
|
34
|
-
* Specifies that the application data is a SOAP document.
|
|
35
|
-
*/
|
|
36
|
-
Soap: "application/soap+xml";
|
|
37
|
-
/**
|
|
38
|
-
* Specifies that the application data is in WASM format.
|
|
39
|
-
*/
|
|
40
|
-
Wasm: "application/wasm";
|
|
41
|
-
/**
|
|
42
|
-
* Specifies that the application data is in XML format.
|
|
43
|
-
*/
|
|
44
|
-
Xml: "application/xml";
|
|
45
|
-
/**
|
|
46
|
-
* Specifies that the application data is compressed.
|
|
47
|
-
*/
|
|
48
|
-
Zip: "application/zip";
|
|
49
|
-
}>;
|
|
50
|
-
/**
|
|
51
|
-
* Specifies the kind of font data.
|
|
52
|
-
*/
|
|
53
|
-
Font: Readonly<{
|
|
54
|
-
/**
|
|
55
|
-
* Specifies that the font data is in TrueType font (TTF) format.
|
|
56
|
-
*/
|
|
57
|
-
Ttf: "font/ttf";
|
|
58
|
-
/**
|
|
59
|
-
* Specifies that the font data is in WOFF format.
|
|
60
|
-
*/
|
|
61
|
-
Woff: "font/woff";
|
|
62
|
-
/**
|
|
63
|
-
* Specifies that the font data is in WOFF2 format.
|
|
64
|
-
*/
|
|
65
|
-
Woff2: "font/woff2";
|
|
66
|
-
}>;
|
|
67
|
-
/**
|
|
68
|
-
* Specifies the kind of image data.
|
|
69
|
-
*/
|
|
70
|
-
Image: Readonly<{
|
|
71
|
-
/**
|
|
72
|
-
* Specifies that the image data is in AVIF format.
|
|
73
|
-
*/
|
|
74
|
-
Avif: "image/avif";
|
|
75
|
-
/**
|
|
76
|
-
* Specifies that the image data is in GIF format.
|
|
77
|
-
*/
|
|
78
|
-
Gif: "image/gif";
|
|
79
|
-
/**
|
|
80
|
-
* Specifies that the image data is in ICO format.
|
|
81
|
-
*/
|
|
82
|
-
Icon: "image/x-icon";
|
|
83
|
-
/**
|
|
84
|
-
* Specifies that the image data is in JPEG format.
|
|
85
|
-
*/
|
|
86
|
-
Jpeg: "image/jpeg";
|
|
87
|
-
/**
|
|
88
|
-
* Specifies that the image data is in PNG format.
|
|
89
|
-
*/
|
|
90
|
-
Png: "image/png";
|
|
91
|
-
/**
|
|
92
|
-
* Specifies that the image data is in SVG format.
|
|
93
|
-
*/
|
|
94
|
-
Svg: "image/svg+xml";
|
|
95
|
-
/**
|
|
96
|
-
* Specifies that the image data is in WEBP format.
|
|
97
|
-
*/
|
|
98
|
-
WebP: "image/webp";
|
|
99
|
-
}>;
|
|
100
|
-
/**
|
|
101
|
-
* Specifies the kind of multipart data.
|
|
102
|
-
*/
|
|
103
|
-
Multipart: Readonly<{
|
|
104
|
-
/**
|
|
105
|
-
* Specifies that the multipart data is in form data format.
|
|
106
|
-
*/
|
|
107
|
-
FormData: "multipart/form-data";
|
|
108
|
-
/**
|
|
109
|
-
* Specifies that the multipart data is in mixed format.
|
|
110
|
-
*/
|
|
111
|
-
Mixed: "multipart/mixed";
|
|
112
|
-
}>;
|
|
113
|
-
/**
|
|
114
|
-
* Specifies the kind of text data.
|
|
115
|
-
*/
|
|
116
|
-
Text: Readonly<{
|
|
117
|
-
/**
|
|
118
|
-
* Specifies that the text data is in CSS format.
|
|
119
|
-
*/
|
|
120
|
-
Css: "text/css";
|
|
121
|
-
/**
|
|
122
|
-
* Specifies that the text data is in CSV format.
|
|
123
|
-
*/
|
|
124
|
-
Csv: "text/csv";
|
|
125
|
-
/**
|
|
126
|
-
* Specifies that the text data is in event stream format.
|
|
127
|
-
*/
|
|
128
|
-
EventStream: "text/event-stream";
|
|
129
|
-
/**
|
|
130
|
-
* Specifies that the text data is in HTML format.
|
|
131
|
-
*/
|
|
132
|
-
Html: "text/html";
|
|
133
|
-
/**
|
|
134
|
-
* Specifies that the text data is in JavaScript format.
|
|
135
|
-
*/
|
|
136
|
-
JavaScript: "text/javascript";
|
|
137
|
-
/**
|
|
138
|
-
* Specifies that the text data is in Markdown format.
|
|
139
|
-
*/
|
|
140
|
-
Markdown: "text/markdown";
|
|
141
|
-
/**
|
|
142
|
-
* Specifies that the text data is in plain text format.
|
|
143
|
-
*/
|
|
144
|
-
Plain: "text/plain";
|
|
145
|
-
/**
|
|
146
|
-
* Specifies that the text data is in XML format.
|
|
147
|
-
*/
|
|
148
|
-
Xml: "text/xml";
|
|
149
|
-
}>;
|
|
150
|
-
}>;
|
|
151
|
-
//# sourceMappingURL=MediaType.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MediaType.d.ts","sourceRoot":"","sources":["../../../src/Client/Net/Mime/MediaType.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,SAAS;IAErB;;OAEG;;QAGF;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;IAIJ;;OAEG;;QAGF;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;IAIJ;;OAEG;;QAGF;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;IAIJ;;OAEG;;QAGF;;WAEG;;QAGH;;WAEG;;;IAIJ;;OAEG;;QAGF;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;EAGH,CAAC"}
|