@aws-sdk/client-partnercentral-selling 3.692.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/LICENSE +201 -0
- package/README.md +357 -0
- package/dist-cjs/PartnerCentralSelling.js +39 -0
- package/dist-cjs/PartnerCentralSellingClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssignOpportunityCommand.js +27 -0
- package/dist-cjs/commands/AssociateOpportunityCommand.js +26 -0
- package/dist-cjs/commands/CreateOpportunityCommand.js +27 -0
- package/dist-cjs/commands/DisassociateOpportunityCommand.js +26 -0
- package/dist-cjs/commands/GetAwsOpportunitySummaryCommand.js +27 -0
- package/dist-cjs/commands/GetEngagementInvitationCommand.js +27 -0
- package/dist-cjs/commands/GetOpportunityCommand.js +27 -0
- package/dist-cjs/commands/ListEngagementInvitationsCommand.js +27 -0
- package/dist-cjs/commands/ListOpportunitiesCommand.js +27 -0
- package/dist-cjs/commands/ListSolutionsCommand.js +26 -0
- package/dist-cjs/commands/RejectEngagementInvitationCommand.js +26 -0
- package/dist-cjs/commands/StartEngagementByAcceptingInvitationTaskCommand.js +26 -0
- package/dist-cjs/commands/StartEngagementFromOpportunityTaskCommand.js +26 -0
- package/dist-cjs/commands/UpdateOpportunityCommand.js +27 -0
- package/dist-cjs/commands/index.js +17 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/PartnerCentralSellingServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +1097 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListEngagementInvitationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListOpportunitiesPaginator.js +7 -0
- package/dist-cjs/pagination/ListSolutionsPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_json1_0.js +732 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/PartnerCentralSelling.js +35 -0
- package/dist-es/PartnerCentralSellingClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssignOpportunityCommand.js +23 -0
- package/dist-es/commands/AssociateOpportunityCommand.js +22 -0
- package/dist-es/commands/CreateOpportunityCommand.js +23 -0
- package/dist-es/commands/DisassociateOpportunityCommand.js +22 -0
- package/dist-es/commands/GetAwsOpportunitySummaryCommand.js +23 -0
- package/dist-es/commands/GetEngagementInvitationCommand.js +23 -0
- package/dist-es/commands/GetOpportunityCommand.js +23 -0
- package/dist-es/commands/ListEngagementInvitationsCommand.js +23 -0
- package/dist-es/commands/ListOpportunitiesCommand.js +23 -0
- package/dist-es/commands/ListSolutionsCommand.js +22 -0
- package/dist-es/commands/RejectEngagementInvitationCommand.js +22 -0
- package/dist-es/commands/StartEngagementByAcceptingInvitationTaskCommand.js +22 -0
- package/dist-es/commands/StartEngagementFromOpportunityTaskCommand.js +22 -0
- package/dist-es/commands/UpdateOpportunityCommand.js +23 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/PartnerCentralSellingServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +1055 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListEngagementInvitationsPaginator.js +4 -0
- package/dist-es/pagination/ListOpportunitiesPaginator.js +4 -0
- package/dist-es/pagination/ListSolutionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_0.js +701 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/PartnerCentralSelling.d.ts +147 -0
- package/dist-types/PartnerCentralSellingClient.d.ts +222 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AssignOpportunityCommand.d.ts +117 -0
- package/dist-types/commands/AssociateOpportunityCommand.d.ts +145 -0
- package/dist-types/commands/CreateOpportunityCommand.d.ts +244 -0
- package/dist-types/commands/DisassociateOpportunityCommand.d.ts +115 -0
- package/dist-types/commands/GetAwsOpportunitySummaryCommand.d.ts +167 -0
- package/dist-types/commands/GetEngagementInvitationCommand.d.ts +156 -0
- package/dist-types/commands/GetOpportunityCommand.d.ts +227 -0
- package/dist-types/commands/ListEngagementInvitationsCommand.d.ts +134 -0
- package/dist-types/commands/ListOpportunitiesCommand.d.ts +197 -0
- package/dist-types/commands/ListSolutionsCommand.d.ts +123 -0
- package/dist-types/commands/RejectEngagementInvitationCommand.d.ts +104 -0
- package/dist-types/commands/StartEngagementByAcceptingInvitationTaskCommand.d.ts +127 -0
- package/dist-types/commands/StartEngagementFromOpportunityTaskCommand.d.ts +130 -0
- package/dist-types/commands/UpdateOpportunityCommand.d.ts +214 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +53 -0
- package/dist-types/models/PartnerCentralSellingServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +4383 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListEngagementInvitationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListOpportunitiesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSolutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +128 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/PartnerCentralSelling.d.ts +257 -0
- package/dist-types/ts3.4/PartnerCentralSellingClient.d.ts +205 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AssignOpportunityCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/AssociateOpportunityCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/CreateOpportunityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateOpportunityCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetAwsOpportunitySummaryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEngagementInvitationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetOpportunityCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListEngagementInvitationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListOpportunitiesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListSolutionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/RejectEngagementInvitationCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/StartEngagementByAcceptingInvitationTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartEngagementFromOpportunityTaskCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateOpportunityCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/PartnerCentralSellingServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1419 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListEngagementInvitationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListOpportunitiesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSolutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +173 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +95 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +89 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +103 -0
|
@@ -0,0 +1,732 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_UpdateOpportunityCommand = exports.de_StartEngagementFromOpportunityTaskCommand = exports.de_StartEngagementByAcceptingInvitationTaskCommand = exports.de_RejectEngagementInvitationCommand = exports.de_ListSolutionsCommand = exports.de_ListOpportunitiesCommand = exports.de_ListEngagementInvitationsCommand = exports.de_GetOpportunityCommand = exports.de_GetEngagementInvitationCommand = exports.de_GetAwsOpportunitySummaryCommand = exports.de_DisassociateOpportunityCommand = exports.de_CreateOpportunityCommand = exports.de_AssociateOpportunityCommand = exports.de_AssignOpportunityCommand = exports.se_UpdateOpportunityCommand = exports.se_StartEngagementFromOpportunityTaskCommand = exports.se_StartEngagementByAcceptingInvitationTaskCommand = exports.se_RejectEngagementInvitationCommand = exports.se_ListSolutionsCommand = exports.se_ListOpportunitiesCommand = exports.se_ListEngagementInvitationsCommand = exports.se_GetOpportunityCommand = exports.se_GetEngagementInvitationCommand = exports.se_GetAwsOpportunitySummaryCommand = exports.se_DisassociateOpportunityCommand = exports.se_CreateOpportunityCommand = exports.se_AssociateOpportunityCommand = exports.se_AssignOpportunityCommand = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const PartnerCentralSellingServiceException_1 = require("../models/PartnerCentralSellingServiceException");
|
|
10
|
+
const se_AssignOpportunityCommand = async (input, context) => {
|
|
11
|
+
const headers = sharedHeaders("AssignOpportunity");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
+
};
|
|
16
|
+
exports.se_AssignOpportunityCommand = se_AssignOpportunityCommand;
|
|
17
|
+
const se_AssociateOpportunityCommand = async (input, context) => {
|
|
18
|
+
const headers = sharedHeaders("AssociateOpportunity");
|
|
19
|
+
let body;
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
+
};
|
|
23
|
+
exports.se_AssociateOpportunityCommand = se_AssociateOpportunityCommand;
|
|
24
|
+
const se_CreateOpportunityCommand = async (input, context) => {
|
|
25
|
+
const headers = sharedHeaders("CreateOpportunity");
|
|
26
|
+
let body;
|
|
27
|
+
body = JSON.stringify(se_CreateOpportunityRequest(input, context));
|
|
28
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
+
};
|
|
30
|
+
exports.se_CreateOpportunityCommand = se_CreateOpportunityCommand;
|
|
31
|
+
const se_DisassociateOpportunityCommand = async (input, context) => {
|
|
32
|
+
const headers = sharedHeaders("DisassociateOpportunity");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
+
};
|
|
37
|
+
exports.se_DisassociateOpportunityCommand = se_DisassociateOpportunityCommand;
|
|
38
|
+
const se_GetAwsOpportunitySummaryCommand = async (input, context) => {
|
|
39
|
+
const headers = sharedHeaders("GetAwsOpportunitySummary");
|
|
40
|
+
let body;
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
+
};
|
|
44
|
+
exports.se_GetAwsOpportunitySummaryCommand = se_GetAwsOpportunitySummaryCommand;
|
|
45
|
+
const se_GetEngagementInvitationCommand = async (input, context) => {
|
|
46
|
+
const headers = sharedHeaders("GetEngagementInvitation");
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
exports.se_GetEngagementInvitationCommand = se_GetEngagementInvitationCommand;
|
|
52
|
+
const se_GetOpportunityCommand = async (input, context) => {
|
|
53
|
+
const headers = sharedHeaders("GetOpportunity");
|
|
54
|
+
let body;
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
+
};
|
|
58
|
+
exports.se_GetOpportunityCommand = se_GetOpportunityCommand;
|
|
59
|
+
const se_ListEngagementInvitationsCommand = async (input, context) => {
|
|
60
|
+
const headers = sharedHeaders("ListEngagementInvitations");
|
|
61
|
+
let body;
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
+
};
|
|
65
|
+
exports.se_ListEngagementInvitationsCommand = se_ListEngagementInvitationsCommand;
|
|
66
|
+
const se_ListOpportunitiesCommand = async (input, context) => {
|
|
67
|
+
const headers = sharedHeaders("ListOpportunities");
|
|
68
|
+
let body;
|
|
69
|
+
body = JSON.stringify(se_ListOpportunitiesRequest(input, context));
|
|
70
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
+
};
|
|
72
|
+
exports.se_ListOpportunitiesCommand = se_ListOpportunitiesCommand;
|
|
73
|
+
const se_ListSolutionsCommand = async (input, context) => {
|
|
74
|
+
const headers = sharedHeaders("ListSolutions");
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
exports.se_ListSolutionsCommand = se_ListSolutionsCommand;
|
|
80
|
+
const se_RejectEngagementInvitationCommand = async (input, context) => {
|
|
81
|
+
const headers = sharedHeaders("RejectEngagementInvitation");
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
exports.se_RejectEngagementInvitationCommand = se_RejectEngagementInvitationCommand;
|
|
87
|
+
const se_StartEngagementByAcceptingInvitationTaskCommand = async (input, context) => {
|
|
88
|
+
const headers = sharedHeaders("StartEngagementByAcceptingInvitationTask");
|
|
89
|
+
let body;
|
|
90
|
+
body = JSON.stringify(se_StartEngagementByAcceptingInvitationTaskRequest(input, context));
|
|
91
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
+
};
|
|
93
|
+
exports.se_StartEngagementByAcceptingInvitationTaskCommand = se_StartEngagementByAcceptingInvitationTaskCommand;
|
|
94
|
+
const se_StartEngagementFromOpportunityTaskCommand = async (input, context) => {
|
|
95
|
+
const headers = sharedHeaders("StartEngagementFromOpportunityTask");
|
|
96
|
+
let body;
|
|
97
|
+
body = JSON.stringify(se_StartEngagementFromOpportunityTaskRequest(input, context));
|
|
98
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
+
};
|
|
100
|
+
exports.se_StartEngagementFromOpportunityTaskCommand = se_StartEngagementFromOpportunityTaskCommand;
|
|
101
|
+
const se_UpdateOpportunityCommand = async (input, context) => {
|
|
102
|
+
const headers = sharedHeaders("UpdateOpportunity");
|
|
103
|
+
let body;
|
|
104
|
+
body = JSON.stringify(se_UpdateOpportunityRequest(input, context));
|
|
105
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
+
};
|
|
107
|
+
exports.se_UpdateOpportunityCommand = se_UpdateOpportunityCommand;
|
|
108
|
+
const de_AssignOpportunityCommand = async (output, context) => {
|
|
109
|
+
if (output.statusCode >= 300) {
|
|
110
|
+
return de_CommandError(output, context);
|
|
111
|
+
}
|
|
112
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
113
|
+
const response = {
|
|
114
|
+
$metadata: deserializeMetadata(output),
|
|
115
|
+
};
|
|
116
|
+
return response;
|
|
117
|
+
};
|
|
118
|
+
exports.de_AssignOpportunityCommand = de_AssignOpportunityCommand;
|
|
119
|
+
const de_AssociateOpportunityCommand = async (output, context) => {
|
|
120
|
+
if (output.statusCode >= 300) {
|
|
121
|
+
return de_CommandError(output, context);
|
|
122
|
+
}
|
|
123
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
124
|
+
const response = {
|
|
125
|
+
$metadata: deserializeMetadata(output),
|
|
126
|
+
};
|
|
127
|
+
return response;
|
|
128
|
+
};
|
|
129
|
+
exports.de_AssociateOpportunityCommand = de_AssociateOpportunityCommand;
|
|
130
|
+
const de_CreateOpportunityCommand = async (output, context) => {
|
|
131
|
+
if (output.statusCode >= 300) {
|
|
132
|
+
return de_CommandError(output, context);
|
|
133
|
+
}
|
|
134
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
135
|
+
let contents = {};
|
|
136
|
+
contents = de_CreateOpportunityResponse(data, context);
|
|
137
|
+
const response = {
|
|
138
|
+
$metadata: deserializeMetadata(output),
|
|
139
|
+
...contents,
|
|
140
|
+
};
|
|
141
|
+
return response;
|
|
142
|
+
};
|
|
143
|
+
exports.de_CreateOpportunityCommand = de_CreateOpportunityCommand;
|
|
144
|
+
const de_DisassociateOpportunityCommand = async (output, context) => {
|
|
145
|
+
if (output.statusCode >= 300) {
|
|
146
|
+
return de_CommandError(output, context);
|
|
147
|
+
}
|
|
148
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
149
|
+
const response = {
|
|
150
|
+
$metadata: deserializeMetadata(output),
|
|
151
|
+
};
|
|
152
|
+
return response;
|
|
153
|
+
};
|
|
154
|
+
exports.de_DisassociateOpportunityCommand = de_DisassociateOpportunityCommand;
|
|
155
|
+
const de_GetAwsOpportunitySummaryCommand = async (output, context) => {
|
|
156
|
+
if (output.statusCode >= 300) {
|
|
157
|
+
return de_CommandError(output, context);
|
|
158
|
+
}
|
|
159
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
160
|
+
let contents = {};
|
|
161
|
+
contents = de_GetAwsOpportunitySummaryResponse(data, context);
|
|
162
|
+
const response = {
|
|
163
|
+
$metadata: deserializeMetadata(output),
|
|
164
|
+
...contents,
|
|
165
|
+
};
|
|
166
|
+
return response;
|
|
167
|
+
};
|
|
168
|
+
exports.de_GetAwsOpportunitySummaryCommand = de_GetAwsOpportunitySummaryCommand;
|
|
169
|
+
const de_GetEngagementInvitationCommand = async (output, context) => {
|
|
170
|
+
if (output.statusCode >= 300) {
|
|
171
|
+
return de_CommandError(output, context);
|
|
172
|
+
}
|
|
173
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
174
|
+
let contents = {};
|
|
175
|
+
contents = de_GetEngagementInvitationResponse(data, context);
|
|
176
|
+
const response = {
|
|
177
|
+
$metadata: deserializeMetadata(output),
|
|
178
|
+
...contents,
|
|
179
|
+
};
|
|
180
|
+
return response;
|
|
181
|
+
};
|
|
182
|
+
exports.de_GetEngagementInvitationCommand = de_GetEngagementInvitationCommand;
|
|
183
|
+
const de_GetOpportunityCommand = async (output, context) => {
|
|
184
|
+
if (output.statusCode >= 300) {
|
|
185
|
+
return de_CommandError(output, context);
|
|
186
|
+
}
|
|
187
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
188
|
+
let contents = {};
|
|
189
|
+
contents = de_GetOpportunityResponse(data, context);
|
|
190
|
+
const response = {
|
|
191
|
+
$metadata: deserializeMetadata(output),
|
|
192
|
+
...contents,
|
|
193
|
+
};
|
|
194
|
+
return response;
|
|
195
|
+
};
|
|
196
|
+
exports.de_GetOpportunityCommand = de_GetOpportunityCommand;
|
|
197
|
+
const de_ListEngagementInvitationsCommand = async (output, context) => {
|
|
198
|
+
if (output.statusCode >= 300) {
|
|
199
|
+
return de_CommandError(output, context);
|
|
200
|
+
}
|
|
201
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
202
|
+
let contents = {};
|
|
203
|
+
contents = de_ListEngagementInvitationsResponse(data, context);
|
|
204
|
+
const response = {
|
|
205
|
+
$metadata: deserializeMetadata(output),
|
|
206
|
+
...contents,
|
|
207
|
+
};
|
|
208
|
+
return response;
|
|
209
|
+
};
|
|
210
|
+
exports.de_ListEngagementInvitationsCommand = de_ListEngagementInvitationsCommand;
|
|
211
|
+
const de_ListOpportunitiesCommand = async (output, context) => {
|
|
212
|
+
if (output.statusCode >= 300) {
|
|
213
|
+
return de_CommandError(output, context);
|
|
214
|
+
}
|
|
215
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
216
|
+
let contents = {};
|
|
217
|
+
contents = de_ListOpportunitiesResponse(data, context);
|
|
218
|
+
const response = {
|
|
219
|
+
$metadata: deserializeMetadata(output),
|
|
220
|
+
...contents,
|
|
221
|
+
};
|
|
222
|
+
return response;
|
|
223
|
+
};
|
|
224
|
+
exports.de_ListOpportunitiesCommand = de_ListOpportunitiesCommand;
|
|
225
|
+
const de_ListSolutionsCommand = async (output, context) => {
|
|
226
|
+
if (output.statusCode >= 300) {
|
|
227
|
+
return de_CommandError(output, context);
|
|
228
|
+
}
|
|
229
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
230
|
+
let contents = {};
|
|
231
|
+
contents = de_ListSolutionsResponse(data, context);
|
|
232
|
+
const response = {
|
|
233
|
+
$metadata: deserializeMetadata(output),
|
|
234
|
+
...contents,
|
|
235
|
+
};
|
|
236
|
+
return response;
|
|
237
|
+
};
|
|
238
|
+
exports.de_ListSolutionsCommand = de_ListSolutionsCommand;
|
|
239
|
+
const de_RejectEngagementInvitationCommand = async (output, context) => {
|
|
240
|
+
if (output.statusCode >= 300) {
|
|
241
|
+
return de_CommandError(output, context);
|
|
242
|
+
}
|
|
243
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
244
|
+
const response = {
|
|
245
|
+
$metadata: deserializeMetadata(output),
|
|
246
|
+
};
|
|
247
|
+
return response;
|
|
248
|
+
};
|
|
249
|
+
exports.de_RejectEngagementInvitationCommand = de_RejectEngagementInvitationCommand;
|
|
250
|
+
const de_StartEngagementByAcceptingInvitationTaskCommand = async (output, context) => {
|
|
251
|
+
if (output.statusCode >= 300) {
|
|
252
|
+
return de_CommandError(output, context);
|
|
253
|
+
}
|
|
254
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
255
|
+
let contents = {};
|
|
256
|
+
contents = de_StartEngagementByAcceptingInvitationTaskResponse(data, context);
|
|
257
|
+
const response = {
|
|
258
|
+
$metadata: deserializeMetadata(output),
|
|
259
|
+
...contents,
|
|
260
|
+
};
|
|
261
|
+
return response;
|
|
262
|
+
};
|
|
263
|
+
exports.de_StartEngagementByAcceptingInvitationTaskCommand = de_StartEngagementByAcceptingInvitationTaskCommand;
|
|
264
|
+
const de_StartEngagementFromOpportunityTaskCommand = async (output, context) => {
|
|
265
|
+
if (output.statusCode >= 300) {
|
|
266
|
+
return de_CommandError(output, context);
|
|
267
|
+
}
|
|
268
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
269
|
+
let contents = {};
|
|
270
|
+
contents = de_StartEngagementFromOpportunityTaskResponse(data, context);
|
|
271
|
+
const response = {
|
|
272
|
+
$metadata: deserializeMetadata(output),
|
|
273
|
+
...contents,
|
|
274
|
+
};
|
|
275
|
+
return response;
|
|
276
|
+
};
|
|
277
|
+
exports.de_StartEngagementFromOpportunityTaskCommand = de_StartEngagementFromOpportunityTaskCommand;
|
|
278
|
+
const de_UpdateOpportunityCommand = async (output, context) => {
|
|
279
|
+
if (output.statusCode >= 300) {
|
|
280
|
+
return de_CommandError(output, context);
|
|
281
|
+
}
|
|
282
|
+
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
283
|
+
let contents = {};
|
|
284
|
+
contents = de_UpdateOpportunityResponse(data, context);
|
|
285
|
+
const response = {
|
|
286
|
+
$metadata: deserializeMetadata(output),
|
|
287
|
+
...contents,
|
|
288
|
+
};
|
|
289
|
+
return response;
|
|
290
|
+
};
|
|
291
|
+
exports.de_UpdateOpportunityCommand = de_UpdateOpportunityCommand;
|
|
292
|
+
const de_CommandError = async (output, context) => {
|
|
293
|
+
const parsedOutput = {
|
|
294
|
+
...output,
|
|
295
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
296
|
+
};
|
|
297
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
298
|
+
switch (errorCode) {
|
|
299
|
+
case "AccessDeniedException":
|
|
300
|
+
case "com.amazonaws.partnercentralselling#AccessDeniedException":
|
|
301
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
302
|
+
case "InternalServerException":
|
|
303
|
+
case "com.amazonaws.partnercentralselling#InternalServerException":
|
|
304
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
305
|
+
case "ResourceNotFoundException":
|
|
306
|
+
case "com.amazonaws.partnercentralselling#ResourceNotFoundException":
|
|
307
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
308
|
+
case "ThrottlingException":
|
|
309
|
+
case "com.amazonaws.partnercentralselling#ThrottlingException":
|
|
310
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
311
|
+
case "ValidationException":
|
|
312
|
+
case "com.amazonaws.partnercentralselling#ValidationException":
|
|
313
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
314
|
+
case "ConflictException":
|
|
315
|
+
case "com.amazonaws.partnercentralselling#ConflictException":
|
|
316
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
317
|
+
case "ServiceQuotaExceededException":
|
|
318
|
+
case "com.amazonaws.partnercentralselling#ServiceQuotaExceededException":
|
|
319
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
320
|
+
default:
|
|
321
|
+
const parsedBody = parsedOutput.body;
|
|
322
|
+
return throwDefaultError({
|
|
323
|
+
output,
|
|
324
|
+
parsedBody,
|
|
325
|
+
errorCode,
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
330
|
+
const body = parsedOutput.body;
|
|
331
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
332
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
333
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
334
|
+
...deserialized,
|
|
335
|
+
});
|
|
336
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
337
|
+
};
|
|
338
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
339
|
+
const body = parsedOutput.body;
|
|
340
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
341
|
+
const exception = new models_0_1.ConflictException({
|
|
342
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
343
|
+
...deserialized,
|
|
344
|
+
});
|
|
345
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
346
|
+
};
|
|
347
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
348
|
+
const body = parsedOutput.body;
|
|
349
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
350
|
+
const exception = new models_0_1.InternalServerException({
|
|
351
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
352
|
+
...deserialized,
|
|
353
|
+
});
|
|
354
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
355
|
+
};
|
|
356
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
357
|
+
const body = parsedOutput.body;
|
|
358
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
359
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
+
...deserialized,
|
|
362
|
+
});
|
|
363
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
364
|
+
};
|
|
365
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
366
|
+
const body = parsedOutput.body;
|
|
367
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
368
|
+
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
369
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
370
|
+
...deserialized,
|
|
371
|
+
});
|
|
372
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
373
|
+
};
|
|
374
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
375
|
+
const body = parsedOutput.body;
|
|
376
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
377
|
+
const exception = new models_0_1.ThrottlingException({
|
|
378
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
379
|
+
...deserialized,
|
|
380
|
+
});
|
|
381
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
382
|
+
};
|
|
383
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
384
|
+
const body = parsedOutput.body;
|
|
385
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
386
|
+
const exception = new models_0_1.ValidationException({
|
|
387
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
388
|
+
...deserialized,
|
|
389
|
+
});
|
|
390
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
391
|
+
};
|
|
392
|
+
const se_CreateOpportunityRequest = (input, context) => {
|
|
393
|
+
return (0, smithy_client_1.take)(input, {
|
|
394
|
+
Catalog: [],
|
|
395
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
396
|
+
Customer: smithy_client_1._json,
|
|
397
|
+
LifeCycle: (_) => se_LifeCycle(_, context),
|
|
398
|
+
Marketing: smithy_client_1._json,
|
|
399
|
+
NationalSecurity: [],
|
|
400
|
+
OpportunityTeam: smithy_client_1._json,
|
|
401
|
+
OpportunityType: [],
|
|
402
|
+
Origin: [],
|
|
403
|
+
PartnerOpportunityIdentifier: [],
|
|
404
|
+
PrimaryNeedsFromAws: smithy_client_1._json,
|
|
405
|
+
Project: smithy_client_1._json,
|
|
406
|
+
SoftwareRevenue: smithy_client_1._json,
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
const se_LastModifiedDate = (input, context) => {
|
|
410
|
+
return (0, smithy_client_1.take)(input, {
|
|
411
|
+
AfterLastModifiedDate: smithy_client_1.serializeDateTime,
|
|
412
|
+
BeforeLastModifiedDate: smithy_client_1.serializeDateTime,
|
|
413
|
+
});
|
|
414
|
+
};
|
|
415
|
+
const se_LifeCycle = (input, context) => {
|
|
416
|
+
return (0, smithy_client_1.take)(input, {
|
|
417
|
+
ClosedLostReason: [],
|
|
418
|
+
NextSteps: [],
|
|
419
|
+
NextStepsHistory: (_) => se_NextStepsHistories(_, context),
|
|
420
|
+
ReviewComments: [],
|
|
421
|
+
ReviewStatus: [],
|
|
422
|
+
ReviewStatusReason: [],
|
|
423
|
+
Stage: [],
|
|
424
|
+
TargetCloseDate: [],
|
|
425
|
+
});
|
|
426
|
+
};
|
|
427
|
+
const se_ListOpportunitiesRequest = (input, context) => {
|
|
428
|
+
return (0, smithy_client_1.take)(input, {
|
|
429
|
+
Catalog: [],
|
|
430
|
+
CustomerCompanyName: smithy_client_1._json,
|
|
431
|
+
Identifier: smithy_client_1._json,
|
|
432
|
+
LastModifiedDate: (_) => se_LastModifiedDate(_, context),
|
|
433
|
+
LifeCycleReviewStatus: smithy_client_1._json,
|
|
434
|
+
LifeCycleStage: smithy_client_1._json,
|
|
435
|
+
MaxResults: [],
|
|
436
|
+
NextToken: [],
|
|
437
|
+
Sort: smithy_client_1._json,
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
const se_NextStepsHistories = (input, context) => {
|
|
441
|
+
return input
|
|
442
|
+
.filter((e) => e != null)
|
|
443
|
+
.map((entry) => {
|
|
444
|
+
return se_NextStepsHistory(entry, context);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
const se_NextStepsHistory = (input, context) => {
|
|
448
|
+
return (0, smithy_client_1.take)(input, {
|
|
449
|
+
Time: smithy_client_1.serializeDateTime,
|
|
450
|
+
Value: [],
|
|
451
|
+
});
|
|
452
|
+
};
|
|
453
|
+
const se_StartEngagementByAcceptingInvitationTaskRequest = (input, context) => {
|
|
454
|
+
return (0, smithy_client_1.take)(input, {
|
|
455
|
+
Catalog: [],
|
|
456
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
457
|
+
Identifier: [],
|
|
458
|
+
});
|
|
459
|
+
};
|
|
460
|
+
const se_StartEngagementFromOpportunityTaskRequest = (input, context) => {
|
|
461
|
+
return (0, smithy_client_1.take)(input, {
|
|
462
|
+
AwsSubmission: smithy_client_1._json,
|
|
463
|
+
Catalog: [],
|
|
464
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
465
|
+
Identifier: [],
|
|
466
|
+
});
|
|
467
|
+
};
|
|
468
|
+
const se_UpdateOpportunityRequest = (input, context) => {
|
|
469
|
+
return (0, smithy_client_1.take)(input, {
|
|
470
|
+
Catalog: [],
|
|
471
|
+
Customer: smithy_client_1._json,
|
|
472
|
+
Identifier: [],
|
|
473
|
+
LastModifiedDate: smithy_client_1.serializeDateTime,
|
|
474
|
+
LifeCycle: (_) => se_LifeCycle(_, context),
|
|
475
|
+
Marketing: smithy_client_1._json,
|
|
476
|
+
NationalSecurity: [],
|
|
477
|
+
OpportunityType: [],
|
|
478
|
+
PartnerOpportunityIdentifier: [],
|
|
479
|
+
PrimaryNeedsFromAws: smithy_client_1._json,
|
|
480
|
+
Project: smithy_client_1._json,
|
|
481
|
+
SoftwareRevenue: smithy_client_1._json,
|
|
482
|
+
});
|
|
483
|
+
};
|
|
484
|
+
const de_AwsOpportunityLifeCycle = (output, context) => {
|
|
485
|
+
return (0, smithy_client_1.take)(output, {
|
|
486
|
+
ClosedLostReason: smithy_client_1.expectString,
|
|
487
|
+
NextSteps: smithy_client_1.expectString,
|
|
488
|
+
NextStepsHistory: (_) => de_ProfileNextStepsHistories(_, context),
|
|
489
|
+
Stage: smithy_client_1.expectString,
|
|
490
|
+
TargetCloseDate: smithy_client_1.expectString,
|
|
491
|
+
});
|
|
492
|
+
};
|
|
493
|
+
const de_CreateOpportunityResponse = (output, context) => {
|
|
494
|
+
return (0, smithy_client_1.take)(output, {
|
|
495
|
+
Id: smithy_client_1.expectString,
|
|
496
|
+
LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
497
|
+
PartnerOpportunityIdentifier: smithy_client_1.expectString,
|
|
498
|
+
});
|
|
499
|
+
};
|
|
500
|
+
const de_EngagementInvitationSummaries = (output, context) => {
|
|
501
|
+
const retVal = (output || [])
|
|
502
|
+
.filter((e) => e != null)
|
|
503
|
+
.map((entry) => {
|
|
504
|
+
return de_EngagementInvitationSummary(entry, context);
|
|
505
|
+
});
|
|
506
|
+
return retVal;
|
|
507
|
+
};
|
|
508
|
+
const de_EngagementInvitationSummary = (output, context) => {
|
|
509
|
+
return (0, smithy_client_1.take)(output, {
|
|
510
|
+
Arn: smithy_client_1.expectString,
|
|
511
|
+
Catalog: smithy_client_1.expectString,
|
|
512
|
+
EngagementTitle: smithy_client_1.expectString,
|
|
513
|
+
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
514
|
+
Id: smithy_client_1.expectString,
|
|
515
|
+
InvitationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
516
|
+
PayloadType: smithy_client_1.expectString,
|
|
517
|
+
Receiver: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
518
|
+
SenderAwsAccountId: smithy_client_1.expectString,
|
|
519
|
+
SenderCompanyName: smithy_client_1.expectString,
|
|
520
|
+
Status: smithy_client_1.expectString,
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
const de_GetAwsOpportunitySummaryResponse = (output, context) => {
|
|
524
|
+
return (0, smithy_client_1.take)(output, {
|
|
525
|
+
Catalog: smithy_client_1.expectString,
|
|
526
|
+
Customer: smithy_client_1._json,
|
|
527
|
+
Insights: smithy_client_1._json,
|
|
528
|
+
InvolvementType: smithy_client_1.expectString,
|
|
529
|
+
InvolvementTypeChangeReason: smithy_client_1.expectString,
|
|
530
|
+
LifeCycle: (_) => de_AwsOpportunityLifeCycle(_, context),
|
|
531
|
+
OpportunityTeam: smithy_client_1._json,
|
|
532
|
+
Origin: smithy_client_1.expectString,
|
|
533
|
+
Project: smithy_client_1._json,
|
|
534
|
+
RelatedEntityIds: smithy_client_1._json,
|
|
535
|
+
RelatedOpportunityId: smithy_client_1.expectString,
|
|
536
|
+
Visibility: smithy_client_1.expectString,
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
const de_GetEngagementInvitationResponse = (output, context) => {
|
|
540
|
+
return (0, smithy_client_1.take)(output, {
|
|
541
|
+
Arn: smithy_client_1.expectString,
|
|
542
|
+
Catalog: smithy_client_1.expectString,
|
|
543
|
+
EngagementTitle: smithy_client_1.expectString,
|
|
544
|
+
ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
545
|
+
Id: smithy_client_1.expectString,
|
|
546
|
+
InvitationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
547
|
+
Payload: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
548
|
+
PayloadType: smithy_client_1.expectString,
|
|
549
|
+
Receiver: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
550
|
+
RejectionReason: smithy_client_1.expectString,
|
|
551
|
+
SenderAwsAccountId: smithy_client_1.expectString,
|
|
552
|
+
SenderCompanyName: smithy_client_1.expectString,
|
|
553
|
+
Status: smithy_client_1.expectString,
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
const de_GetOpportunityResponse = (output, context) => {
|
|
557
|
+
return (0, smithy_client_1.take)(output, {
|
|
558
|
+
Catalog: smithy_client_1.expectString,
|
|
559
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
560
|
+
Customer: smithy_client_1._json,
|
|
561
|
+
Id: smithy_client_1.expectString,
|
|
562
|
+
LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
563
|
+
LifeCycle: (_) => de_LifeCycle(_, context),
|
|
564
|
+
Marketing: smithy_client_1._json,
|
|
565
|
+
NationalSecurity: smithy_client_1.expectString,
|
|
566
|
+
OpportunityTeam: smithy_client_1._json,
|
|
567
|
+
OpportunityType: smithy_client_1.expectString,
|
|
568
|
+
PartnerOpportunityIdentifier: smithy_client_1.expectString,
|
|
569
|
+
PrimaryNeedsFromAws: smithy_client_1._json,
|
|
570
|
+
Project: smithy_client_1._json,
|
|
571
|
+
RelatedEntityIdentifiers: smithy_client_1._json,
|
|
572
|
+
SoftwareRevenue: smithy_client_1._json,
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
const de_LifeCycle = (output, context) => {
|
|
576
|
+
return (0, smithy_client_1.take)(output, {
|
|
577
|
+
ClosedLostReason: smithy_client_1.expectString,
|
|
578
|
+
NextSteps: smithy_client_1.expectString,
|
|
579
|
+
NextStepsHistory: (_) => de_NextStepsHistories(_, context),
|
|
580
|
+
ReviewComments: smithy_client_1.expectString,
|
|
581
|
+
ReviewStatus: smithy_client_1.expectString,
|
|
582
|
+
ReviewStatusReason: smithy_client_1.expectString,
|
|
583
|
+
Stage: smithy_client_1.expectString,
|
|
584
|
+
TargetCloseDate: smithy_client_1.expectString,
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
const de_ListEngagementInvitationsResponse = (output, context) => {
|
|
588
|
+
return (0, smithy_client_1.take)(output, {
|
|
589
|
+
EngagementInvitationSummaries: (_) => de_EngagementInvitationSummaries(_, context),
|
|
590
|
+
NextToken: smithy_client_1.expectString,
|
|
591
|
+
});
|
|
592
|
+
};
|
|
593
|
+
const de_ListOpportunitiesResponse = (output, context) => {
|
|
594
|
+
return (0, smithy_client_1.take)(output, {
|
|
595
|
+
NextToken: smithy_client_1.expectString,
|
|
596
|
+
OpportunitySummaries: (_) => de_OpportunitySummaries(_, context),
|
|
597
|
+
});
|
|
598
|
+
};
|
|
599
|
+
const de_ListSolutionsResponse = (output, context) => {
|
|
600
|
+
return (0, smithy_client_1.take)(output, {
|
|
601
|
+
NextToken: smithy_client_1.expectString,
|
|
602
|
+
SolutionSummaries: (_) => de_SolutionList(_, context),
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
const de_NextStepsHistories = (output, context) => {
|
|
606
|
+
const retVal = (output || [])
|
|
607
|
+
.filter((e) => e != null)
|
|
608
|
+
.map((entry) => {
|
|
609
|
+
return de_NextStepsHistory(entry, context);
|
|
610
|
+
});
|
|
611
|
+
return retVal;
|
|
612
|
+
};
|
|
613
|
+
const de_NextStepsHistory = (output, context) => {
|
|
614
|
+
return (0, smithy_client_1.take)(output, {
|
|
615
|
+
Time: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
616
|
+
Value: smithy_client_1.expectString,
|
|
617
|
+
});
|
|
618
|
+
};
|
|
619
|
+
const de_OpportunitySummaries = (output, context) => {
|
|
620
|
+
const retVal = (output || [])
|
|
621
|
+
.filter((e) => e != null)
|
|
622
|
+
.map((entry) => {
|
|
623
|
+
return de_OpportunitySummary(entry, context);
|
|
624
|
+
});
|
|
625
|
+
return retVal;
|
|
626
|
+
};
|
|
627
|
+
const de_OpportunitySummary = (output, context) => {
|
|
628
|
+
return (0, smithy_client_1.take)(output, {
|
|
629
|
+
Catalog: smithy_client_1.expectString,
|
|
630
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
631
|
+
Customer: smithy_client_1._json,
|
|
632
|
+
Id: smithy_client_1.expectString,
|
|
633
|
+
LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
634
|
+
LifeCycle: smithy_client_1._json,
|
|
635
|
+
OpportunityType: smithy_client_1.expectString,
|
|
636
|
+
PartnerOpportunityIdentifier: smithy_client_1.expectString,
|
|
637
|
+
Project: smithy_client_1._json,
|
|
638
|
+
});
|
|
639
|
+
};
|
|
640
|
+
const de_ProfileNextStepsHistories = (output, context) => {
|
|
641
|
+
const retVal = (output || [])
|
|
642
|
+
.filter((e) => e != null)
|
|
643
|
+
.map((entry) => {
|
|
644
|
+
return de_ProfileNextStepsHistory(entry, context);
|
|
645
|
+
});
|
|
646
|
+
return retVal;
|
|
647
|
+
};
|
|
648
|
+
const de_ProfileNextStepsHistory = (output, context) => {
|
|
649
|
+
return (0, smithy_client_1.take)(output, {
|
|
650
|
+
Time: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
651
|
+
Value: smithy_client_1.expectString,
|
|
652
|
+
});
|
|
653
|
+
};
|
|
654
|
+
const de_SolutionBase = (output, context) => {
|
|
655
|
+
return (0, smithy_client_1.take)(output, {
|
|
656
|
+
Catalog: smithy_client_1.expectString,
|
|
657
|
+
Category: smithy_client_1.expectString,
|
|
658
|
+
CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
659
|
+
Id: smithy_client_1.expectString,
|
|
660
|
+
Name: smithy_client_1.expectString,
|
|
661
|
+
Status: smithy_client_1.expectString,
|
|
662
|
+
});
|
|
663
|
+
};
|
|
664
|
+
const de_SolutionList = (output, context) => {
|
|
665
|
+
const retVal = (output || [])
|
|
666
|
+
.filter((e) => e != null)
|
|
667
|
+
.map((entry) => {
|
|
668
|
+
return de_SolutionBase(entry, context);
|
|
669
|
+
});
|
|
670
|
+
return retVal;
|
|
671
|
+
};
|
|
672
|
+
const de_StartEngagementByAcceptingInvitationTaskResponse = (output, context) => {
|
|
673
|
+
return (0, smithy_client_1.take)(output, {
|
|
674
|
+
EngagementInvitationId: smithy_client_1.expectString,
|
|
675
|
+
Message: smithy_client_1.expectString,
|
|
676
|
+
OpportunityId: smithy_client_1.expectString,
|
|
677
|
+
ReasonCode: smithy_client_1.expectString,
|
|
678
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
679
|
+
TaskArn: smithy_client_1.expectString,
|
|
680
|
+
TaskId: smithy_client_1.expectString,
|
|
681
|
+
TaskStatus: smithy_client_1.expectString,
|
|
682
|
+
});
|
|
683
|
+
};
|
|
684
|
+
const de_StartEngagementFromOpportunityTaskResponse = (output, context) => {
|
|
685
|
+
return (0, smithy_client_1.take)(output, {
|
|
686
|
+
Message: smithy_client_1.expectString,
|
|
687
|
+
OpportunityId: smithy_client_1.expectString,
|
|
688
|
+
ReasonCode: smithy_client_1.expectString,
|
|
689
|
+
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
690
|
+
TaskArn: smithy_client_1.expectString,
|
|
691
|
+
TaskId: smithy_client_1.expectString,
|
|
692
|
+
TaskStatus: smithy_client_1.expectString,
|
|
693
|
+
});
|
|
694
|
+
};
|
|
695
|
+
const de_UpdateOpportunityResponse = (output, context) => {
|
|
696
|
+
return (0, smithy_client_1.take)(output, {
|
|
697
|
+
Id: smithy_client_1.expectString,
|
|
698
|
+
LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
699
|
+
});
|
|
700
|
+
};
|
|
701
|
+
const deserializeMetadata = (output) => ({
|
|
702
|
+
httpStatusCode: output.statusCode,
|
|
703
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
704
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
705
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
706
|
+
});
|
|
707
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
708
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(PartnerCentralSellingServiceException_1.PartnerCentralSellingServiceException);
|
|
709
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
710
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
711
|
+
const contents = {
|
|
712
|
+
protocol,
|
|
713
|
+
hostname,
|
|
714
|
+
port,
|
|
715
|
+
method: "POST",
|
|
716
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
717
|
+
headers,
|
|
718
|
+
};
|
|
719
|
+
if (resolvedHostname !== undefined) {
|
|
720
|
+
contents.hostname = resolvedHostname;
|
|
721
|
+
}
|
|
722
|
+
if (body !== undefined) {
|
|
723
|
+
contents.body = body;
|
|
724
|
+
}
|
|
725
|
+
return new protocol_http_1.HttpRequest(contents);
|
|
726
|
+
};
|
|
727
|
+
function sharedHeaders(operation) {
|
|
728
|
+
return {
|
|
729
|
+
"content-type": "application/x-amz-json-1.0",
|
|
730
|
+
"x-amz-target": `AWSPartnerCentralSelling.${operation}`,
|
|
731
|
+
};
|
|
732
|
+
}
|