@fern-api/fdr-sdk 1.2.42-23647d2912 → 1.2.42-304ea6b285
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/dist/js/navigation/ledger-root-builder.js +0 -27
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +0 -27
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/navigation/ledger-root-builder.js +0 -46
- package/dist/navigation/ledger-root-builder.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/navigation/__test__/ledger-root-builder.crossProductDedup.test.d.ts +0 -2
- package/dist/navigation/__test__/ledger-root-builder.crossProductDedup.test.d.ts.map +0 -1
- package/dist/navigation/__test__/ledger-root-builder.crossProductDedup.test.js +0 -267
- package/dist/navigation/__test__/ledger-root-builder.crossProductDedup.test.js.map +0 -1
- package/dist/types/navigation/__test__/ledger-root-builder.crossProductDedup.test.d.ts +0 -2
- package/dist/types/navigation/__test__/ledger-root-builder.crossProductDedup.test.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-root-builder.crossProductDedup.test.d.ts","sourceRoot":"","sources":["../../../src/navigation/__test__/ledger-root-builder.crossProductDedup.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from "vitest";
|
|
2
|
-
import * as FernNavigation from "../index.js";
|
|
3
|
-
import { buildFullRootFromSegments } from "../ledger-root-builder.js";
|
|
4
|
-
function detail(opts) {
|
|
5
|
-
return {
|
|
6
|
-
id: opts.id,
|
|
7
|
-
displayName: opts.name,
|
|
8
|
-
icon: null,
|
|
9
|
-
sortOrder: 0,
|
|
10
|
-
hidden: false,
|
|
11
|
-
viewers: [],
|
|
12
|
-
orphaned: false,
|
|
13
|
-
featureFlags: [],
|
|
14
|
-
metadata: { slug: opts.slug, default: opts.isDefault ?? false, pointsTo: opts.pointsTo }
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function seg(opts) {
|
|
18
|
-
return {
|
|
19
|
-
segmentId: opts.segmentHash,
|
|
20
|
-
segmentHash: opts.segmentHash,
|
|
21
|
-
section: opts.section ?? "",
|
|
22
|
-
locale: "en",
|
|
23
|
-
sortOrder: 0,
|
|
24
|
-
hidden: false,
|
|
25
|
-
metadata: opts.metadata ?? { type: "section" },
|
|
26
|
-
product: opts.product,
|
|
27
|
-
version: null,
|
|
28
|
-
variant: null,
|
|
29
|
-
tab: null
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
function mdRoute(opts) {
|
|
33
|
-
return {
|
|
34
|
-
type: "markdown",
|
|
35
|
-
fullPath: opts.fullPath,
|
|
36
|
-
hidden: false,
|
|
37
|
-
metadata: { title: opts.title, pageId: opts.pageId }
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function epRoute(opts) {
|
|
41
|
-
return {
|
|
42
|
-
type: "endpoint-pair",
|
|
43
|
-
fullPath: opts.fullPath,
|
|
44
|
-
stream: null,
|
|
45
|
-
hidden: false,
|
|
46
|
-
metadata: {
|
|
47
|
-
title: opts.title,
|
|
48
|
-
endpointId: opts.endpointId,
|
|
49
|
-
method: opts.method,
|
|
50
|
-
apiDefinitionId: opts.apiDefinitionId,
|
|
51
|
-
isResponseStream: false
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function findCanonicalSlug(root, slug) {
|
|
56
|
-
const result = FernNavigation.utils.findNode(root, FernNavigation.Slug(slug));
|
|
57
|
-
if (result.type === "found") {
|
|
58
|
-
return result.node.canonicalSlug;
|
|
59
|
-
}
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
describe("buildFullRootFromSegments - cross-product canonical slug deduplication", () => {
|
|
63
|
-
it("deduplicates shared pages across products via pageId", () => {
|
|
64
|
-
const defaultProduct = detail({
|
|
65
|
-
id: "p-hris",
|
|
66
|
-
name: "HRIS",
|
|
67
|
-
slug: "hris",
|
|
68
|
-
isDefault: true,
|
|
69
|
-
pointsTo: "hris/authentication"
|
|
70
|
-
});
|
|
71
|
-
const nonDefaultProduct = detail({
|
|
72
|
-
id: "p-accounting",
|
|
73
|
-
name: "Accounting",
|
|
74
|
-
slug: "accounting",
|
|
75
|
-
pointsTo: "accounting/authentication"
|
|
76
|
-
});
|
|
77
|
-
const root = buildFullRootFromSegments({
|
|
78
|
-
basePath: "",
|
|
79
|
-
title: "Merge",
|
|
80
|
-
segments: [
|
|
81
|
-
seg({ segmentHash: "seg-hris", product: defaultProduct }),
|
|
82
|
-
seg({ segmentHash: "seg-accounting", product: nonDefaultProduct })
|
|
83
|
-
],
|
|
84
|
-
navBySegment: new Map([
|
|
85
|
-
[
|
|
86
|
-
"seg-hris",
|
|
87
|
-
[mdRoute({ fullPath: "hris/authentication", title: "Authentication", pageId: "pg-auth" })]
|
|
88
|
-
],
|
|
89
|
-
[
|
|
90
|
-
"seg-accounting",
|
|
91
|
-
[
|
|
92
|
-
mdRoute({ fullPath: "accounting/authentication", title: "Authentication", pageId: "pg-auth" })
|
|
93
|
-
]
|
|
94
|
-
]
|
|
95
|
-
])
|
|
96
|
-
});
|
|
97
|
-
// Default product's page: no cross-product canonicalSlug
|
|
98
|
-
expect(findCanonicalSlug(root, "hris/authentication")).toBeUndefined();
|
|
99
|
-
// Non-default product's shared page points to the default
|
|
100
|
-
expect(findCanonicalSlug(root, "accounting/authentication")).toBe("hris/authentication");
|
|
101
|
-
});
|
|
102
|
-
it("does NOT deduplicate pages with different pageIds", () => {
|
|
103
|
-
const defaultProduct = detail({
|
|
104
|
-
id: "p-hris",
|
|
105
|
-
name: "HRIS",
|
|
106
|
-
slug: "hris",
|
|
107
|
-
isDefault: true,
|
|
108
|
-
pointsTo: "hris/guide"
|
|
109
|
-
});
|
|
110
|
-
const nonDefaultProduct = detail({
|
|
111
|
-
id: "p-accounting",
|
|
112
|
-
name: "Accounting",
|
|
113
|
-
slug: "accounting",
|
|
114
|
-
pointsTo: "accounting/guide"
|
|
115
|
-
});
|
|
116
|
-
const root = buildFullRootFromSegments({
|
|
117
|
-
basePath: "",
|
|
118
|
-
title: "Merge",
|
|
119
|
-
segments: [
|
|
120
|
-
seg({ segmentHash: "seg-hris", product: defaultProduct }),
|
|
121
|
-
seg({ segmentHash: "seg-accounting", product: nonDefaultProduct })
|
|
122
|
-
],
|
|
123
|
-
navBySegment: new Map([
|
|
124
|
-
["seg-hris", [mdRoute({ fullPath: "hris/guide", title: "Guide", pageId: "pg-hris-guide" })]],
|
|
125
|
-
[
|
|
126
|
-
"seg-accounting",
|
|
127
|
-
[mdRoute({ fullPath: "accounting/guide", title: "Guide", pageId: "pg-acct-guide" })]
|
|
128
|
-
]
|
|
129
|
-
])
|
|
130
|
-
});
|
|
131
|
-
expect(findCanonicalSlug(root, "hris/guide")).toBeUndefined();
|
|
132
|
-
expect(findCanonicalSlug(root, "accounting/guide")).toBeUndefined();
|
|
133
|
-
});
|
|
134
|
-
it("does NOT deduplicate API endpoint nodes across products", () => {
|
|
135
|
-
const defaultProduct = detail({
|
|
136
|
-
id: "p-hris",
|
|
137
|
-
name: "HRIS",
|
|
138
|
-
slug: "hris",
|
|
139
|
-
isDefault: true,
|
|
140
|
-
pointsTo: "hris/list-employees"
|
|
141
|
-
});
|
|
142
|
-
const nonDefaultProduct = detail({
|
|
143
|
-
id: "p-accounting",
|
|
144
|
-
name: "Accounting",
|
|
145
|
-
slug: "accounting",
|
|
146
|
-
pointsTo: "accounting/list-accounts"
|
|
147
|
-
});
|
|
148
|
-
const root = buildFullRootFromSegments({
|
|
149
|
-
basePath: "",
|
|
150
|
-
title: "Merge",
|
|
151
|
-
segments: [
|
|
152
|
-
seg({
|
|
153
|
-
segmentHash: "seg-hris-api",
|
|
154
|
-
product: defaultProduct,
|
|
155
|
-
metadata: { type: "apiReference", apiDefinitionId: "api-hris" }
|
|
156
|
-
}),
|
|
157
|
-
seg({
|
|
158
|
-
segmentHash: "seg-acct-api",
|
|
159
|
-
product: nonDefaultProduct,
|
|
160
|
-
metadata: { type: "apiReference", apiDefinitionId: "api-acct" }
|
|
161
|
-
})
|
|
162
|
-
],
|
|
163
|
-
navBySegment: new Map([
|
|
164
|
-
[
|
|
165
|
-
"seg-hris-api",
|
|
166
|
-
[
|
|
167
|
-
epRoute({
|
|
168
|
-
fullPath: "hris/list-employees",
|
|
169
|
-
title: "List Employees",
|
|
170
|
-
endpointId: "list-employees",
|
|
171
|
-
method: "GET",
|
|
172
|
-
apiDefinitionId: "api-hris"
|
|
173
|
-
})
|
|
174
|
-
]
|
|
175
|
-
],
|
|
176
|
-
[
|
|
177
|
-
"seg-acct-api",
|
|
178
|
-
[
|
|
179
|
-
epRoute({
|
|
180
|
-
fullPath: "accounting/list-accounts",
|
|
181
|
-
title: "List Accounts",
|
|
182
|
-
endpointId: "list-accounts",
|
|
183
|
-
method: "GET",
|
|
184
|
-
apiDefinitionId: "api-acct"
|
|
185
|
-
})
|
|
186
|
-
]
|
|
187
|
-
]
|
|
188
|
-
])
|
|
189
|
-
});
|
|
190
|
-
expect(findCanonicalSlug(root, "hris/list-employees")).toBeUndefined();
|
|
191
|
-
expect(findCanonicalSlug(root, "accounting/list-accounts")).toBeUndefined();
|
|
192
|
-
});
|
|
193
|
-
it("deduplicates shared pages across many products (Merge-like fan-out)", () => {
|
|
194
|
-
const productNames = ["hris", "accounting", "ats", "crm"];
|
|
195
|
-
const sharedPageId = "pg-rate-limits";
|
|
196
|
-
const products = productNames.map((name, i) => detail({
|
|
197
|
-
id: `p-${name}`,
|
|
198
|
-
name,
|
|
199
|
-
slug: name,
|
|
200
|
-
isDefault: i === 0,
|
|
201
|
-
pointsTo: `${name}/rate-limits`
|
|
202
|
-
}));
|
|
203
|
-
const segments = productNames.map((name, i) => seg({ segmentHash: `seg-${name}`, product: products[i] }));
|
|
204
|
-
const routes = productNames.map((name) => mdRoute({ fullPath: `${name}/rate-limits`, title: "Rate Limits", pageId: sharedPageId }));
|
|
205
|
-
const root = buildFullRootFromSegments({
|
|
206
|
-
basePath: "",
|
|
207
|
-
title: "Merge",
|
|
208
|
-
segments: segments,
|
|
209
|
-
navBySegment: new Map(productNames.map((name, i) => [`seg-${name}`, [routes[i]]]))
|
|
210
|
-
});
|
|
211
|
-
// Default product (hris): no canonicalSlug
|
|
212
|
-
expect(findCanonicalSlug(root, "hris/rate-limits")).toBeUndefined();
|
|
213
|
-
// All non-default products' shared pages point to the default
|
|
214
|
-
for (const name of productNames.slice(1)) {
|
|
215
|
-
expect(findCanonicalSlug(root, `${name}/rate-limits`)).toBe("hris/rate-limits");
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
it("leaves product-specific pages alone when shared pages are deduped", () => {
|
|
219
|
-
const defaultProduct = detail({
|
|
220
|
-
id: "p-hris",
|
|
221
|
-
name: "HRIS",
|
|
222
|
-
slug: "hris",
|
|
223
|
-
isDefault: true,
|
|
224
|
-
pointsTo: "hris/authentication"
|
|
225
|
-
});
|
|
226
|
-
const nonDefaultProduct = detail({
|
|
227
|
-
id: "p-accounting",
|
|
228
|
-
name: "Accounting",
|
|
229
|
-
slug: "accounting",
|
|
230
|
-
pointsTo: "accounting/authentication"
|
|
231
|
-
});
|
|
232
|
-
const root = buildFullRootFromSegments({
|
|
233
|
-
basePath: "",
|
|
234
|
-
title: "Merge",
|
|
235
|
-
segments: [
|
|
236
|
-
seg({ segmentHash: "seg-hris", product: defaultProduct }),
|
|
237
|
-
seg({ segmentHash: "seg-accounting", product: nonDefaultProduct })
|
|
238
|
-
],
|
|
239
|
-
navBySegment: new Map([
|
|
240
|
-
[
|
|
241
|
-
"seg-hris",
|
|
242
|
-
[
|
|
243
|
-
mdRoute({ fullPath: "hris/authentication", title: "Authentication", pageId: "pg-auth" }),
|
|
244
|
-
mdRoute({ fullPath: "hris/employee-guide", title: "Employee Guide", pageId: "pg-emp-guide" })
|
|
245
|
-
]
|
|
246
|
-
],
|
|
247
|
-
[
|
|
248
|
-
"seg-accounting",
|
|
249
|
-
[
|
|
250
|
-
mdRoute({ fullPath: "accounting/authentication", title: "Authentication", pageId: "pg-auth" }),
|
|
251
|
-
mdRoute({
|
|
252
|
-
fullPath: "accounting/invoice-guide",
|
|
253
|
-
title: "Invoice Guide",
|
|
254
|
-
pageId: "pg-inv-guide"
|
|
255
|
-
})
|
|
256
|
-
]
|
|
257
|
-
]
|
|
258
|
-
])
|
|
259
|
-
});
|
|
260
|
-
// Shared page in non-default product is deduped
|
|
261
|
-
expect(findCanonicalSlug(root, "accounting/authentication")).toBe("hris/authentication");
|
|
262
|
-
// Product-specific pages are untouched
|
|
263
|
-
expect(findCanonicalSlug(root, "hris/employee-guide")).toBeUndefined();
|
|
264
|
-
expect(findCanonicalSlug(root, "accounting/invoice-guide")).toBeUndefined();
|
|
265
|
-
});
|
|
266
|
-
});
|
|
267
|
-
//# sourceMappingURL=ledger-root-builder.crossProductDedup.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-root-builder.crossProductDedup.test.js","sourceRoot":"","sources":["../../../src/navigation/__test__/ledger-root-builder.crossProductDedup.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,KAAK,cAAc,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,SAAS,MAAM,CAAC,IAAwF;IACpG,OAAO;QACH,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,WAAW,EAAE,IAAI,CAAC,IAAI;QACtB,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,CAAC;QACZ,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,KAAK;QACf,YAAY,EAAE,EAAE;QAChB,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI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1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-root-builder.crossProductDedup.test.d.ts","sourceRoot":"","sources":["../../../../src/navigation/__test__/ledger-root-builder.crossProductDedup.test.ts"],"names":[],"mappings":""}
|