@buynomics-lib/bn-shared 1.18.23 → 1.18.24-feature-ace-969.0
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/build/enums/plugin/plugin-type.enum.d.ts +4 -0
- package/build/enums/plugin/plugin-type.enum.js +9 -0
- package/build/enums/plugin/plugin-type.enum.js.map +1 -0
- package/build/index.d.ts +6 -1
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/interfaces/plugin/plugin-catalog.interface.d.ts +6 -0
- package/build/interfaces/plugin/plugin-catalog.interface.js +3 -0
- package/build/interfaces/plugin/plugin-catalog.interface.js.map +1 -0
- package/build/interfaces/plugin/plugin-enablement.interface.d.ts +12 -0
- package/build/interfaces/plugin/plugin-enablement.interface.js +3 -0
- package/build/interfaces/plugin/plugin-enablement.interface.js.map +1 -0
- package/build/interfaces/plugin/plugin-manifest.interface.d.ts +30 -0
- package/build/interfaces/plugin/plugin-manifest.interface.js +3 -0
- package/build/interfaces/plugin/plugin-manifest.interface.js.map +1 -0
- package/build/interfaces/plugin/plugin-sdk.interface.d.ts +68 -0
- package/build/interfaces/plugin/plugin-sdk.interface.js +3 -0
- package/build/interfaces/plugin/plugin-sdk.interface.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PluginType = void 0;
|
|
4
|
+
var PluginType;
|
|
5
|
+
(function (PluginType) {
|
|
6
|
+
PluginType["Esm"] = "esm";
|
|
7
|
+
PluginType["Iframe"] = "iframe"; /* reserved, not rendered */
|
|
8
|
+
})(PluginType = exports.PluginType || (exports.PluginType = {}));
|
|
9
|
+
//# sourceMappingURL=plugin-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-type.enum.js","sourceRoot":"","sources":["../../../src/enums/plugin/plugin-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,yBAAW,CAAA;IACX,+BAAiB,CAAA,CAAC,4BAA4B;AAChD,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
package/build/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ import { SystemKpis, SystemBaseKpisReferenceIds } from './enums/kpis/system-kpis
|
|
|
38
38
|
import { SystemDerivedKpis, SystemDerivedKpisReferenceIds } from './enums/kpis/system-derived-kpis';
|
|
39
39
|
import { KpiConstraintType, KpiConstraintMode, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket } from './enums/optimization';
|
|
40
40
|
import { BnPermissions } from './enums/permissions';
|
|
41
|
+
import { PluginType } from './enums/plugin/plugin-type.enum';
|
|
41
42
|
import { ChangePriceBases } from './enums/price-change/change-price-bases';
|
|
42
43
|
import { PriceChangeTypes } from './enums/price-change/price-change-types';
|
|
43
44
|
import { PriceLevelTypes } from './enums/price-level/price-level-types';
|
|
@@ -71,6 +72,10 @@ import { AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, I
|
|
|
71
72
|
import { IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange } from './interfaces/discovery/group-metadata';
|
|
72
73
|
import { IClientViewSettings } from './interfaces/client-view-settings';
|
|
73
74
|
import { IFileUpload } from './interfaces/file-upload';
|
|
75
|
+
import { IPluginCatalogEntry } from './interfaces/plugin/plugin-catalog.interface';
|
|
76
|
+
import { ClientPlugins, IClientPluginMenuSetting, IClientPluginSetting, PluginConfigValue } from './interfaces/plugin/plugin-enablement.interface';
|
|
77
|
+
import { IPluginConfigField, IPluginManifest, IPluginNavigation, PluginConfigFieldType } from './interfaces/plugin/plugin-manifest.interface';
|
|
78
|
+
import { IPluginContextV1, IPluginModule } from './interfaces/plugin/plugin-sdk.interface';
|
|
74
79
|
import { ISimulationInputChangeEvents } from './interfaces/simulation/simulation-input-change-events';
|
|
75
80
|
import { KpiAggregation, KpiVariableFormat, SystemVariableType } from './enums/kpis/kpi-variable-format.enum';
|
|
76
81
|
import { KpiDisplayStyle } from './enums/kpis/kpi-display-style.enum';
|
|
@@ -87,4 +92,4 @@ import { IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfi
|
|
|
87
92
|
import { ScenarioKpisGroupByOptions } from './enums/scenario-kpis';
|
|
88
93
|
import { IScenarioKpisGroupBy } from './interfaces/scenario-kpis';
|
|
89
94
|
import { SystemSpecificKpis, SystemSpecificKpisReferenceIds } from './enums/kpis/system-specific-kpis';
|
|
90
|
-
export { AggregationGroupMembershipMode, AggregationGroupType, NumericAggregationRuleOperator, BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, DiscoveryType, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, KpiConstraintMode, MechanicParamTypes, MechanicParamReferenceIds, MechanicTypeRelations, ProductType, ProductNamingDelimiter, PromotionOfferStatus, PromotionOffersCalendarGroupByOptions, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ScenarioStatus, DateGranularity, DateWeekStart, ClientDateSettings, DefaultClientDateSettings, WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection, ScenarioKpisGroupByOptions, TimeDimensionType, AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, IAggregationGroupNumericConfig, ICategoricalAggregationRule, ICategoricalAttributeAggregationRule, INumericBetweenAggregationRule, INumericGreaterThanOrEqualAggregationRule, INumericLessThanAggregationRule, INumericRangeAggregationRule, NumericAggregationRule, IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage, IScenarioKpisGroupBy, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, getAggregationGroupMembershipMode, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, ScenarioEventSource, IWebSocketPromoBaselineStatusChangedPayload, KpiVariableFormat, KpiAggregation, KpiDisplayStyle, KpiConfigType, SystemVariableType, KpiSystemVariables, SystemKpis, SystemBaseKpisReferenceIds, SystemScopedKpis, SystemScopedKpisReferenceIds, SystemDerivedKpis, SystemDerivedKpisReferenceIds, SystemSpecificKpisReferenceIds, SystemSpecificKpis, SystemVariablesReferenceIds, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, ISystemVariable, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, MeasurementConverter, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, SCENARIO_KPIS_GROUP_BY_MAX_LEVEL, FORMULA_PREFIX_FOR_MEASURING_UNITS, FORMULA_PREFIX_FOR_INPUT_VARIABLES, INPUT_VARIABLE_NAME_MAX_LENGTH, INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH, INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH, WIDGET_PRESET_NAME_MAX_LENGTH, WIDGET_PRESET_DESCRIPTION_MAX_LENGTH, };
|
|
95
|
+
export { AggregationGroupMembershipMode, AggregationGroupType, NumericAggregationRuleOperator, BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, DiscoveryType, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, KpiConstraintMode, MechanicParamTypes, MechanicParamReferenceIds, MechanicTypeRelations, PluginType, ProductType, ProductNamingDelimiter, PromotionOfferStatus, PromotionOffersCalendarGroupByOptions, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ScenarioStatus, DateGranularity, DateWeekStart, ClientDateSettings, DefaultClientDateSettings, WidgetType, WidgetPresetAvailability, WidgetChartCategory, WidgetChartSubtype, WidgetChartScenarioMode, WidgetChartAxisValueType, WidgetChartSeriesType, WidgetChartBarLayout, WidgetChartDisplayMode, WidgetChartRankingRule, WidgetChartSortDirection, WidgetTableRowDensity, WidgetTableGroupingFormat, WidgetTableGrandTotalPosition, WidgetTableSortDirection, ScenarioKpisGroupByOptions, TimeDimensionType, AggregationRule, IAggregationGroup, IAggregationGroupDecimalSettings, IAggregationGroupNumericConfig, ICategoricalAggregationRule, ICategoricalAttributeAggregationRule, INumericBetweenAggregationRule, INumericGreaterThanOrEqualAggregationRule, INumericLessThanAggregationRule, INumericRangeAggregationRule, NumericAggregationRule, IWidgetChartConfig, IWidgetChartAxisConfig, IWidgetChartLimitationConfig, IWidgetChartLimitsConfig, IWidgetTableAppearanceConfig, IWidgetTablePresetGridSortItem, IWidgetTablePresetGridState, IWidgetTablePresetDataConfig, IWidgetTablePresetSettings, IWidgetTablePresetConfig, IWidgetPresetUsage, IScenarioKpisGroupBy, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, PluginConfigFieldType, IPluginConfigField, IPluginNavigation, IPluginManifest, PluginConfigValue, IClientPluginMenuSetting, IClientPluginSetting, ClientPlugins, IPluginCatalogEntry, IPluginContextV1, IPluginModule, calculateRange, getAggregationGroupMembershipMode, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, IGroupMetadata, IGroupMetadataAppliedChanges, IGroupMetadataAppliedPpaChange, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, WebsocketEvents, ScenarioEventSource, IWebSocketPromoBaselineStatusChangedPayload, KpiVariableFormat, KpiAggregation, KpiDisplayStyle, KpiConfigType, SystemVariableType, KpiSystemVariables, SystemKpis, SystemBaseKpisReferenceIds, SystemScopedKpis, SystemScopedKpisReferenceIds, SystemDerivedKpis, SystemDerivedKpisReferenceIds, SystemSpecificKpisReferenceIds, SystemSpecificKpis, SystemVariablesReferenceIds, ISystemKpiBase, ISystemKpi, ISystemScopedKpi, ISystemVariable, IKpiDisplaySettings, IScopedKpiScope, TimePeriod, MeasurementConverter, DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT, MAX_ACTIVE_OPTIMIZATIONS_LIMIT, SCENARIO_KPIS_GROUP_BY_MAX_LEVEL, FORMULA_PREFIX_FOR_MEASURING_UNITS, FORMULA_PREFIX_FOR_INPUT_VARIABLES, INPUT_VARIABLE_NAME_MAX_LENGTH, INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH, INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH, INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH, WIDGET_PRESET_NAME_MAX_LENGTH, WIDGET_PRESET_DESCRIPTION_MAX_LENGTH, };
|
package/build/index.js
CHANGED
|
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.MechanicParamReferenceIds = exports.MechanicParamTypes = exports.KpiConstraintMode = exports.KpiConstraintType = exports.ValueDriverType = exports.ClientIndustry = exports.ClientStatus = exports.AvailabilityChangeTypes = exports.CostChangeTypes = exports.ChangeCostBases = exports.ClientFeatureScope = exports.ClientFeatureState = exports.ClientFeature = exports.ChangeProductPriceBases = exports.ChangePriceBases = exports.PriceChangeTypes = exports.ClientProductPortfolioVersion = exports.ClientNumberFormattingSettingsCurrency = exports.ClientNumberFormattingSettingsMetric = exports.ClientNumberFormattingSettingsNotation = exports.ClientNumberFormattingSettingsStyle = exports.ClientNumberFormattingSettingsGlobalFormat = exports.ClientDuplicationParts = exports.BuynomicsAppVersion = exports.DiscoveryType = exports.CentralSteeringVersion = exports.FittingStatuses = exports.IntermediaryGroupRangeFormats = exports.IntermediaryGroupTypes = exports.ClientTypes = exports.DefaultClientDecimalSettings = exports.ClientDecimalSettings = exports.DefaultClientCLVPriceTypeLabels = exports.ClientCLVPriceTypes = exports.ClientCLVPeriods = exports.DefaultClientTermLabels = exports.ClientTerms = exports.CustomCostFormulaParams = exports.DeeperionModelTypes = exports.DeeperionRequestTypes = exports.DeeperionAppSwitchValues = exports.DeeperionVersions = exports.StaticLevelReferenceIds = exports.PriceLevelTypes = exports.SortableProductFields = exports.ConfigurableProductFields = exports.BnPermissions = exports.NumericAggregationRuleOperator = exports.AggregationGroupType = exports.AggregationGroupMembershipMode = void 0;
|
|
7
|
-
exports.
|
|
8
|
-
exports.WIDGET_PRESET_DESCRIPTION_MAX_LENGTH = exports.WIDGET_PRESET_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH = exports.INPUT_VARIABLE_NAME_MAX_LENGTH = exports.FORMULA_PREFIX_FOR_INPUT_VARIABLES = exports.FORMULA_PREFIX_FOR_MEASURING_UNITS = exports.SCENARIO_KPIS_GROUP_BY_MAX_LEVEL = exports.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.MeasurementConverter = exports.SystemVariablesReferenceIds = exports.SystemSpecificKpis = exports.SystemSpecificKpisReferenceIds = exports.SystemDerivedKpisReferenceIds = exports.SystemDerivedKpis = exports.SystemScopedKpisReferenceIds = exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = void 0;
|
|
7
|
+
exports.KpiConfigType = exports.KpiDisplayStyle = exports.KpiAggregation = exports.KpiVariableFormat = exports.ScenarioEventSource = exports.WebsocketEvents = exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = exports.getLatestDeeperionVersionValue = exports.getAggregationGroupMembershipMode = exports.calculateRange = exports.TimeDimensionType = exports.ScenarioKpisGroupByOptions = exports.WidgetTableSortDirection = exports.WidgetTableGrandTotalPosition = exports.WidgetTableGroupingFormat = exports.WidgetTableRowDensity = exports.WidgetChartSortDirection = exports.WidgetChartRankingRule = exports.WidgetChartDisplayMode = exports.WidgetChartBarLayout = exports.WidgetChartSeriesType = exports.WidgetChartAxisValueType = exports.WidgetChartScenarioMode = exports.WidgetChartSubtype = exports.WidgetChartCategory = exports.WidgetPresetAvailability = exports.WidgetType = exports.DefaultClientDateSettings = exports.DateWeekStart = exports.DateGranularity = exports.ScenarioStatus = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = exports.PromotionOffersCalendarGroupByOptions = exports.PromotionOfferStatus = exports.ProductNamingDelimiter = exports.ProductType = exports.PluginType = exports.MechanicTypeRelations = void 0;
|
|
8
|
+
exports.WIDGET_PRESET_DESCRIPTION_MAX_LENGTH = exports.WIDGET_PRESET_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_KPI_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_CUSTOM_ACTION_NAME_MAX_LENGTH = exports.INPUT_VARIABLE_REFERENCE_ID_MAX_LENGTH = exports.INPUT_VARIABLE_DESCRIPTION_MAX_LENGTH = exports.INPUT_VARIABLE_NAME_MAX_LENGTH = exports.FORMULA_PREFIX_FOR_INPUT_VARIABLES = exports.FORMULA_PREFIX_FOR_MEASURING_UNITS = exports.SCENARIO_KPIS_GROUP_BY_MAX_LEVEL = exports.MAX_ACTIVE_OPTIMIZATIONS_LIMIT = exports.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT = exports.MeasurementConverter = exports.SystemVariablesReferenceIds = exports.SystemSpecificKpis = exports.SystemSpecificKpisReferenceIds = exports.SystemDerivedKpisReferenceIds = exports.SystemDerivedKpis = exports.SystemScopedKpisReferenceIds = exports.SystemScopedKpis = exports.SystemBaseKpisReferenceIds = exports.SystemKpis = exports.KpiSystemVariables = exports.SystemVariableType = void 0;
|
|
9
9
|
var activeOptimizationsLimit_1 = require("./constants/activeOptimizationsLimit");
|
|
10
10
|
Object.defineProperty(exports, "DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.DEFAULT_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
11
11
|
Object.defineProperty(exports, "MAX_ACTIVE_OPTIMIZATIONS_LIMIT", { enumerable: true, get: function () { return activeOptimizationsLimit_1.MAX_ACTIVE_OPTIMIZATIONS_LIMIT; } });
|
|
@@ -105,6 +105,8 @@ Object.defineProperty(exports, "OptimizationKpis", { enumerable: true, get: func
|
|
|
105
105
|
Object.defineProperty(exports, "OptimizationSolutionBucket", { enumerable: true, get: function () { return optimization_1.OptimizationSolutionBucket; } });
|
|
106
106
|
var permissions_1 = require("./enums/permissions");
|
|
107
107
|
Object.defineProperty(exports, "BnPermissions", { enumerable: true, get: function () { return permissions_1.BnPermissions; } });
|
|
108
|
+
var plugin_type_enum_1 = require("./enums/plugin/plugin-type.enum");
|
|
109
|
+
Object.defineProperty(exports, "PluginType", { enumerable: true, get: function () { return plugin_type_enum_1.PluginType; } });
|
|
108
110
|
var change_price_bases_1 = require("./enums/price-change/change-price-bases");
|
|
109
111
|
Object.defineProperty(exports, "ChangePriceBases", { enumerable: true, get: function () { return change_price_bases_1.ChangePriceBases; } });
|
|
110
112
|
var price_change_types_1 = require("./enums/price-change/price-change-types");
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,iFAG6C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,iFAG6C;AA2Z3C,mHA7ZA,6DAAkC,OA6ZA;AAClC,+GA7ZA,yDAA8B,OA6ZA;AA3ZhC,yDAA2E;AA4ZzE,iHA5ZO,+CAAgC,OA4ZP;AA3ZlC,+DAGoC;AAyZlC,mHA3ZA,oDAAkC,OA2ZA;AAClC,mHA3ZA,oDAAkC,OA2ZA;AAzZpC,+EAM4C;AAoZ1C,+GAzZA,wDAA8B,OAyZA;AAC9B,sHAzZA,+DAAqC,OAyZA;AACrC,uHAzZA,gEAAsC,OAyZA;AACtC,6HAzZA,sEAA4C,OAyZA;AAC5C,qIAzZA,8EAAoD,OAyZA;AAvZtD,6EAG2C;AAqZzC,8GAvZA,sDAA6B,OAuZA;AAC7B,qHAvZA,6DAAoC,OAuZA;AArZtC,6EAA0E;AAmPxE,gGAnPO,kCAAe,OAmPP;AAhPjB,4HAAuH;AA+OrH,8GA/OO,gEAA6B,OA+OP;AA9O/B,4GAAwG;AA6OtG,uGA7OO,iDAAsB,OA6OP;AA5OxB,oFAAoF;AAiWlF,oGAjWO,uCAAmB,OAiWP;AA/VrB,2HAAiH;AAqN/G,+GArNO,uEAA8B,OAq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9B,wEAAoE;AAgIlE,kGAhIO,uCAAiB,OAgIP;AA/HnB,uEAA+D;AAmG7D,4FAnGO,+BAAW,OAmGP;AAlGb,+FAAsF;AAmGpF,uGAnGO,sDAAsB,OAmGP;AAlGxB,yCAgBuB;AA6FrB,2FA5GA,mBAAU,OA4GA;AACV,yGA5GA,iCAAwB,OA4GA;AACxB,oGA5GA,4BAAmB,OA4GA;AACnB,mGA5GA,2BAAkB,OA4GA;AAClB,wGA5GA,gCAAuB,OA4GA;AACvB,yGA5GA,iCAAwB,OA4GA;AACxB,sGA5GA,8BAAqB,OA4GA;AACrB,qGA5GA,6BAAoB,OA4GA;AACpB,uGA5GA,+BAAsB,OA4GA;AACtB,uGA5GA,+BAAsB,OA4GA;AACtB,yGA5GA,iCAAwB,OA4GA;AACxB,sGA5GA,8BAAqB,OA4GA;AACrB,0GA5GA,kCAAyB,OA4GA;AACzB,8GA5GA,sCAA6B,OA4GA;AAC7B,yGA5GA,iCAAwB,OA4GA;AA7F1B,uDAAkE;AA8FhE,2GA9FO,0CAA0B,OA8FP;AA5F5B,0EAG0C;AAsKxC,mGAxKA,yCAAkB,OAwKA;AADlB,+GAtKA,qDAA8B,OAsKA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-catalog.interface.js","sourceRoot":"","sources":["../../../src/interfaces/plugin/plugin-catalog.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type PluginConfigValue = string | number | boolean;
|
|
2
|
+
export interface IClientPluginMenuSetting {
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
order?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IClientPluginSetting {
|
|
7
|
+
enabled: boolean;
|
|
8
|
+
version: 'latest' | string;
|
|
9
|
+
config: Record<string, PluginConfigValue>;
|
|
10
|
+
menu?: IClientPluginMenuSetting;
|
|
11
|
+
}
|
|
12
|
+
export type ClientPlugins = Record<string, IClientPluginSetting>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-enablement.interface.js","sourceRoot":"","sources":["../../../src/interfaces/plugin/plugin-enablement.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PluginType } from '../../enums/plugin/plugin-type.enum';
|
|
2
|
+
export type PluginConfigFieldType = 'string' | 'number' | 'boolean' | 'select';
|
|
3
|
+
export interface IPluginConfigField {
|
|
4
|
+
type: PluginConfigFieldType;
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
options?: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export interface IPluginNavigation {
|
|
14
|
+
label: string;
|
|
15
|
+
section?: string;
|
|
16
|
+
order?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface IPluginManifest {
|
|
19
|
+
slug: string;
|
|
20
|
+
name: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
author?: string;
|
|
24
|
+
version: string;
|
|
25
|
+
entry: string;
|
|
26
|
+
type: PluginType;
|
|
27
|
+
sdkVersion: number;
|
|
28
|
+
navigation: IPluginNavigation;
|
|
29
|
+
configSchema?: Record<string, IPluginConfigField>;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-manifest.interface.js","sourceRoot":"","sources":["../../../src/interfaces/plugin/plugin-manifest.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PluginConfigValue } from './plugin-enablement.interface';
|
|
2
|
+
export interface IPluginContextV1 {
|
|
3
|
+
sdkVersion: 1;
|
|
4
|
+
/**
|
|
5
|
+
* Always-fresh access token via host bn-auth (auto-refresh). THE ONLY sanctioned
|
|
6
|
+
* token path: plugins MUST NOT read tokens from localStorage/cookies (lint-banned —
|
|
7
|
+
* bn-auth storage is an implementation detail and direct reads bypass refresh).
|
|
8
|
+
* Callers MUST NOT cache the value beyond a single request; call per request.
|
|
9
|
+
*/
|
|
10
|
+
getAccessToken(): Promise<string>;
|
|
11
|
+
/** Base URLs of the review APIs the host itself uses. */
|
|
12
|
+
api: {
|
|
13
|
+
pricingApiUrl: string;
|
|
14
|
+
pricingBulkApiUrl: string;
|
|
15
|
+
adminApiUrl: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* role = keycloakRole.name; permissions = the EFFECTIVE set (bnOrgUserMode-aware:
|
|
19
|
+
* when an admin impersonates an org user, the impersonated permissions — matching
|
|
20
|
+
* the host's own hasPermission behavior).
|
|
21
|
+
*/
|
|
22
|
+
user: {
|
|
23
|
+
email: string;
|
|
24
|
+
role: string;
|
|
25
|
+
permissions: string[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* id is the client UUID (string everywhere in the system); industry is the
|
|
29
|
+
* ClientIndustry enum value.
|
|
30
|
+
*/
|
|
31
|
+
client: {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
industry: string;
|
|
35
|
+
};
|
|
36
|
+
/** Admin-filled values per the manifest's configSchema. Empty object when none. */
|
|
37
|
+
config: Record<string, PluginConfigValue>;
|
|
38
|
+
/**
|
|
39
|
+
* The antd alias-token OBJECT from the host's theme.useToken().token (plain
|
|
40
|
+
* serializable values incl. booleans; never the whole hook result).
|
|
41
|
+
*/
|
|
42
|
+
theme: Record<string, string | number | boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Full origin-relative route prefix for this plugin, INCLUDING the host's
|
|
45
|
+
* publicUrl prefix — e.g. "/v3/pricing/plugins/promo-impact-story" (or
|
|
46
|
+
* "/v3/pricing-<branch>/plugins/…" on review). Always build links off this;
|
|
47
|
+
* never hardcode "/plugins/…".
|
|
48
|
+
*/
|
|
49
|
+
basePath: string;
|
|
50
|
+
/** SPA navigation in the HOST router (paths relative to host basename). */
|
|
51
|
+
navigate(path: string): void;
|
|
52
|
+
/** Register cleanup; all callbacks run (errors caught) before unmount() is invoked. */
|
|
53
|
+
onUnmount(cb: () => void): void;
|
|
54
|
+
}
|
|
55
|
+
export interface IPluginModule {
|
|
56
|
+
/**
|
|
57
|
+
* Render into el (a node inside a host-owned Shadow DOM root).
|
|
58
|
+
* May be async; host shows a loader until it settles and treats a rejection
|
|
59
|
+
* as mount failure (fallback panel). MUST be idempotent per el.
|
|
60
|
+
*/
|
|
61
|
+
mount(el: HTMLElement, ctx: IPluginContextV1): void | Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Tear down synchronously (best effort). Host calls it wrapped in try/catch
|
|
64
|
+
* on route leave, after running ctx.onUnmount callbacks, then discards the
|
|
65
|
+
* shadow root — leaked listeners/timers must not assume the DOM survives.
|
|
66
|
+
*/
|
|
67
|
+
unmount(el: HTMLElement): void;
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-sdk.interface.js","sourceRoot":"","sources":["../../../src/interfaces/plugin/plugin-sdk.interface.ts"],"names":[],"mappings":""}
|