@aws-sdk/client-qapps 3.893.0 → 3.894.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/index.js +2912 -10
- package/package.json +6 -6
- package/dist-cjs/QApps.js +0 -81
- package/dist-cjs/QAppsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/AssociateLibraryItemReviewCommand.js +0 -26
- package/dist-cjs/commands/AssociateQAppWithUserCommand.js +0 -26
- package/dist-cjs/commands/BatchCreateCategoryCommand.js +0 -26
- package/dist-cjs/commands/BatchDeleteCategoryCommand.js +0 -26
- package/dist-cjs/commands/BatchUpdateCategoryCommand.js +0 -26
- package/dist-cjs/commands/CreateLibraryItemCommand.js +0 -26
- package/dist-cjs/commands/CreatePresignedUrlCommand.js +0 -26
- package/dist-cjs/commands/CreateQAppCommand.js +0 -26
- package/dist-cjs/commands/DeleteLibraryItemCommand.js +0 -26
- package/dist-cjs/commands/DeleteQAppCommand.js +0 -26
- package/dist-cjs/commands/DescribeQAppPermissionsCommand.js +0 -26
- package/dist-cjs/commands/DisassociateLibraryItemReviewCommand.js +0 -26
- package/dist-cjs/commands/DisassociateQAppFromUserCommand.js +0 -26
- package/dist-cjs/commands/ExportQAppSessionDataCommand.js +0 -26
- package/dist-cjs/commands/GetLibraryItemCommand.js +0 -26
- package/dist-cjs/commands/GetQAppCommand.js +0 -26
- package/dist-cjs/commands/GetQAppSessionCommand.js +0 -26
- package/dist-cjs/commands/GetQAppSessionMetadataCommand.js +0 -26
- package/dist-cjs/commands/ImportDocumentCommand.js +0 -26
- package/dist-cjs/commands/ListCategoriesCommand.js +0 -26
- package/dist-cjs/commands/ListLibraryItemsCommand.js +0 -26
- package/dist-cjs/commands/ListQAppSessionDataCommand.js +0 -26
- package/dist-cjs/commands/ListQAppsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/PredictQAppCommand.js +0 -26
- package/dist-cjs/commands/StartQAppSessionCommand.js +0 -26
- package/dist-cjs/commands/StopQAppSessionCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateLibraryItemCommand.js +0 -26
- package/dist-cjs/commands/UpdateLibraryItemMetadataCommand.js +0 -26
- package/dist-cjs/commands/UpdateQAppCommand.js +0 -26
- package/dist-cjs/commands/UpdateQAppPermissionsCommand.js +0 -26
- package/dist-cjs/commands/UpdateQAppSessionCommand.js +0 -26
- package/dist-cjs/commands/UpdateQAppSessionMetadataCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -38
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/QAppsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -284
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListLibraryItemsPaginator.js +0 -7
- package/dist-cjs/pagination/ListQAppsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -6
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1685
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,1685 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetLibraryItemCommand = exports.de_ExportQAppSessionDataCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DescribeQAppPermissionsCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreatePresignedUrlCommand = exports.de_CreateLibraryItemCommand = exports.de_BatchUpdateCategoryCommand = exports.de_BatchDeleteCategoryCommand = exports.de_BatchCreateCategoryCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionMetadataCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppPermissionsCommand = exports.se_UpdateQAppCommand = exports.se_UpdateLibraryItemMetadataCommand = exports.se_UpdateLibraryItemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopQAppSessionCommand = exports.se_StartQAppSessionCommand = exports.se_PredictQAppCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQAppSessionDataCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ListCategoriesCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionMetadataCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_ExportQAppSessionDataCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DescribeQAppPermissionsCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreatePresignedUrlCommand = exports.se_CreateLibraryItemCommand = exports.se_BatchUpdateCategoryCommand = exports.se_BatchDeleteCategoryCommand = exports.se_BatchCreateCategoryCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
|
|
4
|
-
exports.de_UpdateQAppSessionMetadataCommand = exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppPermissionsCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemMetadataCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppSessionDataCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ListCategoriesCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionMetadataCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = void 0;
|
|
5
|
-
const core_1 = require("@aws-sdk/core");
|
|
6
|
-
const core_2 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const QAppsServiceException_1 = require("../models/QAppsServiceException");
|
|
10
|
-
const se_AssociateLibraryItemReviewCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
[_ii]: input[_iI],
|
|
15
|
-
});
|
|
16
|
-
b.bp("/catalog.associateItemRating");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
libraryItemId: [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("POST").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_AssociateLibraryItemReviewCommand = se_AssociateLibraryItemReviewCommand;
|
|
25
|
-
const se_AssociateQAppWithUserCommand = async (input, context) => {
|
|
26
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
27
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
28
|
-
"content-type": "application/json",
|
|
29
|
-
[_ii]: input[_iI],
|
|
30
|
-
});
|
|
31
|
-
b.bp("/apps.install");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
-
appId: [],
|
|
35
|
-
}));
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
exports.se_AssociateQAppWithUserCommand = se_AssociateQAppWithUserCommand;
|
|
40
|
-
const se_BatchCreateCategoryCommand = async (input, context) => {
|
|
41
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
42
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
[_ii]: input[_iI],
|
|
45
|
-
});
|
|
46
|
-
b.bp("/catalog.createCategories");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
-
categories: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
exports.se_BatchCreateCategoryCommand = se_BatchCreateCategoryCommand;
|
|
55
|
-
const se_BatchDeleteCategoryCommand = async (input, context) => {
|
|
56
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
58
|
-
"content-type": "application/json",
|
|
59
|
-
[_ii]: input[_iI],
|
|
60
|
-
});
|
|
61
|
-
b.bp("/catalog.deleteCategories");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
-
categories: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
-
}));
|
|
66
|
-
b.m("POST").h(headers).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
exports.se_BatchDeleteCategoryCommand = se_BatchDeleteCategoryCommand;
|
|
70
|
-
const se_BatchUpdateCategoryCommand = async (input, context) => {
|
|
71
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
[_ii]: input[_iI],
|
|
75
|
-
});
|
|
76
|
-
b.bp("/catalog.updateCategories");
|
|
77
|
-
let body;
|
|
78
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
-
categories: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
-
}));
|
|
81
|
-
b.m("POST").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
exports.se_BatchUpdateCategoryCommand = se_BatchUpdateCategoryCommand;
|
|
85
|
-
const se_CreateLibraryItemCommand = async (input, context) => {
|
|
86
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
87
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
88
|
-
"content-type": "application/json",
|
|
89
|
-
[_ii]: input[_iI],
|
|
90
|
-
});
|
|
91
|
-
b.bp("/catalog.createItem");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
appId: [],
|
|
95
|
-
appVersion: [],
|
|
96
|
-
categories: (_) => (0, smithy_client_1._json)(_),
|
|
97
|
-
}));
|
|
98
|
-
b.m("POST").h(headers).b(body);
|
|
99
|
-
return b.build();
|
|
100
|
-
};
|
|
101
|
-
exports.se_CreateLibraryItemCommand = se_CreateLibraryItemCommand;
|
|
102
|
-
const se_CreatePresignedUrlCommand = async (input, context) => {
|
|
103
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
105
|
-
"content-type": "application/json",
|
|
106
|
-
[_ii]: input[_iI],
|
|
107
|
-
});
|
|
108
|
-
b.bp("/apps.createPresignedUrl");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
|
-
appId: [],
|
|
112
|
-
cardId: [],
|
|
113
|
-
fileContentsSha256: [],
|
|
114
|
-
fileName: [],
|
|
115
|
-
scope: [],
|
|
116
|
-
sessionId: [],
|
|
117
|
-
}));
|
|
118
|
-
b.m("POST").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
exports.se_CreatePresignedUrlCommand = se_CreatePresignedUrlCommand;
|
|
122
|
-
const se_CreateQAppCommand = async (input, context) => {
|
|
123
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
124
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
125
|
-
"content-type": "application/json",
|
|
126
|
-
[_ii]: input[_iI],
|
|
127
|
-
});
|
|
128
|
-
b.bp("/apps.create");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
131
|
-
appDefinition: (_) => se_AppDefinitionInput(_, context),
|
|
132
|
-
description: [],
|
|
133
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
-
title: [],
|
|
135
|
-
}));
|
|
136
|
-
b.m("POST").h(headers).b(body);
|
|
137
|
-
return b.build();
|
|
138
|
-
};
|
|
139
|
-
exports.se_CreateQAppCommand = se_CreateQAppCommand;
|
|
140
|
-
const se_DeleteLibraryItemCommand = async (input, context) => {
|
|
141
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
142
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
[_ii]: input[_iI],
|
|
145
|
-
});
|
|
146
|
-
b.bp("/catalog.deleteItem");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
149
|
-
libraryItemId: [],
|
|
150
|
-
}));
|
|
151
|
-
b.m("POST").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
exports.se_DeleteLibraryItemCommand = se_DeleteLibraryItemCommand;
|
|
155
|
-
const se_DeleteQAppCommand = async (input, context) => {
|
|
156
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
157
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
158
|
-
"content-type": "application/json",
|
|
159
|
-
[_ii]: input[_iI],
|
|
160
|
-
});
|
|
161
|
-
b.bp("/apps.delete");
|
|
162
|
-
let body;
|
|
163
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
164
|
-
appId: [],
|
|
165
|
-
}));
|
|
166
|
-
b.m("POST").h(headers).b(body);
|
|
167
|
-
return b.build();
|
|
168
|
-
};
|
|
169
|
-
exports.se_DeleteQAppCommand = se_DeleteQAppCommand;
|
|
170
|
-
const se_DescribeQAppPermissionsCommand = async (input, context) => {
|
|
171
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
172
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
173
|
-
[_ii]: input[_iI],
|
|
174
|
-
});
|
|
175
|
-
b.bp("/apps.describeQAppPermissions");
|
|
176
|
-
const query = (0, smithy_client_1.map)({
|
|
177
|
-
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `appId`)],
|
|
178
|
-
});
|
|
179
|
-
let body;
|
|
180
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
exports.se_DescribeQAppPermissionsCommand = se_DescribeQAppPermissionsCommand;
|
|
184
|
-
const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
|
|
185
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
186
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
187
|
-
"content-type": "application/json",
|
|
188
|
-
[_ii]: input[_iI],
|
|
189
|
-
});
|
|
190
|
-
b.bp("/catalog.disassociateItemRating");
|
|
191
|
-
let body;
|
|
192
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
193
|
-
libraryItemId: [],
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
exports.se_DisassociateLibraryItemReviewCommand = se_DisassociateLibraryItemReviewCommand;
|
|
199
|
-
const se_DisassociateQAppFromUserCommand = async (input, context) => {
|
|
200
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
201
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
202
|
-
"content-type": "application/json",
|
|
203
|
-
[_ii]: input[_iI],
|
|
204
|
-
});
|
|
205
|
-
b.bp("/apps.uninstall");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
208
|
-
appId: [],
|
|
209
|
-
}));
|
|
210
|
-
b.m("POST").h(headers).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
exports.se_DisassociateQAppFromUserCommand = se_DisassociateQAppFromUserCommand;
|
|
214
|
-
const se_ExportQAppSessionDataCommand = async (input, context) => {
|
|
215
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
216
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
217
|
-
"content-type": "application/json",
|
|
218
|
-
[_ii]: input[_iI],
|
|
219
|
-
});
|
|
220
|
-
b.bp("/runtime.exportQAppSessionData");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
|
-
sessionId: [],
|
|
224
|
-
}));
|
|
225
|
-
b.m("POST").h(headers).b(body);
|
|
226
|
-
return b.build();
|
|
227
|
-
};
|
|
228
|
-
exports.se_ExportQAppSessionDataCommand = se_ExportQAppSessionDataCommand;
|
|
229
|
-
const se_GetLibraryItemCommand = async (input, context) => {
|
|
230
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
231
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
232
|
-
[_ii]: input[_iI],
|
|
233
|
-
});
|
|
234
|
-
b.bp("/catalog.getItem");
|
|
235
|
-
const query = (0, smithy_client_1.map)({
|
|
236
|
-
[_lII]: [, (0, smithy_client_1.expectNonNull)(input[_lII], `libraryItemId`)],
|
|
237
|
-
[_aI]: [, input[_aI]],
|
|
238
|
-
});
|
|
239
|
-
let body;
|
|
240
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
241
|
-
return b.build();
|
|
242
|
-
};
|
|
243
|
-
exports.se_GetLibraryItemCommand = se_GetLibraryItemCommand;
|
|
244
|
-
const se_GetQAppCommand = async (input, context) => {
|
|
245
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
246
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
247
|
-
[_ii]: input[_iI],
|
|
248
|
-
});
|
|
249
|
-
b.bp("/apps.get");
|
|
250
|
-
const query = (0, smithy_client_1.map)({
|
|
251
|
-
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `appId`)],
|
|
252
|
-
[_aV]: [() => input.appVersion !== void 0, () => input[_aV].toString()],
|
|
253
|
-
});
|
|
254
|
-
let body;
|
|
255
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
256
|
-
return b.build();
|
|
257
|
-
};
|
|
258
|
-
exports.se_GetQAppCommand = se_GetQAppCommand;
|
|
259
|
-
const se_GetQAppSessionCommand = async (input, context) => {
|
|
260
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
261
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
262
|
-
[_ii]: input[_iI],
|
|
263
|
-
});
|
|
264
|
-
b.bp("/runtime.getQAppSession");
|
|
265
|
-
const query = (0, smithy_client_1.map)({
|
|
266
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
267
|
-
});
|
|
268
|
-
let body;
|
|
269
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
exports.se_GetQAppSessionCommand = se_GetQAppSessionCommand;
|
|
273
|
-
const se_GetQAppSessionMetadataCommand = async (input, context) => {
|
|
274
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
276
|
-
[_ii]: input[_iI],
|
|
277
|
-
});
|
|
278
|
-
b.bp("/runtime.getQAppSessionMetadata");
|
|
279
|
-
const query = (0, smithy_client_1.map)({
|
|
280
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
281
|
-
});
|
|
282
|
-
let body;
|
|
283
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
284
|
-
return b.build();
|
|
285
|
-
};
|
|
286
|
-
exports.se_GetQAppSessionMetadataCommand = se_GetQAppSessionMetadataCommand;
|
|
287
|
-
const se_ImportDocumentCommand = async (input, context) => {
|
|
288
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
289
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
290
|
-
"content-type": "application/json",
|
|
291
|
-
[_ii]: input[_iI],
|
|
292
|
-
});
|
|
293
|
-
b.bp("/apps.importDocument");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
296
|
-
appId: [],
|
|
297
|
-
cardId: [],
|
|
298
|
-
fileContentsBase64: [],
|
|
299
|
-
fileName: [],
|
|
300
|
-
scope: [],
|
|
301
|
-
sessionId: [],
|
|
302
|
-
}));
|
|
303
|
-
b.m("POST").h(headers).b(body);
|
|
304
|
-
return b.build();
|
|
305
|
-
};
|
|
306
|
-
exports.se_ImportDocumentCommand = se_ImportDocumentCommand;
|
|
307
|
-
const se_ListCategoriesCommand = async (input, context) => {
|
|
308
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
309
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
310
|
-
[_ii]: input[_iI],
|
|
311
|
-
});
|
|
312
|
-
b.bp("/catalog.listCategories");
|
|
313
|
-
let body;
|
|
314
|
-
b.m("GET").h(headers).b(body);
|
|
315
|
-
return b.build();
|
|
316
|
-
};
|
|
317
|
-
exports.se_ListCategoriesCommand = se_ListCategoriesCommand;
|
|
318
|
-
const se_ListLibraryItemsCommand = async (input, context) => {
|
|
319
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
320
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
321
|
-
[_ii]: input[_iI],
|
|
322
|
-
});
|
|
323
|
-
b.bp("/catalog.list");
|
|
324
|
-
const query = (0, smithy_client_1.map)({
|
|
325
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
326
|
-
[_nT]: [, input[_nT]],
|
|
327
|
-
[_cI]: [, input[_cI]],
|
|
328
|
-
});
|
|
329
|
-
let body;
|
|
330
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
exports.se_ListLibraryItemsCommand = se_ListLibraryItemsCommand;
|
|
334
|
-
const se_ListQAppsCommand = async (input, context) => {
|
|
335
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
337
|
-
[_ii]: input[_iI],
|
|
338
|
-
});
|
|
339
|
-
b.bp("/apps.list");
|
|
340
|
-
const query = (0, smithy_client_1.map)({
|
|
341
|
-
[_l]: [() => input.limit !== void 0, () => input[_l].toString()],
|
|
342
|
-
[_nT]: [, input[_nT]],
|
|
343
|
-
});
|
|
344
|
-
let body;
|
|
345
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
346
|
-
return b.build();
|
|
347
|
-
};
|
|
348
|
-
exports.se_ListQAppsCommand = se_ListQAppsCommand;
|
|
349
|
-
const se_ListQAppSessionDataCommand = async (input, context) => {
|
|
350
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
351
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
352
|
-
[_ii]: input[_iI],
|
|
353
|
-
});
|
|
354
|
-
b.bp("/runtime.listQAppSessionData");
|
|
355
|
-
const query = (0, smithy_client_1.map)({
|
|
356
|
-
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
357
|
-
});
|
|
358
|
-
let body;
|
|
359
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
360
|
-
return b.build();
|
|
361
|
-
};
|
|
362
|
-
exports.se_ListQAppSessionDataCommand = se_ListQAppSessionDataCommand;
|
|
363
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
364
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
365
|
-
const headers = {};
|
|
366
|
-
b.bp("/tags/{resourceARN}");
|
|
367
|
-
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
368
|
-
let body;
|
|
369
|
-
b.m("GET").h(headers).b(body);
|
|
370
|
-
return b.build();
|
|
371
|
-
};
|
|
372
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
373
|
-
const se_PredictQAppCommand = async (input, context) => {
|
|
374
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
375
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
376
|
-
"content-type": "application/json",
|
|
377
|
-
[_ii]: input[_iI],
|
|
378
|
-
});
|
|
379
|
-
b.bp("/apps.predictQApp");
|
|
380
|
-
let body;
|
|
381
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
382
|
-
options: (_) => (0, smithy_client_1._json)(_),
|
|
383
|
-
}));
|
|
384
|
-
b.m("POST").h(headers).b(body);
|
|
385
|
-
return b.build();
|
|
386
|
-
};
|
|
387
|
-
exports.se_PredictQAppCommand = se_PredictQAppCommand;
|
|
388
|
-
const se_StartQAppSessionCommand = async (input, context) => {
|
|
389
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
390
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
391
|
-
"content-type": "application/json",
|
|
392
|
-
[_ii]: input[_iI],
|
|
393
|
-
});
|
|
394
|
-
b.bp("/runtime.startQAppSession");
|
|
395
|
-
let body;
|
|
396
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
397
|
-
appId: [],
|
|
398
|
-
appVersion: [],
|
|
399
|
-
initialValues: (_) => (0, smithy_client_1._json)(_),
|
|
400
|
-
sessionId: [],
|
|
401
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
402
|
-
}));
|
|
403
|
-
b.m("POST").h(headers).b(body);
|
|
404
|
-
return b.build();
|
|
405
|
-
};
|
|
406
|
-
exports.se_StartQAppSessionCommand = se_StartQAppSessionCommand;
|
|
407
|
-
const se_StopQAppSessionCommand = async (input, context) => {
|
|
408
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
409
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
410
|
-
"content-type": "application/json",
|
|
411
|
-
[_ii]: input[_iI],
|
|
412
|
-
});
|
|
413
|
-
b.bp("/runtime.deleteMiniAppRun");
|
|
414
|
-
let body;
|
|
415
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
416
|
-
sessionId: [],
|
|
417
|
-
}));
|
|
418
|
-
b.m("POST").h(headers).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
};
|
|
421
|
-
exports.se_StopQAppSessionCommand = se_StopQAppSessionCommand;
|
|
422
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
423
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
424
|
-
const headers = {
|
|
425
|
-
"content-type": "application/json",
|
|
426
|
-
};
|
|
427
|
-
b.bp("/tags/{resourceARN}");
|
|
428
|
-
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
429
|
-
let body;
|
|
430
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
431
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
432
|
-
}));
|
|
433
|
-
b.m("POST").h(headers).b(body);
|
|
434
|
-
return b.build();
|
|
435
|
-
};
|
|
436
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
437
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
438
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
439
|
-
const headers = {};
|
|
440
|
-
b.bp("/tags/{resourceARN}");
|
|
441
|
-
b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
|
|
442
|
-
const query = (0, smithy_client_1.map)({
|
|
443
|
-
[_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
444
|
-
});
|
|
445
|
-
let body;
|
|
446
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
447
|
-
return b.build();
|
|
448
|
-
};
|
|
449
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
450
|
-
const se_UpdateLibraryItemCommand = async (input, context) => {
|
|
451
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
452
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
453
|
-
"content-type": "application/json",
|
|
454
|
-
[_ii]: input[_iI],
|
|
455
|
-
});
|
|
456
|
-
b.bp("/catalog.updateItem");
|
|
457
|
-
let body;
|
|
458
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
459
|
-
categories: (_) => (0, smithy_client_1._json)(_),
|
|
460
|
-
libraryItemId: [],
|
|
461
|
-
status: [],
|
|
462
|
-
}));
|
|
463
|
-
b.m("POST").h(headers).b(body);
|
|
464
|
-
return b.build();
|
|
465
|
-
};
|
|
466
|
-
exports.se_UpdateLibraryItemCommand = se_UpdateLibraryItemCommand;
|
|
467
|
-
const se_UpdateLibraryItemMetadataCommand = async (input, context) => {
|
|
468
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
469
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
470
|
-
"content-type": "application/json",
|
|
471
|
-
[_ii]: input[_iI],
|
|
472
|
-
});
|
|
473
|
-
b.bp("/catalog.updateItemMetadata");
|
|
474
|
-
let body;
|
|
475
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
476
|
-
isVerified: [],
|
|
477
|
-
libraryItemId: [],
|
|
478
|
-
}));
|
|
479
|
-
b.m("POST").h(headers).b(body);
|
|
480
|
-
return b.build();
|
|
481
|
-
};
|
|
482
|
-
exports.se_UpdateLibraryItemMetadataCommand = se_UpdateLibraryItemMetadataCommand;
|
|
483
|
-
const se_UpdateQAppCommand = async (input, context) => {
|
|
484
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
485
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
486
|
-
"content-type": "application/json",
|
|
487
|
-
[_ii]: input[_iI],
|
|
488
|
-
});
|
|
489
|
-
b.bp("/apps.update");
|
|
490
|
-
let body;
|
|
491
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
492
|
-
appDefinition: (_) => se_AppDefinitionInput(_, context),
|
|
493
|
-
appId: [],
|
|
494
|
-
description: [],
|
|
495
|
-
title: [],
|
|
496
|
-
}));
|
|
497
|
-
b.m("POST").h(headers).b(body);
|
|
498
|
-
return b.build();
|
|
499
|
-
};
|
|
500
|
-
exports.se_UpdateQAppCommand = se_UpdateQAppCommand;
|
|
501
|
-
const se_UpdateQAppPermissionsCommand = async (input, context) => {
|
|
502
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
503
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
504
|
-
"content-type": "application/json",
|
|
505
|
-
[_ii]: input[_iI],
|
|
506
|
-
});
|
|
507
|
-
b.bp("/apps.updateQAppPermissions");
|
|
508
|
-
let body;
|
|
509
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
510
|
-
appId: [],
|
|
511
|
-
grantPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
512
|
-
revokePermissions: (_) => (0, smithy_client_1._json)(_),
|
|
513
|
-
}));
|
|
514
|
-
b.m("POST").h(headers).b(body);
|
|
515
|
-
return b.build();
|
|
516
|
-
};
|
|
517
|
-
exports.se_UpdateQAppPermissionsCommand = se_UpdateQAppPermissionsCommand;
|
|
518
|
-
const se_UpdateQAppSessionCommand = async (input, context) => {
|
|
519
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
520
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
521
|
-
"content-type": "application/json",
|
|
522
|
-
[_ii]: input[_iI],
|
|
523
|
-
});
|
|
524
|
-
b.bp("/runtime.updateQAppSession");
|
|
525
|
-
let body;
|
|
526
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
527
|
-
sessionId: [],
|
|
528
|
-
values: (_) => (0, smithy_client_1._json)(_),
|
|
529
|
-
}));
|
|
530
|
-
b.m("POST").h(headers).b(body);
|
|
531
|
-
return b.build();
|
|
532
|
-
};
|
|
533
|
-
exports.se_UpdateQAppSessionCommand = se_UpdateQAppSessionCommand;
|
|
534
|
-
const se_UpdateQAppSessionMetadataCommand = async (input, context) => {
|
|
535
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
536
|
-
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
537
|
-
"content-type": "application/json",
|
|
538
|
-
[_ii]: input[_iI],
|
|
539
|
-
});
|
|
540
|
-
b.bp("/runtime.updateQAppSessionMetadata");
|
|
541
|
-
let body;
|
|
542
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
|
-
sessionId: [],
|
|
544
|
-
sessionName: [],
|
|
545
|
-
sharingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
546
|
-
}));
|
|
547
|
-
b.m("POST").h(headers).b(body);
|
|
548
|
-
return b.build();
|
|
549
|
-
};
|
|
550
|
-
exports.se_UpdateQAppSessionMetadataCommand = se_UpdateQAppSessionMetadataCommand;
|
|
551
|
-
const de_AssociateLibraryItemReviewCommand = async (output, context) => {
|
|
552
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
553
|
-
return de_CommandError(output, context);
|
|
554
|
-
}
|
|
555
|
-
const contents = (0, smithy_client_1.map)({
|
|
556
|
-
$metadata: deserializeMetadata(output),
|
|
557
|
-
});
|
|
558
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
559
|
-
return contents;
|
|
560
|
-
};
|
|
561
|
-
exports.de_AssociateLibraryItemReviewCommand = de_AssociateLibraryItemReviewCommand;
|
|
562
|
-
const de_AssociateQAppWithUserCommand = async (output, context) => {
|
|
563
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
564
|
-
return de_CommandError(output, context);
|
|
565
|
-
}
|
|
566
|
-
const contents = (0, smithy_client_1.map)({
|
|
567
|
-
$metadata: deserializeMetadata(output),
|
|
568
|
-
});
|
|
569
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
exports.de_AssociateQAppWithUserCommand = de_AssociateQAppWithUserCommand;
|
|
573
|
-
const de_BatchCreateCategoryCommand = async (output, context) => {
|
|
574
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
575
|
-
return de_CommandError(output, context);
|
|
576
|
-
}
|
|
577
|
-
const contents = (0, smithy_client_1.map)({
|
|
578
|
-
$metadata: deserializeMetadata(output),
|
|
579
|
-
});
|
|
580
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
581
|
-
return contents;
|
|
582
|
-
};
|
|
583
|
-
exports.de_BatchCreateCategoryCommand = de_BatchCreateCategoryCommand;
|
|
584
|
-
const de_BatchDeleteCategoryCommand = async (output, context) => {
|
|
585
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
586
|
-
return de_CommandError(output, context);
|
|
587
|
-
}
|
|
588
|
-
const contents = (0, smithy_client_1.map)({
|
|
589
|
-
$metadata: deserializeMetadata(output),
|
|
590
|
-
});
|
|
591
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
592
|
-
return contents;
|
|
593
|
-
};
|
|
594
|
-
exports.de_BatchDeleteCategoryCommand = de_BatchDeleteCategoryCommand;
|
|
595
|
-
const de_BatchUpdateCategoryCommand = async (output, context) => {
|
|
596
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return de_CommandError(output, context);
|
|
598
|
-
}
|
|
599
|
-
const contents = (0, smithy_client_1.map)({
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
});
|
|
602
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
603
|
-
return contents;
|
|
604
|
-
};
|
|
605
|
-
exports.de_BatchUpdateCategoryCommand = de_BatchUpdateCategoryCommand;
|
|
606
|
-
const de_CreateLibraryItemCommand = async (output, context) => {
|
|
607
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
-
return de_CommandError(output, context);
|
|
609
|
-
}
|
|
610
|
-
const contents = (0, smithy_client_1.map)({
|
|
611
|
-
$metadata: deserializeMetadata(output),
|
|
612
|
-
});
|
|
613
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
614
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
615
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
616
|
-
createdBy: smithy_client_1.expectString,
|
|
617
|
-
isVerified: smithy_client_1.expectBoolean,
|
|
618
|
-
libraryItemId: smithy_client_1.expectString,
|
|
619
|
-
ratingCount: smithy_client_1.expectInt32,
|
|
620
|
-
status: smithy_client_1.expectString,
|
|
621
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
622
|
-
updatedBy: smithy_client_1.expectString,
|
|
623
|
-
});
|
|
624
|
-
Object.assign(contents, doc);
|
|
625
|
-
return contents;
|
|
626
|
-
};
|
|
627
|
-
exports.de_CreateLibraryItemCommand = de_CreateLibraryItemCommand;
|
|
628
|
-
const de_CreatePresignedUrlCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
-
return de_CommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const contents = (0, smithy_client_1.map)({
|
|
633
|
-
$metadata: deserializeMetadata(output),
|
|
634
|
-
});
|
|
635
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
636
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
637
|
-
fileId: smithy_client_1.expectString,
|
|
638
|
-
presignedUrl: smithy_client_1.expectString,
|
|
639
|
-
presignedUrlExpiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
640
|
-
presignedUrlFields: smithy_client_1._json,
|
|
641
|
-
});
|
|
642
|
-
Object.assign(contents, doc);
|
|
643
|
-
return contents;
|
|
644
|
-
};
|
|
645
|
-
exports.de_CreatePresignedUrlCommand = de_CreatePresignedUrlCommand;
|
|
646
|
-
const de_CreateQAppCommand = async (output, context) => {
|
|
647
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
648
|
-
return de_CommandError(output, context);
|
|
649
|
-
}
|
|
650
|
-
const contents = (0, smithy_client_1.map)({
|
|
651
|
-
$metadata: deserializeMetadata(output),
|
|
652
|
-
});
|
|
653
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
654
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
655
|
-
appArn: smithy_client_1.expectString,
|
|
656
|
-
appId: smithy_client_1.expectString,
|
|
657
|
-
appVersion: smithy_client_1.expectInt32,
|
|
658
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
659
|
-
createdBy: smithy_client_1.expectString,
|
|
660
|
-
description: smithy_client_1.expectString,
|
|
661
|
-
initialPrompt: smithy_client_1.expectString,
|
|
662
|
-
requiredCapabilities: smithy_client_1._json,
|
|
663
|
-
status: smithy_client_1.expectString,
|
|
664
|
-
title: smithy_client_1.expectString,
|
|
665
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
666
|
-
updatedBy: smithy_client_1.expectString,
|
|
667
|
-
});
|
|
668
|
-
Object.assign(contents, doc);
|
|
669
|
-
return contents;
|
|
670
|
-
};
|
|
671
|
-
exports.de_CreateQAppCommand = de_CreateQAppCommand;
|
|
672
|
-
const de_DeleteLibraryItemCommand = async (output, context) => {
|
|
673
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
674
|
-
return de_CommandError(output, context);
|
|
675
|
-
}
|
|
676
|
-
const contents = (0, smithy_client_1.map)({
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
});
|
|
679
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
680
|
-
return contents;
|
|
681
|
-
};
|
|
682
|
-
exports.de_DeleteLibraryItemCommand = de_DeleteLibraryItemCommand;
|
|
683
|
-
const de_DeleteQAppCommand = async (output, context) => {
|
|
684
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
685
|
-
return de_CommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const contents = (0, smithy_client_1.map)({
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
});
|
|
690
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
691
|
-
return contents;
|
|
692
|
-
};
|
|
693
|
-
exports.de_DeleteQAppCommand = de_DeleteQAppCommand;
|
|
694
|
-
const de_DescribeQAppPermissionsCommand = async (output, context) => {
|
|
695
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
-
return de_CommandError(output, context);
|
|
697
|
-
}
|
|
698
|
-
const contents = (0, smithy_client_1.map)({
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
});
|
|
701
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
702
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
703
|
-
appId: smithy_client_1.expectString,
|
|
704
|
-
permissions: smithy_client_1._json,
|
|
705
|
-
resourceArn: smithy_client_1.expectString,
|
|
706
|
-
});
|
|
707
|
-
Object.assign(contents, doc);
|
|
708
|
-
return contents;
|
|
709
|
-
};
|
|
710
|
-
exports.de_DescribeQAppPermissionsCommand = de_DescribeQAppPermissionsCommand;
|
|
711
|
-
const de_DisassociateLibraryItemReviewCommand = async (output, context) => {
|
|
712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const contents = (0, smithy_client_1.map)({
|
|
716
|
-
$metadata: deserializeMetadata(output),
|
|
717
|
-
});
|
|
718
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
719
|
-
return contents;
|
|
720
|
-
};
|
|
721
|
-
exports.de_DisassociateLibraryItemReviewCommand = de_DisassociateLibraryItemReviewCommand;
|
|
722
|
-
const de_DisassociateQAppFromUserCommand = async (output, context) => {
|
|
723
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const contents = (0, smithy_client_1.map)({
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
});
|
|
729
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
730
|
-
return contents;
|
|
731
|
-
};
|
|
732
|
-
exports.de_DisassociateQAppFromUserCommand = de_DisassociateQAppFromUserCommand;
|
|
733
|
-
const de_ExportQAppSessionDataCommand = async (output, context) => {
|
|
734
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
-
return de_CommandError(output, context);
|
|
736
|
-
}
|
|
737
|
-
const contents = (0, smithy_client_1.map)({
|
|
738
|
-
$metadata: deserializeMetadata(output),
|
|
739
|
-
});
|
|
740
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
741
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
742
|
-
csvFileLink: smithy_client_1.expectString,
|
|
743
|
-
expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
744
|
-
sessionArn: smithy_client_1.expectString,
|
|
745
|
-
});
|
|
746
|
-
Object.assign(contents, doc);
|
|
747
|
-
return contents;
|
|
748
|
-
};
|
|
749
|
-
exports.de_ExportQAppSessionDataCommand = de_ExportQAppSessionDataCommand;
|
|
750
|
-
const de_GetLibraryItemCommand = async (output, context) => {
|
|
751
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
-
return de_CommandError(output, context);
|
|
753
|
-
}
|
|
754
|
-
const contents = (0, smithy_client_1.map)({
|
|
755
|
-
$metadata: deserializeMetadata(output),
|
|
756
|
-
});
|
|
757
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
758
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
759
|
-
appId: smithy_client_1.expectString,
|
|
760
|
-
appVersion: smithy_client_1.expectInt32,
|
|
761
|
-
categories: smithy_client_1._json,
|
|
762
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
763
|
-
createdBy: smithy_client_1.expectString,
|
|
764
|
-
isRatedByUser: smithy_client_1.expectBoolean,
|
|
765
|
-
isVerified: smithy_client_1.expectBoolean,
|
|
766
|
-
libraryItemId: smithy_client_1.expectString,
|
|
767
|
-
ratingCount: smithy_client_1.expectInt32,
|
|
768
|
-
status: smithy_client_1.expectString,
|
|
769
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
770
|
-
updatedBy: smithy_client_1.expectString,
|
|
771
|
-
userCount: smithy_client_1.expectInt32,
|
|
772
|
-
});
|
|
773
|
-
Object.assign(contents, doc);
|
|
774
|
-
return contents;
|
|
775
|
-
};
|
|
776
|
-
exports.de_GetLibraryItemCommand = de_GetLibraryItemCommand;
|
|
777
|
-
const de_GetQAppCommand = async (output, context) => {
|
|
778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
-
return de_CommandError(output, context);
|
|
780
|
-
}
|
|
781
|
-
const contents = (0, smithy_client_1.map)({
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
});
|
|
784
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
785
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
786
|
-
appArn: smithy_client_1.expectString,
|
|
787
|
-
appDefinition: (_) => de_AppDefinition(_, context),
|
|
788
|
-
appId: smithy_client_1.expectString,
|
|
789
|
-
appVersion: smithy_client_1.expectInt32,
|
|
790
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
791
|
-
createdBy: smithy_client_1.expectString,
|
|
792
|
-
description: smithy_client_1.expectString,
|
|
793
|
-
initialPrompt: smithy_client_1.expectString,
|
|
794
|
-
requiredCapabilities: smithy_client_1._json,
|
|
795
|
-
status: smithy_client_1.expectString,
|
|
796
|
-
title: smithy_client_1.expectString,
|
|
797
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
798
|
-
updatedBy: smithy_client_1.expectString,
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
};
|
|
803
|
-
exports.de_GetQAppCommand = de_GetQAppCommand;
|
|
804
|
-
const de_GetQAppSessionCommand = async (output, context) => {
|
|
805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const contents = (0, smithy_client_1.map)({
|
|
809
|
-
$metadata: deserializeMetadata(output),
|
|
810
|
-
});
|
|
811
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
812
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
813
|
-
appVersion: smithy_client_1.expectInt32,
|
|
814
|
-
cardStatus: (_) => de_CardStatusMap(_, context),
|
|
815
|
-
latestPublishedAppVersion: smithy_client_1.expectInt32,
|
|
816
|
-
sessionArn: smithy_client_1.expectString,
|
|
817
|
-
sessionId: smithy_client_1.expectString,
|
|
818
|
-
sessionName: smithy_client_1.expectString,
|
|
819
|
-
status: smithy_client_1.expectString,
|
|
820
|
-
userIsHost: smithy_client_1.expectBoolean,
|
|
821
|
-
});
|
|
822
|
-
Object.assign(contents, doc);
|
|
823
|
-
return contents;
|
|
824
|
-
};
|
|
825
|
-
exports.de_GetQAppSessionCommand = de_GetQAppSessionCommand;
|
|
826
|
-
const de_GetQAppSessionMetadataCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = (0, smithy_client_1.map)({
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
});
|
|
833
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
834
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
835
|
-
sessionArn: smithy_client_1.expectString,
|
|
836
|
-
sessionId: smithy_client_1.expectString,
|
|
837
|
-
sessionName: smithy_client_1.expectString,
|
|
838
|
-
sessionOwner: smithy_client_1.expectBoolean,
|
|
839
|
-
sharingConfiguration: smithy_client_1._json,
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
};
|
|
844
|
-
exports.de_GetQAppSessionMetadataCommand = de_GetQAppSessionMetadataCommand;
|
|
845
|
-
const de_ImportDocumentCommand = async (output, context) => {
|
|
846
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
847
|
-
return de_CommandError(output, context);
|
|
848
|
-
}
|
|
849
|
-
const contents = (0, smithy_client_1.map)({
|
|
850
|
-
$metadata: deserializeMetadata(output),
|
|
851
|
-
});
|
|
852
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
853
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
854
|
-
fileId: smithy_client_1.expectString,
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
};
|
|
859
|
-
exports.de_ImportDocumentCommand = de_ImportDocumentCommand;
|
|
860
|
-
const de_ListCategoriesCommand = async (output, context) => {
|
|
861
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
-
return de_CommandError(output, context);
|
|
863
|
-
}
|
|
864
|
-
const contents = (0, smithy_client_1.map)({
|
|
865
|
-
$metadata: deserializeMetadata(output),
|
|
866
|
-
});
|
|
867
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
868
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
869
|
-
categories: smithy_client_1._json,
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
return contents;
|
|
873
|
-
};
|
|
874
|
-
exports.de_ListCategoriesCommand = de_ListCategoriesCommand;
|
|
875
|
-
const de_ListLibraryItemsCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
-
return de_CommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
const contents = (0, smithy_client_1.map)({
|
|
880
|
-
$metadata: deserializeMetadata(output),
|
|
881
|
-
});
|
|
882
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
883
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
884
|
-
libraryItems: (_) => de_LibraryItemList(_, context),
|
|
885
|
-
nextToken: smithy_client_1.expectString,
|
|
886
|
-
});
|
|
887
|
-
Object.assign(contents, doc);
|
|
888
|
-
return contents;
|
|
889
|
-
};
|
|
890
|
-
exports.de_ListLibraryItemsCommand = de_ListLibraryItemsCommand;
|
|
891
|
-
const de_ListQAppsCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
-
return de_CommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const contents = (0, smithy_client_1.map)({
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
});
|
|
898
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
899
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
900
|
-
apps: (_) => de_UserAppsList(_, context),
|
|
901
|
-
nextToken: smithy_client_1.expectString,
|
|
902
|
-
});
|
|
903
|
-
Object.assign(contents, doc);
|
|
904
|
-
return contents;
|
|
905
|
-
};
|
|
906
|
-
exports.de_ListQAppsCommand = de_ListQAppsCommand;
|
|
907
|
-
const de_ListQAppSessionDataCommand = async (output, context) => {
|
|
908
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
-
return de_CommandError(output, context);
|
|
910
|
-
}
|
|
911
|
-
const contents = (0, smithy_client_1.map)({
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
});
|
|
914
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
915
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
916
|
-
nextToken: smithy_client_1.expectString,
|
|
917
|
-
sessionArn: smithy_client_1.expectString,
|
|
918
|
-
sessionData: (_) => de_QAppSessionDataList(_, context),
|
|
919
|
-
sessionId: smithy_client_1.expectString,
|
|
920
|
-
});
|
|
921
|
-
Object.assign(contents, doc);
|
|
922
|
-
return contents;
|
|
923
|
-
};
|
|
924
|
-
exports.de_ListQAppSessionDataCommand = de_ListQAppSessionDataCommand;
|
|
925
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
926
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
-
return de_CommandError(output, context);
|
|
928
|
-
}
|
|
929
|
-
const contents = (0, smithy_client_1.map)({
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
});
|
|
932
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
933
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
934
|
-
tags: smithy_client_1._json,
|
|
935
|
-
});
|
|
936
|
-
Object.assign(contents, doc);
|
|
937
|
-
return contents;
|
|
938
|
-
};
|
|
939
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
940
|
-
const de_PredictQAppCommand = async (output, context) => {
|
|
941
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return de_CommandError(output, context);
|
|
943
|
-
}
|
|
944
|
-
const contents = (0, smithy_client_1.map)({
|
|
945
|
-
$metadata: deserializeMetadata(output),
|
|
946
|
-
});
|
|
947
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
948
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
949
|
-
app: (_) => de_PredictAppDefinition(_, context),
|
|
950
|
-
problemStatement: smithy_client_1.expectString,
|
|
951
|
-
});
|
|
952
|
-
Object.assign(contents, doc);
|
|
953
|
-
return contents;
|
|
954
|
-
};
|
|
955
|
-
exports.de_PredictQAppCommand = de_PredictQAppCommand;
|
|
956
|
-
const de_StartQAppSessionCommand = async (output, context) => {
|
|
957
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
958
|
-
return de_CommandError(output, context);
|
|
959
|
-
}
|
|
960
|
-
const contents = (0, smithy_client_1.map)({
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
});
|
|
963
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
964
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
965
|
-
sessionArn: smithy_client_1.expectString,
|
|
966
|
-
sessionId: smithy_client_1.expectString,
|
|
967
|
-
});
|
|
968
|
-
Object.assign(contents, doc);
|
|
969
|
-
return contents;
|
|
970
|
-
};
|
|
971
|
-
exports.de_StartQAppSessionCommand = de_StartQAppSessionCommand;
|
|
972
|
-
const de_StopQAppSessionCommand = async (output, context) => {
|
|
973
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
974
|
-
return de_CommandError(output, context);
|
|
975
|
-
}
|
|
976
|
-
const contents = (0, smithy_client_1.map)({
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
});
|
|
979
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
980
|
-
return contents;
|
|
981
|
-
};
|
|
982
|
-
exports.de_StopQAppSessionCommand = de_StopQAppSessionCommand;
|
|
983
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
984
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
-
return de_CommandError(output, context);
|
|
986
|
-
}
|
|
987
|
-
const contents = (0, smithy_client_1.map)({
|
|
988
|
-
$metadata: deserializeMetadata(output),
|
|
989
|
-
});
|
|
990
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
991
|
-
return contents;
|
|
992
|
-
};
|
|
993
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
994
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
995
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return de_CommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const contents = (0, smithy_client_1.map)({
|
|
999
|
-
$metadata: deserializeMetadata(output),
|
|
1000
|
-
});
|
|
1001
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1002
|
-
return contents;
|
|
1003
|
-
};
|
|
1004
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1005
|
-
const de_UpdateLibraryItemCommand = async (output, context) => {
|
|
1006
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1007
|
-
return de_CommandError(output, context);
|
|
1008
|
-
}
|
|
1009
|
-
const contents = (0, smithy_client_1.map)({
|
|
1010
|
-
$metadata: deserializeMetadata(output),
|
|
1011
|
-
});
|
|
1012
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1013
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1014
|
-
appId: smithy_client_1.expectString,
|
|
1015
|
-
appVersion: smithy_client_1.expectInt32,
|
|
1016
|
-
categories: smithy_client_1._json,
|
|
1017
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1018
|
-
createdBy: smithy_client_1.expectString,
|
|
1019
|
-
isRatedByUser: smithy_client_1.expectBoolean,
|
|
1020
|
-
isVerified: smithy_client_1.expectBoolean,
|
|
1021
|
-
libraryItemId: smithy_client_1.expectString,
|
|
1022
|
-
ratingCount: smithy_client_1.expectInt32,
|
|
1023
|
-
status: smithy_client_1.expectString,
|
|
1024
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1025
|
-
updatedBy: smithy_client_1.expectString,
|
|
1026
|
-
userCount: smithy_client_1.expectInt32,
|
|
1027
|
-
});
|
|
1028
|
-
Object.assign(contents, doc);
|
|
1029
|
-
return contents;
|
|
1030
|
-
};
|
|
1031
|
-
exports.de_UpdateLibraryItemCommand = de_UpdateLibraryItemCommand;
|
|
1032
|
-
const de_UpdateLibraryItemMetadataCommand = async (output, context) => {
|
|
1033
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1034
|
-
return de_CommandError(output, context);
|
|
1035
|
-
}
|
|
1036
|
-
const contents = (0, smithy_client_1.map)({
|
|
1037
|
-
$metadata: deserializeMetadata(output),
|
|
1038
|
-
});
|
|
1039
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1040
|
-
return contents;
|
|
1041
|
-
};
|
|
1042
|
-
exports.de_UpdateLibraryItemMetadataCommand = de_UpdateLibraryItemMetadataCommand;
|
|
1043
|
-
const de_UpdateQAppCommand = async (output, context) => {
|
|
1044
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1045
|
-
return de_CommandError(output, context);
|
|
1046
|
-
}
|
|
1047
|
-
const contents = (0, smithy_client_1.map)({
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
});
|
|
1050
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1051
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1052
|
-
appArn: smithy_client_1.expectString,
|
|
1053
|
-
appId: smithy_client_1.expectString,
|
|
1054
|
-
appVersion: smithy_client_1.expectInt32,
|
|
1055
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1056
|
-
createdBy: smithy_client_1.expectString,
|
|
1057
|
-
description: smithy_client_1.expectString,
|
|
1058
|
-
initialPrompt: smithy_client_1.expectString,
|
|
1059
|
-
requiredCapabilities: smithy_client_1._json,
|
|
1060
|
-
status: smithy_client_1.expectString,
|
|
1061
|
-
title: smithy_client_1.expectString,
|
|
1062
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1063
|
-
updatedBy: smithy_client_1.expectString,
|
|
1064
|
-
});
|
|
1065
|
-
Object.assign(contents, doc);
|
|
1066
|
-
return contents;
|
|
1067
|
-
};
|
|
1068
|
-
exports.de_UpdateQAppCommand = de_UpdateQAppCommand;
|
|
1069
|
-
const de_UpdateQAppPermissionsCommand = async (output, context) => {
|
|
1070
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
-
return de_CommandError(output, context);
|
|
1072
|
-
}
|
|
1073
|
-
const contents = (0, smithy_client_1.map)({
|
|
1074
|
-
$metadata: deserializeMetadata(output),
|
|
1075
|
-
});
|
|
1076
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1077
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1078
|
-
appId: smithy_client_1.expectString,
|
|
1079
|
-
permissions: smithy_client_1._json,
|
|
1080
|
-
resourceArn: smithy_client_1.expectString,
|
|
1081
|
-
});
|
|
1082
|
-
Object.assign(contents, doc);
|
|
1083
|
-
return contents;
|
|
1084
|
-
};
|
|
1085
|
-
exports.de_UpdateQAppPermissionsCommand = de_UpdateQAppPermissionsCommand;
|
|
1086
|
-
const de_UpdateQAppSessionCommand = async (output, context) => {
|
|
1087
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
|
-
return de_CommandError(output, context);
|
|
1089
|
-
}
|
|
1090
|
-
const contents = (0, smithy_client_1.map)({
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
});
|
|
1093
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1094
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1095
|
-
sessionArn: smithy_client_1.expectString,
|
|
1096
|
-
sessionId: smithy_client_1.expectString,
|
|
1097
|
-
});
|
|
1098
|
-
Object.assign(contents, doc);
|
|
1099
|
-
return contents;
|
|
1100
|
-
};
|
|
1101
|
-
exports.de_UpdateQAppSessionCommand = de_UpdateQAppSessionCommand;
|
|
1102
|
-
const de_UpdateQAppSessionMetadataCommand = async (output, context) => {
|
|
1103
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
-
return de_CommandError(output, context);
|
|
1105
|
-
}
|
|
1106
|
-
const contents = (0, smithy_client_1.map)({
|
|
1107
|
-
$metadata: deserializeMetadata(output),
|
|
1108
|
-
});
|
|
1109
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1110
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1111
|
-
sessionArn: smithy_client_1.expectString,
|
|
1112
|
-
sessionId: smithy_client_1.expectString,
|
|
1113
|
-
sessionName: smithy_client_1.expectString,
|
|
1114
|
-
sharingConfiguration: smithy_client_1._json,
|
|
1115
|
-
});
|
|
1116
|
-
Object.assign(contents, doc);
|
|
1117
|
-
return contents;
|
|
1118
|
-
};
|
|
1119
|
-
exports.de_UpdateQAppSessionMetadataCommand = de_UpdateQAppSessionMetadataCommand;
|
|
1120
|
-
const de_CommandError = async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "AccessDeniedException":
|
|
1128
|
-
case "com.amazonaws.qapps#AccessDeniedException":
|
|
1129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "ConflictException":
|
|
1131
|
-
case "com.amazonaws.qapps#ConflictException":
|
|
1132
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "InternalServerException":
|
|
1134
|
-
case "com.amazonaws.qapps#InternalServerException":
|
|
1135
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ResourceNotFoundException":
|
|
1137
|
-
case "com.amazonaws.qapps#ResourceNotFoundException":
|
|
1138
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ServiceQuotaExceededException":
|
|
1140
|
-
case "com.amazonaws.qapps#ServiceQuotaExceededException":
|
|
1141
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1142
|
-
case "ThrottlingException":
|
|
1143
|
-
case "com.amazonaws.qapps#ThrottlingException":
|
|
1144
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1145
|
-
case "UnauthorizedException":
|
|
1146
|
-
case "com.amazonaws.qapps#UnauthorizedException":
|
|
1147
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1148
|
-
case "ValidationException":
|
|
1149
|
-
case "com.amazonaws.qapps#ValidationException":
|
|
1150
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "ContentTooLargeException":
|
|
1152
|
-
case "com.amazonaws.qapps#ContentTooLargeException":
|
|
1153
|
-
throw await de_ContentTooLargeExceptionRes(parsedOutput, context);
|
|
1154
|
-
default:
|
|
1155
|
-
const parsedBody = parsedOutput.body;
|
|
1156
|
-
return throwDefaultError({
|
|
1157
|
-
output,
|
|
1158
|
-
parsedBody,
|
|
1159
|
-
errorCode,
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
};
|
|
1163
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(QAppsServiceException_1.QAppsServiceException);
|
|
1164
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1165
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1166
|
-
const data = parsedOutput.body;
|
|
1167
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1168
|
-
message: smithy_client_1.expectString,
|
|
1169
|
-
});
|
|
1170
|
-
Object.assign(contents, doc);
|
|
1171
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
1172
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1173
|
-
...contents,
|
|
1174
|
-
});
|
|
1175
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1176
|
-
};
|
|
1177
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1178
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1179
|
-
const data = parsedOutput.body;
|
|
1180
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1181
|
-
message: smithy_client_1.expectString,
|
|
1182
|
-
resourceId: smithy_client_1.expectString,
|
|
1183
|
-
resourceType: smithy_client_1.expectString,
|
|
1184
|
-
});
|
|
1185
|
-
Object.assign(contents, doc);
|
|
1186
|
-
const exception = new models_0_1.ConflictException({
|
|
1187
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1188
|
-
...contents,
|
|
1189
|
-
});
|
|
1190
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1191
|
-
};
|
|
1192
|
-
const de_ContentTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
1193
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1194
|
-
const data = parsedOutput.body;
|
|
1195
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1196
|
-
message: smithy_client_1.expectString,
|
|
1197
|
-
resourceId: smithy_client_1.expectString,
|
|
1198
|
-
resourceType: smithy_client_1.expectString,
|
|
1199
|
-
});
|
|
1200
|
-
Object.assign(contents, doc);
|
|
1201
|
-
const exception = new models_0_1.ContentTooLargeException({
|
|
1202
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1203
|
-
...contents,
|
|
1204
|
-
});
|
|
1205
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1206
|
-
};
|
|
1207
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1208
|
-
const contents = (0, smithy_client_1.map)({
|
|
1209
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1210
|
-
});
|
|
1211
|
-
const data = parsedOutput.body;
|
|
1212
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1213
|
-
message: smithy_client_1.expectString,
|
|
1214
|
-
});
|
|
1215
|
-
Object.assign(contents, doc);
|
|
1216
|
-
const exception = new models_0_1.InternalServerException({
|
|
1217
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1218
|
-
...contents,
|
|
1219
|
-
});
|
|
1220
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1221
|
-
};
|
|
1222
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1223
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1224
|
-
const data = parsedOutput.body;
|
|
1225
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1226
|
-
message: smithy_client_1.expectString,
|
|
1227
|
-
resourceId: smithy_client_1.expectString,
|
|
1228
|
-
resourceType: smithy_client_1.expectString,
|
|
1229
|
-
});
|
|
1230
|
-
Object.assign(contents, doc);
|
|
1231
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1233
|
-
...contents,
|
|
1234
|
-
});
|
|
1235
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1236
|
-
};
|
|
1237
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1238
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1239
|
-
const data = parsedOutput.body;
|
|
1240
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1241
|
-
message: smithy_client_1.expectString,
|
|
1242
|
-
quotaCode: smithy_client_1.expectString,
|
|
1243
|
-
resourceId: smithy_client_1.expectString,
|
|
1244
|
-
resourceType: smithy_client_1.expectString,
|
|
1245
|
-
serviceCode: smithy_client_1.expectString,
|
|
1246
|
-
});
|
|
1247
|
-
Object.assign(contents, doc);
|
|
1248
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
1249
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1250
|
-
...contents,
|
|
1251
|
-
});
|
|
1252
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1253
|
-
};
|
|
1254
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1255
|
-
const contents = (0, smithy_client_1.map)({
|
|
1256
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
1257
|
-
});
|
|
1258
|
-
const data = parsedOutput.body;
|
|
1259
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1260
|
-
message: smithy_client_1.expectString,
|
|
1261
|
-
quotaCode: smithy_client_1.expectString,
|
|
1262
|
-
serviceCode: smithy_client_1.expectString,
|
|
1263
|
-
});
|
|
1264
|
-
Object.assign(contents, doc);
|
|
1265
|
-
const exception = new models_0_1.ThrottlingException({
|
|
1266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1267
|
-
...contents,
|
|
1268
|
-
});
|
|
1269
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1270
|
-
};
|
|
1271
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1272
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1273
|
-
const data = parsedOutput.body;
|
|
1274
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1275
|
-
message: smithy_client_1.expectString,
|
|
1276
|
-
});
|
|
1277
|
-
Object.assign(contents, doc);
|
|
1278
|
-
const exception = new models_0_1.UnauthorizedException({
|
|
1279
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1280
|
-
...contents,
|
|
1281
|
-
});
|
|
1282
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1283
|
-
};
|
|
1284
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1285
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1286
|
-
const data = parsedOutput.body;
|
|
1287
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1288
|
-
message: smithy_client_1.expectString,
|
|
1289
|
-
});
|
|
1290
|
-
Object.assign(contents, doc);
|
|
1291
|
-
const exception = new models_0_1.ValidationException({
|
|
1292
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1293
|
-
...contents,
|
|
1294
|
-
});
|
|
1295
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1296
|
-
};
|
|
1297
|
-
const se_AppDefinitionInput = (input, context) => {
|
|
1298
|
-
return (0, smithy_client_1.take)(input, {
|
|
1299
|
-
cards: (_) => se_CardList(_, context),
|
|
1300
|
-
initialPrompt: [],
|
|
1301
|
-
});
|
|
1302
|
-
};
|
|
1303
|
-
const se_AttributeFilter = (input, context) => {
|
|
1304
|
-
return (0, smithy_client_1.take)(input, {
|
|
1305
|
-
andAllFilters: (_) => se_AttributeFilters(_, context),
|
|
1306
|
-
containsAll: (_) => se_DocumentAttribute(_, context),
|
|
1307
|
-
containsAny: (_) => se_DocumentAttribute(_, context),
|
|
1308
|
-
equalsTo: (_) => se_DocumentAttribute(_, context),
|
|
1309
|
-
greaterThan: (_) => se_DocumentAttribute(_, context),
|
|
1310
|
-
greaterThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
1311
|
-
lessThan: (_) => se_DocumentAttribute(_, context),
|
|
1312
|
-
lessThanOrEquals: (_) => se_DocumentAttribute(_, context),
|
|
1313
|
-
notFilter: (_) => se_AttributeFilter(_, context),
|
|
1314
|
-
orAllFilters: (_) => se_AttributeFilters(_, context),
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
|
-
const se_AttributeFilters = (input, context) => {
|
|
1318
|
-
return input
|
|
1319
|
-
.filter((e) => e != null)
|
|
1320
|
-
.map((entry) => {
|
|
1321
|
-
return se_AttributeFilter(entry, context);
|
|
1322
|
-
});
|
|
1323
|
-
};
|
|
1324
|
-
const se_CardInput = (input, context) => {
|
|
1325
|
-
return models_0_1.CardInput.visit(input, {
|
|
1326
|
-
fileUpload: (value) => ({ fileUpload: (0, smithy_client_1._json)(value) }),
|
|
1327
|
-
formInput: (value) => ({ formInput: se_FormInputCardInput(value, context) }),
|
|
1328
|
-
qPlugin: (value) => ({ qPlugin: (0, smithy_client_1._json)(value) }),
|
|
1329
|
-
qQuery: (value) => ({ qQuery: se_QQueryCardInput(value, context) }),
|
|
1330
|
-
textInput: (value) => ({ textInput: (0, smithy_client_1._json)(value) }),
|
|
1331
|
-
_: (name, value) => ({ [name]: value }),
|
|
1332
|
-
});
|
|
1333
|
-
};
|
|
1334
|
-
const se_CardList = (input, context) => {
|
|
1335
|
-
return input
|
|
1336
|
-
.filter((e) => e != null)
|
|
1337
|
-
.map((entry) => {
|
|
1338
|
-
return se_CardInput(entry, context);
|
|
1339
|
-
});
|
|
1340
|
-
};
|
|
1341
|
-
const se_DocumentAttribute = (input, context) => {
|
|
1342
|
-
return (0, smithy_client_1.take)(input, {
|
|
1343
|
-
name: [],
|
|
1344
|
-
value: (_) => se_DocumentAttributeValue(_, context),
|
|
1345
|
-
});
|
|
1346
|
-
};
|
|
1347
|
-
const se_DocumentAttributeValue = (input, context) => {
|
|
1348
|
-
return models_0_1.DocumentAttributeValue.visit(input, {
|
|
1349
|
-
dateValue: (value) => ({ dateValue: value.getTime() / 1_000 }),
|
|
1350
|
-
longValue: (value) => ({ longValue: value }),
|
|
1351
|
-
stringListValue: (value) => ({ stringListValue: (0, smithy_client_1._json)(value) }),
|
|
1352
|
-
stringValue: (value) => ({ stringValue: value }),
|
|
1353
|
-
_: (name, value) => ({ [name]: value }),
|
|
1354
|
-
});
|
|
1355
|
-
};
|
|
1356
|
-
const se_FormInputCardInput = (input, context) => {
|
|
1357
|
-
return (0, smithy_client_1.take)(input, {
|
|
1358
|
-
computeMode: [],
|
|
1359
|
-
id: [],
|
|
1360
|
-
metadata: (_) => se_FormInputCardMetadata(_, context),
|
|
1361
|
-
title: [],
|
|
1362
|
-
type: [],
|
|
1363
|
-
});
|
|
1364
|
-
};
|
|
1365
|
-
const se_FormInputCardMetadata = (input, context) => {
|
|
1366
|
-
return (0, smithy_client_1.take)(input, {
|
|
1367
|
-
schema: (_) => se_FormInputCardMetadataSchema(_, context),
|
|
1368
|
-
});
|
|
1369
|
-
};
|
|
1370
|
-
const se_FormInputCardMetadataSchema = (input, context) => {
|
|
1371
|
-
return input;
|
|
1372
|
-
};
|
|
1373
|
-
const se_QQueryCardInput = (input, context) => {
|
|
1374
|
-
return (0, smithy_client_1.take)(input, {
|
|
1375
|
-
attributeFilter: (_) => se_AttributeFilter(_, context),
|
|
1376
|
-
id: [],
|
|
1377
|
-
outputSource: [],
|
|
1378
|
-
prompt: [],
|
|
1379
|
-
title: [],
|
|
1380
|
-
type: [],
|
|
1381
|
-
});
|
|
1382
|
-
};
|
|
1383
|
-
const de_AppDefinition = (output, context) => {
|
|
1384
|
-
return (0, smithy_client_1.take)(output, {
|
|
1385
|
-
appDefinitionVersion: smithy_client_1.expectString,
|
|
1386
|
-
canEdit: smithy_client_1.expectBoolean,
|
|
1387
|
-
cards: (_) => de_CardModelList(_, context),
|
|
1388
|
-
});
|
|
1389
|
-
};
|
|
1390
|
-
const de_AppDefinitionInput = (output, context) => {
|
|
1391
|
-
return (0, smithy_client_1.take)(output, {
|
|
1392
|
-
cards: (_) => de_CardList(_, context),
|
|
1393
|
-
initialPrompt: smithy_client_1.expectString,
|
|
1394
|
-
});
|
|
1395
|
-
};
|
|
1396
|
-
const de_AttributeFilter = (output, context) => {
|
|
1397
|
-
return (0, smithy_client_1.take)(output, {
|
|
1398
|
-
andAllFilters: (_) => de_AttributeFilters(_, context),
|
|
1399
|
-
containsAll: (_) => de_DocumentAttribute(_, context),
|
|
1400
|
-
containsAny: (_) => de_DocumentAttribute(_, context),
|
|
1401
|
-
equalsTo: (_) => de_DocumentAttribute(_, context),
|
|
1402
|
-
greaterThan: (_) => de_DocumentAttribute(_, context),
|
|
1403
|
-
greaterThanOrEquals: (_) => de_DocumentAttribute(_, context),
|
|
1404
|
-
lessThan: (_) => de_DocumentAttribute(_, context),
|
|
1405
|
-
lessThanOrEquals: (_) => de_DocumentAttribute(_, context),
|
|
1406
|
-
notFilter: (_) => de_AttributeFilter(_, context),
|
|
1407
|
-
orAllFilters: (_) => de_AttributeFilters(_, context),
|
|
1408
|
-
});
|
|
1409
|
-
};
|
|
1410
|
-
const de_AttributeFilters = (output, context) => {
|
|
1411
|
-
const retVal = (output || [])
|
|
1412
|
-
.filter((e) => e != null)
|
|
1413
|
-
.map((entry) => {
|
|
1414
|
-
return de_AttributeFilter(entry, context);
|
|
1415
|
-
});
|
|
1416
|
-
return retVal;
|
|
1417
|
-
};
|
|
1418
|
-
const de_Card = (output, context) => {
|
|
1419
|
-
if (output.fileUpload != null) {
|
|
1420
|
-
return {
|
|
1421
|
-
fileUpload: (0, smithy_client_1._json)(output.fileUpload),
|
|
1422
|
-
};
|
|
1423
|
-
}
|
|
1424
|
-
if (output.formInput != null) {
|
|
1425
|
-
return {
|
|
1426
|
-
formInput: de_FormInputCard(output.formInput, context),
|
|
1427
|
-
};
|
|
1428
|
-
}
|
|
1429
|
-
if (output.qPlugin != null) {
|
|
1430
|
-
return {
|
|
1431
|
-
qPlugin: (0, smithy_client_1._json)(output.qPlugin),
|
|
1432
|
-
};
|
|
1433
|
-
}
|
|
1434
|
-
if (output.qQuery != null) {
|
|
1435
|
-
return {
|
|
1436
|
-
qQuery: de_QQueryCard(output.qQuery, context),
|
|
1437
|
-
};
|
|
1438
|
-
}
|
|
1439
|
-
if (output.textInput != null) {
|
|
1440
|
-
return {
|
|
1441
|
-
textInput: (0, smithy_client_1._json)(output.textInput),
|
|
1442
|
-
};
|
|
1443
|
-
}
|
|
1444
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1445
|
-
};
|
|
1446
|
-
const de_CardInput = (output, context) => {
|
|
1447
|
-
if (output.fileUpload != null) {
|
|
1448
|
-
return {
|
|
1449
|
-
fileUpload: (0, smithy_client_1._json)(output.fileUpload),
|
|
1450
|
-
};
|
|
1451
|
-
}
|
|
1452
|
-
if (output.formInput != null) {
|
|
1453
|
-
return {
|
|
1454
|
-
formInput: de_FormInputCardInput(output.formInput, context),
|
|
1455
|
-
};
|
|
1456
|
-
}
|
|
1457
|
-
if (output.qPlugin != null) {
|
|
1458
|
-
return {
|
|
1459
|
-
qPlugin: (0, smithy_client_1._json)(output.qPlugin),
|
|
1460
|
-
};
|
|
1461
|
-
}
|
|
1462
|
-
if (output.qQuery != null) {
|
|
1463
|
-
return {
|
|
1464
|
-
qQuery: de_QQueryCardInput(output.qQuery, context),
|
|
1465
|
-
};
|
|
1466
|
-
}
|
|
1467
|
-
if (output.textInput != null) {
|
|
1468
|
-
return {
|
|
1469
|
-
textInput: (0, smithy_client_1._json)(output.textInput),
|
|
1470
|
-
};
|
|
1471
|
-
}
|
|
1472
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1473
|
-
};
|
|
1474
|
-
const de_CardList = (output, context) => {
|
|
1475
|
-
const retVal = (output || [])
|
|
1476
|
-
.filter((e) => e != null)
|
|
1477
|
-
.map((entry) => {
|
|
1478
|
-
return de_CardInput((0, core_1.awsExpectUnion)(entry), context);
|
|
1479
|
-
});
|
|
1480
|
-
return retVal;
|
|
1481
|
-
};
|
|
1482
|
-
const de_CardModelList = (output, context) => {
|
|
1483
|
-
const retVal = (output || [])
|
|
1484
|
-
.filter((e) => e != null)
|
|
1485
|
-
.map((entry) => {
|
|
1486
|
-
return de_Card((0, core_1.awsExpectUnion)(entry), context);
|
|
1487
|
-
});
|
|
1488
|
-
return retVal;
|
|
1489
|
-
};
|
|
1490
|
-
const de_CardStatus = (output, context) => {
|
|
1491
|
-
return (0, smithy_client_1.take)(output, {
|
|
1492
|
-
currentState: smithy_client_1.expectString,
|
|
1493
|
-
currentValue: smithy_client_1.expectString,
|
|
1494
|
-
submissions: (_) => de_SubmissionList(_, context),
|
|
1495
|
-
});
|
|
1496
|
-
};
|
|
1497
|
-
const de_CardStatusMap = (output, context) => {
|
|
1498
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1499
|
-
if (value === null) {
|
|
1500
|
-
return acc;
|
|
1501
|
-
}
|
|
1502
|
-
acc[key] = de_CardStatus(value, context);
|
|
1503
|
-
return acc;
|
|
1504
|
-
}, {});
|
|
1505
|
-
};
|
|
1506
|
-
const de_DocumentAttribute = (output, context) => {
|
|
1507
|
-
return (0, smithy_client_1.take)(output, {
|
|
1508
|
-
name: smithy_client_1.expectString,
|
|
1509
|
-
value: (_) => de_DocumentAttributeValue((0, core_1.awsExpectUnion)(_), context),
|
|
1510
|
-
});
|
|
1511
|
-
};
|
|
1512
|
-
const de_DocumentAttributeValue = (output, context) => {
|
|
1513
|
-
if (output.dateValue != null) {
|
|
1514
|
-
return {
|
|
1515
|
-
dateValue: (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.dateValue))),
|
|
1516
|
-
};
|
|
1517
|
-
}
|
|
1518
|
-
if ((0, smithy_client_1.expectLong)(output.longValue) !== undefined) {
|
|
1519
|
-
return { longValue: (0, smithy_client_1.expectLong)(output.longValue) };
|
|
1520
|
-
}
|
|
1521
|
-
if (output.stringListValue != null) {
|
|
1522
|
-
return {
|
|
1523
|
-
stringListValue: (0, smithy_client_1._json)(output.stringListValue),
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
if ((0, smithy_client_1.expectString)(output.stringValue) !== undefined) {
|
|
1527
|
-
return { stringValue: (0, smithy_client_1.expectString)(output.stringValue) };
|
|
1528
|
-
}
|
|
1529
|
-
return { $unknown: Object.entries(output)[0] };
|
|
1530
|
-
};
|
|
1531
|
-
const de_FormInputCard = (output, context) => {
|
|
1532
|
-
return (0, smithy_client_1.take)(output, {
|
|
1533
|
-
computeMode: smithy_client_1.expectString,
|
|
1534
|
-
dependencies: smithy_client_1._json,
|
|
1535
|
-
id: smithy_client_1.expectString,
|
|
1536
|
-
metadata: (_) => de_FormInputCardMetadata(_, context),
|
|
1537
|
-
title: smithy_client_1.expectString,
|
|
1538
|
-
type: smithy_client_1.expectString,
|
|
1539
|
-
});
|
|
1540
|
-
};
|
|
1541
|
-
const de_FormInputCardInput = (output, context) => {
|
|
1542
|
-
return (0, smithy_client_1.take)(output, {
|
|
1543
|
-
computeMode: smithy_client_1.expectString,
|
|
1544
|
-
id: smithy_client_1.expectString,
|
|
1545
|
-
metadata: (_) => de_FormInputCardMetadata(_, context),
|
|
1546
|
-
title: smithy_client_1.expectString,
|
|
1547
|
-
type: smithy_client_1.expectString,
|
|
1548
|
-
});
|
|
1549
|
-
};
|
|
1550
|
-
const de_FormInputCardMetadata = (output, context) => {
|
|
1551
|
-
return (0, smithy_client_1.take)(output, {
|
|
1552
|
-
schema: (_) => de_FormInputCardMetadataSchema(_, context),
|
|
1553
|
-
});
|
|
1554
|
-
};
|
|
1555
|
-
const de_FormInputCardMetadataSchema = (output, context) => {
|
|
1556
|
-
return output;
|
|
1557
|
-
};
|
|
1558
|
-
const de_LibraryItemList = (output, context) => {
|
|
1559
|
-
const retVal = (output || [])
|
|
1560
|
-
.filter((e) => e != null)
|
|
1561
|
-
.map((entry) => {
|
|
1562
|
-
return de_LibraryItemMember(entry, context);
|
|
1563
|
-
});
|
|
1564
|
-
return retVal;
|
|
1565
|
-
};
|
|
1566
|
-
const de_LibraryItemMember = (output, context) => {
|
|
1567
|
-
return (0, smithy_client_1.take)(output, {
|
|
1568
|
-
appId: smithy_client_1.expectString,
|
|
1569
|
-
appVersion: smithy_client_1.expectInt32,
|
|
1570
|
-
categories: smithy_client_1._json,
|
|
1571
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1572
|
-
createdBy: smithy_client_1.expectString,
|
|
1573
|
-
isRatedByUser: smithy_client_1.expectBoolean,
|
|
1574
|
-
isVerified: smithy_client_1.expectBoolean,
|
|
1575
|
-
libraryItemId: smithy_client_1.expectString,
|
|
1576
|
-
ratingCount: smithy_client_1.expectInt32,
|
|
1577
|
-
status: smithy_client_1.expectString,
|
|
1578
|
-
updatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1579
|
-
updatedBy: smithy_client_1.expectString,
|
|
1580
|
-
userCount: smithy_client_1.expectInt32,
|
|
1581
|
-
});
|
|
1582
|
-
};
|
|
1583
|
-
const de_PredictAppDefinition = (output, context) => {
|
|
1584
|
-
return (0, smithy_client_1.take)(output, {
|
|
1585
|
-
appDefinition: (_) => de_AppDefinitionInput(_, context),
|
|
1586
|
-
description: smithy_client_1.expectString,
|
|
1587
|
-
title: smithy_client_1.expectString,
|
|
1588
|
-
});
|
|
1589
|
-
};
|
|
1590
|
-
const de_QAppSessionData = (output, context) => {
|
|
1591
|
-
return (0, smithy_client_1.take)(output, {
|
|
1592
|
-
cardId: smithy_client_1.expectString,
|
|
1593
|
-
submissionId: smithy_client_1.expectString,
|
|
1594
|
-
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1595
|
-
user: smithy_client_1._json,
|
|
1596
|
-
value: (_) => de_Document(_, context),
|
|
1597
|
-
});
|
|
1598
|
-
};
|
|
1599
|
-
const de_QAppSessionDataList = (output, context) => {
|
|
1600
|
-
const retVal = (output || [])
|
|
1601
|
-
.filter((e) => e != null)
|
|
1602
|
-
.map((entry) => {
|
|
1603
|
-
return de_QAppSessionData(entry, context);
|
|
1604
|
-
});
|
|
1605
|
-
return retVal;
|
|
1606
|
-
};
|
|
1607
|
-
const de_QQueryCard = (output, context) => {
|
|
1608
|
-
return (0, smithy_client_1.take)(output, {
|
|
1609
|
-
attributeFilter: (_) => de_AttributeFilter(_, context),
|
|
1610
|
-
dependencies: smithy_client_1._json,
|
|
1611
|
-
id: smithy_client_1.expectString,
|
|
1612
|
-
memoryReferences: smithy_client_1._json,
|
|
1613
|
-
outputSource: smithy_client_1.expectString,
|
|
1614
|
-
prompt: smithy_client_1.expectString,
|
|
1615
|
-
title: smithy_client_1.expectString,
|
|
1616
|
-
type: smithy_client_1.expectString,
|
|
1617
|
-
});
|
|
1618
|
-
};
|
|
1619
|
-
const de_QQueryCardInput = (output, context) => {
|
|
1620
|
-
return (0, smithy_client_1.take)(output, {
|
|
1621
|
-
attributeFilter: (_) => de_AttributeFilter(_, context),
|
|
1622
|
-
id: smithy_client_1.expectString,
|
|
1623
|
-
outputSource: smithy_client_1.expectString,
|
|
1624
|
-
prompt: smithy_client_1.expectString,
|
|
1625
|
-
title: smithy_client_1.expectString,
|
|
1626
|
-
type: smithy_client_1.expectString,
|
|
1627
|
-
});
|
|
1628
|
-
};
|
|
1629
|
-
const de_Submission = (output, context) => {
|
|
1630
|
-
return (0, smithy_client_1.take)(output, {
|
|
1631
|
-
submissionId: smithy_client_1.expectString,
|
|
1632
|
-
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1633
|
-
value: (_) => de_Document(_, context),
|
|
1634
|
-
});
|
|
1635
|
-
};
|
|
1636
|
-
const de_SubmissionList = (output, context) => {
|
|
1637
|
-
const retVal = (output || [])
|
|
1638
|
-
.filter((e) => e != null)
|
|
1639
|
-
.map((entry) => {
|
|
1640
|
-
return de_Submission(entry, context);
|
|
1641
|
-
});
|
|
1642
|
-
return retVal;
|
|
1643
|
-
};
|
|
1644
|
-
const de_UserAppItem = (output, context) => {
|
|
1645
|
-
return (0, smithy_client_1.take)(output, {
|
|
1646
|
-
appArn: smithy_client_1.expectString,
|
|
1647
|
-
appId: smithy_client_1.expectString,
|
|
1648
|
-
canEdit: smithy_client_1.expectBoolean,
|
|
1649
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1650
|
-
description: smithy_client_1.expectString,
|
|
1651
|
-
isVerified: smithy_client_1.expectBoolean,
|
|
1652
|
-
status: smithy_client_1.expectString,
|
|
1653
|
-
title: smithy_client_1.expectString,
|
|
1654
|
-
});
|
|
1655
|
-
};
|
|
1656
|
-
const de_UserAppsList = (output, context) => {
|
|
1657
|
-
const retVal = (output || [])
|
|
1658
|
-
.filter((e) => e != null)
|
|
1659
|
-
.map((entry) => {
|
|
1660
|
-
return de_UserAppItem(entry, context);
|
|
1661
|
-
});
|
|
1662
|
-
return retVal;
|
|
1663
|
-
};
|
|
1664
|
-
const de_Document = (output, context) => {
|
|
1665
|
-
return output;
|
|
1666
|
-
};
|
|
1667
|
-
const deserializeMetadata = (output) => ({
|
|
1668
|
-
httpStatusCode: output.statusCode,
|
|
1669
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1670
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1671
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1672
|
-
});
|
|
1673
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1674
|
-
const _aI = "appId";
|
|
1675
|
-
const _aV = "appVersion";
|
|
1676
|
-
const _cI = "categoryId";
|
|
1677
|
-
const _iI = "instanceId";
|
|
1678
|
-
const _ii = "instance-id";
|
|
1679
|
-
const _l = "limit";
|
|
1680
|
-
const _lII = "libraryItemId";
|
|
1681
|
-
const _nT = "nextToken";
|
|
1682
|
-
const _rAS = "retryAfterSeconds";
|
|
1683
|
-
const _ra = "retry-after";
|
|
1684
|
-
const _sI = "sessionId";
|
|
1685
|
-
const _tK = "tagKeys";
|