@aws-sdk/client-personalize-runtime 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/PersonalizeRuntime.js +1 -5
- package/{dist/cjs → dist-cjs}/PersonalizeRuntimeClient.js +8 -17
- package/{dist/cjs → dist-cjs}/commands/GetPersonalizedRankingCommand.js +2 -32
- package/dist-cjs/commands/GetRecommendationsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -22
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +2 -8
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/PersonalizeRuntime.js +1 -2
- package/{dist/es → dist-es}/PersonalizeRuntimeClient.js +1 -2
- package/{dist/es → dist-es}/commands/GetPersonalizedRankingCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetRecommendationsCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/PersonalizeRuntime.d.ts +2 -2
- package/{dist/types → dist-types}/PersonalizeRuntimeClient.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetPersonalizedRankingCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetRecommendationsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/PersonalizeRuntime.d.ts +5 -30
- package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +69 -0
- package/dist-types/ts3.4/commands/GetPersonalizedRankingCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecommendationsCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +98 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/PersonalizeRuntime.ts +0 -100
- package/PersonalizeRuntimeClient.ts +0 -240
- package/commands/GetPersonalizedRankingCommand.ts +0 -103
- package/commands/GetRecommendationsCommand.ts +0 -112
- package/dist/cjs/PersonalizeRuntime.js.map +0 -1
- package/dist/cjs/PersonalizeRuntimeClient.js.map +0 -1
- package/dist/cjs/commands/GetPersonalizedRankingCommand.js.map +0 -1
- package/dist/cjs/commands/GetRecommendationsCommand.js +0 -75
- package/dist/cjs/commands/GetRecommendationsCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/PersonalizeRuntime.js.map +0 -1
- package/dist/es/PersonalizeRuntimeClient.js.map +0 -1
- package/dist/es/commands/GetPersonalizedRankingCommand.js.map +0 -1
- package/dist/es/commands/GetRecommendationsCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -6
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/PersonalizeRuntimeClient.d.ts +0 -134
- package/dist/types/ts3.4/commands/GetPersonalizedRankingCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/GetRecommendationsCommand.d.ts +0 -49
- package/dist/types/ts3.4/models/models_0.d.ts +0 -190
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -229
- package/protocols/Aws_restJson1.ts +0 -372
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
GetPersonalizedRankingCommandInput,
|
|
3
|
-
GetPersonalizedRankingCommandOutput,
|
|
4
|
-
} from "./commands/GetPersonalizedRankingCommand";
|
|
5
|
-
import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
|
|
6
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
7
|
-
import {
|
|
8
|
-
EndpointsInputConfig,
|
|
9
|
-
EndpointsResolvedConfig,
|
|
10
|
-
RegionInputConfig,
|
|
11
|
-
RegionResolvedConfig,
|
|
12
|
-
resolveEndpointsConfig,
|
|
13
|
-
resolveRegionConfig,
|
|
14
|
-
} from "@aws-sdk/config-resolver";
|
|
15
|
-
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
16
|
-
import {
|
|
17
|
-
HostHeaderInputConfig,
|
|
18
|
-
HostHeaderResolvedConfig,
|
|
19
|
-
getHostHeaderPlugin,
|
|
20
|
-
resolveHostHeaderConfig,
|
|
21
|
-
} from "@aws-sdk/middleware-host-header";
|
|
22
|
-
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
23
|
-
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
24
|
-
import {
|
|
25
|
-
AwsAuthInputConfig,
|
|
26
|
-
AwsAuthResolvedConfig,
|
|
27
|
-
getAwsAuthPlugin,
|
|
28
|
-
resolveAwsAuthConfig,
|
|
29
|
-
} from "@aws-sdk/middleware-signing";
|
|
30
|
-
import {
|
|
31
|
-
UserAgentInputConfig,
|
|
32
|
-
UserAgentResolvedConfig,
|
|
33
|
-
getUserAgentPlugin,
|
|
34
|
-
resolveUserAgentConfig,
|
|
35
|
-
} from "@aws-sdk/middleware-user-agent";
|
|
36
|
-
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
37
|
-
import {
|
|
38
|
-
Client as __Client,
|
|
39
|
-
SmithyConfiguration as __SmithyConfiguration,
|
|
40
|
-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
|
|
41
|
-
} from "@aws-sdk/smithy-client";
|
|
42
|
-
import {
|
|
43
|
-
Provider,
|
|
44
|
-
RegionInfoProvider,
|
|
45
|
-
Credentials as __Credentials,
|
|
46
|
-
Decoder as __Decoder,
|
|
47
|
-
Encoder as __Encoder,
|
|
48
|
-
Hash as __Hash,
|
|
49
|
-
HashConstructor as __HashConstructor,
|
|
50
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
51
|
-
Logger as __Logger,
|
|
52
|
-
Provider as __Provider,
|
|
53
|
-
StreamCollector as __StreamCollector,
|
|
54
|
-
UrlParser as __UrlParser,
|
|
55
|
-
UserAgent as __UserAgent,
|
|
56
|
-
} from "@aws-sdk/types";
|
|
57
|
-
|
|
58
|
-
export type ServiceInputTypes = GetPersonalizedRankingCommandInput | GetRecommendationsCommandInput;
|
|
59
|
-
|
|
60
|
-
export type ServiceOutputTypes = GetPersonalizedRankingCommandOutput | GetRecommendationsCommandOutput;
|
|
61
|
-
|
|
62
|
-
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
63
|
-
/**
|
|
64
|
-
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
65
|
-
*/
|
|
66
|
-
requestHandler?: __HttpHandler;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* A constructor for a class implementing the {@link __Hash} interface
|
|
70
|
-
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
sha256?: __HashConstructor;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* The function that will be used to convert strings into HTTP endpoints.
|
|
77
|
-
* @internal
|
|
78
|
-
*/
|
|
79
|
-
urlParser?: __UrlParser;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* A function that can calculate the length of a request body.
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
bodyLengthChecker?: (body: any) => number | undefined;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* A function that converts a stream into an array of bytes.
|
|
89
|
-
* @internal
|
|
90
|
-
*/
|
|
91
|
-
streamCollector?: __StreamCollector;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
base64Decoder?: __Decoder;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The function that will be used to convert binary data to a base64-encoded string.
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
103
|
-
base64Encoder?: __Encoder;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
|
-
utf8Decoder?: __Decoder;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
113
|
-
* @internal
|
|
114
|
-
*/
|
|
115
|
-
utf8Encoder?: __Encoder;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The runtime environment.
|
|
119
|
-
* @internal
|
|
120
|
-
*/
|
|
121
|
-
runtime?: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
125
|
-
* trait of an operation.
|
|
126
|
-
*/
|
|
127
|
-
disableHostPrefix?: boolean;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Value for how many times a request will be made at most in case of retry.
|
|
131
|
-
*/
|
|
132
|
-
maxAttempts?: number | __Provider<number>;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Specifies which retry algorithm to use.
|
|
136
|
-
*/
|
|
137
|
-
retryMode?: string | __Provider<string>;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Optional logger for logging debug/info/warn/error.
|
|
141
|
-
*/
|
|
142
|
-
logger?: __Logger;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Unique service identifier.
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
serviceId?: string;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* The AWS region to which this client will send requests
|
|
152
|
-
*/
|
|
153
|
-
region?: string | __Provider<string>;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Default credentials provider; Not available in browser runtime.
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
159
|
-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Fetch related hostname, signing name or signing region with given region.
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
165
|
-
regionInfoProvider?: RegionInfoProvider;
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
169
|
-
* @internal
|
|
170
|
-
*/
|
|
171
|
-
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
type PersonalizeRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
|
|
175
|
-
ClientDefaults &
|
|
176
|
-
RegionInputConfig &
|
|
177
|
-
EndpointsInputConfig &
|
|
178
|
-
RetryInputConfig &
|
|
179
|
-
HostHeaderInputConfig &
|
|
180
|
-
AwsAuthInputConfig &
|
|
181
|
-
UserAgentInputConfig;
|
|
182
|
-
/**
|
|
183
|
-
* The configuration interface of PersonalizeRuntimeClient class constructor that set the region, credentials and other options.
|
|
184
|
-
*/
|
|
185
|
-
export interface PersonalizeRuntimeClientConfig extends PersonalizeRuntimeClientConfigType {}
|
|
186
|
-
|
|
187
|
-
type PersonalizeRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
188
|
-
Required<ClientDefaults> &
|
|
189
|
-
RegionResolvedConfig &
|
|
190
|
-
EndpointsResolvedConfig &
|
|
191
|
-
RetryResolvedConfig &
|
|
192
|
-
HostHeaderResolvedConfig &
|
|
193
|
-
AwsAuthResolvedConfig &
|
|
194
|
-
UserAgentResolvedConfig;
|
|
195
|
-
/**
|
|
196
|
-
* The resolved configuration interface of PersonalizeRuntimeClient class. This is resolved and normalized from the {@link PersonalizeRuntimeClientConfig | constructor configuration interface}.
|
|
197
|
-
*/
|
|
198
|
-
export interface PersonalizeRuntimeClientResolvedConfig extends PersonalizeRuntimeClientResolvedConfigType {}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* <p></p>
|
|
202
|
-
*/
|
|
203
|
-
export class PersonalizeRuntimeClient extends __Client<
|
|
204
|
-
__HttpHandlerOptions,
|
|
205
|
-
ServiceInputTypes,
|
|
206
|
-
ServiceOutputTypes,
|
|
207
|
-
PersonalizeRuntimeClientResolvedConfig
|
|
208
|
-
> {
|
|
209
|
-
/**
|
|
210
|
-
* The resolved configuration of PersonalizeRuntimeClient class. This is resolved and normalized from the {@link PersonalizeRuntimeClientConfig | constructor configuration interface}.
|
|
211
|
-
*/
|
|
212
|
-
readonly config: PersonalizeRuntimeClientResolvedConfig;
|
|
213
|
-
|
|
214
|
-
constructor(configuration: PersonalizeRuntimeClientConfig) {
|
|
215
|
-
let _config_0 = __getRuntimeConfig(configuration);
|
|
216
|
-
let _config_1 = resolveRegionConfig(_config_0);
|
|
217
|
-
let _config_2 = resolveEndpointsConfig(_config_1);
|
|
218
|
-
let _config_3 = resolveRetryConfig(_config_2);
|
|
219
|
-
let _config_4 = resolveHostHeaderConfig(_config_3);
|
|
220
|
-
let _config_5 = resolveAwsAuthConfig(_config_4);
|
|
221
|
-
let _config_6 = resolveUserAgentConfig(_config_5);
|
|
222
|
-
super(_config_6);
|
|
223
|
-
this.config = _config_6;
|
|
224
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
225
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
226
|
-
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
227
|
-
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
228
|
-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
229
|
-
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
234
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
235
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
236
|
-
*/
|
|
237
|
-
destroy(): void {
|
|
238
|
-
super.destroy();
|
|
239
|
-
}
|
|
240
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PersonalizeRuntimeClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../PersonalizeRuntimeClient";
|
|
6
|
-
import { GetPersonalizedRankingRequest, GetPersonalizedRankingResponse } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1GetPersonalizedRankingCommand,
|
|
9
|
-
serializeAws_restJson1GetPersonalizedRankingCommand,
|
|
10
|
-
} from "../protocols/Aws_restJson1";
|
|
11
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
12
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
13
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
14
|
-
import {
|
|
15
|
-
FinalizeHandlerArguments,
|
|
16
|
-
Handler,
|
|
17
|
-
HandlerExecutionContext,
|
|
18
|
-
MiddlewareStack,
|
|
19
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
20
|
-
MetadataBearer as __MetadataBearer,
|
|
21
|
-
SerdeContext as __SerdeContext,
|
|
22
|
-
} from "@aws-sdk/types";
|
|
23
|
-
|
|
24
|
-
export interface GetPersonalizedRankingCommandInput extends GetPersonalizedRankingRequest {}
|
|
25
|
-
export interface GetPersonalizedRankingCommandOutput extends GetPersonalizedRankingResponse, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Re-ranks a list of recommended items for the given user. The first item in the list is
|
|
29
|
-
* deemed the most likely item to be of interest to the user.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>The solution backing the campaign must have been created using a recipe of type
|
|
32
|
-
* PERSONALIZED_RANKING.</p>
|
|
33
|
-
* </note>
|
|
34
|
-
* @example
|
|
35
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
36
|
-
* ```javascript
|
|
37
|
-
* import { PersonalizeRuntimeClient, GetPersonalizedRankingCommand } from "@aws-sdk/client-personalize-runtime"; // ES Modules import
|
|
38
|
-
* // const { PersonalizeRuntimeClient, GetPersonalizedRankingCommand } = require("@aws-sdk/client-personalize-runtime"); // CommonJS import
|
|
39
|
-
* const client = new PersonalizeRuntimeClient(config);
|
|
40
|
-
* const command = new GetPersonalizedRankingCommand(input);
|
|
41
|
-
* const response = await client.send(command);
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @see {@link GetPersonalizedRankingCommandInput} for command's `input` shape.
|
|
45
|
-
* @see {@link GetPersonalizedRankingCommandOutput} for command's `response` shape.
|
|
46
|
-
* @see {@link PersonalizeRuntimeClientResolvedConfig | config} for command's `input` shape.
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
export class GetPersonalizedRankingCommand extends $Command<
|
|
50
|
-
GetPersonalizedRankingCommandInput,
|
|
51
|
-
GetPersonalizedRankingCommandOutput,
|
|
52
|
-
PersonalizeRuntimeClientResolvedConfig
|
|
53
|
-
> {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
|
|
57
|
-
constructor(readonly input: GetPersonalizedRankingCommandInput) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(
|
|
67
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
68
|
-
configuration: PersonalizeRuntimeClientResolvedConfig,
|
|
69
|
-
options?: __HttpHandlerOptions
|
|
70
|
-
): Handler<GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput> {
|
|
71
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
72
|
-
|
|
73
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
74
|
-
|
|
75
|
-
const { logger } = configuration;
|
|
76
|
-
const clientName = "PersonalizeRuntimeClient";
|
|
77
|
-
const commandName = "GetPersonalizedRankingCommand";
|
|
78
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
79
|
-
logger,
|
|
80
|
-
clientName,
|
|
81
|
-
commandName,
|
|
82
|
-
inputFilterSensitiveLog: GetPersonalizedRankingRequest.filterSensitiveLog,
|
|
83
|
-
outputFilterSensitiveLog: GetPersonalizedRankingResponse.filterSensitiveLog,
|
|
84
|
-
};
|
|
85
|
-
const { requestHandler } = configuration;
|
|
86
|
-
return stack.resolve(
|
|
87
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
88
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
89
|
-
handlerExecutionContext
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
private serialize(input: GetPersonalizedRankingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
94
|
-
return serializeAws_restJson1GetPersonalizedRankingCommand(input, context);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetPersonalizedRankingCommandOutput> {
|
|
98
|
-
return deserializeAws_restJson1GetPersonalizedRankingCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PersonalizeRuntimeClientResolvedConfig,
|
|
3
|
-
ServiceInputTypes,
|
|
4
|
-
ServiceOutputTypes,
|
|
5
|
-
} from "../PersonalizeRuntimeClient";
|
|
6
|
-
import { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0";
|
|
7
|
-
import {
|
|
8
|
-
deserializeAws_restJson1GetRecommendationsCommand,
|
|
9
|
-
serializeAws_restJson1GetRecommendationsCommand,
|
|
10
|
-
} from "../protocols/Aws_restJson1";
|
|
11
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
12
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
13
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
14
|
-
import {
|
|
15
|
-
FinalizeHandlerArguments,
|
|
16
|
-
Handler,
|
|
17
|
-
HandlerExecutionContext,
|
|
18
|
-
MiddlewareStack,
|
|
19
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
20
|
-
MetadataBearer as __MetadataBearer,
|
|
21
|
-
SerdeContext as __SerdeContext,
|
|
22
|
-
} from "@aws-sdk/types";
|
|
23
|
-
|
|
24
|
-
export interface GetRecommendationsCommandInput extends GetRecommendationsRequest {}
|
|
25
|
-
export interface GetRecommendationsCommandOutput extends GetRecommendationsResponse, __MetadataBearer {}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* <p>Returns a list of recommended items. The required input depends on the recipe type used to
|
|
29
|
-
* create the solution backing the campaign, as follows:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>RELATED_ITEMS - <code>itemId</code> required, <code>userId</code> not used</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>USER_PERSONALIZATION - <code>itemId</code> optional, <code>userId</code>
|
|
36
|
-
* required</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* </ul>
|
|
39
|
-
* <note>
|
|
40
|
-
* <p>Campaigns that are backed by a solution created using a recipe of type
|
|
41
|
-
* PERSONALIZED_RANKING use the API.</p>
|
|
42
|
-
* </note>
|
|
43
|
-
* @example
|
|
44
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
45
|
-
* ```javascript
|
|
46
|
-
* import { PersonalizeRuntimeClient, GetRecommendationsCommand } from "@aws-sdk/client-personalize-runtime"; // ES Modules import
|
|
47
|
-
* // const { PersonalizeRuntimeClient, GetRecommendationsCommand } = require("@aws-sdk/client-personalize-runtime"); // CommonJS import
|
|
48
|
-
* const client = new PersonalizeRuntimeClient(config);
|
|
49
|
-
* const command = new GetRecommendationsCommand(input);
|
|
50
|
-
* const response = await client.send(command);
|
|
51
|
-
* ```
|
|
52
|
-
*
|
|
53
|
-
* @see {@link GetRecommendationsCommandInput} for command's `input` shape.
|
|
54
|
-
* @see {@link GetRecommendationsCommandOutput} for command's `response` shape.
|
|
55
|
-
* @see {@link PersonalizeRuntimeClientResolvedConfig | config} for command's `input` shape.
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
export class GetRecommendationsCommand extends $Command<
|
|
59
|
-
GetRecommendationsCommandInput,
|
|
60
|
-
GetRecommendationsCommandOutput,
|
|
61
|
-
PersonalizeRuntimeClientResolvedConfig
|
|
62
|
-
> {
|
|
63
|
-
// Start section: command_properties
|
|
64
|
-
// End section: command_properties
|
|
65
|
-
|
|
66
|
-
constructor(readonly input: GetRecommendationsCommandInput) {
|
|
67
|
-
// Start section: command_constructor
|
|
68
|
-
super();
|
|
69
|
-
// End section: command_constructor
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
*/
|
|
75
|
-
resolveMiddleware(
|
|
76
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
77
|
-
configuration: PersonalizeRuntimeClientResolvedConfig,
|
|
78
|
-
options?: __HttpHandlerOptions
|
|
79
|
-
): Handler<GetRecommendationsCommandInput, GetRecommendationsCommandOutput> {
|
|
80
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
81
|
-
|
|
82
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
83
|
-
|
|
84
|
-
const { logger } = configuration;
|
|
85
|
-
const clientName = "PersonalizeRuntimeClient";
|
|
86
|
-
const commandName = "GetRecommendationsCommand";
|
|
87
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
88
|
-
logger,
|
|
89
|
-
clientName,
|
|
90
|
-
commandName,
|
|
91
|
-
inputFilterSensitiveLog: GetRecommendationsRequest.filterSensitiveLog,
|
|
92
|
-
outputFilterSensitiveLog: GetRecommendationsResponse.filterSensitiveLog,
|
|
93
|
-
};
|
|
94
|
-
const { requestHandler } = configuration;
|
|
95
|
-
return stack.resolve(
|
|
96
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
97
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
98
|
-
handlerExecutionContext
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private serialize(input: GetRecommendationsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
103
|
-
return serializeAws_restJson1GetRecommendationsCommand(input, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRecommendationsCommandOutput> {
|
|
107
|
-
return deserializeAws_restJson1GetRecommendationsCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PersonalizeRuntime.js","sourceRoot":"","sources":["../../PersonalizeRuntime.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AACtE,4FAIkD;AAClD,oFAI8C;AAG9C;;GAEG;AACH,MAAa,kBAAmB,SAAQ,mDAAwB;IAsBvD,sBAAsB,CAC3B,IAAwC,EACxC,WAAqG,EACrG,EAAmE;QAEnE,MAAM,OAAO,GAAG,IAAI,6DAA6B,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACjC;aAAM,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE;YACnC,IAAI,OAAO,WAAW,KAAK,QAAQ;gBAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,OAAO,WAAW,EAAE,CAAC,CAAC;YAC1G,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;SAC3C;aAAM;YACL,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACxC;IACH,CAAC;IAgCM,kBAAkB,CACvB,IAAoC,EACpC,WAAiG,EACjG,EAA+D;QAE/D,MAAM,OAAO,GAAG,IAAI,qDAAyB,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACrC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;SACjC;a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CAAC,CAAC;QACtD,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,kDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC9D,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,4CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QAC3D,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,mCAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACvD,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACxD,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACH,OAAO;QACL,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AArCD,4DAqCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetPersonalizedRankingCommand.js","sourceRoot":"","sources":["../../../commands/GetPersonalizedRankingCommand.ts"],"names":[],"mappings":";;;AAKA,iDAAmG;AACnG,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,6BAA8B,SAAQ,uBAIlD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAyC;QAC5D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAoC;QAG5D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAqD,EACrD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,0BAA0B,CAAC;QAC9C,MAAM,WAAW,GAAG,+BAA+B,CAAC;QACpD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,wCAA6B,CAAC,kBAAkB;YACzE,wBAAwB,EAAE,yCAA8B,CAAC,kBAAkB;SAC5E,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAyC,EAAE,OAAuB;QAClF,OAAO,mEAAmD,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,qEAAqD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CAIF;AAtDD,sEAsDC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetRecommendationsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Returns a list of recommended items. The required input depends on the recipe type used to
|
|
10
|
-
* create the solution backing the campaign, as follows:</p>
|
|
11
|
-
* <ul>
|
|
12
|
-
* <li>
|
|
13
|
-
* <p>RELATED_ITEMS - <code>itemId</code> required, <code>userId</code> not used</p>
|
|
14
|
-
* </li>
|
|
15
|
-
* <li>
|
|
16
|
-
* <p>USER_PERSONALIZATION - <code>itemId</code> optional, <code>userId</code>
|
|
17
|
-
* required</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* </ul>
|
|
20
|
-
* <note>
|
|
21
|
-
* <p>Campaigns that are backed by a solution created using a recipe of type
|
|
22
|
-
* PERSONALIZED_RANKING use the API.</p>
|
|
23
|
-
* </note>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { PersonalizeRuntimeClient, GetRecommendationsCommand } from "@aws-sdk/client-personalize-runtime"; // ES Modules import
|
|
28
|
-
* // const { PersonalizeRuntimeClient, GetRecommendationsCommand } = require("@aws-sdk/client-personalize-runtime"); // CommonJS import
|
|
29
|
-
* const client = new PersonalizeRuntimeClient(config);
|
|
30
|
-
* const command = new GetRecommendationsCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link GetRecommendationsCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link GetRecommendationsCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link PersonalizeRuntimeClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
class GetRecommendationsCommand extends smithy_client_1.Command {
|
|
40
|
-
// Start section: command_properties
|
|
41
|
-
// End section: command_properties
|
|
42
|
-
constructor(input) {
|
|
43
|
-
// Start section: command_constructor
|
|
44
|
-
super();
|
|
45
|
-
this.input = input;
|
|
46
|
-
// End section: command_constructor
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
52
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
53
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
54
|
-
const { logger } = configuration;
|
|
55
|
-
const clientName = "PersonalizeRuntimeClient";
|
|
56
|
-
const commandName = "GetRecommendationsCommand";
|
|
57
|
-
const handlerExecutionContext = {
|
|
58
|
-
logger,
|
|
59
|
-
clientName,
|
|
60
|
-
commandName,
|
|
61
|
-
inputFilterSensitiveLog: models_0_1.GetRecommendationsRequest.filterSensitiveLog,
|
|
62
|
-
outputFilterSensitiveLog: models_0_1.GetRecommendationsResponse.filterSensitiveLog,
|
|
63
|
-
};
|
|
64
|
-
const { requestHandler } = configuration;
|
|
65
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
66
|
-
}
|
|
67
|
-
serialize(input, context) {
|
|
68
|
-
return Aws_restJson1_1.serializeAws_restJson1GetRecommendationsCommand(input, context);
|
|
69
|
-
}
|
|
70
|
-
deserialize(output, context) {
|
|
71
|
-
return Aws_restJson1_1.deserializeAws_restJson1GetRecommendationsCommand(output, context);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
exports.GetRecommendationsCommand = GetRecommendationsCommand;
|
|
75
|
-
//# sourceMappingURL=GetRecommendationsCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetRecommendationsCommand.js","sourceRoot":"","sources":["../../../commands/GetRecommendationsCommand.ts"],"names":[],"mappings":";;;AAKA,iDAA2F;AAC3F,8DAGoC;AACpC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAa,yBAA0B,SAAQ,uBAI9C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAqC;QACxD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAgC;QAGxD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAA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,gBAAgB;YAChB,gBAAgB;YAChB,YAAY;YACZ,gBAAgB;YAChB,gBAAgB;YAChB,cAAc;YACd,cAAc;YACd,YAAY;YACZ,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,YAAY;YACZ,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;YACX,WAAW;SACZ;QACD,QAAQ,EAAE,4CAA4C;KACvD;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,CAAC,YAAY,EAAE,gBAAgB,CAAC;QACzC,QAAQ,EAAE,+CAA+C;KAC1D;IACD,SAAS,EAAE;QACT,OAAO,EAAE,CAAC,eAAe,CAAC;QAC1B,QAAQ,EAAE,yCAAyC;KACpD;IACD,WAAW,EAAE;QACX,OAAO,EAAE,CAAC,gBAAgB,CAAC;QAC3B,QAAQ,EAAE,4CAA4C;KACvD;IACD,YAAY,EAAE;QACZ,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,CAAC;QAC3C,QAAQ,EAAE,4CAA4C;KACvD;CACF,CAAC;AAEK,MAAM,yBAAyB,GAAuB,KAAK,EAAE,MAAc,EAAE,OAAa,EAAE,EAAE,CACnG,+BAAa,CAAC,MAAM,EAAE;IACpB,GAAG,OAAO;IACV,cAAc,EAAE,aAAa;IAC7B,UAAU;IACV,aAAa;CACd,CAAC,CAAC;AANQ,QAAA,yBAAyB,6BAMjC"}
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;AAAA,qEAA2C;AAC3C,+DAAqC;AACrC,mFAAyD;AACzD,+EAAqD;AACrD,yDAA+B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"models_0.js","sourceRoot":"","sources":["../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CAAC;AACL,CAAC,EAPgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOzC;AAsDD,IAAiB,yBAAyB,CASzC;AATD,WAAiB,yBAAyB;IACxC;;OAEG;IACU,4CAAkB,GAAG,CAAC,GAA8B,EAAO,EAAE,CAAC,CAAC;QAC1E,GAAG,GAAG;QACN,GAAG,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,OAAO,EAAE,gCAAgB,EAAE,CAAC;QACjD,GAAG,CAAC,GAAG,CAAC,YAAY,IAAI,EAAE,YAAY,EAAE,gCAAgB,EAAE,CAAC;KAC5D,CAAC,CAAC;AACL,CAAC,EATgB,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QASzC;AAeD,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC;;OAEG;IACU,6CAAkB,GAAG,CAAC,GAA+B,EAAO,EAAE,CAAC,CAAC;QAC3E,GAAG,GAAG;KACP,CAAC,CAAC;AACL,CAAC,EAPgB,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAO1C"}
|
package/dist/cjs/package.json
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@aws-sdk/client-personalize-runtime",
|
|
3
|
-
"description": "AWS SDK for JavaScript Personalize Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.34.0",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
|
-
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
-
"build:docs": "yarn clean:docs && typedoc ./",
|
|
9
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
-
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
-
"clean:dist": "rimraf ./dist",
|
|
13
|
-
"clean:docs": "rimraf ./docs",
|
|
14
|
-
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
|
|
15
|
-
"test": "exit 0"
|
|
16
|
-
},
|
|
17
|
-
"main": "./dist/cjs/index.js",
|
|
18
|
-
"types": "./dist/types/index.d.ts",
|
|
19
|
-
"module": "./dist/es/index.js",
|
|
20
|
-
"browser": {
|
|
21
|
-
"./runtimeConfig": "./runtimeConfig.browser"
|
|
22
|
-
},
|
|
23
|
-
"react-native": {
|
|
24
|
-
"./runtimeConfig": "./runtimeConfig.native"
|
|
25
|
-
},
|
|
26
|
-
"sideEffects": false,
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
|
-
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.34.0",
|
|
31
|
-
"@aws-sdk/config-resolver": "3.34.0",
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.34.0",
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.34.0",
|
|
34
|
-
"@aws-sdk/hash-node": "3.34.0",
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.34.0",
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.34.0",
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.34.0",
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.34.0",
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.34.0",
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.34.0",
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.34.0",
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.34.0",
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.34.0",
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.34.0",
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.34.0",
|
|
46
|
-
"@aws-sdk/protocol-http": "3.34.0",
|
|
47
|
-
"@aws-sdk/smithy-client": "3.34.0",
|
|
48
|
-
"@aws-sdk/types": "3.34.0",
|
|
49
|
-
"@aws-sdk/url-parser": "3.34.0",
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.34.0",
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.34.0",
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.34.0",
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.34.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.34.0",
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.34.0",
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.34.0",
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.34.0",
|
|
58
|
-
"tslib": "^2.3.0"
|
|
59
|
-
},
|
|
60
|
-
"devDependencies": {
|
|
61
|
-
"@aws-sdk/client-documentation-generator": "3.34.0",
|
|
62
|
-
"@types/node": "^12.7.5",
|
|
63
|
-
"downlevel-dts": "0.7.0",
|
|
64
|
-
"jest": "^26.1.0",
|
|
65
|
-
"rimraf": "^3.0.0",
|
|
66
|
-
"ts-jest": "^26.4.1",
|
|
67
|
-
"typedoc": "^0.19.2",
|
|
68
|
-
"typescript": "~4.3.5"
|
|
69
|
-
},
|
|
70
|
-
"engines": {
|
|
71
|
-
"node": ">=10.0.0"
|
|
72
|
-
},
|
|
73
|
-
"typesVersions": {
|
|
74
|
-
"<4.0": {
|
|
75
|
-
"dist/types/*": [
|
|
76
|
-
"dist/types/ts3.4/*"
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
"author": {
|
|
81
|
-
"name": "AWS SDK for JavaScript Team",
|
|
82
|
-
"url": "https://aws.amazon.com/javascript/"
|
|
83
|
-
},
|
|
84
|
-
"license": "Apache-2.0",
|
|
85
|
-
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-personalize-runtime",
|
|
86
|
-
"repository": {
|
|
87
|
-
"type": "git",
|
|
88
|
-
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
89
|
-
"directory": "clients/client-personalize-runtime"
|
|
90
|
-
}
|
|
91
|
-
}
|