@aeriajs/types 0.0.136 → 0.0.137

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/config.d.ts CHANGED
@@ -47,10 +47,9 @@ export type ApiConfig = {
47
47
  linkTokenExpiration?: number | undefined;
48
48
  logSuccessfulAuthentications?: boolean;
49
49
  authenticationRateLimiting?: RateLimitingParams | null;
50
- allowSignup?: boolean;
51
50
  mutableUserProperties: (keyof CollectionItem<'user'>)[];
52
- signupDefaults?: {
53
- roles?: readonly UserRole[];
51
+ signup?: {
52
+ roles: readonly UserRole[];
54
53
  active?: boolean;
55
54
  };
56
55
  paginationLimit?: number;
package/dist/http.d.ts CHANGED
@@ -12,6 +12,7 @@ export declare const METHOD_COLORS: {
12
12
  };
13
13
  export declare const HTTPStatus: {
14
14
  readonly Ok: 200;
15
+ readonly Created: 201;
15
16
  readonly NoContent: 204;
16
17
  readonly BadRequest: 400;
17
18
  readonly Unauthorized: 401;
package/dist/http.js CHANGED
@@ -17,6 +17,7 @@ export const METHOD_COLORS = {
17
17
  };
18
18
  export const HTTPStatus = {
19
19
  Ok: 200,
20
+ Created: 201,
20
21
  NoContent: 204,
21
22
  BadRequest: 400,
22
23
  Unauthorized: 401,
@@ -121,6 +121,7 @@ export type PropertyBase = {
121
121
  noLabel?: boolean;
122
122
  hidden?: boolean;
123
123
  isTimestamp?: boolean;
124
+ validationMessage?: string;
124
125
  };
125
126
  export type Property = PropertyBase & MixedProperty;
126
127
  export type NonCircularProperty = PropertyBase & NonCircularMixedProperty;
@@ -24,6 +24,7 @@ export type PropertyValidationError = {
24
24
  details?: {
25
25
  expected: unknown;
26
26
  got: unknown;
27
+ message?: string;
27
28
  };
28
29
  };
29
30
  export type ValidationErrorInvalidProperties = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aeriajs/types",
3
3
  "type": "module",
4
- "version": "0.0.136",
4
+ "version": "0.0.137",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",