@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.
- package/dist/cjs/api-client.d.ts +6013 -0
- package/dist/cjs/api-client.js +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/esm/api-client.d.ts +6013 -0
- package/dist/esm/api-client.js +15 -0
- package/dist/esm/package.json +3 -0
- package/package.json +12 -19
- package/dist/api-client.d.ts +0 -481
- package/dist/api-client.js +0 -748
- package/dist/api-endpoint.d.ts +0 -63
- package/dist/api-endpoint.js +0 -216
- package/dist/context/api-client-context-provider.d.ts +0 -47
- package/dist/context/api-client-context-provider.js +0 -332
- package/dist/context/api-client-file-context-provider.d.ts +0 -11
- package/dist/context/api-client-file-context-provider.js +0 -138
- package/dist/context/api-client-in-memory-context-provider.d.ts +0 -6
- package/dist/context/api-client-in-memory-context-provider.js +0 -82
- package/dist/context/index.d.ts +0 -3
- package/dist/context/index.js +0 -15
- package/dist/endpoints/abort/addon/backup.d.ts +0 -21
- package/dist/endpoints/abort/addon/backup.js +0 -36
- package/dist/endpoints/abort/addon/restore.d.ts +0 -26
- package/dist/endpoints/abort/addon/restore.js +0 -36
- package/dist/endpoints/abort/job/build.d.ts +0 -21
- package/dist/endpoints/abort/job/build.js +0 -36
- package/dist/endpoints/abort/job/run.d.ts +0 -21
- package/dist/endpoints/abort/job/run.js +0 -36
- package/dist/endpoints/abort/service/build.d.ts +0 -21
- package/dist/endpoints/abort/service/build.js +0 -36
- package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
- package/dist/endpoints/add/domain/subdomain.js +0 -36
- package/dist/endpoints/add/registryCredentials.d.ts +0 -47
- package/dist/endpoints/add/registryCredentials.js +0 -36
- package/dist/endpoints/assign/subdomain/service.d.ts +0 -28
- package/dist/endpoints/assign/subdomain/service.js +0 -36
- package/dist/endpoints/backup/addon.d.ts +0 -51
- package/dist/endpoints/backup/addon.js +0 -36
- package/dist/endpoints/create/addon.d.ts +0 -90
- package/dist/endpoints/create/addon.js +0 -36
- package/dist/endpoints/create/domain.d.ts +0 -27
- package/dist/endpoints/create/domain.js +0 -36
- package/dist/endpoints/create/job/cron.d.ts +0 -157
- package/dist/endpoints/create/job/cron.js +0 -36
- package/dist/endpoints/create/job/manual.d.ts +0 -147
- package/dist/endpoints/create/job/manual.js +0 -36
- package/dist/endpoints/create/project.d.ts +0 -29
- package/dist/endpoints/create/project.js +0 -36
- package/dist/endpoints/create/secret.d.ts +0 -79
- package/dist/endpoints/create/secret.js +0 -36
- package/dist/endpoints/create/service/build.d.ts +0 -116
- package/dist/endpoints/create/service/build.js +0 -36
- package/dist/endpoints/create/service/combined.d.ts +0 -166
- package/dist/endpoints/create/service/combined.js +0 -36
- package/dist/endpoints/create/service/deployment.d.ts +0 -137
- package/dist/endpoints/create/service/deployment.js +0 -36
- package/dist/endpoints/delete/addon.d.ts +0 -19
- package/dist/endpoints/delete/addon.js +0 -36
- package/dist/endpoints/delete/backup.d.ts +0 -21
- package/dist/endpoints/delete/backup.js +0 -36
- package/dist/endpoints/delete/domain.d.ts +0 -17
- package/dist/endpoints/delete/domain.js +0 -36
- package/dist/endpoints/delete/job.d.ts +0 -19
- package/dist/endpoints/delete/job.js +0 -36
- package/dist/endpoints/delete/project.d.ts +0 -17
- package/dist/endpoints/delete/project.js +0 -36
- package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
- package/dist/endpoints/delete/registryCredentials.js +0 -36
- package/dist/endpoints/delete/secret.d.ts +0 -19
- package/dist/endpoints/delete/secret.js +0 -36
- package/dist/endpoints/delete/secretLink.d.ts +0 -21
- package/dist/endpoints/delete/secretLink.js +0 -36
- package/dist/endpoints/delete/service.d.ts +0 -19
- package/dist/endpoints/delete/service.js +0 -36
- package/dist/endpoints/delete/subdomain.d.ts +0 -19
- package/dist/endpoints/delete/subdomain.js +0 -36
- package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
- package/dist/endpoints/get/addon/backup/download.js +0 -36
- package/dist/endpoints/get/addon/backup.d.ts +0 -46
- package/dist/endpoints/get/addon/backup.js +0 -36
- package/dist/endpoints/get/addon/backups.d.ts +0 -54
- package/dist/endpoints/get/addon/backups.js +0 -40
- package/dist/endpoints/get/addon/containers.d.ts +0 -40
- package/dist/endpoints/get/addon/containers.js +0 -40
- package/dist/endpoints/get/addon/credentials.d.ts +0 -24
- package/dist/endpoints/get/addon/credentials.js +0 -36
- package/dist/endpoints/get/addon/types.d.ts +0 -48
- package/dist/endpoints/get/addon/types.js +0 -36
- package/dist/endpoints/get/addon/version.d.ts +0 -53
- package/dist/endpoints/get/addon/version.js +0 -36
- package/dist/endpoints/get/addon.d.ts +0 -69
- package/dist/endpoints/get/addon.js +0 -36
- package/dist/endpoints/get/dnsId.d.ts +0 -15
- package/dist/endpoints/get/dnsId.js +0 -36
- package/dist/endpoints/get/domain.d.ts +0 -33
- package/dist/endpoints/get/domain.js +0 -36
- package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/job/buildArguments.js +0 -36
- package/dist/endpoints/get/job/builds.d.ts +0 -50
- package/dist/endpoints/get/job/builds.js +0 -39
- package/dist/endpoints/get/job/containers.d.ts +0 -40
- package/dist/endpoints/get/job/containers.js +0 -40
- package/dist/endpoints/get/job/deployment.d.ts +0 -51
- package/dist/endpoints/get/job/deployment.js +0 -36
- package/dist/endpoints/get/job/environment.d.ts +0 -24
- package/dist/endpoints/get/job/environment.js +0 -40
- package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
- package/dist/endpoints/get/job/environmentDetails.js +0 -36
- package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/job/healthChecks.js +0 -36
- package/dist/endpoints/get/job/run.d.ts +0 -42
- package/dist/endpoints/get/job/run.js +0 -36
- package/dist/endpoints/get/job/runs.d.ts +0 -52
- package/dist/endpoints/get/job/runs.js +0 -39
- package/dist/endpoints/get/job.d.ts +0 -86
- package/dist/endpoints/get/job.js +0 -36
- package/dist/endpoints/get/project.d.ts +0 -72
- package/dist/endpoints/get/project.js +0 -36
- package/dist/endpoints/get/registryCredentials.d.ts +0 -34
- package/dist/endpoints/get/registryCredentials.js +0 -36
- package/dist/endpoints/get/secret.d.ts +0 -55
- package/dist/endpoints/get/secret.js +0 -39
- package/dist/endpoints/get/secretDetails.d.ts +0 -63
- package/dist/endpoints/get/secretDetails.js +0 -36
- package/dist/endpoints/get/secretLink.d.ts +0 -44
- package/dist/endpoints/get/secretLink.js +0 -36
- package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
- package/dist/endpoints/get/service/buildArguments.js +0 -36
- package/dist/endpoints/get/service/builds.d.ts +0 -50
- package/dist/endpoints/get/service/builds.js +0 -40
- package/dist/endpoints/get/service/containers.d.ts +0 -40
- package/dist/endpoints/get/service/containers.js +0 -40
- package/dist/endpoints/get/service/deployment.d.ts +0 -51
- package/dist/endpoints/get/service/deployment.js +0 -36
- package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
- package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
- package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
- package/dist/endpoints/get/service/environmentVariables.js +0 -40
- package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
- package/dist/endpoints/get/service/healthChecks.js +0 -36
- package/dist/endpoints/get/service/ports.d.ts +0 -35
- package/dist/endpoints/get/service/ports.js +0 -36
- package/dist/endpoints/get/service.d.ts +0 -103
- package/dist/endpoints/get/service.js +0 -36
- package/dist/endpoints/get/subdomain.d.ts +0 -30
- package/dist/endpoints/get/subdomain.js +0 -36
- package/dist/endpoints/import/addon/backup.d.ts +0 -31
- package/dist/endpoints/import/addon/backup.js +0 -36
- package/dist/endpoints/list/addons.d.ts +0 -45
- package/dist/endpoints/list/addons.js +0 -39
- package/dist/endpoints/list/domains.d.ts +0 -34
- package/dist/endpoints/list/domains.js +0 -39
- package/dist/endpoints/list/jobs.d.ts +0 -44
- package/dist/endpoints/list/jobs.js +0 -39
- package/dist/endpoints/list/plans.d.ts +0 -30
- package/dist/endpoints/list/plans.js +0 -36
- package/dist/endpoints/list/projects.d.ts +0 -32
- package/dist/endpoints/list/projects.js +0 -39
- package/dist/endpoints/list/regions.d.ts +0 -18
- package/dist/endpoints/list/regions.js +0 -36
- package/dist/endpoints/list/registryCredentials.d.ts +0 -41
- package/dist/endpoints/list/registryCredentials.js +0 -39
- package/dist/endpoints/list/secrets.d.ts +0 -52
- package/dist/endpoints/list/secrets.js +0 -39
- package/dist/endpoints/list/services.d.ts +0 -44
- package/dist/endpoints/list/services.js +0 -39
- package/dist/endpoints/list/vcs.d.ts +0 -51
- package/dist/endpoints/list/vcs.js +0 -36
- package/dist/endpoints/pause/addon.d.ts +0 -19
- package/dist/endpoints/pause/addon.js +0 -36
- package/dist/endpoints/pause/service.d.ts +0 -19
- package/dist/endpoints/pause/service.js +0 -36
- package/dist/endpoints/restart/addon.d.ts +0 -19
- package/dist/endpoints/restart/addon.js +0 -36
- package/dist/endpoints/restart/service.d.ts +0 -19
- package/dist/endpoints/restart/service.js +0 -36
- package/dist/endpoints/restore/addon/backup.d.ts +0 -21
- package/dist/endpoints/restore/addon/backup.js +0 -36
- package/dist/endpoints/resume/addon.d.ts +0 -19
- package/dist/endpoints/resume/addon.js +0 -36
- package/dist/endpoints/resume/service.d.ts +0 -24
- package/dist/endpoints/resume/service.js +0 -36
- package/dist/endpoints/scale/addon.d.ts +0 -28
- package/dist/endpoints/scale/addon.js +0 -36
- package/dist/endpoints/scale/service.d.ts +0 -26
- package/dist/endpoints/scale/service.js +0 -36
- package/dist/endpoints/start/job/build.d.ts +0 -37
- package/dist/endpoints/start/job/build.js +0 -36
- package/dist/endpoints/start/job/run.d.ts +0 -37
- package/dist/endpoints/start/job/run.js +0 -36
- package/dist/endpoints/start/service/build.d.ts +0 -41
- package/dist/endpoints/start/service/build.js +0 -36
- package/dist/endpoints/unassign/subdomain.d.ts +0 -19
- package/dist/endpoints/unassign/subdomain.js +0 -36
- package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
- package/dist/endpoints/update/addon/networkSettings.js +0 -36
- package/dist/endpoints/update/addon/security.d.ts +0 -29
- package/dist/endpoints/update/addon/security.js +0 -36
- package/dist/endpoints/update/addon/version.d.ts +0 -24
- package/dist/endpoints/update/addon/version.js +0 -36
- package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/job/buildArguments.js +0 -36
- package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/job/cmdOverride.js +0 -36
- package/dist/endpoints/update/job/deployment.d.ts +0 -37
- package/dist/endpoints/update/job/deployment.js +0 -36
- package/dist/endpoints/update/job/environment.d.ts +0 -24
- package/dist/endpoints/update/job/environment.js +0 -36
- package/dist/endpoints/update/job/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/job/healthChecks.js +0 -36
- package/dist/endpoints/update/job/settings.d.ts +0 -30
- package/dist/endpoints/update/job/settings.js +0 -36
- package/dist/endpoints/update/registryCredentials.d.ts +0 -31
- package/dist/endpoints/update/registryCredentials.js +0 -36
- package/dist/endpoints/update/secret.d.ts +0 -54
- package/dist/endpoints/update/secret.js +0 -36
- package/dist/endpoints/update/secretLink.d.ts +0 -40
- package/dist/endpoints/update/secretLink.js +0 -36
- package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
- package/dist/endpoints/update/service/buildArguments.js +0 -36
- package/dist/endpoints/update/service/buildOptions.d.ts +0 -52
- package/dist/endpoints/update/service/buildOptions.js +0 -36
- package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
- package/dist/endpoints/update/service/cmdOverride.js +0 -36
- package/dist/endpoints/update/service/deployment.d.ts +0 -37
- package/dist/endpoints/update/service/deployment.js +0 -36
- package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
- package/dist/endpoints/update/service/environmentVariables.js +0 -36
- package/dist/endpoints/update/service/healthChecks.d.ts +0 -45
- package/dist/endpoints/update/service/healthChecks.js +0 -36
- package/dist/endpoints/update/service/ports.d.ts +0 -55
- package/dist/endpoints/update/service/ports.js +0 -36
- package/dist/endpoints/verify/domain.d.ts +0 -17
- package/dist/endpoints/verify/domain.js +0 -36
- package/dist/endpoints/verify/subdomain.d.ts +0 -19
- package/dist/endpoints/verify/subdomain.js +0 -36
- package/dist/port-forward/client/api-helper.d.ts +0 -30
- package/dist/port-forward/client/api-helper.js +0 -102
- package/dist/port-forward/client/atomic-write.d.ts +0 -3
- package/dist/port-forward/client/atomic-write.js +0 -95
- package/dist/port-forward/client/host-file-ast.d.ts +0 -52
- package/dist/port-forward/client/host-file-ast.js +0 -279
- package/dist/port-forward/client/host-file.d.ts +0 -26
- package/dist/port-forward/client/host-file.js +0 -226
- package/dist/port-forward/client/loopback.d.ts +0 -4
- package/dist/port-forward/client/loopback.js +0 -219
- package/dist/port-forward/client/port-forwarder.d.ts +0 -86
- package/dist/port-forward/client/port-forwarder.js +0 -593
- package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
- package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
- package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
- package/dist/port-forward/client/port-tunnel-udp.js +0 -147
- package/dist/port-forward/client/port-tunnel.d.ts +0 -32
- package/dist/port-forward/client/port-tunnel.js +0 -2
- package/dist/port-forward/client/promise-mutex.d.ts +0 -4
- package/dist/port-forward/client/promise-mutex.js +0 -62
- package/dist/utils.d.ts +0 -8
- package/dist/utils.js +0 -97
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetServiceResult = {
|
|
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
|
-
/** Type of the service (combined, build or deployment) Example: "combined" */
|
|
15
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
16
|
-
/** The time the service was created. Example: "2021-01-20T11:19:53.175Z" */
|
|
17
|
-
'createdAt': string;
|
|
18
|
-
/** Whether Continuous Integration is disabled */
|
|
19
|
-
'disabledCI': boolean;
|
|
20
|
-
/** Whether Continuous Deployment is disabled */
|
|
21
|
-
'disabledCD': boolean;
|
|
22
|
-
'billing': {
|
|
23
|
-
/** ID of the billing plan used by this service Example: "nf-compute-20" */
|
|
24
|
-
'deploymentPlan': string;
|
|
25
|
-
};
|
|
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
|
-
'deployment'?: {
|
|
43
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
44
|
-
'region'?: string;
|
|
45
|
-
/** Number of instances/replicas running Example: 1 */
|
|
46
|
-
'instances'?: number;
|
|
47
|
-
/** Data about a deployment from an external registry. */
|
|
48
|
-
'external'?: {
|
|
49
|
-
/** Path of the external image excluding the hostname */
|
|
50
|
-
'imagePath': string;
|
|
51
|
-
/** Registry provider hosting the external image */
|
|
52
|
-
'registryProvider': 'dockerhub' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
53
|
-
/** Does the image require authentication */
|
|
54
|
-
'privateImage': boolean;
|
|
55
|
-
};
|
|
56
|
-
'internal'?: {
|
|
57
|
-
/** Full identifier of deployed entity Example: "/example-user/default-project/example-service" */
|
|
58
|
-
'appId': string;
|
|
59
|
-
/** Database ID of deployed entity Example: "5f3bd676b84798d54472d1cc" */
|
|
60
|
-
'nfObjectId': string;
|
|
61
|
-
/** Type of deployed entity Example: "service" */
|
|
62
|
-
'nfObjectType': 'service';
|
|
63
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
64
|
-
'repository': string;
|
|
65
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
66
|
-
'branch': string;
|
|
67
|
-
/** Commit SHA to be deployed. 'latest' means the latest commit is automatically being deployed. Example: "latest" */
|
|
68
|
-
'buildSHA': string;
|
|
69
|
-
/** Currently deployed commit SHA. If buildSHA is set to 'latest', this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
70
|
-
'deployedSHA': string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
'buildConfiguration'?: {
|
|
74
|
-
'branchRestrictions': string[];
|
|
75
|
-
'prRestrictions': string[];
|
|
76
|
-
};
|
|
77
|
-
'buildEngineConfiguration'?: {
|
|
78
|
-
/** The build engine used. Example: "buildpack" */
|
|
79
|
-
'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
80
|
-
'buildpack'?: {
|
|
81
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
82
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
83
|
-
/** Array of custom Buildpacks used. */
|
|
84
|
-
'buildpackLocators'?: string[];
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export declare type GetServiceCall = (opts: GetServiceRequest) => Promise<ApiCallResponse<GetServiceResult>>;
|
|
89
|
-
export declare type GetServiceRequest = {
|
|
90
|
-
parameters: GetServiceParameters;
|
|
91
|
-
};
|
|
92
|
-
export declare type GetServiceParameters = {
|
|
93
|
-
/** ID of the project */ 'projectId': string;
|
|
94
|
-
/** ID of the service */
|
|
95
|
-
'serviceId': string;
|
|
96
|
-
};
|
|
97
|
-
/** Gets information about the given service. */
|
|
98
|
-
export declare class GetServiceEndpoint extends GetApiEndpoint<GetServiceRequest, GetServiceResult> {
|
|
99
|
-
description: string;
|
|
100
|
-
withAuth: boolean;
|
|
101
|
-
endpointUrl: (opts: GetServiceRequest) => string;
|
|
102
|
-
body: () => undefined;
|
|
103
|
-
}
|
|
@@ -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.GetServiceEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Gets information about the given service. */
|
|
22
|
-
var GetServiceEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetServiceEndpoint, _super);
|
|
24
|
-
function GetServiceEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets information about the given service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetServiceEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetServiceEndpoint = GetServiceEndpoint;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type GetSubdomainResult = {
|
|
4
|
-
/** The record type to use for the DNS record to verify the subdomain - always CNAME for subdomains. Example: "CNAME" */
|
|
5
|
-
'recordType': string;
|
|
6
|
-
/** The subdomain. Example: "site" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** The full domain name with subdomain Example: "site.example.com" */
|
|
9
|
-
'fullName': string;
|
|
10
|
-
/** The content to set the DNS record to Example: "site.example.com.user-1234.dns.northflank.app" */
|
|
11
|
-
'content': string;
|
|
12
|
-
/** Whether the subdomain has been verified successfully and can be used. Example: true */
|
|
13
|
-
'verified': boolean;
|
|
14
|
-
};
|
|
15
|
-
export declare type GetSubdomainCall = (opts: GetSubdomainRequest) => Promise<ApiCallResponse<GetSubdomainResult>>;
|
|
16
|
-
export declare type GetSubdomainRequest = {
|
|
17
|
-
parameters: GetSubdomainParameters;
|
|
18
|
-
};
|
|
19
|
-
export declare type GetSubdomainParameters = {
|
|
20
|
-
/** Name of the domain */ 'domain': string;
|
|
21
|
-
/** Name of the subdomain */
|
|
22
|
-
'subdomain': string;
|
|
23
|
-
};
|
|
24
|
-
/** Gets details about the given subdomain */
|
|
25
|
-
export declare class GetSubdomainEndpoint extends GetApiEndpoint<GetSubdomainRequest, GetSubdomainResult> {
|
|
26
|
-
description: string;
|
|
27
|
-
withAuth: boolean;
|
|
28
|
-
endpointUrl: (opts: GetSubdomainRequest) => string;
|
|
29
|
-
body: () => undefined;
|
|
30
|
-
}
|
|
@@ -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.GetSubdomainEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Gets details about the given subdomain */
|
|
22
|
-
var GetSubdomainEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(GetSubdomainEndpoint, _super);
|
|
24
|
-
function GetSubdomainEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets details about the given subdomain';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/domains/" + opts.parameters.domain + "/subdomains/" + opts.parameters.subdomain;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return GetSubdomainEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.GetSubdomainEndpoint = GetSubdomainEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type ImportAddonBackupResult = any;
|
|
4
|
-
export declare type ImportAddonBackupCall = (opts: ImportAddonBackupRequest) => Promise<ApiCallResponse<ImportAddonBackupResult>>;
|
|
5
|
-
export declare type ImportAddonBackupRequest = {
|
|
6
|
-
parameters: ImportAddonBackupParameters;
|
|
7
|
-
data: ImportAddonBackupData;
|
|
8
|
-
};
|
|
9
|
-
export declare type ImportAddonBackupParameters = {
|
|
10
|
-
/** ID of the project */ 'projectId': string;
|
|
11
|
-
/** ID of the addon */
|
|
12
|
-
'addonId': string;
|
|
13
|
-
};
|
|
14
|
-
export declare type ImportAddonBackupData = {
|
|
15
|
-
/** The name of the backup. If not provided, a default name will be generated containing the current date. Example: "Example Backup" */
|
|
16
|
-
'name'?: string;
|
|
17
|
-
/** A database connection string. Example: "mongodb://mongodb0.example.com:27017" */
|
|
18
|
-
'connectionString': string;
|
|
19
|
-
} | {
|
|
20
|
-
/** The name of the backup. If not provided, a default name will be generated containing the current date. Example: "Example Backup" */
|
|
21
|
-
'name'?: string;
|
|
22
|
-
/** A url pointing to an existing backup stored as a GNU zip (.gz) file. Example: "https://example.com/backup.db.gz" */
|
|
23
|
-
'importUrl': string;
|
|
24
|
-
};
|
|
25
|
-
/** Imports a database from an external archive or existing live database. */
|
|
26
|
-
export declare class ImportAddonBackupEndpoint extends PostApiEndpoint<ImportAddonBackupRequest, ImportAddonBackupResult> {
|
|
27
|
-
description: string;
|
|
28
|
-
withAuth: boolean;
|
|
29
|
-
endpointUrl: (opts: ImportAddonBackupRequest) => string;
|
|
30
|
-
body: (payload: ImportAddonBackupRequest) => string;
|
|
31
|
-
}
|
|
@@ -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.ImportAddonBackupEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Imports a database from an external archive or existing live database. */
|
|
22
|
-
var ImportAddonBackupEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ImportAddonBackupEndpoint, _super);
|
|
24
|
-
function ImportAddonBackupEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Imports a database from an external archive or existing live database.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/import";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return ImportAddonBackupEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.ImportAddonBackupEndpoint = ImportAddonBackupEndpoint;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type ListAddonsResult = {
|
|
4
|
-
/** An array of addons. */
|
|
5
|
-
'addons': {
|
|
6
|
-
/** Identifier for the addon. Example: "example-addon" */
|
|
7
|
-
'id': string;
|
|
8
|
-
/** Addon name. Example: "Example Addon" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** Full identifier for the addon. Example: "/example-user/default-project/example-job" */
|
|
11
|
-
'appId': string;
|
|
12
|
-
/** A short description of the addon. Example: "This is the addon description" */
|
|
13
|
-
'description'?: string;
|
|
14
|
-
/** Details about the addon's specifications. */
|
|
15
|
-
'spec': {
|
|
16
|
-
/** The type of the addon Example: "mongodb" */
|
|
17
|
-
'type': string;
|
|
18
|
-
};
|
|
19
|
-
/** The current state of the addon. Example: "running" */
|
|
20
|
-
'status': 'preDeployment' | 'triggerAllocation' | 'allocating' | 'postDeployment' | 'running' | 'paused' | 'scaling' | 'upgrading' | 'backup' | 'restore' | 'failed' | 'deleting' | 'deleted';
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
export declare type ListAddonsCall = (opts: ListAddonsRequest) => Promise<ApiCallResponse<ListAddonsResult>>;
|
|
24
|
-
export declare type ListAddonsRequest = {
|
|
25
|
-
parameters: ListAddonsParameters;
|
|
26
|
-
options?: ListAddonsOptions;
|
|
27
|
-
};
|
|
28
|
-
export declare type ListAddonsParameters = {
|
|
29
|
-
/** ID of the project */ 'projectId': string;
|
|
30
|
-
};
|
|
31
|
-
export declare type ListAddonsOptions = {
|
|
32
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
33
|
-
'per_page'?: number;
|
|
34
|
-
/** The page number to access. */
|
|
35
|
-
'page'?: number;
|
|
36
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
37
|
-
'cursor'?: string;
|
|
38
|
-
};
|
|
39
|
-
/** Gets a list of addons belonging to the project */
|
|
40
|
-
export declare class ListAddonsEndpoint extends GetApiEndpoint<ListAddonsRequest, ListAddonsResult> {
|
|
41
|
-
description: string;
|
|
42
|
-
withAuth: boolean;
|
|
43
|
-
endpointUrl: (opts: ListAddonsRequest) => string;
|
|
44
|
-
body: () => undefined;
|
|
45
|
-
}
|
|
@@ -1,39 +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.ListAddonsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Gets a list of addons belonging to the project */
|
|
22
|
-
var ListAddonsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ListAddonsEndpoint, _super);
|
|
24
|
-
function ListAddonsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets a list of addons belonging to the project';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons" + optionStr;
|
|
33
|
-
};
|
|
34
|
-
_this.body = function () { return undefined; };
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
return ListAddonsEndpoint;
|
|
38
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
39
|
-
exports.ListAddonsEndpoint = ListAddonsEndpoint;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type ListDomainsResult = {
|
|
4
|
-
/** A list of domains registered to this account. */
|
|
5
|
-
'domains': {
|
|
6
|
-
/** The domain name. Example: "example.com" */
|
|
7
|
-
'name': string;
|
|
8
|
-
/** The status of the domain verification. Example: "verified" */
|
|
9
|
-
'status': 'pending' | 'verified';
|
|
10
|
-
/** The hostname to add to your domain's DNS records as a TXT record to verify the domain. Example: "nfverify1608026055" */
|
|
11
|
-
'hostname': string;
|
|
12
|
-
/** The token to add as the content of the TXT record to verify the domain. Example: "e596987b52855a4a773ef580ce2985d7746b37ce8b2a443d20fa27b913d8f57" */
|
|
13
|
-
'token': string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
-
export declare type ListDomainsCall = (opts: ListDomainsRequest) => Promise<ApiCallResponse<ListDomainsResult>>;
|
|
17
|
-
export declare type ListDomainsRequest = {
|
|
18
|
-
options?: ListDomainsOptions;
|
|
19
|
-
};
|
|
20
|
-
export declare type ListDomainsOptions = {
|
|
21
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
22
|
-
'per_page'?: number;
|
|
23
|
-
/** The page number to access. */
|
|
24
|
-
'page'?: number;
|
|
25
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
26
|
-
'cursor'?: string;
|
|
27
|
-
};
|
|
28
|
-
/** Lists available domains */
|
|
29
|
-
export declare class ListDomainsEndpoint extends GetApiEndpoint<ListDomainsRequest, ListDomainsResult> {
|
|
30
|
-
description: string;
|
|
31
|
-
withAuth: boolean;
|
|
32
|
-
endpointUrl: (opts: ListDomainsRequest) => string;
|
|
33
|
-
body: () => undefined;
|
|
34
|
-
}
|
|
@@ -1,39 +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.ListDomainsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Lists available domains */
|
|
22
|
-
var ListDomainsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ListDomainsEndpoint, _super);
|
|
24
|
-
function ListDomainsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Lists available domains';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return "/v1/domains" + optionStr;
|
|
33
|
-
};
|
|
34
|
-
_this.body = function () { return undefined; };
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
return ListDomainsEndpoint;
|
|
38
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
39
|
-
exports.ListDomainsEndpoint = ListDomainsEndpoint;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type ListJobsResult = {
|
|
4
|
-
/** An array of job objects. */
|
|
5
|
-
'jobs': {
|
|
6
|
-
/** Identifier for the job Example: "example-job" */
|
|
7
|
-
'id': string;
|
|
8
|
-
/** Full identifier used for job deployment Example: "/example-user/default-project/example-job" */
|
|
9
|
-
'appId': string;
|
|
10
|
-
/** Job name Example: "Example Job" */
|
|
11
|
-
'name': string;
|
|
12
|
-
/** A short description of the job Example: "This is the job description" */
|
|
13
|
-
'description'?: string;
|
|
14
|
-
/** Type of the job (manual or cron) Example: "cron" */
|
|
15
|
-
'jobType': 'cron' | 'manual';
|
|
16
|
-
/** Whether Continuous Integration is disabled */
|
|
17
|
-
'disabledCI': boolean;
|
|
18
|
-
/** Whether Continuous Deployment is disabled */
|
|
19
|
-
'disabledCD': boolean;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
export declare type ListJobsCall = (opts: ListJobsRequest) => Promise<ApiCallResponse<ListJobsResult>>;
|
|
23
|
-
export declare type ListJobsRequest = {
|
|
24
|
-
parameters: ListJobsParameters;
|
|
25
|
-
options?: ListJobsOptions;
|
|
26
|
-
};
|
|
27
|
-
export declare type ListJobsParameters = {
|
|
28
|
-
/** ID of the project */ 'projectId': string;
|
|
29
|
-
};
|
|
30
|
-
export declare type ListJobsOptions = {
|
|
31
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
32
|
-
'per_page'?: number;
|
|
33
|
-
/** The page number to access. */
|
|
34
|
-
'page'?: number;
|
|
35
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
36
|
-
'cursor'?: string;
|
|
37
|
-
};
|
|
38
|
-
/** Gets a list of jobs belonging to the project */
|
|
39
|
-
export declare class ListJobsEndpoint extends GetApiEndpoint<ListJobsRequest, ListJobsResult> {
|
|
40
|
-
description: string;
|
|
41
|
-
withAuth: boolean;
|
|
42
|
-
endpointUrl: (opts: ListJobsRequest) => string;
|
|
43
|
-
body: () => undefined;
|
|
44
|
-
}
|
|
@@ -1,39 +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.ListJobsEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Gets a list of jobs belonging to the project */
|
|
22
|
-
var ListJobsEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ListJobsEndpoint, _super);
|
|
24
|
-
function ListJobsEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Gets a list of jobs belonging to the project';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
var _a;
|
|
30
|
-
var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
|
|
31
|
-
var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
|
|
32
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs" + optionStr;
|
|
33
|
-
};
|
|
34
|
-
_this.body = function () { return undefined; };
|
|
35
|
-
return _this;
|
|
36
|
-
}
|
|
37
|
-
return ListJobsEndpoint;
|
|
38
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
39
|
-
exports.ListJobsEndpoint = ListJobsEndpoint;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type ListPlansResult = {
|
|
4
|
-
/** An array of available plans */
|
|
5
|
-
'plans': {
|
|
6
|
-
/** The ID of the plan. Example: "nf-compute-20" */
|
|
7
|
-
'id': string;
|
|
8
|
-
/** The name of the plan. Example: "nf-compute-20" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** The currency code of the currency used by this plan. Example: "usd" */
|
|
11
|
-
'currency': string;
|
|
12
|
-
/** The approximate monthly (30 days) cost of the plan. Example: 4.4 */
|
|
13
|
-
'amountPerMonth': number;
|
|
14
|
-
/** The hourly cost of the plan. Example: 0.0061 */
|
|
15
|
-
'amountPerHour': number;
|
|
16
|
-
/** The CPU resource of the plan, in vCPUs. Example: 0.2 */
|
|
17
|
-
'cpuResource': number;
|
|
18
|
-
/** The memory resource of the plan, in megabytes Example: 512 */
|
|
19
|
-
'ramResource': number;
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
export declare type ListPlansCall = (opts: ListPlansRequest) => Promise<ApiCallResponse<ListPlansResult>>;
|
|
23
|
-
export declare type ListPlansRequest = {};
|
|
24
|
-
/** Lists available billing plans */
|
|
25
|
-
export declare class ListPlansEndpoint extends GetApiEndpoint<ListPlansRequest, ListPlansResult> {
|
|
26
|
-
description: string;
|
|
27
|
-
withAuth: boolean;
|
|
28
|
-
endpointUrl: (opts: ListPlansRequest) => string;
|
|
29
|
-
body: () => undefined;
|
|
30
|
-
}
|
|
@@ -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.ListPlansEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Lists available billing plans */
|
|
22
|
-
var ListPlansEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(ListPlansEndpoint, _super);
|
|
24
|
-
function ListPlansEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Lists available billing plans';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/plans";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return ListPlansEndpoint;
|
|
35
|
-
}(api_endpoint_1.GetApiEndpoint));
|
|
36
|
-
exports.ListPlansEndpoint = ListPlansEndpoint;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, GetApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type ListProjectsResult = {
|
|
4
|
-
/** An array of projects. */
|
|
5
|
-
'projects': {
|
|
6
|
-
/** Identifier for the project. Example: "default-project" */
|
|
7
|
-
'id': string;
|
|
8
|
-
/** The name of the project. Example: "Default Project" */
|
|
9
|
-
'name': string;
|
|
10
|
-
/** A short description of the project. Example: "The project description" */
|
|
11
|
-
'description'?: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
export declare type ListProjectsCall = (opts: ListProjectsRequest) => Promise<ApiCallResponse<ListProjectsResult>>;
|
|
15
|
-
export declare type ListProjectsRequest = {
|
|
16
|
-
options?: ListProjectsOptions;
|
|
17
|
-
};
|
|
18
|
-
export declare type ListProjectsOptions = {
|
|
19
|
-
/** The number of results to display per request. Maximum of 100 results per page. */
|
|
20
|
-
'per_page'?: number;
|
|
21
|
-
/** The page number to access. */
|
|
22
|
-
'page'?: number;
|
|
23
|
-
/** The cursor returned from the previous page of results, used to request the next page. */
|
|
24
|
-
'cursor'?: string;
|
|
25
|
-
};
|
|
26
|
-
/** Lists projects for the authenticated user or team. */
|
|
27
|
-
export declare class ListProjectsEndpoint extends GetApiEndpoint<ListProjectsRequest, ListProjectsResult> {
|
|
28
|
-
description: string;
|
|
29
|
-
withAuth: boolean;
|
|
30
|
-
endpointUrl: (opts: ListProjectsRequest) => string;
|
|
31
|
-
body: () => undefined;
|
|
32
|
-
}
|