@teemill/integrations 0.10.0 → 0.12.2
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 +3 -0
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +8 -8
- package/dist/apis/IntegrationsApi.js +4 -4
- package/dist/esm/apis/IntegrationsApi.d.ts +8 -8
- package/dist/esm/apis/IntegrationsApi.js +5 -5
- package/dist/esm/models/AdminIntegrationListing.d.ts +101 -0
- package/dist/esm/models/AdminIntegrationListing.js +85 -0
- package/dist/esm/models/AdminIntegrationListingsResponse.d.ts +32 -0
- package/dist/esm/models/AdminIntegrationListingsResponse.js +41 -0
- package/dist/esm/models/ApiError.d.ts +1 -1
- package/dist/esm/models/ApiError.js +1 -1
- package/dist/esm/models/CreateAdminIntegrationListingRequest.d.ts +19 -1
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +13 -1
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.d.ts +7 -1
- package/dist/esm/models/CreateAdminIntegrationListingRequestGradient.js +3 -1
- package/dist/esm/models/Icon.d.ts +43 -0
- package/dist/esm/models/Icon.js +48 -0
- package/dist/esm/models/Integration.d.ts +1 -1
- package/dist/esm/models/Integration.js +1 -1
- package/dist/esm/models/IntegrationCategoriesResponse.d.ts +1 -1
- package/dist/esm/models/IntegrationCategoriesResponse.js +1 -1
- package/dist/esm/models/IntegrationCategory.d.ts +1 -1
- package/dist/esm/models/IntegrationCategory.js +1 -1
- package/dist/esm/models/IntegrationListing.d.ts +4 -3
- package/dist/esm/models/IntegrationListing.js +4 -3
- package/dist/esm/models/IntegrationListingGradient.d.ts +7 -1
- package/dist/esm/models/IntegrationListingGradient.js +3 -1
- package/dist/esm/models/IntegrationListingsResponse.d.ts +1 -1
- package/dist/esm/models/IntegrationListingsResponse.js +1 -1
- package/dist/esm/models/IntegrationProduct.d.ts +1 -1
- package/dist/esm/models/IntegrationProduct.js +1 -1
- package/dist/esm/models/IntegrationProductsResponse.d.ts +1 -1
- package/dist/esm/models/IntegrationProductsResponse.js +1 -1
- package/dist/esm/models/IntegrationsResponse.d.ts +1 -1
- package/dist/esm/models/IntegrationsResponse.js +1 -1
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +19 -1
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +7 -1
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/AdminIntegrationListing.d.ts +101 -0
- package/dist/models/AdminIntegrationListing.js +92 -0
- package/dist/models/AdminIntegrationListingsResponse.d.ts +32 -0
- package/dist/models/AdminIntegrationListingsResponse.js +48 -0
- package/dist/models/ApiError.d.ts +1 -1
- package/dist/models/ApiError.js +1 -1
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +19 -1
- package/dist/models/CreateAdminIntegrationListingRequest.js +13 -1
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +7 -1
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +3 -1
- package/dist/models/Icon.d.ts +43 -0
- package/dist/models/Icon.js +55 -0
- package/dist/models/Integration.d.ts +1 -1
- package/dist/models/Integration.js +1 -1
- package/dist/models/IntegrationCategoriesResponse.d.ts +1 -1
- package/dist/models/IntegrationCategoriesResponse.js +1 -1
- package/dist/models/IntegrationCategory.d.ts +1 -1
- package/dist/models/IntegrationCategory.js +1 -1
- package/dist/models/IntegrationListing.d.ts +4 -3
- package/dist/models/IntegrationListing.js +4 -3
- package/dist/models/IntegrationListingGradient.d.ts +7 -1
- package/dist/models/IntegrationListingGradient.js +3 -1
- package/dist/models/IntegrationListingsResponse.d.ts +1 -1
- package/dist/models/IntegrationListingsResponse.js +1 -1
- package/dist/models/IntegrationProduct.d.ts +1 -1
- package/dist/models/IntegrationProduct.js +1 -1
- package/dist/models/IntegrationProductsResponse.d.ts +1 -1
- package/dist/models/IntegrationProductsResponse.js +1 -1
- package/dist/models/IntegrationsResponse.d.ts +1 -1
- package/dist/models/IntegrationsResponse.js +1 -1
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +19 -1
- package/dist/models/UpdateAdminIntegrationListingRequest.js +7 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/IntegrationsApi.ts +16 -10
- package/src/models/AdminIntegrationListing.ts +183 -0
- package/src/models/AdminIntegrationListingsResponse.ts +68 -0
- package/src/models/ApiError.ts +1 -1
- package/src/models/CreateAdminIntegrationListingRequest.ts +28 -1
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +9 -1
- package/src/models/Icon.ts +79 -0
- package/src/models/Integration.ts +1 -1
- package/src/models/IntegrationCategoriesResponse.ts +1 -1
- package/src/models/IntegrationCategory.ts +1 -1
- package/src/models/IntegrationListing.ts +11 -5
- package/src/models/IntegrationListingGradient.ts +9 -1
- package/src/models/IntegrationListingsResponse.ts +1 -1
- package/src/models/IntegrationProduct.ts +1 -1
- package/src/models/IntegrationProductsResponse.ts +1 -1
- package/src/models/IntegrationsResponse.ts +1 -1
- package/src/models/UpdateAdminIntegrationListingRequest.ts +25 -1
- package/src/models/index.ts +3 -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.12.2
|
|
9
9
|
* Contact: hello@teemill.com
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,9 +34,12 @@ function UpdateAdminIntegrationListingRequestFromJSONTyped(json, ignoreDiscrimin
|
|
|
34
34
|
'name': json['name'] == null ? undefined : json['name'],
|
|
35
35
|
'description': json['description'] == null ? undefined : json['description'],
|
|
36
36
|
'content': json['content'] == null ? undefined : json['content'],
|
|
37
|
+
'integration': json['integration'] == null ? undefined : json['integration'],
|
|
38
|
+
'author': json['author'] == null ? undefined : json['author'],
|
|
37
39
|
'slug': json['slug'] == null ? undefined : json['slug'],
|
|
38
40
|
'gradient': json['gradient'] == null ? undefined : (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientFromJSON)(json['gradient']),
|
|
39
41
|
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
42
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
40
43
|
};
|
|
41
44
|
}
|
|
42
45
|
exports.UpdateAdminIntegrationListingRequestFromJSONTyped = UpdateAdminIntegrationListingRequestFromJSONTyped;
|
|
@@ -48,9 +51,12 @@ function UpdateAdminIntegrationListingRequestToJSON(value) {
|
|
|
48
51
|
'name': value['name'],
|
|
49
52
|
'description': value['description'],
|
|
50
53
|
'content': value['content'],
|
|
54
|
+
'integration': value['integration'],
|
|
55
|
+
'author': value['author'],
|
|
51
56
|
'slug': value['slug'],
|
|
52
57
|
'gradient': (0, CreateAdminIntegrationListingRequestGradient_1.CreateAdminIntegrationListingRequestGradientToJSON)(value['gradient']),
|
|
53
58
|
'icon': value['icon'],
|
|
59
|
+
'categories': value['categories'],
|
|
54
60
|
};
|
|
55
61
|
}
|
|
56
62
|
exports.UpdateAdminIntegrationListingRequestToJSON = UpdateAdminIntegrationListingRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
export * from './AdminIntegrationListing';
|
|
2
|
+
export * from './AdminIntegrationListingsResponse';
|
|
1
3
|
export * from './ApiError';
|
|
2
4
|
export * from './CreateAdminIntegrationListingRequest';
|
|
3
5
|
export * from './CreateAdminIntegrationListingRequestGradient';
|
|
6
|
+
export * from './Icon';
|
|
4
7
|
export * from './Integration';
|
|
5
8
|
export * from './IntegrationCategoriesResponse';
|
|
6
9
|
export * from './IntegrationCategory';
|
package/dist/models/index.js
CHANGED
|
@@ -16,9 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AdminIntegrationListing"), exports);
|
|
20
|
+
__exportStar(require("./AdminIntegrationListingsResponse"), exports);
|
|
19
21
|
__exportStar(require("./ApiError"), exports);
|
|
20
22
|
__exportStar(require("./CreateAdminIntegrationListingRequest"), exports);
|
|
21
23
|
__exportStar(require("./CreateAdminIntegrationListingRequestGradient"), exports);
|
|
24
|
+
__exportStar(require("./Icon"), exports);
|
|
22
25
|
__exportStar(require("./Integration"), exports);
|
|
23
26
|
__exportStar(require("./IntegrationCategoriesResponse"), exports);
|
|
24
27
|
__exportStar(require("./IntegrationCategory"), 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.12.2
|
|
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.12.2
|
|
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
|
@@ -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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AdminIntegrationListing,
|
|
19
|
+
AdminIntegrationListingsResponse,
|
|
18
20
|
ApiError,
|
|
19
21
|
CreateAdminIntegrationListingRequest,
|
|
20
22
|
IntegrationCategoriesResponse,
|
|
@@ -26,6 +28,10 @@ import type {
|
|
|
26
28
|
UpdateAdminIntegrationListingRequest,
|
|
27
29
|
} from '../models/index';
|
|
28
30
|
import {
|
|
31
|
+
AdminIntegrationListingFromJSON,
|
|
32
|
+
AdminIntegrationListingToJSON,
|
|
33
|
+
AdminIntegrationListingsResponseFromJSON,
|
|
34
|
+
AdminIntegrationListingsResponseToJSON,
|
|
29
35
|
ApiErrorFromJSON,
|
|
30
36
|
ApiErrorToJSON,
|
|
31
37
|
CreateAdminIntegrationListingRequestFromJSON,
|
|
@@ -89,7 +95,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
89
95
|
* Create a new integration listing
|
|
90
96
|
* Create integration listing
|
|
91
97
|
*/
|
|
92
|
-
async createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
98
|
+
async createAdminIntegrationListingRaw(requestParameters: CreateAdminIntegrationListingOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListing>> {
|
|
93
99
|
if (requestParameters.createAdminIntegrationListingRequest === null || requestParameters.createAdminIntegrationListingRequest === undefined) {
|
|
94
100
|
throw new runtime.RequiredError('createAdminIntegrationListingRequest','Required parameter requestParameters.createAdminIntegrationListingRequest was null or undefined when calling createAdminIntegrationListing.');
|
|
95
101
|
}
|
|
@@ -117,7 +123,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
117
123
|
body: CreateAdminIntegrationListingRequestToJSON(requestParameters.createAdminIntegrationListingRequest),
|
|
118
124
|
}, initOverrides);
|
|
119
125
|
|
|
120
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingFromJSON(jsonValue));
|
|
121
127
|
}
|
|
122
128
|
|
|
123
129
|
/**
|
|
@@ -127,7 +133,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
127
133
|
async createAdminIntegrationListing(
|
|
128
134
|
createAdminIntegrationListingRequest: CreateAdminIntegrationListingRequest,
|
|
129
135
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
130
|
-
): Promise<
|
|
136
|
+
): Promise<AdminIntegrationListing> {
|
|
131
137
|
const response = await this.createAdminIntegrationListingRaw(
|
|
132
138
|
{
|
|
133
139
|
createAdminIntegrationListingRequest: createAdminIntegrationListingRequest,
|
|
@@ -190,7 +196,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
190
196
|
* Retrieves a specific integration listing by its slug.
|
|
191
197
|
* Retrieve integration listing
|
|
192
198
|
*/
|
|
193
|
-
async getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
199
|
+
async getAdminIntegrationListingRaw(requestParameters: GetAdminIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListing>> {
|
|
194
200
|
if (requestParameters.listing === null || requestParameters.listing === undefined) {
|
|
195
201
|
throw new runtime.RequiredError('listing','Required parameter requestParameters.listing was null or undefined when calling getAdminIntegrationListing.');
|
|
196
202
|
}
|
|
@@ -215,7 +221,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
215
221
|
query: queryParameters,
|
|
216
222
|
}, initOverrides);
|
|
217
223
|
|
|
218
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingFromJSON(jsonValue));
|
|
219
225
|
}
|
|
220
226
|
|
|
221
227
|
/**
|
|
@@ -225,7 +231,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
225
231
|
async getAdminIntegrationListing(
|
|
226
232
|
listing: string,
|
|
227
233
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
228
|
-
): Promise<
|
|
234
|
+
): Promise<AdminIntegrationListing> {
|
|
229
235
|
const response = await this.getAdminIntegrationListingRaw(
|
|
230
236
|
{
|
|
231
237
|
listing: listing,
|
|
@@ -576,7 +582,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
576
582
|
* List all integration listings
|
|
577
583
|
* List integration listings
|
|
578
584
|
*/
|
|
579
|
-
async listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
585
|
+
async listAdminIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminIntegrationListingsResponse>> {
|
|
580
586
|
const queryParameters: any = {};
|
|
581
587
|
|
|
582
588
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -597,7 +603,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
597
603
|
query: queryParameters,
|
|
598
604
|
}, initOverrides);
|
|
599
605
|
|
|
600
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
606
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AdminIntegrationListingsResponseFromJSON(jsonValue));
|
|
601
607
|
}
|
|
602
608
|
|
|
603
609
|
/**
|
|
@@ -607,7 +613,7 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
607
613
|
async listAdminIntegrationListings(
|
|
608
614
|
|
|
609
615
|
initOverrides?: RequestInit | runtime.InitOverrideFunction
|
|
610
|
-
): Promise<
|
|
616
|
+
): Promise<AdminIntegrationListingsResponse> {
|
|
611
617
|
const response = await this.listAdminIntegrationListingsRaw(
|
|
612
618
|
|
|
613
619
|
initOverrides
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Integrations API
|
|
5
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.2
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Integration } from './Integration';
|
|
17
|
+
import {
|
|
18
|
+
IntegrationFromJSON,
|
|
19
|
+
IntegrationFromJSONTyped,
|
|
20
|
+
IntegrationToJSON,
|
|
21
|
+
} from './Integration';
|
|
22
|
+
import type { IntegrationCategory } from './IntegrationCategory';
|
|
23
|
+
import {
|
|
24
|
+
IntegrationCategoryFromJSON,
|
|
25
|
+
IntegrationCategoryFromJSONTyped,
|
|
26
|
+
IntegrationCategoryToJSON,
|
|
27
|
+
} from './IntegrationCategory';
|
|
28
|
+
import type { IntegrationListingGradient } from './IntegrationListingGradient';
|
|
29
|
+
import {
|
|
30
|
+
IntegrationListingGradientFromJSON,
|
|
31
|
+
IntegrationListingGradientFromJSONTyped,
|
|
32
|
+
IntegrationListingGradientToJSON,
|
|
33
|
+
} from './IntegrationListingGradient';
|
|
34
|
+
import type { Icon } from './Icon';
|
|
35
|
+
import {
|
|
36
|
+
IconFromJSON,
|
|
37
|
+
IconFromJSONTyped,
|
|
38
|
+
IconToJSON,
|
|
39
|
+
} from './Icon';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface AdminIntegrationListing
|
|
45
|
+
*/
|
|
46
|
+
export interface AdminIntegrationListing {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof AdminIntegrationListing
|
|
51
|
+
*/
|
|
52
|
+
readonly id?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The slug of the integration listing that is used in the URL
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof AdminIntegrationListing
|
|
57
|
+
*/
|
|
58
|
+
slug: string;
|
|
59
|
+
/**
|
|
60
|
+
* The code of the integration
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof AdminIntegrationListing
|
|
63
|
+
*/
|
|
64
|
+
code: string;
|
|
65
|
+
/**
|
|
66
|
+
* The name of the integration listing
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof AdminIntegrationListing
|
|
69
|
+
*/
|
|
70
|
+
name: string;
|
|
71
|
+
/**
|
|
72
|
+
* The description of the integration listing
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof AdminIntegrationListing
|
|
75
|
+
*/
|
|
76
|
+
description: string;
|
|
77
|
+
/**
|
|
78
|
+
* The html content of the integration listing
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof AdminIntegrationListing
|
|
81
|
+
*/
|
|
82
|
+
content: string;
|
|
83
|
+
/**
|
|
84
|
+
* The author of the integration listing
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof AdminIntegrationListing
|
|
87
|
+
*/
|
|
88
|
+
author: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Icon}
|
|
92
|
+
* @memberof AdminIntegrationListing
|
|
93
|
+
*/
|
|
94
|
+
icon: Icon;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {IntegrationListingGradient}
|
|
98
|
+
* @memberof AdminIntegrationListing
|
|
99
|
+
*/
|
|
100
|
+
gradient: IntegrationListingGradient;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Integration}
|
|
104
|
+
* @memberof AdminIntegrationListing
|
|
105
|
+
*/
|
|
106
|
+
integration: Integration;
|
|
107
|
+
/**
|
|
108
|
+
* The dependencies that this integration listing requires
|
|
109
|
+
* @type {Array<string>}
|
|
110
|
+
* @memberof AdminIntegrationListing
|
|
111
|
+
*/
|
|
112
|
+
dependencies: Array<string>;
|
|
113
|
+
/**
|
|
114
|
+
* The categories that this listing belongs to
|
|
115
|
+
* @type {Array<IntegrationCategory>}
|
|
116
|
+
* @memberof AdminIntegrationListing
|
|
117
|
+
*/
|
|
118
|
+
categories: Array<IntegrationCategory>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the AdminIntegrationListing interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfAdminIntegrationListing(value: object): value is AdminIntegrationListing {
|
|
125
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
126
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
127
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
128
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
129
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
130
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
131
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
132
|
+
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
133
|
+
if (!('integration' in value) || value['integration'] === undefined) return false;
|
|
134
|
+
if (!('dependencies' in value) || value['dependencies'] === undefined) return false;
|
|
135
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function AdminIntegrationListingFromJSON(json: any): AdminIntegrationListing {
|
|
140
|
+
return AdminIntegrationListingFromJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function AdminIntegrationListingFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminIntegrationListing {
|
|
144
|
+
if (json == null) {
|
|
145
|
+
return json;
|
|
146
|
+
}
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
150
|
+
'slug': json['slug'],
|
|
151
|
+
'code': json['code'],
|
|
152
|
+
'name': json['name'],
|
|
153
|
+
'description': json['description'],
|
|
154
|
+
'content': json['content'],
|
|
155
|
+
'author': json['author'],
|
|
156
|
+
'icon': IconFromJSON(json['icon']),
|
|
157
|
+
'gradient': IntegrationListingGradientFromJSON(json['gradient']),
|
|
158
|
+
'integration': IntegrationFromJSON(json['integration']),
|
|
159
|
+
'dependencies': json['dependencies'],
|
|
160
|
+
'categories': ((json['categories'] as Array<any>).map(IntegrationCategoryFromJSON)),
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function AdminIntegrationListingToJSON(value?: Omit<AdminIntegrationListing, 'id'> | null): any {
|
|
165
|
+
if (value == null) {
|
|
166
|
+
return value;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'slug': value['slug'],
|
|
171
|
+
'code': value['code'],
|
|
172
|
+
'name': value['name'],
|
|
173
|
+
'description': value['description'],
|
|
174
|
+
'content': value['content'],
|
|
175
|
+
'author': value['author'],
|
|
176
|
+
'icon': IconToJSON(value['icon']),
|
|
177
|
+
'gradient': IntegrationListingGradientToJSON(value['gradient']),
|
|
178
|
+
'integration': IntegrationToJSON(value['integration']),
|
|
179
|
+
'dependencies': value['dependencies'],
|
|
180
|
+
'categories': ((value['categories'] as Array<any>).map(IntegrationCategoryToJSON)),
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Integrations API
|
|
5
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.2
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AdminIntegrationListing } from './AdminIntegrationListing';
|
|
17
|
+
import {
|
|
18
|
+
AdminIntegrationListingFromJSON,
|
|
19
|
+
AdminIntegrationListingFromJSONTyped,
|
|
20
|
+
AdminIntegrationListingToJSON,
|
|
21
|
+
} from './AdminIntegrationListing';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface AdminIntegrationListingsResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface AdminIntegrationListingsResponse {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<AdminIntegrationListing>}
|
|
32
|
+
* @memberof AdminIntegrationListingsResponse
|
|
33
|
+
*/
|
|
34
|
+
listings: Array<AdminIntegrationListing>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the AdminIntegrationListingsResponse interface.
|
|
39
|
+
*/
|
|
40
|
+
export function instanceOfAdminIntegrationListingsResponse(value: object): value is AdminIntegrationListingsResponse {
|
|
41
|
+
if (!('listings' in value) || value['listings'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AdminIntegrationListingsResponseFromJSON(json: any): AdminIntegrationListingsResponse {
|
|
46
|
+
return AdminIntegrationListingsResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AdminIntegrationListingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminIntegrationListingsResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'listings': ((json['listings'] as Array<any>).map(AdminIntegrationListingFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AdminIntegrationListingsResponseToJSON(value?: AdminIntegrationListingsResponse | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'listings': ((value['listings'] as Array<any>).map(AdminIntegrationListingToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -44,6 +44,18 @@ export interface CreateAdminIntegrationListingRequest {
|
|
|
44
44
|
* @memberof CreateAdminIntegrationListingRequest
|
|
45
45
|
*/
|
|
46
46
|
content: string;
|
|
47
|
+
/**
|
|
48
|
+
* The author of the integration listing
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
51
|
+
*/
|
|
52
|
+
author: string;
|
|
53
|
+
/**
|
|
54
|
+
* The code of the integration
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
57
|
+
*/
|
|
58
|
+
integration: string;
|
|
47
59
|
/**
|
|
48
60
|
* The slug of the integration listing that is used in the URL
|
|
49
61
|
* @type {string}
|
|
@@ -62,6 +74,12 @@ export interface CreateAdminIntegrationListingRequest {
|
|
|
62
74
|
* @memberof CreateAdminIntegrationListingRequest
|
|
63
75
|
*/
|
|
64
76
|
icon: string;
|
|
77
|
+
/**
|
|
78
|
+
* The categories that this listing belongs to
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
81
|
+
*/
|
|
82
|
+
categories: Array<string>;
|
|
65
83
|
}
|
|
66
84
|
|
|
67
85
|
/**
|
|
@@ -71,9 +89,12 @@ export function instanceOfCreateAdminIntegrationListingRequest(value: object): v
|
|
|
71
89
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
90
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
73
91
|
if (!('content' in value) || value['content'] === undefined) return false;
|
|
92
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
93
|
+
if (!('integration' in value) || value['integration'] === undefined) return false;
|
|
74
94
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
75
95
|
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
76
96
|
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
97
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
77
98
|
return true;
|
|
78
99
|
}
|
|
79
100
|
|
|
@@ -90,9 +111,12 @@ export function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ign
|
|
|
90
111
|
'name': json['name'],
|
|
91
112
|
'description': json['description'],
|
|
92
113
|
'content': json['content'],
|
|
114
|
+
'author': json['author'],
|
|
115
|
+
'integration': json['integration'],
|
|
93
116
|
'slug': json['slug'],
|
|
94
117
|
'gradient': CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
|
|
95
118
|
'icon': json['icon'],
|
|
119
|
+
'categories': json['categories'],
|
|
96
120
|
};
|
|
97
121
|
}
|
|
98
122
|
|
|
@@ -105,9 +129,12 @@ export function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIn
|
|
|
105
129
|
'name': value['name'],
|
|
106
130
|
'description': value['description'],
|
|
107
131
|
'content': value['content'],
|
|
132
|
+
'author': value['author'],
|
|
133
|
+
'integration': value['integration'],
|
|
108
134
|
'slug': value['slug'],
|
|
109
135
|
'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
|
|
110
136
|
'icon': value['icon'],
|
|
137
|
+
'categories': value['categories'],
|
|
111
138
|
};
|
|
112
139
|
}
|
|
113
140
|
|
|
@@ -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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -31,6 +31,12 @@ export interface CreateAdminIntegrationListingRequestGradient {
|
|
|
31
31
|
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
32
32
|
*/
|
|
33
33
|
to?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
38
|
+
*/
|
|
39
|
+
angle?: number;
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
/**
|
|
@@ -52,6 +58,7 @@ export function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json:
|
|
|
52
58
|
|
|
53
59
|
'from': json['from'] == null ? undefined : json['from'],
|
|
54
60
|
'to': json['to'] == null ? undefined : json['to'],
|
|
61
|
+
'angle': json['angle'] == null ? undefined : json['angle'],
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
|
|
@@ -63,6 +70,7 @@ export function CreateAdminIntegrationListingRequestGradientToJSON(value?: Creat
|
|
|
63
70
|
|
|
64
71
|
'from': value['from'],
|
|
65
72
|
'to': value['to'],
|
|
73
|
+
'angle': value['angle'],
|
|
66
74
|
};
|
|
67
75
|
}
|
|
68
76
|
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Integrations API
|
|
5
|
+
* Manage Teemill Integrations For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.12.2
|
|
8
|
+
* Contact: hello@teemill.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface Icon
|
|
20
|
+
*/
|
|
21
|
+
export interface Icon {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Icon
|
|
26
|
+
*/
|
|
27
|
+
prefix: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Icon
|
|
32
|
+
*/
|
|
33
|
+
iconName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {object}
|
|
37
|
+
* @memberof Icon
|
|
38
|
+
*/
|
|
39
|
+
data: object;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the Icon interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIcon(value: object): value is Icon {
|
|
46
|
+
if (!('prefix' in value) || value['prefix'] === undefined) return false;
|
|
47
|
+
if (!('iconName' in value) || value['iconName'] === undefined) return false;
|
|
48
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IconFromJSON(json: any): Icon {
|
|
53
|
+
return IconFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IconFromJSONTyped(json: any, ignoreDiscriminator: boolean): Icon {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'prefix': json['prefix'],
|
|
63
|
+
'iconName': json['iconName'],
|
|
64
|
+
'data': json['data'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IconToJSON(value?: Icon | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'prefix': value['prefix'],
|
|
75
|
+
'iconName': value['iconName'],
|
|
76
|
+
'data': value['data'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.12.2
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|