@crvouga/mockingbird-service-payload-cms 0.2.0 → 1.0.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/CHANGELOG.md +11 -1
- package/dist/{chunk-CMLKVFH4.js → chunk-H7RCZWGO.js} +2 -2
- package/dist/{chunk-Q2QUEFCG.js → chunk-XIEAPJEE.js} +5 -5
- package/dist/{chunk-Q2QUEFCG.js.map → chunk-XIEAPJEE.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +6 -2
- /package/dist/{chunk-CMLKVFH4.js.map → chunk-H7RCZWGO.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-payload-cms
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 1.0.0 (2026-09-24)
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking changes
|
|
6
|
+
|
|
7
|
+
- vendor branding for every service; purge internal mocks and consumer names ([f689534](https://github.com/crvouga/mockingbird/commit/f6895343543550dafcb7d76b426cae7635e03226))
|
|
8
|
+
|
|
9
|
+
### Dependencies
|
|
10
|
+
|
|
11
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
12
|
+
|
|
13
|
+
## 0.2.0 (2026-09-23)
|
|
4
14
|
|
|
5
15
|
### Features
|
|
6
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRuntime
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XIEAPJEE.js";
|
|
4
4
|
|
|
5
5
|
// src/server.ts
|
|
6
6
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
@@ -347,4 +347,4 @@ export {
|
|
|
347
347
|
createServer2 as createServer,
|
|
348
348
|
serveTarget
|
|
349
349
|
};
|
|
350
|
-
//# sourceMappingURL=chunk-
|
|
350
|
+
//# sourceMappingURL=chunk-H7RCZWGO.js.map
|
|
@@ -1295,7 +1295,7 @@ var restoreNamespace = (sqlite, namespace, snapshot) => {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
|
|
1297
1297
|
// ../core/dist/version.js
|
|
1298
|
-
var PACKAGE_VERSION = true ? "0.
|
|
1298
|
+
var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
|
|
1299
1299
|
|
|
1300
1300
|
// ../core/dist/webhooks.js
|
|
1301
1301
|
var json2 = (status, body) => new Response(JSON.stringify(body), { status, headers: { "content-type": "application/json" } });
|
|
@@ -1956,7 +1956,7 @@ var presetRoutes = (presets, runtime) => ({
|
|
|
1956
1956
|
});
|
|
1957
1957
|
|
|
1958
1958
|
// src/generated/openapi.ts
|
|
1959
|
-
var document = JSON.parse(`{"openapi":"3.1.0","info":{"title":"Payload CMS REST API (Mockingbird subset)","description":"Stateful mock subset of Payload CMS's auto-generated collection REST API: find documents\\n(with a \`where\` query subset, \`limit\`, \`page\`, \`sort\`) and find one by id. Hand-authored\\nfrom Payload's REST API docs and the consumer's response type (payload-cms-response.type.ts).\\n","version":"2","x-mockingbird-upstream":{"note":"Shapes from https://payloadcms.com/docs/rest-api/overview and https://payloadcms.com/docs/queries/overview; the consumer is apps/backend/src/modules/cms/payload-cms/payload-cms.service.ts."}},"servers":[{"url":"https://payload.
|
|
1959
|
+
var document = JSON.parse(`{"openapi":"3.1.0","info":{"title":"Payload CMS REST API (Mockingbird subset)","description":"Stateful mock subset of Payload CMS's auto-generated collection REST API: find documents\\n(with a \`where\` query subset, \`limit\`, \`page\`, \`sort\`) and find one by id. Hand-authored\\nfrom Payload's REST API docs and the consumer's response type (payload-cms-response.type.ts).\\n","version":"2","x-mockingbird-upstream":{"note":"Shapes from https://payloadcms.com/docs/rest-api/overview and https://payloadcms.com/docs/queries/overview; the consumer is apps/backend/src/modules/cms/payload-cms/payload-cms.service.ts."}},"servers":[{"url":"https://payload.acme.example"}],"paths":{"/api/{collection}":{"parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","enum":["marketing"]}}],"get":{"operationId":"FindDocuments","description":"Paginated find. \`where[<field>][<operator>]=<value>\` supports equals, not_equals, in, not_in, exists, greater_than(_equal), less_than(_equal), like, contains, and nested \`where[and|or][<i>]\u2026\`. Only the consumer's filters are declared here for parity walks.","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"parameters":[{"name":"where[type][equals]","in":"query","required":false,"schema":{"type":"string","enum":["referral","banner","email"]}},{"name":"where[isActive][equals]","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","enum":["createdAt","-createdAt","name","-name","id","-id"]}}],"responses":{"200":{"description":"A page of documents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedDocs"}}}},"400":{"description":"Invalid query","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Errors"}}}},"404":{"description":"Unknown collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Errors"}}}}}}},"/api/{collection}/{id}":{"parameters":[{"name":"collection","in":"path","required":true,"schema":{"type":"string","enum":["marketing"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","description":"The seeded documents are 1-3; anything else is a 404.","pattern":"^[1-5]$"}}],"get":{"operationId":"FindDocumentById","x-mockingbird":{"supported":true,"parity":{"enabled":true,"safe":true}},"responses":{"200":{"description":"The document","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketingDoc"}}}},"404":{"description":"Unknown document or collection","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Errors"}}}}}}}},"components":{"schemas":{"MarketingDoc":{"type":"object","required":["id","name","type","createdAt","updatedAt"],"properties":{"id":{"type":"integer","description":"Integer ids, as Payload's Postgres adapter issues them (the consumer types \`id\` as a number)."},"name":{"type":"string"},"type":{"type":"string","enum":["referral","banner","email"]},"isActive":{"type":"boolean"},"cardTitle":{"type":["string","null"]},"cardSubtitle":{"type":["string","null"]},"cardDescription":{"type":["string","null"]},"ctaTitle":{"type":["string","null"]},"ctaActionText":{"type":["string","null"]},"shareMessage":{"type":["string","null"]},"createdAt":{"type":"string","x-mockingbird-volatile":{"kind":"timestamp"}},"updatedAt":{"type":"string","x-mockingbird-volatile":{"kind":"timestamp"}}}},"PaginatedDocs":{"type":"object","required":["docs","totalDocs","limit","totalPages","page","pagingCounter","hasPrevPage","hasNextPage","prevPage","nextPage"],"properties":{"docs":{"type":"array","items":{"$ref":"#/components/schemas/MarketingDoc"}},"totalDocs":{"type":"integer"},"limit":{"type":"integer"},"totalPages":{"type":"integer"},"page":{"type":"integer"},"pagingCounter":{"type":"integer"},"hasPrevPage":{"type":"boolean"},"hasNextPage":{"type":"boolean"},"prevPage":{"type":["integer","null"]},"nextPage":{"type":["integer","null"]}}},"Errors":{"type":"object","required":["errors"],"properties":{"errors":{"type":"array","items":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}}}}}`);
|
|
1960
1960
|
var operationIds = ["FindDocuments", "FindDocumentById"];
|
|
1961
1961
|
var supportedOperationIds = ["FindDocuments", "FindDocumentById"];
|
|
1962
1962
|
|
|
@@ -1998,9 +1998,9 @@ var DEFAULT_MARKETING_DOCS = [
|
|
|
1998
1998
|
cardTitle: "Give $150, Get Rewarded",
|
|
1999
1999
|
cardSubtitle: "Refer a friend",
|
|
2000
2000
|
cardDescription: "Share your link. Friends get $150 off their membership.",
|
|
2001
|
-
ctaTitle: "Share
|
|
2001
|
+
ctaTitle: "Share Acme With Someone You Love",
|
|
2002
2002
|
ctaActionText: "Invite Friends",
|
|
2003
|
-
shareMessage: "Join me on
|
|
2003
|
+
shareMessage: "Join me on Acme and get $150 off your membership.",
|
|
2004
2004
|
createdAt: "2026-06-01T00:00:00.000Z",
|
|
2005
2005
|
updatedAt: "2026-06-01T00:00:00.000Z"
|
|
2006
2006
|
},
|
|
@@ -2426,4 +2426,4 @@ export {
|
|
|
2426
2426
|
compileWhere,
|
|
2427
2427
|
PayloadCmsAPI
|
|
2428
2428
|
};
|
|
2429
|
-
//# sourceMappingURL=chunk-
|
|
2429
|
+
//# sourceMappingURL=chunk-XIEAPJEE.js.map
|