qovery-typescript-axios 1.1.131 → 1.1.133
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/api.ts +400 -0
- package/dist/api.d.ts +306 -0
- package/dist/api.js +249 -7
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -7380,6 +7380,12 @@ export interface EnvironmentVariable {
|
|
|
7380
7380
|
* @memberof EnvironmentVariable
|
|
7381
7381
|
*/
|
|
7382
7382
|
'service_type'?: LinkedServiceTypeEnum;
|
|
7383
|
+
/**
|
|
7384
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
7385
|
+
* @type {string}
|
|
7386
|
+
* @memberof EnvironmentVariable
|
|
7387
|
+
*/
|
|
7388
|
+
'owned_by'?: string;
|
|
7383
7389
|
}
|
|
7384
7390
|
/**
|
|
7385
7391
|
*
|
|
@@ -7472,6 +7478,12 @@ export interface EnvironmentVariableAllOf {
|
|
|
7472
7478
|
* @memberof EnvironmentVariableAllOf
|
|
7473
7479
|
*/
|
|
7474
7480
|
'service_type'?: LinkedServiceTypeEnum;
|
|
7481
|
+
/**
|
|
7482
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
7483
|
+
* @type {string}
|
|
7484
|
+
* @memberof EnvironmentVariableAllOf
|
|
7485
|
+
*/
|
|
7486
|
+
'owned_by'?: string;
|
|
7475
7487
|
}
|
|
7476
7488
|
/**
|
|
7477
7489
|
*
|
|
@@ -10465,6 +10477,205 @@ export interface OrganizationEditRequest {
|
|
|
10465
10477
|
*/
|
|
10466
10478
|
'admin_emails'?: Array<string> | null;
|
|
10467
10479
|
}
|
|
10480
|
+
/**
|
|
10481
|
+
* Origin of the organization event
|
|
10482
|
+
* @export
|
|
10483
|
+
* @enum {string}
|
|
10484
|
+
*/
|
|
10485
|
+
|
|
10486
|
+
export enum OrganizationEventOrigin {
|
|
10487
|
+
API = 'API',
|
|
10488
|
+
CLI = 'CLI',
|
|
10489
|
+
CONSOLE = 'CONSOLE',
|
|
10490
|
+
GIT = 'GIT',
|
|
10491
|
+
TERRAFORM_PROVIDER = 'TERRAFORM_PROVIDER'
|
|
10492
|
+
}
|
|
10493
|
+
|
|
10494
|
+
/**
|
|
10495
|
+
*
|
|
10496
|
+
* @export
|
|
10497
|
+
* @interface OrganizationEventResponse
|
|
10498
|
+
*/
|
|
10499
|
+
export interface OrganizationEventResponse {
|
|
10500
|
+
/**
|
|
10501
|
+
*
|
|
10502
|
+
* @type {string}
|
|
10503
|
+
* @memberof OrganizationEventResponse
|
|
10504
|
+
*/
|
|
10505
|
+
'id'?: string;
|
|
10506
|
+
/**
|
|
10507
|
+
*
|
|
10508
|
+
* @type {string}
|
|
10509
|
+
* @memberof OrganizationEventResponse
|
|
10510
|
+
*/
|
|
10511
|
+
'timestamp'?: string;
|
|
10512
|
+
/**
|
|
10513
|
+
*
|
|
10514
|
+
* @type {OrganizationEventType}
|
|
10515
|
+
* @memberof OrganizationEventResponse
|
|
10516
|
+
*/
|
|
10517
|
+
'event_type'?: OrganizationEventType;
|
|
10518
|
+
/**
|
|
10519
|
+
*
|
|
10520
|
+
* @type {string}
|
|
10521
|
+
* @memberof OrganizationEventResponse
|
|
10522
|
+
*/
|
|
10523
|
+
'target_id'?: string | null;
|
|
10524
|
+
/**
|
|
10525
|
+
*
|
|
10526
|
+
* @type {string}
|
|
10527
|
+
* @memberof OrganizationEventResponse
|
|
10528
|
+
*/
|
|
10529
|
+
'target_name'?: string;
|
|
10530
|
+
/**
|
|
10531
|
+
*
|
|
10532
|
+
* @type {OrganizationEventTargetType}
|
|
10533
|
+
* @memberof OrganizationEventResponse
|
|
10534
|
+
*/
|
|
10535
|
+
'target_type'?: OrganizationEventTargetType;
|
|
10536
|
+
/**
|
|
10537
|
+
*
|
|
10538
|
+
* @type {OrganizationEventSubTargetType}
|
|
10539
|
+
* @memberof OrganizationEventResponse
|
|
10540
|
+
*/
|
|
10541
|
+
'sub_target_type'?: OrganizationEventSubTargetType;
|
|
10542
|
+
/**
|
|
10543
|
+
*
|
|
10544
|
+
* @type {string}
|
|
10545
|
+
* @memberof OrganizationEventResponse
|
|
10546
|
+
*/
|
|
10547
|
+
'change'?: string;
|
|
10548
|
+
/**
|
|
10549
|
+
*
|
|
10550
|
+
* @type {OrganizationEventOrigin}
|
|
10551
|
+
* @memberof OrganizationEventResponse
|
|
10552
|
+
*/
|
|
10553
|
+
'origin'?: OrganizationEventOrigin;
|
|
10554
|
+
/**
|
|
10555
|
+
*
|
|
10556
|
+
* @type {string}
|
|
10557
|
+
* @memberof OrganizationEventResponse
|
|
10558
|
+
*/
|
|
10559
|
+
'triggered_by'?: string;
|
|
10560
|
+
/**
|
|
10561
|
+
*
|
|
10562
|
+
* @type {string}
|
|
10563
|
+
* @memberof OrganizationEventResponse
|
|
10564
|
+
*/
|
|
10565
|
+
'project_id'?: string | null;
|
|
10566
|
+
/**
|
|
10567
|
+
*
|
|
10568
|
+
* @type {string}
|
|
10569
|
+
* @memberof OrganizationEventResponse
|
|
10570
|
+
*/
|
|
10571
|
+
'environment_id'?: string | null;
|
|
10572
|
+
}
|
|
10573
|
+
/**
|
|
10574
|
+
*
|
|
10575
|
+
* @export
|
|
10576
|
+
* @interface OrganizationEventResponseList
|
|
10577
|
+
*/
|
|
10578
|
+
export interface OrganizationEventResponseList {
|
|
10579
|
+
/**
|
|
10580
|
+
*
|
|
10581
|
+
* @type {OrganizationEventResponseListLinks}
|
|
10582
|
+
* @memberof OrganizationEventResponseList
|
|
10583
|
+
*/
|
|
10584
|
+
'links'?: OrganizationEventResponseListLinks;
|
|
10585
|
+
/**
|
|
10586
|
+
*
|
|
10587
|
+
* @type {Array<OrganizationEventResponse>}
|
|
10588
|
+
* @memberof OrganizationEventResponseList
|
|
10589
|
+
*/
|
|
10590
|
+
'events'?: Array<OrganizationEventResponse>;
|
|
10591
|
+
}
|
|
10592
|
+
/**
|
|
10593
|
+
*
|
|
10594
|
+
* @export
|
|
10595
|
+
* @interface OrganizationEventResponseListLinks
|
|
10596
|
+
*/
|
|
10597
|
+
export interface OrganizationEventResponseListLinks {
|
|
10598
|
+
/**
|
|
10599
|
+
*
|
|
10600
|
+
* @type {string}
|
|
10601
|
+
* @memberof OrganizationEventResponseListLinks
|
|
10602
|
+
*/
|
|
10603
|
+
'previous'?: string;
|
|
10604
|
+
/**
|
|
10605
|
+
*
|
|
10606
|
+
* @type {string}
|
|
10607
|
+
* @memberof OrganizationEventResponseListLinks
|
|
10608
|
+
*/
|
|
10609
|
+
'next'?: string;
|
|
10610
|
+
}
|
|
10611
|
+
/**
|
|
10612
|
+
* Type of the organization event
|
|
10613
|
+
* @export
|
|
10614
|
+
* @enum {string}
|
|
10615
|
+
*/
|
|
10616
|
+
|
|
10617
|
+
export enum OrganizationEventSubTargetType {
|
|
10618
|
+
ADVANCED_SETTINGS = 'ADVANCED_SETTINGS',
|
|
10619
|
+
API_TOKEN = 'API_TOKEN',
|
|
10620
|
+
BILLING_INFO = 'BILLING_INFO',
|
|
10621
|
+
CLOUD_PROVIDER_CREDENTIALS = 'CLOUD_PROVIDER_CREDENTIALS',
|
|
10622
|
+
CLUSTER_CREDENTIALS = 'CLUSTER_CREDENTIALS',
|
|
10623
|
+
CLUSTER_ROUTING_TABLE = 'CLUSTER_ROUTING_TABLE',
|
|
10624
|
+
CREDIT_CARD = 'CREDIT_CARD',
|
|
10625
|
+
CREDIT_CODE = 'CREDIT_CODE',
|
|
10626
|
+
CUSTOM_DOMAIN = 'CUSTOM_DOMAIN',
|
|
10627
|
+
CUSTOM_ROLE = 'CUSTOM_ROLE',
|
|
10628
|
+
DEPLOYMENT_RULE = 'DEPLOYMENT_RULE',
|
|
10629
|
+
DEPLOYMENT_STAGE = 'DEPLOYMENT_STAGE',
|
|
10630
|
+
GITHUB_APP = 'GITHUB_APP',
|
|
10631
|
+
GIT_REPOSITORY = 'GIT_REPOSITORY',
|
|
10632
|
+
INVITATION = 'INVITATION',
|
|
10633
|
+
MEMBER_ROLE = 'MEMBER_ROLE',
|
|
10634
|
+
PLAN = 'PLAN',
|
|
10635
|
+
SECRET = 'SECRET',
|
|
10636
|
+
TRANSFER_OWNERSHIP = 'TRANSFER_OWNERSHIP',
|
|
10637
|
+
VARIABLE = 'VARIABLE'
|
|
10638
|
+
}
|
|
10639
|
+
|
|
10640
|
+
/**
|
|
10641
|
+
* Type of the organization event
|
|
10642
|
+
* @export
|
|
10643
|
+
* @enum {string}
|
|
10644
|
+
*/
|
|
10645
|
+
|
|
10646
|
+
export enum OrganizationEventTargetType {
|
|
10647
|
+
APPLICATION = 'APPLICATION',
|
|
10648
|
+
CLUSTER = 'CLUSTER',
|
|
10649
|
+
CONTAINER = 'CONTAINER',
|
|
10650
|
+
CONTAINER_REGISTRY = 'CONTAINER_REGISTRY',
|
|
10651
|
+
DATABASE = 'DATABASE',
|
|
10652
|
+
ENVIRONMENT = 'ENVIRONMENT',
|
|
10653
|
+
JOB = 'JOB',
|
|
10654
|
+
MEMBERS_AND_ROLES = 'MEMBERS_AND_ROLES',
|
|
10655
|
+
ORGANIZATION = 'ORGANIZATION',
|
|
10656
|
+
PROJECT = 'PROJECT',
|
|
10657
|
+
WEBHOOK = 'WEBHOOK'
|
|
10658
|
+
}
|
|
10659
|
+
|
|
10660
|
+
/**
|
|
10661
|
+
* Type of the organization event
|
|
10662
|
+
* @export
|
|
10663
|
+
* @enum {string}
|
|
10664
|
+
*/
|
|
10665
|
+
|
|
10666
|
+
export enum OrganizationEventType {
|
|
10667
|
+
CREATE = 'CREATE',
|
|
10668
|
+
UPDATE = 'UPDATE',
|
|
10669
|
+
DELETE = 'DELETE',
|
|
10670
|
+
ACCEPT = 'ACCEPT',
|
|
10671
|
+
TRIGGER_DEPLOY = 'TRIGGER_DEPLOY',
|
|
10672
|
+
TRIGGER_REDEPLOY = 'TRIGGER_REDEPLOY',
|
|
10673
|
+
TRIGGER_STOP = 'TRIGGER_STOP',
|
|
10674
|
+
TRIGGER_CANCEL = 'TRIGGER_CANCEL',
|
|
10675
|
+
TRIGGER_RESTART = 'TRIGGER_RESTART',
|
|
10676
|
+
TRIGGER_DELETE = 'TRIGGER_DELETE'
|
|
10677
|
+
}
|
|
10678
|
+
|
|
10468
10679
|
/**
|
|
10469
10680
|
*
|
|
10470
10681
|
* @export
|
|
@@ -11624,6 +11835,12 @@ export interface Secret {
|
|
|
11624
11835
|
* @memberof Secret
|
|
11625
11836
|
*/
|
|
11626
11837
|
'service_type'?: LinkedServiceTypeEnum;
|
|
11838
|
+
/**
|
|
11839
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
11840
|
+
* @type {string}
|
|
11841
|
+
* @memberof Secret
|
|
11842
|
+
*/
|
|
11843
|
+
'owned_by'?: string;
|
|
11627
11844
|
}
|
|
11628
11845
|
/**
|
|
11629
11846
|
*
|
|
@@ -11716,6 +11933,12 @@ export interface SecretAllOf {
|
|
|
11716
11933
|
* @memberof SecretAllOf
|
|
11717
11934
|
*/
|
|
11718
11935
|
'service_type'?: LinkedServiceTypeEnum;
|
|
11936
|
+
/**
|
|
11937
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
11938
|
+
* @type {string}
|
|
11939
|
+
* @memberof SecretAllOf
|
|
11940
|
+
*/
|
|
11941
|
+
'owned_by'?: string;
|
|
11719
11942
|
}
|
|
11720
11943
|
/**
|
|
11721
11944
|
*
|
|
@@ -38324,6 +38547,183 @@ export class OrganizationCustomRoleApi extends BaseAPI {
|
|
|
38324
38547
|
}
|
|
38325
38548
|
|
|
38326
38549
|
|
|
38550
|
+
/**
|
|
38551
|
+
* OrganizationEventApi - axios parameter creator
|
|
38552
|
+
* @export
|
|
38553
|
+
*/
|
|
38554
|
+
export const OrganizationEventApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38555
|
+
return {
|
|
38556
|
+
/**
|
|
38557
|
+
* Get all events inside the organization
|
|
38558
|
+
* @summary Get all events inside the organization
|
|
38559
|
+
* @param {string} organizationId Organization ID
|
|
38560
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
38561
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
38562
|
+
* @param {OrganizationEventType} [eventType]
|
|
38563
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
38564
|
+
* @param {string} [targetId]
|
|
38565
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
38566
|
+
* @param {string} [user] The username who has triggered the action
|
|
38567
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
38568
|
+
* @param {*} [options] Override http request option.
|
|
38569
|
+
* @throws {RequiredError}
|
|
38570
|
+
*/
|
|
38571
|
+
getOrganizationEvents: async (organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38572
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
38573
|
+
assertParamExists('getOrganizationEvents', 'organizationId', organizationId)
|
|
38574
|
+
const localVarPath = `/organization/{organizationId}/events`
|
|
38575
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
38576
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
38577
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
38578
|
+
let baseOptions;
|
|
38579
|
+
if (configuration) {
|
|
38580
|
+
baseOptions = configuration.baseOptions;
|
|
38581
|
+
}
|
|
38582
|
+
|
|
38583
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
38584
|
+
const localVarHeaderParameter = {} as any;
|
|
38585
|
+
const localVarQueryParameter = {} as any;
|
|
38586
|
+
|
|
38587
|
+
// authentication bearerAuth required
|
|
38588
|
+
// http bearer authentication required
|
|
38589
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
38590
|
+
|
|
38591
|
+
if (fromTimestamp !== undefined) {
|
|
38592
|
+
localVarQueryParameter['from-timestamp'] = (fromTimestamp as any instanceof Date) ?
|
|
38593
|
+
(fromTimestamp as any).toISOString() :
|
|
38594
|
+
fromTimestamp;
|
|
38595
|
+
}
|
|
38596
|
+
|
|
38597
|
+
if (toTimestamp !== undefined) {
|
|
38598
|
+
localVarQueryParameter['to-timestamp'] = (toTimestamp as any instanceof Date) ?
|
|
38599
|
+
(toTimestamp as any).toISOString() :
|
|
38600
|
+
toTimestamp;
|
|
38601
|
+
}
|
|
38602
|
+
|
|
38603
|
+
if (eventType !== undefined) {
|
|
38604
|
+
localVarQueryParameter['event_type'] = eventType;
|
|
38605
|
+
}
|
|
38606
|
+
|
|
38607
|
+
if (targetType !== undefined) {
|
|
38608
|
+
localVarQueryParameter['target_type'] = targetType;
|
|
38609
|
+
}
|
|
38610
|
+
|
|
38611
|
+
if (targetId !== undefined) {
|
|
38612
|
+
localVarQueryParameter['target_id'] = targetId;
|
|
38613
|
+
}
|
|
38614
|
+
|
|
38615
|
+
if (subTarget !== undefined) {
|
|
38616
|
+
localVarQueryParameter['sub_target'] = subTarget;
|
|
38617
|
+
}
|
|
38618
|
+
|
|
38619
|
+
if (user !== undefined) {
|
|
38620
|
+
localVarQueryParameter['user'] = user;
|
|
38621
|
+
}
|
|
38622
|
+
|
|
38623
|
+
if (origin !== undefined) {
|
|
38624
|
+
localVarQueryParameter['origin'] = origin;
|
|
38625
|
+
}
|
|
38626
|
+
|
|
38627
|
+
|
|
38628
|
+
|
|
38629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
38630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
38631
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
38632
|
+
|
|
38633
|
+
return {
|
|
38634
|
+
url: toPathString(localVarUrlObj),
|
|
38635
|
+
options: localVarRequestOptions,
|
|
38636
|
+
};
|
|
38637
|
+
},
|
|
38638
|
+
}
|
|
38639
|
+
};
|
|
38640
|
+
|
|
38641
|
+
/**
|
|
38642
|
+
* OrganizationEventApi - functional programming interface
|
|
38643
|
+
* @export
|
|
38644
|
+
*/
|
|
38645
|
+
export const OrganizationEventApiFp = function(configuration?: Configuration) {
|
|
38646
|
+
const localVarAxiosParamCreator = OrganizationEventApiAxiosParamCreator(configuration)
|
|
38647
|
+
return {
|
|
38648
|
+
/**
|
|
38649
|
+
* Get all events inside the organization
|
|
38650
|
+
* @summary Get all events inside the organization
|
|
38651
|
+
* @param {string} organizationId Organization ID
|
|
38652
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
38653
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
38654
|
+
* @param {OrganizationEventType} [eventType]
|
|
38655
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
38656
|
+
* @param {string} [targetId]
|
|
38657
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
38658
|
+
* @param {string} [user] The username who has triggered the action
|
|
38659
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
38660
|
+
* @param {*} [options] Override http request option.
|
|
38661
|
+
* @throws {RequiredError}
|
|
38662
|
+
*/
|
|
38663
|
+
async getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationEventResponseList>> {
|
|
38664
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options);
|
|
38665
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
38666
|
+
},
|
|
38667
|
+
}
|
|
38668
|
+
};
|
|
38669
|
+
|
|
38670
|
+
/**
|
|
38671
|
+
* OrganizationEventApi - factory interface
|
|
38672
|
+
* @export
|
|
38673
|
+
*/
|
|
38674
|
+
export const OrganizationEventApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
38675
|
+
const localVarFp = OrganizationEventApiFp(configuration)
|
|
38676
|
+
return {
|
|
38677
|
+
/**
|
|
38678
|
+
* Get all events inside the organization
|
|
38679
|
+
* @summary Get all events inside the organization
|
|
38680
|
+
* @param {string} organizationId Organization ID
|
|
38681
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
38682
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
38683
|
+
* @param {OrganizationEventType} [eventType]
|
|
38684
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
38685
|
+
* @param {string} [targetId]
|
|
38686
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
38687
|
+
* @param {string} [user] The username who has triggered the action
|
|
38688
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
38689
|
+
* @param {*} [options] Override http request option.
|
|
38690
|
+
* @throws {RequiredError}
|
|
38691
|
+
*/
|
|
38692
|
+
getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: any): AxiosPromise<OrganizationEventResponseList> {
|
|
38693
|
+
return localVarFp.getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options).then((request) => request(axios, basePath));
|
|
38694
|
+
},
|
|
38695
|
+
};
|
|
38696
|
+
};
|
|
38697
|
+
|
|
38698
|
+
/**
|
|
38699
|
+
* OrganizationEventApi - object-oriented interface
|
|
38700
|
+
* @export
|
|
38701
|
+
* @class OrganizationEventApi
|
|
38702
|
+
* @extends {BaseAPI}
|
|
38703
|
+
*/
|
|
38704
|
+
export class OrganizationEventApi extends BaseAPI {
|
|
38705
|
+
/**
|
|
38706
|
+
* Get all events inside the organization
|
|
38707
|
+
* @summary Get all events inside the organization
|
|
38708
|
+
* @param {string} organizationId Organization ID
|
|
38709
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
38710
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
38711
|
+
* @param {OrganizationEventType} [eventType]
|
|
38712
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
38713
|
+
* @param {string} [targetId]
|
|
38714
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
38715
|
+
* @param {string} [user] The username who has triggered the action
|
|
38716
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
38717
|
+
* @param {*} [options] Override http request option.
|
|
38718
|
+
* @throws {RequiredError}
|
|
38719
|
+
* @memberof OrganizationEventApi
|
|
38720
|
+
*/
|
|
38721
|
+
public getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: AxiosRequestConfig) {
|
|
38722
|
+
return OrganizationEventApiFp(this.configuration).getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options).then((request) => request(this.axios, this.basePath));
|
|
38723
|
+
}
|
|
38724
|
+
}
|
|
38725
|
+
|
|
38726
|
+
|
|
38327
38727
|
/**
|
|
38328
38728
|
* OrganizationMainCallsApi - axios parameter creator
|
|
38329
38729
|
* @export
|
package/dist/api.d.ts
CHANGED
|
@@ -7331,6 +7331,12 @@ export interface EnvironmentVariable {
|
|
|
7331
7331
|
* @memberof EnvironmentVariable
|
|
7332
7332
|
*/
|
|
7333
7333
|
'service_type'?: LinkedServiceTypeEnum;
|
|
7334
|
+
/**
|
|
7335
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
7336
|
+
* @type {string}
|
|
7337
|
+
* @memberof EnvironmentVariable
|
|
7338
|
+
*/
|
|
7339
|
+
'owned_by'?: string;
|
|
7334
7340
|
}
|
|
7335
7341
|
/**
|
|
7336
7342
|
*
|
|
@@ -7423,6 +7429,12 @@ export interface EnvironmentVariableAllOf {
|
|
|
7423
7429
|
* @memberof EnvironmentVariableAllOf
|
|
7424
7430
|
*/
|
|
7425
7431
|
'service_type'?: LinkedServiceTypeEnum;
|
|
7432
|
+
/**
|
|
7433
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
7434
|
+
* @type {string}
|
|
7435
|
+
* @memberof EnvironmentVariableAllOf
|
|
7436
|
+
*/
|
|
7437
|
+
'owned_by'?: string;
|
|
7426
7438
|
}
|
|
7427
7439
|
/**
|
|
7428
7440
|
*
|
|
@@ -10390,6 +10402,197 @@ export interface OrganizationEditRequest {
|
|
|
10390
10402
|
*/
|
|
10391
10403
|
'admin_emails'?: Array<string> | null;
|
|
10392
10404
|
}
|
|
10405
|
+
/**
|
|
10406
|
+
* Origin of the organization event
|
|
10407
|
+
* @export
|
|
10408
|
+
* @enum {string}
|
|
10409
|
+
*/
|
|
10410
|
+
export declare enum OrganizationEventOrigin {
|
|
10411
|
+
API = "API",
|
|
10412
|
+
CLI = "CLI",
|
|
10413
|
+
CONSOLE = "CONSOLE",
|
|
10414
|
+
GIT = "GIT",
|
|
10415
|
+
TERRAFORM_PROVIDER = "TERRAFORM_PROVIDER"
|
|
10416
|
+
}
|
|
10417
|
+
/**
|
|
10418
|
+
*
|
|
10419
|
+
* @export
|
|
10420
|
+
* @interface OrganizationEventResponse
|
|
10421
|
+
*/
|
|
10422
|
+
export interface OrganizationEventResponse {
|
|
10423
|
+
/**
|
|
10424
|
+
*
|
|
10425
|
+
* @type {string}
|
|
10426
|
+
* @memberof OrganizationEventResponse
|
|
10427
|
+
*/
|
|
10428
|
+
'id'?: string;
|
|
10429
|
+
/**
|
|
10430
|
+
*
|
|
10431
|
+
* @type {string}
|
|
10432
|
+
* @memberof OrganizationEventResponse
|
|
10433
|
+
*/
|
|
10434
|
+
'timestamp'?: string;
|
|
10435
|
+
/**
|
|
10436
|
+
*
|
|
10437
|
+
* @type {OrganizationEventType}
|
|
10438
|
+
* @memberof OrganizationEventResponse
|
|
10439
|
+
*/
|
|
10440
|
+
'event_type'?: OrganizationEventType;
|
|
10441
|
+
/**
|
|
10442
|
+
*
|
|
10443
|
+
* @type {string}
|
|
10444
|
+
* @memberof OrganizationEventResponse
|
|
10445
|
+
*/
|
|
10446
|
+
'target_id'?: string | null;
|
|
10447
|
+
/**
|
|
10448
|
+
*
|
|
10449
|
+
* @type {string}
|
|
10450
|
+
* @memberof OrganizationEventResponse
|
|
10451
|
+
*/
|
|
10452
|
+
'target_name'?: string;
|
|
10453
|
+
/**
|
|
10454
|
+
*
|
|
10455
|
+
* @type {OrganizationEventTargetType}
|
|
10456
|
+
* @memberof OrganizationEventResponse
|
|
10457
|
+
*/
|
|
10458
|
+
'target_type'?: OrganizationEventTargetType;
|
|
10459
|
+
/**
|
|
10460
|
+
*
|
|
10461
|
+
* @type {OrganizationEventSubTargetType}
|
|
10462
|
+
* @memberof OrganizationEventResponse
|
|
10463
|
+
*/
|
|
10464
|
+
'sub_target_type'?: OrganizationEventSubTargetType;
|
|
10465
|
+
/**
|
|
10466
|
+
*
|
|
10467
|
+
* @type {string}
|
|
10468
|
+
* @memberof OrganizationEventResponse
|
|
10469
|
+
*/
|
|
10470
|
+
'change'?: string;
|
|
10471
|
+
/**
|
|
10472
|
+
*
|
|
10473
|
+
* @type {OrganizationEventOrigin}
|
|
10474
|
+
* @memberof OrganizationEventResponse
|
|
10475
|
+
*/
|
|
10476
|
+
'origin'?: OrganizationEventOrigin;
|
|
10477
|
+
/**
|
|
10478
|
+
*
|
|
10479
|
+
* @type {string}
|
|
10480
|
+
* @memberof OrganizationEventResponse
|
|
10481
|
+
*/
|
|
10482
|
+
'triggered_by'?: string;
|
|
10483
|
+
/**
|
|
10484
|
+
*
|
|
10485
|
+
* @type {string}
|
|
10486
|
+
* @memberof OrganizationEventResponse
|
|
10487
|
+
*/
|
|
10488
|
+
'project_id'?: string | null;
|
|
10489
|
+
/**
|
|
10490
|
+
*
|
|
10491
|
+
* @type {string}
|
|
10492
|
+
* @memberof OrganizationEventResponse
|
|
10493
|
+
*/
|
|
10494
|
+
'environment_id'?: string | null;
|
|
10495
|
+
}
|
|
10496
|
+
/**
|
|
10497
|
+
*
|
|
10498
|
+
* @export
|
|
10499
|
+
* @interface OrganizationEventResponseList
|
|
10500
|
+
*/
|
|
10501
|
+
export interface OrganizationEventResponseList {
|
|
10502
|
+
/**
|
|
10503
|
+
*
|
|
10504
|
+
* @type {OrganizationEventResponseListLinks}
|
|
10505
|
+
* @memberof OrganizationEventResponseList
|
|
10506
|
+
*/
|
|
10507
|
+
'links'?: OrganizationEventResponseListLinks;
|
|
10508
|
+
/**
|
|
10509
|
+
*
|
|
10510
|
+
* @type {Array<OrganizationEventResponse>}
|
|
10511
|
+
* @memberof OrganizationEventResponseList
|
|
10512
|
+
*/
|
|
10513
|
+
'events'?: Array<OrganizationEventResponse>;
|
|
10514
|
+
}
|
|
10515
|
+
/**
|
|
10516
|
+
*
|
|
10517
|
+
* @export
|
|
10518
|
+
* @interface OrganizationEventResponseListLinks
|
|
10519
|
+
*/
|
|
10520
|
+
export interface OrganizationEventResponseListLinks {
|
|
10521
|
+
/**
|
|
10522
|
+
*
|
|
10523
|
+
* @type {string}
|
|
10524
|
+
* @memberof OrganizationEventResponseListLinks
|
|
10525
|
+
*/
|
|
10526
|
+
'previous'?: string;
|
|
10527
|
+
/**
|
|
10528
|
+
*
|
|
10529
|
+
* @type {string}
|
|
10530
|
+
* @memberof OrganizationEventResponseListLinks
|
|
10531
|
+
*/
|
|
10532
|
+
'next'?: string;
|
|
10533
|
+
}
|
|
10534
|
+
/**
|
|
10535
|
+
* Type of the organization event
|
|
10536
|
+
* @export
|
|
10537
|
+
* @enum {string}
|
|
10538
|
+
*/
|
|
10539
|
+
export declare enum OrganizationEventSubTargetType {
|
|
10540
|
+
ADVANCED_SETTINGS = "ADVANCED_SETTINGS",
|
|
10541
|
+
API_TOKEN = "API_TOKEN",
|
|
10542
|
+
BILLING_INFO = "BILLING_INFO",
|
|
10543
|
+
CLOUD_PROVIDER_CREDENTIALS = "CLOUD_PROVIDER_CREDENTIALS",
|
|
10544
|
+
CLUSTER_CREDENTIALS = "CLUSTER_CREDENTIALS",
|
|
10545
|
+
CLUSTER_ROUTING_TABLE = "CLUSTER_ROUTING_TABLE",
|
|
10546
|
+
CREDIT_CARD = "CREDIT_CARD",
|
|
10547
|
+
CREDIT_CODE = "CREDIT_CODE",
|
|
10548
|
+
CUSTOM_DOMAIN = "CUSTOM_DOMAIN",
|
|
10549
|
+
CUSTOM_ROLE = "CUSTOM_ROLE",
|
|
10550
|
+
DEPLOYMENT_RULE = "DEPLOYMENT_RULE",
|
|
10551
|
+
DEPLOYMENT_STAGE = "DEPLOYMENT_STAGE",
|
|
10552
|
+
GITHUB_APP = "GITHUB_APP",
|
|
10553
|
+
GIT_REPOSITORY = "GIT_REPOSITORY",
|
|
10554
|
+
INVITATION = "INVITATION",
|
|
10555
|
+
MEMBER_ROLE = "MEMBER_ROLE",
|
|
10556
|
+
PLAN = "PLAN",
|
|
10557
|
+
SECRET = "SECRET",
|
|
10558
|
+
TRANSFER_OWNERSHIP = "TRANSFER_OWNERSHIP",
|
|
10559
|
+
VARIABLE = "VARIABLE"
|
|
10560
|
+
}
|
|
10561
|
+
/**
|
|
10562
|
+
* Type of the organization event
|
|
10563
|
+
* @export
|
|
10564
|
+
* @enum {string}
|
|
10565
|
+
*/
|
|
10566
|
+
export declare enum OrganizationEventTargetType {
|
|
10567
|
+
APPLICATION = "APPLICATION",
|
|
10568
|
+
CLUSTER = "CLUSTER",
|
|
10569
|
+
CONTAINER = "CONTAINER",
|
|
10570
|
+
CONTAINER_REGISTRY = "CONTAINER_REGISTRY",
|
|
10571
|
+
DATABASE = "DATABASE",
|
|
10572
|
+
ENVIRONMENT = "ENVIRONMENT",
|
|
10573
|
+
JOB = "JOB",
|
|
10574
|
+
MEMBERS_AND_ROLES = "MEMBERS_AND_ROLES",
|
|
10575
|
+
ORGANIZATION = "ORGANIZATION",
|
|
10576
|
+
PROJECT = "PROJECT",
|
|
10577
|
+
WEBHOOK = "WEBHOOK"
|
|
10578
|
+
}
|
|
10579
|
+
/**
|
|
10580
|
+
* Type of the organization event
|
|
10581
|
+
* @export
|
|
10582
|
+
* @enum {string}
|
|
10583
|
+
*/
|
|
10584
|
+
export declare enum OrganizationEventType {
|
|
10585
|
+
CREATE = "CREATE",
|
|
10586
|
+
UPDATE = "UPDATE",
|
|
10587
|
+
DELETE = "DELETE",
|
|
10588
|
+
ACCEPT = "ACCEPT",
|
|
10589
|
+
TRIGGER_DEPLOY = "TRIGGER_DEPLOY",
|
|
10590
|
+
TRIGGER_REDEPLOY = "TRIGGER_REDEPLOY",
|
|
10591
|
+
TRIGGER_STOP = "TRIGGER_STOP",
|
|
10592
|
+
TRIGGER_CANCEL = "TRIGGER_CANCEL",
|
|
10593
|
+
TRIGGER_RESTART = "TRIGGER_RESTART",
|
|
10594
|
+
TRIGGER_DELETE = "TRIGGER_DELETE"
|
|
10595
|
+
}
|
|
10393
10596
|
/**
|
|
10394
10597
|
*
|
|
10395
10598
|
* @export
|
|
@@ -11539,6 +11742,12 @@ export interface Secret {
|
|
|
11539
11742
|
* @memberof Secret
|
|
11540
11743
|
*/
|
|
11541
11744
|
'service_type'?: LinkedServiceTypeEnum;
|
|
11745
|
+
/**
|
|
11746
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
11747
|
+
* @type {string}
|
|
11748
|
+
* @memberof Secret
|
|
11749
|
+
*/
|
|
11750
|
+
'owned_by'?: string;
|
|
11542
11751
|
}
|
|
11543
11752
|
/**
|
|
11544
11753
|
*
|
|
@@ -11631,6 +11840,12 @@ export interface SecretAllOf {
|
|
|
11631
11840
|
* @memberof SecretAllOf
|
|
11632
11841
|
*/
|
|
11633
11842
|
'service_type'?: LinkedServiceTypeEnum;
|
|
11843
|
+
/**
|
|
11844
|
+
* Entity that created/own the variable (i.e: Qovery, Doppler)
|
|
11845
|
+
* @type {string}
|
|
11846
|
+
* @memberof SecretAllOf
|
|
11847
|
+
*/
|
|
11848
|
+
'owned_by'?: string;
|
|
11634
11849
|
}
|
|
11635
11850
|
/**
|
|
11636
11851
|
*
|
|
@@ -25220,6 +25435,97 @@ export declare class OrganizationCustomRoleApi extends BaseAPI {
|
|
|
25220
25435
|
*/
|
|
25221
25436
|
listOrganizationCustomRoles(organizationId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationCustomRoleList>>;
|
|
25222
25437
|
}
|
|
25438
|
+
/**
|
|
25439
|
+
* OrganizationEventApi - axios parameter creator
|
|
25440
|
+
* @export
|
|
25441
|
+
*/
|
|
25442
|
+
export declare const OrganizationEventApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25443
|
+
/**
|
|
25444
|
+
* Get all events inside the organization
|
|
25445
|
+
* @summary Get all events inside the organization
|
|
25446
|
+
* @param {string} organizationId Organization ID
|
|
25447
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
25448
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
25449
|
+
* @param {OrganizationEventType} [eventType]
|
|
25450
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
25451
|
+
* @param {string} [targetId]
|
|
25452
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
25453
|
+
* @param {string} [user] The username who has triggered the action
|
|
25454
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
25455
|
+
* @param {*} [options] Override http request option.
|
|
25456
|
+
* @throws {RequiredError}
|
|
25457
|
+
*/
|
|
25458
|
+
getOrganizationEvents: (organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
25459
|
+
};
|
|
25460
|
+
/**
|
|
25461
|
+
* OrganizationEventApi - functional programming interface
|
|
25462
|
+
* @export
|
|
25463
|
+
*/
|
|
25464
|
+
export declare const OrganizationEventApiFp: (configuration?: Configuration) => {
|
|
25465
|
+
/**
|
|
25466
|
+
* Get all events inside the organization
|
|
25467
|
+
* @summary Get all events inside the organization
|
|
25468
|
+
* @param {string} organizationId Organization ID
|
|
25469
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
25470
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
25471
|
+
* @param {OrganizationEventType} [eventType]
|
|
25472
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
25473
|
+
* @param {string} [targetId]
|
|
25474
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
25475
|
+
* @param {string} [user] The username who has triggered the action
|
|
25476
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
25477
|
+
* @param {*} [options] Override http request option.
|
|
25478
|
+
* @throws {RequiredError}
|
|
25479
|
+
*/
|
|
25480
|
+
getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationEventResponseList>>;
|
|
25481
|
+
};
|
|
25482
|
+
/**
|
|
25483
|
+
* OrganizationEventApi - factory interface
|
|
25484
|
+
* @export
|
|
25485
|
+
*/
|
|
25486
|
+
export declare const OrganizationEventApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25487
|
+
/**
|
|
25488
|
+
* Get all events inside the organization
|
|
25489
|
+
* @summary Get all events inside the organization
|
|
25490
|
+
* @param {string} organizationId Organization ID
|
|
25491
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
25492
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
25493
|
+
* @param {OrganizationEventType} [eventType]
|
|
25494
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
25495
|
+
* @param {string} [targetId]
|
|
25496
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
25497
|
+
* @param {string} [user] The username who has triggered the action
|
|
25498
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
25499
|
+
* @param {*} [options] Override http request option.
|
|
25500
|
+
* @throws {RequiredError}
|
|
25501
|
+
*/
|
|
25502
|
+
getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: any): AxiosPromise<OrganizationEventResponseList>;
|
|
25503
|
+
};
|
|
25504
|
+
/**
|
|
25505
|
+
* OrganizationEventApi - object-oriented interface
|
|
25506
|
+
* @export
|
|
25507
|
+
* @class OrganizationEventApi
|
|
25508
|
+
* @extends {BaseAPI}
|
|
25509
|
+
*/
|
|
25510
|
+
export declare class OrganizationEventApi extends BaseAPI {
|
|
25511
|
+
/**
|
|
25512
|
+
* Get all events inside the organization
|
|
25513
|
+
* @summary Get all events inside the organization
|
|
25514
|
+
* @param {string} organizationId Organization ID
|
|
25515
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
25516
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
25517
|
+
* @param {OrganizationEventType} [eventType]
|
|
25518
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
25519
|
+
* @param {string} [targetId]
|
|
25520
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
25521
|
+
* @param {string} [user] The username who has triggered the action
|
|
25522
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
25523
|
+
* @param {*} [options] Override http request option.
|
|
25524
|
+
* @throws {RequiredError}
|
|
25525
|
+
* @memberof OrganizationEventApi
|
|
25526
|
+
*/
|
|
25527
|
+
getOrganizationEvents(organizationId: string, fromTimestamp?: string, toTimestamp?: string, eventType?: OrganizationEventType, targetType?: OrganizationEventTargetType, targetId?: string, subTarget?: OrganizationEventSubTargetType, user?: string, origin?: OrganizationEventOrigin, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<OrganizationEventResponseList>>;
|
|
25528
|
+
}
|
|
25223
25529
|
/**
|
|
25224
25530
|
* OrganizationMainCallsApi - axios parameter creator
|
|
25225
25531
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -22,13 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = void 0;
|
|
25
|
+
exports.StateEnum = exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationEventType = exports.OrganizationEventTargetType = exports.OrganizationEventSubTargetType = exports.OrganizationEventOrigin = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.JobScheduleEvent = exports.JobForceEvent = exports.JobAdvancedSettingsLivenessProbeTypeEnum = exports.JobAdvancedSettingsReadinessProbeTypeEnum = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HealthcheckProtocolEnum = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsReadinessProbeTypeEnum = exports.CompanySizeEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.ClusterAdvancedSettingsAwsEksEc2MetadataImdsEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsLivenessProbeTypeEnum = exports.ApplicationAdvancedSettingsReadinessProbeTypeEnum = exports.APIVariableTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
+
exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = void 0;
|
|
27
|
+
exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = void 0;
|
|
28
|
+
exports.DeploymentStageMainCallsApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = void 0;
|
|
29
|
+
exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = exports.DeploymentStageMainCallsApi = exports.DeploymentStageMainCallsApiFactory = exports.DeploymentStageMainCallsApiFp = void 0;
|
|
30
|
+
exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationEventApi = exports.OrganizationEventApiFactory = exports.OrganizationEventApiFp = exports.OrganizationEventApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = void 0;
|
|
31
|
+
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = void 0;
|
|
32
32
|
const axios_1 = require("axios");
|
|
33
33
|
// Some imports not used depending on template conditions
|
|
34
34
|
// @ts-ignore
|
|
@@ -467,6 +467,84 @@ var OrganizationCustomRoleProjectPermission;
|
|
|
467
467
|
OrganizationCustomRoleProjectPermission["DEPLOYER"] = "DEPLOYER";
|
|
468
468
|
OrganizationCustomRoleProjectPermission["MANAGER"] = "MANAGER";
|
|
469
469
|
})(OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleProjectPermission || (exports.OrganizationCustomRoleProjectPermission = {}));
|
|
470
|
+
/**
|
|
471
|
+
* Origin of the organization event
|
|
472
|
+
* @export
|
|
473
|
+
* @enum {string}
|
|
474
|
+
*/
|
|
475
|
+
var OrganizationEventOrigin;
|
|
476
|
+
(function (OrganizationEventOrigin) {
|
|
477
|
+
OrganizationEventOrigin["API"] = "API";
|
|
478
|
+
OrganizationEventOrigin["CLI"] = "CLI";
|
|
479
|
+
OrganizationEventOrigin["CONSOLE"] = "CONSOLE";
|
|
480
|
+
OrganizationEventOrigin["GIT"] = "GIT";
|
|
481
|
+
OrganizationEventOrigin["TERRAFORM_PROVIDER"] = "TERRAFORM_PROVIDER";
|
|
482
|
+
})(OrganizationEventOrigin = exports.OrganizationEventOrigin || (exports.OrganizationEventOrigin = {}));
|
|
483
|
+
/**
|
|
484
|
+
* Type of the organization event
|
|
485
|
+
* @export
|
|
486
|
+
* @enum {string}
|
|
487
|
+
*/
|
|
488
|
+
var OrganizationEventSubTargetType;
|
|
489
|
+
(function (OrganizationEventSubTargetType) {
|
|
490
|
+
OrganizationEventSubTargetType["ADVANCED_SETTINGS"] = "ADVANCED_SETTINGS";
|
|
491
|
+
OrganizationEventSubTargetType["API_TOKEN"] = "API_TOKEN";
|
|
492
|
+
OrganizationEventSubTargetType["BILLING_INFO"] = "BILLING_INFO";
|
|
493
|
+
OrganizationEventSubTargetType["CLOUD_PROVIDER_CREDENTIALS"] = "CLOUD_PROVIDER_CREDENTIALS";
|
|
494
|
+
OrganizationEventSubTargetType["CLUSTER_CREDENTIALS"] = "CLUSTER_CREDENTIALS";
|
|
495
|
+
OrganizationEventSubTargetType["CLUSTER_ROUTING_TABLE"] = "CLUSTER_ROUTING_TABLE";
|
|
496
|
+
OrganizationEventSubTargetType["CREDIT_CARD"] = "CREDIT_CARD";
|
|
497
|
+
OrganizationEventSubTargetType["CREDIT_CODE"] = "CREDIT_CODE";
|
|
498
|
+
OrganizationEventSubTargetType["CUSTOM_DOMAIN"] = "CUSTOM_DOMAIN";
|
|
499
|
+
OrganizationEventSubTargetType["CUSTOM_ROLE"] = "CUSTOM_ROLE";
|
|
500
|
+
OrganizationEventSubTargetType["DEPLOYMENT_RULE"] = "DEPLOYMENT_RULE";
|
|
501
|
+
OrganizationEventSubTargetType["DEPLOYMENT_STAGE"] = "DEPLOYMENT_STAGE";
|
|
502
|
+
OrganizationEventSubTargetType["GITHUB_APP"] = "GITHUB_APP";
|
|
503
|
+
OrganizationEventSubTargetType["GIT_REPOSITORY"] = "GIT_REPOSITORY";
|
|
504
|
+
OrganizationEventSubTargetType["INVITATION"] = "INVITATION";
|
|
505
|
+
OrganizationEventSubTargetType["MEMBER_ROLE"] = "MEMBER_ROLE";
|
|
506
|
+
OrganizationEventSubTargetType["PLAN"] = "PLAN";
|
|
507
|
+
OrganizationEventSubTargetType["SECRET"] = "SECRET";
|
|
508
|
+
OrganizationEventSubTargetType["TRANSFER_OWNERSHIP"] = "TRANSFER_OWNERSHIP";
|
|
509
|
+
OrganizationEventSubTargetType["VARIABLE"] = "VARIABLE";
|
|
510
|
+
})(OrganizationEventSubTargetType = exports.OrganizationEventSubTargetType || (exports.OrganizationEventSubTargetType = {}));
|
|
511
|
+
/**
|
|
512
|
+
* Type of the organization event
|
|
513
|
+
* @export
|
|
514
|
+
* @enum {string}
|
|
515
|
+
*/
|
|
516
|
+
var OrganizationEventTargetType;
|
|
517
|
+
(function (OrganizationEventTargetType) {
|
|
518
|
+
OrganizationEventTargetType["APPLICATION"] = "APPLICATION";
|
|
519
|
+
OrganizationEventTargetType["CLUSTER"] = "CLUSTER";
|
|
520
|
+
OrganizationEventTargetType["CONTAINER"] = "CONTAINER";
|
|
521
|
+
OrganizationEventTargetType["CONTAINER_REGISTRY"] = "CONTAINER_REGISTRY";
|
|
522
|
+
OrganizationEventTargetType["DATABASE"] = "DATABASE";
|
|
523
|
+
OrganizationEventTargetType["ENVIRONMENT"] = "ENVIRONMENT";
|
|
524
|
+
OrganizationEventTargetType["JOB"] = "JOB";
|
|
525
|
+
OrganizationEventTargetType["MEMBERS_AND_ROLES"] = "MEMBERS_AND_ROLES";
|
|
526
|
+
OrganizationEventTargetType["ORGANIZATION"] = "ORGANIZATION";
|
|
527
|
+
OrganizationEventTargetType["PROJECT"] = "PROJECT";
|
|
528
|
+
OrganizationEventTargetType["WEBHOOK"] = "WEBHOOK";
|
|
529
|
+
})(OrganizationEventTargetType = exports.OrganizationEventTargetType || (exports.OrganizationEventTargetType = {}));
|
|
530
|
+
/**
|
|
531
|
+
* Type of the organization event
|
|
532
|
+
* @export
|
|
533
|
+
* @enum {string}
|
|
534
|
+
*/
|
|
535
|
+
var OrganizationEventType;
|
|
536
|
+
(function (OrganizationEventType) {
|
|
537
|
+
OrganizationEventType["CREATE"] = "CREATE";
|
|
538
|
+
OrganizationEventType["UPDATE"] = "UPDATE";
|
|
539
|
+
OrganizationEventType["DELETE"] = "DELETE";
|
|
540
|
+
OrganizationEventType["ACCEPT"] = "ACCEPT";
|
|
541
|
+
OrganizationEventType["TRIGGER_DEPLOY"] = "TRIGGER_DEPLOY";
|
|
542
|
+
OrganizationEventType["TRIGGER_REDEPLOY"] = "TRIGGER_REDEPLOY";
|
|
543
|
+
OrganizationEventType["TRIGGER_STOP"] = "TRIGGER_STOP";
|
|
544
|
+
OrganizationEventType["TRIGGER_CANCEL"] = "TRIGGER_CANCEL";
|
|
545
|
+
OrganizationEventType["TRIGGER_RESTART"] = "TRIGGER_RESTART";
|
|
546
|
+
OrganizationEventType["TRIGGER_DELETE"] = "TRIGGER_DELETE";
|
|
547
|
+
})(OrganizationEventType = exports.OrganizationEventType || (exports.OrganizationEventType = {}));
|
|
470
548
|
/**
|
|
471
549
|
* Events to subscribe to and send to the `target_url`. - `DEPLOYMENT_STARTED` send an event when a deployment is started and going to be executed - `DEPLOYMENT_CANCELLED` send an event when a deployment is cancelled - `DEPLOYMENT_FAILURE` send an event when a deployment failed - `DEPLOYMENT_SUCCESSFUL` send an event when a deployment is successful
|
|
472
550
|
* @export
|
|
@@ -24440,6 +24518,170 @@ class OrganizationCustomRoleApi extends base_1.BaseAPI {
|
|
|
24440
24518
|
}
|
|
24441
24519
|
}
|
|
24442
24520
|
exports.OrganizationCustomRoleApi = OrganizationCustomRoleApi;
|
|
24521
|
+
/**
|
|
24522
|
+
* OrganizationEventApi - axios parameter creator
|
|
24523
|
+
* @export
|
|
24524
|
+
*/
|
|
24525
|
+
const OrganizationEventApiAxiosParamCreator = function (configuration) {
|
|
24526
|
+
return {
|
|
24527
|
+
/**
|
|
24528
|
+
* Get all events inside the organization
|
|
24529
|
+
* @summary Get all events inside the organization
|
|
24530
|
+
* @param {string} organizationId Organization ID
|
|
24531
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
24532
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
24533
|
+
* @param {OrganizationEventType} [eventType]
|
|
24534
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
24535
|
+
* @param {string} [targetId]
|
|
24536
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
24537
|
+
* @param {string} [user] The username who has triggered the action
|
|
24538
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
24539
|
+
* @param {*} [options] Override http request option.
|
|
24540
|
+
* @throws {RequiredError}
|
|
24541
|
+
*/
|
|
24542
|
+
getOrganizationEvents: (organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
24543
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
24544
|
+
(0, common_1.assertParamExists)('getOrganizationEvents', 'organizationId', organizationId);
|
|
24545
|
+
const localVarPath = `/organization/{organizationId}/events`
|
|
24546
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
24547
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24548
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
24549
|
+
let baseOptions;
|
|
24550
|
+
if (configuration) {
|
|
24551
|
+
baseOptions = configuration.baseOptions;
|
|
24552
|
+
}
|
|
24553
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
24554
|
+
const localVarHeaderParameter = {};
|
|
24555
|
+
const localVarQueryParameter = {};
|
|
24556
|
+
// authentication bearerAuth required
|
|
24557
|
+
// http bearer authentication required
|
|
24558
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
24559
|
+
if (fromTimestamp !== undefined) {
|
|
24560
|
+
localVarQueryParameter['from-timestamp'] = (fromTimestamp instanceof Date) ?
|
|
24561
|
+
fromTimestamp.toISOString() :
|
|
24562
|
+
fromTimestamp;
|
|
24563
|
+
}
|
|
24564
|
+
if (toTimestamp !== undefined) {
|
|
24565
|
+
localVarQueryParameter['to-timestamp'] = (toTimestamp instanceof Date) ?
|
|
24566
|
+
toTimestamp.toISOString() :
|
|
24567
|
+
toTimestamp;
|
|
24568
|
+
}
|
|
24569
|
+
if (eventType !== undefined) {
|
|
24570
|
+
localVarQueryParameter['event_type'] = eventType;
|
|
24571
|
+
}
|
|
24572
|
+
if (targetType !== undefined) {
|
|
24573
|
+
localVarQueryParameter['target_type'] = targetType;
|
|
24574
|
+
}
|
|
24575
|
+
if (targetId !== undefined) {
|
|
24576
|
+
localVarQueryParameter['target_id'] = targetId;
|
|
24577
|
+
}
|
|
24578
|
+
if (subTarget !== undefined) {
|
|
24579
|
+
localVarQueryParameter['sub_target'] = subTarget;
|
|
24580
|
+
}
|
|
24581
|
+
if (user !== undefined) {
|
|
24582
|
+
localVarQueryParameter['user'] = user;
|
|
24583
|
+
}
|
|
24584
|
+
if (origin !== undefined) {
|
|
24585
|
+
localVarQueryParameter['origin'] = origin;
|
|
24586
|
+
}
|
|
24587
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
24588
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24589
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
24590
|
+
return {
|
|
24591
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
24592
|
+
options: localVarRequestOptions,
|
|
24593
|
+
};
|
|
24594
|
+
}),
|
|
24595
|
+
};
|
|
24596
|
+
};
|
|
24597
|
+
exports.OrganizationEventApiAxiosParamCreator = OrganizationEventApiAxiosParamCreator;
|
|
24598
|
+
/**
|
|
24599
|
+
* OrganizationEventApi - functional programming interface
|
|
24600
|
+
* @export
|
|
24601
|
+
*/
|
|
24602
|
+
const OrganizationEventApiFp = function (configuration) {
|
|
24603
|
+
const localVarAxiosParamCreator = (0, exports.OrganizationEventApiAxiosParamCreator)(configuration);
|
|
24604
|
+
return {
|
|
24605
|
+
/**
|
|
24606
|
+
* Get all events inside the organization
|
|
24607
|
+
* @summary Get all events inside the organization
|
|
24608
|
+
* @param {string} organizationId Organization ID
|
|
24609
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
24610
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
24611
|
+
* @param {OrganizationEventType} [eventType]
|
|
24612
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
24613
|
+
* @param {string} [targetId]
|
|
24614
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
24615
|
+
* @param {string} [user] The username who has triggered the action
|
|
24616
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
24617
|
+
* @param {*} [options] Override http request option.
|
|
24618
|
+
* @throws {RequiredError}
|
|
24619
|
+
*/
|
|
24620
|
+
getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options) {
|
|
24621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24622
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options);
|
|
24623
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
24624
|
+
});
|
|
24625
|
+
},
|
|
24626
|
+
};
|
|
24627
|
+
};
|
|
24628
|
+
exports.OrganizationEventApiFp = OrganizationEventApiFp;
|
|
24629
|
+
/**
|
|
24630
|
+
* OrganizationEventApi - factory interface
|
|
24631
|
+
* @export
|
|
24632
|
+
*/
|
|
24633
|
+
const OrganizationEventApiFactory = function (configuration, basePath, axios) {
|
|
24634
|
+
const localVarFp = (0, exports.OrganizationEventApiFp)(configuration);
|
|
24635
|
+
return {
|
|
24636
|
+
/**
|
|
24637
|
+
* Get all events inside the organization
|
|
24638
|
+
* @summary Get all events inside the organization
|
|
24639
|
+
* @param {string} organizationId Organization ID
|
|
24640
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
24641
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
24642
|
+
* @param {OrganizationEventType} [eventType]
|
|
24643
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
24644
|
+
* @param {string} [targetId]
|
|
24645
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
24646
|
+
* @param {string} [user] The username who has triggered the action
|
|
24647
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
24648
|
+
* @param {*} [options] Override http request option.
|
|
24649
|
+
* @throws {RequiredError}
|
|
24650
|
+
*/
|
|
24651
|
+
getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options) {
|
|
24652
|
+
return localVarFp.getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options).then((request) => request(axios, basePath));
|
|
24653
|
+
},
|
|
24654
|
+
};
|
|
24655
|
+
};
|
|
24656
|
+
exports.OrganizationEventApiFactory = OrganizationEventApiFactory;
|
|
24657
|
+
/**
|
|
24658
|
+
* OrganizationEventApi - object-oriented interface
|
|
24659
|
+
* @export
|
|
24660
|
+
* @class OrganizationEventApi
|
|
24661
|
+
* @extends {BaseAPI}
|
|
24662
|
+
*/
|
|
24663
|
+
class OrganizationEventApi extends base_1.BaseAPI {
|
|
24664
|
+
/**
|
|
24665
|
+
* Get all events inside the organization
|
|
24666
|
+
* @summary Get all events inside the organization
|
|
24667
|
+
* @param {string} organizationId Organization ID
|
|
24668
|
+
* @param {string} [fromTimestamp] Display events triggered since this timestamp. A range of date can be specified by using `from-timestamp` with `to-timestamp`
|
|
24669
|
+
* @param {string} [toTimestamp] Display events triggered before this timestamp. A range of date can be specified by using `to-timestamp` with `from-timestamp`
|
|
24670
|
+
* @param {OrganizationEventType} [eventType]
|
|
24671
|
+
* @param {OrganizationEventTargetType} [targetType]
|
|
24672
|
+
* @param {string} [targetId]
|
|
24673
|
+
* @param {OrganizationEventSubTargetType} [subTarget]
|
|
24674
|
+
* @param {string} [user] The username who has triggered the action
|
|
24675
|
+
* @param {OrganizationEventOrigin} [origin]
|
|
24676
|
+
* @param {*} [options] Override http request option.
|
|
24677
|
+
* @throws {RequiredError}
|
|
24678
|
+
* @memberof OrganizationEventApi
|
|
24679
|
+
*/
|
|
24680
|
+
getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options) {
|
|
24681
|
+
return (0, exports.OrganizationEventApiFp)(this.configuration).getOrganizationEvents(organizationId, fromTimestamp, toTimestamp, eventType, targetType, targetId, subTarget, user, origin, options).then((request) => request(this.axios, this.basePath));
|
|
24682
|
+
}
|
|
24683
|
+
}
|
|
24684
|
+
exports.OrganizationEventApi = OrganizationEventApi;
|
|
24443
24685
|
/**
|
|
24444
24686
|
* OrganizationMainCallsApi - axios parameter creator
|
|
24445
24687
|
* @export
|