@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,166 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type CreateServiceCombinedResult = {
|
|
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: "combined" */
|
|
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
|
-
'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
|
-
'internal'?: {
|
|
48
|
-
/** Full identifier of deployed entity Example: "/example-user/default-project/example-service" */
|
|
49
|
-
'appId': string;
|
|
50
|
-
/** Database ID of deployed entity Example: "5f3bd676b84798d54472d1cc" */
|
|
51
|
-
'nfObjectId': string;
|
|
52
|
-
/** Type of deployed entity Example: "service" */
|
|
53
|
-
'nfObjectType': 'service';
|
|
54
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
55
|
-
'repository': string;
|
|
56
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
57
|
-
'branch': string;
|
|
58
|
-
/** Commit SHA to be deployed. 'latest' means the latest commit is automatically being deployed. Example: "latest" */
|
|
59
|
-
'buildSHA': string;
|
|
60
|
-
/** Currently deployed commit SHA. If buildSHA is set to 'latest', this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
61
|
-
'deployedSHA': string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
'buildEngineConfiguration': {
|
|
65
|
-
/** The build engine used. Example: "buildpack" */
|
|
66
|
-
'builder'?: 'buildpack' | 'kaniko' | 'buildkit';
|
|
67
|
-
'buildpack'?: {
|
|
68
|
-
/** The Buildpack stack used. Example: "HEROKU_20" */
|
|
69
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
70
|
-
/** Array of custom Buildpacks used. */
|
|
71
|
-
'buildpackLocators'?: string[];
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
/** Whether the service will be built immediately Example: true */
|
|
75
|
-
'buildInitiated': boolean;
|
|
76
|
-
} | any;
|
|
77
|
-
export declare type CreateServiceCombinedCall = (opts: CreateServiceCombinedRequest) => Promise<ApiCallResponse<CreateServiceCombinedResult>>;
|
|
78
|
-
export declare type CreateServiceCombinedRequest = {
|
|
79
|
-
parameters: CreateServiceCombinedParameters;
|
|
80
|
-
data: CreateServiceCombinedData;
|
|
81
|
-
};
|
|
82
|
-
export declare type CreateServiceCombinedParameters = {
|
|
83
|
-
/** ID of the project */ 'projectId': string;
|
|
84
|
-
};
|
|
85
|
-
export declare type CreateServiceCombinedData = {
|
|
86
|
-
/** The name of the service. Example: "Example Service" */
|
|
87
|
-
'name': string;
|
|
88
|
-
/** A description of the service. Example: "A service description" */
|
|
89
|
-
'description'?: string;
|
|
90
|
-
'billing': {
|
|
91
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
92
|
-
'deploymentPlan': string;
|
|
93
|
-
};
|
|
94
|
-
'deployment': {
|
|
95
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
96
|
-
'instances': number;
|
|
97
|
-
};
|
|
98
|
-
'ports'?: {
|
|
99
|
-
/** The name used to identify the port. Example: "port-1" */
|
|
100
|
-
'name': string;
|
|
101
|
-
/** The port number. Example: 8080 */
|
|
102
|
-
'internalPort': number;
|
|
103
|
-
/** If true, the port will be exposed publicly. Example: true */
|
|
104
|
-
'public'?: boolean;
|
|
105
|
-
'security'?: {
|
|
106
|
-
/** An array of credentials to access the service. */
|
|
107
|
-
'credentials'?: {
|
|
108
|
-
/** The username to access the service Example: "admin" */
|
|
109
|
-
'username': string;
|
|
110
|
-
/** The password to access the service with this username. Example: "password123" */
|
|
111
|
-
'password': string;
|
|
112
|
-
/** The type of authentication used Example: "basic-auth" */
|
|
113
|
-
'type': 'basic-auth';
|
|
114
|
-
}[];
|
|
115
|
-
/** An array of IP address policies. */
|
|
116
|
-
'policies'?: {
|
|
117
|
-
/** An array of IP addresses used for this rule */
|
|
118
|
-
'addresses': string[];
|
|
119
|
-
/** The action for this rule. Example: "DENY" */
|
|
120
|
-
'action': 'ALLOW' | 'DENY';
|
|
121
|
-
}[];
|
|
122
|
-
};
|
|
123
|
-
/** The protocol to use for the port. Example: "HTTP" */
|
|
124
|
-
'protocol': 'HTTP' | 'TCP' | 'UDP';
|
|
125
|
-
}[];
|
|
126
|
-
'vcsData': {
|
|
127
|
-
/** URL of the Git repo to build. Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
128
|
-
'projectUrl': string;
|
|
129
|
-
/** The VCS provider to use. Example: "github" */
|
|
130
|
-
'projectType': 'bitbucket' | 'gitlab' | 'github' | 'self-hosted';
|
|
131
|
-
/** If projectType is self-hosted, the ID of the self-hosted vcs to use. */
|
|
132
|
-
'vcsId'?: string;
|
|
133
|
-
/** The name of the branch to use. Example: "master" */
|
|
134
|
-
'projectBranch': string;
|
|
135
|
-
};
|
|
136
|
-
'buildSettings': {
|
|
137
|
-
'dockerfile': {
|
|
138
|
-
/** Build engine to use. Defaults to recommended build engine `kaniko` Example: "kaniko" */
|
|
139
|
-
'buildEngine'?: 'kaniko' | 'buildkit';
|
|
140
|
-
/** The file path of the Dockerfile. Example: "/Dockerfile" */
|
|
141
|
-
'dockerFilePath': string;
|
|
142
|
-
/** The working directory of the Dockerfile. Example: "/" */
|
|
143
|
-
'dockerWorkDir': string;
|
|
144
|
-
};
|
|
145
|
-
} | {
|
|
146
|
-
'buildpack': {
|
|
147
|
-
/** Buildpack stack to use. Defaults to recommended stack `HEROKU_20`. Example: "HEROKU_20" */
|
|
148
|
-
'builder'?: 'HEROKU_20' | 'HEROKU_18' | 'GOOGLE_V1' | 'CNB_ALPINE' | 'CNB_BIONIC' | 'PAKETO_TINY';
|
|
149
|
-
/** Array of custom Buildpacks to use. */
|
|
150
|
-
'buildpackLocators'?: string[];
|
|
151
|
-
/** The working directory to build in. Example: "/" */
|
|
152
|
-
'buildContext'?: string;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
/** An object containing the environment variables to set for the service Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
156
|
-
'environment'?: any;
|
|
157
|
-
/** An object containing the build arguments to set for the service Example: {"ARGUMENT_1":"abcdef","ARGUMENT_2":"12345"} */
|
|
158
|
-
'buildArguments'?: any;
|
|
159
|
-
};
|
|
160
|
-
/** Creates a new combined service. */
|
|
161
|
-
export declare class CreateServiceCombinedEndpoint extends PostApiEndpoint<CreateServiceCombinedRequest, CreateServiceCombinedResult> {
|
|
162
|
-
description: string;
|
|
163
|
-
withAuth: boolean;
|
|
164
|
-
endpointUrl: (opts: CreateServiceCombinedRequest) => string;
|
|
165
|
-
body: (payload: CreateServiceCombinedRequest) => string;
|
|
166
|
-
}
|
|
@@ -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.CreateServiceCombinedEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Creates a new combined service. */
|
|
22
|
-
var CreateServiceCombinedEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(CreateServiceCombinedEndpoint, _super);
|
|
24
|
-
function CreateServiceCombinedEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Creates a new combined service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/combined";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return CreateServiceCombinedEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.CreateServiceCombinedEndpoint = CreateServiceCombinedEndpoint;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, PostApiEndpoint } from '../../../api-endpoint';
|
|
3
|
-
export declare type CreateServiceDeploymentResult = {
|
|
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: "deployment" */
|
|
25
|
-
'serviceType': 'combined' | 'build' | 'deployment';
|
|
26
|
-
'deployment'?: {
|
|
27
|
-
/** Region where this service is deployed and/or built Example: "europe-west" */
|
|
28
|
-
'region'?: string;
|
|
29
|
-
/** Number of instances/replicas running Example: 1 */
|
|
30
|
-
'instances'?: number;
|
|
31
|
-
/** Data about a deployment from an external registry. */
|
|
32
|
-
'external'?: {
|
|
33
|
-
/** Path of the external image excluding the hostname */
|
|
34
|
-
'imagePath': string;
|
|
35
|
-
/** Registry provider hosting the external image */
|
|
36
|
-
'registryProvider': 'dockerhub' | 'gcr-eu' | 'gcr-us' | 'gitlab' | 'github' | 'custom';
|
|
37
|
-
/** Does the image require authentication */
|
|
38
|
-
'privateImage': boolean;
|
|
39
|
-
};
|
|
40
|
-
'internal'?: {
|
|
41
|
-
/** Full identifier of deployed entity Example: "/example-user/default-project/example-service" */
|
|
42
|
-
'appId': string;
|
|
43
|
-
/** Database ID of deployed entity Example: "5f3bd676b84798d54472d1cc" */
|
|
44
|
-
'nfObjectId': string;
|
|
45
|
-
/** Type of deployed entity Example: "service" */
|
|
46
|
-
'nfObjectType': 'service';
|
|
47
|
-
/** URL of the repository being deployed Example: "https://github.com/northflank/gatsby-with-northflank" */
|
|
48
|
-
'repository': string;
|
|
49
|
-
/** Branch of the repo being deployed Example: "master" */
|
|
50
|
-
'branch': string;
|
|
51
|
-
/** Commit SHA to be deployed. 'latest' means the latest commit is automatically being deployed. Example: "latest" */
|
|
52
|
-
'buildSHA': string;
|
|
53
|
-
/** Currently deployed commit SHA. If buildSHA is set to 'latest', this will show the SHA of the latest commit. Example: "262ed9817b3cad5142fbceabe0c9e371e390d616" */
|
|
54
|
-
'deployedSHA': string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
} | any;
|
|
58
|
-
export declare type CreateServiceDeploymentCall = (opts: CreateServiceDeploymentRequest) => Promise<ApiCallResponse<CreateServiceDeploymentResult>>;
|
|
59
|
-
export declare type CreateServiceDeploymentRequest = {
|
|
60
|
-
parameters: CreateServiceDeploymentParameters;
|
|
61
|
-
data: CreateServiceDeploymentData;
|
|
62
|
-
};
|
|
63
|
-
export declare type CreateServiceDeploymentParameters = {
|
|
64
|
-
/** ID of the project */ 'projectId': string;
|
|
65
|
-
};
|
|
66
|
-
export declare type CreateServiceDeploymentData = {
|
|
67
|
-
/** The name of the service. Example: "Example Service" */
|
|
68
|
-
'name': string;
|
|
69
|
-
/** A description of the service. Example: "A service description" */
|
|
70
|
-
'description'?: string;
|
|
71
|
-
'billing': {
|
|
72
|
-
/** The ID of the deployment plan to use. Example: "nf-compute-20" */
|
|
73
|
-
'deploymentPlan': string;
|
|
74
|
-
};
|
|
75
|
-
/** Deployment type */
|
|
76
|
-
'deployment': {
|
|
77
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
78
|
-
'instances': number;
|
|
79
|
-
'internal': {
|
|
80
|
-
/** Internal ID of the build service to deploy Example: "example-build-service" */
|
|
81
|
-
'id': string;
|
|
82
|
-
/** Branch to deploy Example: "master" */
|
|
83
|
-
'branch'?: string;
|
|
84
|
-
/** Commit SHA to deploy, or 'latest' to deploy the most recent commit Example: "latest" */
|
|
85
|
-
'buildSHA'?: string;
|
|
86
|
-
};
|
|
87
|
-
} | {
|
|
88
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
89
|
-
'instances': number;
|
|
90
|
-
'external': {
|
|
91
|
-
/** Path of the external image Example: "nginx:latest" */
|
|
92
|
-
'imagePath': string;
|
|
93
|
-
/** ID of the saved credentials to use to access this external image. Example: "example-credentials" */
|
|
94
|
-
'credentials'?: string;
|
|
95
|
-
};
|
|
96
|
-
} | {
|
|
97
|
-
/** The number of instances to run the service on. Example: 1 */
|
|
98
|
-
'instances': number;
|
|
99
|
-
};
|
|
100
|
-
'ports'?: {
|
|
101
|
-
/** The name used to identify the port. Example: "port-1" */
|
|
102
|
-
'name': string;
|
|
103
|
-
/** The port number. Example: 8080 */
|
|
104
|
-
'internalPort': number;
|
|
105
|
-
/** If true, the port will be exposed publicly. Example: true */
|
|
106
|
-
'public'?: boolean;
|
|
107
|
-
'security'?: {
|
|
108
|
-
/** An array of credentials to access the service. */
|
|
109
|
-
'credentials'?: {
|
|
110
|
-
/** The username to access the service Example: "admin" */
|
|
111
|
-
'username': string;
|
|
112
|
-
/** The password to access the service with this username. Example: "password123" */
|
|
113
|
-
'password': string;
|
|
114
|
-
/** The type of authentication used Example: "basic-auth" */
|
|
115
|
-
'type': 'basic-auth';
|
|
116
|
-
}[];
|
|
117
|
-
/** An array of IP address policies. */
|
|
118
|
-
'policies'?: {
|
|
119
|
-
/** An array of IP addresses used for this rule */
|
|
120
|
-
'addresses': string[];
|
|
121
|
-
/** The action for this rule. Example: "DENY" */
|
|
122
|
-
'action': 'ALLOW' | 'DENY';
|
|
123
|
-
}[];
|
|
124
|
-
};
|
|
125
|
-
/** The protocol to use for the port. Example: "HTTP" */
|
|
126
|
-
'protocol': 'HTTP' | 'TCP' | 'UDP';
|
|
127
|
-
}[];
|
|
128
|
-
/** An object containing the environment variables to set for the service Example: {"VARIABLE_1":"abcdef","VARIABLE_2":"12345"} */
|
|
129
|
-
'environment'?: any;
|
|
130
|
-
};
|
|
131
|
-
/** Creates a new deployment service. */
|
|
132
|
-
export declare class CreateServiceDeploymentEndpoint extends PostApiEndpoint<CreateServiceDeploymentRequest, CreateServiceDeploymentResult> {
|
|
133
|
-
description: string;
|
|
134
|
-
withAuth: boolean;
|
|
135
|
-
endpointUrl: (opts: CreateServiceDeploymentRequest) => string;
|
|
136
|
-
body: (payload: CreateServiceDeploymentRequest) => string;
|
|
137
|
-
}
|
|
@@ -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.CreateServiceDeploymentEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../../api-endpoint");
|
|
21
|
-
/** Creates a new deployment service. */
|
|
22
|
-
var CreateServiceDeploymentEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(CreateServiceDeploymentEndpoint, _super);
|
|
24
|
-
function CreateServiceDeploymentEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Creates a new deployment service.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/services/deployment";
|
|
30
|
-
};
|
|
31
|
-
_this.body = function (payload) { return JSON.stringify(payload.data); };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return CreateServiceDeploymentEndpoint;
|
|
35
|
-
}(api_endpoint_1.PostApiEndpoint));
|
|
36
|
-
exports.CreateServiceDeploymentEndpoint = CreateServiceDeploymentEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteAddonResult = any;
|
|
4
|
-
export declare type DeleteAddonCall = (opts: DeleteAddonRequest) => Promise<ApiCallResponse<DeleteAddonResult>>;
|
|
5
|
-
export declare type DeleteAddonRequest = {
|
|
6
|
-
parameters: DeleteAddonParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteAddonParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the addon */
|
|
11
|
-
'addonId': string;
|
|
12
|
-
};
|
|
13
|
-
/** Deletes the given addon. */
|
|
14
|
-
export declare class DeleteAddonEndpoint extends DeleteApiEndpoint<DeleteAddonRequest, DeleteAddonResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: DeleteAddonRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -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.DeleteAddonEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes the given addon. */
|
|
22
|
-
var DeleteAddonEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteAddonEndpoint, _super);
|
|
24
|
-
function DeleteAddonEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes the given addon.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteAddonEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteAddonEndpoint = DeleteAddonEndpoint;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteBackupResult = any;
|
|
4
|
-
export declare type DeleteBackupCall = (opts: DeleteBackupRequest) => Promise<ApiCallResponse<DeleteBackupResult>>;
|
|
5
|
-
export declare type DeleteBackupRequest = {
|
|
6
|
-
parameters: DeleteBackupParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteBackupParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the addon */
|
|
11
|
-
'addonId': string;
|
|
12
|
-
/** ID of the backup */
|
|
13
|
-
'backupId': string;
|
|
14
|
-
};
|
|
15
|
-
/** Deletes a given backup */
|
|
16
|
-
export declare class DeleteBackupEndpoint extends DeleteApiEndpoint<DeleteBackupRequest, DeleteBackupResult> {
|
|
17
|
-
description: string;
|
|
18
|
-
withAuth: boolean;
|
|
19
|
-
endpointUrl: (opts: DeleteBackupRequest) => string;
|
|
20
|
-
body: () => undefined;
|
|
21
|
-
}
|
|
@@ -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.DeleteBackupEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes a given backup */
|
|
22
|
-
var DeleteBackupEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteBackupEndpoint, _super);
|
|
24
|
-
function DeleteBackupEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes a given backup';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups/" + opts.parameters.backupId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteBackupEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteBackupEndpoint = DeleteBackupEndpoint;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteDomainResult = any;
|
|
4
|
-
export declare type DeleteDomainCall = (opts: DeleteDomainRequest) => Promise<ApiCallResponse<DeleteDomainResult>>;
|
|
5
|
-
export declare type DeleteDomainRequest = {
|
|
6
|
-
parameters: DeleteDomainParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteDomainParameters = {
|
|
9
|
-
/** Name of the domain */ 'domain': string;
|
|
10
|
-
};
|
|
11
|
-
/** Deletes a domain and each of its registered subdomains. */
|
|
12
|
-
export declare class DeleteDomainEndpoint extends DeleteApiEndpoint<DeleteDomainRequest, DeleteDomainResult> {
|
|
13
|
-
description: string;
|
|
14
|
-
withAuth: boolean;
|
|
15
|
-
endpointUrl: (opts: DeleteDomainRequest) => string;
|
|
16
|
-
body: () => undefined;
|
|
17
|
-
}
|
|
@@ -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.DeleteDomainEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes a domain and each of its registered subdomains. */
|
|
22
|
-
var DeleteDomainEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteDomainEndpoint, _super);
|
|
24
|
-
function DeleteDomainEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes a domain and each of its registered subdomains.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/domains/" + opts.parameters.domain;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteDomainEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteDomainEndpoint = DeleteDomainEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteJobResult = any;
|
|
4
|
-
export declare type DeleteJobCall = (opts: DeleteJobRequest) => Promise<ApiCallResponse<DeleteJobResult>>;
|
|
5
|
-
export declare type DeleteJobRequest = {
|
|
6
|
-
parameters: DeleteJobParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteJobParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
/** ID of the job */
|
|
11
|
-
'jobId': string;
|
|
12
|
-
};
|
|
13
|
-
/** Deletes the given job. */
|
|
14
|
-
export declare class DeleteJobEndpoint extends DeleteApiEndpoint<DeleteJobRequest, DeleteJobResult> {
|
|
15
|
-
description: string;
|
|
16
|
-
withAuth: boolean;
|
|
17
|
-
endpointUrl: (opts: DeleteJobRequest) => string;
|
|
18
|
-
body: () => undefined;
|
|
19
|
-
}
|
|
@@ -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.DeleteJobEndpoint = void 0;
|
|
20
|
-
var api_endpoint_1 = require("../../api-endpoint");
|
|
21
|
-
/** Deletes the given job. */
|
|
22
|
-
var DeleteJobEndpoint = /** @class */ (function (_super) {
|
|
23
|
-
__extends(DeleteJobEndpoint, _super);
|
|
24
|
-
function DeleteJobEndpoint() {
|
|
25
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
-
_this.description = 'Deletes the given job.';
|
|
27
|
-
_this.withAuth = true;
|
|
28
|
-
_this.endpointUrl = function (opts) {
|
|
29
|
-
return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId;
|
|
30
|
-
};
|
|
31
|
-
_this.body = function () { return undefined; };
|
|
32
|
-
return _this;
|
|
33
|
-
}
|
|
34
|
-
return DeleteJobEndpoint;
|
|
35
|
-
}(api_endpoint_1.DeleteApiEndpoint));
|
|
36
|
-
exports.DeleteJobEndpoint = DeleteJobEndpoint;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** WARNING: Autogenerated Code - do not modify! */
|
|
2
|
-
import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
|
|
3
|
-
export declare type DeleteProjectResult = any | any;
|
|
4
|
-
export declare type DeleteProjectCall = (opts: DeleteProjectRequest) => Promise<ApiCallResponse<DeleteProjectResult>>;
|
|
5
|
-
export declare type DeleteProjectRequest = {
|
|
6
|
-
parameters: DeleteProjectParameters;
|
|
7
|
-
};
|
|
8
|
-
export declare type DeleteProjectParameters = {
|
|
9
|
-
/** ID of the project */ 'projectId': string;
|
|
10
|
-
};
|
|
11
|
-
/** Delete the given project. Fails if the project isn't empty. */
|
|
12
|
-
export declare class DeleteProjectEndpoint extends DeleteApiEndpoint<DeleteProjectRequest, DeleteProjectResult> {
|
|
13
|
-
description: string;
|
|
14
|
-
withAuth: boolean;
|
|
15
|
-
endpointUrl: (opts: DeleteProjectRequest) => string;
|
|
16
|
-
body: () => undefined;
|
|
17
|
-
}
|