@aws-sdk/client-frauddetector 3.183.0 → 3.186.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.
Files changed (95) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/FraudDetector.js +281 -274
  4. package/dist-es/FraudDetectorClient.js +28 -22
  5. package/dist-es/commands/BatchCreateVariableCommand.js +28 -21
  6. package/dist-es/commands/BatchGetVariableCommand.js +28 -21
  7. package/dist-es/commands/CancelBatchImportJobCommand.js +28 -21
  8. package/dist-es/commands/CancelBatchPredictionJobCommand.js +28 -21
  9. package/dist-es/commands/CreateBatchImportJobCommand.js +28 -21
  10. package/dist-es/commands/CreateBatchPredictionJobCommand.js +28 -21
  11. package/dist-es/commands/CreateDetectorVersionCommand.js +28 -21
  12. package/dist-es/commands/CreateModelCommand.js +28 -21
  13. package/dist-es/commands/CreateModelVersionCommand.js +28 -21
  14. package/dist-es/commands/CreateRuleCommand.js +28 -21
  15. package/dist-es/commands/CreateVariableCommand.js +28 -21
  16. package/dist-es/commands/DeleteBatchImportJobCommand.js +28 -21
  17. package/dist-es/commands/DeleteBatchPredictionJobCommand.js +28 -21
  18. package/dist-es/commands/DeleteDetectorCommand.js +28 -21
  19. package/dist-es/commands/DeleteDetectorVersionCommand.js +28 -21
  20. package/dist-es/commands/DeleteEntityTypeCommand.js +28 -21
  21. package/dist-es/commands/DeleteEventCommand.js +28 -21
  22. package/dist-es/commands/DeleteEventTypeCommand.js +28 -21
  23. package/dist-es/commands/DeleteEventsByEventTypeCommand.js +28 -21
  24. package/dist-es/commands/DeleteExternalModelCommand.js +28 -21
  25. package/dist-es/commands/DeleteLabelCommand.js +28 -21
  26. package/dist-es/commands/DeleteModelCommand.js +28 -21
  27. package/dist-es/commands/DeleteModelVersionCommand.js +28 -21
  28. package/dist-es/commands/DeleteOutcomeCommand.js +28 -21
  29. package/dist-es/commands/DeleteRuleCommand.js +28 -21
  30. package/dist-es/commands/DeleteVariableCommand.js +28 -21
  31. package/dist-es/commands/DescribeDetectorCommand.js +28 -21
  32. package/dist-es/commands/DescribeModelVersionsCommand.js +28 -21
  33. package/dist-es/commands/GetBatchImportJobsCommand.js +28 -21
  34. package/dist-es/commands/GetBatchPredictionJobsCommand.js +28 -21
  35. package/dist-es/commands/GetDeleteEventsByEventTypeStatusCommand.js +28 -21
  36. package/dist-es/commands/GetDetectorVersionCommand.js +28 -21
  37. package/dist-es/commands/GetDetectorsCommand.js +28 -21
  38. package/dist-es/commands/GetEntityTypesCommand.js +28 -21
  39. package/dist-es/commands/GetEventCommand.js +28 -21
  40. package/dist-es/commands/GetEventPredictionCommand.js +28 -21
  41. package/dist-es/commands/GetEventPredictionMetadataCommand.js +28 -21
  42. package/dist-es/commands/GetEventTypesCommand.js +28 -21
  43. package/dist-es/commands/GetExternalModelsCommand.js +28 -21
  44. package/dist-es/commands/GetKMSEncryptionKeyCommand.js +29 -22
  45. package/dist-es/commands/GetLabelsCommand.js +28 -21
  46. package/dist-es/commands/GetModelVersionCommand.js +28 -21
  47. package/dist-es/commands/GetModelsCommand.js +28 -21
  48. package/dist-es/commands/GetOutcomesCommand.js +28 -21
  49. package/dist-es/commands/GetRulesCommand.js +28 -21
  50. package/dist-es/commands/GetVariablesCommand.js +28 -21
  51. package/dist-es/commands/ListEventPredictionsCommand.js +28 -21
  52. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  53. package/dist-es/commands/PutDetectorCommand.js +28 -21
  54. package/dist-es/commands/PutEntityTypeCommand.js +28 -21
  55. package/dist-es/commands/PutEventTypeCommand.js +28 -21
  56. package/dist-es/commands/PutExternalModelCommand.js +28 -21
  57. package/dist-es/commands/PutKMSEncryptionKeyCommand.js +28 -21
  58. package/dist-es/commands/PutLabelCommand.js +28 -21
  59. package/dist-es/commands/PutOutcomeCommand.js +28 -21
  60. package/dist-es/commands/SendEventCommand.js +28 -21
  61. package/dist-es/commands/TagResourceCommand.js +28 -21
  62. package/dist-es/commands/UntagResourceCommand.js +28 -21
  63. package/dist-es/commands/UpdateDetectorVersionCommand.js +28 -21
  64. package/dist-es/commands/UpdateDetectorVersionMetadataCommand.js +28 -21
  65. package/dist-es/commands/UpdateDetectorVersionStatusCommand.js +28 -21
  66. package/dist-es/commands/UpdateEventLabelCommand.js +28 -21
  67. package/dist-es/commands/UpdateModelCommand.js +28 -21
  68. package/dist-es/commands/UpdateModelVersionCommand.js +28 -21
  69. package/dist-es/commands/UpdateModelVersionStatusCommand.js +28 -21
  70. package/dist-es/commands/UpdateRuleMetadataCommand.js +28 -21
  71. package/dist-es/commands/UpdateRuleVersionCommand.js +28 -21
  72. package/dist-es/commands/UpdateVariableCommand.js +28 -21
  73. package/dist-es/endpoints.js +8 -8
  74. package/dist-es/models/FraudDetectorServiceException.js +10 -5
  75. package/dist-es/models/models_0.js +284 -710
  76. package/dist-es/pagination/DescribeModelVersionsPaginator.js +68 -25
  77. package/dist-es/pagination/GetBatchImportJobsPaginator.js +68 -25
  78. package/dist-es/pagination/GetBatchPredictionJobsPaginator.js +68 -25
  79. package/dist-es/pagination/GetDetectorsPaginator.js +68 -25
  80. package/dist-es/pagination/GetEntityTypesPaginator.js +68 -25
  81. package/dist-es/pagination/GetEventTypesPaginator.js +68 -25
  82. package/dist-es/pagination/GetExternalModelsPaginator.js +68 -25
  83. package/dist-es/pagination/GetLabelsPaginator.js +68 -25
  84. package/dist-es/pagination/GetModelsPaginator.js +68 -25
  85. package/dist-es/pagination/GetOutcomesPaginator.js +68 -25
  86. package/dist-es/pagination/GetRulesPaginator.js +68 -25
  87. package/dist-es/pagination/GetVariablesPaginator.js +68 -25
  88. package/dist-es/pagination/ListEventPredictionsPaginator.js +68 -25
  89. package/dist-es/pagination/ListTagsForResourcePaginator.js +68 -25
  90. package/dist-es/protocols/Aws_json1_1.js +6042 -4746
  91. package/dist-es/runtimeConfig.browser.js +12 -26
  92. package/dist-es/runtimeConfig.js +12 -30
  93. package/dist-es/runtimeConfig.native.js +5 -8
  94. package/dist-es/runtimeConfig.shared.js +11 -8
  95. package/package.json +33 -33
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { BatchCreateVariableCommand, } from "./commands/BatchCreateVariableCommand";
2
3
  import { BatchGetVariableCommand, } from "./commands/BatchGetVariableCommand";
3
4
  import { CancelBatchImportJobCommand, } from "./commands/CancelBatchImportJobCommand";
@@ -67,957 +68,963 @@ import { UpdateRuleMetadataCommand, } from "./commands/UpdateRuleMetadataCommand
67
68
  import { UpdateRuleVersionCommand, } from "./commands/UpdateRuleVersionCommand";
68
69
  import { UpdateVariableCommand, } from "./commands/UpdateVariableCommand";
69
70
  import { FraudDetectorClient } from "./FraudDetectorClient";
70
- export class FraudDetector extends FraudDetectorClient {
71
- batchCreateVariable(args, optionsOrCb, cb) {
72
- const command = new BatchCreateVariableCommand(args);
71
+ var FraudDetector = (function (_super) {
72
+ __extends(FraudDetector, _super);
73
+ function FraudDetector() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
+ }
76
+ FraudDetector.prototype.batchCreateVariable = function (args, optionsOrCb, cb) {
77
+ var command = new BatchCreateVariableCommand(args);
73
78
  if (typeof optionsOrCb === "function") {
74
79
  this.send(command, optionsOrCb);
75
80
  }
76
81
  else if (typeof cb === "function") {
77
82
  if (typeof optionsOrCb !== "object")
78
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
84
  this.send(command, optionsOrCb || {}, cb);
80
85
  }
81
86
  else {
82
87
  return this.send(command, optionsOrCb);
83
88
  }
84
- }
85
- batchGetVariable(args, optionsOrCb, cb) {
86
- const command = new BatchGetVariableCommand(args);
89
+ };
90
+ FraudDetector.prototype.batchGetVariable = function (args, optionsOrCb, cb) {
91
+ var command = new BatchGetVariableCommand(args);
87
92
  if (typeof optionsOrCb === "function") {
88
93
  this.send(command, optionsOrCb);
89
94
  }
90
95
  else if (typeof cb === "function") {
91
96
  if (typeof optionsOrCb !== "object")
92
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
97
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
98
  this.send(command, optionsOrCb || {}, cb);
94
99
  }
95
100
  else {
96
101
  return this.send(command, optionsOrCb);
97
102
  }
98
- }
99
- cancelBatchImportJob(args, optionsOrCb, cb) {
100
- const command = new CancelBatchImportJobCommand(args);
103
+ };
104
+ FraudDetector.prototype.cancelBatchImportJob = function (args, optionsOrCb, cb) {
105
+ var command = new CancelBatchImportJobCommand(args);
101
106
  if (typeof optionsOrCb === "function") {
102
107
  this.send(command, optionsOrCb);
103
108
  }
104
109
  else if (typeof cb === "function") {
105
110
  if (typeof optionsOrCb !== "object")
106
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
111
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
112
  this.send(command, optionsOrCb || {}, cb);
108
113
  }
109
114
  else {
110
115
  return this.send(command, optionsOrCb);
111
116
  }
112
- }
113
- cancelBatchPredictionJob(args, optionsOrCb, cb) {
114
- const command = new CancelBatchPredictionJobCommand(args);
117
+ };
118
+ FraudDetector.prototype.cancelBatchPredictionJob = function (args, optionsOrCb, cb) {
119
+ var command = new CancelBatchPredictionJobCommand(args);
115
120
  if (typeof optionsOrCb === "function") {
116
121
  this.send(command, optionsOrCb);
117
122
  }
118
123
  else if (typeof cb === "function") {
119
124
  if (typeof optionsOrCb !== "object")
120
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
125
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
126
  this.send(command, optionsOrCb || {}, cb);
122
127
  }
123
128
  else {
124
129
  return this.send(command, optionsOrCb);
125
130
  }
126
- }
127
- createBatchImportJob(args, optionsOrCb, cb) {
128
- const command = new CreateBatchImportJobCommand(args);
131
+ };
132
+ FraudDetector.prototype.createBatchImportJob = function (args, optionsOrCb, cb) {
133
+ var command = new CreateBatchImportJobCommand(args);
129
134
  if (typeof optionsOrCb === "function") {
130
135
  this.send(command, optionsOrCb);
131
136
  }
132
137
  else if (typeof cb === "function") {
133
138
  if (typeof optionsOrCb !== "object")
134
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
139
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
140
  this.send(command, optionsOrCb || {}, cb);
136
141
  }
137
142
  else {
138
143
  return this.send(command, optionsOrCb);
139
144
  }
140
- }
141
- createBatchPredictionJob(args, optionsOrCb, cb) {
142
- const command = new CreateBatchPredictionJobCommand(args);
145
+ };
146
+ FraudDetector.prototype.createBatchPredictionJob = function (args, optionsOrCb, cb) {
147
+ var command = new CreateBatchPredictionJobCommand(args);
143
148
  if (typeof optionsOrCb === "function") {
144
149
  this.send(command, optionsOrCb);
145
150
  }
146
151
  else if (typeof cb === "function") {
147
152
  if (typeof optionsOrCb !== "object")
148
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
153
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
154
  this.send(command, optionsOrCb || {}, cb);
150
155
  }
151
156
  else {
152
157
  return this.send(command, optionsOrCb);
153
158
  }
154
- }
155
- createDetectorVersion(args, optionsOrCb, cb) {
156
- const command = new CreateDetectorVersionCommand(args);
159
+ };
160
+ FraudDetector.prototype.createDetectorVersion = function (args, optionsOrCb, cb) {
161
+ var command = new CreateDetectorVersionCommand(args);
157
162
  if (typeof optionsOrCb === "function") {
158
163
  this.send(command, optionsOrCb);
159
164
  }
160
165
  else if (typeof cb === "function") {
161
166
  if (typeof optionsOrCb !== "object")
162
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
167
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
168
  this.send(command, optionsOrCb || {}, cb);
164
169
  }
165
170
  else {
166
171
  return this.send(command, optionsOrCb);
167
172
  }
168
- }
169
- createModel(args, optionsOrCb, cb) {
170
- const command = new CreateModelCommand(args);
173
+ };
174
+ FraudDetector.prototype.createModel = function (args, optionsOrCb, cb) {
175
+ var command = new CreateModelCommand(args);
171
176
  if (typeof optionsOrCb === "function") {
172
177
  this.send(command, optionsOrCb);
173
178
  }
174
179
  else if (typeof cb === "function") {
175
180
  if (typeof optionsOrCb !== "object")
176
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
181
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
182
  this.send(command, optionsOrCb || {}, cb);
178
183
  }
179
184
  else {
180
185
  return this.send(command, optionsOrCb);
181
186
  }
182
- }
183
- createModelVersion(args, optionsOrCb, cb) {
184
- const command = new CreateModelVersionCommand(args);
187
+ };
188
+ FraudDetector.prototype.createModelVersion = function (args, optionsOrCb, cb) {
189
+ var command = new CreateModelVersionCommand(args);
185
190
  if (typeof optionsOrCb === "function") {
186
191
  this.send(command, optionsOrCb);
187
192
  }
188
193
  else if (typeof cb === "function") {
189
194
  if (typeof optionsOrCb !== "object")
190
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
196
  this.send(command, optionsOrCb || {}, cb);
192
197
  }
193
198
  else {
194
199
  return this.send(command, optionsOrCb);
195
200
  }
196
- }
197
- createRule(args, optionsOrCb, cb) {
198
- const command = new CreateRuleCommand(args);
201
+ };
202
+ FraudDetector.prototype.createRule = function (args, optionsOrCb, cb) {
203
+ var command = new CreateRuleCommand(args);
199
204
  if (typeof optionsOrCb === "function") {
200
205
  this.send(command, optionsOrCb);
201
206
  }
202
207
  else if (typeof cb === "function") {
203
208
  if (typeof optionsOrCb !== "object")
204
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
209
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
210
  this.send(command, optionsOrCb || {}, cb);
206
211
  }
207
212
  else {
208
213
  return this.send(command, optionsOrCb);
209
214
  }
210
- }
211
- createVariable(args, optionsOrCb, cb) {
212
- const command = new CreateVariableCommand(args);
215
+ };
216
+ FraudDetector.prototype.createVariable = function (args, optionsOrCb, cb) {
217
+ var command = new CreateVariableCommand(args);
213
218
  if (typeof optionsOrCb === "function") {
214
219
  this.send(command, optionsOrCb);
215
220
  }
216
221
  else if (typeof cb === "function") {
217
222
  if (typeof optionsOrCb !== "object")
218
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
223
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
224
  this.send(command, optionsOrCb || {}, cb);
220
225
  }
221
226
  else {
222
227
  return this.send(command, optionsOrCb);
223
228
  }
224
- }
225
- deleteBatchImportJob(args, optionsOrCb, cb) {
226
- const command = new DeleteBatchImportJobCommand(args);
229
+ };
230
+ FraudDetector.prototype.deleteBatchImportJob = function (args, optionsOrCb, cb) {
231
+ var command = new DeleteBatchImportJobCommand(args);
227
232
  if (typeof optionsOrCb === "function") {
228
233
  this.send(command, optionsOrCb);
229
234
  }
230
235
  else if (typeof cb === "function") {
231
236
  if (typeof optionsOrCb !== "object")
232
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
237
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
238
  this.send(command, optionsOrCb || {}, cb);
234
239
  }
235
240
  else {
236
241
  return this.send(command, optionsOrCb);
237
242
  }
238
- }
239
- deleteBatchPredictionJob(args, optionsOrCb, cb) {
240
- const command = new DeleteBatchPredictionJobCommand(args);
243
+ };
244
+ FraudDetector.prototype.deleteBatchPredictionJob = function (args, optionsOrCb, cb) {
245
+ var command = new DeleteBatchPredictionJobCommand(args);
241
246
  if (typeof optionsOrCb === "function") {
242
247
  this.send(command, optionsOrCb);
243
248
  }
244
249
  else if (typeof cb === "function") {
245
250
  if (typeof optionsOrCb !== "object")
246
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
251
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
252
  this.send(command, optionsOrCb || {}, cb);
248
253
  }
249
254
  else {
250
255
  return this.send(command, optionsOrCb);
251
256
  }
252
- }
253
- deleteDetector(args, optionsOrCb, cb) {
254
- const command = new DeleteDetectorCommand(args);
257
+ };
258
+ FraudDetector.prototype.deleteDetector = function (args, optionsOrCb, cb) {
259
+ var command = new DeleteDetectorCommand(args);
255
260
  if (typeof optionsOrCb === "function") {
256
261
  this.send(command, optionsOrCb);
257
262
  }
258
263
  else if (typeof cb === "function") {
259
264
  if (typeof optionsOrCb !== "object")
260
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
265
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
266
  this.send(command, optionsOrCb || {}, cb);
262
267
  }
263
268
  else {
264
269
  return this.send(command, optionsOrCb);
265
270
  }
266
- }
267
- deleteDetectorVersion(args, optionsOrCb, cb) {
268
- const command = new DeleteDetectorVersionCommand(args);
271
+ };
272
+ FraudDetector.prototype.deleteDetectorVersion = function (args, optionsOrCb, cb) {
273
+ var command = new DeleteDetectorVersionCommand(args);
269
274
  if (typeof optionsOrCb === "function") {
270
275
  this.send(command, optionsOrCb);
271
276
  }
272
277
  else if (typeof cb === "function") {
273
278
  if (typeof optionsOrCb !== "object")
274
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
279
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
280
  this.send(command, optionsOrCb || {}, cb);
276
281
  }
277
282
  else {
278
283
  return this.send(command, optionsOrCb);
279
284
  }
280
- }
281
- deleteEntityType(args, optionsOrCb, cb) {
282
- const command = new DeleteEntityTypeCommand(args);
285
+ };
286
+ FraudDetector.prototype.deleteEntityType = function (args, optionsOrCb, cb) {
287
+ var command = new DeleteEntityTypeCommand(args);
283
288
  if (typeof optionsOrCb === "function") {
284
289
  this.send(command, optionsOrCb);
285
290
  }
286
291
  else if (typeof cb === "function") {
287
292
  if (typeof optionsOrCb !== "object")
288
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
293
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
294
  this.send(command, optionsOrCb || {}, cb);
290
295
  }
291
296
  else {
292
297
  return this.send(command, optionsOrCb);
293
298
  }
294
- }
295
- deleteEvent(args, optionsOrCb, cb) {
296
- const command = new DeleteEventCommand(args);
299
+ };
300
+ FraudDetector.prototype.deleteEvent = function (args, optionsOrCb, cb) {
301
+ var command = new DeleteEventCommand(args);
297
302
  if (typeof optionsOrCb === "function") {
298
303
  this.send(command, optionsOrCb);
299
304
  }
300
305
  else if (typeof cb === "function") {
301
306
  if (typeof optionsOrCb !== "object")
302
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
307
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
308
  this.send(command, optionsOrCb || {}, cb);
304
309
  }
305
310
  else {
306
311
  return this.send(command, optionsOrCb);
307
312
  }
308
- }
309
- deleteEventsByEventType(args, optionsOrCb, cb) {
310
- const command = new DeleteEventsByEventTypeCommand(args);
313
+ };
314
+ FraudDetector.prototype.deleteEventsByEventType = function (args, optionsOrCb, cb) {
315
+ var command = new DeleteEventsByEventTypeCommand(args);
311
316
  if (typeof optionsOrCb === "function") {
312
317
  this.send(command, optionsOrCb);
313
318
  }
314
319
  else if (typeof cb === "function") {
315
320
  if (typeof optionsOrCb !== "object")
316
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
322
  this.send(command, optionsOrCb || {}, cb);
318
323
  }
319
324
  else {
320
325
  return this.send(command, optionsOrCb);
321
326
  }
322
- }
323
- deleteEventType(args, optionsOrCb, cb) {
324
- const command = new DeleteEventTypeCommand(args);
327
+ };
328
+ FraudDetector.prototype.deleteEventType = function (args, optionsOrCb, cb) {
329
+ var command = new DeleteEventTypeCommand(args);
325
330
  if (typeof optionsOrCb === "function") {
326
331
  this.send(command, optionsOrCb);
327
332
  }
328
333
  else if (typeof cb === "function") {
329
334
  if (typeof optionsOrCb !== "object")
330
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
335
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
336
  this.send(command, optionsOrCb || {}, cb);
332
337
  }
333
338
  else {
334
339
  return this.send(command, optionsOrCb);
335
340
  }
336
- }
337
- deleteExternalModel(args, optionsOrCb, cb) {
338
- const command = new DeleteExternalModelCommand(args);
341
+ };
342
+ FraudDetector.prototype.deleteExternalModel = function (args, optionsOrCb, cb) {
343
+ var command = new DeleteExternalModelCommand(args);
339
344
  if (typeof optionsOrCb === "function") {
340
345
  this.send(command, optionsOrCb);
341
346
  }
342
347
  else if (typeof cb === "function") {
343
348
  if (typeof optionsOrCb !== "object")
344
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
349
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
350
  this.send(command, optionsOrCb || {}, cb);
346
351
  }
347
352
  else {
348
353
  return this.send(command, optionsOrCb);
349
354
  }
350
- }
351
- deleteLabel(args, optionsOrCb, cb) {
352
- const command = new DeleteLabelCommand(args);
355
+ };
356
+ FraudDetector.prototype.deleteLabel = function (args, optionsOrCb, cb) {
357
+ var command = new DeleteLabelCommand(args);
353
358
  if (typeof optionsOrCb === "function") {
354
359
  this.send(command, optionsOrCb);
355
360
  }
356
361
  else if (typeof cb === "function") {
357
362
  if (typeof optionsOrCb !== "object")
358
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
363
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
364
  this.send(command, optionsOrCb || {}, cb);
360
365
  }
361
366
  else {
362
367
  return this.send(command, optionsOrCb);
363
368
  }
364
- }
365
- deleteModel(args, optionsOrCb, cb) {
366
- const command = new DeleteModelCommand(args);
369
+ };
370
+ FraudDetector.prototype.deleteModel = function (args, optionsOrCb, cb) {
371
+ var command = new DeleteModelCommand(args);
367
372
  if (typeof optionsOrCb === "function") {
368
373
  this.send(command, optionsOrCb);
369
374
  }
370
375
  else if (typeof cb === "function") {
371
376
  if (typeof optionsOrCb !== "object")
372
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
377
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
378
  this.send(command, optionsOrCb || {}, cb);
374
379
  }
375
380
  else {
376
381
  return this.send(command, optionsOrCb);
377
382
  }
378
- }
379
- deleteModelVersion(args, optionsOrCb, cb) {
380
- const command = new DeleteModelVersionCommand(args);
383
+ };
384
+ FraudDetector.prototype.deleteModelVersion = function (args, optionsOrCb, cb) {
385
+ var command = new DeleteModelVersionCommand(args);
381
386
  if (typeof optionsOrCb === "function") {
382
387
  this.send(command, optionsOrCb);
383
388
  }
384
389
  else if (typeof cb === "function") {
385
390
  if (typeof optionsOrCb !== "object")
386
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
392
  this.send(command, optionsOrCb || {}, cb);
388
393
  }
389
394
  else {
390
395
  return this.send(command, optionsOrCb);
391
396
  }
392
- }
393
- deleteOutcome(args, optionsOrCb, cb) {
394
- const command = new DeleteOutcomeCommand(args);
397
+ };
398
+ FraudDetector.prototype.deleteOutcome = function (args, optionsOrCb, cb) {
399
+ var command = new DeleteOutcomeCommand(args);
395
400
  if (typeof optionsOrCb === "function") {
396
401
  this.send(command, optionsOrCb);
397
402
  }
398
403
  else if (typeof cb === "function") {
399
404
  if (typeof optionsOrCb !== "object")
400
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
405
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
406
  this.send(command, optionsOrCb || {}, cb);
402
407
  }
403
408
  else {
404
409
  return this.send(command, optionsOrCb);
405
410
  }
406
- }
407
- deleteRule(args, optionsOrCb, cb) {
408
- const command = new DeleteRuleCommand(args);
411
+ };
412
+ FraudDetector.prototype.deleteRule = function (args, optionsOrCb, cb) {
413
+ var command = new DeleteRuleCommand(args);
409
414
  if (typeof optionsOrCb === "function") {
410
415
  this.send(command, optionsOrCb);
411
416
  }
412
417
  else if (typeof cb === "function") {
413
418
  if (typeof optionsOrCb !== "object")
414
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
419
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
415
420
  this.send(command, optionsOrCb || {}, cb);
416
421
  }
417
422
  else {
418
423
  return this.send(command, optionsOrCb);
419
424
  }
420
- }
421
- deleteVariable(args, optionsOrCb, cb) {
422
- const command = new DeleteVariableCommand(args);
425
+ };
426
+ FraudDetector.prototype.deleteVariable = function (args, optionsOrCb, cb) {
427
+ var command = new DeleteVariableCommand(args);
423
428
  if (typeof optionsOrCb === "function") {
424
429
  this.send(command, optionsOrCb);
425
430
  }
426
431
  else if (typeof cb === "function") {
427
432
  if (typeof optionsOrCb !== "object")
428
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
433
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
429
434
  this.send(command, optionsOrCb || {}, cb);
430
435
  }
431
436
  else {
432
437
  return this.send(command, optionsOrCb);
433
438
  }
434
- }
435
- describeDetector(args, optionsOrCb, cb) {
436
- const command = new DescribeDetectorCommand(args);
439
+ };
440
+ FraudDetector.prototype.describeDetector = function (args, optionsOrCb, cb) {
441
+ var command = new DescribeDetectorCommand(args);
437
442
  if (typeof optionsOrCb === "function") {
438
443
  this.send(command, optionsOrCb);
439
444
  }
440
445
  else if (typeof cb === "function") {
441
446
  if (typeof optionsOrCb !== "object")
442
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
447
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
443
448
  this.send(command, optionsOrCb || {}, cb);
444
449
  }
445
450
  else {
446
451
  return this.send(command, optionsOrCb);
447
452
  }
448
- }
449
- describeModelVersions(args, optionsOrCb, cb) {
450
- const command = new DescribeModelVersionsCommand(args);
453
+ };
454
+ FraudDetector.prototype.describeModelVersions = function (args, optionsOrCb, cb) {
455
+ var command = new DescribeModelVersionsCommand(args);
451
456
  if (typeof optionsOrCb === "function") {
452
457
  this.send(command, optionsOrCb);
453
458
  }
454
459
  else if (typeof cb === "function") {
455
460
  if (typeof optionsOrCb !== "object")
456
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
461
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
457
462
  this.send(command, optionsOrCb || {}, cb);
458
463
  }
459
464
  else {
460
465
  return this.send(command, optionsOrCb);
461
466
  }
462
- }
463
- getBatchImportJobs(args, optionsOrCb, cb) {
464
- const command = new GetBatchImportJobsCommand(args);
467
+ };
468
+ FraudDetector.prototype.getBatchImportJobs = function (args, optionsOrCb, cb) {
469
+ var command = new GetBatchImportJobsCommand(args);
465
470
  if (typeof optionsOrCb === "function") {
466
471
  this.send(command, optionsOrCb);
467
472
  }
468
473
  else if (typeof cb === "function") {
469
474
  if (typeof optionsOrCb !== "object")
470
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
475
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
471
476
  this.send(command, optionsOrCb || {}, cb);
472
477
  }
473
478
  else {
474
479
  return this.send(command, optionsOrCb);
475
480
  }
476
- }
477
- getBatchPredictionJobs(args, optionsOrCb, cb) {
478
- const command = new GetBatchPredictionJobsCommand(args);
481
+ };
482
+ FraudDetector.prototype.getBatchPredictionJobs = function (args, optionsOrCb, cb) {
483
+ var command = new GetBatchPredictionJobsCommand(args);
479
484
  if (typeof optionsOrCb === "function") {
480
485
  this.send(command, optionsOrCb);
481
486
  }
482
487
  else if (typeof cb === "function") {
483
488
  if (typeof optionsOrCb !== "object")
484
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
489
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
485
490
  this.send(command, optionsOrCb || {}, cb);
486
491
  }
487
492
  else {
488
493
  return this.send(command, optionsOrCb);
489
494
  }
490
- }
491
- getDeleteEventsByEventTypeStatus(args, optionsOrCb, cb) {
492
- const command = new GetDeleteEventsByEventTypeStatusCommand(args);
495
+ };
496
+ FraudDetector.prototype.getDeleteEventsByEventTypeStatus = function (args, optionsOrCb, cb) {
497
+ var command = new GetDeleteEventsByEventTypeStatusCommand(args);
493
498
  if (typeof optionsOrCb === "function") {
494
499
  this.send(command, optionsOrCb);
495
500
  }
496
501
  else if (typeof cb === "function") {
497
502
  if (typeof optionsOrCb !== "object")
498
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
503
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
499
504
  this.send(command, optionsOrCb || {}, cb);
500
505
  }
501
506
  else {
502
507
  return this.send(command, optionsOrCb);
503
508
  }
504
- }
505
- getDetectors(args, optionsOrCb, cb) {
506
- const command = new GetDetectorsCommand(args);
509
+ };
510
+ FraudDetector.prototype.getDetectors = function (args, optionsOrCb, cb) {
511
+ var command = new GetDetectorsCommand(args);
507
512
  if (typeof optionsOrCb === "function") {
508
513
  this.send(command, optionsOrCb);
509
514
  }
510
515
  else if (typeof cb === "function") {
511
516
  if (typeof optionsOrCb !== "object")
512
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
517
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
513
518
  this.send(command, optionsOrCb || {}, cb);
514
519
  }
515
520
  else {
516
521
  return this.send(command, optionsOrCb);
517
522
  }
518
- }
519
- getDetectorVersion(args, optionsOrCb, cb) {
520
- const command = new GetDetectorVersionCommand(args);
523
+ };
524
+ FraudDetector.prototype.getDetectorVersion = function (args, optionsOrCb, cb) {
525
+ var command = new GetDetectorVersionCommand(args);
521
526
  if (typeof optionsOrCb === "function") {
522
527
  this.send(command, optionsOrCb);
523
528
  }
524
529
  else if (typeof cb === "function") {
525
530
  if (typeof optionsOrCb !== "object")
526
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
531
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
527
532
  this.send(command, optionsOrCb || {}, cb);
528
533
  }
529
534
  else {
530
535
  return this.send(command, optionsOrCb);
531
536
  }
532
- }
533
- getEntityTypes(args, optionsOrCb, cb) {
534
- const command = new GetEntityTypesCommand(args);
537
+ };
538
+ FraudDetector.prototype.getEntityTypes = function (args, optionsOrCb, cb) {
539
+ var command = new GetEntityTypesCommand(args);
535
540
  if (typeof optionsOrCb === "function") {
536
541
  this.send(command, optionsOrCb);
537
542
  }
538
543
  else if (typeof cb === "function") {
539
544
  if (typeof optionsOrCb !== "object")
540
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
545
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
541
546
  this.send(command, optionsOrCb || {}, cb);
542
547
  }
543
548
  else {
544
549
  return this.send(command, optionsOrCb);
545
550
  }
546
- }
547
- getEvent(args, optionsOrCb, cb) {
548
- const command = new GetEventCommand(args);
551
+ };
552
+ FraudDetector.prototype.getEvent = function (args, optionsOrCb, cb) {
553
+ var command = new GetEventCommand(args);
549
554
  if (typeof optionsOrCb === "function") {
550
555
  this.send(command, optionsOrCb);
551
556
  }
552
557
  else if (typeof cb === "function") {
553
558
  if (typeof optionsOrCb !== "object")
554
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
559
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
555
560
  this.send(command, optionsOrCb || {}, cb);
556
561
  }
557
562
  else {
558
563
  return this.send(command, optionsOrCb);
559
564
  }
560
- }
561
- getEventPrediction(args, optionsOrCb, cb) {
562
- const command = new GetEventPredictionCommand(args);
565
+ };
566
+ FraudDetector.prototype.getEventPrediction = function (args, optionsOrCb, cb) {
567
+ var command = new GetEventPredictionCommand(args);
563
568
  if (typeof optionsOrCb === "function") {
564
569
  this.send(command, optionsOrCb);
565
570
  }
566
571
  else if (typeof cb === "function") {
567
572
  if (typeof optionsOrCb !== "object")
568
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
573
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
569
574
  this.send(command, optionsOrCb || {}, cb);
570
575
  }
571
576
  else {
572
577
  return this.send(command, optionsOrCb);
573
578
  }
574
- }
575
- getEventPredictionMetadata(args, optionsOrCb, cb) {
576
- const command = new GetEventPredictionMetadataCommand(args);
579
+ };
580
+ FraudDetector.prototype.getEventPredictionMetadata = function (args, optionsOrCb, cb) {
581
+ var command = new GetEventPredictionMetadataCommand(args);
577
582
  if (typeof optionsOrCb === "function") {
578
583
  this.send(command, optionsOrCb);
579
584
  }
580
585
  else if (typeof cb === "function") {
581
586
  if (typeof optionsOrCb !== "object")
582
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
587
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
583
588
  this.send(command, optionsOrCb || {}, cb);
584
589
  }
585
590
  else {
586
591
  return this.send(command, optionsOrCb);
587
592
  }
588
- }
589
- getEventTypes(args, optionsOrCb, cb) {
590
- const command = new GetEventTypesCommand(args);
593
+ };
594
+ FraudDetector.prototype.getEventTypes = function (args, optionsOrCb, cb) {
595
+ var command = new GetEventTypesCommand(args);
591
596
  if (typeof optionsOrCb === "function") {
592
597
  this.send(command, optionsOrCb);
593
598
  }
594
599
  else if (typeof cb === "function") {
595
600
  if (typeof optionsOrCb !== "object")
596
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
601
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
597
602
  this.send(command, optionsOrCb || {}, cb);
598
603
  }
599
604
  else {
600
605
  return this.send(command, optionsOrCb);
601
606
  }
602
- }
603
- getExternalModels(args, optionsOrCb, cb) {
604
- const command = new GetExternalModelsCommand(args);
607
+ };
608
+ FraudDetector.prototype.getExternalModels = function (args, optionsOrCb, cb) {
609
+ var command = new GetExternalModelsCommand(args);
605
610
  if (typeof optionsOrCb === "function") {
606
611
  this.send(command, optionsOrCb);
607
612
  }
608
613
  else if (typeof cb === "function") {
609
614
  if (typeof optionsOrCb !== "object")
610
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
615
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
611
616
  this.send(command, optionsOrCb || {}, cb);
612
617
  }
613
618
  else {
614
619
  return this.send(command, optionsOrCb);
615
620
  }
616
- }
617
- getKMSEncryptionKey(args, optionsOrCb, cb) {
618
- const command = new GetKMSEncryptionKeyCommand(args);
621
+ };
622
+ FraudDetector.prototype.getKMSEncryptionKey = function (args, optionsOrCb, cb) {
623
+ var command = new GetKMSEncryptionKeyCommand(args);
619
624
  if (typeof optionsOrCb === "function") {
620
625
  this.send(command, optionsOrCb);
621
626
  }
622
627
  else if (typeof cb === "function") {
623
628
  if (typeof optionsOrCb !== "object")
624
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
629
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
625
630
  this.send(command, optionsOrCb || {}, cb);
626
631
  }
627
632
  else {
628
633
  return this.send(command, optionsOrCb);
629
634
  }
630
- }
631
- getLabels(args, optionsOrCb, cb) {
632
- const command = new GetLabelsCommand(args);
635
+ };
636
+ FraudDetector.prototype.getLabels = function (args, optionsOrCb, cb) {
637
+ var command = new GetLabelsCommand(args);
633
638
  if (typeof optionsOrCb === "function") {
634
639
  this.send(command, optionsOrCb);
635
640
  }
636
641
  else if (typeof cb === "function") {
637
642
  if (typeof optionsOrCb !== "object")
638
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
643
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
639
644
  this.send(command, optionsOrCb || {}, cb);
640
645
  }
641
646
  else {
642
647
  return this.send(command, optionsOrCb);
643
648
  }
644
- }
645
- getModels(args, optionsOrCb, cb) {
646
- const command = new GetModelsCommand(args);
649
+ };
650
+ FraudDetector.prototype.getModels = function (args, optionsOrCb, cb) {
651
+ var command = new GetModelsCommand(args);
647
652
  if (typeof optionsOrCb === "function") {
648
653
  this.send(command, optionsOrCb);
649
654
  }
650
655
  else if (typeof cb === "function") {
651
656
  if (typeof optionsOrCb !== "object")
652
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
657
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
653
658
  this.send(command, optionsOrCb || {}, cb);
654
659
  }
655
660
  else {
656
661
  return this.send(command, optionsOrCb);
657
662
  }
658
- }
659
- getModelVersion(args, optionsOrCb, cb) {
660
- const command = new GetModelVersionCommand(args);
663
+ };
664
+ FraudDetector.prototype.getModelVersion = function (args, optionsOrCb, cb) {
665
+ var command = new GetModelVersionCommand(args);
661
666
  if (typeof optionsOrCb === "function") {
662
667
  this.send(command, optionsOrCb);
663
668
  }
664
669
  else if (typeof cb === "function") {
665
670
  if (typeof optionsOrCb !== "object")
666
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
671
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
667
672
  this.send(command, optionsOrCb || {}, cb);
668
673
  }
669
674
  else {
670
675
  return this.send(command, optionsOrCb);
671
676
  }
672
- }
673
- getOutcomes(args, optionsOrCb, cb) {
674
- const command = new GetOutcomesCommand(args);
677
+ };
678
+ FraudDetector.prototype.getOutcomes = function (args, optionsOrCb, cb) {
679
+ var command = new GetOutcomesCommand(args);
675
680
  if (typeof optionsOrCb === "function") {
676
681
  this.send(command, optionsOrCb);
677
682
  }
678
683
  else if (typeof cb === "function") {
679
684
  if (typeof optionsOrCb !== "object")
680
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
685
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
681
686
  this.send(command, optionsOrCb || {}, cb);
682
687
  }
683
688
  else {
684
689
  return this.send(command, optionsOrCb);
685
690
  }
686
- }
687
- getRules(args, optionsOrCb, cb) {
688
- const command = new GetRulesCommand(args);
691
+ };
692
+ FraudDetector.prototype.getRules = function (args, optionsOrCb, cb) {
693
+ var command = new GetRulesCommand(args);
689
694
  if (typeof optionsOrCb === "function") {
690
695
  this.send(command, optionsOrCb);
691
696
  }
692
697
  else if (typeof cb === "function") {
693
698
  if (typeof optionsOrCb !== "object")
694
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
699
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
695
700
  this.send(command, optionsOrCb || {}, cb);
696
701
  }
697
702
  else {
698
703
  return this.send(command, optionsOrCb);
699
704
  }
700
- }
701
- getVariables(args, optionsOrCb, cb) {
702
- const command = new GetVariablesCommand(args);
705
+ };
706
+ FraudDetector.prototype.getVariables = function (args, optionsOrCb, cb) {
707
+ var command = new GetVariablesCommand(args);
703
708
  if (typeof optionsOrCb === "function") {
704
709
  this.send(command, optionsOrCb);
705
710
  }
706
711
  else if (typeof cb === "function") {
707
712
  if (typeof optionsOrCb !== "object")
708
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
713
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
709
714
  this.send(command, optionsOrCb || {}, cb);
710
715
  }
711
716
  else {
712
717
  return this.send(command, optionsOrCb);
713
718
  }
714
- }
715
- listEventPredictions(args, optionsOrCb, cb) {
716
- const command = new ListEventPredictionsCommand(args);
719
+ };
720
+ FraudDetector.prototype.listEventPredictions = function (args, optionsOrCb, cb) {
721
+ var command = new ListEventPredictionsCommand(args);
717
722
  if (typeof optionsOrCb === "function") {
718
723
  this.send(command, optionsOrCb);
719
724
  }
720
725
  else if (typeof cb === "function") {
721
726
  if (typeof optionsOrCb !== "object")
722
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
727
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
723
728
  this.send(command, optionsOrCb || {}, cb);
724
729
  }
725
730
  else {
726
731
  return this.send(command, optionsOrCb);
727
732
  }
728
- }
729
- listTagsForResource(args, optionsOrCb, cb) {
730
- const command = new ListTagsForResourceCommand(args);
733
+ };
734
+ FraudDetector.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
735
+ var command = new ListTagsForResourceCommand(args);
731
736
  if (typeof optionsOrCb === "function") {
732
737
  this.send(command, optionsOrCb);
733
738
  }
734
739
  else if (typeof cb === "function") {
735
740
  if (typeof optionsOrCb !== "object")
736
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
741
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
737
742
  this.send(command, optionsOrCb || {}, cb);
738
743
  }
739
744
  else {
740
745
  return this.send(command, optionsOrCb);
741
746
  }
742
- }
743
- putDetector(args, optionsOrCb, cb) {
744
- const command = new PutDetectorCommand(args);
747
+ };
748
+ FraudDetector.prototype.putDetector = function (args, optionsOrCb, cb) {
749
+ var command = new PutDetectorCommand(args);
745
750
  if (typeof optionsOrCb === "function") {
746
751
  this.send(command, optionsOrCb);
747
752
  }
748
753
  else if (typeof cb === "function") {
749
754
  if (typeof optionsOrCb !== "object")
750
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
755
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
751
756
  this.send(command, optionsOrCb || {}, cb);
752
757
  }
753
758
  else {
754
759
  return this.send(command, optionsOrCb);
755
760
  }
756
- }
757
- putEntityType(args, optionsOrCb, cb) {
758
- const command = new PutEntityTypeCommand(args);
761
+ };
762
+ FraudDetector.prototype.putEntityType = function (args, optionsOrCb, cb) {
763
+ var command = new PutEntityTypeCommand(args);
759
764
  if (typeof optionsOrCb === "function") {
760
765
  this.send(command, optionsOrCb);
761
766
  }
762
767
  else if (typeof cb === "function") {
763
768
  if (typeof optionsOrCb !== "object")
764
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
769
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
765
770
  this.send(command, optionsOrCb || {}, cb);
766
771
  }
767
772
  else {
768
773
  return this.send(command, optionsOrCb);
769
774
  }
770
- }
771
- putEventType(args, optionsOrCb, cb) {
772
- const command = new PutEventTypeCommand(args);
775
+ };
776
+ FraudDetector.prototype.putEventType = function (args, optionsOrCb, cb) {
777
+ var command = new PutEventTypeCommand(args);
773
778
  if (typeof optionsOrCb === "function") {
774
779
  this.send(command, optionsOrCb);
775
780
  }
776
781
  else if (typeof cb === "function") {
777
782
  if (typeof optionsOrCb !== "object")
778
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
783
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
779
784
  this.send(command, optionsOrCb || {}, cb);
780
785
  }
781
786
  else {
782
787
  return this.send(command, optionsOrCb);
783
788
  }
784
- }
785
- putExternalModel(args, optionsOrCb, cb) {
786
- const command = new PutExternalModelCommand(args);
789
+ };
790
+ FraudDetector.prototype.putExternalModel = function (args, optionsOrCb, cb) {
791
+ var command = new PutExternalModelCommand(args);
787
792
  if (typeof optionsOrCb === "function") {
788
793
  this.send(command, optionsOrCb);
789
794
  }
790
795
  else if (typeof cb === "function") {
791
796
  if (typeof optionsOrCb !== "object")
792
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
797
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
793
798
  this.send(command, optionsOrCb || {}, cb);
794
799
  }
795
800
  else {
796
801
  return this.send(command, optionsOrCb);
797
802
  }
798
- }
799
- putKMSEncryptionKey(args, optionsOrCb, cb) {
800
- const command = new PutKMSEncryptionKeyCommand(args);
803
+ };
804
+ FraudDetector.prototype.putKMSEncryptionKey = function (args, optionsOrCb, cb) {
805
+ var command = new PutKMSEncryptionKeyCommand(args);
801
806
  if (typeof optionsOrCb === "function") {
802
807
  this.send(command, optionsOrCb);
803
808
  }
804
809
  else if (typeof cb === "function") {
805
810
  if (typeof optionsOrCb !== "object")
806
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
811
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
807
812
  this.send(command, optionsOrCb || {}, cb);
808
813
  }
809
814
  else {
810
815
  return this.send(command, optionsOrCb);
811
816
  }
812
- }
813
- putLabel(args, optionsOrCb, cb) {
814
- const command = new PutLabelCommand(args);
817
+ };
818
+ FraudDetector.prototype.putLabel = function (args, optionsOrCb, cb) {
819
+ var command = new PutLabelCommand(args);
815
820
  if (typeof optionsOrCb === "function") {
816
821
  this.send(command, optionsOrCb);
817
822
  }
818
823
  else if (typeof cb === "function") {
819
824
  if (typeof optionsOrCb !== "object")
820
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
825
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
821
826
  this.send(command, optionsOrCb || {}, cb);
822
827
  }
823
828
  else {
824
829
  return this.send(command, optionsOrCb);
825
830
  }
826
- }
827
- putOutcome(args, optionsOrCb, cb) {
828
- const command = new PutOutcomeCommand(args);
831
+ };
832
+ FraudDetector.prototype.putOutcome = function (args, optionsOrCb, cb) {
833
+ var command = new PutOutcomeCommand(args);
829
834
  if (typeof optionsOrCb === "function") {
830
835
  this.send(command, optionsOrCb);
831
836
  }
832
837
  else if (typeof cb === "function") {
833
838
  if (typeof optionsOrCb !== "object")
834
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
839
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
835
840
  this.send(command, optionsOrCb || {}, cb);
836
841
  }
837
842
  else {
838
843
  return this.send(command, optionsOrCb);
839
844
  }
840
- }
841
- sendEvent(args, optionsOrCb, cb) {
842
- const command = new SendEventCommand(args);
845
+ };
846
+ FraudDetector.prototype.sendEvent = function (args, optionsOrCb, cb) {
847
+ var command = new SendEventCommand(args);
843
848
  if (typeof optionsOrCb === "function") {
844
849
  this.send(command, optionsOrCb);
845
850
  }
846
851
  else if (typeof cb === "function") {
847
852
  if (typeof optionsOrCb !== "object")
848
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
853
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
849
854
  this.send(command, optionsOrCb || {}, cb);
850
855
  }
851
856
  else {
852
857
  return this.send(command, optionsOrCb);
853
858
  }
854
- }
855
- tagResource(args, optionsOrCb, cb) {
856
- const command = new TagResourceCommand(args);
859
+ };
860
+ FraudDetector.prototype.tagResource = function (args, optionsOrCb, cb) {
861
+ var command = new TagResourceCommand(args);
857
862
  if (typeof optionsOrCb === "function") {
858
863
  this.send(command, optionsOrCb);
859
864
  }
860
865
  else if (typeof cb === "function") {
861
866
  if (typeof optionsOrCb !== "object")
862
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
867
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
863
868
  this.send(command, optionsOrCb || {}, cb);
864
869
  }
865
870
  else {
866
871
  return this.send(command, optionsOrCb);
867
872
  }
868
- }
869
- untagResource(args, optionsOrCb, cb) {
870
- const command = new UntagResourceCommand(args);
873
+ };
874
+ FraudDetector.prototype.untagResource = function (args, optionsOrCb, cb) {
875
+ var command = new UntagResourceCommand(args);
871
876
  if (typeof optionsOrCb === "function") {
872
877
  this.send(command, optionsOrCb);
873
878
  }
874
879
  else if (typeof cb === "function") {
875
880
  if (typeof optionsOrCb !== "object")
876
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
881
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
877
882
  this.send(command, optionsOrCb || {}, cb);
878
883
  }
879
884
  else {
880
885
  return this.send(command, optionsOrCb);
881
886
  }
882
- }
883
- updateDetectorVersion(args, optionsOrCb, cb) {
884
- const command = new UpdateDetectorVersionCommand(args);
887
+ };
888
+ FraudDetector.prototype.updateDetectorVersion = function (args, optionsOrCb, cb) {
889
+ var command = new UpdateDetectorVersionCommand(args);
885
890
  if (typeof optionsOrCb === "function") {
886
891
  this.send(command, optionsOrCb);
887
892
  }
888
893
  else if (typeof cb === "function") {
889
894
  if (typeof optionsOrCb !== "object")
890
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
895
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
891
896
  this.send(command, optionsOrCb || {}, cb);
892
897
  }
893
898
  else {
894
899
  return this.send(command, optionsOrCb);
895
900
  }
896
- }
897
- updateDetectorVersionMetadata(args, optionsOrCb, cb) {
898
- const command = new UpdateDetectorVersionMetadataCommand(args);
901
+ };
902
+ FraudDetector.prototype.updateDetectorVersionMetadata = function (args, optionsOrCb, cb) {
903
+ var command = new UpdateDetectorVersionMetadataCommand(args);
899
904
  if (typeof optionsOrCb === "function") {
900
905
  this.send(command, optionsOrCb);
901
906
  }
902
907
  else if (typeof cb === "function") {
903
908
  if (typeof optionsOrCb !== "object")
904
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
909
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
905
910
  this.send(command, optionsOrCb || {}, cb);
906
911
  }
907
912
  else {
908
913
  return this.send(command, optionsOrCb);
909
914
  }
910
- }
911
- updateDetectorVersionStatus(args, optionsOrCb, cb) {
912
- const command = new UpdateDetectorVersionStatusCommand(args);
915
+ };
916
+ FraudDetector.prototype.updateDetectorVersionStatus = function (args, optionsOrCb, cb) {
917
+ var command = new UpdateDetectorVersionStatusCommand(args);
913
918
  if (typeof optionsOrCb === "function") {
914
919
  this.send(command, optionsOrCb);
915
920
  }
916
921
  else if (typeof cb === "function") {
917
922
  if (typeof optionsOrCb !== "object")
918
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
923
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
919
924
  this.send(command, optionsOrCb || {}, cb);
920
925
  }
921
926
  else {
922
927
  return this.send(command, optionsOrCb);
923
928
  }
924
- }
925
- updateEventLabel(args, optionsOrCb, cb) {
926
- const command = new UpdateEventLabelCommand(args);
929
+ };
930
+ FraudDetector.prototype.updateEventLabel = function (args, optionsOrCb, cb) {
931
+ var command = new UpdateEventLabelCommand(args);
927
932
  if (typeof optionsOrCb === "function") {
928
933
  this.send(command, optionsOrCb);
929
934
  }
930
935
  else if (typeof cb === "function") {
931
936
  if (typeof optionsOrCb !== "object")
932
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
937
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
933
938
  this.send(command, optionsOrCb || {}, cb);
934
939
  }
935
940
  else {
936
941
  return this.send(command, optionsOrCb);
937
942
  }
938
- }
939
- updateModel(args, optionsOrCb, cb) {
940
- const command = new UpdateModelCommand(args);
943
+ };
944
+ FraudDetector.prototype.updateModel = function (args, optionsOrCb, cb) {
945
+ var command = new UpdateModelCommand(args);
941
946
  if (typeof optionsOrCb === "function") {
942
947
  this.send(command, optionsOrCb);
943
948
  }
944
949
  else if (typeof cb === "function") {
945
950
  if (typeof optionsOrCb !== "object")
946
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
951
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
947
952
  this.send(command, optionsOrCb || {}, cb);
948
953
  }
949
954
  else {
950
955
  return this.send(command, optionsOrCb);
951
956
  }
952
- }
953
- updateModelVersion(args, optionsOrCb, cb) {
954
- const command = new UpdateModelVersionCommand(args);
957
+ };
958
+ FraudDetector.prototype.updateModelVersion = function (args, optionsOrCb, cb) {
959
+ var command = new UpdateModelVersionCommand(args);
955
960
  if (typeof optionsOrCb === "function") {
956
961
  this.send(command, optionsOrCb);
957
962
  }
958
963
  else if (typeof cb === "function") {
959
964
  if (typeof optionsOrCb !== "object")
960
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
965
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
961
966
  this.send(command, optionsOrCb || {}, cb);
962
967
  }
963
968
  else {
964
969
  return this.send(command, optionsOrCb);
965
970
  }
966
- }
967
- updateModelVersionStatus(args, optionsOrCb, cb) {
968
- const command = new UpdateModelVersionStatusCommand(args);
971
+ };
972
+ FraudDetector.prototype.updateModelVersionStatus = function (args, optionsOrCb, cb) {
973
+ var command = new UpdateModelVersionStatusCommand(args);
969
974
  if (typeof optionsOrCb === "function") {
970
975
  this.send(command, optionsOrCb);
971
976
  }
972
977
  else if (typeof cb === "function") {
973
978
  if (typeof optionsOrCb !== "object")
974
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
979
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
975
980
  this.send(command, optionsOrCb || {}, cb);
976
981
  }
977
982
  else {
978
983
  return this.send(command, optionsOrCb);
979
984
  }
980
- }
981
- updateRuleMetadata(args, optionsOrCb, cb) {
982
- const command = new UpdateRuleMetadataCommand(args);
985
+ };
986
+ FraudDetector.prototype.updateRuleMetadata = function (args, optionsOrCb, cb) {
987
+ var command = new UpdateRuleMetadataCommand(args);
983
988
  if (typeof optionsOrCb === "function") {
984
989
  this.send(command, optionsOrCb);
985
990
  }
986
991
  else if (typeof cb === "function") {
987
992
  if (typeof optionsOrCb !== "object")
988
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
993
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
989
994
  this.send(command, optionsOrCb || {}, cb);
990
995
  }
991
996
  else {
992
997
  return this.send(command, optionsOrCb);
993
998
  }
994
- }
995
- updateRuleVersion(args, optionsOrCb, cb) {
996
- const command = new UpdateRuleVersionCommand(args);
999
+ };
1000
+ FraudDetector.prototype.updateRuleVersion = function (args, optionsOrCb, cb) {
1001
+ var command = new UpdateRuleVersionCommand(args);
997
1002
  if (typeof optionsOrCb === "function") {
998
1003
  this.send(command, optionsOrCb);
999
1004
  }
1000
1005
  else if (typeof cb === "function") {
1001
1006
  if (typeof optionsOrCb !== "object")
1002
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1007
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1003
1008
  this.send(command, optionsOrCb || {}, cb);
1004
1009
  }
1005
1010
  else {
1006
1011
  return this.send(command, optionsOrCb);
1007
1012
  }
1008
- }
1009
- updateVariable(args, optionsOrCb, cb) {
1010
- const command = new UpdateVariableCommand(args);
1013
+ };
1014
+ FraudDetector.prototype.updateVariable = function (args, optionsOrCb, cb) {
1015
+ var command = new UpdateVariableCommand(args);
1011
1016
  if (typeof optionsOrCb === "function") {
1012
1017
  this.send(command, optionsOrCb);
1013
1018
  }
1014
1019
  else if (typeof cb === "function") {
1015
1020
  if (typeof optionsOrCb !== "object")
1016
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1021
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1017
1022
  this.send(command, optionsOrCb || {}, cb);
1018
1023
  }
1019
1024
  else {
1020
1025
  return this.send(command, optionsOrCb);
1021
1026
  }
1022
- }
1023
- }
1027
+ };
1028
+ return FraudDetector;
1029
+ }(FraudDetectorClient));
1030
+ export { FraudDetector };