@quotivity/cpq-inventory-core 0.1.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.
Files changed (45) hide show
  1. package/assets/report/assets/index-CKPi--yh.css +1 -0
  2. package/assets/report/assets/index-CqUjsqpS.js +9 -0
  3. package/assets/report/fonts/LexendDeca-VariableFont_wght.ttf +0 -0
  4. package/assets/report/index.html +14 -0
  5. package/lib/banner.d.ts +7 -0
  6. package/lib/banner.js +13 -0
  7. package/lib/classify/advancedCondition.d.ts +34 -0
  8. package/lib/classify/advancedCondition.js +112 -0
  9. package/lib/classify/formula.d.ts +29 -0
  10. package/lib/classify/formula.js +125 -0
  11. package/lib/classify/index.d.ts +80 -0
  12. package/lib/classify/index.js +662 -0
  13. package/lib/classify/rules.d.ts +31 -0
  14. package/lib/classify/rules.js +868 -0
  15. package/lib/config/outbound.d.ts +31 -0
  16. package/lib/config/outbound.js +35 -0
  17. package/lib/connection.d.ts +42 -0
  18. package/lib/connection.js +52 -0
  19. package/lib/extract/index.d.ts +112 -0
  20. package/lib/extract/index.js +373 -0
  21. package/lib/extract/records.d.ts +421 -0
  22. package/lib/extract/records.js +327 -0
  23. package/lib/index.d.ts +30 -0
  24. package/lib/index.js +51 -0
  25. package/lib/liveness.d.ts +19 -0
  26. package/lib/liveness.js +34 -0
  27. package/lib/mapping.d.ts +14 -0
  28. package/lib/mapping.js +272 -0
  29. package/lib/report/assemble.d.ts +16 -0
  30. package/lib/report/assemble.js +499 -0
  31. package/lib/report/printDoc.d.ts +13 -0
  32. package/lib/report/printDoc.js +82 -0
  33. package/lib/report/shareSummary.d.ts +8 -0
  34. package/lib/report/shareSummary.js +54 -0
  35. package/lib/report/types.d.ts +146 -0
  36. package/lib/report/types.js +2 -0
  37. package/lib/server.d.ts +32 -0
  38. package/lib/server.js +185 -0
  39. package/lib/soql.d.ts +50 -0
  40. package/lib/soql.js +76 -0
  41. package/lib/summary.d.ts +14 -0
  42. package/lib/summary.js +143 -0
  43. package/lib/types.d.ts +22 -0
  44. package/lib/types.js +85 -0
  45. package/package.json +35 -0
@@ -0,0 +1,31 @@
1
+ import type { BucketId, ReviewReason, Shape, Verdict } from '../types.js';
2
+ /**
3
+ * The spec's classification table as data. The discriminator row — not the object — is the unit of
4
+ * counting and the unit a verdict attaches to. Each record gets one primary row (counted once) and
5
+ * may be cross-listed to a secondary row (shown twice, counted once).
6
+ */
7
+ export type RowId = 'cat.products' | 'cat.pricebooks' | 'cat.currencies' | 'cat.dcrStatic' | 'cat.dcrTable' | 'cfg.features' | 'cfg.featurePickOne' | 'cfg.featurePickMany' | 'cfg.featureCap' | 'cfg.optionsPlain' | 'cfg.optionsNested' | 'cfg.configRules' | 'cfg.constraintExclusion' | 'cfg.constraintDepSatisfied' | 'cfg.constraintDepOther' | 'cfg.selectionRules' | 'cfg.filterRules' | 'cfg.actionSwap' | 'cfg.actionRemoveNoReplacement' | 'cfg.lookupProductRule' | 'cfg.priceRuleConfigurator' | 'disc.attributesGuided' | 'disc.attributesOnOptions' | 'disc.quoteProcesses' | 'disc.processInputs' | 'disc.priceRulesDefaulting' | 'price.costPlus' | 'price.percentOfTotal' | 'price.block' | 'price.attributeDriven' | 'price.priceRulesPrice' | 'price.actionsOverLimit' | 'price.actionsQuoteRollup' | 'price.actionsQuoteArbitrary' | 'price.subscriptionUnbundled' | 'price.subscriptionBundled' | 'price.usage' | 'price.mdqSame' | 'price.mdqDiffering' | 'price.lookupPriceRule' | 'sv.plain' | 'sv.constraint' | 'sv.composite' | 'sv.productOption' | 'sv.asset' | 'dsc.perLine' | 'dsc.quoteScope' | 'dsc.groupScope' | 'dsc.slab' | 'dsc.contractedPrices' | 'dsc.priceRulesDiscount' | 'grd.validation' | 'grd.alert' | 'grd.quoteScope' | 'grd.floorCeiling' | 'grd.customLogic' | 'grd.platformValidation' | 'grd.productFlags' | 'grd.groupGated' | 'apr.rules' | 'apr.derivedApprover' | 'apr.chains' | 'apr.trackedFields' | 'apr.variables' | 'apr.native' | 'out.templates' | 'out.lineColumns' | 'out.terms' | 'out.termConditions' | 'out.groups' | 'life.contracts' | 'life.amendRenew' | 'life.ordersAssets' | 'code.qcp' | 'code.triggers' | 'code.customActions' | 'code.ui';
8
+ export interface RuleRow {
9
+ id: RowId;
10
+ /** Row label in the admin's vocabulary, as rendered in the bucket breakdown. */
11
+ label: string;
12
+ source: string;
13
+ discriminator: string;
14
+ /** Primary bucket. `follows` means the record lands in the bucket of the rule that consumes it. */
15
+ bucket: BucketId | 'follows';
16
+ /** Second bucket the row is also shown under, with a cross-reference marker. */
17
+ crossBucket?: BucketId;
18
+ lands: string;
19
+ verdict: Verdict;
20
+ shape?: Shape;
21
+ review?: ReviewReason;
22
+ /** Unit printed after the count when it is not the row's own record ("14 products"). */
23
+ unit?: string;
24
+ /** Stage 2 mapping row this classification row rolls up to. */
25
+ mapping: string;
26
+ }
27
+ export declare const RULE_ROWS: readonly RuleRow[];
28
+ export declare function ruleRow(id: RowId): RuleRow;
29
+ /** Buckets whose Exists value counts mechanisms (non-empty rows) rather than records. */
30
+ export declare const MECHANISM_BUCKETS: ReadonlySet<BucketId>;
31
+ //# sourceMappingURL=rules.d.ts.map