@productcraft/waitlist 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/dist/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import { makeClient, PC_BASE_URL } from '@productcraft/core';
2
+
3
+ // src/index.ts
4
+ var Waitlist = class {
5
+ /** The underlying typed client. v0 surface — every endpoint reachable. */
6
+ client;
7
+ constructor(config = {}) {
8
+ this.client = makeClient(PC_BASE_URL.waitlist, config);
9
+ }
10
+ };
11
+
12
+ export { Waitlist };
13
+ //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AASO,IAAM,WAAN,MAAe;AAAA;AAAA,EAEJ,MAAA;AAAA,EAEhB,WAAA,CAAY,MAAA,GAAyB,EAAC,EAAG;AACvC,IAAA,IAAA,CAAK,MAAA,GAAS,UAAA,CAAkB,WAAA,CAAY,QAAA,EAAU,MAAM,CAAA;AAAA,EAC9D;AACF","file":"index.js","sourcesContent":["import type { paths } from \"./_generated.js\";\nimport { makeClient, PC_BASE_URL, type PCClientConfig } from \"@productcraft/core\";\n\n/**\n * Waitlist — typed `openapi-fetch` client for every endpoint in\n * `Specs/waitlist.json`. Reach for `client.GET(\"/v1/...\")` or\n * `client.POST(...)`; request / response types come from the\n * generated `paths` interface.\n */\nexport class Waitlist {\n /** The underlying typed client. v0 surface — every endpoint reachable. */\n public readonly client: ReturnType<typeof makeClient<paths>>;\n\n constructor(config: PCClientConfig = {}) {\n this.client = makeClient<paths>(PC_BASE_URL.waitlist, config);\n }\n}\n\nexport type { paths } from \"./_generated.js\";\n"]}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@productcraft/waitlist",
3
+ "version": "0.1.0",
4
+ "description": "Waitlist management — public-form signups, variants for A/B/n landing pages, referrals, position + leaderboard, approval workflow with invite-to-app, signed outbound webhooks, CSV export. Generated from the production OpenAPI spec.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist/**",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "engines": {
22
+ "node": ">=18"
23
+ },
24
+ "keywords": [
25
+ "productcraft",
26
+ "sdk",
27
+ "waitlist"
28
+ ],
29
+ "author": "ProductCraft",
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/clauderanelagh/productcraft-node.git",
34
+ "directory": "packages/waitlist"
35
+ },
36
+ "homepage": "https://github.com/clauderanelagh/productcraft-node/tree/main/packages/waitlist",
37
+ "publishConfig": {
38
+ "access": "public"
39
+ },
40
+ "dependencies": {
41
+ "openapi-fetch": "^0.13.0",
42
+ "@productcraft/core": "^0.1.0"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup"
46
+ }
47
+ }