@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.
- package/assets/report/assets/index-CKPi--yh.css +1 -0
- package/assets/report/assets/index-CqUjsqpS.js +9 -0
- package/assets/report/fonts/LexendDeca-VariableFont_wght.ttf +0 -0
- package/assets/report/index.html +14 -0
- package/lib/banner.d.ts +7 -0
- package/lib/banner.js +13 -0
- package/lib/classify/advancedCondition.d.ts +34 -0
- package/lib/classify/advancedCondition.js +112 -0
- package/lib/classify/formula.d.ts +29 -0
- package/lib/classify/formula.js +125 -0
- package/lib/classify/index.d.ts +80 -0
- package/lib/classify/index.js +662 -0
- package/lib/classify/rules.d.ts +31 -0
- package/lib/classify/rules.js +868 -0
- package/lib/config/outbound.d.ts +31 -0
- package/lib/config/outbound.js +35 -0
- package/lib/connection.d.ts +42 -0
- package/lib/connection.js +52 -0
- package/lib/extract/index.d.ts +112 -0
- package/lib/extract/index.js +373 -0
- package/lib/extract/records.d.ts +421 -0
- package/lib/extract/records.js +327 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.js +51 -0
- package/lib/liveness.d.ts +19 -0
- package/lib/liveness.js +34 -0
- package/lib/mapping.d.ts +14 -0
- package/lib/mapping.js +272 -0
- package/lib/report/assemble.d.ts +16 -0
- package/lib/report/assemble.js +499 -0
- package/lib/report/printDoc.d.ts +13 -0
- package/lib/report/printDoc.js +82 -0
- package/lib/report/shareSummary.d.ts +8 -0
- package/lib/report/shareSummary.js +54 -0
- package/lib/report/types.d.ts +146 -0
- package/lib/report/types.js +2 -0
- package/lib/server.d.ts +32 -0
- package/lib/server.js +185 -0
- package/lib/soql.d.ts +50 -0
- package/lib/soql.js +76 -0
- package/lib/summary.d.ts +14 -0
- package/lib/summary.js +143 -0
- package/lib/types.d.ts +22 -0
- package/lib/types.js +85 -0
- package/package.json +35 -0
package/lib/types.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export const BUCKETS = [
|
|
2
|
+
{
|
|
3
|
+
id: 'catalog',
|
|
4
|
+
name: 'Catalog',
|
|
5
|
+
question: 'What do we sell, and in which currencies?',
|
|
6
|
+
phase: 'before',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
id: 'configuration',
|
|
10
|
+
name: 'Configuration',
|
|
11
|
+
question: 'What can be sold together, and what does the rep choose?',
|
|
12
|
+
phase: 'before',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'discovery',
|
|
16
|
+
name: 'Discovery & capture',
|
|
17
|
+
question: 'What do we ask before or while quoting?',
|
|
18
|
+
phase: 'before',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 'price',
|
|
22
|
+
name: 'Price determination',
|
|
23
|
+
question: 'How does a price get to the line?',
|
|
24
|
+
phase: 'quote',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'discounting',
|
|
28
|
+
name: 'Discounting',
|
|
29
|
+
question: 'Who gets off list, and by how much?',
|
|
30
|
+
phase: 'quote',
|
|
31
|
+
},
|
|
32
|
+
{ id: 'guardrails', name: 'Guardrails', question: 'What can a rep not do?', phase: 'quote' },
|
|
33
|
+
{
|
|
34
|
+
id: 'approvals',
|
|
35
|
+
name: 'Approvals',
|
|
36
|
+
question: 'Who has to sign off, and in what order?',
|
|
37
|
+
phase: 'quote',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
id: 'output',
|
|
41
|
+
name: 'Quote output',
|
|
42
|
+
question: 'What does the customer actually receive?',
|
|
43
|
+
phase: 'quote',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'lifecycle',
|
|
47
|
+
name: 'Contract lifecycle',
|
|
48
|
+
question: 'What happens to the deal after it is won?',
|
|
49
|
+
phase: 'after',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: 'code',
|
|
53
|
+
name: 'Custom code & UI',
|
|
54
|
+
question: 'What has been customised on top of the CPQ objects?',
|
|
55
|
+
phase: 'outside',
|
|
56
|
+
},
|
|
57
|
+
];
|
|
58
|
+
export const PHASES = [
|
|
59
|
+
{
|
|
60
|
+
id: 'before',
|
|
61
|
+
name: 'Before the quote',
|
|
62
|
+
note: 'What exists before a rep opens one',
|
|
63
|
+
buckets: ['catalog', 'configuration', 'discovery'],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
id: 'quote',
|
|
67
|
+
name: 'The quote',
|
|
68
|
+
note: 'What happens while one is built',
|
|
69
|
+
buckets: ['price', 'discounting', 'guardrails', 'approvals', 'output'],
|
|
70
|
+
},
|
|
71
|
+
{ id: 'after', name: 'After signature', note: 'What the deal becomes', buckets: ['lifecycle'] },
|
|
72
|
+
{
|
|
73
|
+
id: 'outside',
|
|
74
|
+
name: 'Outside the configuration',
|
|
75
|
+
note: 'Built on top of the CPQ objects',
|
|
76
|
+
buckets: ['code'],
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
export function bucketDef(id) {
|
|
80
|
+
const def = BUCKETS.find((b) => b.id === id);
|
|
81
|
+
if (!def)
|
|
82
|
+
throw new Error(`unknown bucket ${id}`);
|
|
83
|
+
return def;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=types.js.map
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quotivity/cpq-inventory-core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Analysis core for the Quotivity CPQ Inventory & Migration Analysis: extraction, classification, mapping, report assembly and the local report server. Runs entirely on the customer's machine.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=22.0.0"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/quotivity/salesforce-cpq-migration-analysis.git",
|
|
13
|
+
"directory": "packages/core"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/quotivity/salesforce-cpq-migration-analysis",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"types": "./lib/index.d.ts",
|
|
23
|
+
"files": [
|
|
24
|
+
"/lib",
|
|
25
|
+
"/assets",
|
|
26
|
+
"!/lib/**/*.map",
|
|
27
|
+
"!/lib/**/*.tsbuildinfo"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsc -b",
|
|
31
|
+
"test": "vitest run --root ../.. packages/core"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {},
|
|
34
|
+
"devDependencies": {}
|
|
35
|
+
}
|