@teemill/projects 1.0.0 → 1.0.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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +14 -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 +44 -0
  20. package/dist/models/Project.js +57 -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 +91 -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
@@ -1,11 +1,19 @@
1
1
  .gitignore
2
2
  .npmignore
3
+ .openapi-generator-ignore
3
4
  README.md
4
- api.ts
5
- base.ts
6
- common.ts
7
- configuration.ts
8
- git_push.sh
9
- index.ts
10
5
  package.json
6
+ src/apis/IntegrationsApi.ts
7
+ src/apis/ProjectsApi.ts
8
+ src/apis/index.ts
9
+ src/index.ts
10
+ src/models/ApiError.ts
11
+ src/models/Integration.ts
12
+ src/models/IntegrationInfo.ts
13
+ src/models/IntegrationsResponse.ts
14
+ src/models/Project.ts
15
+ src/models/ProjectLogo.ts
16
+ src/models/ProjectsResponse.ts
17
+ src/models/index.ts
18
+ src/runtime.ts
11
19
  tsconfig.json
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## @teemill/projects@1.0.0
1
+ ## @teemill/projects@1.0.1
2
2
 
3
- This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
3
+ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
5
5
  Environment
6
6
  * Node.js
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @teemill/projects@1.0.0 --save
39
+ npm install @teemill/projects@1.0.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,58 @@
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.1
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 { Integration, IntegrationsResponse } from '../models/index';
14
+ export interface GetProjectIntegrationRequest {
15
+ projectId: string;
16
+ integrationId: string;
17
+ }
18
+ export interface GetProjectIntegrationsRequest {
19
+ projectId: string;
20
+ }
21
+ export interface InstallProjectIntegrationRequest {
22
+ projectId: string;
23
+ }
24
+ /**
25
+ *
26
+ */
27
+ export declare class IntegrationsApi extends runtime.BaseAPI {
28
+ /**
29
+ * Get an integration
30
+ * Get integration
31
+ */
32
+ getProjectIntegrationRaw(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
33
+ /**
34
+ * Get an integration
35
+ * Get integration
36
+ */
37
+ getProjectIntegration(requestParameters: GetProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
38
+ /**
39
+ * List all integrations installed on a project
40
+ * List integrations
41
+ */
42
+ getProjectIntegrationsRaw(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
43
+ /**
44
+ * List all integrations installed on a project
45
+ * List integrations
46
+ */
47
+ getProjectIntegrations(requestParameters: GetProjectIntegrationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
48
+ /**
49
+ * Install an integration on the project
50
+ * Install integration
51
+ */
52
+ installProjectIntegrationRaw(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Integration>>;
53
+ /**
54
+ * Install an integration on the project
55
+ * Install integration
56
+ */
57
+ installProjectIntegration(requestParameters: InstallProjectIntegrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Integration>;
58
+ }
@@ -0,0 +1,221 @@
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.1
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.IntegrationsApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var IntegrationsApi = /** @class */ (function (_super) {
74
+ __extends(IntegrationsApi, _super);
75
+ function IntegrationsApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get an integration
80
+ * Get integration
81
+ */
82
+ IntegrationsApi.prototype.getProjectIntegrationRaw = function (requestParameters, 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
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
89
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegration.');
90
+ }
91
+ if (requestParameters.integrationId === null || requestParameters.integrationId === undefined) {
92
+ throw new runtime.RequiredError('integrationId', 'Required parameter requestParameters.integrationId was null or undefined when calling getProjectIntegration.');
93
+ }
94
+ queryParameters = {};
95
+ headerParameters = {};
96
+ return [4 /*yield*/, this.request({
97
+ path: "/dashboard/projects/{projectId}/integrations/{integrationId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("integrationId", "}"), encodeURIComponent(String(requestParameters.integrationId))),
98
+ method: 'GET',
99
+ headers: headerParameters,
100
+ query: queryParameters,
101
+ }, initOverrides)];
102
+ case 1:
103
+ response = _a.sent();
104
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
105
+ }
106
+ });
107
+ });
108
+ };
109
+ /**
110
+ * Get an integration
111
+ * Get integration
112
+ */
113
+ IntegrationsApi.prototype.getProjectIntegration = function (requestParameters, initOverrides) {
114
+ return __awaiter(this, void 0, void 0, function () {
115
+ var response;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0: return [4 /*yield*/, this.getProjectIntegrationRaw(requestParameters, initOverrides)];
119
+ case 1:
120
+ response = _a.sent();
121
+ return [4 /*yield*/, response.value()];
122
+ case 2: return [2 /*return*/, _a.sent()];
123
+ }
124
+ });
125
+ });
126
+ };
127
+ /**
128
+ * List all integrations installed on a project
129
+ * List integrations
130
+ */
131
+ IntegrationsApi.prototype.getProjectIntegrationsRaw = function (requestParameters, initOverrides) {
132
+ return __awaiter(this, void 0, void 0, function () {
133
+ var queryParameters, headerParameters, response;
134
+ return __generator(this, function (_a) {
135
+ switch (_a.label) {
136
+ case 0:
137
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
138
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectIntegrations.');
139
+ }
140
+ queryParameters = {};
141
+ headerParameters = {};
142
+ return [4 /*yield*/, this.request({
143
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
144
+ method: 'GET',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ }, initOverrides)];
148
+ case 1:
149
+ response = _a.sent();
150
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationsResponseFromJSON)(jsonValue); })];
151
+ }
152
+ });
153
+ });
154
+ };
155
+ /**
156
+ * List all integrations installed on a project
157
+ * List integrations
158
+ */
159
+ IntegrationsApi.prototype.getProjectIntegrations = function (requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function () {
161
+ var response;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0: return [4 /*yield*/, this.getProjectIntegrationsRaw(requestParameters, initOverrides)];
165
+ case 1:
166
+ response = _a.sent();
167
+ return [4 /*yield*/, response.value()];
168
+ case 2: return [2 /*return*/, _a.sent()];
169
+ }
170
+ });
171
+ });
172
+ };
173
+ /**
174
+ * Install an integration on the project
175
+ * Install integration
176
+ */
177
+ IntegrationsApi.prototype.installProjectIntegrationRaw = function (requestParameters, initOverrides) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ var queryParameters, headerParameters, response;
180
+ return __generator(this, function (_a) {
181
+ switch (_a.label) {
182
+ case 0:
183
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
184
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling installProjectIntegration.');
185
+ }
186
+ queryParameters = {};
187
+ headerParameters = {};
188
+ return [4 /*yield*/, this.request({
189
+ path: "/dashboard/projects/{projectId}/integrations".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
190
+ method: 'POST',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ }, initOverrides)];
194
+ case 1:
195
+ response = _a.sent();
196
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntegrationFromJSON)(jsonValue); })];
197
+ }
198
+ });
199
+ });
200
+ };
201
+ /**
202
+ * Install an integration on the project
203
+ * Install integration
204
+ */
205
+ IntegrationsApi.prototype.installProjectIntegration = function (requestParameters, initOverrides) {
206
+ return __awaiter(this, void 0, void 0, function () {
207
+ var response;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0: return [4 /*yield*/, this.installProjectIntegrationRaw(requestParameters, initOverrides)];
211
+ case 1:
212
+ response = _a.sent();
213
+ return [4 /*yield*/, response.value()];
214
+ case 2: return [2 /*return*/, _a.sent()];
215
+ }
216
+ });
217
+ });
218
+ };
219
+ return IntegrationsApi;
220
+ }(runtime.BaseAPI));
221
+ exports.IntegrationsApi = IntegrationsApi;
@@ -0,0 +1,77 @@
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.1
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 { Project, ProjectsResponse } from '../models/index';
14
+ export interface DeleteProjectRequest {
15
+ projectId: string;
16
+ }
17
+ export interface GetProjectRequest {
18
+ projectId: string;
19
+ }
20
+ export interface UpdateProjectRequest {
21
+ projectId: string;
22
+ }
23
+ /**
24
+ *
25
+ */
26
+ export declare class ProjectsApi extends runtime.BaseAPI {
27
+ /**
28
+ * Create a new projects
29
+ * Create project
30
+ */
31
+ createProjectRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
32
+ /**
33
+ * Create a new projects
34
+ * Create project
35
+ */
36
+ createProject(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
37
+ /**
38
+ * Delete a project
39
+ * Delete project
40
+ */
41
+ deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
42
+ /**
43
+ * Delete a project
44
+ * Delete project
45
+ */
46
+ deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
47
+ /**
48
+ * Get a project
49
+ * Get project
50
+ */
51
+ getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
52
+ /**
53
+ * Get a project
54
+ * Get project
55
+ */
56
+ getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
57
+ /**
58
+ * List all projects available
59
+ * List projects
60
+ */
61
+ getProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectsResponse>>;
62
+ /**
63
+ * List all projects available
64
+ * List projects
65
+ */
66
+ getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectsResponse>;
67
+ /**
68
+ * Update a project
69
+ * Update project
70
+ */
71
+ updateProjectRaw(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>>;
72
+ /**
73
+ * Update a project
74
+ * Update project
75
+ */
76
+ updateProject(requestParameters: UpdateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Project>;
77
+ }