@productcraft/rally 0.0.1
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.cjs +16 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1564 -0
- package/dist/index.d.ts +1564 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
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 Rally = class {
|
|
5
|
+
/** The underlying typed client. v0 surface — every endpoint reachable. */
|
|
6
|
+
client;
|
|
7
|
+
constructor(config = {}) {
|
|
8
|
+
this.client = makeClient(PC_BASE_URL.rally, config);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { Rally };
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AASO,IAAM,QAAN,MAAY;AAAA;AAAA,EAED,MAAA;AAAA,EAEhB,WAAA,CAAY,MAAA,GAAyB,EAAC,EAAG;AACvC,IAAA,IAAA,CAAK,MAAA,GAAS,UAAA,CAAkB,WAAA,CAAY,KAAA,EAAO,MAAM,CAAA;AAAA,EAC3D;AACF","file":"index.js","sourcesContent":["import type { paths } from \"./_generated.js\";\nimport { makeClient, PC_BASE_URL, type PCClientConfig } from \"@productcraft/core\";\n\n/**\n * Rally — typed `openapi-fetch` client for every endpoint in\n * `Specs/rally.json`. Reach for `client.GET(\"/v1/...\")` or\n * `client.POST(...)`; request / response types come from the\n * generated `paths` interface.\n */\nexport class Rally {\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.rally, config);\n }\n}\n\nexport type { paths } from \"./_generated.js\";\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@productcraft/rally",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Waitlists & growth experiments \u2014 collect signups and gate access via ProductCraft Rally. 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
|
+
"scripts": {
|
|
25
|
+
"build": "tsup"
|
|
26
|
+
},
|
|
27
|
+
"keywords": [
|
|
28
|
+
"productcraft",
|
|
29
|
+
"sdk",
|
|
30
|
+
"rally"
|
|
31
|
+
],
|
|
32
|
+
"author": "ProductCraft",
|
|
33
|
+
"license": "MIT",
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/clauderanelagh/productcraft-node.git",
|
|
37
|
+
"directory": "packages/rally"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/clauderanelagh/productcraft-node/tree/main/packages/rally",
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@productcraft/core": "workspace:^",
|
|
45
|
+
"openapi-fetch": "^0.13.0"
|
|
46
|
+
}
|
|
47
|
+
}
|