@boboddy/sdk 0.1.2-alpha → 0.1.4-alpha

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 CHANGED
@@ -1002,14 +1002,18 @@ class PipelineDefinitions extends HeyApiClient {
1002
1002
  return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions", ...options });
1003
1003
  }
1004
1004
  createPipelineDefinition(options) {
1005
- return (options?.client ?? this.client).post({ url: "/api/linear-pipeline-definitions", ...options });
1006
- }
1007
- getPipelineDefinition(options) {
1008
- return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
1005
+ return (options.client ?? this.client).post({
1006
+ url: "/api/linear-pipeline-definitions",
1007
+ ...options,
1008
+ headers: {
1009
+ "Content-Type": "application/json",
1010
+ ...options.headers
1011
+ }
1012
+ });
1009
1013
  }
1010
- updatePipelineDefinition(options) {
1014
+ upsertPipelineDefinition(options) {
1011
1015
  return (options.client ?? this.client).put({
1012
- url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}",
1016
+ url: "/api/linear-pipeline-definitions",
1013
1017
  ...options,
1014
1018
  headers: {
1015
1019
  "Content-Type": "application/json",
@@ -1017,20 +1021,44 @@ class PipelineDefinitions extends HeyApiClient {
1017
1021
  }
1018
1022
  });
1019
1023
  }
1024
+ getPipelineDefinition(options) {
1025
+ return (options.client ?? this.client).get({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}", ...options });
1026
+ }
1020
1027
  archivePipelineDefinition(options) {
1021
1028
  return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive", ...options });
1022
1029
  }
1023
1030
  addPipelineStep(options) {
1024
- return (options.client ?? this.client).post({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps", ...options });
1031
+ return (options.client ?? this.client).post({
1032
+ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps",
1033
+ ...options,
1034
+ headers: {
1035
+ "Content-Type": "application/json",
1036
+ ...options.headers
1037
+ }
1038
+ });
1025
1039
  }
1026
1040
  removePipelineStep(options) {
1027
1041
  return (options.client ?? this.client).delete({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}", ...options });
1028
1042
  }
1029
1043
  updatePipelineStep(options) {
1030
- return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}", ...options });
1044
+ return (options.client ?? this.client).put({
1045
+ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}",
1046
+ ...options,
1047
+ headers: {
1048
+ "Content-Type": "application/json",
1049
+ ...options.headers
1050
+ }
1051
+ });
1031
1052
  }
1032
1053
  setPipelineStepAdvancementPolicy(options) {
1033
- return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}/advancement-policy", ...options });
1054
+ return (options.client ?? this.client).put({
1055
+ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps/{linearPipelineStepDefinitionId}/advancement-policy",
1056
+ ...options,
1057
+ headers: {
1058
+ "Content-Type": "application/json",
1059
+ ...options.headers
1060
+ }
1061
+ });
1034
1062
  }
1035
1063
  }
1036
1064
 
package/package.json CHANGED
@@ -1,56 +1,40 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@boboddy/sdk",
4
- "version": "0.1.2-alpha",
4
+ "version": "0.1.4-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "types": "./dist/index.d.ts",
9
- "bun": "./src/index.ts",
10
- "import": "./src/index.ts",
11
- "default": "./src/index.ts"
8
+ "import": "./dist/index.js",
9
+ "types": "./dist/index.d.ts"
12
10
  },
13
11
  "./client": {
14
- "types": "./dist/client.d.ts",
15
- "bun": "./src/client.ts",
16
- "import": "./src/client.ts",
17
- "default": "./src/client.ts"
12
+ "import": "./dist/client.js",
13
+ "types": "./dist/client.d.ts"
18
14
  },
19
15
  "./definitions/steps": {
20
- "types": "./dist/definitions/steps/index.d.ts",
21
- "bun": "./src/definitions/steps/index.ts",
22
- "import": "./src/definitions/steps/index.ts",
23
- "default": "./src/definitions/steps/index.ts"
16
+ "import": "./dist/definitions/steps/index.js",
17
+ "types": "./dist/definitions/steps/index.d.ts"
24
18
  },
25
19
  "./definitions/pipelines": {
26
- "types": "./dist/definitions/pipelines/index.d.ts",
27
- "bun": "./src/definitions/pipelines/index.ts",
28
- "import": "./src/definitions/pipelines/index.ts",
29
- "default": "./src/definitions/pipelines/index.ts"
20
+ "import": "./dist/definitions/pipelines/index.js",
21
+ "types": "./dist/definitions/pipelines/index.d.ts"
30
22
  },
31
23
  "./definitions/advancement-policies": {
32
- "types": "./dist/definitions/advancement-policies/index.d.ts",
33
- "bun": "./src/definitions/advancement-policies/index.ts",
34
- "import": "./src/definitions/advancement-policies/index.ts",
35
- "default": "./src/definitions/advancement-policies/index.ts"
24
+ "import": "./dist/definitions/advancement-policies/index.js",
25
+ "types": "./dist/definitions/advancement-policies/index.d.ts"
36
26
  },
37
27
  "./opencode-mcp": {
38
- "types": "./dist/opencode-mcp.d.ts",
39
- "bun": "./src/opencode-mcp.ts",
40
- "import": "./src/opencode-mcp.ts",
41
- "default": "./src/opencode-mcp.ts"
28
+ "import": "./dist/opencode-mcp.js",
29
+ "types": "./dist/opencode-mcp.d.ts"
42
30
  },
43
31
  "./jsonc": {
44
- "types": "./dist/jsonc.d.ts",
45
- "bun": "./src/jsonc.ts",
46
- "import": "./src/jsonc.ts",
47
- "default": "./src/jsonc.ts"
32
+ "import": "./dist/jsonc.js",
33
+ "types": "./dist/jsonc.d.ts"
48
34
  },
49
35
  "./boboddy-config-parser": {
50
- "types": "./dist/boboddy-config-parser.d.ts",
51
- "bun": "./src/boboddy-config-parser.ts",
52
- "import": "./src/boboddy-config-parser.ts",
53
- "default": "./src/boboddy-config-parser.ts"
36
+ "import": "./dist/boboddy-config-parser.js",
37
+ "types": "./dist/boboddy-config-parser.d.ts"
54
38
  }
55
39
  },
56
40
  "files": [
@@ -61,55 +45,11 @@
61
45
  "type": "git",
62
46
  "url": "https://github.com/connorivy/boboddy"
63
47
  },
64
- "publishConfig": {
65
- "access": "public",
66
- "exports": {
67
- ".": {
68
- "types": "./dist/index.d.ts",
69
- "import": "./dist/index.js",
70
- "default": "./dist/index.js"
71
- },
72
- "./client": {
73
- "types": "./dist/client.d.ts",
74
- "import": "./dist/client.js",
75
- "default": "./dist/client.js"
76
- },
77
- "./definitions/steps": {
78
- "types": "./dist/definitions/steps/index.d.ts",
79
- "import": "./dist/definitions/steps/index.js",
80
- "default": "./dist/definitions/steps/index.js"
81
- },
82
- "./definitions/pipelines": {
83
- "types": "./dist/definitions/pipelines/index.d.ts",
84
- "import": "./dist/definitions/pipelines/index.js",
85
- "default": "./dist/definitions/pipelines/index.js"
86
- },
87
- "./definitions/advancement-policies": {
88
- "types": "./dist/definitions/advancement-policies/index.d.ts",
89
- "import": "./dist/definitions/advancement-policies/index.js",
90
- "default": "./dist/definitions/advancement-policies/index.js"
91
- },
92
- "./opencode-mcp": {
93
- "types": "./dist/opencode-mcp.d.ts",
94
- "import": "./dist/opencode-mcp.js",
95
- "default": "./dist/opencode-mcp.js"
96
- },
97
- "./jsonc": {
98
- "types": "./dist/jsonc.d.ts",
99
- "import": "./dist/jsonc.js",
100
- "default": "./dist/jsonc.js"
101
- },
102
- "./boboddy-config-parser": {
103
- "types": "./dist/boboddy-config-parser.d.ts",
104
- "import": "./dist/boboddy-config-parser.js",
105
- "default": "./dist/boboddy-config-parser.js"
106
- }
107
- }
108
- },
109
48
  "scripts": {
110
49
  "generate": "openapi-ts",
111
50
  "build": "bun run script/build.ts",
112
- "declarations": "bun run script/declarations.ts",
51
+ "link:local": "bun link",
52
+ "pack:local": "bun run script/pack-local.ts",
113
53
  "test": "bun test test",
114
54
  "typecheck": "tsgo -p tsconfig.json --noEmit"
115
55
  },