fulcrum-cem-client 0.0.1
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/.openapi-generator/FILES +96 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/AgentsApi.d.ts +271 -0
- package/dist/apis/AgentsApi.js +382 -0
- package/dist/apis/CommitmentsApi.d.ts +150 -0
- package/dist/apis/CommitmentsApi.js +210 -0
- package/dist/apis/EventApi.d.ts +124 -0
- package/dist/apis/EventApi.js +174 -0
- package/dist/apis/JobsApi.d.ts +231 -0
- package/dist/apis/JobsApi.js +324 -0
- package/dist/apis/MetricsApi.d.ts +200 -0
- package/dist/apis/MetricsApi.js +281 -0
- package/dist/apis/NotaryJobsApi.d.ts +153 -0
- package/dist/apis/NotaryJobsApi.js +209 -0
- package/dist/apis/ParticipantsApi.d.ts +150 -0
- package/dist/apis/ParticipantsApi.js +210 -0
- package/dist/apis/ServiceOfferingsApi.d.ts +150 -0
- package/dist/apis/ServiceOfferingsApi.js +210 -0
- package/dist/apis/ServiceOrdersApi.d.ts +102 -0
- package/dist/apis/ServiceOrdersApi.js +142 -0
- package/dist/apis/ServicesApi.d.ts +520 -0
- package/dist/apis/ServicesApi.js +736 -0
- package/dist/apis/TokensApi.d.ts +174 -0
- package/dist/apis/TokensApi.js +244 -0
- package/dist/apis/TransactionsApi.d.ts +198 -0
- package/dist/apis/TransactionsApi.js +278 -0
- package/dist/apis/index.d.ts +12 -0
- package/dist/apis/index.js +30 -0
- package/dist/esm/apis/AgentsApi.d.ts +271 -0
- package/dist/esm/apis/AgentsApi.js +378 -0
- package/dist/esm/apis/CommitmentsApi.d.ts +150 -0
- package/dist/esm/apis/CommitmentsApi.js +206 -0
- package/dist/esm/apis/EventApi.d.ts +124 -0
- package/dist/esm/apis/EventApi.js +170 -0
- package/dist/esm/apis/JobsApi.d.ts +231 -0
- package/dist/esm/apis/JobsApi.js +320 -0
- package/dist/esm/apis/MetricsApi.d.ts +200 -0
- package/dist/esm/apis/MetricsApi.js +277 -0
- package/dist/esm/apis/NotaryJobsApi.d.ts +153 -0
- package/dist/esm/apis/NotaryJobsApi.js +205 -0
- package/dist/esm/apis/ParticipantsApi.d.ts +150 -0
- package/dist/esm/apis/ParticipantsApi.js +206 -0
- package/dist/esm/apis/ServiceOfferingsApi.d.ts +150 -0
- package/dist/esm/apis/ServiceOfferingsApi.js +206 -0
- package/dist/esm/apis/ServiceOrdersApi.d.ts +102 -0
- package/dist/esm/apis/ServiceOrdersApi.js +138 -0
- package/dist/esm/apis/ServicesApi.d.ts +520 -0
- package/dist/esm/apis/ServicesApi.js +732 -0
- package/dist/esm/apis/TokensApi.d.ts +174 -0
- package/dist/esm/apis/TokensApi.js +240 -0
- package/dist/esm/apis/TransactionsApi.d.ts +198 -0
- package/dist/esm/apis/TransactionsApi.js +274 -0
- package/dist/esm/apis/index.d.ts +12 -0
- package/dist/esm/apis/index.js +14 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/models/AcknowledgeEvents200Response.d.ts +32 -0
- package/dist/esm/models/AcknowledgeEvents200Response.js +41 -0
- package/dist/esm/models/AcknowledgeEventsRequest.d.ts +44 -0
- package/dist/esm/models/AcknowledgeEventsRequest.js +51 -0
- package/dist/esm/models/AgentCreateRes.d.ts +96 -0
- package/dist/esm/models/AgentCreateRes.js +65 -0
- package/dist/esm/models/AgentRes.d.ts +89 -0
- package/dist/esm/models/AgentRes.js +62 -0
- package/dist/esm/models/AgentStatus.d.ts +28 -0
- package/dist/esm/models/AgentStatus.js +46 -0
- package/dist/esm/models/AgentTypeReq.d.ts +32 -0
- package/dist/esm/models/AgentTypeReq.js +43 -0
- package/dist/esm/models/AgentTypeRes.d.ts +57 -0
- package/dist/esm/models/AgentTypeRes.js +50 -0
- package/dist/esm/models/AuthRole.d.ts +26 -0
- package/dist/esm/models/AuthRole.js +44 -0
- package/dist/esm/models/ByPeriodReq.d.ts +39 -0
- package/dist/esm/models/ByPeriodReq.js +48 -0
- package/dist/esm/models/ByPeriodReqFrom.d.ts +38 -0
- package/dist/esm/models/ByPeriodReqFrom.js +47 -0
- package/dist/esm/models/CommitmentReq.d.ts +50 -0
- package/dist/esm/models/CommitmentReq.js +55 -0
- package/dist/esm/models/CommitmentRes.d.ts +68 -0
- package/dist/esm/models/CommitmentRes.js +53 -0
- package/dist/esm/models/CompleteJobRequest.d.ts +40 -0
- package/dist/esm/models/CompleteJobRequest.js +43 -0
- package/dist/esm/models/CreateAgentReq.d.ts +58 -0
- package/dist/esm/models/CreateAgentReq.js +55 -0
- package/dist/esm/models/CreateCEMServiceReq.d.ts +70 -0
- package/dist/esm/models/CreateCEMServiceReq.js +67 -0
- package/dist/esm/models/CreateEventRequest.d.ts +52 -0
- package/dist/esm/models/CreateEventRequest.js +55 -0
- package/dist/esm/models/CreateMetricEntryRequest.d.ts +80 -0
- package/dist/esm/models/CreateMetricEntryRequest.js +71 -0
- package/dist/esm/models/CreateMetricTypeRequest.d.ts +47 -0
- package/dist/esm/models/CreateMetricTypeRequest.js +55 -0
- package/dist/esm/models/ErrorRes.d.ts +44 -0
- package/dist/esm/models/ErrorRes.js +45 -0
- package/dist/esm/models/FailJobRequest.d.ts +32 -0
- package/dist/esm/models/FailJobRequest.js +43 -0
- package/dist/esm/models/JobRes.d.ts +124 -0
- package/dist/esm/models/JobRes.js +73 -0
- package/dist/esm/models/JobStatus.d.ts +28 -0
- package/dist/esm/models/JobStatus.js +46 -0
- package/dist/esm/models/LeaseEvents200Response.d.ts +44 -0
- package/dist/esm/models/LeaseEvents200Response.js +45 -0
- package/dist/esm/models/LeaseEventsRequest.d.ts +50 -0
- package/dist/esm/models/LeaseEventsRequest.js +51 -0
- package/dist/esm/models/ListEvents200ResponseInner.d.ts +94 -0
- package/dist/esm/models/ListEvents200ResponseInner.js +61 -0
- package/dist/esm/models/ListMetricEntries200ResponseInner.d.ts +86 -0
- package/dist/esm/models/ListMetricEntries200ResponseInner.js +59 -0
- package/dist/esm/models/ListMetricTypes200ResponseInner.d.ts +65 -0
- package/dist/esm/models/ListMetricTypes200ResponseInner.js +57 -0
- package/dist/esm/models/MarkJobUnsupportedRequest.d.ts +32 -0
- package/dist/esm/models/MarkJobUnsupportedRequest.js +43 -0
- package/dist/esm/models/NotaryJobRes.d.ts +94 -0
- package/dist/esm/models/NotaryJobRes.js +63 -0
- package/dist/esm/models/NotaryJobStatus.d.ts +28 -0
- package/dist/esm/models/NotaryJobStatus.js +46 -0
- package/dist/esm/models/PageRes.d.ts +56 -0
- package/dist/esm/models/PageRes.js +49 -0
- package/dist/esm/models/PaginationParams.d.ts +38 -0
- package/dist/esm/models/PaginationParams.js +43 -0
- package/dist/esm/models/ParticipantReq.d.ts +39 -0
- package/dist/esm/models/ParticipantReq.js +48 -0
- package/dist/esm/models/ParticipantRes.d.ts +57 -0
- package/dist/esm/models/ParticipantRes.js +50 -0
- package/dist/esm/models/ParticipantStatus.d.ts +25 -0
- package/dist/esm/models/ParticipantStatus.js +43 -0
- package/dist/esm/models/PriceItem.d.ts +68 -0
- package/dist/esm/models/PriceItem.js +53 -0
- package/dist/esm/models/PropertyDefinition.d.ts +83 -0
- package/dist/esm/models/PropertyDefinition.js +66 -0
- package/dist/esm/models/ServiceAction.d.ts +28 -0
- package/dist/esm/models/ServiceAction.js +46 -0
- package/dist/esm/models/ServiceGroupReq.d.ts +38 -0
- package/dist/esm/models/ServiceGroupReq.js +47 -0
- package/dist/esm/models/ServiceGroupRes.d.ts +56 -0
- package/dist/esm/models/ServiceGroupRes.js +49 -0
- package/dist/esm/models/ServiceOfferingReq.d.ts +76 -0
- package/dist/esm/models/ServiceOfferingReq.js +67 -0
- package/dist/esm/models/ServiceOfferingRes.d.ts +108 -0
- package/dist/esm/models/ServiceOfferingRes.js +69 -0
- package/dist/esm/models/ServiceOfferingResServiceType.d.ts +38 -0
- package/dist/esm/models/ServiceOfferingResServiceType.js +43 -0
- package/dist/esm/models/ServiceOrderReq.d.ts +38 -0
- package/dist/esm/models/ServiceOrderReq.js +43 -0
- package/dist/esm/models/ServiceOrderRes.d.ts +141 -0
- package/dist/esm/models/ServiceOrderRes.js +80 -0
- package/dist/esm/models/ServiceRes.d.ts +170 -0
- package/dist/esm/models/ServiceRes.js +89 -0
- package/dist/esm/models/ServiceStatus.d.ts +33 -0
- package/dist/esm/models/ServiceStatus.js +51 -0
- package/dist/esm/models/ServiceTypeReq.d.ts +41 -0
- package/dist/esm/models/ServiceTypeReq.js +47 -0
- package/dist/esm/models/ServiceTypeRes.d.ts +59 -0
- package/dist/esm/models/ServiceTypeRes.js +51 -0
- package/dist/esm/models/SubmitNotaryJobReq.d.ts +44 -0
- package/dist/esm/models/SubmitNotaryJobReq.js +51 -0
- package/dist/esm/models/TokenReq.d.ts +51 -0
- package/dist/esm/models/TokenReq.js +54 -0
- package/dist/esm/models/TokenRes.d.ts +87 -0
- package/dist/esm/models/TokenRes.js +60 -0
- package/dist/esm/models/TransactionEntityType.d.ts +26 -0
- package/dist/esm/models/TransactionEntityType.js +44 -0
- package/dist/esm/models/TransactionRecordReq.d.ts +102 -0
- package/dist/esm/models/TransactionRecordReq.js +89 -0
- package/dist/esm/models/TransactionRecordRes.d.ts +159 -0
- package/dist/esm/models/TransactionRecordRes.js +86 -0
- package/dist/esm/models/TransactionStatus.d.ts +26 -0
- package/dist/esm/models/TransactionStatus.js +44 -0
- package/dist/esm/models/TransactionType.d.ts +26 -0
- package/dist/esm/models/TransactionType.js +44 -0
- package/dist/esm/models/UpdateAgentReq.d.ts +53 -0
- package/dist/esm/models/UpdateAgentReq.js +48 -0
- package/dist/esm/models/UpdateCEMServiceReq.d.ts +46 -0
- package/dist/esm/models/UpdateCEMServiceReq.js +45 -0
- package/dist/esm/models/UpdateJobRequest.d.ts +47 -0
- package/dist/esm/models/UpdateJobRequest.js +46 -0
- package/dist/esm/models/UpdateMetricTypeRequest.d.ts +32 -0
- package/dist/esm/models/UpdateMetricTypeRequest.js +41 -0
- package/dist/esm/models/UpdateMyAgentStatusRequest.d.ts +33 -0
- package/dist/esm/models/UpdateMyAgentStatusRequest.js +44 -0
- package/dist/esm/models/UpdateParticipantRequest.d.ts +39 -0
- package/dist/esm/models/UpdateParticipantRequest.js +44 -0
- package/dist/esm/models/UpdateServiceGroupRequest.d.ts +32 -0
- package/dist/esm/models/UpdateServiceGroupRequest.js +41 -0
- package/dist/esm/models/UpdateServiceTypeRequest.d.ts +41 -0
- package/dist/esm/models/UpdateServiceTypeRequest.js +45 -0
- package/dist/esm/models/UpdateTokenRequest.d.ts +38 -0
- package/dist/esm/models/UpdateTokenRequest.js +43 -0
- package/dist/esm/models/UpdateTransactionRecordRequest.d.ts +45 -0
- package/dist/esm/models/UpdateTransactionRecordRequest.js +46 -0
- package/dist/esm/models/ValidatePropertiesReq.d.ts +34 -0
- package/dist/esm/models/ValidatePropertiesReq.js +43 -0
- package/dist/esm/models/ValidatePropertiesRes.d.ts +39 -0
- package/dist/esm/models/ValidatePropertiesRes.js +44 -0
- package/dist/esm/models/ValidateServiceTypeProperties200Response.d.ts +38 -0
- package/dist/esm/models/ValidateServiceTypeProperties200Response.js +43 -0
- package/dist/esm/models/ValidateServiceTypePropertiesRequest.d.ts +34 -0
- package/dist/esm/models/ValidateServiceTypePropertiesRequest.js +41 -0
- package/dist/esm/models/ValidationError.d.ts +38 -0
- package/dist/esm/models/ValidationError.js +43 -0
- package/dist/esm/models/ValidatorDefinition.d.ts +53 -0
- package/dist/esm/models/ValidatorDefinition.js +61 -0
- package/dist/esm/models/Variant.d.ts +52 -0
- package/dist/esm/models/Variant.js +47 -0
- package/dist/esm/models/index.d.ts +74 -0
- package/dist/esm/models/index.js +76 -0
- package/dist/esm/runtime.d.ts +184 -0
- package/dist/esm/runtime.js +334 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AcknowledgeEvents200Response.d.ts +32 -0
- package/dist/models/AcknowledgeEvents200Response.js +48 -0
- package/dist/models/AcknowledgeEventsRequest.d.ts +44 -0
- package/dist/models/AcknowledgeEventsRequest.js +58 -0
- package/dist/models/AgentCreateRes.d.ts +96 -0
- package/dist/models/AgentCreateRes.js +72 -0
- package/dist/models/AgentRes.d.ts +89 -0
- package/dist/models/AgentRes.js +69 -0
- package/dist/models/AgentStatus.d.ts +28 -0
- package/dist/models/AgentStatus.js +54 -0
- package/dist/models/AgentTypeReq.d.ts +32 -0
- package/dist/models/AgentTypeReq.js +50 -0
- package/dist/models/AgentTypeRes.d.ts +57 -0
- package/dist/models/AgentTypeRes.js +57 -0
- package/dist/models/AuthRole.d.ts +26 -0
- package/dist/models/AuthRole.js +52 -0
- package/dist/models/ByPeriodReq.d.ts +39 -0
- package/dist/models/ByPeriodReq.js +55 -0
- package/dist/models/ByPeriodReqFrom.d.ts +38 -0
- package/dist/models/ByPeriodReqFrom.js +54 -0
- package/dist/models/CommitmentReq.d.ts +50 -0
- package/dist/models/CommitmentReq.js +62 -0
- package/dist/models/CommitmentRes.d.ts +68 -0
- package/dist/models/CommitmentRes.js +60 -0
- package/dist/models/CompleteJobRequest.d.ts +40 -0
- package/dist/models/CompleteJobRequest.js +50 -0
- package/dist/models/CreateAgentReq.d.ts +58 -0
- package/dist/models/CreateAgentReq.js +62 -0
- package/dist/models/CreateCEMServiceReq.d.ts +70 -0
- package/dist/models/CreateCEMServiceReq.js +74 -0
- package/dist/models/CreateEventRequest.d.ts +52 -0
- package/dist/models/CreateEventRequest.js +62 -0
- package/dist/models/CreateMetricEntryRequest.d.ts +80 -0
- package/dist/models/CreateMetricEntryRequest.js +78 -0
- package/dist/models/CreateMetricTypeRequest.d.ts +47 -0
- package/dist/models/CreateMetricTypeRequest.js +63 -0
- package/dist/models/ErrorRes.d.ts +44 -0
- package/dist/models/ErrorRes.js +52 -0
- package/dist/models/FailJobRequest.d.ts +32 -0
- package/dist/models/FailJobRequest.js +50 -0
- package/dist/models/JobRes.d.ts +124 -0
- package/dist/models/JobRes.js +80 -0
- package/dist/models/JobStatus.d.ts +28 -0
- package/dist/models/JobStatus.js +54 -0
- package/dist/models/LeaseEvents200Response.d.ts +44 -0
- package/dist/models/LeaseEvents200Response.js +52 -0
- package/dist/models/LeaseEventsRequest.d.ts +50 -0
- package/dist/models/LeaseEventsRequest.js +58 -0
- package/dist/models/ListEvents200ResponseInner.d.ts +94 -0
- package/dist/models/ListEvents200ResponseInner.js +68 -0
- package/dist/models/ListMetricEntries200ResponseInner.d.ts +86 -0
- package/dist/models/ListMetricEntries200ResponseInner.js +66 -0
- package/dist/models/ListMetricTypes200ResponseInner.d.ts +65 -0
- package/dist/models/ListMetricTypes200ResponseInner.js +65 -0
- package/dist/models/MarkJobUnsupportedRequest.d.ts +32 -0
- package/dist/models/MarkJobUnsupportedRequest.js +50 -0
- package/dist/models/NotaryJobRes.d.ts +94 -0
- package/dist/models/NotaryJobRes.js +70 -0
- package/dist/models/NotaryJobStatus.d.ts +28 -0
- package/dist/models/NotaryJobStatus.js +54 -0
- package/dist/models/PageRes.d.ts +56 -0
- package/dist/models/PageRes.js +56 -0
- package/dist/models/PaginationParams.d.ts +38 -0
- package/dist/models/PaginationParams.js +50 -0
- package/dist/models/ParticipantReq.d.ts +39 -0
- package/dist/models/ParticipantReq.js +55 -0
- package/dist/models/ParticipantRes.d.ts +57 -0
- package/dist/models/ParticipantRes.js +57 -0
- package/dist/models/ParticipantStatus.d.ts +25 -0
- package/dist/models/ParticipantStatus.js +51 -0
- package/dist/models/PriceItem.d.ts +68 -0
- package/dist/models/PriceItem.js +60 -0
- package/dist/models/PropertyDefinition.d.ts +83 -0
- package/dist/models/PropertyDefinition.js +74 -0
- package/dist/models/ServiceAction.d.ts +28 -0
- package/dist/models/ServiceAction.js +54 -0
- package/dist/models/ServiceGroupReq.d.ts +38 -0
- package/dist/models/ServiceGroupReq.js +54 -0
- package/dist/models/ServiceGroupRes.d.ts +56 -0
- package/dist/models/ServiceGroupRes.js +56 -0
- package/dist/models/ServiceOfferingReq.d.ts +76 -0
- package/dist/models/ServiceOfferingReq.js +74 -0
- package/dist/models/ServiceOfferingRes.d.ts +108 -0
- package/dist/models/ServiceOfferingRes.js +76 -0
- package/dist/models/ServiceOfferingResServiceType.d.ts +38 -0
- package/dist/models/ServiceOfferingResServiceType.js +50 -0
- package/dist/models/ServiceOrderReq.d.ts +38 -0
- package/dist/models/ServiceOrderReq.js +50 -0
- package/dist/models/ServiceOrderRes.d.ts +141 -0
- package/dist/models/ServiceOrderRes.js +87 -0
- package/dist/models/ServiceRes.d.ts +170 -0
- package/dist/models/ServiceRes.js +96 -0
- package/dist/models/ServiceStatus.d.ts +33 -0
- package/dist/models/ServiceStatus.js +59 -0
- package/dist/models/ServiceTypeReq.d.ts +41 -0
- package/dist/models/ServiceTypeReq.js +54 -0
- package/dist/models/ServiceTypeRes.d.ts +59 -0
- package/dist/models/ServiceTypeRes.js +58 -0
- package/dist/models/SubmitNotaryJobReq.d.ts +44 -0
- package/dist/models/SubmitNotaryJobReq.js +58 -0
- package/dist/models/TokenReq.d.ts +51 -0
- package/dist/models/TokenReq.js +61 -0
- package/dist/models/TokenRes.d.ts +87 -0
- package/dist/models/TokenRes.js +67 -0
- package/dist/models/TransactionEntityType.d.ts +26 -0
- package/dist/models/TransactionEntityType.js +52 -0
- package/dist/models/TransactionRecordReq.d.ts +102 -0
- package/dist/models/TransactionRecordReq.js +96 -0
- package/dist/models/TransactionRecordRes.d.ts +159 -0
- package/dist/models/TransactionRecordRes.js +93 -0
- package/dist/models/TransactionStatus.d.ts +26 -0
- package/dist/models/TransactionStatus.js +52 -0
- package/dist/models/TransactionType.d.ts +26 -0
- package/dist/models/TransactionType.js +52 -0
- package/dist/models/UpdateAgentReq.d.ts +53 -0
- package/dist/models/UpdateAgentReq.js +55 -0
- package/dist/models/UpdateCEMServiceReq.d.ts +46 -0
- package/dist/models/UpdateCEMServiceReq.js +52 -0
- package/dist/models/UpdateJobRequest.d.ts +47 -0
- package/dist/models/UpdateJobRequest.js +53 -0
- package/dist/models/UpdateMetricTypeRequest.d.ts +32 -0
- package/dist/models/UpdateMetricTypeRequest.js +48 -0
- package/dist/models/UpdateMyAgentStatusRequest.d.ts +33 -0
- package/dist/models/UpdateMyAgentStatusRequest.js +51 -0
- package/dist/models/UpdateParticipantRequest.d.ts +39 -0
- package/dist/models/UpdateParticipantRequest.js +51 -0
- package/dist/models/UpdateServiceGroupRequest.d.ts +32 -0
- package/dist/models/UpdateServiceGroupRequest.js +48 -0
- package/dist/models/UpdateServiceTypeRequest.d.ts +41 -0
- package/dist/models/UpdateServiceTypeRequest.js +52 -0
- package/dist/models/UpdateTokenRequest.d.ts +38 -0
- package/dist/models/UpdateTokenRequest.js +50 -0
- package/dist/models/UpdateTransactionRecordRequest.d.ts +45 -0
- package/dist/models/UpdateTransactionRecordRequest.js +53 -0
- package/dist/models/ValidatePropertiesReq.d.ts +34 -0
- package/dist/models/ValidatePropertiesReq.js +50 -0
- package/dist/models/ValidatePropertiesRes.d.ts +39 -0
- package/dist/models/ValidatePropertiesRes.js +51 -0
- package/dist/models/ValidateServiceTypeProperties200Response.d.ts +38 -0
- package/dist/models/ValidateServiceTypeProperties200Response.js +50 -0
- package/dist/models/ValidateServiceTypePropertiesRequest.d.ts +34 -0
- package/dist/models/ValidateServiceTypePropertiesRequest.js +48 -0
- package/dist/models/ValidationError.d.ts +38 -0
- package/dist/models/ValidationError.js +50 -0
- package/dist/models/ValidatorDefinition.d.ts +53 -0
- package/dist/models/ValidatorDefinition.js +69 -0
- package/dist/models/Variant.d.ts +52 -0
- package/dist/models/Variant.js +54 -0
- package/dist/models/index.d.ts +74 -0
- package/dist/models/index.js +92 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +350 -0
- package/package.json +20 -0
- package/src/apis/AgentsApi.ts +678 -0
- package/src/apis/CommitmentsApi.ts +365 -0
- package/src/apis/EventApi.ts +309 -0
- package/src/apis/JobsApi.ts +587 -0
- package/src/apis/MetricsApi.ts +500 -0
- package/src/apis/NotaryJobsApi.ts +361 -0
- package/src/apis/ParticipantsApi.ts +368 -0
- package/src/apis/ServiceOfferingsApi.ts +365 -0
- package/src/apis/ServiceOrdersApi.ts +242 -0
- package/src/apis/ServicesApi.ts +1349 -0
- package/src/apis/TokensApi.ts +429 -0
- package/src/apis/TransactionsApi.ts +495 -0
- package/src/apis/index.ts +14 -0
- package/src/index.ts +5 -0
- package/src/models/AcknowledgeEvents200Response.ts +65 -0
- package/src/models/AcknowledgeEventsRequest.ts +84 -0
- package/src/models/AgentCreateRes.ts +176 -0
- package/src/models/AgentRes.ts +161 -0
- package/src/models/AgentStatus.ts +56 -0
- package/src/models/AgentTypeReq.ts +66 -0
- package/src/models/AgentTypeRes.ts +105 -0
- package/src/models/AuthRole.ts +54 -0
- package/src/models/ByPeriodReq.ts +83 -0
- package/src/models/ByPeriodReqFrom.ts +75 -0
- package/src/models/CommitmentReq.ts +93 -0
- package/src/models/CommitmentRes.ts +113 -0
- package/src/models/CompleteJobRequest.ts +73 -0
- package/src/models/CreateAgentReq.ts +100 -0
- package/src/models/CreateCEMServiceReq.ts +120 -0
- package/src/models/CreateEventRequest.ts +93 -0
- package/src/models/CreateMetricEntryRequest.ts +136 -0
- package/src/models/CreateMetricTypeRequest.ts +87 -0
- package/src/models/ErrorRes.ts +81 -0
- package/src/models/FailJobRequest.ts +66 -0
- package/src/models/JobRes.ts +208 -0
- package/src/models/JobStatus.ts +56 -0
- package/src/models/LeaseEvents200Response.ts +81 -0
- package/src/models/LeaseEventsRequest.ts +91 -0
- package/src/models/ListEvents200ResponseInner.ts +145 -0
- package/src/models/ListMetricEntries200ResponseInner.ts +137 -0
- package/src/models/ListMetricTypes200ResponseInner.ts +109 -0
- package/src/models/MarkJobUnsupportedRequest.ts +66 -0
- package/src/models/NotaryJobRes.ts +162 -0
- package/src/models/NotaryJobStatus.ts +56 -0
- package/src/models/PageRes.ts +97 -0
- package/src/models/PaginationParams.ts +73 -0
- package/src/models/ParticipantReq.ts +85 -0
- package/src/models/ParticipantRes.ts +107 -0
- package/src/models/ParticipantStatus.ts +53 -0
- package/src/models/PriceItem.ts +113 -0
- package/src/models/PropertyDefinition.ts +136 -0
- package/src/models/ServiceAction.ts +56 -0
- package/src/models/ServiceGroupReq.ts +75 -0
- package/src/models/ServiceGroupRes.ts +97 -0
- package/src/models/ServiceOfferingReq.ts +141 -0
- package/src/models/ServiceOfferingRes.ts +190 -0
- package/src/models/ServiceOfferingResServiceType.ts +73 -0
- package/src/models/ServiceOrderReq.ts +73 -0
- package/src/models/ServiceOrderRes.ts +237 -0
- package/src/models/ServiceRes.ts +278 -0
- package/src/models/ServiceStatus.ts +61 -0
- package/src/models/ServiceTypeReq.ts +82 -0
- package/src/models/ServiceTypeRes.ts +105 -0
- package/src/models/SubmitNotaryJobReq.ts +84 -0
- package/src/models/TokenReq.ts +102 -0
- package/src/models/TokenRes.ts +147 -0
- package/src/models/TransactionEntityType.ts +54 -0
- package/src/models/TransactionRecordReq.ts +182 -0
- package/src/models/TransactionRecordRes.ts +263 -0
- package/src/models/TransactionStatus.ts +54 -0
- package/src/models/TransactionType.ts +54 -0
- package/src/models/UpdateAgentReq.ts +99 -0
- package/src/models/UpdateCEMServiceReq.ts +81 -0
- package/src/models/UpdateJobRequest.ts +91 -0
- package/src/models/UpdateMetricTypeRequest.ts +65 -0
- package/src/models/UpdateMyAgentStatusRequest.ts +76 -0
- package/src/models/UpdateParticipantRequest.ts +83 -0
- package/src/models/UpdateServiceGroupRequest.ts +65 -0
- package/src/models/UpdateServiceTypeRequest.ts +81 -0
- package/src/models/UpdateTokenRequest.ts +73 -0
- package/src/models/UpdateTransactionRecordRequest.ts +91 -0
- package/src/models/ValidatePropertiesReq.ts +66 -0
- package/src/models/ValidatePropertiesRes.ts +81 -0
- package/src/models/ValidateServiceTypeProperties200Response.ts +73 -0
- package/src/models/ValidateServiceTypePropertiesRequest.ts +65 -0
- package/src/models/ValidationError.ts +73 -0
- package/src/models/ValidatorDefinition.ts +93 -0
- package/src/models/Variant.ts +89 -0
- package/src/models/index.ts +76 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fulcrum CEM API
|
|
3
|
+
* A comprehensive cloud infrastructure management system designed to orchestrate and monitor distributed cloud resources across multiple providers, with CEM-specific extensions.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { CompleteJobRequest, FailJobRequest, JobRes, MarkJobUnsupportedRequest, UpdateJobRequest } from '../models/index';
|
|
14
|
+
export interface ClaimJobRequest {
|
|
15
|
+
id: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CompleteJobOperationRequest {
|
|
18
|
+
id: string;
|
|
19
|
+
completeJobRequest: CompleteJobRequest;
|
|
20
|
+
}
|
|
21
|
+
export interface FailJobOperationRequest {
|
|
22
|
+
id: string;
|
|
23
|
+
failJobRequest: FailJobRequest;
|
|
24
|
+
}
|
|
25
|
+
export interface GetJobByIdRequest {
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetPendingJobsForAgentRequest {
|
|
29
|
+
limit?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface ListJobsRequest {
|
|
32
|
+
page?: number;
|
|
33
|
+
pageSize?: number;
|
|
34
|
+
}
|
|
35
|
+
export interface MarkJobUnsupportedOperationRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
markJobUnsupportedRequest: MarkJobUnsupportedRequest;
|
|
38
|
+
}
|
|
39
|
+
export interface UpdateJobOperationRequest {
|
|
40
|
+
id: string;
|
|
41
|
+
updateJobRequest: UpdateJobRequest;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* JobsApi - interface
|
|
45
|
+
*
|
|
46
|
+
* @export
|
|
47
|
+
* @interface JobsApiInterface
|
|
48
|
+
*/
|
|
49
|
+
export interface JobsApiInterface {
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @summary Claim a job (for agents only)
|
|
53
|
+
* @param {string} id The ID of the resource
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
* @memberof JobsApiInterface
|
|
57
|
+
*/
|
|
58
|
+
claimJobRaw(requestParameters: ClaimJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
59
|
+
/**
|
|
60
|
+
* Claim a job (for agents only)
|
|
61
|
+
*/
|
|
62
|
+
claimJob(requestParameters: ClaimJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @summary Complete a job (for agents only)
|
|
66
|
+
* @param {string} id The ID of the resource
|
|
67
|
+
* @param {CompleteJobRequest} completeJobRequest
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
* @memberof JobsApiInterface
|
|
71
|
+
*/
|
|
72
|
+
completeJobRaw(requestParameters: CompleteJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
73
|
+
/**
|
|
74
|
+
* Complete a job (for agents only)
|
|
75
|
+
*/
|
|
76
|
+
completeJob(requestParameters: CompleteJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @summary Fail a job (for agents only)
|
|
80
|
+
* @param {string} id The ID of the resource
|
|
81
|
+
* @param {FailJobRequest} failJobRequest
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof JobsApiInterface
|
|
85
|
+
*/
|
|
86
|
+
failJobRaw(requestParameters: FailJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
|
+
/**
|
|
88
|
+
* Fail a job (for agents only)
|
|
89
|
+
*/
|
|
90
|
+
failJob(requestParameters: FailJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @summary Get a job by ID
|
|
94
|
+
* @param {string} id The ID of the resource
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
* @memberof JobsApiInterface
|
|
98
|
+
*/
|
|
99
|
+
getJobByIdRaw(requestParameters: GetJobByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobRes>>;
|
|
100
|
+
/**
|
|
101
|
+
* Get a job by ID
|
|
102
|
+
*/
|
|
103
|
+
getJobById(requestParameters: GetJobByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobRes>;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @summary Get pending jobs for the current agent
|
|
107
|
+
* @param {number} [limit] Maximum number of pending jobs to return
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
* @memberof JobsApiInterface
|
|
111
|
+
*/
|
|
112
|
+
getPendingJobsForAgentRaw(requestParameters: GetPendingJobsForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JobRes>>>;
|
|
113
|
+
/**
|
|
114
|
+
* Get pending jobs for the current agent
|
|
115
|
+
*/
|
|
116
|
+
getPendingJobsForAgent(requestParameters: GetPendingJobsForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobRes>>;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @summary List all jobs
|
|
120
|
+
* @param {number} [page] The page number (1-based)
|
|
121
|
+
* @param {number} [pageSize] The number of items per page
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
* @memberof JobsApiInterface
|
|
125
|
+
*/
|
|
126
|
+
listJobsRaw(requestParameters: ListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JobRes>>>;
|
|
127
|
+
/**
|
|
128
|
+
* List all jobs
|
|
129
|
+
*/
|
|
130
|
+
listJobs(requestParameters: ListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobRes>>;
|
|
131
|
+
/**
|
|
132
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
133
|
+
* @summary Mark a job as unsupported
|
|
134
|
+
* @param {string} id The ID of the resource
|
|
135
|
+
* @param {MarkJobUnsupportedRequest} markJobUnsupportedRequest
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof JobsApiInterface
|
|
139
|
+
*/
|
|
140
|
+
markJobUnsupportedRaw(requestParameters: MarkJobUnsupportedOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
141
|
+
/**
|
|
142
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
143
|
+
* Mark a job as unsupported
|
|
144
|
+
*/
|
|
145
|
+
markJobUnsupported(requestParameters: MarkJobUnsupportedOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Update a job (for agents only)
|
|
149
|
+
* @param {string} id The ID of the resource
|
|
150
|
+
* @param {UpdateJobRequest} updateJobRequest
|
|
151
|
+
* @param {*} [options] Override http request option.
|
|
152
|
+
* @throws {RequiredError}
|
|
153
|
+
* @memberof JobsApiInterface
|
|
154
|
+
*/
|
|
155
|
+
updateJobRaw(requestParameters: UpdateJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobRes>>;
|
|
156
|
+
/**
|
|
157
|
+
* Update a job (for agents only)
|
|
158
|
+
*/
|
|
159
|
+
updateJob(requestParameters: UpdateJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobRes>;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
export declare class JobsApi extends runtime.BaseAPI implements JobsApiInterface {
|
|
165
|
+
/**
|
|
166
|
+
* Claim a job (for agents only)
|
|
167
|
+
*/
|
|
168
|
+
claimJobRaw(requestParameters: ClaimJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
169
|
+
/**
|
|
170
|
+
* Claim a job (for agents only)
|
|
171
|
+
*/
|
|
172
|
+
claimJob(requestParameters: ClaimJobRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
173
|
+
/**
|
|
174
|
+
* Complete a job (for agents only)
|
|
175
|
+
*/
|
|
176
|
+
completeJobRaw(requestParameters: CompleteJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
177
|
+
/**
|
|
178
|
+
* Complete a job (for agents only)
|
|
179
|
+
*/
|
|
180
|
+
completeJob(requestParameters: CompleteJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
181
|
+
/**
|
|
182
|
+
* Fail a job (for agents only)
|
|
183
|
+
*/
|
|
184
|
+
failJobRaw(requestParameters: FailJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
185
|
+
/**
|
|
186
|
+
* Fail a job (for agents only)
|
|
187
|
+
*/
|
|
188
|
+
failJob(requestParameters: FailJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
189
|
+
/**
|
|
190
|
+
* Get a job by ID
|
|
191
|
+
*/
|
|
192
|
+
getJobByIdRaw(requestParameters: GetJobByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobRes>>;
|
|
193
|
+
/**
|
|
194
|
+
* Get a job by ID
|
|
195
|
+
*/
|
|
196
|
+
getJobById(requestParameters: GetJobByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobRes>;
|
|
197
|
+
/**
|
|
198
|
+
* Get pending jobs for the current agent
|
|
199
|
+
*/
|
|
200
|
+
getPendingJobsForAgentRaw(requestParameters: GetPendingJobsForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JobRes>>>;
|
|
201
|
+
/**
|
|
202
|
+
* Get pending jobs for the current agent
|
|
203
|
+
*/
|
|
204
|
+
getPendingJobsForAgent(requestParameters?: GetPendingJobsForAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobRes>>;
|
|
205
|
+
/**
|
|
206
|
+
* List all jobs
|
|
207
|
+
*/
|
|
208
|
+
listJobsRaw(requestParameters: ListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<JobRes>>>;
|
|
209
|
+
/**
|
|
210
|
+
* List all jobs
|
|
211
|
+
*/
|
|
212
|
+
listJobs(requestParameters?: ListJobsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<JobRes>>;
|
|
213
|
+
/**
|
|
214
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
215
|
+
* Mark a job as unsupported
|
|
216
|
+
*/
|
|
217
|
+
markJobUnsupportedRaw(requestParameters: MarkJobUnsupportedOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
218
|
+
/**
|
|
219
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
220
|
+
* Mark a job as unsupported
|
|
221
|
+
*/
|
|
222
|
+
markJobUnsupported(requestParameters: MarkJobUnsupportedOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
223
|
+
/**
|
|
224
|
+
* Update a job (for agents only)
|
|
225
|
+
*/
|
|
226
|
+
updateJobRaw(requestParameters: UpdateJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<JobRes>>;
|
|
227
|
+
/**
|
|
228
|
+
* Update a job (for agents only)
|
|
229
|
+
*/
|
|
230
|
+
updateJob(requestParameters: UpdateJobOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobRes>;
|
|
231
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fulcrum CEM API
|
|
5
|
+
* A comprehensive cloud infrastructure management system designed to orchestrate and monitor distributed cloud resources across multiple providers, with CEM-specific extensions.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { CompleteJobRequestToJSON, FailJobRequestToJSON, JobResFromJSON, MarkJobUnsupportedRequestToJSON, UpdateJobRequestToJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class JobsApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Claim a job (for agents only)
|
|
31
|
+
*/
|
|
32
|
+
claimJobRaw(requestParameters, initOverrides) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['id'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling claimJob().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
// oauth required
|
|
41
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
42
|
+
}
|
|
43
|
+
let urlPath = `/jobs/{id}`;
|
|
44
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
45
|
+
const response = yield this.request({
|
|
46
|
+
path: urlPath,
|
|
47
|
+
method: 'POST',
|
|
48
|
+
headers: headerParameters,
|
|
49
|
+
query: queryParameters,
|
|
50
|
+
}, initOverrides);
|
|
51
|
+
return new runtime.VoidApiResponse(response);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Claim a job (for agents only)
|
|
56
|
+
*/
|
|
57
|
+
claimJob(requestParameters, initOverrides) {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
yield this.claimJobRaw(requestParameters, initOverrides);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Complete a job (for agents only)
|
|
64
|
+
*/
|
|
65
|
+
completeJobRaw(requestParameters, initOverrides) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
if (requestParameters['id'] == null) {
|
|
68
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling completeJob().');
|
|
69
|
+
}
|
|
70
|
+
if (requestParameters['completeJobRequest'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('completeJobRequest', 'Required parameter "completeJobRequest" was null or undefined when calling completeJob().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
// oauth required
|
|
78
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
79
|
+
}
|
|
80
|
+
let urlPath = `/jobs/{id}/complete`;
|
|
81
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
82
|
+
const response = yield this.request({
|
|
83
|
+
path: urlPath,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
headers: headerParameters,
|
|
86
|
+
query: queryParameters,
|
|
87
|
+
body: CompleteJobRequestToJSON(requestParameters['completeJobRequest']),
|
|
88
|
+
}, initOverrides);
|
|
89
|
+
return new runtime.VoidApiResponse(response);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Complete a job (for agents only)
|
|
94
|
+
*/
|
|
95
|
+
completeJob(requestParameters, initOverrides) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
yield this.completeJobRaw(requestParameters, initOverrides);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Fail a job (for agents only)
|
|
102
|
+
*/
|
|
103
|
+
failJobRaw(requestParameters, initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
if (requestParameters['id'] == null) {
|
|
106
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling failJob().');
|
|
107
|
+
}
|
|
108
|
+
if (requestParameters['failJobRequest'] == null) {
|
|
109
|
+
throw new runtime.RequiredError('failJobRequest', 'Required parameter "failJobRequest" was null or undefined when calling failJob().');
|
|
110
|
+
}
|
|
111
|
+
const queryParameters = {};
|
|
112
|
+
const headerParameters = {};
|
|
113
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
// oauth required
|
|
116
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
117
|
+
}
|
|
118
|
+
let urlPath = `/jobs/{id}/fail`;
|
|
119
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
120
|
+
const response = yield this.request({
|
|
121
|
+
path: urlPath,
|
|
122
|
+
method: 'POST',
|
|
123
|
+
headers: headerParameters,
|
|
124
|
+
query: queryParameters,
|
|
125
|
+
body: FailJobRequestToJSON(requestParameters['failJobRequest']),
|
|
126
|
+
}, initOverrides);
|
|
127
|
+
return new runtime.VoidApiResponse(response);
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Fail a job (for agents only)
|
|
132
|
+
*/
|
|
133
|
+
failJob(requestParameters, initOverrides) {
|
|
134
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
+
yield this.failJobRaw(requestParameters, initOverrides);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Get a job by ID
|
|
140
|
+
*/
|
|
141
|
+
getJobByIdRaw(requestParameters, initOverrides) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
if (requestParameters['id'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getJobById().');
|
|
145
|
+
}
|
|
146
|
+
const queryParameters = {};
|
|
147
|
+
const headerParameters = {};
|
|
148
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
+
// oauth required
|
|
150
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", []);
|
|
151
|
+
}
|
|
152
|
+
let urlPath = `/jobs/{id}`;
|
|
153
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
154
|
+
const response = yield this.request({
|
|
155
|
+
path: urlPath,
|
|
156
|
+
method: 'GET',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
}, initOverrides);
|
|
160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobResFromJSON(jsonValue));
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Get a job by ID
|
|
165
|
+
*/
|
|
166
|
+
getJobById(requestParameters, initOverrides) {
|
|
167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
const response = yield this.getJobByIdRaw(requestParameters, initOverrides);
|
|
169
|
+
return yield response.value();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Get pending jobs for the current agent
|
|
174
|
+
*/
|
|
175
|
+
getPendingJobsForAgentRaw(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const queryParameters = {};
|
|
178
|
+
if (requestParameters['limit'] != null) {
|
|
179
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
180
|
+
}
|
|
181
|
+
const headerParameters = {};
|
|
182
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
183
|
+
// oauth required
|
|
184
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
185
|
+
}
|
|
186
|
+
let urlPath = `/jobs/pending`;
|
|
187
|
+
const response = yield this.request({
|
|
188
|
+
path: urlPath,
|
|
189
|
+
method: 'GET',
|
|
190
|
+
headers: headerParameters,
|
|
191
|
+
query: queryParameters,
|
|
192
|
+
}, initOverrides);
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobResFromJSON));
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Get pending jobs for the current agent
|
|
198
|
+
*/
|
|
199
|
+
getPendingJobsForAgent() {
|
|
200
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
201
|
+
const response = yield this.getPendingJobsForAgentRaw(requestParameters, initOverrides);
|
|
202
|
+
return yield response.value();
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* List all jobs
|
|
207
|
+
*/
|
|
208
|
+
listJobsRaw(requestParameters, initOverrides) {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
const queryParameters = {};
|
|
211
|
+
if (requestParameters['page'] != null) {
|
|
212
|
+
queryParameters['page'] = requestParameters['page'];
|
|
213
|
+
}
|
|
214
|
+
if (requestParameters['pageSize'] != null) {
|
|
215
|
+
queryParameters['pageSize'] = requestParameters['pageSize'];
|
|
216
|
+
}
|
|
217
|
+
const headerParameters = {};
|
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
+
// oauth required
|
|
220
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", []);
|
|
221
|
+
}
|
|
222
|
+
let urlPath = `/jobs`;
|
|
223
|
+
const response = yield this.request({
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'GET',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
}, initOverrides);
|
|
229
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(JobResFromJSON));
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* List all jobs
|
|
234
|
+
*/
|
|
235
|
+
listJobs() {
|
|
236
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
237
|
+
const response = yield this.listJobsRaw(requestParameters, initOverrides);
|
|
238
|
+
return yield response.value();
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
243
|
+
* Mark a job as unsupported
|
|
244
|
+
*/
|
|
245
|
+
markJobUnsupportedRaw(requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
247
|
+
if (requestParameters['id'] == null) {
|
|
248
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling markJobUnsupported().');
|
|
249
|
+
}
|
|
250
|
+
if (requestParameters['markJobUnsupportedRequest'] == null) {
|
|
251
|
+
throw new runtime.RequiredError('markJobUnsupportedRequest', 'Required parameter "markJobUnsupportedRequest" was null or undefined when calling markJobUnsupported().');
|
|
252
|
+
}
|
|
253
|
+
const queryParameters = {};
|
|
254
|
+
const headerParameters = {};
|
|
255
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
257
|
+
// oauth required
|
|
258
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
259
|
+
}
|
|
260
|
+
let urlPath = `/jobs/{id}/unsupported`;
|
|
261
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
262
|
+
const response = yield this.request({
|
|
263
|
+
path: urlPath,
|
|
264
|
+
method: 'POST',
|
|
265
|
+
headers: headerParameters,
|
|
266
|
+
query: queryParameters,
|
|
267
|
+
body: MarkJobUnsupportedRequestToJSON(requestParameters['markJobUnsupportedRequest']),
|
|
268
|
+
}, initOverrides);
|
|
269
|
+
return new runtime.VoidApiResponse(response);
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Marks a job as failed due to an unsupported operation and rolls back the service state. Unlike regular failures, this clears the service\'s target status and properties, rolling back to the previous stable state. Unsupported operations are not retried.
|
|
274
|
+
* Mark a job as unsupported
|
|
275
|
+
*/
|
|
276
|
+
markJobUnsupported(requestParameters, initOverrides) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
yield this.markJobUnsupportedRaw(requestParameters, initOverrides);
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Update a job (for agents only)
|
|
283
|
+
*/
|
|
284
|
+
updateJobRaw(requestParameters, initOverrides) {
|
|
285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
+
if (requestParameters['id'] == null) {
|
|
287
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateJob().');
|
|
288
|
+
}
|
|
289
|
+
if (requestParameters['updateJobRequest'] == null) {
|
|
290
|
+
throw new runtime.RequiredError('updateJobRequest', 'Required parameter "updateJobRequest" was null or undefined when calling updateJob().');
|
|
291
|
+
}
|
|
292
|
+
const queryParameters = {};
|
|
293
|
+
const headerParameters = {};
|
|
294
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
295
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
296
|
+
// oauth required
|
|
297
|
+
headerParameters["Authorization"] = yield this.configuration.accessToken("BearerAuth", ["agent"]);
|
|
298
|
+
}
|
|
299
|
+
let urlPath = `/jobs/{id}`;
|
|
300
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
301
|
+
const response = yield this.request({
|
|
302
|
+
path: urlPath,
|
|
303
|
+
method: 'PATCH',
|
|
304
|
+
headers: headerParameters,
|
|
305
|
+
query: queryParameters,
|
|
306
|
+
body: UpdateJobRequestToJSON(requestParameters['updateJobRequest']),
|
|
307
|
+
}, initOverrides);
|
|
308
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => JobResFromJSON(jsonValue));
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Update a job (for agents only)
|
|
313
|
+
*/
|
|
314
|
+
updateJob(requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
316
|
+
const response = yield this.updateJobRaw(requestParameters, initOverrides);
|
|
317
|
+
return yield response.value();
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
}
|