@puppi/adapter-posthog 0.0.0-stage → 0.1.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.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=openapi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,16 @@
1
+ /** Generated from openapi.json. Do not edit. */
2
+ import type { BodyOf, Operation, RequestOf } from "@puppi/sdk";
3
+ import type { operations as spec } from "./openapi.js";
4
+ export type Api = {
5
+ responses: {
6
+ users_retrieve: BodyOf<spec["users_retrieve"]>;
7
+ persons_list: BodyOf<spec["persons_list"]>;
8
+ insights_list: BodyOf<spec["insights_list"]>;
9
+ query_create: BodyOf<spec["query_create"]>;
10
+ };
11
+ requests: {
12
+ query_create: RequestOf<spec["query_create"]>;
13
+ };
14
+ };
15
+ export declare const operations: Record<keyof Api["responses"], Operation>;
16
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE/D,OAAO,KAAK,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,GAAG,GAAG;IAChB,SAAS,EAAE;QACT,cAAc,EAAE,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC/C,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;QAC3C,aAAa,EAAE,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC;QAC7C,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;KAC5C,CAAC;IACF,QAAQ,EAAE;QACR,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;KAC/C,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,WAAW,CAAC,EAAE,SAAS,CAwDhE,CAAC"}
@@ -0,0 +1,59 @@
1
+ /** Generated from openapi.json. Do not edit. */
2
+ export const operations = {
3
+ users_retrieve: {
4
+ method: "get",
5
+ path: "/api/users/{uuid}/",
6
+ query: [],
7
+ },
8
+ persons_list: {
9
+ method: "get",
10
+ path: "/api/projects/{project_id}/persons/",
11
+ query: [
12
+ "client_query_id",
13
+ "distinct_id",
14
+ "email",
15
+ "format",
16
+ "include_matched_fields",
17
+ "limit",
18
+ "offset",
19
+ "properties",
20
+ "search",
21
+ ],
22
+ },
23
+ insights_list: {
24
+ method: "get",
25
+ path: "/api/projects/{project_id}/insights/",
26
+ query: [
27
+ "basic",
28
+ "created_by",
29
+ "created_date_from",
30
+ "created_date_to",
31
+ "dashboards",
32
+ "date_from",
33
+ "date_to",
34
+ "display",
35
+ "exclude_bi",
36
+ "favorited",
37
+ "format",
38
+ "include_dashboards",
39
+ "insight",
40
+ "last_viewed_date_from",
41
+ "last_viewed_date_to",
42
+ "limit",
43
+ "offset",
44
+ "order",
45
+ "refresh",
46
+ "saved",
47
+ "search",
48
+ "short_id",
49
+ "tags",
50
+ "user",
51
+ ],
52
+ },
53
+ query_create: {
54
+ method: "post",
55
+ path: "/api/projects/{project_id}/query/",
56
+ query: [],
57
+ },
58
+ };
59
+ //# sourceMappingURL=operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAkBhD,MAAM,CAAC,MAAM,UAAU,GAA8C;IACnE,cAAc,EAAE;QACd,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,EAAE;KACV;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,qCAAqC;QAC3C,KAAK,EAAE;YACL,iBAAiB;YACjB,aAAa;YACb,OAAO;YACP,QAAQ;YACR,wBAAwB;YACxB,OAAO;YACP,QAAQ;YACR,YAAY;YACZ,QAAQ;SACT;KACF;IACD,aAAa,EAAE;QACb,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,sCAAsC;QAC5C,KAAK,EAAE;YACL,OAAO;YACP,YAAY;YACZ,mBAAmB;YACnB,iBAAiB;YACjB,YAAY;YACZ,WAAW;YACX,SAAS;YACT,SAAS;YACT,YAAY;YACZ,WAAW;YACX,QAAQ;YACR,oBAAoB;YACpB,SAAS;YACT,uBAAuB;YACvB,qBAAqB;YACrB,OAAO;YACP,QAAQ;YACR,OAAO;YACP,SAAS;YACT,OAAO;YACP,QAAQ;YACR,UAAU;YACV,MAAM;YACN,MAAM;SACP;KACF;IACD,YAAY,EAAE;QACZ,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,mCAAmC;QACzC,KAAK,EAAE,EAAE;KACV;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,50 @@
1
1
  {
2
2
  "name": "@puppi/adapter-posthog",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "Source connector for the PostHog API. The personal API key is sent as a bearer token.",
5
+ "homepage": "https://github.com/DashJump/puppi",
6
+ "bugs": {
7
+ "url": "https://github.com/DashJump/puppi/issues"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/DashJump/puppi.git",
13
+ "directory": "connectors/posthog"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "type": "module",
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./dist/index.d.ts",
25
+ "default": "./dist/index.js"
26
+ }
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
31
+ "dependencies": {
32
+ "@puppi/sdk": "0.4.0"
33
+ },
34
+ "devDependencies": {
35
+ "@puppi/conformance": "0.1.0",
36
+ "@types/node": "^26.6.5",
37
+ "openapi-typescript": "7.13.0",
38
+ "typescript": "^5.6.3",
39
+ "vite-plus": "1.7.0"
40
+ },
41
+ "engines": {
42
+ "node": ">=26"
43
+ },
44
+ "scripts": {
45
+ "generate": "openapi-typescript openapi.json -o src/openapi.ts --export-type --root-types --empty-objects-unknown --default-non-nullable=false && puppi-write-operations openapi.json src/operations.ts && vp fmt --write src/openapi.ts src/operations.ts",
46
+ "build": "tsc -p tsconfig.json",
47
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p test/tsconfig.json",
48
+ "test": "vp test run --config ../../vite.config.ts"
49
+ }
6
50
  }