@aws-sdk/client-supplychain 3.553.0 → 3.554.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.
@@ -78,6 +78,24 @@ declare const CreateBillOfMaterialsImportJobCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Invoke CreateBillOfMaterialsImportJob
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "clientToken": "550e8400-e29b-41d4-a716-446655440000",
86
+ * "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243",
87
+ * "s3uri": "s3://mybucketname/pathelemene/file.csv"
88
+ * };
89
+ * const command = new CreateBillOfMaterialsImportJobCommand(input);
90
+ * const response = await client.send(command);
91
+ * /* response ==
92
+ * {
93
+ * "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4"
94
+ * }
95
+ * *\/
96
+ * // example id: example-1
97
+ * ```
98
+ *
81
99
  */
82
100
  export declare class CreateBillOfMaterialsImportJobCommand extends CreateBillOfMaterialsImportJobCommand_base {
83
101
  }
@@ -82,6 +82,51 @@ declare const GetBillOfMaterialsImportJobCommand_base: {
82
82
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
83
83
  *
84
84
  * @public
85
+ * @example Invoke GetBillOfMaterialsImportJob for a successful job
86
+ * ```javascript
87
+ * //
88
+ * const input = {
89
+ * "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243",
90
+ * "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4"
91
+ * };
92
+ * const command = new GetBillOfMaterialsImportJobCommand(input);
93
+ * const response = await client.send(command);
94
+ * /* response ==
95
+ * {
96
+ * "job": {
97
+ * "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243",
98
+ * "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4",
99
+ * "message": "Import job completed successfully.",
100
+ * "s3uri": "s3://mybucketname/pathelemene/file.csv",
101
+ * "status": "SUCCESS"
102
+ * }
103
+ * }
104
+ * *\/
105
+ * // example id: example-1
106
+ * ```
107
+ *
108
+ * @example Invoke GetBillOfMaterialsImportJob for an in-progress job
109
+ * ```javascript
110
+ * //
111
+ * const input = {
112
+ * "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243",
113
+ * "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4"
114
+ * };
115
+ * const command = new GetBillOfMaterialsImportJobCommand(input);
116
+ * const response = await client.send(command);
117
+ * /* response ==
118
+ * {
119
+ * "job": {
120
+ * "instanceId": "60f82bbd-71f7-4fcd-a941-472f574c5243",
121
+ * "jobId": "f79b359b-1515-4436-a3bf-bae7b33e47b4",
122
+ * "s3uri": "s3://mybucketname/pathelemene/file.csv",
123
+ * "status": "IN_PROGRESS"
124
+ * }
125
+ * }
126
+ * *\/
127
+ * // example id: example-2
128
+ * ```
129
+ *
85
130
  */
86
131
  export declare class GetBillOfMaterialsImportJobCommand extends GetBillOfMaterialsImportJobCommand_base {
87
132
  }
@@ -80,6 +80,306 @@ declare const SendDataIntegrationEventCommand_base: {
80
80
  * <p>Base exception class for all service exceptions from SupplyChain service.</p>
81
81
  *
82
82
  * @public
83
+ * @example Successful SendDataIntegrationEvent for inboundorder event type
84
+ * ```javascript
85
+ * //
86
+ * const input = {
87
+ * "data": "{\"id\": \"inbound-order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\" }",
88
+ * "eventGroupId": "inboundOrderId",
89
+ * "eventTimestamp": 1515531081.123,
90
+ * "eventType": "scn.data.inboundorder",
91
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
92
+ * };
93
+ * const command = new SendDataIntegrationEventCommand(input);
94
+ * const response = await client.send(command);
95
+ * /* response ==
96
+ * {
97
+ * "eventId": "c4132c1d-8f60-44a2-9932-f723c4f7b8a7"
98
+ * }
99
+ * *\/
100
+ * // example id: example-1
101
+ * ```
102
+ *
103
+ * @example Successful SendDataIntegrationEvent for inboundorderline event type
104
+ * ```javascript
105
+ * //
106
+ * const input = {
107
+ * "data": "{\"id\": \"inbound-order-line-id-test-123\", \"order_id\": \"order-id-test-123\", \"tpartner_id\": \"partner-id-test-123\", \"product_id\": \"product-id-test-123\", \"quantity_submitted\": \"100.0\" }",
108
+ * "eventGroupId": "inboundOrderLineId",
109
+ * "eventTimestamp": 1515531081.123,
110
+ * "eventType": "scn.data.inboundorderline",
111
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
112
+ * };
113
+ * const command = new SendDataIntegrationEventCommand(input);
114
+ * const response = await client.send(command);
115
+ * /* response ==
116
+ * {
117
+ * "eventId": "45d95db2-d106-40e0-aa98-f1204230a691"
118
+ * }
119
+ * *\/
120
+ * // example id: example-2
121
+ * ```
122
+ *
123
+ * @example Successful SendDataIntegrationEvent for inboundorderlineschedule event type
124
+ * ```javascript
125
+ * //
126
+ * const input = {
127
+ * "data": "{\"id\": \"inbound-order-line-schedule-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"product_id\": \"product-id-test-123\"}",
128
+ * "eventGroupId": "inboundOrderLineScheduleId",
129
+ * "eventTimestamp": 1515531081.123,
130
+ * "eventType": "scn.data.inboundorderlineschedule",
131
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
132
+ * };
133
+ * const command = new SendDataIntegrationEventCommand(input);
134
+ * const response = await client.send(command);
135
+ * /* response ==
136
+ * {
137
+ * "eventId": "5abba995-7735-4d1e-95c4-7cc93e48cf9f"
138
+ * }
139
+ * *\/
140
+ * // example id: example-3
141
+ * ```
142
+ *
143
+ * @example Successful SendDataIntegrationEvent for forecast event type
144
+ * ```javascript
145
+ * //
146
+ * const input = {
147
+ * "data": "{\"snapshot_date\": \"1672470400000\", \"product_id\": \"product-id-test-123\", \"site_id\": \"site-id-test-123\", \"region_id\": \"region-id-test-123\", \"product_group_id\": \"product-group-id-test-123\", \"forecast_start_dttm\": \"1672470400000\", \"forecast_end_dttm\": \"1672470400000\" }",
148
+ * "eventGroupId": "forecastId",
149
+ * "eventTimestamp": 1515531081.123,
150
+ * "eventType": "scn.data.forecast",
151
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
152
+ * };
153
+ * const command = new SendDataIntegrationEventCommand(input);
154
+ * const response = await client.send(command);
155
+ * /* response ==
156
+ * {
157
+ * "eventId": "29312d5b-f499-4dcd-b017-3dab3cd34d61"
158
+ * }
159
+ * *\/
160
+ * // example id: example-4
161
+ * ```
162
+ *
163
+ * @example Successful SendDataIntegrationEvent for inventorylevel event type
164
+ * ```javascript
165
+ * //
166
+ * const input = {
167
+ * "data": "{\"snapshot_date\": \"1672470400000\", \"site_id\": \"site-id-test-123\", \"product_id\": \"product-id-test-123\", \"on_hand_inventory\": \"100.0\", \"inv_condition\": \"good\", \"lot_number\": \"lot-number-test-123\"}",
168
+ * "eventGroupId": "inventoryLevelId",
169
+ * "eventTimestamp": 1515531081.123,
170
+ * "eventType": "scn.data.inventorylevel",
171
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
172
+ * };
173
+ * const command = new SendDataIntegrationEventCommand(input);
174
+ * const response = await client.send(command);
175
+ * /* response ==
176
+ * {
177
+ * "eventId": "3aa78324-acd8-4fdd-a19e-231ea003c2b3"
178
+ * }
179
+ * *\/
180
+ * // example id: example-5
181
+ * ```
182
+ *
183
+ * @example Successful SendDataIntegrationEvent for outboundorderline event type
184
+ * ```javascript
185
+ * //
186
+ * const input = {
187
+ * "data": "{\"id\": \"outbound-orderline-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"product_id\": \"product-id-test-123\" }",
188
+ * "eventGroupId": "outboundOrderLineId",
189
+ * "eventTimestamp": 1515531081.123,
190
+ * "eventType": "scn.data.outboundorderline",
191
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
192
+ * };
193
+ * const command = new SendDataIntegrationEventCommand(input);
194
+ * const response = await client.send(command);
195
+ * /* response ==
196
+ * {
197
+ * "eventId": "959b7ef9-5e2d-4795-b1ca-5b16a3eb6b89"
198
+ * }
199
+ * *\/
200
+ * // example id: example-6
201
+ * ```
202
+ *
203
+ * @example Successful SendDataIntegrationEvent for outboundshipment event type
204
+ * ```javascript
205
+ * //
206
+ * const input = {
207
+ * "data": "{\"id\": \"outbound-shipment-id-test-123\", \"cust_order_id\": \"cust-order-id-test-123\", \"cust_order_line_id\": \"cust-order-line-id-test-123\", \"product_id\": \"product-id-test-123\" }",
208
+ * "eventGroupId": "outboundShipmentId",
209
+ * "eventTimestamp": 1515531081.123,
210
+ * "eventType": "scn.data.outboundshipment",
211
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
212
+ * };
213
+ * const command = new SendDataIntegrationEventCommand(input);
214
+ * const response = await client.send(command);
215
+ * /* response ==
216
+ * {
217
+ * "eventId": "59feded3-5e46-4126-81bf-0137ca176ee0"
218
+ * }
219
+ * *\/
220
+ * // example id: example-7
221
+ * ```
222
+ *
223
+ * @example Successful SendDataIntegrationEvent for processheader event type
224
+ * ```javascript
225
+ * //
226
+ * const input = {
227
+ * "data": "{\"process_id\": \"process-id-test-123\" }",
228
+ * "eventGroupId": "processHeaderId",
229
+ * "eventTimestamp": 1515531081.123,
230
+ * "eventType": "scn.data.processheader",
231
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
232
+ * };
233
+ * const command = new SendDataIntegrationEventCommand(input);
234
+ * const response = await client.send(command);
235
+ * /* response ==
236
+ * {
237
+ * "eventId": "564130eb-2d8a-4550-a768-ddf0daf7b4a9"
238
+ * }
239
+ * *\/
240
+ * // example id: example-8
241
+ * ```
242
+ *
243
+ * @example Successful SendDataIntegrationEvent for processoperation event type
244
+ * ```javascript
245
+ * //
246
+ * const input = {
247
+ * "data": "{\"process_operation_id\": \"process-operation-id-test-123\", \"process_id\": \"process-id-test-123\" }",
248
+ * "eventGroupId": "processOperationId",
249
+ * "eventTimestamp": 1515531081.123,
250
+ * "eventType": "scn.data.processoperation",
251
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
252
+ * };
253
+ * const command = new SendDataIntegrationEventCommand(input);
254
+ * const response = await client.send(command);
255
+ * /* response ==
256
+ * {
257
+ * "eventId": "db5df408-89c7-4b9f-a326-016f6c2b3396"
258
+ * }
259
+ * *\/
260
+ * // example id: example-9
261
+ * ```
262
+ *
263
+ * @example Successful SendDataIntegrationEvent for processproduct event type
264
+ * ```javascript
265
+ * //
266
+ * const input = {
267
+ * "data": "{\"process_product_id\": \"process-product-id-test-123\", \"process_id\": \"process-id-test-123\" }",
268
+ * "eventGroupId": "processProductId",
269
+ * "eventTimestamp": 1515531081.123,
270
+ * "eventType": "scn.data.processproduct",
271
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
272
+ * };
273
+ * const command = new SendDataIntegrationEventCommand(input);
274
+ * const response = await client.send(command);
275
+ * /* response ==
276
+ * {
277
+ * "eventId": "6929b275-485e-4035-a798-99077ca6d669"
278
+ * }
279
+ * *\/
280
+ * // example id: example-10
281
+ * ```
282
+ *
283
+ * @example Successful SendDataIntegrationEvent for reservation event type
284
+ * ```javascript
285
+ * //
286
+ * const input = {
287
+ * "data": "{\"reservation_id\": \"reservation-id-test-123\", \"reservation_detail_id\": \"reservation-detail-id-test-123\" }",
288
+ * "eventGroupId": "reservationId",
289
+ * "eventTimestamp": 1515531081.123,
290
+ * "eventType": "scn.data.reservation",
291
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
292
+ * };
293
+ * const command = new SendDataIntegrationEventCommand(input);
294
+ * const response = await client.send(command);
295
+ * /* response ==
296
+ * {
297
+ * "eventId": "f6c55a8b-fde2-44f6-848a-9b4336c77209"
298
+ * }
299
+ * *\/
300
+ * // example id: example-11
301
+ * ```
302
+ *
303
+ * @example Successful SendDataIntegrationEvent for shipment event type
304
+ * ```javascript
305
+ * //
306
+ * const input = {
307
+ * "data": "{\"id\": \"shipment-id-test-123\", \"supplier_tpartner_id\": \"supplier-tpartner-id-test-123\", \"product_id\": \"product-id-test-123\", \"order_id\": \"order-id-test-123\", \"order_line_id\": \"order-line-id-test-123\", \"package_id\": \"package-id-test-123\" }",
308
+ * "eventGroupId": "shipmentId",
309
+ * "eventTimestamp": 1515531081.123,
310
+ * "eventType": "scn.data.shipment",
311
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
312
+ * };
313
+ * const command = new SendDataIntegrationEventCommand(input);
314
+ * const response = await client.send(command);
315
+ * /* response ==
316
+ * {
317
+ * "eventId": "61d079d8-3f56-49bb-b35a-c0271a4e4f0a"
318
+ * }
319
+ * *\/
320
+ * // example id: example-12
321
+ * ```
322
+ *
323
+ * @example Successful SendDataIntegrationEvent for shipmentstop event type
324
+ * ```javascript
325
+ * //
326
+ * const input = {
327
+ * "data": "{\"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }",
328
+ * "eventGroupId": "shipmentStopId",
329
+ * "eventTimestamp": 1515531081.123,
330
+ * "eventType": "scn.data.shipmentstop",
331
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
332
+ * };
333
+ * const command = new SendDataIntegrationEventCommand(input);
334
+ * const response = await client.send(command);
335
+ * /* response ==
336
+ * {
337
+ * "eventId": "3610992a-fc2f-4da4-9beb-724994622ba1"
338
+ * }
339
+ * *\/
340
+ * // example id: example-13
341
+ * ```
342
+ *
343
+ * @example Successful SendDataIntegrationEvent for shipmentstoporder event type
344
+ * ```javascript
345
+ * //
346
+ * const input = {
347
+ * "data": "{\"shipment_stop_order_id\": \"shipment-stop-order-id-test-123\", \"shipment_stop_id\": \"shipment-stop-id-test-123\", \"shipment_id\": \"shipment-id-test-123\" }",
348
+ * "eventGroupId": "shipmentStopOrderId",
349
+ * "eventTimestamp": 1515531081.123,
350
+ * "eventType": "scn.data.shipmentstoporder",
351
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
352
+ * };
353
+ * const command = new SendDataIntegrationEventCommand(input);
354
+ * const response = await client.send(command);
355
+ * /* response ==
356
+ * {
357
+ * "eventId": "1d550a60-9321-4d25-a132-9dd4b2d9e934"
358
+ * }
359
+ * *\/
360
+ * // example id: example-14
361
+ * ```
362
+ *
363
+ * @example Successful SendDataIntegrationEvent for supplyplan event type
364
+ * ```javascript
365
+ * //
366
+ * const input = {
367
+ * "data": "{\"supply_plan_id\": \"supply-plan-id-test-123\" }",
368
+ * "eventGroupId": "supplyPlanId",
369
+ * "eventTimestamp": 1515531081.123,
370
+ * "eventType": "scn.data.supplyplan",
371
+ * "instanceId": "8928ae12-15e5-4441-825d-ec2184f0a43a"
372
+ * };
373
+ * const command = new SendDataIntegrationEventCommand(input);
374
+ * const response = await client.send(command);
375
+ * /* response ==
376
+ * {
377
+ * "eventId": "9abaee56-5dc4-4c31-8250-3206a651d8a1"
378
+ * }
379
+ * *\/
380
+ * // example id: example-15
381
+ * ```
382
+ *
83
383
  */
84
384
  export declare class SendDataIntegrationEventCommand extends SendDataIntegrationEventCommand_base {
85
385
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-supplychain",
3
3
  "description": "AWS SDK for JavaScript Supplychain Client for Node.js, Browser and React Native",
4
- "version": "3.553.0",
4
+ "version": "3.554.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-supplychain",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.552.0",
24
- "@aws-sdk/core": "3.552.0",
25
- "@aws-sdk/credential-provider-node": "3.552.0",
23
+ "@aws-sdk/client-sts": "3.554.0",
24
+ "@aws-sdk/core": "3.554.0",
25
+ "@aws-sdk/credential-provider-node": "3.554.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",