@teemill/projects 1.0.0 → 1.0.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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +13 -6
  2. package/README.md +3 -3
  3. package/dist/apis/IntegrationsApi.d.ts +58 -0
  4. package/dist/apis/IntegrationsApi.js +221 -0
  5. package/dist/apis/ProjectsApi.d.ts +77 -0
  6. package/dist/apis/ProjectsApi.js +304 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +20 -0
  9. package/dist/index.d.ts +3 -13
  10. package/dist/index.js +5 -15
  11. package/dist/models/ApiError.d.ts +37 -0
  12. package/dist/models/ApiError.js +53 -0
  13. package/dist/models/Integration.d.ts +56 -0
  14. package/dist/models/Integration.js +62 -0
  15. package/dist/models/IntegrationInfo.d.ts +49 -0
  16. package/dist/models/IntegrationInfo.js +59 -0
  17. package/dist/models/IntegrationsResponse.d.ts +32 -0
  18. package/dist/models/IntegrationsResponse.js +51 -0
  19. package/dist/models/Project.d.ts +50 -0
  20. package/dist/models/Project.js +60 -0
  21. package/dist/models/ProjectLogo.d.ts +37 -0
  22. package/dist/models/ProjectLogo.js +52 -0
  23. package/dist/models/ProjectsResponse.d.ts +32 -0
  24. package/dist/models/ProjectsResponse.js +51 -0
  25. package/dist/models/index.d.ts +7 -0
  26. package/dist/models/index.js +25 -0
  27. package/dist/runtime.d.ts +182 -0
  28. package/dist/runtime.js +562 -0
  29. package/package.json +3 -15
  30. package/src/apis/IntegrationsApi.ts +149 -0
  31. package/src/apis/ProjectsApi.ts +200 -0
  32. package/src/apis/index.ts +4 -0
  33. package/src/index.ts +5 -0
  34. package/src/models/ApiError.ts +74 -0
  35. package/src/models/Integration.ts +107 -0
  36. package/src/models/IntegrationInfo.ts +93 -0
  37. package/src/models/IntegrationsResponse.ts +73 -0
  38. package/src/models/Project.ts +99 -0
  39. package/src/models/ProjectLogo.ts +73 -0
  40. package/src/models/ProjectsResponse.ts +73 -0
  41. package/src/models/index.ts +9 -0
  42. package/src/runtime.ts +431 -0
  43. package/tsconfig.json +2 -3
  44. package/api.ts +0 -462
  45. package/base.ts +0 -72
  46. package/common.ts +0 -150
  47. package/configuration.ts +0 -101
  48. package/dist/api.d.ts +0 -274
  49. package/dist/api.js +0 -489
  50. package/dist/base.d.ts +0 -54
  51. package/dist/base.js +0 -80
  52. package/dist/common.d.ts +0 -65
  53. package/dist/common.js +0 -252
  54. package/dist/configuration.d.ts +0 -83
  55. package/dist/configuration.js +0 -44
  56. package/git_push.sh +0 -57
  57. package/index.ts +0 -18
@@ -0,0 +1,304 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.2
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.ProjectsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var ProjectsApi = /** @class */ (function (_super) {
74
+ __extends(ProjectsApi, _super);
75
+ function ProjectsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Create a new projects
80
+ * Create project
81
+ */
82
+ ProjectsApi.prototype.createProjectRaw = function (initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ queryParameters = {};
89
+ headerParameters = {};
90
+ return [4 /*yield*/, this.request({
91
+ path: "/dashboard/projects",
92
+ method: 'POST',
93
+ headers: headerParameters,
94
+ query: queryParameters,
95
+ }, initOverrides)];
96
+ case 1:
97
+ response = _a.sent();
98
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
99
+ }
100
+ });
101
+ });
102
+ };
103
+ /**
104
+ * Create a new projects
105
+ * Create project
106
+ */
107
+ ProjectsApi.prototype.createProject = function (initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function () {
109
+ var response;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
112
+ case 0: return [4 /*yield*/, this.createProjectRaw(initOverrides)];
113
+ case 1:
114
+ response = _a.sent();
115
+ return [4 /*yield*/, response.value()];
116
+ case 2: return [2 /*return*/, _a.sent()];
117
+ }
118
+ });
119
+ });
120
+ };
121
+ /**
122
+ * Delete a project
123
+ * Delete project
124
+ */
125
+ ProjectsApi.prototype.deleteProjectRaw = function (requestParameters, initOverrides) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var queryParameters, headerParameters, response;
128
+ return __generator(this, function (_a) {
129
+ switch (_a.label) {
130
+ case 0:
131
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
132
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling deleteProject.');
133
+ }
134
+ queryParameters = {};
135
+ headerParameters = {};
136
+ return [4 /*yield*/, this.request({
137
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
138
+ method: 'DELETE',
139
+ headers: headerParameters,
140
+ query: queryParameters,
141
+ }, initOverrides)];
142
+ case 1:
143
+ response = _a.sent();
144
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
145
+ }
146
+ });
147
+ });
148
+ };
149
+ /**
150
+ * Delete a project
151
+ * Delete project
152
+ */
153
+ ProjectsApi.prototype.deleteProject = function (requestParameters, initOverrides) {
154
+ return __awaiter(this, void 0, void 0, function () {
155
+ var response;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0: return [4 /*yield*/, this.deleteProjectRaw(requestParameters, initOverrides)];
159
+ case 1:
160
+ response = _a.sent();
161
+ return [4 /*yield*/, response.value()];
162
+ case 2: return [2 /*return*/, _a.sent()];
163
+ }
164
+ });
165
+ });
166
+ };
167
+ /**
168
+ * Get a project
169
+ * Get project
170
+ */
171
+ ProjectsApi.prototype.getProjectRaw = function (requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function () {
173
+ var queryParameters, headerParameters, response;
174
+ return __generator(this, function (_a) {
175
+ switch (_a.label) {
176
+ case 0:
177
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
178
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProject.');
179
+ }
180
+ queryParameters = {};
181
+ headerParameters = {};
182
+ return [4 /*yield*/, this.request({
183
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
184
+ method: 'GET',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ }, initOverrides)];
188
+ case 1:
189
+ response = _a.sent();
190
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Get a project
197
+ * Get project
198
+ */
199
+ ProjectsApi.prototype.getProject = function (requestParameters, initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function () {
201
+ var response;
202
+ return __generator(this, function (_a) {
203
+ switch (_a.label) {
204
+ case 0: return [4 /*yield*/, this.getProjectRaw(requestParameters, initOverrides)];
205
+ case 1:
206
+ response = _a.sent();
207
+ return [4 /*yield*/, response.value()];
208
+ case 2: return [2 /*return*/, _a.sent()];
209
+ }
210
+ });
211
+ });
212
+ };
213
+ /**
214
+ * List all projects available
215
+ * List projects
216
+ */
217
+ ProjectsApi.prototype.getProjectsRaw = function (initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function () {
219
+ var queryParameters, headerParameters, response;
220
+ return __generator(this, function (_a) {
221
+ switch (_a.label) {
222
+ case 0:
223
+ queryParameters = {};
224
+ headerParameters = {};
225
+ return [4 /*yield*/, this.request({
226
+ path: "/dashboard/projects",
227
+ method: 'GET',
228
+ headers: headerParameters,
229
+ query: queryParameters,
230
+ }, initOverrides)];
231
+ case 1:
232
+ response = _a.sent();
233
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectsResponseFromJSON)(jsonValue); })];
234
+ }
235
+ });
236
+ });
237
+ };
238
+ /**
239
+ * List all projects available
240
+ * List projects
241
+ */
242
+ ProjectsApi.prototype.getProjects = function (initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function () {
244
+ var response;
245
+ return __generator(this, function (_a) {
246
+ switch (_a.label) {
247
+ case 0: return [4 /*yield*/, this.getProjectsRaw(initOverrides)];
248
+ case 1:
249
+ response = _a.sent();
250
+ return [4 /*yield*/, response.value()];
251
+ case 2: return [2 /*return*/, _a.sent()];
252
+ }
253
+ });
254
+ });
255
+ };
256
+ /**
257
+ * Update a project
258
+ * Update project
259
+ */
260
+ ProjectsApi.prototype.updateProjectRaw = function (requestParameters, initOverrides) {
261
+ return __awaiter(this, void 0, void 0, function () {
262
+ var queryParameters, headerParameters, response;
263
+ return __generator(this, function (_a) {
264
+ switch (_a.label) {
265
+ case 0:
266
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
267
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateProject.');
268
+ }
269
+ queryParameters = {};
270
+ headerParameters = {};
271
+ return [4 /*yield*/, this.request({
272
+ path: "/dashboard/projects/{projectId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
273
+ method: 'PATCH',
274
+ headers: headerParameters,
275
+ query: queryParameters,
276
+ }, initOverrides)];
277
+ case 1:
278
+ response = _a.sent();
279
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProjectFromJSON)(jsonValue); })];
280
+ }
281
+ });
282
+ });
283
+ };
284
+ /**
285
+ * Update a project
286
+ * Update project
287
+ */
288
+ ProjectsApi.prototype.updateProject = function (requestParameters, initOverrides) {
289
+ return __awaiter(this, void 0, void 0, function () {
290
+ var response;
291
+ return __generator(this, function (_a) {
292
+ switch (_a.label) {
293
+ case 0: return [4 /*yield*/, this.updateProjectRaw(requestParameters, initOverrides)];
294
+ case 1:
295
+ response = _a.sent();
296
+ return [4 /*yield*/, response.value()];
297
+ case 2: return [2 /*return*/, _a.sent()];
298
+ }
299
+ });
300
+ });
301
+ };
302
+ return ProjectsApi;
303
+ }(runtime.BaseAPI));
304
+ exports.ProjectsApi = ProjectsApi;
@@ -0,0 +1,2 @@
1
+ export * from './IntegrationsApi';
2
+ export * from './ProjectsApi';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./IntegrationsApi"), exports);
20
+ __exportStar(require("./ProjectsApi"), exports);
package/dist/index.d.ts CHANGED
@@ -1,13 +1,3 @@
1
- /**
2
- * Projects API
3
- * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
- *
5
- * The version of the OpenAPI document: 1.0.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
- export * from "./api";
13
- export * from "./configuration";
1
+ export * from './runtime';
2
+ export * from './apis/index';
3
+ export * from './models/index';
package/dist/index.js CHANGED
@@ -1,17 +1,4 @@
1
1
  "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Projects API
6
- * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: hello@teemill.com
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
3
  if (k2 === undefined) k2 = k;
17
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -27,5 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
15
  };
29
16
  Object.defineProperty(exports, "__esModule", { value: true });
30
- __exportStar(require("./api"), exports);
31
- __exportStar(require("./configuration"), exports);
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./runtime"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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
+ /**
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,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.2
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ApiErrorToJSON = exports.ApiErrorFromJSONTyped = exports.ApiErrorFromJSON = exports.instanceOfApiError = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ApiError interface.
20
+ */
21
+ function instanceOfApiError(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "message" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfApiError = instanceOfApiError;
27
+ function ApiErrorFromJSON(json) {
28
+ return ApiErrorFromJSONTyped(json, false);
29
+ }
30
+ exports.ApiErrorFromJSON = ApiErrorFromJSON;
31
+ function ApiErrorFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'code': !(0, runtime_1.exists)(json, 'code') ? undefined : json['code'],
37
+ 'message': json['message'],
38
+ };
39
+ }
40
+ exports.ApiErrorFromJSONTyped = ApiErrorFromJSONTyped;
41
+ function ApiErrorToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'code': value.code,
50
+ 'message': value.message,
51
+ };
52
+ }
53
+ exports.ApiErrorToJSON = ApiErrorToJSON;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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 { 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
+ code: string;
31
+ /**
32
+ *
33
+ * @type {object}
34
+ * @memberof Integration
35
+ */
36
+ config: object;
37
+ /**
38
+ *
39
+ * @type {IntegrationInfo}
40
+ * @memberof Integration
41
+ */
42
+ info: IntegrationInfo;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof Integration
47
+ */
48
+ enabled: boolean;
49
+ }
50
+ /**
51
+ * Check if a given object implements the Integration interface.
52
+ */
53
+ export declare function instanceOfIntegration(value: object): boolean;
54
+ export declare function IntegrationFromJSON(json: any): Integration;
55
+ export declare function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Integration;
56
+ export declare function IntegrationToJSON(value?: Integration | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Projects API
6
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.2
9
+ * Contact: hello@teemill.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.IntegrationToJSON = exports.IntegrationFromJSONTyped = exports.IntegrationFromJSON = exports.instanceOfIntegration = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var IntegrationInfo_1 = require("./IntegrationInfo");
19
+ /**
20
+ * Check if a given object implements the Integration interface.
21
+ */
22
+ function instanceOfIntegration(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "code" in value;
25
+ isInstance = isInstance && "config" in value;
26
+ isInstance = isInstance && "info" in value;
27
+ isInstance = isInstance && "enabled" in value;
28
+ return isInstance;
29
+ }
30
+ exports.instanceOfIntegration = instanceOfIntegration;
31
+ function IntegrationFromJSON(json) {
32
+ return IntegrationFromJSONTyped(json, false);
33
+ }
34
+ exports.IntegrationFromJSON = IntegrationFromJSON;
35
+ function IntegrationFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
41
+ 'code': json['code'],
42
+ 'config': json['config'],
43
+ 'info': (0, IntegrationInfo_1.IntegrationInfoFromJSON)(json['info']),
44
+ 'enabled': json['enabled'],
45
+ };
46
+ }
47
+ exports.IntegrationFromJSONTyped = IntegrationFromJSONTyped;
48
+ function IntegrationToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'code': value.code,
57
+ 'config': value.config,
58
+ 'info': (0, IntegrationInfo_1.IntegrationInfoToJSON)(value.info),
59
+ 'enabled': value.enabled,
60
+ };
61
+ }
62
+ exports.IntegrationToJSON = IntegrationToJSON;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Projects API
3
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.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
+ /**
13
+ *
14
+ * @export
15
+ * @interface IntegrationInfo
16
+ */
17
+ export interface IntegrationInfo {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IntegrationInfo
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IntegrationInfo
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IntegrationInfo
34
+ */
35
+ author: string;
36
+ /**
37
+ *
38
+ * @type {object}
39
+ * @memberof IntegrationInfo
40
+ */
41
+ icon: object;
42
+ }
43
+ /**
44
+ * Check if a given object implements the IntegrationInfo interface.
45
+ */
46
+ export declare function instanceOfIntegrationInfo(value: object): boolean;
47
+ export declare function IntegrationInfoFromJSON(json: any): IntegrationInfo;
48
+ export declare function IntegrationInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationInfo;
49
+ export declare function IntegrationInfoToJSON(value?: IntegrationInfo | null): any;