@teemill/integrations 0.8.4 → 0.10.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/.openapi-generator/FILES +5 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +75 -2
- package/dist/apis/IntegrationsApi.js +231 -1
- package/dist/esm/apis/IntegrationsApi.d.ts +75 -2
- package/dist/esm/apis/IntegrationsApi.js +232 -2
- package/dist/esm/models/ApiError.d.ts +2 -2
- package/dist/esm/models/ApiError.js +2 -2
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +61 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +40 -0
- package/dist/esm/models/Integration.d.ts +10 -27
- package/dist/esm/models/Integration.js +10 -26
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/esm/models/IntegrationCategory.d.ts +2 -2
- package/dist/esm/models/IntegrationCategory.js +4 -4
- package/dist/esm/models/IntegrationListing.d.ts +2 -2
- package/dist/esm/models/IntegrationListing.js +11 -11
- package/dist/esm/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/esm/models/IntegrationListingGradient.js +1 -1
- package/dist/esm/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationListingsResponse.js +2 -2
- package/dist/esm/models/IntegrationProduct.d.ts +2 -2
- package/dist/esm/models/IntegrationProduct.js +6 -6
- package/dist/esm/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationProductsResponse.js +2 -2
- package/dist/esm/models/IntegrationsResponse.d.ts +2 -2
- package/dist/esm/models/IntegrationsResponse.js +8 -11
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +49 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/models/CreateAdminIntegrationListingRequest.js +68 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
- package/dist/models/Integration.d.ts +10 -27
- package/dist/models/Integration.js +10 -26
- package/dist/models/IntegrationCategoriesResponse.d.ts +2 -2
- package/dist/models/IntegrationCategoriesResponse.js +2 -2
- package/dist/models/IntegrationCategory.d.ts +2 -2
- package/dist/models/IntegrationCategory.js +4 -4
- package/dist/models/IntegrationListing.d.ts +2 -2
- package/dist/models/IntegrationListing.js +11 -11
- package/dist/models/IntegrationListingGradient.d.ts +2 -2
- package/dist/models/IntegrationListingGradient.js +1 -1
- package/dist/models/IntegrationListingsResponse.d.ts +2 -2
- package/dist/models/IntegrationListingsResponse.js +2 -2
- package/dist/models/IntegrationProduct.d.ts +2 -2
- package/dist/models/IntegrationProduct.js +6 -6
- package/dist/models/IntegrationProductsResponse.d.ts +2 -2
- package/dist/models/IntegrationProductsResponse.js +2 -2
- package/dist/models/IntegrationsResponse.d.ts +2 -2
- package/dist/models/IntegrationsResponse.js +8 -11
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +62 -0
- package/dist/models/UpdateAdminIntegrationListingRequest.js +56 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +2 -2
- package/src/apis/IntegrationsApi.ts +323 -1
- package/src/models/ApiError.ts +3 -3
- package/src/models/CreateAdminIntegrationListingRequest.ts +113 -0
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
- package/src/models/Integration.ts +18 -58
- package/src/models/IntegrationCategoriesResponse.ts +3 -3
- package/src/models/IntegrationCategory.ts +5 -5
- package/src/models/IntegrationListing.ts +12 -12
- package/src/models/IntegrationListingGradient.ts +2 -2
- package/src/models/IntegrationListingsResponse.ts +3 -3
- package/src/models/IntegrationProduct.ts +7 -7
- package/src/models/IntegrationProductsResponse.ts +3 -3
- package/src/models/IntegrationsResponse.ts +9 -14
- package/src/models/UpdateAdminIntegrationListingRequest.ts +107 -0
- package/src/models/index.ts +5 -0
- package/src/runtime.ts +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Integrations API
|
|
6
6
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,9 +19,9 @@ const Integration_1 = require("./Integration");
|
|
|
19
19
|
* Check if a given object implements the IntegrationsResponse interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfIntegrationsResponse(value) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
22
|
+
if (!('integrations' in value) || value['integrations'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
25
|
}
|
|
26
26
|
exports.instanceOfIntegrationsResponse = instanceOfIntegrationsResponse;
|
|
27
27
|
function IntegrationsResponseFromJSON(json) {
|
|
@@ -29,7 +29,7 @@ function IntegrationsResponseFromJSON(json) {
|
|
|
29
29
|
}
|
|
30
30
|
exports.IntegrationsResponseFromJSON = IntegrationsResponseFromJSON;
|
|
31
31
|
function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (
|
|
32
|
+
if (json == null) {
|
|
33
33
|
return json;
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
@@ -38,14 +38,11 @@ function IntegrationsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.IntegrationsResponseFromJSONTyped = IntegrationsResponseFromJSONTyped;
|
|
40
40
|
function IntegrationsResponseToJSON(value) {
|
|
41
|
-
if (value
|
|
42
|
-
return
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
46
43
|
}
|
|
47
44
|
return {
|
|
48
|
-
'integrations': (value
|
|
45
|
+
'integrations': (value['integrations'].map(Integration_1.IntegrationToJSON)),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
51
48
|
exports.IntegrationsResponseToJSON = IntegrationsResponseToJSON;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integrations API
|
|
3
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
|
+
* Contact: hello@teemill.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateAdminIntegrationListingRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateAdminIntegrationListingRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the integration listing
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The description of the integration listing
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The html content of the integration listing
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
35
|
+
*/
|
|
36
|
+
content?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The slug of the integration listing that is used in the URL
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
41
|
+
*/
|
|
42
|
+
slug?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
46
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
47
|
+
*/
|
|
48
|
+
gradient?: CreateAdminIntegrationListingRequestGradient;
|
|
49
|
+
/**
|
|
50
|
+
* The icon of the integration listing
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateAdminIntegrationListingRequest
|
|
53
|
+
*/
|
|
54
|
+
icon?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfUpdateAdminIntegrationListingRequest(value: object): value is UpdateAdminIntegrationListingRequest;
|
|
60
|
+
export declare function UpdateAdminIntegrationListingRequestFromJSON(json: any): UpdateAdminIntegrationListingRequest;
|
|
61
|
+
export declare function UpdateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAdminIntegrationListingRequest;
|
|
62
|
+
export declare function UpdateAdminIntegrationListingRequestToJSON(value?: UpdateAdminIntegrationListingRequest | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Integrations API
|
|
6
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
|
+
* Contact: hello@teemill.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateAdminIntegrationListingRequestToJSON = exports.UpdateAdminIntegrationListingRequestFromJSONTyped = exports.UpdateAdminIntegrationListingRequestFromJSON = exports.instanceOfUpdateAdminIntegrationListingRequest = void 0;
|
|
17
|
+
const CreateAdminIntegrationListingRequestGradient_1 = require("./CreateAdminIntegrationListingRequestGradient");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateAdminIntegrationListingRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateAdminIntegrationListingRequest(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfUpdateAdminIntegrationListingRequest = instanceOfUpdateAdminIntegrationListingRequest;
|
|
25
|
+
function UpdateAdminIntegrationListingRequestFromJSON(json) {
|
|
26
|
+
return UpdateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.UpdateAdminIntegrationListingRequestFromJSON = UpdateAdminIntegrationListingRequestFromJSON;
|
|
29
|
+
function UpdateAdminIntegrationListingRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
35
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
36
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
37
|
+
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
38
|
+
'gradient': json['gradient'] == null ? undefined : (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientFromJSON)(json['gradient']),
|
|
39
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.UpdateAdminIntegrationListingRequestFromJSONTyped = UpdateAdminIntegrationListingRequestFromJSONTyped;
|
|
43
|
+
function UpdateAdminIntegrationListingRequestToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
'description': value['description'],
|
|
50
|
+
'content': value['content'],
|
|
51
|
+
'slug': value['slug'],
|
|
52
|
+
'gradient': (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientToJSON)(value['gradient']),
|
|
53
|
+
'icon': value['icon'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.UpdateAdminIntegrationListingRequestToJSON = UpdateAdminIntegrationListingRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from './ApiError';
|
|
2
|
+
export * from './CreateAdminIntegrationListingRequest';
|
|
3
|
+
export * from './CreateAdminIntegrationListingRequestGradient';
|
|
4
|
+
export * from './Integration';
|
|
2
5
|
export * from './IntegrationCategoriesResponse';
|
|
3
6
|
export * from './IntegrationCategory';
|
|
4
7
|
export * from './IntegrationListing';
|
|
@@ -6,3 +9,5 @@ export * from './IntegrationListingGradient';
|
|
|
6
9
|
export * from './IntegrationListingsResponse';
|
|
7
10
|
export * from './IntegrationProduct';
|
|
8
11
|
export * from './IntegrationProductsResponse';
|
|
12
|
+
export * from './IntegrationsResponse';
|
|
13
|
+
export * from './UpdateAdminIntegrationListingRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./ApiError"), exports);
|
|
20
|
+
__exportStar(require("./CreateAdminIntegrationListingRequest"), exports);
|
|
21
|
+
__exportStar(require("./CreateAdminIntegrationListingRequestGradient"), exports);
|
|
22
|
+
__exportStar(require("./Integration"), exports);
|
|
20
23
|
__exportStar(require("./IntegrationCategoriesResponse"), exports);
|
|
21
24
|
__exportStar(require("./IntegrationCategory"), exports);
|
|
22
25
|
__exportStar(require("./IntegrationListing"), exports);
|
|
@@ -24,3 +27,5 @@ __exportStar(require("./IntegrationListingGradient"), exports);
|
|
|
24
27
|
__exportStar(require("./IntegrationListingsResponse"), exports);
|
|
25
28
|
__exportStar(require("./IntegrationProduct"), exports);
|
|
26
29
|
__exportStar(require("./IntegrationProductsResponse"), exports);
|
|
30
|
+
__exportStar(require("./IntegrationsResponse"), exports);
|
|
31
|
+
__exportStar(require("./UpdateAdminIntegrationListingRequest"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Integrations API
|
|
3
3
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.
|
|
5
|
+
* The version of the OpenAPI document: 0.10.0
|
|
6
6
|
* Contact: hello@teemill.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Integrations API
|
|
6
6
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.10.0
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teemill/integrations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "OpenAPI client for @teemill/integrations",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
"prepare": "npm run build"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"typescript": "^4.0"
|
|
19
|
+
"typescript": "^4.0 || ^5.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Integrations API
|
|
5
5
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,15 +16,20 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
ApiError,
|
|
19
|
+
CreateAdminIntegrationListingRequest,
|
|
19
20
|
IntegrationCategoriesResponse,
|
|
20
21
|
IntegrationListing,
|
|
21
22
|
IntegrationListingsResponse,
|
|
22
23
|
IntegrationProduct,
|
|
23
24
|
IntegrationProductsResponse,
|
|
25
|
+
IntegrationsResponse,
|
|
26
|
+
UpdateAdminIntegrationListingRequest,
|
|
24
27
|
} from '../models/index';
|
|
25
28
|
import {
|
|
26
29
|
ApiErrorFromJSON,
|
|
27
30
|
ApiErrorToJSON,
|
|
31
|
+
CreateAdminIntegrationListingRequestFromJSON,
|
|
32
|
+
CreateAdminIntegrationListingRequestToJSON,
|
|
28
33
|
IntegrationCategoriesResponseFromJSON,
|
|
29
34
|
IntegrationCategoriesResponseToJSON,
|
|
30
35
|
IntegrationListingFromJSON,
|
|
@@ -35,8 +40,24 @@ import {
|
|
|
35
40
|
IntegrationProductToJSON,
|
|
36
41
|
IntegrationProductsResponseFromJSON,
|
|
37
42
|
IntegrationProductsResponseToJSON,
|
|
43
|
+
IntegrationsResponseFromJSON,
|
|
44
|
+
IntegrationsResponseToJSON,
|
|
45
|
+
UpdateAdminIntegrationListingRequestFromJSON,
|
|
46
|
+
UpdateAdminIntegrationListingRequestToJSON,
|
|
38
47
|
} from '../models/index';
|
|
39
48
|
|
|
49
|
+
export interface CreateAdminIntegrationListingOperationRequest {
|
|
50
|
+
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface DeleteAdminIntegrationListingRequest {
|
|
54
|
+
listing: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface GetAdminIntegrationListingRequest {
|
|
58
|
+
listing: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
40
61
|
export interface GetIntegrationCategoryRequest {
|
|
41
62
|
category: string;
|
|
42
63
|
}
|
|
@@ -54,11 +75,167 @@ export interface GetIntegrationProductsRequest {
|
|
|
54
75
|
integration: number;
|
|
55
76
|
}
|
|
56
77
|
|
|
78
|
+
export interface UpdateAdminIntegrationListingOperationRequest {
|
|
79
|
+
listing: string;
|
|
80
|
+
updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
|
|
81
|
+
}
|
|
82
|
+
|
|
57
83
|
/**
|
|
58
84
|
*
|
|
59
85
|
*/
|
|
60
86
|
export class IntegrationsApi extends runtime.BaseAPI {
|
|
61
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Create a new integration listing
|
|
90
|
+
* Create integration listing
|
|
91
|
+
*/
|
|
92
|
+
async createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
|
|
93
|
+
if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
|
|
94
|
+
throw new runtime.RequiredError('createAdminIntegrationListingRequest','Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const queryParameters: any = {};
|
|
98
|
+
|
|
99
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
100
|
+
|
|
101
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
104
|
+
// oauth required
|
|
105
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
109
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const response = await this.request({
|
|
113
|
+
path: `/v1/integrations/admin/listings`,
|
|
114
|
+
method: 'POST',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
|
|
118
|
+
}, initOverrides);
|
|
119
|
+
|
|
120
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Create a new integration listing
|
|
125
|
+
* Create integration listing
|
|
126
|
+
*/
|
|
127
|
+
async createAdminIntegrationListing(
|
|
128
|
+
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest,
|
|
129
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
130
|
+
): Promise<IntegrationListing> {
|
|
131
|
+
const response = await this.createAdminIntegrationListingRaw(
|
|
132
|
+
{
|
|
133
|
+
createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
|
|
134
|
+
},
|
|
135
|
+
initOverrides
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
return await response.value();
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Delete an integration listing
|
|
143
|
+
* Delete integration listing
|
|
144
|
+
*/
|
|
145
|
+
async deleteAdminIntegrationListingRaw(requestParameters: DeleteAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
146
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
147
|
+
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling deleteAdminIntegrationListing.');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const queryParameters: any = {};
|
|
151
|
+
|
|
152
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
153
|
+
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
// oauth required
|
|
156
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
160
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
165
|
+
method: 'DELETE',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
return new runtime.VoidApiResponse(response);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Delete an integration listing
|
|
175
|
+
* Delete integration listing
|
|
176
|
+
*/
|
|
177
|
+
async deleteAdminIntegrationListing(
|
|
178
|
+
listing: string,
|
|
179
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
180
|
+
): Promise<void> {
|
|
181
|
+
await this.deleteAdminIntegrationListingRaw(
|
|
182
|
+
{
|
|
183
|
+
listing: listing,
|
|
184
|
+
},
|
|
185
|
+
initOverrides
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves a specific integration listing by its slug.
|
|
191
|
+
* Retrieve integration listing
|
|
192
|
+
*/
|
|
193
|
+
async getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
|
|
194
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
195
|
+
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const queryParameters: any = {};
|
|
199
|
+
|
|
200
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
201
|
+
|
|
202
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
203
|
+
// oauth required
|
|
204
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
208
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const response = await this.request({
|
|
212
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
213
|
+
method: 'GET',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
}, initOverrides);
|
|
217
|
+
|
|
218
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Retrieves a specific integration listing by its slug.
|
|
223
|
+
* Retrieve integration listing
|
|
224
|
+
*/
|
|
225
|
+
async getAdminIntegrationListing(
|
|
226
|
+
listing: string,
|
|
227
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
228
|
+
): Promise<IntegrationListing> {
|
|
229
|
+
const response = await this.getAdminIntegrationListingRaw(
|
|
230
|
+
{
|
|
231
|
+
listing: listing,
|
|
232
|
+
},
|
|
233
|
+
initOverrides
|
|
234
|
+
);
|
|
235
|
+
|
|
236
|
+
return await response.value();
|
|
237
|
+
}
|
|
238
|
+
|
|
62
239
|
/**
|
|
63
240
|
* List all integration categories
|
|
64
241
|
* List integration categories
|
|
@@ -351,4 +528,149 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
351
528
|
return await response.value();
|
|
352
529
|
}
|
|
353
530
|
|
|
531
|
+
/**
|
|
532
|
+
* List all integrations
|
|
533
|
+
* List integrations
|
|
534
|
+
*/
|
|
535
|
+
async getIntegrationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
|
|
536
|
+
const queryParameters: any = {};
|
|
537
|
+
|
|
538
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
539
|
+
|
|
540
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
541
|
+
// oauth required
|
|
542
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
546
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
const response = await this.request({
|
|
550
|
+
path: `/v1/integrations`,
|
|
551
|
+
method: 'GET',
|
|
552
|
+
headers: headerParameters,
|
|
553
|
+
query: queryParameters,
|
|
554
|
+
}, initOverrides);
|
|
555
|
+
|
|
556
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* List all integrations
|
|
561
|
+
* List integrations
|
|
562
|
+
*/
|
|
563
|
+
async getIntegrations(
|
|
564
|
+
|
|
565
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
566
|
+
): Promise<IntegrationsResponse> {
|
|
567
|
+
const response = await this.getIntegrationsRaw(
|
|
568
|
+
|
|
569
|
+
initOverrides
|
|
570
|
+
);
|
|
571
|
+
|
|
572
|
+
return await response.value();
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* List all integration listings
|
|
577
|
+
* List integration listings
|
|
578
|
+
*/
|
|
579
|
+
async listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>> {
|
|
580
|
+
const queryParameters: any = {};
|
|
581
|
+
|
|
582
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
583
|
+
|
|
584
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
585
|
+
// oauth required
|
|
586
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
590
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const response = await this.request({
|
|
594
|
+
path: `/v1/integrations/admin/listings`,
|
|
595
|
+
method: 'GET',
|
|
596
|
+
headers: headerParameters,
|
|
597
|
+
query: queryParameters,
|
|
598
|
+
}, initOverrides);
|
|
599
|
+
|
|
600
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* List all integration listings
|
|
605
|
+
* List integration listings
|
|
606
|
+
*/
|
|
607
|
+
async listAdminIntegrationListings(
|
|
608
|
+
|
|
609
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
610
|
+
): Promise<IntegrationListingsResponse> {
|
|
611
|
+
const response = await this.listAdminIntegrationListingsRaw(
|
|
612
|
+
|
|
613
|
+
initOverrides
|
|
614
|
+
);
|
|
615
|
+
|
|
616
|
+
return await response.value();
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Update an integration listing
|
|
621
|
+
* Update integration listing
|
|
622
|
+
*/
|
|
623
|
+
async updateAdminIntegrationListingRaw(requestParameters: UpdateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>> {
|
|
624
|
+
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
625
|
+
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling updateAdminIntegrationListing.');
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
if (requestParameters.updateAdminIntegrationListingRequest === null || requestParameters.updateAdminIntegrationListingRequest === undefined) {
|
|
629
|
+
throw new runtime.RequiredError('updateAdminIntegrationListingRequest','Required parameter requestParameters.updateAdminIntegrationListingRequest was null or undefined when calling updateAdminIntegrationListing.');
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
const queryParameters: any = {};
|
|
633
|
+
|
|
634
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
635
|
+
|
|
636
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
637
|
+
|
|
638
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
639
|
+
// oauth required
|
|
640
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
644
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
const response = await this.request({
|
|
648
|
+
path: `/v1/integrations/admin/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
|
|
649
|
+
method: 'PATCH',
|
|
650
|
+
headers: headerParameters,
|
|
651
|
+
query: queryParameters,
|
|
652
|
+
body: UpdateAdminIntegrationListingRequestToJSON(requestParameters.updateAdminIntegrationListingRequest),
|
|
653
|
+
}, initOverrides);
|
|
654
|
+
|
|
655
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Update an integration listing
|
|
660
|
+
* Update integration listing
|
|
661
|
+
*/
|
|
662
|
+
async updateAdminIntegrationListing(
|
|
663
|
+
listing: string, updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest,
|
|
664
|
+
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
665
|
+
): Promise<IntegrationListing> {
|
|
666
|
+
const response = await this.updateAdminIntegrationListingRaw(
|
|
667
|
+
{
|
|
668
|
+
listing: listing,updateAdminIntegrationListingRequest: updateAdminIntegrationListingRequest,
|
|
669
|
+
},
|
|
670
|
+
initOverrides
|
|
671
|
+
);
|
|
672
|
+
|
|
673
|
+
return await response.value();
|
|
674
|
+
}
|
|
675
|
+
|
|
354
676
|
}
|
package/src/models/ApiError.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Integrations API
|
|
5
5
|
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.10.0
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,8 +36,8 @@ export interface ApiError {
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the ApiError interface.
|
|
38
38
|
*/
|
|
39
|
-
export function instanceOfApiError(value: object):
|
|
40
|
-
if (!('message' in value)) return false;
|
|
39
|
+
export function instanceOfApiError(value: object): value is ApiError {
|
|
40
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
43
43
|
|