@boboddy/sdk 0.1.3-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/client.js +37 -9
- package/dist/definitions/steps/index.js +37 -9
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/sdk.gen.d.ts +10 -10
- package/dist/generated/types.gen.d.ts +1347 -47
- package/dist/index.js +37 -9
- package/package.json +2 -1
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
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
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
|
-
|
|
1014
|
+
upsertPipelineDefinition(options) {
|
|
1011
1015
|
return (options.client ?? this.client).put({
|
|
1012
|
-
url: "/api/linear-pipeline-definitions
|
|
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({
|
|
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({
|
|
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({
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@boboddy/sdk",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.4-alpha",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"generate": "openapi-ts",
|
|
50
50
|
"build": "bun run script/build.ts",
|
|
51
51
|
"link:local": "bun link",
|
|
52
|
+
"pack:local": "bun run script/pack-local.ts",
|
|
52
53
|
"test": "bun test test",
|
|
53
54
|
"typecheck": "tsgo -p tsconfig.json --noEmit"
|
|
54
55
|
},
|