airborne-server-sdk 0.30.1 → 0.31.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/UpdateFileCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +44 -1
- package/dist-es/Airborne.js +2 -0
- package/dist-es/commands/UpdateFileCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +41 -0
- package/dist-types/Airborne.d.ts +7 -0
- package/dist-types/AirborneClient.d.ts +3 -2
- package/dist-types/commands/UpdateFileCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/Airborne.js
CHANGED
|
@@ -22,6 +22,7 @@ const RequestOrganisationCommand_1 = require("./commands/RequestOrganisationComm
|
|
|
22
22
|
const ServeReleaseCommand_1 = require("./commands/ServeReleaseCommand");
|
|
23
23
|
const ServeReleaseV2Command_1 = require("./commands/ServeReleaseV2Command");
|
|
24
24
|
const UpdateDimensionCommand_1 = require("./commands/UpdateDimensionCommand");
|
|
25
|
+
const UpdateFileCommand_1 = require("./commands/UpdateFileCommand");
|
|
25
26
|
const UploadFileCommand_1 = require("./commands/UploadFileCommand");
|
|
26
27
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
27
28
|
const commands = {
|
|
@@ -45,6 +46,7 @@ const commands = {
|
|
|
45
46
|
ServeReleaseCommand: ServeReleaseCommand_1.ServeReleaseCommand,
|
|
46
47
|
ServeReleaseV2Command: ServeReleaseV2Command_1.ServeReleaseV2Command,
|
|
47
48
|
UpdateDimensionCommand: UpdateDimensionCommand_1.UpdateDimensionCommand,
|
|
49
|
+
UpdateFileCommand: UpdateFileCommand_1.UpdateFileCommand,
|
|
48
50
|
UploadFileCommand: UploadFileCommand_1.UploadFileCommand,
|
|
49
51
|
};
|
|
50
52
|
class Airborne extends AirborneClient_1.AirborneClient {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFileCommand = 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 UpdateFileCommand 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", "UpdateFile", {})
|
|
15
|
+
.n("AirborneClient", "UpdateFileCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UpdateFileCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UpdateFileCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UpdateFileCommand = UpdateFileCommand;
|
|
@@ -21,4 +21,5 @@ tslib_1.__exportStar(require("./RequestOrganisationCommand"), exports);
|
|
|
21
21
|
tslib_1.__exportStar(require("./ServeReleaseCommand"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./ServeReleaseV2Command"), exports);
|
|
23
23
|
tslib_1.__exportStar(require("./UpdateDimensionCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./UpdateFileCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./UploadFileCommand"), 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_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;
|
|
3
|
+
exports.de_UploadFileCommand = exports.de_UpdateFileCommand = 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_UpdateFileCommand = 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");
|
|
@@ -363,6 +363,25 @@ const se_UpdateDimensionCommand = async (input, context) => {
|
|
|
363
363
|
return b.build();
|
|
364
364
|
};
|
|
365
365
|
exports.se_UpdateDimensionCommand = se_UpdateDimensionCommand;
|
|
366
|
+
const se_UpdateFileCommand = async (input, context) => {
|
|
367
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
368
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
369
|
+
'content-type': 'application/json',
|
|
370
|
+
[_xo]: input[_o],
|
|
371
|
+
[_xa]: input[_a],
|
|
372
|
+
});
|
|
373
|
+
b.bp("/api/file/{file_key}");
|
|
374
|
+
b.p('file_key', () => input.file_key, '{file_key}', false);
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
377
|
+
'tag': [],
|
|
378
|
+
}));
|
|
379
|
+
b.m("PATCH")
|
|
380
|
+
.h(headers)
|
|
381
|
+
.b(body);
|
|
382
|
+
return b.build();
|
|
383
|
+
};
|
|
384
|
+
exports.se_UpdateFileCommand = se_UpdateFileCommand;
|
|
366
385
|
const se_UploadFileCommand = async (input, context) => {
|
|
367
386
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
368
387
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -745,6 +764,30 @@ const de_UpdateDimensionCommand = async (output, context) => {
|
|
|
745
764
|
return contents;
|
|
746
765
|
};
|
|
747
766
|
exports.de_UpdateDimensionCommand = de_UpdateDimensionCommand;
|
|
767
|
+
const de_UpdateFileCommand = async (output, context) => {
|
|
768
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
769
|
+
return de_CommandError(output, context);
|
|
770
|
+
}
|
|
771
|
+
const contents = (0, smithy_client_1.map)({
|
|
772
|
+
$metadata: deserializeMetadata(output),
|
|
773
|
+
});
|
|
774
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
775
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
776
|
+
'checksum': smithy_client_1.expectString,
|
|
777
|
+
'created_at': smithy_client_1.expectString,
|
|
778
|
+
'file_path': smithy_client_1.expectString,
|
|
779
|
+
'id': smithy_client_1.expectString,
|
|
780
|
+
'metadata': _ => de_Document(_, context),
|
|
781
|
+
'size': smithy_client_1.expectInt32,
|
|
782
|
+
'status': smithy_client_1.expectString,
|
|
783
|
+
'tag': smithy_client_1.expectString,
|
|
784
|
+
'url': smithy_client_1.expectString,
|
|
785
|
+
'version': smithy_client_1.expectInt32,
|
|
786
|
+
});
|
|
787
|
+
Object.assign(contents, doc);
|
|
788
|
+
return contents;
|
|
789
|
+
};
|
|
790
|
+
exports.de_UpdateFileCommand = de_UpdateFileCommand;
|
|
748
791
|
const de_UploadFileCommand = async (output, context) => {
|
|
749
792
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
793
|
return de_CommandError(output, context);
|
package/dist-es/Airborne.js
CHANGED
|
@@ -19,6 +19,7 @@ import { RequestOrganisationCommand, } from "./commands/RequestOrganisationComma
|
|
|
19
19
|
import { ServeReleaseCommand, } from "./commands/ServeReleaseCommand";
|
|
20
20
|
import { ServeReleaseV2Command, } from "./commands/ServeReleaseV2Command";
|
|
21
21
|
import { UpdateDimensionCommand, } from "./commands/UpdateDimensionCommand";
|
|
22
|
+
import { UpdateFileCommand, } from "./commands/UpdateFileCommand";
|
|
22
23
|
import { UploadFileCommand, } from "./commands/UploadFileCommand";
|
|
23
24
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
24
25
|
const commands = {
|
|
@@ -42,6 +43,7 @@ const commands = {
|
|
|
42
43
|
ServeReleaseCommand,
|
|
43
44
|
ServeReleaseV2Command,
|
|
44
45
|
UpdateDimensionCommand,
|
|
46
|
+
UpdateFileCommand,
|
|
45
47
|
UploadFileCommand,
|
|
46
48
|
};
|
|
47
49
|
export class Airborne extends AirborneClient {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateFileCommand, se_UpdateFileCommand, } 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 UpdateFileCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Airborne", "UpdateFile", {})
|
|
12
|
+
.n("AirborneClient", "UpdateFileCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateFileCommand)
|
|
15
|
+
.de(de_UpdateFileCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -340,6 +340,24 @@ export const se_UpdateDimensionCommand = async (input, context) => {
|
|
|
340
340
|
.b(body);
|
|
341
341
|
return b.build();
|
|
342
342
|
};
|
|
343
|
+
export const se_UpdateFileCommand = async (input, context) => {
|
|
344
|
+
const b = rb(input, context);
|
|
345
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
346
|
+
'content-type': 'application/json',
|
|
347
|
+
[_xo]: input[_o],
|
|
348
|
+
[_xa]: input[_a],
|
|
349
|
+
});
|
|
350
|
+
b.bp("/api/file/{file_key}");
|
|
351
|
+
b.p('file_key', () => input.file_key, '{file_key}', false);
|
|
352
|
+
let body;
|
|
353
|
+
body = JSON.stringify(take(input, {
|
|
354
|
+
'tag': [],
|
|
355
|
+
}));
|
|
356
|
+
b.m("PATCH")
|
|
357
|
+
.h(headers)
|
|
358
|
+
.b(body);
|
|
359
|
+
return b.build();
|
|
360
|
+
};
|
|
343
361
|
export const se_UploadFileCommand = async (input, context) => {
|
|
344
362
|
const b = rb(input, context);
|
|
345
363
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -701,6 +719,29 @@ export const de_UpdateDimensionCommand = async (output, context) => {
|
|
|
701
719
|
Object.assign(contents, doc);
|
|
702
720
|
return contents;
|
|
703
721
|
};
|
|
722
|
+
export const de_UpdateFileCommand = async (output, context) => {
|
|
723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
+
return de_CommandError(output, context);
|
|
725
|
+
}
|
|
726
|
+
const contents = map({
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
});
|
|
729
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
730
|
+
const doc = take(data, {
|
|
731
|
+
'checksum': __expectString,
|
|
732
|
+
'created_at': __expectString,
|
|
733
|
+
'file_path': __expectString,
|
|
734
|
+
'id': __expectString,
|
|
735
|
+
'metadata': _ => de_Document(_, context),
|
|
736
|
+
'size': __expectInt32,
|
|
737
|
+
'status': __expectString,
|
|
738
|
+
'tag': __expectString,
|
|
739
|
+
'url': __expectString,
|
|
740
|
+
'version': __expectInt32,
|
|
741
|
+
});
|
|
742
|
+
Object.assign(contents, doc);
|
|
743
|
+
return contents;
|
|
744
|
+
};
|
|
704
745
|
export const de_UploadFileCommand = async (output, context) => {
|
|
705
746
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
706
747
|
return de_CommandError(output, context);
|
package/dist-types/Airborne.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ import { RequestOrganisationCommandInput, RequestOrganisationCommandOutput } fro
|
|
|
19
19
|
import { ServeReleaseCommandInput, ServeReleaseCommandOutput } from "./commands/ServeReleaseCommand";
|
|
20
20
|
import { ServeReleaseV2CommandInput, ServeReleaseV2CommandOutput } from "./commands/ServeReleaseV2Command";
|
|
21
21
|
import { UpdateDimensionCommandInput, UpdateDimensionCommandOutput } from "./commands/UpdateDimensionCommand";
|
|
22
|
+
import { UpdateFileCommandInput, UpdateFileCommandOutput } from "./commands/UpdateFileCommand";
|
|
22
23
|
import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
|
|
23
24
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
24
25
|
export interface Airborne {
|
|
@@ -144,6 +145,12 @@ export interface Airborne {
|
|
|
144
145
|
updateDimension(args: UpdateDimensionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateDimensionCommandOutput>;
|
|
145
146
|
updateDimension(args: UpdateDimensionCommandInput, cb: (err: any, data?: UpdateDimensionCommandOutput) => void): void;
|
|
146
147
|
updateDimension(args: UpdateDimensionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDimensionCommandOutput) => void): void;
|
|
148
|
+
/**
|
|
149
|
+
* @see {@link UpdateFileCommand}
|
|
150
|
+
*/
|
|
151
|
+
updateFile(args: UpdateFileCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFileCommandOutput>;
|
|
152
|
+
updateFile(args: UpdateFileCommandInput, cb: (err: any, data?: UpdateFileCommandOutput) => void): void;
|
|
153
|
+
updateFile(args: UpdateFileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFileCommandOutput) => void): void;
|
|
147
154
|
/**
|
|
148
155
|
* @see {@link UploadFileCommand}
|
|
149
156
|
*/
|
|
@@ -19,6 +19,7 @@ import { RequestOrganisationCommandInput, RequestOrganisationCommandOutput } fro
|
|
|
19
19
|
import { ServeReleaseCommandInput, ServeReleaseCommandOutput } from "./commands/ServeReleaseCommand";
|
|
20
20
|
import { ServeReleaseV2CommandInput, ServeReleaseV2CommandOutput } from "./commands/ServeReleaseV2Command";
|
|
21
21
|
import { UpdateDimensionCommandInput, UpdateDimensionCommandOutput } from "./commands/UpdateDimensionCommand";
|
|
22
|
+
import { UpdateFileCommandInput, UpdateFileCommandOutput } from "./commands/UpdateFileCommand";
|
|
22
23
|
import { UploadFileCommandInput, UploadFileCommandOutput } from "./commands/UploadFileCommand";
|
|
23
24
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
24
25
|
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
@@ -32,11 +33,11 @@ export { __Client };
|
|
|
32
33
|
/**
|
|
33
34
|
* @public
|
|
34
35
|
*/
|
|
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;
|
|
36
|
+
export type ServiceInputTypes = CreateApplicationCommandInput | CreateDimensionCommandInput | CreateFileCommandInput | CreateOrganisationCommandInput | CreatePackageCommandInput | CreateReleaseCommandInput | DeleteDimensionCommandInput | GetReleaseCommandInput | GetUserCommandInput | ListDimensionsCommandInput | ListFileGroupsCommandInput | ListFilesCommandInput | ListOrganisationsCommandInput | ListPackagesCommandInput | ListReleasesCommandInput | PostLoginCommandInput | RequestOrganisationCommandInput | ServeReleaseCommandInput | ServeReleaseV2CommandInput | UpdateDimensionCommandInput | UpdateFileCommandInput | UploadFileCommandInput;
|
|
36
37
|
/**
|
|
37
38
|
* @public
|
|
38
39
|
*/
|
|
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;
|
|
40
|
+
export type ServiceOutputTypes = CreateApplicationCommandOutput | CreateDimensionCommandOutput | CreateFileCommandOutput | CreateOrganisationCommandOutput | CreatePackageCommandOutput | CreateReleaseCommandOutput | DeleteDimensionCommandOutput | GetReleaseCommandOutput | GetUserCommandOutput | ListDimensionsCommandOutput | ListFileGroupsCommandOutput | ListFilesCommandOutput | ListOrganisationsCommandOutput | ListPackagesCommandOutput | ListReleasesCommandOutput | PostLoginCommandOutput | RequestOrganisationCommandOutput | ServeReleaseCommandOutput | ServeReleaseV2CommandOutput | UpdateDimensionCommandOutput | UpdateFileCommandOutput | UploadFileCommandOutput;
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AirborneClient";
|
|
2
|
+
import { CreateFileResponse, UpdateFileRequest } 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 UpdateFileCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateFileCommandInput extends UpdateFileRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateFileCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateFileCommandOutput extends CreateFileResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateFileCommand_base: {
|
|
25
|
+
new (input: UpdateFileCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateFileCommandInput, UpdateFileCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateFileCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateFileCommandInput, UpdateFileCommandOutput, AirborneClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Update file operation
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AirborneClient, UpdateFileCommand } from "airborne-server-sdk"; // ES Modules import
|
|
35
|
+
* // const { AirborneClient, UpdateFileCommand } = require("airborne-server-sdk"); // CommonJS import
|
|
36
|
+
* const client = new AirborneClient(config);
|
|
37
|
+
* const input = { // UpdateFileRequest
|
|
38
|
+
* file_key: "STRING_VALUE", // required
|
|
39
|
+
* tag: "STRING_VALUE", // required
|
|
40
|
+
* organisation: "STRING_VALUE", // required
|
|
41
|
+
* application: "STRING_VALUE", // required
|
|
42
|
+
* };
|
|
43
|
+
* const command = new UpdateFileCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // CreateFileResponse
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // file_path: "STRING_VALUE", // required
|
|
48
|
+
* // url: "STRING_VALUE", // required
|
|
49
|
+
* // version: Number("int"), // required
|
|
50
|
+
* // tag: "STRING_VALUE",
|
|
51
|
+
* // size: Number("int"), // required
|
|
52
|
+
* // checksum: "STRING_VALUE", // required
|
|
53
|
+
* // metadata: "DOCUMENT_VALUE", // required
|
|
54
|
+
* // status: "STRING_VALUE", // required
|
|
55
|
+
* // created_at: "STRING_VALUE", // required
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param UpdateFileCommandInput - {@link UpdateFileCommandInput}
|
|
61
|
+
* @returns {@link UpdateFileCommandOutput}
|
|
62
|
+
* @see {@link UpdateFileCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link UpdateFileCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link AirborneClientResolvedConfig | config} for AirborneClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link Unauthorized} (client fault)
|
|
67
|
+
* Unauthorized error
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link BadRequestError} (client fault)
|
|
70
|
+
* Bad request error
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link NotFoundError} (client fault)
|
|
73
|
+
* Not found error
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link InternalServerError} (server fault)
|
|
76
|
+
* Internal server error
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link AirborneServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Airborne service.</p>
|
|
82
|
+
*
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class UpdateFileCommand extends UpdateFileCommand_base {
|
|
87
|
+
/** @internal type navigation helper, not in runtime. */
|
|
88
|
+
protected static __types: {
|
|
89
|
+
api: {
|
|
90
|
+
input: UpdateFileRequest;
|
|
91
|
+
output: CreateFileResponse;
|
|
92
|
+
};
|
|
93
|
+
sdk: {
|
|
94
|
+
input: UpdateFileCommandInput;
|
|
95
|
+
output: UpdateFileCommandOutput;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
@@ -1093,6 +1093,32 @@ export interface UpdateDimensionRequest {
|
|
|
1093
1093
|
*/
|
|
1094
1094
|
application: string | undefined;
|
|
1095
1095
|
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Update file request
|
|
1098
|
+
* @public
|
|
1099
|
+
*/
|
|
1100
|
+
export interface UpdateFileRequest {
|
|
1101
|
+
/**
|
|
1102
|
+
* The file key in the path (e.g., "$file_path@version:$version_number" or "$file_path@tag:$tag")
|
|
1103
|
+
* @public
|
|
1104
|
+
*/
|
|
1105
|
+
file_key: string | undefined;
|
|
1106
|
+
/**
|
|
1107
|
+
* New tag to update the file with
|
|
1108
|
+
* @public
|
|
1109
|
+
*/
|
|
1110
|
+
tag: string | undefined;
|
|
1111
|
+
/**
|
|
1112
|
+
* Name of the organisation
|
|
1113
|
+
* @public
|
|
1114
|
+
*/
|
|
1115
|
+
organisation: string | undefined;
|
|
1116
|
+
/**
|
|
1117
|
+
* Name of the application
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
application: string | undefined;
|
|
1121
|
+
}
|
|
1096
1122
|
/**
|
|
1097
1123
|
* Upload file request
|
|
1098
1124
|
* @public
|
|
@@ -1118,6 +1144,10 @@ export interface UploadFileRequest {
|
|
|
1118
1144
|
* @public
|
|
1119
1145
|
*/
|
|
1120
1146
|
checksum: string | undefined;
|
|
1147
|
+
/**
|
|
1148
|
+
* Name of the organisation
|
|
1149
|
+
* @public
|
|
1150
|
+
*/
|
|
1121
1151
|
organisation: string | undefined;
|
|
1122
1152
|
/**
|
|
1123
1153
|
* Name of the application
|
|
@@ -18,6 +18,7 @@ import { RequestOrganisationCommandInput, RequestOrganisationCommandOutput } fro
|
|
|
18
18
|
import { ServeReleaseCommandInput, ServeReleaseCommandOutput } from "../commands/ServeReleaseCommand";
|
|
19
19
|
import { ServeReleaseV2CommandInput, ServeReleaseV2CommandOutput } from "../commands/ServeReleaseV2Command";
|
|
20
20
|
import { UpdateDimensionCommandInput, UpdateDimensionCommandOutput } from "../commands/UpdateDimensionCommand";
|
|
21
|
+
import { UpdateFileCommandInput, UpdateFileCommandOutput } from "../commands/UpdateFileCommand";
|
|
21
22
|
import { UploadFileCommandInput, UploadFileCommandOutput } from "../commands/UploadFileCommand";
|
|
22
23
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
23
24
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
@@ -101,6 +102,10 @@ export declare const se_ServeReleaseV2Command: (input: ServeReleaseV2CommandInpu
|
|
|
101
102
|
* serializeAws_restJson1UpdateDimensionCommand
|
|
102
103
|
*/
|
|
103
104
|
export declare const se_UpdateDimensionCommand: (input: UpdateDimensionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
105
|
+
/**
|
|
106
|
+
* serializeAws_restJson1UpdateFileCommand
|
|
107
|
+
*/
|
|
108
|
+
export declare const se_UpdateFileCommand: (input: UpdateFileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
104
109
|
/**
|
|
105
110
|
* serializeAws_restJson1UploadFileCommand
|
|
106
111
|
*/
|
|
@@ -185,6 +190,10 @@ export declare const de_ServeReleaseV2Command: (output: __HttpResponse, context:
|
|
|
185
190
|
* deserializeAws_restJson1UpdateDimensionCommand
|
|
186
191
|
*/
|
|
187
192
|
export declare const de_UpdateDimensionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateDimensionCommandOutput>;
|
|
193
|
+
/**
|
|
194
|
+
* deserializeAws_restJson1UpdateFileCommand
|
|
195
|
+
*/
|
|
196
|
+
export declare const de_UpdateFileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateFileCommandOutput>;
|
|
188
197
|
/**
|
|
189
198
|
* deserializeAws_restJson1UploadFileCommand
|
|
190
199
|
*/
|
package/package.json
CHANGED