@teemill/integrations 0.8.2 → 0.8.4

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.
Files changed (77) hide show
  1. package/.openapi-generator/FILES +2 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -4
  4. package/dist/apis/IntegrationsApi.d.ts +4 -4
  5. package/dist/apis/IntegrationsApi.js +172 -351
  6. package/dist/esm/apis/IntegrationsApi.d.ts +91 -0
  7. package/dist/esm/apis/IntegrationsApi.js +256 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +3 -0
  10. package/dist/esm/index.d.ts +3 -0
  11. package/dist/esm/index.js +5 -0
  12. package/dist/esm/models/ApiError.d.ts +37 -0
  13. package/dist/esm/models/ApiError.js +42 -0
  14. package/dist/esm/models/CategoriesResponse.d.ts +32 -0
  15. package/dist/esm/models/CategoriesResponse.js +44 -0
  16. package/dist/esm/models/Integration.d.ts +62 -0
  17. package/dist/esm/models/Integration.js +57 -0
  18. package/dist/esm/models/IntegrationCategoriesResponse.d.ts +32 -0
  19. package/dist/esm/models/IntegrationCategoriesResponse.js +41 -0
  20. package/dist/esm/models/IntegrationCategory.d.ts +52 -0
  21. package/dist/esm/models/IntegrationCategory.js +56 -0
  22. package/dist/esm/models/IntegrationInfo.d.ts +49 -0
  23. package/dist/esm/models/IntegrationInfo.js +52 -0
  24. package/dist/esm/models/IntegrationListing.d.ts +93 -0
  25. package/dist/esm/models/IntegrationListing.js +79 -0
  26. package/dist/esm/models/IntegrationListingGradient.d.ts +37 -0
  27. package/dist/esm/models/IntegrationListingGradient.js +40 -0
  28. package/dist/esm/models/IntegrationListingsResponse.d.ts +32 -0
  29. package/dist/esm/models/IntegrationListingsResponse.js +41 -0
  30. package/dist/esm/models/IntegrationProduct.d.ts +61 -0
  31. package/dist/esm/models/IntegrationProduct.js +57 -0
  32. package/dist/esm/models/IntegrationProductsResponse.d.ts +32 -0
  33. package/dist/esm/models/IntegrationProductsResponse.js +41 -0
  34. package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
  35. package/dist/esm/models/IntegrationsResponse.js +44 -0
  36. package/dist/esm/models/index.d.ts +8 -0
  37. package/dist/esm/models/index.js +10 -0
  38. package/dist/esm/runtime.d.ts +187 -0
  39. package/dist/esm/runtime.js +333 -0
  40. package/dist/models/ApiError.d.ts +1 -1
  41. package/dist/models/ApiError.js +10 -14
  42. package/dist/models/CategoriesResponse.js +2 -2
  43. package/dist/models/Integration.js +3 -3
  44. package/dist/models/IntegrationCategoriesResponse.d.ts +32 -0
  45. package/dist/models/IntegrationCategoriesResponse.js +48 -0
  46. package/dist/models/IntegrationCategory.d.ts +1 -1
  47. package/dist/models/IntegrationCategory.js +14 -15
  48. package/dist/models/IntegrationInfo.js +1 -1
  49. package/dist/models/IntegrationListing.d.ts +3 -3
  50. package/dist/models/IntegrationListing.js +39 -33
  51. package/dist/models/IntegrationListingGradient.d.ts +1 -1
  52. package/dist/models/IntegrationListingGradient.js +9 -14
  53. package/dist/models/IntegrationListingsResponse.d.ts +2 -2
  54. package/dist/models/IntegrationListingsResponse.js +10 -13
  55. package/dist/models/IntegrationProduct.d.ts +2 -2
  56. package/dist/models/IntegrationProduct.js +21 -21
  57. package/dist/models/IntegrationProductsResponse.d.ts +1 -1
  58. package/dist/models/IntegrationProductsResponse.js +9 -12
  59. package/dist/models/IntegrationsResponse.js +2 -2
  60. package/dist/models/index.d.ts +1 -1
  61. package/dist/models/index.js +1 -1
  62. package/dist/runtime.d.ts +1 -1
  63. package/dist/runtime.js +223 -439
  64. package/package.json +4 -2
  65. package/src/apis/IntegrationsApi.ts +7 -7
  66. package/src/models/ApiError.ts +10 -15
  67. package/src/models/IntegrationCategoriesResponse.ts +68 -0
  68. package/src/models/IntegrationCategory.ts +12 -17
  69. package/src/models/IntegrationListing.ts +30 -34
  70. package/src/models/IntegrationListingGradient.ts +10 -15
  71. package/src/models/IntegrationListingsResponse.ts +10 -14
  72. package/src/models/IntegrationProduct.ts +18 -23
  73. package/src/models/IntegrationProductsResponse.ts +8 -13
  74. package/src/models/index.ts +1 -1
  75. package/src/runtime.ts +1 -1
  76. package/tsconfig.esm.json +7 -0
  77. package/tsconfig.json +2 -2
@@ -0,0 +1,91 @@
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.8.4
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 * as runtime from '../runtime';
13
+ import type { IntegrationCategoriesResponse, IntegrationListing, IntegrationListingsResponse, IntegrationProduct, IntegrationProductsResponse } from '../models/index';
14
+ export interface GetIntegrationCategoryRequest {
15
+ category: string;
16
+ }
17
+ export interface GetIntegrationListingRequest {
18
+ listing: string;
19
+ }
20
+ export interface GetIntegrationProductRequest {
21
+ integration: number;
22
+ product: string;
23
+ }
24
+ export interface GetIntegrationProductsRequest {
25
+ integration: number;
26
+ }
27
+ /**
28
+ *
29
+ */
30
+ export declare class IntegrationsApi extends runtime.BaseAPI {
31
+ /**
32
+ * List all integration categories
33
+ * List integration categories
34
+ */
35
+ getIntegrationCategoriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationCategoriesResponse>>;
36
+ /**
37
+ * List all integration categories
38
+ * List integration categories
39
+ */
40
+ getIntegrationCategories(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationCategoriesResponse>;
41
+ /**
42
+ * Get an integration category
43
+ * Get integration category
44
+ */
45
+ getIntegrationCategoryRaw(requestParameters: GetIntegrationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
46
+ /**
47
+ * Get an integration category
48
+ * Get integration category
49
+ */
50
+ getIntegrationCategory(category: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
51
+ /**
52
+ * Get an integration listing
53
+ * Get integration listing
54
+ */
55
+ getIntegrationListingRaw(requestParameters: GetIntegrationListingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListing>>;
56
+ /**
57
+ * Get an integration listing
58
+ * Get integration listing
59
+ */
60
+ getIntegrationListing(listing: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListing>;
61
+ /**
62
+ * List all integration listings
63
+ * List integration listings
64
+ */
65
+ getIntegrationListingsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationListingsResponse>>;
66
+ /**
67
+ * List all integration listings
68
+ * List integration listings
69
+ */
70
+ getIntegrationListings(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationListingsResponse>;
71
+ /**
72
+ * Get a product available for an integration
73
+ * Get integration product
74
+ */
75
+ getIntegrationProductRaw(requestParameters: GetIntegrationProductRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProduct>>;
76
+ /**
77
+ * Get a product available for an integration
78
+ * Get integration product
79
+ */
80
+ getIntegrationProduct(integration: number, product: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProduct>;
81
+ /**
82
+ * List all products available for an integration
83
+ * List integration products
84
+ */
85
+ getIntegrationProductsRaw(requestParameters: GetIntegrationProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationProductsResponse>>;
86
+ /**
87
+ * List all products available for an integration
88
+ * List integration products
89
+ */
90
+ getIntegrationProducts(integration: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationProductsResponse>;
91
+ }
@@ -0,0 +1,256 @@
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.8.4
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { IntegrationCategoriesResponseFromJSON, IntegrationListingFromJSON, IntegrationListingsResponseFromJSON, IntegrationProductFromJSON, IntegrationProductsResponseFromJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class IntegrationsApi extends runtime.BaseAPI {
29
+ /**
30
+ * List all integration categories
31
+ * List integration categories
32
+ */
33
+ getIntegrationCategoriesRaw(initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const queryParameters = {};
36
+ const headerParameters = {};
37
+ if (this.configuration && this.configuration.accessToken) {
38
+ // oauth required
39
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
40
+ }
41
+ if (this.configuration && this.configuration.apiKey) {
42
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
43
+ }
44
+ const response = yield this.request({
45
+ path: `/v1/integrations/categories`,
46
+ method: 'GET',
47
+ headers: headerParameters,
48
+ query: queryParameters,
49
+ }, initOverrides);
50
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationCategoriesResponseFromJSON(jsonValue));
51
+ });
52
+ }
53
+ /**
54
+ * List all integration categories
55
+ * List integration categories
56
+ */
57
+ getIntegrationCategories(initOverrides) {
58
+ return __awaiter(this, void 0, void 0, function* () {
59
+ const response = yield this.getIntegrationCategoriesRaw(initOverrides);
60
+ return yield response.value();
61
+ });
62
+ }
63
+ /**
64
+ * Get an integration category
65
+ * Get integration category
66
+ */
67
+ getIntegrationCategoryRaw(requestParameters, initOverrides) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ if (requestParameters.category === null || requestParameters.category === undefined) {
70
+ throw new runtime.RequiredError('category', 'Required parameter requestParameters.category was null or undefined when calling getIntegrationCategory.');
71
+ }
72
+ const queryParameters = {};
73
+ const headerParameters = {};
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ // oauth required
76
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
77
+ }
78
+ if (this.configuration && this.configuration.apiKey) {
79
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
80
+ }
81
+ const response = yield this.request({
82
+ path: `/v1/integrations/categories/{category}`.replace(`{${"category"}}`, encodeURIComponent(String(requestParameters.category))),
83
+ method: 'GET',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ }, initOverrides);
87
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
88
+ });
89
+ }
90
+ /**
91
+ * Get an integration category
92
+ * Get integration category
93
+ */
94
+ getIntegrationCategory(category, initOverrides) {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ const response = yield this.getIntegrationCategoryRaw({
97
+ category: category,
98
+ }, initOverrides);
99
+ return yield response.value();
100
+ });
101
+ }
102
+ /**
103
+ * Get an integration listing
104
+ * Get integration listing
105
+ */
106
+ getIntegrationListingRaw(requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ if (requestParameters.listing === null || requestParameters.listing === undefined) {
109
+ throw new runtime.RequiredError('listing', 'Required parameter requestParameters.listing was null or undefined when calling getIntegrationListing.');
110
+ }
111
+ const queryParameters = {};
112
+ const headerParameters = {};
113
+ if (this.configuration && this.configuration.accessToken) {
114
+ // oauth required
115
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
116
+ }
117
+ if (this.configuration && this.configuration.apiKey) {
118
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
119
+ }
120
+ const response = yield this.request({
121
+ path: `/v1/integrations/listings/{listing}`.replace(`{${"listing"}}`, encodeURIComponent(String(requestParameters.listing))),
122
+ method: 'GET',
123
+ headers: headerParameters,
124
+ query: queryParameters,
125
+ }, initOverrides);
126
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingFromJSON(jsonValue));
127
+ });
128
+ }
129
+ /**
130
+ * Get an integration listing
131
+ * Get integration listing
132
+ */
133
+ getIntegrationListing(listing, initOverrides) {
134
+ return __awaiter(this, void 0, void 0, function* () {
135
+ const response = yield this.getIntegrationListingRaw({
136
+ listing: listing,
137
+ }, initOverrides);
138
+ return yield response.value();
139
+ });
140
+ }
141
+ /**
142
+ * List all integration listings
143
+ * List integration listings
144
+ */
145
+ getIntegrationListingsRaw(initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const queryParameters = {};
148
+ const headerParameters = {};
149
+ if (this.configuration && this.configuration.accessToken) {
150
+ // oauth required
151
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
152
+ }
153
+ if (this.configuration && this.configuration.apiKey) {
154
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
155
+ }
156
+ const response = yield this.request({
157
+ path: `/v1/integrations/listings`,
158
+ method: 'GET',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ }, initOverrides);
162
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationListingsResponseFromJSON(jsonValue));
163
+ });
164
+ }
165
+ /**
166
+ * List all integration listings
167
+ * List integration listings
168
+ */
169
+ getIntegrationListings(initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const response = yield this.getIntegrationListingsRaw(initOverrides);
172
+ return yield response.value();
173
+ });
174
+ }
175
+ /**
176
+ * Get a product available for an integration
177
+ * Get integration product
178
+ */
179
+ getIntegrationProductRaw(requestParameters, initOverrides) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
182
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegrationProduct.');
183
+ }
184
+ if (requestParameters.product === null || requestParameters.product === undefined) {
185
+ throw new runtime.RequiredError('product', 'Required parameter requestParameters.product was null or undefined when calling getIntegrationProduct.');
186
+ }
187
+ const queryParameters = {};
188
+ const headerParameters = {};
189
+ if (this.configuration && this.configuration.accessToken) {
190
+ // oauth required
191
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
192
+ }
193
+ if (this.configuration && this.configuration.apiKey) {
194
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
195
+ }
196
+ const response = yield this.request({
197
+ path: `/v1/integrations/{integration}/products/{product}`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))).replace(`{${"product"}}`, encodeURIComponent(String(requestParameters.product))),
198
+ method: 'GET',
199
+ headers: headerParameters,
200
+ query: queryParameters,
201
+ }, initOverrides);
202
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductFromJSON(jsonValue));
203
+ });
204
+ }
205
+ /**
206
+ * Get a product available for an integration
207
+ * Get integration product
208
+ */
209
+ getIntegrationProduct(integration, product, initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const response = yield this.getIntegrationProductRaw({
212
+ integration: integration, product: product,
213
+ }, initOverrides);
214
+ return yield response.value();
215
+ });
216
+ }
217
+ /**
218
+ * List all products available for an integration
219
+ * List integration products
220
+ */
221
+ getIntegrationProductsRaw(requestParameters, initOverrides) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ if (requestParameters.integration === null || requestParameters.integration === undefined) {
224
+ throw new runtime.RequiredError('integration', 'Required parameter requestParameters.integration was null or undefined when calling getIntegrationProducts.');
225
+ }
226
+ const queryParameters = {};
227
+ const headerParameters = {};
228
+ if (this.configuration && this.configuration.accessToken) {
229
+ // oauth required
230
+ headerParameters["Authorization"] = yield this.configuration.accessToken("session-oauth", []);
231
+ }
232
+ if (this.configuration && this.configuration.apiKey) {
233
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // api-key authentication
234
+ }
235
+ const response = yield this.request({
236
+ path: `/v1/integrations/{integration}/products`.replace(`{${"integration"}}`, encodeURIComponent(String(requestParameters.integration))),
237
+ method: 'GET',
238
+ headers: headerParameters,
239
+ query: queryParameters,
240
+ }, initOverrides);
241
+ return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationProductsResponseFromJSON(jsonValue));
242
+ });
243
+ }
244
+ /**
245
+ * List all products available for an integration
246
+ * List integration products
247
+ */
248
+ getIntegrationProducts(integration, initOverrides) {
249
+ return __awaiter(this, void 0, void 0, function* () {
250
+ const response = yield this.getIntegrationProductsRaw({
251
+ integration: integration,
252
+ }, initOverrides);
253
+ return yield response.value();
254
+ });
255
+ }
256
+ }
@@ -0,0 +1 @@
1
+ export * from './IntegrationsApi';
@@ -0,0 +1,3 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './IntegrationsApi';
@@ -0,0 +1,3 @@
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
@@ -0,0 +1,5 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './runtime';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,37 @@
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.8.4
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ApiError
16
+ */
17
+ export interface ApiError {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ApiError
22
+ */
23
+ code?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ApiError
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the ApiError interface.
33
+ */
34
+ export declare function instanceOfApiError(value: object): boolean;
35
+ export declare function ApiErrorFromJSON(json: any): ApiError;
36
+ export declare function ApiErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiError;
37
+ export declare function ApiErrorToJSON(value?: ApiError | null): any;
@@ -0,0 +1,42 @@
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.8.4
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
+ * Check if a given object implements the ApiError interface.
16
+ */
17
+ export function instanceOfApiError(value) {
18
+ if (!('message' in value))
19
+ return false;
20
+ return true;
21
+ }
22
+ export function ApiErrorFromJSON(json) {
23
+ return ApiErrorFromJSONTyped(json, false);
24
+ }
25
+ export function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'code': json['code'] == null ? undefined : json['code'],
31
+ 'message': json['message'],
32
+ };
33
+ }
34
+ export function ApiErrorToJSON(value) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'code': value['code'],
40
+ 'message': value['message'],
41
+ };
42
+ }
@@ -0,0 +1,32 @@
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.8.2
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 { IntegrationCategory } from './IntegrationCategory';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CategoriesResponse
17
+ */
18
+ export interface CategoriesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IntegrationCategory>}
22
+ * @memberof CategoriesResponse
23
+ */
24
+ categories: Array<IntegrationCategory>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the CategoriesResponse interface.
28
+ */
29
+ export declare function instanceOfCategoriesResponse(value: object): boolean;
30
+ export declare function CategoriesResponseFromJSON(json: any): CategoriesResponse;
31
+ export declare function CategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoriesResponse;
32
+ export declare function CategoriesResponseToJSON(value?: CategoriesResponse | null): any;
@@ -0,0 +1,44 @@
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.8.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
+ import { IntegrationCategoryFromJSON, IntegrationCategoryToJSON, } from './IntegrationCategory';
15
+ /**
16
+ * Check if a given object implements the CategoriesResponse interface.
17
+ */
18
+ export function instanceOfCategoriesResponse(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "categories" in value;
21
+ return isInstance;
22
+ }
23
+ export function CategoriesResponseFromJSON(json) {
24
+ return CategoriesResponseFromJSONTyped(json, false);
25
+ }
26
+ export function CategoriesResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'categories': (json['categories'].map(IntegrationCategoryFromJSON)),
32
+ };
33
+ }
34
+ export function CategoriesResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'categories': (value.categories.map(IntegrationCategoryToJSON)),
43
+ };
44
+ }
@@ -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.7.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 { IntegrationInfo } from './IntegrationInfo';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Integration
17
+ */
18
+ export interface Integration {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof Integration
23
+ */
24
+ readonly id?: number;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Integration
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Integration
35
+ */
36
+ code: string;
37
+ /**
38
+ *
39
+ * @type {object}
40
+ * @memberof Integration
41
+ */
42
+ config: object;
43
+ /**
44
+ *
45
+ * @type {IntegrationInfo}
46
+ * @memberof Integration
47
+ */
48
+ info: IntegrationInfo;
49
+ /**
50
+ *
51
+ * @type {Array<string>}
52
+ * @memberof Integration
53
+ */
54
+ dependencies?: Array<string>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the Integration interface.
58
+ */
59
+ export declare function instanceOfIntegration(value: object): boolean;
60
+ export declare function IntegrationFromJSON(json: any): Integration;
61
+ export declare function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration;
62
+ export declare function IntegrationToJSON(value?: Integration | null): any;
@@ -0,0 +1,57 @@
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.7.0
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
+ import { exists } from '../runtime';
15
+ import { IntegrationInfoFromJSON, IntegrationInfoToJSON, } from './IntegrationInfo';
16
+ /**
17
+ * Check if a given object implements the Integration interface.
18
+ */
19
+ export function instanceOfIntegration(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "code" in value;
23
+ isInstance = isInstance && "config" in value;
24
+ isInstance = isInstance && "info" in value;
25
+ return isInstance;
26
+ }
27
+ export function IntegrationFromJSON(json) {
28
+ return IntegrationFromJSONTyped(json, false);
29
+ }
30
+ export function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': !exists(json, 'id') ? undefined : json['id'],
36
+ 'name': json['name'],
37
+ 'code': json['code'],
38
+ 'config': json['config'],
39
+ 'info': IntegrationInfoFromJSON(json['info']),
40
+ 'dependencies': !exists(json, 'dependencies') ? undefined : json['dependencies'],
41
+ };
42
+ }
43
+ export function IntegrationToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'name': value.name,
52
+ 'code': value.code,
53
+ 'config': value.config,
54
+ 'info': IntegrationInfoToJSON(value.info),
55
+ 'dependencies': value.dependencies,
56
+ };
57
+ }
@@ -0,0 +1,32 @@
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.8.4
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 { IntegrationCategory } from './IntegrationCategory';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IntegrationCategoriesResponse
17
+ */
18
+ export interface IntegrationCategoriesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IntegrationCategory>}
22
+ * @memberof IntegrationCategoriesResponse
23
+ */
24
+ categories: Array<IntegrationCategory>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IntegrationCategoriesResponse interface.
28
+ */
29
+ export declare function instanceOfIntegrationCategoriesResponse(value: object): boolean;
30
+ export declare function IntegrationCategoriesResponseFromJSON(json: any): IntegrationCategoriesResponse;
31
+ export declare function IntegrationCategoriesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationCategoriesResponse;
32
+ export declare function IntegrationCategoriesResponseToJSON(value?: IntegrationCategoriesResponse | null): any;