@meshmakers/octo-services 3.4.200 → 3.4.220
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.
|
@@ -4652,6 +4652,41 @@ class IdentityService {
|
|
|
4652
4652
|
}));
|
|
4653
4653
|
}
|
|
4654
4654
|
}
|
|
4655
|
+
// ----- Client role assignment (AB#4183) -----
|
|
4656
|
+
async getClientRoles(clientId) {
|
|
4657
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
4658
|
+
if (baseUrl) {
|
|
4659
|
+
const response = await firstValueFrom(this.httpClient.get(baseUrl + `clients/${clientId}/roles`, {
|
|
4660
|
+
observe: 'response'
|
|
4661
|
+
}));
|
|
4662
|
+
return response.body;
|
|
4663
|
+
}
|
|
4664
|
+
return null;
|
|
4665
|
+
}
|
|
4666
|
+
async updateClientRoles(clientId, roleIds) {
|
|
4667
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
4668
|
+
if (baseUrl) {
|
|
4669
|
+
await firstValueFrom(this.httpClient.put(baseUrl + `clients/${clientId}/roles`, roleIds, {
|
|
4670
|
+
observe: 'response'
|
|
4671
|
+
}));
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
async addClientToRole(clientId, roleName) {
|
|
4675
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
4676
|
+
if (baseUrl) {
|
|
4677
|
+
await firstValueFrom(this.httpClient.put(baseUrl + `clients/${clientId}/roles/${roleName}`, null, {
|
|
4678
|
+
observe: 'response'
|
|
4679
|
+
}));
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
async removeRoleFromClient(clientId, roleName) {
|
|
4683
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
4684
|
+
if (baseUrl) {
|
|
4685
|
+
await firstValueFrom(this.httpClient.delete(baseUrl + `clients/${clientId}/roles/${roleName}`, {
|
|
4686
|
+
observe: 'response'
|
|
4687
|
+
}));
|
|
4688
|
+
}
|
|
4689
|
+
}
|
|
4655
4690
|
async mergeUsers(targetUserName, sourceUserName) {
|
|
4656
4691
|
const baseUrl = await this.getApiBaseUrl();
|
|
4657
4692
|
if (baseUrl) {
|
|
@@ -5046,6 +5081,22 @@ class IdentityService {
|
|
|
5046
5081
|
}));
|
|
5047
5082
|
}
|
|
5048
5083
|
}
|
|
5084
|
+
async addClientToGroup(rtId, clientId) {
|
|
5085
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
5086
|
+
if (baseUrl) {
|
|
5087
|
+
await firstValueFrom(this.httpClient.put(baseUrl + `groups/${rtId}/members/clients/${clientId}`, null, {
|
|
5088
|
+
observe: 'response'
|
|
5089
|
+
}));
|
|
5090
|
+
}
|
|
5091
|
+
}
|
|
5092
|
+
async removeClientFromGroup(rtId, clientId) {
|
|
5093
|
+
const baseUrl = await this.getApiBaseUrl();
|
|
5094
|
+
if (baseUrl) {
|
|
5095
|
+
await firstValueFrom(this.httpClient.delete(baseUrl + `groups/${rtId}/members/clients/${clientId}`, {
|
|
5096
|
+
observe: 'response'
|
|
5097
|
+
}));
|
|
5098
|
+
}
|
|
5099
|
+
}
|
|
5049
5100
|
async addGroupToGroup(rtId, childGroupId) {
|
|
5050
5101
|
const baseUrl = await this.getApiBaseUrl();
|
|
5051
5102
|
if (baseUrl) {
|
|
@@ -6069,6 +6120,23 @@ class PagedGraphResultDto extends PagedResultDto {
|
|
|
6069
6120
|
}
|
|
6070
6121
|
}
|
|
6071
6122
|
|
|
6123
|
+
/**
|
|
6124
|
+
* Cache-key function for the tenant Apollo {@link InMemoryCache}.
|
|
6125
|
+
*
|
|
6126
|
+
* Most Octo objects are normalized by their `rtId` (the runtime entity id,
|
|
6127
|
+
* unique per row in runtime queries). Stream-data rows are the exception: a
|
|
6128
|
+
* `StreamDataQueryRow` carries the *source entity's* rtId, which repeats across
|
|
6129
|
+
* every timestamped sample of that entity. Normalizing those by rtId would
|
|
6130
|
+
* collapse a whole series into one cached object (last-write-wins) — a line
|
|
6131
|
+
* chart then renders a single point per series. So they are left un-normalized
|
|
6132
|
+
* (embedded in their connection) by returning `undefined`.
|
|
6133
|
+
*/
|
|
6134
|
+
function octoDataIdFromObject(o) {
|
|
6135
|
+
if (o['__typename'] === 'StreamDataQueryRow') {
|
|
6136
|
+
return undefined;
|
|
6137
|
+
}
|
|
6138
|
+
return o['rtId'];
|
|
6139
|
+
}
|
|
6072
6140
|
class OctoGraphQLServiceBase {
|
|
6073
6141
|
apollo;
|
|
6074
6142
|
httpLink;
|
|
@@ -6206,7 +6274,7 @@ class OctoGraphQLServiceBase {
|
|
|
6206
6274
|
this.apollo.createNamed(tenantId, {
|
|
6207
6275
|
link: this.httpLink.create({ uri }),
|
|
6208
6276
|
cache: new InMemoryCache({
|
|
6209
|
-
dataIdFromObject:
|
|
6277
|
+
dataIdFromObject: octoDataIdFromObject
|
|
6210
6278
|
})
|
|
6211
6279
|
});
|
|
6212
6280
|
}
|
|
@@ -6245,5 +6313,5 @@ function provideOctoServices(octoServiceOptions) {
|
|
|
6245
6313
|
* Generated bundle index. Do not edit.
|
|
6246
6314
|
*/
|
|
6247
6315
|
|
|
6248
|
-
export { AggregationInputTypesDto, AggregationTypeDto, AggregationTypesDto, ArchiveStorageHealthDto, AssetRepoGraphQlDataSource, AssetRepoService, AssociationModOptionsDto, AttributeSelectorService, AttributeValueTypeDto, BasicEnergyCarrierTypeDto, BasicEnergyDataQualityDto, BasicEnergyFacilityTypeDto, BasicEnergyProductionTypeDto, BasicEnergyStateDto, BasicLegalEntityTypeDto, BasicSalutationDto, BasicTypeOfTelephoneBasicDto, BasicTypeOfTelephoneEnhancedDto, BasicUnitOfMeasureDto, BlueprintConflictResolutionDto, BlueprintUpdateModeDto, BotService, CONFIGURATION_SERVICE, CkExtensionUpdateOperationsDto, CkModelCatalogService, CkModelService, CkRollupFunctionDto, CkTypeAttributeService, CkTypeMetaData, CkTypeSelectorService, CommunicationService, DeleteStrategiesDto, DeploymentState, EnergyCommunityBillingCycleDto, EnergyCommunityBillingDocumentStateDto, EnergyCommunityBillingTypeDto, EnergyCommunityDataQualityDto, EnergyCommunityFacilityTypeDto, EnergyCommunityProductionTypeDto, EnergyCommunityStateDto, EnergyCommunityTaxProcedureCreditNoteDto, EnvironmentCarbonScopeDto, EnvironmentComplianceCategoryDto, EnvironmentComplianceStatusDto, EnvironmentEnergySourceDto, EnvironmentGoalStateDto, FieldFilterOperatorsDto, GetCkModelByIdDocumentDto, GetCkModelByIdDtoGQL, GetCkRecordAttributesDocumentDto, GetCkRecordAttributesDtoGQL, GetCkTypeAttributesDocumentDto, GetCkTypeAttributesDtoGQL, GetCkTypeAvailableQueryColumnsDocumentDto, GetCkTypeAvailableQueryColumnsDtoGQL, GetCkTypesDocumentDto, GetCkTypesDtoGQL, GetDerivedCkTypesDocumentDto, GetDerivedCkTypesDtoGQL, GetEntitiesByCkTypeDocumentDto, GetEntitiesByCkTypeDtoGQL, GraphDirectionDto, GraphQL, GraphQLCloneIgnoredProperties, GraphQLCommonIgnoredProperties, GraphQlDataSource, HealthService, HealthStatus, IDENTITY_PROVIDER_TYPE_LABELS, IdentityProviderType, IdentityService, ImportStrategyDto, IndustryBasicAlarmPriorityDto, IndustryBasicAlarmSourceTypeDto, IndustryBasicAlarmStateDto, IndustryBasicAlarmTypeDto, IndustryBasicIecDataTypeDto, IndustryBasicMachineCapabilitiesDto, IndustryBasicMachineStateDto, IndustryEnergyDemandResponseMarketDto, IndustryEnergyDemandResponseStatusDto, IndustryEnergyTariffTypeDto, IndustryMaintenanceAggregationTypeDto, IndustryMaintenanceCostCategoryDto, IndustryMaintenanceEnergyBalanceGroupDto, IndustryMaintenanceEnergyBalanceProductDto, IndustryMaintenanceEnergyBalanceUnitDto, IndustryMaintenanceOrderPriorityDto, IndustryMaintenanceOrderStateDto, IndustryMaintenanceOrderTypeDto, IndustryMaintenanceServiceTypeDto, IndustryManufacturingFeedbackSyncStateDto, IndustryManufacturingProductionOrderItemStateDto, IndustryManufacturingProductionOrderStateDto, JobManagementService, LevelMetaData, LoggerSeverity, ModelStateDto, MultiplicitiesDto, NavigationFilterModeDto, OctoErrorLink, OctoGraphQLServiceBase, OctoSdkDemoCustomerStatusDto, OctoSdkDemoNetworkOperatorDto, OctoSdkDemoOperatingStatusDto, OctoServiceOptions, OctoServicesModule, PagedGraphResultDto, ProgressValue, ProgressWindowService, QueryModeDto, RtAssociationMetaData, RuntimeEntityDialogDataSource, RuntimeEntitySelectDataSource, SearchFilterTypesDto, SortOrdersDto, SystemAggregationTypesDto, SystemAiApprovalModeDto, SystemAiApprovalReasonDto, SystemAiApprovalStatusDto, SystemAiAuthModeDto, SystemAiConflictModeDto, SystemAiCredentialKindDto, SystemAiJobKindDto, SystemAiJobStatusDto, SystemAiKnowledgeKindDto, SystemAiLeaseStatusDto, SystemAiModelTierDto, SystemAiRiskLevelDto, SystemAiSessionEventKindDto, SystemAiSessionStatusDto, SystemAiSubscriptionScopeDto, SystemAiTicketScopeDto, SystemAiTicketStatusDto, SystemAiWorkspaceModeDto, SystemCommunicationCommunicationStateDto, SystemCommunicationConfigurationStateDto, SystemCommunicationDeploymentStateDto, SystemCommunicationEnvironmentDto, SystemCommunicationHelmChannelDto, SystemCommunicationPipelineExecutionStatusDto, SystemCommunicationPipelineTriggerTypeDto, SystemEnvironmentModesDto, SystemFieldFilterOperatorDto, SystemIdentityTokenExpirationDto, SystemIdentityTokenTypeDto, SystemIdentityTokenUsageDto, SystemMaintenanceLevelsDto, SystemNavigationFilterModesDto, SystemNotificationEventLevelsDto, SystemNotificationEventSourcesDto, SystemNotificationEventStatesDto, SystemNotificationNotificationTypesDto, SystemNotificationRenderingTypesDto, SystemQueryTypesDto, SystemSortOrdersDto, SystemStreamDataBucketAlignmentDto, SystemStreamDataCkArchiveStatusDto, SystemStreamDataCkRollupFunctionDto, TENANT_ID_PROVIDER, TusUploadService, UpdateTypeDto, result as possibleTypes, provideOctoServices };
|
|
6316
|
+
export { AggregationInputTypesDto, AggregationTypeDto, AggregationTypesDto, ArchiveStorageHealthDto, AssetRepoGraphQlDataSource, AssetRepoService, AssociationModOptionsDto, AttributeSelectorService, AttributeValueTypeDto, BasicEnergyCarrierTypeDto, BasicEnergyDataQualityDto, BasicEnergyFacilityTypeDto, BasicEnergyProductionTypeDto, BasicEnergyStateDto, BasicLegalEntityTypeDto, BasicSalutationDto, BasicTypeOfTelephoneBasicDto, BasicTypeOfTelephoneEnhancedDto, BasicUnitOfMeasureDto, BlueprintConflictResolutionDto, BlueprintUpdateModeDto, BotService, CONFIGURATION_SERVICE, CkExtensionUpdateOperationsDto, CkModelCatalogService, CkModelService, CkRollupFunctionDto, CkTypeAttributeService, CkTypeMetaData, CkTypeSelectorService, CommunicationService, DeleteStrategiesDto, DeploymentState, EnergyCommunityBillingCycleDto, EnergyCommunityBillingDocumentStateDto, EnergyCommunityBillingTypeDto, EnergyCommunityDataQualityDto, EnergyCommunityFacilityTypeDto, EnergyCommunityProductionTypeDto, EnergyCommunityStateDto, EnergyCommunityTaxProcedureCreditNoteDto, EnvironmentCarbonScopeDto, EnvironmentComplianceCategoryDto, EnvironmentComplianceStatusDto, EnvironmentEnergySourceDto, EnvironmentGoalStateDto, FieldFilterOperatorsDto, GetCkModelByIdDocumentDto, GetCkModelByIdDtoGQL, GetCkRecordAttributesDocumentDto, GetCkRecordAttributesDtoGQL, GetCkTypeAttributesDocumentDto, GetCkTypeAttributesDtoGQL, GetCkTypeAvailableQueryColumnsDocumentDto, GetCkTypeAvailableQueryColumnsDtoGQL, GetCkTypesDocumentDto, GetCkTypesDtoGQL, GetDerivedCkTypesDocumentDto, GetDerivedCkTypesDtoGQL, GetEntitiesByCkTypeDocumentDto, GetEntitiesByCkTypeDtoGQL, GraphDirectionDto, GraphQL, GraphQLCloneIgnoredProperties, GraphQLCommonIgnoredProperties, GraphQlDataSource, HealthService, HealthStatus, IDENTITY_PROVIDER_TYPE_LABELS, IdentityProviderType, IdentityService, ImportStrategyDto, IndustryBasicAlarmPriorityDto, IndustryBasicAlarmSourceTypeDto, IndustryBasicAlarmStateDto, IndustryBasicAlarmTypeDto, IndustryBasicIecDataTypeDto, IndustryBasicMachineCapabilitiesDto, IndustryBasicMachineStateDto, IndustryEnergyDemandResponseMarketDto, IndustryEnergyDemandResponseStatusDto, IndustryEnergyTariffTypeDto, IndustryMaintenanceAggregationTypeDto, IndustryMaintenanceCostCategoryDto, IndustryMaintenanceEnergyBalanceGroupDto, IndustryMaintenanceEnergyBalanceProductDto, IndustryMaintenanceEnergyBalanceUnitDto, IndustryMaintenanceOrderPriorityDto, IndustryMaintenanceOrderStateDto, IndustryMaintenanceOrderTypeDto, IndustryMaintenanceServiceTypeDto, IndustryManufacturingFeedbackSyncStateDto, IndustryManufacturingProductionOrderItemStateDto, IndustryManufacturingProductionOrderStateDto, JobManagementService, LevelMetaData, LoggerSeverity, ModelStateDto, MultiplicitiesDto, NavigationFilterModeDto, OctoErrorLink, OctoGraphQLServiceBase, OctoSdkDemoCustomerStatusDto, OctoSdkDemoNetworkOperatorDto, OctoSdkDemoOperatingStatusDto, OctoServiceOptions, OctoServicesModule, PagedGraphResultDto, ProgressValue, ProgressWindowService, QueryModeDto, RtAssociationMetaData, RuntimeEntityDialogDataSource, RuntimeEntitySelectDataSource, SearchFilterTypesDto, SortOrdersDto, SystemAggregationTypesDto, SystemAiApprovalModeDto, SystemAiApprovalReasonDto, SystemAiApprovalStatusDto, SystemAiAuthModeDto, SystemAiConflictModeDto, SystemAiCredentialKindDto, SystemAiJobKindDto, SystemAiJobStatusDto, SystemAiKnowledgeKindDto, SystemAiLeaseStatusDto, SystemAiModelTierDto, SystemAiRiskLevelDto, SystemAiSessionEventKindDto, SystemAiSessionStatusDto, SystemAiSubscriptionScopeDto, SystemAiTicketScopeDto, SystemAiTicketStatusDto, SystemAiWorkspaceModeDto, SystemCommunicationCommunicationStateDto, SystemCommunicationConfigurationStateDto, SystemCommunicationDeploymentStateDto, SystemCommunicationEnvironmentDto, SystemCommunicationHelmChannelDto, SystemCommunicationPipelineExecutionStatusDto, SystemCommunicationPipelineTriggerTypeDto, SystemEnvironmentModesDto, SystemFieldFilterOperatorDto, SystemIdentityTokenExpirationDto, SystemIdentityTokenTypeDto, SystemIdentityTokenUsageDto, SystemMaintenanceLevelsDto, SystemNavigationFilterModesDto, SystemNotificationEventLevelsDto, SystemNotificationEventSourcesDto, SystemNotificationEventStatesDto, SystemNotificationNotificationTypesDto, SystemNotificationRenderingTypesDto, SystemQueryTypesDto, SystemSortOrdersDto, SystemStreamDataBucketAlignmentDto, SystemStreamDataCkArchiveStatusDto, SystemStreamDataCkRollupFunctionDto, TENANT_ID_PROVIDER, TusUploadService, UpdateTypeDto, octoDataIdFromObject, result as possibleTypes, provideOctoServices };
|
|
6249
6317
|
//# sourceMappingURL=meshmakers-octo-services.mjs.map
|