Skip to content

Commit

Permalink
Update API models (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbbyB97 authored Aug 30, 2024
1 parent 47aad32 commit 54e5189
Show file tree
Hide file tree
Showing 373 changed files with 529 additions and 367 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"cron-expression-validator": "^1.0.20",
"cron-parser": "^4.8.1",
"cronstrue": "^2.47.0",
"czertainly-administrator": "file:",
"dagre": "^0.8.5",
"dompurify": "^3.0.0",
"file-saver": "^2.0.5",
Expand Down
3 changes: 3 additions & 0 deletions src/types/openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ models/CertificateEventHistoryDto.ts
models/CertificateFormat.ts
models/CertificateFormatEncoding.ts
models/CertificateInLocationDto.ts
models/CertificateProtocol.ts
models/CertificateProtocolDto.ts
models/CertificateRequestDto.ts
models/CertificateRequestFormat.ts
models/CertificateResponseDto.ts
Expand Down Expand Up @@ -353,6 +355,7 @@ models/UpdateConditionRequestDto.ts
models/UpdateExecutionRequestDto.ts
models/UpdateKeyUsageRequestDto.ts
models/UpdateRuleRequestDto.ts
models/UpdateScheduledJob.ts
models/UpdateTriggerRequestDto.ts
models/UpdateUserRequestDto.ts
models/UploadCertificateRequestDto.ts
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ACMEAccountManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ACMEProfileManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ApprovalInventoryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ApprovalProfileInventoryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
3 changes: 2 additions & 1 deletion src/types/openapi/apis/AuditLogApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -40,6 +40,7 @@ export interface PurgeAuditLogsRequest {
* no description
*/
export class AuditLogApi extends BaseAPI {

/**
* Export Audit logs
*/
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/AuthenticationManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/AuthorityManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CMPProfileManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CallbackApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CertificateInventoryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CertificateKeyGroupApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ClientOperationsV2Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ComplianceProfileManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ConnectorAuthenticationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ConnectorManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ConnectorRegistrationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CredentialManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CryptographicKeyControllerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/CustomAttributesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/DiscoveryManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/EntityManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/EnumsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/GlobalMetadataApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/InternalNotificationApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/LocalOperationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/LocationManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/RAProfileManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/ResourceManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/RoleManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/apis/SCEPProfileManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
31 changes: 29 additions & 2 deletions src/types/openapi/apis/ScheduledJobsManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* REST API for CZERTAINLY Core
*
* The version of the OpenAPI document: 2.12.1-SNAPSHOT
* Contact: getinfo@czertainly.com
* Contact: info@czertainly.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand All @@ -18,8 +18,9 @@ import type {
ScheduledJobDetailDto,
ScheduledJobHistoryResponseDto,
ScheduledJobsResponseDto,
UpdateScheduledJob,
} from '../models';
import type { HttpQuery, OperationOpts } from '../runtime';
import type { HttpHeaders, HttpQuery, OperationOpts } from '../runtime';
import { BaseAPI, encodeURI, throwIfNullOrUndefined } from '../runtime';

export interface DeleteScheduledJobRequest {
Expand Down Expand Up @@ -47,6 +48,11 @@ export interface ListScheduledJobsRequest {
pagination: PaginationRequestDto;
}

export interface UpdateScheduledJobRequest {
uuid: string;
updateScheduledJob: UpdateScheduledJob;
}

/**
* no description
*/
Expand Down Expand Up @@ -151,4 +157,25 @@ export class ScheduledJobsManagementApi extends BaseAPI {
}, opts?.responseOpts);
};

/**
* Edit Scheduled job
*/
updateScheduledJob({ uuid, updateScheduledJob }: UpdateScheduledJobRequest): Observable<ScheduledJobDetailDto>
updateScheduledJob({ uuid, updateScheduledJob }: UpdateScheduledJobRequest, opts?: OperationOpts): Observable<AjaxResponse<ScheduledJobDetailDto>>
updateScheduledJob({ uuid, updateScheduledJob }: UpdateScheduledJobRequest, opts?: OperationOpts): Observable<ScheduledJobDetailDto | AjaxResponse<ScheduledJobDetailDto>> {
throwIfNullOrUndefined(uuid, 'uuid', 'updateScheduledJob');
throwIfNullOrUndefined(updateScheduledJob, 'updateScheduledJob', 'updateScheduledJob');

const headers: HttpHeaders = {
'Content-Type': 'application/json',
};

return this.request<ScheduledJobDetailDto>({
url: '/v1/scheduler/jobs/{uuid}'.replace('{uuid}', encodeURI(uuid)),
method: 'PUT',
headers,
body: updateScheduledJob,
}, opts?.responseOpts);
};

}
Loading

0 comments on commit 54e5189

Please sign in to comment.