@plyaz/types 1.13.15 → 1.13.17
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/dist/api/endpoints/infobip/types.d.ts +1 -1
- package/dist/api/errors/types.d.ts +1 -1
- package/dist/api/index.cjs +158 -100
- package/dist/api/index.cjs.map +1 -1
- package/dist/api/index.js +60 -2
- package/dist/api/index.js.map +1 -1
- package/dist/db/database.types.d.ts +1 -1
- package/dist/db/features-config.types.d.ts +2 -2
- package/dist/db/index.cjs.map +1 -1
- package/dist/db/index.js.map +1 -1
- package/dist/db/replica.types.d.ts +2 -2
- package/dist/errors/index.cjs +158 -100
- package/dist/errors/index.cjs.map +1 -1
- package/dist/errors/index.js +60 -2
- package/dist/errors/index.js.map +1 -1
- package/dist/errors/types.d.ts +5 -3
- package/dist/http/constants.d.ts +265 -0
- package/dist/index.cjs +558 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +459 -2
- package/dist/index.js.map +1 -1
- package/dist/locale/types.d.ts +109 -0
- package/dist/notifications/enums.d.ts +0 -1
- package/dist/notifications/index.cjs.map +1 -1
- package/dist/notifications/index.js.map +1 -1
- package/dist/payments/base-error/types.d.ts +6 -5
- package/dist/payments/gateways/provider/types.d.ts +1 -1
- package/dist/payments/gateways/routings/types.d.ts +1 -1
- package/dist/payments/provider/adapter/types.d.ts +1 -1
- package/dist/payments/provider/core/types.d.ts +1 -1
- package/dist/payments/provider/payment-provider/types.d.ts +1 -1
- package/dist/payments/transaction/types.d.ts +1 -1
- package/package.json +1 -2
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTTP Status Code Constants
|
|
3
|
+
*
|
|
4
|
+
* Common HTTP status codes used throughout the application.
|
|
5
|
+
* Based on RFC 9110 (HTTP Semantics) and common usage patterns.
|
|
6
|
+
*
|
|
7
|
+
* @module http/constants
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Standard HTTP status codes
|
|
11
|
+
*/
|
|
12
|
+
export declare const HTTP_STATUS: {
|
|
13
|
+
/**
|
|
14
|
+
* 100 Continue - The initial part of a request has been received
|
|
15
|
+
*/
|
|
16
|
+
readonly CONTINUE: 100;
|
|
17
|
+
/**
|
|
18
|
+
* 101 Switching Protocols - The server is switching protocols
|
|
19
|
+
*/
|
|
20
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
21
|
+
/**
|
|
22
|
+
* 102 Processing - The server has received and is processing the request
|
|
23
|
+
*/
|
|
24
|
+
readonly PROCESSING: 102;
|
|
25
|
+
/**
|
|
26
|
+
* 103 Early Hints - Used to return some response headers before final HTTP message
|
|
27
|
+
*/
|
|
28
|
+
readonly EARLY_HINTS: 103;
|
|
29
|
+
/**
|
|
30
|
+
* 200 OK - The request succeeded
|
|
31
|
+
*/
|
|
32
|
+
readonly OK: 200;
|
|
33
|
+
/**
|
|
34
|
+
* 201 Created - The request succeeded and a new resource was created
|
|
35
|
+
*/
|
|
36
|
+
readonly CREATED: 201;
|
|
37
|
+
/**
|
|
38
|
+
* 202 Accepted - The request has been received but not yet acted upon
|
|
39
|
+
*/
|
|
40
|
+
readonly ACCEPTED: 202;
|
|
41
|
+
/**
|
|
42
|
+
* 203 Non-Authoritative Information - The returned metadata is not from the origin server
|
|
43
|
+
*/
|
|
44
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
45
|
+
/**
|
|
46
|
+
* 204 No Content - There is no content to send for this request
|
|
47
|
+
*/
|
|
48
|
+
readonly NO_CONTENT: 204;
|
|
49
|
+
/**
|
|
50
|
+
* 205 Reset Content - Tells the user agent to reset the document
|
|
51
|
+
*/
|
|
52
|
+
readonly RESET_CONTENT: 205;
|
|
53
|
+
/**
|
|
54
|
+
* 206 Partial Content - The server is delivering only part of the resource
|
|
55
|
+
*/
|
|
56
|
+
readonly PARTIAL_CONTENT: 206;
|
|
57
|
+
/**
|
|
58
|
+
* 207 Multi-Status - Conveys information about multiple resources
|
|
59
|
+
*/
|
|
60
|
+
readonly MULTI_STATUS: 207;
|
|
61
|
+
/**
|
|
62
|
+
* 208 Already Reported - The members of a DAV binding have already been enumerated
|
|
63
|
+
*/
|
|
64
|
+
readonly ALREADY_REPORTED: 208;
|
|
65
|
+
/**
|
|
66
|
+
* 226 IM Used - The server has fulfilled a request for the resource
|
|
67
|
+
*/
|
|
68
|
+
readonly IM_USED: 226;
|
|
69
|
+
/**
|
|
70
|
+
* 300 Multiple Choices - Multiple options for the resource are available
|
|
71
|
+
*/
|
|
72
|
+
readonly MULTIPLE_CHOICES: 300;
|
|
73
|
+
/**
|
|
74
|
+
* 301 Moved Permanently - The URL of the requested resource has been changed permanently
|
|
75
|
+
*/
|
|
76
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
77
|
+
/**
|
|
78
|
+
* 302 Found - The resource resides temporarily under a different URI
|
|
79
|
+
*/
|
|
80
|
+
readonly FOUND: 302;
|
|
81
|
+
/**
|
|
82
|
+
* 303 See Other - Direct the client to get the resource at another URI
|
|
83
|
+
*/
|
|
84
|
+
readonly SEE_OTHER: 303;
|
|
85
|
+
/**
|
|
86
|
+
* 304 Not Modified - The cached version is still valid
|
|
87
|
+
*/
|
|
88
|
+
readonly NOT_MODIFIED: 304;
|
|
89
|
+
/**
|
|
90
|
+
* 305 Use Proxy - Defined in a previous version of the HTTP specification
|
|
91
|
+
*/
|
|
92
|
+
readonly USE_PROXY: 305;
|
|
93
|
+
/**
|
|
94
|
+
* 307 Temporary Redirect - The request should be repeated with another URI
|
|
95
|
+
*/
|
|
96
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
97
|
+
/**
|
|
98
|
+
* 308 Permanent Redirect - The resource is permanently located at another URI
|
|
99
|
+
*/
|
|
100
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
101
|
+
/**
|
|
102
|
+
* 400 Bad Request - The server cannot process the request due to client error
|
|
103
|
+
*/
|
|
104
|
+
readonly BAD_REQUEST: 400;
|
|
105
|
+
/**
|
|
106
|
+
* 401 Unauthorized - Authentication is required and has failed or not been provided
|
|
107
|
+
*/
|
|
108
|
+
readonly UNAUTHORIZED: 401;
|
|
109
|
+
/**
|
|
110
|
+
* 402 Payment Required - Reserved for future use
|
|
111
|
+
*/
|
|
112
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
113
|
+
/**
|
|
114
|
+
* 403 Forbidden - The server understood the request but refuses to authorize it
|
|
115
|
+
*/
|
|
116
|
+
readonly FORBIDDEN: 403;
|
|
117
|
+
/**
|
|
118
|
+
* 404 Not Found - The server cannot find the requested resource
|
|
119
|
+
*/
|
|
120
|
+
readonly NOT_FOUND: 404;
|
|
121
|
+
/**
|
|
122
|
+
* 405 Method Not Allowed - The request method is not supported for the requested resource
|
|
123
|
+
*/
|
|
124
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
125
|
+
/**
|
|
126
|
+
* 406 Not Acceptable - The requested resource is not available in a format acceptable to the client
|
|
127
|
+
*/
|
|
128
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
129
|
+
/**
|
|
130
|
+
* 407 Proxy Authentication Required - The client must authenticate itself with the proxy
|
|
131
|
+
*/
|
|
132
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
133
|
+
/**
|
|
134
|
+
* 408 Request Timeout - The server timed out waiting for the request
|
|
135
|
+
*/
|
|
136
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
137
|
+
/**
|
|
138
|
+
* 409 Conflict - The request conflicts with the current state of the server
|
|
139
|
+
*/
|
|
140
|
+
readonly CONFLICT: 409;
|
|
141
|
+
/**
|
|
142
|
+
* 410 Gone - The requested resource is no longer available and will not be available again
|
|
143
|
+
*/
|
|
144
|
+
readonly GONE: 410;
|
|
145
|
+
/**
|
|
146
|
+
* 411 Length Required - The request did not specify the length of its content
|
|
147
|
+
*/
|
|
148
|
+
readonly LENGTH_REQUIRED: 411;
|
|
149
|
+
/**
|
|
150
|
+
* 412 Precondition Failed - The server does not meet one of the preconditions
|
|
151
|
+
*/
|
|
152
|
+
readonly PRECONDITION_FAILED: 412;
|
|
153
|
+
/**
|
|
154
|
+
* 413 Payload Too Large - The request is larger than the server is willing to process
|
|
155
|
+
*/
|
|
156
|
+
readonly PAYLOAD_TOO_LARGE: 413;
|
|
157
|
+
/**
|
|
158
|
+
* 414 URI Too Long - The URI provided was too long for the server to process
|
|
159
|
+
*/
|
|
160
|
+
readonly URI_TOO_LONG: 414;
|
|
161
|
+
/**
|
|
162
|
+
* 415 Unsupported Media Type - The request entity has a media type not supported by the server
|
|
163
|
+
*/
|
|
164
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
165
|
+
/**
|
|
166
|
+
* 416 Range Not Satisfiable - The client has asked for a portion of the file that the server cannot supply
|
|
167
|
+
*/
|
|
168
|
+
readonly RANGE_NOT_SATISFIABLE: 416;
|
|
169
|
+
/**
|
|
170
|
+
* 417 Expectation Failed - The server cannot meet the requirements of the Expect request-header field
|
|
171
|
+
*/
|
|
172
|
+
readonly EXPECTATION_FAILED: 417;
|
|
173
|
+
/**
|
|
174
|
+
* 418 I'm a teapot - The server refuses to brew coffee because it is a teapot
|
|
175
|
+
*/
|
|
176
|
+
readonly IM_A_TEAPOT: 418;
|
|
177
|
+
/**
|
|
178
|
+
* 421 Misdirected Request - The request was directed at a server that is not able to produce a response
|
|
179
|
+
*/
|
|
180
|
+
readonly MISDIRECTED_REQUEST: 421;
|
|
181
|
+
/**
|
|
182
|
+
* 422 Unprocessable Entity - The request was well-formed but was unable to be followed due to semantic errors
|
|
183
|
+
*/
|
|
184
|
+
readonly UNPROCESSABLE_ENTITY: 422;
|
|
185
|
+
/**
|
|
186
|
+
* 423 Locked - The resource that is being accessed is locked
|
|
187
|
+
*/
|
|
188
|
+
readonly LOCKED: 423;
|
|
189
|
+
/**
|
|
190
|
+
* 424 Failed Dependency - The request failed due to failure of a previous request
|
|
191
|
+
*/
|
|
192
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
193
|
+
/**
|
|
194
|
+
* 425 Too Early - The server is unwilling to risk processing a request that might be replayed
|
|
195
|
+
*/
|
|
196
|
+
readonly TOO_EARLY: 425;
|
|
197
|
+
/**
|
|
198
|
+
* 426 Upgrade Required - The client should switch to a different protocol
|
|
199
|
+
*/
|
|
200
|
+
readonly UPGRADE_REQUIRED: 426;
|
|
201
|
+
/**
|
|
202
|
+
* 428 Precondition Required - The origin server requires the request to be conditional
|
|
203
|
+
*/
|
|
204
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
205
|
+
/**
|
|
206
|
+
* 429 Too Many Requests - The user has sent too many requests in a given amount of time
|
|
207
|
+
*/
|
|
208
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
209
|
+
/**
|
|
210
|
+
* 431 Request Header Fields Too Large - The server is unwilling to process the request because its header fields are too large
|
|
211
|
+
*/
|
|
212
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
|
|
213
|
+
/**
|
|
214
|
+
* 451 Unavailable For Legal Reasons - The user requested a resource that cannot legally be provided
|
|
215
|
+
*/
|
|
216
|
+
readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
|
|
217
|
+
/**
|
|
218
|
+
* 500 Internal Server Error - The server encountered an unexpected condition
|
|
219
|
+
*/
|
|
220
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
221
|
+
/**
|
|
222
|
+
* 501 Not Implemented - The server does not support the functionality required to fulfill the request
|
|
223
|
+
*/
|
|
224
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
225
|
+
/**
|
|
226
|
+
* 502 Bad Gateway - The server received an invalid response from the upstream server
|
|
227
|
+
*/
|
|
228
|
+
readonly BAD_GATEWAY: 502;
|
|
229
|
+
/**
|
|
230
|
+
* 503 Service Unavailable - The server is not ready to handle the request
|
|
231
|
+
*/
|
|
232
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
233
|
+
/**
|
|
234
|
+
* 504 Gateway Timeout - The server did not get a response in time from the upstream server
|
|
235
|
+
*/
|
|
236
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
237
|
+
/**
|
|
238
|
+
* 505 HTTP Version Not Supported - The HTTP version used in the request is not supported by the server
|
|
239
|
+
*/
|
|
240
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
241
|
+
/**
|
|
242
|
+
* 506 Variant Also Negotiates - The server has an internal configuration error
|
|
243
|
+
*/
|
|
244
|
+
readonly VARIANT_ALSO_NEGOTIATES: 506;
|
|
245
|
+
/**
|
|
246
|
+
* 507 Insufficient Storage - The server is unable to store the representation needed to complete the request
|
|
247
|
+
*/
|
|
248
|
+
readonly INSUFFICIENT_STORAGE: 507;
|
|
249
|
+
/**
|
|
250
|
+
* 508 Loop Detected - The server detected an infinite loop while processing the request
|
|
251
|
+
*/
|
|
252
|
+
readonly LOOP_DETECTED: 508;
|
|
253
|
+
/**
|
|
254
|
+
* 510 Not Extended - Further extensions to the request are required for the server to fulfill it
|
|
255
|
+
*/
|
|
256
|
+
readonly NOT_EXTENDED: 510;
|
|
257
|
+
/**
|
|
258
|
+
* 511 Network Authentication Required - The client needs to authenticate to gain network access
|
|
259
|
+
*/
|
|
260
|
+
readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Type for HTTP status codes
|
|
264
|
+
*/
|
|
265
|
+
export type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
|