@ez4/gateway 0.34.0 → 0.35.1

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.
@@ -0,0 +1,6 @@
1
+ import type { HttpImport } from '../types/import';
2
+ export type ClientAuthorization = {
3
+ header: string;
4
+ value: string;
5
+ };
6
+ export declare const getClientAuthorization: (service: HttpImport) => ClientAuthorization | undefined;
@@ -1,10 +1,12 @@
1
1
  import type { ArraySchema, NamingStyle, ObjectSchema, ScalarSchema, UnionSchema } from '@ez4/schema';
2
- import type { HttpImport, HttpService } from '@ez4/gateway/library';
2
+ import type { HttpService } from '../types/service';
3
+ import type { HttpImport } from '../types/import';
3
4
  export type ClientOperation = {
4
5
  namingStyle?: NamingStyle;
5
6
  bodySchema?: ObjectSchema | UnionSchema | ArraySchema | ScalarSchema;
6
7
  responseSchema?: ObjectSchema | UnionSchema | ArraySchema | ScalarSchema;
7
8
  querySchema?: ObjectSchema;
9
+ authorize?: boolean;
8
10
  method: string;
9
11
  path: string;
10
12
  };
@@ -0,0 +1,11 @@
1
+ import { IncompleteTypeError, IncorrectTypeError, InvalidTypeError } from '@ez4/common/library';
2
+ export declare class IncompleteAuthorizationError extends IncompleteTypeError {
3
+ constructor(properties: string[], fileName?: string);
4
+ }
5
+ export declare class InvalidAuthorizationTypeError extends InvalidTypeError {
6
+ constructor(fileName?: string);
7
+ }
8
+ export declare class IncorrectAuthorizationTypeError extends IncorrectTypeError {
9
+ authorizationType: string;
10
+ constructor(authorizationType: string, fileName?: string);
11
+ }