@boboddy/sdk 0.1.12-alpha → 0.1.14-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 +61 -22
- package/dist/definitions/pipelines/index.js +1361 -33
- package/dist/definitions/pipelines/pipeline-definitions-client.d.ts +235 -44
- package/dist/definitions/steps/index.js +66 -25
- package/dist/definitions/steps/step-definitions-client.d.ts +9 -3
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/sdk.gen.d.ts +23 -11
- package/dist/generated/types.gen.d.ts +2002 -1291
- package/dist/index.js +125 -63
- package/package.json +2 -2
package/dist/client.js
CHANGED
|
@@ -839,29 +839,38 @@ class HeyApiRegistry {
|
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
class Api extends HeyApiClient {
|
|
842
|
-
"
|
|
843
|
-
return (options?.client ?? this.client).delete({ url: "/api/
|
|
842
|
+
"allApiAuth*"(options) {
|
|
843
|
+
return (options?.client ?? this.client).delete({ url: "/api/auth/*", ...options });
|
|
844
844
|
}
|
|
845
|
-
"
|
|
846
|
-
return (options?.client ?? this.client).get({ url: "/api/
|
|
845
|
+
"allApiAuth*2"(options) {
|
|
846
|
+
return (options?.client ?? this.client).get({ url: "/api/auth/*", ...options });
|
|
847
847
|
}
|
|
848
|
-
"
|
|
849
|
-
return (options?.client ?? this.client).head({ url: "/api/
|
|
848
|
+
"allApiAuth*3"(options) {
|
|
849
|
+
return (options?.client ?? this.client).head({ url: "/api/auth/*", ...options });
|
|
850
850
|
}
|
|
851
|
-
"
|
|
852
|
-
return (options?.client ?? this.client).options({ url: "/api/
|
|
851
|
+
"allApiAuth*4"(options) {
|
|
852
|
+
return (options?.client ?? this.client).options({ url: "/api/auth/*", ...options });
|
|
853
853
|
}
|
|
854
|
-
"
|
|
855
|
-
return (options?.client ?? this.client).patch({ url: "/api/
|
|
854
|
+
"allApiAuth*5"(options) {
|
|
855
|
+
return (options?.client ?? this.client).patch({ url: "/api/auth/*", ...options });
|
|
856
856
|
}
|
|
857
|
-
"
|
|
858
|
-
return (options?.client ?? this.client).post({ url: "/api/
|
|
857
|
+
"allApiAuth*6"(options) {
|
|
858
|
+
return (options?.client ?? this.client).post({ url: "/api/auth/*", ...options });
|
|
859
859
|
}
|
|
860
|
-
"
|
|
861
|
-
return (options?.client ?? this.client).put({ url: "/api/
|
|
860
|
+
"allApiAuth*7"(options) {
|
|
861
|
+
return (options?.client ?? this.client).put({ url: "/api/auth/*", ...options });
|
|
862
862
|
}
|
|
863
|
-
"
|
|
864
|
-
return (options?.client ?? this.client).trace({ url: "/api/
|
|
863
|
+
"allApiAuth*8"(options) {
|
|
864
|
+
return (options?.client ?? this.client).trace({ url: "/api/auth/*", ...options });
|
|
865
|
+
}
|
|
866
|
+
getApiIntegrationsGithubInstall(options) {
|
|
867
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
|
|
868
|
+
}
|
|
869
|
+
getApiIntegrationsGithubCallback(options) {
|
|
870
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
|
|
871
|
+
}
|
|
872
|
+
postApiIntegrationsGithubWebhook(options) {
|
|
873
|
+
return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
|
|
865
874
|
}
|
|
866
875
|
}
|
|
867
876
|
|
|
@@ -904,12 +913,9 @@ class StepDefinitions extends HeyApiClient {
|
|
|
904
913
|
}
|
|
905
914
|
});
|
|
906
915
|
}
|
|
907
|
-
|
|
908
|
-
return (options.client ?? this.client).get({ url: "/api/step-definitions/{stepDefinitionId}", ...options });
|
|
909
|
-
}
|
|
910
|
-
updateStepDefinition(options) {
|
|
916
|
+
upsertStepDefinition(options) {
|
|
911
917
|
return (options.client ?? this.client).put({
|
|
912
|
-
url: "/api/step-definitions
|
|
918
|
+
url: "/api/step-definitions",
|
|
913
919
|
...options,
|
|
914
920
|
headers: {
|
|
915
921
|
"Content-Type": "application/json",
|
|
@@ -917,6 +923,9 @@ class StepDefinitions extends HeyApiClient {
|
|
|
917
923
|
}
|
|
918
924
|
});
|
|
919
925
|
}
|
|
926
|
+
getStepDefinition(options) {
|
|
927
|
+
return (options.client ?? this.client).get({ url: "/api/step-definitions/{stepDefinitionId}", ...options });
|
|
928
|
+
}
|
|
920
929
|
archiveStepDefinition(options) {
|
|
921
930
|
return (options.client ?? this.client).put({ url: "/api/step-definitions/{stepDefinitionId}/archive", ...options });
|
|
922
931
|
}
|
|
@@ -999,7 +1008,7 @@ class StepExecutions extends HeyApiClient {
|
|
|
999
1008
|
|
|
1000
1009
|
class PipelineDefinitions extends HeyApiClient {
|
|
1001
1010
|
listPipelineDefinitions(options) {
|
|
1002
|
-
return (options
|
|
1011
|
+
return (options?.client ?? this.client).get({ url: "/api/linear-pipeline-definitions", ...options });
|
|
1003
1012
|
}
|
|
1004
1013
|
createPipelineDefinition(options) {
|
|
1005
1014
|
return (options.client ?? this.client).post({
|
|
@@ -1027,6 +1036,9 @@ class PipelineDefinitions extends HeyApiClient {
|
|
|
1027
1036
|
archivePipelineDefinition(options) {
|
|
1028
1037
|
return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/archive", ...options });
|
|
1029
1038
|
}
|
|
1039
|
+
unarchivePipelineDefinition(options) {
|
|
1040
|
+
return (options.client ?? this.client).put({ url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/unarchive", ...options });
|
|
1041
|
+
}
|
|
1030
1042
|
addPipelineStep(options) {
|
|
1031
1043
|
return (options.client ?? this.client).post({
|
|
1032
1044
|
url: "/api/linear-pipeline-definitions/{linearPipelineDefinitionId}/steps",
|
|
@@ -1235,6 +1247,28 @@ class StepDefinitionTemplates extends HeyApiClient {
|
|
|
1235
1247
|
}
|
|
1236
1248
|
}
|
|
1237
1249
|
|
|
1250
|
+
class ProjectIntegrations extends HeyApiClient {
|
|
1251
|
+
listProjectIntegrations(options) {
|
|
1252
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/integrations", ...options });
|
|
1253
|
+
}
|
|
1254
|
+
createProjectIntegration(options) {
|
|
1255
|
+
return (options.client ?? this.client).post({
|
|
1256
|
+
url: "/api/projects/{projectId}/integrations",
|
|
1257
|
+
...options,
|
|
1258
|
+
headers: {
|
|
1259
|
+
"Content-Type": "application/json",
|
|
1260
|
+
...options.headers
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
syncProjectIntegration(options) {
|
|
1265
|
+
return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/integrations/{integrationId}/sync", ...options });
|
|
1266
|
+
}
|
|
1267
|
+
deleteProjectIntegration(options) {
|
|
1268
|
+
return (options.client ?? this.client).delete({ url: "/api/projects/{projectId}/integrations/{integrationId}", ...options });
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
|
|
1238
1272
|
class BoboddyClient extends HeyApiClient {
|
|
1239
1273
|
static __registry = new HeyApiRegistry;
|
|
1240
1274
|
constructor(args) {
|
|
@@ -1281,6 +1315,10 @@ class BoboddyClient extends HeyApiClient {
|
|
|
1281
1315
|
get stepDefinitionTemplates() {
|
|
1282
1316
|
return this._stepDefinitionTemplates ??= new StepDefinitionTemplates({ client: this.client });
|
|
1283
1317
|
}
|
|
1318
|
+
_projectIntegrations;
|
|
1319
|
+
get projectIntegrations() {
|
|
1320
|
+
return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
|
|
1321
|
+
}
|
|
1284
1322
|
}
|
|
1285
1323
|
// src/step-execution-plane-client.ts
|
|
1286
1324
|
function createStepExecutionPlaneClient(baseUrl) {
|
|
@@ -1360,6 +1398,7 @@ export {
|
|
|
1360
1398
|
StepDefinitions,
|
|
1361
1399
|
StepDefinitionTemplates,
|
|
1362
1400
|
Projects,
|
|
1401
|
+
ProjectIntegrations,
|
|
1363
1402
|
ProjectContext,
|
|
1364
1403
|
PipelineExecutions,
|
|
1365
1404
|
PipelineDefinitions,
|