@teemill/projects 1.18.0 → 1.19.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @teemill/projects@1.18.0
1
+ ## @teemill/projects@1.19.0
2
2
 
3
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:
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.18.0 --save
39
+ npm install @teemill/projects@1.19.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -437,13 +437,13 @@ export interface ProjectsResponse {
437
437
  /**
438
438
  *
439
439
  * @export
440
- * @interface SetupIntegrationRequest
440
+ * @interface UpdateIntegrationRequest
441
441
  */
442
- export interface SetupIntegrationRequest {
442
+ export interface UpdateIntegrationRequest {
443
443
  /**
444
444
  *
445
445
  * @type {object}
446
- * @memberof SetupIntegrationRequest
446
+ * @memberof UpdateIntegrationRequest
447
447
  */
448
448
  'config': object;
449
449
  }
@@ -1121,17 +1121,17 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
1121
1121
  * @summary Setup integration
1122
1122
  * @param {string} project Projects unique identifier
1123
1123
  * @param {string} integration Integrations unique code
1124
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
1124
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
1125
1125
  * @param {*} [options] Override http request option.
1126
1126
  * @throws {RequiredError}
1127
1127
  */
1128
- setupIntegration: async (project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1128
+ setupIntegration: async (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1129
1129
  // verify required parameter 'project' is not null or undefined
1130
1130
  assertParamExists('setupIntegration', 'project', project)
1131
1131
  // verify required parameter 'integration' is not null or undefined
1132
1132
  assertParamExists('setupIntegration', 'integration', integration)
1133
- // verify required parameter 'setupIntegrationRequest' is not null or undefined
1134
- assertParamExists('setupIntegration', 'setupIntegrationRequest', setupIntegrationRequest)
1133
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
1134
+ assertParamExists('setupIntegration', 'updateIntegrationRequest', updateIntegrationRequest)
1135
1135
  const localVarPath = `/v1/projects/{project}/integrations/{integration}/setup`
1136
1136
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1137
1137
  .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
@@ -1160,7 +1160,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
1160
1160
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1161
1161
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1162
1162
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1163
- localVarRequestOptions.data = serializeDataIfNeeded(setupIntegrationRequest, localVarRequestOptions, configuration)
1163
+ localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationRequest, localVarRequestOptions, configuration)
1164
1164
 
1165
1165
  return {
1166
1166
  url: toPathString(localVarUrlObj),
@@ -1212,6 +1212,57 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
1212
1212
  options: localVarRequestOptions,
1213
1213
  };
1214
1214
  },
1215
+ /**
1216
+ * Update an integration on the project
1217
+ * @summary Update integration
1218
+ * @param {string} project Projects unique identifier
1219
+ * @param {string} integration Integrations unique code
1220
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
1221
+ * @param {*} [options] Override http request option.
1222
+ * @throws {RequiredError}
1223
+ */
1224
+ updateIntegration: async (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1225
+ // verify required parameter 'project' is not null or undefined
1226
+ assertParamExists('updateIntegration', 'project', project)
1227
+ // verify required parameter 'integration' is not null or undefined
1228
+ assertParamExists('updateIntegration', 'integration', integration)
1229
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
1230
+ assertParamExists('updateIntegration', 'updateIntegrationRequest', updateIntegrationRequest)
1231
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
1232
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1233
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
1234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1235
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1236
+ let baseOptions;
1237
+ if (configuration) {
1238
+ baseOptions = configuration.baseOptions;
1239
+ }
1240
+
1241
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1242
+ const localVarHeaderParameter = {} as any;
1243
+ const localVarQueryParameter = {} as any;
1244
+
1245
+ // authentication session-oauth required
1246
+ // oauth required
1247
+ await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
1248
+
1249
+ // authentication api-key required
1250
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1251
+
1252
+
1253
+
1254
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1255
+
1256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1259
+ localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationRequest, localVarRequestOptions, configuration)
1260
+
1261
+ return {
1262
+ url: toPathString(localVarUrlObj),
1263
+ options: localVarRequestOptions,
1264
+ };
1265
+ },
1215
1266
  /**
1216
1267
  * Update a project
1217
1268
  * @summary Update project
@@ -1470,12 +1521,12 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
1470
1521
  * @summary Setup integration
1471
1522
  * @param {string} project Projects unique identifier
1472
1523
  * @param {string} integration Integrations unique code
1473
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
1524
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
1474
1525
  * @param {*} [options] Override http request option.
1475
1526
  * @throws {RequiredError}
1476
1527
  */
1477
- async setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1478
- const localVarAxiosArgs = await localVarAxiosParamCreator.setupIntegration(project, integration, setupIntegrationRequest, options);
1528
+ async setupIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1529
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setupIntegration(project, integration, updateIntegrationRequest, options);
1479
1530
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1480
1531
  const localVarOperationServerBasePath = operationServerMap['ProjectsApi.setupIntegration']?.[localVarOperationServerIndex]?.url;
1481
1532
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1494,6 +1545,21 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
1494
1545
  const localVarOperationServerBasePath = operationServerMap['ProjectsApi.uninstallIntegration']?.[localVarOperationServerIndex]?.url;
1495
1546
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1496
1547
  },
1548
+ /**
1549
+ * Update an integration on the project
1550
+ * @summary Update integration
1551
+ * @param {string} project Projects unique identifier
1552
+ * @param {string} integration Integrations unique code
1553
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
1554
+ * @param {*} [options] Override http request option.
1555
+ * @throws {RequiredError}
1556
+ */
1557
+ async updateIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>> {
1558
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateIntegration(project, integration, updateIntegrationRequest, options);
1559
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1560
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.updateIntegration']?.[localVarOperationServerIndex]?.url;
1561
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1562
+ },
1497
1563
  /**
1498
1564
  * Update a project
1499
1565
  * @summary Update project
@@ -1665,7 +1731,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
1665
1731
  * @throws {RequiredError}
1666
1732
  */
1667
1733
  setupIntegration(requestParameters: ProjectsApiSetupIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration> {
1668
- return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(axios, basePath));
1734
+ return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1669
1735
  },
1670
1736
  /**
1671
1737
  * Uninstall a projects integration
@@ -1677,6 +1743,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
1677
1743
  uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1678
1744
  return localVarFp.uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1679
1745
  },
1746
+ /**
1747
+ * Update an integration on the project
1748
+ * @summary Update integration
1749
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1750
+ * @param {*} [options] Override http request option.
1751
+ * @throws {RequiredError}
1752
+ */
1753
+ updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration> {
1754
+ return localVarFp.updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1755
+ },
1680
1756
  /**
1681
1757
  * Update a project
1682
1758
  * @summary Update project
@@ -1999,10 +2075,10 @@ export interface ProjectsApiSetupIntegrationRequest {
1999
2075
 
2000
2076
  /**
2001
2077
  * Request body to setup integration
2002
- * @type {SetupIntegrationRequest}
2078
+ * @type {UpdateIntegrationRequest}
2003
2079
  * @memberof ProjectsApiSetupIntegration
2004
2080
  */
2005
- readonly setupIntegrationRequest: SetupIntegrationRequest
2081
+ readonly updateIntegrationRequest: UpdateIntegrationRequest
2006
2082
  }
2007
2083
 
2008
2084
  /**
@@ -2026,6 +2102,34 @@ export interface ProjectsApiUninstallIntegrationRequest {
2026
2102
  readonly integration: string
2027
2103
  }
2028
2104
 
2105
+ /**
2106
+ * Request parameters for updateIntegration operation in ProjectsApi.
2107
+ * @export
2108
+ * @interface ProjectsApiUpdateIntegrationRequest
2109
+ */
2110
+ export interface ProjectsApiUpdateIntegrationRequest {
2111
+ /**
2112
+ * Projects unique identifier
2113
+ * @type {string}
2114
+ * @memberof ProjectsApiUpdateIntegration
2115
+ */
2116
+ readonly project: string
2117
+
2118
+ /**
2119
+ * Integrations unique code
2120
+ * @type {string}
2121
+ * @memberof ProjectsApiUpdateIntegration
2122
+ */
2123
+ readonly integration: string
2124
+
2125
+ /**
2126
+ * Request body to update an integration
2127
+ * @type {UpdateIntegrationRequest}
2128
+ * @memberof ProjectsApiUpdateIntegration
2129
+ */
2130
+ readonly updateIntegrationRequest: UpdateIntegrationRequest
2131
+ }
2132
+
2029
2133
  /**
2030
2134
  * Request parameters for updateProject operation in ProjectsApi.
2031
2135
  * @export
@@ -2230,7 +2334,7 @@ export class ProjectsApi extends BaseAPI {
2230
2334
  * @memberof ProjectsApi
2231
2335
  */
2232
2336
  public setupIntegration(requestParameters: ProjectsApiSetupIntegrationRequest, options?: RawAxiosRequestConfig) {
2233
- return ProjectsApiFp(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
2337
+ return ProjectsApiFp(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
2234
2338
  }
2235
2339
 
2236
2340
  /**
@@ -2245,6 +2349,18 @@ export class ProjectsApi extends BaseAPI {
2245
2349
  return ProjectsApiFp(this.configuration).uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
2246
2350
  }
2247
2351
 
2352
+ /**
2353
+ * Update an integration on the project
2354
+ * @summary Update integration
2355
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
2356
+ * @param {*} [options] Override http request option.
2357
+ * @throws {RequiredError}
2358
+ * @memberof ProjectsApi
2359
+ */
2360
+ public updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig) {
2361
+ return ProjectsApiFp(this.configuration).updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
2362
+ }
2363
+
2248
2364
  /**
2249
2365
  * Update a project
2250
2366
  * @summary Update project
package/base.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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.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.18.0
5
+ * The version of the OpenAPI document: 1.19.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -426,13 +426,13 @@ export interface ProjectsResponse {
426
426
  /**
427
427
  *
428
428
  * @export
429
- * @interface SetupIntegrationRequest
429
+ * @interface UpdateIntegrationRequest
430
430
  */
431
- export interface SetupIntegrationRequest {
431
+ export interface UpdateIntegrationRequest {
432
432
  /**
433
433
  *
434
434
  * @type {object}
435
- * @memberof SetupIntegrationRequest
435
+ * @memberof UpdateIntegrationRequest
436
436
  */
437
437
  'config': object;
438
438
  }
@@ -591,11 +591,11 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
591
591
  * @summary Setup integration
592
592
  * @param {string} project Projects unique identifier
593
593
  * @param {string} integration Integrations unique code
594
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
594
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
595
595
  * @param {*} [options] Override http request option.
596
596
  * @throws {RequiredError}
597
597
  */
598
- setupIntegration: (project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
598
+ setupIntegration: (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
599
599
  /**
600
600
  * Uninstall a projects integration
601
601
  * @summary Uninstall integration
@@ -605,6 +605,16 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
605
605
  * @throws {RequiredError}
606
606
  */
607
607
  uninstallIntegration: (project: string, integration: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
608
+ /**
609
+ * Update an integration on the project
610
+ * @summary Update integration
611
+ * @param {string} project Projects unique identifier
612
+ * @param {string} integration Integrations unique code
613
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ updateIntegration: (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
608
618
  /**
609
619
  * Update a project
610
620
  * @summary Update project
@@ -751,11 +761,11 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
751
761
  * @summary Setup integration
752
762
  * @param {string} project Projects unique identifier
753
763
  * @param {string} integration Integrations unique code
754
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
764
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
755
765
  * @param {*} [options] Override http request option.
756
766
  * @throws {RequiredError}
757
767
  */
758
- setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
768
+ setupIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
759
769
  /**
760
770
  * Uninstall a projects integration
761
771
  * @summary Uninstall integration
@@ -765,6 +775,16 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
765
775
  * @throws {RequiredError}
766
776
  */
767
777
  uninstallIntegration(project: string, integration: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
778
+ /**
779
+ * Update an integration on the project
780
+ * @summary Update integration
781
+ * @param {string} project Projects unique identifier
782
+ * @param {string} integration Integrations unique code
783
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ updateIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
768
788
  /**
769
789
  * Update a project
770
790
  * @summary Update project
@@ -907,6 +927,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
907
927
  * @throws {RequiredError}
908
928
  */
909
929
  uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
930
+ /**
931
+ * Update an integration on the project
932
+ * @summary Update integration
933
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration>;
910
938
  /**
911
939
  * Update a project
912
940
  * @summary Update project
@@ -1195,10 +1223,10 @@ export interface ProjectsApiSetupIntegrationRequest {
1195
1223
  readonly integration: string;
1196
1224
  /**
1197
1225
  * Request body to setup integration
1198
- * @type {SetupIntegrationRequest}
1226
+ * @type {UpdateIntegrationRequest}
1199
1227
  * @memberof ProjectsApiSetupIntegration
1200
1228
  */
1201
- readonly setupIntegrationRequest: SetupIntegrationRequest;
1229
+ readonly updateIntegrationRequest: UpdateIntegrationRequest;
1202
1230
  }
1203
1231
  /**
1204
1232
  * Request parameters for uninstallIntegration operation in ProjectsApi.
@@ -1219,6 +1247,31 @@ export interface ProjectsApiUninstallIntegrationRequest {
1219
1247
  */
1220
1248
  readonly integration: string;
1221
1249
  }
1250
+ /**
1251
+ * Request parameters for updateIntegration operation in ProjectsApi.
1252
+ * @export
1253
+ * @interface ProjectsApiUpdateIntegrationRequest
1254
+ */
1255
+ export interface ProjectsApiUpdateIntegrationRequest {
1256
+ /**
1257
+ * Projects unique identifier
1258
+ * @type {string}
1259
+ * @memberof ProjectsApiUpdateIntegration
1260
+ */
1261
+ readonly project: string;
1262
+ /**
1263
+ * Integrations unique code
1264
+ * @type {string}
1265
+ * @memberof ProjectsApiUpdateIntegration
1266
+ */
1267
+ readonly integration: string;
1268
+ /**
1269
+ * Request body to update an integration
1270
+ * @type {UpdateIntegrationRequest}
1271
+ * @memberof ProjectsApiUpdateIntegration
1272
+ */
1273
+ readonly updateIntegrationRequest: UpdateIntegrationRequest;
1274
+ }
1222
1275
  /**
1223
1276
  * Request parameters for updateProject operation in ProjectsApi.
1224
1277
  * @export
@@ -1388,6 +1441,15 @@ export declare class ProjectsApi extends BaseAPI {
1388
1441
  * @memberof ProjectsApi
1389
1442
  */
1390
1443
  uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1444
+ /**
1445
+ * Update an integration on the project
1446
+ * @summary Update integration
1447
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1448
+ * @param {*} [options] Override http request option.
1449
+ * @throws {RequiredError}
1450
+ * @memberof ProjectsApi
1451
+ */
1452
+ updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Integration, any>>;
1391
1453
  /**
1392
1454
  * Update a project
1393
1455
  * @summary Update project
package/dist/api.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.18.0
8
+ * The version of the OpenAPI document: 1.19.0
9
9
  * Contact: hello@teemill.com
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -580,17 +580,17 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
580
580
  * @summary Setup integration
581
581
  * @param {string} project Projects unique identifier
582
582
  * @param {string} integration Integrations unique code
583
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
583
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
584
584
  * @param {*} [options] Override http request option.
585
585
  * @throws {RequiredError}
586
586
  */
587
- setupIntegration: (project_1, integration_1, setupIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, setupIntegrationRequest_1, ...args_1], void 0, function* (project, integration, setupIntegrationRequest, options = {}) {
587
+ setupIntegration: (project_1, integration_1, updateIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, updateIntegrationRequest_1, ...args_1], void 0, function* (project, integration, updateIntegrationRequest, options = {}) {
588
588
  // verify required parameter 'project' is not null or undefined
589
589
  (0, common_1.assertParamExists)('setupIntegration', 'project', project);
590
590
  // verify required parameter 'integration' is not null or undefined
591
591
  (0, common_1.assertParamExists)('setupIntegration', 'integration', integration);
592
- // verify required parameter 'setupIntegrationRequest' is not null or undefined
593
- (0, common_1.assertParamExists)('setupIntegration', 'setupIntegrationRequest', setupIntegrationRequest);
592
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
593
+ (0, common_1.assertParamExists)('setupIntegration', 'updateIntegrationRequest', updateIntegrationRequest);
594
594
  const localVarPath = `/v1/projects/{project}/integrations/{integration}/setup`
595
595
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
596
596
  .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
@@ -612,7 +612,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
612
612
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
613
613
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
614
614
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
615
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setupIntegrationRequest, localVarRequestOptions, configuration);
615
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateIntegrationRequest, localVarRequestOptions, configuration);
616
616
  return {
617
617
  url: (0, common_1.toPathString)(localVarUrlObj),
618
618
  options: localVarRequestOptions,
@@ -656,6 +656,49 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
656
656
  options: localVarRequestOptions,
657
657
  };
658
658
  }),
659
+ /**
660
+ * Update an integration on the project
661
+ * @summary Update integration
662
+ * @param {string} project Projects unique identifier
663
+ * @param {string} integration Integrations unique code
664
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ updateIntegration: (project_1, integration_1, updateIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, updateIntegrationRequest_1, ...args_1], void 0, function* (project, integration, updateIntegrationRequest, options = {}) {
669
+ // verify required parameter 'project' is not null or undefined
670
+ (0, common_1.assertParamExists)('updateIntegration', 'project', project);
671
+ // verify required parameter 'integration' is not null or undefined
672
+ (0, common_1.assertParamExists)('updateIntegration', 'integration', integration);
673
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
674
+ (0, common_1.assertParamExists)('updateIntegration', 'updateIntegrationRequest', updateIntegrationRequest);
675
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
676
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
677
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
678
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
679
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
680
+ let baseOptions;
681
+ if (configuration) {
682
+ baseOptions = configuration.baseOptions;
683
+ }
684
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
685
+ const localVarHeaderParameter = {};
686
+ const localVarQueryParameter = {};
687
+ // authentication session-oauth required
688
+ // oauth required
689
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
690
+ // authentication api-key required
691
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
692
+ localVarHeaderParameter['Content-Type'] = 'application/json';
693
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
694
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
695
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
696
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateIntegrationRequest, localVarRequestOptions, configuration);
697
+ return {
698
+ url: (0, common_1.toPathString)(localVarUrlObj),
699
+ options: localVarRequestOptions,
700
+ };
701
+ }),
659
702
  /**
660
703
  * Update a project
661
704
  * @summary Update project
@@ -948,14 +991,14 @@ const ProjectsApiFp = function (configuration) {
948
991
  * @summary Setup integration
949
992
  * @param {string} project Projects unique identifier
950
993
  * @param {string} integration Integrations unique code
951
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
994
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
952
995
  * @param {*} [options] Override http request option.
953
996
  * @throws {RequiredError}
954
997
  */
955
- setupIntegration(project, integration, setupIntegrationRequest, options) {
998
+ setupIntegration(project, integration, updateIntegrationRequest, options) {
956
999
  return __awaiter(this, void 0, void 0, function* () {
957
1000
  var _a, _b, _c;
958
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setupIntegration(project, integration, setupIntegrationRequest, options);
1001
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setupIntegration(project, integration, updateIntegrationRequest, options);
959
1002
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
960
1003
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.setupIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
961
1004
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -978,6 +1021,24 @@ const ProjectsApiFp = function (configuration) {
978
1021
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
979
1022
  });
980
1023
  },
1024
+ /**
1025
+ * Update an integration on the project
1026
+ * @summary Update integration
1027
+ * @param {string} project Projects unique identifier
1028
+ * @param {string} integration Integrations unique code
1029
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ updateIntegration(project, integration, updateIntegrationRequest, options) {
1034
+ return __awaiter(this, void 0, void 0, function* () {
1035
+ var _a, _b, _c;
1036
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateIntegration(project, integration, updateIntegrationRequest, options);
1037
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1038
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.updateIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1039
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1040
+ });
1041
+ },
981
1042
  /**
982
1043
  * Update a project
983
1044
  * @summary Update project
@@ -1152,7 +1213,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
1152
1213
  * @throws {RequiredError}
1153
1214
  */
1154
1215
  setupIntegration(requestParameters, options) {
1155
- return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(axios, basePath));
1216
+ return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1156
1217
  },
1157
1218
  /**
1158
1219
  * Uninstall a projects integration
@@ -1164,6 +1225,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
1164
1225
  uninstallIntegration(requestParameters, options) {
1165
1226
  return localVarFp.uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1166
1227
  },
1228
+ /**
1229
+ * Update an integration on the project
1230
+ * @summary Update integration
1231
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1232
+ * @param {*} [options] Override http request option.
1233
+ * @throws {RequiredError}
1234
+ */
1235
+ updateIntegration(requestParameters, options) {
1236
+ return localVarFp.updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1237
+ },
1167
1238
  /**
1168
1239
  * Update a project
1169
1240
  * @summary Update project
@@ -1346,7 +1417,7 @@ class ProjectsApi extends base_1.BaseAPI {
1346
1417
  * @memberof ProjectsApi
1347
1418
  */
1348
1419
  setupIntegration(requestParameters, options) {
1349
- return (0, exports.ProjectsApiFp)(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1420
+ return (0, exports.ProjectsApiFp)(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1350
1421
  }
1351
1422
  /**
1352
1423
  * Uninstall a projects integration
@@ -1359,6 +1430,17 @@ class ProjectsApi extends base_1.BaseAPI {
1359
1430
  uninstallIntegration(requestParameters, options) {
1360
1431
  return (0, exports.ProjectsApiFp)(this.configuration).uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
1361
1432
  }
1433
+ /**
1434
+ * Update an integration on the project
1435
+ * @summary Update integration
1436
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ * @memberof ProjectsApi
1440
+ */
1441
+ updateIntegration(requestParameters, options) {
1442
+ return (0, exports.ProjectsApiFp)(this.configuration).updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1443
+ }
1362
1444
  /**
1363
1445
  * Update a project
1364
1446
  * @summary Update project
package/dist/base.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.18.0
5
+ * The version of the OpenAPI document: 1.19.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/base.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.18.0
8
+ * The version of the OpenAPI document: 1.19.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/dist/common.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.18.0
5
+ * The version of the OpenAPI document: 1.19.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/common.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.18.0
8
+ * The version of the OpenAPI document: 1.19.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.18.0
5
+ * The version of the OpenAPI document: 1.19.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.18.0
8
+ * The version of the OpenAPI document: 1.19.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/dist/esm/api.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.18.0
5
+ * The version of the OpenAPI document: 1.19.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -426,13 +426,13 @@ export interface ProjectsResponse {
426
426
  /**
427
427
  *
428
428
  * @export
429
- * @interface SetupIntegrationRequest
429
+ * @interface UpdateIntegrationRequest
430
430
  */
431
- export interface SetupIntegrationRequest {
431
+ export interface UpdateIntegrationRequest {
432
432
  /**
433
433
  *
434
434
  * @type {object}
435
- * @memberof SetupIntegrationRequest
435
+ * @memberof UpdateIntegrationRequest
436
436
  */
437
437
  'config': object;
438
438
  }
@@ -591,11 +591,11 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
591
591
  * @summary Setup integration
592
592
  * @param {string} project Projects unique identifier
593
593
  * @param {string} integration Integrations unique code
594
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
594
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
595
595
  * @param {*} [options] Override http request option.
596
596
  * @throws {RequiredError}
597
597
  */
598
- setupIntegration: (project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
598
+ setupIntegration: (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
599
599
  /**
600
600
  * Uninstall a projects integration
601
601
  * @summary Uninstall integration
@@ -605,6 +605,16 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
605
605
  * @throws {RequiredError}
606
606
  */
607
607
  uninstallIntegration: (project: string, integration: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
608
+ /**
609
+ * Update an integration on the project
610
+ * @summary Update integration
611
+ * @param {string} project Projects unique identifier
612
+ * @param {string} integration Integrations unique code
613
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ updateIntegration: (project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
608
618
  /**
609
619
  * Update a project
610
620
  * @summary Update project
@@ -751,11 +761,11 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
751
761
  * @summary Setup integration
752
762
  * @param {string} project Projects unique identifier
753
763
  * @param {string} integration Integrations unique code
754
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
764
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
755
765
  * @param {*} [options] Override http request option.
756
766
  * @throws {RequiredError}
757
767
  */
758
- setupIntegration(project: string, integration: string, setupIntegrationRequest: SetupIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
768
+ setupIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
759
769
  /**
760
770
  * Uninstall a projects integration
761
771
  * @summary Uninstall integration
@@ -765,6 +775,16 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
765
775
  * @throws {RequiredError}
766
776
  */
767
777
  uninstallIntegration(project: string, integration: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
778
+ /**
779
+ * Update an integration on the project
780
+ * @summary Update integration
781
+ * @param {string} project Projects unique identifier
782
+ * @param {string} integration Integrations unique code
783
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ updateIntegration(project: string, integration: string, updateIntegrationRequest: UpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Integration>>;
768
788
  /**
769
789
  * Update a project
770
790
  * @summary Update project
@@ -907,6 +927,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
907
927
  * @throws {RequiredError}
908
928
  */
909
929
  uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
930
+ /**
931
+ * Update an integration on the project
932
+ * @summary Update integration
933
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
934
+ * @param {*} [options] Override http request option.
935
+ * @throws {RequiredError}
936
+ */
937
+ updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): AxiosPromise<Integration>;
910
938
  /**
911
939
  * Update a project
912
940
  * @summary Update project
@@ -1195,10 +1223,10 @@ export interface ProjectsApiSetupIntegrationRequest {
1195
1223
  readonly integration: string;
1196
1224
  /**
1197
1225
  * Request body to setup integration
1198
- * @type {SetupIntegrationRequest}
1226
+ * @type {UpdateIntegrationRequest}
1199
1227
  * @memberof ProjectsApiSetupIntegration
1200
1228
  */
1201
- readonly setupIntegrationRequest: SetupIntegrationRequest;
1229
+ readonly updateIntegrationRequest: UpdateIntegrationRequest;
1202
1230
  }
1203
1231
  /**
1204
1232
  * Request parameters for uninstallIntegration operation in ProjectsApi.
@@ -1219,6 +1247,31 @@ export interface ProjectsApiUninstallIntegrationRequest {
1219
1247
  */
1220
1248
  readonly integration: string;
1221
1249
  }
1250
+ /**
1251
+ * Request parameters for updateIntegration operation in ProjectsApi.
1252
+ * @export
1253
+ * @interface ProjectsApiUpdateIntegrationRequest
1254
+ */
1255
+ export interface ProjectsApiUpdateIntegrationRequest {
1256
+ /**
1257
+ * Projects unique identifier
1258
+ * @type {string}
1259
+ * @memberof ProjectsApiUpdateIntegration
1260
+ */
1261
+ readonly project: string;
1262
+ /**
1263
+ * Integrations unique code
1264
+ * @type {string}
1265
+ * @memberof ProjectsApiUpdateIntegration
1266
+ */
1267
+ readonly integration: string;
1268
+ /**
1269
+ * Request body to update an integration
1270
+ * @type {UpdateIntegrationRequest}
1271
+ * @memberof ProjectsApiUpdateIntegration
1272
+ */
1273
+ readonly updateIntegrationRequest: UpdateIntegrationRequest;
1274
+ }
1222
1275
  /**
1223
1276
  * Request parameters for updateProject operation in ProjectsApi.
1224
1277
  * @export
@@ -1388,6 +1441,15 @@ export declare class ProjectsApi extends BaseAPI {
1388
1441
  * @memberof ProjectsApi
1389
1442
  */
1390
1443
  uninstallIntegration(requestParameters: ProjectsApiUninstallIntegrationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1444
+ /**
1445
+ * Update an integration on the project
1446
+ * @summary Update integration
1447
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1448
+ * @param {*} [options] Override http request option.
1449
+ * @throws {RequiredError}
1450
+ * @memberof ProjectsApi
1451
+ */
1452
+ updateIntegration(requestParameters: ProjectsApiUpdateIntegrationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Integration, any>>;
1391
1453
  /**
1392
1454
  * Update a project
1393
1455
  * @summary Update project
package/dist/esm/api.js 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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -577,17 +577,17 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
577
577
  * @summary Setup integration
578
578
  * @param {string} project Projects unique identifier
579
579
  * @param {string} integration Integrations unique code
580
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
580
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
581
581
  * @param {*} [options] Override http request option.
582
582
  * @throws {RequiredError}
583
583
  */
584
- setupIntegration: (project_1, integration_1, setupIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, setupIntegrationRequest_1, ...args_1], void 0, function* (project, integration, setupIntegrationRequest, options = {}) {
584
+ setupIntegration: (project_1, integration_1, updateIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, updateIntegrationRequest_1, ...args_1], void 0, function* (project, integration, updateIntegrationRequest, options = {}) {
585
585
  // verify required parameter 'project' is not null or undefined
586
586
  assertParamExists('setupIntegration', 'project', project);
587
587
  // verify required parameter 'integration' is not null or undefined
588
588
  assertParamExists('setupIntegration', 'integration', integration);
589
- // verify required parameter 'setupIntegrationRequest' is not null or undefined
590
- assertParamExists('setupIntegration', 'setupIntegrationRequest', setupIntegrationRequest);
589
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
590
+ assertParamExists('setupIntegration', 'updateIntegrationRequest', updateIntegrationRequest);
591
591
  const localVarPath = `/v1/projects/{project}/integrations/{integration}/setup`
592
592
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
593
593
  .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
@@ -609,7 +609,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
609
609
  setSearchParams(localVarUrlObj, localVarQueryParameter);
610
610
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
611
611
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
612
- localVarRequestOptions.data = serializeDataIfNeeded(setupIntegrationRequest, localVarRequestOptions, configuration);
612
+ localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationRequest, localVarRequestOptions, configuration);
613
613
  return {
614
614
  url: toPathString(localVarUrlObj),
615
615
  options: localVarRequestOptions,
@@ -653,6 +653,49 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
653
653
  options: localVarRequestOptions,
654
654
  };
655
655
  }),
656
+ /**
657
+ * Update an integration on the project
658
+ * @summary Update integration
659
+ * @param {string} project Projects unique identifier
660
+ * @param {string} integration Integrations unique code
661
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ */
665
+ updateIntegration: (project_1, integration_1, updateIntegrationRequest_1, ...args_1) => __awaiter(this, [project_1, integration_1, updateIntegrationRequest_1, ...args_1], void 0, function* (project, integration, updateIntegrationRequest, options = {}) {
666
+ // verify required parameter 'project' is not null or undefined
667
+ assertParamExists('updateIntegration', 'project', project);
668
+ // verify required parameter 'integration' is not null or undefined
669
+ assertParamExists('updateIntegration', 'integration', integration);
670
+ // verify required parameter 'updateIntegrationRequest' is not null or undefined
671
+ assertParamExists('updateIntegration', 'updateIntegrationRequest', updateIntegrationRequest);
672
+ const localVarPath = `/v1/projects/{project}/integrations/{integration}`
673
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
674
+ .replace(`{${"integration"}}`, encodeURIComponent(String(integration)));
675
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
676
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
677
+ let baseOptions;
678
+ if (configuration) {
679
+ baseOptions = configuration.baseOptions;
680
+ }
681
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
682
+ const localVarHeaderParameter = {};
683
+ const localVarQueryParameter = {};
684
+ // authentication session-oauth required
685
+ // oauth required
686
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
687
+ // authentication api-key required
688
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
690
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
692
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
693
+ localVarRequestOptions.data = serializeDataIfNeeded(updateIntegrationRequest, localVarRequestOptions, configuration);
694
+ return {
695
+ url: toPathString(localVarUrlObj),
696
+ options: localVarRequestOptions,
697
+ };
698
+ }),
656
699
  /**
657
700
  * Update a project
658
701
  * @summary Update project
@@ -944,14 +987,14 @@ export const ProjectsApiFp = function (configuration) {
944
987
  * @summary Setup integration
945
988
  * @param {string} project Projects unique identifier
946
989
  * @param {string} integration Integrations unique code
947
- * @param {SetupIntegrationRequest} setupIntegrationRequest Request body to setup integration
990
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to setup integration
948
991
  * @param {*} [options] Override http request option.
949
992
  * @throws {RequiredError}
950
993
  */
951
- setupIntegration(project, integration, setupIntegrationRequest, options) {
994
+ setupIntegration(project, integration, updateIntegrationRequest, options) {
952
995
  return __awaiter(this, void 0, void 0, function* () {
953
996
  var _a, _b, _c;
954
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setupIntegration(project, integration, setupIntegrationRequest, options);
997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setupIntegration(project, integration, updateIntegrationRequest, options);
955
998
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
956
999
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.setupIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
957
1000
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -974,6 +1017,24 @@ export const ProjectsApiFp = function (configuration) {
974
1017
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
975
1018
  });
976
1019
  },
1020
+ /**
1021
+ * Update an integration on the project
1022
+ * @summary Update integration
1023
+ * @param {string} project Projects unique identifier
1024
+ * @param {string} integration Integrations unique code
1025
+ * @param {UpdateIntegrationRequest} updateIntegrationRequest Request body to update an integration
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ updateIntegration(project, integration, updateIntegrationRequest, options) {
1030
+ return __awaiter(this, void 0, void 0, function* () {
1031
+ var _a, _b, _c;
1032
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateIntegration(project, integration, updateIntegrationRequest, options);
1033
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1034
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.updateIntegration']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1036
+ });
1037
+ },
977
1038
  /**
978
1039
  * Update a project
979
1040
  * @summary Update project
@@ -1147,7 +1208,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
1147
1208
  * @throws {RequiredError}
1148
1209
  */
1149
1210
  setupIntegration(requestParameters, options) {
1150
- return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(axios, basePath));
1211
+ return localVarFp.setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1151
1212
  },
1152
1213
  /**
1153
1214
  * Uninstall a projects integration
@@ -1159,6 +1220,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
1159
1220
  uninstallIntegration(requestParameters, options) {
1160
1221
  return localVarFp.uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(axios, basePath));
1161
1222
  },
1223
+ /**
1224
+ * Update an integration on the project
1225
+ * @summary Update integration
1226
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1227
+ * @param {*} [options] Override http request option.
1228
+ * @throws {RequiredError}
1229
+ */
1230
+ updateIntegration(requestParameters, options) {
1231
+ return localVarFp.updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(axios, basePath));
1232
+ },
1162
1233
  /**
1163
1234
  * Update a project
1164
1235
  * @summary Update project
@@ -1340,7 +1411,7 @@ export class ProjectsApi extends BaseAPI {
1340
1411
  * @memberof ProjectsApi
1341
1412
  */
1342
1413
  setupIntegration(requestParameters, options) {
1343
- return ProjectsApiFp(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.setupIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1414
+ return ProjectsApiFp(this.configuration).setupIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1344
1415
  }
1345
1416
  /**
1346
1417
  * Uninstall a projects integration
@@ -1353,6 +1424,17 @@ export class ProjectsApi extends BaseAPI {
1353
1424
  uninstallIntegration(requestParameters, options) {
1354
1425
  return ProjectsApiFp(this.configuration).uninstallIntegration(requestParameters.project, requestParameters.integration, options).then((request) => request(this.axios, this.basePath));
1355
1426
  }
1427
+ /**
1428
+ * Update an integration on the project
1429
+ * @summary Update integration
1430
+ * @param {ProjectsApiUpdateIntegrationRequest} requestParameters Request parameters.
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ * @memberof ProjectsApi
1434
+ */
1435
+ updateIntegration(requestParameters, options) {
1436
+ return ProjectsApiFp(this.configuration).updateIntegration(requestParameters.project, requestParameters.integration, requestParameters.updateIntegrationRequest, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1356
1438
  /**
1357
1439
  * Update a project
1358
1440
  * @summary Update project
@@ -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.18.0
5
+ * The version of the OpenAPI document: 1.19.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/esm/base.js 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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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.18.0
5
+ * The version of the OpenAPI document: 1.19.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * 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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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.18.0
5
+ * The version of the OpenAPI document: 1.19.0
6
6
  * Contact: hello@teemill.com
7
7
  *
8
8
  * 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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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.18.0
5
+ * The version of the OpenAPI document: 1.19.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/esm/index.js 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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.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.18.0
5
+ * The version of the OpenAPI document: 1.19.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/index.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.18.0
8
+ * The version of the OpenAPI document: 1.19.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/index.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.18.0
7
+ * The version of the OpenAPI document: 1.19.0
8
8
  * Contact: hello@teemill.com
9
9
  *
10
10
  * 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.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {