airborne-server-sdk 0.24.4 → 0.26.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/Airborne.js +2 -0
- package/dist-cjs/commands/ListFileGroupsCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +45 -3
- package/dist-es/Airborne.js +2 -0
- package/dist-es/commands/ListFileGroupsCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +42 -2
- package/dist-types/Airborne.d.ts +7 -0
- package/dist-types/AirborneClient.d.ts +3 -2
- package/dist-types/commands/ListFileGroupsCommand.d.ts +114 -0
- package/dist-types/commands/ListFilesCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +140 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/Airborne.js
CHANGED
|
@@ -12,6 +12,7 @@ const DeleteDimensionCommand_1 = require("./commands/DeleteDimensionCommand");
|
|
|
12
12
|
const GetReleaseCommand_1 = require("./commands/GetReleaseCommand");
|
|
13
13
|
const GetUserCommand_1 = require("./commands/GetUserCommand");
|
|
14
14
|
const ListDimensionsCommand_1 = require("./commands/ListDimensionsCommand");
|
|
15
|
+
const ListFileGroupsCommand_1 = require("./commands/ListFileGroupsCommand");
|
|
15
16
|
const ListFilesCommand_1 = require("./commands/ListFilesCommand");
|
|
16
17
|
const ListOrganisationsCommand_1 = require("./commands/ListOrganisationsCommand");
|
|
17
18
|
const ListPackagesCommand_1 = require("./commands/ListPackagesCommand");
|
|
@@ -34,6 +35,7 @@ const commands = {
|
|
|
34
35
|
GetReleaseCommand: GetReleaseCommand_1.GetReleaseCommand,
|
|
35
36
|
GetUserCommand: GetUserCommand_1.GetUserCommand,
|
|
36
37
|
ListDimensionsCommand: ListDimensionsCommand_1.ListDimensionsCommand,
|
|
38
|
+
ListFileGroupsCommand: ListFileGroupsCommand_1.ListFileGroupsCommand,
|
|
37
39
|
ListFilesCommand: ListFilesCommand_1.ListFilesCommand,
|
|
38
40
|
ListOrganisationsCommand: ListOrganisationsCommand_1.ListOrganisationsCommand,
|
|
39
41
|
ListPackagesCommand: ListPackagesCommand_1.ListPackagesCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFileGroupsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListFileGroupsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Airborne", "ListFileGroups", {})
|
|
15
|
+
.n("AirborneClient", "ListFileGroupsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListFileGroupsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListFileGroupsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListFileGroupsCommand = ListFileGroupsCommand;
|
|
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./DeleteDimensionCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./GetReleaseCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./GetUserCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./ListDimensionsCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./ListFileGroupsCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./ListFilesCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./ListOrganisationsCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./ListPackagesCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UploadFileCommand = exports.de_UpdateDimensionCommand = exports.de_ServeReleaseV2Command = exports.de_ServeReleaseCommand = exports.de_RequestOrganisationCommand = exports.de_PostLoginCommand = exports.de_ListReleasesCommand = exports.de_ListPackagesCommand = exports.de_ListOrganisationsCommand = exports.de_ListFilesCommand = exports.de_ListDimensionsCommand = exports.de_GetUserCommand = exports.de_GetReleaseCommand = exports.de_DeleteDimensionCommand = exports.de_CreateReleaseCommand = exports.de_CreatePackageCommand = exports.de_CreateOrganisationCommand = exports.de_CreateFileCommand = exports.de_CreateDimensionCommand = exports.de_CreateApplicationCommand = exports.se_UploadFileCommand = exports.se_UpdateDimensionCommand = exports.se_ServeReleaseV2Command = exports.se_ServeReleaseCommand = exports.se_RequestOrganisationCommand = exports.se_PostLoginCommand = exports.se_ListReleasesCommand = exports.se_ListPackagesCommand = exports.se_ListOrganisationsCommand = exports.se_ListFilesCommand = exports.se_ListDimensionsCommand = exports.se_GetUserCommand = exports.se_GetReleaseCommand = exports.se_DeleteDimensionCommand = exports.se_CreateReleaseCommand = exports.se_CreatePackageCommand = exports.se_CreateOrganisationCommand = exports.se_CreateFileCommand = exports.se_CreateDimensionCommand = exports.se_CreateApplicationCommand = void 0;
|
|
3
|
+
exports.de_UploadFileCommand = exports.de_UpdateDimensionCommand = exports.de_ServeReleaseV2Command = exports.de_ServeReleaseCommand = exports.de_RequestOrganisationCommand = exports.de_PostLoginCommand = exports.de_ListReleasesCommand = exports.de_ListPackagesCommand = exports.de_ListOrganisationsCommand = exports.de_ListFilesCommand = exports.de_ListFileGroupsCommand = exports.de_ListDimensionsCommand = exports.de_GetUserCommand = exports.de_GetReleaseCommand = exports.de_DeleteDimensionCommand = exports.de_CreateReleaseCommand = exports.de_CreatePackageCommand = exports.de_CreateOrganisationCommand = exports.de_CreateFileCommand = exports.de_CreateDimensionCommand = exports.de_CreateApplicationCommand = exports.se_UploadFileCommand = exports.se_UpdateDimensionCommand = exports.se_ServeReleaseV2Command = exports.se_ServeReleaseCommand = exports.se_RequestOrganisationCommand = exports.se_PostLoginCommand = exports.se_ListReleasesCommand = exports.se_ListPackagesCommand = exports.se_ListOrganisationsCommand = exports.se_ListFilesCommand = exports.se_ListFileGroupsCommand = exports.se_ListDimensionsCommand = exports.se_GetUserCommand = exports.se_GetReleaseCommand = exports.se_DeleteDimensionCommand = exports.se_CreateReleaseCommand = exports.se_CreatePackageCommand = exports.se_CreateOrganisationCommand = exports.se_CreateFileCommand = exports.se_CreateDimensionCommand = exports.se_CreateApplicationCommand = void 0;
|
|
4
4
|
const AirborneServiceException_1 = require("../models/AirborneServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -183,6 +183,27 @@ const se_ListDimensionsCommand = async (input, context) => {
|
|
|
183
183
|
return b.build();
|
|
184
184
|
};
|
|
185
185
|
exports.se_ListDimensionsCommand = se_ListDimensionsCommand;
|
|
186
|
+
const se_ListFileGroupsCommand = async (input, context) => {
|
|
187
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
188
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
189
|
+
[_xo]: input[_o],
|
|
190
|
+
[_xa]: input[_a],
|
|
191
|
+
});
|
|
192
|
+
b.bp("/api/file/groups");
|
|
193
|
+
const query = (0, smithy_client_1.map)({
|
|
194
|
+
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
195
|
+
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
196
|
+
[_s]: [, input[_s]],
|
|
197
|
+
[_t]: [, input[_t]],
|
|
198
|
+
});
|
|
199
|
+
let body;
|
|
200
|
+
b.m("GET")
|
|
201
|
+
.h(headers)
|
|
202
|
+
.q(query)
|
|
203
|
+
.b(body);
|
|
204
|
+
return b.build();
|
|
205
|
+
};
|
|
206
|
+
exports.se_ListFileGroupsCommand = se_ListFileGroupsCommand;
|
|
186
207
|
const se_ListFilesCommand = async (input, context) => {
|
|
187
208
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
188
209
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -194,6 +215,7 @@ const se_ListFilesCommand = async (input, context) => {
|
|
|
194
215
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
195
216
|
[_pp]: [() => input.per_page !== void 0, () => (input[_pp].toString())],
|
|
196
217
|
[_s]: [, input[_s]],
|
|
218
|
+
[_t]: [, input[_t]],
|
|
197
219
|
});
|
|
198
220
|
let body;
|
|
199
221
|
b.m("GET")
|
|
@@ -352,7 +374,7 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
352
374
|
b.bp("/api/file/upload");
|
|
353
375
|
const query = (0, smithy_client_1.map)({
|
|
354
376
|
[_fp]: [, (0, smithy_client_1.expectNonNull)(input[_fp], `file_path`)],
|
|
355
|
-
[
|
|
377
|
+
[_ta]: [, input[_ta]],
|
|
356
378
|
});
|
|
357
379
|
let body;
|
|
358
380
|
if (input.file !== undefined) {
|
|
@@ -546,6 +568,25 @@ const de_ListDimensionsCommand = async (output, context) => {
|
|
|
546
568
|
return contents;
|
|
547
569
|
};
|
|
548
570
|
exports.de_ListDimensionsCommand = de_ListDimensionsCommand;
|
|
571
|
+
const de_ListFileGroupsCommand = async (output, context) => {
|
|
572
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const contents = (0, smithy_client_1.map)({
|
|
576
|
+
$metadata: deserializeMetadata(output),
|
|
577
|
+
});
|
|
578
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
579
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
580
|
+
'count': smithy_client_1.expectInt32,
|
|
581
|
+
'groups': smithy_client_1._json,
|
|
582
|
+
'page': smithy_client_1.expectInt32,
|
|
583
|
+
'total_items': smithy_client_1.expectInt32,
|
|
584
|
+
'total_pages': smithy_client_1.expectInt32,
|
|
585
|
+
});
|
|
586
|
+
Object.assign(contents, doc);
|
|
587
|
+
return contents;
|
|
588
|
+
};
|
|
589
|
+
exports.de_ListFileGroupsCommand = de_ListFileGroupsCommand;
|
|
549
590
|
const de_ListFilesCommand = async (output, context) => {
|
|
550
591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
592
|
return de_CommandError(output, context);
|
|
@@ -957,7 +998,8 @@ const _p = "page";
|
|
|
957
998
|
const _pp = "per_page";
|
|
958
999
|
const _s = "search";
|
|
959
1000
|
const _st = "status";
|
|
960
|
-
const _t = "
|
|
1001
|
+
const _t = "tags";
|
|
1002
|
+
const _ta = "tag";
|
|
961
1003
|
const _xa = "x-application";
|
|
962
1004
|
const _xc = "x-checksum";
|
|
963
1005
|
const _xd = "x-dimension";
|
package/dist-es/Airborne.js
CHANGED
|
@@ -9,6 +9,7 @@ import { DeleteDimensionCommand, } from "./commands/DeleteDimensionCommand";
|
|
|
9
9
|
import { GetReleaseCommand, } from "./commands/GetReleaseCommand";
|
|
10
10
|
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
11
11
|
import { ListDimensionsCommand, } from "./commands/ListDimensionsCommand";
|
|
12
|
+
import { ListFileGroupsCommand, } from "./commands/ListFileGroupsCommand";
|
|
12
13
|
import { ListFilesCommand, } from "./commands/ListFilesCommand";
|
|
13
14
|
import { ListOrganisationsCommand, } from "./commands/ListOrganisationsCommand";
|
|
14
15
|
import { ListPackagesCommand, } from "./commands/ListPackagesCommand";
|
|
@@ -31,6 +32,7 @@ const commands = {
|
|
|
31
32
|
GetReleaseCommand,
|
|
32
33
|
GetUserCommand,
|
|
33
34
|
ListDimensionsCommand,
|
|
35
|
+
ListFileGroupsCommand,
|
|
34
36
|
ListFilesCommand,
|
|
35
37
|
ListOrganisationsCommand,
|
|
36
38
|
ListPackagesCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListFileGroupsCommand, se_ListFileGroupsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class ListFileGroupsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Airborne", "ListFileGroups", {})
|
|
12
|
+
.n("AirborneClient", "ListFileGroupsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListFileGroupsCommand)
|
|
15
|
+
.de(de_ListFileGroupsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./DeleteDimensionCommand";
|
|
|
8
8
|
export * from "./GetReleaseCommand";
|
|
9
9
|
export * from "./GetUserCommand";
|
|
10
10
|
export * from "./ListDimensionsCommand";
|
|
11
|
+
export * from "./ListFileGroupsCommand";
|
|
11
12
|
export * from "./ListFilesCommand";
|
|
12
13
|
export * from "./ListOrganisationsCommand";
|
|
13
14
|
export * from "./ListPackagesCommand";
|
|
@@ -170,6 +170,26 @@ export const se_ListDimensionsCommand = async (input, context) => {
|
|
|
170
170
|
.b(body);
|
|
171
171
|
return b.build();
|
|
172
172
|
};
|
|
173
|
+
export const se_ListFileGroupsCommand = async (input, context) => {
|
|
174
|
+
const b = rb(input, context);
|
|
175
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
176
|
+
[_xo]: input[_o],
|
|
177
|
+
[_xa]: input[_a],
|
|
178
|
+
});
|
|
179
|
+
b.bp("/api/file/groups");
|
|
180
|
+
const query = map({
|
|
181
|
+
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
182
|
+
[_c]: [() => input.count !== void 0, () => (input[_c].toString())],
|
|
183
|
+
[_s]: [, input[_s]],
|
|
184
|
+
[_t]: [, input[_t]],
|
|
185
|
+
});
|
|
186
|
+
let body;
|
|
187
|
+
b.m("GET")
|
|
188
|
+
.h(headers)
|
|
189
|
+
.q(query)
|
|
190
|
+
.b(body);
|
|
191
|
+
return b.build();
|
|
192
|
+
};
|
|
173
193
|
export const se_ListFilesCommand = async (input, context) => {
|
|
174
194
|
const b = rb(input, context);
|
|
175
195
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -181,6 +201,7 @@ export const se_ListFilesCommand = async (input, context) => {
|
|
|
181
201
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
182
202
|
[_pp]: [() => input.per_page !== void 0, () => (input[_pp].toString())],
|
|
183
203
|
[_s]: [, input[_s]],
|
|
204
|
+
[_t]: [, input[_t]],
|
|
184
205
|
});
|
|
185
206
|
let body;
|
|
186
207
|
b.m("GET")
|
|
@@ -330,7 +351,7 @@ export const se_UploadFileCommand = async (input, context) => {
|
|
|
330
351
|
b.bp("/api/file/upload");
|
|
331
352
|
const query = map({
|
|
332
353
|
[_fp]: [, __expectNonNull(input[_fp], `file_path`)],
|
|
333
|
-
[
|
|
354
|
+
[_ta]: [, input[_ta]],
|
|
334
355
|
});
|
|
335
356
|
let body;
|
|
336
357
|
if (input.file !== undefined) {
|
|
@@ -513,6 +534,24 @@ export const de_ListDimensionsCommand = async (output, context) => {
|
|
|
513
534
|
Object.assign(contents, doc);
|
|
514
535
|
return contents;
|
|
515
536
|
};
|
|
537
|
+
export const de_ListFileGroupsCommand = async (output, context) => {
|
|
538
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
539
|
+
return de_CommandError(output, context);
|
|
540
|
+
}
|
|
541
|
+
const contents = map({
|
|
542
|
+
$metadata: deserializeMetadata(output),
|
|
543
|
+
});
|
|
544
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
545
|
+
const doc = take(data, {
|
|
546
|
+
'count': __expectInt32,
|
|
547
|
+
'groups': _json,
|
|
548
|
+
'page': __expectInt32,
|
|
549
|
+
'total_items': __expectInt32,
|
|
550
|
+
'total_pages': __expectInt32,
|
|
551
|
+
});
|
|
552
|
+
Object.assign(contents, doc);
|
|
553
|
+
return contents;
|
|
554
|
+
};
|
|
516
555
|
export const de_ListFilesCommand = async (output, context) => {
|
|
517
556
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
557
|
return de_CommandError(output, context);
|
|
@@ -914,7 +953,8 @@ const _p = "page";
|
|
|
914
953
|
const _pp = "per_page";
|
|
915
954
|
const _s = "search";
|
|
916
955
|
const _st = "status";
|
|
917
|
-
const _t = "
|
|
956
|
+
const _t = "tags";
|
|
957
|
+
const _ta = "tag";
|
|
918
958
|
const _xa = "x-application";
|
|
919
959
|
const _xc = "x-checksum";
|
|
920
960
|
const _xd = "x-dimension";
|
package/dist-types/Airborne.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { DeleteDimensionCommandInput, DeleteDimensionCommandOutput } from "./com
|
|
|
9
9
|
import { GetReleaseCommandInput, GetReleaseCommandOutput } from "./commands/GetReleaseCommand";
|
|
10
10
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
11
11
|
import { ListDimensionsCommandInput, ListDimensionsCommandOutput } from "./commands/ListDimensionsCommand";
|
|
12
|
+
import { ListFileGroupsCommandInput, ListFileGroupsCommandOutput } from "./commands/ListFileGroupsCommand";
|
|
12
13
|
import { ListFilesCommandInput, ListFilesCommandOutput } from "./commands/ListFilesCommand";
|
|
13
14
|
import { ListOrganisationsCommandInput, ListOrganisationsCommandOutput } from "./commands/ListOrganisationsCommand";
|
|
14
15
|
import { ListPackagesCommandInput, ListPackagesCommandOutput } from "./commands/ListPackagesCommand";
|
|
@@ -82,6 +83,12 @@ export interface Airborne {
|
|
|
82
83
|
listDimensions(args: ListDimensionsCommandInput, options?: __HttpHandlerOptions): Promise<ListDimensionsCommandOutput>;
|
|
83
84
|
listDimensions(args: ListDimensionsCommandInput, cb: (err: any, data?: ListDimensionsCommandOutput) => void): void;
|
|
84
85
|
listDimensions(args: ListDimensionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDimensionsCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link ListFileGroupsCommand}
|
|
88
|
+
*/
|
|
89
|
+
listFileGroups(args: ListFileGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListFileGroupsCommandOutput>;
|
|
90
|
+
listFileGroups(args: ListFileGroupsCommandInput, cb: (err: any, data?: ListFileGroupsCommandOutput) => void): void;
|
|
91
|
+
listFileGroups(args: ListFileGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFileGroupsCommandOutput) => void): void;
|
|
85
92
|
/**
|
|
86
93
|
* @see {@link ListFilesCommand}
|
|
87
94
|
*/
|
|
@@ -9,6 +9,7 @@ import { DeleteDimensionCommandInput, DeleteDimensionCommandOutput } from "./com
|
|
|
9
9
|
import { GetReleaseCommandInput, GetReleaseCommandOutput } from "./commands/GetReleaseCommand";
|
|
10
10
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
11
11
|
import { ListDimensionsCommandInput, ListDimensionsCommandOutput } from "./commands/ListDimensionsCommand";
|
|
12
|
+
import { ListFileGroupsCommandInput, ListFileGroupsCommandOutput } from "./commands/ListFileGroupsCommand";
|
|
12
13
|
import { ListFilesCommandInput, ListFilesCommandOutput } from "./commands/ListFilesCommand";
|
|
13
14
|
import { ListOrganisationsCommandInput, ListOrganisationsCommandOutput } from "./commands/ListOrganisationsCommand";
|
|
14
15
|
import { ListPackagesCommandInput, ListPackagesCommandOutput } from "./commands/ListPackagesCommand";
|
|
@@ -31,11 +32,11 @@ export { __Client };
|
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
34
|
-
export type ServiceInputTypes = CreateApplicationCommandInput | CreateDimensionCommandInput | CreateFileCommandInput | CreateOrganisationCommandInput | CreatePackageCommandInput | CreateReleaseCommandInput | DeleteDimensionCommandInput | GetReleaseCommandInput | GetUserCommandInput | ListDimensionsCommandInput | ListFilesCommandInput | ListOrganisationsCommandInput | ListPackagesCommandInput | ListReleasesCommandInput | PostLoginCommandInput | RequestOrganisationCommandInput | ServeReleaseCommandInput | ServeReleaseV2CommandInput | UpdateDimensionCommandInput | UploadFileCommandInput;
|
|
35
|
+
export type ServiceInputTypes = CreateApplicationCommandInput | CreateDimensionCommandInput | CreateFileCommandInput | CreateOrganisationCommandInput | CreatePackageCommandInput | CreateReleaseCommandInput | DeleteDimensionCommandInput | GetReleaseCommandInput | GetUserCommandInput | ListDimensionsCommandInput | ListFileGroupsCommandInput | ListFilesCommandInput | ListOrganisationsCommandInput | ListPackagesCommandInput | ListReleasesCommandInput | PostLoginCommandInput | RequestOrganisationCommandInput | ServeReleaseCommandInput | ServeReleaseV2CommandInput | UpdateDimensionCommandInput | UploadFileCommandInput;
|
|
35
36
|
/**
|
|
36
37
|
* @public
|
|
37
38
|
*/
|
|
38
|
-
export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDimensionCommandOutput | CreateFileCommandOutput | CreateOrganisationCommandOutput | CreatePackageCommandOutput | CreateReleaseCommandOutput | DeleteDimensionCommandOutput | GetReleaseCommandOutput | GetUserCommandOutput | ListDimensionsCommandOutput | ListFilesCommandOutput | ListOrganisationsCommandOutput | ListPackagesCommandOutput | ListReleasesCommandOutput | PostLoginCommandOutput | RequestOrganisationCommandOutput | ServeReleaseCommandOutput | ServeReleaseV2CommandOutput | UpdateDimensionCommandOutput | UploadFileCommandOutput;
|
|
39
|
+
export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDimensionCommandOutput | CreateFileCommandOutput | CreateOrganisationCommandOutput | CreatePackageCommandOutput | CreateReleaseCommandOutput | DeleteDimensionCommandOutput | GetReleaseCommandOutput | GetUserCommandOutput | ListDimensionsCommandOutput | ListFileGroupsCommandOutput | ListFilesCommandOutput | ListOrganisationsCommandOutput | ListPackagesCommandOutput | ListReleasesCommandOutput | PostLoginCommandOutput | RequestOrganisationCommandOutput | ServeReleaseCommandOutput | ServeReleaseV2CommandOutput | UpdateDimensionCommandOutput | UploadFileCommandOutput;
|
|
39
40
|
/**
|
|
40
41
|
* @public
|
|
41
42
|
*/
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AirborneClient";
|
|
2
|
+
import { ListFileGroupsRequest, ListFileGroupsResponse } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListFileGroupsCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListFileGroupsCommandInput extends ListFileGroupsRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListFileGroupsCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListFileGroupsCommandOutput extends ListFileGroupsResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListFileGroupsCommand_base: {
|
|
25
|
+
new (input: ListFileGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFileGroupsCommandInput, ListFileGroupsCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListFileGroupsCommandInput): import("@smithy/smithy-client").CommandImpl<ListFileGroupsCommandInput, ListFileGroupsCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* List file groups operation
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AirborneClient, ListFileGroupsCommand } from "airborne-server-sdk"; // ES Modules import
|
|
35
|
+
* // const { AirborneClient, ListFileGroupsCommand } = require("airborne-server-sdk"); // CommonJS import
|
|
36
|
+
* const client = new AirborneClient(config);
|
|
37
|
+
* const input = { // ListFileGroupsRequest
|
|
38
|
+
* page: Number("int"),
|
|
39
|
+
* count: Number("int"),
|
|
40
|
+
* search: "STRING_VALUE",
|
|
41
|
+
* tags: "STRING_VALUE",
|
|
42
|
+
* organisation: "STRING_VALUE", // required
|
|
43
|
+
* application: "STRING_VALUE", // required
|
|
44
|
+
* };
|
|
45
|
+
* const command = new ListFileGroupsCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // { // ListFileGroupsResponse
|
|
48
|
+
* // groups: [ // FileGroupList // required
|
|
49
|
+
* // { // FileGroup
|
|
50
|
+
* // file_path: "STRING_VALUE", // required
|
|
51
|
+
* // total_versions: Number("int"), // required
|
|
52
|
+
* // versions: [ // FileGroupVersionList // required
|
|
53
|
+
* // { // FileGroupVersion
|
|
54
|
+
* // version: Number("int"), // required
|
|
55
|
+
* // url: "STRING_VALUE", // required
|
|
56
|
+
* // size: Number("int"), // required
|
|
57
|
+
* // created_at: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // ],
|
|
60
|
+
* // tags: [ // FileGroupTagList // required
|
|
61
|
+
* // { // FileGroupTag
|
|
62
|
+
* // tag: "STRING_VALUE", // required
|
|
63
|
+
* // version: Number("int"), // required
|
|
64
|
+
* // },
|
|
65
|
+
* // ],
|
|
66
|
+
* // },
|
|
67
|
+
* // ],
|
|
68
|
+
* // total_items: Number("int"), // required
|
|
69
|
+
* // total_pages: Number("int"), // required
|
|
70
|
+
* // page: Number("int"), // required
|
|
71
|
+
* // count: Number("int"), // required
|
|
72
|
+
* // };
|
|
73
|
+
*
|
|
74
|
+
* ```
|
|
75
|
+
*
|
|
76
|
+
* @param ListFileGroupsCommandInput - {@link ListFileGroupsCommandInput}
|
|
77
|
+
* @returns {@link ListFileGroupsCommandOutput}
|
|
78
|
+
* @see {@link ListFileGroupsCommandInput} for command's `input` shape.
|
|
79
|
+
* @see {@link ListFileGroupsCommandOutput} for command's `response` shape.
|
|
80
|
+
* @see {@link AirborneClientResolvedConfig | config} for AirborneClient's `config` shape.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Unauthorized} (client fault)
|
|
83
|
+
* Unauthorized error
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link BadRequestError} (client fault)
|
|
86
|
+
* Bad request error
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link NotFoundError} (client fault)
|
|
89
|
+
* Not found error
|
|
90
|
+
*
|
|
91
|
+
* @throws {@link InternalServerError} (server fault)
|
|
92
|
+
* Internal server error
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link AirborneServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Airborne service.</p>
|
|
98
|
+
*
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class ListFileGroupsCommand extends ListFileGroupsCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: ListFileGroupsRequest;
|
|
107
|
+
output: ListFileGroupsResponse;
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: ListFileGroupsCommandInput;
|
|
111
|
+
output: ListFileGroupsCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./DeleteDimensionCommand";
|
|
|
8
8
|
export * from "./GetReleaseCommand";
|
|
9
9
|
export * from "./GetUserCommand";
|
|
10
10
|
export * from "./ListDimensionsCommand";
|
|
11
|
+
export * from "./ListFileGroupsCommand";
|
|
11
12
|
export * from "./ListFilesCommand";
|
|
12
13
|
export * from "./ListOrganisationsCommand";
|
|
13
14
|
export * from "./ListPackagesCommand";
|
|
@@ -639,6 +639,141 @@ export interface ListDimensionsResponse {
|
|
|
639
639
|
total_items?: number | undefined;
|
|
640
640
|
data?: (DimensionResponse)[] | undefined;
|
|
641
641
|
}
|
|
642
|
+
/**
|
|
643
|
+
* List file groups request
|
|
644
|
+
* @public
|
|
645
|
+
*/
|
|
646
|
+
export interface ListFileGroupsRequest {
|
|
647
|
+
/**
|
|
648
|
+
* Page number for pagination
|
|
649
|
+
* @public
|
|
650
|
+
*/
|
|
651
|
+
page?: number | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* Number of groups per page
|
|
654
|
+
* @public
|
|
655
|
+
*/
|
|
656
|
+
count?: number | undefined;
|
|
657
|
+
/**
|
|
658
|
+
* Search query to filter files by path
|
|
659
|
+
* @public
|
|
660
|
+
*/
|
|
661
|
+
search?: string | undefined;
|
|
662
|
+
/**
|
|
663
|
+
* Tags to filter files by (comma-separated for multiple values)
|
|
664
|
+
* @public
|
|
665
|
+
*/
|
|
666
|
+
tags?: string | undefined;
|
|
667
|
+
/**
|
|
668
|
+
* Name of the organisation
|
|
669
|
+
* @public
|
|
670
|
+
*/
|
|
671
|
+
organisation: string | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* Name of the application
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
application: string | undefined;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Represents a tag associated with a specific version
|
|
680
|
+
* @public
|
|
681
|
+
*/
|
|
682
|
+
export interface FileGroupTag {
|
|
683
|
+
/**
|
|
684
|
+
* The tag value
|
|
685
|
+
* @public
|
|
686
|
+
*/
|
|
687
|
+
tag: string | undefined;
|
|
688
|
+
/**
|
|
689
|
+
* The version this tag is associated with
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
version: number | undefined;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* Represents a version within a file group
|
|
696
|
+
* @public
|
|
697
|
+
*/
|
|
698
|
+
export interface FileGroupVersion {
|
|
699
|
+
/**
|
|
700
|
+
* The version number
|
|
701
|
+
* @public
|
|
702
|
+
*/
|
|
703
|
+
version: number | undefined;
|
|
704
|
+
/**
|
|
705
|
+
* URL from where the file can be downloaded
|
|
706
|
+
* @public
|
|
707
|
+
*/
|
|
708
|
+
url: string | undefined;
|
|
709
|
+
/**
|
|
710
|
+
* Size of the file in bytes
|
|
711
|
+
* @public
|
|
712
|
+
*/
|
|
713
|
+
size: number | undefined;
|
|
714
|
+
/**
|
|
715
|
+
* Date when this version was created
|
|
716
|
+
* @public
|
|
717
|
+
*/
|
|
718
|
+
created_at: string | undefined;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Represents a group of file versions
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
export interface FileGroup {
|
|
725
|
+
/**
|
|
726
|
+
* The file path (unique identifier for the group)
|
|
727
|
+
* @public
|
|
728
|
+
*/
|
|
729
|
+
file_path: string | undefined;
|
|
730
|
+
/**
|
|
731
|
+
* Total number of versions for this file
|
|
732
|
+
* @public
|
|
733
|
+
*/
|
|
734
|
+
total_versions: number | undefined;
|
|
735
|
+
/**
|
|
736
|
+
* List of all versions
|
|
737
|
+
* @public
|
|
738
|
+
*/
|
|
739
|
+
versions: (FileGroupVersion)[] | undefined;
|
|
740
|
+
/**
|
|
741
|
+
* List of tags associated with versions
|
|
742
|
+
* @public
|
|
743
|
+
*/
|
|
744
|
+
tags: (FileGroupTag)[] | undefined;
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* List file groups response
|
|
748
|
+
* @public
|
|
749
|
+
*/
|
|
750
|
+
export interface ListFileGroupsResponse {
|
|
751
|
+
/**
|
|
752
|
+
* List of file groups
|
|
753
|
+
* @public
|
|
754
|
+
*/
|
|
755
|
+
groups: (FileGroup)[] | undefined;
|
|
756
|
+
/**
|
|
757
|
+
* Total number of groups matching the query
|
|
758
|
+
* @public
|
|
759
|
+
*/
|
|
760
|
+
total_items: number | undefined;
|
|
761
|
+
/**
|
|
762
|
+
* Total number of pages
|
|
763
|
+
* @public
|
|
764
|
+
*/
|
|
765
|
+
total_pages: number | undefined;
|
|
766
|
+
/**
|
|
767
|
+
* Current page number
|
|
768
|
+
* @public
|
|
769
|
+
*/
|
|
770
|
+
page: number | undefined;
|
|
771
|
+
/**
|
|
772
|
+
* Number of groups per page
|
|
773
|
+
* @public
|
|
774
|
+
*/
|
|
775
|
+
count: number | undefined;
|
|
776
|
+
}
|
|
642
777
|
/**
|
|
643
778
|
* List files request
|
|
644
779
|
* @public
|
|
@@ -659,6 +794,11 @@ export interface ListFilesRequest {
|
|
|
659
794
|
* @public
|
|
660
795
|
*/
|
|
661
796
|
search?: string | undefined;
|
|
797
|
+
/**
|
|
798
|
+
* Tags to filter files by (comma-separated for multiple values, e.g., "prod,dev,staging")
|
|
799
|
+
* @public
|
|
800
|
+
*/
|
|
801
|
+
tags?: string | undefined;
|
|
662
802
|
/**
|
|
663
803
|
* Name of the organisation
|
|
664
804
|
* @public
|
|
@@ -8,6 +8,7 @@ import { DeleteDimensionCommandInput, DeleteDimensionCommandOutput } from "../co
|
|
|
8
8
|
import { GetReleaseCommandInput, GetReleaseCommandOutput } from "../commands/GetReleaseCommand";
|
|
9
9
|
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
10
10
|
import { ListDimensionsCommandInput, ListDimensionsCommandOutput } from "../commands/ListDimensionsCommand";
|
|
11
|
+
import { ListFileGroupsCommandInput, ListFileGroupsCommandOutput } from "../commands/ListFileGroupsCommand";
|
|
11
12
|
import { ListFilesCommandInput, ListFilesCommandOutput } from "../commands/ListFilesCommand";
|
|
12
13
|
import { ListOrganisationsCommandInput, ListOrganisationsCommandOutput } from "../commands/ListOrganisationsCommand";
|
|
13
14
|
import { ListPackagesCommandInput, ListPackagesCommandOutput } from "../commands/ListPackagesCommand";
|
|
@@ -60,6 +61,10 @@ export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __
|
|
|
60
61
|
* serializeAws_restJson1ListDimensionsCommand
|
|
61
62
|
*/
|
|
62
63
|
export declare const se_ListDimensionsCommand: (input: ListDimensionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
|
+
/**
|
|
65
|
+
* serializeAws_restJson1ListFileGroupsCommand
|
|
66
|
+
*/
|
|
67
|
+
export declare const se_ListFileGroupsCommand: (input: ListFileGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
63
68
|
/**
|
|
64
69
|
* serializeAws_restJson1ListFilesCommand
|
|
65
70
|
*/
|
|
@@ -140,6 +145,10 @@ export declare const de_GetUserCommand: (output: __HttpResponse, context: __Serd
|
|
|
140
145
|
* deserializeAws_restJson1ListDimensionsCommand
|
|
141
146
|
*/
|
|
142
147
|
export declare const de_ListDimensionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListDimensionsCommandOutput>;
|
|
148
|
+
/**
|
|
149
|
+
* deserializeAws_restJson1ListFileGroupsCommand
|
|
150
|
+
*/
|
|
151
|
+
export declare const de_ListFileGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListFileGroupsCommandOutput>;
|
|
143
152
|
/**
|
|
144
153
|
* deserializeAws_restJson1ListFilesCommand
|
|
145
154
|
*/
|
package/package.json
CHANGED