@revxui/api-clients-ts 0.0.24
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 +178 -0
- package/api/adminRoleValidationController.service.d.ts +73 -0
- package/api/api.d.ts +5 -0
- package/api/authApi.service.d.ts +209 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +48 -0
- package/encoder.d.ts +10 -0
- package/esm2020/api/adminRoleValidationController.service.mjs +174 -0
- package/esm2020/api/api.mjs +6 -0
- package/esm2020/api/authApi.service.mjs +541 -0
- package/esm2020/api.module.mjs +48 -0
- package/esm2020/configuration.mjs +59 -0
- package/esm2020/encoder.mjs +17 -0
- package/esm2020/index.mjs +6 -0
- package/esm2020/model/advertiser.mjs +2 -0
- package/esm2020/model/apiListResponseLifeTimeAuthenticationEntity.mjs +2 -0
- package/esm2020/model/apiResponseObjectApiListResponseLifeTimeAuthenticationEntity.mjs +2 -0
- package/esm2020/model/apiResponseObjectConsoleUserInfo.mjs +2 -0
- package/esm2020/model/apiResponseObjectLifeTimeAuthenticationEntity.mjs +2 -0
- package/esm2020/model/apiResponseObjectResponseMessage.mjs +2 -0
- package/esm2020/model/apiResponseObjectSetLicensee.mjs +2 -0
- package/esm2020/model/apiResponseObjectTokenResponse.mjs +2 -0
- package/esm2020/model/apiResponseObjectUser2FADetail.mjs +2 -0
- package/esm2020/model/apiResponseObjectUserInfo.mjs +2 -0
- package/esm2020/model/apiResponseObjectboolean.mjs +13 -0
- package/esm2020/model/apiResponseObjectstring.mjs +13 -0
- package/esm2020/model/baseModel.mjs +13 -0
- package/esm2020/model/consoleUserInfo.mjs +13 -0
- package/esm2020/model/licensee.mjs +13 -0
- package/esm2020/model/lifeTimeAuthenticationEntity.mjs +13 -0
- package/esm2020/model/modelError.mjs +13 -0
- package/esm2020/model/models.mjs +25 -0
- package/esm2020/model/passwordChangeRequest.mjs +13 -0
- package/esm2020/model/responseMessage.mjs +13 -0
- package/esm2020/model/tokenResponse.mjs +2 -0
- package/esm2020/model/user2FADetail.mjs +13 -0
- package/esm2020/model/userInfo.mjs +2 -0
- package/esm2020/model/userInfoExtended.mjs +2 -0
- package/esm2020/model/userLoginRequest.mjs +13 -0
- package/esm2020/revxui-api-clients-ts.mjs +5 -0
- package/esm2020/variables.mjs +9 -0
- package/fesm2015/revxui-api-clients-ts.mjs +844 -0
- package/fesm2015/revxui-api-clients-ts.mjs.map +1 -0
- package/fesm2020/revxui-api-clients-ts.mjs +970 -0
- package/fesm2020/revxui-api-clients-ts.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/model/advertiser.d.ts +34 -0
- package/model/apiListResponseLifeTimeAuthenticationEntity.d.ts +16 -0
- package/model/apiResponseObjectApiListResponseLifeTimeAuthenticationEntity.d.ts +17 -0
- package/model/apiResponseObjectConsoleUserInfo.d.ts +17 -0
- package/model/apiResponseObjectLifeTimeAuthenticationEntity.d.ts +17 -0
- package/model/apiResponseObjectResponseMessage.d.ts +17 -0
- package/model/apiResponseObjectSetLicensee.d.ts +17 -0
- package/model/apiResponseObjectTokenResponse.d.ts +17 -0
- package/model/apiResponseObjectUser2FADetail.d.ts +17 -0
- package/model/apiResponseObjectUserInfo.d.ts +17 -0
- package/model/apiResponseObjectboolean.d.ts +16 -0
- package/model/apiResponseObjectstring.d.ts +16 -0
- package/model/baseModel.d.ts +15 -0
- package/model/consoleUserInfo.d.ts +16 -0
- package/model/licensee.d.ts +22 -0
- package/model/lifeTimeAuthenticationEntity.d.ts +22 -0
- package/model/modelError.d.ts +15 -0
- package/model/models.d.ts +24 -0
- package/model/passwordChangeRequest.d.ts +16 -0
- package/model/responseMessage.d.ts +15 -0
- package/model/tokenResponse.d.ts +19 -0
- package/model/user2FADetail.d.ts +16 -0
- package/model/userInfo.d.ts +23 -0
- package/model/userInfoExtended.d.ts +18 -0
- package/model/userLoginRequest.d.ts +25 -0
- package/package.json +33 -0
- package/variables.d.ts +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
## @revxui/api-clients-ts@0.0.24
|
|
2
|
+
|
|
3
|
+
### Building
|
|
4
|
+
|
|
5
|
+
To install the required dependencies and to build the typescript sources run:
|
|
6
|
+
```
|
|
7
|
+
npm install
|
|
8
|
+
npm run build
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### publishing
|
|
12
|
+
|
|
13
|
+
First build the package than run ```npm publish dist``` (don't forget to specify the `dist` folder!)
|
|
14
|
+
|
|
15
|
+
### consuming
|
|
16
|
+
|
|
17
|
+
Navigate to the folder of your consuming project and run one of next commands.
|
|
18
|
+
|
|
19
|
+
_published:_
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
npm install @revxui/api-clients-ts@0.0.24 --save
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
_without publishing (not recommended):_
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
npm install PATH_TO_GENERATED_PACKAGE/dist --save
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
_using `npm link`:_
|
|
32
|
+
|
|
33
|
+
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
34
|
+
```
|
|
35
|
+
npm link
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
In your project:
|
|
39
|
+
```
|
|
40
|
+
npm link @revxui/api-clients-ts
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
44
|
+
Please refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.
|
|
45
|
+
Published packages are not effected by this issue.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
#### General usage
|
|
49
|
+
|
|
50
|
+
In your Angular project:
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
// without configuring providers
|
|
55
|
+
import { ApiModule } from '@revxui/api-clients-ts';
|
|
56
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@NgModule({
|
|
60
|
+
imports: [
|
|
61
|
+
ApiModule,
|
|
62
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
63
|
+
// see https://github.com/angular/angular/issues/20575
|
|
64
|
+
HttpClientModule
|
|
65
|
+
],
|
|
66
|
+
declarations: [ AppComponent ],
|
|
67
|
+
providers: [],
|
|
68
|
+
bootstrap: [ AppComponent ]
|
|
69
|
+
})
|
|
70
|
+
export class AppModule {}
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
// configuring providers
|
|
75
|
+
import { ApiModule, Configuration, ConfigurationParameters } from '@revxui/api-clients-ts';
|
|
76
|
+
|
|
77
|
+
export function apiConfigFactory (): Configuration => {
|
|
78
|
+
const params: ConfigurationParameters = {
|
|
79
|
+
// set configuration parameters here.
|
|
80
|
+
}
|
|
81
|
+
return new Configuration(params);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@NgModule({
|
|
85
|
+
imports: [ ApiModule.forRoot(apiConfigFactory) ],
|
|
86
|
+
declarations: [ AppComponent ],
|
|
87
|
+
providers: [],
|
|
88
|
+
bootstrap: [ AppComponent ]
|
|
89
|
+
})
|
|
90
|
+
export class AppModule {}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
import { DefaultApi } from '@revxui/api-clients-ts';
|
|
95
|
+
|
|
96
|
+
export class AppComponent {
|
|
97
|
+
constructor(private apiGateway: DefaultApi) { }
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Note: The ApiModule is restricted to being instantiated once app wide.
|
|
102
|
+
This is to ensure that all services are treated as singletons.
|
|
103
|
+
|
|
104
|
+
#### Using multiple swagger files / APIs / ApiModules
|
|
105
|
+
In order to use multiple `ApiModules` generated from different swagger files,
|
|
106
|
+
you can create an alias name when importing the modules
|
|
107
|
+
in order to avoid naming conflicts:
|
|
108
|
+
```
|
|
109
|
+
import { ApiModule } from 'my-api-path';
|
|
110
|
+
import { ApiModule as OtherApiModule } from 'my-other-api-path';
|
|
111
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
@NgModule({
|
|
115
|
+
imports: [
|
|
116
|
+
ApiModule,
|
|
117
|
+
OtherApiModule,
|
|
118
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
119
|
+
// see https://github.com/angular/angular/issues/20575
|
|
120
|
+
HttpClientModule
|
|
121
|
+
]
|
|
122
|
+
})
|
|
123
|
+
export class AppModule {
|
|
124
|
+
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
### Set service base path
|
|
130
|
+
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
import { BASE_PATH } from '@revxui/api-clients-ts';
|
|
134
|
+
|
|
135
|
+
bootstrap(AppComponent, [
|
|
136
|
+
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' },
|
|
137
|
+
]);
|
|
138
|
+
```
|
|
139
|
+
or
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
import { BASE_PATH } from '@revxui/api-clients-ts';
|
|
143
|
+
|
|
144
|
+
@NgModule({
|
|
145
|
+
imports: [],
|
|
146
|
+
declarations: [ AppComponent ],
|
|
147
|
+
providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
|
|
148
|
+
bootstrap: [ AppComponent ]
|
|
149
|
+
})
|
|
150
|
+
export class AppModule {}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
#### Using @angular/cli
|
|
155
|
+
First extend your `src/environments/*.ts` files by adding the corresponding base path:
|
|
156
|
+
|
|
157
|
+
```
|
|
158
|
+
export const environment = {
|
|
159
|
+
production: false,
|
|
160
|
+
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
161
|
+
};
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
In the src/app/app.module.ts:
|
|
165
|
+
```
|
|
166
|
+
import { BASE_PATH } from '@revxui/api-clients-ts';
|
|
167
|
+
import { environment } from '../environments/environment';
|
|
168
|
+
|
|
169
|
+
@NgModule({
|
|
170
|
+
declarations: [
|
|
171
|
+
AppComponent
|
|
172
|
+
],
|
|
173
|
+
imports: [ ],
|
|
174
|
+
providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
|
|
175
|
+
bootstrap: [ AppComponent ]
|
|
176
|
+
})
|
|
177
|
+
export class AppModule { }
|
|
178
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ApiResponseObjectstring } from '../model/apiResponseObjectstring';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AdminRoleValidationControllerService {
|
|
7
|
+
protected httpClient: HttpClient;
|
|
8
|
+
protected basePath: string;
|
|
9
|
+
defaultHeaders: HttpHeaders;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @param consumes string[] mime-types
|
|
14
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
15
|
+
*/
|
|
16
|
+
private canConsumeForm;
|
|
17
|
+
/**
|
|
18
|
+
* checkAdmin
|
|
19
|
+
*
|
|
20
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
21
|
+
* @param reportProgress flag to report request and response progress.
|
|
22
|
+
*/
|
|
23
|
+
checkAdminUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
24
|
+
checkAdminUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
25
|
+
checkAdminUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
26
|
+
/**
|
|
27
|
+
* checkDemo
|
|
28
|
+
*
|
|
29
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
30
|
+
* @param reportProgress flag to report request and response progress.
|
|
31
|
+
*/
|
|
32
|
+
checkDemoUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
33
|
+
checkDemoUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
34
|
+
checkDemoUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
35
|
+
/**
|
|
36
|
+
* checkNoRole
|
|
37
|
+
*
|
|
38
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
39
|
+
* @param reportProgress flag to report request and response progress.
|
|
40
|
+
*/
|
|
41
|
+
checkNoRoleUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
42
|
+
checkNoRoleUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
43
|
+
checkNoRoleUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
44
|
+
/**
|
|
45
|
+
* checkRWAccess
|
|
46
|
+
*
|
|
47
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
48
|
+
* @param reportProgress flag to report request and response progress.
|
|
49
|
+
*/
|
|
50
|
+
checkRWAccessUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
51
|
+
checkRWAccessUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
52
|
+
checkRWAccessUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
53
|
+
/**
|
|
54
|
+
* checkRo
|
|
55
|
+
*
|
|
56
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
57
|
+
* @param reportProgress flag to report request and response progress.
|
|
58
|
+
*/
|
|
59
|
+
checkRoUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
60
|
+
checkRoUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
61
|
+
checkRoUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
62
|
+
/**
|
|
63
|
+
* checkSAdmin
|
|
64
|
+
*
|
|
65
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
66
|
+
* @param reportProgress flag to report request and response progress.
|
|
67
|
+
*/
|
|
68
|
+
checkSAdminUsingGET(observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;
|
|
69
|
+
checkSAdminUsingGET(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;
|
|
70
|
+
checkSAdminUsingGET(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;
|
|
71
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdminRoleValidationControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
72
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AdminRoleValidationControllerService>;
|
|
73
|
+
}
|
package/api/api.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './adminRoleValidationController.service';
|
|
2
|
+
import { AdminRoleValidationControllerService } from './adminRoleValidationController.service';
|
|
3
|
+
export * from './authApi.service';
|
|
4
|
+
import { AuthApiService } from './authApi.service';
|
|
5
|
+
export declare const APIS: (typeof AdminRoleValidationControllerService | typeof AuthApiService)[];
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity } from '../model/apiResponseObjectApiListResponseLifeTimeAuthenticationEntity';
|
|
4
|
+
import { ApiResponseObjectConsoleUserInfo } from '../model/apiResponseObjectConsoleUserInfo';
|
|
5
|
+
import { ApiResponseObjectLifeTimeAuthenticationEntity } from '../model/apiResponseObjectLifeTimeAuthenticationEntity';
|
|
6
|
+
import { ApiResponseObjectResponseMessage } from '../model/apiResponseObjectResponseMessage';
|
|
7
|
+
import { ApiResponseObjectSetLicensee } from '../model/apiResponseObjectSetLicensee';
|
|
8
|
+
import { ApiResponseObjectTokenResponse } from '../model/apiResponseObjectTokenResponse';
|
|
9
|
+
import { ApiResponseObjectUser2FADetail } from '../model/apiResponseObjectUser2FADetail';
|
|
10
|
+
import { ApiResponseObjectUserInfo } from '../model/apiResponseObjectUserInfo';
|
|
11
|
+
import { ApiResponseObjectboolean } from '../model/apiResponseObjectboolean';
|
|
12
|
+
import { PasswordChangeRequest } from '../model/passwordChangeRequest';
|
|
13
|
+
import { UserInfoExtended } from '../model/userInfoExtended';
|
|
14
|
+
import { UserLoginRequest } from '../model/userLoginRequest';
|
|
15
|
+
import { Configuration } from '../configuration';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class AuthApiService {
|
|
18
|
+
protected httpClient: HttpClient;
|
|
19
|
+
protected basePath: string;
|
|
20
|
+
defaultHeaders: HttpHeaders;
|
|
21
|
+
configuration: Configuration;
|
|
22
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
23
|
+
/**
|
|
24
|
+
* @param consumes string[] mime-types
|
|
25
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
26
|
+
*/
|
|
27
|
+
private canConsumeForm;
|
|
28
|
+
/**
|
|
29
|
+
* Change Password For Given User.
|
|
30
|
+
*
|
|
31
|
+
* @param passwordChangeRequest passwordChangeRequest
|
|
32
|
+
* @param token token
|
|
33
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
34
|
+
* @param reportProgress flag to report request and response progress.
|
|
35
|
+
*/
|
|
36
|
+
changePasswordUsingPOST(passwordChangeRequest: PasswordChangeRequest, token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectboolean>;
|
|
37
|
+
changePasswordUsingPOST(passwordChangeRequest: PasswordChangeRequest, token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectboolean>>;
|
|
38
|
+
changePasswordUsingPOST(passwordChangeRequest: PasswordChangeRequest, token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectboolean>>;
|
|
39
|
+
/**
|
|
40
|
+
* Validating Console master Token.
|
|
41
|
+
*
|
|
42
|
+
* @param token token
|
|
43
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
44
|
+
* @param reportProgress flag to report request and response progress.
|
|
45
|
+
*/
|
|
46
|
+
consoleUserInfoUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectConsoleUserInfo>;
|
|
47
|
+
consoleUserInfoUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectConsoleUserInfo>>;
|
|
48
|
+
consoleUserInfoUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectConsoleUserInfo>>;
|
|
49
|
+
/**
|
|
50
|
+
* Create a API Key.
|
|
51
|
+
*
|
|
52
|
+
* @param token token
|
|
53
|
+
* @param advId advId
|
|
54
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
55
|
+
* @param reportProgress flag to report request and response progress.
|
|
56
|
+
*/
|
|
57
|
+
createAPIKeyUsingPOST(token: string, advId?: number, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
|
|
58
|
+
createAPIKeyUsingPOST(token: string, advId?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
|
|
59
|
+
createAPIKeyUsingPOST(token: string, advId?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
|
|
60
|
+
/**
|
|
61
|
+
* Create a life time auth token.
|
|
62
|
+
*
|
|
63
|
+
* @param token token
|
|
64
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
65
|
+
* @param reportProgress flag to report request and response progress.
|
|
66
|
+
*/
|
|
67
|
+
createLifeTimeTokenUsingPOST(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectLifeTimeAuthenticationEntity>;
|
|
68
|
+
createLifeTimeTokenUsingPOST(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectLifeTimeAuthenticationEntity>>;
|
|
69
|
+
createLifeTimeTokenUsingPOST(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectLifeTimeAuthenticationEntity>>;
|
|
70
|
+
/**
|
|
71
|
+
* delete the life time auth token for the given tokenId.
|
|
72
|
+
*
|
|
73
|
+
* @param token token
|
|
74
|
+
* @param tokenId tokenId
|
|
75
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
76
|
+
* @param reportProgress flag to report request and response progress.
|
|
77
|
+
*/
|
|
78
|
+
deleteLifeTimeTokenUsingPUT(token: string, tokenId: number, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
|
|
79
|
+
deleteLifeTimeTokenUsingPUT(token: string, tokenId: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
|
|
80
|
+
deleteLifeTimeTokenUsingPUT(token: string, tokenId: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
|
|
81
|
+
/**
|
|
82
|
+
* Get all API Keys.
|
|
83
|
+
*
|
|
84
|
+
* @param token token
|
|
85
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
86
|
+
* @param reportProgress flag to report request and response progress.
|
|
87
|
+
*/
|
|
88
|
+
getAPIKeysUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>;
|
|
89
|
+
getAPIKeysUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>>;
|
|
90
|
+
getAPIKeysUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>>;
|
|
91
|
+
/**
|
|
92
|
+
* Get all life time auth tokens for the selected licensee.
|
|
93
|
+
*
|
|
94
|
+
* @param token token
|
|
95
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
96
|
+
* @param reportProgress flag to report request and response progress.
|
|
97
|
+
*/
|
|
98
|
+
getLifeTimeTokenUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>;
|
|
99
|
+
getLifeTimeTokenUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>>;
|
|
100
|
+
getLifeTimeTokenUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectApiListResponseLifeTimeAuthenticationEntity>>;
|
|
101
|
+
/**
|
|
102
|
+
* Validating Token From social(facebook/google/office) and getting AccessToken.
|
|
103
|
+
*
|
|
104
|
+
* @param client client
|
|
105
|
+
* @param socialToken socialToken
|
|
106
|
+
* @param isConsole isConsole
|
|
107
|
+
* @param oidcIssuer oidcIssuer
|
|
108
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
109
|
+
* @param reportProgress flag to report request and response progress.
|
|
110
|
+
*/
|
|
111
|
+
loginSocialUsingGET(client: string, socialToken: string, isConsole?: boolean, oidcIssuer?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTokenResponse>;
|
|
112
|
+
loginSocialUsingGET(client: string, socialToken: string, isConsole?: boolean, oidcIssuer?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTokenResponse>>;
|
|
113
|
+
loginSocialUsingGET(client: string, socialToken: string, isConsole?: boolean, oidcIssuer?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTokenResponse>>;
|
|
114
|
+
/**
|
|
115
|
+
* User Login .
|
|
116
|
+
*
|
|
117
|
+
* @param userLoginRequest userLoginRequest
|
|
118
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
119
|
+
* @param reportProgress flag to report request and response progress.
|
|
120
|
+
*/
|
|
121
|
+
loginUsingPOST(userLoginRequest: UserLoginRequest, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTokenResponse>;
|
|
122
|
+
loginUsingPOST(userLoginRequest: UserLoginRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTokenResponse>>;
|
|
123
|
+
loginUsingPOST(userLoginRequest: UserLoginRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTokenResponse>>;
|
|
124
|
+
/**
|
|
125
|
+
* Expire all token of given User and Logout.<Only Super Admin>
|
|
126
|
+
*
|
|
127
|
+
* @param token token
|
|
128
|
+
* @param username username
|
|
129
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
130
|
+
* @param reportProgress flag to report request and response progress.
|
|
131
|
+
*/
|
|
132
|
+
logoutUserUsingGET(token: string, username: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectboolean>;
|
|
133
|
+
logoutUserUsingGET(token: string, username: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectboolean>>;
|
|
134
|
+
logoutUserUsingGET(token: string, username: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectboolean>>;
|
|
135
|
+
/**
|
|
136
|
+
* Expire Access/Master Token.
|
|
137
|
+
*
|
|
138
|
+
* @param token token
|
|
139
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
140
|
+
* @param reportProgress flag to report request and response progress.
|
|
141
|
+
*/
|
|
142
|
+
logoutWithTokenUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectboolean>;
|
|
143
|
+
logoutWithTokenUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectboolean>>;
|
|
144
|
+
logoutWithTokenUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectboolean>>;
|
|
145
|
+
/**
|
|
146
|
+
* Resend OTP.
|
|
147
|
+
*
|
|
148
|
+
* @param username username
|
|
149
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
150
|
+
* @param reportProgress flag to report request and response progress.
|
|
151
|
+
*/
|
|
152
|
+
resendOtpUsingPOST(username: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectUser2FADetail>;
|
|
153
|
+
resendOtpUsingPOST(username: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectUser2FADetail>>;
|
|
154
|
+
resendOtpUsingPOST(username: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectUser2FADetail>>;
|
|
155
|
+
/**
|
|
156
|
+
* Switching From One Advertiser To Another.
|
|
157
|
+
*
|
|
158
|
+
* @param licenseeId licenseeId
|
|
159
|
+
* @param token token
|
|
160
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
161
|
+
* @param reportProgress flag to report request and response progress.
|
|
162
|
+
*/
|
|
163
|
+
switchLicenseeUsingGET(licenseeId: number, token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectTokenResponse>;
|
|
164
|
+
switchLicenseeUsingGET(licenseeId: number, token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectTokenResponse>>;
|
|
165
|
+
switchLicenseeUsingGET(licenseeId: number, token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectTokenResponse>>;
|
|
166
|
+
/**
|
|
167
|
+
* Enable or disable Two factor authentication
|
|
168
|
+
*
|
|
169
|
+
* @param isEnabled isEnabled
|
|
170
|
+
* @param token token
|
|
171
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
172
|
+
* @param reportProgress flag to report request and response progress.
|
|
173
|
+
*/
|
|
174
|
+
update2FAUsingPOST(isEnabled: boolean, token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
|
|
175
|
+
update2FAUsingPOST(isEnabled: boolean, token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
|
|
176
|
+
update2FAUsingPOST(isEnabled: boolean, token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
|
|
177
|
+
/**
|
|
178
|
+
* Validating Access/Master Token.
|
|
179
|
+
*
|
|
180
|
+
* @param token token
|
|
181
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
182
|
+
* @param reportProgress flag to report request and response progress.
|
|
183
|
+
*/
|
|
184
|
+
userInfoUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectUserInfo>;
|
|
185
|
+
userInfoUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectUserInfo>>;
|
|
186
|
+
userInfoUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectUserInfo>>;
|
|
187
|
+
/**
|
|
188
|
+
* Getting UserDetail.
|
|
189
|
+
*
|
|
190
|
+
* @param token token
|
|
191
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
192
|
+
* @param reportProgress flag to report request and response progress.
|
|
193
|
+
*/
|
|
194
|
+
userPrivilegeUsingGET(token: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectSetLicensee>;
|
|
195
|
+
userPrivilegeUsingGET(token: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectSetLicensee>>;
|
|
196
|
+
userPrivilegeUsingGET(token: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectSetLicensee>>;
|
|
197
|
+
/**
|
|
198
|
+
* Validating OTP.
|
|
199
|
+
*
|
|
200
|
+
* @param uiExtended uiExtended
|
|
201
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
202
|
+
* @param reportProgress flag to report request and response progress.
|
|
203
|
+
*/
|
|
204
|
+
validateOtpUsingPOST(uiExtended: UserInfoExtended, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
|
|
205
|
+
validateOtpUsingPOST(uiExtended: UserInfoExtended, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
|
|
206
|
+
validateOtpUsingPOST(uiExtended: UserInfoExtended, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthApiService, [null, { optional: true; }, { optional: true; }]>;
|
|
208
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthApiService>;
|
|
209
|
+
}
|
package/api.module.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface ConfigurationParameters {
|
|
2
|
+
apiKeys?: {
|
|
3
|
+
[key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
username?: string;
|
|
6
|
+
password?: string;
|
|
7
|
+
accessToken?: string | (() => string);
|
|
8
|
+
basePath?: string;
|
|
9
|
+
withCredentials?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class Configuration {
|
|
12
|
+
apiKeys?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
username?: string;
|
|
16
|
+
password?: string;
|
|
17
|
+
accessToken?: string | (() => string);
|
|
18
|
+
basePath?: string;
|
|
19
|
+
withCredentials?: boolean;
|
|
20
|
+
constructor(configurationParameters?: ConfigurationParameters);
|
|
21
|
+
/**
|
|
22
|
+
* Select the correct content-type to use for a request.
|
|
23
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
24
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
25
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
26
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
27
|
+
*/
|
|
28
|
+
selectHeaderContentType(contentTypes: string[]): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Select the correct accept content-type to use for a request.
|
|
31
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
32
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
33
|
+
* @param accepts - the array of content types that are available for selection.
|
|
34
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
35
|
+
*/
|
|
36
|
+
selectHeaderAccept(accepts: string[]): string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Check if the given MIME is a JSON MIME.
|
|
39
|
+
* JSON MIME examples:
|
|
40
|
+
* application/json
|
|
41
|
+
* application/json; charset=UTF8
|
|
42
|
+
* APPLICATION/JSON
|
|
43
|
+
* application/vnd.company+json
|
|
44
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
45
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
46
|
+
*/
|
|
47
|
+
isJsonMime(mime: string): boolean;
|
|
48
|
+
}
|
package/encoder.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpUrlEncodingCodec } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* CustomHttpUrlEncodingCodec
|
|
4
|
+
* Fix plus sign (+) not encoding, so sent as blank space
|
|
5
|
+
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
6
|
+
*/
|
|
7
|
+
export declare class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
8
|
+
encodeKey(k: string): string;
|
|
9
|
+
encodeValue(v: string): string;
|
|
10
|
+
}
|