@northflank/js-client 0.5.3 → 0.5.4
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/cjs/api-client.d.ts +59 -8
- package/dist/cjs/api-client.js +1 -1
- package/dist/esm/api-client.d.ts +59 -8
- package/dist/esm/api-client.js +1 -1
- package/package.json +1 -1
package/dist/cjs/api-client.d.ts
CHANGED
|
@@ -1534,6 +1534,8 @@ declare type CreateJobManualData = {
|
|
|
1534
1534
|
'activeDeadlineSeconds'?: number;
|
|
1535
1535
|
/** Where to deploy the job from. */
|
|
1536
1536
|
'deployment'?: {
|
|
1537
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1538
|
+
'cmdOverride'?: string;
|
|
1537
1539
|
'vcs': {
|
|
1538
1540
|
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
1539
1541
|
'projectUrl': string;
|
|
@@ -1547,6 +1549,8 @@ declare type CreateJobManualData = {
|
|
|
1547
1549
|
'projectBranch': string;
|
|
1548
1550
|
};
|
|
1549
1551
|
} | {
|
|
1552
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1553
|
+
'cmdOverride'?: string;
|
|
1550
1554
|
'external': {
|
|
1551
1555
|
/** Image to be deployed. When not deploying from Dockerhub the URL must be specified. Example: "nginx:latest" */
|
|
1552
1556
|
'imagePath': string;
|
|
@@ -1554,6 +1558,8 @@ declare type CreateJobManualData = {
|
|
|
1554
1558
|
'credentials'?: string;
|
|
1555
1559
|
};
|
|
1556
1560
|
} | {
|
|
1561
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1562
|
+
'cmdOverride'?: string;
|
|
1557
1563
|
'internal': {
|
|
1558
1564
|
/** ID of the build service to deploy Example: "example-build-service" */
|
|
1559
1565
|
'id'?: string;
|
|
@@ -1562,7 +1568,7 @@ declare type CreateJobManualData = {
|
|
|
1562
1568
|
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
1563
1569
|
'buildSHA'?: any;
|
|
1564
1570
|
};
|
|
1565
|
-
};
|
|
1571
|
+
} | any;
|
|
1566
1572
|
'buildConfiguration'?: {
|
|
1567
1573
|
/** An array of path ignore rules. A commit will only be built if a file has been changed that does not match any of the ignore rules. Path ignore rules follow `.gitignore` syntax. */
|
|
1568
1574
|
'pathIgnoreRules'?: string[];
|
|
@@ -1571,6 +1577,8 @@ declare type CreateJobManualData = {
|
|
|
1571
1577
|
'dockerfile': {
|
|
1572
1578
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
1573
1579
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
1580
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
1581
|
+
'useCache'?: boolean;
|
|
1574
1582
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
1575
1583
|
'dockerFilePath': string;
|
|
1576
1584
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -1704,6 +1712,8 @@ declare type CreateJobCronData = {
|
|
|
1704
1712
|
'activeDeadlineSeconds'?: number;
|
|
1705
1713
|
/** Where to deploy the job from. */
|
|
1706
1714
|
'deployment'?: {
|
|
1715
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1716
|
+
'cmdOverride'?: string;
|
|
1707
1717
|
'vcs': {
|
|
1708
1718
|
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
1709
1719
|
'projectUrl': string;
|
|
@@ -1717,6 +1727,8 @@ declare type CreateJobCronData = {
|
|
|
1717
1727
|
'projectBranch': string;
|
|
1718
1728
|
};
|
|
1719
1729
|
} | {
|
|
1730
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1731
|
+
'cmdOverride'?: string;
|
|
1720
1732
|
'external': {
|
|
1721
1733
|
/** Image to be deployed. When not deploying from Dockerhub the URL must be specified. Example: "nginx:latest" */
|
|
1722
1734
|
'imagePath': string;
|
|
@@ -1724,6 +1736,8 @@ declare type CreateJobCronData = {
|
|
|
1724
1736
|
'credentials'?: string;
|
|
1725
1737
|
};
|
|
1726
1738
|
} | {
|
|
1739
|
+
/** If set, the service runs a custom command rather than one defined in the Dockerfile. Example: "nginx -g" */
|
|
1740
|
+
'cmdOverride'?: string;
|
|
1727
1741
|
'internal': {
|
|
1728
1742
|
/** ID of the build service to deploy Example: "example-build-service" */
|
|
1729
1743
|
'id'?: string;
|
|
@@ -1732,7 +1746,7 @@ declare type CreateJobCronData = {
|
|
|
1732
1746
|
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
1733
1747
|
'buildSHA'?: any;
|
|
1734
1748
|
};
|
|
1735
|
-
};
|
|
1749
|
+
} | any;
|
|
1736
1750
|
'buildConfiguration'?: {
|
|
1737
1751
|
/** An array of path ignore rules. A commit will only be built if a file has been changed that does not match any of the ignore rules. Path ignore rules follow `.gitignore` syntax. */
|
|
1738
1752
|
'pathIgnoreRules'?: string[];
|
|
@@ -1741,6 +1755,8 @@ declare type CreateJobCronData = {
|
|
|
1741
1755
|
'dockerfile': {
|
|
1742
1756
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
1743
1757
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
1758
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
1759
|
+
'useCache'?: boolean;
|
|
1744
1760
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
1745
1761
|
'dockerFilePath': string;
|
|
1746
1762
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -1843,13 +1859,34 @@ declare type StartJobRunParameters = {
|
|
|
1843
1859
|
declare type StartJobRunData = {
|
|
1844
1860
|
/** An object containing the environment variables overrides to use when running the job. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
1845
1861
|
'runtimeEnvironment'?: any;
|
|
1846
|
-
/** Details about the addon's deployment. */
|
|
1847
1862
|
'deployment'?: {
|
|
1848
|
-
/**
|
|
1863
|
+
/** Optional: Specify the job run docker configuration. */
|
|
1864
|
+
'docker'?: {
|
|
1865
|
+
/** The CMD override to use when running the job. Example: "nginx -g" */
|
|
1866
|
+
'cmd'?: string;
|
|
1867
|
+
};
|
|
1868
|
+
/** Optional: Specify the commit to run */
|
|
1869
|
+
'internal'?: {
|
|
1870
|
+
/** ID of the build service to deploy Example: "example-build-service" */
|
|
1871
|
+
'id'?: string;
|
|
1872
|
+
/** Branch to deploy Example: "master" */
|
|
1873
|
+
'branch'?: string;
|
|
1874
|
+
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
1875
|
+
'buildSHA'?: any;
|
|
1876
|
+
};
|
|
1877
|
+
} | {
|
|
1878
|
+
/** Optional: Specify the job run docker configuration. */
|
|
1849
1879
|
'docker'?: {
|
|
1850
1880
|
/** The CMD override to use when running the job. Example: "nginx -g" */
|
|
1851
1881
|
'cmd'?: string;
|
|
1852
1882
|
};
|
|
1883
|
+
/** Optional: Specify the external image to run */
|
|
1884
|
+
'external'?: {
|
|
1885
|
+
/** Image to be deployed. When not deploying from Dockerhub the URL must be specified. Example: "nginx:latest" */
|
|
1886
|
+
'imagePath': string;
|
|
1887
|
+
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
1888
|
+
'credentials'?: string;
|
|
1889
|
+
};
|
|
1853
1890
|
};
|
|
1854
1891
|
};
|
|
1855
1892
|
/** Starts a new job run for the given job */
|
|
@@ -2119,6 +2156,9 @@ declare type StartJobBuildParameters = {
|
|
|
2119
2156
|
declare type StartJobBuildData = {
|
|
2120
2157
|
/** Commit sha to build. If not provided, will build the most recent commit of the job's branch. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
2121
2158
|
'sha'?: string;
|
|
2159
|
+
'overrides'?: {
|
|
2160
|
+
'buildArguments'?: any;
|
|
2161
|
+
};
|
|
2122
2162
|
};
|
|
2123
2163
|
/** Start a new build for the given job. Given a commit sha, it will build that commit. */
|
|
2124
2164
|
declare class StartJobBuildEndpoint extends PostApiEndpoint<StartJobBuildRequest, StartJobBuildResult> {
|
|
@@ -2204,6 +2244,8 @@ declare type UpdateJobBuildoptionsData = {
|
|
|
2204
2244
|
'dockerfile': {
|
|
2205
2245
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
2206
2246
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
2247
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
2248
|
+
'useCache'?: boolean;
|
|
2207
2249
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
2208
2250
|
'dockerFilePath'?: string;
|
|
2209
2251
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -2278,7 +2320,7 @@ declare type UpdateJobCmdoverrideParameters = {
|
|
|
2278
2320
|
};
|
|
2279
2321
|
declare type UpdateJobCmdoverrideData = {
|
|
2280
2322
|
/** The CMD to run, or null to disable the override. Example: "nginx -g" */
|
|
2281
|
-
'
|
|
2323
|
+
'cmdOverride': string;
|
|
2282
2324
|
};
|
|
2283
2325
|
/** Sets the Docker CMD override for the given job. */
|
|
2284
2326
|
declare class UpdateJobCmdoverrideEndpoint extends PostApiEndpoint<UpdateJobCmdoverrideRequest, UpdateJobCmdoverrideResult> {
|
|
@@ -3297,7 +3339,7 @@ declare type CreateSecretData = {
|
|
|
3297
3339
|
/** A description of the secret. Example: "A description" */
|
|
3298
3340
|
'description'?: string;
|
|
3299
3341
|
/** The type of the created secret Example: "environment" */
|
|
3300
|
-
'secretType': 'environment' | 'arguments';
|
|
3342
|
+
'secretType': 'environment-arguments' | 'environment' | 'arguments';
|
|
3301
3343
|
/** The priority with which different secrets will be merged. Example: 10 */
|
|
3302
3344
|
'priority': number;
|
|
3303
3345
|
/** Restriction settings of the secret */
|
|
@@ -3448,7 +3490,7 @@ declare type UpdateSecretData = {
|
|
|
3448
3490
|
}[];
|
|
3449
3491
|
}[];
|
|
3450
3492
|
/** The type of the created secret Example: "environment" */
|
|
3451
|
-
'secretType'?: 'environment' | 'arguments';
|
|
3493
|
+
'secretType'?: 'environment-arguments' | 'environment' | 'arguments';
|
|
3452
3494
|
/** Secret contents as JSON object, encrypted at rest. Keys must only contain letters and numbers separated with underscores, may not start with a number Example: {"NODE_ENV":"production","MONGO_DB":"some_connection_string"} */
|
|
3453
3495
|
'data'?: any;
|
|
3454
3496
|
};
|
|
@@ -3798,6 +3840,8 @@ declare type CreateServiceCombinedData = {
|
|
|
3798
3840
|
'dockerfile': {
|
|
3799
3841
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
3800
3842
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
3843
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
3844
|
+
'useCache'?: boolean;
|
|
3801
3845
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
3802
3846
|
'dockerFilePath': string;
|
|
3803
3847
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -4106,6 +4150,8 @@ declare type CreateServiceBuildData = {
|
|
|
4106
4150
|
'dockerfile': {
|
|
4107
4151
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
4108
4152
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
4153
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
4154
|
+
'useCache'?: boolean;
|
|
4109
4155
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
4110
4156
|
'dockerFilePath': string;
|
|
4111
4157
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -4640,6 +4686,8 @@ declare type UpdateServiceBuildoptionsData = {
|
|
|
4640
4686
|
'dockerfile': {
|
|
4641
4687
|
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
4642
4688
|
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
4689
|
+
/** Should intermediate image layers be cached? Only supported by Kaniko. */
|
|
4690
|
+
'useCache'?: boolean;
|
|
4643
4691
|
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
4644
4692
|
'dockerFilePath'?: string;
|
|
4645
4693
|
/** The working directory of the Dockerfile. Example: "/" */
|
|
@@ -4726,7 +4774,7 @@ declare type UpdateServiceCmdoverrideParameters = {
|
|
|
4726
4774
|
};
|
|
4727
4775
|
declare type UpdateServiceCmdoverrideData = {
|
|
4728
4776
|
/** The CMD to run, or null to disable the override. Example: "nginx -g" */
|
|
4729
|
-
'
|
|
4777
|
+
'cmdOverride': string;
|
|
4730
4778
|
};
|
|
4731
4779
|
/** Sets the Docker CMD override for the given service. */
|
|
4732
4780
|
declare class UpdateServiceCmdoverrideEndpoint extends PostApiEndpoint<UpdateServiceCmdoverrideRequest, UpdateServiceCmdoverrideResult> {
|
|
@@ -4907,6 +4955,9 @@ declare type StartServiceBuildData = {
|
|
|
4907
4955
|
'branch'?: string;
|
|
4908
4956
|
/** ID of a pull request to build from. If `sha` is not provided, the latest commit of this pull request will be built. Only supported by build services. Build services require either `branch` or `pullRequestId` field, but cannot be provided with both. */
|
|
4909
4957
|
'pullRequestId'?: number;
|
|
4958
|
+
'overrides'?: {
|
|
4959
|
+
'buildArguments'?: any;
|
|
4960
|
+
};
|
|
4910
4961
|
};
|
|
4911
4962
|
/** Start a new build for the given combined or build service. If given a commit sha, it will build that commit. Otherwise, the most recent relevant commit will be built. If the service provided is a build service, a branch name or pull request to build from is required. */
|
|
4912
4963
|
declare class StartServiceBuildEndpoint extends PostApiEndpoint<StartServiceBuildRequest, StartServiceBuildResult> {
|