@northflank/js-client 0.4.1 → 0.5.0-beta.0

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.
Files changed (257) hide show
  1. package/dist/cjs/api-client.d.ts +6013 -0
  2. package/dist/cjs/api-client.js +1 -0
  3. package/dist/cjs/package.json +3 -0
  4. package/dist/esm/api-client.d.ts +6013 -0
  5. package/dist/esm/api-client.js +15 -0
  6. package/dist/esm/package.json +3 -0
  7. package/package.json +12 -19
  8. package/dist/api-client.d.ts +0 -481
  9. package/dist/api-client.js +0 -748
  10. package/dist/api-endpoint.d.ts +0 -63
  11. package/dist/api-endpoint.js +0 -216
  12. package/dist/context/api-client-context-provider.d.ts +0 -47
  13. package/dist/context/api-client-context-provider.js +0 -332
  14. package/dist/context/api-client-file-context-provider.d.ts +0 -11
  15. package/dist/context/api-client-file-context-provider.js +0 -138
  16. package/dist/context/api-client-in-memory-context-provider.d.ts +0 -6
  17. package/dist/context/api-client-in-memory-context-provider.js +0 -82
  18. package/dist/context/index.d.ts +0 -3
  19. package/dist/context/index.js +0 -15
  20. package/dist/endpoints/abort/addon/backup.d.ts +0 -21
  21. package/dist/endpoints/abort/addon/backup.js +0 -36
  22. package/dist/endpoints/abort/addon/restore.d.ts +0 -26
  23. package/dist/endpoints/abort/addon/restore.js +0 -36
  24. package/dist/endpoints/abort/job/build.d.ts +0 -21
  25. package/dist/endpoints/abort/job/build.js +0 -36
  26. package/dist/endpoints/abort/job/run.d.ts +0 -21
  27. package/dist/endpoints/abort/job/run.js +0 -36
  28. package/dist/endpoints/abort/service/build.d.ts +0 -21
  29. package/dist/endpoints/abort/service/build.js +0 -36
  30. package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
  31. package/dist/endpoints/add/domain/subdomain.js +0 -36
  32. package/dist/endpoints/add/registryCredentials.d.ts +0 -47
  33. package/dist/endpoints/add/registryCredentials.js +0 -36
  34. package/dist/endpoints/assign/subdomain/service.d.ts +0 -28
  35. package/dist/endpoints/assign/subdomain/service.js +0 -36
  36. package/dist/endpoints/backup/addon.d.ts +0 -51
  37. package/dist/endpoints/backup/addon.js +0 -36
  38. package/dist/endpoints/create/addon.d.ts +0 -90
  39. package/dist/endpoints/create/addon.js +0 -36
  40. package/dist/endpoints/create/domain.d.ts +0 -27
  41. package/dist/endpoints/create/domain.js +0 -36
  42. package/dist/endpoints/create/job/cron.d.ts +0 -157
  43. package/dist/endpoints/create/job/cron.js +0 -36
  44. package/dist/endpoints/create/job/manual.d.ts +0 -147
  45. package/dist/endpoints/create/job/manual.js +0 -36
  46. package/dist/endpoints/create/project.d.ts +0 -29
  47. package/dist/endpoints/create/project.js +0 -36
  48. package/dist/endpoints/create/secret.d.ts +0 -79
  49. package/dist/endpoints/create/secret.js +0 -36
  50. package/dist/endpoints/create/service/build.d.ts +0 -116
  51. package/dist/endpoints/create/service/build.js +0 -36
  52. package/dist/endpoints/create/service/combined.d.ts +0 -166
  53. package/dist/endpoints/create/service/combined.js +0 -36
  54. package/dist/endpoints/create/service/deployment.d.ts +0 -137
  55. package/dist/endpoints/create/service/deployment.js +0 -36
  56. package/dist/endpoints/delete/addon.d.ts +0 -19
  57. package/dist/endpoints/delete/addon.js +0 -36
  58. package/dist/endpoints/delete/backup.d.ts +0 -21
  59. package/dist/endpoints/delete/backup.js +0 -36
  60. package/dist/endpoints/delete/domain.d.ts +0 -17
  61. package/dist/endpoints/delete/domain.js +0 -36
  62. package/dist/endpoints/delete/job.d.ts +0 -19
  63. package/dist/endpoints/delete/job.js +0 -36
  64. package/dist/endpoints/delete/project.d.ts +0 -17
  65. package/dist/endpoints/delete/project.js +0 -36
  66. package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
  67. package/dist/endpoints/delete/registryCredentials.js +0 -36
  68. package/dist/endpoints/delete/secret.d.ts +0 -19
  69. package/dist/endpoints/delete/secret.js +0 -36
  70. package/dist/endpoints/delete/secretLink.d.ts +0 -21
  71. package/dist/endpoints/delete/secretLink.js +0 -36
  72. package/dist/endpoints/delete/service.d.ts +0 -19
  73. package/dist/endpoints/delete/service.js +0 -36
  74. package/dist/endpoints/delete/subdomain.d.ts +0 -19
  75. package/dist/endpoints/delete/subdomain.js +0 -36
  76. package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
  77. package/dist/endpoints/get/addon/backup/download.js +0 -36
  78. package/dist/endpoints/get/addon/backup.d.ts +0 -46
  79. package/dist/endpoints/get/addon/backup.js +0 -36
  80. package/dist/endpoints/get/addon/backups.d.ts +0 -54
  81. package/dist/endpoints/get/addon/backups.js +0 -40
  82. package/dist/endpoints/get/addon/containers.d.ts +0 -40
  83. package/dist/endpoints/get/addon/containers.js +0 -40
  84. package/dist/endpoints/get/addon/credentials.d.ts +0 -24
  85. package/dist/endpoints/get/addon/credentials.js +0 -36
  86. package/dist/endpoints/get/addon/types.d.ts +0 -48
  87. package/dist/endpoints/get/addon/types.js +0 -36
  88. package/dist/endpoints/get/addon/version.d.ts +0 -53
  89. package/dist/endpoints/get/addon/version.js +0 -36
  90. package/dist/endpoints/get/addon.d.ts +0 -69
  91. package/dist/endpoints/get/addon.js +0 -36
  92. package/dist/endpoints/get/dnsId.d.ts +0 -15
  93. package/dist/endpoints/get/dnsId.js +0 -36
  94. package/dist/endpoints/get/domain.d.ts +0 -33
  95. package/dist/endpoints/get/domain.js +0 -36
  96. package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
  97. package/dist/endpoints/get/job/buildArguments.js +0 -36
  98. package/dist/endpoints/get/job/builds.d.ts +0 -50
  99. package/dist/endpoints/get/job/builds.js +0 -39
  100. package/dist/endpoints/get/job/containers.d.ts +0 -40
  101. package/dist/endpoints/get/job/containers.js +0 -40
  102. package/dist/endpoints/get/job/deployment.d.ts +0 -51
  103. package/dist/endpoints/get/job/deployment.js +0 -36
  104. package/dist/endpoints/get/job/environment.d.ts +0 -24
  105. package/dist/endpoints/get/job/environment.js +0 -40
  106. package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
  107. package/dist/endpoints/get/job/environmentDetails.js +0 -36
  108. package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
  109. package/dist/endpoints/get/job/healthChecks.js +0 -36
  110. package/dist/endpoints/get/job/run.d.ts +0 -42
  111. package/dist/endpoints/get/job/run.js +0 -36
  112. package/dist/endpoints/get/job/runs.d.ts +0 -52
  113. package/dist/endpoints/get/job/runs.js +0 -39
  114. package/dist/endpoints/get/job.d.ts +0 -86
  115. package/dist/endpoints/get/job.js +0 -36
  116. package/dist/endpoints/get/project.d.ts +0 -72
  117. package/dist/endpoints/get/project.js +0 -36
  118. package/dist/endpoints/get/registryCredentials.d.ts +0 -34
  119. package/dist/endpoints/get/registryCredentials.js +0 -36
  120. package/dist/endpoints/get/secret.d.ts +0 -55
  121. package/dist/endpoints/get/secret.js +0 -39
  122. package/dist/endpoints/get/secretDetails.d.ts +0 -63
  123. package/dist/endpoints/get/secretDetails.js +0 -36
  124. package/dist/endpoints/get/secretLink.d.ts +0 -44
  125. package/dist/endpoints/get/secretLink.js +0 -36
  126. package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
  127. package/dist/endpoints/get/service/buildArguments.js +0 -36
  128. package/dist/endpoints/get/service/builds.d.ts +0 -50
  129. package/dist/endpoints/get/service/builds.js +0 -40
  130. package/dist/endpoints/get/service/containers.d.ts +0 -40
  131. package/dist/endpoints/get/service/containers.js +0 -40
  132. package/dist/endpoints/get/service/deployment.d.ts +0 -51
  133. package/dist/endpoints/get/service/deployment.js +0 -36
  134. package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
  135. package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
  136. package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
  137. package/dist/endpoints/get/service/environmentVariables.js +0 -40
  138. package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
  139. package/dist/endpoints/get/service/healthChecks.js +0 -36
  140. package/dist/endpoints/get/service/ports.d.ts +0 -35
  141. package/dist/endpoints/get/service/ports.js +0 -36
  142. package/dist/endpoints/get/service.d.ts +0 -103
  143. package/dist/endpoints/get/service.js +0 -36
  144. package/dist/endpoints/get/subdomain.d.ts +0 -30
  145. package/dist/endpoints/get/subdomain.js +0 -36
  146. package/dist/endpoints/import/addon/backup.d.ts +0 -31
  147. package/dist/endpoints/import/addon/backup.js +0 -36
  148. package/dist/endpoints/list/addons.d.ts +0 -45
  149. package/dist/endpoints/list/addons.js +0 -39
  150. package/dist/endpoints/list/domains.d.ts +0 -34
  151. package/dist/endpoints/list/domains.js +0 -39
  152. package/dist/endpoints/list/jobs.d.ts +0 -44
  153. package/dist/endpoints/list/jobs.js +0 -39
  154. package/dist/endpoints/list/plans.d.ts +0 -30
  155. package/dist/endpoints/list/plans.js +0 -36
  156. package/dist/endpoints/list/projects.d.ts +0 -32
  157. package/dist/endpoints/list/projects.js +0 -39
  158. package/dist/endpoints/list/regions.d.ts +0 -18
  159. package/dist/endpoints/list/regions.js +0 -36
  160. package/dist/endpoints/list/registryCredentials.d.ts +0 -41
  161. package/dist/endpoints/list/registryCredentials.js +0 -39
  162. package/dist/endpoints/list/secrets.d.ts +0 -52
  163. package/dist/endpoints/list/secrets.js +0 -39
  164. package/dist/endpoints/list/services.d.ts +0 -44
  165. package/dist/endpoints/list/services.js +0 -39
  166. package/dist/endpoints/list/vcs.d.ts +0 -51
  167. package/dist/endpoints/list/vcs.js +0 -36
  168. package/dist/endpoints/pause/addon.d.ts +0 -19
  169. package/dist/endpoints/pause/addon.js +0 -36
  170. package/dist/endpoints/pause/service.d.ts +0 -19
  171. package/dist/endpoints/pause/service.js +0 -36
  172. package/dist/endpoints/restart/addon.d.ts +0 -19
  173. package/dist/endpoints/restart/addon.js +0 -36
  174. package/dist/endpoints/restart/service.d.ts +0 -19
  175. package/dist/endpoints/restart/service.js +0 -36
  176. package/dist/endpoints/restore/addon/backup.d.ts +0 -21
  177. package/dist/endpoints/restore/addon/backup.js +0 -36
  178. package/dist/endpoints/resume/addon.d.ts +0 -19
  179. package/dist/endpoints/resume/addon.js +0 -36
  180. package/dist/endpoints/resume/service.d.ts +0 -24
  181. package/dist/endpoints/resume/service.js +0 -36
  182. package/dist/endpoints/scale/addon.d.ts +0 -28
  183. package/dist/endpoints/scale/addon.js +0 -36
  184. package/dist/endpoints/scale/service.d.ts +0 -26
  185. package/dist/endpoints/scale/service.js +0 -36
  186. package/dist/endpoints/start/job/build.d.ts +0 -37
  187. package/dist/endpoints/start/job/build.js +0 -36
  188. package/dist/endpoints/start/job/run.d.ts +0 -37
  189. package/dist/endpoints/start/job/run.js +0 -36
  190. package/dist/endpoints/start/service/build.d.ts +0 -41
  191. package/dist/endpoints/start/service/build.js +0 -36
  192. package/dist/endpoints/unassign/subdomain.d.ts +0 -19
  193. package/dist/endpoints/unassign/subdomain.js +0 -36
  194. package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
  195. package/dist/endpoints/update/addon/networkSettings.js +0 -36
  196. package/dist/endpoints/update/addon/security.d.ts +0 -29
  197. package/dist/endpoints/update/addon/security.js +0 -36
  198. package/dist/endpoints/update/addon/version.d.ts +0 -24
  199. package/dist/endpoints/update/addon/version.js +0 -36
  200. package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
  201. package/dist/endpoints/update/job/buildArguments.js +0 -36
  202. package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
  203. package/dist/endpoints/update/job/cmdOverride.js +0 -36
  204. package/dist/endpoints/update/job/deployment.d.ts +0 -37
  205. package/dist/endpoints/update/job/deployment.js +0 -36
  206. package/dist/endpoints/update/job/environment.d.ts +0 -24
  207. package/dist/endpoints/update/job/environment.js +0 -36
  208. package/dist/endpoints/update/job/healthChecks.d.ts +0 -45
  209. package/dist/endpoints/update/job/healthChecks.js +0 -36
  210. package/dist/endpoints/update/job/settings.d.ts +0 -30
  211. package/dist/endpoints/update/job/settings.js +0 -36
  212. package/dist/endpoints/update/registryCredentials.d.ts +0 -31
  213. package/dist/endpoints/update/registryCredentials.js +0 -36
  214. package/dist/endpoints/update/secret.d.ts +0 -54
  215. package/dist/endpoints/update/secret.js +0 -36
  216. package/dist/endpoints/update/secretLink.d.ts +0 -40
  217. package/dist/endpoints/update/secretLink.js +0 -36
  218. package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
  219. package/dist/endpoints/update/service/buildArguments.js +0 -36
  220. package/dist/endpoints/update/service/buildOptions.d.ts +0 -52
  221. package/dist/endpoints/update/service/buildOptions.js +0 -36
  222. package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
  223. package/dist/endpoints/update/service/cmdOverride.js +0 -36
  224. package/dist/endpoints/update/service/deployment.d.ts +0 -37
  225. package/dist/endpoints/update/service/deployment.js +0 -36
  226. package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
  227. package/dist/endpoints/update/service/environmentVariables.js +0 -36
  228. package/dist/endpoints/update/service/healthChecks.d.ts +0 -45
  229. package/dist/endpoints/update/service/healthChecks.js +0 -36
  230. package/dist/endpoints/update/service/ports.d.ts +0 -55
  231. package/dist/endpoints/update/service/ports.js +0 -36
  232. package/dist/endpoints/verify/domain.d.ts +0 -17
  233. package/dist/endpoints/verify/domain.js +0 -36
  234. package/dist/endpoints/verify/subdomain.d.ts +0 -19
  235. package/dist/endpoints/verify/subdomain.js +0 -36
  236. package/dist/port-forward/client/api-helper.d.ts +0 -30
  237. package/dist/port-forward/client/api-helper.js +0 -102
  238. package/dist/port-forward/client/atomic-write.d.ts +0 -3
  239. package/dist/port-forward/client/atomic-write.js +0 -95
  240. package/dist/port-forward/client/host-file-ast.d.ts +0 -52
  241. package/dist/port-forward/client/host-file-ast.js +0 -279
  242. package/dist/port-forward/client/host-file.d.ts +0 -26
  243. package/dist/port-forward/client/host-file.js +0 -226
  244. package/dist/port-forward/client/loopback.d.ts +0 -4
  245. package/dist/port-forward/client/loopback.js +0 -219
  246. package/dist/port-forward/client/port-forwarder.d.ts +0 -86
  247. package/dist/port-forward/client/port-forwarder.js +0 -593
  248. package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
  249. package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
  250. package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
  251. package/dist/port-forward/client/port-tunnel-udp.js +0 -147
  252. package/dist/port-forward/client/port-tunnel.d.ts +0 -32
  253. package/dist/port-forward/client/port-tunnel.js +0 -2
  254. package/dist/port-forward/client/promise-mutex.d.ts +0 -4
  255. package/dist/port-forward/client/promise-mutex.js +0 -62
  256. package/dist/utils.d.ts +0 -8
  257. package/dist/utils.js +0 -97
@@ -1,147 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
3
- export declare type CreateJobManualResult = {
4
- /** Identifier for the job Example: "example-job" */
5
- 'id': string;
6
- /** Full identifier used for job deployment Example: "/example-user/default-project/example-job" */
7
- 'appId': string;
8
- /** Job name Example: "Example Job" */
9
- 'name': string;
10
- /** A short description of the job Example: "This is the job description" */
11
- 'description'?: string;
12
- /** ID of the project that the service belongs to Example: "default-project" */
13
- 'projectId': string;
14
- /** The time the job was created. Example: "2021-01-20T11:19:53.175Z" */
15
- 'createdAt': string;
16
- 'vcsData'?: {
17
- /** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
18
- 'projectUrl': string;
19
- /** VCS provider for the repo being built Example: "github" */
20
- 'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
21
- /** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
22
- 'vcsId'?: string;
23
- /** Branch of the repo being built Example: "master" */
24
- 'projectBranch'?: string;
25
- /** Whether the repo is being accessed without authentication. */
26
- 'publicRepo'?: boolean;
27
- /** Working directory used by the dockerfile Example: "/" */
28
- 'dockerWorkDir': string;
29
- /** File path of the Dockerfile Example: "/Dockerfile" */
30
- 'dockerFilePath': string;
31
- };
32
- 'buildEngineConfiguration'?: {
33
- /** The build engine used. Example: "buildpack" */
34
- 'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
35
- 'buildpack'?: {
36
- /** The Buildpack stack used. Example: "HEROKU_20" */
37
- 'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
38
- /** Array of custom Buildpacks used. */
39
- 'buildpackLocators'?: string[];
40
- };
41
- };
42
- /** Whether Continuous Integration is disabled */
43
- 'disabledCI': boolean;
44
- /** Whether Continuous Deployment is disabled */
45
- 'disabledCD': boolean;
46
- 'deployment'?: {
47
- /** Region where this job is deployed and built Example: "europe-west" */
48
- 'region'?: string;
49
- };
50
- 'billing': {
51
- /** ID of the billing plan used by this job Example: "nf-compute-20" */
52
- 'deploymentPlan': string;
53
- };
54
- /** Type of the job (manual or cron) Example: "manual" */
55
- 'jobType': 'cron' | 'manual';
56
- /** Job settings */
57
- 'settings': {
58
- /** The number of attempts to rerun a job before it is marked as failed. */
59
- 'backoffLimit': number;
60
- /** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
61
- 'activeDeadlineSeconds': number;
62
- 'cron'?: any;
63
- };
64
- /** Whether the job will be built immediately Example: true */
65
- 'buildInitiated': boolean;
66
- };
67
- export declare type CreateJobManualCall = (opts: CreateJobManualRequest) => Promise<ApiCallResponse<CreateJobManualResult>>;
68
- export declare type CreateJobManualRequest = {
69
- parameters: CreateJobManualParameters;
70
- data: CreateJobManualData;
71
- };
72
- export declare type CreateJobManualParameters = {
73
- /** ID of the project */ 'projectId': string;
74
- };
75
- export declare type CreateJobManualData = {
76
- /** The name of the job. Example: "Example Job" */
77
- 'name': string;
78
- /** A description of the job. Example: "A job description" */
79
- 'description'?: string;
80
- 'billing': {
81
- /** The ID of the deployment plan to use. Example: "nf-compute-20" */
82
- 'deploymentPlan': string;
83
- };
84
- /** The number of attempts to rerun a job before it is marked as failed. */
85
- 'backoffLimit': number;
86
- /** The maximum amount of time, in seconds, for a job to run before it is marked as failed. Example: 600 */
87
- 'activeDeadlineSeconds'?: number;
88
- /** Where to deploy the job from. */
89
- 'deployment'?: {
90
- 'vcs': {
91
- /** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
92
- 'projectUrl': string;
93
- /** The VCS provider to use. Example: "github" */
94
- 'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
95
- /** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
96
- 'vcsId'?: string;
97
- /** The name of the branch to use. Example: "master" */
98
- 'projectBranch': string;
99
- };
100
- } | {
101
- 'external': {
102
- /** Path of the external image excluding the hostname Example: "nginx:latest" */
103
- 'imagePath': string;
104
- /** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
105
- 'credentials'?: string;
106
- };
107
- } | {
108
- 'internal': {
109
- /** ID of the build service to deploy Example: "example-build-service" */
110
- 'id'?: string;
111
- /** Branch to deploy Example: "master" */
112
- 'branch'?: string;
113
- /** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
114
- 'buildSHA'?: any;
115
- };
116
- };
117
- 'buildSettings'?: {
118
- 'dockerfile': {
119
- /** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
120
- 'buildEngine'?: 'kaniko' | 'buildkit';
121
- /** The file path of the Dockerfile. Example: "/Dockerfile" */
122
- 'dockerFilePath': string;
123
- /** The working directory of the Dockerfile. Example: "/" */
124
- 'dockerWorkDir': string;
125
- };
126
- } | {
127
- 'buildpack': {
128
- /** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
129
- 'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
130
- /** Array of custom Buildpacks to use. */
131
- 'buildpackLocators'?: string[];
132
- /** The working directory to build in. Example: "/" */
133
- 'buildContext'?: string;
134
- };
135
- };
136
- /** An object containing the environment variables to set for the job. Example: {"variable1":"abcdef","variable2":"12345"} */
137
- 'environment'?: any;
138
- /** An object containing the build arguments to set for the job. Example: {"variable1":"abcdef","variable2":"12345"} */
139
- 'buildArguments'?: any;
140
- };
141
- /** Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client. */
142
- export declare class CreateJobManualEndpoint extends PostApiEndpoint<CreateJobManualRequest, CreateJobManualResult> {
143
- description: string;
144
- withAuth: boolean;
145
- endpointUrl: (opts: CreateJobManualRequest) => string;
146
- body: (payload: CreateJobManualRequest) => string;
147
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CreateJobManualEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../api-endpoint");
21
- /** Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client. */
22
- var CreateJobManualEndpoint = /** @class */ (function (_super) {
23
- __extends(CreateJobManualEndpoint, _super);
24
- function CreateJobManualEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Creates a new manual job that only runs when initiated via the UI, CLI, API or JS client.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/jobs/manual";
30
- };
31
- _this.body = function (payload) { return JSON.stringify(payload.data); };
32
- return _this;
33
- }
34
- return CreateJobManualEndpoint;
35
- }(api_endpoint_1.PostApiEndpoint));
36
- exports.CreateJobManualEndpoint = CreateJobManualEndpoint;
@@ -1,29 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
3
- export declare type CreateProjectResult = {
4
- /** Boolean flag that the operation was successful. Example: true */
5
- 'success': boolean;
6
- /** ID for the created project. Example: "default-project" */
7
- 'id': string;
8
- };
9
- export declare type CreateProjectCall = (opts: CreateProjectRequest) => Promise<ApiCallResponse<CreateProjectResult>>;
10
- export declare type CreateProjectRequest = {
11
- data: CreateProjectData;
12
- };
13
- export declare type CreateProjectData = {
14
- /** The name of the project. Example: "New Project" */
15
- 'name': string;
16
- /** The description of the project. Example: "This is a new project." */
17
- 'description'?: string;
18
- /** The region the project will be hosted in. Example: "europe-west" */
19
- 'region': string;
20
- /** The color of the project in the Northflank App. Example: "#EF233C" */
21
- 'color'?: string;
22
- };
23
- /** Creates a new project. */
24
- export declare class CreateProjectEndpoint extends PostApiEndpoint<CreateProjectRequest, CreateProjectResult> {
25
- description: string;
26
- withAuth: boolean;
27
- endpointUrl: (opts: CreateProjectRequest) => string;
28
- body: (payload: CreateProjectRequest) => string;
29
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CreateProjectEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Creates a new project. */
22
- var CreateProjectEndpoint = /** @class */ (function (_super) {
23
- __extends(CreateProjectEndpoint, _super);
24
- function CreateProjectEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Creates a new project.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects";
30
- };
31
- _this.body = function (payload) { return JSON.stringify(payload.data); };
32
- return _this;
33
- }
34
- return CreateProjectEndpoint;
35
- }(api_endpoint_1.PostApiEndpoint));
36
- exports.CreateProjectEndpoint = CreateProjectEndpoint;
@@ -1,79 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, PostApiEndpoint } from '../../api-endpoint';
3
- export declare type CreateSecretResult = {
4
- /** Identifier for the secret group Example: "example-secret-group" */
5
- 'id': string;
6
- /** Secret group name Example: "Example secret group" */
7
- 'name': string;
8
- /** A short description of the secret group Example: "This is the secret group description" */
9
- 'description'?: string;
10
- /** The type of the created secret group Example: "environment" */
11
- 'secretType': 'environment' | 'arguments';
12
- /** ID of the project that the secret group belongs to Example: "default-project" */
13
- 'projectId': string;
14
- /** The priority with which different secret groups will be merged Example: 10 */
15
- 'priority': number;
16
- /** Restriction settings of the secret */
17
- 'restrictions': {
18
- /** Is the secret restricted Example: true */
19
- 'restricted'?: boolean;
20
- /** List of Northflank services & jobs the secret is restricted to */
21
- 'nfObjects'?: {
22
- /** ID of the entity the secret is restricted to. Example: "example-service" */
23
- 'id': string;
24
- /** Type of the entity the secret is restricted to. Example: "service" */
25
- 'type': 'service' | 'job';
26
- }[];
27
- };
28
- } | any;
29
- export declare type CreateSecretCall = (opts: CreateSecretRequest) => Promise<ApiCallResponse<CreateSecretResult>>;
30
- export declare type CreateSecretRequest = {
31
- parameters: CreateSecretParameters;
32
- data: CreateSecretData;
33
- };
34
- export declare type CreateSecretParameters = {
35
- /** ID of the project */ 'projectId': string;
36
- };
37
- export declare type CreateSecretData = {
38
- /** The name of the secret. Example: "Example Secret" */
39
- 'name': string;
40
- /** A description of the secret. Example: "A description" */
41
- 'description'?: string;
42
- /** The type of the created secret Example: "environment" */
43
- 'secretType': 'environment' | 'arguments';
44
- /** The priority with which different secrets will be merged. Example: 10 */
45
- 'priority': number;
46
- /** Restriction settings of the secret */
47
- 'restrictions'?: {
48
- /** Is the secret restricted Example: true */
49
- 'restricted'?: boolean;
50
- /** List of Northflank services & jobs the secret is restricted to */
51
- 'nfObjects'?: {
52
- /** ID of the entity the secret is restricted to. Example: "example-service" */
53
- 'id': string;
54
- /** Type of the entity the secret is restricted to. Example: "service" */
55
- 'type': 'service' | 'job';
56
- }[];
57
- };
58
- /** An array of addons to link to this secret group. */
59
- 'addonDependencies'?: {
60
- /** The internal id of the addon to link. Example: "example-addon" */
61
- 'addonId': string;
62
- /** An array of objects containing details about the keys to link to this secret group. */
63
- 'keys': {
64
- /** The name of the key to link. Example: "username" */
65
- 'keyName': string;
66
- /** An array of aliases for the key. */
67
- 'aliases'?: string[];
68
- }[];
69
- }[];
70
- /** Secret contents as JSON object, encrypted at rest Example: {"NODE_ENV":"production","MONGO_DB":"some_connection_string"} */
71
- 'data'?: any;
72
- };
73
- /** Creates a secret with the specified payload */
74
- export declare class CreateSecretEndpoint extends PostApiEndpoint<CreateSecretRequest, CreateSecretResult> {
75
- description: string;
76
- withAuth: boolean;
77
- endpointUrl: (opts: CreateSecretRequest) => string;
78
- body: (payload: CreateSecretRequest) => string;
79
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CreateSecretEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Creates a secret with the specified payload */
22
- var CreateSecretEndpoint = /** @class */ (function (_super) {
23
- __extends(CreateSecretEndpoint, _super);
24
- function CreateSecretEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Creates a secret with the specified payload';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/secrets";
30
- };
31
- _this.body = function (payload) { return JSON.stringify(payload.data); };
32
- return _this;
33
- }
34
- return CreateSecretEndpoint;
35
- }(api_endpoint_1.PostApiEndpoint));
36
- exports.CreateSecretEndpoint = CreateSecretEndpoint;
@@ -1,116 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
3
- export declare type CreateServiceBuildResult = {
4
- /** Identifier for the service Example: "example-service" */
5
- 'id': string;
6
- /** Full identifier used for service deployment Example: "/example-user/default-project/example-service" */
7
- 'appId': string;
8
- /** Service name Example: "Example Service" */
9
- 'name': string;
10
- /** A short description of the service Example: "This is the service description" */
11
- 'description'?: string;
12
- /** ID of the project that the service belongs to Example: "default-project" */
13
- 'projectId': string;
14
- /** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
15
- 'createdAt': string;
16
- /** Whether Continuous Integration is disabled */
17
- 'disabledCI': boolean;
18
- /** Whether Continuous Deployment is disabled */
19
- 'disabledCD': boolean;
20
- 'billing': {
21
- /** ID of the billing plan used by this service Example: "nf-compute-20" */
22
- 'deploymentPlan': string;
23
- };
24
- /** Type of the service (combined, build or deployment) Example: "build" */
25
- 'serviceType': 'combined' | 'build' | 'deployment';
26
- 'vcsData'?: {
27
- /** URL of the repository being built Example: "https://github.com/northflank/gatsby-with-northflank" */
28
- 'projectUrl': string;
29
- /** VCS provider for the repo being built Example: "github" */
30
- 'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
31
- /** ID of the self-hosted VCS, if applicable. Example: "example-team/self-hosted-vcs" */
32
- 'vcsId'?: string;
33
- /** Branch of the repo being built Example: "master" */
34
- 'projectBranch'?: string;
35
- /** Whether the repo is being accessed without authentication. */
36
- 'publicRepo'?: boolean;
37
- /** Working directory used by the dockerfile Example: "/" */
38
- 'dockerWorkDir': string;
39
- /** File path of the Dockerfile Example: "/Dockerfile" */
40
- 'dockerFilePath': string;
41
- };
42
- 'buildConfiguration'?: {
43
- 'branchRestrictions': string[];
44
- 'prRestrictions': string[];
45
- };
46
- 'buildEngineConfiguration': {
47
- /** The build engine used. Example: "buildpack" */
48
- 'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
49
- 'buildpack'?: {
50
- /** The Buildpack stack used. Example: "HEROKU_20" */
51
- 'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
52
- /** Array of custom Buildpacks used. */
53
- 'buildpackLocators'?: string[];
54
- };
55
- };
56
- } | any;
57
- export declare type CreateServiceBuildCall = (opts: CreateServiceBuildRequest) => Promise<ApiCallResponse<CreateServiceBuildResult>>;
58
- export declare type CreateServiceBuildRequest = {
59
- parameters: CreateServiceBuildParameters;
60
- data: CreateServiceBuildData;
61
- };
62
- export declare type CreateServiceBuildParameters = {
63
- /** ID of the project */ 'projectId': string;
64
- };
65
- export declare type CreateServiceBuildData = {
66
- /** The name of the service. Example: "Example Service" */
67
- 'name': string;
68
- /** A description of the service. Example: "A service description" */
69
- 'description'?: string;
70
- 'billing': {
71
- /** The ID of the deployment plan to use. Example: "nf-compute-20" */
72
- 'deploymentPlan': string;
73
- };
74
- 'vcsData': {
75
- /** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
76
- 'projectUrl': string;
77
- /** The VCS provider to use. Example: "github" */
78
- 'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
79
- /** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
80
- 'vcsId'?: string;
81
- };
82
- 'buildSettings': {
83
- 'dockerfile': {
84
- /** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
85
- 'buildEngine'?: 'kaniko' | 'buildkit';
86
- /** The file path of the Dockerfile. Example: "/Dockerfile" */
87
- 'dockerFilePath': string;
88
- /** The working directory of the Dockerfile. Example: "/" */
89
- 'dockerWorkDir': string;
90
- };
91
- } | {
92
- 'buildpack': {
93
- /** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
94
- 'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
95
- /** Array of custom Buildpacks to use. */
96
- 'buildpackLocators'?: string[];
97
- /** The working directory to build in. Example: "/" */
98
- 'buildContext'?: string;
99
- };
100
- };
101
- 'buildConfiguration'?: {
102
- /** An array of pull request build rules. Each commit belonging to a pull request on a branch that matches one of the provided build rules will be built automatically. */
103
- 'prRestrictions'?: string[];
104
- /** An array of branch build rules. Each commit belonging to a branch that matches one of the provided build rules will be built automatically. */
105
- 'branchRestrictions'?: string[];
106
- };
107
- /** An object containing the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
108
- 'buildArguments'?: any;
109
- };
110
- /** Creates a new build service. */
111
- export declare class CreateServiceBuildEndpoint extends PostApiEndpoint<CreateServiceBuildRequest, CreateServiceBuildResult> {
112
- description: string;
113
- withAuth: boolean;
114
- endpointUrl: (opts: CreateServiceBuildRequest) => string;
115
- body: (payload: CreateServiceBuildRequest) => string;
116
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CreateServiceBuildEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../api-endpoint");
21
- /** Creates a new build service. */
22
- var CreateServiceBuildEndpoint = /** @class */ (function (_super) {
23
- __extends(CreateServiceBuildEndpoint, _super);
24
- function CreateServiceBuildEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Creates a new build service.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/services/build";
30
- };
31
- _this.body = function (payload) { return JSON.stringify(payload.data); };
32
- return _this;
33
- }
34
- return CreateServiceBuildEndpoint;
35
- }(api_endpoint_1.PostApiEndpoint));
36
- exports.CreateServiceBuildEndpoint = CreateServiceBuildEndpoint;