Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sweet-penguins-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@equinor/mad-maintenance-api-ts-wrapper": minor
---

Update wrapper to 1.35.0
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type OpenAPIConfig = {

export const OpenAPI: OpenAPIConfig = {
BASE: 'https://api-test.gateway.equinor.com/maintenance-api',
VERSION: '1.34.0',
VERSION: '1.35.0',
WITH_CREDENTIALS: false,
CREDENTIALS: 'include',
TOKEN: undefined,
Expand Down
13 changes: 13 additions & 0 deletions packages/api/maintenance-api/src/lib/generated/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ export type { CertificationReportSimpleSelf } from './models/CertificationReport
export type { Characteristic } from './models/Characteristic';
export type { CharacteristicAdd } from './models/CharacteristicAdd';
export type { CharacteristicAddActivityReport } from './models/CharacteristicAddActivityReport';
export type { CharacteristicForSearch } from './models/CharacteristicForSearch';
export type { CharacteristicMinimal } from './models/CharacteristicMinimal';
export type { CharacteristicsJsonPatch } from './models/CharacteristicsJsonPatch';
export type { CharacteristicsUpdate } from './models/CharacteristicsUpdate';
export type { CharacteristicValues } from './models/CharacteristicValues';
export type { Class } from './models/Class';
export type { classTypeQuery } from './models/classTypeQuery';
export type { CodeGroup } from './models/CodeGroup';
export type { ConceptActivities } from './models/ConceptActivities';
export type { Conflict } from './models/Conflict';
Expand All @@ -45,6 +47,7 @@ export type { CorrectiveWorkOrderOperation } from './models/CorrectiveWorkOrderO
export type { CorrectiveWorkOrderSimple } from './models/CorrectiveWorkOrderSimple';
export type { CorrectiveWorkOrderSimpleWithRelationship } from './models/CorrectiveWorkOrderSimpleWithRelationship';
export type { CorrectiveWorkOrderWithOperationSelf } from './models/CorrectiveWorkOrderWithOperationSelf';
export type { CostCategory } from './models/CostCategory';
export type { costNetworkQuery } from './models/costNetworkQuery';
export type { costWbsQuery } from './models/costWbsQuery';
export type { data_custom } from './models/data_custom';
Expand Down Expand Up @@ -72,6 +75,7 @@ export type { documentRelationshipSourceId } from './models/documentRelationship
export type { DocumentRelationshipToBusinessObjectsAdd } from './models/DocumentRelationshipToBusinessObjectsAdd';
export type { documentRelationshipType } from './models/documentRelationshipType';
export type { DocumentURLReferencesAdd } from './models/DocumentURLReferencesAdd';
export type { EqHubAndSemiUsage } from './models/EqHubAndSemiUsage';
export type { Equipment } from './models/Equipment';
export type { EquipmentAddClass } from './models/EquipmentAddClass';
export type { EquipmentAttachment } from './models/EquipmentAttachment';
Expand Down Expand Up @@ -102,7 +106,9 @@ export type { FailureReportBasic } from './models/FailureReportBasic';
export type { FailureReportCreate } from './models/FailureReportCreate';
export type { FailureReportJsonPatch } from './models/FailureReportJsonPatch';
export type { FailureReportSimple } from './models/FailureReportSimple';
export type { FailureReportSimpleForSearch } from './models/FailureReportSimpleForSearch';
export type { FailureReportSimpleSelf } from './models/FailureReportSimpleSelf';
export type { FailureReportSimpleSelfForMaintenanceRecordSearch } from './models/FailureReportSimpleSelfForMaintenanceRecordSearch';
export type { FunctionalSystem } from './models/FunctionalSystem';
export type { GenericWorkOrderJsonPatch } from './models/GenericWorkOrderJsonPatch';
export type { GenericWorkOrderSimple } from './models/GenericWorkOrderSimple';
Expand All @@ -112,6 +118,7 @@ export type { includeCatalogProfiles } from './models/includeCatalogProfiles';
export type { includeCharacteristics } from './models/includeCharacteristics';
export type { includeCostDataForMaterials } from './models/includeCostDataForMaterials';
export type { includeEquipment } from './models/includeEquipment';
export type { includeEstimatedCosts } from './models/includeEstimatedCosts';
export type { includeInstalledEquipment } from './models/includeInstalledEquipment';
export type { includeInventoryCount } from './models/includeInventoryCount';
export type { includeLastMeasurement } from './models/includeLastMeasurement';
Expand Down Expand Up @@ -214,6 +221,8 @@ export type { ModificationWorkOrderWithOperationSelf } from './models/Modificati
export type { NotFoundDetails } from './models/NotFoundDetails';
export type { ObjectLinkageCreate } from './models/ObjectLinkageCreate';
export type { operationIdPath } from './models/operationIdPath';
export type { page } from './models/page';
export type { perPage } from './models/perPage';
export type { PlannerGroup } from './models/PlannerGroup';
export type { PlanningPlantRevision } from './models/PlanningPlantRevision';
export type { PlanningPlantRevisionBasic } from './models/PlanningPlantRevisionBasic';
Expand Down Expand Up @@ -273,6 +282,7 @@ export type { SubseaServiceOperation } from './models/SubseaServiceOperation';
export type { SubseaWorkOrder } from './models/SubseaWorkOrder';
export type { SubseaWorkOrderBasic } from './models/SubseaWorkOrderBasic';
export type { SubseaWorkOrderMaterial } from './models/SubseaWorkOrderMaterial';
export type { SubseaWorkOrderMaterialForAddMaterialRespone } from './models/SubseaWorkOrderMaterialForAddMaterialRespone';
export type { SubseaWorkOrderOperation } from './models/SubseaWorkOrderOperation';
export type { SubseaWorkOrderSimple } from './models/SubseaWorkOrderSimple';
export type { SubseaWorkOrderSimpleWithRelationship } from './models/SubseaWorkOrderSimpleWithRelationship';
Expand Down Expand Up @@ -337,6 +347,7 @@ export type { WorkOrderCreateAbstract } from './models/WorkOrderCreateAbstract';
export type { WorkOrderInPlan } from './models/WorkOrderInPlan';
export type { WorkOrderMaterial } from './models/WorkOrderMaterial';
export type { WorkOrderMaterialAdd } from './models/WorkOrderMaterialAdd';
export type { WorkOrderMaterialForAddMaterialRespone } from './models/WorkOrderMaterialForAddMaterialRespone';
export type { WorkOrderMaterialJsonPatch } from './models/WorkOrderMaterialJsonPatch';
export type { WorkOrderObjectMaintenanceRecordMinimal } from './models/WorkOrderObjectMaintenanceRecordMinimal';
export type { WorkOrderOperation } from './models/WorkOrderOperation';
Expand All @@ -356,6 +367,7 @@ export type { WorkOrderWithOperationList } from './models/WorkOrderWithOperation

export { ActivityReportsService } from './services/ActivityReportsService';
export { CertificationReportsService } from './services/CertificationReportsService';
export { CharacteristicsService } from './services/CharacteristicsService';
export { CorrectiveWorkOrdersService } from './services/CorrectiveWorkOrdersService';
export { DocumentsService } from './services/DocumentsService';
export { EquipmentService } from './services/EquipmentService';
Expand All @@ -374,6 +386,7 @@ export { MeasuringPointsService } from './services/MeasuringPointsService';
export { ModificationProposalsService } from './services/ModificationProposalsService';
export { ModificationWorkOrdersService } from './services/ModificationWorkOrdersService';
export { ModifiedEndpointsService } from './services/ModifiedEndpointsService';
export { NewEndpointsService } from './services/NewEndpointsService';
export { PreventiveWorkOrdersService } from './services/PreventiveWorkOrdersService';
export { ProjectWorkOrdersService } from './services/ProjectWorkOrdersService';
export { ReportsService } from './services/ReportsService';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export type CertificationReportBasic = (CertificationReportSimple & {
/**
* The point in time when the failure started
*/
failureStartDateTime: string;
failureStartDateTime: string | null;
/**
* The point in time when the failure was resolved
*/
failureEndDateTime: string;
failureEndDateTime: string | null;
});

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { Characteristic } from './Characteristic';

export type CharacteristicForSearch = (Characteristic & {
classTypeKey: string;
});

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type CostCategory = {
/**
* Unique ID for the cost category
*/
costCategoryId?: string;
/**
* Name of the cost category
*/
costCategory?: string;
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

export type EqHubAndSemiUsage = {
semiId?: string | null;
documentType?: string | null;
documentNumber?: string | null;
objectNumber?: string | null;
category?: string | null;
status?: string | null;
documentTitle?: string | null;
documentCreatedDate?: string | null;
objectType?: string | null;
objectTypeText?: string | null;
objectDescription?: string | null;
objectBom?: boolean | null;
createdOnDateTime?: string | null;
createdById?: string | null;
changedOnDateTime?: string | null;
changedById?: string | null;
manufacturer?: string | null;
model?: string | null;
manufacturerPartNumber?: string | null;
serialNumber?: string | null;
constructionType?: string | null;
constructionTypeText?: string | null;
equipmentFunctionalLocationId?: string | null;
equipmentFunctionalLocationABCid?: string | null;
equipmentFunctionalLocationPlantId?: string | null;
equipmentFunctionalLocationPlant?: string | null;
equipmentStatuses?: {
systemStatus?: string | null;
userStatus?: string | null;
};
functionalLocationStatuses?: {
systemStatus?: string | null;
userStatus?: string | null;
};
};

Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@ export type EquipmentBasicV2 = (EquipmentMinimal & {
technicalIdentificationNumber?: string;
objectWeight?: string;
unitOfWeight?: string;
maintenancePlantId?: string;
equipmentCategoryId?: string;
maintenanceConceptId?: string;
createdOnDate?: string;
changedOnDate?: string;
});

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/* eslint-disable */

import type { failureImpactId } from './failureImpactId';
import type { WorkOrderTypeId } from './WorkOrderTypeId';

export type FailureReportBasic = {
recordId: string;
Expand Down Expand Up @@ -60,6 +61,8 @@ export type FailureReportBasic = {
codingGroupId: string | null;
correctiveWorkOrderExist: boolean;
correctiveWorkOrderId: string;
workOrderTypeId: WorkOrderTypeId;
workOrderId: string;
/**
* Active statuses for the Failure report with space as separating character
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { FailureReportSimple } from './FailureReportSimple';
import type { WorkOrderTypeId } from './WorkOrderTypeId';

export type FailureReportSimpleForSearch = (FailureReportSimple & {
workOrderTypeId?: WorkOrderTypeId;
workOrderId?: string;
});

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { FailureReportSimpleSelf } from './FailureReportSimpleSelf';
import type { WorkOrderTypeId } from './WorkOrderTypeId';

export type FailureReportSimpleSelfForMaintenanceRecordSearch = (FailureReportSimpleSelf & {
workOrderTypeId?: WorkOrderTypeId;
workOrderId?: string;
});

Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

import type { ActivityReportSimpleSelf } from './ActivityReportSimpleSelf';
import type { CertificationReportSimpleSelf } from './CertificationReportSimpleSelf';
import type { FailureReportSimpleSelf } from './FailureReportSimpleSelf';
import type { FailureReportSimpleSelfForMaintenanceRecordSearch } from './FailureReportSimpleSelfForMaintenanceRecordSearch';
import type { ModificationProposalSimpleSelf } from './ModificationProposalSimpleSelf';
import type { TechnicalClarificationSimpleSelf } from './TechnicalClarificationSimpleSelf';
import type { TechnicalInformationUpdateRequestSimpleSelf } from './TechnicalInformationUpdateRequestSimpleSelf';

export type MaintenanceRecordList = {
modificationProposals?: Array<ModificationProposalSimpleSelf>;
failureReports?: Array<FailureReportSimpleSelf>;
failureReports?: Array<FailureReportSimpleSelfForMaintenanceRecordSearch>;
activityReports?: Array<ActivityReportSimpleSelf>;
certificationReports?: Array<CertificationReportSimpleSelf>;
technicalInformationUpdateRequests?: Array<TechnicalInformationUpdateRequestSimpleSelf>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/* tslint:disable */
/* eslint-disable */

import type { EstimatedCosts } from './EstimatedCosts';
import type { MaintenancePlanSimple } from './MaintenancePlanSimple';
import type { MaintenanceRecordMinimalWithActiveStatusIds } from './MaintenanceRecordMinimalWithActiveStatusIds';
import type { Measurement } from './Measurement';
Expand Down Expand Up @@ -39,6 +40,10 @@ export type PreventiveWorkOrder = (PreventiveWorkOrderBasic & {
* Related measurements
*/
measurements?: Array<Measurement>;
/**
* Estimated Costs
*/
estimatedCosts?: Array<EstimatedCosts>;
additionalCostWBSId: string;
additionalCostWBS: string;
costWBSId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import type { PreventiveWorkOrderSimple } from './PreventiveWorkOrderSimple';

export type PreventiveWorkOrderBasic = (PreventiveWorkOrderSimple & {
workCenter: string;
plannerGroup: string;
text: string;
/**
* The type of work order it is an instance of
*/
workOrderTypeId: 'preventiveWorkOrder';
plannerGroup: string;
workCenter: string;
isProductionCritical?: string;
isHSECritical?: string;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import type { WorkOrderOperationSimpleForSearch } from './WorkOrderOperationSimp

export type PreventiveWorkOrderWithOperationSelf = (PreventiveWorkOrderSimple & {
text?: string | null;
requiredEndDate: string | null;
_links: {
self?: string;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export type ServiceOperation = {
scopeOfWork?: string;
agreement?: string;
agreementItem?: string;
requisitionerId?: string;
services?: Array<Service>;
materials?: Array<WorkOrderMaterial> | null;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */

import type { WorkOrderMaterialForAddMaterialRespone } from './WorkOrderMaterialForAddMaterialRespone';

export type SubseaWorkOrderMaterialForAddMaterialRespone = (WorkOrderMaterialForAddMaterialRespone & {
equipmentId: string;
equipment: string;
supplyingPlantId: string;
});

3 changes: 3 additions & 0 deletions packages/api/maintenance-api/src/lib/generated/models/Tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ export type Tag = (TagBasic & {
* Material for the asset
*/
material?: string;
maintenancePlantId?: string;
createdOnDate?: string | null;
changedOnDate?: string | null;
characteristics?: Array<TagCharacteristic>;
maintenanceRecords?: SimpleMaintenanceRecordsList;
workOrders?: {
Expand Down
Loading
Loading