@ya-accelerators/web-backend-framework 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/@types/error.d.ts CHANGED
@@ -1,4 +1,8 @@
1
- interface ValidationError {
2
- target: string
3
- message: string
1
+ declare global {
2
+ interface ValidationError {
3
+ target: string
4
+ message: string
5
+ }
4
6
  }
7
+
8
+ export {}
@@ -1,9 +1,13 @@
1
- type JsonPrimitive = string | number | boolean
2
- type JsonObject = { [key: string]: JsonValue }
3
- type JsonArray = JsonValue[]
4
- type JsonValue = JsonPrimitive | JsonObject | JsonArray
1
+ declare global {
2
+ type JsonPrimitive = string | number | boolean
3
+ type JsonObject = { [key: string]: JsonValue }
4
+ type JsonArray = JsonValue[]
5
+ type JsonValue = JsonPrimitive | JsonObject | JsonArray
5
6
 
6
- type EmptyObject = Record<string, never>
7
- const Empty: EmptyObject = {} as const satisfies EmptyObject
7
+ type EmptyObject = Record<string, never>
8
+ const Empty: EmptyObject
8
9
 
9
- type Simplify<T> = { [K in keyof T]: T[K] } & {}
10
+ type Simplify<T> = { [K in keyof T]: T[K] } & {}
11
+ }
12
+
13
+ export {}
@@ -11,6 +11,10 @@ export declare namespace Auth {
11
11
  readonly kind: 'auth-none';
12
12
  readonly reason: Reason;
13
13
  };
14
+ type Unimplemented<Reason extends string> = {
15
+ readonly kind: 'auth-unimplemented';
16
+ readonly reason: Reason;
17
+ };
14
18
  }
15
19
  export declare namespace Ropa {
16
20
  type Activity<Key extends string> = {
@@ -22,7 +26,7 @@ export declare namespace Ropa {
22
26
  readonly reason: Reason;
23
27
  };
24
28
  }
25
- export type AuthDeclaration = Auth.Tier<string> | Auth.Upstream<string> | Auth.None<string>;
29
+ export type AuthDeclaration = Auth.Tier<string> | Auth.Upstream<string> | Auth.None<string> | Auth.Unimplemented<string>;
26
30
  export type RopaDeclaration<Key extends string> = Ropa.Activity<Key> | Ropa.None<string>;
27
31
  export type DeclarationRequired = {
28
32
  readonly __declarationRequired: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ya-accelerators/web-backend-framework",
3
- "version": "0.0.102",
3
+ "version": "0.0.103",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "author": "YA Technologies OÜ",
@@ -47,7 +47,7 @@
47
47
  "test:integration": "jest --testPathPatterns=integration"
48
48
  },
49
49
  "dependencies": {
50
- "@aws-sdk/client-s3": "^3.1104.0",
50
+ "@aws-sdk/client-s3": "^3.1105.0",
51
51
  "@aws-sdk/credential-provider-node": "^3.972.78",
52
52
  "@prisma/adapter-mariadb": "^7.9.1",
53
53
  "@prisma/extension-read-replicas": "^0.5.0",