@revxui/intellibid-client-ts 1.0.0
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 +180 -0
- package/api/api.d.ts +13 -0
- package/api/businessGeoController.service.d.ts +28 -0
- package/api/campaignController.service.d.ts +56 -0
- package/api/countryController.service.d.ts +28 -0
- package/api/dpaCampaignController.service.d.ts +52 -0
- package/api/dpaEngagementController.service.d.ts +83 -0
- package/api/packageDetailController.service.d.ts +45 -0
- package/api.module.d.ts +11 -0
- package/configuration.d.ts +48 -0
- package/encoder.d.ts +10 -0
- package/esm2020/api/api.mjs +14 -0
- package/esm2020/api/businessGeoController.service.mjs +78 -0
- package/esm2020/api/campaignController.service.mjs +152 -0
- package/esm2020/api/countryController.service.mjs +78 -0
- package/esm2020/api/dpaCampaignController.service.mjs +145 -0
- package/esm2020/api/dpaEngagementController.service.mjs +224 -0
- package/esm2020/api/packageDetailController.service.mjs +123 -0
- package/esm2020/api.module.mjs +60 -0
- package/esm2020/configuration.mjs +59 -0
- package/esm2020/encoder.mjs +17 -0
- package/esm2020/index.mjs +6 -0
- package/esm2020/model/adSetDetails.mjs +20 -0
- package/esm2020/model/audienceDetails.mjs +13 -0
- package/esm2020/model/businessGeoResponse.mjs +13 -0
- package/esm2020/model/campaignResponse.mjs +32 -0
- package/esm2020/model/countryResponse.mjs +13 -0
- package/esm2020/model/createCampaignRequest.mjs +13 -0
- package/esm2020/model/creativeDetails.mjs +2 -0
- package/esm2020/model/dpaCampaignRequest.mjs +2 -0
- package/esm2020/model/dpaCampaignResponse.mjs +11 -0
- package/esm2020/model/dpaEngagementRequest.mjs +2 -0
- package/esm2020/model/dpaEngagementResponse.mjs +32 -0
- package/esm2020/model/exclusionRule.mjs +13 -0
- package/esm2020/model/facebookDetails.mjs +2 -0
- package/esm2020/model/imageOverlaySpecDetails.mjs +13 -0
- package/esm2020/model/models.mjs +21 -0
- package/esm2020/model/packageDetailResponse.mjs +13 -0
- package/esm2020/model/pageCampaignResponse.mjs +2 -0
- package/esm2020/model/pageDpaEngagementResponse.mjs +2 -0
- package/esm2020/model/pagePackageDetailResponse.mjs +2 -0
- package/esm2020/model/pageableObject.mjs +2 -0
- package/esm2020/model/sortObject.mjs +13 -0
- package/esm2020/revxui-intellibid-client-ts.mjs +5 -0
- package/esm2020/variables.mjs +9 -0
- package/fesm2015/revxui-intellibid-client-ts.mjs +1010 -0
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -0
- package/fesm2020/revxui-intellibid-client-ts.mjs +1092 -0
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/model/adSetDetails.d.ts +28 -0
- package/model/audienceDetails.d.ts +22 -0
- package/model/businessGeoResponse.d.ts +15 -0
- package/model/campaignResponse.d.ts +117 -0
- package/model/countryResponse.d.ts +16 -0
- package/model/createCampaignRequest.d.ts +16 -0
- package/model/creativeDetails.d.ts +21 -0
- package/model/dpaCampaignRequest.d.ts +17 -0
- package/model/dpaCampaignResponse.d.ts +35 -0
- package/model/dpaEngagementRequest.d.ts +29 -0
- package/model/dpaEngagementResponse.d.ts +90 -0
- package/model/exclusionRule.d.ts +15 -0
- package/model/facebookDetails.d.ts +27 -0
- package/model/imageOverlaySpecDetails.d.ts +20 -0
- package/model/models.d.ts +20 -0
- package/model/packageDetailResponse.d.ts +16 -0
- package/model/pageCampaignResponse.d.ts +27 -0
- package/model/pageDpaEngagementResponse.d.ts +27 -0
- package/model/pagePackageDetailResponse.d.ts +27 -0
- package/model/pageableObject.d.ts +20 -0
- package/model/sortObject.d.ts +18 -0
- package/package.json +33 -0
- package/variables.d.ts +8 -0
package/README.md
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
## @revxui/intellibid-client-ts@1.0.0
|
|
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/intellibid-client-ts@1.0.0 --save
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
_without publishing (not recommended):_
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
It's important to take the tgz file, otherwise you'll get trouble with links on windows.
|
|
32
|
+
|
|
33
|
+
_using `npm link`:_
|
|
34
|
+
|
|
35
|
+
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
36
|
+
```
|
|
37
|
+
npm link
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
In your project:
|
|
41
|
+
```
|
|
42
|
+
npm link @revxui/intellibid-client-ts
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
46
|
+
Please refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.
|
|
47
|
+
Published packages are not effected by this issue.
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
#### General usage
|
|
51
|
+
|
|
52
|
+
In your Angular project:
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
// without configuring providers
|
|
57
|
+
import { ApiModule } from '@revxui/intellibid-client-ts';
|
|
58
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
@NgModule({
|
|
62
|
+
imports: [
|
|
63
|
+
ApiModule,
|
|
64
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
65
|
+
// see https://github.com/angular/angular/issues/20575
|
|
66
|
+
HttpClientModule
|
|
67
|
+
],
|
|
68
|
+
declarations: [ AppComponent ],
|
|
69
|
+
providers: [],
|
|
70
|
+
bootstrap: [ AppComponent ]
|
|
71
|
+
})
|
|
72
|
+
export class AppModule {}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
// configuring providers
|
|
77
|
+
import { ApiModule, Configuration, ConfigurationParameters } from '@revxui/intellibid-client-ts';
|
|
78
|
+
|
|
79
|
+
export function apiConfigFactory (): Configuration => {
|
|
80
|
+
const params: ConfigurationParameters = {
|
|
81
|
+
// set configuration parameters here.
|
|
82
|
+
}
|
|
83
|
+
return new Configuration(params);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@NgModule({
|
|
87
|
+
imports: [ ApiModule.forRoot(apiConfigFactory) ],
|
|
88
|
+
declarations: [ AppComponent ],
|
|
89
|
+
providers: [],
|
|
90
|
+
bootstrap: [ AppComponent ]
|
|
91
|
+
})
|
|
92
|
+
export class AppModule {}
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
import { DefaultApi } from '@revxui/intellibid-client-ts';
|
|
97
|
+
|
|
98
|
+
export class AppComponent {
|
|
99
|
+
constructor(private apiGateway: DefaultApi) { }
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Note: The ApiModule is restricted to being instantiated once app wide.
|
|
104
|
+
This is to ensure that all services are treated as singletons.
|
|
105
|
+
|
|
106
|
+
#### Using multiple swagger files / APIs / ApiModules
|
|
107
|
+
In order to use multiple `ApiModules` generated from different swagger files,
|
|
108
|
+
you can create an alias name when importing the modules
|
|
109
|
+
in order to avoid naming conflicts:
|
|
110
|
+
```
|
|
111
|
+
import { ApiModule } from 'my-api-path';
|
|
112
|
+
import { ApiModule as OtherApiModule } from 'my-other-api-path';
|
|
113
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@NgModule({
|
|
117
|
+
imports: [
|
|
118
|
+
ApiModule,
|
|
119
|
+
OtherApiModule,
|
|
120
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
121
|
+
// see https://github.com/angular/angular/issues/20575
|
|
122
|
+
HttpClientModule
|
|
123
|
+
]
|
|
124
|
+
})
|
|
125
|
+
export class AppModule {
|
|
126
|
+
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Set service base path
|
|
132
|
+
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
import { BASE_PATH } from '@revxui/intellibid-client-ts';
|
|
136
|
+
|
|
137
|
+
bootstrap(AppComponent, [
|
|
138
|
+
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' },
|
|
139
|
+
]);
|
|
140
|
+
```
|
|
141
|
+
or
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
import { BASE_PATH } from '@revxui/intellibid-client-ts';
|
|
145
|
+
|
|
146
|
+
@NgModule({
|
|
147
|
+
imports: [],
|
|
148
|
+
declarations: [ AppComponent ],
|
|
149
|
+
providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
|
|
150
|
+
bootstrap: [ AppComponent ]
|
|
151
|
+
})
|
|
152
|
+
export class AppModule {}
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
#### Using @angular/cli
|
|
157
|
+
First extend your `src/environments/*.ts` files by adding the corresponding base path:
|
|
158
|
+
|
|
159
|
+
```
|
|
160
|
+
export const environment = {
|
|
161
|
+
production: false,
|
|
162
|
+
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
163
|
+
};
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
In the src/app/app.module.ts:
|
|
167
|
+
```
|
|
168
|
+
import { BASE_PATH } from '@revxui/intellibid-client-ts';
|
|
169
|
+
import { environment } from '../environments/environment';
|
|
170
|
+
|
|
171
|
+
@NgModule({
|
|
172
|
+
declarations: [
|
|
173
|
+
AppComponent
|
|
174
|
+
],
|
|
175
|
+
imports: [ ],
|
|
176
|
+
providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
|
|
177
|
+
bootstrap: [ AppComponent ]
|
|
178
|
+
})
|
|
179
|
+
export class AppModule { }
|
|
180
|
+
```
|
package/api/api.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './businessGeoController.service';
|
|
2
|
+
import { BusinessGeoControllerService } from './businessGeoController.service';
|
|
3
|
+
export * from './campaignController.service';
|
|
4
|
+
import { CampaignControllerService } from './campaignController.service';
|
|
5
|
+
export * from './countryController.service';
|
|
6
|
+
import { CountryControllerService } from './countryController.service';
|
|
7
|
+
export * from './dpaCampaignController.service';
|
|
8
|
+
import { DpaCampaignControllerService } from './dpaCampaignController.service';
|
|
9
|
+
export * from './dpaEngagementController.service';
|
|
10
|
+
import { DpaEngagementControllerService } from './dpaEngagementController.service';
|
|
11
|
+
export * from './packageDetailController.service';
|
|
12
|
+
import { PackageDetailControllerService } from './packageDetailController.service';
|
|
13
|
+
export declare const APIS: (typeof BusinessGeoControllerService | typeof CampaignControllerService | typeof CountryControllerService | typeof DpaCampaignControllerService | typeof DpaEngagementControllerService | typeof PackageDetailControllerService)[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BusinessGeoResponse } from '../model/businessGeoResponse';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class BusinessGeoControllerService {
|
|
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
|
+
*
|
|
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
|
+
getAllBusinessGeos(observe?: 'body', reportProgress?: boolean): Observable<Array<BusinessGeoResponse>>;
|
|
24
|
+
getAllBusinessGeos(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<BusinessGeoResponse>>>;
|
|
25
|
+
getAllBusinessGeos(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<BusinessGeoResponse>>>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BusinessGeoControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BusinessGeoControllerService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CampaignResponse } from '../model/campaignResponse';
|
|
4
|
+
import { CreateCampaignRequest } from '../model/createCampaignRequest';
|
|
5
|
+
import { PageCampaignResponse } from '../model/pageCampaignResponse';
|
|
6
|
+
import { Configuration } from '../configuration';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CampaignControllerService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected basePath: string;
|
|
11
|
+
defaultHeaders: HttpHeaders;
|
|
12
|
+
configuration: Configuration;
|
|
13
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
14
|
+
/**
|
|
15
|
+
* @param consumes string[] mime-types
|
|
16
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
17
|
+
*/
|
|
18
|
+
private canConsumeForm;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* @param body
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
createCampaign(body: CreateCampaignRequest, observe?: 'body', reportProgress?: boolean): Observable<CampaignResponse>;
|
|
27
|
+
createCampaign(body: CreateCampaignRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CampaignResponse>>;
|
|
28
|
+
createCampaign(body: CreateCampaignRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CampaignResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @param name
|
|
33
|
+
* @param vizardPackageId
|
|
34
|
+
* @param status
|
|
35
|
+
* @param page Zero-based page index (0..N)
|
|
36
|
+
* @param size The size of the page to be returned
|
|
37
|
+
* @param sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
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
|
+
getAllCampaigns(name?: string, vizardPackageId?: number, status?: string, page?: number, size?: number, sort?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<PageCampaignResponse>;
|
|
42
|
+
getAllCampaigns(name?: string, vizardPackageId?: number, status?: string, page?: number, size?: number, sort?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PageCampaignResponse>>;
|
|
43
|
+
getAllCampaigns(name?: string, vizardPackageId?: number, status?: string, page?: number, size?: number, sort?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PageCampaignResponse>>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
*
|
|
47
|
+
* @param id
|
|
48
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
49
|
+
* @param reportProgress flag to report request and response progress.
|
|
50
|
+
*/
|
|
51
|
+
getCampaign(id: number, observe?: 'body', reportProgress?: boolean): Observable<CampaignResponse>;
|
|
52
|
+
getCampaign(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<CampaignResponse>>;
|
|
53
|
+
getCampaign(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<CampaignResponse>>;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CampaignControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
55
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CampaignControllerService>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { CountryResponse } from '../model/countryResponse';
|
|
4
|
+
import { Configuration } from '../configuration';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CountryControllerService {
|
|
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
|
+
*
|
|
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
|
+
getAllCountries(observe?: 'body', reportProgress?: boolean): Observable<Array<CountryResponse>>;
|
|
24
|
+
getAllCountries(observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<Array<CountryResponse>>>;
|
|
25
|
+
getAllCountries(observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<Array<CountryResponse>>>;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CountryControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CountryControllerService>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DpaCampaignRequest } from '../model/dpaCampaignRequest';
|
|
4
|
+
import { DpaCampaignResponse } from '../model/dpaCampaignResponse';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DpaCampaignControllerService {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
protected basePath: string;
|
|
10
|
+
defaultHeaders: HttpHeaders;
|
|
11
|
+
configuration: Configuration;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
13
|
+
/**
|
|
14
|
+
* @param consumes string[] mime-types
|
|
15
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
16
|
+
*/
|
|
17
|
+
private canConsumeForm;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* @param body
|
|
22
|
+
* @param id
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
createDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaCampaignResponse>;
|
|
27
|
+
createDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaCampaignResponse>>;
|
|
28
|
+
createDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaCampaignResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @param id
|
|
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
|
+
getDpaCampaign(id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaCampaignResponse>;
|
|
37
|
+
getDpaCampaign(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaCampaignResponse>>;
|
|
38
|
+
getDpaCampaign(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaCampaignResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
* @param body
|
|
43
|
+
* @param id
|
|
44
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
45
|
+
* @param reportProgress flag to report request and response progress.
|
|
46
|
+
*/
|
|
47
|
+
updateDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaCampaignResponse>;
|
|
48
|
+
updateDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaCampaignResponse>>;
|
|
49
|
+
updateDpaCampaign(body: DpaCampaignRequest, id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaCampaignResponse>>;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DpaCampaignControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
51
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DpaCampaignControllerService>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { DpaEngagementRequest } from '../model/dpaEngagementRequest';
|
|
4
|
+
import { DpaEngagementResponse } from '../model/dpaEngagementResponse';
|
|
5
|
+
import { PageDpaEngagementResponse } from '../model/pageDpaEngagementResponse';
|
|
6
|
+
import { Configuration } from '../configuration';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DpaEngagementControllerService {
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
protected basePath: string;
|
|
11
|
+
defaultHeaders: HttpHeaders;
|
|
12
|
+
configuration: Configuration;
|
|
13
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
14
|
+
/**
|
|
15
|
+
* @param consumes string[] mime-types
|
|
16
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
17
|
+
*/
|
|
18
|
+
private canConsumeForm;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
* @param body
|
|
23
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
24
|
+
* @param reportProgress flag to report request and response progress.
|
|
25
|
+
*/
|
|
26
|
+
createDpaEngagement(body: DpaEngagementRequest, observe?: 'body', reportProgress?: boolean): Observable<DpaEngagementResponse>;
|
|
27
|
+
createDpaEngagement(body: DpaEngagementRequest, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaEngagementResponse>>;
|
|
28
|
+
createDpaEngagement(body: DpaEngagementRequest, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaEngagementResponse>>;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
*
|
|
32
|
+
* @param id
|
|
33
|
+
* @param campaignId
|
|
34
|
+
* @param facebookCampaignId
|
|
35
|
+
* @param name
|
|
36
|
+
* @param payoutType
|
|
37
|
+
* @param status
|
|
38
|
+
* @param isIntellibidEnabled
|
|
39
|
+
* @param isMarketFeedbackEnabled
|
|
40
|
+
* @param campaignStatus
|
|
41
|
+
* @param page Zero-based page index (0..N)
|
|
42
|
+
* @param size The size of the page to be returned
|
|
43
|
+
* @param sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
44
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
45
|
+
* @param reportProgress flag to report request and response progress.
|
|
46
|
+
*/
|
|
47
|
+
getAllDpaEngagements(id?: number, campaignId?: number, facebookCampaignId?: string, name?: string, payoutType?: string, status?: string, isIntellibidEnabled?: boolean, isMarketFeedbackEnabled?: boolean, campaignStatus?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<PageDpaEngagementResponse>;
|
|
48
|
+
getAllDpaEngagements(id?: number, campaignId?: number, facebookCampaignId?: string, name?: string, payoutType?: string, status?: string, isIntellibidEnabled?: boolean, isMarketFeedbackEnabled?: boolean, campaignStatus?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PageDpaEngagementResponse>>;
|
|
49
|
+
getAllDpaEngagements(id?: number, campaignId?: number, facebookCampaignId?: string, name?: string, payoutType?: string, status?: string, isIntellibidEnabled?: boolean, isMarketFeedbackEnabled?: boolean, campaignStatus?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PageDpaEngagementResponse>>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
*
|
|
53
|
+
* @param id
|
|
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
|
+
getDpaEngagement(id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaEngagementResponse>;
|
|
58
|
+
getDpaEngagement(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaEngagementResponse>>;
|
|
59
|
+
getDpaEngagement(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaEngagementResponse>>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
* @param id
|
|
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
|
+
publishDpaEngagement(id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaEngagementResponse>;
|
|
68
|
+
publishDpaEngagement(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaEngagementResponse>>;
|
|
69
|
+
publishDpaEngagement(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaEngagementResponse>>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @param body
|
|
74
|
+
* @param id
|
|
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
|
+
updateDpaEngagement(body: DpaEngagementRequest, id: number, observe?: 'body', reportProgress?: boolean): Observable<DpaEngagementResponse>;
|
|
79
|
+
updateDpaEngagement(body: DpaEngagementRequest, id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<DpaEngagementResponse>>;
|
|
80
|
+
updateDpaEngagement(body: DpaEngagementRequest, id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<DpaEngagementResponse>>;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DpaEngagementControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
82
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DpaEngagementControllerService>;
|
|
83
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { PackageDetailResponse } from '../model/packageDetailResponse';
|
|
4
|
+
import { PagePackageDetailResponse } from '../model/pagePackageDetailResponse';
|
|
5
|
+
import { Configuration } from '../configuration';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class PackageDetailControllerService {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
protected basePath: string;
|
|
10
|
+
defaultHeaders: HttpHeaders;
|
|
11
|
+
configuration: Configuration;
|
|
12
|
+
constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
|
|
13
|
+
/**
|
|
14
|
+
* @param consumes string[] mime-types
|
|
15
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
16
|
+
*/
|
|
17
|
+
private canConsumeForm;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
* @param id
|
|
22
|
+
* @param name
|
|
23
|
+
* @param isActive
|
|
24
|
+
* @param page Zero-based page index (0..N)
|
|
25
|
+
* @param size The size of the page to be returned
|
|
26
|
+
* @param sort Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
|
|
27
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
28
|
+
* @param reportProgress flag to report request and response progress.
|
|
29
|
+
*/
|
|
30
|
+
getAllPackageDetails(id?: number, name?: string, isActive?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'body', reportProgress?: boolean): Observable<PagePackageDetailResponse>;
|
|
31
|
+
getAllPackageDetails(id?: number, name?: string, isActive?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PagePackageDetailResponse>>;
|
|
32
|
+
getAllPackageDetails(id?: number, name?: string, isActive?: boolean, page?: number, size?: number, sort?: Array<string>, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PagePackageDetailResponse>>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
*
|
|
36
|
+
* @param id
|
|
37
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
38
|
+
* @param reportProgress flag to report request and response progress.
|
|
39
|
+
*/
|
|
40
|
+
getPackageDetail(id: number, observe?: 'body', reportProgress?: boolean): Observable<PackageDetailResponse>;
|
|
41
|
+
getPackageDetail(id: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<PackageDetailResponse>>;
|
|
42
|
+
getPackageDetail(id: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<PackageDetailResponse>>;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PackageDetailControllerService, [null, { optional: true; }, { optional: true; }]>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PackageDetailControllerService>;
|
|
45
|
+
}
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './businessGeoController.service';
|
|
2
|
+
import { BusinessGeoControllerService } from './businessGeoController.service';
|
|
3
|
+
export * from './campaignController.service';
|
|
4
|
+
import { CampaignControllerService } from './campaignController.service';
|
|
5
|
+
export * from './countryController.service';
|
|
6
|
+
import { CountryControllerService } from './countryController.service';
|
|
7
|
+
export * from './dpaCampaignController.service';
|
|
8
|
+
import { DpaCampaignControllerService } from './dpaCampaignController.service';
|
|
9
|
+
export * from './dpaEngagementController.service';
|
|
10
|
+
import { DpaEngagementControllerService } from './dpaEngagementController.service';
|
|
11
|
+
export * from './packageDetailController.service';
|
|
12
|
+
import { PackageDetailControllerService } from './packageDetailController.service';
|
|
13
|
+
export const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, PackageDetailControllerService];
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vYXBpL2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQy9FLGNBQWMsOEJBQThCLENBQUM7QUFDN0MsT0FBTyxFQUFFLHlCQUF5QixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekUsY0FBYyw2QkFBNkIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUN2RSxjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELE9BQU8sRUFBRSw0QkFBNEIsRUFBRSxNQUFNLGlDQUFpQyxDQUFDO0FBQy9FLGNBQWMsbUNBQW1DLENBQUM7QUFDbEQsT0FBTyxFQUFFLDhCQUE4QixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDbkYsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxPQUFPLEVBQUUsOEJBQThCLEVBQUUsTUFBTSxtQ0FBbUMsQ0FBQztBQUNuRixNQUFNLENBQUMsTUFBTSxJQUFJLEdBQUcsQ0FBQyw0QkFBNEIsRUFBRSx5QkFBeUIsRUFBRSx3QkFBd0IsRUFBRSw0QkFBNEIsRUFBRSw4QkFBOEIsRUFBRSw4QkFBOEIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9idXNpbmVzc0dlb0NvbnRyb2xsZXIuc2VydmljZSc7XG5pbXBvcnQgeyBCdXNpbmVzc0dlb0NvbnRyb2xsZXJTZXJ2aWNlIH0gZnJvbSAnLi9idXNpbmVzc0dlb0NvbnRyb2xsZXIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2NhbXBhaWduQ29udHJvbGxlci5zZXJ2aWNlJztcbmltcG9ydCB7IENhbXBhaWduQ29udHJvbGxlclNlcnZpY2UgfSBmcm9tICcuL2NhbXBhaWduQ29udHJvbGxlci5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vY291bnRyeUNvbnRyb2xsZXIuc2VydmljZSc7XG5pbXBvcnQgeyBDb3VudHJ5Q29udHJvbGxlclNlcnZpY2UgfSBmcm9tICcuL2NvdW50cnlDb250cm9sbGVyLnNlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi9kcGFDYW1wYWlnbkNvbnRyb2xsZXIuc2VydmljZSc7XG5pbXBvcnQgeyBEcGFDYW1wYWlnbkNvbnRyb2xsZXJTZXJ2aWNlIH0gZnJvbSAnLi9kcGFDYW1wYWlnbkNvbnRyb2xsZXIuc2VydmljZSc7XG5leHBvcnQgKiBmcm9tICcuL2RwYUVuZ2FnZW1lbnRDb250cm9sbGVyLnNlcnZpY2UnO1xuaW1wb3J0IHsgRHBhRW5nYWdlbWVudENvbnRyb2xsZXJTZXJ2aWNlIH0gZnJvbSAnLi9kcGFFbmdhZ2VtZW50Q29udHJvbGxlci5zZXJ2aWNlJztcbmV4cG9ydCAqIGZyb20gJy4vcGFja2FnZURldGFpbENvbnRyb2xsZXIuc2VydmljZSc7XG5pbXBvcnQgeyBQYWNrYWdlRGV0YWlsQ29udHJvbGxlclNlcnZpY2UgfSBmcm9tICcuL3BhY2thZ2VEZXRhaWxDb250cm9sbGVyLnNlcnZpY2UnO1xuZXhwb3J0IGNvbnN0IEFQSVMgPSBbQnVzaW5lc3NHZW9Db250cm9sbGVyU2VydmljZSwgQ2FtcGFpZ25Db250cm9sbGVyU2VydmljZSwgQ291bnRyeUNvbnRyb2xsZXJTZXJ2aWNlLCBEcGFDYW1wYWlnbkNvbnRyb2xsZXJTZXJ2aWNlLCBEcGFFbmdhZ2VtZW50Q29udHJvbGxlclNlcnZpY2UsIFBhY2thZ2VEZXRhaWxDb250cm9sbGVyU2VydmljZV07XG4iXX0=
|