qovery-typescript-axios 1.1.172 → 1.1.174

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 (4) hide show
  1. package/api.ts +387 -0
  2. package/dist/api.d.ts +221 -0
  3. package/dist/api.js +287 -0
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -10924,6 +10924,7 @@ export enum OrganizationEventSubTargetType {
10924
10924
  MEMBER_ROLE = 'MEMBER_ROLE',
10925
10925
  PLAN = 'PLAN',
10926
10926
  SECRET = 'SECRET',
10927
+ TERRAFORM = 'TERRAFORM',
10927
10928
  TRANSFER_OWNERSHIP = 'TRANSFER_OWNERSHIP',
10928
10929
  VARIABLE = 'VARIABLE'
10929
10930
  }
@@ -10972,6 +10973,7 @@ export enum OrganizationEventType {
10972
10973
  UPDATE = 'UPDATE',
10973
10974
  DELETE = 'DELETE',
10974
10975
  ACCEPT = 'ACCEPT',
10976
+ EXPORT = 'EXPORT',
10975
10977
  TRIGGER_DEPLOY = 'TRIGGER_DEPLOY',
10976
10978
  TRIGGER_REDEPLOY = 'TRIGGER_REDEPLOY',
10977
10979
  TRIGGER_STOP = 'TRIGGER_STOP',
@@ -13454,6 +13456,25 @@ export interface VariableAliasRequest {
13454
13456
  */
13455
13457
  'alias_parent_id': string;
13456
13458
  }
13459
+ /**
13460
+ *
13461
+ * @export
13462
+ * @interface VariableEditRequest
13463
+ */
13464
+ export interface VariableEditRequest {
13465
+ /**
13466
+ *
13467
+ * @type {string}
13468
+ * @memberof VariableEditRequest
13469
+ */
13470
+ 'key': string;
13471
+ /**
13472
+ *
13473
+ * @type {string}
13474
+ * @memberof VariableEditRequest
13475
+ */
13476
+ 'value': string;
13477
+ }
13457
13478
  /**
13458
13479
  *
13459
13480
  * @export
@@ -13622,6 +13643,49 @@ export interface VariableOverrideRequest {
13622
13643
  */
13623
13644
  'alias_parent_id': string;
13624
13645
  }
13646
+ /**
13647
+ *
13648
+ * @export
13649
+ * @interface VariableRequest
13650
+ */
13651
+ export interface VariableRequest {
13652
+ /**
13653
+ *
13654
+ * @type {string}
13655
+ * @memberof VariableRequest
13656
+ */
13657
+ 'key': string;
13658
+ /**
13659
+ *
13660
+ * @type {string}
13661
+ * @memberof VariableRequest
13662
+ */
13663
+ 'value': string;
13664
+ /**
13665
+ *
13666
+ * @type {string}
13667
+ * @memberof VariableRequest
13668
+ */
13669
+ 'mount_path'?: string | null;
13670
+ /**
13671
+ *
13672
+ * @type {boolean}
13673
+ * @memberof VariableRequest
13674
+ */
13675
+ 'is_secret': boolean;
13676
+ /**
13677
+ *
13678
+ * @type {APIVariableScopeEnum}
13679
+ * @memberof VariableRequest
13680
+ */
13681
+ 'variable_scope': APIVariableScopeEnum;
13682
+ /**
13683
+ *
13684
+ * @type {string}
13685
+ * @memberof VariableRequest
13686
+ */
13687
+ 'variable_parent_id': string;
13688
+ }
13625
13689
  /**
13626
13690
  *
13627
13691
  * @export
@@ -13750,6 +13814,19 @@ export interface VariableResponseAllOf {
13750
13814
  */
13751
13815
  'owned_by'?: string;
13752
13816
  }
13817
+ /**
13818
+ *
13819
+ * @export
13820
+ * @interface VariableResponseList
13821
+ */
13822
+ export interface VariableResponseList {
13823
+ /**
13824
+ *
13825
+ * @type {Array<VariableResponse>}
13826
+ * @memberof VariableResponseList
13827
+ */
13828
+ 'results'?: Array<VariableResponse>;
13829
+ }
13753
13830
  /**
13754
13831
  *
13755
13832
  * @export
@@ -43752,6 +43829,44 @@ export class UserSignUpApi extends BaseAPI {
43752
43829
  */
43753
43830
  export const VariableMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
43754
43831
  return {
43832
+ /**
43833
+ * - Create a variable at the level defined in the request body.
43834
+ * @summary Create a variable
43835
+ * @param {VariableRequest} [variableRequest]
43836
+ * @param {*} [options] Override http request option.
43837
+ * @throws {RequiredError}
43838
+ */
43839
+ createVariable: async (variableRequest?: VariableRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43840
+ const localVarPath = `/variable`;
43841
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43842
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43843
+ let baseOptions;
43844
+ if (configuration) {
43845
+ baseOptions = configuration.baseOptions;
43846
+ }
43847
+
43848
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
43849
+ const localVarHeaderParameter = {} as any;
43850
+ const localVarQueryParameter = {} as any;
43851
+
43852
+ // authentication bearerAuth required
43853
+ // http bearer authentication required
43854
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43855
+
43856
+
43857
+
43858
+ localVarHeaderParameter['Content-Type'] = 'application/json';
43859
+
43860
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43861
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43862
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43863
+ localVarRequestOptions.data = serializeDataIfNeeded(variableRequest, localVarRequestOptions, configuration)
43864
+
43865
+ return {
43866
+ url: toPathString(localVarUrlObj),
43867
+ options: localVarRequestOptions,
43868
+ };
43869
+ },
43755
43870
  /**
43756
43871
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43757
43872
  * @summary Create a variable alias
@@ -43831,6 +43946,137 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43831
43946
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43832
43947
  localVarRequestOptions.data = serializeDataIfNeeded(variableOverrideRequest, localVarRequestOptions, configuration)
43833
43948
 
43949
+ return {
43950
+ url: toPathString(localVarUrlObj),
43951
+ options: localVarRequestOptions,
43952
+ };
43953
+ },
43954
+ /**
43955
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
43956
+ * @summary Delete a variable
43957
+ * @param {string} variableId Variable ID
43958
+ * @param {*} [options] Override http request option.
43959
+ * @throws {RequiredError}
43960
+ */
43961
+ deleteVariable: async (variableId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
43962
+ // verify required parameter 'variableId' is not null or undefined
43963
+ assertParamExists('deleteVariable', 'variableId', variableId)
43964
+ const localVarPath = `/variable/{variableId}`
43965
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
43966
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43967
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
43968
+ let baseOptions;
43969
+ if (configuration) {
43970
+ baseOptions = configuration.baseOptions;
43971
+ }
43972
+
43973
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
43974
+ const localVarHeaderParameter = {} as any;
43975
+ const localVarQueryParameter = {} as any;
43976
+
43977
+ // authentication bearerAuth required
43978
+ // http bearer authentication required
43979
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
43980
+
43981
+
43982
+
43983
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
43984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
43985
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
43986
+
43987
+ return {
43988
+ url: toPathString(localVarUrlObj),
43989
+ options: localVarRequestOptions,
43990
+ };
43991
+ },
43992
+ /**
43993
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
43994
+ * @summary Edit a variable
43995
+ * @param {string} variableId Variable ID
43996
+ * @param {VariableEditRequest} variableEditRequest
43997
+ * @param {*} [options] Override http request option.
43998
+ * @throws {RequiredError}
43999
+ */
44000
+ editVariable: async (variableId: string, variableEditRequest: VariableEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44001
+ // verify required parameter 'variableId' is not null or undefined
44002
+ assertParamExists('editVariable', 'variableId', variableId)
44003
+ // verify required parameter 'variableEditRequest' is not null or undefined
44004
+ assertParamExists('editVariable', 'variableEditRequest', variableEditRequest)
44005
+ const localVarPath = `/variable/{variableId}`
44006
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
44007
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44008
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44009
+ let baseOptions;
44010
+ if (configuration) {
44011
+ baseOptions = configuration.baseOptions;
44012
+ }
44013
+
44014
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
44015
+ const localVarHeaderParameter = {} as any;
44016
+ const localVarQueryParameter = {} as any;
44017
+
44018
+ // authentication bearerAuth required
44019
+ // http bearer authentication required
44020
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
44021
+
44022
+
44023
+
44024
+ localVarHeaderParameter['Content-Type'] = 'application/json';
44025
+
44026
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44027
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44028
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44029
+ localVarRequestOptions.data = serializeDataIfNeeded(variableEditRequest, localVarRequestOptions, configuration)
44030
+
44031
+ return {
44032
+ url: toPathString(localVarUrlObj),
44033
+ options: localVarRequestOptions,
44034
+ };
44035
+ },
44036
+ /**
44037
+ * Returns a list of variables
44038
+ * @summary List variables
44039
+ * @param {string} [parentId] the id where the variable will be added
44040
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44041
+ * @param {boolean} [isSecret]
44042
+ * @param {*} [options] Override http request option.
44043
+ * @throws {RequiredError}
44044
+ */
44045
+ listVariables: async (parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44046
+ const localVarPath = `/variable`;
44047
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
44048
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
44049
+ let baseOptions;
44050
+ if (configuration) {
44051
+ baseOptions = configuration.baseOptions;
44052
+ }
44053
+
44054
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
44055
+ const localVarHeaderParameter = {} as any;
44056
+ const localVarQueryParameter = {} as any;
44057
+
44058
+ // authentication bearerAuth required
44059
+ // http bearer authentication required
44060
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
44061
+
44062
+ if (parentId !== undefined) {
44063
+ localVarQueryParameter['parent_id'] = parentId;
44064
+ }
44065
+
44066
+ if (scope !== undefined) {
44067
+ localVarQueryParameter['scope'] = scope;
44068
+ }
44069
+
44070
+ if (isSecret !== undefined) {
44071
+ localVarQueryParameter['is_secret'] = isSecret;
44072
+ }
44073
+
44074
+
44075
+
44076
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
44077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
44078
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
44079
+
43834
44080
  return {
43835
44081
  url: toPathString(localVarUrlObj),
43836
44082
  options: localVarRequestOptions,
@@ -43846,6 +44092,17 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
43846
44092
  export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43847
44093
  const localVarAxiosParamCreator = VariableMainCallsApiAxiosParamCreator(configuration)
43848
44094
  return {
44095
+ /**
44096
+ * - Create a variable at the level defined in the request body.
44097
+ * @summary Create a variable
44098
+ * @param {VariableRequest} [variableRequest]
44099
+ * @param {*} [options] Override http request option.
44100
+ * @throws {RequiredError}
44101
+ */
44102
+ async createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
44103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVariable(variableRequest, options);
44104
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44105
+ },
43849
44106
  /**
43850
44107
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43851
44108
  * @summary Create a variable alias
@@ -43870,6 +44127,42 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43870
44127
  const localVarAxiosArgs = await localVarAxiosParamCreator.createVariableOverride(variableId, variableOverrideRequest, options);
43871
44128
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
43872
44129
  },
44130
+ /**
44131
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44132
+ * @summary Delete a variable
44133
+ * @param {string} variableId Variable ID
44134
+ * @param {*} [options] Override http request option.
44135
+ * @throws {RequiredError}
44136
+ */
44137
+ async deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
44138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVariable(variableId, options);
44139
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44140
+ },
44141
+ /**
44142
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44143
+ * @summary Edit a variable
44144
+ * @param {string} variableId Variable ID
44145
+ * @param {VariableEditRequest} variableEditRequest
44146
+ * @param {*} [options] Override http request option.
44147
+ * @throws {RequiredError}
44148
+ */
44149
+ async editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>> {
44150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
44151
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44152
+ },
44153
+ /**
44154
+ * Returns a list of variables
44155
+ * @summary List variables
44156
+ * @param {string} [parentId] the id where the variable will be added
44157
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44158
+ * @param {boolean} [isSecret]
44159
+ * @param {*} [options] Override http request option.
44160
+ * @throws {RequiredError}
44161
+ */
44162
+ async listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponseList>> {
44163
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVariables(parentId, scope, isSecret, options);
44164
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
44165
+ },
43873
44166
  }
43874
44167
  };
43875
44168
 
@@ -43880,6 +44173,16 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
43880
44173
  export const VariableMainCallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
43881
44174
  const localVarFp = VariableMainCallsApiFp(configuration)
43882
44175
  return {
44176
+ /**
44177
+ * - Create a variable at the level defined in the request body.
44178
+ * @summary Create a variable
44179
+ * @param {VariableRequest} [variableRequest]
44180
+ * @param {*} [options] Override http request option.
44181
+ * @throws {RequiredError}
44182
+ */
44183
+ createVariable(variableRequest?: VariableRequest, options?: any): AxiosPromise<VariableResponse> {
44184
+ return localVarFp.createVariable(variableRequest, options).then((request) => request(axios, basePath));
44185
+ },
43883
44186
  /**
43884
44187
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43885
44188
  * @summary Create a variable alias
@@ -43902,6 +44205,39 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43902
44205
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: any): AxiosPromise<VariableResponse> {
43903
44206
  return localVarFp.createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(axios, basePath));
43904
44207
  },
44208
+ /**
44209
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44210
+ * @summary Delete a variable
44211
+ * @param {string} variableId Variable ID
44212
+ * @param {*} [options] Override http request option.
44213
+ * @throws {RequiredError}
44214
+ */
44215
+ deleteVariable(variableId: string, options?: any): AxiosPromise<void> {
44216
+ return localVarFp.deleteVariable(variableId, options).then((request) => request(axios, basePath));
44217
+ },
44218
+ /**
44219
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44220
+ * @summary Edit a variable
44221
+ * @param {string} variableId Variable ID
44222
+ * @param {VariableEditRequest} variableEditRequest
44223
+ * @param {*} [options] Override http request option.
44224
+ * @throws {RequiredError}
44225
+ */
44226
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse> {
44227
+ return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
44228
+ },
44229
+ /**
44230
+ * Returns a list of variables
44231
+ * @summary List variables
44232
+ * @param {string} [parentId] the id where the variable will be added
44233
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44234
+ * @param {boolean} [isSecret]
44235
+ * @param {*} [options] Override http request option.
44236
+ * @throws {RequiredError}
44237
+ */
44238
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: any): AxiosPromise<VariableResponseList> {
44239
+ return localVarFp.listVariables(parentId, scope, isSecret, options).then((request) => request(axios, basePath));
44240
+ },
43905
44241
  };
43906
44242
  };
43907
44243
 
@@ -43912,6 +44248,18 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
43912
44248
  * @extends {BaseAPI}
43913
44249
  */
43914
44250
  export class VariableMainCallsApi extends BaseAPI {
44251
+ /**
44252
+ * - Create a variable at the level defined in the request body.
44253
+ * @summary Create a variable
44254
+ * @param {VariableRequest} [variableRequest]
44255
+ * @param {*} [options] Override http request option.
44256
+ * @throws {RequiredError}
44257
+ * @memberof VariableMainCallsApi
44258
+ */
44259
+ public createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig) {
44260
+ return VariableMainCallsApiFp(this.configuration).createVariable(variableRequest, options).then((request) => request(this.axios, this.basePath));
44261
+ }
44262
+
43915
44263
  /**
43916
44264
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
43917
44265
  * @summary Create a variable alias
@@ -43937,6 +44285,45 @@ export class VariableMainCallsApi extends BaseAPI {
43937
44285
  public createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig) {
43938
44286
  return VariableMainCallsApiFp(this.configuration).createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(this.axios, this.basePath));
43939
44287
  }
44288
+
44289
+ /**
44290
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
44291
+ * @summary Delete a variable
44292
+ * @param {string} variableId Variable ID
44293
+ * @param {*} [options] Override http request option.
44294
+ * @throws {RequiredError}
44295
+ * @memberof VariableMainCallsApi
44296
+ */
44297
+ public deleteVariable(variableId: string, options?: AxiosRequestConfig) {
44298
+ return VariableMainCallsApiFp(this.configuration).deleteVariable(variableId, options).then((request) => request(this.axios, this.basePath));
44299
+ }
44300
+
44301
+ /**
44302
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
44303
+ * @summary Edit a variable
44304
+ * @param {string} variableId Variable ID
44305
+ * @param {VariableEditRequest} variableEditRequest
44306
+ * @param {*} [options] Override http request option.
44307
+ * @throws {RequiredError}
44308
+ * @memberof VariableMainCallsApi
44309
+ */
44310
+ public editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) {
44311
+ return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
44312
+ }
44313
+
44314
+ /**
44315
+ * Returns a list of variables
44316
+ * @summary List variables
44317
+ * @param {string} [parentId] the id where the variable will be added
44318
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
44319
+ * @param {boolean} [isSecret]
44320
+ * @param {*} [options] Override http request option.
44321
+ * @throws {RequiredError}
44322
+ * @memberof VariableMainCallsApi
44323
+ */
44324
+ public listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig) {
44325
+ return VariableMainCallsApiFp(this.configuration).listVariables(parentId, scope, isSecret, options).then((request) => request(this.axios, this.basePath));
44326
+ }
43940
44327
  }
43941
44328
 
43942
44329
 
package/dist/api.d.ts CHANGED
@@ -10848,6 +10848,7 @@ export declare enum OrganizationEventSubTargetType {
10848
10848
  MEMBER_ROLE = "MEMBER_ROLE",
10849
10849
  PLAN = "PLAN",
10850
10850
  SECRET = "SECRET",
10851
+ TERRAFORM = "TERRAFORM",
10851
10852
  TRANSFER_OWNERSHIP = "TRANSFER_OWNERSHIP",
10852
10853
  VARIABLE = "VARIABLE"
10853
10854
  }
@@ -10892,6 +10893,7 @@ export declare enum OrganizationEventType {
10892
10893
  UPDATE = "UPDATE",
10893
10894
  DELETE = "DELETE",
10894
10895
  ACCEPT = "ACCEPT",
10896
+ EXPORT = "EXPORT",
10895
10897
  TRIGGER_DEPLOY = "TRIGGER_DEPLOY",
10896
10898
  TRIGGER_REDEPLOY = "TRIGGER_REDEPLOY",
10897
10899
  TRIGGER_STOP = "TRIGGER_STOP",
@@ -13349,6 +13351,25 @@ export interface VariableAliasRequest {
13349
13351
  */
13350
13352
  'alias_parent_id': string;
13351
13353
  }
13354
+ /**
13355
+ *
13356
+ * @export
13357
+ * @interface VariableEditRequest
13358
+ */
13359
+ export interface VariableEditRequest {
13360
+ /**
13361
+ *
13362
+ * @type {string}
13363
+ * @memberof VariableEditRequest
13364
+ */
13365
+ 'key': string;
13366
+ /**
13367
+ *
13368
+ * @type {string}
13369
+ * @memberof VariableEditRequest
13370
+ */
13371
+ 'value': string;
13372
+ }
13352
13373
  /**
13353
13374
  *
13354
13375
  * @export
@@ -13517,6 +13538,49 @@ export interface VariableOverrideRequest {
13517
13538
  */
13518
13539
  'alias_parent_id': string;
13519
13540
  }
13541
+ /**
13542
+ *
13543
+ * @export
13544
+ * @interface VariableRequest
13545
+ */
13546
+ export interface VariableRequest {
13547
+ /**
13548
+ *
13549
+ * @type {string}
13550
+ * @memberof VariableRequest
13551
+ */
13552
+ 'key': string;
13553
+ /**
13554
+ *
13555
+ * @type {string}
13556
+ * @memberof VariableRequest
13557
+ */
13558
+ 'value': string;
13559
+ /**
13560
+ *
13561
+ * @type {string}
13562
+ * @memberof VariableRequest
13563
+ */
13564
+ 'mount_path'?: string | null;
13565
+ /**
13566
+ *
13567
+ * @type {boolean}
13568
+ * @memberof VariableRequest
13569
+ */
13570
+ 'is_secret': boolean;
13571
+ /**
13572
+ *
13573
+ * @type {APIVariableScopeEnum}
13574
+ * @memberof VariableRequest
13575
+ */
13576
+ 'variable_scope': APIVariableScopeEnum;
13577
+ /**
13578
+ *
13579
+ * @type {string}
13580
+ * @memberof VariableRequest
13581
+ */
13582
+ 'variable_parent_id': string;
13583
+ }
13520
13584
  /**
13521
13585
  *
13522
13586
  * @export
@@ -13645,6 +13709,19 @@ export interface VariableResponseAllOf {
13645
13709
  */
13646
13710
  'owned_by'?: string;
13647
13711
  }
13712
+ /**
13713
+ *
13714
+ * @export
13715
+ * @interface VariableResponseList
13716
+ */
13717
+ export interface VariableResponseList {
13718
+ /**
13719
+ *
13720
+ * @type {Array<VariableResponse>}
13721
+ * @memberof VariableResponseList
13722
+ */
13723
+ 'results'?: Array<VariableResponse>;
13724
+ }
13648
13725
  /**
13649
13726
  *
13650
13727
  * @export
@@ -28355,6 +28432,14 @@ export declare class UserSignUpApi extends BaseAPI {
28355
28432
  * @export
28356
28433
  */
28357
28434
  export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Configuration) => {
28435
+ /**
28436
+ * - Create a variable at the level defined in the request body.
28437
+ * @summary Create a variable
28438
+ * @param {VariableRequest} [variableRequest]
28439
+ * @param {*} [options] Override http request option.
28440
+ * @throws {RequiredError}
28441
+ */
28442
+ createVariable: (variableRequest?: VariableRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28358
28443
  /**
28359
28444
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28360
28445
  * @summary Create a variable alias
@@ -28373,12 +28458,47 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
28373
28458
  * @throws {RequiredError}
28374
28459
  */
28375
28460
  createVariableOverride: (variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28461
+ /**
28462
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28463
+ * @summary Delete a variable
28464
+ * @param {string} variableId Variable ID
28465
+ * @param {*} [options] Override http request option.
28466
+ * @throws {RequiredError}
28467
+ */
28468
+ deleteVariable: (variableId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28469
+ /**
28470
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28471
+ * @summary Edit a variable
28472
+ * @param {string} variableId Variable ID
28473
+ * @param {VariableEditRequest} variableEditRequest
28474
+ * @param {*} [options] Override http request option.
28475
+ * @throws {RequiredError}
28476
+ */
28477
+ editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28478
+ /**
28479
+ * Returns a list of variables
28480
+ * @summary List variables
28481
+ * @param {string} [parentId] the id where the variable will be added
28482
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28483
+ * @param {boolean} [isSecret]
28484
+ * @param {*} [options] Override http request option.
28485
+ * @throws {RequiredError}
28486
+ */
28487
+ listVariables: (parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
28376
28488
  };
28377
28489
  /**
28378
28490
  * VariableMainCallsApi - functional programming interface
28379
28491
  * @export
28380
28492
  */
28381
28493
  export declare const VariableMainCallsApiFp: (configuration?: Configuration) => {
28494
+ /**
28495
+ * - Create a variable at the level defined in the request body.
28496
+ * @summary Create a variable
28497
+ * @param {VariableRequest} [variableRequest]
28498
+ * @param {*} [options] Override http request option.
28499
+ * @throws {RequiredError}
28500
+ */
28501
+ createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28382
28502
  /**
28383
28503
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28384
28504
  * @summary Create a variable alias
@@ -28397,12 +28517,47 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
28397
28517
  * @throws {RequiredError}
28398
28518
  */
28399
28519
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28520
+ /**
28521
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28522
+ * @summary Delete a variable
28523
+ * @param {string} variableId Variable ID
28524
+ * @param {*} [options] Override http request option.
28525
+ * @throws {RequiredError}
28526
+ */
28527
+ deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
28528
+ /**
28529
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28530
+ * @summary Edit a variable
28531
+ * @param {string} variableId Variable ID
28532
+ * @param {VariableEditRequest} variableEditRequest
28533
+ * @param {*} [options] Override http request option.
28534
+ * @throws {RequiredError}
28535
+ */
28536
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
28537
+ /**
28538
+ * Returns a list of variables
28539
+ * @summary List variables
28540
+ * @param {string} [parentId] the id where the variable will be added
28541
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28542
+ * @param {boolean} [isSecret]
28543
+ * @param {*} [options] Override http request option.
28544
+ * @throws {RequiredError}
28545
+ */
28546
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponseList>>;
28400
28547
  };
28401
28548
  /**
28402
28549
  * VariableMainCallsApi - factory interface
28403
28550
  * @export
28404
28551
  */
28405
28552
  export declare const VariableMainCallsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
28553
+ /**
28554
+ * - Create a variable at the level defined in the request body.
28555
+ * @summary Create a variable
28556
+ * @param {VariableRequest} [variableRequest]
28557
+ * @param {*} [options] Override http request option.
28558
+ * @throws {RequiredError}
28559
+ */
28560
+ createVariable(variableRequest?: VariableRequest, options?: any): AxiosPromise<VariableResponse>;
28406
28561
  /**
28407
28562
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28408
28563
  * @summary Create a variable alias
@@ -28421,6 +28576,33 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
28421
28576
  * @throws {RequiredError}
28422
28577
  */
28423
28578
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: any): AxiosPromise<VariableResponse>;
28579
+ /**
28580
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28581
+ * @summary Delete a variable
28582
+ * @param {string} variableId Variable ID
28583
+ * @param {*} [options] Override http request option.
28584
+ * @throws {RequiredError}
28585
+ */
28586
+ deleteVariable(variableId: string, options?: any): AxiosPromise<void>;
28587
+ /**
28588
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28589
+ * @summary Edit a variable
28590
+ * @param {string} variableId Variable ID
28591
+ * @param {VariableEditRequest} variableEditRequest
28592
+ * @param {*} [options] Override http request option.
28593
+ * @throws {RequiredError}
28594
+ */
28595
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
28596
+ /**
28597
+ * Returns a list of variables
28598
+ * @summary List variables
28599
+ * @param {string} [parentId] the id where the variable will be added
28600
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28601
+ * @param {boolean} [isSecret]
28602
+ * @param {*} [options] Override http request option.
28603
+ * @throws {RequiredError}
28604
+ */
28605
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: any): AxiosPromise<VariableResponseList>;
28424
28606
  };
28425
28607
  /**
28426
28608
  * VariableMainCallsApi - object-oriented interface
@@ -28429,6 +28611,15 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
28429
28611
  * @extends {BaseAPI}
28430
28612
  */
28431
28613
  export declare class VariableMainCallsApi extends BaseAPI {
28614
+ /**
28615
+ * - Create a variable at the level defined in the request body.
28616
+ * @summary Create a variable
28617
+ * @param {VariableRequest} [variableRequest]
28618
+ * @param {*} [options] Override http request option.
28619
+ * @throws {RequiredError}
28620
+ * @memberof VariableMainCallsApi
28621
+ */
28622
+ createVariable(variableRequest?: VariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28432
28623
  /**
28433
28624
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28434
28625
  * @summary Create a variable alias
@@ -28449,4 +28640,34 @@ export declare class VariableMainCallsApi extends BaseAPI {
28449
28640
  * @memberof VariableMainCallsApi
28450
28641
  */
28451
28642
  createVariableOverride(variableId: string, variableOverrideRequest?: VariableOverrideRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28643
+ /**
28644
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28645
+ * @summary Delete a variable
28646
+ * @param {string} variableId Variable ID
28647
+ * @param {*} [options] Override http request option.
28648
+ * @throws {RequiredError}
28649
+ * @memberof VariableMainCallsApi
28650
+ */
28651
+ deleteVariable(variableId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void>>;
28652
+ /**
28653
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28654
+ * @summary Edit a variable
28655
+ * @param {string} variableId Variable ID
28656
+ * @param {VariableEditRequest} variableEditRequest
28657
+ * @param {*} [options] Override http request option.
28658
+ * @throws {RequiredError}
28659
+ * @memberof VariableMainCallsApi
28660
+ */
28661
+ editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse>>;
28662
+ /**
28663
+ * Returns a list of variables
28664
+ * @summary List variables
28665
+ * @param {string} [parentId] the id where the variable will be added
28666
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28667
+ * @param {boolean} [isSecret]
28668
+ * @param {*} [options] Override http request option.
28669
+ * @throws {RequiredError}
28670
+ * @memberof VariableMainCallsApi
28671
+ */
28672
+ listVariables(parentId?: string, scope?: APIVariableScopeEnum, isSecret?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponseList>>;
28452
28673
  }
package/dist/api.js CHANGED
@@ -515,6 +515,7 @@ var OrganizationEventSubTargetType;
515
515
  OrganizationEventSubTargetType["MEMBER_ROLE"] = "MEMBER_ROLE";
516
516
  OrganizationEventSubTargetType["PLAN"] = "PLAN";
517
517
  OrganizationEventSubTargetType["SECRET"] = "SECRET";
518
+ OrganizationEventSubTargetType["TERRAFORM"] = "TERRAFORM";
518
519
  OrganizationEventSubTargetType["TRANSFER_OWNERSHIP"] = "TRANSFER_OWNERSHIP";
519
520
  OrganizationEventSubTargetType["VARIABLE"] = "VARIABLE";
520
521
  })(OrganizationEventSubTargetType = exports.OrganizationEventSubTargetType || (exports.OrganizationEventSubTargetType = {}));
@@ -548,6 +549,7 @@ var OrganizationEventType;
548
549
  OrganizationEventType["UPDATE"] = "UPDATE";
549
550
  OrganizationEventType["DELETE"] = "DELETE";
550
551
  OrganizationEventType["ACCEPT"] = "ACCEPT";
552
+ OrganizationEventType["EXPORT"] = "EXPORT";
551
553
  OrganizationEventType["TRIGGER_DEPLOY"] = "TRIGGER_DEPLOY";
552
554
  OrganizationEventType["TRIGGER_REDEPLOY"] = "TRIGGER_REDEPLOY";
553
555
  OrganizationEventType["TRIGGER_STOP"] = "TRIGGER_STOP";
@@ -28723,6 +28725,37 @@ exports.UserSignUpApi = UserSignUpApi;
28723
28725
  */
28724
28726
  const VariableMainCallsApiAxiosParamCreator = function (configuration) {
28725
28727
  return {
28728
+ /**
28729
+ * - Create a variable at the level defined in the request body.
28730
+ * @summary Create a variable
28731
+ * @param {VariableRequest} [variableRequest]
28732
+ * @param {*} [options] Override http request option.
28733
+ * @throws {RequiredError}
28734
+ */
28735
+ createVariable: (variableRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
28736
+ const localVarPath = `/variable`;
28737
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28738
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28739
+ let baseOptions;
28740
+ if (configuration) {
28741
+ baseOptions = configuration.baseOptions;
28742
+ }
28743
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
28744
+ const localVarHeaderParameter = {};
28745
+ const localVarQueryParameter = {};
28746
+ // authentication bearerAuth required
28747
+ // http bearer authentication required
28748
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28749
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28750
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28752
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28753
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableRequest, localVarRequestOptions, configuration);
28754
+ return {
28755
+ url: (0, common_1.toPathString)(localVarUrlObj),
28756
+ options: localVarRequestOptions,
28757
+ };
28758
+ }),
28726
28759
  /**
28727
28760
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28728
28761
  * @summary Create a variable alias
@@ -28793,6 +28826,115 @@ const VariableMainCallsApiAxiosParamCreator = function (configuration) {
28793
28826
  options: localVarRequestOptions,
28794
28827
  };
28795
28828
  }),
28829
+ /**
28830
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28831
+ * @summary Delete a variable
28832
+ * @param {string} variableId Variable ID
28833
+ * @param {*} [options] Override http request option.
28834
+ * @throws {RequiredError}
28835
+ */
28836
+ deleteVariable: (variableId, options = {}) => __awaiter(this, void 0, void 0, function* () {
28837
+ // verify required parameter 'variableId' is not null or undefined
28838
+ (0, common_1.assertParamExists)('deleteVariable', 'variableId', variableId);
28839
+ const localVarPath = `/variable/{variableId}`
28840
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
28841
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28842
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28843
+ let baseOptions;
28844
+ if (configuration) {
28845
+ baseOptions = configuration.baseOptions;
28846
+ }
28847
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
28848
+ const localVarHeaderParameter = {};
28849
+ const localVarQueryParameter = {};
28850
+ // authentication bearerAuth required
28851
+ // http bearer authentication required
28852
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28853
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28854
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28855
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28856
+ return {
28857
+ url: (0, common_1.toPathString)(localVarUrlObj),
28858
+ options: localVarRequestOptions,
28859
+ };
28860
+ }),
28861
+ /**
28862
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
28863
+ * @summary Edit a variable
28864
+ * @param {string} variableId Variable ID
28865
+ * @param {VariableEditRequest} variableEditRequest
28866
+ * @param {*} [options] Override http request option.
28867
+ * @throws {RequiredError}
28868
+ */
28869
+ editVariable: (variableId, variableEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
28870
+ // verify required parameter 'variableId' is not null or undefined
28871
+ (0, common_1.assertParamExists)('editVariable', 'variableId', variableId);
28872
+ // verify required parameter 'variableEditRequest' is not null or undefined
28873
+ (0, common_1.assertParamExists)('editVariable', 'variableEditRequest', variableEditRequest);
28874
+ const localVarPath = `/variable/{variableId}`
28875
+ .replace(`{${"variableId"}}`, encodeURIComponent(String(variableId)));
28876
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28877
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28878
+ let baseOptions;
28879
+ if (configuration) {
28880
+ baseOptions = configuration.baseOptions;
28881
+ }
28882
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
28883
+ const localVarHeaderParameter = {};
28884
+ const localVarQueryParameter = {};
28885
+ // authentication bearerAuth required
28886
+ // http bearer authentication required
28887
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28888
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28889
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28890
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28891
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28892
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableEditRequest, localVarRequestOptions, configuration);
28893
+ return {
28894
+ url: (0, common_1.toPathString)(localVarUrlObj),
28895
+ options: localVarRequestOptions,
28896
+ };
28897
+ }),
28898
+ /**
28899
+ * Returns a list of variables
28900
+ * @summary List variables
28901
+ * @param {string} [parentId] the id where the variable will be added
28902
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
28903
+ * @param {boolean} [isSecret]
28904
+ * @param {*} [options] Override http request option.
28905
+ * @throws {RequiredError}
28906
+ */
28907
+ listVariables: (parentId, scope, isSecret, options = {}) => __awaiter(this, void 0, void 0, function* () {
28908
+ const localVarPath = `/variable`;
28909
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28910
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
28911
+ let baseOptions;
28912
+ if (configuration) {
28913
+ baseOptions = configuration.baseOptions;
28914
+ }
28915
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
28916
+ const localVarHeaderParameter = {};
28917
+ const localVarQueryParameter = {};
28918
+ // authentication bearerAuth required
28919
+ // http bearer authentication required
28920
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
28921
+ if (parentId !== undefined) {
28922
+ localVarQueryParameter['parent_id'] = parentId;
28923
+ }
28924
+ if (scope !== undefined) {
28925
+ localVarQueryParameter['scope'] = scope;
28926
+ }
28927
+ if (isSecret !== undefined) {
28928
+ localVarQueryParameter['is_secret'] = isSecret;
28929
+ }
28930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
28931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28932
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
28933
+ return {
28934
+ url: (0, common_1.toPathString)(localVarUrlObj),
28935
+ options: localVarRequestOptions,
28936
+ };
28937
+ }),
28796
28938
  };
28797
28939
  };
28798
28940
  exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCreator;
@@ -28803,6 +28945,19 @@ exports.VariableMainCallsApiAxiosParamCreator = VariableMainCallsApiAxiosParamCr
28803
28945
  const VariableMainCallsApiFp = function (configuration) {
28804
28946
  const localVarAxiosParamCreator = (0, exports.VariableMainCallsApiAxiosParamCreator)(configuration);
28805
28947
  return {
28948
+ /**
28949
+ * - Create a variable at the level defined in the request body.
28950
+ * @summary Create a variable
28951
+ * @param {VariableRequest} [variableRequest]
28952
+ * @param {*} [options] Override http request option.
28953
+ * @throws {RequiredError}
28954
+ */
28955
+ createVariable(variableRequest, options) {
28956
+ return __awaiter(this, void 0, void 0, function* () {
28957
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createVariable(variableRequest, options);
28958
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28959
+ });
28960
+ },
28806
28961
  /**
28807
28962
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28808
28963
  * @summary Create a variable alias
@@ -28831,6 +28986,48 @@ const VariableMainCallsApiFp = function (configuration) {
28831
28986
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
28832
28987
  });
28833
28988
  },
28989
+ /**
28990
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
28991
+ * @summary Delete a variable
28992
+ * @param {string} variableId Variable ID
28993
+ * @param {*} [options] Override http request option.
28994
+ * @throws {RequiredError}
28995
+ */
28996
+ deleteVariable(variableId, options) {
28997
+ return __awaiter(this, void 0, void 0, function* () {
28998
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteVariable(variableId, options);
28999
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
29000
+ });
29001
+ },
29002
+ /**
29003
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29004
+ * @summary Edit a variable
29005
+ * @param {string} variableId Variable ID
29006
+ * @param {VariableEditRequest} variableEditRequest
29007
+ * @param {*} [options] Override http request option.
29008
+ * @throws {RequiredError}
29009
+ */
29010
+ editVariable(variableId, variableEditRequest, options) {
29011
+ return __awaiter(this, void 0, void 0, function* () {
29012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
29013
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
29014
+ });
29015
+ },
29016
+ /**
29017
+ * Returns a list of variables
29018
+ * @summary List variables
29019
+ * @param {string} [parentId] the id where the variable will be added
29020
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29021
+ * @param {boolean} [isSecret]
29022
+ * @param {*} [options] Override http request option.
29023
+ * @throws {RequiredError}
29024
+ */
29025
+ listVariables(parentId, scope, isSecret, options) {
29026
+ return __awaiter(this, void 0, void 0, function* () {
29027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listVariables(parentId, scope, isSecret, options);
29028
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
29029
+ });
29030
+ },
28834
29031
  };
28835
29032
  };
28836
29033
  exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
@@ -28841,6 +29038,16 @@ exports.VariableMainCallsApiFp = VariableMainCallsApiFp;
28841
29038
  const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
28842
29039
  const localVarFp = (0, exports.VariableMainCallsApiFp)(configuration);
28843
29040
  return {
29041
+ /**
29042
+ * - Create a variable at the level defined in the request body.
29043
+ * @summary Create a variable
29044
+ * @param {VariableRequest} [variableRequest]
29045
+ * @param {*} [options] Override http request option.
29046
+ * @throws {RequiredError}
29047
+ */
29048
+ createVariable(variableRequest, options) {
29049
+ return localVarFp.createVariable(variableRequest, options).then((request) => request(axios, basePath));
29050
+ },
28844
29051
  /**
28845
29052
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28846
29053
  * @summary Create a variable alias
@@ -28863,6 +29070,39 @@ const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
28863
29070
  createVariableOverride(variableId, variableOverrideRequest, options) {
28864
29071
  return localVarFp.createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(axios, basePath));
28865
29072
  },
29073
+ /**
29074
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
29075
+ * @summary Delete a variable
29076
+ * @param {string} variableId Variable ID
29077
+ * @param {*} [options] Override http request option.
29078
+ * @throws {RequiredError}
29079
+ */
29080
+ deleteVariable(variableId, options) {
29081
+ return localVarFp.deleteVariable(variableId, options).then((request) => request(axios, basePath));
29082
+ },
29083
+ /**
29084
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29085
+ * @summary Edit a variable
29086
+ * @param {string} variableId Variable ID
29087
+ * @param {VariableEditRequest} variableEditRequest
29088
+ * @param {*} [options] Override http request option.
29089
+ * @throws {RequiredError}
29090
+ */
29091
+ editVariable(variableId, variableEditRequest, options) {
29092
+ return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
29093
+ },
29094
+ /**
29095
+ * Returns a list of variables
29096
+ * @summary List variables
29097
+ * @param {string} [parentId] the id where the variable will be added
29098
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29099
+ * @param {boolean} [isSecret]
29100
+ * @param {*} [options] Override http request option.
29101
+ * @throws {RequiredError}
29102
+ */
29103
+ listVariables(parentId, scope, isSecret, options) {
29104
+ return localVarFp.listVariables(parentId, scope, isSecret, options).then((request) => request(axios, basePath));
29105
+ },
28866
29106
  };
28867
29107
  };
28868
29108
  exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
@@ -28873,6 +29113,17 @@ exports.VariableMainCallsApiFactory = VariableMainCallsApiFactory;
28873
29113
  * @extends {BaseAPI}
28874
29114
  */
28875
29115
  class VariableMainCallsApi extends base_1.BaseAPI {
29116
+ /**
29117
+ * - Create a variable at the level defined in the request body.
29118
+ * @summary Create a variable
29119
+ * @param {VariableRequest} [variableRequest]
29120
+ * @param {*} [options] Override http request option.
29121
+ * @throws {RequiredError}
29122
+ * @memberof VariableMainCallsApi
29123
+ */
29124
+ createVariable(variableRequest, options) {
29125
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariable(variableRequest, options).then((request) => request(this.axios, this.basePath));
29126
+ }
28876
29127
  /**
28877
29128
  * - Allows you to add an alias at the level defined in the request body on an existing variable having a higher scope, in order to customize its key. - You have to specify a key in the request body and the scope and the parent id of the alias - The system will create a new variable at the requested level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" or in the \"aliased_secret\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
28878
29129
  * @summary Create a variable alias
@@ -28897,5 +29148,41 @@ class VariableMainCallsApi extends base_1.BaseAPI {
28897
29148
  createVariableOverride(variableId, variableOverrideRequest, options) {
28898
29149
  return (0, exports.VariableMainCallsApiFp)(this.configuration).createVariableOverride(variableId, variableOverrideRequest, options).then((request) => request(this.axios, this.basePath));
28899
29150
  }
29151
+ /**
29152
+ * - To delete a variable - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
29153
+ * @summary Delete a variable
29154
+ * @param {string} variableId Variable ID
29155
+ * @param {*} [options] Override http request option.
29156
+ * @throws {RequiredError}
29157
+ * @memberof VariableMainCallsApi
29158
+ */
29159
+ deleteVariable(variableId, options) {
29160
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).deleteVariable(variableId, options).then((request) => request(this.axios, this.basePath));
29161
+ }
29162
+ /**
29163
+ * - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value
29164
+ * @summary Edit a variable
29165
+ * @param {string} variableId Variable ID
29166
+ * @param {VariableEditRequest} variableEditRequest
29167
+ * @param {*} [options] Override http request option.
29168
+ * @throws {RequiredError}
29169
+ * @memberof VariableMainCallsApi
29170
+ */
29171
+ editVariable(variableId, variableEditRequest, options) {
29172
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
29173
+ }
29174
+ /**
29175
+ * Returns a list of variables
29176
+ * @summary List variables
29177
+ * @param {string} [parentId] the id where the variable will be added
29178
+ * @param {APIVariableScopeEnum} [scope] the scope of the parent where the variable will be added
29179
+ * @param {boolean} [isSecret]
29180
+ * @param {*} [options] Override http request option.
29181
+ * @throws {RequiredError}
29182
+ * @memberof VariableMainCallsApi
29183
+ */
29184
+ listVariables(parentId, scope, isSecret, options) {
29185
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).listVariables(parentId, scope, isSecret, options).then((request) => request(this.axios, this.basePath));
29186
+ }
28900
29187
  }
28901
29188
  exports.VariableMainCallsApi = VariableMainCallsApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.172",
3
+ "version": "v1.1.174",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [