@c-rex/services 0.1.16 → 0.1.18
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/dist/client-requests.d.mts +304 -0
- package/dist/client-requests.d.ts +304 -0
- package/dist/client-requests.js +795 -0
- package/dist/client-requests.js.map +1 -0
- package/dist/client-requests.mjs +620 -0
- package/dist/client-requests.mjs.map +1 -0
- package/dist/server-requests.d.mts +311 -0
- package/dist/server-requests.d.ts +311 -0
- package/dist/server-requests.js +787 -0
- package/dist/server-requests.js.map +1 -0
- package/dist/server-requests.mjs +612 -0
- package/dist/server-requests.mjs.map +1 -0
- package/package.json +16 -4
- package/dist/index.d.mts +0 -226
- package/dist/index.d.ts +0 -226
- package/dist/index.js +0 -682
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -650
- package/dist/index.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/base-server-request.ts","../src/generated/server-requests.ts"],"sourcesContent":["import { CrexApi } from \"@c-rex/core/requests\";\n\nexport const baseServerRequest = async <T>(\n endpoint: string,\n query?: Record<string, any>\n): Promise<T> => {\n const api = new CrexApi();\n\n const response = await api.execute({\n url: endpoint,\n method: \"GET\",\n params: query,\n })\n\n return response as T;\n}\n","/**\n * Auto-generated request functions from OpenAPI spec\n * Source: https://staging.c-rex.net/ids/api/swagger/v1/swagger.json\n * Generated: 2025-12-22T14:05:43.687Z\n * Do not edit manually\n */\n\nimport { baseServerRequest } from '../base-server-request';\nimport type {\n AdministrativeMetadataGetAllQueryParams,\n AdministrativeMetadataGetByIdPathParams,\n AdministrativeMetadataGetByIdQueryParams,\n AdministrativeMetadataModel,\n AfterUsesGetAllQueryParams,\n AfterUsesGetByIdPathParams,\n AfterUsesGetByIdQueryParams,\n CollectionsGetAllQueryParams,\n CollectionsGetByIdPathParams,\n CollectionsGetByIdQueryParams,\n ComponentModel,\n ComponentsGetAllQueryParams,\n ComponentsGetByIdPathParams,\n ComponentsGetByIdQueryParams,\n ConceptsGetAllQueryParams,\n ConceptsGetByIdPathParams,\n ConceptsGetByIdQueryParams,\n ConformitiesGetAllQueryParams,\n ConformitiesGetByIdPathParams,\n ConformitiesGetByIdQueryParams,\n ConsumablesGetAllQueryParams,\n ConsumablesGetByIdPathParams,\n ConsumablesGetByIdQueryParams,\n ContentLifeCycleStatusGetAllQueryParams,\n ContentLifeCycleStatusGetByIdPathParams,\n ContentLifeCycleStatusGetByIdQueryParams,\n ContentLifeCycleStatusModel,\n DesignAndRealizationsGetAllQueryParams,\n DesignAndRealizationsGetByIdPathParams,\n DesignAndRealizationsGetByIdQueryParams,\n DirectoryNodeModel,\n DirectoryNodeTypeModel,\n DirectoryNodeTypesGetAllQueryParams,\n DirectoryNodeTypesGetByIdPathParams,\n DirectoryNodeTypesGetByIdQueryParams,\n DirectoryNodesGetAllQueryParams,\n DirectoryNodesGetByIdPathParams,\n DirectoryNodesGetByIdQueryParams,\n DocumentModel,\n DocumentTypeModel,\n DocumentTypesGetAllQueryParams,\n DocumentTypesGetByIdPathParams,\n DocumentTypesGetByIdQueryParams,\n DocumentationMetadataGetAllQueryParams,\n DocumentationMetadataGetByIdPathParams,\n DocumentationMetadataGetByIdQueryParams,\n DocumentationMetadataModel,\n DocumentsGetAllQueryParams,\n DocumentsGetByIdPathParams,\n DocumentsGetByIdQueryParams,\n DocumentsLanguagesQueryParams,\n DomainEntitiesGetAllQueryParams,\n DomainEntitiesGetByIdPathParams,\n DomainEntitiesGetByIdQueryParams,\n DomainEntityModel,\n DownTimesGetAllQueryParams,\n DownTimesGetByIdPathParams,\n DownTimesGetByIdQueryParams,\n EventModel,\n EventsGetAllQueryParams,\n EventsGetByIdPathParams,\n EventsGetByIdQueryParams,\n FormalitiesGetAllQueryParams,\n FormalitiesGetByIdPathParams,\n FormalitiesGetByIdQueryParams,\n FormsGetAllQueryParams,\n FormsGetByIdPathParams,\n FormsGetByIdQueryParams,\n FragmentModel,\n FragmentsGetAllQueryParams,\n FragmentsGetByIdPathParams,\n FragmentsGetByIdQueryParams,\n FragmentsLanguagesQueryParams,\n FunctionalMetadataModel,\n FunctionalMetadatasGetAllQueryParams,\n FunctionalMetadatasGetByIdPathParams,\n FunctionalMetadatasGetByIdQueryParams,\n FunctionalitiesGetAllQueryParams,\n FunctionalitiesGetByIdPathParams,\n FunctionalitiesGetByIdQueryParams,\n GroupsGetAllQueryParams,\n GroupsGetByIdPathParams,\n GroupsGetByIdQueryParams,\n HardwareToolsGetAllQueryParams,\n HardwareToolsGetByIdPathParams,\n HardwareToolsGetByIdQueryParams,\n IdentitiesGetAllQueryParams,\n IdentitiesGetByIdPathParams,\n IdentitiesGetByIdQueryParams,\n IdentityDomainModel,\n IdentityDomainsGetAllQueryParams,\n IdentityDomainsGetByIdPathParams,\n IdentityDomainsGetByIdQueryParams,\n IdentityModel,\n IndividualsGetAllQueryParams,\n IndividualsGetByIdPathParams,\n IndividualsGetByIdQueryParams,\n InformationObjectModel,\n InformationObjectsGetAllQueryParams,\n InformationObjectsGetByIdPathParams,\n InformationObjectsGetByIdQueryParams,\n InformationSubjectCollectionModel,\n InformationSubjectConformityModel,\n InformationSubjectFormalityModel,\n InformationSubjectFunctionalityModel,\n InformationSubjectModel,\n InformationSubjectProcessModel,\n InformationSubjectSafetyModel,\n InformationSubjectSafetyWarningMessageModel,\n InformationSubjectTechnicalDataModel,\n InformationSubjectTechnicalOverviewModel,\n InformationSubjectsGetAllQueryParams,\n InformationSubjectsGetByIdPathParams,\n InformationSubjectsGetByIdQueryParams,\n InformationTypeModel,\n InformationTypesGetAllQueryParams,\n InformationTypesGetByIdPathParams,\n InformationTypesGetByIdQueryParams,\n InformationUnitModel,\n InformationUnitsGetAllQueryParams,\n InformationUnitsGetByIdPathParams,\n InformationUnitsGetByIdQueryParams,\n InformationUnitsLanguagesQueryParams,\n LearningsGetAllQueryParams,\n LearningsGetByIdPathParams,\n LearningsGetByIdQueryParams,\n LocationsGetAllQueryParams,\n LocationsGetByIdPathParams,\n LocationsGetByIdQueryParams,\n LubricantsGetAllQueryParams,\n LubricantsGetByIdPathParams,\n LubricantsGetByIdQueryParams,\n MaintenanceIntervalsGetAllQueryParams,\n MaintenanceIntervalsGetByIdPathParams,\n MaintenanceIntervalsGetByIdQueryParams,\n OperatingSuppliesGetAllQueryParams,\n OperatingSuppliesGetByIdPathParams,\n OperatingSuppliesGetByIdQueryParams,\n OrganizationsGetAllQueryParams,\n OrganizationsGetByIdPathParams,\n OrganizationsGetByIdQueryParams,\n PackageModel,\n PackagesCreateClientAppQueryParams,\n PackagesGetAllQueryParams,\n PackagesGetByIdPathParams,\n PackagesGetByIdQueryParams,\n PackagesLanguagesQueryParams,\n PartiesGetAllQueryParams,\n PartiesGetByIdPathParams,\n PartiesGetByIdQueryParams,\n PartyModel,\n PlanningDownTimeModel,\n PlanningMaintenanceIntervalModel,\n PlanningSetupTimeModel,\n PlanningTimeModel,\n PlanningTimesGetAllQueryParams,\n PlanningTimesGetByIdPathParams,\n PlanningTimesGetByIdQueryParams,\n PlanningWorkingTimeModel,\n ProcessesGetAllQueryParams,\n ProcessesGetByIdPathParams,\n ProcessesGetByIdQueryParams,\n ProductFeatureModel,\n ProductFeaturesGetAllQueryParams,\n ProductFeaturesGetByIdPathParams,\n ProductFeaturesGetByIdQueryParams,\n ProductFunctionModel,\n ProductFunctionsGetAllQueryParams,\n ProductFunctionsGetByIdPathParams,\n ProductFunctionsGetByIdQueryParams,\n ProductLcpAfterUseModel,\n ProductLcpDesignAndRealizationModel,\n ProductLcpPuttingToUseModel,\n ProductLcpUseModel,\n ProductLifeCyclePhaseModel,\n ProductLifeCyclePhasesGetAllQueryParams,\n ProductLifeCyclePhasesGetByIdPathParams,\n ProductLifeCyclePhasesGetByIdQueryParams,\n ProductMetadataGetAllQueryParams,\n ProductMetadataGetByIdPathParams,\n ProductMetadataGetByIdQueryParams,\n ProductMetadataModel,\n ProductPropertiesGetAllQueryParams,\n ProductPropertiesGetByIdPathParams,\n ProductPropertiesGetByIdQueryParams,\n ProductPropertyModel,\n ProductVariantModel,\n ProductVariantsGetAllQueryParams,\n ProductVariantsGetByIdPathParams,\n ProductVariantsGetByIdQueryParams,\n PuttingToUsesGetAllQueryParams,\n PuttingToUsesGetByIdPathParams,\n PuttingToUsesGetByIdQueryParams,\n QualificationModel,\n QualificationRoleModel,\n QualificationSkillLevelModel,\n QualificationsGetAllQueryParams,\n QualificationsGetByIdPathParams,\n QualificationsGetByIdQueryParams,\n ReferencesGetAllQueryParams,\n ReferencesGetByIdPathParams,\n ReferencesGetByIdQueryParams,\n RenditionModel,\n RenditionsGetAllQueryParams,\n RenditionsGetByIdPathParams,\n RenditionsGetByIdQueryParams,\n RenditionsGetWithBinaryWithBinaryPathPathParams,\n ResourcesDownloadResourcePathParams,\n ResourcesDownloadResourceWithBinaryPathPathParams,\n ResourcesGetPackagePathParams,\n ResourcesGetPackageQueryParams,\n ResourcesGetSubjectFromPackagePathParams,\n ResourcesGetSubjectFromPackageQueryParams,\n ResourcesViewResourcePathParams,\n ResourcesViewResourceWithBinaryPathPathParams,\n ResultContainerModel,\n RolesGetAllQueryParams,\n RolesGetByIdPathParams,\n RolesGetByIdQueryParams,\n SafetiesGetAllQueryParams,\n SafetiesGetByIdPathParams,\n SafetiesGetByIdQueryParams,\n SearchGetAllQueryParams,\n SetupTimesGetAllQueryParams,\n SetupTimesGetByIdPathParams,\n SetupTimesGetByIdQueryParams,\n SkillLevelsGetAllQueryParams,\n SkillLevelsGetByIdPathParams,\n SkillLevelsGetByIdQueryParams,\n SparQLExecuteSparQlPathParams,\n SparePartsGetAllQueryParams,\n SparePartsGetByIdPathParams,\n SparePartsGetByIdQueryParams,\n SuppliesGetAllQueryParams,\n SuppliesGetByIdPathParams,\n SuppliesGetByIdQueryParams,\n SupplyConsumableModel,\n SupplyHardwareToolModel,\n SupplyLubricantModel,\n SupplyModel,\n SupplyOperatingModel,\n SupplySparePartModel,\n TasksGetAllQueryParams,\n TasksGetByIdPathParams,\n TasksGetByIdQueryParams,\n TechnicalDataGetAllQueryParams,\n TechnicalDataGetByIdPathParams,\n TechnicalDataGetByIdQueryParams,\n TechnicalOverviewsGetAllQueryParams,\n TechnicalOverviewsGetByIdPathParams,\n TechnicalOverviewsGetByIdQueryParams,\n TopicModel,\n TopicTypeConceptModel,\n TopicTypeFormModel,\n TopicTypeLearningModel,\n TopicTypeModel,\n TopicTypeReferenceModel,\n TopicTypeTaskModel,\n TopicTypeTroubleShootingModel,\n TopicTypesGetAllQueryParams,\n TopicTypesGetByIdPathParams,\n TopicTypesGetByIdQueryParams,\n TopicsGetAllQueryParams,\n TopicsGetByIdPathParams,\n TopicsGetByIdQueryParams,\n TopicsLanguagesQueryParams,\n TroubleShootingsGetAllQueryParams,\n TroubleShootingsGetByIdPathParams,\n TroubleShootingsGetByIdQueryParams,\n UsesGetAllQueryParams,\n UsesGetByIdPathParams,\n UsesGetByIdQueryParams,\n VCardGroupModel,\n VCardIndividualModel,\n VCardLocationModel,\n VCardModel,\n VCardOrganizationModel,\n VCardsGetAllQueryParams,\n VCardsGetByIdPathParams,\n VCardsGetByIdQueryParams,\n WarningMessagesGetAllQueryParams,\n WarningMessagesGetByIdPathParams,\n WarningMessagesGetByIdQueryParams,\n WorkingTimesGetAllQueryParams,\n WorkingTimesGetByIdPathParams,\n WorkingTimesGetByIdQueryParams\n} from '@c-rex/interfaces';\n\n// ---------------------------------------------------------------------------\n// Request Functions\n// ---------------------------------------------------------------------------\n\n/** Get all entities by given criteria */\nexport const administrativeMetadataGetAllServer = async (query?: Partial<AdministrativeMetadataGetAllQueryParams>): Promise<ResultContainerModel<AdministrativeMetadataModel>> => {\n return baseServerRequest<ResultContainerModel<AdministrativeMetadataModel>>('AdministrativeMetadata', query);\n};\n\n/** Get an entity by its id */\nexport const administrativeMetadataGetByIdServer = async (params: AdministrativeMetadataGetByIdPathParams, query?: Partial<AdministrativeMetadataGetByIdQueryParams>): Promise<AdministrativeMetadataModel> => {\n return baseServerRequest<AdministrativeMetadataModel>(`AdministrativeMetadata/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const afterUsesGetAllServer = async (query?: Partial<AfterUsesGetAllQueryParams>): Promise<ResultContainerModel<ProductLcpAfterUseModel>> => {\n return baseServerRequest<ResultContainerModel<ProductLcpAfterUseModel>>('AfterUses', query);\n};\n\n/** Get an entity by its id */\nexport const afterUsesGetByIdServer = async (params: AfterUsesGetByIdPathParams, query?: Partial<AfterUsesGetByIdQueryParams>): Promise<ProductLcpAfterUseModel> => {\n return baseServerRequest<ProductLcpAfterUseModel>(`AfterUses/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const collectionsGetAllServer = async (query?: Partial<CollectionsGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectCollectionModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectCollectionModel>>('Collections', query);\n};\n\n/** Get an entity by its id */\nexport const collectionsGetByIdServer = async (params: CollectionsGetByIdPathParams, query?: Partial<CollectionsGetByIdQueryParams>): Promise<InformationSubjectCollectionModel> => {\n return baseServerRequest<InformationSubjectCollectionModel>(`Collections/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const componentsGetAllServer = async (query?: Partial<ComponentsGetAllQueryParams>): Promise<ResultContainerModel<ComponentModel>> => {\n return baseServerRequest<ResultContainerModel<ComponentModel>>('Components', query);\n};\n\n/** Get an entity by its id */\nexport const componentsGetByIdServer = async (params: ComponentsGetByIdPathParams, query?: Partial<ComponentsGetByIdQueryParams>): Promise<ComponentModel> => {\n return baseServerRequest<ComponentModel>(`Components/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const conceptsGetAllServer = async (query?: Partial<ConceptsGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeConceptModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeConceptModel>>('Concepts', query);\n};\n\n/** Get an entity by its id */\nexport const conceptsGetByIdServer = async (params: ConceptsGetByIdPathParams, query?: Partial<ConceptsGetByIdQueryParams>): Promise<TopicTypeConceptModel> => {\n return baseServerRequest<TopicTypeConceptModel>(`Concepts/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const conformitiesGetAllServer = async (query?: Partial<ConformitiesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectConformityModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectConformityModel>>('Conformities', query);\n};\n\n/** Get an entity by its id */\nexport const conformitiesGetByIdServer = async (params: ConformitiesGetByIdPathParams, query?: Partial<ConformitiesGetByIdQueryParams>): Promise<InformationSubjectConformityModel> => {\n return baseServerRequest<InformationSubjectConformityModel>(`Conformities/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const consumablesGetAllServer = async (query?: Partial<ConsumablesGetAllQueryParams>): Promise<ResultContainerModel<SupplyConsumableModel>> => {\n return baseServerRequest<ResultContainerModel<SupplyConsumableModel>>('Consumables', query);\n};\n\n/** Get an entity by its id */\nexport const consumablesGetByIdServer = async (params: ConsumablesGetByIdPathParams, query?: Partial<ConsumablesGetByIdQueryParams>): Promise<SupplyConsumableModel> => {\n return baseServerRequest<SupplyConsumableModel>(`Consumables/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const contentLifeCycleStatusGetAllServer = async (query?: Partial<ContentLifeCycleStatusGetAllQueryParams>): Promise<ResultContainerModel<ContentLifeCycleStatusModel>> => {\n return baseServerRequest<ResultContainerModel<ContentLifeCycleStatusModel>>('ContentLifeCycleStatus', query);\n};\n\n/** Get an entity by its id */\nexport const contentLifeCycleStatusGetByIdServer = async (params: ContentLifeCycleStatusGetByIdPathParams, query?: Partial<ContentLifeCycleStatusGetByIdQueryParams>): Promise<ContentLifeCycleStatusModel> => {\n return baseServerRequest<ContentLifeCycleStatusModel>(`ContentLifeCycleStatus/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const designAndRealizationsGetAllServer = async (query?: Partial<DesignAndRealizationsGetAllQueryParams>): Promise<ResultContainerModel<ProductLcpDesignAndRealizationModel>> => {\n return baseServerRequest<ResultContainerModel<ProductLcpDesignAndRealizationModel>>('DesignAndRealizations', query);\n};\n\n/** Get an entity by its id */\nexport const designAndRealizationsGetByIdServer = async (params: DesignAndRealizationsGetByIdPathParams, query?: Partial<DesignAndRealizationsGetByIdQueryParams>): Promise<ProductLcpDesignAndRealizationModel> => {\n return baseServerRequest<ProductLcpDesignAndRealizationModel>(`DesignAndRealizations/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const directoryNodesGetAllServer = async (query?: Partial<DirectoryNodesGetAllQueryParams>): Promise<ResultContainerModel<DirectoryNodeModel>> => {\n return baseServerRequest<ResultContainerModel<DirectoryNodeModel>>('DirectoryNodes', query);\n};\n\n/** Get an entity by its id */\nexport const directoryNodesGetByIdServer = async (params: DirectoryNodesGetByIdPathParams, query?: Partial<DirectoryNodesGetByIdQueryParams>): Promise<DirectoryNodeModel> => {\n return baseServerRequest<DirectoryNodeModel>(`DirectoryNodes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const directoryNodeTypesGetAllServer = async (query?: Partial<DirectoryNodeTypesGetAllQueryParams>): Promise<ResultContainerModel<DirectoryNodeTypeModel>> => {\n return baseServerRequest<ResultContainerModel<DirectoryNodeTypeModel>>('DirectoryNodeTypes', query);\n};\n\n/** Get an entity by its id */\nexport const directoryNodeTypesGetByIdServer = async (params: DirectoryNodeTypesGetByIdPathParams, query?: Partial<DirectoryNodeTypesGetByIdQueryParams>): Promise<DirectoryNodeTypeModel> => {\n return baseServerRequest<DirectoryNodeTypeModel>(`DirectoryNodeTypes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const documentationMetadataGetAllServer = async (query?: Partial<DocumentationMetadataGetAllQueryParams>): Promise<ResultContainerModel<DocumentationMetadataModel>> => {\n return baseServerRequest<ResultContainerModel<DocumentationMetadataModel>>('DocumentationMetadata', query);\n};\n\n/** Get an entity by its id */\nexport const documentationMetadataGetByIdServer = async (params: DocumentationMetadataGetByIdPathParams, query?: Partial<DocumentationMetadataGetByIdQueryParams>): Promise<DocumentationMetadataModel> => {\n return baseServerRequest<DocumentationMetadataModel>(`DocumentationMetadata/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const documentsGetAllServer = async (query?: Partial<DocumentsGetAllQueryParams>): Promise<ResultContainerModel<DocumentModel>> => {\n return baseServerRequest<ResultContainerModel<DocumentModel>>('Documents', query);\n};\n\n/** Get an entity by its id */\nexport const documentsGetByIdServer = async (params: DocumentsGetByIdPathParams, query?: Partial<DocumentsGetByIdQueryParams>): Promise<DocumentModel> => {\n return baseServerRequest<DocumentModel>(`Documents/${params.id}`, query);\n};\n\n/** Languages used by indexed terms */\nexport const documentsLanguagesServer = async (query?: Partial<DocumentsLanguagesQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('Documents/Languages', query);\n};\n\n/** Get all entities by given criteria */\nexport const documentTypesGetAllServer = async (query?: Partial<DocumentTypesGetAllQueryParams>): Promise<ResultContainerModel<DocumentTypeModel>> => {\n return baseServerRequest<ResultContainerModel<DocumentTypeModel>>('DocumentTypes', query);\n};\n\n/** Get an entity by its id */\nexport const documentTypesGetByIdServer = async (params: DocumentTypesGetByIdPathParams, query?: Partial<DocumentTypesGetByIdQueryParams>): Promise<DocumentTypeModel> => {\n return baseServerRequest<DocumentTypeModel>(`DocumentTypes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const domainEntitiesGetAllServer = async (query?: Partial<DomainEntitiesGetAllQueryParams>): Promise<ResultContainerModel<DomainEntityModel>> => {\n return baseServerRequest<ResultContainerModel<DomainEntityModel>>('DomainEntities', query);\n};\n\n/** Get an entity by its id */\nexport const domainEntitiesGetByIdServer = async (params: DomainEntitiesGetByIdPathParams, query?: Partial<DomainEntitiesGetByIdQueryParams>): Promise<DomainEntityModel> => {\n return baseServerRequest<DomainEntityModel>(`DomainEntities/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const downTimesGetAllServer = async (query?: Partial<DownTimesGetAllQueryParams>): Promise<ResultContainerModel<PlanningDownTimeModel>> => {\n return baseServerRequest<ResultContainerModel<PlanningDownTimeModel>>('DownTimes', query);\n};\n\n/** Get an entity by its id */\nexport const downTimesGetByIdServer = async (params: DownTimesGetByIdPathParams, query?: Partial<DownTimesGetByIdQueryParams>): Promise<PlanningDownTimeModel> => {\n return baseServerRequest<PlanningDownTimeModel>(`DownTimes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const eventsGetAllServer = async (query?: Partial<EventsGetAllQueryParams>): Promise<ResultContainerModel<EventModel>> => {\n return baseServerRequest<ResultContainerModel<EventModel>>('Events', query);\n};\n\n/** Get an entity by its id */\nexport const eventsGetByIdServer = async (params: EventsGetByIdPathParams, query?: Partial<EventsGetByIdQueryParams>): Promise<EventModel> => {\n return baseServerRequest<EventModel>(`Events/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const formalitiesGetAllServer = async (query?: Partial<FormalitiesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectFormalityModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectFormalityModel>>('Formalities', query);\n};\n\n/** Get an entity by its id */\nexport const formalitiesGetByIdServer = async (params: FormalitiesGetByIdPathParams, query?: Partial<FormalitiesGetByIdQueryParams>): Promise<InformationSubjectFormalityModel> => {\n return baseServerRequest<InformationSubjectFormalityModel>(`Formalities/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const formsGetAllServer = async (query?: Partial<FormsGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeFormModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeFormModel>>('Forms', query);\n};\n\n/** Get an entity by its id */\nexport const formsGetByIdServer = async (params: FormsGetByIdPathParams, query?: Partial<FormsGetByIdQueryParams>): Promise<TopicTypeFormModel> => {\n return baseServerRequest<TopicTypeFormModel>(`Forms/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const fragmentsGetAllServer = async (query?: Partial<FragmentsGetAllQueryParams>): Promise<ResultContainerModel<FragmentModel>> => {\n return baseServerRequest<ResultContainerModel<FragmentModel>>('Fragments', query);\n};\n\n/** Get an entity by its id */\nexport const fragmentsGetByIdServer = async (params: FragmentsGetByIdPathParams, query?: Partial<FragmentsGetByIdQueryParams>): Promise<FragmentModel> => {\n return baseServerRequest<FragmentModel>(`Fragments/${params.id}`, query);\n};\n\n/** Languages used by indexed terms */\nexport const fragmentsLanguagesServer = async (query?: Partial<FragmentsLanguagesQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('Fragments/Languages', query);\n};\n\n/** Get all entities by given criteria */\nexport const functionalitiesGetAllServer = async (query?: Partial<FunctionalitiesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectFunctionalityModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectFunctionalityModel>>('Functionalities', query);\n};\n\n/** Get an entity by its id */\nexport const functionalitiesGetByIdServer = async (params: FunctionalitiesGetByIdPathParams, query?: Partial<FunctionalitiesGetByIdQueryParams>): Promise<InformationSubjectFunctionalityModel> => {\n return baseServerRequest<InformationSubjectFunctionalityModel>(`Functionalities/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const functionalMetadatasGetAllServer = async (query?: Partial<FunctionalMetadatasGetAllQueryParams>): Promise<ResultContainerModel<FunctionalMetadataModel>> => {\n return baseServerRequest<ResultContainerModel<FunctionalMetadataModel>>('FunctionalMetadatas', query);\n};\n\n/** Get an entity by its id */\nexport const functionalMetadatasGetByIdServer = async (params: FunctionalMetadatasGetByIdPathParams, query?: Partial<FunctionalMetadatasGetByIdQueryParams>): Promise<FunctionalMetadataModel> => {\n return baseServerRequest<FunctionalMetadataModel>(`FunctionalMetadatas/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const groupsGetAllServer = async (query?: Partial<GroupsGetAllQueryParams>): Promise<ResultContainerModel<VCardGroupModel>> => {\n return baseServerRequest<ResultContainerModel<VCardGroupModel>>('Groups', query);\n};\n\n/** Get an entity by its id */\nexport const groupsGetByIdServer = async (params: GroupsGetByIdPathParams, query?: Partial<GroupsGetByIdQueryParams>): Promise<VCardGroupModel> => {\n return baseServerRequest<VCardGroupModel>(`Groups/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const hardwareToolsGetAllServer = async (query?: Partial<HardwareToolsGetAllQueryParams>): Promise<ResultContainerModel<SupplyHardwareToolModel>> => {\n return baseServerRequest<ResultContainerModel<SupplyHardwareToolModel>>('HardwareTools', query);\n};\n\n/** Get an entity by its id */\nexport const hardwareToolsGetByIdServer = async (params: HardwareToolsGetByIdPathParams, query?: Partial<HardwareToolsGetByIdQueryParams>): Promise<SupplyHardwareToolModel> => {\n return baseServerRequest<SupplyHardwareToolModel>(`HardwareTools/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const identitiesGetAllServer = async (query?: Partial<IdentitiesGetAllQueryParams>): Promise<ResultContainerModel<IdentityModel>> => {\n return baseServerRequest<ResultContainerModel<IdentityModel>>('Identities', query);\n};\n\n/** Get an entity by its id */\nexport const identitiesGetByIdServer = async (params: IdentitiesGetByIdPathParams, query?: Partial<IdentitiesGetByIdQueryParams>): Promise<IdentityModel> => {\n return baseServerRequest<IdentityModel>(`Identities/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const identityDomainsGetAllServer = async (query?: Partial<IdentityDomainsGetAllQueryParams>): Promise<ResultContainerModel<IdentityDomainModel>> => {\n return baseServerRequest<ResultContainerModel<IdentityDomainModel>>('IdentityDomains', query);\n};\n\n/** Get an entity by its id */\nexport const identityDomainsGetByIdServer = async (params: IdentityDomainsGetByIdPathParams, query?: Partial<IdentityDomainsGetByIdQueryParams>): Promise<IdentityDomainModel> => {\n return baseServerRequest<IdentityDomainModel>(`IdentityDomains/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const individualsGetAllServer = async (query?: Partial<IndividualsGetAllQueryParams>): Promise<ResultContainerModel<VCardIndividualModel>> => {\n return baseServerRequest<ResultContainerModel<VCardIndividualModel>>('Individuals', query);\n};\n\n/** Get an entity by its id */\nexport const individualsGetByIdServer = async (params: IndividualsGetByIdPathParams, query?: Partial<IndividualsGetByIdQueryParams>): Promise<VCardIndividualModel> => {\n return baseServerRequest<VCardIndividualModel>(`Individuals/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const informationObjectsGetAllServer = async (query?: Partial<InformationObjectsGetAllQueryParams>): Promise<ResultContainerModel<InformationObjectModel>> => {\n return baseServerRequest<ResultContainerModel<InformationObjectModel>>('InformationObjects', query);\n};\n\n/** Get an entity by its id */\nexport const informationObjectsGetByIdServer = async (params: InformationObjectsGetByIdPathParams, query?: Partial<InformationObjectsGetByIdQueryParams>): Promise<InformationObjectModel> => {\n return baseServerRequest<InformationObjectModel>(`InformationObjects/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const informationSubjectsGetAllServer = async (query?: Partial<InformationSubjectsGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectModel>>('InformationSubjects', query);\n};\n\n/** Get an entity by its id */\nexport const informationSubjectsGetByIdServer = async (params: InformationSubjectsGetByIdPathParams, query?: Partial<InformationSubjectsGetByIdQueryParams>): Promise<InformationSubjectModel> => {\n return baseServerRequest<InformationSubjectModel>(`InformationSubjects/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const informationTypesGetAllServer = async (query?: Partial<InformationTypesGetAllQueryParams>): Promise<ResultContainerModel<InformationTypeModel>> => {\n return baseServerRequest<ResultContainerModel<InformationTypeModel>>('InformationTypes', query);\n};\n\n/** Get an entity by its id */\nexport const informationTypesGetByIdServer = async (params: InformationTypesGetByIdPathParams, query?: Partial<InformationTypesGetByIdQueryParams>): Promise<InformationTypeModel> => {\n return baseServerRequest<InformationTypeModel>(`InformationTypes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const informationUnitsGetAllServer = async (query?: Partial<InformationUnitsGetAllQueryParams>): Promise<ResultContainerModel<InformationUnitModel>> => {\n return baseServerRequest<ResultContainerModel<InformationUnitModel>>('InformationUnits', query);\n};\n\n/** Get an entity by its id */\nexport const informationUnitsGetByIdServer = async (params: InformationUnitsGetByIdPathParams, query?: Partial<InformationUnitsGetByIdQueryParams>): Promise<InformationUnitModel> => {\n return baseServerRequest<InformationUnitModel>(`InformationUnits/${params.id}`, query);\n};\n\n/** Languages used by indexed terms */\nexport const informationUnitsLanguagesServer = async (query?: Partial<InformationUnitsLanguagesQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('InformationUnits/Languages', query);\n};\n\n/** Get all entities by given criteria */\nexport const learningsGetAllServer = async (query?: Partial<LearningsGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeLearningModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeLearningModel>>('Learnings', query);\n};\n\n/** Get an entity by its id */\nexport const learningsGetByIdServer = async (params: LearningsGetByIdPathParams, query?: Partial<LearningsGetByIdQueryParams>): Promise<TopicTypeLearningModel> => {\n return baseServerRequest<TopicTypeLearningModel>(`Learnings/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const locationsGetAllServer = async (query?: Partial<LocationsGetAllQueryParams>): Promise<ResultContainerModel<VCardLocationModel>> => {\n return baseServerRequest<ResultContainerModel<VCardLocationModel>>('Locations', query);\n};\n\n/** Get an entity by its id */\nexport const locationsGetByIdServer = async (params: LocationsGetByIdPathParams, query?: Partial<LocationsGetByIdQueryParams>): Promise<VCardLocationModel> => {\n return baseServerRequest<VCardLocationModel>(`Locations/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const lubricantsGetAllServer = async (query?: Partial<LubricantsGetAllQueryParams>): Promise<ResultContainerModel<SupplyLubricantModel>> => {\n return baseServerRequest<ResultContainerModel<SupplyLubricantModel>>('Lubricants', query);\n};\n\n/** Get an entity by its id */\nexport const lubricantsGetByIdServer = async (params: LubricantsGetByIdPathParams, query?: Partial<LubricantsGetByIdQueryParams>): Promise<SupplyLubricantModel> => {\n return baseServerRequest<SupplyLubricantModel>(`Lubricants/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const maintenanceIntervalsGetAllServer = async (query?: Partial<MaintenanceIntervalsGetAllQueryParams>): Promise<ResultContainerModel<PlanningMaintenanceIntervalModel>> => {\n return baseServerRequest<ResultContainerModel<PlanningMaintenanceIntervalModel>>('MaintenanceIntervals', query);\n};\n\n/** Get an entity by its id */\nexport const maintenanceIntervalsGetByIdServer = async (params: MaintenanceIntervalsGetByIdPathParams, query?: Partial<MaintenanceIntervalsGetByIdQueryParams>): Promise<PlanningMaintenanceIntervalModel> => {\n return baseServerRequest<PlanningMaintenanceIntervalModel>(`MaintenanceIntervals/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const operatingSuppliesGetAllServer = async (query?: Partial<OperatingSuppliesGetAllQueryParams>): Promise<ResultContainerModel<SupplyOperatingModel>> => {\n return baseServerRequest<ResultContainerModel<SupplyOperatingModel>>('OperatingSupplies', query);\n};\n\n/** Get an entity by its id */\nexport const operatingSuppliesGetByIdServer = async (params: OperatingSuppliesGetByIdPathParams, query?: Partial<OperatingSuppliesGetByIdQueryParams>): Promise<SupplyOperatingModel> => {\n return baseServerRequest<SupplyOperatingModel>(`OperatingSupplies/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const organizationsGetAllServer = async (query?: Partial<OrganizationsGetAllQueryParams>): Promise<ResultContainerModel<VCardOrganizationModel>> => {\n return baseServerRequest<ResultContainerModel<VCardOrganizationModel>>('Organizations', query);\n};\n\n/** Get an entity by its id */\nexport const organizationsGetByIdServer = async (params: OrganizationsGetByIdPathParams, query?: Partial<OrganizationsGetByIdQueryParams>): Promise<VCardOrganizationModel> => {\n return baseServerRequest<VCardOrganizationModel>(`Organizations/${params.id}`, query);\n};\n\n/** Create an Offline Client App from the given Repositories */\nexport const packagesCreateClientAppServer = async (query?: Partial<PackagesCreateClientAppQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('ids/v1/Packages/CreateClientApp', query);\n};\n\n/** Get all entities by given criteria */\nexport const packagesGetAllServer = async (query?: Partial<PackagesGetAllQueryParams>): Promise<ResultContainerModel<PackageModel>> => {\n return baseServerRequest<ResultContainerModel<PackageModel>>('Packages', query);\n};\n\n/** Get an entity by its id */\nexport const packagesGetByIdServer = async (params: PackagesGetByIdPathParams, query?: Partial<PackagesGetByIdQueryParams>): Promise<PackageModel> => {\n return baseServerRequest<PackageModel>(`Packages/${params.id}`, query);\n};\n\n/** Languages used by indexed terms */\nexport const packagesLanguagesServer = async (query?: Partial<PackagesLanguagesQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('Packages/Languages', query);\n};\n\n/** Get all entities by given criteria */\nexport const partiesGetAllServer = async (query?: Partial<PartiesGetAllQueryParams>): Promise<ResultContainerModel<PartyModel>> => {\n return baseServerRequest<ResultContainerModel<PartyModel>>('Parties', query);\n};\n\n/** Get an entity by its id */\nexport const partiesGetByIdServer = async (params: PartiesGetByIdPathParams, query?: Partial<PartiesGetByIdQueryParams>): Promise<PartyModel> => {\n return baseServerRequest<PartyModel>(`Parties/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const planningTimesGetAllServer = async (query?: Partial<PlanningTimesGetAllQueryParams>): Promise<ResultContainerModel<PlanningTimeModel>> => {\n return baseServerRequest<ResultContainerModel<PlanningTimeModel>>('PlanningTimes', query);\n};\n\n/** Get an entity by its id */\nexport const planningTimesGetByIdServer = async (params: PlanningTimesGetByIdPathParams, query?: Partial<PlanningTimesGetByIdQueryParams>): Promise<PlanningTimeModel> => {\n return baseServerRequest<PlanningTimeModel>(`PlanningTimes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const processesGetAllServer = async (query?: Partial<ProcessesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectProcessModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectProcessModel>>('Processes', query);\n};\n\n/** Get an entity by its id */\nexport const processesGetByIdServer = async (params: ProcessesGetByIdPathParams, query?: Partial<ProcessesGetByIdQueryParams>): Promise<InformationSubjectProcessModel> => {\n return baseServerRequest<InformationSubjectProcessModel>(`Processes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productFeaturesGetAllServer = async (query?: Partial<ProductFeaturesGetAllQueryParams>): Promise<ResultContainerModel<ProductFeatureModel>> => {\n return baseServerRequest<ResultContainerModel<ProductFeatureModel>>('ProductFeatures', query);\n};\n\n/** Get an entity by its id */\nexport const productFeaturesGetByIdServer = async (params: ProductFeaturesGetByIdPathParams, query?: Partial<ProductFeaturesGetByIdQueryParams>): Promise<ProductFeatureModel> => {\n return baseServerRequest<ProductFeatureModel>(`ProductFeatures/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productFunctionsGetAllServer = async (query?: Partial<ProductFunctionsGetAllQueryParams>): Promise<ResultContainerModel<ProductFunctionModel>> => {\n return baseServerRequest<ResultContainerModel<ProductFunctionModel>>('ProductFunctions', query);\n};\n\n/** Get an entity by its id */\nexport const productFunctionsGetByIdServer = async (params: ProductFunctionsGetByIdPathParams, query?: Partial<ProductFunctionsGetByIdQueryParams>): Promise<ProductFunctionModel> => {\n return baseServerRequest<ProductFunctionModel>(`ProductFunctions/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productLifeCyclePhasesGetAllServer = async (query?: Partial<ProductLifeCyclePhasesGetAllQueryParams>): Promise<ResultContainerModel<ProductLifeCyclePhaseModel>> => {\n return baseServerRequest<ResultContainerModel<ProductLifeCyclePhaseModel>>('ProductLifeCyclePhases', query);\n};\n\n/** Get an entity by its id */\nexport const productLifeCyclePhasesGetByIdServer = async (params: ProductLifeCyclePhasesGetByIdPathParams, query?: Partial<ProductLifeCyclePhasesGetByIdQueryParams>): Promise<ProductLifeCyclePhaseModel> => {\n return baseServerRequest<ProductLifeCyclePhaseModel>(`ProductLifeCyclePhases/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productMetadataGetAllServer = async (query?: Partial<ProductMetadataGetAllQueryParams>): Promise<ResultContainerModel<ProductMetadataModel>> => {\n return baseServerRequest<ResultContainerModel<ProductMetadataModel>>('ProductMetadata', query);\n};\n\n/** Get an entity by its id */\nexport const productMetadataGetByIdServer = async (params: ProductMetadataGetByIdPathParams, query?: Partial<ProductMetadataGetByIdQueryParams>): Promise<ProductMetadataModel> => {\n return baseServerRequest<ProductMetadataModel>(`ProductMetadata/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productPropertiesGetAllServer = async (query?: Partial<ProductPropertiesGetAllQueryParams>): Promise<ResultContainerModel<ProductPropertyModel>> => {\n return baseServerRequest<ResultContainerModel<ProductPropertyModel>>('ProductProperties', query);\n};\n\n/** Get an entity by its id */\nexport const productPropertiesGetByIdServer = async (params: ProductPropertiesGetByIdPathParams, query?: Partial<ProductPropertiesGetByIdQueryParams>): Promise<ProductPropertyModel> => {\n return baseServerRequest<ProductPropertyModel>(`ProductProperties/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const productVariantsGetAllServer = async (query?: Partial<ProductVariantsGetAllQueryParams>): Promise<ResultContainerModel<ProductVariantModel>> => {\n return baseServerRequest<ResultContainerModel<ProductVariantModel>>('ProductVariants', query);\n};\n\n/** Get an entity by its id */\nexport const productVariantsGetByIdServer = async (params: ProductVariantsGetByIdPathParams, query?: Partial<ProductVariantsGetByIdQueryParams>): Promise<ProductVariantModel> => {\n return baseServerRequest<ProductVariantModel>(`ProductVariants/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const puttingToUsesGetAllServer = async (query?: Partial<PuttingToUsesGetAllQueryParams>): Promise<ResultContainerModel<ProductLcpPuttingToUseModel>> => {\n return baseServerRequest<ResultContainerModel<ProductLcpPuttingToUseModel>>('PuttingToUses', query);\n};\n\n/** Get an entity by its id */\nexport const puttingToUsesGetByIdServer = async (params: PuttingToUsesGetByIdPathParams, query?: Partial<PuttingToUsesGetByIdQueryParams>): Promise<ProductLcpPuttingToUseModel> => {\n return baseServerRequest<ProductLcpPuttingToUseModel>(`PuttingToUses/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const qualificationsGetAllServer = async (query?: Partial<QualificationsGetAllQueryParams>): Promise<ResultContainerModel<QualificationModel>> => {\n return baseServerRequest<ResultContainerModel<QualificationModel>>('Qualifications', query);\n};\n\n/** Get an entity by its id */\nexport const qualificationsGetByIdServer = async (params: QualificationsGetByIdPathParams, query?: Partial<QualificationsGetByIdQueryParams>): Promise<QualificationModel> => {\n return baseServerRequest<QualificationModel>(`Qualifications/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const referencesGetAllServer = async (query?: Partial<ReferencesGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeReferenceModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeReferenceModel>>('References', query);\n};\n\n/** Get an entity by its id */\nexport const referencesGetByIdServer = async (params: ReferencesGetByIdPathParams, query?: Partial<ReferencesGetByIdQueryParams>): Promise<TopicTypeReferenceModel> => {\n return baseServerRequest<TopicTypeReferenceModel>(`References/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const renditionsGetAllServer = async (query?: Partial<RenditionsGetAllQueryParams>): Promise<ResultContainerModel<RenditionModel>> => {\n return baseServerRequest<ResultContainerModel<RenditionModel>>('Renditions', query);\n};\n\n/** Get an entity by its id */\nexport const renditionsGetByIdServer = async (params: RenditionsGetByIdPathParams, query?: Partial<RenditionsGetByIdQueryParams>): Promise<RenditionModel> => {\n return baseServerRequest<RenditionModel>(`Renditions/${params.id}`, query);\n};\n\n/** Get the rendition for the given url */\nexport const renditionsGetWithBinaryWithBinaryPathServer = async (params: RenditionsGetWithBinaryWithBinaryPathPathParams): Promise<RenditionModel> => {\n return baseServerRequest<RenditionModel>(`Renditions/${params.id}/${params.binaryPath}`);\n};\n\n/** Get the binary stream */\nexport const resourcesDownloadResourceServer = async (params: ResourcesDownloadResourcePathParams): Promise<unknown> => {\n return baseServerRequest<unknown>(`ids/v1/Resources/${params.renditionId}`);\n};\n\n/** Get the binary stream */\nexport const resourcesDownloadResourceWithBinaryPathServer = async (params: ResourcesDownloadResourceWithBinaryPathPathParams): Promise<unknown> => {\n return baseServerRequest<unknown>(`ids/v1/Resources/${params.renditionId}/${params.binaryPath}`);\n};\n\n/** Query package with id\ndefault mediatypes application/json\nchange mediatype by Adding accept-Header (like application/rdf+xml application/rdf+json, and more) */\nexport const resourcesGetPackageServer = async (params: ResourcesGetPackagePathParams, query?: Partial<ResourcesGetPackageQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>(`Resources/packages/${params.id}`, query);\n};\n\n/** Request any resource in tiple store from packages */\nexport const resourcesGetSubjectFromPackageServer = async (params: ResourcesGetSubjectFromPackagePathParams, query?: Partial<ResourcesGetSubjectFromPackageQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>(`Resources/subjects/${params.id}`, query);\n};\n\n/** Get the binary stream */\nexport const resourcesViewResourceServer = async (params: ResourcesViewResourcePathParams): Promise<unknown> => {\n return baseServerRequest<unknown>(`ids/v1/Resources/view/${params.renditionId}`);\n};\n\n/** Get the binary stream */\nexport const resourcesViewResourceWithBinaryPathServer = async (params: ResourcesViewResourceWithBinaryPathPathParams): Promise<unknown> => {\n return baseServerRequest<unknown>(`ids/v1/Resources/view/${params.renditionId}/${params.binaryPath}`);\n};\n\n/** Get all entities by given criteria */\nexport const rolesGetAllServer = async (query?: Partial<RolesGetAllQueryParams>): Promise<ResultContainerModel<QualificationRoleModel>> => {\n return baseServerRequest<ResultContainerModel<QualificationRoleModel>>('Roles', query);\n};\n\n/** Get an entity by its id */\nexport const rolesGetByIdServer = async (params: RolesGetByIdPathParams, query?: Partial<RolesGetByIdQueryParams>): Promise<QualificationRoleModel> => {\n return baseServerRequest<QualificationRoleModel>(`Roles/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const safetiesGetAllServer = async (query?: Partial<SafetiesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectSafetyModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectSafetyModel>>('Safeties', query);\n};\n\n/** Get an entity by its id */\nexport const safetiesGetByIdServer = async (params: SafetiesGetByIdPathParams, query?: Partial<SafetiesGetByIdQueryParams>): Promise<InformationSubjectSafetyModel> => {\n return baseServerRequest<InformationSubjectSafetyModel>(`Safeties/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const searchGetAllServer = async (query?: Partial<SearchGetAllQueryParams>): Promise<ResultContainerModel<unknown>> => {\n return baseServerRequest<ResultContainerModel<unknown>>('ids/v1/Search/Facets', query);\n};\n\n/** Get all entities by given criteria */\nexport const setupTimesGetAllServer = async (query?: Partial<SetupTimesGetAllQueryParams>): Promise<ResultContainerModel<PlanningSetupTimeModel>> => {\n return baseServerRequest<ResultContainerModel<PlanningSetupTimeModel>>('SetupTimes', query);\n};\n\n/** Get an entity by its id */\nexport const setupTimesGetByIdServer = async (params: SetupTimesGetByIdPathParams, query?: Partial<SetupTimesGetByIdQueryParams>): Promise<PlanningSetupTimeModel> => {\n return baseServerRequest<PlanningSetupTimeModel>(`SetupTimes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const skillLevelsGetAllServer = async (query?: Partial<SkillLevelsGetAllQueryParams>): Promise<ResultContainerModel<QualificationSkillLevelModel>> => {\n return baseServerRequest<ResultContainerModel<QualificationSkillLevelModel>>('SkillLevels', query);\n};\n\n/** Get an entity by its id */\nexport const skillLevelsGetByIdServer = async (params: SkillLevelsGetByIdPathParams, query?: Partial<SkillLevelsGetByIdQueryParams>): Promise<QualificationSkillLevelModel> => {\n return baseServerRequest<QualificationSkillLevelModel>(`SkillLevels/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const sparePartsGetAllServer = async (query?: Partial<SparePartsGetAllQueryParams>): Promise<ResultContainerModel<SupplySparePartModel>> => {\n return baseServerRequest<ResultContainerModel<SupplySparePartModel>>('SpareParts', query);\n};\n\n/** Get an entity by its id */\nexport const sparePartsGetByIdServer = async (params: SparePartsGetByIdPathParams, query?: Partial<SparePartsGetByIdQueryParams>): Promise<SupplySparePartModel> => {\n return baseServerRequest<SupplySparePartModel>(`SpareParts/${params.id}`, query);\n};\n\n/** Query Iirds storage by SparQL */\nexport const sparQLExecuteSparQlServer = async (params: SparQLExecuteSparQlPathParams): Promise<Record<string, string>[]> => {\n return baseServerRequest<Record<string, string>[]>(`SparQL/${params.query}`);\n};\n\n/** Get all entities by given criteria */\nexport const suppliesGetAllServer = async (query?: Partial<SuppliesGetAllQueryParams>): Promise<ResultContainerModel<SupplyModel>> => {\n return baseServerRequest<ResultContainerModel<SupplyModel>>('Supplies', query);\n};\n\n/** Get an entity by its id */\nexport const suppliesGetByIdServer = async (params: SuppliesGetByIdPathParams, query?: Partial<SuppliesGetByIdQueryParams>): Promise<SupplyModel> => {\n return baseServerRequest<SupplyModel>(`Supplies/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const tasksGetAllServer = async (query?: Partial<TasksGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeTaskModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeTaskModel>>('Tasks', query);\n};\n\n/** Get an entity by its id */\nexport const tasksGetByIdServer = async (params: TasksGetByIdPathParams, query?: Partial<TasksGetByIdQueryParams>): Promise<TopicTypeTaskModel> => {\n return baseServerRequest<TopicTypeTaskModel>(`Tasks/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const technicalDataGetAllServer = async (query?: Partial<TechnicalDataGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectTechnicalDataModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectTechnicalDataModel>>('TechnicalData', query);\n};\n\n/** Get an entity by its id */\nexport const technicalDataGetByIdServer = async (params: TechnicalDataGetByIdPathParams, query?: Partial<TechnicalDataGetByIdQueryParams>): Promise<InformationSubjectTechnicalDataModel> => {\n return baseServerRequest<InformationSubjectTechnicalDataModel>(`TechnicalData/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const technicalOverviewsGetAllServer = async (query?: Partial<TechnicalOverviewsGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectTechnicalOverviewModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectTechnicalOverviewModel>>('TechnicalOverviews', query);\n};\n\n/** Get an entity by its id */\nexport const technicalOverviewsGetByIdServer = async (params: TechnicalOverviewsGetByIdPathParams, query?: Partial<TechnicalOverviewsGetByIdQueryParams>): Promise<InformationSubjectTechnicalOverviewModel> => {\n return baseServerRequest<InformationSubjectTechnicalOverviewModel>(`TechnicalOverviews/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const topicsGetAllServer = async (query?: Partial<TopicsGetAllQueryParams>): Promise<ResultContainerModel<TopicModel>> => {\n return baseServerRequest<ResultContainerModel<TopicModel>>('Topics', query);\n};\n\n/** Get an entity by its id */\nexport const topicsGetByIdServer = async (params: TopicsGetByIdPathParams, query?: Partial<TopicsGetByIdQueryParams>): Promise<TopicModel> => {\n return baseServerRequest<TopicModel>(`Topics/${params.id}`, query);\n};\n\n/** Languages used by indexed terms */\nexport const topicsLanguagesServer = async (query?: Partial<TopicsLanguagesQueryParams>): Promise<unknown> => {\n return baseServerRequest<unknown>('Topics/Languages', query);\n};\n\n/** Get all entities by given criteria */\nexport const topicTypesGetAllServer = async (query?: Partial<TopicTypesGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeModel>>('TopicTypes', query);\n};\n\n/** Get an entity by its id */\nexport const topicTypesGetByIdServer = async (params: TopicTypesGetByIdPathParams, query?: Partial<TopicTypesGetByIdQueryParams>): Promise<TopicTypeModel> => {\n return baseServerRequest<TopicTypeModel>(`TopicTypes/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const troubleShootingsGetAllServer = async (query?: Partial<TroubleShootingsGetAllQueryParams>): Promise<ResultContainerModel<TopicTypeTroubleShootingModel>> => {\n return baseServerRequest<ResultContainerModel<TopicTypeTroubleShootingModel>>('TroubleShootings', query);\n};\n\n/** Get an entity by its id */\nexport const troubleShootingsGetByIdServer = async (params: TroubleShootingsGetByIdPathParams, query?: Partial<TroubleShootingsGetByIdQueryParams>): Promise<TopicTypeTroubleShootingModel> => {\n return baseServerRequest<TopicTypeTroubleShootingModel>(`TroubleShootings/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const usesGetAllServer = async (query?: Partial<UsesGetAllQueryParams>): Promise<ResultContainerModel<ProductLcpUseModel>> => {\n return baseServerRequest<ResultContainerModel<ProductLcpUseModel>>('Uses', query);\n};\n\n/** Get an entity by its id */\nexport const usesGetByIdServer = async (params: UsesGetByIdPathParams, query?: Partial<UsesGetByIdQueryParams>): Promise<ProductLcpUseModel> => {\n return baseServerRequest<ProductLcpUseModel>(`Uses/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const vCardsGetAllServer = async (query?: Partial<VCardsGetAllQueryParams>): Promise<ResultContainerModel<VCardModel>> => {\n return baseServerRequest<ResultContainerModel<VCardModel>>('VCards', query);\n};\n\n/** Get an entity by its id */\nexport const vCardsGetByIdServer = async (params: VCardsGetByIdPathParams, query?: Partial<VCardsGetByIdQueryParams>): Promise<VCardModel> => {\n return baseServerRequest<VCardModel>(`VCards/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const warningMessagesGetAllServer = async (query?: Partial<WarningMessagesGetAllQueryParams>): Promise<ResultContainerModel<InformationSubjectSafetyWarningMessageModel>> => {\n return baseServerRequest<ResultContainerModel<InformationSubjectSafetyWarningMessageModel>>('WarningMessages', query);\n};\n\n/** Get an entity by its id */\nexport const warningMessagesGetByIdServer = async (params: WarningMessagesGetByIdPathParams, query?: Partial<WarningMessagesGetByIdQueryParams>): Promise<InformationSubjectSafetyWarningMessageModel> => {\n return baseServerRequest<InformationSubjectSafetyWarningMessageModel>(`WarningMessages/${params.id}`, query);\n};\n\n/** Get all entities by given criteria */\nexport const workingTimesGetAllServer = async (query?: Partial<WorkingTimesGetAllQueryParams>): Promise<ResultContainerModel<PlanningWorkingTimeModel>> => {\n return baseServerRequest<ResultContainerModel<PlanningWorkingTimeModel>>('WorkingTimes', query);\n};\n\n/** Get an entity by its id */\nexport const workingTimesGetByIdServer = async (params: WorkingTimesGetByIdPathParams, query?: Partial<WorkingTimesGetByIdQueryParams>): Promise<PlanningWorkingTimeModel> => {\n return baseServerRequest<PlanningWorkingTimeModel>(`WorkingTimes/${params.id}`, query);\n};\n"],"mappings":";AAAA,SAAS,eAAe;AAEjB,IAAM,oBAAoB,OAC7B,UACA,UACa;AACb,QAAM,MAAM,IAAI,QAAQ;AAExB,QAAM,WAAW,MAAM,IAAI,QAAQ;AAAA,IAC/B,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,EACZ,CAAC;AAED,SAAO;AACX;;;AC+RO,IAAM,qCAAqC,OAAO,UAAyH;AAC9K,SAAO,kBAAqE,0BAA0B,KAAK;AAC/G;AAGO,IAAM,sCAAsC,OAAO,QAAiD,UAAoG;AAC3M,SAAO,kBAA+C,0BAA0B,OAAO,EAAE,IAAI,KAAK;AACtG;AAGO,IAAM,wBAAwB,OAAO,UAAwG;AAChJ,SAAO,kBAAiE,aAAa,KAAK;AAC9F;AAGO,IAAM,yBAAyB,OAAO,QAAoC,UAAmF;AAChK,SAAO,kBAA2C,aAAa,OAAO,EAAE,IAAI,KAAK;AACrF;AAGO,IAAM,0BAA0B,OAAO,UAAoH;AAC9J,SAAO,kBAA2E,eAAe,KAAK;AAC1G;AAGO,IAAM,2BAA2B,OAAO,QAAsC,UAA+F;AAChL,SAAO,kBAAqD,eAAe,OAAO,EAAE,IAAI,KAAK;AACjG;AAGO,IAAM,yBAAyB,OAAO,UAAgG;AACzI,SAAO,kBAAwD,cAAc,KAAK;AACtF;AAGO,IAAM,0BAA0B,OAAO,QAAqC,UAA2E;AAC1J,SAAO,kBAAkC,cAAc,OAAO,EAAE,IAAI,KAAK;AAC7E;AAG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package/package.json
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c-rex/services",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"main": "./dist/index.js",
|
|
5
|
-
"types": "./dist/index.d.ts",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
3
|
+
"version": "0.1.18",
|
|
7
4
|
"files": [
|
|
8
5
|
"dist"
|
|
9
6
|
],
|
|
10
7
|
"publishConfig": {
|
|
11
8
|
"access": "public"
|
|
12
9
|
},
|
|
10
|
+
"exports": {
|
|
11
|
+
"./client-requests": {
|
|
12
|
+
"types": "./dist/client-requests.d.ts",
|
|
13
|
+
"import": "./dist/client-requests.mjs",
|
|
14
|
+
"require": "./dist/client-requests.js",
|
|
15
|
+
"default": "./dist/client-requests.js"
|
|
16
|
+
},
|
|
17
|
+
"./server-requests": {
|
|
18
|
+
"types": "./dist/server-requests.d.ts",
|
|
19
|
+
"import": "./dist/server-requests.mjs",
|
|
20
|
+
"require": "./dist/server-requests.js",
|
|
21
|
+
"default": "./dist/server-requests.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"sideEffects": false,
|
|
13
25
|
"scripts": {
|
|
14
26
|
"dev": "tsup --watch",
|
|
15
27
|
"build": "tsup",
|
package/dist/index.d.mts
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { CrexApi } from '@c-rex/core/requests';
|
|
2
|
-
import { Method } from 'axios';
|
|
3
|
-
import { informationUnitsRenditions, DirectoryNodes, DirectoryNodesResponse, informationUnitsResponse, informationUnitsItems, LanguageAndCountries, DefaultResponse, TopicsResponseItem } from '@c-rex/interfaces';
|
|
4
|
-
|
|
5
|
-
declare const WILD_CARD_OPTIONS: {
|
|
6
|
-
readonly BOTH: "BOTH";
|
|
7
|
-
readonly END: "END";
|
|
8
|
-
readonly START: "START";
|
|
9
|
-
readonly NONE: "NONE";
|
|
10
|
-
};
|
|
11
|
-
declare const OPERATOR_OPTIONS: {
|
|
12
|
-
readonly AND: "AND";
|
|
13
|
-
readonly OR: "OR";
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type QueryParams = {
|
|
17
|
-
key: string;
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
type WildCardType = keyof typeof WILD_CARD_OPTIONS;
|
|
21
|
-
type OperatorType = keyof typeof OPERATOR_OPTIONS;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Base service class that provides common functionality for API interactions.
|
|
25
|
-
* All specific service classes extend this base class.
|
|
26
|
-
*/
|
|
27
|
-
declare class BaseService {
|
|
28
|
-
protected api: CrexApi;
|
|
29
|
-
private endpoint;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new instance of BaseService.
|
|
32
|
-
*
|
|
33
|
-
* @param endpoint - The API endpoint URL for this service
|
|
34
|
-
*/
|
|
35
|
-
constructor(endpoint: string);
|
|
36
|
-
/**
|
|
37
|
-
* Makes an API request to the specified endpoint.
|
|
38
|
-
*
|
|
39
|
-
* @param options - Request configuration options
|
|
40
|
-
* @param options.path - Optional path to append to the endpoint
|
|
41
|
-
* @param options.params - Optional query parameters to include in the request
|
|
42
|
-
* @param options.method - HTTP method to use (defaults to 'get')
|
|
43
|
-
* @param options.transformer - Optional function to transform the response data
|
|
44
|
-
* @returns The response data, optionally transformed
|
|
45
|
-
* @throws Error if the API request fails
|
|
46
|
-
*/
|
|
47
|
-
protected request<T>({ path, method, params, headers, transformer, }: {
|
|
48
|
-
path?: string;
|
|
49
|
-
method?: Method;
|
|
50
|
-
params?: QueryParams[];
|
|
51
|
-
headers?: any;
|
|
52
|
-
transformer?: (data: any) => T;
|
|
53
|
-
}): Promise<T>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Service for interacting with renditions in the API.
|
|
58
|
-
* Provides methods to retrieve and process different types of renditions.
|
|
59
|
-
*/
|
|
60
|
-
declare class RenditionsService extends BaseService {
|
|
61
|
-
constructor();
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves the HTML rendition from a list of renditions.
|
|
64
|
-
* Filters for renditions with format 'application/xhtml+xml' and rel 'view'.
|
|
65
|
-
*
|
|
66
|
-
* @param renditions - Array of rendition objects to process
|
|
67
|
-
* @returns A promise that resolves to the HTML content as a string, or empty string if no suitable rendition is found
|
|
68
|
-
* @throws Error if the API request fails
|
|
69
|
-
*/
|
|
70
|
-
getHTMLRendition({ renditions }: {
|
|
71
|
-
renditions: informationUnitsRenditions[];
|
|
72
|
-
}): Promise<string>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Service for interacting with directory nodes in the API.
|
|
77
|
-
* Provides methods to retrieve directory node information.
|
|
78
|
-
*/
|
|
79
|
-
declare class DirectoryNodesService extends BaseService {
|
|
80
|
-
constructor();
|
|
81
|
-
/**
|
|
82
|
-
* Retrieves a specific directory node by its ID.
|
|
83
|
-
*
|
|
84
|
-
* @param id - The unique identifier of the directory node
|
|
85
|
-
* @returns A promise that resolves to the directory node data
|
|
86
|
-
* @throws Error if the API request fails
|
|
87
|
-
*/
|
|
88
|
-
getItem(id: string): Promise<DirectoryNodes>;
|
|
89
|
-
/**
|
|
90
|
-
* Retrieves a list of directory nodes based on specified filters.
|
|
91
|
-
*
|
|
92
|
-
* @param options - Options for filtering the directory nodes list
|
|
93
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
94
|
-
* @returns A promise that resolves to the directory nodes response
|
|
95
|
-
* @throws Error if the API request fails
|
|
96
|
-
*/
|
|
97
|
-
getList({ filters, }: {
|
|
98
|
-
filters?: string[];
|
|
99
|
-
}): Promise<DirectoryNodesResponse>;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Service for interacting with document types in the API.
|
|
104
|
-
* Provides methods to retrieve document type information.
|
|
105
|
-
*/
|
|
106
|
-
declare class DocumentTypesService extends BaseService {
|
|
107
|
-
constructor();
|
|
108
|
-
/**
|
|
109
|
-
* Retrieves document type labels for the specified fields.
|
|
110
|
-
*
|
|
111
|
-
* @returns A promise that resolves to an array of label strings
|
|
112
|
-
* @throws Error if the API request fails
|
|
113
|
-
*/
|
|
114
|
-
getLabels(): Promise<{
|
|
115
|
-
shortId: string;
|
|
116
|
-
label: string;
|
|
117
|
-
}[]>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Service for interacting with information units in the API.
|
|
122
|
-
* Provides methods to retrieve and search information units.
|
|
123
|
-
*/
|
|
124
|
-
declare class InformationUnitsService extends BaseService {
|
|
125
|
-
constructor();
|
|
126
|
-
/**
|
|
127
|
-
* Retrieves a list of information units based on specified criteria.
|
|
128
|
-
*
|
|
129
|
-
* @param options - Options for filtering and paginating the information units list
|
|
130
|
-
* @param options.queries - Optional search query string
|
|
131
|
-
* @param options.page - Optional page number for pagination (defaults to 1)
|
|
132
|
-
* @param options.fields - Optional array of fields to include in the response
|
|
133
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
134
|
-
* @param options.languages - Optional array of language codes to filter by
|
|
135
|
-
* @returns A promise that resolves to the information units response
|
|
136
|
-
* @throws Error if the API request fails
|
|
137
|
-
*/
|
|
138
|
-
getList({ queries, page, fields, filters, tags, restrict, languages, wildcard, operator, like, }: {
|
|
139
|
-
queries?: string;
|
|
140
|
-
page?: number;
|
|
141
|
-
filters?: string[];
|
|
142
|
-
restrict?: string[];
|
|
143
|
-
fields?: string[];
|
|
144
|
-
tags?: string[];
|
|
145
|
-
languages?: string[];
|
|
146
|
-
wildcard?: WildCardType;
|
|
147
|
-
operator?: OperatorType;
|
|
148
|
-
like?: boolean;
|
|
149
|
-
}): Promise<informationUnitsResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* Retrieves a specific information unit by its ID.
|
|
152
|
-
* Includes renditions, directory nodes, version information, titles, languages, and labels.
|
|
153
|
-
*
|
|
154
|
-
* @param options - Options for retrieving the information unit
|
|
155
|
-
* @param options.id - The unique identifier of the information unit
|
|
156
|
-
* @returns A promise that resolves to the information unit data
|
|
157
|
-
* @throws Error if the API request fails
|
|
158
|
-
*/
|
|
159
|
-
getItem({ id, shouldGetAllFields }: {
|
|
160
|
-
id: string;
|
|
161
|
-
shouldGetAllFields?: boolean;
|
|
162
|
-
}): Promise<informationUnitsItems>;
|
|
163
|
-
/**
|
|
164
|
-
* Retrieves autocomplete suggestions based on a query prefix.
|
|
165
|
-
*
|
|
166
|
-
* @param options - Options for retrieving suggestions
|
|
167
|
-
* @param options.query - The query prefix to get suggestions for
|
|
168
|
-
* @param options.language - The language of the suggestions
|
|
169
|
-
* @returns A promise that resolves to an array of suggestion strings
|
|
170
|
-
* @throws Error if the API request fails
|
|
171
|
-
*/
|
|
172
|
-
getSuggestions({ query, language }: {
|
|
173
|
-
query: string;
|
|
174
|
-
language: string;
|
|
175
|
-
}): Promise<string[]>;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Service for interacting with language-related functionality in the API.
|
|
180
|
-
* Provides methods to retrieve language and country information.
|
|
181
|
-
*/
|
|
182
|
-
declare class LanguageService extends BaseService {
|
|
183
|
-
constructor();
|
|
184
|
-
/**
|
|
185
|
-
* Retrieves a list of available languages and their associated countries.
|
|
186
|
-
* Transforms the API response to include language code, country code, and original value.
|
|
187
|
-
*
|
|
188
|
-
* @returns A promise that resolves to an array of language and country objects
|
|
189
|
-
* @throws Error if the API request fails
|
|
190
|
-
*/
|
|
191
|
-
getLanguagesAndCountries(): Promise<LanguageAndCountries[]>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
type getListProps = {
|
|
195
|
-
queries?: string;
|
|
196
|
-
page?: number;
|
|
197
|
-
filters?: string[];
|
|
198
|
-
fields?: string[];
|
|
199
|
-
languages?: string[];
|
|
200
|
-
wildcard?: WildCardType;
|
|
201
|
-
operator?: OperatorType;
|
|
202
|
-
like?: boolean;
|
|
203
|
-
pageSize?: number;
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Service for interacting with information units in the API.
|
|
207
|
-
* Provides methods to retrieve and search information units.
|
|
208
|
-
*/
|
|
209
|
-
declare class TopicsService extends BaseService {
|
|
210
|
-
constructor();
|
|
211
|
-
/**
|
|
212
|
-
* Retrieves a list of topics based on specified criteria.
|
|
213
|
-
*
|
|
214
|
-
* @param options - Options for filtering and paginating the topics list
|
|
215
|
-
* @param options.queries - Optional search query string
|
|
216
|
-
* @param options.page - Optional page number for pagination (defaults to 1)
|
|
217
|
-
* @param options.fields - Optional array of fields to include in the response
|
|
218
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
219
|
-
* @param options.languages - Optional array of language codes to filter by
|
|
220
|
-
* @returns A promise that resolves to the information units response
|
|
221
|
-
* @throws Error if the API request fails
|
|
222
|
-
*/
|
|
223
|
-
getList({ queries, page, fields, filters, languages, wildcard, operator, pageSize }: getListProps): Promise<DefaultResponse<TopicsResponseItem, null>>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export { DirectoryNodesService, DocumentTypesService, InformationUnitsService, LanguageService, RenditionsService, TopicsService };
|
package/dist/index.d.ts
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { CrexApi } from '@c-rex/core/requests';
|
|
2
|
-
import { Method } from 'axios';
|
|
3
|
-
import { informationUnitsRenditions, DirectoryNodes, DirectoryNodesResponse, informationUnitsResponse, informationUnitsItems, LanguageAndCountries, DefaultResponse, TopicsResponseItem } from '@c-rex/interfaces';
|
|
4
|
-
|
|
5
|
-
declare const WILD_CARD_OPTIONS: {
|
|
6
|
-
readonly BOTH: "BOTH";
|
|
7
|
-
readonly END: "END";
|
|
8
|
-
readonly START: "START";
|
|
9
|
-
readonly NONE: "NONE";
|
|
10
|
-
};
|
|
11
|
-
declare const OPERATOR_OPTIONS: {
|
|
12
|
-
readonly AND: "AND";
|
|
13
|
-
readonly OR: "OR";
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type QueryParams = {
|
|
17
|
-
key: string;
|
|
18
|
-
value: string;
|
|
19
|
-
};
|
|
20
|
-
type WildCardType = keyof typeof WILD_CARD_OPTIONS;
|
|
21
|
-
type OperatorType = keyof typeof OPERATOR_OPTIONS;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Base service class that provides common functionality for API interactions.
|
|
25
|
-
* All specific service classes extend this base class.
|
|
26
|
-
*/
|
|
27
|
-
declare class BaseService {
|
|
28
|
-
protected api: CrexApi;
|
|
29
|
-
private endpoint;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a new instance of BaseService.
|
|
32
|
-
*
|
|
33
|
-
* @param endpoint - The API endpoint URL for this service
|
|
34
|
-
*/
|
|
35
|
-
constructor(endpoint: string);
|
|
36
|
-
/**
|
|
37
|
-
* Makes an API request to the specified endpoint.
|
|
38
|
-
*
|
|
39
|
-
* @param options - Request configuration options
|
|
40
|
-
* @param options.path - Optional path to append to the endpoint
|
|
41
|
-
* @param options.params - Optional query parameters to include in the request
|
|
42
|
-
* @param options.method - HTTP method to use (defaults to 'get')
|
|
43
|
-
* @param options.transformer - Optional function to transform the response data
|
|
44
|
-
* @returns The response data, optionally transformed
|
|
45
|
-
* @throws Error if the API request fails
|
|
46
|
-
*/
|
|
47
|
-
protected request<T>({ path, method, params, headers, transformer, }: {
|
|
48
|
-
path?: string;
|
|
49
|
-
method?: Method;
|
|
50
|
-
params?: QueryParams[];
|
|
51
|
-
headers?: any;
|
|
52
|
-
transformer?: (data: any) => T;
|
|
53
|
-
}): Promise<T>;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Service for interacting with renditions in the API.
|
|
58
|
-
* Provides methods to retrieve and process different types of renditions.
|
|
59
|
-
*/
|
|
60
|
-
declare class RenditionsService extends BaseService {
|
|
61
|
-
constructor();
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves the HTML rendition from a list of renditions.
|
|
64
|
-
* Filters for renditions with format 'application/xhtml+xml' and rel 'view'.
|
|
65
|
-
*
|
|
66
|
-
* @param renditions - Array of rendition objects to process
|
|
67
|
-
* @returns A promise that resolves to the HTML content as a string, or empty string if no suitable rendition is found
|
|
68
|
-
* @throws Error if the API request fails
|
|
69
|
-
*/
|
|
70
|
-
getHTMLRendition({ renditions }: {
|
|
71
|
-
renditions: informationUnitsRenditions[];
|
|
72
|
-
}): Promise<string>;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Service for interacting with directory nodes in the API.
|
|
77
|
-
* Provides methods to retrieve directory node information.
|
|
78
|
-
*/
|
|
79
|
-
declare class DirectoryNodesService extends BaseService {
|
|
80
|
-
constructor();
|
|
81
|
-
/**
|
|
82
|
-
* Retrieves a specific directory node by its ID.
|
|
83
|
-
*
|
|
84
|
-
* @param id - The unique identifier of the directory node
|
|
85
|
-
* @returns A promise that resolves to the directory node data
|
|
86
|
-
* @throws Error if the API request fails
|
|
87
|
-
*/
|
|
88
|
-
getItem(id: string): Promise<DirectoryNodes>;
|
|
89
|
-
/**
|
|
90
|
-
* Retrieves a list of directory nodes based on specified filters.
|
|
91
|
-
*
|
|
92
|
-
* @param options - Options for filtering the directory nodes list
|
|
93
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
94
|
-
* @returns A promise that resolves to the directory nodes response
|
|
95
|
-
* @throws Error if the API request fails
|
|
96
|
-
*/
|
|
97
|
-
getList({ filters, }: {
|
|
98
|
-
filters?: string[];
|
|
99
|
-
}): Promise<DirectoryNodesResponse>;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Service for interacting with document types in the API.
|
|
104
|
-
* Provides methods to retrieve document type information.
|
|
105
|
-
*/
|
|
106
|
-
declare class DocumentTypesService extends BaseService {
|
|
107
|
-
constructor();
|
|
108
|
-
/**
|
|
109
|
-
* Retrieves document type labels for the specified fields.
|
|
110
|
-
*
|
|
111
|
-
* @returns A promise that resolves to an array of label strings
|
|
112
|
-
* @throws Error if the API request fails
|
|
113
|
-
*/
|
|
114
|
-
getLabels(): Promise<{
|
|
115
|
-
shortId: string;
|
|
116
|
-
label: string;
|
|
117
|
-
}[]>;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Service for interacting with information units in the API.
|
|
122
|
-
* Provides methods to retrieve and search information units.
|
|
123
|
-
*/
|
|
124
|
-
declare class InformationUnitsService extends BaseService {
|
|
125
|
-
constructor();
|
|
126
|
-
/**
|
|
127
|
-
* Retrieves a list of information units based on specified criteria.
|
|
128
|
-
*
|
|
129
|
-
* @param options - Options for filtering and paginating the information units list
|
|
130
|
-
* @param options.queries - Optional search query string
|
|
131
|
-
* @param options.page - Optional page number for pagination (defaults to 1)
|
|
132
|
-
* @param options.fields - Optional array of fields to include in the response
|
|
133
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
134
|
-
* @param options.languages - Optional array of language codes to filter by
|
|
135
|
-
* @returns A promise that resolves to the information units response
|
|
136
|
-
* @throws Error if the API request fails
|
|
137
|
-
*/
|
|
138
|
-
getList({ queries, page, fields, filters, tags, restrict, languages, wildcard, operator, like, }: {
|
|
139
|
-
queries?: string;
|
|
140
|
-
page?: number;
|
|
141
|
-
filters?: string[];
|
|
142
|
-
restrict?: string[];
|
|
143
|
-
fields?: string[];
|
|
144
|
-
tags?: string[];
|
|
145
|
-
languages?: string[];
|
|
146
|
-
wildcard?: WildCardType;
|
|
147
|
-
operator?: OperatorType;
|
|
148
|
-
like?: boolean;
|
|
149
|
-
}): Promise<informationUnitsResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* Retrieves a specific information unit by its ID.
|
|
152
|
-
* Includes renditions, directory nodes, version information, titles, languages, and labels.
|
|
153
|
-
*
|
|
154
|
-
* @param options - Options for retrieving the information unit
|
|
155
|
-
* @param options.id - The unique identifier of the information unit
|
|
156
|
-
* @returns A promise that resolves to the information unit data
|
|
157
|
-
* @throws Error if the API request fails
|
|
158
|
-
*/
|
|
159
|
-
getItem({ id, shouldGetAllFields }: {
|
|
160
|
-
id: string;
|
|
161
|
-
shouldGetAllFields?: boolean;
|
|
162
|
-
}): Promise<informationUnitsItems>;
|
|
163
|
-
/**
|
|
164
|
-
* Retrieves autocomplete suggestions based on a query prefix.
|
|
165
|
-
*
|
|
166
|
-
* @param options - Options for retrieving suggestions
|
|
167
|
-
* @param options.query - The query prefix to get suggestions for
|
|
168
|
-
* @param options.language - The language of the suggestions
|
|
169
|
-
* @returns A promise that resolves to an array of suggestion strings
|
|
170
|
-
* @throws Error if the API request fails
|
|
171
|
-
*/
|
|
172
|
-
getSuggestions({ query, language }: {
|
|
173
|
-
query: string;
|
|
174
|
-
language: string;
|
|
175
|
-
}): Promise<string[]>;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Service for interacting with language-related functionality in the API.
|
|
180
|
-
* Provides methods to retrieve language and country information.
|
|
181
|
-
*/
|
|
182
|
-
declare class LanguageService extends BaseService {
|
|
183
|
-
constructor();
|
|
184
|
-
/**
|
|
185
|
-
* Retrieves a list of available languages and their associated countries.
|
|
186
|
-
* Transforms the API response to include language code, country code, and original value.
|
|
187
|
-
*
|
|
188
|
-
* @returns A promise that resolves to an array of language and country objects
|
|
189
|
-
* @throws Error if the API request fails
|
|
190
|
-
*/
|
|
191
|
-
getLanguagesAndCountries(): Promise<LanguageAndCountries[]>;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
type getListProps = {
|
|
195
|
-
queries?: string;
|
|
196
|
-
page?: number;
|
|
197
|
-
filters?: string[];
|
|
198
|
-
fields?: string[];
|
|
199
|
-
languages?: string[];
|
|
200
|
-
wildcard?: WildCardType;
|
|
201
|
-
operator?: OperatorType;
|
|
202
|
-
like?: boolean;
|
|
203
|
-
pageSize?: number;
|
|
204
|
-
};
|
|
205
|
-
/**
|
|
206
|
-
* Service for interacting with information units in the API.
|
|
207
|
-
* Provides methods to retrieve and search information units.
|
|
208
|
-
*/
|
|
209
|
-
declare class TopicsService extends BaseService {
|
|
210
|
-
constructor();
|
|
211
|
-
/**
|
|
212
|
-
* Retrieves a list of topics based on specified criteria.
|
|
213
|
-
*
|
|
214
|
-
* @param options - Options for filtering and paginating the topics list
|
|
215
|
-
* @param options.queries - Optional search query string
|
|
216
|
-
* @param options.page - Optional page number for pagination (defaults to 1)
|
|
217
|
-
* @param options.fields - Optional array of fields to include in the response
|
|
218
|
-
* @param options.filters - Optional array of filter strings to apply
|
|
219
|
-
* @param options.languages - Optional array of language codes to filter by
|
|
220
|
-
* @returns A promise that resolves to the information units response
|
|
221
|
-
* @throws Error if the API request fails
|
|
222
|
-
*/
|
|
223
|
-
getList({ queries, page, fields, filters, languages, wildcard, operator, pageSize }: getListProps): Promise<DefaultResponse<TopicsResponseItem, null>>;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export { DirectoryNodesService, DocumentTypesService, InformationUnitsService, LanguageService, RenditionsService, TopicsService };
|