Skip to content

Commit f44a8e5

Browse files
authored
Analytics multi custom types (#61)
* Add rest of File API to SDK * nit: replace error with juno validation error * Update sdk, multi-analytics
1 parent 674bd98 commit f44a8e5

84 files changed

Lines changed: 288 additions & 72 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/internal/api/analyticsApi.ts‎

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { ClickEventResponse } from '../model/clickEventResponse';
1818
import { CustomEventResponse } from '../model/customEventResponse';
19-
import { CustomEventTypeResponse } from '../model/customEventTypeResponse';
2019
import { CustomGraphTypeResponse } from '../model/customGraphTypeResponse';
2120
import { GetAllClickEventsResponse } from '../model/getAllClickEventsResponse';
21+
import { GetAllCustomEventTypeResponse } from '../model/getAllCustomEventTypeResponse';
2222
import { GetAllCustomEventsResponse } from '../model/getAllCustomEventsResponse';
2323
import { GetAllInputEventsResponse } from '../model/getAllInputEventsResponse';
2424
import { GetAllVisitEventsResponse } from '../model/getAllVisitEventsResponse';
@@ -34,14 +34,19 @@ import { LogVisitEventRequest } from '../model/logVisitEventRequest';
3434
import { VisitEventResponse } from '../model/visitEventResponse';
3535

3636
import {
37-
Authentication,
38-
HttpBearerAuth,
39-
Interceptor,
4037
ObjectSerializer,
38+
Authentication,
4139
VoidAuth,
40+
Interceptor,
41+
} from '../model/models';
42+
import {
43+
HttpBasicAuth,
44+
HttpBearerAuth,
45+
ApiKeyAuth,
46+
OAuth,
4247
} from '../model/models';
4348

44-
import { HttpError } from './apis';
49+
import { HttpError, RequestFile } from './apis';
4550

4651
let defaultBasePath = 'http://localhost';
4752

@@ -788,7 +793,7 @@ export class AnalyticsApi {
788793
options: { headers: { [name: string]: string } } = { headers: {} }
789794
): Promise<{
790795
response: http.IncomingMessage;
791-
body: CustomEventTypeResponse;
796+
body: GetAllCustomEventTypeResponse;
792797
}> {
793798
const localVarPath = this.basePath + '/analytics/custom-event-types';
794799
let localVarQueryParameters: any = {};
@@ -859,7 +864,7 @@ export class AnalyticsApi {
859864
}
860865
return new Promise<{
861866
response: http.IncomingMessage;
862-
body: CustomEventTypeResponse;
867+
body: GetAllCustomEventTypeResponse;
863868
}>((resolve, reject) => {
864869
localVarRequest(localVarRequestOptions, (error, response, body) => {
865870
if (error) {
@@ -872,7 +877,7 @@ export class AnalyticsApi {
872877
) {
873878
body = ObjectSerializer.deserialize(
874879
body,
875-
'CustomEventTypeResponse'
880+
'GetAllCustomEventTypeResponse'
876881
);
877882
resolve({ response: response, body: body });
878883
} else {

‎src/internal/api/analyticsConfigApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,28 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { AnalyticsConfigResponse } from '../model/analyticsConfigResponse';
1818
import { CreateAnalyticsConfigModel } from '../model/createAnalyticsConfigModel';
1919
import { UpdateAnalyticsConfigModel } from '../model/updateAnalyticsConfigModel';
2020

2121
import {
22-
Authentication,
23-
HttpBearerAuth,
24-
Interceptor,
2522
ObjectSerializer,
23+
Authentication,
2624
VoidAuth,
25+
Interceptor,
26+
} from '../model/models';
27+
import {
28+
HttpBasicAuth,
29+
HttpBearerAuth,
30+
ApiKeyAuth,
31+
OAuth,
2732
} from '../model/models';
2833

29-
import { HttpError } from './apis';
34+
import { HttpError, RequestFile } from './apis';
3035

3136
let defaultBasePath = 'http://localhost';
3237

‎src/internal/api/apis.ts‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
export * from './analyticsApi';
2-
export * from './analyticsConfigApi';
3-
export * from './authApi';
4-
export * from './emailApi';
5-
export * from './fileBucketApi';
6-
export * from './fileConfigApi';
7-
export * from './fileDownloadApi';
8-
export * from './fileProviderApi';
9-
export * from './fileUploadApi';
10-
export * from './projectApi';
11-
export * from './userApi';
12-
import * as http from 'http';
132
import { AnalyticsApi } from './analyticsApi';
3+
export * from './analyticsConfigApi';
144
import { AnalyticsConfigApi } from './analyticsConfigApi';
5+
export * from './authApi';
156
import { AuthApi } from './authApi';
7+
export * from './emailApi';
168
import { EmailApi } from './emailApi';
9+
export * from './fileBucketApi';
1710
import { FileBucketApi } from './fileBucketApi';
11+
export * from './fileConfigApi';
1812
import { FileConfigApi } from './fileConfigApi';
13+
export * from './fileDownloadApi';
1914
import { FileDownloadApi } from './fileDownloadApi';
15+
export * from './fileProviderApi';
2016
import { FileProviderApi } from './fileProviderApi';
17+
export * from './fileUploadApi';
2118
import { FileUploadApi } from './fileUploadApi';
19+
export * from './projectApi';
2220
import { ProjectApi } from './projectApi';
21+
export * from './userApi';
2322
import { UserApi } from './userApi';
23+
import * as http from 'http';
2424

2525
export class HttpError extends Error {
2626
constructor(

‎src/internal/api/authApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,28 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { IssueApiKeyRequest } from '../model/issueApiKeyRequest';
1818
import { IssueApiKeyResponse } from '../model/issueApiKeyResponse';
1919
import { IssueJWTResponse } from '../model/issueJWTResponse';
2020

2121
import {
22-
Authentication,
23-
HttpBearerAuth,
24-
Interceptor,
2522
ObjectSerializer,
23+
Authentication,
2624
VoidAuth,
25+
Interceptor,
26+
} from '../model/models';
27+
import {
28+
HttpBasicAuth,
29+
HttpBearerAuth,
30+
ApiKeyAuth,
31+
OAuth,
2732
} from '../model/models';
2833

29-
import { HttpError } from './apis';
34+
import { HttpError, RequestFile } from './apis';
3035

3136
let defaultBasePath = 'http://localhost';
3237

‎src/internal/api/emailApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { AggregateInterval } from '../model/aggregateInterval';
@@ -28,14 +28,19 @@ import { SetupEmailServiceModel } from '../model/setupEmailServiceModel';
2828
import { VerifyDomainModel } from '../model/verifyDomainModel';
2929

3030
import {
31-
Authentication,
32-
HttpBearerAuth,
33-
Interceptor,
3431
ObjectSerializer,
32+
Authentication,
3533
VoidAuth,
34+
Interceptor,
35+
} from '../model/models';
36+
import {
37+
HttpBasicAuth,
38+
HttpBearerAuth,
39+
ApiKeyAuth,
40+
OAuth,
3641
} from '../model/models';
3742

38-
import { HttpError } from './apis';
43+
import { HttpError, RequestFile } from './apis';
3944

4045
let defaultBasePath = 'http://localhost';
4146

‎src/internal/api/fileBucketApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { FileBucket } from '../model/fileBucket';
1818
import { RegisterFileBucketModel } from '../model/registerFileBucketModel';
1919

2020
import {
21-
Authentication,
22-
HttpBearerAuth,
23-
Interceptor,
2421
ObjectSerializer,
22+
Authentication,
2523
VoidAuth,
24+
Interceptor,
25+
} from '../model/models';
26+
import {
27+
HttpBasicAuth,
28+
HttpBearerAuth,
29+
ApiKeyAuth,
30+
OAuth,
2631
} from '../model/models';
2732

28-
import { HttpError } from './apis';
33+
import { HttpError, RequestFile } from './apis';
2934

3035
let defaultBasePath = 'http://localhost';
3136

‎src/internal/api/fileConfigApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { FileConfigResponse } from '../model/fileConfigResponse';
1818
import { SetupFileServiceResponse } from '../model/setupFileServiceResponse';
1919

2020
import {
21-
Authentication,
22-
HttpBearerAuth,
23-
Interceptor,
2421
ObjectSerializer,
22+
Authentication,
2523
VoidAuth,
24+
Interceptor,
25+
} from '../model/models';
26+
import {
27+
HttpBasicAuth,
28+
HttpBearerAuth,
29+
ApiKeyAuth,
30+
OAuth,
2631
} from '../model/models';
2732

28-
import { HttpError } from './apis';
33+
import { HttpError, RequestFile } from './apis';
2934

3035
let defaultBasePath = 'http://localhost';
3136

‎src/internal/api/fileDownloadApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { DownloadFileModel } from '../model/downloadFileModel';
1818
import { DownloadFileResponse } from '../model/downloadFileResponse';
1919

2020
import {
21-
Authentication,
22-
HttpBearerAuth,
23-
Interceptor,
2421
ObjectSerializer,
22+
Authentication,
2523
VoidAuth,
24+
Interceptor,
25+
} from '../model/models';
26+
import {
27+
HttpBasicAuth,
28+
HttpBearerAuth,
29+
ApiKeyAuth,
30+
OAuth,
2631
} from '../model/models';
2732

28-
import { HttpError } from './apis';
33+
import { HttpError, RequestFile } from './apis';
2934

3035
let defaultBasePath = 'http://localhost';
3136

‎src/internal/api/fileProviderApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { FileProviderResponse } from '../model/fileProviderResponse';
1818
import { RegisterFileProviderModel } from '../model/registerFileProviderModel';
1919

2020
import {
21-
Authentication,
22-
HttpBearerAuth,
23-
Interceptor,
2421
ObjectSerializer,
22+
Authentication,
2523
VoidAuth,
24+
Interceptor,
25+
} from '../model/models';
26+
import {
27+
HttpBasicAuth,
28+
HttpBearerAuth,
29+
ApiKeyAuth,
30+
OAuth,
2631
} from '../model/models';
2732

28-
import { HttpError } from './apis';
33+
import { HttpError, RequestFile } from './apis';
2934

3035
let defaultBasePath = 'http://localhost';
3136

‎src/internal/api/fileUploadApi.ts‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@
1010
* Do not edit the class manually.
1111
*/
1212

13-
import http from 'http';
1413
import localVarRequest from 'request';
14+
import http from 'http';
1515

1616
/* tslint:disable:no-unused-locals */
1717
import { UploadFileModel } from '../model/uploadFileModel';
1818
import { UploadFileResponse } from '../model/uploadFileResponse';
1919

2020
import {
21-
Authentication,
22-
HttpBearerAuth,
23-
Interceptor,
2421
ObjectSerializer,
22+
Authentication,
2523
VoidAuth,
24+
Interceptor,
25+
} from '../model/models';
26+
import {
27+
HttpBasicAuth,
28+
HttpBearerAuth,
29+
ApiKeyAuth,
30+
OAuth,
2631
} from '../model/models';
2732

28-
import { HttpError } from './apis';
33+
import { HttpError, RequestFile } from './apis';
2934

3035
let defaultBasePath = 'http://localhost';
3136

0 commit comments

Comments
 (0)