@indigina/myseko-api 0.0.2 → 0.0.4
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/README.md +75 -126
- package/fesm2022/indigina-myseko-api.mjs +422 -78
- package/fesm2022/indigina-myseko-api.mjs.map +1 -1
- package/index.d.ts +421 -6
- package/package.json +2 -2
- package/api/api.d.ts +0 -3
- package/api/health.service.d.ts +0 -36
- package/api.module.d.ts +0 -11
- package/configuration.d.ts +0 -104
- package/encoder.d.ts +0 -11
- package/model/failures.d.ts +0 -16
- package/model/modelError.d.ts +0 -15
- package/model/models.d.ts +0 -2
- package/param.d.ts +0 -37
- package/variables.d.ts +0 -8
package/api/health.service.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { Configuration } from '../configuration';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class HealthService {
|
|
6
|
-
protected httpClient: HttpClient;
|
|
7
|
-
protected basePath: string;
|
|
8
|
-
defaultHeaders: HttpHeaders;
|
|
9
|
-
configuration: Configuration;
|
|
10
|
-
encoder: HttpParameterCodec;
|
|
11
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
12
|
-
private addToHttpParams;
|
|
13
|
-
private addToHttpParamsRecursive;
|
|
14
|
-
/**
|
|
15
|
-
* Api health check
|
|
16
|
-
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
17
|
-
* @param reportProgress flag to report request and response progress.
|
|
18
|
-
*/
|
|
19
|
-
getHealth(observe?: 'body', reportProgress?: boolean, options?: {
|
|
20
|
-
httpHeaderAccept?: 'text/plain' | 'application/json';
|
|
21
|
-
context?: HttpContext;
|
|
22
|
-
transferCache?: boolean;
|
|
23
|
-
}): Observable<string>;
|
|
24
|
-
getHealth(observe?: 'response', reportProgress?: boolean, options?: {
|
|
25
|
-
httpHeaderAccept?: 'text/plain' | 'application/json';
|
|
26
|
-
context?: HttpContext;
|
|
27
|
-
transferCache?: boolean;
|
|
28
|
-
}): Observable<HttpResponse<string>>;
|
|
29
|
-
getHealth(observe?: 'events', reportProgress?: boolean, options?: {
|
|
30
|
-
httpHeaderAccept?: 'text/plain' | 'application/json';
|
|
31
|
-
context?: HttpContext;
|
|
32
|
-
transferCache?: boolean;
|
|
33
|
-
}): Observable<HttpEvent<string>>;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HealthService, [null, { optional: true; }, { optional: true; }]>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HealthService>;
|
|
36
|
-
}
|
package/api.module.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { Configuration } from './configuration';
|
|
3
|
-
import { HttpClient } from '@angular/common/http';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ApiModule {
|
|
6
|
-
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule>;
|
|
7
|
-
constructor(parentModule: ApiModule, http: HttpClient);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ApiModule, [{ optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ApiModule, never, never, never>;
|
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
|
|
11
|
-
}
|
package/configuration.d.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
-
import { Param } from './param';
|
|
3
|
-
export interface ConfigurationParameters {
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated Since 5.0. Use credentials instead
|
|
6
|
-
*/
|
|
7
|
-
apiKeys?: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
};
|
|
10
|
-
username?: string;
|
|
11
|
-
password?: string;
|
|
12
|
-
/**
|
|
13
|
-
* @deprecated Since 5.0. Use credentials instead
|
|
14
|
-
*/
|
|
15
|
-
accessToken?: string | (() => string);
|
|
16
|
-
basePath?: string;
|
|
17
|
-
withCredentials?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Takes care of encoding query- and form-parameters.
|
|
20
|
-
*/
|
|
21
|
-
encoder?: HttpParameterCodec;
|
|
22
|
-
/**
|
|
23
|
-
* Override the default method for encoding path parameters in various
|
|
24
|
-
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
25
|
-
* <p>
|
|
26
|
-
* See {@link README.md} for more details
|
|
27
|
-
* </p>
|
|
28
|
-
*/
|
|
29
|
-
encodeParam?: (param: Param) => string;
|
|
30
|
-
/**
|
|
31
|
-
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
32
|
-
* document. They should map to the value used for authentication
|
|
33
|
-
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
34
|
-
*/
|
|
35
|
-
credentials?: {
|
|
36
|
-
[key: string]: string | (() => string | undefined);
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
export declare class Configuration {
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated Since 5.0. Use credentials instead
|
|
42
|
-
*/
|
|
43
|
-
apiKeys?: {
|
|
44
|
-
[key: string]: string;
|
|
45
|
-
};
|
|
46
|
-
username?: string;
|
|
47
|
-
password?: string;
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated Since 5.0. Use credentials instead
|
|
50
|
-
*/
|
|
51
|
-
accessToken?: string | (() => string);
|
|
52
|
-
basePath?: string;
|
|
53
|
-
withCredentials?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Takes care of encoding query- and form-parameters.
|
|
56
|
-
*/
|
|
57
|
-
encoder?: HttpParameterCodec;
|
|
58
|
-
/**
|
|
59
|
-
* Encoding of various path parameter
|
|
60
|
-
* <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
|
|
61
|
-
* <p>
|
|
62
|
-
* See {@link README.md} for more details
|
|
63
|
-
* </p>
|
|
64
|
-
*/
|
|
65
|
-
encodeParam: (param: Param) => string;
|
|
66
|
-
/**
|
|
67
|
-
* The keys are the names in the securitySchemes section of the OpenAPI
|
|
68
|
-
* document. They should map to the value used for authentication
|
|
69
|
-
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
|
70
|
-
*/
|
|
71
|
-
credentials: {
|
|
72
|
-
[key: string]: string | (() => string | undefined);
|
|
73
|
-
};
|
|
74
|
-
constructor(configurationParameters?: ConfigurationParameters);
|
|
75
|
-
/**
|
|
76
|
-
* Select the correct content-type to use for a request.
|
|
77
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
78
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
79
|
-
* @param contentTypes - the array of content types that are available for selection
|
|
80
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
81
|
-
*/
|
|
82
|
-
selectHeaderContentType(contentTypes: string[]): string | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* Select the correct accept content-type to use for a request.
|
|
85
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
86
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
87
|
-
* @param accepts - the array of content types that are available for selection.
|
|
88
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
89
|
-
*/
|
|
90
|
-
selectHeaderAccept(accepts: string[]): string | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Check if the given MIME is a JSON MIME.
|
|
93
|
-
* JSON MIME examples:
|
|
94
|
-
* application/json
|
|
95
|
-
* application/json; charset=UTF8
|
|
96
|
-
* APPLICATION/JSON
|
|
97
|
-
* application/vnd.company+json
|
|
98
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
99
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
100
|
-
*/
|
|
101
|
-
isJsonMime(mime: string): boolean;
|
|
102
|
-
lookupCredential(key: string): string | undefined;
|
|
103
|
-
private defaultEncodeParam;
|
|
104
|
-
}
|
package/encoder.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HttpParameterCodec } from '@angular/common/http';
|
|
2
|
-
/**
|
|
3
|
-
* Custom HttpParameterCodec
|
|
4
|
-
* Workaround for https://github.com/angular/angular/issues/18261
|
|
5
|
-
*/
|
|
6
|
-
export declare class CustomHttpParameterCodec implements HttpParameterCodec {
|
|
7
|
-
encodeKey(k: string): string;
|
|
8
|
-
encodeValue(v: string): string;
|
|
9
|
-
decodeKey(k: string): string;
|
|
10
|
-
decodeValue(v: string): string;
|
|
11
|
-
}
|
package/model/failures.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MySeko.API.Client
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
-
* https://openapi-generator.tech
|
|
8
|
-
* Do not edit the class manually.
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* @type Failures
|
|
12
|
-
* @export
|
|
13
|
-
*/
|
|
14
|
-
export type Failures = {
|
|
15
|
-
[key: string]: Array<string>;
|
|
16
|
-
};
|
package/model/modelError.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MySeko.API.Client
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7
|
-
* https://openapi-generator.tech
|
|
8
|
-
* Do not edit the class manually.
|
|
9
|
-
*/
|
|
10
|
-
import { Failures } from './failures';
|
|
11
|
-
export interface ModelError {
|
|
12
|
-
title: string;
|
|
13
|
-
status: number;
|
|
14
|
-
errors: Failures | null;
|
|
15
|
-
}
|
package/model/models.d.ts
DELETED
package/param.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Standard parameter styles defined by OpenAPI spec
|
|
3
|
-
*/
|
|
4
|
-
export type StandardParamStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
|
|
5
|
-
/**
|
|
6
|
-
* The OpenAPI standard {@link StandardParamStyle}s may be extended by custom styles by the user.
|
|
7
|
-
*/
|
|
8
|
-
export type ParamStyle = StandardParamStyle | string;
|
|
9
|
-
/**
|
|
10
|
-
* Standard parameter locations defined by OpenAPI spec
|
|
11
|
-
*/
|
|
12
|
-
export type ParamLocation = 'query' | 'header' | 'path' | 'cookie';
|
|
13
|
-
/**
|
|
14
|
-
* Standard types as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
15
|
-
*/
|
|
16
|
-
export type StandardDataType = "integer" | "number" | "boolean" | "string" | "object" | "array";
|
|
17
|
-
/**
|
|
18
|
-
* Standard {@link DataType}s plus your own types/classes.
|
|
19
|
-
*/
|
|
20
|
-
export type DataType = StandardDataType | string;
|
|
21
|
-
/**
|
|
22
|
-
* Standard formats as defined in <a href="https://swagger.io/specification/#data-types">OpenAPI Specification: Data Types</a>
|
|
23
|
-
*/
|
|
24
|
-
export type StandardDataFormat = "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password";
|
|
25
|
-
export type DataFormat = StandardDataFormat | string;
|
|
26
|
-
/**
|
|
27
|
-
* The parameter to encode.
|
|
28
|
-
*/
|
|
29
|
-
export interface Param {
|
|
30
|
-
name: string;
|
|
31
|
-
value: unknown;
|
|
32
|
-
in: ParamLocation;
|
|
33
|
-
style: ParamStyle;
|
|
34
|
-
explode: boolean;
|
|
35
|
-
dataType: DataType;
|
|
36
|
-
dataFormat: DataFormat | undefined;
|
|
37
|
-
}
|