@aeriajs/types 0.0.102 → 0.0.103

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/context.d.ts CHANGED
@@ -19,11 +19,11 @@ type UnionFunctions<TFunctions, TSchema extends JsonSchema> = {
19
19
  };
20
20
  export type IndepthCollection<TCollection> = TCollection extends {
21
21
  description: infer InferredDescription;
22
- functions?: infer CollFunctions;
22
+ functions?: infer InferredFunctions;
23
23
  } ? InferredDescription extends JsonSchema ? Omit<TCollection, 'functions'> & {
24
24
  item: SchemaWithId<InferredDescription>;
25
- functions: UnionFunctions<CollFunctions, InferredDescription>;
26
- originalFunctions: CollFunctions;
25
+ functions: UnionFunctions<InferredFunctions, InferredDescription>;
26
+ originalFunctions: InferredFunctions;
27
27
  model: InferredDescription extends Description ? CollectionModel<InferredDescription> : never;
28
28
  middlewares?: Collection['middlewares'];
29
29
  } : never : TCollection;
package/dist/http.d.ts CHANGED
@@ -6,6 +6,7 @@ import type { RateLimitingError } from './security.js';
6
6
  export declare const REQUEST_METHODS: readonly ["GET", "HEAD", "POST", "PUT", "DELETE", "OPTIONS", "PATCH", "TRACE", "SEARCH"];
7
7
  export declare enum HTTPStatus {
8
8
  Ok = 200,
9
+ NoContent = 204,
9
10
  BadRequest = 400,
10
11
  Unauthorized = 401,
11
12
  Forbidden = 403,
package/dist/http.js CHANGED
@@ -15,6 +15,7 @@ exports.REQUEST_METHODS = [
15
15
  var HTTPStatus;
16
16
  (function (HTTPStatus) {
17
17
  HTTPStatus[HTTPStatus["Ok"] = 200] = "Ok";
18
+ HTTPStatus[HTTPStatus["NoContent"] = 204] = "NoContent";
18
19
  HTTPStatus[HTTPStatus["BadRequest"] = 400] = "BadRequest";
19
20
  HTTPStatus[HTTPStatus["Unauthorized"] = 401] = "Unauthorized";
20
21
  HTTPStatus[HTTPStatus["Forbidden"] = 403] = "Forbidden";
package/dist/http.mjs CHANGED
@@ -12,6 +12,7 @@ export const REQUEST_METHODS = [
12
12
  ];
13
13
  export var HTTPStatus = /* @__PURE__ */ ((HTTPStatus2) => {
14
14
  HTTPStatus2[HTTPStatus2["Ok"] = 200] = "Ok";
15
+ HTTPStatus2[HTTPStatus2["NoContent"] = 204] = "NoContent";
15
16
  HTTPStatus2[HTTPStatus2["BadRequest"] = 400] = "BadRequest";
16
17
  HTTPStatus2[HTTPStatus2["Unauthorized"] = 401] = "Unauthorized";
17
18
  HTTPStatus2[HTTPStatus2["Forbidden"] = 403] = "Forbidden";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",