@teemill/projects 1.12.0 → 1.12.3

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 (117) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +2 -2
  4. package/dist/apis/ProjectsApi.d.ts +4 -4
  5. package/dist/apis/ProjectsApi.js +517 -927
  6. package/dist/esm/apis/ProjectsApi.d.ts +241 -0
  7. package/dist/esm/apis/ProjectsApi.js +701 -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/CreateInviteRequest.d.ts +31 -0
  15. package/dist/esm/models/CreateInviteRequest.js +40 -0
  16. package/dist/esm/models/CreateProjectRequest.d.ts +43 -0
  17. package/dist/esm/models/CreateProjectRequest.js +44 -0
  18. package/dist/esm/models/CreateUserRequest.d.ts +56 -0
  19. package/dist/esm/models/CreateUserRequest.js +55 -0
  20. package/dist/esm/models/CreateUserRequestAvatar.d.ts +31 -0
  21. package/dist/esm/models/CreateUserRequestAvatar.js +43 -0
  22. package/dist/esm/models/InstallTemplateRequest.d.ts +31 -0
  23. package/dist/esm/models/InstallTemplateRequest.js +38 -0
  24. package/dist/esm/models/Integration.d.ts +49 -0
  25. package/dist/esm/models/Integration.js +47 -0
  26. package/dist/esm/models/IntegrationInfo.d.ts +49 -0
  27. package/dist/esm/models/IntegrationInfo.js +52 -0
  28. package/dist/esm/models/IntegrationsResponse.d.ts +32 -0
  29. package/dist/esm/models/IntegrationsResponse.js +41 -0
  30. package/dist/esm/models/Project.d.ts +50 -0
  31. package/dist/esm/models/Project.js +49 -0
  32. package/dist/esm/models/ProjectInvite.d.ts +56 -0
  33. package/dist/esm/models/ProjectInvite.js +57 -0
  34. package/dist/esm/models/ProjectInvites.d.ts +38 -0
  35. package/dist/esm/models/ProjectInvites.js +45 -0
  36. package/dist/esm/models/ProjectLogo.d.ts +37 -0
  37. package/dist/esm/models/ProjectLogo.js +40 -0
  38. package/dist/esm/models/ProjectUser.d.ts +83 -0
  39. package/dist/esm/models/ProjectUser.js +75 -0
  40. package/dist/esm/models/ProjectUserAvatar.d.ts +31 -0
  41. package/dist/esm/models/ProjectUserAvatar.js +38 -0
  42. package/dist/esm/models/ProjectUsers.d.ts +38 -0
  43. package/dist/esm/models/ProjectUsers.js +45 -0
  44. package/dist/esm/models/ProjectsResponse.d.ts +32 -0
  45. package/dist/esm/models/ProjectsResponse.js +41 -0
  46. package/dist/esm/models/SetupIntegrationRequest.d.ts +31 -0
  47. package/dist/esm/models/SetupIntegrationRequest.js +40 -0
  48. package/dist/esm/models/UpdateProjectRequest.d.ts +31 -0
  49. package/dist/esm/models/UpdateProjectRequest.js +38 -0
  50. package/dist/esm/models/UpdateUserRequest.d.ts +56 -0
  51. package/dist/esm/models/UpdateUserRequest.js +52 -0
  52. package/dist/esm/models/UpdateUserRequestAvatar.d.ts +31 -0
  53. package/dist/esm/models/UpdateUserRequestAvatar.js +43 -0
  54. package/dist/esm/models/index.d.ts +16 -0
  55. package/dist/esm/models/index.js +18 -0
  56. package/dist/esm/runtime.d.ts +187 -0
  57. package/dist/esm/runtime.js +333 -0
  58. package/dist/models/ApiError.d.ts +1 -1
  59. package/dist/models/ApiError.js +1 -1
  60. package/dist/models/CreateInviteRequest.d.ts +1 -1
  61. package/dist/models/CreateInviteRequest.js +1 -1
  62. package/dist/models/CreateProjectRequest.d.ts +1 -1
  63. package/dist/models/CreateProjectRequest.js +1 -1
  64. package/dist/models/CreateUserRequest.js +3 -3
  65. package/dist/models/CreateUserRequestAvatar.js +2 -2
  66. package/dist/models/InstallTemplateRequest.d.ts +1 -1
  67. package/dist/models/InstallTemplateRequest.js +1 -1
  68. package/dist/models/Integration.d.ts +2 -2
  69. package/dist/models/Integration.js +1 -1
  70. package/dist/models/IntegrationInfo.js +1 -1
  71. package/dist/models/IntegrationsResponse.d.ts +1 -1
  72. package/dist/models/IntegrationsResponse.js +2 -2
  73. package/dist/models/Project.d.ts +2 -2
  74. package/dist/models/Project.js +3 -5
  75. package/dist/models/ProjectInvite.d.ts +1 -1
  76. package/dist/models/ProjectInvite.js +2 -2
  77. package/dist/models/ProjectInvites.d.ts +1 -1
  78. package/dist/models/ProjectInvites.js +2 -2
  79. package/dist/models/ProjectLogo.d.ts +1 -1
  80. package/dist/models/ProjectLogo.js +1 -1
  81. package/dist/models/ProjectUser.d.ts +7 -1
  82. package/dist/models/ProjectUser.js +6 -2
  83. package/dist/models/ProjectUserAvatar.d.ts +1 -1
  84. package/dist/models/ProjectUserAvatar.js +1 -1
  85. package/dist/models/ProjectUsers.d.ts +1 -1
  86. package/dist/models/ProjectUsers.js +2 -2
  87. package/dist/models/ProjectsResponse.d.ts +1 -1
  88. package/dist/models/ProjectsResponse.js +2 -2
  89. package/dist/models/SetupIntegrationRequest.d.ts +1 -1
  90. package/dist/models/SetupIntegrationRequest.js +1 -1
  91. package/dist/models/UpdateProjectRequest.d.ts +1 -1
  92. package/dist/models/UpdateProjectRequest.js +1 -1
  93. package/dist/models/UpdateUserRequest.js +3 -3
  94. package/dist/models/UpdateUserRequestAvatar.js +2 -2
  95. package/dist/runtime.d.ts +1 -1
  96. package/dist/runtime.js +223 -439
  97. package/package.json +4 -2
  98. package/src/apis/ProjectsApi.ts +6 -8
  99. package/src/models/ApiError.ts +1 -1
  100. package/src/models/CreateInviteRequest.ts +1 -1
  101. package/src/models/CreateProjectRequest.ts +1 -1
  102. package/src/models/InstallTemplateRequest.ts +1 -1
  103. package/src/models/Integration.ts +2 -2
  104. package/src/models/IntegrationsResponse.ts +1 -1
  105. package/src/models/Project.ts +3 -4
  106. package/src/models/ProjectInvite.ts +1 -1
  107. package/src/models/ProjectInvites.ts +1 -1
  108. package/src/models/ProjectLogo.ts +1 -1
  109. package/src/models/ProjectUser.ts +10 -1
  110. package/src/models/ProjectUserAvatar.ts +1 -1
  111. package/src/models/ProjectUsers.ts +1 -1
  112. package/src/models/ProjectsResponse.ts +1 -1
  113. package/src/models/SetupIntegrationRequest.ts +1 -1
  114. package/src/models/UpdateProjectRequest.ts +1 -1
  115. package/src/runtime.ts +1 -1
  116. package/tsconfig.esm.json +7 -0
  117. package/tsconfig.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.12.0",
3
+ "version": "1.12.3",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -9,8 +9,10 @@
9
9
  },
10
10
  "main": "./dist/index.js",
11
11
  "typings": "./dist/index.d.ts",
12
+ "module": "./dist/esm/index.js",
13
+ "sideEffects": false,
12
14
  "scripts": {
13
- "build": "tsc",
15
+ "build": "tsc && tsc -p tsconfig.esm.json",
14
16
  "prepare": "npm run build"
15
17
  },
16
18
  "devDependencies": {
@@ -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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -85,7 +85,7 @@ export interface GetIntegrationRequest {
85
85
 
86
86
  export interface GetIntegrationsRequest {
87
87
  project: string;
88
- withUninstalled?: boolean;
88
+ withUninstalled?: string;
89
89
  }
90
90
 
91
91
  export interface GetInvitesRequest {
@@ -302,7 +302,7 @@ export class ProjectsApi extends runtime.BaseAPI {
302
302
  * Delete a project
303
303
  * Delete project
304
304
  */
305
- async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Project>> {
305
+ async deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
306
306
  if (requestParameters.project === null || requestParameters.project === undefined) {
307
307
  throw new runtime.RequiredError('project','Required parameter requestParameters.project was null or undefined when calling deleteProject.');
308
308
  }
@@ -327,7 +327,7 @@ export class ProjectsApi extends runtime.BaseAPI {
327
327
  query: queryParameters,
328
328
  }, initOverrides);
329
329
 
330
- return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFromJSON(jsonValue));
330
+ return new runtime.VoidApiResponse(response);
331
331
  }
332
332
 
333
333
  /**
@@ -337,15 +337,13 @@ export class ProjectsApi extends runtime.BaseAPI {
337
337
  async deleteProject(
338
338
  project: string,
339
339
  initOverrides?: RequestInit | runtime.InitOverrideFunction
340
- ): Promise<Project> {
341
- const response = await this.deleteProjectRaw(
340
+ ): Promise<void> {
341
+ await this.deleteProjectRaw(
342
342
  {
343
343
  project: project,
344
344
  },
345
345
  initOverrides
346
346
  );
347
-
348
- return await response.value();
349
347
  }
350
348
 
351
349
  /**
@@ -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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -71,7 +71,7 @@ export function IntegrationFromJSONTyped(json: any, ignoreDiscriminator: boolean
71
71
  };
72
72
  }
73
73
 
74
- export function IntegrationToJSON(value?: Integration | null): any {
74
+ export function IntegrationToJSON(value?: Omit<Integration, 'id'> | null): any {
75
75
  if (value == null) {
76
76
  return value;
77
77
  }
@@ -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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -43,7 +43,7 @@ export interface Project {
43
43
  * @type {ProjectLogo}
44
44
  * @memberof Project
45
45
  */
46
- logo: ProjectLogo;
46
+ logo?: ProjectLogo;
47
47
  /**
48
48
  *
49
49
  * @type {Array<string>}
@@ -58,7 +58,6 @@ export interface Project {
58
58
  export function instanceOfProject(value: object): boolean {
59
59
  if (!('id' in value)) return false;
60
60
  if (!('name' in value)) return false;
61
- if (!('logo' in value)) return false;
62
61
  return true;
63
62
  }
64
63
 
@@ -74,7 +73,7 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
74
73
 
75
74
  'id': json['id'],
76
75
  'name': json['name'],
77
- 'logo': ProjectLogoFromJSON(json['logo']),
76
+ 'logo': json['logo'] == null ? undefined : ProjectLogoFromJSON(json['logo']),
78
77
  'integrations': json['integrations'] == null ? undefined : json['integrations'],
79
78
  };
80
79
  }
@@ -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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -32,6 +32,12 @@ export interface ProjectUser {
32
32
  * @memberof ProjectUser
33
33
  */
34
34
  id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ProjectUser
39
+ */
40
+ userRef: string;
35
41
  /**
36
42
  *
37
43
  * @type {string}
@@ -87,6 +93,7 @@ export type ProjectUserTypeEnum = typeof ProjectUserTypeEnum[keyof typeof Projec
87
93
  */
88
94
  export function instanceOfProjectUser(value: object): boolean {
89
95
  if (!('id' in value)) return false;
96
+ if (!('userRef' in value)) return false;
90
97
  if (!('firstName' in value)) return false;
91
98
  if (!('lastName' in value)) return false;
92
99
  if (!('username' in value)) return false;
@@ -106,6 +113,7 @@ export function ProjectUserFromJSONTyped(json: any, ignoreDiscriminator: boolean
106
113
  return {
107
114
 
108
115
  'id': json['id'],
116
+ 'userRef': json['userRef'],
109
117
  'type': json['type'] == null ? undefined : json['type'],
110
118
  'firstName': json['firstName'],
111
119
  'lastName': json['lastName'],
@@ -122,6 +130,7 @@ export function ProjectUserToJSON(value?: ProjectUser | null): any {
122
130
  return {
123
131
 
124
132
  'id': value['id'],
133
+ 'userRef': value['userRef'],
125
134
  'type': value['type'],
126
135
  'firstName': value['firstName'],
127
136
  'lastName': value['lastName'],
@@ -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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
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.12.0
7
+ * The version of the OpenAPI document: 1.12.3
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }
package/tsconfig.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "declaration": true,
4
- "target": "es5",
4
+ "target": "es6",
5
5
  "module": "commonjs",
6
6
  "moduleResolution": "node",
7
7
  "outDir": "dist",
8
8
  "lib": [
9
- "es6",
9
+ "esnext",
10
10
  "dom"
11
11
  ],
12
12
  "typeRoots": [