@teemill/projects 1.9.0 → 1.10.0

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 (60) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ProjectsApi.d.ts +6 -5
  4. package/dist/apis/ProjectsApi.js +6 -5
  5. package/dist/models/ApiError.d.ts +1 -1
  6. package/dist/models/ApiError.js +1 -1
  7. package/dist/models/CreateInviteRequest.d.ts +1 -1
  8. package/dist/models/CreateInviteRequest.js +1 -1
  9. package/dist/models/CreateProjectRequest.d.ts +9 -1
  10. package/dist/models/CreateProjectRequest.js +3 -1
  11. package/dist/models/InstallTemplateRequest.d.ts +33 -0
  12. package/dist/models/InstallTemplateRequest.js +50 -0
  13. package/dist/models/Integration.d.ts +1 -1
  14. package/dist/models/Integration.js +1 -1
  15. package/dist/models/IntegrationsResponse.d.ts +1 -1
  16. package/dist/models/IntegrationsResponse.js +1 -1
  17. package/dist/models/Project.d.ts +1 -1
  18. package/dist/models/Project.js +1 -1
  19. package/dist/models/ProjectInvite.d.ts +1 -1
  20. package/dist/models/ProjectInvite.js +1 -1
  21. package/dist/models/ProjectInvites.d.ts +1 -1
  22. package/dist/models/ProjectInvites.js +1 -1
  23. package/dist/models/ProjectLogo.d.ts +1 -1
  24. package/dist/models/ProjectLogo.js +1 -1
  25. package/dist/models/ProjectUser.d.ts +1 -1
  26. package/dist/models/ProjectUser.js +1 -1
  27. package/dist/models/ProjectUserAvatar.d.ts +1 -1
  28. package/dist/models/ProjectUserAvatar.js +1 -1
  29. package/dist/models/ProjectUsers.d.ts +1 -1
  30. package/dist/models/ProjectUsers.js +1 -1
  31. package/dist/models/ProjectsResponse.d.ts +1 -1
  32. package/dist/models/ProjectsResponse.js +1 -1
  33. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  34. package/dist/models/SetupIntegrationRequest.js +1 -1
  35. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  36. package/dist/models/UpdateProjectRequest.js +1 -1
  37. package/dist/models/index.d.ts +1 -0
  38. package/dist/models/index.js +1 -0
  39. package/dist/runtime.d.ts +1 -1
  40. package/dist/runtime.js +1 -1
  41. package/package.json +1 -1
  42. package/src/apis/ProjectsApi.ts +12 -3
  43. package/src/models/ApiError.ts +1 -1
  44. package/src/models/CreateInviteRequest.ts +1 -1
  45. package/src/models/CreateProjectRequest.ts +9 -1
  46. package/src/models/InstallTemplateRequest.ts +65 -0
  47. package/src/models/Integration.ts +1 -1
  48. package/src/models/IntegrationsResponse.ts +1 -1
  49. package/src/models/Project.ts +1 -1
  50. package/src/models/ProjectInvite.ts +1 -1
  51. package/src/models/ProjectInvites.ts +1 -1
  52. package/src/models/ProjectLogo.ts +1 -1
  53. package/src/models/ProjectUser.ts +1 -1
  54. package/src/models/ProjectUserAvatar.ts +1 -1
  55. package/src/models/ProjectUsers.ts +1 -1
  56. package/src/models/ProjectsResponse.ts +1 -1
  57. package/src/models/SetupIntegrationRequest.ts +1 -1
  58. package/src/models/UpdateProjectRequest.ts +1 -1
  59. package/src/models/index.ts +1 -0
  60. package/src/runtime.ts +1 -1
@@ -8,6 +8,7 @@ src/index.ts
8
8
  src/models/ApiError.ts
9
9
  src/models/CreateInviteRequest.ts
10
10
  src/models/CreateProjectRequest.ts
11
+ src/models/InstallTemplateRequest.ts
11
12
  src/models/Integration.ts
12
13
  src/models/IntegrationsResponse.ts
13
14
  src/models/Project.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.9.0
1
+ ## @teemill/projects@1.10.0
2
2
 
3
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
 
@@ -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.9.0 --save
39
+ npm install @teemill/projects@1.10.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateInviteRequest, CreateProjectRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, SetupIntegrationRequest, UpdateProjectRequest } from '../models/index';
13
+ import type { CreateInviteRequest, CreateProjectRequest, InstallTemplateRequest, Integration, IntegrationsResponse, Project, ProjectInvites, ProjectUsers, ProjectsResponse, SetupIntegrationRequest, UpdateProjectRequest } from '../models/index';
14
14
  export interface CreateInviteOperationRequest {
15
15
  project: string;
16
16
  createInviteRequest: CreateInviteRequest;
@@ -56,9 +56,10 @@ export interface InstallIntegrationRequest {
56
56
  project: string;
57
57
  integration: string;
58
58
  }
59
- export interface InstallTemplateRequest {
59
+ export interface InstallTemplateOperationRequest {
60
60
  project: string;
61
61
  template: string;
62
+ installTemplateRequest?: InstallTemplateRequest;
62
63
  }
63
64
  export interface SetupIntegrationOperationRequest {
64
65
  project: string;
@@ -201,12 +202,12 @@ export declare class ProjectsApi extends runtime.BaseAPI {
201
202
  * Install an integration template on the project
202
203
  * Install integration template
203
204
  */
204
- installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
205
+ installTemplateRaw(requestParameters: InstallTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>>;
205
206
  /**
206
207
  * Install an integration template on the project
207
208
  * Install integration template
208
209
  */
209
- installTemplate(project: string, template: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
210
+ installTemplate(project: string, template: string, optionalParameters?: runtime.OptionalOnly<InstallTemplateOperationRequest>, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntegrationsResponse>;
210
211
  /**
211
212
  * Setup an integration on the project
212
213
  * Setup integration
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -862,6 +862,7 @@ var ProjectsApi = /** @class */ (function (_super) {
862
862
  }
863
863
  queryParameters = {};
864
864
  headerParameters = {};
865
+ headerParameters['Content-Type'] = 'application/json';
865
866
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
866
867
  // oauth required
867
868
  _a = headerParameters;
@@ -880,6 +881,7 @@ var ProjectsApi = /** @class */ (function (_super) {
880
881
  method: 'POST',
881
882
  headers: headerParameters,
882
883
  query: queryParameters,
884
+ body: (0, index_1.InstallTemplateRequestToJSON)(requestParameters.installTemplateRequest),
883
885
  }, initOverrides)];
884
886
  case 3:
885
887
  response = _c.sent();
@@ -892,14 +894,13 @@ var ProjectsApi = /** @class */ (function (_super) {
892
894
  * Install an integration template on the project
893
895
  * Install integration template
894
896
  */
895
- ProjectsApi.prototype.installTemplate = function (project, template, initOverrides) {
897
+ ProjectsApi.prototype.installTemplate = function (project, template, optionalParameters, initOverrides) {
898
+ if (optionalParameters === void 0) { optionalParameters = {}; }
896
899
  return __awaiter(this, void 0, void 0, function () {
897
900
  var response;
898
901
  return __generator(this, function (_a) {
899
902
  switch (_a.label) {
900
- case 0: return [4 /*yield*/, this.installTemplateRaw({
901
- project: project, template: template,
902
- }, initOverrides)];
903
+ case 0: return [4 /*yield*/, this.installTemplateRaw(__assign({ project: project, template: template }, optionalParameters), initOverrides)];
903
904
  case 1:
904
905
  response = _a.sent();
905
906
  return [4 /*yield*/, response.value()];
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,6 +27,14 @@ export interface CreateProjectRequest {
27
27
  * @memberof CreateProjectRequest
28
28
  */
29
29
  template?: string;
30
+ /**
31
+ *
32
+ * @type {{ [key: string]: Array<string>; }}
33
+ * @memberof CreateProjectRequest
34
+ */
35
+ config?: {
36
+ [key: string]: Array<string>;
37
+ };
30
38
  }
31
39
  /**
32
40
  * Check if a given object implements the CreateProjectRequest interface.
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,6 +35,7 @@ function CreateProjectRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return {
36
36
  'name': json['name'],
37
37
  'template': !(0, runtime_1.exists)(json, 'template') ? undefined : json['template'],
38
+ 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
38
39
  };
39
40
  }
40
41
  exports.CreateProjectRequestFromJSONTyped = CreateProjectRequestFromJSONTyped;
@@ -48,6 +49,7 @@ function CreateProjectRequestToJSON(value) {
48
49
  return {
49
50
  'name': value.name,
50
51
  'template': value.template,
52
+ 'config': value.config,
51
53
  };
52
54
  }
53
55
  exports.CreateProjectRequestToJSON = CreateProjectRequestToJSON;
@@ -0,0 +1,33 @@
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.10.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
+ /**
13
+ *
14
+ * @export
15
+ * @interface InstallTemplateRequest
16
+ */
17
+ export interface InstallTemplateRequest {
18
+ /**
19
+ *
20
+ * @type {{ [key: string]: Array<string>; }}
21
+ * @memberof InstallTemplateRequest
22
+ */
23
+ config?: {
24
+ [key: string]: Array<string>;
25
+ };
26
+ }
27
+ /**
28
+ * Check if a given object implements the InstallTemplateRequest interface.
29
+ */
30
+ export declare function instanceOfInstallTemplateRequest(value: object): boolean;
31
+ export declare function InstallTemplateRequestFromJSON(json: any): InstallTemplateRequest;
32
+ export declare function InstallTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallTemplateRequest;
33
+ export declare function InstallTemplateRequestToJSON(value?: InstallTemplateRequest | null): any;
@@ -0,0 +1,50 @@
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.10.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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.InstallTemplateRequestToJSON = exports.InstallTemplateRequestFromJSONTyped = exports.InstallTemplateRequestFromJSON = exports.instanceOfInstallTemplateRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the InstallTemplateRequest interface.
20
+ */
21
+ function instanceOfInstallTemplateRequest(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfInstallTemplateRequest = instanceOfInstallTemplateRequest;
26
+ function InstallTemplateRequestFromJSON(json) {
27
+ return InstallTemplateRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.InstallTemplateRequestFromJSON = InstallTemplateRequestFromJSON;
30
+ function InstallTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'config': !(0, runtime_1.exists)(json, 'config') ? undefined : json['config'],
36
+ };
37
+ }
38
+ exports.InstallTemplateRequestFromJSONTyped = InstallTemplateRequestFromJSONTyped;
39
+ function InstallTemplateRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'config': value.config,
48
+ };
49
+ }
50
+ exports.InstallTemplateRequestToJSON = InstallTemplateRequestToJSON;
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,6 +1,7 @@
1
1
  export * from './ApiError';
2
2
  export * from './CreateInviteRequest';
3
3
  export * from './CreateProjectRequest';
4
+ export * from './InstallTemplateRequest';
4
5
  export * from './Integration';
5
6
  export * from './IntegrationsResponse';
6
7
  export * from './Project';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./ApiError"), exports);
20
20
  __exportStar(require("./CreateInviteRequest"), exports);
21
21
  __exportStar(require("./CreateProjectRequest"), exports);
22
+ __exportStar(require("./InstallTemplateRequest"), exports);
22
23
  __exportStar(require("./Integration"), exports);
23
24
  __exportStar(require("./IntegrationsResponse"), exports);
24
25
  __exportStar(require("./Project"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
4
4
  *
5
- * The version of the OpenAPI document: 1.9.0
5
+ * The version of the OpenAPI document: 1.10.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Projects API
6
6
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
7
7
  *
8
- * The version of the OpenAPI document: 1.9.0
8
+ * The version of the OpenAPI document: 1.10.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,6 +18,7 @@ import type {
18
18
  ApiError,
19
19
  CreateInviteRequest,
20
20
  CreateProjectRequest,
21
+ InstallTemplateRequest,
21
22
  Integration,
22
23
  IntegrationsResponse,
23
24
  Project,
@@ -34,6 +35,8 @@ import {
34
35
  CreateInviteRequestToJSON,
35
36
  CreateProjectRequestFromJSON,
36
37
  CreateProjectRequestToJSON,
38
+ InstallTemplateRequestFromJSON,
39
+ InstallTemplateRequestToJSON,
37
40
  IntegrationFromJSON,
38
41
  IntegrationToJSON,
39
42
  IntegrationsResponseFromJSON,
@@ -108,9 +111,10 @@ export interface InstallIntegrationRequest {
108
111
  integration: string;
109
112
  }
110
113
 
111
- export interface InstallTemplateRequest {
114
+ export interface InstallTemplateOperationRequest {
112
115
  project: string;
113
116
  template: string;
117
+ installTemplateRequest?: InstallTemplateRequest;
114
118
  }
115
119
 
116
120
  export interface SetupIntegrationOperationRequest {
@@ -786,7 +790,7 @@ export class ProjectsApi extends runtime.BaseAPI {
786
790
  * Install an integration template on the project
787
791
  * Install integration template
788
792
  */
789
- async installTemplateRaw(requestParameters: InstallTemplateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
793
+ async installTemplateRaw(requestParameters: InstallTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntegrationsResponse>> {
790
794
  if (requestParameters.project === null || requestParameters.project === undefined) {
791
795
  throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling installTemplate.');
792
796
  }
@@ -799,6 +803,8 @@ export class ProjectsApi extends runtime.BaseAPI {
799
803
 
800
804
  const headerParameters: runtime.HTTPHeaders = {};
801
805
 
806
+ headerParameters['Content-Type'] = 'application/json';
807
+
802
808
  if (this.configuration && this.configuration.accessToken) {
803
809
  // oauth required
804
810
  headerParameters["Authorization"] = await this.configuration.accessToken("session-oauth", []);
@@ -813,6 +819,7 @@ export class ProjectsApi extends runtime.BaseAPI {
813
819
  method: 'POST',
814
820
  headers: headerParameters,
815
821
  query: queryParameters,
822
+ body: InstallTemplateRequestToJSON(requestParameters.installTemplateRequest),
816
823
  }, initOverrides);
817
824
 
818
825
  return new runtime.JSONApiResponse(response, (jsonValue) => IntegrationsResponseFromJSON(jsonValue));
@@ -824,11 +831,13 @@ export class ProjectsApi extends runtime.BaseAPI {
824
831
  */
825
832
  async installTemplate(
826
833
  project: string, template: string,
834
+ optionalParameters: runtime.OptionalOnly<InstallTemplateOperationRequest> = {},
827
835
  initOverrides?: RequestInit | runtime.InitOverrideFunction
828
836
  ): Promise<IntegrationsResponse> {
829
837
  const response = await this.installTemplateRaw(
830
838
  {
831
839
  project: project,template: template,
840
+ ...optionalParameters,
832
841
  },
833
842
  initOverrides
834
843
  );
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,6 +31,12 @@ export interface CreateProjectRequest {
31
31
  * @memberof CreateProjectRequest
32
32
  */
33
33
  template?: string;
34
+ /**
35
+ *
36
+ * @type {{ [key: string]: Array<string>; }}
37
+ * @memberof CreateProjectRequest
38
+ */
39
+ config?: { [key: string]: Array<string>; };
34
40
  }
35
41
 
36
42
  /**
@@ -55,6 +61,7 @@ export function CreateProjectRequestFromJSONTyped(json: any, ignoreDiscriminator
55
61
 
56
62
  'name': json['name'],
57
63
  'template': !exists(json, 'template') ? undefined : json['template'],
64
+ 'config': !exists(json, 'config') ? undefined : json['config'],
58
65
  };
59
66
  }
60
67
 
@@ -69,6 +76,7 @@ export function CreateProjectRequestToJSON(value?: CreateProjectRequest | null):
69
76
 
70
77
  'name': value.name,
71
78
  'template': value.template,
79
+ 'config': value.config,
72
80
  };
73
81
  }
74
82
 
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Projects API
5
+ * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
+ *
7
+ * The version of the OpenAPI document: 1.10.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
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface InstallTemplateRequest
20
+ */
21
+ export interface InstallTemplateRequest {
22
+ /**
23
+ *
24
+ * @type {{ [key: string]: Array<string>; }}
25
+ * @memberof InstallTemplateRequest
26
+ */
27
+ config?: { [key: string]: Array<string>; };
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the InstallTemplateRequest interface.
32
+ */
33
+ export function instanceOfInstallTemplateRequest(value: object): boolean {
34
+ let isInstance = true;
35
+
36
+ return isInstance;
37
+ }
38
+
39
+ export function InstallTemplateRequestFromJSON(json: any): InstallTemplateRequest {
40
+ return InstallTemplateRequestFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function InstallTemplateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InstallTemplateRequest {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+
49
+ 'config': !exists(json, 'config') ? undefined : json['config'],
50
+ };
51
+ }
52
+
53
+ export function InstallTemplateRequestToJSON(value?: InstallTemplateRequest | null): any {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+
62
+ 'config': value.config,
63
+ };
64
+ }
65
+
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -3,6 +3,7 @@
3
3
  export * from './ApiError';
4
4
  export * from './CreateInviteRequest';
5
5
  export * from './CreateProjectRequest';
6
+ export * from './InstallTemplateRequest';
6
7
  export * from './Integration';
7
8
  export * from './IntegrationsResponse';
8
9
  export * from './Project';
package/src/runtime.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage Teemill Projects For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
6
6
  *
7
- * The version of the OpenAPI document: 1.9.0
7
+ * The version of the OpenAPI document: 1.10.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).