@quantcdn/quant-client 3.0.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +148 -18
  2. package/api.ts +24933 -0
  3. package/base.ts +89 -0
  4. package/common.ts +150 -0
  5. package/configuration.ts +115 -0
  6. package/dist/api.d.ts +17980 -2
  7. package/dist/api.js +13594 -16
  8. package/dist/base.d.ts +66 -0
  9. package/dist/base.js +68 -0
  10. package/dist/common.d.ts +65 -0
  11. package/dist/common.js +161 -0
  12. package/dist/configuration.d.ts +91 -0
  13. package/dist/configuration.js +44 -0
  14. package/dist/esm/api.d.ts +17980 -0
  15. package/dist/esm/api.js +13455 -0
  16. package/dist/esm/base.d.ts +66 -0
  17. package/dist/esm/base.js +63 -0
  18. package/dist/esm/common.d.ts +65 -0
  19. package/dist/esm/common.js +149 -0
  20. package/dist/esm/configuration.d.ts +91 -0
  21. package/dist/esm/configuration.js +40 -0
  22. package/dist/esm/examples/basic-usage.d.ts +4 -0
  23. package/dist/esm/examples/basic-usage.js +93 -0
  24. package/dist/esm/index.d.ts +13 -0
  25. package/dist/esm/index.js +15 -0
  26. package/dist/examples/basic-usage.d.ts +4 -0
  27. package/dist/examples/basic-usage.js +95 -0
  28. package/dist/index.d.ts +13 -0
  29. package/dist/index.js +31 -0
  30. package/index.ts +18 -0
  31. package/package.json +44 -22
  32. package/tsconfig.json +18 -0
  33. package/dist/api/apis.d.ts +0 -32
  34. package/dist/api/apis.js +0 -50
  35. package/dist/api/applicationsApi.d.ts +0 -104
  36. package/dist/api/applicationsApi.js +0 -431
  37. package/dist/api/backupManagementApi.d.ts +0 -112
  38. package/dist/api/backupManagementApi.js +0 -464
  39. package/dist/api/commandsApi.d.ts +0 -80
  40. package/dist/api/commandsApi.js +0 -316
  41. package/dist/api/composeApi.d.ts +0 -67
  42. package/dist/api/composeApi.js +0 -240
  43. package/dist/api/containersApi.d.ts +0 -67
  44. package/dist/api/containersApi.js +0 -236
  45. package/dist/api/cronApi.d.ts +0 -151
  46. package/dist/api/cronApi.js +0 -681
  47. package/dist/api/environmentsApi.d.ts +0 -194
  48. package/dist/api/environmentsApi.js +0 -869
  49. package/dist/api/sSHAccessApi.d.ts +0 -50
  50. package/dist/api/sSHAccessApi.js +0 -162
  51. package/dist/api/scalingPolicyApi.d.ts +0 -82
  52. package/dist/api/scalingPolicyApi.js +0 -307
  53. package/dist/api/variablesApi.d.ts +0 -83
  54. package/dist/api/variablesApi.js +0 -313
  55. package/dist/api/volumesApi.d.ts +0 -97
  56. package/dist/api/volumesApi.js +0 -405
  57. package/dist/model/application.d.ts +0 -38
  58. package/dist/model/application.js +0 -93
  59. package/dist/model/command.d.ts +0 -34
  60. package/dist/model/command.js +0 -73
  61. package/dist/model/compose.d.ts +0 -32
  62. package/dist/model/compose.js +0 -58
  63. package/dist/model/configuration.d.ts +0 -26
  64. package/dist/model/configuration.js +0 -30
  65. package/dist/model/container.d.ts +0 -75
  66. package/dist/model/container.js +0 -121
  67. package/dist/model/containerDependsOnInner.d.ts +0 -40
  68. package/dist/model/containerDependsOnInner.js +0 -42
  69. package/dist/model/containerEnvironmentInner.d.ts +0 -32
  70. package/dist/model/containerEnvironmentInner.js +0 -33
  71. package/dist/model/containerHealthCheck.d.ts +0 -47
  72. package/dist/model/containerHealthCheck.js +0 -65
  73. package/dist/model/containerImageReference.d.ts +0 -38
  74. package/dist/model/containerImageReference.js +0 -40
  75. package/dist/model/containerMountPointsInner.d.ts +0 -33
  76. package/dist/model/containerMountPointsInner.js +0 -41
  77. package/dist/model/containerSecretsInner.d.ts +0 -32
  78. package/dist/model/containerSecretsInner.js +0 -33
  79. package/dist/model/createApplicationRequest.d.ts +0 -28
  80. package/dist/model/createApplicationRequest.js +0 -43
  81. package/dist/model/createBackup202Response.d.ts +0 -27
  82. package/dist/model/createBackup202Response.js +0 -38
  83. package/dist/model/createBackupRequest.d.ts +0 -32
  84. package/dist/model/createBackupRequest.js +0 -33
  85. package/dist/model/createCommandRequest.d.ts +0 -25
  86. package/dist/model/createCommandRequest.js +0 -28
  87. package/dist/model/createCronJob422Response.d.ts +0 -26
  88. package/dist/model/createCronJob422Response.js +0 -33
  89. package/dist/model/createCronJobRequest.d.ts +0 -30
  90. package/dist/model/createCronJobRequest.js +0 -56
  91. package/dist/model/createEnvironmentRequest.d.ts +0 -34
  92. package/dist/model/createEnvironmentRequest.js +0 -53
  93. package/dist/model/cron.d.ts +0 -27
  94. package/dist/model/cron.js +0 -38
  95. package/dist/model/cronRun.d.ts +0 -48
  96. package/dist/model/cronRun.js +0 -89
  97. package/dist/model/deleteBackup200Response.d.ts +0 -26
  98. package/dist/model/deleteBackup200Response.js +0 -33
  99. package/dist/model/downloadBackup200Response.d.ts +0 -36
  100. package/dist/model/downloadBackup200Response.js +0 -38
  101. package/dist/model/environment.d.ts +0 -45
  102. package/dist/model/environment.js +0 -103
  103. package/dist/model/getEcrLoginCredentials200Response.d.ts +0 -28
  104. package/dist/model/getEcrLoginCredentials200Response.js +0 -43
  105. package/dist/model/getScalingPolicies200Response.d.ts +0 -26
  106. package/dist/model/getScalingPolicies200Response.js +0 -28
  107. package/dist/model/getSshAccessCredentials200Response.d.ts +0 -34
  108. package/dist/model/getSshAccessCredentials200Response.js +0 -68
  109. package/dist/model/getSshAccessCredentials200ResponseCredentials.d.ts +0 -28
  110. package/dist/model/getSshAccessCredentials200ResponseCredentials.js +0 -43
  111. package/dist/model/listBackups200Response.d.ts +0 -32
  112. package/dist/model/listBackups200Response.js +0 -43
  113. package/dist/model/listBackups200ResponseBackupsInner.d.ts +0 -37
  114. package/dist/model/listBackups200ResponseBackupsInner.js +0 -88
  115. package/dist/model/listBackups422Response.d.ts +0 -25
  116. package/dist/model/listBackups422Response.js +0 -28
  117. package/dist/model/models.d.ts +0 -89
  118. package/dist/model/models.js +0 -387
  119. package/dist/model/scalingPolicy.d.ts +0 -35
  120. package/dist/model/scalingPolicy.js +0 -51
  121. package/dist/model/syncOperation.d.ts +0 -31
  122. package/dist/model/syncOperation.js +0 -58
  123. package/dist/model/syncToEnvironmentRequest.d.ts +0 -25
  124. package/dist/model/syncToEnvironmentRequest.js +0 -28
  125. package/dist/model/updateComposeRequest.d.ts +0 -26
  126. package/dist/model/updateComposeRequest.js +0 -28
  127. package/dist/model/updateCronJobRequest.d.ts +0 -29
  128. package/dist/model/updateCronJobRequest.js +0 -48
  129. package/dist/model/updateEnvironmentComposeRequest.d.ts +0 -26
  130. package/dist/model/updateEnvironmentComposeRequest.js +0 -28
  131. package/dist/model/updateEnvironmentRequest.d.ts +0 -34
  132. package/dist/model/updateEnvironmentRequest.js +0 -38
  133. package/dist/model/updateEnvironmentStateRequest.d.ts +0 -26
  134. package/dist/model/updateEnvironmentStateRequest.js +0 -33
  135. package/dist/model/updateEnvironmentVariableRequest.d.ts +0 -25
  136. package/dist/model/updateEnvironmentVariableRequest.js +0 -28
  137. package/dist/model/validateCompose200Response.d.ts +0 -33
  138. package/dist/model/validateCompose200Response.js +0 -38
  139. package/dist/model/validateCompose422Response.d.ts +0 -25
  140. package/dist/model/validateCompose422Response.js +0 -28
  141. package/dist/model/validateComposeRequest.d.ts +0 -36
  142. package/dist/model/validateComposeRequest.js +0 -38
  143. package/dist/model/variable.d.ts +0 -26
  144. package/dist/model/variable.js +0 -33
  145. package/dist/model/volume.d.ts +0 -32
  146. package/dist/model/volume.js +0 -63
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ /**
3
+ * Basic usage examples for the Quant TypeScript SDK (v4.0 - typescript-axios)
4
+ */
5
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
6
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7
+ return new (P || (P = Promise))(function (resolve, reject) {
8
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
9
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
10
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
11
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
12
+ });
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const __1 = require("..");
16
+ // Create configuration with authentication
17
+ const config = new __1.Configuration({
18
+ basePath: 'https://api.quantcdn.io',
19
+ accessToken: 'YOUR_API_KEY_HERE' // or use apiKey
20
+ });
21
+ // Example 1: List environments
22
+ function listEnvironments() {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const environmentsApi = new __1.EnvironmentsApi(config);
25
+ try {
26
+ const response = yield environmentsApi.listEnvironments('your-org-id', 'your-app-id');
27
+ console.log('Environments:', response.data); // Note: .data for axios
28
+ return response.data;
29
+ }
30
+ catch (error) {
31
+ if (error.response) {
32
+ console.error(`Error ${error.response.status}:`, error.response.data);
33
+ }
34
+ else {
35
+ console.error('Error:', error.message);
36
+ }
37
+ throw error;
38
+ }
39
+ });
40
+ }
41
+ // Example 2: Get application details
42
+ function getApplication() {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ const applicationsApi = new __1.ApplicationsApi(config);
45
+ try {
46
+ const response = yield applicationsApi.getApplication('your-org-id', 'your-app-id');
47
+ console.log('Application:', response.data); // Note: .data for axios
48
+ console.log('Response status:', response.status);
49
+ console.log('Response headers:', response.headers);
50
+ return response.data;
51
+ }
52
+ catch (error) {
53
+ if (error.response) {
54
+ // Server responded with error status
55
+ console.error(`Error ${error.response.status}:`, error.response.data);
56
+ }
57
+ else if (error.request) {
58
+ // Request made but no response
59
+ console.error('No response received');
60
+ }
61
+ else {
62
+ // Error setting up request
63
+ console.error('Error:', error.message);
64
+ }
65
+ throw error;
66
+ }
67
+ });
68
+ }
69
+ // Example 3: With custom axios instance
70
+ const axios_1 = require("axios");
71
+ const customAxios = axios_1.default.create({
72
+ timeout: 30000,
73
+ headers: {
74
+ 'X-Custom-Header': 'value'
75
+ }
76
+ });
77
+ const customConfig = new __1.Configuration({
78
+ basePath: 'https://api.quantcdn.io',
79
+ accessToken: 'YOUR_API_KEY_HERE',
80
+ baseOptions: {
81
+ // Pass custom axios instance options
82
+ timeout: 30000
83
+ }
84
+ });
85
+ // Run examples
86
+ if (require.main === module) {
87
+ console.log('Running Quant SDK examples...\n');
88
+ listEnvironments()
89
+ .then(() => getApplication())
90
+ .then(() => console.log('\n✓ Examples completed'))
91
+ .catch((error) => {
92
+ console.error('\n✗ Examples failed:', error.message);
93
+ process.exit(1);
94
+ });
95
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * QuantCDN API
3
+ * Unified API for QuantCDN Admin and QuantCloud Platform services
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * QuantCDN API
6
+ * Unified API for QuantCDN Admin and QuantCloud Platform services
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);
package/index.ts ADDED
@@ -0,0 +1,18 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * QuantCDN API
5
+ * Unified API for QuantCDN Admin and QuantCloud Platform services
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ export * from "./api";
17
+ export * from "./configuration";
18
+
package/package.json CHANGED
@@ -1,31 +1,53 @@
1
1
  {
2
2
  "name": "@quantcdn/quant-client",
3
- "version": "3.0.4",
4
- "description": "TypeScript client for Quant Cloud API",
5
- "main": "dist/api.js",
6
- "types": "dist/api.d.ts",
7
- "files": [
8
- "dist/**/*"
9
- ],
10
- "scripts": {
11
- "build": "tsc",
12
- "prepare": "npm run build"
3
+ "version": "4.0.0",
4
+ "description": "OpenAPI client for @quantcdn/quant-client",
5
+ "author": "QuantCDN",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/quantcdn/quant-ts-client.git"
13
9
  },
14
10
  "keywords": [
11
+ "axios",
12
+ "typescript",
13
+ "openapi-client",
14
+ "openapi-generator",
15
+ "@quantcdn/quant-client",
15
16
  "quant",
16
- "api",
17
- "client",
18
- "sdk"
17
+ "quantcdn",
18
+ "quantcloud",
19
+ "cdn",
20
+ "edge"
19
21
  ],
20
- "author": "",
21
22
  "license": "MIT",
22
- "devDependencies": {
23
- "typescript": "^4.9.5",
24
- "@types/node": "^18.14.0",
25
- "@types/request": "^2.48.13"
23
+ "main": "./dist/index.js",
24
+ "typings": "./dist/index.d.ts",
25
+ "module": "./dist/esm/index.js",
26
+ "sideEffects": false,
27
+ "scripts": {
28
+ "build": "tsc && tsc -p tsconfig.esm.json",
29
+ "clean": "rm -Rf dist/",
30
+ "test": "npm run test:smoke",
31
+ "test:smoke": "node -e \"const api = require('./dist/index.js'); console.log('✓ SDK loads successfully'); console.log('✓ Exports:', Object.keys(api).length, 'items'); console.log('✓ Configuration available:', typeof api.Configuration); process.exit(0);\"",
32
+ "test:unit": "jest --testMatch=\"**/tests/**/*.test.js\"",
33
+ "test:all": "npm run build && npm run test:smoke && npm run test:unit",
34
+ "prepublishOnly": "npm run clean && npm run build && npm test",
35
+ "validate": "scripts/validate-sdk.sh"
26
36
  },
27
37
  "dependencies": {
28
- "axios": "^1.3.4",
29
- "request": "^2.88.2"
30
- }
31
- }
38
+ "axios": "^1.6.1"
39
+ },
40
+ "devDependencies": {
41
+ "@types/node": "12.11.5 - 12.20.42",
42
+ "typescript": "^4.0 || ^5.0",
43
+ "@types/jest": "^29.5.0",
44
+ "jest": "^29.5.0",
45
+ "ts-jest": "^29.1.0"
46
+ },
47
+ "files": [
48
+ "dist/**/*",
49
+ "*.ts",
50
+ "tsconfig.json",
51
+ "README.md"
52
+ ]
53
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES6",
5
+ "module": "commonjs",
6
+ "noImplicitAny": true,
7
+ "outDir": "dist",
8
+ "rootDir": ".",
9
+ "moduleResolution": "node",
10
+ "typeRoots": [
11
+ "node_modules/@types"
12
+ ]
13
+ },
14
+ "exclude": [
15
+ "dist",
16
+ "node_modules"
17
+ ]
18
+ }
@@ -1,32 +0,0 @@
1
- /// <reference types="node" />
2
- export * from './applicationsApi';
3
- import { ApplicationsApi } from './applicationsApi';
4
- export * from './backupManagementApi';
5
- import { BackupManagementApi } from './backupManagementApi';
6
- export * from './commandsApi';
7
- import { CommandsApi } from './commandsApi';
8
- export * from './composeApi';
9
- import { ComposeApi } from './composeApi';
10
- export * from './containersApi';
11
- import { ContainersApi } from './containersApi';
12
- export * from './cronApi';
13
- import { CronApi } from './cronApi';
14
- export * from './environmentsApi';
15
- import { EnvironmentsApi } from './environmentsApi';
16
- export * from './sSHAccessApi';
17
- import { SSHAccessApi } from './sSHAccessApi';
18
- export * from './scalingPolicyApi';
19
- import { ScalingPolicyApi } from './scalingPolicyApi';
20
- export * from './variablesApi';
21
- import { VariablesApi } from './variablesApi';
22
- export * from './volumesApi';
23
- import { VolumesApi } from './volumesApi';
24
- import * as http from 'http';
25
- export declare class HttpError extends Error {
26
- response: http.IncomingMessage;
27
- body: any;
28
- statusCode?: number | undefined;
29
- constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
30
- }
31
- export { RequestFile } from '../model/models';
32
- export declare const APIS: (typeof ApplicationsApi | typeof BackupManagementApi | typeof CommandsApi | typeof ComposeApi | typeof ContainersApi | typeof CronApi | typeof EnvironmentsApi | typeof SSHAccessApi | typeof ScalingPolicyApi | typeof VariablesApi | typeof VolumesApi)[];
package/dist/api/apis.js DELETED
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.APIS = exports.HttpError = void 0;
18
- __exportStar(require("./applicationsApi"), exports);
19
- const applicationsApi_1 = require("./applicationsApi");
20
- __exportStar(require("./backupManagementApi"), exports);
21
- const backupManagementApi_1 = require("./backupManagementApi");
22
- __exportStar(require("./commandsApi"), exports);
23
- const commandsApi_1 = require("./commandsApi");
24
- __exportStar(require("./composeApi"), exports);
25
- const composeApi_1 = require("./composeApi");
26
- __exportStar(require("./containersApi"), exports);
27
- const containersApi_1 = require("./containersApi");
28
- __exportStar(require("./cronApi"), exports);
29
- const cronApi_1 = require("./cronApi");
30
- __exportStar(require("./environmentsApi"), exports);
31
- const environmentsApi_1 = require("./environmentsApi");
32
- __exportStar(require("./sSHAccessApi"), exports);
33
- const sSHAccessApi_1 = require("./sSHAccessApi");
34
- __exportStar(require("./scalingPolicyApi"), exports);
35
- const scalingPolicyApi_1 = require("./scalingPolicyApi");
36
- __exportStar(require("./variablesApi"), exports);
37
- const variablesApi_1 = require("./variablesApi");
38
- __exportStar(require("./volumesApi"), exports);
39
- const volumesApi_1 = require("./volumesApi");
40
- class HttpError extends Error {
41
- constructor(response, body, statusCode) {
42
- super('HTTP request failed');
43
- this.response = response;
44
- this.body = body;
45
- this.statusCode = statusCode;
46
- this.name = 'HttpError';
47
- }
48
- }
49
- exports.HttpError = HttpError;
50
- exports.APIS = [applicationsApi_1.ApplicationsApi, backupManagementApi_1.BackupManagementApi, commandsApi_1.CommandsApi, composeApi_1.ComposeApi, containersApi_1.ContainersApi, cronApi_1.CronApi, environmentsApi_1.EnvironmentsApi, sSHAccessApi_1.SSHAccessApi, scalingPolicyApi_1.ScalingPolicyApi, variablesApi_1.VariablesApi, volumesApi_1.VolumesApi];
@@ -1,104 +0,0 @@
1
- /**
2
- * QuantCloud API
3
- * QuantCloud API
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /// <reference types="node" />
13
- import http from 'http';
14
- import { Application } from '../model/application';
15
- import { GetEcrLoginCredentials200Response } from '../model/getEcrLoginCredentials200Response';
16
- import { Authentication, Interceptor } from '../model/models';
17
- export declare enum ApplicationsApiApiKeys {
18
- }
19
- export declare class ApplicationsApi {
20
- protected _basePath: string;
21
- protected _defaultHeaders: any;
22
- protected _useQuerystring: boolean;
23
- protected authentications: {
24
- default: Authentication;
25
- };
26
- protected interceptors: Interceptor[];
27
- constructor(basePath?: string);
28
- set useQuerystring(value: boolean);
29
- set basePath(basePath: string);
30
- set defaultHeaders(defaultHeaders: any);
31
- get defaultHeaders(): any;
32
- get basePath(): string;
33
- setDefaultAuthentication(auth: Authentication): void;
34
- setApiKey(key: ApplicationsApiApiKeys, value: string): void;
35
- addInterceptor(interceptor: Interceptor): void;
36
- /**
37
- *
38
- * @summary Create a new application
39
- * @param organisation The organisation ID
40
- * @param application
41
- */
42
- createApplication(organisation: string, application: Application, options?: {
43
- headers: {
44
- [name: string]: string;
45
- };
46
- }): Promise<{
47
- response: http.IncomingMessage;
48
- body: Application;
49
- }>;
50
- /**
51
- *
52
- * @summary Delete an application
53
- * @param organisation The organisation ID
54
- * @param application The application ID
55
- */
56
- deleteApplication(organisation: string, application: string, options?: {
57
- headers: {
58
- [name: string]: string;
59
- };
60
- }): Promise<{
61
- response: http.IncomingMessage;
62
- body?: any;
63
- }>;
64
- /**
65
- *
66
- * @summary Get a single application
67
- * @param organisation The organisation ID
68
- * @param application The application ID
69
- */
70
- getApplication(organisation: string, application: string, options?: {
71
- headers: {
72
- [name: string]: string;
73
- };
74
- }): Promise<{
75
- response: http.IncomingMessage;
76
- body: Application;
77
- }>;
78
- /**
79
- *
80
- * @summary Get ECR login credentials
81
- * @param organisation The organisation ID
82
- */
83
- getEcrLoginCredentials(organisation: string, options?: {
84
- headers: {
85
- [name: string]: string;
86
- };
87
- }): Promise<{
88
- response: http.IncomingMessage;
89
- body: GetEcrLoginCredentials200Response;
90
- }>;
91
- /**
92
- *
93
- * @summary Get all applications for an organisation
94
- * @param organisation The organisation ID
95
- */
96
- listApplications(organisation: string, options?: {
97
- headers: {
98
- [name: string]: string;
99
- };
100
- }): Promise<{
101
- response: http.IncomingMessage;
102
- body: Array<Application>;
103
- }>;
104
- }