@teemill/integrations 0.9.0 → 0.11.1
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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/dist/apis/IntegrationsApi.d.ts +65 -2
- package/dist/apis/IntegrationsApi.js +197 -1
- package/dist/esm/apis/IntegrationsApi.d.ts +65 -2
- package/dist/esm/apis/IntegrationsApi.js +198 -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 +80 -0
- package/dist/esm/models/CreateAdminIntegrationListingRequest.js +73 -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 +2 -2
- package/dist/esm/models/Integration.js +1 -1
- 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 +2 -2
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/esm/models/UpdateAdminIntegrationListingRequest.js +55 -0
- 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/ApiError.d.ts +2 -2
- package/dist/models/ApiError.js +2 -2
- package/dist/models/CreateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/models/CreateAdminIntegrationListingRequest.js +80 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.d.ts +37 -0
- package/dist/models/CreateAdminIntegrationListingRequestGradient.js +47 -0
- package/dist/models/Integration.d.ts +2 -2
- package/dist/models/Integration.js +1 -1
- 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 +2 -2
- package/dist/models/UpdateAdminIntegrationListingRequest.d.ts +80 -0
- package/dist/models/UpdateAdminIntegrationListingRequest.js +62 -0
- 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 +2 -2
- package/src/apis/IntegrationsApi.ts +276 -1
- package/src/models/ApiError.ts +3 -3
- package/src/models/CreateAdminIntegrationListingRequest.ts +140 -0
- package/src/models/CreateAdminIntegrationListingRequestGradient.ts +68 -0
- package/src/models/Integration.ts +2 -2
- 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 +3 -3
- package/src/models/UpdateAdminIntegrationListingRequest.ts +131 -0
- package/src/models/index.ts +3 -0
- package/src/runtime.ts +1 -1
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,16 +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,
|
|
24
25
|
IntegrationsResponse,
|
|
26
|
+
UpdateAdminIntegrationListingRequest,
|
|
25
27
|
} from '../models/index';
|
|
26
28
|
import {
|
|
27
29
|
ApiErrorFromJSON,
|
|
28
30
|
ApiErrorToJSON,
|
|
31
|
+
CreateAdminIntegrationListingRequestFromJSON,
|
|
32
|
+
CreateAdminIntegrationListingRequestToJSON,
|
|
29
33
|
IntegrationCategoriesResponseFromJSON,
|
|
30
34
|
IntegrationCategoriesResponseToJSON,
|
|
31
35
|
IntegrationListingFromJSON,
|
|
@@ -38,8 +42,22 @@ import {
|
|
|
38
42
|
IntegrationProductsResponseToJSON,
|
|
39
43
|
IntegrationsResponseFromJSON,
|
|
40
44
|
IntegrationsResponseToJSON,
|
|
45
|
+
UpdateAdminIntegrationListingRequestFromJSON,
|
|
46
|
+
UpdateAdminIntegrationListingRequestToJSON,
|
|
41
47
|
} from '../models/index';
|
|
42
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
|
+
|
|
43
61
|
export interface GetIntegrationCategoryRequest {
|
|
44
62
|
category: string;
|
|
45
63
|
}
|
|
@@ -57,11 +75,167 @@ export interface GetIntegrationProductsRequest {
|
|
|
57
75
|
integration: number;
|
|
58
76
|
}
|
|
59
77
|
|
|
78
|
+
export interface UpdateAdminIntegrationListingOperationRequest {
|
|
79
|
+
listing: string;
|
|
80
|
+
updateAdminIntegrationListingRequest: UpdateAdminIntegrationListingRequest;
|
|
81
|
+
}
|
|
82
|
+
|
|
60
83
|
/**
|
|
61
84
|
*
|
|
62
85
|
*/
|
|
63
86
|
export class IntegrationsApi extends runtime.BaseAPI {
|
|
64
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
|
+
|
|
65
239
|
/**
|
|
66
240
|
* List all integration categories
|
|
67
241
|
* List integration categories
|
|
@@ -398,4 +572,105 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
398
572
|
return await response.value();
|
|
399
573
|
}
|
|
400
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
|
+
|
|
401
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.11.1
|
|
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
|
|
|
@@ -0,0 +1,140 @@
|
|
|
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.11.1
|
|
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 { CreateAdminIntegrationListingRequestGradient } from './CreateAdminIntegrationListingRequestGradient';
|
|
17
|
+
import {
|
|
18
|
+
CreateAdminIntegrationListingRequestGradientFromJSON,
|
|
19
|
+
CreateAdminIntegrationListingRequestGradientFromJSONTyped,
|
|
20
|
+
CreateAdminIntegrationListingRequestGradientToJSON,
|
|
21
|
+
} from './CreateAdminIntegrationListingRequestGradient';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface CreateAdminIntegrationListingRequest
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateAdminIntegrationListingRequest {
|
|
29
|
+
/**
|
|
30
|
+
* The name of the integration listing
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* The description of the integration listing
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
39
|
+
*/
|
|
40
|
+
description: string;
|
|
41
|
+
/**
|
|
42
|
+
* The html content of the integration listing
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
45
|
+
*/
|
|
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;
|
|
59
|
+
/**
|
|
60
|
+
* The slug of the integration listing that is used in the URL
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
63
|
+
*/
|
|
64
|
+
slug: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {CreateAdminIntegrationListingRequestGradient}
|
|
68
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
69
|
+
*/
|
|
70
|
+
gradient: CreateAdminIntegrationListingRequestGradient;
|
|
71
|
+
/**
|
|
72
|
+
* The icon of the integration listing
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
75
|
+
*/
|
|
76
|
+
icon: string;
|
|
77
|
+
/**
|
|
78
|
+
* The categories that this listing belongs to
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof CreateAdminIntegrationListingRequest
|
|
81
|
+
*/
|
|
82
|
+
categories: Array<string>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the CreateAdminIntegrationListingRequest interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfCreateAdminIntegrationListingRequest(value: object): value is CreateAdminIntegrationListingRequest {
|
|
89
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
90
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
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;
|
|
94
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
95
|
+
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
96
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
97
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CreateAdminIntegrationListingRequestFromJSON(json: any): CreateAdminIntegrationListingRequest {
|
|
102
|
+
return CreateAdminIntegrationListingRequestFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function CreateAdminIntegrationListingRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequest {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'name': json['name'],
|
|
112
|
+
'description': json['description'],
|
|
113
|
+
'content': json['content'],
|
|
114
|
+
'author': json['author'],
|
|
115
|
+
'integration': json['integration'],
|
|
116
|
+
'slug': json['slug'],
|
|
117
|
+
'gradient': CreateAdminIntegrationListingRequestGradientFromJSON(json['gradient']),
|
|
118
|
+
'icon': json['icon'],
|
|
119
|
+
'categories': json['categories'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function CreateAdminIntegrationListingRequestToJSON(value?: CreateAdminIntegrationListingRequest | null): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'name': value['name'],
|
|
130
|
+
'description': value['description'],
|
|
131
|
+
'content': value['content'],
|
|
132
|
+
'author': value['author'],
|
|
133
|
+
'integration': value['integration'],
|
|
134
|
+
'slug': value['slug'],
|
|
135
|
+
'gradient': CreateAdminIntegrationListingRequestGradientToJSON(value['gradient']),
|
|
136
|
+
'icon': value['icon'],
|
|
137
|
+
'categories': value['categories'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -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.11.1
|
|
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
|
+
* The gradient that is used to display the listing
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreateAdminIntegrationListingRequestGradient
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateAdminIntegrationListingRequestGradient {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
26
|
+
*/
|
|
27
|
+
from?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreateAdminIntegrationListingRequestGradient
|
|
32
|
+
*/
|
|
33
|
+
to?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateAdminIntegrationListingRequestGradient interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateAdminIntegrationListingRequestGradient(value: object): value is CreateAdminIntegrationListingRequestGradient {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CreateAdminIntegrationListingRequestGradientFromJSON(json: any): CreateAdminIntegrationListingRequestGradient {
|
|
44
|
+
return CreateAdminIntegrationListingRequestGradientFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CreateAdminIntegrationListingRequestGradientFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAdminIntegrationListingRequestGradient {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'from': json['from'] == null ? undefined : json['from'],
|
|
54
|
+
'to': json['to'] == null ? undefined : json['to'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CreateAdminIntegrationListingRequestGradientToJSON(value?: CreateAdminIntegrationListingRequestGradient | null): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'from': value['from'],
|
|
65
|
+
'to': value['to'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -42,7 +42,7 @@ export interface Integration {
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the Integration interface.
|
|
44
44
|
*/
|
|
45
|
-
export function instanceOfIntegration(value: object):
|
|
45
|
+
export function instanceOfIntegration(value: object): value is Integration {
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,8 @@ export interface IntegrationCategoriesResponse {
|
|
|
37
37
|
/**
|
|
38
38
|
* Check if a given object implements the IntegrationCategoriesResponse interface.
|
|
39
39
|
*/
|
|
40
|
-
export function instanceOfIntegrationCategoriesResponse(value: object):
|
|
41
|
-
if (!('categories' in value)) return false;
|
|
40
|
+
export function instanceOfIntegrationCategoriesResponse(value: object): value is IntegrationCategoriesResponse {
|
|
41
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -54,10 +54,10 @@ export type IntegrationCategoryTypeEnum = typeof IntegrationCategoryTypeEnum[key
|
|
|
54
54
|
/**
|
|
55
55
|
* Check if a given object implements the IntegrationCategory interface.
|
|
56
56
|
*/
|
|
57
|
-
export function instanceOfIntegrationCategory(value: object):
|
|
58
|
-
if (!('name' in value)) return false;
|
|
59
|
-
if (!('slug' in value)) return false;
|
|
60
|
-
if (!('type' in value)) return false;
|
|
57
|
+
export function instanceOfIntegrationCategory(value: object): value is IntegrationCategory {
|
|
58
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
59
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
61
61
|
return true;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -103,17 +103,17 @@ export interface IntegrationListing {
|
|
|
103
103
|
/**
|
|
104
104
|
* Check if a given object implements the IntegrationListing interface.
|
|
105
105
|
*/
|
|
106
|
-
export function instanceOfIntegrationListing(value: object):
|
|
107
|
-
if (!('slug' in value)) return false;
|
|
108
|
-
if (!('code' in value)) return false;
|
|
109
|
-
if (!('name' in value)) return false;
|
|
110
|
-
if (!('description' in value)) return false;
|
|
111
|
-
if (!('content' in value)) return false;
|
|
112
|
-
if (!('author' in value)) return false;
|
|
113
|
-
if (!('icon' in value)) return false;
|
|
114
|
-
if (!('gradient' in value)) return false;
|
|
115
|
-
if (!('dependencies' in value)) return false;
|
|
116
|
-
if (!('categories' in value)) return false;
|
|
106
|
+
export function instanceOfIntegrationListing(value: object): value is IntegrationListing {
|
|
107
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
108
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
111
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
112
|
+
if (!('author' in value) || value['author'] === undefined) return false;
|
|
113
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
114
|
+
if (!('gradient' in value) || value['gradient'] === undefined) return false;
|
|
115
|
+
if (!('dependencies' in value) || value['dependencies'] === undefined) return false;
|
|
116
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
117
117
|
return true;
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -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.11.1
|
|
8
8
|
* Contact: hello@teemill.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -36,7 +36,7 @@ export interface IntegrationListingGradient {
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the IntegrationListingGradient interface.
|
|
38
38
|
*/
|
|
39
|
-
export function instanceOfIntegrationListingGradient(value: object):
|
|
39
|
+
export function instanceOfIntegrationListingGradient(value: object): value is IntegrationListingGradient {
|
|
40
40
|
return true;
|
|
41
41
|
}
|
|
42
42
|
|