@edirect/documentation 11.0.62 → 11.0.64

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 (43) hide show
  1. package/dist/README.md +197 -0
  2. package/dist/package.json +29 -0
  3. package/dist/src/documentation-root.controller.d.ts +16 -0
  4. package/dist/src/documentation-root.controller.d.ts.map +1 -0
  5. package/dist/src/documentation-root.controller.js +45 -0
  6. package/dist/src/documentation.constants.d.ts +14 -0
  7. package/dist/src/documentation.constants.d.ts.map +1 -0
  8. package/dist/src/documentation.constants.js +15 -0
  9. package/dist/src/documentation.controller.d.ts +29 -0
  10. package/dist/src/documentation.controller.d.ts.map +1 -0
  11. package/dist/src/documentation.controller.js +90 -0
  12. package/dist/src/documentation.module.d.ts +7 -0
  13. package/dist/src/documentation.module.d.ts.map +1 -0
  14. package/dist/src/documentation.module.js +52 -0
  15. package/dist/src/documentation.service.d.ts +39 -0
  16. package/dist/src/documentation.service.d.ts.map +1 -0
  17. package/dist/src/documentation.service.js +215 -0
  18. package/dist/src/documentation.viewer.d.ts +5 -0
  19. package/dist/src/documentation.viewer.d.ts.map +1 -0
  20. package/dist/src/documentation.viewer.js +27 -0
  21. package/dist/src/index.d.ts +4 -0
  22. package/dist/src/index.d.ts.map +1 -0
  23. package/dist/src/index.js +5 -0
  24. package/dist/src/renderers/index.d.ts +5 -0
  25. package/dist/src/renderers/index.d.ts.map +1 -0
  26. package/dist/src/renderers/index.js +18 -0
  27. package/dist/src/renderers/redoc.d.ts +7 -0
  28. package/dist/src/renderers/redoc.d.ts.map +1 -0
  29. package/dist/src/renderers/redoc.js +43 -0
  30. package/dist/src/renderers/scalar.d.ts +8 -0
  31. package/dist/src/renderers/scalar.d.ts.map +1 -0
  32. package/dist/src/renderers/scalar.js +32 -0
  33. package/dist/src/renderers/shared.d.ts +59 -0
  34. package/dist/src/renderers/shared.d.ts.map +1 -0
  35. package/dist/src/renderers/shared.js +235 -0
  36. package/dist/src/renderers/swagger-ui.d.ts +7 -0
  37. package/dist/src/renderers/swagger-ui.d.ts.map +1 -0
  38. package/dist/src/renderers/swagger-ui.js +32 -0
  39. package/dist/src/types/documentation.options.d.ts +101 -0
  40. package/dist/src/types/documentation.options.d.ts.map +1 -0
  41. package/dist/src/types/documentation.options.js +2 -0
  42. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  43. package/package.json +21 -3
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.appBar = exports.head = exports.BRAND = exports.escapeHtml = exports.CDN = void 0;
4
+ /**
5
+ * Pinned, integrity-checked CDN assets. Versions are fixed (not `latest`) so the docs
6
+ * cannot break from an upstream release, and SRI hashes prevent a compromised CDN from
7
+ * running arbitrary script in this same-origin page. Bump version + hash together.
8
+ */
9
+ exports.CDN = {
10
+ scalar: {
11
+ src: 'https://cdn.jsdelivr.net/npm/@scalar/api-reference@1.62.1',
12
+ integrity: 'sha384-PbtNjho0PH2QGB1/2Su//W99xhKoSNGumXARK4KrO/4daQHPSI4029R1KQtXcaw5',
13
+ },
14
+ redoc: {
15
+ src: 'https://cdn.jsdelivr.net/npm/redoc@2.5.3/bundles/redoc.standalone.js',
16
+ integrity: 'sha384-xiEssMQFSpSfLbzRZCGfxxIM5QDb2DTrU6vyoZdp2sV1L6pmOMy6MpTtUoLbpC96',
17
+ },
18
+ swaggerCss: {
19
+ href: 'https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.32.8/swagger-ui.css',
20
+ integrity: 'sha384-9Q2fpS+xeS4ffJy6CagnwoUl+4ldAYhOs9pgZuEKxypVModhmZFzeMlvVsAjf7uT',
21
+ },
22
+ swaggerJs: {
23
+ src: 'https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.32.8/swagger-ui-bundle.js',
24
+ integrity: 'sha384-IKpAWwsTL0pcw7/Amtnt2eXF4P1BK64WNuY2E/RG15SWLUW5HXzFuyqCSAr/DP8C',
25
+ },
26
+ };
27
+ const escapeHtml = (value) => value
28
+ .replace(/&/g, '&')
29
+ .replace(/</g, '&lt;')
30
+ .replace(/>/g, '&gt;')
31
+ .replace(/"/g, '&quot;')
32
+ .replace(/'/g, '&#x27;');
33
+ exports.escapeHtml = escapeHtml;
34
+ /** bolttech brand palette / assets, shared by every renderer. */
35
+ exports.BRAND = {
36
+ blueDark: '#170f4f',
37
+ blueLight: '#00bac7',
38
+ yellow: '#e3d900',
39
+ white: '#ffffff',
40
+ grayLight: '#e5e7eb',
41
+ favicon: 'https://www.datocms-assets.com/24091/1694514174-favicon-high-quality.png?w=32&h=32',
42
+ fontText: "'Roboto', sans-serif",
43
+ fontCode: "'Roboto Mono', monospace",
44
+ barHeight: '52px',
45
+ };
46
+ /** A filesystem-friendly download name like `messaging-service-v2.openapi.json`. */
47
+ const downloadName = (ctx) => {
48
+ const base = ctx.title
49
+ .toLowerCase()
50
+ .replace(/[^a-z0-9]+/g, '-')
51
+ .replace(/^-+|-+$/g, '');
52
+ return `${base || 'api'}-${ctx.currentSlug ?? 'spec'}.openapi.json`;
53
+ };
54
+ /**
55
+ * One slim, sticky app bar shared by every viewer: logo, contextual title, environment
56
+ * badge, version switch and spec download. Navy in light mode (frames the light document
57
+ * viewers); a deeper shade with outlined light controls in dark mode so it adapts to the
58
+ * dark canvas instead of glaring. The single piece of shared chrome across renderers.
59
+ * `accent` is the only brandable color (defaults to bolttech cyan).
60
+ */
61
+ const appBarStyle = (accent) => `
62
+ <style>
63
+ :root { --bt-bar-h: ${exports.BRAND.barHeight}; }
64
+ body { margin: 0; }
65
+ .bt-appbar {
66
+ position: sticky; top: 0; z-index: 2147483647;
67
+ box-sizing: border-box; height: var(--bt-bar-h);
68
+ display: flex; align-items: center; justify-content: space-between; gap: 16px;
69
+ padding: 0 20px; background: ${exports.BRAND.blueDark}; color: ${exports.BRAND.white};
70
+ font-family: ${exports.BRAND.fontText};
71
+ border-bottom: 2px solid ${accent};
72
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
73
+ transition: height 0.15s ease;
74
+ }
75
+ .bt-appbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
76
+ .bt-appbar__brand img { height: 24px; width: auto; display: block; transition: height 0.15s ease; }
77
+ /* compact-on-scroll: bar + logo shrink; --bt-bar-h is updated in JS so viewer offsets follow. */
78
+ .bt-appbar--compact .bt-appbar__brand img { height: 20px; }
79
+ .bt-brand-divider { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.2); flex: none; }
80
+ /* breadcrumb: muted workspace/domain, then the emphasized service title. */
81
+ .bt-crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-family: ${exports.BRAND.fontText}; }
82
+ .bt-workspace { font-size: 14px; font-weight: 500; color: #9698c4; white-space: nowrap; }
83
+ .bt-crumb-sep { color: #5b5d8a; font-size: 14px; }
84
+ .bt-appbar__title {
85
+ font-size: 14px; font-weight: 600; color: ${exports.BRAND.white};
86
+ white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
87
+ }
88
+ /* Right side split into an info group (env + version) and an actions group, with a divider. */
89
+ .bt-appbar__actions { display: flex; align-items: center; gap: 14px; }
90
+ .bt-group { display: flex; align-items: center; gap: 10px; }
91
+ .bt-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.18); }
92
+ /* env indicator: minimal label + square dot, color-coded per environment. */
93
+ .bt-badge {
94
+ display: inline-flex; align-items: center; gap: 7px;
95
+ font: 700 11px ${exports.BRAND.fontText}; text-transform: uppercase; letter-spacing: 0.06em;
96
+ color: #c9cae6;
97
+ }
98
+ .bt-badge:empty { display: none; }
99
+ .bt-badge::before { content: ''; width: 8px; height: 8px; background: ${accent}; }
100
+ .bt-badge[data-env='local']::before { background: #8e90b8; }
101
+ .bt-badge[data-env='staging']::before { background: #f5b301; }
102
+ .bt-badge[data-env='production']::before { background: #2fb67a; }
103
+ /* deprecated version warning tag (amber, rectangular). */
104
+ .bt-deprecated {
105
+ font: 700 11px ${exports.BRAND.fontText}; text-transform: uppercase; letter-spacing: 0.06em;
106
+ color: #2b2102; background: #f5b301; padding: 4px 9px;
107
+ }
108
+ /* subtle text link (support) — secondary to the button. */
109
+ .bt-link { color: #c9cae6; font: 600 13px ${exports.BRAND.fontText}; text-decoration: none; }
110
+ .bt-link:hover { color: ${exports.BRAND.white}; text-decoration: underline; }
111
+ /*
112
+ * bolttech button: white fill, navy text, navy border, sharp corners — the exact
113
+ * treatment of the site's "Get started" CTA. Shared by the version select and the
114
+ * spec download so the toolbar reads as one cohesive control group. Fixed height so
115
+ * badge, select and button share the same baseline.
116
+ */
117
+ .bt-version,
118
+ .bt-btn {
119
+ appearance: none; -webkit-appearance: none;
120
+ box-sizing: border-box; height: 32px;
121
+ display: inline-flex; align-items: center;
122
+ background-color: ${exports.BRAND.white}; color: ${exports.BRAND.blueDark};
123
+ font: 700 13px ${exports.BRAND.fontText};
124
+ border: 1.5px solid ${exports.BRAND.blueDark}; border-radius: 0;
125
+ cursor: pointer; text-decoration: none; transition: background-color 0.15s ease;
126
+ }
127
+ .bt-version:hover,
128
+ .bt-btn:hover { background-color: #eceef5; }
129
+ .bt-version {
130
+ padding: 0 30px 0 14px;
131
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23170f4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
132
+ background-repeat: no-repeat; background-position: right 11px center;
133
+ }
134
+ .bt-btn { gap: 6px; padding: 0 16px; }
135
+ .bt-appbar :focus-visible { outline: 2px solid ${exports.BRAND.yellow}; outline-offset: 2px; }
136
+ @media (max-width: 640px) {
137
+ .bt-brand-divider, .bt-crumb, .bt-link, .bt-divider { display: none; }
138
+ }
139
+ </style>`;
140
+ /** Shared <head> contents: charset/viewport, favicon, fonts, the app-bar styles, plus any per-renderer `extra`. */
141
+ const head = (ctx, extra = '') => `
142
+ <meta charset="utf-8" />
143
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
144
+ <meta name="robots" content="noindex, nofollow" />
145
+ <title>${(0, exports.escapeHtml)(ctx.title)}</title>
146
+ <link rel="icon" sizes="32x32" type="image/png" href="${exports.BRAND.favicon}" />
147
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
148
+ <link
149
+ href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Mono:wght@300;400;700&display=swap"
150
+ rel="stylesheet"
151
+ />
152
+ ${appBarStyle(ctx.accent)}${extra}`;
153
+ exports.head = head;
154
+ /** Resolves the environment label from the host at view time and color-codes the badge. */
155
+ const envScript = `
156
+ <script>
157
+ (function () {
158
+ var h = location.hostname, env = 'Production';
159
+ if (h === 'localhost' || h === '127.0.0.1') env = 'Local';
160
+ else if (/stag|rc-|\\.dev/.test(h)) env = 'Staging';
161
+ var el = document.getElementById('bt-env');
162
+ if (el) { el.textContent = env; el.dataset.env = env.toLowerCase(); }
163
+ })();
164
+ </script>`;
165
+ /** Shrinks the app bar (and the --bt-bar-h offset that viewers depend on) once scrolled. */
166
+ const scrollScript = `
167
+ <script>
168
+ (function () {
169
+ var bar = document.querySelector('.bt-appbar');
170
+ if (!bar) return;
171
+ var root = document.documentElement;
172
+ function sync() {
173
+ var compact = window.scrollY > 8;
174
+ bar.classList.toggle('bt-appbar--compact', compact);
175
+ root.style.setProperty('--bt-bar-h', compact ? '44px' : '52px');
176
+ }
177
+ window.addEventListener('scroll', sync, { passive: true });
178
+ sync();
179
+ })();
180
+ </script>`;
181
+ const versionField = (ctx) => {
182
+ if (ctx.specs.length <= 1)
183
+ return '';
184
+ const options = ctx.specs
185
+ .map((s) => `<option value="${(0, exports.escapeHtml)(s.slug)}" ${s.slug === ctx.currentSlug ? 'selected' : ''}>${(0, exports.escapeHtml)(s.label)}</option>`)
186
+ .join('');
187
+ return `<select class="bt-version" aria-label="API version" onchange="window.location.href='${(0, exports.escapeHtml)(ctx.basePath)}?spec=' + this.value">${options}</select>`;
188
+ };
189
+ /** An email becomes a `mailto:`; a URL is used as-is. */
190
+ const supportHref = (support) => /^https?:\/\//.test(support) ? support : `mailto:${support}`;
191
+ /** The shared bolttech app bar markup (logo + title + env badge + version + support + download). */
192
+ const appBar = (ctx) => {
193
+ const logo = ctx.logo
194
+ ? `<img src="${(0, exports.escapeHtml)(ctx.logo.url)}" alt="${(0, exports.escapeHtml)(ctx.logo.altText ?? 'logo')}" />`
195
+ : '';
196
+ const version = versionField(ctx);
197
+ const current = ctx.specs.find((s) => s.slug === ctx.currentSlug);
198
+ const deprecated = current?.deprecated
199
+ ? `<span class="bt-deprecated" role="status" title="This API version is deprecated">Deprecated</span>`
200
+ : '';
201
+ const env = `<span class="bt-badge" id="bt-env" role="status"></span>`;
202
+ const info = version
203
+ ? `${env}<span class="bt-divider" aria-hidden="true"></span>${version}${deprecated}`
204
+ : `${env}${deprecated}`;
205
+ const crumb = `${ctx.workspace
206
+ ? `<span class="bt-workspace">${(0, exports.escapeHtml)(ctx.workspace)}</span><span class="bt-crumb-sep" aria-hidden="true">/</span>`
207
+ : ''}<span class="bt-appbar__title">${(0, exports.escapeHtml)(ctx.title)}</span>`;
208
+ const support = ctx.support
209
+ ? `<a class="bt-link" href="${(0, exports.escapeHtml)(supportHref(ctx.support))}">Support</a>`
210
+ : '';
211
+ const download = ctx.specUrl
212
+ ? `<a class="bt-btn" href="${(0, exports.escapeHtml)(ctx.specUrl)}" download="${(0, exports.escapeHtml)(downloadName(ctx))}" aria-label="Download OpenAPI specification">&#x2913; Download OpenAPI</a>`
213
+ : '';
214
+ return `
215
+ <header class="bt-appbar">
216
+ <div class="bt-appbar__brand">
217
+ ${logo}
218
+ <span class="bt-brand-divider" aria-hidden="true"></span>
219
+ <span class="bt-crumb">${crumb}</span>
220
+ </div>
221
+ <div class="bt-appbar__actions">
222
+ <div class="bt-group">
223
+ ${info}
224
+ </div>
225
+ <span class="bt-divider" aria-hidden="true"></span>
226
+ <div class="bt-group">
227
+ ${support}
228
+ ${download}
229
+ </div>
230
+ </div>
231
+ </header>
232
+ ${envScript}
233
+ ${scrollScript}`;
234
+ };
235
+ exports.appBar = appBar;
@@ -0,0 +1,7 @@
1
+ import { ViewerContext } from './shared';
2
+ /**
3
+ * Swagger UI (document viewer): shared app bar replaces its native top bar; brand colors
4
+ * on operations (light only).
5
+ */
6
+ export declare const swaggerUiHtml: (ctx: ViewerContext) => string;
7
+ //# sourceMappingURL=swagger-ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swagger-ui.d.ts","sourceRoot":"","sources":["../../../src/renderers/swagger-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwC,aAAa,EAAE,MAAM,UAAU,CAAC;AAE/E;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,aAAa,KAAG,MAyB3C,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.swaggerUiHtml = void 0;
4
+ const shared_1 = require("./shared");
5
+ /**
6
+ * Swagger UI (document viewer): shared app bar replaces its native top bar; brand colors
7
+ * on operations (light only).
8
+ */
9
+ const swaggerUiHtml = (ctx) => `<!doctype html>
10
+ <html lang="en">
11
+ <head>
12
+ ${(0, shared_1.head)(ctx, `<link rel="stylesheet" href="${shared_1.CDN.swaggerCss.href}" integrity="${shared_1.CDN.swaggerCss.integrity}" crossorigin="anonymous" />
13
+ <style>
14
+ body, .swagger-ui { font-family: ${shared_1.BRAND.fontText}; }
15
+ .swagger-ui .topbar { display: none; }
16
+ .swagger-ui .info { margin: 24px 0; }
17
+ .swagger-ui .info .title { color: ${shared_1.BRAND.blueDark}; }
18
+ .swagger-ui .opblock.opblock-post .opblock-summary-method { background: ${ctx.accent}; }
19
+ .swagger-ui .btn.authorize { color: ${shared_1.BRAND.blueDark}; border-color: ${ctx.accent}; }
20
+ .swagger-ui .btn.authorize svg { fill: ${shared_1.BRAND.blueDark}; }
21
+ </style>`)}
22
+ </head>
23
+ <body>
24
+ ${(0, shared_1.appBar)(ctx)}
25
+ <div id="swagger-ui"></div>
26
+ <script src="${shared_1.CDN.swaggerJs.src}" integrity="${shared_1.CDN.swaggerJs.integrity}" crossorigin="anonymous"></script>
27
+ <script>
28
+ window.ui = SwaggerUIBundle({ url: '${(0, shared_1.escapeHtml)(ctx.specUrl)}', dom_id: '#swagger-ui' });
29
+ </script>
30
+ </body>
31
+ </html>`;
32
+ exports.swaggerUiHtml = swaggerUiHtml;
@@ -0,0 +1,101 @@
1
+ import { DocumentBuilder, OpenAPIObject } from '@nestjs/swagger';
2
+ export type DocumentRenderer = 'scalar' | 'redoc' | 'swagger-ui';
3
+ /**
4
+ * How the application root (`/`) behaves:
5
+ * - `off` (default): the module does not register `/` at all, so installing it never
6
+ * affects a service's own root route.
7
+ * - `redirect`: 302 from `/` to the documentation viewer.
8
+ * - `serve`: render the viewer directly at `/`.
9
+ */
10
+ export type RootBehavior = 'serve' | 'redirect' | 'off';
11
+ /** An OpenAPI document, or a (possibly async) factory that resolves one lazily. */
12
+ export type DocumentSource = OpenAPIObject | (() => OpenAPIObject | Promise<OpenAPIObject>);
13
+ /**
14
+ * Declarative definition of an API version. The document is generated lazily from
15
+ * the bound application — no per-version wiring in `main.ts` is required.
16
+ */
17
+ export interface DocumentationVersionOptions {
18
+ /** Stable identifier used in the spec URL (e.g. `v2` → `/docs/spec/v2`). */
19
+ slug: string;
20
+ label?: string;
21
+ description?: string;
22
+ version?: string;
23
+ order?: number;
24
+ isDefault?: boolean;
25
+ enabled?: boolean;
26
+ /** Marks the version as deprecated (shown with a badge in the viewer). */
27
+ deprecated?: boolean;
28
+ /** Keep only routes whose path starts with one of these prefixes. */
29
+ paths?: string[];
30
+ /** Restrict generation to the given Nest modules (passed to SwaggerModule). */
31
+ include?: unknown[];
32
+ /** Hook to customize the OpenAPI metadata (servers, security, info) for this version. */
33
+ configure?: (builder: DocumentBuilder) => void;
34
+ }
35
+ /** Pre-built spec, registered as-is (escape hatch for non-version sources). */
36
+ export interface DocumentationSpec {
37
+ slug: string;
38
+ label?: string;
39
+ description?: string;
40
+ version?: string;
41
+ order?: number;
42
+ isDefault?: boolean;
43
+ enabled?: boolean;
44
+ deprecated?: boolean;
45
+ document: DocumentSource;
46
+ }
47
+ export interface DocumentationModuleOptions {
48
+ /** Master switch. Set `false` to disable the docs entirely (e.g. in production). Defaults to `true`. */
49
+ enabled?: boolean;
50
+ /** Support contact (email or URL) shown in the header. Omitted when not set. */
51
+ support?: string;
52
+ /** Page title shown in the viewer and used as the OpenAPI `info.title`. */
53
+ title?: string;
54
+ /**
55
+ * Owning workspace/domain shown before the title in the header breadcrumb
56
+ * (e.g. `Shared Services`). Each domain can set its own; omitted = title only.
57
+ */
58
+ workspace?: string;
59
+ description?: string;
60
+ version?: string;
61
+ /** Viewer to render the documentation with. Defaults to `scalar`. */
62
+ renderer?: DocumentRenderer;
63
+ /** Root (`/`) behavior. Defaults to `redirect`. */
64
+ root?: RootBehavior;
65
+ /** Adds a bearer security scheme to every generated version. Defaults to `true`. */
66
+ bearerAuth?: boolean;
67
+ /** Servers advertised in every generated version. */
68
+ servers?: string[];
69
+ /** Brand logo shown in the header. */
70
+ logo?: {
71
+ url: string;
72
+ altText?: string;
73
+ };
74
+ /** Brand customization. `accent` overrides the default bolttech cyan across the viewer. */
75
+ brand?: {
76
+ accent?: string;
77
+ };
78
+ /** Declarative API versions, generated lazily from the bound app. */
79
+ versions?: DocumentationVersionOptions[];
80
+ /** Pre-built specs registered as-is. */
81
+ specs?: DocumentationSpec[];
82
+ }
83
+ export interface DocumentationModuleAsyncOptions {
84
+ imports?: any[];
85
+ inject?: any[];
86
+ useFactory: (...args: any[]) => DocumentationModuleOptions | Promise<DocumentationModuleOptions>;
87
+ /**
88
+ * Mount the root (`/`) handler. Required for `root: 'redirect' | 'serve'` to take effect
89
+ * with async options, since the resolved `root` value is unknown at module build time.
90
+ */
91
+ mountRoot?: boolean;
92
+ }
93
+ export interface SpecSummary {
94
+ slug: string;
95
+ label: string;
96
+ description?: string;
97
+ version?: string;
98
+ isDefault: boolean;
99
+ deprecated: boolean;
100
+ }
101
+ //# sourceMappingURL=documentation.options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentation.options.d.ts","sourceRoot":"","sources":["../../../src/types/documentation.options.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ {"version":"5.9.3"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@edirect/documentation",
3
- "version": "11.0.62",
3
+ "version": "11.0.64",
4
+ "packageScope": "@edirect",
4
5
  "main": "./dist/src/index.js",
5
6
  "types": "./dist/src/index.d.ts",
6
7
  "exports": {
@@ -22,8 +23,25 @@
22
23
  "tslib": "^2.8.1"
23
24
  },
24
25
  "devDependencies": {
26
+ "@nestjs/core": "11.2.1",
25
27
  "@types/express": "^5.0.6",
26
28
  "@types/node": "^26.2.0"
27
29
  },
28
- "type": "commonjs"
29
- }
30
+ "nx": {
31
+ "name": "@edirect/documentation",
32
+ "targets": {
33
+ "build": {
34
+ "executor": "@nx/js:tsc",
35
+ "options": {
36
+ "main": "{workspaceRoot}/packages/edirect-documentation/src/index.ts",
37
+ "tsConfig": "{workspaceRoot}/packages/edirect-documentation/tsconfig.lib.json",
38
+ "outputPath": "{workspaceRoot}/packages/edirect-documentation/dist",
39
+ "assets": [
40
+ "{workspaceRoot}/packages/edirect-documentation/package.json",
41
+ "{workspaceRoot}/packages/edirect-documentation/README.md"
42
+ ]
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }