@buynomics-lib/bn-shared 1.18.23 → 1.18.24-feature-ace-969.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +13 -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 +37 -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 +63 -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 +2 -2
|
@@ -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, PluginVersionPin } 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, PluginVersionPin, 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;AA6Z3C,mHA/ZA,6DAAkC,OA+ZA;AAClC,+GA/ZA,yDAA8B,OA+ZA;AA7ZhC,yDAA2E;AA8ZzE,iHA9ZO,+CAAgC,OA8ZP;AA7ZlC,+DAGoC;AA2ZlC,mHA7ZA,oDAAkC,OA6ZA;AAClC,mHA7ZA,oDAAkC,OA6ZA;AA3ZpC,+EAM4C;AAsZ1C,+GA3ZA,wDAA8B,OA2ZA;AAC9B,sHA3ZA,+DAAqC,OA2ZA;AACrC,uHA3ZA,gEAAsC,OA2ZA;AACtC,6HA3ZA,sEAA4C,OA2ZA;AAC5C,qIA3ZA,8EAAoD,OA2ZA;AAzZtD,6EAG2C;AAuZzC,8GAzZA,sDAA6B,OAyZA;AAC7B,qHAzZA,6DAAoC,OAyZA;AAvZtC,6EAA0E;AAoPxE,gGApPO,kCAAe,OAoPP;AAjPjB,4HAAuH;AAgPrH,8GAhPO,gEAA6B,OAgPP;AA/O/B,4GAAwG;AA8OtG,uGA9OO,iDAAsB,OA8OP;AA7OxB,oFAAoF;AAmWlF,oGAnWO,uCAAmB,OAmWP;AAjWrB,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,6GApNA,iDAA4B,OAoNA;AAzM9B,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;AAuKxC,mGAzKA,yCAAkB,OAyKA;AADlB,+GAvKA,qDAA8B,OAuKA"}
|
|
@@ -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,13 @@
|
|
|
1
|
+
export type PluginConfigValue = string | number | boolean;
|
|
2
|
+
export type PluginVersionPin = 'latest' | (string & {});
|
|
3
|
+
export interface IClientPluginMenuSetting {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
order?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IClientPluginSetting {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
version: PluginVersionPin;
|
|
10
|
+
config: Record<string, PluginConfigValue>;
|
|
11
|
+
menu?: IClientPluginMenuSetting;
|
|
12
|
+
}
|
|
13
|
+
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,37 @@
|
|
|
1
|
+
import { PluginType } from '../../enums/plugin/plugin-type.enum';
|
|
2
|
+
export type PluginConfigFieldType = 'string' | 'number' | 'boolean' | 'select';
|
|
3
|
+
export interface IPluginSelectConfigField {
|
|
4
|
+
type: 'select';
|
|
5
|
+
label: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
options: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
13
|
+
export interface IPluginPrimitiveConfigField {
|
|
14
|
+
type: 'string' | 'number' | 'boolean';
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export type IPluginConfigField = IPluginSelectConfigField | IPluginPrimitiveConfigField;
|
|
20
|
+
export interface IPluginNavigation {
|
|
21
|
+
label: string;
|
|
22
|
+
section?: string;
|
|
23
|
+
order?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface IPluginManifest {
|
|
26
|
+
slug: string;
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
author?: string;
|
|
31
|
+
version: string;
|
|
32
|
+
entry: string;
|
|
33
|
+
type: PluginType;
|
|
34
|
+
sdkVersion: number;
|
|
35
|
+
navigation: IPluginNavigation;
|
|
36
|
+
configSchema?: Record<string, IPluginConfigField>;
|
|
37
|
+
}
|
|
@@ -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,63 @@
|
|
|
1
|
+
import { PluginConfigValue } from './plugin-enablement.interface';
|
|
2
|
+
export interface IPluginContextV1 {
|
|
3
|
+
sdkVersion: 1;
|
|
4
|
+
/** Always-fresh access token. Call per request; never cache the value. */
|
|
5
|
+
getAccessToken(): Promise<string>;
|
|
6
|
+
/** Base URLs of the review APIs the host itself uses. */
|
|
7
|
+
api: {
|
|
8
|
+
pricingApiUrl: string;
|
|
9
|
+
pricingBulkApiUrl: string;
|
|
10
|
+
adminApiUrl: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* role = keycloakRole.name; permissions = the EFFECTIVE set (bnOrgUserMode-aware:
|
|
14
|
+
* when an admin impersonates an org user, the impersonated permissions — matching
|
|
15
|
+
* the host's own hasPermission behavior).
|
|
16
|
+
*/
|
|
17
|
+
user: {
|
|
18
|
+
email: string;
|
|
19
|
+
role: string;
|
|
20
|
+
permissions: string[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* id is the client UUID (string everywhere in the system); industry is the
|
|
24
|
+
* ClientIndustry enum value.
|
|
25
|
+
*/
|
|
26
|
+
client: {
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
industry: string;
|
|
30
|
+
};
|
|
31
|
+
/** Admin-filled values per the manifest's configSchema. Empty object when none. */
|
|
32
|
+
config: Record<string, PluginConfigValue>;
|
|
33
|
+
/**
|
|
34
|
+
* The antd alias-token OBJECT from the host's theme.useToken().token (plain
|
|
35
|
+
* serializable values incl. booleans; never the whole hook result).
|
|
36
|
+
*/
|
|
37
|
+
theme: Record<string, string | number | boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Full origin-relative route prefix for this plugin, INCLUDING the host's
|
|
40
|
+
* publicUrl prefix — e.g. "/v3/pricing/plugins/promo-impact-story" (or
|
|
41
|
+
* "/v3/pricing-<branch>/plugins/…" on review). Always build links off this;
|
|
42
|
+
* never hardcode "/plugins/…".
|
|
43
|
+
*/
|
|
44
|
+
basePath: string;
|
|
45
|
+
/** SPA navigation in the HOST router (paths relative to host basename). */
|
|
46
|
+
navigate(path: string): void;
|
|
47
|
+
/** Register cleanup; all callbacks run (errors caught) before unmount() is invoked. */
|
|
48
|
+
onUnmount(cb: () => void): void;
|
|
49
|
+
}
|
|
50
|
+
export interface IPluginModule {
|
|
51
|
+
/**
|
|
52
|
+
* Render into el (a node inside a host-owned Shadow DOM root).
|
|
53
|
+
* May be async; host shows a loader until it settles and treats a rejection
|
|
54
|
+
* as mount failure (fallback panel). MUST be idempotent per el.
|
|
55
|
+
*/
|
|
56
|
+
mount(el: HTMLElement, ctx: IPluginContextV1): void | Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Tear down synchronously (best effort). Host calls it wrapped in try/catch
|
|
59
|
+
* on route leave, after running ctx.onUnmount callbacks, then discards the
|
|
60
|
+
* shadow root — leaked listeners/timers must not assume the DOM survives.
|
|
61
|
+
*/
|
|
62
|
+
unmount(el: HTMLElement): void;
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-sdk.interface.js","sourceRoot":"","sources":["../../../src/interfaces/plugin/plugin-sdk.interface.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buynomics-lib/bn-shared",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.24-feature-ace-969.1",
|
|
4
4
|
"description": "Shared functionality between API and UI",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"resolutions": {
|
|
35
35
|
"ansi-regex": "5.0.1",
|
|
36
36
|
"brace-expansion": "5.0.9",
|
|
37
|
-
"js-yaml": "4.3.
|
|
37
|
+
"js-yaml": "4.3.1",
|
|
38
38
|
"lodash": "4.18.0",
|
|
39
39
|
"minimatch": "3.1.4",
|
|
40
40
|
"minimist": "1.2.6",
|