@lunch-money/developer-docs 2.11.1-preview.2 → 2.11.1-preview.3

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/README.md CHANGED
@@ -1,24 +1,65 @@
1
1
  # @lunch-money/developer-docs
2
2
 
3
- Developer documentation content for Lunch Money APIs.
3
+ Documentation content for the [Lunch Money](https://lunchmoney.app) developer APIs
4
+ the guides, v1/v2 reference docs, images, and doc-routing manifest that power the
5
+ [Lunch Money developer portal](https://lunchmoney.dev).
4
6
 
5
- This package ships the public `developer-docs` repository content directories at the package root:
7
+ Most API consumers want the OpenAPI spec instead: **[`@lunch-money/v2-api-spec`](https://www.npmjs.com/package/@lunch-money/v2-api-spec)**
8
+ is the canonical machine-readable API contract. This package is the human-facing docs
9
+ content, primarily for the docs server that renders the portal.
6
10
 
7
- - `docs/`
8
- - `v1/`
9
- - `v2/`
10
- - `manifest.json`
11
+ ## What's in the package
11
12
 
12
- The package version tracks the newest API version documented by this content. Server consumers should pin this package explicitly and resolve the package root with:
13
+ Shipped verbatim at the package root:
14
+
15
+ - `docs/` — version-independent guides (getting started, pagination, rate limiting, …)
16
+ - `v1/` — v1 API reference markdown
17
+ - `v2/` — v2 guides, images, and a **convenience copy** of the OpenAPI YAML under
18
+ `v2/spec/` (non-canonical; the canonical spec is `@lunch-money/v2-api-spec`)
19
+ - `manifest.json` — doc routes, redirects, and sidebar structure
20
+
21
+ ## Consuming the content
22
+
23
+ Resolve the package root, then read content files relative to it:
13
24
 
14
25
  ```js
26
+ const path = require('path');
27
+ const fs = require('fs');
28
+
15
29
  const docsRoot = path.dirname(require.resolve('@lunch-money/developer-docs/package.json'));
30
+ const intro = fs.readFileSync(path.join(docsRoot, 'docs/getting-started.md'), 'utf8');
16
31
  ```
17
32
 
18
- The OpenAPI YAML under `v2/spec/` is included as a convenience copy because the docs tree is shipped verbatim. The canonical v2 API specification package is `@lunch-money/v2-api-spec`.
33
+ `manifest.json` describes every page the docs server renders:
34
+
35
+ ```jsonc
36
+ {
37
+ "pages": [
38
+ {
39
+ "path": "/amounts-and-balances", // canonical URL
40
+ "file": "docs/amounts-and-balances.md", // path within this package
41
+ "title": "Amounts & Balances",
42
+ "section": "GUIDES", // sidebar grouping
43
+ "type": "markdown", // "markdown" | "html" | "v1-slate"
44
+ "aliases": ["/v2/amounts-and-balances"] // legacy URLs → 301 to path
45
+ }
46
+ ],
47
+ "redirects": [ /* { from, to, status } */ ],
48
+ "sidebar": { "docs": [ /* … */ ], "v1": [ /* … */ ] }
49
+ }
50
+ ```
51
+
52
+ ## Versioning
53
+
54
+ The package version tracks the newest API version this content documents (e.g. `2.11.x`
55
+ documents the v2.11 API). Pin an exact version in server deployments so docs are
56
+ deterministic.
19
57
 
20
- ## Updating Routes and Sidebar
58
+ ## Contributing
21
59
 
22
- The docs server reads `manifest.json` from the package root. When adding or moving a documentation page, update the content file and add a matching manifest entry with `path`, `file`, `title`, `section`, and `type`.
60
+ Guides, spec, and the routing manifest are edited in the public
61
+ [`developer-docs` repository](https://github.com/lunch-money/developer-docs) — see its
62
+ README for how to add or move a page. This npm package is a published build of that
63
+ content.
23
64
 
24
- Run `npm run pack:docs` from the repository root before publishing. The package validates the manifest during `prepack` and fails if paths collide, aliases are duplicated, or referenced files are missing.
65
+ _ISC licensed._
@@ -2,10 +2,6 @@
2
2
 
3
3
  Welcome to the Lunch Money developer documentation. This site covers the **v2 API** — the current generation of the Lunch Money API — along with guides, a reference for the legacy v1 API, and tools for exploring the API without touching real data.
4
4
 
5
- > [!WARNING]
6
- > Alpha Release
7
- > The v2 API is in open alpha. It is subject to change during this review period and bugs may exist. We strongly encourage using the [mock service](#trying-the-api-without-real-data) or a test budget with sample data as your first step.
8
-
9
5
  ## Getting Started
10
6
 
11
7
  The v2 API is available at:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunch-money/developer-docs",
3
- "version": "2.11.1-preview.2",
3
+ "version": "2.11.1-preview.3",
4
4
  "description": "Developer documentation content for Lunch Money APIs",
5
5
  "exports": {
6
6
  ".": "./package.json",
@@ -2,11 +2,13 @@ openapi: 3.0.2
2
2
  info:
3
3
  title: Lunch Money API - v2
4
4
  description: |-
5
+ Welcome to the Lunch Money v2 API reference. This is the **v2.11.1** spec.
6
+
5
7
  ### Introduction
6
8
 
7
- The API is available at `https://api.lunchmoney.dev/v2`. Get your access token from the [Lunch Money developers page](https://my.lunchmoney.app/developers).
9
+ The API is available at `https://lunchmoney.dev/v2`. Get your access token from the [Lunch Money developers page](https://my.lunchmoney.app/developers).
8
10
 
9
- <span class="red-text"><strong>The v2 API is in open alpha and is still subject to change. Use the mock server or a test budget when getting started.</strong></span>
11
+ API calls can <span class="red-text"><strong>change or delete</strong></span> your data. Any changes you make are <span class="red-text"><strong>permanent</strong></span>, just like they would be if you made changes using the web or mobile app. Please refer to the [Getting Started Guide](https://lunchmoney.dev/v2/getting-started) before using the API.
10
12
 
11
13
  **Static Mock Server**
12
14
 
@@ -18,15 +20,15 @@ info:
18
20
 
19
21
  **Migrating from v1**
20
22
 
21
- The v2 API is not backwards compatible with v1. See the [Migration Guide](https://alpha.lunchmoney.dev/v2/migration-guide) for details.
23
+ The v2 API is not backwards compatible with v1. See the [Migration Guide](https://lunchmoney.dev/v2/migration-guide) for details.
22
24
 
23
25
  **Useful links**
24
- - [Developer Portal](https://alpha.lunchmoney.dev/v2/introduction)
25
- - [Getting Started Guide](https://alpha.lunchmoney.dev/v2/getting-started)
26
- - [v2 API Overview](https://alpha.lunchmoney.dev/v2/overview)
27
- - [Version History](https://alpha.lunchmoney.dev/v2/version-history)
28
- - [Migration Guide](https://alpha.lunchmoney.dev/v2/migration-guide)
29
- - [Rate Limits](https://alpha.lunchmoney.dev/v2/rate-limits)
26
+ - [Developer Portal](https://lunchmoney.dev/v2/introduction)
27
+ - [Getting Started Guide](https://lunchmoney.dev/v2/getting-started)
28
+ - [v2 API Overview](https://lunchmoney.dev/v2/overview)
29
+ - [Version History](https://lunchmoney.dev/v2/version-history)
30
+ - [Migration Guide](https://lunchmoney.dev/v2/migration-guide)
31
+ - [Rate Limits](https://lunchmoney.dev/v2/rate-limits)
30
32
  termsOfService: https://lunchmoney.dev/#current-status
31
33
  contact:
32
34
  email: devsupport@lunchmoney.app
@@ -38,8 +40,8 @@ info:
38
40
  servers:
39
41
  - url: https://api.lunchmoney.dev/v2
40
42
  description: v2 Lunch Money API Server - changes will affect real data!
41
- # - url: https://mock.lunchmoney.dev/v2
42
- - url: https://lm-v2-api-next-a7fabcab8e9a.herokuapp.com/v2/
43
+ # - url: https://lunchmoney.dev/v2
44
+ - url: https://lunchmoney.dev/v2
43
45
  description: Static mock version of the v2 Lunch Money API Server
44
46
 
45
47
  tags:
@@ -2940,7 +2942,7 @@ components:
2940
2942
  currency:
2941
2943
  description: Three-letter lowercase currency code of the transaction
2942
2944
  in ISO 4217 format. Must match one of the [supported
2943
- currencies](https://lm-v2-api-next-a7fabcab8e9a.herokuapp.com/v2/currencies). If not set
2945
+ currencies](https://lunchmoney.dev/v2/currencies). If not set
2944
2946
  defaults to the user account's primary currency.
2945
2947
  allOf:
2946
2948
  - $ref: "#/components/schemas/currencyEnum"
@@ -9097,19 +9099,19 @@ paths:
9097
9099
  description: Sets the maximum number of transactions to return. If
9098
9100
  more match the filter criteria, the response will include a
9099
9101
  `has_more` attribute set to `true`. See
9100
- [Pagination](https://lm-v2-api-next-a7fabcab8e9a.herokuapp.com/v2/pagination)
9102
+ [Pagination](https://lunchmoney.dev/v2/pagination)
9101
9103
  - name: offset
9102
9104
  in: query
9103
9105
  schema:
9104
9106
  type: integer
9105
9107
  description: Sets the offset for the records returned. This is
9106
9108
  typically set automatically in the header. See
9107
- [Pagination](https://lm-v2-api-next-a7fabcab8e9a.herokuapp.com/v2/pagination)
9109
+ [Pagination](https://lunchmoney.dev/v2/pagination)
9108
9110
  responses:
9109
9111
  "200":
9110
9112
  description: Returns an array of transactions. <br><br>The `has_more`
9111
9113
  property is set to `true` if more transactions are available. See
9112
- [Pagination](https://lm-v2-api-next-a7fabcab8e9a.herokuapp.com/v2/pagination)
9114
+ [Pagination](https://lunchmoney.dev/v2/pagination)
9113
9115
  content:
9114
9116
  application/json:
9115
9117
  schema: